-
Notifications
You must be signed in to change notification settings - Fork 880
feat(joint-react): sync with @joint/react-plus + general updates #3077
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
kumilingus
merged 27 commits into
clientIO:dev
from
samuelgja:feat/joint-react-plus-sync-and-updates
Jan 23, 2026
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
5311d16
feat(joint-react): sync with react plus and general fixes + remove pa…
samuelgja fdfff64
chore(joint-react): enhance graph provider and store with new methods…
samuelgja 273e570
refactor(joint-react): clean up code by removing unused methods and s…
samuelgja 751a252
Merge remote-tracking branch 'upstream/master' into feat/joint-react-…
samuelgja 8896f66
chore(joint-react): sync yarn lock + update tests snapshots
samuelgja ce40cbb
feat(joint-react): add use-combined-ref hook export
samuelgja 5ef0956
feat(joint-react): improve size measurement accuracy and prevent floa…
samuelgja 29d9a17
feat(joint-react): enhance Paper component with improved dimension ha…
samuelgja 8b035ed
Merge remote-tracking branch 'upstream/master' into feat/joint-react-…
samuelgja 0321376
feat(joint-react): update dependencies, enhance GraphProvider, and ad…
samuelgja 0fe069f
feat(joint-react): enhance GraphProvider for controlled mode and add …
samuelgja 8d9dbc0
feat(joint-react): update dependencies, refactor components, and enha…
samuelgja 32c1254
chore(joint-react): add empty lines to test files for consistency
samuelgja be7367a
feat(joint-react): - work only with json -remove dia.element and dia…
samuelgja efb9988
chore(joint-react): add empty lines to multiple test files for consis…
samuelgja 6f76677
feat(joint-react): enhance useNodeSize hook with transform functionality
samuelgja a0f940b
feat(joint-react): improve size observer accuracy and performance
samuelgja 86393e8
fix(joint-react): refine size observer logic and update EPSILON value
samuelgja 5d51044
fix(joint-react): update paper component opacity and enhance size obs…
samuelgja ee2c6d3
feat(joint-react): enhance App component with detailed documentation …
samuelgja b7b462b
feat(joint-react): introduce useNodeLayout hook for node geometry ret…
samuelgja 23c3130
refactor(joint-react): streamline element rendering and enhance node …
samuelgja 351d9c1
feat(joint-react): introduce BaseLink and LinkLabel components for cu…
samuelgja 9b03164
fix(joint-react): enhance element rendering with areElementsMeasured …
samuelgja 6a1cd17
chore(joint-react): remove createElements and createLinks utilities, …
samuelgja f6edd1d
Merge remote-tracking branch 'upstream/dev' into feat/joint-react-plu…
samuelgja 25bf1ce
chore(joint-react): remove TypeScript error suppression for Vite plugins
samuelgja File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,58 @@ | ||
| <!-- Loads a font from a CDN --> | ||
| <!-- react-scan: Load with delay to avoid freezing Storybook --> | ||
| <script> | ||
| // Load react-scan UI overlay after Storybook initializes | ||
| (function () { | ||
| if (typeof window === 'undefined') return; | ||
|
|
||
| // Wait for DOM and React to be ready | ||
| function loadReactScan() { | ||
| if (window.__REACT_SCAN_LOADED) return; | ||
|
|
||
| const script = document.createElement('script'); | ||
| script.src = 'https://unpkg.com/react-scan@latest/dist/auto.global.js'; | ||
| script.async = true; | ||
| script.onload = function () { | ||
| window.__REACT_SCAN_LOADED = true; | ||
|
|
||
|
|
||
| // Wait a bit for react-scan to initialize, then configure it for iframe | ||
| setTimeout(function () { | ||
| // Access react-scan global API | ||
| const reactScan = window.reactScan; | ||
|
|
||
| if (reactScan && typeof reactScan === 'function') { | ||
| // Configure react-scan to work in iframe (Storybook uses iframes) | ||
| try { | ||
| reactScan({ | ||
| enabled: false, // Disabled by default - user can enable via toolbar | ||
| allowInIframe: true, | ||
| showToolbar: true, // Show toolbar so user can toggle it on/off | ||
| }); | ||
|
|
||
| } catch (error) { | ||
| console.error('❌ Error configuring react-scan:', error); | ||
| } | ||
| } else { | ||
| console.warn('⚠️ react-scan function not found'); | ||
| } | ||
| }, 500); | ||
| }; | ||
| script.onerror = function () { | ||
| console.error('❌ Failed to load react-scan'); | ||
| }; | ||
| document.head.appendChild(script); | ||
| } | ||
|
|
||
| // Try loading after a delay | ||
| if (document.readyState === 'loading') { | ||
| document.addEventListener('DOMContentLoaded', function () { | ||
| setTimeout(loadReactScan, 3000); | ||
| }); | ||
| } else { | ||
| setTimeout(loadReactScan, 3000); | ||
| } | ||
| })(); | ||
| </script> | ||
| <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script> | ||
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.