@tldraw/editor 5.5.0-canary.51fe070ff155 → 5.5.0-canary.5209cea28e5d

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.
@@ -9793,6 +9793,11 @@ export declare interface TLUrlExternalAsset {
9793
9793
  export declare interface TLUrlExternalContent extends TLBaseExternalContent {
9794
9794
  type: 'url';
9795
9795
  url: string;
9796
+ /**
9797
+ * A shape to set the url on, instead of creating a bookmark or an embed. The shape must have a
9798
+ * `url` prop; the clipboard sets this when a link is pasted with one such shape selected.
9799
+ */
9800
+ shapeId?: TLShapeId;
9796
9801
  }
9797
9802
 
9798
9803
  /**
package/dist-cjs/index.js CHANGED
@@ -392,7 +392,7 @@ var import_uniq = require("./lib/utils/uniq");
392
392
  var import_defaultThemes2 = require("./lib/editor/managers/ThemeManager/defaultThemes");
393
393
  (0, import_utils.registerTldrawLibraryVersion)(
394
394
  "@tldraw/editor",
395
- "5.5.0-canary.51fe070ff155",
395
+ "5.5.0-canary.5209cea28e5d",
396
396
  "cjs"
397
397
  );
398
398
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/lib/editor/types/external-content.ts"],
4
- "sourcesContent": ["import { TLAssetId, TLShapeId } from '@tldraw/tlschema'\nimport { VecLike } from '../../primitives/Vec'\nimport { TLContent } from './clipboard-types'\n\n/** @public */\nexport interface TLTldrawExternalContentSource {\n\ttype: 'tldraw'\n\tdata: TLContent\n}\n\n/** @public */\nexport interface TLExcalidrawExternalContentSource {\n\ttype: 'excalidraw'\n\tdata: any\n}\n\n/** @public */\nexport interface TLTextExternalContentSource {\n\ttype: 'text'\n\tdata: string\n\tsubtype: 'json' | 'html' | 'text' | 'url'\n}\n\n/** @public */\nexport interface TLErrorExternalContentSource {\n\ttype: 'error'\n\tdata: string | null\n\treason: string\n}\n\n/** @public */\nexport type TLExternalContentSource =\n\t| TLTldrawExternalContentSource\n\t| TLExcalidrawExternalContentSource\n\t| TLTextExternalContentSource\n\t| TLErrorExternalContentSource\n\n/** @public */\nexport interface TLBaseExternalContent {\n\t/**\n\t * The other content sources found on the clipboard alongside this content. For example, when\n\t * pasting an image copied together with HTML and plain text, the `files` content will have\n\t * text sources for the HTML and plain text parts.\n\t */\n\tsources?: TLExternalContentSource[]\n\tpoint?: VecLike\n}\n\n/** @public */\nexport interface TLTextExternalContent extends TLBaseExternalContent {\n\ttype: 'text'\n\ttext: string\n\thtml?: string\n}\n\n/** @public */\nexport interface TLFilesExternalContent extends TLBaseExternalContent {\n\ttype: 'files'\n\tfiles: File[]\n\tignoreParent?: boolean\n}\n\n/** @public */\nexport interface TLFileReplaceExternalContent extends TLBaseExternalContent {\n\ttype: 'file-replace'\n\tfile: File\n\tshapeId: TLShapeId\n\t/** @deprecated This field is no longer used by the default handler. It may be removed in a future version. */\n\tisImage: boolean\n}\n\n/** @public */\nexport interface TLUrlExternalContent extends TLBaseExternalContent {\n\ttype: 'url'\n\turl: string\n}\n\n/** @public */\nexport interface TLSvgTextExternalContent extends TLBaseExternalContent {\n\ttype: 'svg-text'\n\ttext: string\n}\n\n/** @public */\nexport interface TLEmbedExternalContent<EmbedDefinition> extends TLBaseExternalContent {\n\ttype: 'embed'\n\turl: string\n\tembed: EmbedDefinition\n}\n\n/** @public */\nexport interface TLTldrawExternalContent extends TLBaseExternalContent {\n\ttype: 'tldraw'\n\tcontent: TLContent\n}\n\n/** @public */\nexport interface TLExcalidrawExternalContent extends TLBaseExternalContent {\n\ttype: 'excalidraw'\n\tcontent: any\n}\n\n/** @public */\nexport type TLExternalContent<EmbedDefinition> =\n\t| TLTextExternalContent\n\t| TLFilesExternalContent\n\t| TLFileReplaceExternalContent\n\t| TLUrlExternalContent\n\t| TLSvgTextExternalContent\n\t| TLEmbedExternalContent<EmbedDefinition>\n\t| TLTldrawExternalContent\n\t| TLExcalidrawExternalContent\n\n/** @public */\nexport interface TLFileExternalAsset {\n\ttype: 'file'\n\tfile: File\n\tassetId?: TLAssetId\n}\n\n/** @public */\nexport interface TLUrlExternalAsset {\n\ttype: 'url'\n\turl: string\n}\n\n/** @public */\nexport type TLExternalAsset = TLFileExternalAsset | TLUrlExternalAsset\n"],
4
+ "sourcesContent": ["import { TLAssetId, TLShapeId } from '@tldraw/tlschema'\nimport { VecLike } from '../../primitives/Vec'\nimport { TLContent } from './clipboard-types'\n\n/** @public */\nexport interface TLTldrawExternalContentSource {\n\ttype: 'tldraw'\n\tdata: TLContent\n}\n\n/** @public */\nexport interface TLExcalidrawExternalContentSource {\n\ttype: 'excalidraw'\n\tdata: any\n}\n\n/** @public */\nexport interface TLTextExternalContentSource {\n\ttype: 'text'\n\tdata: string\n\tsubtype: 'json' | 'html' | 'text' | 'url'\n}\n\n/** @public */\nexport interface TLErrorExternalContentSource {\n\ttype: 'error'\n\tdata: string | null\n\treason: string\n}\n\n/** @public */\nexport type TLExternalContentSource =\n\t| TLTldrawExternalContentSource\n\t| TLExcalidrawExternalContentSource\n\t| TLTextExternalContentSource\n\t| TLErrorExternalContentSource\n\n/** @public */\nexport interface TLBaseExternalContent {\n\t/**\n\t * The other content sources found on the clipboard alongside this content. For example, when\n\t * pasting an image copied together with HTML and plain text, the `files` content will have\n\t * text sources for the HTML and plain text parts.\n\t */\n\tsources?: TLExternalContentSource[]\n\tpoint?: VecLike\n}\n\n/** @public */\nexport interface TLTextExternalContent extends TLBaseExternalContent {\n\ttype: 'text'\n\ttext: string\n\thtml?: string\n}\n\n/** @public */\nexport interface TLFilesExternalContent extends TLBaseExternalContent {\n\ttype: 'files'\n\tfiles: File[]\n\tignoreParent?: boolean\n}\n\n/** @public */\nexport interface TLFileReplaceExternalContent extends TLBaseExternalContent {\n\ttype: 'file-replace'\n\tfile: File\n\tshapeId: TLShapeId\n\t/** @deprecated This field is no longer used by the default handler. It may be removed in a future version. */\n\tisImage: boolean\n}\n\n/** @public */\nexport interface TLUrlExternalContent extends TLBaseExternalContent {\n\ttype: 'url'\n\turl: string\n\t/**\n\t * A shape to set the url on, instead of creating a bookmark or an embed. The shape must have a\n\t * `url` prop; the clipboard sets this when a link is pasted with one such shape selected.\n\t */\n\tshapeId?: TLShapeId\n}\n\n/** @public */\nexport interface TLSvgTextExternalContent extends TLBaseExternalContent {\n\ttype: 'svg-text'\n\ttext: string\n}\n\n/** @public */\nexport interface TLEmbedExternalContent<EmbedDefinition> extends TLBaseExternalContent {\n\ttype: 'embed'\n\turl: string\n\tembed: EmbedDefinition\n}\n\n/** @public */\nexport interface TLTldrawExternalContent extends TLBaseExternalContent {\n\ttype: 'tldraw'\n\tcontent: TLContent\n}\n\n/** @public */\nexport interface TLExcalidrawExternalContent extends TLBaseExternalContent {\n\ttype: 'excalidraw'\n\tcontent: any\n}\n\n/** @public */\nexport type TLExternalContent<EmbedDefinition> =\n\t| TLTextExternalContent\n\t| TLFilesExternalContent\n\t| TLFileReplaceExternalContent\n\t| TLUrlExternalContent\n\t| TLSvgTextExternalContent\n\t| TLEmbedExternalContent<EmbedDefinition>\n\t| TLTldrawExternalContent\n\t| TLExcalidrawExternalContent\n\n/** @public */\nexport interface TLFileExternalAsset {\n\ttype: 'file'\n\tfile: File\n\tassetId?: TLAssetId\n}\n\n/** @public */\nexport interface TLUrlExternalAsset {\n\ttype: 'url'\n\turl: string\n}\n\n/** @public */\nexport type TLExternalAsset = TLFileExternalAsset | TLUrlExternalAsset\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.5.0-canary.51fe070ff155";
25
+ const version = "5.5.0-canary.5209cea28e5d";
26
26
  const publishDates = {
27
27
  major: "2026-05-06T16:28:18.473Z",
28
- minor: "2026-09-21T14:43:37.260Z",
29
- patch: "2026-09-21T14:43:37.260Z"
28
+ minor: "2026-09-22T02:42:57.423Z",
29
+ patch: "2026-09-22T02:42:57.423Z"
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.5.0-canary.51fe070ff155'\nexport const publishDates = {\n\tmajor: '2026-05-06T16:28:18.473Z',\n\tminor: '2026-09-21T14:43:37.260Z',\n\tpatch: '2026-09-21T14:43:37.260Z',\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.5.0-canary.5209cea28e5d'\nexport const publishDates = {\n\tmajor: '2026-05-06T16:28:18.473Z',\n\tminor: '2026-09-22T02:42:57.423Z',\n\tpatch: '2026-09-22T02:42:57.423Z',\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
  }
@@ -9793,6 +9793,11 @@ export declare interface TLUrlExternalAsset {
9793
9793
  export declare interface TLUrlExternalContent extends TLBaseExternalContent {
9794
9794
  type: 'url';
9795
9795
  url: string;
9796
+ /**
9797
+ * A shape to set the url on, instead of creating a bookmark or an embed. The shape must have a
9798
+ * `url` prop; the clipboard sets this when a link is pasted with one such shape selected.
9799
+ */
9800
+ shapeId?: TLShapeId;
9796
9801
  }
9797
9802
 
9798
9803
  /**
@@ -312,7 +312,7 @@ import { LocalIndexedDb, Table } from "./lib/utils/sync/LocalIndexedDb.mjs";
312
312
  import { uniq } from "./lib/utils/uniq.mjs";
313
313
  registerTldrawLibraryVersion(
314
314
  "@tldraw/editor",
315
- "5.5.0-canary.51fe070ff155",
315
+ "5.5.0-canary.5209cea28e5d",
316
316
  "esm"
317
317
  );
318
318
  import { getColorValue } from "./lib/editor/managers/ThemeManager/defaultThemes.mjs";
@@ -1,8 +1,8 @@
1
- const version = "5.5.0-canary.51fe070ff155";
1
+ const version = "5.5.0-canary.5209cea28e5d";
2
2
  const publishDates = {
3
3
  major: "2026-05-06T16:28:18.473Z",
4
- minor: "2026-09-21T14:43:37.260Z",
5
- patch: "2026-09-21T14:43:37.260Z"
4
+ minor: "2026-09-22T02:42:57.423Z",
5
+ patch: "2026-09-22T02:42:57.423Z"
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.5.0-canary.51fe070ff155'\nexport const publishDates = {\n\tmajor: '2026-05-06T16:28:18.473Z',\n\tminor: '2026-09-21T14:43:37.260Z',\n\tpatch: '2026-09-21T14:43:37.260Z',\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.5.0-canary.5209cea28e5d'\nexport const publishDates = {\n\tmajor: '2026-05-06T16:28:18.473Z',\n\tminor: '2026-09-22T02:42:57.423Z',\n\tpatch: '2026-09-22T02:42:57.423Z',\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.5.0-canary.51fe070ff155",
4
+ "version": "5.5.0-canary.5209cea28e5d",
5
5
  "author": {
6
6
  "name": "tldraw Inc.",
7
7
  "email": "hello@tldraw.com"
@@ -54,12 +54,12 @@
54
54
  "@tiptap/core": "^3.12.1",
55
55
  "@tiptap/pm": "^3.12.1",
56
56
  "@tiptap/react": "^3.12.1",
57
- "@tldraw/state": "5.5.0-canary.51fe070ff155",
58
- "@tldraw/state-react": "5.5.0-canary.51fe070ff155",
59
- "@tldraw/store": "5.5.0-canary.51fe070ff155",
60
- "@tldraw/tlschema": "5.5.0-canary.51fe070ff155",
61
- "@tldraw/utils": "5.5.0-canary.51fe070ff155",
62
- "@tldraw/validate": "5.5.0-canary.51fe070ff155",
57
+ "@tldraw/state": "5.5.0-canary.5209cea28e5d",
58
+ "@tldraw/state-react": "5.5.0-canary.5209cea28e5d",
59
+ "@tldraw/store": "5.5.0-canary.5209cea28e5d",
60
+ "@tldraw/tlschema": "5.5.0-canary.5209cea28e5d",
61
+ "@tldraw/utils": "5.5.0-canary.5209cea28e5d",
62
+ "@tldraw/validate": "5.5.0-canary.5209cea28e5d",
63
63
  "classnames": "^2.5.1",
64
64
  "eventemitter3": "^4.0.7",
65
65
  "idb": "^7.1.1",
@@ -73,6 +73,11 @@ export interface TLFileReplaceExternalContent extends TLBaseExternalContent {
73
73
  export interface TLUrlExternalContent extends TLBaseExternalContent {
74
74
  type: 'url'
75
75
  url: string
76
+ /**
77
+ * A shape to set the url on, instead of creating a bookmark or an embed. The shape must have a
78
+ * `url` prop; the clipboard sets this when a link is pasted with one such shape selected.
79
+ */
80
+ shapeId?: TLShapeId
76
81
  }
77
82
 
78
83
  /** @public */
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.5.0-canary.51fe070ff155'
4
+ export const version = '5.5.0-canary.5209cea28e5d'
5
5
  export const publishDates = {
6
6
  major: '2026-05-06T16:28:18.473Z',
7
- minor: '2026-09-21T14:43:37.260Z',
8
- patch: '2026-09-21T14:43:37.260Z',
7
+ minor: '2026-09-22T02:42:57.423Z',
8
+ patch: '2026-09-22T02:42:57.423Z',
9
9
  }