Skip to content

Commit adf0037

Browse files
fix: export of defaultHandleExternalFileReplaceContent (tldraw#8579)
This function was added in PR tldraw#6276 but was never added to the package's public exports, despite being listed in the documentation alongside the other defaultHandleExternal* functions which are all exported. ### API changes - Adds `defaultHandleExternalFileReplaceContent` to exports Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9cd6145 commit adf0037

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

packages/tldraw/api-report.api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ import { TLEmbedShapeProps } from '@tldraw/editor';
104104
import { TLEventInfo } from '@tldraw/editor';
105105
import { TLExportType } from '@tldraw/editor';
106106
import { TLFileExternalAsset } from '@tldraw/editor';
107+
import { TLFileReplaceExternalContent } from '@tldraw/editor';
107108
import { TLFontFace } from '@tldraw/tlschema';
108109
import { TLFontFace as TLFontFace_2 } from '@tldraw/editor';
109110
import { TLFrameShape } from '@tldraw/editor';
@@ -1005,6 +1006,9 @@ export function defaultHandleExternalFileContent(editor: Editor, { point, files
10051006
point?: VecLike;
10061007
}, options: TLDefaultExternalContentHandlerOpts): Promise<void>;
10071008

1009+
// @public (undocumented)
1010+
export function defaultHandleExternalFileReplaceContent(editor: Editor, { file, shapeId }: TLFileReplaceExternalContent, options: TLDefaultExternalContentHandlerOpts): Promise<TLAsset | undefined>;
1011+
10081012
// @public (undocumented)
10091013
export function defaultHandleExternalSvgTextContent(editor: Editor, { point, text }: {
10101014
point?: VecLike;

packages/tldraw/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export {
8787
defaultHandleExternalExcalidrawContent,
8888
defaultHandleExternalFileAsset,
8989
defaultHandleExternalFileContent,
90+
defaultHandleExternalFileReplaceContent,
9091
defaultHandleExternalSvgTextContent,
9192
defaultHandleExternalTextContent,
9293
defaultHandleExternalTldrawContent,

0 commit comments

Comments
 (0)