From a0628f9cb2715efa33b57a951d73b77eda961873 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 29 Feb 2024 16:06:19 +0000 Subject: [PATCH] tldraw_final_v6_final(old version).docx.pdf (#2998) Rename `@tldraw/tldraw` to just `tldraw`! `@tldraw/tldraw` still exists as an alias to `tldraw` for folks who are still using that. ### Test Plan - [x] Unit Tests - [ ] End to end tests ### Release Notes - The `@tldraw/tldraw` package has been renamed to `tldraw`. You can keep using the old version if you want though! --- .eslintrc.js | 2 +- .github/workflows/publish-templates.yml | 10 +- apps/docs/components/ExampleCodeBlock.tsx | 2 +- apps/docs/components/mdx-components/code.tsx | 2 +- apps/docs/content/docs/collaboration.mdx | 2 +- apps/docs/content/docs/editor.mdx | 6 +- apps/docs/content/docs/persistence.mdx | 8 +- apps/docs/content/docs/shapes.mdx | 6 +- .../content/getting-started/installation.mdx | 26 +- .../content/getting-started/quick-start.mdx | 8 +- apps/docs/content/sections.json | 2 +- apps/docs/scripts/functions/fetchReleases.ts | 2 +- apps/dotcom/package.json | 4 +- apps/dotcom/sentry.client.config.ts | 2 +- .../BoardHistorySnapshot.tsx | 2 +- .../src/components/CursorChatBubble.tsx | 2 +- .../DefaultErrorFallback.tsx | 2 +- .../components/DocumentName/DocumentName.tsx | 24 +- apps/dotcom/src/components/ExportMenu.tsx | 4 +- apps/dotcom/src/components/FileMenu.tsx | 2 +- .../dotcom/src/components/IFrameProtector.tsx | 2 +- apps/dotcom/src/components/Links.tsx | 2 +- apps/dotcom/src/components/LocalEditor.tsx | 4 +- .../src/components/MultiplayerEditor.tsx | 4 +- .../src/components/PeopleMenu/PeopleMenu.tsx | 2 +- .../PeopleMenu/PeopleMenuAvatar.tsx | 2 +- .../components/PeopleMenu/PeopleMenuItem.tsx | 4 +- .../PeopleMenu/UserPresenceColorPicker.tsx | 4 +- .../PeopleMenu/UserPresenceEditor.tsx | 4 +- apps/dotcom/src/components/ShareButton.tsx | 2 +- apps/dotcom/src/components/ShareMenu.tsx | 4 +- .../dotcom/src/components/SnapshotsEditor.tsx | 2 +- .../src/components/SneakyOnDropOverride.ts | 2 +- .../src/components/StoreErrorScreen.tsx | 2 +- .../components/ThemeUpdater/ThemeUpdater.tsx | 2 +- apps/dotcom/src/hooks/useLocalStore.ts | 6 +- apps/dotcom/src/hooks/useMultiplayerAssets.ts | 4 +- apps/dotcom/src/hooks/useRemoteSyncClient.ts | 6 +- apps/dotcom/src/hooks/useShareMenuOpen.ts | 2 +- apps/dotcom/src/hooks/useUrlState.ts | 2 +- apps/dotcom/src/pages/public-snapshot.tsx | 2 +- apps/dotcom/src/utils/cloneAssetForShare.ts | 2 +- .../utils/context-menu/CursorChatMenuItem.tsx | 2 +- apps/dotcom/src/utils/createAssetFromFile.ts | 2 +- apps/dotcom/src/utils/createAssetFromUrl.ts | 7 +- .../src/utils/migration/DebugMenuItems.tsx | 2 +- .../src/utils/migration/LocalMigration.tsx | 2 +- .../utils/migration/MigrationAnnouncement.tsx | 2 +- apps/dotcom/src/utils/migration/migration.tsx | 2 +- .../remote-sync/ClientWebSocketAdapter.ts | 2 +- .../src/utils/remote-sync/remote-sync.ts | 2 +- apps/dotcom/src/utils/sharing.ts | 6 +- apps/dotcom/src/utils/shouldClearDocument.tsx | 2 +- .../src/utils/shouldLeaveSharedProject.tsx | 2 +- .../src/utils/shouldOverrideDocument.tsx | 2 +- apps/dotcom/src/utils/useCursorChat.ts | 2 +- apps/dotcom/src/utils/useFileSystem.tsx | 6 +- apps/dotcom/src/utils/userPreferences.ts | 2 +- apps/dotcom/styles/globals.css | 2 +- apps/examples/e2e/shared-e2e.ts | 2 +- .../e2e/tests/export-snapshots.spec.ts | 4 +- .../e2e/tests/test-canvas-events.spec.ts | 2 +- .../examples/e2e/tests/test-clipboard.spec.ts | 2 +- apps/examples/e2e/tests/test-focus.spec.ts | 2 +- apps/examples/e2e/tests/test-smoke.spec.ts | 2 +- .../e2e/tests/test-style-panel.spec.ts | 2 +- apps/examples/e2e/tests/test-text.spec.ts | 2 +- apps/examples/package.json | 2 +- apps/examples/src/examples/api/APIExample.tsx | 4 +- .../asset-props/AssetPropsExample.tsx | 4 +- .../src/examples/basic/BasicExample.tsx | 4 +- .../BoundsSnappingShape.tsx | 2 +- .../PlayingCardShape/playing-card-tool.tsx | 2 +- .../PlayingCardShape/playing-card-util.tsx | 2 +- .../bounds-snapping-shape/ui-overrides.tsx | 2 +- .../canvas-events/CanvasEventsExample.tsx | 4 +- .../ChangingDefaultColorsExample.tsx | 4 +- .../context-toolbar/ContextToolbar.tsx | 4 +- .../CustomActionsMenuExample.tsx | 4 +- .../CustomComponentsExample.tsx | 4 +- .../custom-config/CardShape/CardShapeTool.tsx | 2 +- .../custom-config/CardShape/CardShapeUtil.tsx | 4 +- .../CardShape/card-shape-migrations.ts | 2 +- .../CardShape/card-shape-props.ts | 2 +- .../CardShape/card-shape-types.ts | 2 +- .../custom-config/CustomConfigExample.tsx | 4 +- .../examples/custom-config/ui-overrides.tsx | 2 +- .../CustomContextMenuExample.tsx | 4 +- .../CustomDebugMenuExample.tsx | 4 +- .../CustomHelpMenuExample.tsx | 4 +- .../CustomKeyboardShortcutsDialogExample.tsx | 4 +- .../CustomMainMenuExample.tsx | 4 +- .../CustomNavigationPanelExample.tsx | 4 +- .../CustomPageMenuExample.tsx | 4 +- .../CustomQuickActions.tsx | 4 +- .../CustomStylePanelExample.tsx | 4 +- .../src/examples/custom-styles/CardShape.tsx | 2 +- .../custom-styles/CustomStylesExample.tsx | 4 +- .../examples/custom-styles/FilterStyleUi.tsx | 2 +- .../examples/custom-styles/ui-overrides.tsx | 2 +- .../custom-toolbar/CustomToolbarExample.tsx | 4 +- .../examples/custom-ui/CustomUiExample.tsx | 4 +- .../CustomZoomMenuExample.tsx | 4 +- .../editable-shape/EditableShapeExample.tsx | 4 +- .../editable-shape/my-shape/my-shape-tool.tsx | 2 +- .../editable-shape/my-shape/my-shape-util.tsx | 4 +- .../examples/editable-shape/ui-overrides.tsx | 2 +- .../editor-focus/EditorFocusExample.tsx | 4 +- .../error-boundary/ErrorBoundaryExample.tsx | 4 +- .../src/examples/error-boundary/ErrorShape.ts | 2 +- .../src/examples/exploded/ExplodedExample.tsx | 4 +- .../ExternalContentSourcesExample.tsx | 4 +- .../external-dialog/ExternalDialog.tsx | 4 +- .../ExternalUiContextExample.tsx | 4 +- .../external-ui/ExternalUiExample.tsx | 4 +- .../examples/floaty-window/FloatyExample.tsx | 4 +- .../force-mobile/ForceBreakpointExample.tsx | 4 +- .../src/examples/hide-ui/HideUiExample.tsx | 4 +- .../hosted-images/HostedImagesExample.tsx | 6 +- .../image-component/TldrawImageExample.tsx | 4 +- .../infer-dark-mode/InferDarkModeExample.tsx | 4 +- .../src/examples/inline/InlineExample.tsx | 4 +- .../inset-canvas/InsetCanvasExample.tsx | 4 +- .../src/examples/inset/InsetExample.tsx | 4 +- .../keyboard-shortcuts/KeyboardShortcuts.tsx | 4 +- .../local-images/LocalImagesExample.tsx | 4 +- .../local-storage/LocalStorageExample.tsx | 4 +- .../OnChangeShapeMetaExample.tsx | 4 +- .../OnCreateShapeMetaExample.tsx | 4 +- .../src/examples/multiple/MultipleExample.tsx | 4 +- .../examples/only-editor/MicroSelectTool.ts | 2 +- .../src/examples/only-editor/MiniBoxShape.tsx | 2 +- .../examples/only-editor/MiniSelectTool.ts | 2 +- .../peristence-key/PersistenceKeyExample.tsx | 4 +- .../src/examples/readonly/ReadOnlyExample.tsx | 4 +- .../ScreenshotTool/ScreenshotTool.ts | 2 +- .../ScreenshotTool/childStates/Dragging.ts | 2 +- .../ScreenshotTool/childStates/Idle.ts | 2 +- .../ScreenshotTool/childStates/Pointing.ts | 2 +- .../screenshot-tool/ScreenshotToolExample.tsx | 4 +- .../src/examples/scroll/ScrollExample.tsx | 4 +- .../examples/shape-meta/ShapeMetaExample.tsx | 4 +- .../examples/snapshots/SnapshotExample.tsx | 4 +- .../speech-bubble/CustomShapeWithHandles.tsx | 4 +- .../SpeechBubble/SpeechBubbleTool.tsx | 2 +- .../SpeechBubble/SpeechBubbleUtil.tsx | 5 +- .../speech-bubble/SpeechBubble/helpers.tsx | 2 +- .../SpeechBubble/ui-overrides.tsx | 2 +- .../static-assets/StaticAssetsExample.tsx | 4 +- .../store-events/StoreEventsExample.tsx | 4 +- .../things-on-the-canvas/OnTheCanvas.tsx | 11 +- .../UiComponentsHiddenExample.tsx | 4 +- .../examples/ui-events/UiEventsExample.tsx | 4 +- .../user-presence/UserPresenceExample.tsx | 4 +- .../src/examples/zones/ZonesExample.tsx | 4 +- apps/examples/src/index.tsx | 6 +- apps/examples/src/misc/develop.tsx | 4 +- apps/examples/src/misc/end-to-end.tsx | 4 +- apps/vscode/editor/package.json | 2 +- apps/vscode/editor/src/ChangeResponder.tsx | 4 +- apps/vscode/editor/src/FileOpen.tsx | 2 +- apps/vscode/editor/src/Links.tsx | 2 +- apps/vscode/editor/src/app.tsx | 6 +- apps/vscode/editor/src/utils/bookmarks.ts | 2 +- apps/vscode/editor/src/utils/rpc.ts | 2 +- apps/vscode/extension/package.json | 2 +- apps/vscode/extension/src/TldrawDocument.ts | 2 +- .../extension/src/TldrawWebviewManager.ts | 2 +- .../extension/src/WebViewMessageHandler.ts | 2 +- apps/vscode/extension/src/file.ts | 2 +- packages/editor/api/api.json | 4 +- packages/editor/src/lib/TldrawEditor.tsx | 6 +- .../editor/src/lib/editor/tools/RootState.ts | 2 +- packages/namespaced-tldraw/LICENSE.md | 1 + packages/namespaced-tldraw/README.md | 4 + packages/namespaced-tldraw/api-extractor.json | 20 + packages/namespaced-tldraw/api-report.md | 12 + packages/namespaced-tldraw/api/api.json | 177 ++ packages/namespaced-tldraw/package.json | 82 + .../scripts/copy-css-files.mjs | 12 + packages/namespaced-tldraw/src/index.test.ts | 10 + packages/namespaced-tldraw/src/index.ts | 2 + packages/namespaced-tldraw/tsconfig.json | 15 + packages/tldraw/README.md | 18 +- packages/tldraw/api-report.md | 2 +- packages/tldraw/api/api.json | 1748 ++++++++--------- packages/tldraw/package.json | 2 +- packages/tldraw/scripts/copy-css-files.mjs | 4 +- packages/tldraw/src/lib/TldrawImage.tsx | 2 +- packages/tldraw/src/lib/ui/TldrawUi.tsx | 4 +- .../ui/context/TldrawUiContextProvider.tsx | 2 +- packages/tlsync/package.json | 2 +- packages/tlsync/src/test/FuzzEditor.ts | 2 +- packages/tlsync/src/test/TLServer.test.ts | 2 +- packages/tlsync/src/test/schema.test.ts | 2 +- packages/tlsync/src/test/syncFuzz.test.ts | 6 +- scripts/check-scripts.ts | 2 +- scripts/check-tsconfigs.ts | 2 +- scripts/lib/publishing.ts | 24 +- templates/nextjs/package.json | 2 +- templates/nextjs/src/app/globals.css | 8 +- templates/nextjs/src/app/page.tsx | 2 +- templates/vite/package.json | 2 +- templates/vite/src/App.tsx | 2 +- templates/vite/src/index.css | 4 +- yarn.lock | 71 +- 206 files changed, 1602 insertions(+), 1263 deletions(-) create mode 100644 packages/namespaced-tldraw/LICENSE.md create mode 100644 packages/namespaced-tldraw/README.md create mode 100644 packages/namespaced-tldraw/api-extractor.json create mode 100644 packages/namespaced-tldraw/api-report.md create mode 100644 packages/namespaced-tldraw/api/api.json create mode 100644 packages/namespaced-tldraw/package.json create mode 100644 packages/namespaced-tldraw/scripts/copy-css-files.mjs create mode 100644 packages/namespaced-tldraw/src/index.test.ts create mode 100644 packages/namespaced-tldraw/src/index.ts create mode 100644 packages/namespaced-tldraw/tsconfig.json diff --git a/.eslintrc.js b/.eslintrc.js index 97d940e71..b30c4aff9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -46,7 +46,7 @@ module.exports = { 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'error', 'import/no-extraneous-dependencies': 'error', - 'import/no-internal-modules': ['error', { forbid: ['@tldraw/*/**'] }], + 'import/no-internal-modules': ['error', { forbid: ['@tldraw/*/**', 'tldraw/**'] }], '@typescript-eslint/consistent-type-exports': [ 'error', { fixMixedExportsWithInlineTypeSpecifier: true }, diff --git a/.github/workflows/publish-templates.yml b/.github/workflows/publish-templates.yml index 90db6468e..cc9d204fc 100644 --- a/.github/workflows/publish-templates.yml +++ b/.github/workflows/publish-templates.yml @@ -29,9 +29,9 @@ jobs: - name: Substitute the latest published version of tldraw run: | export TEMPLATE=vite NPM_TAG=latest && \ - npm view @tldraw/tldraw dist-tags --json | jq -r ".$NPM_TAG" > /tmp/latest_tldraw && \ + npm view tldraw dist-tags --json | jq -r ".$NPM_TAG" > /tmp/latest_tldraw && \ cp "templates/$TEMPLATE/package.json" /tmp/template_package.json && \ - jq --tab --arg latest_tldraw "$(< /tmp/latest_tldraw)" '.dependencies."@tldraw/tldraw" |= $latest_tldraw' /tmp/template_package.json > "templates/$TEMPLATE/package.json" + jq --tab --arg latest_tldraw "$(< /tmp/latest_tldraw)" '.dependencies."tldraw" |= $latest_tldraw' /tmp/template_package.json > "templates/$TEMPLATE/package.json" - name: Push vite template to tldraw/vite-template uses: cpina/github-action-push-to-another-repository@07c4d7b3def0a8ebe788a8f2c843a4e1de4f6900 # v1.7.2 @@ -56,12 +56,12 @@ jobs: - name: Substitute the latest published version of tldraw run: | export TEMPLATE=nextjs NPM_TAG=latest && \ - npm view @tldraw/tldraw dist-tags --json | jq -r ".$NPM_TAG" > /tmp/latest_tldraw && \ + npm view tldraw dist-tags --json | jq -r ".$NPM_TAG" > /tmp/latest_tldraw && \ cp "templates/$TEMPLATE/package.json" /tmp/template_package.json && \ - jq --tab --arg latest_tldraw "$(< /tmp/latest_tldraw)" '.dependencies."@tldraw/tldraw" |= $latest_tldraw' /tmp/template_package.json > "templates/$TEMPLATE/package.json" + jq --tab --arg latest_tldraw "$(< /tmp/latest_tldraw)" '.dependencies."tldraw" |= $latest_tldraw' /tmp/template_package.json > "templates/$TEMPLATE/package.json" - name: Push next.js template to tldraw/nextjs-template - uses: cpina/github-action-push-to-another-repository@07c4d7b3def0a8ebe788a8f2c843a4e1de4f6900 # v1.7.2 + uses: cpina/github-action-push-to-another-repository@07c4d7b3def0a8ebe788a8f2c843a4e1de4f6900 # v1.7.2 env: SSH_DEPLOY_KEY: ${{ secrets.NEXTJS_TEMPLATE_REPO_SSH_DEPLOY_KEY }} with: diff --git a/apps/docs/components/ExampleCodeBlock.tsx b/apps/docs/components/ExampleCodeBlock.tsx index 7784fc3a0..32e9dcab2 100644 --- a/apps/docs/components/ExampleCodeBlock.tsx +++ b/apps/docs/components/ExampleCodeBlock.tsx @@ -35,7 +35,7 @@ export default function ExampleCodeBlock({ customSetup={{ dependencies: { '@tldraw/assets': 'latest', - '@tldraw/tldraw': 'latest', + tldraw: 'latest', }, }} files={{ diff --git a/apps/docs/components/mdx-components/code.tsx b/apps/docs/components/mdx-components/code.tsx index f291883a0..b46b2cb01 100644 --- a/apps/docs/components/mdx-components/code.tsx +++ b/apps/docs/components/mdx-components/code.tsx @@ -36,7 +36,7 @@ export function CodeBlock({ code }: { code: SandpackFiles }) { customSetup={{ dependencies: { '@tldraw/assets': 'latest', - '@tldraw/tldraw': 'latest', + tldraw: 'latest', }, }} files={trimmedCode} diff --git a/apps/docs/content/docs/collaboration.mdx b/apps/docs/content/docs/collaboration.mdx index 6e4ce6ee5..89b5cb37f 100644 --- a/apps/docs/content/docs/collaboration.mdx +++ b/apps/docs/content/docs/collaboration.mdx @@ -6,4 +6,4 @@ date: 3/22/2023 order: 8 --- -See the [tldraw-yjs example](https://github.com/tldraw/tldraw-yjs-example) for an example of how to use yjs with the `@tldraw/tldraw` library. +See the [tldraw-yjs example](https://github.com/tldraw/tldraw-yjs-example) for an example of how to use yjs with the `tldraw` library. diff --git a/apps/docs/content/docs/editor.mdx b/apps/docs/content/docs/editor.mdx index 53b511d54..dfd3f4192 100644 --- a/apps/docs/content/docs/editor.mdx +++ b/apps/docs/content/docs/editor.mdx @@ -29,7 +29,7 @@ The editor also exposes many _computed_ values which are derived from other reco You can use these properties directly or you can use them in signals. ```tsx -import { track, useEditor } from '@tldraw/tldraw' +import { track, useEditor } from 'tldraw' export const SelectedShapeIdsCount = track(() => { const editor = useEditor() @@ -159,7 +159,7 @@ Note that the paths you pass to [Editor#isIn](?) or [Editor#isInAny](?) can be t > If all you're interested in is the state below `root`, there is a convenience method, [Editor#getCurrentToolId](?), that can help with the editor's currently selected tool. ```tsx -import { track, useEditor } from '@tldraw/tldraw' +import { track, useEditor } from 'tldraw' export const BubbleToolUi = track(() => { const editor = useEditor() @@ -193,7 +193,7 @@ The editor's user preferences are shared between all instances. See the [TLUserP To create an id for a shape (a [TLShapeId](?)), use the libary's [createShapeId](?) helper. ```ts -import { createShapeId } from '@tldraw/tldraw' +import { createShapeId } from 'tldraw' createShapeId() // `shape:some-random-uuid` createShapeId('kyle') // `shape:kyle` diff --git a/apps/docs/content/docs/persistence.mdx b/apps/docs/content/docs/persistence.mdx index 07d763085..f5908bf97 100644 --- a/apps/docs/content/docs/persistence.mdx +++ b/apps/docs/content/docs/persistence.mdx @@ -20,8 +20,8 @@ Persistence in tldraw means storing information about the editor's state to a da Both the `` or `` components support local persitence and cross-tab synchronization via the `persistenceKey` prop. Passing a value to this prop will persist the contents of the editor locally to the browser's IndexedDb. ```tsx -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' export default function () { return ( @@ -35,8 +35,8 @@ export default function () { Using a `persistenceKey` will synchronize data automatically with any other tldraw component with the same `persistenceKey` prop, even if that component is in a different browser tab. ```tsx -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' export default function () { return ( diff --git a/apps/docs/content/docs/shapes.mdx b/apps/docs/content/docs/shapes.mdx index 125f1f6ff..26c5900e3 100644 --- a/apps/docs/content/docs/shapes.mdx +++ b/apps/docs/content/docs/shapes.mdx @@ -25,7 +25,7 @@ The editor's core shapes are shapes that are built in and always present. At the ### Default shapes -The default shapes are all of the shapes that are included by default in the [Tldraw](?) component, such as the [TLArrowShape](?) or [TLDrawShape](?). They are exported from the `@tldraw/tldraw` library as [defaultShapeUtils](?). +The default shapes are all of the shapes that are included by default in the [Tldraw](?) component, such as the [TLArrowShape](?) or [TLDrawShape](?). They are exported from the `tldraw` library as [defaultShapeUtils](?). ### Custom shapes @@ -96,7 +96,7 @@ You can create your own custom shapes. In the examples below, we will create a c In tldraw's data model, each shape is represented by a JSON object. Let's first create a type that describes what this object will look like. ```ts -import { TLBaseShape } from '@tldraw/tldraw' +import { TLBaseShape } from 'tldraw' type CardShape = TLBaseShape<'card', { w: number; h: number }> ``` @@ -112,7 +112,7 @@ While tldraw's shapes themselves are simple JSON objects, we use [ShapeUtil](?) Let's create a [ShapeUtil](?) class for the shape. ```tsx -import { HTMLContainer, ShapeUtil } from '@tldraw/tldraw' +import { HTMLContainer, ShapeUtil } from 'tldraw' class CardShapeUtil extends ShapeUtil { static override type = 'card' as const diff --git a/apps/docs/content/getting-started/installation.mdx b/apps/docs/content/getting-started/installation.mdx index 7cc0c7c86..c519dc130 100644 --- a/apps/docs/content/getting-started/installation.mdx +++ b/apps/docs/content/getting-started/installation.mdx @@ -6,27 +6,27 @@ date: 3/22/2023 order: 1 --- -At the moment the `@tldraw/tldraw` package is in beta. We also ship a canary version which is always up to date with the main branch of tldraw [repository](https://github.com/tldraw/tldraw). +At the moment the `tldraw` package is in beta. We also ship a canary version which is always up to date with the main branch of tldraw [repository](https://github.com/tldraw/tldraw). ## Beta -First, install the `@tldraw/tldraw` package using `@beta` for the latest beta release. +First, install the `tldraw` package using `@beta` for the latest beta release. - + ## Canary -To get the very latest version, use the [latest canary release](https://www.npmjs.com/package/@tldraw/tldraw?activeTab=versions). Docs for the very latest version are also available at [canary.tldraw.dev](https://canary.tldraw.dev). +To get the very latest version, use the [latest canary release](https://www.npmjs.com/package/tldraw?activeTab=versions). Docs for the very latest version are also available at [canary.tldraw.dev](https://canary.tldraw.dev). - + ## Usage You can use the [Tldraw](?) component inside of any React component. ```tsx -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' export default function () { return ( @@ -43,16 +43,16 @@ It's important that the [Tldraw](?) component is wrapped in a parent container t ### CSS -In addition to the [Tldraw](?) component itself, you should also import the `tldraw.css` file from the `@tldraw/tldraw` package. +In addition to the [Tldraw](?) component itself, you should also import the `tldraw.css` file from the `tldraw` package. ```tsx -import '@tldraw/tldraw/tldraw.css' +import 'tldraw/tldraw.css' ``` You can alternatively import this file inside of another CSS file using the `@import` syntax. ```css -@import url('@tldraw/tldraw/tldraw.css'); +@import url('tldraw/tldraw.css'); ``` If you'd like to deeply change the way that tldraw looks, you can copy the `tldraw.css` file into a new CSS file, make your changes, and import that instead. @@ -80,15 +80,15 @@ This may not be critical to [Tldraw](?) performing correctly, however some featu The [Tldraw](?) component can't be server-rendered. If you're using the component in a server-rendered framework (such as Next.js) then you need to import it dynamically. ```tsx -const Tldraw = dynamic(async () => (await import('@tldraw/tldraw')).Tldraw, { ssr: false }) +const Tldraw = dynamic(async () => (await import('tldraw')).Tldraw, { ssr: false }) ``` ### Using a bundler -If you're using a bundler like webpack or rollup, you can import the assets directly from the `@tldraw/assets` package. Here you can use `getAssetUrlsByMetaUrl` helper function: +If you're using a bundler like webpack or rollup, you can import the assets directly from the `assets` package. Here you can use `getAssetUrlsByMetaUrl` helper function: ```tsx -import { getAssetUrlsByMetaUrl } from '@tldraw/assets/urls' +import { getAssetUrlsByMetaUrl } from 'assets/urls' const assetUrls = getAssetUrlsByMetaUrl() diff --git a/apps/docs/content/getting-started/quick-start.mdx b/apps/docs/content/getting-started/quick-start.mdx index 18a9aedf1..1867e09a0 100644 --- a/apps/docs/content/getting-started/quick-start.mdx +++ b/apps/docs/content/getting-started/quick-start.mdx @@ -24,7 +24,7 @@ By the end of this guide you will have made something that looks like this: - Install the tldraw library using this command: ```bash - npm install @tldraw/tldraw@beta + npm install tldraw@beta ```
  • @@ -36,7 +36,7 @@ By the end of this guide you will have made something that looks like this: - Copy and paste this into the file: ```CSS @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Roboto+Mono:wght@400;700&display=swap"); - @import url("@tldraw/tldraw/tldraw.css"); + @import url("tldraw/tldraw.css"); body { font-family: "Inter"; @@ -48,14 +48,14 @@ By the end of this guide you will have made something that looks like this:
    To render the Tldraw component - - Import the `` component from `@tldraw/tldraw` + - Import the `` component from `tldraw` - Import the `index.css` CSS file from earlier - Wrap the Tldraw component in a `
    ` element with the style attribute set to: `{ position: 'fixed', inset: 0 }`

    This will render a full screen canvas:

    ```javascript - import { Tldraw } from "@tldraw/tldraw"; + import { Tldraw } from "tldraw"; import "./index.css"; export default function App() { diff --git a/apps/docs/content/sections.json b/apps/docs/content/sections.json index 8a68ff0c5..5ba4169fc 100644 --- a/apps/docs/content/sections.json +++ b/apps/docs/content/sections.json @@ -97,7 +97,7 @@ }, { "id": "tldraw", - "title": "@tldraw/tldraw", + "title": "tldraw", "description": "", "groups": [ { diff --git a/apps/docs/scripts/functions/fetchReleases.ts b/apps/docs/scripts/functions/fetchReleases.ts index 34f0fcd4d..ffa5f8138 100644 --- a/apps/docs/scripts/functions/fetchReleases.ts +++ b/apps/docs/scripts/functions/fetchReleases.ts @@ -63,7 +63,7 @@ export async function fetchReleases() { fs.writeFileSync(filePath, m) }) } else { - throw Error(`x Could not get releases for @tldraw/tldraw.`) + throw Error(`x Could not get releases for tldraw.`) } } catch (error) { nicelog(`x Could not generate release content.`) diff --git a/apps/dotcom/package.json b/apps/dotcom/package.json index 4c1e17f96..b0f06a056 100644 --- a/apps/dotcom/package.json +++ b/apps/dotcom/package.json @@ -23,7 +23,6 @@ "@sentry/integrations": "^7.34.0", "@sentry/react": "^7.77.0", "@tldraw/assets": "workspace:*", - "@tldraw/tldraw": "workspace:*", "@tldraw/tlsync": "workspace:*", "@vercel/analytics": "^1.1.1", "browser-fs-access": "^0.33.0", @@ -33,7 +32,8 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-helmet-async": "^1.3.0", - "react-router-dom": "^6.17.0" + "react-router-dom": "^6.17.0", + "tldraw": "workspace:*" }, "devDependencies": { "@jest/globals": "30.0.0-alpha.2", diff --git a/apps/dotcom/sentry.client.config.ts b/apps/dotcom/sentry.client.config.ts index 13417f2e9..5c058dda6 100644 --- a/apps/dotcom/sentry.client.config.ts +++ b/apps/dotcom/sentry.client.config.ts @@ -4,7 +4,7 @@ import { ExtraErrorData } from '@sentry/integrations' import * as Sentry from '@sentry/react' -import { Editor, getErrorAnnotations } from '@tldraw/tldraw' +import { Editor, getErrorAnnotations } from 'tldraw' import { sentryReleaseName } from './sentry-release-name' import { env } from './src/utils/env' import { setGlobalErrorReporter } from './src/utils/errorReporting' diff --git a/apps/dotcom/src/components/BoardHistorySnapshot/BoardHistorySnapshot.tsx b/apps/dotcom/src/components/BoardHistorySnapshot/BoardHistorySnapshot.tsx index e4f06174f..300740bdf 100644 --- a/apps/dotcom/src/components/BoardHistorySnapshot/BoardHistorySnapshot.tsx +++ b/apps/dotcom/src/components/BoardHistorySnapshot/BoardHistorySnapshot.tsx @@ -1,6 +1,6 @@ -import { Tldraw, createTLStore, defaultShapeUtils } from '@tldraw/tldraw' import { RoomSnapshot } from '@tldraw/tlsync' import { useCallback, useState } from 'react' +import { Tldraw, createTLStore, defaultShapeUtils } from 'tldraw' import '../../../styles/core.css' import { assetUrls } from '../../utils/assetUrls' import { useFileSystem } from '../../utils/useFileSystem' diff --git a/apps/dotcom/src/components/CursorChatBubble.tsx b/apps/dotcom/src/components/CursorChatBubble.tsx index a7fa62b62..7d6ed5bc1 100644 --- a/apps/dotcom/src/components/CursorChatBubble.tsx +++ b/apps/dotcom/src/components/CursorChatBubble.tsx @@ -1,4 +1,3 @@ -import { preventDefault, track, useContainer, useEditor, useTranslation } from '@tldraw/tldraw' import { ChangeEvent, ClipboardEvent, @@ -10,6 +9,7 @@ import { useRef, useState, } from 'react' +import { preventDefault, track, useContainer, useEditor, useTranslation } from 'tldraw' // todo: // - not cleaning up diff --git a/apps/dotcom/src/components/DefaultErrorFallback/DefaultErrorFallback.tsx b/apps/dotcom/src/components/DefaultErrorFallback/DefaultErrorFallback.tsx index 7e3975467..da1424470 100644 --- a/apps/dotcom/src/components/DefaultErrorFallback/DefaultErrorFallback.tsx +++ b/apps/dotcom/src/components/DefaultErrorFallback/DefaultErrorFallback.tsx @@ -1,7 +1,7 @@ import { captureException } from '@sentry/react' -import { DefaultErrorFallback as ErrorFallback } from '@tldraw/tldraw' import { useEffect } from 'react' import { useRouteError } from 'react-router-dom' +import { DefaultErrorFallback as ErrorFallback } from 'tldraw' export function DefaultErrorFallback() { const error = useRouteError() diff --git a/apps/dotcom/src/components/DocumentName/DocumentName.tsx b/apps/dotcom/src/components/DocumentName/DocumentName.tsx index aea0d72e0..faeaebf5b 100644 --- a/apps/dotcom/src/components/DocumentName/DocumentName.tsx +++ b/apps/dotcom/src/components/DocumentName/DocumentName.tsx @@ -1,3 +1,14 @@ +import { + ChangeEvent, + KeyboardEvent, + ReactNode, + SetStateAction, + useCallback, + useEffect, + useLayoutEffect, + useRef, + useState, +} from 'react' import { OfflineIndicator, TLUiTranslationKey, @@ -14,18 +25,7 @@ import { useBreakpoint, useEditor, useTranslation, -} from '@tldraw/tldraw' -import { - ChangeEvent, - KeyboardEvent, - ReactNode, - SetStateAction, - useCallback, - useEffect, - useLayoutEffect, - useRef, - useState, -} from 'react' +} from 'tldraw' import { FORK_PROJECT_ACTION } from '../../utils/sharing' import { SAVE_FILE_COPY_ACTION } from '../../utils/useFileSystem' import { getShareUrl } from '../ShareMenu' diff --git a/apps/dotcom/src/components/ExportMenu.tsx b/apps/dotcom/src/components/ExportMenu.tsx index f920bab2d..b63fef904 100644 --- a/apps/dotcom/src/components/ExportMenu.tsx +++ b/apps/dotcom/src/components/ExportMenu.tsx @@ -1,4 +1,5 @@ import * as Popover from '@radix-ui/react-popover' +import React, { useState } from 'react' import { TldrawUiMenuContextProvider, TldrawUiMenuGroup, @@ -8,8 +9,7 @@ import { useContainer, useEditor, useTranslation, -} from '@tldraw/tldraw' -import React, { useState } from 'react' +} from 'tldraw' import { useShareMenuIsOpen } from '../hooks/useShareMenuOpen' import { SHARE_PROJECT_ACTION, SHARE_SNAPSHOT_ACTION } from '../utils/sharing' import { getSaveFileCopyAction } from '../utils/useFileSystem' diff --git a/apps/dotcom/src/components/FileMenu.tsx b/apps/dotcom/src/components/FileMenu.tsx index b096f8d2b..f1f5c19dc 100644 --- a/apps/dotcom/src/components/FileMenu.tsx +++ b/apps/dotcom/src/components/FileMenu.tsx @@ -4,7 +4,7 @@ import { TldrawUiMenuItem, TldrawUiMenuSubmenu, useActions, -} from '@tldraw/tldraw' +} from 'tldraw' import { FORK_PROJECT_ACTION, LEAVE_SHARED_PROJECT_ACTION, diff --git a/apps/dotcom/src/components/IFrameProtector.tsx b/apps/dotcom/src/components/IFrameProtector.tsx index 0b5ab18af..6fc1962d5 100644 --- a/apps/dotcom/src/components/IFrameProtector.tsx +++ b/apps/dotcom/src/components/IFrameProtector.tsx @@ -1,5 +1,5 @@ -import { LoadingScreen } from '@tldraw/tldraw' import { useEffect, useState, version } from 'react' +import { LoadingScreen } from 'tldraw' import { useUrl } from '../hooks/useUrl' import { trackAnalyticsEvent } from '../utils/trackAnalyticsEvent' diff --git a/apps/dotcom/src/components/Links.tsx b/apps/dotcom/src/components/Links.tsx index d5fb8e6be..cc02434a5 100644 --- a/apps/dotcom/src/components/Links.tsx +++ b/apps/dotcom/src/components/Links.tsx @@ -1,4 +1,4 @@ -import { TldrawUiMenuGroup, TldrawUiMenuItem } from '@tldraw/tldraw' +import { TldrawUiMenuGroup, TldrawUiMenuItem } from 'tldraw' import { openUrl } from '../utils/url' export function Links() { diff --git a/apps/dotcom/src/components/LocalEditor.tsx b/apps/dotcom/src/components/LocalEditor.tsx index 828a48277..77d0c774f 100644 --- a/apps/dotcom/src/components/LocalEditor.tsx +++ b/apps/dotcom/src/components/LocalEditor.tsx @@ -1,3 +1,4 @@ +import { useCallback } from 'react' import { DefaultDebugMenu, DefaultDebugMenuContent, @@ -17,8 +18,7 @@ import { TldrawUiMenuItem, ViewSubmenu, useActions, -} from '@tldraw/tldraw' -import { useCallback } from 'react' +} from 'tldraw' import { assetUrls } from '../utils/assetUrls' import { createAssetFromUrl } from '../utils/createAssetFromUrl' import { DebugMenuItems } from '../utils/migration/DebugMenuItems' diff --git a/apps/dotcom/src/components/MultiplayerEditor.tsx b/apps/dotcom/src/components/MultiplayerEditor.tsx index c42643cfd..2b1b8e2de 100644 --- a/apps/dotcom/src/components/MultiplayerEditor.tsx +++ b/apps/dotcom/src/components/MultiplayerEditor.tsx @@ -1,3 +1,4 @@ +import { useCallback, useEffect } from 'react' import { DefaultContextMenu, DefaultContextMenuContent, @@ -22,8 +23,7 @@ import { lns, useActions, useValue, -} from '@tldraw/tldraw' -import { useCallback, useEffect } from 'react' +} from 'tldraw' import { useRemoteSyncClient } from '../hooks/useRemoteSyncClient' import { UrlStateParams, useUrlState } from '../hooks/useUrlState' import { assetUrls } from '../utils/assetUrls' diff --git a/apps/dotcom/src/components/PeopleMenu/PeopleMenu.tsx b/apps/dotcom/src/components/PeopleMenu/PeopleMenu.tsx index 52c48936b..6160a39eb 100644 --- a/apps/dotcom/src/components/PeopleMenu/PeopleMenu.tsx +++ b/apps/dotcom/src/components/PeopleMenu/PeopleMenu.tsx @@ -10,7 +10,7 @@ import { usePeerIds, useTranslation, useValue, -} from '@tldraw/tldraw' +} from 'tldraw' import { PeopleMenuAvatar } from './PeopleMenuAvatar' import { PeopleMenuItem } from './PeopleMenuItem' import { PeopleMenuMore } from './PeopleMenuMore' diff --git a/apps/dotcom/src/components/PeopleMenu/PeopleMenuAvatar.tsx b/apps/dotcom/src/components/PeopleMenu/PeopleMenuAvatar.tsx index b864cf636..35ef4b8ad 100644 --- a/apps/dotcom/src/components/PeopleMenu/PeopleMenuAvatar.tsx +++ b/apps/dotcom/src/components/PeopleMenu/PeopleMenuAvatar.tsx @@ -1,4 +1,4 @@ -import { usePresence } from '@tldraw/tldraw' +import { usePresence } from 'tldraw' export function PeopleMenuAvatar({ userId }: { userId: string }) { const presence = usePresence(userId) diff --git a/apps/dotcom/src/components/PeopleMenu/PeopleMenuItem.tsx b/apps/dotcom/src/components/PeopleMenu/PeopleMenuItem.tsx index ca6a599da..202a78657 100644 --- a/apps/dotcom/src/components/PeopleMenu/PeopleMenuItem.tsx +++ b/apps/dotcom/src/components/PeopleMenu/PeopleMenuItem.tsx @@ -1,3 +1,4 @@ +import { useCallback } from 'react' import { TldrawUiButton, TldrawUiButtonIcon, @@ -7,8 +8,7 @@ import { usePresence, useTranslation, useUiEvents, -} from '@tldraw/tldraw' -import { useCallback } from 'react' +} from 'tldraw' import { UI_OVERRIDE_TODO_EVENT } from '../../utils/useHandleUiEvent' export const PeopleMenuItem = track(function PeopleMenuItem({ userId }: { userId: string }) { diff --git a/apps/dotcom/src/components/PeopleMenu/UserPresenceColorPicker.tsx b/apps/dotcom/src/components/PeopleMenu/UserPresenceColorPicker.tsx index 955b3664b..68c69dcad 100644 --- a/apps/dotcom/src/components/PeopleMenu/UserPresenceColorPicker.tsx +++ b/apps/dotcom/src/components/PeopleMenu/UserPresenceColorPicker.tsx @@ -1,4 +1,5 @@ import * as Popover from '@radix-ui/react-popover' +import React, { useCallback, useRef, useState } from 'react' import { TldrawUiButton, TldrawUiButtonIcon, @@ -8,8 +9,7 @@ import { useEditor, useTranslation, useUiEvents, -} from '@tldraw/tldraw' -import React, { useCallback, useRef, useState } from 'react' +} from 'tldraw' import { UI_OVERRIDE_TODO_EVENT } from '../../utils/useHandleUiEvent' export const UserPresenceColorPicker = track(function UserPresenceColorPicker() { diff --git a/apps/dotcom/src/components/PeopleMenu/UserPresenceEditor.tsx b/apps/dotcom/src/components/PeopleMenu/UserPresenceEditor.tsx index ba0664bc4..ab168473f 100644 --- a/apps/dotcom/src/components/PeopleMenu/UserPresenceEditor.tsx +++ b/apps/dotcom/src/components/PeopleMenu/UserPresenceEditor.tsx @@ -1,3 +1,4 @@ +import { useCallback, useRef, useState } from 'react' import { TldrawUiButton, TldrawUiButtonIcon, @@ -6,8 +7,7 @@ import { useTranslation, useUiEvents, useValue, -} from '@tldraw/tldraw' -import { useCallback, useRef, useState } from 'react' +} from 'tldraw' import { UI_OVERRIDE_TODO_EVENT } from '../../utils/useHandleUiEvent' import { UserPresenceColorPicker } from './UserPresenceColorPicker' diff --git a/apps/dotcom/src/components/ShareButton.tsx b/apps/dotcom/src/components/ShareButton.tsx index 0282a519b..1c6da3a8b 100644 --- a/apps/dotcom/src/components/ShareButton.tsx +++ b/apps/dotcom/src/components/ShareButton.tsx @@ -1,5 +1,5 @@ -import { useTranslation } from '@tldraw/tldraw' import { ButtonHTMLAttributes, DetailedHTMLProps, forwardRef } from 'react' +import { useTranslation } from 'tldraw' export type ShareButtonProps = DetailedHTMLProps< ButtonHTMLAttributes, diff --git a/apps/dotcom/src/components/ShareMenu.tsx b/apps/dotcom/src/components/ShareMenu.tsx index 80f9c0301..1ea4810ac 100644 --- a/apps/dotcom/src/components/ShareMenu.tsx +++ b/apps/dotcom/src/components/ShareMenu.tsx @@ -1,4 +1,5 @@ import * as Popover from '@radix-ui/react-popover' +import React, { useEffect, useState } from 'react' import { TldrawUiMenuContextProvider, TldrawUiMenuGroup, @@ -8,8 +9,7 @@ import { useActions, useContainer, useTranslation, -} from '@tldraw/tldraw' -import React, { useEffect, useState } from 'react' +} from 'tldraw' import { useShareMenuIsOpen } from '../hooks/useShareMenuOpen' import { createQRCodeImageDataString } from '../utils/qrcode' import { SHARE_PROJECT_ACTION, SHARE_SNAPSHOT_ACTION } from '../utils/sharing' diff --git a/apps/dotcom/src/components/SnapshotsEditor.tsx b/apps/dotcom/src/components/SnapshotsEditor.tsx index 6719f88e3..3ea9a9fd0 100644 --- a/apps/dotcom/src/components/SnapshotsEditor.tsx +++ b/apps/dotcom/src/components/SnapshotsEditor.tsx @@ -12,7 +12,7 @@ import { TldrawUiMenuGroup, TldrawUiMenuItem, useActions, -} from '@tldraw/tldraw' +} from 'tldraw' import { UrlStateSync } from '../components/MultiplayerEditor' import { StoreErrorScreen } from '../components/StoreErrorScreen' import { useLocalStore } from '../hooks/useLocalStore' diff --git a/apps/dotcom/src/components/SneakyOnDropOverride.ts b/apps/dotcom/src/components/SneakyOnDropOverride.ts index 2e9346a56..cf957a0d4 100644 --- a/apps/dotcom/src/components/SneakyOnDropOverride.ts +++ b/apps/dotcom/src/components/SneakyOnDropOverride.ts @@ -1,5 +1,5 @@ -import { parseAndLoadDocument, useDefaultHelpers, useEditor } from '@tldraw/tldraw' import { useEffect } from 'react' +import { parseAndLoadDocument, useDefaultHelpers, useEditor } from 'tldraw' import { shouldOverrideDocument } from '../utils/shouldOverrideDocument' export function SneakyOnDropOverride({ isMultiplayer }: { isMultiplayer: boolean }) { diff --git a/apps/dotcom/src/components/StoreErrorScreen.tsx b/apps/dotcom/src/components/StoreErrorScreen.tsx index 3b34c1763..62c2177b2 100644 --- a/apps/dotcom/src/components/StoreErrorScreen.tsx +++ b/apps/dotcom/src/components/StoreErrorScreen.tsx @@ -1,5 +1,5 @@ -import { ErrorScreen, exhaustiveSwitchError } from '@tldraw/tldraw' import { TLIncompatibilityReason } from '@tldraw/tlsync' +import { ErrorScreen, exhaustiveSwitchError } from 'tldraw' import { RemoteSyncError } from '../utils/remote-sync/remote-sync' export function StoreErrorScreen({ error }: { error: Error }) { diff --git a/apps/dotcom/src/components/ThemeUpdater/ThemeUpdater.tsx b/apps/dotcom/src/components/ThemeUpdater/ThemeUpdater.tsx index 940690bfa..c8f5cd9c4 100644 --- a/apps/dotcom/src/components/ThemeUpdater/ThemeUpdater.tsx +++ b/apps/dotcom/src/components/ThemeUpdater/ThemeUpdater.tsx @@ -1,5 +1,5 @@ -import { useEditor, useValue } from '@tldraw/tldraw' import { Helmet } from 'react-helmet-async' +import { useEditor, useValue } from 'tldraw' export function ThemeUpdater() { const editor = useEditor() diff --git a/apps/dotcom/src/hooks/useLocalStore.ts b/apps/dotcom/src/hooks/useLocalStore.ts index 7af270cf9..6a966b456 100644 --- a/apps/dotcom/src/hooks/useLocalStore.ts +++ b/apps/dotcom/src/hooks/useLocalStore.ts @@ -1,3 +1,5 @@ +import { schema } from '@tldraw/tlsync' +import { useEffect, useState } from 'react' import { MigrationFailureReason, Result, @@ -5,9 +7,7 @@ import { TLRecord, TLStore, createTLStore, -} from '@tldraw/tldraw' -import { schema } from '@tldraw/tlsync' -import { useEffect, useState } from 'react' +} from 'tldraw' export function useLocalStore(records: TLRecord[], serializedSchema: SerializedSchema) { const [storeResult, setStoreResult] = useState< diff --git a/apps/dotcom/src/hooks/useMultiplayerAssets.ts b/apps/dotcom/src/hooks/useMultiplayerAssets.ts index 16b0857d1..796fad9ea 100644 --- a/apps/dotcom/src/hooks/useMultiplayerAssets.ts +++ b/apps/dotcom/src/hooks/useMultiplayerAssets.ts @@ -1,3 +1,4 @@ +import { useCallback } from 'react' import { AssetRecordType, DEFAULT_ACCEPTED_IMG_TYPE, @@ -6,8 +7,7 @@ import { TLAssetId, getHashForString, uniqueId, -} from '@tldraw/tldraw' -import { useCallback } from 'react' +} from 'tldraw' export function useMultiplayerAssets(assetUploaderUrl: string) { return useCallback( diff --git a/apps/dotcom/src/hooks/useRemoteSyncClient.ts b/apps/dotcom/src/hooks/useRemoteSyncClient.ts index 11fe84983..bdd134d4f 100644 --- a/apps/dotcom/src/hooks/useRemoteSyncClient.ts +++ b/apps/dotcom/src/hooks/useRemoteSyncClient.ts @@ -1,3 +1,5 @@ +import { TLSyncClient, schema } from '@tldraw/tlsync' +import { useEffect, useState } from 'react' import { TAB_ID, TLRecord, @@ -9,9 +11,7 @@ import { getUserPreferences, useTLStore, useValue, -} from '@tldraw/tldraw' -import { TLSyncClient, schema } from '@tldraw/tlsync' -import { useEffect, useState } from 'react' +} from 'tldraw' import { ClientWebSocketAdapter } from '../utils/remote-sync/ClientWebSocketAdapter' import { RemoteSyncError, UseSyncClientConfig } from '../utils/remote-sync/remote-sync' import { trackAnalyticsEvent } from '../utils/trackAnalyticsEvent' diff --git a/apps/dotcom/src/hooks/useShareMenuOpen.ts b/apps/dotcom/src/hooks/useShareMenuOpen.ts index aa9e73182..7622b77ac 100644 --- a/apps/dotcom/src/hooks/useShareMenuOpen.ts +++ b/apps/dotcom/src/hooks/useShareMenuOpen.ts @@ -1,5 +1,5 @@ -import { atom, useMenuIsOpen, useValue } from '@tldraw/tldraw' import { useEffect, useRef } from 'react' +import { atom, useMenuIsOpen, useValue } from 'tldraw' // When people click the 'create shared project' in the share menu we want to make sure that // the menu is not dismissed when the new multiplayer editor mounts. diff --git a/apps/dotcom/src/hooks/useUrlState.ts b/apps/dotcom/src/hooks/useUrlState.ts index 59253fe85..f152fcbbc 100644 --- a/apps/dotcom/src/hooks/useUrlState.ts +++ b/apps/dotcom/src/hooks/useUrlState.ts @@ -1,5 +1,5 @@ -import { Editor, MAX_ZOOM, MIN_ZOOM, TLPageId, debounce, react, useEditor } from '@tldraw/tldraw' import { default as React, useEffect } from 'react' +import { Editor, MAX_ZOOM, MIN_ZOOM, TLPageId, debounce, react, useEditor } from 'tldraw' const PARAMS = { viewport: 'viewport', diff --git a/apps/dotcom/src/pages/public-snapshot.tsx b/apps/dotcom/src/pages/public-snapshot.tsx index e2a2b2c29..b7580db9d 100644 --- a/apps/dotcom/src/pages/public-snapshot.tsx +++ b/apps/dotcom/src/pages/public-snapshot.tsx @@ -1,4 +1,4 @@ -import { SerializedSchema, TLRecord } from '@tldraw/tldraw' +import { SerializedSchema, TLRecord } from 'tldraw' import '../../styles/globals.css' import { IFrameProtector } from '../components/IFrameProtector' import { SnapshotsEditor } from '../components/SnapshotsEditor' diff --git a/apps/dotcom/src/utils/cloneAssetForShare.ts b/apps/dotcom/src/utils/cloneAssetForShare.ts index 4a3bfd85e..77201bb89 100644 --- a/apps/dotcom/src/utils/cloneAssetForShare.ts +++ b/apps/dotcom/src/utils/cloneAssetForShare.ts @@ -1,4 +1,4 @@ -import { TLAsset } from '@tldraw/tldraw' +import { TLAsset } from 'tldraw' export async function cloneAssetForShare( asset: TLAsset, diff --git a/apps/dotcom/src/utils/context-menu/CursorChatMenuItem.tsx b/apps/dotcom/src/utils/context-menu/CursorChatMenuItem.tsx index 50e7603d0..db0e25d19 100644 --- a/apps/dotcom/src/utils/context-menu/CursorChatMenuItem.tsx +++ b/apps/dotcom/src/utils/context-menu/CursorChatMenuItem.tsx @@ -1,4 +1,4 @@ -import { TldrawUiMenuItem, useActions, useEditor, useValue } from '@tldraw/tldraw' +import { TldrawUiMenuItem, useActions, useEditor, useValue } from 'tldraw' import { CURSOR_CHAT_ACTION } from '../useCursorChat' export function CursorChatMenuItem() { diff --git a/apps/dotcom/src/utils/createAssetFromFile.ts b/apps/dotcom/src/utils/createAssetFromFile.ts index 8a7d4ce2a..47be943ba 100644 --- a/apps/dotcom/src/utils/createAssetFromFile.ts +++ b/apps/dotcom/src/utils/createAssetFromFile.ts @@ -6,7 +6,7 @@ import { TLAssetId, getHashForString, uniqueId, -} from '@tldraw/tldraw' +} from 'tldraw' import { ASSET_UPLOADER_URL } from './config' export async function createAssetFromFile({ file }: { type: 'file'; file: File }) { diff --git a/apps/dotcom/src/utils/createAssetFromUrl.ts b/apps/dotcom/src/utils/createAssetFromUrl.ts index 67e3c3a87..3bbb82dd5 100644 --- a/apps/dotcom/src/utils/createAssetFromUrl.ts +++ b/apps/dotcom/src/utils/createAssetFromUrl.ts @@ -1,9 +1,4 @@ -import { - AssetRecordType, - TLAsset, - getHashForString, - truncateStringWithEllipsis, -} from '@tldraw/tldraw' +import { AssetRecordType, TLAsset, getHashForString, truncateStringWithEllipsis } from 'tldraw' import { BOOKMARK_ENDPOINT } from './config' interface ResponseBody { diff --git a/apps/dotcom/src/utils/migration/DebugMenuItems.tsx b/apps/dotcom/src/utils/migration/DebugMenuItems.tsx index e098e9e0c..7c061152c 100644 --- a/apps/dotcom/src/utils/migration/DebugMenuItems.tsx +++ b/apps/dotcom/src/utils/migration/DebugMenuItems.tsx @@ -1,4 +1,4 @@ -import { TldrawUiMenuGroup, TldrawUiMenuItem } from '@tldraw/tldraw' +import { TldrawUiMenuGroup, TldrawUiMenuItem } from 'tldraw' import { env } from '../env' const RELEASE_INFO = `${env} ${process.env.NEXT_PUBLIC_TLDRAW_RELEASE_INFO ?? 'unreleased'}` diff --git a/apps/dotcom/src/utils/migration/LocalMigration.tsx b/apps/dotcom/src/utils/migration/LocalMigration.tsx index 0926e1c2a..5d5723276 100644 --- a/apps/dotcom/src/utils/migration/LocalMigration.tsx +++ b/apps/dotcom/src/utils/migration/LocalMigration.tsx @@ -1,5 +1,5 @@ -import { useDialogs, useEditor, useToasts } from '@tldraw/tldraw' import { useEffect } from 'react' +import { useDialogs, useEditor, useToasts } from 'tldraw' import { MigrationAnnouncement } from './MigrationAnnouncement' import { importFromV1LocalRoom, isEditorEmpty } from './migration' diff --git a/apps/dotcom/src/utils/migration/MigrationAnnouncement.tsx b/apps/dotcom/src/utils/migration/MigrationAnnouncement.tsx index c533507b6..d39fed56b 100644 --- a/apps/dotcom/src/utils/migration/MigrationAnnouncement.tsx +++ b/apps/dotcom/src/utils/migration/MigrationAnnouncement.tsx @@ -4,7 +4,7 @@ import { TldrawUiButtonLabel, useEditor, useValue, -} from '@tldraw/tldraw' +} from 'tldraw' export function MigrationAnnouncement({ onClose, diff --git a/apps/dotcom/src/utils/migration/migration.tsx b/apps/dotcom/src/utils/migration/migration.tsx index 01ef22728..c6bae941c 100644 --- a/apps/dotcom/src/utils/migration/migration.tsx +++ b/apps/dotcom/src/utils/migration/migration.tsx @@ -1,5 +1,5 @@ -import { Editor, LegacyTldrawDocument, buildFromV1Document } from '@tldraw/tldraw' import { openDB } from 'idb' +import { Editor, LegacyTldrawDocument, buildFromV1Document } from 'tldraw' export function isEditorEmpty(editor: Editor) { const hasAnyShapes = editor.store.allRecords().some((r) => r.typeName === 'shape') diff --git a/apps/dotcom/src/utils/remote-sync/ClientWebSocketAdapter.ts b/apps/dotcom/src/utils/remote-sync/ClientWebSocketAdapter.ts index 2b12560ba..7c0b6c792 100644 --- a/apps/dotcom/src/utils/remote-sync/ClientWebSocketAdapter.ts +++ b/apps/dotcom/src/utils/remote-sync/ClientWebSocketAdapter.ts @@ -1,4 +1,3 @@ -import { atom, Atom, TLRecord } from '@tldraw/tldraw' import { chunk, serializeMessage, @@ -7,6 +6,7 @@ import { TLSocketClientSentEvent, TLSocketServerSentEvent, } from '@tldraw/tlsync' +import { atom, Atom, TLRecord } from 'tldraw' function windowListen(...args: Parameters) { window.addEventListener(...args) diff --git a/apps/dotcom/src/utils/remote-sync/remote-sync.ts b/apps/dotcom/src/utils/remote-sync/remote-sync.ts index bd111518d..715f24173 100644 --- a/apps/dotcom/src/utils/remote-sync/remote-sync.ts +++ b/apps/dotcom/src/utils/remote-sync/remote-sync.ts @@ -1,5 +1,5 @@ -import { Signal, TLStoreSnapshot, TLUserPreferences } from '@tldraw/tldraw' import { TLIncompatibilityReason } from '@tldraw/tlsync' +import { Signal, TLStoreSnapshot, TLUserPreferences } from 'tldraw' /** @public */ export class RemoteSyncError extends Error { diff --git a/apps/dotcom/src/utils/sharing.ts b/apps/dotcom/src/utils/sharing.ts index 0f2db60d4..682645aa8 100644 --- a/apps/dotcom/src/utils/sharing.ts +++ b/apps/dotcom/src/utils/sharing.ts @@ -1,3 +1,5 @@ +import { useMemo } from 'react' +import { useNavigate, useSearchParams } from 'react-router-dom' import { AssetRecordType, Editor, @@ -13,9 +15,7 @@ import { TLUiToastsContextType, TLUiTranslationKey, isShape, -} from '@tldraw/tldraw' -import { useMemo } from 'react' -import { useNavigate, useSearchParams } from 'react-router-dom' +} from 'tldraw' import { useMultiplayerAssets } from '../hooks/useMultiplayerAssets' import { getViewportUrlQuery } from '../hooks/useUrlState' import { cloneAssetForShare } from './cloneAssetForShare' diff --git a/apps/dotcom/src/utils/shouldClearDocument.tsx b/apps/dotcom/src/utils/shouldClearDocument.tsx index f9c74c35e..e4e3b2205 100644 --- a/apps/dotcom/src/utils/shouldClearDocument.tsx +++ b/apps/dotcom/src/utils/shouldClearDocument.tsx @@ -8,7 +8,7 @@ import { TldrawUiDialogHeader, TldrawUiDialogTitle, useTranslation, -} from '@tldraw/tldraw' +} from 'tldraw' export async function shouldClearDocument(addDialog: TLUiDialogsContextType['addDialog']) { const shouldContinue = await new Promise((resolve) => { diff --git a/apps/dotcom/src/utils/shouldLeaveSharedProject.tsx b/apps/dotcom/src/utils/shouldLeaveSharedProject.tsx index 5d12e1f82..8f7f2317b 100644 --- a/apps/dotcom/src/utils/shouldLeaveSharedProject.tsx +++ b/apps/dotcom/src/utils/shouldLeaveSharedProject.tsx @@ -10,7 +10,7 @@ import { TldrawUiDialogTitle, useLocalStorageState, useTranslation, -} from '@tldraw/tldraw' +} from 'tldraw' import { userPreferences } from './userPreferences' export async function shouldLeaveSharedProject(addDialog: TLUiDialogsContextType['addDialog']) { diff --git a/apps/dotcom/src/utils/shouldOverrideDocument.tsx b/apps/dotcom/src/utils/shouldOverrideDocument.tsx index f325e1af6..1927d10b4 100644 --- a/apps/dotcom/src/utils/shouldOverrideDocument.tsx +++ b/apps/dotcom/src/utils/shouldOverrideDocument.tsx @@ -8,7 +8,7 @@ import { TldrawUiDialogHeader, TldrawUiDialogTitle, useTranslation, -} from '@tldraw/tldraw' +} from 'tldraw' /** @public */ export async function shouldOverrideDocument(addDialog: TLUiDialogsContextType['addDialog']) { diff --git a/apps/dotcom/src/utils/useCursorChat.ts b/apps/dotcom/src/utils/useCursorChat.ts index 2d6fe6684..b62264d35 100644 --- a/apps/dotcom/src/utils/useCursorChat.ts +++ b/apps/dotcom/src/utils/useCursorChat.ts @@ -1,5 +1,5 @@ -import { TLUiOverrides } from '@tldraw/tldraw' import { useMemo } from 'react' +import { TLUiOverrides } from 'tldraw' import { useHandleUiEvents } from './useHandleUiEvent' export const CURSOR_CHAT_ACTION = 'open-cursor-chat' as const diff --git a/apps/dotcom/src/utils/useFileSystem.tsx b/apps/dotcom/src/utils/useFileSystem.tsx index 3815d7834..0c1e73e5f 100644 --- a/apps/dotcom/src/utils/useFileSystem.tsx +++ b/apps/dotcom/src/utils/useFileSystem.tsx @@ -1,3 +1,5 @@ +import { fileOpen, fileSave } from 'browser-fs-access' +import { useMemo } from 'react' import { Editor, TLDRAW_FILE_EXTENSION, @@ -8,9 +10,7 @@ import { parseAndLoadDocument, serializeTldrawJsonBlob, transact, -} from '@tldraw/tldraw' -import { fileOpen, fileSave } from 'browser-fs-access' -import { useMemo } from 'react' +} from 'tldraw' import { shouldClearDocument } from './shouldClearDocument' import { shouldOverrideDocument } from './shouldOverrideDocument' import { useHandleUiEvents } from './useHandleUiEvent' diff --git a/apps/dotcom/src/utils/userPreferences.ts b/apps/dotcom/src/utils/userPreferences.ts index a4900719c..a2a938cbc 100644 --- a/apps/dotcom/src/utils/userPreferences.ts +++ b/apps/dotcom/src/utils/userPreferences.ts @@ -1,4 +1,4 @@ -import { T, atom } from '@tldraw/tldraw' +import { T, atom } from 'tldraw' const channel = typeof BroadcastChannel !== 'undefined' ? new BroadcastChannel('tldrawUserPreferences') : null diff --git a/apps/dotcom/styles/globals.css b/apps/dotcom/styles/globals.css index b7eab9337..a506a6985 100644 --- a/apps/dotcom/styles/globals.css +++ b/apps/dotcom/styles/globals.css @@ -1,5 +1,5 @@ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Plus+Jakarta+Sans:wght@600;800&display=swap'); -@import url('@tldraw/tldraw/tldraw.css'); +@import url('tldraw/tldraw.css'); @import url('./z-board.css'); .tldraw__editor { diff --git a/apps/examples/e2e/shared-e2e.ts b/apps/examples/e2e/shared-e2e.ts index 0b52f3678..c736d1417 100644 --- a/apps/examples/e2e/shared-e2e.ts +++ b/apps/examples/e2e/shared-e2e.ts @@ -1,5 +1,5 @@ import { PlaywrightTestArgs, PlaywrightWorkerArgs } from '@playwright/test' -import { Editor } from '@tldraw/tldraw' +import { Editor } from 'tldraw' export function sleep(ms: number) { return new Promise((resolve) => setTimeout(resolve, ms)) diff --git a/apps/examples/e2e/tests/export-snapshots.spec.ts b/apps/examples/e2e/tests/export-snapshots.spec.ts index 9de66df78..e883f60ff 100644 --- a/apps/examples/e2e/tests/export-snapshots.spec.ts +++ b/apps/examples/e2e/tests/export-snapshots.spec.ts @@ -1,11 +1,11 @@ import test from '@playwright/test' -import { TLShapeId, TLShapePartial } from '@tldraw/tldraw' +import { TLShapeId, TLShapePartial } from 'tldraw' // import test, { Page, expect } from '@playwright/test' // import assert from 'assert' // import { rename, writeFile } from 'fs/promises' // import { setupPage } from '../shared-e2e' -// import { Editor, TLShapeId, TLShapePartial } from '@tldraw/tldraw' +// import { Editor, TLShapeId, TLShapePartial } from 'tldraw' // declare const editor: Editor diff --git a/apps/examples/e2e/tests/test-canvas-events.spec.ts b/apps/examples/e2e/tests/test-canvas-events.spec.ts index 5e2b8226d..072870629 100644 --- a/apps/examples/e2e/tests/test-canvas-events.spec.ts +++ b/apps/examples/e2e/tests/test-canvas-events.spec.ts @@ -1,5 +1,5 @@ import test, { expect, Page } from '@playwright/test' -import { Editor } from '@tldraw/tldraw' +import { Editor } from 'tldraw' import { setupPage } from '../shared-e2e' declare const __tldraw_editor_events: any[] diff --git a/apps/examples/e2e/tests/test-clipboard.spec.ts b/apps/examples/e2e/tests/test-clipboard.spec.ts index 2c0f0a7ca..689363b82 100644 --- a/apps/examples/e2e/tests/test-clipboard.spec.ts +++ b/apps/examples/e2e/tests/test-clipboard.spec.ts @@ -1,5 +1,5 @@ import test, { expect } from '@playwright/test' -import { Editor } from '@tldraw/tldraw' +import { Editor } from 'tldraw' import { setup } from '../shared-e2e' export function sleep(ms: number) { diff --git a/apps/examples/e2e/tests/test-focus.spec.ts b/apps/examples/e2e/tests/test-focus.spec.ts index e019b42b8..e2c4182f8 100644 --- a/apps/examples/e2e/tests/test-focus.spec.ts +++ b/apps/examples/e2e/tests/test-focus.spec.ts @@ -1,5 +1,5 @@ import test, { expect } from '@playwright/test' -import { Editor } from '@tldraw/tldraw' +import { Editor } from 'tldraw' declare const EDITOR_A: Editor declare const EDITOR_B: Editor diff --git a/apps/examples/e2e/tests/test-smoke.spec.ts b/apps/examples/e2e/tests/test-smoke.spec.ts index ec21e3857..82342ae21 100644 --- a/apps/examples/e2e/tests/test-smoke.spec.ts +++ b/apps/examples/e2e/tests/test-smoke.spec.ts @@ -1,5 +1,5 @@ import { expect } from '@playwright/test' -import { Editor, TLGeoShape } from '@tldraw/tldraw' +import { Editor, TLGeoShape } from 'tldraw' import { getAllShapeTypes, setup } from '../shared-e2e' import test from './fixtures/fixtures' diff --git a/apps/examples/e2e/tests/test-style-panel.spec.ts b/apps/examples/e2e/tests/test-style-panel.spec.ts index fb14c5c57..b6c1510de 100644 --- a/apps/examples/e2e/tests/test-style-panel.spec.ts +++ b/apps/examples/e2e/tests/test-style-panel.spec.ts @@ -1,5 +1,5 @@ import { expect } from '@playwright/test' -import { Editor } from '@tldraw/tldraw' +import { Editor } from 'tldraw' import { setup } from '../shared-e2e' import test from './fixtures/fixtures' diff --git a/apps/examples/e2e/tests/test-text.spec.ts b/apps/examples/e2e/tests/test-text.spec.ts index 8d51f98ca..ad0211b19 100644 --- a/apps/examples/e2e/tests/test-text.spec.ts +++ b/apps/examples/e2e/tests/test-text.spec.ts @@ -1,5 +1,5 @@ import test, { Page, expect } from '@playwright/test' -import { BoxModel, Editor } from '@tldraw/tldraw' +import { BoxModel, Editor } from 'tldraw' import { setupPage } from '../shared-e2e' export function sleep(ms: number) { diff --git a/apps/examples/package.json b/apps/examples/package.json index c46802daf..bdd90648c 100644 --- a/apps/examples/package.json +++ b/apps/examples/package.json @@ -36,7 +36,6 @@ "@playwright/test": "^1.38.1", "@radix-ui/react-alert-dialog": "^1.0.5", "@tldraw/assets": "workspace:*", - "@tldraw/tldraw": "workspace:*", "@vercel/analytics": "^1.1.1", "classnames": "^2.3.2", "lazyrepo": "0.0.0-alpha.27", @@ -44,6 +43,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-router-dom": "^6.17.0", + "tldraw": "workspace:*", "vite": "^5.0.0" }, "devDependencies": { diff --git a/apps/examples/src/examples/api/APIExample.tsx b/apps/examples/src/examples/api/APIExample.tsx index 91a4f3aaa..093fa737c 100644 --- a/apps/examples/src/examples/api/APIExample.tsx +++ b/apps/examples/src/examples/api/APIExample.tsx @@ -6,8 +6,8 @@ import { Tldraw, createShapeId, useEditor, -} from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +} from 'tldraw' +import 'tldraw/tldraw.css' import { useEffect } from 'react' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/asset-props/AssetPropsExample.tsx b/apps/examples/src/examples/asset-props/AssetPropsExample.tsx index 9baff4a32..47807030c 100644 --- a/apps/examples/src/examples/asset-props/AssetPropsExample.tsx +++ b/apps/examples/src/examples/asset-props/AssetPropsExample.tsx @@ -1,5 +1,5 @@ -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' export default function AssetPropsExample() { return ( diff --git a/apps/examples/src/examples/basic/BasicExample.tsx b/apps/examples/src/examples/basic/BasicExample.tsx index c39cb9535..159fa1289 100644 --- a/apps/examples/src/examples/basic/BasicExample.tsx +++ b/apps/examples/src/examples/basic/BasicExample.tsx @@ -1,5 +1,5 @@ -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' export default function BasicExample() { return ( diff --git a/apps/examples/src/examples/bounds-snapping-shape/BoundsSnappingShape.tsx b/apps/examples/src/examples/bounds-snapping-shape/BoundsSnappingShape.tsx index 52a318db9..c74fb427f 100644 --- a/apps/examples/src/examples/bounds-snapping-shape/BoundsSnappingShape.tsx +++ b/apps/examples/src/examples/bounds-snapping-shape/BoundsSnappingShape.tsx @@ -1,4 +1,4 @@ -import { Editor, Tldraw } from '@tldraw/tldraw' +import { Editor, Tldraw } from 'tldraw' import { PlayingCardTool } from './PlayingCardShape/playing-card-tool' import { PlayingCardUtil } from './PlayingCardShape/playing-card-util' import snapshot from './snapshot.json' diff --git a/apps/examples/src/examples/bounds-snapping-shape/PlayingCardShape/playing-card-tool.tsx b/apps/examples/src/examples/bounds-snapping-shape/PlayingCardShape/playing-card-tool.tsx index 03d919b4d..d97b02a08 100644 --- a/apps/examples/src/examples/bounds-snapping-shape/PlayingCardShape/playing-card-tool.tsx +++ b/apps/examples/src/examples/bounds-snapping-shape/PlayingCardShape/playing-card-tool.tsx @@ -1,4 +1,4 @@ -import { BaseBoxShapeTool } from '@tldraw/tldraw' +import { BaseBoxShapeTool } from 'tldraw' export class PlayingCardTool extends BaseBoxShapeTool { static override id = 'PlayingCard' static override initial = 'idle' diff --git a/apps/examples/src/examples/bounds-snapping-shape/PlayingCardShape/playing-card-util.tsx b/apps/examples/src/examples/bounds-snapping-shape/PlayingCardShape/playing-card-util.tsx index 545e61f49..77f521369 100644 --- a/apps/examples/src/examples/bounds-snapping-shape/PlayingCardShape/playing-card-util.tsx +++ b/apps/examples/src/examples/bounds-snapping-shape/PlayingCardShape/playing-card-util.tsx @@ -6,7 +6,7 @@ import { ShapeProps, T, TLBaseShape, -} from '@tldraw/tldraw' +} from 'tldraw' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/bounds-snapping-shape/ui-overrides.tsx b/apps/examples/src/examples/bounds-snapping-shape/ui-overrides.tsx index 636684b9e..50b38f64c 100644 --- a/apps/examples/src/examples/bounds-snapping-shape/ui-overrides.tsx +++ b/apps/examples/src/examples/bounds-snapping-shape/ui-overrides.tsx @@ -6,7 +6,7 @@ import { TldrawUiMenuItem, toolbarItem, useTools, -} from '@tldraw/tldraw' +} from 'tldraw' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/canvas-events/CanvasEventsExample.tsx b/apps/examples/src/examples/canvas-events/CanvasEventsExample.tsx index ba10c4cc5..f2ec0e903 100644 --- a/apps/examples/src/examples/canvas-events/CanvasEventsExample.tsx +++ b/apps/examples/src/examples/canvas-events/CanvasEventsExample.tsx @@ -1,6 +1,6 @@ -import { TLEventInfo, Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' import { useCallback, useState } from 'react' +import { TLEventInfo, Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/changing-default-colors/ChangingDefaultColorsExample.tsx b/apps/examples/src/examples/changing-default-colors/ChangingDefaultColorsExample.tsx index 6d02c1800..71508b791 100644 --- a/apps/examples/src/examples/changing-default-colors/ChangingDefaultColorsExample.tsx +++ b/apps/examples/src/examples/changing-default-colors/ChangingDefaultColorsExample.tsx @@ -1,5 +1,5 @@ -import { DefaultColorThemePalette, Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { DefaultColorThemePalette, Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/context-toolbar/ContextToolbar.tsx b/apps/examples/src/examples/context-toolbar/ContextToolbar.tsx index 4790e884d..393cbce06 100644 --- a/apps/examples/src/examples/context-toolbar/ContextToolbar.tsx +++ b/apps/examples/src/examples/context-toolbar/ContextToolbar.tsx @@ -7,8 +7,8 @@ import { track, useEditor, Vec, -} from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +} from 'tldraw' +import 'tldraw/tldraw.css' const SIZES = [ { value: 's', icon: 'size-small' }, diff --git a/apps/examples/src/examples/custom-actions-menu/CustomActionsMenuExample.tsx b/apps/examples/src/examples/custom-actions-menu/CustomActionsMenuExample.tsx index 6b42d12c6..6e93b4c00 100644 --- a/apps/examples/src/examples/custom-actions-menu/CustomActionsMenuExample.tsx +++ b/apps/examples/src/examples/custom-actions-menu/CustomActionsMenuExample.tsx @@ -1,5 +1,5 @@ -import { DefaultActionsMenu, TLComponents, Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { DefaultActionsMenu, TLComponents, Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' function CustomActionsMenu() { return ( diff --git a/apps/examples/src/examples/custom-components/CustomComponentsExample.tsx b/apps/examples/src/examples/custom-components/CustomComponentsExample.tsx index 6fcb7cea4..1eb909d8b 100644 --- a/apps/examples/src/examples/custom-components/CustomComponentsExample.tsx +++ b/apps/examples/src/examples/custom-components/CustomComponentsExample.tsx @@ -1,6 +1,6 @@ -import { Tldraw, TLEditorComponents, toDomPrecision, useTransform } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' import { useRef } from 'react' +import { Tldraw, TLEditorComponents, toDomPrecision, useTransform } from 'tldraw' +import 'tldraw/tldraw.css' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/custom-config/CardShape/CardShapeTool.tsx b/apps/examples/src/examples/custom-config/CardShape/CardShapeTool.tsx index 767524e97..32e89dcf7 100644 --- a/apps/examples/src/examples/custom-config/CardShape/CardShapeTool.tsx +++ b/apps/examples/src/examples/custom-config/CardShape/CardShapeTool.tsx @@ -1,4 +1,4 @@ -import { BaseBoxShapeTool, TLClickEvent } from '@tldraw/tldraw' +import { BaseBoxShapeTool, TLClickEvent } from 'tldraw' export class CardShapeTool extends BaseBoxShapeTool { static override id = 'card' static override initial = 'idle' diff --git a/apps/examples/src/examples/custom-config/CardShape/CardShapeUtil.tsx b/apps/examples/src/examples/custom-config/CardShape/CardShapeUtil.tsx index 489572996..8ba7a87bd 100644 --- a/apps/examples/src/examples/custom-config/CardShape/CardShapeUtil.tsx +++ b/apps/examples/src/examples/custom-config/CardShape/CardShapeUtil.tsx @@ -1,3 +1,4 @@ +import { useState } from 'react' import { HTMLContainer, Rectangle2d, @@ -5,8 +6,7 @@ import { TLOnResizeHandler, getDefaultColorTheme, resizeBox, -} from '@tldraw/tldraw' -import { useState } from 'react' +} from 'tldraw' import { cardShapeMigrations } from './card-shape-migrations' import { cardShapeProps } from './card-shape-props' import { ICardShape } from './card-shape-types' diff --git a/apps/examples/src/examples/custom-config/CardShape/card-shape-migrations.ts b/apps/examples/src/examples/custom-config/CardShape/card-shape-migrations.ts index 9aa6df1b4..65331d8e3 100644 --- a/apps/examples/src/examples/custom-config/CardShape/card-shape-migrations.ts +++ b/apps/examples/src/examples/custom-config/CardShape/card-shape-migrations.ts @@ -1,4 +1,4 @@ -import { defineMigrations } from '@tldraw/tldraw' +import { defineMigrations } from 'tldraw' // Migrations for the custom card shape (optional but very helpful) export const cardShapeMigrations = defineMigrations({ diff --git a/apps/examples/src/examples/custom-config/CardShape/card-shape-props.ts b/apps/examples/src/examples/custom-config/CardShape/card-shape-props.ts index 4315c876a..88d55c551 100644 --- a/apps/examples/src/examples/custom-config/CardShape/card-shape-props.ts +++ b/apps/examples/src/examples/custom-config/CardShape/card-shape-props.ts @@ -1,4 +1,4 @@ -import { DefaultColorStyle, ShapeProps, T } from '@tldraw/tldraw' +import { DefaultColorStyle, ShapeProps, T } from 'tldraw' import { ICardShape } from './card-shape-types' // Validation for our custom card shape's props, using one of tldraw's default styles diff --git a/apps/examples/src/examples/custom-config/CardShape/card-shape-types.ts b/apps/examples/src/examples/custom-config/CardShape/card-shape-types.ts index 6eb7461d1..ea9eee54d 100644 --- a/apps/examples/src/examples/custom-config/CardShape/card-shape-types.ts +++ b/apps/examples/src/examples/custom-config/CardShape/card-shape-types.ts @@ -1,4 +1,4 @@ -import { TLBaseShape, TLDefaultColorStyle } from '@tldraw/tldraw' +import { TLBaseShape, TLDefaultColorStyle } from 'tldraw' // A type for our custom card shape export type ICardShape = TLBaseShape< diff --git a/apps/examples/src/examples/custom-config/CustomConfigExample.tsx b/apps/examples/src/examples/custom-config/CustomConfigExample.tsx index 095186dd3..abbfd1f3c 100644 --- a/apps/examples/src/examples/custom-config/CustomConfigExample.tsx +++ b/apps/examples/src/examples/custom-config/CustomConfigExample.tsx @@ -1,5 +1,5 @@ -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' import { CardShapeTool } from './CardShape/CardShapeTool' import { CardShapeUtil } from './CardShape/CardShapeUtil' import { components, uiOverrides } from './ui-overrides' diff --git a/apps/examples/src/examples/custom-config/ui-overrides.tsx b/apps/examples/src/examples/custom-config/ui-overrides.tsx index 497f45bdc..8b7f111ea 100644 --- a/apps/examples/src/examples/custom-config/ui-overrides.tsx +++ b/apps/examples/src/examples/custom-config/ui-overrides.tsx @@ -6,7 +6,7 @@ import { TldrawUiMenuItem, toolbarItem, useTools, -} from '@tldraw/tldraw' +} from 'tldraw' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/custom-context-menu/CustomContextMenuExample.tsx b/apps/examples/src/examples/custom-context-menu/CustomContextMenuExample.tsx index 683608bcd..f0d87c20d 100644 --- a/apps/examples/src/examples/custom-context-menu/CustomContextMenuExample.tsx +++ b/apps/examples/src/examples/custom-context-menu/CustomContextMenuExample.tsx @@ -6,8 +6,8 @@ import { Tldraw, TldrawUiMenuGroup, TldrawUiMenuItem, -} from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +} from 'tldraw' +import 'tldraw/tldraw.css' function CustomContextMenu(props: TLUiContextMenuProps) { return ( diff --git a/apps/examples/src/examples/custom-debug-menu/CustomDebugMenuExample.tsx b/apps/examples/src/examples/custom-debug-menu/CustomDebugMenuExample.tsx index 77e34633e..fc7beb9e4 100644 --- a/apps/examples/src/examples/custom-debug-menu/CustomDebugMenuExample.tsx +++ b/apps/examples/src/examples/custom-debug-menu/CustomDebugMenuExample.tsx @@ -5,8 +5,8 @@ import { Tldraw, TldrawUiMenuGroup, TldrawUiMenuItem, -} from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +} from 'tldraw' +import 'tldraw/tldraw.css' function CustomDebugMenu() { return ( diff --git a/apps/examples/src/examples/custom-help-menu/CustomHelpMenuExample.tsx b/apps/examples/src/examples/custom-help-menu/CustomHelpMenuExample.tsx index 87b9583c2..646f1a830 100644 --- a/apps/examples/src/examples/custom-help-menu/CustomHelpMenuExample.tsx +++ b/apps/examples/src/examples/custom-help-menu/CustomHelpMenuExample.tsx @@ -5,8 +5,8 @@ import { Tldraw, TldrawUiMenuGroup, TldrawUiMenuItem, -} from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +} from 'tldraw' +import 'tldraw/tldraw.css' function CustomHelpMenu() { return ( diff --git a/apps/examples/src/examples/custom-keyboard-shortcuts-dialog/CustomKeyboardShortcutsDialogExample.tsx b/apps/examples/src/examples/custom-keyboard-shortcuts-dialog/CustomKeyboardShortcutsDialogExample.tsx index 3759ff623..896cd19ef 100644 --- a/apps/examples/src/examples/custom-keyboard-shortcuts-dialog/CustomKeyboardShortcutsDialogExample.tsx +++ b/apps/examples/src/examples/custom-keyboard-shortcuts-dialog/CustomKeyboardShortcutsDialogExample.tsx @@ -5,8 +5,8 @@ import { TLUiKeyboardShortcutsDialogProps, Tldraw, TldrawUiMenuItem, -} from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +} from 'tldraw' +import 'tldraw/tldraw.css' function CustomKeyboardShortcutsDialog(props: TLUiKeyboardShortcutsDialogProps) { return ( diff --git a/apps/examples/src/examples/custom-main-menu/CustomMainMenuExample.tsx b/apps/examples/src/examples/custom-main-menu/CustomMainMenuExample.tsx index 0dcb99a93..492a49569 100644 --- a/apps/examples/src/examples/custom-main-menu/CustomMainMenuExample.tsx +++ b/apps/examples/src/examples/custom-main-menu/CustomMainMenuExample.tsx @@ -5,8 +5,8 @@ import { Tldraw, TldrawUiMenuGroup, TldrawUiMenuItem, -} from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +} from 'tldraw' +import 'tldraw/tldraw.css' function CustomMainMenu() { return ( diff --git a/apps/examples/src/examples/custom-navigation-panel/CustomNavigationPanelExample.tsx b/apps/examples/src/examples/custom-navigation-panel/CustomNavigationPanelExample.tsx index ad530fc56..e22f4e564 100644 --- a/apps/examples/src/examples/custom-navigation-panel/CustomNavigationPanelExample.tsx +++ b/apps/examples/src/examples/custom-navigation-panel/CustomNavigationPanelExample.tsx @@ -1,5 +1,5 @@ -import { TLComponents, Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { TLComponents, Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' function CustomNavigationPanel() { return
    here you are
    diff --git a/apps/examples/src/examples/custom-page-menu/CustomPageMenuExample.tsx b/apps/examples/src/examples/custom-page-menu/CustomPageMenuExample.tsx index 603cdd352..c1a5188ff 100644 --- a/apps/examples/src/examples/custom-page-menu/CustomPageMenuExample.tsx +++ b/apps/examples/src/examples/custom-page-menu/CustomPageMenuExample.tsx @@ -1,5 +1,5 @@ -import { DefaultPageMenu, TLComponents, Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { DefaultPageMenu, TLComponents, Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' function CustomPageMenu() { return ( diff --git a/apps/examples/src/examples/custom-quick-actions/CustomQuickActions.tsx b/apps/examples/src/examples/custom-quick-actions/CustomQuickActions.tsx index 472b438e5..5ce3f8631 100644 --- a/apps/examples/src/examples/custom-quick-actions/CustomQuickActions.tsx +++ b/apps/examples/src/examples/custom-quick-actions/CustomQuickActions.tsx @@ -4,8 +4,8 @@ import { TLComponents, Tldraw, TldrawUiMenuItem, -} from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +} from 'tldraw' +import 'tldraw/tldraw.css' function CustomQuickActions() { return ( diff --git a/apps/examples/src/examples/custom-style-panel/CustomStylePanelExample.tsx b/apps/examples/src/examples/custom-style-panel/CustomStylePanelExample.tsx index 97ce4915c..fdce92a80 100644 --- a/apps/examples/src/examples/custom-style-panel/CustomStylePanelExample.tsx +++ b/apps/examples/src/examples/custom-style-panel/CustomStylePanelExample.tsx @@ -9,8 +9,8 @@ import { TldrawUiButtonLabel, useEditor, useRelevantStyles, -} from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +} from 'tldraw' +import 'tldraw/tldraw.css' function CustomStylePanel(props: TLUiStylePanelProps) { const editor = useEditor() diff --git a/apps/examples/src/examples/custom-styles/CardShape.tsx b/apps/examples/src/examples/custom-styles/CardShape.tsx index 4e11e6a13..bf85b49f6 100644 --- a/apps/examples/src/examples/custom-styles/CardShape.tsx +++ b/apps/examples/src/examples/custom-styles/CardShape.tsx @@ -8,7 +8,7 @@ import { TLBaseShape, TLDefaultColorStyle, getDefaultColorTheme, -} from '@tldraw/tldraw' +} from 'tldraw' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/custom-styles/CustomStylesExample.tsx b/apps/examples/src/examples/custom-styles/CustomStylesExample.tsx index 50dd85c9c..265943f0b 100644 --- a/apps/examples/src/examples/custom-styles/CustomStylesExample.tsx +++ b/apps/examples/src/examples/custom-styles/CustomStylesExample.tsx @@ -1,5 +1,5 @@ -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' import { CardShapeTool, CardShapeUtil } from './CardShape' import { FilterStyleUi } from './FilterStyleUi' import { components, uiOverrides } from './ui-overrides' diff --git a/apps/examples/src/examples/custom-styles/FilterStyleUi.tsx b/apps/examples/src/examples/custom-styles/FilterStyleUi.tsx index ca75cf3e8..0c78a53e8 100644 --- a/apps/examples/src/examples/custom-styles/FilterStyleUi.tsx +++ b/apps/examples/src/examples/custom-styles/FilterStyleUi.tsx @@ -1,4 +1,4 @@ -import { track, useEditor } from '@tldraw/tldraw' +import { track, useEditor } from 'tldraw' import { MyFilterStyle } from './CardShape' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/custom-styles/ui-overrides.tsx b/apps/examples/src/examples/custom-styles/ui-overrides.tsx index 650a97629..4a3c1a6c3 100644 --- a/apps/examples/src/examples/custom-styles/ui-overrides.tsx +++ b/apps/examples/src/examples/custom-styles/ui-overrides.tsx @@ -6,7 +6,7 @@ import { TldrawUiMenuItem, toolbarItem, useTools, -} from '@tldraw/tldraw' +} from 'tldraw' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/custom-toolbar/CustomToolbarExample.tsx b/apps/examples/src/examples/custom-toolbar/CustomToolbarExample.tsx index b495c0dab..ba2198f06 100644 --- a/apps/examples/src/examples/custom-toolbar/CustomToolbarExample.tsx +++ b/apps/examples/src/examples/custom-toolbar/CustomToolbarExample.tsx @@ -1,5 +1,5 @@ -import { DefaultToolbar, TLComponents, Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { DefaultToolbar, TLComponents, Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' function CustomToolbar() { return ( diff --git a/apps/examples/src/examples/custom-ui/CustomUiExample.tsx b/apps/examples/src/examples/custom-ui/CustomUiExample.tsx index cd4182f2b..8c3e10599 100644 --- a/apps/examples/src/examples/custom-ui/CustomUiExample.tsx +++ b/apps/examples/src/examples/custom-ui/CustomUiExample.tsx @@ -1,6 +1,6 @@ -import { Tldraw, track, useEditor } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' import { useEffect } from 'react' +import { Tldraw, track, useEditor } from 'tldraw' +import 'tldraw/tldraw.css' import './custom-ui.css' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/custom-zoom-menu/CustomZoomMenuExample.tsx b/apps/examples/src/examples/custom-zoom-menu/CustomZoomMenuExample.tsx index 2ada070e6..bc887b636 100644 --- a/apps/examples/src/examples/custom-zoom-menu/CustomZoomMenuExample.tsx +++ b/apps/examples/src/examples/custom-zoom-menu/CustomZoomMenuExample.tsx @@ -5,8 +5,8 @@ import { Tldraw, TldrawUiMenuGroup, TldrawUiMenuItem, -} from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +} from 'tldraw' +import 'tldraw/tldraw.css' function CustomZoomMenu() { return ( diff --git a/apps/examples/src/examples/editable-shape/EditableShapeExample.tsx b/apps/examples/src/examples/editable-shape/EditableShapeExample.tsx index 8928842b9..8f52e841a 100644 --- a/apps/examples/src/examples/editable-shape/EditableShapeExample.tsx +++ b/apps/examples/src/examples/editable-shape/EditableShapeExample.tsx @@ -1,5 +1,5 @@ -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' import { MyshapeTool } from './my-shape/my-shape-tool' import { MyshapeUtil } from './my-shape/my-shape-util' import { components, uiOverrides } from './ui-overrides' diff --git a/apps/examples/src/examples/editable-shape/my-shape/my-shape-tool.tsx b/apps/examples/src/examples/editable-shape/my-shape/my-shape-tool.tsx index 5a3b58dd9..2d1db2087 100644 --- a/apps/examples/src/examples/editable-shape/my-shape/my-shape-tool.tsx +++ b/apps/examples/src/examples/editable-shape/my-shape/my-shape-tool.tsx @@ -1,4 +1,4 @@ -import { BaseBoxShapeTool } from '@tldraw/tldraw' +import { BaseBoxShapeTool } from 'tldraw' export class MyshapeTool extends BaseBoxShapeTool { static override id = 'Myshape' static override initial = 'idle' diff --git a/apps/examples/src/examples/editable-shape/my-shape/my-shape-util.tsx b/apps/examples/src/examples/editable-shape/my-shape/my-shape-util.tsx index e4574b1af..e9a2837f5 100644 --- a/apps/examples/src/examples/editable-shape/my-shape/my-shape-util.tsx +++ b/apps/examples/src/examples/editable-shape/my-shape/my-shape-util.tsx @@ -1,4 +1,5 @@ /* eslint-disable react-hooks/rules-of-hooks */ +import { useState } from 'react' import { HTMLContainer, Rectangle2d, @@ -11,8 +12,7 @@ import { resizeBox, structuredClone, useIsEditing, -} from '@tldraw/tldraw' -import { useState } from 'react' +} from 'tldraw' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/editable-shape/ui-overrides.tsx b/apps/examples/src/examples/editable-shape/ui-overrides.tsx index f583e0e8c..14c57dd16 100644 --- a/apps/examples/src/examples/editable-shape/ui-overrides.tsx +++ b/apps/examples/src/examples/editable-shape/ui-overrides.tsx @@ -6,7 +6,7 @@ import { TldrawUiMenuItem, toolbarItem, useTools, -} from '@tldraw/tldraw' +} from 'tldraw' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/editor-focus/EditorFocusExample.tsx b/apps/examples/src/examples/editor-focus/EditorFocusExample.tsx index d60b4d0c6..49b59c0f0 100644 --- a/apps/examples/src/examples/editor-focus/EditorFocusExample.tsx +++ b/apps/examples/src/examples/editor-focus/EditorFocusExample.tsx @@ -1,6 +1,6 @@ -import { Editor, Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' import { useEffect, useRef, useState } from 'react' +import { Editor, Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' export default function EditorFocusExample() { const [focused, setFocused] = useState(false) diff --git a/apps/examples/src/examples/error-boundary/ErrorBoundaryExample.tsx b/apps/examples/src/examples/error-boundary/ErrorBoundaryExample.tsx index b4d4c5722..db5b59f7b 100644 --- a/apps/examples/src/examples/error-boundary/ErrorBoundaryExample.tsx +++ b/apps/examples/src/examples/error-boundary/ErrorBoundaryExample.tsx @@ -1,5 +1,5 @@ -import { createShapeId, Tldraw, TLShapePartial } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { createShapeId, Tldraw, TLShapePartial } from 'tldraw' +import 'tldraw/tldraw.css' import { ErrorShape, ErrorShapeUtil } from './ErrorShape' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/error-boundary/ErrorShape.ts b/apps/examples/src/examples/error-boundary/ErrorShape.ts index 684238b21..3690edbc6 100644 --- a/apps/examples/src/examples/error-boundary/ErrorShape.ts +++ b/apps/examples/src/examples/error-boundary/ErrorShape.ts @@ -1,4 +1,4 @@ -import { BaseBoxShapeUtil, TLBaseShape } from '@tldraw/tldraw' +import { BaseBoxShapeUtil, TLBaseShape } from 'tldraw' export type ErrorShape = TLBaseShape<'error', { w: number; h: number; message: string }> diff --git a/apps/examples/src/examples/exploded/ExplodedExample.tsx b/apps/examples/src/examples/exploded/ExplodedExample.tsx index 9f08ed06e..f38ed1b13 100644 --- a/apps/examples/src/examples/exploded/ExplodedExample.tsx +++ b/apps/examples/src/examples/exploded/ExplodedExample.tsx @@ -11,8 +11,8 @@ import { defaultShapeTools, defaultShapeUtils, defaultTools, -} from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +} from 'tldraw' +import 'tldraw/tldraw.css' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/external-content-sources/ExternalContentSourcesExample.tsx b/apps/examples/src/examples/external-content-sources/ExternalContentSourcesExample.tsx index 633a52320..5efc16160 100644 --- a/apps/examples/src/examples/external-content-sources/ExternalContentSourcesExample.tsx +++ b/apps/examples/src/examples/external-content-sources/ExternalContentSourcesExample.tsx @@ -1,6 +1,6 @@ -import { BaseBoxShapeUtil, Editor, HTMLContainer, TLBaseShape, Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' import { useCallback } from 'react' +import { BaseBoxShapeUtil, Editor, HTMLContainer, TLBaseShape, Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' // There's a guide at the bottom of this page! diff --git a/apps/examples/src/examples/external-dialog/ExternalDialog.tsx b/apps/examples/src/examples/external-dialog/ExternalDialog.tsx index 59add6757..6ef7f5b7c 100644 --- a/apps/examples/src/examples/external-dialog/ExternalDialog.tsx +++ b/apps/examples/src/examples/external-dialog/ExternalDialog.tsx @@ -1,5 +1,5 @@ -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' // This CSS file overrides the default styles for dialogs import './external-dialog.css' diff --git a/apps/examples/src/examples/external-ui-context/ExternalUiContextExample.tsx b/apps/examples/src/examples/external-ui-context/ExternalUiContextExample.tsx index 37815f35d..c097785ee 100644 --- a/apps/examples/src/examples/external-ui-context/ExternalUiContextExample.tsx +++ b/apps/examples/src/examples/external-ui-context/ExternalUiContextExample.tsx @@ -1,6 +1,6 @@ -import { Editor, Tldraw, useValue } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' import { createContext, useContext, useState } from 'react' +import { Editor, Tldraw, useValue } from 'tldraw' +import 'tldraw/tldraw.css' import './external-ui.css' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/external-ui/ExternalUiExample.tsx b/apps/examples/src/examples/external-ui/ExternalUiExample.tsx index e04834fd2..0bcff09da 100644 --- a/apps/examples/src/examples/external-ui/ExternalUiExample.tsx +++ b/apps/examples/src/examples/external-ui/ExternalUiExample.tsx @@ -1,6 +1,6 @@ -import { Editor, Tldraw, useValue } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' import { useState } from 'react' +import { Editor, Tldraw, useValue } from 'tldraw' +import 'tldraw/tldraw.css' import './external-ui.css' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/floaty-window/FloatyExample.tsx b/apps/examples/src/examples/floaty-window/FloatyExample.tsx index c461126c0..52732e8e7 100644 --- a/apps/examples/src/examples/floaty-window/FloatyExample.tsx +++ b/apps/examples/src/examples/floaty-window/FloatyExample.tsx @@ -1,6 +1,6 @@ -import { Tldraw, Vec, useContainer, useEditor } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' import { useEffect } from 'react' +import { Tldraw, Vec, useContainer, useEditor } from 'tldraw' +import 'tldraw/tldraw.css' export default function FloatyExample() { return ( diff --git a/apps/examples/src/examples/force-mobile/ForceBreakpointExample.tsx b/apps/examples/src/examples/force-mobile/ForceBreakpointExample.tsx index c3445089f..4c8844e0c 100644 --- a/apps/examples/src/examples/force-mobile/ForceBreakpointExample.tsx +++ b/apps/examples/src/examples/force-mobile/ForceBreakpointExample.tsx @@ -1,5 +1,5 @@ -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' export default function ForceMobileExample() { return ( diff --git a/apps/examples/src/examples/hide-ui/HideUiExample.tsx b/apps/examples/src/examples/hide-ui/HideUiExample.tsx index d88419a34..2df7117d0 100644 --- a/apps/examples/src/examples/hide-ui/HideUiExample.tsx +++ b/apps/examples/src/examples/hide-ui/HideUiExample.tsx @@ -1,5 +1,5 @@ -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' export default function HideUiExample() { return ( diff --git a/apps/examples/src/examples/hosted-images/HostedImagesExample.tsx b/apps/examples/src/examples/hosted-images/HostedImagesExample.tsx index 2597db44a..5f86696de 100644 --- a/apps/examples/src/examples/hosted-images/HostedImagesExample.tsx +++ b/apps/examples/src/examples/hosted-images/HostedImagesExample.tsx @@ -1,3 +1,4 @@ +import { useCallback } from 'react' import { AssetRecordType, Editor, @@ -8,9 +9,8 @@ import { getHashForString, isGifAnimated, uniqueId, -} from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' -import { useCallback } from 'react' +} from 'tldraw' +import 'tldraw/tldraw.css' // [1] const UPLOAD_URL = '/SOME_ENDPOINT' diff --git a/apps/examples/src/examples/image-component/TldrawImageExample.tsx b/apps/examples/src/examples/image-component/TldrawImageExample.tsx index 98576c63a..c55be3abe 100644 --- a/apps/examples/src/examples/image-component/TldrawImageExample.tsx +++ b/apps/examples/src/examples/image-component/TldrawImageExample.tsx @@ -1,6 +1,6 @@ -import { Box, Editor, StoreSnapshot, TLPageId, TLRecord, Tldraw, TldrawImage } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' import { useState } from 'react' +import { Box, Editor, StoreSnapshot, TLPageId, TLRecord, Tldraw, TldrawImage } from 'tldraw' +import 'tldraw/tldraw.css' import initialSnapshot from './snapshot.json' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/infer-dark-mode/InferDarkModeExample.tsx b/apps/examples/src/examples/infer-dark-mode/InferDarkModeExample.tsx index 6acc6dc27..04d3c8205 100644 --- a/apps/examples/src/examples/infer-dark-mode/InferDarkModeExample.tsx +++ b/apps/examples/src/examples/infer-dark-mode/InferDarkModeExample.tsx @@ -1,5 +1,5 @@ -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' export default function InferDarkModeExample() { return ( diff --git a/apps/examples/src/examples/inline/InlineExample.tsx b/apps/examples/src/examples/inline/InlineExample.tsx index fc25f3c4e..3090bd527 100644 --- a/apps/examples/src/examples/inline/InlineExample.tsx +++ b/apps/examples/src/examples/inline/InlineExample.tsx @@ -1,6 +1,6 @@ -import { Editor, Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' import { createContext, useContext, useState } from 'react' +import { Editor, Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' const FocusedEditorContext = createContext( {} as { diff --git a/apps/examples/src/examples/inset-canvas/InsetCanvasExample.tsx b/apps/examples/src/examples/inset-canvas/InsetCanvasExample.tsx index 4c63c6693..425606f40 100644 --- a/apps/examples/src/examples/inset-canvas/InsetCanvasExample.tsx +++ b/apps/examples/src/examples/inset-canvas/InsetCanvasExample.tsx @@ -1,5 +1,5 @@ -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' import './inset-canvas.css' export default function InsetCanvasExample() { diff --git a/apps/examples/src/examples/inset/InsetExample.tsx b/apps/examples/src/examples/inset/InsetExample.tsx index 54268915a..4ce34621a 100644 --- a/apps/examples/src/examples/inset/InsetExample.tsx +++ b/apps/examples/src/examples/inset/InsetExample.tsx @@ -1,5 +1,5 @@ -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' export default function InsetExample() { return ( diff --git a/apps/examples/src/examples/keyboard-shortcuts/KeyboardShortcuts.tsx b/apps/examples/src/examples/keyboard-shortcuts/KeyboardShortcuts.tsx index f8489e242..b7c01e4eb 100644 --- a/apps/examples/src/examples/keyboard-shortcuts/KeyboardShortcuts.tsx +++ b/apps/examples/src/examples/keyboard-shortcuts/KeyboardShortcuts.tsx @@ -1,5 +1,5 @@ -import { TLUiActionsContextType, TLUiOverrides, TLUiToolsContextType, Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { TLUiActionsContextType, TLUiOverrides, TLUiToolsContextType, Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' import jsonSnapshot from './snapshot.json' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/local-images/LocalImagesExample.tsx b/apps/examples/src/examples/local-images/LocalImagesExample.tsx index 945a06c77..aaab6b2f6 100644 --- a/apps/examples/src/examples/local-images/LocalImagesExample.tsx +++ b/apps/examples/src/examples/local-images/LocalImagesExample.tsx @@ -1,6 +1,6 @@ -import { AssetRecordType, Editor, Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' import { useCallback } from 'react' +import { AssetRecordType, Editor, Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' // There's a guide at the bottom of this file! export default function LocalImagesExample() { diff --git a/apps/examples/src/examples/local-storage/LocalStorageExample.tsx b/apps/examples/src/examples/local-storage/LocalStorageExample.tsx index 1e8356452..2ff6af01e 100644 --- a/apps/examples/src/examples/local-storage/LocalStorageExample.tsx +++ b/apps/examples/src/examples/local-storage/LocalStorageExample.tsx @@ -1,6 +1,6 @@ -import { Tldraw, createTLStore, defaultShapeUtils, throttle } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' import { useLayoutEffect, useState } from 'react' +import { Tldraw, createTLStore, defaultShapeUtils, throttle } from 'tldraw' +import 'tldraw/tldraw.css' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/meta-on-change/OnChangeShapeMetaExample.tsx b/apps/examples/src/examples/meta-on-change/OnChangeShapeMetaExample.tsx index 36a50527a..a10c68ff2 100644 --- a/apps/examples/src/examples/meta-on-change/OnChangeShapeMetaExample.tsx +++ b/apps/examples/src/examples/meta-on-change/OnChangeShapeMetaExample.tsx @@ -1,5 +1,5 @@ -import { TLShape, Tldraw, track, useEditor } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { TLShape, Tldraw, track, useEditor } from 'tldraw' +import 'tldraw/tldraw.css' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/meta-on-create/OnCreateShapeMetaExample.tsx b/apps/examples/src/examples/meta-on-create/OnCreateShapeMetaExample.tsx index d5a2659f3..c73316889 100644 --- a/apps/examples/src/examples/meta-on-create/OnCreateShapeMetaExample.tsx +++ b/apps/examples/src/examples/meta-on-create/OnCreateShapeMetaExample.tsx @@ -1,5 +1,5 @@ -import { TLShape, Tldraw, track, useEditor } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { TLShape, Tldraw, track, useEditor } from 'tldraw' +import 'tldraw/tldraw.css' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/multiple/MultipleExample.tsx b/apps/examples/src/examples/multiple/MultipleExample.tsx index bf3805ab4..fee3d64f5 100644 --- a/apps/examples/src/examples/multiple/MultipleExample.tsx +++ b/apps/examples/src/examples/multiple/MultipleExample.tsx @@ -1,6 +1,6 @@ -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' import { createContext, useCallback, useContext, useState } from 'react' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' // There's a guide at the bottom of this page! diff --git a/apps/examples/src/examples/only-editor/MicroSelectTool.ts b/apps/examples/src/examples/only-editor/MicroSelectTool.ts index fc0636f86..74d0600c6 100644 --- a/apps/examples/src/examples/only-editor/MicroSelectTool.ts +++ b/apps/examples/src/examples/only-editor/MicroSelectTool.ts @@ -1,4 +1,4 @@ -import { StateNode, TLEventHandlers, createShapeId } from '@tldraw/tldraw' +import { StateNode, TLEventHandlers, createShapeId } from 'tldraw' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/only-editor/MiniBoxShape.tsx b/apps/examples/src/examples/only-editor/MiniBoxShape.tsx index 7dc8c2055..c4565a1ab 100644 --- a/apps/examples/src/examples/only-editor/MiniBoxShape.tsx +++ b/apps/examples/src/examples/only-editor/MiniBoxShape.tsx @@ -1,4 +1,4 @@ -import { BaseBoxShapeUtil, HTMLContainer, TLBaseShape } from '@tldraw/tldraw' +import { BaseBoxShapeUtil, HTMLContainer, TLBaseShape } from 'tldraw' // There's a guide at the bottom of this page! diff --git a/apps/examples/src/examples/only-editor/MiniSelectTool.ts b/apps/examples/src/examples/only-editor/MiniSelectTool.ts index 45f699058..5b7ae07db 100644 --- a/apps/examples/src/examples/only-editor/MiniSelectTool.ts +++ b/apps/examples/src/examples/only-editor/MiniSelectTool.ts @@ -1,4 +1,4 @@ -import { StateNode, TLEventHandlers, TLUnknownShape, createShapeId } from '@tldraw/tldraw' +import { StateNode, TLEventHandlers, TLUnknownShape, createShapeId } from 'tldraw' // There's a guide at the bottom of this file! //[1] diff --git a/apps/examples/src/examples/peristence-key/PersistenceKeyExample.tsx b/apps/examples/src/examples/peristence-key/PersistenceKeyExample.tsx index fbc764b1a..e340aed52 100644 --- a/apps/examples/src/examples/peristence-key/PersistenceKeyExample.tsx +++ b/apps/examples/src/examples/peristence-key/PersistenceKeyExample.tsx @@ -1,5 +1,5 @@ -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' export default function PersistenceKeyExample() { return ( diff --git a/apps/examples/src/examples/readonly/ReadOnlyExample.tsx b/apps/examples/src/examples/readonly/ReadOnlyExample.tsx index 525f9d014..06f2cc493 100644 --- a/apps/examples/src/examples/readonly/ReadOnlyExample.tsx +++ b/apps/examples/src/examples/readonly/ReadOnlyExample.tsx @@ -1,5 +1,5 @@ -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' export default function ReadOnlyExample() { return ( diff --git a/apps/examples/src/examples/screenshot-tool/ScreenshotTool/ScreenshotTool.ts b/apps/examples/src/examples/screenshot-tool/ScreenshotTool/ScreenshotTool.ts index 61812122d..f7090fa21 100644 --- a/apps/examples/src/examples/screenshot-tool/ScreenshotTool/ScreenshotTool.ts +++ b/apps/examples/src/examples/screenshot-tool/ScreenshotTool/ScreenshotTool.ts @@ -1,4 +1,4 @@ -import { StateNode, TLCancelEvent, TLInterruptEvent } from '@tldraw/tldraw' +import { StateNode, TLCancelEvent, TLInterruptEvent } from 'tldraw' import { ScreenshotDragging } from './childStates/Dragging' import { ScreenshotIdle } from './childStates/Idle' import { ScreenshotPointing } from './childStates/Pointing' diff --git a/apps/examples/src/examples/screenshot-tool/ScreenshotTool/childStates/Dragging.ts b/apps/examples/src/examples/screenshot-tool/ScreenshotTool/childStates/Dragging.ts index a5a94916b..1856bad5d 100644 --- a/apps/examples/src/examples/screenshot-tool/ScreenshotTool/childStates/Dragging.ts +++ b/apps/examples/src/examples/screenshot-tool/ScreenshotTool/childStates/Dragging.ts @@ -1,4 +1,4 @@ -import { Box, StateNode, atom, copyAs, exportAs } from '@tldraw/tldraw' +import { Box, StateNode, atom, copyAs, exportAs } from 'tldraw' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/screenshot-tool/ScreenshotTool/childStates/Idle.ts b/apps/examples/src/examples/screenshot-tool/ScreenshotTool/childStates/Idle.ts index 5399c669d..d4ae36b04 100644 --- a/apps/examples/src/examples/screenshot-tool/ScreenshotTool/childStates/Idle.ts +++ b/apps/examples/src/examples/screenshot-tool/ScreenshotTool/childStates/Idle.ts @@ -1,4 +1,4 @@ -import { StateNode, TLEventHandlers } from '@tldraw/tldraw' +import { StateNode, TLEventHandlers } from 'tldraw' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/screenshot-tool/ScreenshotTool/childStates/Pointing.ts b/apps/examples/src/examples/screenshot-tool/ScreenshotTool/childStates/Pointing.ts index 695861865..f7257f4de 100644 --- a/apps/examples/src/examples/screenshot-tool/ScreenshotTool/childStates/Pointing.ts +++ b/apps/examples/src/examples/screenshot-tool/ScreenshotTool/childStates/Pointing.ts @@ -1,4 +1,4 @@ -import { StateNode, TLEventHandlers } from '@tldraw/tldraw' +import { StateNode, TLEventHandlers } from 'tldraw' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/screenshot-tool/ScreenshotToolExample.tsx b/apps/examples/src/examples/screenshot-tool/ScreenshotToolExample.tsx index b76f7803d..f21e4eb0e 100644 --- a/apps/examples/src/examples/screenshot-tool/ScreenshotToolExample.tsx +++ b/apps/examples/src/examples/screenshot-tool/ScreenshotToolExample.tsx @@ -8,8 +8,8 @@ import { toolbarItem, useEditor, useValue, -} from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +} from 'tldraw' +import 'tldraw/tldraw.css' import { ScreenshotTool } from './ScreenshotTool/ScreenshotTool' import { ScreenshotDragging } from './ScreenshotTool/childStates/Dragging' diff --git a/apps/examples/src/examples/scroll/ScrollExample.tsx b/apps/examples/src/examples/scroll/ScrollExample.tsx index 01769c506..49e2cf025 100644 --- a/apps/examples/src/examples/scroll/ScrollExample.tsx +++ b/apps/examples/src/examples/scroll/ScrollExample.tsx @@ -1,5 +1,5 @@ -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' export default function ScrollExample() { return ( diff --git a/apps/examples/src/examples/shape-meta/ShapeMetaExample.tsx b/apps/examples/src/examples/shape-meta/ShapeMetaExample.tsx index 33ad1dd08..332e054fb 100644 --- a/apps/examples/src/examples/shape-meta/ShapeMetaExample.tsx +++ b/apps/examples/src/examples/shape-meta/ShapeMetaExample.tsx @@ -1,5 +1,5 @@ -import { TLShape, Tldraw, track, useEditor } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { TLShape, Tldraw, track, useEditor } from 'tldraw' +import 'tldraw/tldraw.css' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/snapshots/SnapshotExample.tsx b/apps/examples/src/examples/snapshots/SnapshotExample.tsx index 89b859d7f..b3ef720b5 100644 --- a/apps/examples/src/examples/snapshots/SnapshotExample.tsx +++ b/apps/examples/src/examples/snapshots/SnapshotExample.tsx @@ -1,5 +1,5 @@ -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' import jsonSnapshot from './snapshot.json' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/speech-bubble/CustomShapeWithHandles.tsx b/apps/examples/src/examples/speech-bubble/CustomShapeWithHandles.tsx index a658cb1ed..8703cd341 100644 --- a/apps/examples/src/examples/speech-bubble/CustomShapeWithHandles.tsx +++ b/apps/examples/src/examples/speech-bubble/CustomShapeWithHandles.tsx @@ -1,5 +1,5 @@ -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' import { SpeechBubbleTool } from './SpeechBubble/SpeechBubbleTool' import { SpeechBubbleUtil } from './SpeechBubble/SpeechBubbleUtil' import { components, customAssetUrls, uiOverrides } from './SpeechBubble/ui-overrides' diff --git a/apps/examples/src/examples/speech-bubble/SpeechBubble/SpeechBubbleTool.tsx b/apps/examples/src/examples/speech-bubble/SpeechBubble/SpeechBubbleTool.tsx index 59b736e79..06c6e9778 100644 --- a/apps/examples/src/examples/speech-bubble/SpeechBubble/SpeechBubbleTool.tsx +++ b/apps/examples/src/examples/speech-bubble/SpeechBubble/SpeechBubbleTool.tsx @@ -1,4 +1,4 @@ -import { BaseBoxShapeTool } from '@tldraw/tldraw' +import { BaseBoxShapeTool } from 'tldraw' export class SpeechBubbleTool extends BaseBoxShapeTool { static override id = 'speech-bubble' diff --git a/apps/examples/src/examples/speech-bubble/SpeechBubble/SpeechBubbleUtil.tsx b/apps/examples/src/examples/speech-bubble/SpeechBubble/SpeechBubbleUtil.tsx index 481aa935e..cb33adde6 100644 --- a/apps/examples/src/examples/speech-bubble/SpeechBubble/SpeechBubbleUtil.tsx +++ b/apps/examples/src/examples/speech-bubble/SpeechBubble/SpeechBubbleUtil.tsx @@ -20,7 +20,7 @@ import { resizeBox, structuredClone, vecModelValidator, -} from '@tldraw/tldraw' +} from 'tldraw' import { getSpeechBubbleVertices, getTailIntersectionPoint } from './helpers' // Copied from tldraw/tldraw @@ -195,8 +195,7 @@ handler [5]. Since this shape has a handle, we need to do some special stuff to the way we want it to. [1] -Here is where we define the shape's type. For the tail we can use the `VecModel` type from -@tldraw/tldraw. +Here is where we define the shape's type. For the tail we can use the `VecModel` type from `tldraw`. [2] This is where we define the shape's props and a type validator for each key. tldraw exports a diff --git a/apps/examples/src/examples/speech-bubble/SpeechBubble/helpers.tsx b/apps/examples/src/examples/speech-bubble/SpeechBubble/helpers.tsx index 511de10b5..82953612a 100644 --- a/apps/examples/src/examples/speech-bubble/SpeechBubble/helpers.tsx +++ b/apps/examples/src/examples/speech-bubble/SpeechBubble/helpers.tsx @@ -1,4 +1,4 @@ -import { Vec, VecLike, lerp, pointInPolygon } from '@tldraw/tldraw' +import { Vec, VecLike, lerp, pointInPolygon } from 'tldraw' import { SpeechBubbleShape } from './SpeechBubbleUtil' export const getSpeechBubbleVertices = (shape: SpeechBubbleShape): Vec[] => { diff --git a/apps/examples/src/examples/speech-bubble/SpeechBubble/ui-overrides.tsx b/apps/examples/src/examples/speech-bubble/SpeechBubble/ui-overrides.tsx index 38231fa6b..6cd924889 100644 --- a/apps/examples/src/examples/speech-bubble/SpeechBubble/ui-overrides.tsx +++ b/apps/examples/src/examples/speech-bubble/SpeechBubble/ui-overrides.tsx @@ -7,7 +7,7 @@ import { TldrawUiMenuItem, toolbarItem, useTools, -} from '@tldraw/tldraw' +} from 'tldraw' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/static-assets/StaticAssetsExample.tsx b/apps/examples/src/examples/static-assets/StaticAssetsExample.tsx index fa35d33c8..38e27db15 100644 --- a/apps/examples/src/examples/static-assets/StaticAssetsExample.tsx +++ b/apps/examples/src/examples/static-assets/StaticAssetsExample.tsx @@ -1,5 +1,5 @@ -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' export default function StaticAssetsExample() { return ( diff --git a/apps/examples/src/examples/store-events/StoreEventsExample.tsx b/apps/examples/src/examples/store-events/StoreEventsExample.tsx index be96a14dd..ad2e98798 100644 --- a/apps/examples/src/examples/store-events/StoreEventsExample.tsx +++ b/apps/examples/src/examples/store-events/StoreEventsExample.tsx @@ -1,7 +1,7 @@ -import { Editor, TLEventMapHandler, Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' import _ from 'lodash' import { useCallback, useEffect, useState } from 'react' +import { Editor, TLEventMapHandler, Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/things-on-the-canvas/OnTheCanvas.tsx b/apps/examples/src/examples/things-on-the-canvas/OnTheCanvas.tsx index d3762751a..122778512 100644 --- a/apps/examples/src/examples/things-on-the-canvas/OnTheCanvas.tsx +++ b/apps/examples/src/examples/things-on-the-canvas/OnTheCanvas.tsx @@ -1,13 +1,6 @@ -import { - stopEventPropagation, - Tldraw, - TLEditorComponents, - track, - useEditor, - Vec, -} from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' import { useState } from 'react' +import { stopEventPropagation, Tldraw, TLEditorComponents, track, useEditor, Vec } from 'tldraw' +import 'tldraw/tldraw.css' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/ui-components-hidden/UiComponentsHiddenExample.tsx b/apps/examples/src/examples/ui-components-hidden/UiComponentsHiddenExample.tsx index 2f19d0c34..d58e118df 100644 --- a/apps/examples/src/examples/ui-components-hidden/UiComponentsHiddenExample.tsx +++ b/apps/examples/src/examples/ui-components-hidden/UiComponentsHiddenExample.tsx @@ -1,5 +1,5 @@ -import { TLUiComponents, Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { TLUiComponents, Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' // The type here is include only to ensure this example contains all possible ui components, const components: Required = { diff --git a/apps/examples/src/examples/ui-events/UiEventsExample.tsx b/apps/examples/src/examples/ui-events/UiEventsExample.tsx index 9f9c77857..9aeb29212 100644 --- a/apps/examples/src/examples/ui-events/UiEventsExample.tsx +++ b/apps/examples/src/examples/ui-events/UiEventsExample.tsx @@ -1,6 +1,6 @@ -import { TLUiEventHandler, Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' import { Fragment, useCallback, useState } from 'react' +import { TLUiEventHandler, Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' import { getCodeSnippet } from './codeSnippets' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/user-presence/UserPresenceExample.tsx b/apps/examples/src/examples/user-presence/UserPresenceExample.tsx index 7bab3e92a..070e6b7a5 100644 --- a/apps/examples/src/examples/user-presence/UserPresenceExample.tsx +++ b/apps/examples/src/examples/user-presence/UserPresenceExample.tsx @@ -1,7 +1,7 @@ /* eslint-disable no-inner-declarations */ -import { InstancePresenceRecordType, Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' import { useRef } from 'react' +import { InstancePresenceRecordType, Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/examples/zones/ZonesExample.tsx b/apps/examples/src/examples/zones/ZonesExample.tsx index 3d9b21d50..7540d0730 100644 --- a/apps/examples/src/examples/zones/ZonesExample.tsx +++ b/apps/examples/src/examples/zones/ZonesExample.tsx @@ -1,5 +1,5 @@ -import { TLComponents, Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { TLComponents, Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' // There's a guide at the bottom of this file! diff --git a/apps/examples/src/index.tsx b/apps/examples/src/index.tsx index 89cb1cc2d..88a8808ca 100644 --- a/apps/examples/src/index.tsx +++ b/apps/examples/src/index.tsx @@ -1,12 +1,12 @@ import { getAssetUrlsByMetaUrl } from '@tldraw/assets/urls' +import { createRoot } from 'react-dom/client' +import { RouterProvider, createBrowserRouter } from 'react-router-dom' import { DefaultErrorFallback, ErrorBoundary, setDefaultEditorAssetUrls, setDefaultUiAssetUrls, -} from '@tldraw/tldraw' -import { createRoot } from 'react-dom/client' -import { RouterProvider, createBrowserRouter } from 'react-router-dom' +} from 'tldraw' import { ExamplePage } from './ExamplePage' import { examples } from './examples' import Develop from './misc/develop' diff --git a/apps/examples/src/misc/develop.tsx b/apps/examples/src/misc/develop.tsx index 34e1db0fa..db14ab8cd 100644 --- a/apps/examples/src/misc/develop.tsx +++ b/apps/examples/src/misc/develop.tsx @@ -1,5 +1,5 @@ -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' export default function Develop() { return ( diff --git a/apps/examples/src/misc/end-to-end.tsx b/apps/examples/src/misc/end-to-end.tsx index 8442f7160..e92fa4bfe 100644 --- a/apps/examples/src/misc/end-to-end.tsx +++ b/apps/examples/src/misc/end-to-end.tsx @@ -1,6 +1,6 @@ -import { Tldraw, useActions } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' import { useEffect } from 'react' +import { Tldraw, useActions } from 'tldraw' +import 'tldraw/tldraw.css' ;(window as any).__tldraw_ui_event = { id: 'NOTHING_YET' } ;(window as any).__tldraw_editor_events = [] diff --git a/apps/vscode/editor/package.json b/apps/vscode/editor/package.json index 976b4bba1..5037fb3a1 100644 --- a/apps/vscode/editor/package.json +++ b/apps/vscode/editor/package.json @@ -33,7 +33,6 @@ }, "devDependencies": { "@tldraw/assets": "workspace:*", - "@tldraw/tldraw": "workspace:*", "@types/fs-extra": "^11.0.1", "@types/node": "~20.11", "@types/react": "^18.2.47", @@ -47,6 +46,7 @@ "lazyrepo": "0.0.0-alpha.27", "react": "^18.2.0", "react-dom": "^18.2.0", + "tldraw": "workspace:*", "tslib": "^2.6.2" }, "gitHead": "a7dac0f83ad998e205c2aab58182cb4ba4e099a6" diff --git a/apps/vscode/editor/src/ChangeResponder.tsx b/apps/vscode/editor/src/ChangeResponder.tsx index 4e004067f..7cb77f6c7 100644 --- a/apps/vscode/editor/src/ChangeResponder.tsx +++ b/apps/vscode/editor/src/ChangeResponder.tsx @@ -1,11 +1,11 @@ +import React from 'react' import { debounce, parseAndLoadDocument, serializeTldrawJson, useDefaultHelpers, useEditor, -} from '@tldraw/tldraw' -import React from 'react' +} from 'tldraw' // @ts-ignore import type { VscodeMessage } from '../../messages' import '../public/index.css' diff --git a/apps/vscode/editor/src/FileOpen.tsx b/apps/vscode/editor/src/FileOpen.tsx index 352c822e8..2f20a9ec4 100644 --- a/apps/vscode/editor/src/FileOpen.tsx +++ b/apps/vscode/editor/src/FileOpen.tsx @@ -1,5 +1,5 @@ -import { parseAndLoadDocument, useDefaultHelpers, useEditor } from '@tldraw/tldraw' import React from 'react' +import { parseAndLoadDocument, useDefaultHelpers, useEditor } from 'tldraw' import { vscode } from './utils/vscode' export function FileOpen({ diff --git a/apps/vscode/editor/src/Links.tsx b/apps/vscode/editor/src/Links.tsx index adfc21d82..378c97bd5 100644 --- a/apps/vscode/editor/src/Links.tsx +++ b/apps/vscode/editor/src/Links.tsx @@ -1,4 +1,4 @@ -import { TldrawUiMenuGroup, TldrawUiMenuItem } from '@tldraw/tldraw' +import { TldrawUiMenuGroup, TldrawUiMenuItem } from 'tldraw' import { openUrl } from './utils/url' export function Links() { diff --git a/apps/vscode/editor/src/app.tsx b/apps/vscode/editor/src/app.tsx index 7d727f038..1b6195d01 100644 --- a/apps/vscode/editor/src/app.tsx +++ b/apps/vscode/editor/src/app.tsx @@ -1,7 +1,8 @@ // eslint-disable-next-line import/no-internal-modules -import '@tldraw/tldraw/tldraw.css' +import 'tldraw/tldraw.css' // eslint-disable-next-line import/no-internal-modules import { getAssetUrlsByImport } from '@tldraw/assets/imports' +import { useCallback, useEffect, useMemo, useState } from 'react' import { DefaultHelpMenu, DefaultHelpMenuContent, @@ -11,8 +12,7 @@ import { Tldraw, TldrawUiMenuGroup, setRuntimeOverrides, -} from '@tldraw/tldraw' -import { useCallback, useEffect, useMemo, useState } from 'react' +} from 'tldraw' import { VscodeMessage } from '../../messages' import '../public/index.css' import { ChangeResponder } from './ChangeResponder' diff --git a/apps/vscode/editor/src/utils/bookmarks.ts b/apps/vscode/editor/src/utils/bookmarks.ts index e47f68600..acce51648 100644 --- a/apps/vscode/editor/src/utils/bookmarks.ts +++ b/apps/vscode/editor/src/utils/bookmarks.ts @@ -1,4 +1,4 @@ -import { AssetRecordType, TLAsset, TLExternalAssetContent, getHashForString } from '@tldraw/tldraw' +import { AssetRecordType, TLAsset, TLExternalAssetContent, getHashForString } from 'tldraw' import { rpc } from './rpc' export const truncateStringWithEllipsis = (str: string, maxLength: number) => { diff --git a/apps/vscode/editor/src/utils/rpc.ts b/apps/vscode/editor/src/utils/rpc.ts index 3a24921b6..371d84311 100644 --- a/apps/vscode/editor/src/utils/rpc.ts +++ b/apps/vscode/editor/src/utils/rpc.ts @@ -1,4 +1,4 @@ -import { uniqueId } from '@tldraw/tldraw' +import { uniqueId } from 'tldraw' import type { VscodeMessagePairs } from '../../../messages' import { vscode } from './vscode' diff --git a/apps/vscode/extension/package.json b/apps/vscode/extension/package.json index 1bd1cd1bf..c2dfa4772 100644 --- a/apps/vscode/extension/package.json +++ b/apps/vscode/extension/package.json @@ -130,7 +130,6 @@ }, "devDependencies": { "@tldraw/editor": "workspace:*", - "@tldraw/tldraw": "workspace:*", "@types/fs-extra": "^11.0.1", "@types/node-fetch": "^2.6.2", "@types/vscode": "^1.75.1", @@ -144,6 +143,7 @@ "lodash": "^4.17.21", "mocha": "^9.1.1", "process": "^0.11.10", + "tldraw": "workspace:*", "ts-loader": "^9.2.5", "tslib": "^2.6.2", "tsx": "^4.0.0", diff --git a/apps/vscode/extension/src/TldrawDocument.ts b/apps/vscode/extension/src/TldrawDocument.ts index 3f010eb4c..6c5aeef4b 100644 --- a/apps/vscode/extension/src/TldrawDocument.ts +++ b/apps/vscode/extension/src/TldrawDocument.ts @@ -1,4 +1,4 @@ -import { TldrawFile } from '@tldraw/tldraw' +import { TldrawFile } from 'tldraw' import * as vscode from 'vscode' import { defaultFileContents, fileExists, loadFile } from './file' import { nicelog } from './utils' diff --git a/apps/vscode/extension/src/TldrawWebviewManager.ts b/apps/vscode/extension/src/TldrawWebviewManager.ts index b65ac6ba8..39448fc89 100644 --- a/apps/vscode/extension/src/TldrawWebviewManager.ts +++ b/apps/vscode/extension/src/TldrawWebviewManager.ts @@ -1,4 +1,4 @@ -import { uniqueId } from '@tldraw/tldraw' +import { uniqueId } from 'tldraw' import * as vscode from 'vscode' import { TLDrawDocument } from './TldrawDocument' import { GlobalStateKeys, WebViewMessageHandler } from './WebViewMessageHandler' diff --git a/apps/vscode/extension/src/WebViewMessageHandler.ts b/apps/vscode/extension/src/WebViewMessageHandler.ts index c17e865dd..1d9fee0ad 100644 --- a/apps/vscode/extension/src/WebViewMessageHandler.ts +++ b/apps/vscode/extension/src/WebViewMessageHandler.ts @@ -4,7 +4,7 @@ import * as vscode from 'vscode' import { TLDrawDocument } from './TldrawDocument' import { loadFile } from './file' -import { UnknownRecord } from '@tldraw/tldraw' +import { UnknownRecord } from 'tldraw' // @ts-ignore import type { VscodeMessage } from '../../messages' import { nicelog } from './utils' diff --git a/apps/vscode/extension/src/file.ts b/apps/vscode/extension/src/file.ts index c1a5faf19..f409debfe 100644 --- a/apps/vscode/extension/src/file.ts +++ b/apps/vscode/extension/src/file.ts @@ -1,4 +1,4 @@ -import { TldrawFile, createTLStore, defaultShapeUtils } from '@tldraw/tldraw' +import { TldrawFile, createTLStore, defaultShapeUtils } from 'tldraw' import * as vscode from 'vscode' import { nicelog } from './utils' diff --git a/packages/editor/api/api.json b/packages/editor/api/api.json index ebc8756e6..063898148 100644 --- a/packages/editor/api/api.json +++ b/packages/editor/api/api.json @@ -36208,7 +36208,7 @@ { "kind": "Interface", "canonicalReference": "@tldraw/editor!TldrawEditorBaseProps:interface", - "docComment": "/**\n * Base props for the {@link @tldraw/tldraw#Tldraw} and {@link TldrawEditor} components.\n *\n * @public\n */\n", + "docComment": "/**\n * Base props for the {@link tldraw#Tldraw} and {@link TldrawEditor} components.\n *\n * @public\n */\n", "excerptTokens": [ { "kind": "Content", @@ -36517,7 +36517,7 @@ { "kind": "TypeAlias", "canonicalReference": "@tldraw/editor!TldrawEditorProps:type", - "docComment": "/**\n * Props for the {@link @tldraw/tldraw#Tldraw} and {@link TldrawEditor} components.\n *\n * @public\n */\n", + "docComment": "/**\n * Props for the {@link tldraw#Tldraw} and {@link TldrawEditor} components.\n *\n * @public\n */\n", "excerptTokens": [ { "kind": "Content", diff --git a/packages/editor/src/lib/TldrawEditor.tsx b/packages/editor/src/lib/TldrawEditor.tsx index 4e9dc559b..b4e67ce96 100644 --- a/packages/editor/src/lib/TldrawEditor.tsx +++ b/packages/editor/src/lib/TldrawEditor.tsx @@ -36,7 +36,7 @@ import { stopEventPropagation } from './utils/dom' import { TLStoreWithStatus } from './utils/sync/StoreWithStatus' /** - * Props for the {@link @tldraw/tldraw#Tldraw} and {@link TldrawEditor} components. + * Props for the {@link tldraw#Tldraw} and {@link TldrawEditor} components. * * @public **/ @@ -58,7 +58,7 @@ export type TldrawEditorProps = Expand< > /** - * Base props for the {@link @tldraw/tldraw#Tldraw} and {@link TldrawEditor} components. + * Base props for the {@link tldraw#Tldraw} and {@link TldrawEditor} components. * * @public */ @@ -151,7 +151,7 @@ export const TldrawEditor = memo(function TldrawEditor({ // apply defaults. if you're using the bare @tldraw/editor package, we // default these to the "tldraw zero" configuration. We have different - // defaults applied in @tldraw/tldraw. + // defaults applied in tldraw. const withDefaults = { ...rest, shapeUtils: rest.shapeUtils ?? EMPTY_SHAPE_UTILS_ARRAY, diff --git a/packages/editor/src/lib/editor/tools/RootState.ts b/packages/editor/src/lib/editor/tools/RootState.ts index c0986895b..78d92ddfe 100644 --- a/packages/editor/src/lib/editor/tools/RootState.ts +++ b/packages/editor/src/lib/editor/tools/RootState.ts @@ -7,7 +7,7 @@ export class RootState extends StateNode { static override children = () => [] override onKeyDown: TLEventHandlers['onKeyDown'] = (info) => { - // todo: move this logic up to the @tldraw/tldraw library, as the "zoom" tool only exists there + // todo: move this logic up to the tldraw library, as the "zoom" tool only exists there switch (info.code) { case 'KeyZ': { if (!(info.shiftKey || info.ctrlKey)) { diff --git a/packages/namespaced-tldraw/LICENSE.md b/packages/namespaced-tldraw/LICENSE.md new file mode 100644 index 000000000..0ad7260cb --- /dev/null +++ b/packages/namespaced-tldraw/LICENSE.md @@ -0,0 +1 @@ +This code is licensed under the [tldraw license](https://github.com/tldraw/tldraw/blob/main/LICENSE.md) diff --git a/packages/namespaced-tldraw/README.md b/packages/namespaced-tldraw/README.md new file mode 100644 index 000000000..bcf5fb811 --- /dev/null +++ b/packages/namespaced-tldraw/README.md @@ -0,0 +1,4 @@ +# @tldraw/tldraw + +This package is kept around for legacy purposes, and just tracks the normal `tldraw` package. Please +install that one instead. diff --git a/packages/namespaced-tldraw/api-extractor.json b/packages/namespaced-tldraw/api-extractor.json new file mode 100644 index 000000000..2d11e5920 --- /dev/null +++ b/packages/namespaced-tldraw/api-extractor.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "extends": "../../config/api-extractor.json", + // the file paths in the shared api-extractor.json don't work for us here, so we specify them manually: + "mainEntryPointFilePath": "/packages/namespaced-tldraw/.tsbuild-api/index.d.ts", + "compiler": { + "tsconfigFilePath": "/packages/namespaced-tldraw/tsconfig.json" + }, + "apiReport": { + "reportFolder": "/packages/namespaced-tldraw/", + "reportTempFolder": "/packages/namespaced-tldraw/api/temp" + }, + "docModel": { + "apiJsonFilePath": "/packages/namespaced-tldraw/api/api.json" + }, + "dtsRollup": { + "untrimmedFilePath": "/packages/namespaced-tldraw/api/internal.d.ts", + "publicTrimmedFilePath": "/packages/namespaced-tldraw/api/public.d.ts" + } +} diff --git a/packages/namespaced-tldraw/api-report.md b/packages/namespaced-tldraw/api-report.md new file mode 100644 index 000000000..851cb935e --- /dev/null +++ b/packages/namespaced-tldraw/api-report.md @@ -0,0 +1,12 @@ +## API Report File for "@tldraw/tldraw" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + + +export * from "tldraw"; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/namespaced-tldraw/api/api.json b/packages/namespaced-tldraw/api/api.json new file mode 100644 index 000000000..8704c9722 --- /dev/null +++ b/packages/namespaced-tldraw/api/api.json @@ -0,0 +1,177 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.41.0", + "schemaVersion": 1011, + "oldestForwardsCompatibleVersion": 1001, + "tsdocConfig": { + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + "noStandardTags": true, + "tagDefinitions": [ + { + "tagName": "@alpha", + "syntaxKind": "modifier" + }, + { + "tagName": "@beta", + "syntaxKind": "modifier" + }, + { + "tagName": "@defaultValue", + "syntaxKind": "block" + }, + { + "tagName": "@decorator", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@deprecated", + "syntaxKind": "block" + }, + { + "tagName": "@eventProperty", + "syntaxKind": "modifier" + }, + { + "tagName": "@example", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@experimental", + "syntaxKind": "modifier" + }, + { + "tagName": "@inheritDoc", + "syntaxKind": "inline" + }, + { + "tagName": "@internal", + "syntaxKind": "modifier" + }, + { + "tagName": "@label", + "syntaxKind": "inline" + }, + { + "tagName": "@link", + "syntaxKind": "inline", + "allowMultiple": true + }, + { + "tagName": "@override", + "syntaxKind": "modifier" + }, + { + "tagName": "@packageDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@param", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@privateRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@public", + "syntaxKind": "modifier" + }, + { + "tagName": "@readonly", + "syntaxKind": "modifier" + }, + { + "tagName": "@remarks", + "syntaxKind": "block" + }, + { + "tagName": "@returns", + "syntaxKind": "block" + }, + { + "tagName": "@sealed", + "syntaxKind": "modifier" + }, + { + "tagName": "@see", + "syntaxKind": "block" + }, + { + "tagName": "@throws", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@typeParam", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@virtual", + "syntaxKind": "modifier" + }, + { + "tagName": "@betaDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@internalRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@preapproved", + "syntaxKind": "modifier" + } + ], + "supportForTags": { + "@alpha": true, + "@beta": true, + "@defaultValue": true, + "@decorator": true, + "@deprecated": true, + "@eventProperty": true, + "@example": true, + "@experimental": true, + "@inheritDoc": true, + "@internal": true, + "@label": true, + "@link": true, + "@override": true, + "@packageDocumentation": true, + "@param": true, + "@privateRemarks": true, + "@public": true, + "@readonly": true, + "@remarks": true, + "@returns": true, + "@sealed": true, + "@see": true, + "@throws": true, + "@typeParam": true, + "@virtual": true, + "@betaDocumentation": true, + "@internalRemarks": true, + "@preapproved": true + }, + "reportUnsupportedHtmlElements": false + } + }, + "kind": "Package", + "canonicalReference": "@tldraw/tldraw!", + "docComment": "", + "name": "@tldraw/tldraw", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "@tldraw/tldraw!", + "name": "", + "preserveMemberOrder": false, + "members": [] + } + ] +} diff --git a/packages/namespaced-tldraw/package.json b/packages/namespaced-tldraw/package.json new file mode 100644 index 000000000..2522ea0c3 --- /dev/null +++ b/packages/namespaced-tldraw/package.json @@ -0,0 +1,82 @@ +{ + "name": "@tldraw/tldraw", + "description": "A tiny little drawing editor.", + "version": "2.0.0-beta.4", + "author": { + "name": "tldraw Inc.", + "email": "hello@tldraw.com" + }, + "homepage": "https://tldraw.dev", + "license": "SEE LICENSE IN LICENSE.md", + "repository": { + "type": "git", + "url": "https://github.com/tldraw/tldraw" + }, + "bugs": { + "url": "https://github.com/tldraw/tldraw/issues" + }, + "keywords": [ + "tldraw", + "drawing", + "app", + "development", + "whiteboard", + "canvas", + "infinite" + ], + "/* NOTE */": "These `main` and `types` fields are rewritten by the build script. They are not the actual values we publish", + "main": "./src/index.ts", + "types": "./.tsbuild/index.d.ts", + "scripts": { + "test-ci": "lazy inherit", + "test": "yarn run -T jest", + "test-coverage": "lazy inherit", + "predev": "node ./scripts/copy-css-files.mjs", + "dev": "chokidar '../tldraw/tldraw.css' -c 'node ./scripts/copy-css-files.mjs'", + "prebuild": "node ./scripts/copy-css-files.mjs", + "build": "yarn run -T tsx ../../scripts/build-package.ts", + "build-api": "yarn run -T tsx ../../scripts/build-api.ts", + "prepack": "yarn run -T tsx ../../scripts/prepack.ts", + "postpack": "../../scripts/postpack.sh", + "pack-tarball": "yarn pack", + "lint": "yarn run -T tsx ../../scripts/lint.ts" + }, + "files": [ + "tldraw.css" + ], + "dependencies": { + "tldraw": "workspace:*" + }, + "peerDependencies": { + "react": "^18", + "react-dom": "^18" + }, + "devDependencies": { + "chokidar-cli": "^3.0.0", + "lazyrepo": "0.0.0-alpha.27" + }, + "jest": { + "preset": "config/jest/node", + "testEnvironment": "jsdom", + "fakeTimers": { + "enableGlobally": true + }, + "testPathIgnorePatterns": [ + "^.+\\.*.css$" + ], + "transformIgnorePatterns": [ + "node_modules/(?!(nanoid)/)" + ], + "moduleNameMapper": { + "^~(.*)": "/src/$1", + "\\.(css|less|scss|sass)$": "identity-obj-proxy" + }, + "setupFiles": [ + "raf/polyfill", + "jest-canvas-mock" + ], + "setupFilesAfterEnv": [ + "../../config/setupJest.ts" + ] + } +} diff --git a/packages/namespaced-tldraw/scripts/copy-css-files.mjs b/packages/namespaced-tldraw/scripts/copy-css-files.mjs new file mode 100644 index 000000000..9c922ae72 --- /dev/null +++ b/packages/namespaced-tldraw/scripts/copy-css-files.mjs @@ -0,0 +1,12 @@ +import { readFileSync, writeFileSync } from 'fs' +import { dirname, join } from 'path' +import { fileURLToPath } from 'url' + +const __filename = fileURLToPath(import.meta.url) +const __dirname = dirname(__filename) + +const packageDir = join(__dirname, '..') + +const content = readFileSync(join(packageDir, '..', 'tldraw', 'tldraw.css'), 'utf8') +const destination = join(packageDir, 'tldraw.css') +writeFileSync(destination, content) diff --git a/packages/namespaced-tldraw/src/index.test.ts b/packages/namespaced-tldraw/src/index.test.ts new file mode 100644 index 000000000..3c04c0cd6 --- /dev/null +++ b/packages/namespaced-tldraw/src/index.test.ts @@ -0,0 +1,10 @@ +import * as tldraw from './index' + +it('exports things from tldraw', () => { + expect(tldraw).toHaveProperty('Tldraw') + expect(new tldraw.Vec()).toMatchObject({ x: 0, y: 0 }) +}) + +it('exports types from tldraw', () => { + const _thing: tldraw.VecModel = { x: 0, y: 0 } +}) diff --git a/packages/namespaced-tldraw/src/index.ts b/packages/namespaced-tldraw/src/index.ts new file mode 100644 index 000000000..e2a54c745 --- /dev/null +++ b/packages/namespaced-tldraw/src/index.ts @@ -0,0 +1,2 @@ +// eslint-disable-next-line local/no-export-star +export * from 'tldraw' diff --git a/packages/namespaced-tldraw/tsconfig.json b/packages/namespaced-tldraw/tsconfig.json new file mode 100644 index 000000000..690698bde --- /dev/null +++ b/packages/namespaced-tldraw/tsconfig.json @@ -0,0 +1,15 @@ +{ + "extends": "../../config/tsconfig.base.json", + "include": ["src"], + "exclude": ["node_modules", "dist", "**/*.css", ".tsbuild*", "./scripts/legacy-translations"], + "compilerOptions": { + "outDir": "./.tsbuild", + "noImplicitReturns": false, + "rootDir": "src" + }, + "references": [ + { + "path": "../tldraw" + } + ] +} diff --git a/packages/tldraw/README.md b/packages/tldraw/README.md index 7cce4c737..3a8e73f00 100644 --- a/packages/tldraw/README.md +++ b/packages/tldraw/README.md @@ -5,20 +5,20 @@
    -# @tldraw/tldraw +# tldraw This package contains the source code for the tldraw library. Learn more at our docs site: [tldraw.dev](https://tldraw.dev). ## Installation -Install the `@tldraw/tldraw` package using `@canary` for the latest canary release. (Or `@alpha` for the latest alpha release.) +Install the `tldraw` package using `@canary` for the latest canary release. (Or `@alpha` for the latest alpha release.) ```bash -yarn add @tldraw/tldraw@canary +yarn add tldraw@canary # or -npm install @tldraw/tldraw@canary +npm install tldraw@canary # or -pnpm i @tldraw/tldraw@canary +pnpm i tldraw@canary ``` Then start the local development server. @@ -36,11 +36,11 @@ pnpm dev An extremely minimal usage (without our UI) might look like this: ```tsx -import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/tldraw.css' +import { Tldraw } from 'tldraw' +import 'tldraw/tldraw.css' export default function () { - return + return } ``` @@ -52,7 +52,7 @@ Have questions, comments or feedback? [Join our discord](https://discord.gg/rhsy ## Distributions -You can find tldraw on npm [here](https://www.npmjs.com/package/@tldraw/tldraw?activeTab=versions). +You can find tldraw on npm [here](https://www.npmjs.com/package/tldraw?activeTab=versions). ## Contribution diff --git a/packages/tldraw/api-report.md b/packages/tldraw/api-report.md index 31c6fa82b..72a6f0ef0 100644 --- a/packages/tldraw/api-report.md +++ b/packages/tldraw/api-report.md @@ -1,4 +1,4 @@ -## API Report File for "@tldraw/tldraw" +## API Report File for "tldraw" > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). diff --git a/packages/tldraw/api/api.json b/packages/tldraw/api/api.json index c2c100ef0..4b0992096 100644 --- a/packages/tldraw/api/api.json +++ b/packages/tldraw/api/api.json @@ -161,20 +161,20 @@ } }, "kind": "Package", - "canonicalReference": "@tldraw/tldraw!", + "canonicalReference": "tldraw!", "docComment": "", - "name": "@tldraw/tldraw", + "name": "tldraw", "preserveMemberOrder": false, "members": [ { "kind": "EntryPoint", - "canonicalReference": "@tldraw/tldraw!", + "canonicalReference": "tldraw!", "name": "", "preserveMemberOrder": false, "members": [ { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!AlignMenuItems:function(1)", + "canonicalReference": "tldraw!AlignMenuItems:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -207,7 +207,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ArrangeMenuSubmenu:function(1)", + "canonicalReference": "tldraw!ArrangeMenuSubmenu:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -244,7 +244,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ArrowheadStylePickerSet:function(1)", + "canonicalReference": "tldraw!ArrowheadStylePickerSet:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -307,7 +307,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!ArrowShapeTool:class", + "canonicalReference": "tldraw!ArrowShapeTool:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -332,7 +332,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ArrowShapeTool.children:member", + "canonicalReference": "tldraw!ArrowShapeTool.children:member", "docComment": "", "excerptTokens": [ { @@ -346,7 +346,7 @@ { "kind": "Reference", "text": "Idle", - "canonicalReference": "@tldraw/tldraw!~Idle:class" + "canonicalReference": "tldraw!~Idle:class" }, { "kind": "Content", @@ -355,7 +355,7 @@ { "kind": "Reference", "text": "Pointing", - "canonicalReference": "@tldraw/tldraw!~Pointing:class" + "canonicalReference": "tldraw!~Pointing:class" }, { "kind": "Content", @@ -380,7 +380,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ArrowShapeTool.id:member", + "canonicalReference": "tldraw!ArrowShapeTool.id:member", "docComment": "", "excerptTokens": [ { @@ -410,7 +410,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ArrowShapeTool.initial:member", + "canonicalReference": "tldraw!ArrowShapeTool.initial:member", "docComment": "", "excerptTokens": [ { @@ -440,7 +440,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ArrowShapeTool#shapeType:member", + "canonicalReference": "tldraw!ArrowShapeTool#shapeType:member", "docComment": "", "excerptTokens": [ { @@ -477,7 +477,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil:class", + "canonicalReference": "tldraw!ArrowShapeUtil:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -515,7 +515,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#canBind:member", + "canonicalReference": "tldraw!ArrowShapeUtil#canBind:member", "docComment": "", "excerptTokens": [ { @@ -545,7 +545,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#canEdit:member", + "canonicalReference": "tldraw!ArrowShapeUtil#canEdit:member", "docComment": "", "excerptTokens": [ { @@ -575,7 +575,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#canSnap:member", + "canonicalReference": "tldraw!ArrowShapeUtil#canSnap:member", "docComment": "", "excerptTokens": [ { @@ -605,7 +605,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#component:member(1)", + "canonicalReference": "tldraw!ArrowShapeUtil#component:member(1)", "docComment": "", "excerptTokens": [ { @@ -663,7 +663,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#getCanvasSvgDefs:member(1)", + "canonicalReference": "tldraw!ArrowShapeUtil#getCanvasSvgDefs:member(1)", "docComment": "", "excerptTokens": [ { @@ -699,7 +699,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#getDefaultProps:member(1)", + "canonicalReference": "tldraw!ArrowShapeUtil#getDefaultProps:member(1)", "docComment": "", "excerptTokens": [ { @@ -735,7 +735,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#getGeometry:member(1)", + "canonicalReference": "tldraw!ArrowShapeUtil#getGeometry:member(1)", "docComment": "", "excerptTokens": [ { @@ -785,7 +785,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#getHandles:member(1)", + "canonicalReference": "tldraw!ArrowShapeUtil#getHandles:member(1)", "docComment": "", "excerptTokens": [ { @@ -839,7 +839,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#hideResizeHandles:member", + "canonicalReference": "tldraw!ArrowShapeUtil#hideResizeHandles:member", "docComment": "", "excerptTokens": [ { @@ -883,7 +883,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#hideRotateHandle:member", + "canonicalReference": "tldraw!ArrowShapeUtil#hideRotateHandle:member", "docComment": "", "excerptTokens": [ { @@ -927,7 +927,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#hideSelectionBoundsBg:member", + "canonicalReference": "tldraw!ArrowShapeUtil#hideSelectionBoundsBg:member", "docComment": "", "excerptTokens": [ { @@ -971,7 +971,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#hideSelectionBoundsFg:member", + "canonicalReference": "tldraw!ArrowShapeUtil#hideSelectionBoundsFg:member", "docComment": "", "excerptTokens": [ { @@ -1015,7 +1015,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#indicator:member(1)", + "canonicalReference": "tldraw!ArrowShapeUtil#indicator:member(1)", "docComment": "", "excerptTokens": [ { @@ -1073,7 +1073,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil.migrations:member", + "canonicalReference": "tldraw!ArrowShapeUtil.migrations:member", "docComment": "", "excerptTokens": [ { @@ -1108,7 +1108,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#onDoubleClickHandle:member", + "canonicalReference": "tldraw!ArrowShapeUtil#onDoubleClickHandle:member", "docComment": "", "excerptTokens": [ { @@ -1174,7 +1174,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#onEditEnd:member", + "canonicalReference": "tldraw!ArrowShapeUtil#onEditEnd:member", "docComment": "", "excerptTokens": [ { @@ -1218,7 +1218,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#onHandleDrag:member", + "canonicalReference": "tldraw!ArrowShapeUtil#onHandleDrag:member", "docComment": "", "excerptTokens": [ { @@ -1262,7 +1262,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#onResize:member", + "canonicalReference": "tldraw!ArrowShapeUtil#onResize:member", "docComment": "", "excerptTokens": [ { @@ -1306,7 +1306,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#onTranslate:member", + "canonicalReference": "tldraw!ArrowShapeUtil#onTranslate:member", "docComment": "", "excerptTokens": [ { @@ -1350,7 +1350,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#onTranslateStart:member", + "canonicalReference": "tldraw!ArrowShapeUtil#onTranslateStart:member", "docComment": "", "excerptTokens": [ { @@ -1394,7 +1394,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil.props:member", + "canonicalReference": "tldraw!ArrowShapeUtil.props:member", "docComment": "", "excerptTokens": [ { @@ -1613,7 +1613,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#toSvg:member(1)", + "canonicalReference": "tldraw!ArrowShapeUtil#toSvg:member(1)", "docComment": "", "excerptTokens": [ { @@ -1680,7 +1680,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ArrowShapeUtil.type:member", + "canonicalReference": "tldraw!ArrowShapeUtil.type:member", "docComment": "", "excerptTokens": [ { @@ -1717,7 +1717,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil:class", + "canonicalReference": "tldraw!BookmarkShapeUtil:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -1755,7 +1755,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil#canResize:member", + "canonicalReference": "tldraw!BookmarkShapeUtil#canResize:member", "docComment": "", "excerptTokens": [ { @@ -1785,7 +1785,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil#component:member(1)", + "canonicalReference": "tldraw!BookmarkShapeUtil#component:member(1)", "docComment": "", "excerptTokens": [ { @@ -1839,7 +1839,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil#getDefaultProps:member(1)", + "canonicalReference": "tldraw!BookmarkShapeUtil#getDefaultProps:member(1)", "docComment": "", "excerptTokens": [ { @@ -1875,7 +1875,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil#hideSelectionBoundsFg:member", + "canonicalReference": "tldraw!BookmarkShapeUtil#hideSelectionBoundsFg:member", "docComment": "", "excerptTokens": [ { @@ -1905,7 +1905,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil#indicator:member(1)", + "canonicalReference": "tldraw!BookmarkShapeUtil#indicator:member(1)", "docComment": "", "excerptTokens": [ { @@ -1959,7 +1959,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil.migrations:member", + "canonicalReference": "tldraw!BookmarkShapeUtil.migrations:member", "docComment": "", "excerptTokens": [ { @@ -1994,7 +1994,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil#onBeforeCreate:member", + "canonicalReference": "tldraw!BookmarkShapeUtil#onBeforeCreate:member", "docComment": "", "excerptTokens": [ { @@ -2038,7 +2038,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil#onBeforeUpdate:member", + "canonicalReference": "tldraw!BookmarkShapeUtil#onBeforeUpdate:member", "docComment": "", "excerptTokens": [ { @@ -2082,7 +2082,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil.props:member", + "canonicalReference": "tldraw!BookmarkShapeUtil.props:member", "docComment": "", "excerptTokens": [ { @@ -2157,7 +2157,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil.type:member", + "canonicalReference": "tldraw!BookmarkShapeUtil.type:member", "docComment": "", "excerptTokens": [ { @@ -2194,7 +2194,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!BreakPointProvider:function(1)", + "canonicalReference": "tldraw!BreakPointProvider:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -2244,7 +2244,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ClipboardMenuGroup:function(1)", + "canonicalReference": "tldraw!ClipboardMenuGroup:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -2277,7 +2277,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!CommonStylePickerSet:function(1)", + "canonicalReference": "tldraw!CommonStylePickerSet:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -2336,7 +2336,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!containBoxSize:function(1)", + "canonicalReference": "tldraw!containBoxSize:function(1)", "docComment": "/**\n * Contains the size within the given box size\n *\n * @param originalSize - The size of the asset\n *\n * @param containBoxSize - The container size\n *\n * @returns Adjusted size\n *\n * @public\n */\n", "excerptTokens": [ { @@ -2346,7 +2346,7 @@ { "kind": "Reference", "text": "BoxWidthHeight", - "canonicalReference": "@tldraw/tldraw!~BoxWidthHeight:type" + "canonicalReference": "tldraw!~BoxWidthHeight:type" }, { "kind": "Content", @@ -2355,7 +2355,7 @@ { "kind": "Reference", "text": "BoxWidthHeight", - "canonicalReference": "@tldraw/tldraw!~BoxWidthHeight:type" + "canonicalReference": "tldraw!~BoxWidthHeight:type" }, { "kind": "Content", @@ -2364,7 +2364,7 @@ { "kind": "Reference", "text": "BoxWidthHeight", - "canonicalReference": "@tldraw/tldraw!~BoxWidthHeight:type" + "canonicalReference": "tldraw!~BoxWidthHeight:type" }, { "kind": "Content", @@ -2400,7 +2400,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ConversionsMenuGroup:function(1)", + "canonicalReference": "tldraw!ConversionsMenuGroup:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -2433,7 +2433,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!copyAs:function(1)", + "canonicalReference": "tldraw!copyAs:function(1)", "docComment": "/**\n * Copy the given shapes to the clipboard.\n *\n * @param editor - The editor instance.\n *\n * @param ids - The ids of the shapes to copy.\n *\n * @param format - The format to copy as.\n *\n * @param opts - Options for the copy.\n *\n * @public\n */\n", "excerptTokens": [ { @@ -2465,7 +2465,7 @@ { "kind": "Reference", "text": "TLCopyType", - "canonicalReference": "@tldraw/tldraw!~TLCopyType:type" + "canonicalReference": "tldraw!~TLCopyType:type" }, { "kind": "Content", @@ -2552,7 +2552,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!CopyMenuItem:function(1)", + "canonicalReference": "tldraw!CopyMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -2585,7 +2585,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!CutMenuItem:function(1)", + "canonicalReference": "tldraw!CutMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -2618,7 +2618,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!DebugFlags:function(1)", + "canonicalReference": "tldraw!DebugFlags:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -2655,7 +2655,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!DEFAULT_ACCEPTED_IMG_TYPE:var", + "canonicalReference": "tldraw!DEFAULT_ACCEPTED_IMG_TYPE:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -2678,7 +2678,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!DEFAULT_ACCEPTED_VID_TYPE:var", + "canonicalReference": "tldraw!DEFAULT_ACCEPTED_VID_TYPE:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -2701,7 +2701,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!DefaultActionsMenu:var", + "canonicalReference": "tldraw!DefaultActionsMenu:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -2724,7 +2724,7 @@ { "kind": "Reference", "text": "TLUiActionsMenuProps", - "canonicalReference": "@tldraw/tldraw!TLUiActionsMenuProps:type" + "canonicalReference": "tldraw!TLUiActionsMenuProps:type" }, { "kind": "Content", @@ -2742,7 +2742,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!DefaultActionsMenuContent:function(1)", + "canonicalReference": "tldraw!DefaultActionsMenuContent:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -2775,7 +2775,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!DefaultContextMenu:var", + "canonicalReference": "tldraw!DefaultContextMenu:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -2798,7 +2798,7 @@ { "kind": "Reference", "text": "TLUiContextMenuProps", - "canonicalReference": "@tldraw/tldraw!TLUiContextMenuProps:interface" + "canonicalReference": "tldraw!TLUiContextMenuProps:interface" }, { "kind": "Content", @@ -2816,7 +2816,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!DefaultContextMenuContent:function(1)", + "canonicalReference": "tldraw!DefaultContextMenuContent:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -2853,7 +2853,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!DefaultDebugMenu:function(1)", + "canonicalReference": "tldraw!DefaultDebugMenu:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -2863,7 +2863,7 @@ { "kind": "Reference", "text": "TLUiDebugMenuProps", - "canonicalReference": "@tldraw/tldraw!TLUiDebugMenuProps:type" + "canonicalReference": "tldraw!TLUiDebugMenuProps:type" }, { "kind": "Content", @@ -2904,7 +2904,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!DefaultDebugMenuContent:function(1)", + "canonicalReference": "tldraw!DefaultDebugMenuContent:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -2937,7 +2937,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!DefaultHelperButtons:function(1)", + "canonicalReference": "tldraw!DefaultHelperButtons:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -2947,7 +2947,7 @@ { "kind": "Reference", "text": "TLUiHelperButtonsProps", - "canonicalReference": "@tldraw/tldraw!TLUiHelperButtonsProps:type" + "canonicalReference": "tldraw!TLUiHelperButtonsProps:type" }, { "kind": "Content", @@ -2988,7 +2988,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!DefaultHelperButtonsContent:function(1)", + "canonicalReference": "tldraw!DefaultHelperButtonsContent:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3021,7 +3021,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!DefaultHelpMenu:var", + "canonicalReference": "tldraw!DefaultHelpMenu:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3044,7 +3044,7 @@ { "kind": "Reference", "text": "TLUiHelpMenuProps", - "canonicalReference": "@tldraw/tldraw!TLUiHelpMenuProps:type" + "canonicalReference": "tldraw!TLUiHelpMenuProps:type" }, { "kind": "Content", @@ -3062,7 +3062,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!DefaultHelpMenuContent:function(1)", + "canonicalReference": "tldraw!DefaultHelpMenuContent:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3095,7 +3095,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!DefaultKeyboardShortcutsDialog:var", + "canonicalReference": "tldraw!DefaultKeyboardShortcutsDialog:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3118,7 +3118,7 @@ { "kind": "Reference", "text": "TLUiKeyboardShortcutsDialogProps", - "canonicalReference": "@tldraw/tldraw!TLUiKeyboardShortcutsDialogProps:type" + "canonicalReference": "tldraw!TLUiKeyboardShortcutsDialogProps:type" }, { "kind": "Content", @@ -3136,7 +3136,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!DefaultKeyboardShortcutsDialogContent:function(1)", + "canonicalReference": "tldraw!DefaultKeyboardShortcutsDialogContent:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3169,7 +3169,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!DefaultMainMenu:var", + "canonicalReference": "tldraw!DefaultMainMenu:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3192,7 +3192,7 @@ { "kind": "Reference", "text": "TLUiMainMenuProps", - "canonicalReference": "@tldraw/tldraw!TLUiMainMenuProps:type" + "canonicalReference": "tldraw!TLUiMainMenuProps:type" }, { "kind": "Content", @@ -3210,7 +3210,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!DefaultMainMenuContent:function(1)", + "canonicalReference": "tldraw!DefaultMainMenuContent:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3243,7 +3243,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!DefaultMinimap:function(1)", + "canonicalReference": "tldraw!DefaultMinimap:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3276,7 +3276,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!DefaultPageMenu:var", + "canonicalReference": "tldraw!DefaultPageMenu:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3308,7 +3308,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!DefaultQuickActions:var", + "canonicalReference": "tldraw!DefaultQuickActions:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3331,7 +3331,7 @@ { "kind": "Reference", "text": "TLUiQuickActionsProps", - "canonicalReference": "@tldraw/tldraw!TLUiQuickActionsProps:type" + "canonicalReference": "tldraw!TLUiQuickActionsProps:type" }, { "kind": "Content", @@ -3349,7 +3349,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!DefaultQuickActionsContent:function(1)", + "canonicalReference": "tldraw!DefaultQuickActionsContent:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3386,7 +3386,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!defaultShapeTools:var", + "canonicalReference": "tldraw!defaultShapeTools:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3400,7 +3400,7 @@ { "kind": "Reference", "text": "ArrowShapeTool", - "canonicalReference": "@tldraw/tldraw!ArrowShapeTool:class" + "canonicalReference": "tldraw!ArrowShapeTool:class" }, { "kind": "Content", @@ -3409,7 +3409,7 @@ { "kind": "Reference", "text": "DrawShapeTool", - "canonicalReference": "@tldraw/tldraw!DrawShapeTool:class" + "canonicalReference": "tldraw!DrawShapeTool:class" }, { "kind": "Content", @@ -3418,7 +3418,7 @@ { "kind": "Reference", "text": "FrameShapeTool", - "canonicalReference": "@tldraw/tldraw!FrameShapeTool:class" + "canonicalReference": "tldraw!FrameShapeTool:class" }, { "kind": "Content", @@ -3427,7 +3427,7 @@ { "kind": "Reference", "text": "GeoShapeTool", - "canonicalReference": "@tldraw/tldraw!GeoShapeTool:class" + "canonicalReference": "tldraw!GeoShapeTool:class" }, { "kind": "Content", @@ -3436,7 +3436,7 @@ { "kind": "Reference", "text": "LineShapeTool", - "canonicalReference": "@tldraw/tldraw!LineShapeTool:class" + "canonicalReference": "tldraw!LineShapeTool:class" }, { "kind": "Content", @@ -3445,7 +3445,7 @@ { "kind": "Reference", "text": "NoteShapeTool", - "canonicalReference": "@tldraw/tldraw!NoteShapeTool:class" + "canonicalReference": "tldraw!NoteShapeTool:class" }, { "kind": "Content", @@ -3454,7 +3454,7 @@ { "kind": "Reference", "text": "TextShapeTool", - "canonicalReference": "@tldraw/tldraw!TextShapeTool:class" + "canonicalReference": "tldraw!TextShapeTool:class" }, { "kind": "Content", @@ -3472,7 +3472,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!defaultShapeUtils:var", + "canonicalReference": "tldraw!defaultShapeUtils:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3500,7 +3500,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!DefaultStylePanel:var", + "canonicalReference": "tldraw!DefaultStylePanel:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3523,7 +3523,7 @@ { "kind": "Reference", "text": "TLUiStylePanelProps", - "canonicalReference": "@tldraw/tldraw!TLUiStylePanelProps:interface" + "canonicalReference": "tldraw!TLUiStylePanelProps:interface" }, { "kind": "Content", @@ -3541,7 +3541,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!DefaultStylePanelContent:function(1)", + "canonicalReference": "tldraw!DefaultStylePanelContent:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3551,7 +3551,7 @@ { "kind": "Reference", "text": "TLUiStylePanelContentProps", - "canonicalReference": "@tldraw/tldraw!TLUiStylePanelContentProps:type" + "canonicalReference": "tldraw!TLUiStylePanelContentProps:type" }, { "kind": "Content", @@ -3596,7 +3596,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!DefaultToolbar:var", + "canonicalReference": "tldraw!DefaultToolbar:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3624,7 +3624,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!defaultTools:var", + "canonicalReference": "tldraw!defaultTools:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3638,7 +3638,7 @@ { "kind": "Reference", "text": "EraserTool", - "canonicalReference": "@tldraw/tldraw!EraserTool:class" + "canonicalReference": "tldraw!EraserTool:class" }, { "kind": "Content", @@ -3647,7 +3647,7 @@ { "kind": "Reference", "text": "HandTool", - "canonicalReference": "@tldraw/tldraw!HandTool:class" + "canonicalReference": "tldraw!HandTool:class" }, { "kind": "Content", @@ -3656,7 +3656,7 @@ { "kind": "Reference", "text": "LaserTool", - "canonicalReference": "@tldraw/tldraw!LaserTool:class" + "canonicalReference": "tldraw!LaserTool:class" }, { "kind": "Content", @@ -3665,7 +3665,7 @@ { "kind": "Reference", "text": "SelectTool", - "canonicalReference": "@tldraw/tldraw!SelectTool:class" + "canonicalReference": "tldraw!SelectTool:class" }, { "kind": "Content", @@ -3674,7 +3674,7 @@ { "kind": "Reference", "text": "ZoomTool", - "canonicalReference": "@tldraw/tldraw!ZoomTool:class" + "canonicalReference": "tldraw!ZoomTool:class" }, { "kind": "Content", @@ -3692,7 +3692,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!DefaultZoomMenu:var", + "canonicalReference": "tldraw!DefaultZoomMenu:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3715,7 +3715,7 @@ { "kind": "Reference", "text": "TLUiZoomMenuProps", - "canonicalReference": "@tldraw/tldraw!TLUiZoomMenuProps:type" + "canonicalReference": "tldraw!TLUiZoomMenuProps:type" }, { "kind": "Content", @@ -3733,7 +3733,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!DefaultZoomMenuContent:function(1)", + "canonicalReference": "tldraw!DefaultZoomMenuContent:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3766,7 +3766,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!DeleteMenuItem:function(1)", + "canonicalReference": "tldraw!DeleteMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3799,7 +3799,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!DistributeMenuItems:function(1)", + "canonicalReference": "tldraw!DistributeMenuItems:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3832,7 +3832,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!downsizeImage:function(1)", + "canonicalReference": "tldraw!downsizeImage:function(1)", "docComment": "/**\n * Resize an image Blob to be smaller than it is currently.\n *\n * @param image - The image Blob.\n *\n * @param width - The desired width.\n *\n * @param height - The desired height.\n *\n * @param opts - Options for the image.\n *\n * @example\n * ```ts\n * const image = await (await fetch('/image.jpg')).blob()\n * const size = await getImageSize(image)\n * const resizedImage = await downsizeImage(image, size.w / 2, size.h / 2, { type: \"image/jpeg\", quality: 0.92 })\n * ```\n *\n * @public\n */\n", "excerptTokens": [ { @@ -3940,7 +3940,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!DrawShapeTool:class", + "canonicalReference": "tldraw!DrawShapeTool:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -3965,7 +3965,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!DrawShapeTool.children:member", + "canonicalReference": "tldraw!DrawShapeTool.children:member", "docComment": "", "excerptTokens": [ { @@ -3979,7 +3979,7 @@ { "kind": "Reference", "text": "Drawing", - "canonicalReference": "@tldraw/tldraw!~Drawing:class" + "canonicalReference": "tldraw!~Drawing:class" }, { "kind": "Content", @@ -3988,7 +3988,7 @@ { "kind": "Reference", "text": "Idle", - "canonicalReference": "@tldraw/tldraw!~Idle_2:class" + "canonicalReference": "tldraw!~Idle_2:class" }, { "kind": "Content", @@ -4013,7 +4013,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!DrawShapeTool.id:member", + "canonicalReference": "tldraw!DrawShapeTool.id:member", "docComment": "", "excerptTokens": [ { @@ -4043,7 +4043,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!DrawShapeTool.initial:member", + "canonicalReference": "tldraw!DrawShapeTool.initial:member", "docComment": "", "excerptTokens": [ { @@ -4073,7 +4073,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!DrawShapeTool#onExit:member", + "canonicalReference": "tldraw!DrawShapeTool#onExit:member", "docComment": "", "excerptTokens": [ { @@ -4103,7 +4103,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!DrawShapeTool#shapeType:member", + "canonicalReference": "tldraw!DrawShapeTool#shapeType:member", "docComment": "", "excerptTokens": [ { @@ -4140,7 +4140,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!DrawShapeUtil:class", + "canonicalReference": "tldraw!DrawShapeUtil:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -4178,7 +4178,7 @@ "members": [ { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#component:member(1)", + "canonicalReference": "tldraw!DrawShapeUtil#component:member(1)", "docComment": "", "excerptTokens": [ { @@ -4232,7 +4232,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#expandSelectionOutlinePx:member(1)", + "canonicalReference": "tldraw!DrawShapeUtil#expandSelectionOutlinePx:member(1)", "docComment": "", "excerptTokens": [ { @@ -4281,7 +4281,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#getCanvasSvgDefs:member(1)", + "canonicalReference": "tldraw!DrawShapeUtil#getCanvasSvgDefs:member(1)", "docComment": "", "excerptTokens": [ { @@ -4317,7 +4317,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#getDefaultProps:member(1)", + "canonicalReference": "tldraw!DrawShapeUtil#getDefaultProps:member(1)", "docComment": "", "excerptTokens": [ { @@ -4353,7 +4353,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#getGeometry:member(1)", + "canonicalReference": "tldraw!DrawShapeUtil#getGeometry:member(1)", "docComment": "", "excerptTokens": [ { @@ -4412,7 +4412,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#hideResizeHandles:member", + "canonicalReference": "tldraw!DrawShapeUtil#hideResizeHandles:member", "docComment": "", "excerptTokens": [ { @@ -4451,7 +4451,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#hideRotateHandle:member", + "canonicalReference": "tldraw!DrawShapeUtil#hideRotateHandle:member", "docComment": "", "excerptTokens": [ { @@ -4490,7 +4490,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#hideSelectionBoundsFg:member", + "canonicalReference": "tldraw!DrawShapeUtil#hideSelectionBoundsFg:member", "docComment": "", "excerptTokens": [ { @@ -4529,7 +4529,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#indicator:member(1)", + "canonicalReference": "tldraw!DrawShapeUtil#indicator:member(1)", "docComment": "", "excerptTokens": [ { @@ -4583,7 +4583,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!DrawShapeUtil.migrations:member", + "canonicalReference": "tldraw!DrawShapeUtil.migrations:member", "docComment": "", "excerptTokens": [ { @@ -4618,7 +4618,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#onResize:member", + "canonicalReference": "tldraw!DrawShapeUtil#onResize:member", "docComment": "", "excerptTokens": [ { @@ -4662,7 +4662,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!DrawShapeUtil.props:member", + "canonicalReference": "tldraw!DrawShapeUtil.props:member", "docComment": "", "excerptTokens": [ { @@ -4773,7 +4773,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!DrawShapeUtil#toSvg:member(1)", + "canonicalReference": "tldraw!DrawShapeUtil#toSvg:member(1)", "docComment": "", "excerptTokens": [ { @@ -4840,7 +4840,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!DrawShapeUtil.type:member", + "canonicalReference": "tldraw!DrawShapeUtil.type:member", "docComment": "", "excerptTokens": [ { @@ -4877,7 +4877,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!DuplicateMenuItem:function(1)", + "canonicalReference": "tldraw!DuplicateMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -4910,7 +4910,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!EditLinkMenuItem:function(1)", + "canonicalReference": "tldraw!EditLinkMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -4943,7 +4943,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!EditSubmenu:function(1)", + "canonicalReference": "tldraw!EditSubmenu:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -4976,7 +4976,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!EmbedsGroup:function(1)", + "canonicalReference": "tldraw!EmbedsGroup:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -5009,7 +5009,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil:class", + "canonicalReference": "tldraw!EmbedShapeUtil:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -5047,7 +5047,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#canEdit:member", + "canonicalReference": "tldraw!EmbedShapeUtil#canEdit:member", "docComment": "", "excerptTokens": [ { @@ -5091,7 +5091,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#canEditInReadOnly:member", + "canonicalReference": "tldraw!EmbedShapeUtil#canEditInReadOnly:member", "docComment": "", "excerptTokens": [ { @@ -5121,7 +5121,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#canResize:member", + "canonicalReference": "tldraw!EmbedShapeUtil#canResize:member", "docComment": "", "excerptTokens": [ { @@ -5160,7 +5160,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#canUnmount:member", + "canonicalReference": "tldraw!EmbedShapeUtil#canUnmount:member", "docComment": "", "excerptTokens": [ { @@ -5204,7 +5204,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#component:member(1)", + "canonicalReference": "tldraw!EmbedShapeUtil#component:member(1)", "docComment": "", "excerptTokens": [ { @@ -5258,7 +5258,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#getDefaultProps:member(1)", + "canonicalReference": "tldraw!EmbedShapeUtil#getDefaultProps:member(1)", "docComment": "", "excerptTokens": [ { @@ -5294,7 +5294,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#hideSelectionBoundsFg:member", + "canonicalReference": "tldraw!EmbedShapeUtil#hideSelectionBoundsFg:member", "docComment": "", "excerptTokens": [ { @@ -5338,7 +5338,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#indicator:member(1)", + "canonicalReference": "tldraw!EmbedShapeUtil#indicator:member(1)", "docComment": "", "excerptTokens": [ { @@ -5392,7 +5392,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#isAspectRatioLocked:member", + "canonicalReference": "tldraw!EmbedShapeUtil#isAspectRatioLocked:member", "docComment": "", "excerptTokens": [ { @@ -5436,7 +5436,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil.migrations:member", + "canonicalReference": "tldraw!EmbedShapeUtil.migrations:member", "docComment": "", "excerptTokens": [ { @@ -5471,7 +5471,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#onResize:member", + "canonicalReference": "tldraw!EmbedShapeUtil#onResize:member", "docComment": "", "excerptTokens": [ { @@ -5515,7 +5515,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil.props:member", + "canonicalReference": "tldraw!EmbedShapeUtil.props:member", "docComment": "", "excerptTokens": [ { @@ -5572,7 +5572,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!EmbedShapeUtil.type:member", + "canonicalReference": "tldraw!EmbedShapeUtil.type:member", "docComment": "", "excerptTokens": [ { @@ -5609,7 +5609,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!EraserTool:class", + "canonicalReference": "tldraw!EraserTool:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -5634,7 +5634,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!EraserTool.children:member", + "canonicalReference": "tldraw!EraserTool.children:member", "docComment": "", "excerptTokens": [ { @@ -5648,7 +5648,7 @@ { "kind": "Reference", "text": "Erasing", - "canonicalReference": "@tldraw/tldraw!~Erasing:class" + "canonicalReference": "tldraw!~Erasing:class" }, { "kind": "Content", @@ -5657,7 +5657,7 @@ { "kind": "Reference", "text": "Idle", - "canonicalReference": "@tldraw/tldraw!~Idle_7:class" + "canonicalReference": "tldraw!~Idle_7:class" }, { "kind": "Content", @@ -5666,7 +5666,7 @@ { "kind": "Reference", "text": "Pointing", - "canonicalReference": "@tldraw/tldraw!~Pointing_6:class" + "canonicalReference": "tldraw!~Pointing_6:class" }, { "kind": "Content", @@ -5691,7 +5691,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!EraserTool.id:member", + "canonicalReference": "tldraw!EraserTool.id:member", "docComment": "", "excerptTokens": [ { @@ -5721,7 +5721,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!EraserTool.initial:member", + "canonicalReference": "tldraw!EraserTool.initial:member", "docComment": "", "excerptTokens": [ { @@ -5751,7 +5751,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!EraserTool#onEnter:member", + "canonicalReference": "tldraw!EraserTool#onEnter:member", "docComment": "", "excerptTokens": [ { @@ -5788,7 +5788,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!EventsProviderProps:type", + "canonicalReference": "tldraw!EventsProviderProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -5802,7 +5802,7 @@ { "kind": "Reference", "text": "TLUiEventHandler", - "canonicalReference": "@tldraw/tldraw!TLUiEventHandler:type" + "canonicalReference": "tldraw!TLUiEventHandler:type" }, { "kind": "Content", @@ -5823,7 +5823,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ExampleDialog:function(1)", + "canonicalReference": "tldraw!ExampleDialog:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -5873,7 +5873,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!exportAs:function(1)", + "canonicalReference": "tldraw!exportAs:function(1)", "docComment": "/**\n * Export the given shapes as files.\n *\n * @param editor - The editor instance.\n *\n * @param ids - The ids of the shapes to export.\n *\n * @param format - The format to export as.\n *\n * @param name - Name of the exported file. If undefined a predefined name, based on the selection, will be used.\n *\n * @param opts - Options for the export.\n *\n * @public\n */\n", "excerptTokens": [ { @@ -5905,7 +5905,7 @@ { "kind": "Reference", "text": "TLExportType", - "canonicalReference": "@tldraw/tldraw!~TLExportType:type" + "canonicalReference": "tldraw!~TLExportType:type" }, { "kind": "Content", @@ -6012,7 +6012,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ExportFileContentSubMenu:function(1)", + "canonicalReference": "tldraw!ExportFileContentSubMenu:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -6045,7 +6045,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!exportToBlob:function(1)", + "canonicalReference": "tldraw!exportToBlob:function(1)", "docComment": "/**\n * Export the given shapes as a blob.\n *\n * @param editor - The editor instance.\n *\n * @param ids - The ids of the shapes to export.\n *\n * @param format - The format to export as.\n *\n * @param opts - Rendering options.\n *\n * @returns A promise that resolves to a blob.\n *\n * @public\n */\n", "excerptTokens": [ { @@ -6140,7 +6140,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ExtrasGroup:function(1)", + "canonicalReference": "tldraw!ExtrasGroup:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -6173,7 +6173,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!FeatureFlags:function(1)", + "canonicalReference": "tldraw!FeatureFlags:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -6210,7 +6210,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!fitFrameToContent:function(1)", + "canonicalReference": "tldraw!fitFrameToContent:function(1)", "docComment": "/**\n * Fit a frame to its content.\n *\n * @param id - Id of the frame you wish to fit to content.\n *\n * @param editor - tlraw editor instance.\n *\n * @param opts - Options for fitting the frame.\n *\n * @public\n */\n", "excerptTokens": [ { @@ -6289,7 +6289,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!FitFrameToContentMenuItem:function(1)", + "canonicalReference": "tldraw!FitFrameToContentMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -6322,7 +6322,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!FrameShapeTool:class", + "canonicalReference": "tldraw!FrameShapeTool:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -6347,7 +6347,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!FrameShapeTool.id:member", + "canonicalReference": "tldraw!FrameShapeTool.id:member", "docComment": "", "excerptTokens": [ { @@ -6377,7 +6377,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!FrameShapeTool.initial:member", + "canonicalReference": "tldraw!FrameShapeTool.initial:member", "docComment": "", "excerptTokens": [ { @@ -6407,7 +6407,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!FrameShapeTool#onCreate:member", + "canonicalReference": "tldraw!FrameShapeTool#onCreate:member", "docComment": "", "excerptTokens": [ { @@ -6446,7 +6446,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!FrameShapeTool#shapeType:member", + "canonicalReference": "tldraw!FrameShapeTool#shapeType:member", "docComment": "", "excerptTokens": [ { @@ -6483,7 +6483,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!FrameShapeUtil:class", + "canonicalReference": "tldraw!FrameShapeUtil:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -6521,7 +6521,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#canBind:member", + "canonicalReference": "tldraw!FrameShapeUtil#canBind:member", "docComment": "", "excerptTokens": [ { @@ -6551,7 +6551,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#canDropShapes:member", + "canonicalReference": "tldraw!FrameShapeUtil#canDropShapes:member", "docComment": "", "excerptTokens": [ { @@ -6599,7 +6599,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#canEdit:member", + "canonicalReference": "tldraw!FrameShapeUtil#canEdit:member", "docComment": "", "excerptTokens": [ { @@ -6629,7 +6629,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#canReceiveNewChildrenOfType:member", + "canonicalReference": "tldraw!FrameShapeUtil#canReceiveNewChildrenOfType:member", "docComment": "", "excerptTokens": [ { @@ -6677,7 +6677,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#component:member(1)", + "canonicalReference": "tldraw!FrameShapeUtil#component:member(1)", "docComment": "", "excerptTokens": [ { @@ -6731,7 +6731,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#getDefaultProps:member(1)", + "canonicalReference": "tldraw!FrameShapeUtil#getDefaultProps:member(1)", "docComment": "", "excerptTokens": [ { @@ -6767,7 +6767,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#getGeometry:member(1)", + "canonicalReference": "tldraw!FrameShapeUtil#getGeometry:member(1)", "docComment": "", "excerptTokens": [ { @@ -6817,7 +6817,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#indicator:member(1)", + "canonicalReference": "tldraw!FrameShapeUtil#indicator:member(1)", "docComment": "", "excerptTokens": [ { @@ -6871,7 +6871,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!FrameShapeUtil.migrations:member", + "canonicalReference": "tldraw!FrameShapeUtil.migrations:member", "docComment": "", "excerptTokens": [ { @@ -6906,7 +6906,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#onDragShapesOut:member", + "canonicalReference": "tldraw!FrameShapeUtil#onDragShapesOut:member", "docComment": "", "excerptTokens": [ { @@ -6954,7 +6954,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#onDragShapesOver:member", + "canonicalReference": "tldraw!FrameShapeUtil#onDragShapesOver:member", "docComment": "", "excerptTokens": [ { @@ -7002,7 +7002,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#onResize:member", + "canonicalReference": "tldraw!FrameShapeUtil#onResize:member", "docComment": "", "excerptTokens": [ { @@ -7037,7 +7037,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#onResizeEnd:member", + "canonicalReference": "tldraw!FrameShapeUtil#onResizeEnd:member", "docComment": "", "excerptTokens": [ { @@ -7081,7 +7081,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!FrameShapeUtil.props:member", + "canonicalReference": "tldraw!FrameShapeUtil.props:member", "docComment": "", "excerptTokens": [ { @@ -7138,7 +7138,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#providesBackgroundForChildren:member(1)", + "canonicalReference": "tldraw!FrameShapeUtil#providesBackgroundForChildren:member(1)", "docComment": "", "excerptTokens": [ { @@ -7169,7 +7169,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!FrameShapeUtil#toSvg:member(1)", + "canonicalReference": "tldraw!FrameShapeUtil#toSvg:member(1)", "docComment": "", "excerptTokens": [ { @@ -7254,7 +7254,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!FrameShapeUtil.type:member", + "canonicalReference": "tldraw!FrameShapeUtil.type:member", "docComment": "", "excerptTokens": [ { @@ -7291,7 +7291,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!GeoShapeTool:class", + "canonicalReference": "tldraw!GeoShapeTool:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -7316,7 +7316,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!GeoShapeTool.children:member", + "canonicalReference": "tldraw!GeoShapeTool.children:member", "docComment": "", "excerptTokens": [ { @@ -7330,7 +7330,7 @@ { "kind": "Reference", "text": "Idle", - "canonicalReference": "@tldraw/tldraw!~Idle_3:class" + "canonicalReference": "tldraw!~Idle_3:class" }, { "kind": "Content", @@ -7339,7 +7339,7 @@ { "kind": "Reference", "text": "Pointing", - "canonicalReference": "@tldraw/tldraw!~Pointing_2:class" + "canonicalReference": "tldraw!~Pointing_2:class" }, { "kind": "Content", @@ -7364,7 +7364,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!GeoShapeTool.id:member", + "canonicalReference": "tldraw!GeoShapeTool.id:member", "docComment": "", "excerptTokens": [ { @@ -7394,7 +7394,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!GeoShapeTool.initial:member", + "canonicalReference": "tldraw!GeoShapeTool.initial:member", "docComment": "", "excerptTokens": [ { @@ -7424,7 +7424,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!GeoShapeTool#shapeType:member", + "canonicalReference": "tldraw!GeoShapeTool#shapeType:member", "docComment": "", "excerptTokens": [ { @@ -7461,7 +7461,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!GeoShapeUtil:class", + "canonicalReference": "tldraw!GeoShapeUtil:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -7499,7 +7499,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#canEdit:member", + "canonicalReference": "tldraw!GeoShapeUtil#canEdit:member", "docComment": "", "excerptTokens": [ { @@ -7529,7 +7529,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#component:member(1)", + "canonicalReference": "tldraw!GeoShapeUtil#component:member(1)", "docComment": "", "excerptTokens": [ { @@ -7583,7 +7583,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#getCanvasSvgDefs:member(1)", + "canonicalReference": "tldraw!GeoShapeUtil#getCanvasSvgDefs:member(1)", "docComment": "", "excerptTokens": [ { @@ -7619,7 +7619,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#getDefaultProps:member(1)", + "canonicalReference": "tldraw!GeoShapeUtil#getDefaultProps:member(1)", "docComment": "", "excerptTokens": [ { @@ -7655,7 +7655,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#getGeometry:member(1)", + "canonicalReference": "tldraw!GeoShapeUtil#getGeometry:member(1)", "docComment": "", "excerptTokens": [ { @@ -7705,7 +7705,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#getHandleSnapGeometry:member(1)", + "canonicalReference": "tldraw!GeoShapeUtil#getHandleSnapGeometry:member(1)", "docComment": "", "excerptTokens": [ { @@ -7755,7 +7755,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#indicator:member(1)", + "canonicalReference": "tldraw!GeoShapeUtil#indicator:member(1)", "docComment": "", "excerptTokens": [ { @@ -7809,7 +7809,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!GeoShapeUtil.migrations:member", + "canonicalReference": "tldraw!GeoShapeUtil.migrations:member", "docComment": "", "excerptTokens": [ { @@ -7844,7 +7844,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#onBeforeCreate:member", + "canonicalReference": "tldraw!GeoShapeUtil#onBeforeCreate:member", "docComment": "", "excerptTokens": [ { @@ -7919,7 +7919,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#onBeforeUpdate:member", + "canonicalReference": "tldraw!GeoShapeUtil#onBeforeUpdate:member", "docComment": "", "excerptTokens": [ { @@ -8003,7 +8003,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#onDoubleClick:member", + "canonicalReference": "tldraw!GeoShapeUtil#onDoubleClick:member", "docComment": "", "excerptTokens": [ { @@ -8114,7 +8114,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#onEditEnd:member", + "canonicalReference": "tldraw!GeoShapeUtil#onEditEnd:member", "docComment": "", "excerptTokens": [ { @@ -8158,7 +8158,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#onResize:member", + "canonicalReference": "tldraw!GeoShapeUtil#onResize:member", "docComment": "", "excerptTokens": [ { @@ -8202,7 +8202,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!GeoShapeUtil.props:member", + "canonicalReference": "tldraw!GeoShapeUtil.props:member", "docComment": "", "excerptTokens": [ { @@ -8358,7 +8358,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!GeoShapeUtil#toSvg:member(1)", + "canonicalReference": "tldraw!GeoShapeUtil#toSvg:member(1)", "docComment": "", "excerptTokens": [ { @@ -8425,7 +8425,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!GeoShapeUtil.type:member", + "canonicalReference": "tldraw!GeoShapeUtil.type:member", "docComment": "", "excerptTokens": [ { @@ -8462,7 +8462,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!GeoStylePickerSet:function(1)", + "canonicalReference": "tldraw!GeoStylePickerSet:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -8525,7 +8525,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!getEmbedInfo:function(1)", + "canonicalReference": "tldraw!getEmbedInfo:function(1)", "docComment": "/**\n * Tests whether an URL supports embedding and returns the result. If we encounter an error, we return undefined.\n *\n * @param inputUrl - The URL to match\n *\n * @public\n */\n", "excerptTokens": [ { @@ -8543,7 +8543,7 @@ { "kind": "Reference", "text": "TLEmbedResult", - "canonicalReference": "@tldraw/tldraw!~TLEmbedResult:type" + "canonicalReference": "tldraw!~TLEmbedResult:type" }, { "kind": "Content", @@ -8571,7 +8571,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!getSvgAsImage:function(1)", + "canonicalReference": "tldraw!getSvgAsImage:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -8663,7 +8663,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!getSvgAsString:function(1)", + "canonicalReference": "tldraw!getSvgAsString:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -8714,7 +8714,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!GroupMenuItem:function(1)", + "canonicalReference": "tldraw!GroupMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -8747,7 +8747,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!GroupOrUngroupMenuItem:function(1)", + "canonicalReference": "tldraw!GroupOrUngroupMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -8780,7 +8780,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!HandTool:class", + "canonicalReference": "tldraw!HandTool:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -8805,7 +8805,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!HandTool.children:member", + "canonicalReference": "tldraw!HandTool.children:member", "docComment": "", "excerptTokens": [ { @@ -8819,7 +8819,7 @@ { "kind": "Reference", "text": "Dragging", - "canonicalReference": "@tldraw/tldraw!~Dragging:class" + "canonicalReference": "tldraw!~Dragging:class" }, { "kind": "Content", @@ -8828,7 +8828,7 @@ { "kind": "Reference", "text": "Idle", - "canonicalReference": "@tldraw/tldraw!~Idle_8:class" + "canonicalReference": "tldraw!~Idle_8:class" }, { "kind": "Content", @@ -8837,7 +8837,7 @@ { "kind": "Reference", "text": "Pointing", - "canonicalReference": "@tldraw/tldraw!~Pointing_7:class" + "canonicalReference": "tldraw!~Pointing_7:class" }, { "kind": "Content", @@ -8862,7 +8862,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!HandTool.id:member", + "canonicalReference": "tldraw!HandTool.id:member", "docComment": "", "excerptTokens": [ { @@ -8892,7 +8892,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!HandTool.initial:member", + "canonicalReference": "tldraw!HandTool.initial:member", "docComment": "", "excerptTokens": [ { @@ -8922,7 +8922,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!HandTool#onDoubleClick:member", + "canonicalReference": "tldraw!HandTool#onDoubleClick:member", "docComment": "", "excerptTokens": [ { @@ -8953,7 +8953,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!HandTool#onQuadrupleClick:member", + "canonicalReference": "tldraw!HandTool#onQuadrupleClick:member", "docComment": "", "excerptTokens": [ { @@ -8984,7 +8984,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!HandTool#onTripleClick:member", + "canonicalReference": "tldraw!HandTool#onTripleClick:member", "docComment": "", "excerptTokens": [ { @@ -9022,7 +9022,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!HighlightShapeTool:class", + "canonicalReference": "tldraw!HighlightShapeTool:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -9047,7 +9047,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!HighlightShapeTool.children:member", + "canonicalReference": "tldraw!HighlightShapeTool.children:member", "docComment": "", "excerptTokens": [ { @@ -9061,7 +9061,7 @@ { "kind": "Reference", "text": "Drawing", - "canonicalReference": "@tldraw/tldraw!~Drawing:class" + "canonicalReference": "tldraw!~Drawing:class" }, { "kind": "Content", @@ -9070,7 +9070,7 @@ { "kind": "Reference", "text": "Idle", - "canonicalReference": "@tldraw/tldraw!~Idle_2:class" + "canonicalReference": "tldraw!~Idle_2:class" }, { "kind": "Content", @@ -9095,7 +9095,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!HighlightShapeTool.id:member", + "canonicalReference": "tldraw!HighlightShapeTool.id:member", "docComment": "", "excerptTokens": [ { @@ -9125,7 +9125,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!HighlightShapeTool.initial:member", + "canonicalReference": "tldraw!HighlightShapeTool.initial:member", "docComment": "", "excerptTokens": [ { @@ -9155,7 +9155,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!HighlightShapeTool#onExit:member", + "canonicalReference": "tldraw!HighlightShapeTool#onExit:member", "docComment": "", "excerptTokens": [ { @@ -9185,7 +9185,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!HighlightShapeTool#shapeType:member", + "canonicalReference": "tldraw!HighlightShapeTool#shapeType:member", "docComment": "", "excerptTokens": [ { @@ -9222,7 +9222,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil:class", + "canonicalReference": "tldraw!HighlightShapeUtil:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -9260,7 +9260,7 @@ "members": [ { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#backgroundComponent:member(1)", + "canonicalReference": "tldraw!HighlightShapeUtil#backgroundComponent:member(1)", "docComment": "", "excerptTokens": [ { @@ -9314,7 +9314,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#component:member(1)", + "canonicalReference": "tldraw!HighlightShapeUtil#component:member(1)", "docComment": "", "excerptTokens": [ { @@ -9368,7 +9368,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#getDefaultProps:member(1)", + "canonicalReference": "tldraw!HighlightShapeUtil#getDefaultProps:member(1)", "docComment": "", "excerptTokens": [ { @@ -9404,7 +9404,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#getGeometry:member(1)", + "canonicalReference": "tldraw!HighlightShapeUtil#getGeometry:member(1)", "docComment": "", "excerptTokens": [ { @@ -9463,7 +9463,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#hideResizeHandles:member", + "canonicalReference": "tldraw!HighlightShapeUtil#hideResizeHandles:member", "docComment": "", "excerptTokens": [ { @@ -9502,7 +9502,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#hideRotateHandle:member", + "canonicalReference": "tldraw!HighlightShapeUtil#hideRotateHandle:member", "docComment": "", "excerptTokens": [ { @@ -9541,7 +9541,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#hideSelectionBoundsFg:member", + "canonicalReference": "tldraw!HighlightShapeUtil#hideSelectionBoundsFg:member", "docComment": "", "excerptTokens": [ { @@ -9580,7 +9580,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#indicator:member(1)", + "canonicalReference": "tldraw!HighlightShapeUtil#indicator:member(1)", "docComment": "", "excerptTokens": [ { @@ -9634,7 +9634,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil.migrations:member", + "canonicalReference": "tldraw!HighlightShapeUtil.migrations:member", "docComment": "", "excerptTokens": [ { @@ -9669,7 +9669,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#onResize:member", + "canonicalReference": "tldraw!HighlightShapeUtil#onResize:member", "docComment": "", "excerptTokens": [ { @@ -9713,7 +9713,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil.props:member", + "canonicalReference": "tldraw!HighlightShapeUtil.props:member", "docComment": "", "excerptTokens": [ { @@ -9797,7 +9797,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#toBackgroundSvg:member(1)", + "canonicalReference": "tldraw!HighlightShapeUtil#toBackgroundSvg:member(1)", "docComment": "", "excerptTokens": [ { @@ -9847,7 +9847,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#toSvg:member(1)", + "canonicalReference": "tldraw!HighlightShapeUtil#toSvg:member(1)", "docComment": "", "excerptTokens": [ { @@ -9914,7 +9914,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!HighlightShapeUtil.type:member", + "canonicalReference": "tldraw!HighlightShapeUtil.type:member", "docComment": "", "excerptTokens": [ { @@ -9951,7 +9951,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!ImageShapeUtil:class", + "canonicalReference": "tldraw!ImageShapeUtil:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -9989,7 +9989,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ImageShapeUtil#canCrop:member", + "canonicalReference": "tldraw!ImageShapeUtil#canCrop:member", "docComment": "", "excerptTokens": [ { @@ -10019,7 +10019,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!ImageShapeUtil#component:member(1)", + "canonicalReference": "tldraw!ImageShapeUtil#component:member(1)", "docComment": "", "excerptTokens": [ { @@ -10073,7 +10073,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!ImageShapeUtil#getDefaultProps:member(1)", + "canonicalReference": "tldraw!ImageShapeUtil#getDefaultProps:member(1)", "docComment": "", "excerptTokens": [ { @@ -10109,7 +10109,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!ImageShapeUtil#indicator:member(1)", + "canonicalReference": "tldraw!ImageShapeUtil#indicator:member(1)", "docComment": "", "excerptTokens": [ { @@ -10167,7 +10167,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ImageShapeUtil#isAspectRatioLocked:member", + "canonicalReference": "tldraw!ImageShapeUtil#isAspectRatioLocked:member", "docComment": "", "excerptTokens": [ { @@ -10197,7 +10197,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ImageShapeUtil.migrations:member", + "canonicalReference": "tldraw!ImageShapeUtil.migrations:member", "docComment": "", "excerptTokens": [ { @@ -10232,7 +10232,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ImageShapeUtil#onDoubleClick:member", + "canonicalReference": "tldraw!ImageShapeUtil#onDoubleClick:member", "docComment": "", "excerptTokens": [ { @@ -10271,7 +10271,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ImageShapeUtil#onDoubleClickEdge:member", + "canonicalReference": "tldraw!ImageShapeUtil#onDoubleClickEdge:member", "docComment": "", "excerptTokens": [ { @@ -10315,7 +10315,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ImageShapeUtil.props:member", + "canonicalReference": "tldraw!ImageShapeUtil.props:member", "docComment": "", "excerptTokens": [ { @@ -10426,7 +10426,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!ImageShapeUtil#shouldGetDataURI:member(1)", + "canonicalReference": "tldraw!ImageShapeUtil#shouldGetDataURI:member(1)", "docComment": "", "excerptTokens": [ { @@ -10474,7 +10474,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!ImageShapeUtil#toSvg:member(1)", + "canonicalReference": "tldraw!ImageShapeUtil#toSvg:member(1)", "docComment": "", "excerptTokens": [ { @@ -10537,7 +10537,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ImageShapeUtil.type:member", + "canonicalReference": "tldraw!ImageShapeUtil.type:member", "docComment": "", "excerptTokens": [ { @@ -10574,7 +10574,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!isGifAnimated:function(1)", + "canonicalReference": "tldraw!isGifAnimated:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -10625,7 +10625,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!KeyboardShortcutsMenuItem:function(1)", + "canonicalReference": "tldraw!KeyboardShortcutsMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -10662,7 +10662,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!LanguageMenu:var", + "canonicalReference": "tldraw!LanguageMenu:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -10703,7 +10703,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!LaserTool:class", + "canonicalReference": "tldraw!LaserTool:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -10728,7 +10728,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!LaserTool.children:member", + "canonicalReference": "tldraw!LaserTool.children:member", "docComment": "", "excerptTokens": [ { @@ -10742,7 +10742,7 @@ { "kind": "Reference", "text": "Idle", - "canonicalReference": "@tldraw/tldraw!~Idle_9:class" + "canonicalReference": "tldraw!~Idle_9:class" }, { "kind": "Content", @@ -10751,7 +10751,7 @@ { "kind": "Reference", "text": "Lasering", - "canonicalReference": "@tldraw/tldraw!~Lasering:class" + "canonicalReference": "tldraw!~Lasering:class" }, { "kind": "Content", @@ -10776,7 +10776,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!LaserTool.id:member", + "canonicalReference": "tldraw!LaserTool.id:member", "docComment": "", "excerptTokens": [ { @@ -10806,7 +10806,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!LaserTool.initial:member", + "canonicalReference": "tldraw!LaserTool.initial:member", "docComment": "", "excerptTokens": [ { @@ -10836,7 +10836,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!LaserTool#onEnter:member", + "canonicalReference": "tldraw!LaserTool#onEnter:member", "docComment": "", "excerptTokens": [ { @@ -10873,7 +10873,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!LineShapeTool:class", + "canonicalReference": "tldraw!LineShapeTool:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -10898,7 +10898,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!LineShapeTool.children:member", + "canonicalReference": "tldraw!LineShapeTool.children:member", "docComment": "", "excerptTokens": [ { @@ -10912,7 +10912,7 @@ { "kind": "Reference", "text": "Idle", - "canonicalReference": "@tldraw/tldraw!~Idle_4:class" + "canonicalReference": "tldraw!~Idle_4:class" }, { "kind": "Content", @@ -10921,7 +10921,7 @@ { "kind": "Reference", "text": "Pointing", - "canonicalReference": "@tldraw/tldraw!~Pointing_3:class" + "canonicalReference": "tldraw!~Pointing_3:class" }, { "kind": "Content", @@ -10946,7 +10946,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!LineShapeTool.id:member", + "canonicalReference": "tldraw!LineShapeTool.id:member", "docComment": "", "excerptTokens": [ { @@ -10976,7 +10976,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!LineShapeTool.initial:member", + "canonicalReference": "tldraw!LineShapeTool.initial:member", "docComment": "", "excerptTokens": [ { @@ -11006,7 +11006,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!LineShapeTool#shapeType:member", + "canonicalReference": "tldraw!LineShapeTool#shapeType:member", "docComment": "", "excerptTokens": [ { @@ -11043,7 +11043,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!LineShapeUtil:class", + "canonicalReference": "tldraw!LineShapeUtil:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -11081,7 +11081,7 @@ "members": [ { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!LineShapeUtil#component:member(1)", + "canonicalReference": "tldraw!LineShapeUtil#component:member(1)", "docComment": "", "excerptTokens": [ { @@ -11139,7 +11139,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!LineShapeUtil#getDefaultProps:member(1)", + "canonicalReference": "tldraw!LineShapeUtil#getDefaultProps:member(1)", "docComment": "", "excerptTokens": [ { @@ -11175,7 +11175,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!LineShapeUtil#getGeometry:member(1)", + "canonicalReference": "tldraw!LineShapeUtil#getGeometry:member(1)", "docComment": "", "excerptTokens": [ { @@ -11234,7 +11234,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!LineShapeUtil#getHandles:member(1)", + "canonicalReference": "tldraw!LineShapeUtil#getHandles:member(1)", "docComment": "", "excerptTokens": [ { @@ -11288,7 +11288,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!LineShapeUtil#getHandleSnapGeometry:member(1)", + "canonicalReference": "tldraw!LineShapeUtil#getHandleSnapGeometry:member(1)", "docComment": "", "excerptTokens": [ { @@ -11338,7 +11338,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!LineShapeUtil#hideResizeHandles:member", + "canonicalReference": "tldraw!LineShapeUtil#hideResizeHandles:member", "docComment": "", "excerptTokens": [ { @@ -11368,7 +11368,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!LineShapeUtil#hideRotateHandle:member", + "canonicalReference": "tldraw!LineShapeUtil#hideRotateHandle:member", "docComment": "", "excerptTokens": [ { @@ -11398,7 +11398,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!LineShapeUtil#hideSelectionBoundsBg:member", + "canonicalReference": "tldraw!LineShapeUtil#hideSelectionBoundsBg:member", "docComment": "", "excerptTokens": [ { @@ -11428,7 +11428,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!LineShapeUtil#hideSelectionBoundsFg:member", + "canonicalReference": "tldraw!LineShapeUtil#hideSelectionBoundsFg:member", "docComment": "", "excerptTokens": [ { @@ -11458,7 +11458,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!LineShapeUtil#indicator:member(1)", + "canonicalReference": "tldraw!LineShapeUtil#indicator:member(1)", "docComment": "", "excerptTokens": [ { @@ -11512,7 +11512,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!LineShapeUtil.migrations:member", + "canonicalReference": "tldraw!LineShapeUtil.migrations:member", "docComment": "", "excerptTokens": [ { @@ -11547,7 +11547,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!LineShapeUtil#onHandleDrag:member", + "canonicalReference": "tldraw!LineShapeUtil#onHandleDrag:member", "docComment": "", "excerptTokens": [ { @@ -11591,7 +11591,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!LineShapeUtil#onResize:member", + "canonicalReference": "tldraw!LineShapeUtil#onResize:member", "docComment": "", "excerptTokens": [ { @@ -11635,7 +11635,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!LineShapeUtil.props:member", + "canonicalReference": "tldraw!LineShapeUtil.props:member", "docComment": "", "excerptTokens": [ { @@ -11719,7 +11719,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!LineShapeUtil#toSvg:member(1)", + "canonicalReference": "tldraw!LineShapeUtil#toSvg:member(1)", "docComment": "", "excerptTokens": [ { @@ -11786,7 +11786,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!LineShapeUtil.type:member", + "canonicalReference": "tldraw!LineShapeUtil.type:member", "docComment": "", "excerptTokens": [ { @@ -11823,7 +11823,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!LockGroup:function(1)", + "canonicalReference": "tldraw!LockGroup:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -11856,7 +11856,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!MiscMenuGroup:function(1)", + "canonicalReference": "tldraw!MiscMenuGroup:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -11889,7 +11889,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!MoveToPageMenu:function(1)", + "canonicalReference": "tldraw!MoveToPageMenu:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -11926,7 +11926,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!MultiShapeMenuGroup:function(1)", + "canonicalReference": "tldraw!MultiShapeMenuGroup:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -11959,7 +11959,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!NoteShapeTool:class", + "canonicalReference": "tldraw!NoteShapeTool:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -11984,7 +11984,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!NoteShapeTool.children:member", + "canonicalReference": "tldraw!NoteShapeTool.children:member", "docComment": "", "excerptTokens": [ { @@ -11998,7 +11998,7 @@ { "kind": "Reference", "text": "Idle", - "canonicalReference": "@tldraw/tldraw!~Idle_5:class" + "canonicalReference": "tldraw!~Idle_5:class" }, { "kind": "Content", @@ -12007,7 +12007,7 @@ { "kind": "Reference", "text": "Pointing", - "canonicalReference": "@tldraw/tldraw!~Pointing_4:class" + "canonicalReference": "tldraw!~Pointing_4:class" }, { "kind": "Content", @@ -12032,7 +12032,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!NoteShapeTool.id:member", + "canonicalReference": "tldraw!NoteShapeTool.id:member", "docComment": "", "excerptTokens": [ { @@ -12062,7 +12062,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!NoteShapeTool.initial:member", + "canonicalReference": "tldraw!NoteShapeTool.initial:member", "docComment": "", "excerptTokens": [ { @@ -12092,7 +12092,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!NoteShapeTool#shapeType:member", + "canonicalReference": "tldraw!NoteShapeTool#shapeType:member", "docComment": "", "excerptTokens": [ { @@ -12129,7 +12129,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!NoteShapeUtil:class", + "canonicalReference": "tldraw!NoteShapeUtil:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -12167,7 +12167,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#canEdit:member", + "canonicalReference": "tldraw!NoteShapeUtil#canEdit:member", "docComment": "", "excerptTokens": [ { @@ -12197,7 +12197,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#component:member(1)", + "canonicalReference": "tldraw!NoteShapeUtil#component:member(1)", "docComment": "", "excerptTokens": [ { @@ -12251,7 +12251,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#getDefaultProps:member(1)", + "canonicalReference": "tldraw!NoteShapeUtil#getDefaultProps:member(1)", "docComment": "", "excerptTokens": [ { @@ -12287,7 +12287,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#getGeometry:member(1)", + "canonicalReference": "tldraw!NoteShapeUtil#getGeometry:member(1)", "docComment": "", "excerptTokens": [ { @@ -12337,7 +12337,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#getHeight:member(1)", + "canonicalReference": "tldraw!NoteShapeUtil#getHeight:member(1)", "docComment": "", "excerptTokens": [ { @@ -12386,7 +12386,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#hideResizeHandles:member", + "canonicalReference": "tldraw!NoteShapeUtil#hideResizeHandles:member", "docComment": "", "excerptTokens": [ { @@ -12416,7 +12416,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#hideSelectionBoundsFg:member", + "canonicalReference": "tldraw!NoteShapeUtil#hideSelectionBoundsFg:member", "docComment": "", "excerptTokens": [ { @@ -12446,7 +12446,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#indicator:member(1)", + "canonicalReference": "tldraw!NoteShapeUtil#indicator:member(1)", "docComment": "", "excerptTokens": [ { @@ -12500,7 +12500,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!NoteShapeUtil.migrations:member", + "canonicalReference": "tldraw!NoteShapeUtil.migrations:member", "docComment": "", "excerptTokens": [ { @@ -12535,7 +12535,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#onBeforeCreate:member", + "canonicalReference": "tldraw!NoteShapeUtil#onBeforeCreate:member", "docComment": "", "excerptTokens": [ { @@ -12610,7 +12610,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#onBeforeUpdate:member", + "canonicalReference": "tldraw!NoteShapeUtil#onBeforeUpdate:member", "docComment": "", "excerptTokens": [ { @@ -12694,7 +12694,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#onEditEnd:member", + "canonicalReference": "tldraw!NoteShapeUtil#onEditEnd:member", "docComment": "", "excerptTokens": [ { @@ -12738,7 +12738,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!NoteShapeUtil.props:member", + "canonicalReference": "tldraw!NoteShapeUtil.props:member", "docComment": "", "excerptTokens": [ { @@ -12840,7 +12840,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!NoteShapeUtil#toSvg:member(1)", + "canonicalReference": "tldraw!NoteShapeUtil#toSvg:member(1)", "docComment": "", "excerptTokens": [ { @@ -12907,7 +12907,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!NoteShapeUtil.type:member", + "canonicalReference": "tldraw!NoteShapeUtil.type:member", "docComment": "", "excerptTokens": [ { @@ -12944,7 +12944,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!OfflineIndicator:function(1)", + "canonicalReference": "tldraw!OfflineIndicator:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -12977,7 +12977,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!OpacitySlider:function(1)", + "canonicalReference": "tldraw!OpacitySlider:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -13014,7 +13014,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!PageItemInput:function(1)", + "canonicalReference": "tldraw!PageItemInput:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -13069,7 +13069,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!PageItemSubmenu:var", + "canonicalReference": "tldraw!PageItemSubmenu:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -13092,7 +13092,7 @@ { "kind": "Reference", "text": "PageItemSubmenuProps", - "canonicalReference": "@tldraw/tldraw!~PageItemSubmenuProps:interface" + "canonicalReference": "tldraw!~PageItemSubmenuProps:interface" }, { "kind": "Content", @@ -13119,7 +13119,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!parseTldrawJsonFile:function(1)", + "canonicalReference": "tldraw!parseTldrawJsonFile:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -13164,7 +13164,7 @@ { "kind": "Reference", "text": "TldrawFileParseError", - "canonicalReference": "@tldraw/tldraw!~TldrawFileParseError:type" + "canonicalReference": "tldraw!~TldrawFileParseError:type" }, { "kind": "Content", @@ -13196,7 +13196,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!PasteMenuItem:function(1)", + "canonicalReference": "tldraw!PasteMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -13229,7 +13229,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!PreferencesGroup:function(1)", + "canonicalReference": "tldraw!PreferencesGroup:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -13262,7 +13262,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!preloadFont:function(1)", + "canonicalReference": "tldraw!preloadFont:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -13280,7 +13280,7 @@ { "kind": "Reference", "text": "TLTypeFace", - "canonicalReference": "@tldraw/tldraw!~TLTypeFace:type" + "canonicalReference": "tldraw!~TLTypeFace:type" }, { "kind": "Content", @@ -13338,7 +13338,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!PrintItem:function(1)", + "canonicalReference": "tldraw!PrintItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -13371,7 +13371,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!removeFrame:function(1)", + "canonicalReference": "tldraw!removeFrame:function(1)", "docComment": "/**\n * Remove a frame.\n *\n * @param editor - tlraw editor instance.\n *\n * @param ids - Ids of the frames you wish to remove.\n *\n * @public\n */\n", "excerptTokens": [ { @@ -13438,7 +13438,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!RemoveFrameMenuItem:function(1)", + "canonicalReference": "tldraw!RemoveFrameMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -13471,7 +13471,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ReorderMenuItems:function(1)", + "canonicalReference": "tldraw!ReorderMenuItems:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -13504,7 +13504,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ReorderMenuSubmenu:function(1)", + "canonicalReference": "tldraw!ReorderMenuSubmenu:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -13541,7 +13541,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!RotateCWMenuItem:function(1)", + "canonicalReference": "tldraw!RotateCWMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -13574,7 +13574,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!SelectTool:class", + "canonicalReference": "tldraw!SelectTool:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -13599,7 +13599,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!SelectTool.children:member", + "canonicalReference": "tldraw!SelectTool.children:member", "docComment": "", "excerptTokens": [ { @@ -13613,7 +13613,7 @@ { "kind": "Reference", "text": "Brushing", - "canonicalReference": "@tldraw/tldraw!~Brushing:class" + "canonicalReference": "tldraw!~Brushing:class" }, { "kind": "Content", @@ -13622,7 +13622,7 @@ { "kind": "Reference", "text": "Crop", - "canonicalReference": "@tldraw/tldraw!~Crop:class" + "canonicalReference": "tldraw!~Crop:class" }, { "kind": "Content", @@ -13631,7 +13631,7 @@ { "kind": "Reference", "text": "Cropping", - "canonicalReference": "@tldraw/tldraw!~Cropping:class" + "canonicalReference": "tldraw!~Cropping:class" }, { "kind": "Content", @@ -13640,7 +13640,7 @@ { "kind": "Reference", "text": "DraggingHandle", - "canonicalReference": "@tldraw/tldraw!~DraggingHandle:class" + "canonicalReference": "tldraw!~DraggingHandle:class" }, { "kind": "Content", @@ -13649,7 +13649,7 @@ { "kind": "Reference", "text": "EditingShape", - "canonicalReference": "@tldraw/tldraw!~EditingShape:class" + "canonicalReference": "tldraw!~EditingShape:class" }, { "kind": "Content", @@ -13658,7 +13658,7 @@ { "kind": "Reference", "text": "Idle", - "canonicalReference": "@tldraw/tldraw!~Idle_11:class" + "canonicalReference": "tldraw!~Idle_11:class" }, { "kind": "Content", @@ -13667,7 +13667,7 @@ { "kind": "Reference", "text": "PointingArrowLabel", - "canonicalReference": "@tldraw/tldraw!~PointingArrowLabel:class" + "canonicalReference": "tldraw!~PointingArrowLabel:class" }, { "kind": "Content", @@ -13676,7 +13676,7 @@ { "kind": "Reference", "text": "PointingCanvas", - "canonicalReference": "@tldraw/tldraw!~PointingCanvas:class" + "canonicalReference": "tldraw!~PointingCanvas:class" }, { "kind": "Content", @@ -13685,7 +13685,7 @@ { "kind": "Reference", "text": "PointingCropHandle", - "canonicalReference": "@tldraw/tldraw!~PointingCropHandle:class" + "canonicalReference": "tldraw!~PointingCropHandle:class" }, { "kind": "Content", @@ -13694,7 +13694,7 @@ { "kind": "Reference", "text": "PointingHandle", - "canonicalReference": "@tldraw/tldraw!~PointingHandle:class" + "canonicalReference": "tldraw!~PointingHandle:class" }, { "kind": "Content", @@ -13703,7 +13703,7 @@ { "kind": "Reference", "text": "PointingResizeHandle", - "canonicalReference": "@tldraw/tldraw!~PointingResizeHandle:class" + "canonicalReference": "tldraw!~PointingResizeHandle:class" }, { "kind": "Content", @@ -13712,7 +13712,7 @@ { "kind": "Reference", "text": "PointingRotateHandle", - "canonicalReference": "@tldraw/tldraw!~PointingRotateHandle:class" + "canonicalReference": "tldraw!~PointingRotateHandle:class" }, { "kind": "Content", @@ -13721,7 +13721,7 @@ { "kind": "Reference", "text": "PointingSelection", - "canonicalReference": "@tldraw/tldraw!~PointingSelection:class" + "canonicalReference": "tldraw!~PointingSelection:class" }, { "kind": "Content", @@ -13730,7 +13730,7 @@ { "kind": "Reference", "text": "PointingShape", - "canonicalReference": "@tldraw/tldraw!~PointingShape:class" + "canonicalReference": "tldraw!~PointingShape:class" }, { "kind": "Content", @@ -13739,7 +13739,7 @@ { "kind": "Reference", "text": "Resizing", - "canonicalReference": "@tldraw/tldraw!~Resizing:class" + "canonicalReference": "tldraw!~Resizing:class" }, { "kind": "Content", @@ -13748,7 +13748,7 @@ { "kind": "Reference", "text": "Rotating", - "canonicalReference": "@tldraw/tldraw!~Rotating:class" + "canonicalReference": "tldraw!~Rotating:class" }, { "kind": "Content", @@ -13757,7 +13757,7 @@ { "kind": "Reference", "text": "ScribbleBrushing", - "canonicalReference": "@tldraw/tldraw!~ScribbleBrushing:class" + "canonicalReference": "tldraw!~ScribbleBrushing:class" }, { "kind": "Content", @@ -13766,7 +13766,7 @@ { "kind": "Reference", "text": "Translating", - "canonicalReference": "@tldraw/tldraw!~Translating:class" + "canonicalReference": "tldraw!~Translating:class" }, { "kind": "Content", @@ -13791,7 +13791,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!SelectTool.id:member", + "canonicalReference": "tldraw!SelectTool.id:member", "docComment": "", "excerptTokens": [ { @@ -13821,7 +13821,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!SelectTool.initial:member", + "canonicalReference": "tldraw!SelectTool.initial:member", "docComment": "", "excerptTokens": [ { @@ -13851,7 +13851,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!SelectTool#onEnter:member", + "canonicalReference": "tldraw!SelectTool#onEnter:member", "docComment": "", "excerptTokens": [ { @@ -13881,7 +13881,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!SelectTool#onExit:member", + "canonicalReference": "tldraw!SelectTool#onExit:member", "docComment": "", "excerptTokens": [ { @@ -13911,7 +13911,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!SelectTool#reactor:member", + "canonicalReference": "tldraw!SelectTool#reactor:member", "docComment": "", "excerptTokens": [ { @@ -13948,7 +13948,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!serializeTldrawJson:function(1)", + "canonicalReference": "tldraw!serializeTldrawJson:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -13999,7 +13999,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!serializeTldrawJsonBlob:function(1)", + "canonicalReference": "tldraw!serializeTldrawJsonBlob:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -14059,7 +14059,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!setDefaultEditorAssetUrls:function(1)", + "canonicalReference": "tldraw!setDefaultEditorAssetUrls:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -14069,7 +14069,7 @@ { "kind": "Reference", "text": "TLEditorAssetUrls", - "canonicalReference": "@tldraw/tldraw!~TLEditorAssetUrls:type" + "canonicalReference": "tldraw!~TLEditorAssetUrls:type" }, { "kind": "Content", @@ -14105,7 +14105,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!SetSelectionGroup:function(1)", + "canonicalReference": "tldraw!SetSelectionGroup:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -14138,7 +14138,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ShapeSubmenu:function(1)", + "canonicalReference": "tldraw!ShapeSubmenu:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -14171,7 +14171,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!SplineStylePickerSet:function(1)", + "canonicalReference": "tldraw!SplineStylePickerSet:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -14234,7 +14234,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!StackMenuItems:function(1)", + "canonicalReference": "tldraw!StackMenuItems:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -14267,7 +14267,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!TextShapeTool:class", + "canonicalReference": "tldraw!TextShapeTool:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -14292,7 +14292,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!TextShapeTool.children:member", + "canonicalReference": "tldraw!TextShapeTool.children:member", "docComment": "", "excerptTokens": [ { @@ -14306,7 +14306,7 @@ { "kind": "Reference", "text": "Idle", - "canonicalReference": "@tldraw/tldraw!~Idle_6:class" + "canonicalReference": "tldraw!~Idle_6:class" }, { "kind": "Content", @@ -14315,7 +14315,7 @@ { "kind": "Reference", "text": "Pointing", - "canonicalReference": "@tldraw/tldraw!~Pointing_5:class" + "canonicalReference": "tldraw!~Pointing_5:class" }, { "kind": "Content", @@ -14340,7 +14340,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!TextShapeTool.id:member", + "canonicalReference": "tldraw!TextShapeTool.id:member", "docComment": "", "excerptTokens": [ { @@ -14370,7 +14370,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!TextShapeTool.initial:member", + "canonicalReference": "tldraw!TextShapeTool.initial:member", "docComment": "", "excerptTokens": [ { @@ -14400,7 +14400,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!TextShapeTool#shapeType:member", + "canonicalReference": "tldraw!TextShapeTool#shapeType:member", "docComment": "", "excerptTokens": [ { @@ -14437,7 +14437,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!TextShapeUtil:class", + "canonicalReference": "tldraw!TextShapeUtil:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -14475,7 +14475,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!TextShapeUtil#canEdit:member", + "canonicalReference": "tldraw!TextShapeUtil#canEdit:member", "docComment": "", "excerptTokens": [ { @@ -14505,7 +14505,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!TextShapeUtil#component:member(1)", + "canonicalReference": "tldraw!TextShapeUtil#component:member(1)", "docComment": "", "excerptTokens": [ { @@ -14559,7 +14559,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!TextShapeUtil#getDefaultProps:member(1)", + "canonicalReference": "tldraw!TextShapeUtil#getDefaultProps:member(1)", "docComment": "", "excerptTokens": [ { @@ -14595,7 +14595,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!TextShapeUtil#getGeometry:member(1)", + "canonicalReference": "tldraw!TextShapeUtil#getGeometry:member(1)", "docComment": "", "excerptTokens": [ { @@ -14645,7 +14645,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!TextShapeUtil#getMinDimensions:member(1)", + "canonicalReference": "tldraw!TextShapeUtil#getMinDimensions:member(1)", "docComment": "", "excerptTokens": [ { @@ -14694,7 +14694,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!TextShapeUtil#indicator:member(1)", + "canonicalReference": "tldraw!TextShapeUtil#indicator:member(1)", "docComment": "", "excerptTokens": [ { @@ -14752,7 +14752,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!TextShapeUtil#isAspectRatioLocked:member", + "canonicalReference": "tldraw!TextShapeUtil#isAspectRatioLocked:member", "docComment": "", "excerptTokens": [ { @@ -14796,7 +14796,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!TextShapeUtil.migrations:member", + "canonicalReference": "tldraw!TextShapeUtil.migrations:member", "docComment": "", "excerptTokens": [ { @@ -14831,7 +14831,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!TextShapeUtil#onBeforeCreate:member", + "canonicalReference": "tldraw!TextShapeUtil#onBeforeCreate:member", "docComment": "", "excerptTokens": [ { @@ -14906,7 +14906,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!TextShapeUtil#onBeforeUpdate:member", + "canonicalReference": "tldraw!TextShapeUtil#onBeforeUpdate:member", "docComment": "", "excerptTokens": [ { @@ -14990,7 +14990,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!TextShapeUtil#onDoubleClickEdge:member", + "canonicalReference": "tldraw!TextShapeUtil#onDoubleClickEdge:member", "docComment": "", "excerptTokens": [ { @@ -15047,7 +15047,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!TextShapeUtil#onEditEnd:member", + "canonicalReference": "tldraw!TextShapeUtil#onEditEnd:member", "docComment": "", "excerptTokens": [ { @@ -15091,7 +15091,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!TextShapeUtil#onResize:member", + "canonicalReference": "tldraw!TextShapeUtil#onResize:member", "docComment": "", "excerptTokens": [ { @@ -15135,7 +15135,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!TextShapeUtil.props:member", + "canonicalReference": "tldraw!TextShapeUtil.props:member", "docComment": "", "excerptTokens": [ { @@ -15237,7 +15237,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!TextShapeUtil#toSvg:member(1)", + "canonicalReference": "tldraw!TextShapeUtil#toSvg:member(1)", "docComment": "", "excerptTokens": [ { @@ -15304,7 +15304,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!TextShapeUtil.type:member", + "canonicalReference": "tldraw!TextShapeUtil.type:member", "docComment": "", "excerptTokens": [ { @@ -15341,7 +15341,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TextStylePickerSet:function(1)", + "canonicalReference": "tldraw!TextStylePickerSet:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -15404,7 +15404,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLComponents:type", + "canonicalReference": "tldraw!TLComponents:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -15432,7 +15432,7 @@ { "kind": "Reference", "text": "TLUiComponents", - "canonicalReference": "@tldraw/tldraw!TLUiComponents:type" + "canonicalReference": "tldraw!TLUiComponents:type" }, { "kind": "Content", @@ -15453,7 +15453,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!TLDRAW_FILE_EXTENSION:var", + "canonicalReference": "tldraw!TLDRAW_FILE_EXTENSION:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -15476,7 +15476,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!Tldraw:function(1)", + "canonicalReference": "tldraw!Tldraw:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -15486,7 +15486,7 @@ { "kind": "Reference", "text": "TldrawProps", - "canonicalReference": "@tldraw/tldraw!TldrawProps:type" + "canonicalReference": "tldraw!TldrawProps:type" }, { "kind": "Content", @@ -15527,7 +15527,7 @@ }, { "kind": "Interface", - "canonicalReference": "@tldraw/tldraw!TldrawFile:interface", + "canonicalReference": "tldraw!TldrawFile:interface", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -15542,7 +15542,7 @@ "members": [ { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TldrawFile#records:member", + "canonicalReference": "tldraw!TldrawFile#records:member", "docComment": "", "excerptTokens": [ { @@ -15574,7 +15574,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TldrawFile#schema:member", + "canonicalReference": "tldraw!TldrawFile#schema:member", "docComment": "", "excerptTokens": [ { @@ -15602,7 +15602,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TldrawFile#tldrawFileFormatVersion:member", + "canonicalReference": "tldraw!TldrawFile#tldrawFileFormatVersion:member", "docComment": "", "excerptTokens": [ { @@ -15632,7 +15632,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawHandles:function(1)", + "canonicalReference": "tldraw!TldrawHandles:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -15687,7 +15687,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawHoveredShapeIndicator:function(1)", + "canonicalReference": "tldraw!TldrawHoveredShapeIndicator:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -15742,7 +15742,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!TldrawImage:var", + "canonicalReference": "tldraw!TldrawImage:var", "docComment": "/**\n * A renderered SVG image of a Tldraw snapshot.\n *\n * @example\n * ```tsx\n * \n * \tsnapshot={snapshot}\n * \tpageId={pageId}\n * \tbackground={false}\n * darkMode={true}\n * bounds={new Box(0,0,600,400)}\n * scale={1}\n * />\n * ```\n *\n * @public\n */\n", "excerptTokens": [ { @@ -15819,8 +15819,8 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TldrawImageProps:type", - "docComment": "/**\n * Props for the {@link @tldraw/tldraw#TldrawImage} component.\n *\n * @public\n */\n", + "canonicalReference": "tldraw!TldrawImageProps:type", + "docComment": "/**\n * Props for the {@link tldraw#TldrawImage} component.\n *\n * @public\n */\n", "excerptTokens": [ { "kind": "Content", @@ -15904,7 +15904,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TldrawProps:type", + "canonicalReference": "tldraw!TldrawProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -15932,7 +15932,7 @@ { "kind": "Reference", "text": "TldrawUiProps", - "canonicalReference": "@tldraw/tldraw!TldrawUiProps:type" + "canonicalReference": "tldraw!TldrawUiProps:type" }, { "kind": "Content", @@ -15959,7 +15959,7 @@ { "kind": "Reference", "text": "TLComponents", - "canonicalReference": "@tldraw/tldraw!TLComponents:type" + "canonicalReference": "tldraw!TLComponents:type" }, { "kind": "Content", @@ -15977,7 +15977,7 @@ { "kind": "Reference", "text": "TLExternalContentProps", - "canonicalReference": "@tldraw/tldraw!~TLExternalContentProps:type" + "canonicalReference": "tldraw!~TLExternalContentProps:type" }, { "kind": "Content", @@ -16034,7 +16034,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawScribble:function(1)", + "canonicalReference": "tldraw!TldrawScribble:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -16089,7 +16089,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawSelectionBackground:function(1)", + "canonicalReference": "tldraw!TldrawSelectionBackground:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -16140,7 +16140,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!TldrawSelectionForeground:var", + "canonicalReference": "tldraw!TldrawSelectionForeground:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -16190,7 +16190,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!TldrawUi:var", + "canonicalReference": "tldraw!TldrawUi:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -16209,7 +16209,7 @@ { "kind": "Reference", "text": "TldrawUiProps", - "canonicalReference": "@tldraw/tldraw!TldrawUiProps:type" + "canonicalReference": "tldraw!TldrawUiProps:type" }, { "kind": "Content", @@ -16227,8 +16227,8 @@ }, { "kind": "Interface", - "canonicalReference": "@tldraw/tldraw!TldrawUiBaseProps:interface", - "docComment": "/**\n * Base props for the {@link @tldraw/tldraw#Tldraw} and {@link TldrawUi} components.\n *\n * @public\n */\n", + "canonicalReference": "tldraw!TldrawUiBaseProps:interface", + "docComment": "/**\n * Base props for the {@link tldraw#Tldraw} and {@link TldrawUi} components.\n *\n * @public\n */\n", "excerptTokens": [ { "kind": "Content", @@ -16242,7 +16242,7 @@ "members": [ { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TldrawUiBaseProps#assetUrls:member", + "canonicalReference": "tldraw!TldrawUiBaseProps#assetUrls:member", "docComment": "/**\n * Asset URL override.\n */\n", "excerptTokens": [ { @@ -16252,7 +16252,7 @@ { "kind": "Reference", "text": "TLUiAssetUrlOverrides", - "canonicalReference": "@tldraw/tldraw!TLUiAssetUrlOverrides:type" + "canonicalReference": "tldraw!TLUiAssetUrlOverrides:type" }, { "kind": "Content", @@ -16270,7 +16270,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TldrawUiBaseProps#children:member", + "canonicalReference": "tldraw!TldrawUiBaseProps#children:member", "docComment": "/**\n * The component's children.\n */\n", "excerptTokens": [ { @@ -16298,7 +16298,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TldrawUiBaseProps#components:member", + "canonicalReference": "tldraw!TldrawUiBaseProps#components:member", "docComment": "/**\n * Overrides for the UI components.\n */\n", "excerptTokens": [ { @@ -16308,7 +16308,7 @@ { "kind": "Reference", "text": "TLUiComponents", - "canonicalReference": "@tldraw/tldraw!TLUiComponents:type" + "canonicalReference": "tldraw!TLUiComponents:type" }, { "kind": "Content", @@ -16326,7 +16326,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TldrawUiBaseProps#hideUi:member", + "canonicalReference": "tldraw!TldrawUiBaseProps#hideUi:member", "docComment": "/**\n * Whether to hide the user interface and only display the canvas.\n */\n", "excerptTokens": [ { @@ -16353,7 +16353,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TldrawUiBaseProps#renderDebugMenuItems:member", + "canonicalReference": "tldraw!TldrawUiBaseProps#renderDebugMenuItems:member", "docComment": "/**\n * Additional items to add to the debug menu (will be deprecated)\n */\n", "excerptTokens": [ { @@ -16388,7 +16388,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!TldrawUiButton:var", + "canonicalReference": "tldraw!TldrawUiButton:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -16407,7 +16407,7 @@ { "kind": "Reference", "text": "TLUiButtonProps", - "canonicalReference": "@tldraw/tldraw!TLUiButtonProps:interface" + "canonicalReference": "tldraw!TLUiButtonProps:interface" }, { "kind": "Content", @@ -16443,7 +16443,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiButtonCheck:function(1)", + "canonicalReference": "tldraw!TldrawUiButtonCheck:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -16453,7 +16453,7 @@ { "kind": "Reference", "text": "TLUiButtonCheckProps", - "canonicalReference": "@tldraw/tldraw!TLUiButtonCheckProps:type" + "canonicalReference": "tldraw!TLUiButtonCheckProps:type" }, { "kind": "Content", @@ -16494,7 +16494,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiButtonIcon:function(1)", + "canonicalReference": "tldraw!TldrawUiButtonIcon:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -16504,7 +16504,7 @@ { "kind": "Reference", "text": "TLUiButtonIconProps", - "canonicalReference": "@tldraw/tldraw!TLUiButtonIconProps:type" + "canonicalReference": "tldraw!TLUiButtonIconProps:type" }, { "kind": "Content", @@ -16545,7 +16545,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiButtonLabel:function(1)", + "canonicalReference": "tldraw!TldrawUiButtonLabel:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -16555,7 +16555,7 @@ { "kind": "Reference", "text": "TLUiButtonLabelProps", - "canonicalReference": "@tldraw/tldraw!TLUiButtonLabelProps:type" + "canonicalReference": "tldraw!TLUiButtonLabelProps:type" }, { "kind": "Content", @@ -16596,7 +16596,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!TldrawUiButtonPicker:var", + "canonicalReference": "tldraw!TldrawUiButtonPicker:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -16610,7 +16610,7 @@ { "kind": "Reference", "text": "_TldrawUiButtonPicker", - "canonicalReference": "@tldraw/tldraw!~_TldrawUiButtonPicker:function" + "canonicalReference": "tldraw!~_TldrawUiButtonPicker:function" } ], "fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiButtonPicker.tsx", @@ -16624,7 +16624,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiComponentsProvider:function(1)", + "canonicalReference": "tldraw!TldrawUiComponentsProvider:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -16634,7 +16634,7 @@ { "kind": "Reference", "text": "TLUiComponentsProviderProps", - "canonicalReference": "@tldraw/tldraw!TLUiComponentsProviderProps:type" + "canonicalReference": "tldraw!TLUiComponentsProviderProps:type" }, { "kind": "Content", @@ -16675,7 +16675,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiContextProvider:function(1)", + "canonicalReference": "tldraw!TldrawUiContextProvider:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -16685,7 +16685,7 @@ { "kind": "Reference", "text": "TldrawUiContextProviderProps", - "canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps:interface" + "canonicalReference": "tldraw!TldrawUiContextProviderProps:interface" }, { "kind": "Content", @@ -16726,8 +16726,8 @@ }, { "kind": "Interface", - "canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps:interface", - "docComment": "/**\n * Props for the {@link @tldraw/tldraw#Tldraw} and {@link TldrawUi} components.\n *\n * @public\n */\n", + "canonicalReference": "tldraw!TldrawUiContextProviderProps:interface", + "docComment": "/**\n * Props for the {@link tldraw#Tldraw} and {@link TldrawUi} components.\n *\n * @public\n */\n", "excerptTokens": [ { "kind": "Content", @@ -16741,7 +16741,7 @@ "members": [ { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps#assetUrls:member", + "canonicalReference": "tldraw!TldrawUiContextProviderProps#assetUrls:member", "docComment": "/**\n * Urls for where to find fonts and other assets for the UI.\n */\n", "excerptTokens": [ { @@ -16760,7 +16760,7 @@ { "kind": "Reference", "text": "TLUiAssetUrls", - "canonicalReference": "@tldraw/tldraw!~TLUiAssetUrls:type" + "canonicalReference": "tldraw!~TLUiAssetUrls:type" }, { "kind": "Content", @@ -16782,7 +16782,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps#children:member", + "canonicalReference": "tldraw!TldrawUiContextProviderProps#children:member", "docComment": "/**\n * The component's children.\n */\n", "excerptTokens": [ { @@ -16809,7 +16809,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps#components:member", + "canonicalReference": "tldraw!TldrawUiContextProviderProps#components:member", "docComment": "/**\n * Overrides for the UI components.\n */\n", "excerptTokens": [ { @@ -16819,7 +16819,7 @@ { "kind": "Reference", "text": "TLUiComponents", - "canonicalReference": "@tldraw/tldraw!TLUiComponents:type" + "canonicalReference": "tldraw!TLUiComponents:type" }, { "kind": "Content", @@ -16837,7 +16837,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps#forceMobile:member", + "canonicalReference": "tldraw!TldrawUiContextProviderProps#forceMobile:member", "docComment": "/**\n * Whether to always should the mobile breakpoints.\n */\n", "excerptTokens": [ { @@ -16864,7 +16864,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps#onUiEvent:member", + "canonicalReference": "tldraw!TldrawUiContextProviderProps#onUiEvent:member", "docComment": "/**\n * Callback for when an event occurs in the UI.\n */\n", "excerptTokens": [ { @@ -16874,7 +16874,7 @@ { "kind": "Reference", "text": "TLUiEventHandler", - "canonicalReference": "@tldraw/tldraw!TLUiEventHandler:type" + "canonicalReference": "tldraw!TLUiEventHandler:type" }, { "kind": "Content", @@ -16892,7 +16892,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps#overrides:member", + "canonicalReference": "tldraw!TldrawUiContextProviderProps#overrides:member", "docComment": "/**\n * Overrides for the UI.\n */\n", "excerptTokens": [ { @@ -16902,7 +16902,7 @@ { "kind": "Reference", "text": "TLUiOverrides", - "canonicalReference": "@tldraw/tldraw!TLUiOverrides:type" + "canonicalReference": "tldraw!TLUiOverrides:type" }, { "kind": "Content", @@ -16911,7 +16911,7 @@ { "kind": "Reference", "text": "TLUiOverrides", - "canonicalReference": "@tldraw/tldraw!TLUiOverrides:type" + "canonicalReference": "tldraw!TLUiOverrides:type" }, { "kind": "Content", @@ -16936,7 +16936,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiDialogBody:function(1)", + "canonicalReference": "tldraw!TldrawUiDialogBody:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -16946,7 +16946,7 @@ { "kind": "Reference", "text": "TLUiDialogBodyProps", - "canonicalReference": "@tldraw/tldraw!TLUiDialogBodyProps:type" + "canonicalReference": "tldraw!TLUiDialogBodyProps:type" }, { "kind": "Content", @@ -16987,7 +16987,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiDialogCloseButton:function(1)", + "canonicalReference": "tldraw!TldrawUiDialogCloseButton:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -17020,7 +17020,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiDialogFooter:function(1)", + "canonicalReference": "tldraw!TldrawUiDialogFooter:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -17030,7 +17030,7 @@ { "kind": "Reference", "text": "TLUiDialogFooterProps", - "canonicalReference": "@tldraw/tldraw!TLUiDialogFooterProps:type" + "canonicalReference": "tldraw!TLUiDialogFooterProps:type" }, { "kind": "Content", @@ -17071,7 +17071,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiDialogHeader:function(1)", + "canonicalReference": "tldraw!TldrawUiDialogHeader:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -17081,7 +17081,7 @@ { "kind": "Reference", "text": "TLUiDialogHeaderProps", - "canonicalReference": "@tldraw/tldraw!TLUiDialogHeaderProps:type" + "canonicalReference": "tldraw!TLUiDialogHeaderProps:type" }, { "kind": "Content", @@ -17122,7 +17122,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiDialogTitle:function(1)", + "canonicalReference": "tldraw!TldrawUiDialogTitle:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -17132,7 +17132,7 @@ { "kind": "Reference", "text": "TLUiDialogTitleProps", - "canonicalReference": "@tldraw/tldraw!TLUiDialogTitleProps:type" + "canonicalReference": "tldraw!TLUiDialogTitleProps:type" }, { "kind": "Content", @@ -17173,7 +17173,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiDropdownMenuCheckboxItem:function(1)", + "canonicalReference": "tldraw!TldrawUiDropdownMenuCheckboxItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -17183,7 +17183,7 @@ { "kind": "Reference", "text": "TLUiDropdownMenuCheckboxItemProps", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuCheckboxItemProps:interface" + "canonicalReference": "tldraw!TLUiDropdownMenuCheckboxItemProps:interface" }, { "kind": "Content", @@ -17224,7 +17224,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiDropdownMenuContent:function(1)", + "canonicalReference": "tldraw!TldrawUiDropdownMenuContent:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -17234,7 +17234,7 @@ { "kind": "Reference", "text": "TLUiDropdownMenuContentProps", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuContentProps:type" + "canonicalReference": "tldraw!TLUiDropdownMenuContentProps:type" }, { "kind": "Content", @@ -17275,7 +17275,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiDropdownMenuGroup:function(1)", + "canonicalReference": "tldraw!TldrawUiDropdownMenuGroup:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -17285,7 +17285,7 @@ { "kind": "Reference", "text": "TLUiDropdownMenuGroupProps", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuGroupProps:type" + "canonicalReference": "tldraw!TLUiDropdownMenuGroupProps:type" }, { "kind": "Content", @@ -17326,7 +17326,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiDropdownMenuIndicator:function(1)", + "canonicalReference": "tldraw!TldrawUiDropdownMenuIndicator:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -17359,7 +17359,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiDropdownMenuItem:function(1)", + "canonicalReference": "tldraw!TldrawUiDropdownMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -17369,7 +17369,7 @@ { "kind": "Reference", "text": "TLUiDropdownMenuItemProps", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuItemProps:interface" + "canonicalReference": "tldraw!TLUiDropdownMenuItemProps:interface" }, { "kind": "Content", @@ -17410,7 +17410,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiDropdownMenuRoot:function(1)", + "canonicalReference": "tldraw!TldrawUiDropdownMenuRoot:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -17420,7 +17420,7 @@ { "kind": "Reference", "text": "TLUiDropdownMenuRootProps", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuRootProps:type" + "canonicalReference": "tldraw!TLUiDropdownMenuRootProps:type" }, { "kind": "Content", @@ -17461,7 +17461,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiDropdownMenuSub:function(1)", + "canonicalReference": "tldraw!TldrawUiDropdownMenuSub:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -17471,7 +17471,7 @@ { "kind": "Reference", "text": "TLUiDropdownMenuSubProps", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuSubProps:type" + "canonicalReference": "tldraw!TLUiDropdownMenuSubProps:type" }, { "kind": "Content", @@ -17512,7 +17512,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiDropdownMenuSubTrigger:function(1)", + "canonicalReference": "tldraw!TldrawUiDropdownMenuSubTrigger:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -17522,7 +17522,7 @@ { "kind": "Reference", "text": "TLUiDropdownMenuSubTriggerProps", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuSubTriggerProps:type" + "canonicalReference": "tldraw!TLUiDropdownMenuSubTriggerProps:type" }, { "kind": "Content", @@ -17563,7 +17563,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiDropdownMenuTrigger:function(1)", + "canonicalReference": "tldraw!TldrawUiDropdownMenuTrigger:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -17573,7 +17573,7 @@ { "kind": "Reference", "text": "TLUiDropdownMenuTriggerProps", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuTriggerProps:interface" + "canonicalReference": "tldraw!TLUiDropdownMenuTriggerProps:interface" }, { "kind": "Content", @@ -17614,7 +17614,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!TldrawUiIcon:var", + "canonicalReference": "tldraw!TldrawUiIcon:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -17637,7 +17637,7 @@ { "kind": "Reference", "text": "TLUiIconProps", - "canonicalReference": "@tldraw/tldraw!TLUiIconProps:interface" + "canonicalReference": "tldraw!TLUiIconProps:interface" }, { "kind": "Content", @@ -17655,7 +17655,7 @@ }, { "kind": "Variable", - "canonicalReference": "@tldraw/tldraw!TldrawUiInput:var", + "canonicalReference": "tldraw!TldrawUiInput:var", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -17674,7 +17674,7 @@ { "kind": "Reference", "text": "TLUiInputProps", - "canonicalReference": "@tldraw/tldraw!TLUiInputProps:interface" + "canonicalReference": "tldraw!TLUiInputProps:interface" }, { "kind": "Content", @@ -17710,7 +17710,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiKbd:function(1)", + "canonicalReference": "tldraw!TldrawUiKbd:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -17720,7 +17720,7 @@ { "kind": "Reference", "text": "TLUiKbdProps", - "canonicalReference": "@tldraw/tldraw!TLUiKbdProps:interface" + "canonicalReference": "tldraw!TLUiKbdProps:interface" }, { "kind": "Content", @@ -17765,7 +17765,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiMenuCheckboxItem:function(1)", + "canonicalReference": "tldraw!TldrawUiMenuCheckboxItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -17807,7 +17807,7 @@ { "kind": "Reference", "text": "TLUiMenuCheckboxItemProps", - "canonicalReference": "@tldraw/tldraw!TLUiMenuCheckboxItemProps:type" + "canonicalReference": "tldraw!TLUiMenuCheckboxItemProps:type" }, { "kind": "Content", @@ -17880,7 +17880,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiMenuContextProvider:function(1)", + "canonicalReference": "tldraw!TldrawUiMenuContextProvider:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -17890,7 +17890,7 @@ { "kind": "Reference", "text": "TLUiMenuContextProviderProps", - "canonicalReference": "@tldraw/tldraw!TLUiMenuContextProviderProps:type" + "canonicalReference": "tldraw!TLUiMenuContextProviderProps:type" }, { "kind": "Content", @@ -17931,7 +17931,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiMenuGroup:function(1)", + "canonicalReference": "tldraw!TldrawUiMenuGroup:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -17941,7 +17941,7 @@ { "kind": "Reference", "text": "TLUiMenuGroupProps", - "canonicalReference": "@tldraw/tldraw!TLUiMenuGroupProps:type" + "canonicalReference": "tldraw!TLUiMenuGroupProps:type" }, { "kind": "Content", @@ -17977,7 +17977,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiMenuItem:function(1)", + "canonicalReference": "tldraw!TldrawUiMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -18019,7 +18019,7 @@ { "kind": "Reference", "text": "TLUiMenuItemProps", - "canonicalReference": "@tldraw/tldraw!TLUiMenuItemProps:type" + "canonicalReference": "tldraw!TLUiMenuItemProps:type" }, { "kind": "Content", @@ -18092,7 +18092,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiMenuSubmenu:function(1)", + "canonicalReference": "tldraw!TldrawUiMenuSubmenu:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -18118,7 +18118,7 @@ { "kind": "Reference", "text": "TLUiMenuSubmenuProps", - "canonicalReference": "@tldraw/tldraw!TLUiMenuSubmenuProps:type" + "canonicalReference": "tldraw!TLUiMenuSubmenuProps:type" }, { "kind": "Content", @@ -18171,7 +18171,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiPopover:function(1)", + "canonicalReference": "tldraw!TldrawUiPopover:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -18181,7 +18181,7 @@ { "kind": "Reference", "text": "TLUiPopoverProps", - "canonicalReference": "@tldraw/tldraw!TLUiPopoverProps:type" + "canonicalReference": "tldraw!TLUiPopoverProps:type" }, { "kind": "Content", @@ -18222,7 +18222,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiPopoverContent:function(1)", + "canonicalReference": "tldraw!TldrawUiPopoverContent:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -18232,7 +18232,7 @@ { "kind": "Reference", "text": "TLUiPopoverContentProps", - "canonicalReference": "@tldraw/tldraw!TLUiPopoverContentProps:type" + "canonicalReference": "tldraw!TLUiPopoverContentProps:type" }, { "kind": "Content", @@ -18273,7 +18273,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!TldrawUiPopoverTrigger:function(1)", + "canonicalReference": "tldraw!TldrawUiPopoverTrigger:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -18283,7 +18283,7 @@ { "kind": "Reference", "text": "TLUiPopoverTriggerProps", - "canonicalReference": "@tldraw/tldraw!TLUiPopoverTriggerProps:interface" + "canonicalReference": "tldraw!TLUiPopoverTriggerProps:interface" }, { "kind": "Content", @@ -18324,8 +18324,8 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TldrawUiProps:type", - "docComment": "/**\n * Props for the {@link @tldraw/tldraw#Tldraw} and {@link TldrawUi} components.\n *\n * @public\n */\n", + "canonicalReference": "tldraw!TldrawUiProps:type", + "docComment": "/**\n * Props for the {@link tldraw#Tldraw} and {@link TldrawUi} components.\n *\n * @public\n */\n", "excerptTokens": [ { "kind": "Content", @@ -18334,7 +18334,7 @@ { "kind": "Reference", "text": "TldrawUiBaseProps", - "canonicalReference": "@tldraw/tldraw!TldrawUiBaseProps:interface" + "canonicalReference": "tldraw!TldrawUiBaseProps:interface" }, { "kind": "Content", @@ -18343,7 +18343,7 @@ { "kind": "Reference", "text": "TldrawUiContextProviderProps", - "canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps:interface" + "canonicalReference": "tldraw!TldrawUiContextProviderProps:interface" }, { "kind": "Content", @@ -18360,7 +18360,7 @@ }, { "kind": "Interface", - "canonicalReference": "@tldraw/tldraw!TLUiActionItem:interface", + "canonicalReference": "tldraw!TLUiActionItem:interface", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -18431,7 +18431,7 @@ "members": [ { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiActionItem#checkbox:member", + "canonicalReference": "tldraw!TLUiActionItem#checkbox:member", "docComment": "", "excerptTokens": [ { @@ -18458,7 +18458,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiActionItem#icon:member", + "canonicalReference": "tldraw!TLUiActionItem#icon:member", "docComment": "", "excerptTokens": [ { @@ -18485,7 +18485,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiActionItem#id:member", + "canonicalReference": "tldraw!TLUiActionItem#id:member", "docComment": "", "excerptTokens": [ { @@ -18512,7 +18512,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiActionItem#kbd:member", + "canonicalReference": "tldraw!TLUiActionItem#kbd:member", "docComment": "", "excerptTokens": [ { @@ -18539,7 +18539,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiActionItem#label:member", + "canonicalReference": "tldraw!TLUiActionItem#label:member", "docComment": "", "excerptTokens": [ { @@ -18566,7 +18566,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiActionItem#onSelect:member", + "canonicalReference": "tldraw!TLUiActionItem#onSelect:member", "docComment": "", "excerptTokens": [ { @@ -18580,7 +18580,7 @@ { "kind": "Reference", "text": "TLUiEventSource", - "canonicalReference": "@tldraw/tldraw!TLUiEventSource:type" + "canonicalReference": "tldraw!TLUiEventSource:type" }, { "kind": "Content", @@ -18611,7 +18611,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiActionItem#readonlyOk:member", + "canonicalReference": "tldraw!TLUiActionItem#readonlyOk:member", "docComment": "", "excerptTokens": [ { @@ -18638,7 +18638,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiActionItem#title:member", + "canonicalReference": "tldraw!TLUiActionItem#title:member", "docComment": "", "excerptTokens": [ { @@ -18668,7 +18668,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiActionsContextType:type", + "canonicalReference": "tldraw!TLUiActionsContextType:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -18687,7 +18687,7 @@ { "kind": "Reference", "text": "TLUiActionItem", - "canonicalReference": "@tldraw/tldraw!TLUiActionItem:interface" + "canonicalReference": "tldraw!TLUiActionItem:interface" }, { "kind": "Content", @@ -18708,7 +18708,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiActionsMenuProps:type", + "canonicalReference": "tldraw!TLUiActionsMenuProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -18734,7 +18734,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiAssetUrlOverrides:type", + "canonicalReference": "tldraw!TLUiAssetUrlOverrides:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -18753,7 +18753,7 @@ { "kind": "Reference", "text": "TLUiAssetUrls", - "canonicalReference": "@tldraw/tldraw!~TLUiAssetUrls:type" + "canonicalReference": "tldraw!~TLUiAssetUrls:type" }, { "kind": "Content", @@ -18774,7 +18774,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiButtonCheckProps:type", + "canonicalReference": "tldraw!TLUiButtonCheckProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -18800,7 +18800,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiButtonIconProps:type", + "canonicalReference": "tldraw!TLUiButtonIconProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -18826,7 +18826,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiButtonLabelProps:type", + "canonicalReference": "tldraw!TLUiButtonLabelProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -18852,7 +18852,7 @@ }, { "kind": "Interface", - "canonicalReference": "@tldraw/tldraw!TLUiButtonPickerProps:interface", + "canonicalReference": "tldraw!TLUiButtonPickerProps:interface", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -18888,7 +18888,7 @@ "members": [ { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiButtonPickerProps#items:member", + "canonicalReference": "tldraw!TLUiButtonPickerProps#items:member", "docComment": "", "excerptTokens": [ { @@ -18898,7 +18898,7 @@ { "kind": "Reference", "text": "StyleValuesForUi", - "canonicalReference": "@tldraw/tldraw!~StyleValuesForUi:type" + "canonicalReference": "tldraw!~StyleValuesForUi:type" }, { "kind": "Content", @@ -18920,7 +18920,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiButtonPickerProps#onValueChange:member", + "canonicalReference": "tldraw!TLUiButtonPickerProps#onValueChange:member", "docComment": "", "excerptTokens": [ { @@ -18956,7 +18956,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiButtonPickerProps#style:member", + "canonicalReference": "tldraw!TLUiButtonPickerProps#style:member", "docComment": "", "excerptTokens": [ { @@ -18988,7 +18988,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiButtonPickerProps#title:member", + "canonicalReference": "tldraw!TLUiButtonPickerProps#title:member", "docComment": "", "excerptTokens": [ { @@ -19015,7 +19015,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiButtonPickerProps#uiType:member", + "canonicalReference": "tldraw!TLUiButtonPickerProps#uiType:member", "docComment": "", "excerptTokens": [ { @@ -19042,7 +19042,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiButtonPickerProps#value:member", + "canonicalReference": "tldraw!TLUiButtonPickerProps#value:member", "docComment": "", "excerptTokens": [ { @@ -19077,7 +19077,7 @@ }, { "kind": "Interface", - "canonicalReference": "@tldraw/tldraw!TLUiButtonProps:interface", + "canonicalReference": "tldraw!TLUiButtonProps:interface", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -19114,7 +19114,7 @@ "members": [ { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiButtonProps#disabled:member", + "canonicalReference": "tldraw!TLUiButtonProps#disabled:member", "docComment": "", "excerptTokens": [ { @@ -19141,7 +19141,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiButtonProps#type:member", + "canonicalReference": "tldraw!TLUiButtonProps#type:member", "docComment": "", "excerptTokens": [ { @@ -19176,7 +19176,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiComponents:type", + "canonicalReference": "tldraw!TLUiComponents:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -19195,7 +19195,7 @@ { "kind": "Reference", "text": "BaseTLUiComponents", - "canonicalReference": "@tldraw/tldraw!~BaseTLUiComponents:interface" + "canonicalReference": "tldraw!~BaseTLUiComponents:interface" }, { "kind": "Content", @@ -19204,7 +19204,7 @@ { "kind": "Reference", "text": "BaseTLUiComponents", - "canonicalReference": "@tldraw/tldraw!~BaseTLUiComponents:interface" + "canonicalReference": "tldraw!~BaseTLUiComponents:interface" }, { "kind": "Content", @@ -19225,7 +19225,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiComponentsProviderProps:type", + "canonicalReference": "tldraw!TLUiComponentsProviderProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -19239,7 +19239,7 @@ { "kind": "Reference", "text": "TLUiComponents", - "canonicalReference": "@tldraw/tldraw!TLUiComponents:type" + "canonicalReference": "tldraw!TLUiComponents:type" }, { "kind": "Content", @@ -19260,7 +19260,7 @@ }, { "kind": "Interface", - "canonicalReference": "@tldraw/tldraw!TLUiContextMenuProps:interface", + "canonicalReference": "tldraw!TLUiContextMenuProps:interface", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -19275,7 +19275,7 @@ "members": [ { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiContextMenuProps#children:member", + "canonicalReference": "tldraw!TLUiContextMenuProps#children:member", "docComment": "", "excerptTokens": [ { @@ -19306,7 +19306,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiDebugMenuProps:type", + "canonicalReference": "tldraw!TLUiDebugMenuProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -19332,7 +19332,7 @@ }, { "kind": "Interface", - "canonicalReference": "@tldraw/tldraw!TLUiDialog:interface", + "canonicalReference": "tldraw!TLUiDialog:interface", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -19347,7 +19347,7 @@ "members": [ { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiDialog#component:member", + "canonicalReference": "tldraw!TLUiDialog#component:member", "docComment": "", "excerptTokens": [ { @@ -19366,7 +19366,7 @@ { "kind": "Reference", "text": "TLUiDialogProps", - "canonicalReference": "@tldraw/tldraw!TLUiDialogProps:interface" + "canonicalReference": "tldraw!TLUiDialogProps:interface" }, { "kind": "Content", @@ -19388,7 +19388,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiDialog#id:member", + "canonicalReference": "tldraw!TLUiDialog#id:member", "docComment": "", "excerptTokens": [ { @@ -19415,7 +19415,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiDialog#onClose:member", + "canonicalReference": "tldraw!TLUiDialog#onClose:member", "docComment": "", "excerptTokens": [ { @@ -19445,7 +19445,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiDialogBodyProps:type", + "canonicalReference": "tldraw!TLUiDialogBodyProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -19480,7 +19480,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiDialogFooterProps:type", + "canonicalReference": "tldraw!TLUiDialogFooterProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -19506,7 +19506,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiDialogHeaderProps:type", + "canonicalReference": "tldraw!TLUiDialogHeaderProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -19532,7 +19532,7 @@ }, { "kind": "Interface", - "canonicalReference": "@tldraw/tldraw!TLUiDialogProps:interface", + "canonicalReference": "tldraw!TLUiDialogProps:interface", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -19547,7 +19547,7 @@ "members": [ { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiDialogProps#onClose:member", + "canonicalReference": "tldraw!TLUiDialogProps#onClose:member", "docComment": "", "excerptTokens": [ { @@ -19577,7 +19577,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiDialogsContextType:type", + "canonicalReference": "tldraw!TLUiDialogsContextType:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -19600,7 +19600,7 @@ { "kind": "Reference", "text": "TLUiDialog", - "canonicalReference": "@tldraw/tldraw!TLUiDialog:interface" + "canonicalReference": "tldraw!TLUiDialog:interface" }, { "kind": "Content", @@ -19618,7 +19618,7 @@ { "kind": "Reference", "text": "TLUiDialog", - "canonicalReference": "@tldraw/tldraw!TLUiDialog:interface" + "canonicalReference": "tldraw!TLUiDialog:interface" }, { "kind": "Content", @@ -19627,7 +19627,7 @@ { "kind": "Reference", "text": "TLUiDialog", - "canonicalReference": "@tldraw/tldraw!TLUiDialog:interface" + "canonicalReference": "tldraw!TLUiDialog:interface" }, { "kind": "Content", @@ -19648,7 +19648,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiDialogTitleProps:type", + "canonicalReference": "tldraw!TLUiDialogTitleProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -19674,7 +19674,7 @@ }, { "kind": "Interface", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuCheckboxItemProps:interface", + "canonicalReference": "tldraw!TLUiDropdownMenuCheckboxItemProps:interface", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -19689,7 +19689,7 @@ "members": [ { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuCheckboxItemProps#checked:member", + "canonicalReference": "tldraw!TLUiDropdownMenuCheckboxItemProps#checked:member", "docComment": "", "excerptTokens": [ { @@ -19716,7 +19716,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuCheckboxItemProps#children:member", + "canonicalReference": "tldraw!TLUiDropdownMenuCheckboxItemProps#children:member", "docComment": "", "excerptTokens": [ { @@ -19743,7 +19743,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuCheckboxItemProps#disabled:member", + "canonicalReference": "tldraw!TLUiDropdownMenuCheckboxItemProps#disabled:member", "docComment": "", "excerptTokens": [ { @@ -19770,7 +19770,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuCheckboxItemProps#onSelect:member", + "canonicalReference": "tldraw!TLUiDropdownMenuCheckboxItemProps#onSelect:member", "docComment": "", "excerptTokens": [ { @@ -19806,7 +19806,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuCheckboxItemProps#title:member", + "canonicalReference": "tldraw!TLUiDropdownMenuCheckboxItemProps#title:member", "docComment": "", "excerptTokens": [ { @@ -19836,7 +19836,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuContentProps:type", + "canonicalReference": "tldraw!TLUiDropdownMenuContentProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -19862,7 +19862,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuGroupProps:type", + "canonicalReference": "tldraw!TLUiDropdownMenuGroupProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -19888,7 +19888,7 @@ }, { "kind": "Interface", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuItemProps:interface", + "canonicalReference": "tldraw!TLUiDropdownMenuItemProps:interface", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -19903,7 +19903,7 @@ "members": [ { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuItemProps#children:member", + "canonicalReference": "tldraw!TLUiDropdownMenuItemProps#children:member", "docComment": "", "excerptTokens": [ { @@ -19930,7 +19930,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuItemProps#noClose:member", + "canonicalReference": "tldraw!TLUiDropdownMenuItemProps#noClose:member", "docComment": "", "excerptTokens": [ { @@ -19960,7 +19960,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuRootProps:type", + "canonicalReference": "tldraw!TLUiDropdownMenuRootProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -19986,7 +19986,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuSubProps:type", + "canonicalReference": "tldraw!TLUiDropdownMenuSubProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -20012,7 +20012,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuSubTriggerProps:type", + "canonicalReference": "tldraw!TLUiDropdownMenuSubTriggerProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -20038,7 +20038,7 @@ }, { "kind": "Interface", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuTriggerProps:interface", + "canonicalReference": "tldraw!TLUiDropdownMenuTriggerProps:interface", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -20053,7 +20053,7 @@ "members": [ { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuTriggerProps#children:member", + "canonicalReference": "tldraw!TLUiDropdownMenuTriggerProps#children:member", "docComment": "", "excerptTokens": [ { @@ -20083,7 +20083,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiEventContextType:type", + "canonicalReference": "tldraw!TLUiEventContextType:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -20093,7 +20093,7 @@ { "kind": "Reference", "text": "TLUiEventHandler", - "canonicalReference": "@tldraw/tldraw!TLUiEventHandler:type" + "canonicalReference": "tldraw!TLUiEventHandler:type" }, { "kind": "Content", @@ -20102,7 +20102,7 @@ { "kind": "Reference", "text": "TLUiEventMap", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap:interface" + "canonicalReference": "tldraw!TLUiEventMap:interface" }, { "kind": "Content", @@ -20123,7 +20123,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiEventHandler:type", + "canonicalReference": "tldraw!TLUiEventHandler:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -20137,7 +20137,7 @@ { "kind": "Reference", "text": "TLUiEventMap", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap:interface" + "canonicalReference": "tldraw!TLUiEventMap:interface" }, { "kind": "Content", @@ -20150,7 +20150,7 @@ { "kind": "Reference", "text": "TLUiEventMap", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap:interface" + "canonicalReference": "tldraw!TLUiEventMap:interface" }, { "kind": "Content", @@ -20163,7 +20163,7 @@ { "kind": "Reference", "text": "Join", - "canonicalReference": "@tldraw/tldraw!~Join:type" + "canonicalReference": "tldraw!~Join:type" }, { "kind": "Content", @@ -20172,7 +20172,7 @@ { "kind": "Reference", "text": "TLUiEventSource", - "canonicalReference": "@tldraw/tldraw!TLUiEventSource:type" + "canonicalReference": "tldraw!TLUiEventSource:type" }, { "kind": "Content", @@ -20181,7 +20181,7 @@ { "kind": "Reference", "text": "TLUiEventMap", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap:interface" + "canonicalReference": "tldraw!TLUiEventMap:interface" }, { "kind": "Content", @@ -20215,7 +20215,7 @@ }, { "kind": "Interface", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap:interface", + "canonicalReference": "tldraw!TLUiEventMap:interface", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -20230,7 +20230,7 @@ "members": [ { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"align-shapes\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"align-shapes\":member", "docComment": "", "excerptTokens": [ { @@ -20257,7 +20257,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"change-language\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"change-language\":member", "docComment": "", "excerptTokens": [ { @@ -20284,7 +20284,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"close-menu\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"close-menu\":member", "docComment": "", "excerptTokens": [ { @@ -20311,7 +20311,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"convert-to-bookmark\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"convert-to-bookmark\":member", "docComment": "", "excerptTokens": [ { @@ -20338,7 +20338,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"convert-to-embed\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"convert-to-embed\":member", "docComment": "", "excerptTokens": [ { @@ -20365,7 +20365,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"copy-as\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"copy-as\":member", "docComment": "", "excerptTokens": [ { @@ -20392,7 +20392,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"create-new-project\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"create-new-project\":member", "docComment": "", "excerptTokens": [ { @@ -20419,7 +20419,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"delete-shapes\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"delete-shapes\":member", "docComment": "", "excerptTokens": [ { @@ -20446,7 +20446,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"distribute-shapes\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"distribute-shapes\":member", "docComment": "", "excerptTokens": [ { @@ -20473,7 +20473,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"duplicate-shapes\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"duplicate-shapes\":member", "docComment": "", "excerptTokens": [ { @@ -20500,7 +20500,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"edit-link\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"edit-link\":member", "docComment": "", "excerptTokens": [ { @@ -20527,7 +20527,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"exit-pen-mode\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"exit-pen-mode\":member", "docComment": "", "excerptTokens": [ { @@ -20554,7 +20554,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"export-all-as\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"export-all-as\":member", "docComment": "", "excerptTokens": [ { @@ -20581,7 +20581,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"export-as\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"export-as\":member", "docComment": "", "excerptTokens": [ { @@ -20608,7 +20608,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"fit-frame-to-content\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"fit-frame-to-content\":member", "docComment": "", "excerptTokens": [ { @@ -20635,7 +20635,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"flip-shapes\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"flip-shapes\":member", "docComment": "", "excerptTokens": [ { @@ -20662,7 +20662,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"group-shapes\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"group-shapes\":member", "docComment": "", "excerptTokens": [ { @@ -20689,7 +20689,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"insert-embed\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"insert-embed\":member", "docComment": "", "excerptTokens": [ { @@ -20716,7 +20716,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"insert-media\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"insert-media\":member", "docComment": "", "excerptTokens": [ { @@ -20743,7 +20743,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"move-to-page\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"move-to-page\":member", "docComment": "", "excerptTokens": [ { @@ -20770,7 +20770,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"new-page\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"new-page\":member", "docComment": "", "excerptTokens": [ { @@ -20797,7 +20797,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"open-cursor-chat\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"open-cursor-chat\":member", "docComment": "", "excerptTokens": [ { @@ -20824,7 +20824,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"open-embed-link\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"open-embed-link\":member", "docComment": "", "excerptTokens": [ { @@ -20851,7 +20851,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"open-file\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"open-file\":member", "docComment": "", "excerptTokens": [ { @@ -20878,7 +20878,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"open-menu\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"open-menu\":member", "docComment": "", "excerptTokens": [ { @@ -20905,7 +20905,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"pack-shapes\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"pack-shapes\":member", "docComment": "", "excerptTokens": [ { @@ -20932,7 +20932,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"remove-frame\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"remove-frame\":member", "docComment": "", "excerptTokens": [ { @@ -20959,7 +20959,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"reorder-shapes\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"reorder-shapes\":member", "docComment": "", "excerptTokens": [ { @@ -20986,7 +20986,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"reset-zoom\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"reset-zoom\":member", "docComment": "", "excerptTokens": [ { @@ -21013,7 +21013,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"rotate-ccw\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"rotate-ccw\":member", "docComment": "", "excerptTokens": [ { @@ -21040,7 +21040,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"rotate-cw\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"rotate-cw\":member", "docComment": "", "excerptTokens": [ { @@ -21067,7 +21067,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"save-project-to-file\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"save-project-to-file\":member", "docComment": "", "excerptTokens": [ { @@ -21094,7 +21094,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"select-all-shapes\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"select-all-shapes\":member", "docComment": "", "excerptTokens": [ { @@ -21121,7 +21121,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"select-none-shapes\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"select-none-shapes\":member", "docComment": "", "excerptTokens": [ { @@ -21148,7 +21148,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"select-tool\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"select-tool\":member", "docComment": "", "excerptTokens": [ { @@ -21175,7 +21175,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"set-style\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"set-style\":member", "docComment": "", "excerptTokens": [ { @@ -21202,7 +21202,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"stack-shapes\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"stack-shapes\":member", "docComment": "", "excerptTokens": [ { @@ -21229,7 +21229,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"stop-following\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"stop-following\":member", "docComment": "", "excerptTokens": [ { @@ -21256,7 +21256,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"stretch-shapes\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"stretch-shapes\":member", "docComment": "", "excerptTokens": [ { @@ -21283,7 +21283,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-auto-size\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"toggle-auto-size\":member", "docComment": "", "excerptTokens": [ { @@ -21310,7 +21310,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-dark-mode\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"toggle-dark-mode\":member", "docComment": "", "excerptTokens": [ { @@ -21337,7 +21337,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-debug-mode\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"toggle-debug-mode\":member", "docComment": "", "excerptTokens": [ { @@ -21364,7 +21364,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-edge-scrolling\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"toggle-edge-scrolling\":member", "docComment": "", "excerptTokens": [ { @@ -21391,7 +21391,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-focus-mode\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"toggle-focus-mode\":member", "docComment": "", "excerptTokens": [ { @@ -21418,7 +21418,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-grid-mode\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"toggle-grid-mode\":member", "docComment": "", "excerptTokens": [ { @@ -21445,7 +21445,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-lock\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"toggle-lock\":member", "docComment": "", "excerptTokens": [ { @@ -21472,7 +21472,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-reduce-motion\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"toggle-reduce-motion\":member", "docComment": "", "excerptTokens": [ { @@ -21499,7 +21499,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-snap-mode\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"toggle-snap-mode\":member", "docComment": "", "excerptTokens": [ { @@ -21526,7 +21526,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-tool-lock\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"toggle-tool-lock\":member", "docComment": "", "excerptTokens": [ { @@ -21553,7 +21553,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-transparent\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"toggle-transparent\":member", "docComment": "", "excerptTokens": [ { @@ -21580,7 +21580,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-wrap-mode\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"toggle-wrap-mode\":member", "docComment": "", "excerptTokens": [ { @@ -21607,7 +21607,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"ungroup-shapes\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"ungroup-shapes\":member", "docComment": "", "excerptTokens": [ { @@ -21634,7 +21634,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"unlock-all\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"unlock-all\":member", "docComment": "", "excerptTokens": [ { @@ -21661,7 +21661,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"zoom-in\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"zoom-in\":member", "docComment": "", "excerptTokens": [ { @@ -21688,7 +21688,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"zoom-into-view\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"zoom-into-view\":member", "docComment": "", "excerptTokens": [ { @@ -21715,7 +21715,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"zoom-out\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"zoom-out\":member", "docComment": "", "excerptTokens": [ { @@ -21742,7 +21742,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"zoom-to-content\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"zoom-to-content\":member", "docComment": "", "excerptTokens": [ { @@ -21769,7 +21769,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"zoom-to-fit\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"zoom-to-fit\":member", "docComment": "", "excerptTokens": [ { @@ -21796,7 +21796,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"zoom-to-selection\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"zoom-to-selection\":member", "docComment": "", "excerptTokens": [ { @@ -21823,7 +21823,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"zoom-tool\":member", + "canonicalReference": "tldraw!TLUiEventMap#\"zoom-tool\":member", "docComment": "", "excerptTokens": [ { @@ -21850,7 +21850,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#copy:member", + "canonicalReference": "tldraw!TLUiEventMap#copy:member", "docComment": "", "excerptTokens": [ { @@ -21877,7 +21877,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#cut:member", + "canonicalReference": "tldraw!TLUiEventMap#cut:member", "docComment": "", "excerptTokens": [ { @@ -21904,7 +21904,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#paste:member", + "canonicalReference": "tldraw!TLUiEventMap#paste:member", "docComment": "", "excerptTokens": [ { @@ -21931,7 +21931,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#print:member", + "canonicalReference": "tldraw!TLUiEventMap#print:member", "docComment": "", "excerptTokens": [ { @@ -21958,7 +21958,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#redo:member", + "canonicalReference": "tldraw!TLUiEventMap#redo:member", "docComment": "", "excerptTokens": [ { @@ -21985,7 +21985,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiEventMap#undo:member", + "canonicalReference": "tldraw!TLUiEventMap#undo:member", "docComment": "", "excerptTokens": [ { @@ -22015,7 +22015,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiEventSource:type", + "canonicalReference": "tldraw!TLUiEventSource:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -22041,7 +22041,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiHelperButtonsProps:type", + "canonicalReference": "tldraw!TLUiHelperButtonsProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -22067,7 +22067,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiHelpMenuProps:type", + "canonicalReference": "tldraw!TLUiHelpMenuProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -22093,7 +22093,7 @@ }, { "kind": "Interface", - "canonicalReference": "@tldraw/tldraw!TLUiIconProps:interface", + "canonicalReference": "tldraw!TLUiIconProps:interface", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -22130,7 +22130,7 @@ "members": [ { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiIconProps#children:member", + "canonicalReference": "tldraw!TLUiIconProps#children:member", "docComment": "", "excerptTokens": [ { @@ -22157,7 +22157,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiIconProps#color:member", + "canonicalReference": "tldraw!TLUiIconProps#color:member", "docComment": "", "excerptTokens": [ { @@ -22184,7 +22184,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiIconProps#crossOrigin:member", + "canonicalReference": "tldraw!TLUiIconProps#crossOrigin:member", "docComment": "", "excerptTokens": [ { @@ -22211,7 +22211,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiIconProps#icon:member", + "canonicalReference": "tldraw!TLUiIconProps#icon:member", "docComment": "", "excerptTokens": [ { @@ -22230,7 +22230,7 @@ { "kind": "Reference", "text": "TLUiIconType", - "canonicalReference": "@tldraw/tldraw!TLUiIconType:type" + "canonicalReference": "tldraw!TLUiIconType:type" }, { "kind": "Content", @@ -22239,7 +22239,7 @@ { "kind": "Reference", "text": "TLUiIconType", - "canonicalReference": "@tldraw/tldraw!TLUiIconType:type" + "canonicalReference": "tldraw!TLUiIconType:type" }, { "kind": "Content", @@ -22257,7 +22257,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiIconProps#invertIcon:member", + "canonicalReference": "tldraw!TLUiIconProps#invertIcon:member", "docComment": "", "excerptTokens": [ { @@ -22284,7 +22284,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiIconProps#small:member", + "canonicalReference": "tldraw!TLUiIconProps#small:member", "docComment": "", "excerptTokens": [ { @@ -22319,7 +22319,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiIconType:type", + "canonicalReference": "tldraw!TLUiIconType:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -22345,7 +22345,7 @@ }, { "kind": "Interface", - "canonicalReference": "@tldraw/tldraw!TLUiInputProps:interface", + "canonicalReference": "tldraw!TLUiInputProps:interface", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -22360,7 +22360,7 @@ "members": [ { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiInputProps#autofocus:member", + "canonicalReference": "tldraw!TLUiInputProps#autofocus:member", "docComment": "", "excerptTokens": [ { @@ -22387,7 +22387,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiInputProps#autoselect:member", + "canonicalReference": "tldraw!TLUiInputProps#autoselect:member", "docComment": "", "excerptTokens": [ { @@ -22414,7 +22414,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiInputProps#children:member", + "canonicalReference": "tldraw!TLUiInputProps#children:member", "docComment": "", "excerptTokens": [ { @@ -22441,7 +22441,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiInputProps#className:member", + "canonicalReference": "tldraw!TLUiInputProps#className:member", "docComment": "", "excerptTokens": [ { @@ -22468,7 +22468,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiInputProps#defaultValue:member", + "canonicalReference": "tldraw!TLUiInputProps#defaultValue:member", "docComment": "", "excerptTokens": [ { @@ -22495,7 +22495,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiInputProps#disabled:member", + "canonicalReference": "tldraw!TLUiInputProps#disabled:member", "docComment": "", "excerptTokens": [ { @@ -22522,7 +22522,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiInputProps#icon:member", + "canonicalReference": "tldraw!TLUiInputProps#icon:member", "docComment": "", "excerptTokens": [ { @@ -22541,7 +22541,7 @@ { "kind": "Reference", "text": "TLUiIconType", - "canonicalReference": "@tldraw/tldraw!TLUiIconType:type" + "canonicalReference": "tldraw!TLUiIconType:type" }, { "kind": "Content", @@ -22550,7 +22550,7 @@ { "kind": "Reference", "text": "TLUiIconType", - "canonicalReference": "@tldraw/tldraw!TLUiIconType:type" + "canonicalReference": "tldraw!TLUiIconType:type" }, { "kind": "Content", @@ -22568,7 +22568,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiInputProps#iconLeft:member", + "canonicalReference": "tldraw!TLUiInputProps#iconLeft:member", "docComment": "", "excerptTokens": [ { @@ -22587,7 +22587,7 @@ { "kind": "Reference", "text": "TLUiIconType", - "canonicalReference": "@tldraw/tldraw!TLUiIconType:type" + "canonicalReference": "tldraw!TLUiIconType:type" }, { "kind": "Content", @@ -22596,7 +22596,7 @@ { "kind": "Reference", "text": "TLUiIconType", - "canonicalReference": "@tldraw/tldraw!TLUiIconType:type" + "canonicalReference": "tldraw!TLUiIconType:type" }, { "kind": "Content", @@ -22614,7 +22614,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiInputProps#label:member", + "canonicalReference": "tldraw!TLUiInputProps#label:member", "docComment": "", "excerptTokens": [ { @@ -22633,7 +22633,7 @@ { "kind": "Reference", "text": "TLUiTranslationKey", - "canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type" + "canonicalReference": "tldraw!TLUiTranslationKey:type" }, { "kind": "Content", @@ -22642,7 +22642,7 @@ { "kind": "Reference", "text": "TLUiTranslationKey", - "canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type" + "canonicalReference": "tldraw!TLUiTranslationKey:type" }, { "kind": "Content", @@ -22660,7 +22660,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiInputProps#onBlur:member", + "canonicalReference": "tldraw!TLUiInputProps#onBlur:member", "docComment": "", "excerptTokens": [ { @@ -22687,7 +22687,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiInputProps#onCancel:member", + "canonicalReference": "tldraw!TLUiInputProps#onCancel:member", "docComment": "", "excerptTokens": [ { @@ -22714,7 +22714,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiInputProps#onComplete:member", + "canonicalReference": "tldraw!TLUiInputProps#onComplete:member", "docComment": "", "excerptTokens": [ { @@ -22741,7 +22741,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiInputProps#onValueChange:member", + "canonicalReference": "tldraw!TLUiInputProps#onValueChange:member", "docComment": "", "excerptTokens": [ { @@ -22768,7 +22768,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiInputProps#placeholder:member", + "canonicalReference": "tldraw!TLUiInputProps#placeholder:member", "docComment": "", "excerptTokens": [ { @@ -22795,7 +22795,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiInputProps#shouldManuallyMaintainScrollPositionWhenFocused:member", + "canonicalReference": "tldraw!TLUiInputProps#shouldManuallyMaintainScrollPositionWhenFocused:member", "docComment": "/**\n * Usually on iOS when you focus an input, the browser will adjust the viewport to bring the input into view. Sometimes this doesn't work properly though - for example, if the input is newly created, iOS seems to have a hard time adjusting the viewport for it. This prop allows you to opt-in to some extra code to manually bring the input into view when the visual viewport of the browser changes, but we don't want to use it everywhere because generally the native behavior looks nicer in scenarios where it's sufficient.\n */\n", "excerptTokens": [ { @@ -22822,7 +22822,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiInputProps#value:member", + "canonicalReference": "tldraw!TLUiInputProps#value:member", "docComment": "", "excerptTokens": [ { @@ -22852,7 +22852,7 @@ }, { "kind": "Interface", - "canonicalReference": "@tldraw/tldraw!TLUiKbdProps:interface", + "canonicalReference": "tldraw!TLUiKbdProps:interface", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -22867,7 +22867,7 @@ "members": [ { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiKbdProps#children:member", + "canonicalReference": "tldraw!TLUiKbdProps#children:member", "docComment": "", "excerptTokens": [ { @@ -22894,7 +22894,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiKbdProps#visibleOnMobileLayout:member", + "canonicalReference": "tldraw!TLUiKbdProps#visibleOnMobileLayout:member", "docComment": "", "excerptTokens": [ { @@ -22924,7 +22924,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiKeyboardShortcutsDialogProps:type", + "canonicalReference": "tldraw!TLUiKeyboardShortcutsDialogProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -22934,7 +22934,7 @@ { "kind": "Reference", "text": "TLUiDialogProps", - "canonicalReference": "@tldraw/tldraw!TLUiDialogProps:interface" + "canonicalReference": "tldraw!TLUiDialogProps:interface" }, { "kind": "Content", @@ -22955,7 +22955,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiMainMenuProps:type", + "canonicalReference": "tldraw!TLUiMainMenuProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -22981,7 +22981,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiMenuCheckboxItemProps:type", + "canonicalReference": "tldraw!TLUiMenuCheckboxItemProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -23027,7 +23027,7 @@ { "kind": "Reference", "text": "TLUiEventSource", - "canonicalReference": "@tldraw/tldraw!TLUiEventSource:type" + "canonicalReference": "tldraw!TLUiEventSource:type" }, { "kind": "Content", @@ -23081,7 +23081,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiMenuContextProviderProps:type", + "canonicalReference": "tldraw!TLUiMenuContextProviderProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -23095,7 +23095,7 @@ { "kind": "Reference", "text": "TldrawUiMenuContextType", - "canonicalReference": "@tldraw/tldraw!~TldrawUiMenuContextType:type" + "canonicalReference": "tldraw!~TldrawUiMenuContextType:type" }, { "kind": "Content", @@ -23104,7 +23104,7 @@ { "kind": "Reference", "text": "TLUiEventSource", - "canonicalReference": "@tldraw/tldraw!TLUiEventSource:type" + "canonicalReference": "tldraw!TLUiEventSource:type" }, { "kind": "Content", @@ -23134,7 +23134,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiMenuGroupProps:type", + "canonicalReference": "tldraw!TLUiMenuGroupProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -23189,7 +23189,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiMenuItemProps:type", + "canonicalReference": "tldraw!TLUiMenuItemProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -23235,7 +23235,7 @@ { "kind": "Reference", "text": "TLUiEventSource", - "canonicalReference": "@tldraw/tldraw!TLUiEventSource:type" + "canonicalReference": "tldraw!TLUiEventSource:type" }, { "kind": "Content", @@ -23289,7 +23289,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiMenuSubmenuProps:type", + "canonicalReference": "tldraw!TLUiMenuSubmenuProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -23344,7 +23344,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiOverrides:type", + "canonicalReference": "tldraw!TLUiOverrides:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -23363,7 +23363,7 @@ { "kind": "Reference", "text": "WithDefaultHelpers", - "canonicalReference": "@tldraw/tldraw!~WithDefaultHelpers:type" + "canonicalReference": "tldraw!~WithDefaultHelpers:type" }, { "kind": "Content", @@ -23381,7 +23381,7 @@ { "kind": "Reference", "text": "ActionsProviderProps", - "canonicalReference": "@tldraw/tldraw!~ActionsProviderProps:type" + "canonicalReference": "tldraw!~ActionsProviderProps:type" }, { "kind": "Content", @@ -23390,7 +23390,7 @@ { "kind": "Reference", "text": "WithDefaultHelpers", - "canonicalReference": "@tldraw/tldraw!~WithDefaultHelpers:type" + "canonicalReference": "tldraw!~WithDefaultHelpers:type" }, { "kind": "Content", @@ -23408,7 +23408,7 @@ { "kind": "Reference", "text": "TLUiToolbarSchemaProviderProps", - "canonicalReference": "@tldraw/tldraw!~TLUiToolbarSchemaProviderProps:type" + "canonicalReference": "tldraw!~TLUiToolbarSchemaProviderProps:type" }, { "kind": "Content", @@ -23417,7 +23417,7 @@ { "kind": "Reference", "text": "WithDefaultHelpers", - "canonicalReference": "@tldraw/tldraw!~WithDefaultHelpers:type" + "canonicalReference": "tldraw!~WithDefaultHelpers:type" }, { "kind": "Content", @@ -23435,7 +23435,7 @@ { "kind": "Reference", "text": "TLUiToolsProviderProps", - "canonicalReference": "@tldraw/tldraw!TLUiToolsProviderProps:type" + "canonicalReference": "tldraw!TLUiToolsProviderProps:type" }, { "kind": "Content", @@ -23444,7 +23444,7 @@ { "kind": "Reference", "text": "TLUiTranslationProviderProps", - "canonicalReference": "@tldraw/tldraw!~TLUiTranslationProviderProps:interface" + "canonicalReference": "tldraw!~TLUiTranslationProviderProps:interface" }, { "kind": "Content", @@ -23465,7 +23465,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiPopoverContentProps:type", + "canonicalReference": "tldraw!TLUiPopoverContentProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -23500,7 +23500,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiPopoverProps:type", + "canonicalReference": "tldraw!TLUiPopoverProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -23535,7 +23535,7 @@ }, { "kind": "Interface", - "canonicalReference": "@tldraw/tldraw!TLUiPopoverTriggerProps:interface", + "canonicalReference": "tldraw!TLUiPopoverTriggerProps:interface", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -23550,7 +23550,7 @@ "members": [ { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiPopoverTriggerProps#children:member", + "canonicalReference": "tldraw!TLUiPopoverTriggerProps#children:member", "docComment": "", "excerptTokens": [ { @@ -23581,7 +23581,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiQuickActionsProps:type", + "canonicalReference": "tldraw!TLUiQuickActionsProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -23607,7 +23607,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiStylePanelContentProps:type", + "canonicalReference": "tldraw!TLUiStylePanelContentProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -23630,7 +23630,7 @@ { "kind": "Reference", "text": "useRelevantStyles", - "canonicalReference": "@tldraw/tldraw!useRelevantStyles:function" + "canonicalReference": "tldraw!useRelevantStyles:function" }, { "kind": "Content", @@ -23651,7 +23651,7 @@ }, { "kind": "Interface", - "canonicalReference": "@tldraw/tldraw!TLUiStylePanelProps:interface", + "canonicalReference": "tldraw!TLUiStylePanelProps:interface", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -23666,7 +23666,7 @@ "members": [ { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiStylePanelProps#children:member", + "canonicalReference": "tldraw!TLUiStylePanelProps#children:member", "docComment": "", "excerptTokens": [ { @@ -23694,7 +23694,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiStylePanelProps#isMobile:member", + "canonicalReference": "tldraw!TLUiStylePanelProps#isMobile:member", "docComment": "", "excerptTokens": [ { @@ -23725,7 +23725,7 @@ }, { "kind": "Interface", - "canonicalReference": "@tldraw/tldraw!TLUiToast:interface", + "canonicalReference": "tldraw!TLUiToast:interface", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -23740,7 +23740,7 @@ "members": [ { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiToast#actions:member", + "canonicalReference": "tldraw!TLUiToast#actions:member", "docComment": "", "excerptTokens": [ { @@ -23750,7 +23750,7 @@ { "kind": "Reference", "text": "TLUiToastAction", - "canonicalReference": "@tldraw/tldraw!TLUiToastAction:interface" + "canonicalReference": "tldraw!TLUiToastAction:interface" }, { "kind": "Content", @@ -23772,7 +23772,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiToast#closeLabel:member", + "canonicalReference": "tldraw!TLUiToast#closeLabel:member", "docComment": "", "excerptTokens": [ { @@ -23799,7 +23799,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiToast#description:member", + "canonicalReference": "tldraw!TLUiToast#description:member", "docComment": "", "excerptTokens": [ { @@ -23826,7 +23826,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiToast#icon:member", + "canonicalReference": "tldraw!TLUiToast#icon:member", "docComment": "", "excerptTokens": [ { @@ -23836,7 +23836,7 @@ { "kind": "Reference", "text": "TLUiIconType", - "canonicalReference": "@tldraw/tldraw!TLUiIconType:type" + "canonicalReference": "tldraw!TLUiIconType:type" }, { "kind": "Content", @@ -23854,7 +23854,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiToast#id:member", + "canonicalReference": "tldraw!TLUiToast#id:member", "docComment": "", "excerptTokens": [ { @@ -23881,7 +23881,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiToast#keepOpen:member", + "canonicalReference": "tldraw!TLUiToast#keepOpen:member", "docComment": "", "excerptTokens": [ { @@ -23908,7 +23908,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiToast#title:member", + "canonicalReference": "tldraw!TLUiToast#title:member", "docComment": "", "excerptTokens": [ { @@ -23938,7 +23938,7 @@ }, { "kind": "Interface", - "canonicalReference": "@tldraw/tldraw!TLUiToastAction:interface", + "canonicalReference": "tldraw!TLUiToastAction:interface", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -23953,7 +23953,7 @@ "members": [ { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiToastAction#label:member", + "canonicalReference": "tldraw!TLUiToastAction#label:member", "docComment": "", "excerptTokens": [ { @@ -23980,7 +23980,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiToastAction#onClick:member", + "canonicalReference": "tldraw!TLUiToastAction#onClick:member", "docComment": "", "excerptTokens": [ { @@ -24007,7 +24007,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiToastAction#type:member", + "canonicalReference": "tldraw!TLUiToastAction#type:member", "docComment": "", "excerptTokens": [ { @@ -24037,7 +24037,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiToastsContextType:type", + "canonicalReference": "tldraw!TLUiToastsContextType:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -24060,7 +24060,7 @@ { "kind": "Reference", "text": "TLUiToast", - "canonicalReference": "@tldraw/tldraw!TLUiToast:interface" + "canonicalReference": "tldraw!TLUiToast:interface" }, { "kind": "Content", @@ -24069,7 +24069,7 @@ { "kind": "Reference", "text": "TLUiToast", - "canonicalReference": "@tldraw/tldraw!TLUiToast:interface" + "canonicalReference": "tldraw!TLUiToast:interface" }, { "kind": "Content", @@ -24078,7 +24078,7 @@ { "kind": "Reference", "text": "TLUiToast", - "canonicalReference": "@tldraw/tldraw!TLUiToast:interface" + "canonicalReference": "tldraw!TLUiToast:interface" }, { "kind": "Content", @@ -24099,7 +24099,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiToolbarItem:type", + "canonicalReference": "tldraw!TLUiToolbarItem:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -24113,7 +24113,7 @@ { "kind": "Reference", "text": "TLUiToolItem", - "canonicalReference": "@tldraw/tldraw!TLUiToolItem:interface" + "canonicalReference": "tldraw!TLUiToolItem:interface" }, { "kind": "Content", @@ -24134,7 +24134,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiToolbarSchemaContextType:type", + "canonicalReference": "tldraw!TLUiToolbarSchemaContextType:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -24144,7 +24144,7 @@ { "kind": "Reference", "text": "TLUiToolbarItem", - "canonicalReference": "@tldraw/tldraw!TLUiToolbarItem:type" + "canonicalReference": "tldraw!TLUiToolbarItem:type" }, { "kind": "Content", @@ -24165,7 +24165,7 @@ }, { "kind": "Interface", - "canonicalReference": "@tldraw/tldraw!TLUiToolItem:interface", + "canonicalReference": "tldraw!TLUiToolItem:interface", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -24236,7 +24236,7 @@ "members": [ { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiToolItem#icon:member", + "canonicalReference": "tldraw!TLUiToolItem#icon:member", "docComment": "", "excerptTokens": [ { @@ -24263,7 +24263,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiToolItem#id:member", + "canonicalReference": "tldraw!TLUiToolItem#id:member", "docComment": "", "excerptTokens": [ { @@ -24290,7 +24290,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiToolItem#kbd:member", + "canonicalReference": "tldraw!TLUiToolItem#kbd:member", "docComment": "", "excerptTokens": [ { @@ -24317,7 +24317,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiToolItem#label:member", + "canonicalReference": "tldraw!TLUiToolItem#label:member", "docComment": "", "excerptTokens": [ { @@ -24344,7 +24344,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiToolItem#meta:member", + "canonicalReference": "tldraw!TLUiToolItem#meta:member", "docComment": "", "excerptTokens": [ { @@ -24371,7 +24371,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiToolItem#onSelect:member", + "canonicalReference": "tldraw!TLUiToolItem#onSelect:member", "docComment": "", "excerptTokens": [ { @@ -24385,7 +24385,7 @@ { "kind": "Reference", "text": "TLUiEventSource", - "canonicalReference": "@tldraw/tldraw!TLUiEventSource:type" + "canonicalReference": "tldraw!TLUiEventSource:type" }, { "kind": "Content", @@ -24407,7 +24407,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiToolItem#readonlyOk:member", + "canonicalReference": "tldraw!TLUiToolItem#readonlyOk:member", "docComment": "", "excerptTokens": [ { @@ -24434,7 +24434,7 @@ }, { "kind": "PropertySignature", - "canonicalReference": "@tldraw/tldraw!TLUiToolItem#shortcutsLabel:member", + "canonicalReference": "tldraw!TLUiToolItem#shortcutsLabel:member", "docComment": "", "excerptTokens": [ { @@ -24464,7 +24464,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiToolsContextType:type", + "canonicalReference": "tldraw!TLUiToolsContextType:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -24483,7 +24483,7 @@ { "kind": "Reference", "text": "TLUiToolItem", - "canonicalReference": "@tldraw/tldraw!TLUiToolItem:interface" + "canonicalReference": "tldraw!TLUiToolItem:interface" }, { "kind": "Content", @@ -24504,7 +24504,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiToolsProviderProps:type", + "canonicalReference": "tldraw!TLUiToolsProviderProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -24527,7 +24527,7 @@ { "kind": "Reference", "text": "TLUiToolsContextType", - "canonicalReference": "@tldraw/tldraw!TLUiToolsContextType:type" + "canonicalReference": "tldraw!TLUiToolsContextType:type" }, { "kind": "Content", @@ -24536,7 +24536,7 @@ { "kind": "Reference", "text": "TLUiToolsContextType", - "canonicalReference": "@tldraw/tldraw!TLUiToolsContextType:type" + "canonicalReference": "tldraw!TLUiToolsContextType:type" }, { "kind": "Content", @@ -24557,7 +24557,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiTranslation:type", + "canonicalReference": "tldraw!TLUiTranslation:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -24580,7 +24580,7 @@ { "kind": "Reference", "text": "TLUiTranslationKey", - "canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type" + "canonicalReference": "tldraw!TLUiTranslationKey:type" }, { "kind": "Content", @@ -24601,7 +24601,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiTranslationContextType:type", + "canonicalReference": "tldraw!TLUiTranslationContextType:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -24611,7 +24611,7 @@ { "kind": "Reference", "text": "TLUiTranslation", - "canonicalReference": "@tldraw/tldraw!TLUiTranslation:type" + "canonicalReference": "tldraw!TLUiTranslation:type" }, { "kind": "Content", @@ -24628,7 +24628,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type", + "canonicalReference": "tldraw!TLUiTranslationKey:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -24654,7 +24654,7 @@ }, { "kind": "TypeAlias", - "canonicalReference": "@tldraw/tldraw!TLUiZoomMenuProps:type", + "canonicalReference": "tldraw!TLUiZoomMenuProps:type", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -24680,7 +24680,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ToggleAutoSizeMenuItem:function(1)", + "canonicalReference": "tldraw!ToggleAutoSizeMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -24713,7 +24713,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ToggleDarkModeItem:function(1)", + "canonicalReference": "tldraw!ToggleDarkModeItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -24746,7 +24746,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ToggleDebugModeItem:function(1)", + "canonicalReference": "tldraw!ToggleDebugModeItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -24779,7 +24779,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ToggleEdgeScrollingItem:function(1)", + "canonicalReference": "tldraw!ToggleEdgeScrollingItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -24812,7 +24812,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ToggleFocusModeItem:function(1)", + "canonicalReference": "tldraw!ToggleFocusModeItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -24845,7 +24845,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ToggleGridItem:function(1)", + "canonicalReference": "tldraw!ToggleGridItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -24878,7 +24878,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ToggleLockMenuItem:function(1)", + "canonicalReference": "tldraw!ToggleLockMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -24911,7 +24911,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ToggleReduceMotionItem:function(1)", + "canonicalReference": "tldraw!ToggleReduceMotionItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -24944,7 +24944,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ToggleSnapModeItem:function(1)", + "canonicalReference": "tldraw!ToggleSnapModeItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -24977,7 +24977,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ToggleToolLockItem:function(1)", + "canonicalReference": "tldraw!ToggleToolLockItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25010,7 +25010,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ToggleTransparentBgMenuItem:function(1)", + "canonicalReference": "tldraw!ToggleTransparentBgMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25043,7 +25043,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ToggleWrapModeItem:function(1)", + "canonicalReference": "tldraw!ToggleWrapModeItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25076,7 +25076,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!toolbarItem:function(1)", + "canonicalReference": "tldraw!toolbarItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25086,7 +25086,7 @@ { "kind": "Reference", "text": "TLUiToolItem", - "canonicalReference": "@tldraw/tldraw!TLUiToolItem:interface" + "canonicalReference": "tldraw!TLUiToolItem:interface" }, { "kind": "Content", @@ -25095,7 +25095,7 @@ { "kind": "Reference", "text": "TLUiToolbarItem", - "canonicalReference": "@tldraw/tldraw!TLUiToolbarItem:type" + "canonicalReference": "tldraw!TLUiToolbarItem:type" }, { "kind": "Content", @@ -25123,7 +25123,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!truncateStringWithEllipsis:function(1)", + "canonicalReference": "tldraw!truncateStringWithEllipsis:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25180,7 +25180,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!UiEventsProvider:function(1)", + "canonicalReference": "tldraw!UiEventsProvider:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25190,7 +25190,7 @@ { "kind": "Reference", "text": "EventsProviderProps", - "canonicalReference": "@tldraw/tldraw!EventsProviderProps:type" + "canonicalReference": "tldraw!EventsProviderProps:type" }, { "kind": "Content", @@ -25231,7 +25231,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!UndoRedoGroup:function(1)", + "canonicalReference": "tldraw!UndoRedoGroup:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25264,7 +25264,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!UngroupMenuItem:function(1)", + "canonicalReference": "tldraw!UngroupMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25297,7 +25297,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!UnlockAllMenuItem:function(1)", + "canonicalReference": "tldraw!UnlockAllMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25330,7 +25330,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!unwrapLabel:function(1)", + "canonicalReference": "tldraw!unwrapLabel:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25340,7 +25340,7 @@ { "kind": "Reference", "text": "TLUiActionItem", - "canonicalReference": "@tldraw/tldraw!TLUiActionItem:interface" + "canonicalReference": "tldraw!TLUiActionItem:interface" }, { "kind": "Content", @@ -25396,7 +25396,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!useActions:function(1)", + "canonicalReference": "tldraw!useActions:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25406,7 +25406,7 @@ { "kind": "Reference", "text": "TLUiActionsContextType", - "canonicalReference": "@tldraw/tldraw!TLUiActionsContextType:type" + "canonicalReference": "tldraw!TLUiActionsContextType:type" }, { "kind": "Content", @@ -25425,7 +25425,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!useBreakpoint:function(1)", + "canonicalReference": "tldraw!useBreakpoint:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25453,7 +25453,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!useCanRedo:function(1)", + "canonicalReference": "tldraw!useCanRedo:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25481,7 +25481,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!useCanUndo:function(1)", + "canonicalReference": "tldraw!useCanUndo:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25509,7 +25509,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!useCopyAs:function(1)", + "canonicalReference": "tldraw!useCopyAs:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25532,7 +25532,7 @@ { "kind": "Reference", "text": "TLCopyType", - "canonicalReference": "@tldraw/tldraw!~TLCopyType:type" + "canonicalReference": "tldraw!~TLCopyType:type" }, { "kind": "Content", @@ -25555,7 +25555,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!useDefaultHelpers:function(1)", + "canonicalReference": "tldraw!useDefaultHelpers:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25578,7 +25578,7 @@ { "kind": "Reference", "text": "TLUiToast", - "canonicalReference": "@tldraw/tldraw!TLUiToast:interface" + "canonicalReference": "tldraw!TLUiToast:interface" }, { "kind": "Content", @@ -25596,7 +25596,7 @@ { "kind": "Reference", "text": "TLUiDialog", - "canonicalReference": "@tldraw/tldraw!TLUiDialog:interface" + "canonicalReference": "tldraw!TLUiDialog:interface" }, { "kind": "Content", @@ -25614,7 +25614,7 @@ { "kind": "Reference", "text": "TLUiDialog", - "canonicalReference": "@tldraw/tldraw!TLUiDialog:interface" + "canonicalReference": "tldraw!TLUiDialog:interface" }, { "kind": "Content", @@ -25637,7 +25637,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!useDialogs:function(1)", + "canonicalReference": "tldraw!useDialogs:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25647,7 +25647,7 @@ { "kind": "Reference", "text": "TLUiDialogsContextType", - "canonicalReference": "@tldraw/tldraw!TLUiDialogsContextType:type" + "canonicalReference": "tldraw!TLUiDialogsContextType:type" }, { "kind": "Content", @@ -25666,7 +25666,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!useExportAs:function(1)", + "canonicalReference": "tldraw!useExportAs:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25689,7 +25689,7 @@ { "kind": "Reference", "text": "TLExportType", - "canonicalReference": "@tldraw/tldraw!~TLExportType:type" + "canonicalReference": "tldraw!~TLExportType:type" }, { "kind": "Content", @@ -25712,7 +25712,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!useKeyboardShortcuts:function(1)", + "canonicalReference": "tldraw!useKeyboardShortcuts:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25740,7 +25740,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!useLocalStorageState:function(1)", + "canonicalReference": "tldraw!useLocalStorageState:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25822,7 +25822,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!useMenuClipboardEvents:function(1)", + "canonicalReference": "tldraw!useMenuClipboardEvents:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25836,7 +25836,7 @@ { "kind": "Reference", "text": "TLUiEventSource", - "canonicalReference": "@tldraw/tldraw!TLUiEventSource:type" + "canonicalReference": "tldraw!TLUiEventSource:type" }, { "kind": "Content", @@ -25845,7 +25845,7 @@ { "kind": "Reference", "text": "TLUiEventSource", - "canonicalReference": "@tldraw/tldraw!TLUiEventSource:type" + "canonicalReference": "tldraw!TLUiEventSource:type" }, { "kind": "Content", @@ -25872,7 +25872,7 @@ { "kind": "Reference", "text": "TLUiEventSource", - "canonicalReference": "@tldraw/tldraw!TLUiEventSource:type" + "canonicalReference": "tldraw!TLUiEventSource:type" }, { "kind": "Content", @@ -25913,7 +25913,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!useMenuIsOpen:function(1)", + "canonicalReference": "tldraw!useMenuIsOpen:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -25974,7 +25974,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!useNativeClipboardEvents:function(1)", + "canonicalReference": "tldraw!useNativeClipboardEvents:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -26002,7 +26002,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!useReadonly:function(1)", + "canonicalReference": "tldraw!useReadonly:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -26030,7 +26030,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!useRelevantStyles:function(1)", + "canonicalReference": "tldraw!useRelevantStyles:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -26089,7 +26089,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!useTldrawUiComponents:function(1)", + "canonicalReference": "tldraw!useTldrawUiComponents:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -26117,7 +26117,7 @@ { "kind": "Reference", "text": "TLUiContextMenuProps", - "canonicalReference": "@tldraw/tldraw!TLUiContextMenuProps:interface" + "canonicalReference": "tldraw!TLUiContextMenuProps:interface" }, { "kind": "Content", @@ -26135,7 +26135,7 @@ { "kind": "Reference", "text": "TLUiActionsMenuProps", - "canonicalReference": "@tldraw/tldraw!TLUiActionsMenuProps:type" + "canonicalReference": "tldraw!TLUiActionsMenuProps:type" }, { "kind": "Content", @@ -26153,7 +26153,7 @@ { "kind": "Reference", "text": "TLUiHelpMenuProps", - "canonicalReference": "@tldraw/tldraw!TLUiHelpMenuProps:type" + "canonicalReference": "tldraw!TLUiHelpMenuProps:type" }, { "kind": "Content", @@ -26171,7 +26171,7 @@ { "kind": "Reference", "text": "TLUiZoomMenuProps", - "canonicalReference": "@tldraw/tldraw!TLUiZoomMenuProps:type" + "canonicalReference": "tldraw!TLUiZoomMenuProps:type" }, { "kind": "Content", @@ -26189,7 +26189,7 @@ { "kind": "Reference", "text": "TLUiMainMenuProps", - "canonicalReference": "@tldraw/tldraw!TLUiMainMenuProps:type" + "canonicalReference": "tldraw!TLUiMainMenuProps:type" }, { "kind": "Content", @@ -26216,7 +26216,7 @@ { "kind": "Reference", "text": "TLUiStylePanelProps", - "canonicalReference": "@tldraw/tldraw!TLUiStylePanelProps:interface" + "canonicalReference": "tldraw!TLUiStylePanelProps:interface" }, { "kind": "Content", @@ -26261,7 +26261,7 @@ { "kind": "Reference", "text": "TLUiKeyboardShortcutsDialogProps", - "canonicalReference": "@tldraw/tldraw!TLUiKeyboardShortcutsDialogProps:type" + "canonicalReference": "tldraw!TLUiKeyboardShortcutsDialogProps:type" }, { "kind": "Content", @@ -26279,7 +26279,7 @@ { "kind": "Reference", "text": "TLUiQuickActionsProps", - "canonicalReference": "@tldraw/tldraw!TLUiQuickActionsProps:type" + "canonicalReference": "tldraw!TLUiQuickActionsProps:type" }, { "kind": "Content", @@ -26297,7 +26297,7 @@ { "kind": "Reference", "text": "TLUiHelperButtonsProps", - "canonicalReference": "@tldraw/tldraw!TLUiHelperButtonsProps:type" + "canonicalReference": "tldraw!TLUiHelperButtonsProps:type" }, { "kind": "Content", @@ -26356,7 +26356,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!useToasts:function(1)", + "canonicalReference": "tldraw!useToasts:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -26366,7 +26366,7 @@ { "kind": "Reference", "text": "TLUiToastsContextType", - "canonicalReference": "@tldraw/tldraw!TLUiToastsContextType:type" + "canonicalReference": "tldraw!TLUiToastsContextType:type" }, { "kind": "Content", @@ -26385,7 +26385,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!useToolbarSchema:function(1)", + "canonicalReference": "tldraw!useToolbarSchema:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -26395,7 +26395,7 @@ { "kind": "Reference", "text": "TLUiToolbarSchemaContextType", - "canonicalReference": "@tldraw/tldraw!TLUiToolbarSchemaContextType:type" + "canonicalReference": "tldraw!TLUiToolbarSchemaContextType:type" }, { "kind": "Content", @@ -26414,7 +26414,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!useTools:function(1)", + "canonicalReference": "tldraw!useTools:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -26424,7 +26424,7 @@ { "kind": "Reference", "text": "TLUiToolsContextType", - "canonicalReference": "@tldraw/tldraw!TLUiToolsContextType:type" + "canonicalReference": "tldraw!TLUiToolsContextType:type" }, { "kind": "Content", @@ -26443,7 +26443,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!useTranslation:function(1)", + "canonicalReference": "tldraw!useTranslation:function(1)", "docComment": "/**\n * Returns a function to translate a translation key into a string based on the current translation.\n *\n * @example\n * ```ts\n * const msg = useTranslation()\n * const label = msg('style-panel.styles')\n * ```\n *\n * @public\n */\n", "excerptTokens": [ { @@ -26466,7 +26466,7 @@ { "kind": "Reference", "text": "TLUiTranslationKey", - "canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type" + "canonicalReference": "tldraw!TLUiTranslationKey:type" }, { "kind": "Content", @@ -26489,7 +26489,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!useUiEvents:function(1)", + "canonicalReference": "tldraw!useUiEvents:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -26499,7 +26499,7 @@ { "kind": "Reference", "text": "TLUiEventContextType", - "canonicalReference": "@tldraw/tldraw!TLUiEventContextType:type" + "canonicalReference": "tldraw!TLUiEventContextType:type" }, { "kind": "Content", @@ -26518,7 +26518,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!VideoShapeUtil:class", + "canonicalReference": "tldraw!VideoShapeUtil:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -26556,7 +26556,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!VideoShapeUtil#canEdit:member", + "canonicalReference": "tldraw!VideoShapeUtil#canEdit:member", "docComment": "", "excerptTokens": [ { @@ -26586,7 +26586,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!VideoShapeUtil#component:member(1)", + "canonicalReference": "tldraw!VideoShapeUtil#component:member(1)", "docComment": "", "excerptTokens": [ { @@ -26640,7 +26640,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!VideoShapeUtil#getDefaultProps:member(1)", + "canonicalReference": "tldraw!VideoShapeUtil#getDefaultProps:member(1)", "docComment": "", "excerptTokens": [ { @@ -26676,7 +26676,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!VideoShapeUtil#indicator:member(1)", + "canonicalReference": "tldraw!VideoShapeUtil#indicator:member(1)", "docComment": "", "excerptTokens": [ { @@ -26730,7 +26730,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!VideoShapeUtil#isAspectRatioLocked:member", + "canonicalReference": "tldraw!VideoShapeUtil#isAspectRatioLocked:member", "docComment": "", "excerptTokens": [ { @@ -26760,7 +26760,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!VideoShapeUtil.migrations:member", + "canonicalReference": "tldraw!VideoShapeUtil.migrations:member", "docComment": "", "excerptTokens": [ { @@ -26795,7 +26795,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!VideoShapeUtil.props:member", + "canonicalReference": "tldraw!VideoShapeUtil.props:member", "docComment": "", "excerptTokens": [ { @@ -26888,7 +26888,7 @@ }, { "kind": "Method", - "canonicalReference": "@tldraw/tldraw!VideoShapeUtil#toSvg:member(1)", + "canonicalReference": "tldraw!VideoShapeUtil#toSvg:member(1)", "docComment": "", "excerptTokens": [ { @@ -26938,7 +26938,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!VideoShapeUtil.type:member", + "canonicalReference": "tldraw!VideoShapeUtil.type:member", "docComment": "", "excerptTokens": [ { @@ -26975,7 +26975,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ViewSubmenu:function(1)", + "canonicalReference": "tldraw!ViewSubmenu:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -27008,7 +27008,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ZoomOrRotateMenuItem:function(1)", + "canonicalReference": "tldraw!ZoomOrRotateMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -27041,7 +27041,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ZoomTo100MenuItem:function(1)", + "canonicalReference": "tldraw!ZoomTo100MenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -27074,7 +27074,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ZoomToFitMenuItem:function(1)", + "canonicalReference": "tldraw!ZoomToFitMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -27107,7 +27107,7 @@ }, { "kind": "Class", - "canonicalReference": "@tldraw/tldraw!ZoomTool:class", + "canonicalReference": "tldraw!ZoomTool:class", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { @@ -27132,7 +27132,7 @@ "members": [ { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ZoomTool.children:member", + "canonicalReference": "tldraw!ZoomTool.children:member", "docComment": "", "excerptTokens": [ { @@ -27146,7 +27146,7 @@ { "kind": "Reference", "text": "Idle", - "canonicalReference": "@tldraw/tldraw!~Idle_12:class" + "canonicalReference": "tldraw!~Idle_12:class" }, { "kind": "Content", @@ -27155,7 +27155,7 @@ { "kind": "Reference", "text": "Pointing", - "canonicalReference": "@tldraw/tldraw!~Pointing_8:class" + "canonicalReference": "tldraw!~Pointing_8:class" }, { "kind": "Content", @@ -27164,7 +27164,7 @@ { "kind": "Reference", "text": "ZoomBrushing", - "canonicalReference": "@tldraw/tldraw!~ZoomBrushing:class" + "canonicalReference": "tldraw!~ZoomBrushing:class" }, { "kind": "Content", @@ -27189,7 +27189,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ZoomTool.id:member", + "canonicalReference": "tldraw!ZoomTool.id:member", "docComment": "", "excerptTokens": [ { @@ -27219,7 +27219,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ZoomTool#info:member", + "canonicalReference": "tldraw!ZoomTool#info:member", "docComment": "", "excerptTokens": [ { @@ -27254,7 +27254,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ZoomTool.initial:member", + "canonicalReference": "tldraw!ZoomTool.initial:member", "docComment": "", "excerptTokens": [ { @@ -27284,7 +27284,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ZoomTool#onEnter:member", + "canonicalReference": "tldraw!ZoomTool#onEnter:member", "docComment": "", "excerptTokens": [ { @@ -27323,7 +27323,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ZoomTool#onExit:member", + "canonicalReference": "tldraw!ZoomTool#onExit:member", "docComment": "", "excerptTokens": [ { @@ -27353,7 +27353,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ZoomTool#onInterrupt:member", + "canonicalReference": "tldraw!ZoomTool#onInterrupt:member", "docComment": "", "excerptTokens": [ { @@ -27384,7 +27384,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ZoomTool#onKeyDown:member", + "canonicalReference": "tldraw!ZoomTool#onKeyDown:member", "docComment": "", "excerptTokens": [ { @@ -27419,7 +27419,7 @@ }, { "kind": "Property", - "canonicalReference": "@tldraw/tldraw!ZoomTool#onKeyUp:member", + "canonicalReference": "tldraw!ZoomTool#onKeyUp:member", "docComment": "", "excerptTokens": [ { @@ -27457,7 +27457,7 @@ }, { "kind": "Function", - "canonicalReference": "@tldraw/tldraw!ZoomToSelectionMenuItem:function(1)", + "canonicalReference": "tldraw!ZoomToSelectionMenuItem:function(1)", "docComment": "/**\n * @public\n */\n", "excerptTokens": [ { diff --git a/packages/tldraw/package.json b/packages/tldraw/package.json index 1695535ac..0f7ff1ac9 100644 --- a/packages/tldraw/package.json +++ b/packages/tldraw/package.json @@ -1,5 +1,5 @@ { - "name": "@tldraw/tldraw", + "name": "tldraw", "description": "A tiny little drawing editor.", "version": "2.0.0-beta.4", "author": { diff --git a/packages/tldraw/scripts/copy-css-files.mjs b/packages/tldraw/scripts/copy-css-files.mjs index 0e7cd4b54..2c96e6231 100644 --- a/packages/tldraw/scripts/copy-css-files.mjs +++ b/packages/tldraw/scripts/copy-css-files.mjs @@ -17,8 +17,8 @@ let combinedContent = [ return acc }, `/* THIS CSS FILE IS GENERATED! DO NOT EDIT. OR EDIT. I'M A COMMENT NOT A COP */ -/* This file is created by the copy-css-files.mjs script in @tldraw/tldraw. */ -/* It combines @tldraw/editor's editor.css and @tldraw/tldraw's ui.css */ +/* This file is created by the copy-css-files.mjs script in packages/tldraw. */ +/* It combines @tldraw/editor's editor.css and tldraw's ui.css */ ` ) diff --git a/packages/tldraw/src/lib/TldrawImage.tsx b/packages/tldraw/src/lib/TldrawImage.tsx index 843c918c6..a8c7c978b 100644 --- a/packages/tldraw/src/lib/TldrawImage.tsx +++ b/packages/tldraw/src/lib/TldrawImage.tsx @@ -18,7 +18,7 @@ import { getSvgAsImage, getSvgAsString } from './utils/export/export' import { useDefaultEditorAssetsWithOverrides } from './utils/static-assets/assetUrls' /** - * Props for the {@link @tldraw/tldraw#TldrawImage} component. + * Props for the {@link tldraw#TldrawImage} component. * * @public **/ diff --git a/packages/tldraw/src/lib/ui/TldrawUi.tsx b/packages/tldraw/src/lib/ui/TldrawUi.tsx index 41c2f70b7..3b5da8011 100644 --- a/packages/tldraw/src/lib/ui/TldrawUi.tsx +++ b/packages/tldraw/src/lib/ui/TldrawUi.tsx @@ -24,14 +24,14 @@ import { useReadonly } from './hooks/useReadonly' import { useTranslation } from './hooks/useTranslation/useTranslation' /** - * Props for the {@link @tldraw/tldraw#Tldraw} and {@link TldrawUi} components. + * Props for the {@link tldraw#Tldraw} and {@link TldrawUi} components. * * @public */ export type TldrawUiProps = TldrawUiBaseProps & TldrawUiContextProviderProps /** - * Base props for the {@link @tldraw/tldraw#Tldraw} and {@link TldrawUi} components. + * Base props for the {@link tldraw#Tldraw} and {@link TldrawUi} components. * * @public */ diff --git a/packages/tldraw/src/lib/ui/context/TldrawUiContextProvider.tsx b/packages/tldraw/src/lib/ui/context/TldrawUiContextProvider.tsx index 9db226540..cb3bf421f 100644 --- a/packages/tldraw/src/lib/ui/context/TldrawUiContextProvider.tsx +++ b/packages/tldraw/src/lib/ui/context/TldrawUiContextProvider.tsx @@ -13,7 +13,7 @@ import { TLUiEventHandler, UiEventsProvider } from './events' import { ToastsProvider } from './toasts' /** - * Props for the {@link @tldraw/tldraw#Tldraw} and {@link TldrawUi} components. + * Props for the {@link tldraw#Tldraw} and {@link TldrawUi} components. * * @public **/ diff --git a/packages/tlsync/package.json b/packages/tlsync/package.json index 6c717cf7c..0f7ddd1d4 100644 --- a/packages/tlsync/package.json +++ b/packages/tlsync/package.json @@ -37,7 +37,7 @@ "lint": "yarn run -T tsx ../../scripts/lint.ts" }, "devDependencies": { - "@tldraw/tldraw": "workspace:*", + "tldraw": "workspace:*", "typescript": "^5.3.3", "uuid-by-string": "^4.0.0", "uuid-readable": "^0.0.2" diff --git a/packages/tlsync/src/test/FuzzEditor.ts b/packages/tlsync/src/test/FuzzEditor.ts index 55f7dc418..7aacd0fcf 100644 --- a/packages/tlsync/src/test/FuzzEditor.ts +++ b/packages/tlsync/src/test/FuzzEditor.ts @@ -10,7 +10,7 @@ import { createShapeId, defaultShapeUtils, defaultTools, -} from '@tldraw/tldraw' +} from 'tldraw' import { RandomSource } from './RandomSource' export type Op = diff --git a/packages/tlsync/src/test/TLServer.test.ts b/packages/tlsync/src/test/TLServer.test.ts index b645275ba..c3e7ceed1 100644 --- a/packages/tlsync/src/test/TLServer.test.ts +++ b/packages/tlsync/src/test/TLServer.test.ts @@ -1,4 +1,4 @@ -import { TLRecord, createTLStore, defaultShapeUtils } from '@tldraw/tldraw' +import { TLRecord, createTLStore, defaultShapeUtils } from 'tldraw' import { type WebSocket } from 'ws' import { RoomSessionState } from '../lib/RoomSession' import { DBLoadResult, TLServer } from '../lib/TLServer' diff --git a/packages/tlsync/src/test/schema.test.ts b/packages/tlsync/src/test/schema.test.ts index 45b1aca27..a6a6806e3 100644 --- a/packages/tlsync/src/test/schema.test.ts +++ b/packages/tlsync/src/test/schema.test.ts @@ -1,4 +1,4 @@ -import { coreShapes, defaultShapeUtils } from '@tldraw/tldraw' +import { coreShapes, defaultShapeUtils } from 'tldraw' import { schema } from '../lib/schema' describe('schema', () => { diff --git a/packages/tlsync/src/test/syncFuzz.test.ts b/packages/tlsync/src/test/syncFuzz.test.ts index 5b1b4251c..53a7700fc 100644 --- a/packages/tlsync/src/test/syncFuzz.test.ts +++ b/packages/tlsync/src/test/syncFuzz.test.ts @@ -1,3 +1,5 @@ +import isEqual from 'lodash.isequal' +import { nanoid } from 'nanoid' import { Editor, TLArrowShape, @@ -6,9 +8,7 @@ import { computed, createPresenceStateDerivation, createTLStore, -} from '@tldraw/tldraw' -import isEqual from 'lodash.isequal' -import { nanoid } from 'nanoid' +} from 'tldraw' import { TLSyncClient } from '../lib/TLSyncClient' import { schema } from '../lib/schema' import { FuzzEditor, Op } from './FuzzEditor' diff --git a/scripts/check-scripts.ts b/scripts/check-scripts.ts index 0d118b7ca..4dc994393 100644 --- a/scripts/check-scripts.ts +++ b/scripts/check-scripts.ts @@ -65,7 +65,7 @@ async function main({ fix }: { fix?: boolean }) { const packageScripts = packageJson.scripts let expected = - name.startsWith('@tldraw/') && relativePath.startsWith('packages/') + (name.startsWith('@tldraw/') || name === 'tldraw') && relativePath.startsWith('packages/') ? packageJson.private ? expectedPackageScripts : expectedPublishedPackageScripts diff --git a/scripts/check-tsconfigs.ts b/scripts/check-tsconfigs.ts index cfaf823a3..f78bb24b7 100644 --- a/scripts/check-tsconfigs.ts +++ b/scripts/check-tsconfigs.ts @@ -25,7 +25,7 @@ async function checkTsConfigs({ packages, fix }: { fix?: boolean; packages: Pack const tldrawDeps = Object.keys({ ...workspace.packageJson.dependencies, ...workspace.packageJson.devDependencies, - }).filter((dep) => dep.startsWith('@tldraw/')) + }).filter((dep) => packages.some((p) => p.name === dep)) const fixedDeps = [] const missingRefs = [] diff --git a/scripts/lib/publishing.ts b/scripts/lib/publishing.ts index 87fc114c9..a7e63824f 100644 --- a/scripts/lib/publishing.ts +++ b/scripts/lib/publishing.ts @@ -6,6 +6,7 @@ import { compare, parse } from 'semver' import { exec } from './exec' import { REPO_ROOT } from './file' import { nicelog } from './nicelog' +import { getAllWorkspacePackages } from './workspace' export type PackageDetails = { name: string @@ -14,7 +15,7 @@ export type PackageDetails = { version: string } -function getPackageDetails(dir: string): PackageDetails | null { +async function getPackageDetails(dir: string): Promise { const packageJsonPath = path.join(dir, 'package.json') if (!existsSync(packageJsonPath)) { return null @@ -23,27 +24,30 @@ function getPackageDetails(dir: string): PackageDetails | null { if (packageJson.private) { return null } + + const workspacePackages = await getAllWorkspacePackages() return { name: packageJson.name, dir, version: packageJson.version, localDeps: Object.keys(packageJson.dependencies ?? {}).filter((dep) => - dep.startsWith('@tldraw') + workspacePackages.some((p) => p.name === dep) ), } } -export function getAllPackageDetails(): Record { +export async function getAllPackageDetails(): Promise> { const dirs = readdirSync(join(REPO_ROOT, 'packages')) - const results = dirs - .map((dir) => getPackageDetails(path.join(REPO_ROOT, 'packages', dir))) - .filter((x): x is PackageDetails => Boolean(x)) + const details = await Promise.all( + dirs.map((dir) => getPackageDetails(path.join(REPO_ROOT, 'packages', dir))) + ) + const results = details.filter((x): x is PackageDetails => Boolean(x)) return Object.fromEntries(results.map((result) => [result.name, result])) } -export function setAllVersions(version: string) { - const packages = getAllPackageDetails() +export async function setAllVersions(version: string) { + const packages = await getAllPackageDetails() for (const packageDetails of Object.values(packages)) { const manifest = JSON.parse(readFileSync(path.join(packageDetails.dir, 'package.json'), 'utf8')) manifest.version = version @@ -55,7 +59,7 @@ export function setAllVersions(version: string) { const versionFileContents = `export const version = '${version}'\n` writeFileSync(path.join(packageDetails.dir, 'src', 'version.ts'), versionFileContents) } - if (manifest.name === '@tldraw/tldraw') { + if (manifest.name === 'tldraw') { const versionFileContents = `export const version = '${version}'\n` writeFileSync( path.join(packageDetails.dir, 'src', 'lib', 'ui', 'version.ts'), @@ -117,7 +121,7 @@ export async function publish() { execSync(`yarn config set npmAuthToken ${npmToken}`, { stdio: 'inherit' }) execSync(`yarn config set npmRegistryServer https://registry.npmjs.org`, { stdio: 'inherit' }) - const packages = getAllPackageDetails() + const packages = await getAllPackageDetails() const publishOrder = topologicalSortPackages(packages) diff --git a/templates/nextjs/package.json b/templates/nextjs/package.json index 842e2f3e3..a1b0de9b5 100644 --- a/templates/nextjs/package.json +++ b/templates/nextjs/package.json @@ -15,7 +15,7 @@ "lint": "next lint" }, "dependencies": { - "@tldraw/tldraw": "^2.0.0-beta.2", + "tldraw": "^2.0.0-beta.2", "@types/node": "20.3.1", "@types/react": "18.2.12", "@types/react-dom": "18.2.5", diff --git a/templates/nextjs/src/app/globals.css b/templates/nextjs/src/app/globals.css index 045f0a206..08c1971ff 100644 --- a/templates/nextjs/src/app/globals.css +++ b/templates/nextjs/src/app/globals.css @@ -1,6 +1,6 @@ -@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Roboto+Mono:wght@400;700&display=swap"); -@import url("@tldraw/tldraw/tldraw.css"); +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Roboto+Mono:wght@400;700&display=swap'); +@import url('tldraw/tldraw.css'); body { - font-family: "Inter"; -} \ No newline at end of file + font-family: 'Inter'; +} diff --git a/templates/nextjs/src/app/page.tsx b/templates/nextjs/src/app/page.tsx index 88cb38981..083f0f2f4 100644 --- a/templates/nextjs/src/app/page.tsx +++ b/templates/nextjs/src/app/page.tsx @@ -1,5 +1,5 @@ 'use client' -import { Tldraw } from '@tldraw/tldraw' +import { Tldraw } from 'tldraw' export default function Home() { return ( diff --git a/templates/vite/package.json b/templates/vite/package.json index bc55f815f..af8bad169 100644 --- a/templates/vite/package.json +++ b/templates/vite/package.json @@ -16,7 +16,7 @@ "preview": "vite preview" }, "dependencies": { - "@tldraw/tldraw": "2.0.0-beta.4", + "tldraw": "2.0.0-beta.4", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/templates/vite/src/App.tsx b/templates/vite/src/App.tsx index fffbfde5d..5a9bd0114 100644 --- a/templates/vite/src/App.tsx +++ b/templates/vite/src/App.tsx @@ -1,4 +1,4 @@ -import { Tldraw } from '@tldraw/tldraw' +import { Tldraw } from 'tldraw' function App() { return ( diff --git a/templates/vite/src/index.css b/templates/vite/src/index.css index 0324c3833..a2c40f840 100644 --- a/templates/vite/src/index.css +++ b/templates/vite/src/index.css @@ -1,5 +1,5 @@ -@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Roboto+Mono:wght@400;700&display=swap"); -@import url("@tldraw/tldraw/tldraw.css"); +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Roboto+Mono:wght@400;700&display=swap'); +@import url('tldraw/tldraw.css'); body { font-family: 'Inter', sans-serif; diff --git a/yarn.lock b/yarn.lock index 2cecdf0c8..5ee3d4625 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7383,34 +7383,13 @@ __metadata: languageName: unknown linkType: soft -"@tldraw/tldraw@workspace:*, @tldraw/tldraw@workspace:packages/tldraw": +"@tldraw/tldraw@workspace:packages/namespaced-tldraw": version: 0.0.0-use.local - resolution: "@tldraw/tldraw@workspace:packages/tldraw" + resolution: "@tldraw/tldraw@workspace:packages/namespaced-tldraw" dependencies: - "@peculiar/webcrypto": "npm:^1.4.0" - "@radix-ui/react-alert-dialog": "npm:^1.0.5" - "@radix-ui/react-context-menu": "npm:^2.1.5" - "@radix-ui/react-dialog": "npm:^1.0.5" - "@radix-ui/react-dropdown-menu": "npm:^2.0.6" - "@radix-ui/react-popover": "npm:^1.0.7" - "@radix-ui/react-select": "npm:^1.2.0" - "@radix-ui/react-slider": "npm:^1.1.0" - "@radix-ui/react-toast": "npm:^1.1.1" - "@testing-library/jest-dom": "npm:^5.16.5" - "@testing-library/react": "npm:^14.0.0" - "@tldraw/editor": "workspace:*" - "@types/canvas-size": "npm:^1.2.0" - "@types/classnames": "npm:^2.3.1" - "@types/lz-string": "npm:^1.3.34" - canvas-size: "npm:^1.2.6" chokidar-cli: "npm:^3.0.0" - classnames: "npm:^2.3.2" - hotkeys-js: "npm:^3.11.2" - jest-canvas-mock: "npm:^2.5.2" - jest-environment-jsdom: "npm:^29.4.3" lazyrepo: "npm:0.0.0-alpha.27" - lz-string: "npm:^1.4.4" - resize-observer-polyfill: "npm:^1.5.1" + tldraw: "workspace:*" peerDependencies: react: ^18 react-dom: ^18 @@ -7439,12 +7418,12 @@ __metadata: dependencies: "@tldraw/state": "workspace:*" "@tldraw/store": "workspace:*" - "@tldraw/tldraw": "workspace:*" "@tldraw/tlschema": "workspace:*" "@tldraw/utils": "workspace:*" lodash.isequal: "npm:^4.5.0" nanoevents: "npm:^7.0.1" nanoid: "npm:4.0.2" + tldraw: "workspace:*" typescript: "npm:^5.3.3" uuid-by-string: "npm:^4.0.0" uuid-readable: "npm:^0.0.2" @@ -7478,7 +7457,6 @@ __metadata: resolution: "@tldraw/vscode-editor@workspace:apps/vscode/editor" dependencies: "@tldraw/assets": "workspace:*" - "@tldraw/tldraw": "workspace:*" "@types/fs-extra": "npm:^11.0.1" "@types/node": "npm:~20.11" "@types/react": "npm:^18.2.47" @@ -7492,6 +7470,7 @@ __metadata: lazyrepo: "npm:0.0.0-alpha.27" react: "npm:^18.2.0" react-dom: "npm:^18.2.0" + tldraw: "workspace:*" tslib: "npm:^2.6.2" languageName: unknown linkType: soft @@ -11858,7 +11837,6 @@ __metadata: "@sentry/integrations": "npm:^7.34.0" "@sentry/react": "npm:^7.77.0" "@tldraw/assets": "workspace:*" - "@tldraw/tldraw": "workspace:*" "@tldraw/tlsync": "workspace:*" "@tldraw/validate": "workspace:*" "@types/qrcode": "npm:^1.5.0" @@ -11879,6 +11857,7 @@ __metadata: react-dom: "npm:^18.2.0" react-helmet-async: "npm:^1.3.0" react-router-dom: "npm:^6.17.0" + tldraw: "workspace:*" vite: "npm:^5.0.0" ws: "npm:^8.16.0" languageName: unknown @@ -13478,7 +13457,6 @@ __metadata: "@playwright/test": "npm:^1.38.1" "@radix-ui/react-alert-dialog": "npm:^1.0.5" "@tldraw/assets": "workspace:*" - "@tldraw/tldraw": "workspace:*" "@types/lodash": "npm:^4.14.188" "@vercel/analytics": "npm:^1.1.1" "@vitejs/plugin-react": "npm:^4.2.0" @@ -13492,6 +13470,7 @@ __metadata: remark: "npm:^15.0.1" remark-frontmatter: "npm:^5.0.0" remark-html: "npm:^16.0.1" + tldraw: "workspace:*" vfile-matter: "npm:^5.0.0" vite: "npm:^5.0.0" languageName: unknown @@ -23433,7 +23412,6 @@ __metadata: resolution: "tldraw-vscode@workspace:apps/vscode/extension" dependencies: "@tldraw/editor": "workspace:*" - "@tldraw/tldraw": "workspace:*" "@types/fs-extra": "npm:^11.0.1" "@types/node-fetch": "npm:^2.6.2" "@types/vscode": "npm:^1.75.1" @@ -23448,6 +23426,7 @@ __metadata: mocha: "npm:^9.1.1" node-fetch: "npm:^2.0.0" process: "npm:^0.11.10" + tldraw: "workspace:*" ts-loader: "npm:^9.2.5" tslib: "npm:^2.6.2" tsx: "npm:^4.0.0" @@ -23460,6 +23439,40 @@ __metadata: languageName: unknown linkType: soft +"tldraw@workspace:*, tldraw@workspace:packages/tldraw": + version: 0.0.0-use.local + resolution: "tldraw@workspace:packages/tldraw" + dependencies: + "@peculiar/webcrypto": "npm:^1.4.0" + "@radix-ui/react-alert-dialog": "npm:^1.0.5" + "@radix-ui/react-context-menu": "npm:^2.1.5" + "@radix-ui/react-dialog": "npm:^1.0.5" + "@radix-ui/react-dropdown-menu": "npm:^2.0.6" + "@radix-ui/react-popover": "npm:^1.0.7" + "@radix-ui/react-select": "npm:^1.2.0" + "@radix-ui/react-slider": "npm:^1.1.0" + "@radix-ui/react-toast": "npm:^1.1.1" + "@testing-library/jest-dom": "npm:^5.16.5" + "@testing-library/react": "npm:^14.0.0" + "@tldraw/editor": "workspace:*" + "@types/canvas-size": "npm:^1.2.0" + "@types/classnames": "npm:^2.3.1" + "@types/lz-string": "npm:^1.3.34" + canvas-size: "npm:^1.2.6" + chokidar-cli: "npm:^3.0.0" + classnames: "npm:^2.3.2" + hotkeys-js: "npm:^3.11.2" + jest-canvas-mock: "npm:^2.5.2" + jest-environment-jsdom: "npm:^29.4.3" + lazyrepo: "npm:0.0.0-alpha.27" + lz-string: "npm:^1.4.4" + resize-observer-polyfill: "npm:^1.5.1" + peerDependencies: + react: ^18 + react-dom: ^18 + languageName: unknown + linkType: soft + "tmp@npm:0.0.x, tmp@npm:^0.0.33": version: 0.0.33 resolution: "tmp@npm:0.0.33"