Skip to content

Commit 278324c

Browse files
authored
ENG-62 - Upgrade Tldraw (#235)
* Initial Port, WIP * fix Save Images To Roam * prettier formatting * fix Save SVGs as Files To Roam * fix Send To Canvas * Fix Canvas Drawer * Fix Canvas References * Add asset preloading to TldrawCanvas and improve loading error handling * Remove useRoamStore utility and its associated logic * re-add package-lock * Add error handling for Tldraw component to send error details via email * Refactor tool selection in cancelAndWarn method to use "select" instead of "select.idle" * Update onInteractionEnd callback in DiscourseRelationTool to use action and name variables * Refactor error messages in DiscourseRelationTool and DiscourseRelationUtil to display unique node types for better clarity * format * relation creation bug fix * tldraw height * Move relation creation to event mouse up * temporarily remove cannot remove this handle" * fixes * Remove canvas UI overrides utility file * Refactor relation color handling by introducing getRelationColor utility; update color assignments in DiscourseNodeUtil, uiOverrides, and DiscourseRelationTool components.
1 parent ca2f93b commit 278324c

33 files changed

Lines changed: 25948 additions & 3813 deletions

apps/roam/package-lock.json

Lines changed: 16625 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/roam/package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@types/react-vertical-timeline-component": "^3.3.3",
2020
"axios": "^0.27.2",
2121
"esbuild": "0.17.14",
22-
"patch-package": "^6.5.1",
22+
"patch-package": "^8.0.0",
2323
"tsx": "^4.19.2"
2424
},
2525
"//": "axios dep temporary - need to fix the dep in underlying libraries",
@@ -31,9 +31,7 @@
3131
"@octokit/auth-app": "^7.1.4",
3232
"@octokit/core": "^6.1.3",
3333
"@repo/types": "*",
34-
"@supabase/auth-js": "^2.71.1",
35-
"@supabase/supabase-js": "^2.52.0",
36-
"@tldraw/tldraw": "2.0.0-canary.ffda4cfb",
34+
"tldraw": "2.3.0",
3735
"@vercel/blob": "^0.27.0",
3836
"contrast-color": "^1.0.1",
3937
"cytoscape-navigator": "^2.0.1",
@@ -43,7 +41,6 @@
4341
"react-draggable": "^4.4.5",
4442
"react-in-viewport": "^1.0.0-alpha.20",
4543
"react-vertical-timeline-component": "^3.5.2",
46-
"roamjs-components": "^0.85.4",
47-
"signia-react": "^0.1.1"
44+
"roamjs-components": "^0.85.4"
4845
}
4946
}

apps/roam/patches/@tldraw+editor+2.0.0-canary.ffda4cfb.patch

Lines changed: 0 additions & 336 deletions
This file was deleted.

0 commit comments

Comments
 (0)