@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.
@@ -1,8 +1,8 @@
1
- const version = "4.5.4";
1
+ const version = "4.5.5";
2
2
  const publishDates = {
3
3
  major: "2025-09-18T14:39:22.803Z",
4
4
  minor: "2026-03-18T11:05:13.340Z",
5
- patch: "2026-03-26T10:28:25.848Z"
5
+ patch: "2026-04-01T09:22:33.926Z"
6
6
  };
7
7
  export {
8
8
  publishDates,
@@ -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'\nexport const publishDates = {\n\tmajor: '2025-09-18T14:39:22.803Z',\n\tminor: '2026-03-18T11:05:13.340Z',\n\tpatch: '2026-03-26T10:28:25.848Z',\n}\n"],
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",
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.4",
53
- "@tldraw/state-react": "4.5.4",
54
- "@tldraw/store": "4.5.4",
55
- "@tldraw/tlschema": "4.5.4",
56
- "@tldraw/utils": "4.5.4",
57
- "@tldraw/validate": "4.5.4",
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",
@@ -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'
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-03-26T10:28:25.848Z',
8
+ patch: '2026-04-01T09:22:33.926Z',
9
9
  }