@tldraw/editor 4.5.4 → 4.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1 -1
- package/dist-cjs/lib/editor/Editor.js +4 -0
- package/dist-cjs/lib/editor/Editor.js.map +2 -2
- package/dist-cjs/version.js +2 -2
- package/dist-cjs/version.js.map +1 -1
- package/dist-esm/index.mjs +1 -1
- package/dist-esm/lib/editor/Editor.mjs +4 -0
- package/dist-esm/lib/editor/Editor.mjs.map +2 -2
- package/dist-esm/version.mjs +2 -2
- package/dist-esm/version.mjs.map +1 -1
- package/package.json +7 -7
- package/src/lib/editor/Editor.ts +6 -0
- package/src/version.ts +2 -2
package/dist-esm/version.mjs
CHANGED
package/dist-esm/version.mjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/version.ts"],
|
|
4
|
-
"sourcesContent": ["// This file is automatically generated by internal/scripts/refresh-assets.ts.\n// Do not edit manually. Or do, I'm a comment, not a cop.\n\nexport const version = '4.5.
|
|
4
|
+
"sourcesContent": ["// This file is automatically generated by internal/scripts/refresh-assets.ts.\n// Do not edit manually. Or do, I'm a comment, not a cop.\n\nexport const version = '4.5.5'\nexport const publishDates = {\n\tmajor: '2025-09-18T14:39:22.803Z',\n\tminor: '2026-03-18T11:05:13.340Z',\n\tpatch: '2026-04-01T09:22:33.926Z',\n}\n"],
|
|
5
5
|
"mappings": "AAGO,MAAM,UAAU;AAChB,MAAM,eAAe;AAAA,EAC3B,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AACR;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tldraw/editor",
|
|
3
3
|
"description": "tldraw infinite canvas SDK (editor).",
|
|
4
|
-
"version": "4.5.
|
|
4
|
+
"version": "4.5.5",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tldraw Inc.",
|
|
7
7
|
"email": "hello@tldraw.com"
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"@tiptap/core": "^3.12.1",
|
|
50
50
|
"@tiptap/pm": "^3.12.1",
|
|
51
51
|
"@tiptap/react": "^3.12.1",
|
|
52
|
-
"@tldraw/state": "4.5.
|
|
53
|
-
"@tldraw/state-react": "4.5.
|
|
54
|
-
"@tldraw/store": "4.5.
|
|
55
|
-
"@tldraw/tlschema": "4.5.
|
|
56
|
-
"@tldraw/utils": "4.5.
|
|
57
|
-
"@tldraw/validate": "4.5.
|
|
52
|
+
"@tldraw/state": "4.5.5",
|
|
53
|
+
"@tldraw/state-react": "4.5.5",
|
|
54
|
+
"@tldraw/store": "4.5.5",
|
|
55
|
+
"@tldraw/tlschema": "4.5.5",
|
|
56
|
+
"@tldraw/utils": "4.5.5",
|
|
57
|
+
"@tldraw/validate": "4.5.5",
|
|
58
58
|
"@use-gesture/react": "^10.3.1",
|
|
59
59
|
"classnames": "^2.5.1",
|
|
60
60
|
"eventemitter3": "^4.0.7",
|
package/src/lib/editor/Editor.ts
CHANGED
|
@@ -356,6 +356,12 @@ export class Editor extends EventEmitter<TLEventMap> {
|
|
|
356
356
|
this.fonts = new FontManager(this, fontAssetUrls)
|
|
357
357
|
|
|
358
358
|
this._tickManager = new TickManager(this)
|
|
359
|
+
this.disposables.add(() => {
|
|
360
|
+
// Reset camera state to 'idle' so the store isn't left stuck at 'moving'
|
|
361
|
+
// when tick events stop (e.g. React strict mode disposes while camera is moving)
|
|
362
|
+
this.off('tick', this._decayCameraStateTimeout)
|
|
363
|
+
this._setCameraState('idle')
|
|
364
|
+
})
|
|
359
365
|
|
|
360
366
|
this.inputs = new InputsManager(this)
|
|
361
367
|
|
package/src/version.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// This file is automatically generated by internal/scripts/refresh-assets.ts.
|
|
2
2
|
// Do not edit manually. Or do, I'm a comment, not a cop.
|
|
3
3
|
|
|
4
|
-
export const version = '4.5.
|
|
4
|
+
export const version = '4.5.5'
|
|
5
5
|
export const publishDates = {
|
|
6
6
|
major: '2025-09-18T14:39:22.803Z',
|
|
7
7
|
minor: '2026-03-18T11:05:13.340Z',
|
|
8
|
-
patch: '2026-
|
|
8
|
+
patch: '2026-04-01T09:22:33.926Z',
|
|
9
9
|
}
|