@tldraw/editor 3.14.0-canary.718fcc03811e → 3.14.0-canary.7524fb3ab164

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 = "3.14.0-canary.718fcc03811e";
1
+ const version = "3.14.0-canary.7524fb3ab164";
2
2
  const publishDates = {
3
3
  major: "2024-09-13T14:36:29.063Z",
4
- minor: "2025-06-18T12:23:40.139Z",
5
- patch: "2025-06-18T12:23:40.139Z"
4
+ minor: "2025-06-18T09:46:13.586Z",
5
+ patch: "2025-06-18T09:46:13.586Z"
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 = '3.14.0-canary.718fcc03811e'\nexport const publishDates = {\n\tmajor: '2024-09-13T14:36:29.063Z',\n\tminor: '2025-06-18T12:23:40.139Z',\n\tpatch: '2025-06-18T12:23:40.139Z',\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 = '3.14.0-canary.7524fb3ab164'\nexport const publishDates = {\n\tmajor: '2024-09-13T14:36:29.063Z',\n\tminor: '2025-06-18T09:46:13.586Z',\n\tpatch: '2025-06-18T09:46:13.586Z',\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": "A tiny little drawing app (editor).",
4
- "version": "3.14.0-canary.718fcc03811e",
4
+ "version": "3.14.0-canary.7524fb3ab164",
5
5
  "author": {
6
6
  "name": "tldraw Inc.",
7
7
  "email": "hello@tldraw.com"
@@ -48,12 +48,12 @@
48
48
  "@tiptap/core": "^2.9.1",
49
49
  "@tiptap/pm": "^2.9.1",
50
50
  "@tiptap/react": "^2.9.1",
51
- "@tldraw/state": "3.14.0-canary.718fcc03811e",
52
- "@tldraw/state-react": "3.14.0-canary.718fcc03811e",
53
- "@tldraw/store": "3.14.0-canary.718fcc03811e",
54
- "@tldraw/tlschema": "3.14.0-canary.718fcc03811e",
55
- "@tldraw/utils": "3.14.0-canary.718fcc03811e",
56
- "@tldraw/validate": "3.14.0-canary.718fcc03811e",
51
+ "@tldraw/state": "3.14.0-canary.7524fb3ab164",
52
+ "@tldraw/state-react": "3.14.0-canary.7524fb3ab164",
53
+ "@tldraw/store": "3.14.0-canary.7524fb3ab164",
54
+ "@tldraw/tlschema": "3.14.0-canary.7524fb3ab164",
55
+ "@tldraw/utils": "3.14.0-canary.7524fb3ab164",
56
+ "@tldraw/validate": "3.14.0-canary.7524fb3ab164",
57
57
  "@types/core-js": "^2.5.8",
58
58
  "@use-gesture/react": "^10.3.1",
59
59
  "classnames": "^2.5.1",
package/src/index.ts CHANGED
@@ -253,7 +253,6 @@ export {
253
253
  type TLExternalContent,
254
254
  type TLExternalContentSource,
255
255
  type TLFileExternalAsset,
256
- type TLFileReplaceExternalContent,
257
256
  type TLFilesExternalContent,
258
257
  type TLSvgTextExternalContent,
259
258
  type TLTextExternalContent,
@@ -8827,7 +8827,6 @@ export class Editor extends EventEmitter<TLEventMap> {
8827
8827
  } = {
8828
8828
  text: null,
8829
8829
  files: null,
8830
- 'file-replace': null,
8831
8830
  embed: null,
8832
8831
  'svg-text': null,
8833
8832
  url: null,
@@ -8877,15 +8876,6 @@ export class Editor extends EventEmitter<TLEventMap> {
8877
8876
  return this.externalContentHandlers[info.type]?.(info as any)
8878
8877
  }
8879
8878
 
8880
- /**
8881
- * Handle replacing external content.
8882
- *
8883
- * @param info - Info about the external content.
8884
- */
8885
- async replaceExternalContent<E>(info: TLExternalContent<E>): Promise<void> {
8886
- return this.externalContentHandlers[info.type]?.(info as any)
8887
- }
8888
-
8889
8879
  /**
8890
8880
  * Get content that can be exported for the given shape ids.
8891
8881
  *
@@ -1,4 +1,4 @@
1
- import { TLAssetId, TLShapeId } from '@tldraw/tlschema'
1
+ import { TLAssetId } from '@tldraw/tlschema'
2
2
  import { VecLike } from '../../primitives/Vec'
3
3
  import { TLContent } from './clipboard-types'
4
4
 
@@ -55,14 +55,6 @@ export interface TLFilesExternalContent extends TLBaseExternalContent {
55
55
  ignoreParent?: boolean
56
56
  }
57
57
 
58
- /** @public */
59
- export interface TLFileReplaceExternalContent extends TLBaseExternalContent {
60
- type: 'file-replace'
61
- file: File
62
- shapeId: TLShapeId
63
- isImage: boolean
64
- }
65
-
66
58
  /** @public */
67
59
  export interface TLUrlExternalContent extends TLBaseExternalContent {
68
60
  type: 'url'
@@ -98,7 +90,6 @@ export interface TLExcalidrawExternalContent extends TLBaseExternalContent {
98
90
  export type TLExternalContent<EmbedDefinition> =
99
91
  | TLTextExternalContent
100
92
  | TLFilesExternalContent
101
- | TLFileReplaceExternalContent
102
93
  | TLUrlExternalContent
103
94
  | TLSvgTextExternalContent
104
95
  | TLEmbedExternalContent<EmbedDefinition>
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 = '3.14.0-canary.718fcc03811e'
4
+ export const version = '3.14.0-canary.7524fb3ab164'
5
5
  export const publishDates = {
6
6
  major: '2024-09-13T14:36:29.063Z',
7
- minor: '2025-06-18T12:23:40.139Z',
8
- patch: '2025-06-18T12:23:40.139Z',
7
+ minor: '2025-06-18T09:46:13.586Z',
8
+ patch: '2025-06-18T09:46:13.586Z',
9
9
  }