@tldraw/editor 5.6.0 → 5.6.2

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.
@@ -8781,6 +8781,9 @@ export declare interface TLEventMap {
8781
8781
  name: string;
8782
8782
  pageId: TLPageId;
8783
8783
  }];
8784
+ 'confirm-open-link': [{
8785
+ url: string;
8786
+ }];
8784
8787
  change: [HistoryEntry<TLRecord>];
8785
8788
  update: [];
8786
8789
  crash: [{
package/dist-cjs/index.js CHANGED
@@ -398,7 +398,7 @@ var import_uniq = require("./lib/utils/uniq");
398
398
  var import_defaultThemes2 = require("./lib/editor/managers/ThemeManager/defaultThemes");
399
399
  (0, import_utils.registerTldrawLibraryVersion)(
400
400
  "@tldraw/editor",
401
- "5.6.0",
401
+ "5.6.2",
402
402
  "cjs"
403
403
  );
404
404
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/lib/editor/types/emit-types.ts"],
4
- "sourcesContent": ["import { HistoryEntry } from '@tldraw/store'\nimport { BoxModel, TLPageId, TLRecord, TLShapeId } from '@tldraw/tlschema'\nimport { TLEventInfo } from './event-types'\n\n/** @public */\nexport interface TLEventMap {\n\t// Lifecycle / Internal\n\tmount: []\n\tunmount: []\n\t'max-shapes': [{ name: string; pageId: TLPageId; count: number }]\n\tchange: [HistoryEntry<TLRecord>]\n\tupdate: []\n\tcrash: [{ error: unknown }]\n\t'stop-camera-animation': []\n\t'stop-following': []\n\t'before-event': [TLEventInfo]\n\tevent: [TLEventInfo]\n\ttick: [number]\n\tframe: [number]\n\tresize: [BoxModel]\n\t'select-all-text': [{ shapeId: TLShapeId }]\n\t'place-caret': [{ shapeId: TLShapeId; point: { x: number; y: number } }]\n\t'created-shapes': [TLRecord[]]\n\t'edited-shapes': [TLRecord[]]\n\t'deleted-shapes': [TLShapeId[]]\n\tedit: []\n\tdispose: []\n}\n\n/** @public */\nexport type TLEventMapHandler<T extends keyof TLEventMap> = (...args: TLEventMap[T]) => void\n"],
4
+ "sourcesContent": ["import { HistoryEntry } from '@tldraw/store'\nimport { BoxModel, TLPageId, TLRecord, TLShapeId } from '@tldraw/tlschema'\nimport { TLEventInfo } from './event-types'\n\n/** @public */\nexport interface TLEventMap {\n\t// Lifecycle / Internal\n\tmount: []\n\tunmount: []\n\t'max-shapes': [{ name: string; pageId: TLPageId; count: number }]\n\t'confirm-open-link': [{ url: string }]\n\tchange: [HistoryEntry<TLRecord>]\n\tupdate: []\n\tcrash: [{ error: unknown }]\n\t'stop-camera-animation': []\n\t'stop-following': []\n\t'before-event': [TLEventInfo]\n\tevent: [TLEventInfo]\n\ttick: [number]\n\tframe: [number]\n\tresize: [BoxModel]\n\t'select-all-text': [{ shapeId: TLShapeId }]\n\t'place-caret': [{ shapeId: TLShapeId; point: { x: number; y: number } }]\n\t'created-shapes': [TLRecord[]]\n\t'edited-shapes': [TLRecord[]]\n\t'deleted-shapes': [TLShapeId[]]\n\tedit: []\n\tdispose: []\n}\n\n/** @public */\nexport type TLEventMapHandler<T extends keyof TLEventMap> = (...args: TLEventMap[T]) => void\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
6
6
  "names": []
7
7
  }
@@ -22,10 +22,10 @@ __export(version_exports, {
22
22
  version: () => version
23
23
  });
24
24
  module.exports = __toCommonJS(version_exports);
25
- const version = "5.6.0";
25
+ const version = "5.6.2";
26
26
  const publishDates = {
27
27
  major: "2026-05-06T16:28:18.473Z",
28
28
  minor: "2026-10-28T14:20:57.238Z",
29
- patch: "2026-10-28T14:20:57.238Z"
29
+ patch: "2026-11-20T13:16:37.205Z"
30
30
  };
31
31
  //# sourceMappingURL=version.js.map
@@ -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 = '5.6.0'\nexport const publishDates = {\n\tmajor: '2026-05-06T16:28:18.473Z',\n\tminor: '2026-10-28T14:20:57.238Z',\n\tpatch: '2026-10-28T14:20:57.238Z',\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 = '5.6.2'\nexport const publishDates = {\n\tmajor: '2026-05-06T16:28:18.473Z',\n\tminor: '2026-10-28T14:20:57.238Z',\n\tpatch: '2026-11-20T13:16:37.205Z',\n}\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,MAAM,UAAU;AAChB,MAAM,eAAe;AAAA,EAC3B,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AACR;",
6
6
  "names": []
7
7
  }
@@ -8781,6 +8781,9 @@ export declare interface TLEventMap {
8781
8781
  name: string;
8782
8782
  pageId: TLPageId;
8783
8783
  }];
8784
+ 'confirm-open-link': [{
8785
+ url: string;
8786
+ }];
8784
8787
  change: [HistoryEntry<TLRecord>];
8785
8788
  update: [];
8786
8789
  crash: [{
@@ -319,7 +319,7 @@ import { LocalIndexedDb, Table } from "./lib/utils/sync/LocalIndexedDb.mjs";
319
319
  import { uniq } from "./lib/utils/uniq.mjs";
320
320
  registerTldrawLibraryVersion(
321
321
  "@tldraw/editor",
322
- "5.6.0",
322
+ "5.6.2",
323
323
  "esm"
324
324
  );
325
325
  import { getColorValue } from "./lib/editor/managers/ThemeManager/defaultThemes.mjs";
@@ -1,8 +1,8 @@
1
- const version = "5.6.0";
1
+ const version = "5.6.2";
2
2
  const publishDates = {
3
3
  major: "2026-05-06T16:28:18.473Z",
4
4
  minor: "2026-10-28T14:20:57.238Z",
5
- patch: "2026-10-28T14:20:57.238Z"
5
+ patch: "2026-11-20T13:16:37.205Z"
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 = '5.6.0'\nexport const publishDates = {\n\tmajor: '2026-05-06T16:28:18.473Z',\n\tminor: '2026-10-28T14:20:57.238Z',\n\tpatch: '2026-10-28T14:20:57.238Z',\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 = '5.6.2'\nexport const publishDates = {\n\tmajor: '2026-05-06T16:28:18.473Z',\n\tminor: '2026-10-28T14:20:57.238Z',\n\tpatch: '2026-11-20T13:16:37.205Z',\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": "5.6.0",
4
+ "version": "5.6.2",
5
5
  "author": {
6
6
  "name": "tldraw Inc.",
7
7
  "email": "hello@tldraw.com"
@@ -43,12 +43,12 @@
43
43
  "@tiptap/core": "^3.12.1",
44
44
  "@tiptap/pm": "^3.12.1",
45
45
  "@tiptap/react": "^3.12.1",
46
- "@tldraw/state": "5.6.0",
47
- "@tldraw/state-react": "5.6.0",
48
- "@tldraw/store": "5.6.0",
49
- "@tldraw/tlschema": "5.6.0",
50
- "@tldraw/utils": "5.6.0",
51
- "@tldraw/validate": "5.6.0",
46
+ "@tldraw/state": "5.6.2",
47
+ "@tldraw/state-react": "5.6.2",
48
+ "@tldraw/store": "5.6.2",
49
+ "@tldraw/tlschema": "5.6.2",
50
+ "@tldraw/utils": "5.6.2",
51
+ "@tldraw/validate": "5.6.2",
52
52
  "classnames": "^2.5.1",
53
53
  "eventemitter3": "^4.0.7",
54
54
  "idb": "^7.1.1",
@@ -8,6 +8,7 @@ export interface TLEventMap {
8
8
  mount: []
9
9
  unmount: []
10
10
  'max-shapes': [{ name: string; pageId: TLPageId; count: number }]
11
+ 'confirm-open-link': [{ url: string }]
11
12
  change: [HistoryEntry<TLRecord>]
12
13
  update: []
13
14
  crash: [{ error: unknown }]
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 = '5.6.0'
4
+ export const version = '5.6.2'
5
5
  export const publishDates = {
6
6
  major: '2026-05-06T16:28:18.473Z',
7
7
  minor: '2026-10-28T14:20:57.238Z',
8
- patch: '2026-10-28T14:20:57.238Z',
8
+ patch: '2026-11-20T13:16:37.205Z',
9
9
  }