tldraw 5.6.0 → 5.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DOCS.md +21 -9
- package/RELEASE_NOTES.md +161 -3
- package/dist-cjs/index.d.ts +31 -1
- package/dist-cjs/index.js +4 -1
- package/dist-cjs/index.js.map +2 -2
- package/dist-cjs/lib/shapes/bookmark/BookmarkShapeUtil.js +11 -4
- package/dist-cjs/lib/shapes/bookmark/BookmarkShapeUtil.js.map +2 -2
- package/dist-cjs/lib/shapes/bookmark/bookmarks.js +25 -4
- package/dist-cjs/lib/shapes/bookmark/bookmarks.js.map +2 -2
- package/dist-cjs/lib/shapes/shared/HyperlinkButton.js +4 -0
- package/dist-cjs/lib/shapes/shared/HyperlinkButton.js.map +2 -2
- package/dist-cjs/lib/shapes/shared/RichTextLabel.js +13 -1
- package/dist-cjs/lib/shapes/shared/RichTextLabel.js.map +2 -2
- package/dist-cjs/lib/shapes/shared/useOpenLinkHandler.js +38 -0
- package/dist-cjs/lib/shapes/shared/useOpenLinkHandler.js.map +7 -0
- package/dist-cjs/lib/ui/components/ConfirmOpenLinkDialog.js +57 -0
- package/dist-cjs/lib/ui/components/ConfirmOpenLinkDialog.js.map +7 -0
- package/dist-cjs/lib/ui/components/EditLinkDialog.js +15 -17
- package/dist-cjs/lib/ui/components/EditLinkDialog.js.map +2 -2
- package/dist-cjs/lib/ui/components/Toolbar/LinkEditor.js +47 -19
- package/dist-cjs/lib/ui/components/Toolbar/LinkEditor.js.map +3 -3
- package/dist-cjs/lib/ui/context/actions.js +2 -1
- package/dist-cjs/lib/ui/context/actions.js.map +2 -2
- package/dist-cjs/lib/ui/hooks/useEditorEvents.js +12 -1
- package/dist-cjs/lib/ui/hooks/useEditorEvents.js.map +2 -2
- package/dist-cjs/lib/ui/hooks/useTranslation/TLUiTranslationKey.js.map +1 -1
- package/dist-cjs/lib/ui/version.js +2 -2
- package/dist-cjs/lib/ui/version.js.map +1 -1
- package/dist-cjs/lib/utils/linkUrl.js +39 -0
- package/dist-cjs/lib/utils/linkUrl.js.map +7 -0
- package/dist-cjs/lib/utils/openLink.js +68 -0
- package/dist-cjs/lib/utils/openLink.js.map +7 -0
- package/dist-cjs/lib/utils/text/richText.js +4 -1
- package/dist-cjs/lib/utils/text/richText.js.map +2 -2
- package/dist-esm/index.d.mts +31 -1
- package/dist-esm/index.mjs +4 -1
- package/dist-esm/index.mjs.map +2 -2
- package/dist-esm/lib/shapes/bookmark/BookmarkShapeUtil.mjs +12 -4
- package/dist-esm/lib/shapes/bookmark/BookmarkShapeUtil.mjs.map +2 -2
- package/dist-esm/lib/shapes/bookmark/bookmarks.mjs +25 -4
- package/dist-esm/lib/shapes/bookmark/bookmarks.mjs.map +2 -2
- package/dist-esm/lib/shapes/shared/HyperlinkButton.mjs +4 -0
- package/dist-esm/lib/shapes/shared/HyperlinkButton.mjs.map +2 -2
- package/dist-esm/lib/shapes/shared/RichTextLabel.mjs +13 -2
- package/dist-esm/lib/shapes/shared/RichTextLabel.mjs.map +2 -2
- package/dist-esm/lib/shapes/shared/useOpenLinkHandler.mjs +18 -0
- package/dist-esm/lib/shapes/shared/useOpenLinkHandler.mjs.map +7 -0
- package/dist-esm/lib/ui/components/ConfirmOpenLinkDialog.mjs +43 -0
- package/dist-esm/lib/ui/components/ConfirmOpenLinkDialog.mjs.map +7 -0
- package/dist-esm/lib/ui/components/EditLinkDialog.mjs +16 -18
- package/dist-esm/lib/ui/components/EditLinkDialog.mjs.map +2 -2
- package/dist-esm/lib/ui/components/Toolbar/LinkEditor.mjs +38 -20
- package/dist-esm/lib/ui/components/Toolbar/LinkEditor.mjs.map +2 -2
- package/dist-esm/lib/ui/context/actions.mjs +2 -1
- package/dist-esm/lib/ui/context/actions.mjs.map +2 -2
- package/dist-esm/lib/ui/hooks/useEditorEvents.mjs +13 -2
- package/dist-esm/lib/ui/hooks/useEditorEvents.mjs.map +2 -2
- package/dist-esm/lib/ui/version.mjs +2 -2
- package/dist-esm/lib/ui/version.mjs.map +1 -1
- package/dist-esm/lib/utils/linkUrl.mjs +19 -0
- package/dist-esm/lib/utils/linkUrl.mjs.map +7 -0
- package/dist-esm/lib/utils/openLink.mjs +48 -0
- package/dist-esm/lib/utils/openLink.mjs.map +7 -0
- package/dist-esm/lib/utils/text/richText.mjs +5 -1
- package/dist-esm/lib/utils/text/richText.mjs.map +2 -2
- package/package.json +6 -6
- package/src/index.ts +1 -0
- package/src/lib/shapes/bookmark/BookmarkShapeUtil.tsx +12 -6
- package/src/lib/shapes/bookmark/bookmarks.ts +38 -5
- package/src/lib/shapes/shared/HyperlinkButton.tsx +4 -0
- package/src/lib/shapes/shared/RichTextLabel.tsx +18 -2
- package/src/lib/shapes/shared/useOpenLinkHandler.ts +20 -0
- package/src/lib/ui/components/ConfirmOpenLinkDialog.tsx +53 -0
- package/src/lib/ui/components/EditLinkDialog.tsx +22 -26
- package/src/lib/ui/components/Toolbar/LinkEditor.tsx +40 -21
- package/src/lib/ui/context/actions.tsx +2 -1
- package/src/lib/ui/hooks/useEditorEvents.ts +14 -2
- package/src/lib/ui/hooks/useTranslation/TLUiTranslationKey.ts +4 -0
- package/src/lib/ui/version.ts +2 -2
- package/src/lib/ui.css +19 -2
- package/src/lib/utils/linkUrl.test.ts +33 -0
- package/src/lib/utils/linkUrl.ts +30 -0
- package/src/lib/utils/openLink.test.ts +83 -0
- package/src/lib/utils/openLink.ts +75 -0
- package/src/lib/utils/text/richText.ts +4 -0
- package/src/test/bookmark-shapes.test.ts +62 -2
- package/src/test/ui/ConfirmOpenLinkDialog.test.tsx +128 -0
- package/src/test/ui/EditLinkDialog.test.tsx +53 -2
- package/src/test/ui/LinkEditor.test.tsx +71 -0
- package/tldraw.css +19 -2
package/DOCS.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# tldraw Documentation
|
|
2
2
|
|
|
3
|
-
Version: `5.6.
|
|
3
|
+
Version: `5.6.2`
|
|
4
4
|
|
|
5
5
|
This file is generated during package publishing from the tldraw docs content for this exact package version.
|
|
6
6
|
|
|
@@ -383,6 +383,7 @@ We ship an experimental `tldraw-migrate` agent skill that helps a coding agent u
|
|
|
383
383
|
|
|
384
384
|
#### v5.x
|
|
385
385
|
|
|
386
|
+
- [v5.6](https://tldraw.dev/releases/v5.6.0) - ICU MessageFormat and react-intl for translations, action-driven menu gating, a ThrottledFunction type in @tldraw/utils, commenting improvements, and fixes across selection, undo/redo, local persistence, sync, and the store
|
|
386
387
|
- [v5.5](https://tldraw.dev/releases/v5.5.0) - Smart typography and matched-pair wrapping in rich text, pasting links onto shapes, a replaceable note attribution badge, TipTap's extension API re-exported from tldraw, and a reliability pass across the SDK
|
|
387
388
|
- [v5.4](https://tldraw.dev/releases/v5.4.0) - A center align operation, a tleditors registry of mounted editors, faster signals and store layers, and a broad reliability pass across the SDK
|
|
388
389
|
- [v5.3](https://tldraw.dev/releases/v5.3.0) - Commenting with anchored threads on the canvas, new collaboration packages, geo shape flipping, crop snapping, and faster viewport culling
|
|
@@ -10479,14 +10480,15 @@ editor.on('crash', ({ error }) => {
|
|
|
10479
10480
|
|
|
10480
10481
|
##### UI and camera events
|
|
10481
10482
|
|
|
10482
|
-
| Event | Payload | Description
|
|
10483
|
-
| ----------------------- | ------------------------- |
|
|
10484
|
-
| `resize` | `BoxModel` | Viewport dimensions changed
|
|
10485
|
-
| `stop-camera-animation` | None | Camera animation interrupted
|
|
10486
|
-
| `stop-following` | None | Stopped following another user
|
|
10487
|
-
| `select-all-text` | `{ shapeId: TLShapeId }` | Editing started with all text selected
|
|
10488
|
-
| `place-caret` | `{ shapeId, point }` | Text caret positioned
|
|
10489
|
-
| `max-shapes` | `{ name, pageId, count }` | Page reached shape limit
|
|
10483
|
+
| Event | Payload | Description |
|
|
10484
|
+
| ----------------------- | ------------------------- | ------------------------------------------------------------------- |
|
|
10485
|
+
| `resize` | `BoxModel` | Viewport dimensions changed |
|
|
10486
|
+
| `stop-camera-animation` | None | Camera animation interrupted |
|
|
10487
|
+
| `stop-following` | None | Stopped following another user |
|
|
10488
|
+
| `select-all-text` | `{ shapeId: TLShapeId }` | Editing started with all text selected |
|
|
10489
|
+
| `place-caret` | `{ shapeId, point }` | Text caret positioned |
|
|
10490
|
+
| `max-shapes` | `{ name, pageId, count }` | Page reached shape limit |
|
|
10491
|
+
| `confirm-open-link` | `{ url: string }` | Unknown app link needs confirming; it won't open without a listener |
|
|
10490
10492
|
|
|
10491
10493
|
```tsx
|
|
10492
10494
|
editor.on('resize', (bounds) => {
|
|
@@ -10498,6 +10500,16 @@ editor.on('max-shapes', ({ pageId, count }) => {
|
|
|
10498
10500
|
})
|
|
10499
10501
|
```
|
|
10500
10502
|
|
|
10503
|
+
The default UI answers `confirm-open-link` with a dialog. Without it, for example with `hideUi` or a bare `TldrawEditor`, links into apps tldraw doesn't recognize don't open. To open them, add your own listener:
|
|
10504
|
+
|
|
10505
|
+
```tsx
|
|
10506
|
+
import { openWindow } from 'tldraw'
|
|
10507
|
+
|
|
10508
|
+
editor.on('confirm-open-link', async ({ url }) => {
|
|
10509
|
+
if (await askUser(`Open ${url}?`)) openWindow(url, '_blank')
|
|
10510
|
+
})
|
|
10511
|
+
```
|
|
10512
|
+
|
|
10501
10513
|
#### UI events
|
|
10502
10514
|
|
|
10503
10515
|
The `Tldraw` component's `onUiEvent` prop captures high-level UI interactions separately from canvas events. This includes toolbar selections, menu actions, and keyboard shortcuts.
|
package/RELEASE_NOTES.md
CHANGED
|
@@ -1,43 +1,178 @@
|
|
|
1
1
|
# Releases
|
|
2
2
|
|
|
3
|
-
Version: `5.6.
|
|
3
|
+
Version: `5.6.2`
|
|
4
4
|
|
|
5
5
|
This file is generated during package publishing from the tldraw release notes content for this exact package version.
|
|
6
6
|
|
|
7
|
+
## v5.6.2
|
|
8
|
+
|
|
9
|
+
So far this release adds a command palette (Cmd/Ctrl+K), task lists in rich text with font-matched checkboxes, lets shapes decide whether they can flip, gates action execution on action predicates across menus and shortcuts, brings multi-comment placement and UI polish to `@tldraw/commenting`, restyles the error screen, improves crop mode, switches sync server templates to `node:sqlite`, and runs agent starter kit actions through tool calls. It also includes bug fixes across text and note shape re-renders, video controls on zoom, arrow binding in locked groups, UI translation loading, icon fallback outside asset providers, `.tldr` asset preservation, media asset handling, frame hit testing, text shape bounds, cursor chat, locked frame shortcuts, screen readers, and the comment composer.
|
|
10
|
+
|
|
11
|
+
### What's new
|
|
12
|
+
|
|
13
|
+
#### Command palette
|
|
14
|
+
|
|
15
|
+
Press Cmd+K (Ctrl+K on Windows and Linux) to search and run commands: actions, pages, preferences and more. Recently used commands come first. Actions, including your custom ones, are listed automatically; set `commandPalette: false` on internal or shortcut-only actions to leave them out. The palette is a `CommandPalette` component slot built from the same menu items as the other menus, so you place commands by wrapping `DefaultCommandPalette`, the same way you customize the main menu. Cmd/Ctrl+K is now bound by default; pass `components={{ CommandPalette: null }}` to turn the palette and its shortcut off.
|
|
16
|
+
|
|
17
|
+
#### Task lists in rich text ([#11129](https://github.com/tldraw/tldraw/pull/11129))
|
|
18
|
+
|
|
19
|
+
You can now write task lists in rich text shapes (text, notes, and shapes with labels). Type `[ ] ` or `[x] ` at the start of a line to create an interactive task item with a checkbox that can be toggled with a click or Cmd+Enter. Checkboxes are styled to match the active font: hand-drawn checkboxes in the draw font that cycle through sketched outlines, and standard boxes in sans, serif, and mono. Custom font checkbox styles can also be configured via `TLThemeFont.checkbox`.
|
|
20
|
+
|
|
21
|
+
### API changes
|
|
22
|
+
|
|
23
|
+
- 💥 Remove the `val_town` entry from `DEFAULT_EMBED_DEFINITIONS`. Pasting a Val Town link now creates a bookmark instead of an embed shape. ([#11535](https://github.com/tldraw/tldraw/pull/11535))
|
|
24
|
+
- 💥 Remove `embedIcons.val_town` from `@tldraw/assets`. ([#11535](https://github.com/tldraw/tldraw/pull/11535))
|
|
25
|
+
- 💥 Add `ShapeUtil.canFlip(shape)`, which decides whether the flip menu items and shift+H / shift+V act on a single selected shape. It defaults to `false`, so a lone custom shape no longer gets the flip menu items or shortcuts. If your shape changes when flipped (for example it handles negative scale in `onResize`), add `override canFlip() { return true }` to its util. Multi-shape flips are unchanged. ([#11041](https://github.com/tldraw/tldraw/pull/11041))
|
|
26
|
+
- Add the `CommandPalette` component slot with `DefaultCommandPalette`, `DefaultCommandPaletteContent`, `CommandPaletteShell`, the `CommandPalette*Group` components, `CommandPaletteMenuItem`, `useCommandPaletteQuery` and `getCommandPaletteMatchScore`. The new `open-command-palette` action opens it. The slot is mounted only while the palette is open, and gets an `onClose` prop to close it. ([#11158](https://github.com/tldraw/tldraw/pull/11158))
|
|
27
|
+
- Add `CommandPaletteStylesGroup`, which sets the style panel's styles from the palette, and `CommandPaletteImageGroup`, with the image toolbar's commands. ([#11158](https://github.com/tldraw/tldraw/pull/11158))
|
|
28
|
+
- Add the `toggle-minimap` and `crop-image` actions. The minimap's open state is now shared between the navigation panel and the action. ([#11158](https://github.com/tldraw/tldraw/pull/11158))
|
|
29
|
+
- 💥 Add `'command-palette'` to `TLUiMenuContextType` and `TLUiEventSource`. Exhaustive switches over either type need a case for it. ([#11158](https://github.com/tldraw/tldraw/pull/11158))
|
|
30
|
+
- 💥 Cmd/Ctrl+K now opens the command palette, so an app action bound to `cmd+k` no longer fires. To keep your own binding, remove the palette with `components={{ CommandPalette: null }}`, remove its action with `delete actions['open-command-palette']`, or set `actions['open-command-palette'].kbd` to another chord. ([#11158](https://github.com/tldraw/tldraw/pull/11158))
|
|
31
|
+
- `CommandPaletteShell` also works without an editor, inside `TldrawUiContextProvider`, with the app owning its open state and shortcut. ([#11158](https://github.com/tldraw/tldraw/pull/11158))
|
|
32
|
+
- Add a `position` prop to `DefaultCommandPalette` and `CommandPaletteShell`: `'bottom'` (the default, just above a horizontal toolbar), `'center'` or `'top'`. ([#11158](https://github.com/tldraw/tldraw/pull/11158))
|
|
33
|
+
- Add a `suggestions` prop to `DefaultCommandPalette` and `CommandPaletteShell`: `'recent'` (the default) lists recent commands while the query is empty, `'none'` leaves them out. ([#11158](https://github.com/tldraw/tldraw/pull/11158))
|
|
34
|
+
- Add `commandPalette` to `TLUiActionItem`, and `CommandPaletteActionGroup`, which lists the actions placed in a group, or every action not opted out when given no group. ([#11158](https://github.com/tldraw/tldraw/pull/11158))
|
|
35
|
+
- Add `CommandPalettePinned`, `CommandPaletteOnDemand`, `CommandPalettePromptItem` and a `detail` prop on `TldrawUiMenuItem`, to shape how items appear in the command palette. ([#11158](https://github.com/tldraw/tldraw/pull/11158))
|
|
36
|
+
- `ColorSchemeMenu`, `InputModeMenu` and `LanguageMenu` now report their real menu as the `onUiEvent` source (for example `'main-menu'` or `'help-menu'`) instead of `'menu'`. ([#11156](https://github.com/tldraw/tldraw/pull/11156))
|
|
37
|
+
- 💥 Move the Cmd+G and Cmd+Alt+G shortcuts from the `group` and `frame-selection` actions to new `toggle-group` and `toggle-frame` actions, which pick `group` or `ungroup`, and `frame-selection` or `remove-frame`, from the selection. `group` and `frame-selection` no longer have a `kbd`, so menus no longer show a shortcut next to them. To rebind or disable these shortcuts, override `actions['toggle-group']` or `actions['toggle-frame']` instead, for example `actions['toggle-group'].kbd = 'cmd+m,ctrl+m'` or `delete actions['toggle-group']`; setting `kbd` on `group` or `frame-selection` now registers a separate shortcut that only groups or frames. ([#11043](https://github.com/tldraw/tldraw/pull/11043))
|
|
38
|
+
- 💥 Remove unused `help-menu.discord`, `help-menu.github`, and `help-menu.twitter` keys from `TLUiTranslationKey`. ([#11258](https://github.com/tldraw/tldraw/pull/11258))
|
|
39
|
+
- 💥 Remove `comments.dismiss` from `TLUiTranslationKey`. ([#11496](https://github.com/tldraw/tldraw/pull/11496))
|
|
40
|
+
- Actions don't run when `isAvailable` or `isEnabled` returns false, or when the editor is readonly and the action isn't `readonlyOk`, whether they're triggered from a menu, a keyboard shortcut or an `onSelect` call on an action from `useActions()`. The copy, cut and paste shortcuts still come from native clipboard events and aren't gated. If your app calls a custom action directly in readonly mode, set `readonlyOk: true` on it. An override that replaces a built-in's `onSelect`, in place or by spreading it, keeps the built-in's `isEnabled`, so the action no longer runs from a shortcut or `useActions()` when that returns false; override `isEnabled` too if your `onSelect` handles that case. ([#11043](https://github.com/tldraw/tldraw/pull/11043))
|
|
41
|
+
- Add `CommentByline` and `Avatar` component slots to `@tldraw/commenting`, so you can change how comment authors and their avatars are shown. ([#11447](https://github.com/tldraw/tldraw/pull/11447))
|
|
42
|
+
- `CommentingComponents.ThreadRow` in `@tldraw/commenting` now also receives `comments: TLComment[]`, containing the thread's comments in chronological order. ([#11465](https://github.com/tldraw/tldraw/pull/11465))
|
|
43
|
+
- Add `comments.close`, `comments.see-more`, and `comments.see-less` to `TLUiTranslationKey`. ([#11495](https://github.com/tldraw/tldraw/pull/11495))
|
|
44
|
+
- Add the `--tl-muted-gradient-to-bottom`, `--tl-muted-gradient-to-top`, `--tl-muted-gradient-to-right`, and `--tl-muted-gradient-to-left` theme CSS variables for open menu triggers. ([#11492](https://github.com/tldraw/tldraw/pull/11492))
|
|
45
|
+
- Add `TaskItemToggleExtension` to default rich text extensions. ([#11129](https://github.com/tldraw/tldraw/pull/11129))
|
|
46
|
+
- Add `taskList` to rich text toolbar operations, a `taskList` icon, and the `rich-text.task-list` translation key. ([#11129](https://github.com/tldraw/tldraw/pull/11129))
|
|
47
|
+
- Add `TLThemeFont.checkbox` and the `TLThemeFontCheckbox` type for font-specific checkbox mask images. ([#11129](https://github.com/tldraw/tldraw/pull/11129))
|
|
48
|
+
- Add `getFontCheckboxStyle(theme, font)` to convert theme font checkbox definitions to CSS custom properties. ([#11129](https://github.com/tldraw/tldraw/pull/11129))
|
|
49
|
+
- Add an optional `checkboxStyle` prop to `RichTextLabel` and `RichTextSVG`. ([#11129](https://github.com/tldraw/tldraw/pull/11129))
|
|
50
|
+
- Add `checkboxStyle` to `TextShapeUtilDisplayValues`, and `labelCheckboxStyle` to `GeoShapeUtilDisplayValues`, `NoteShapeUtilDisplayValues`, and `ArrowShapeUtilDisplayValues`. ([#11129](https://github.com/tldraw/tldraw/pull/11129))
|
|
51
|
+
|
|
52
|
+
### Improvements
|
|
53
|
+
|
|
54
|
+
- Keyboard shortcuts no longer do things the menus don't allow: Shift+H and Shift+V no longer flip a lone text, Shift+F no longer flattens a lone image, Cmd+A and Cmd+P do nothing on an empty page, and Cmd+G no longer groups an arrow away from a shape it's bound to. ([#11043](https://github.com/tldraw/tldraw/pull/11043))
|
|
55
|
+
- Add Cmd+Alt+Shift+G as an explicit Remove frame shortcut. Cmd+G and Cmd+Alt+G continue to toggle grouping and framing when the selection allows the corresponding action. ([#11043](https://github.com/tldraw/tldraw/pull/11043))
|
|
56
|
+
- Cursor chat opens with `/` in any tool, and its menu item shows in any tool. ([#11043](https://github.com/tldraw/tldraw/pull/11043))
|
|
57
|
+
- Exit crop mode when clicking any shape other than the one being cropped, instead of moving the crop to the clicked image. ([#10832](https://github.com/tldraw/tldraw/pull/10832))
|
|
58
|
+
- Stay in the comment tool after placing a comment, allowing multiple comments to be placed in sequence. ([#11496](https://github.com/tldraw/tldraw/pull/11496))
|
|
59
|
+
- Step Escape back one level at a time while commenting: clear active draft or reply text, then close the composer or thread, then return to the select tool. ([#11496](https://github.com/tldraw/tldraw/pull/11496))
|
|
60
|
+
- Align `@tldraw/commenting` menus, buttons, drags, and list rows with the rest of tldraw: drag an unposted comment by its pin, keep drags under the pointer when the camera scrolls, and collapse comments longer than 10 lines behind a "See more" toggle. ([#11495](https://github.com/tldraw/tldraw/pull/11495))
|
|
61
|
+
- Match the mention picker in `@tldraw/mentions` to other tldraw menus, using standard menu item styling and 20px avatars. ([#11493](https://github.com/tldraw/tldraw/pull/11493))
|
|
62
|
+
- Cap the page menu trigger's width so long page names truncate. ([#11492](https://github.com/tldraw/tldraw/pull/11492))
|
|
63
|
+
- Restyle the error screen in `@tldraw/editor` to match tldraw dialogs, with text buttons, a primary Refresh button, a red Reset button, and an icon copy button on hover for the stack trace. ([#11491](https://github.com/tldraw/tldraw/pull/11491))
|
|
64
|
+
- Run agent starter kit actions through tool calls rather than plain JSON text output, with streaming partial updates and follow-up turns, and let actions provide their own results via `AgentActionUtil.getResult`. ([#11147](https://github.com/tldraw/tldraw/pull/11147))
|
|
65
|
+
- Add OpenRouter support to the agent and branching-chat starter kits via `OPENROUTER_API_KEY`. ([#11103](https://github.com/tldraw/tldraw/pull/11103))
|
|
66
|
+
- Use Node's built-in `node:sqlite` instead of `better-sqlite3` in the Node and socket.io sync server starter templates, removing the need for a native module dependency. ([#11175](https://github.com/tldraw/tldraw/pull/11175))
|
|
67
|
+
- Add task lists to rich text with interactive checkboxes, markdown `[ ]` shortcuts, and checkboxes styled to match the active font. ([#11129](https://github.com/tldraw/tldraw/pull/11129))
|
|
68
|
+
- In `@tldraw/commenting`, comment card actions show on keyboard focus (`:focus-visible`) and leaving an edit via keyboard returns focus to the card's action menu button. ([#11465](https://github.com/tldraw/tldraw/pull/11465))
|
|
69
|
+
|
|
70
|
+
### Bug fixes
|
|
71
|
+
|
|
72
|
+
- Fix arrows binding to shapes in locked groups, which could lock the new arrow or leave it stuck while drawing. ([#11201](https://github.com/tldraw/tldraw/pull/11201))
|
|
73
|
+
- Fix an unhandled promise rejection when UI translations fail to load. ([#10922](https://github.com/tldraw/tldraw/pull/10922))
|
|
74
|
+
- Fix `TldrawUiIcon` throwing outside an `AssetUrlsProvider` by falling back to the default icon URLs. ([#11485](https://github.com/tldraw/tldraw/pull/11485))
|
|
75
|
+
- Fix `.tldr` files dropping assets that custom records refer to; assets named by any record in the file are now preserved. ([#11406](https://github.com/tldraw/tldraw/pull/11406))
|
|
76
|
+
- Fix pressing Escape while dragging a note's clone handle leaving the new note behind and switching to the note tool. ([#10460](https://github.com/tldraw/tldraw/pull/10460))
|
|
77
|
+
- Fix the Delete, Duplicate, and Group shortcuts acting on children of locked frames and groups, matching the menu behavior. ([#10479](https://github.com/tldraw/tldraw/pull/10479))
|
|
78
|
+
- Fix screen-reader announcements for groups and for nested shapes inside frames or groups. ([#10505](https://github.com/tldraw/tldraw/pull/10505))
|
|
79
|
+
- Fix the follow button tooltip saying "Following" before following anyone. ([#10511](https://github.com/tldraw/tldraw/pull/10511))
|
|
80
|
+
- Fix Windows and Linux shortcut labels showing `⇧` instead of `Shift`. ([#10511](https://github.com/tldraw/tldraw/pull/10511))
|
|
81
|
+
- Fix the Delete key not working when the keyboard shortcuts preference is disabled, matching Enter, Tab, and the arrows. ([#10511](https://github.com/tldraw/tldraw/pull/10511))
|
|
82
|
+
- Fix a crash when dropping an audio-only video file (for example `.webm`) or a file with no size on the canvas. ([#11220](https://github.com/tldraw/tldraw/pull/11220))
|
|
83
|
+
- Fix replacing an image or video when the upload fails: the shape now keeps its previous media and an error toast shows. ([#11220](https://github.com/tldraw/tldraw/pull/11220))
|
|
84
|
+
- Fix clicks in the empty space above a frame selecting the frame when zoomed out. ([#11253](https://github.com/tldraw/tldraw/pull/11253))
|
|
85
|
+
- Fix cursor chat closing immediately when opened from the context menu. ([#11054](https://github.com/tldraw/tldraw/pull/11054))
|
|
86
|
+
- Fix the comment composer's text jumping up when a comment wraps onto a second line. ([#11255](https://github.com/tldraw/tldraw/pull/11255))
|
|
87
|
+
- Fix the selection box of a text shape shrinking when an empty heading is created. ([#11219](https://github.com/tldraw/tldraw/pull/11219))
|
|
88
|
+
- Remove an unused `data-iseditinganything` attribute from `.tlui-layout`, along with the editing-state reactor that set it on iOS and Android. ([#10502](https://github.com/tldraw/tldraw/pull/10502))
|
|
89
|
+
- Fix text and note shapes re-rendering on every selection change, even when their own selected state has not changed. ([#11526](https://github.com/tldraw/tldraw/pull/11526))
|
|
90
|
+
- Fix video controls not appearing or hiding when zooming. ([#11526](https://github.com/tldraw/tldraw/pull/11526))
|
|
91
|
+
|
|
7
92
|
## v5.6.0
|
|
8
93
|
|
|
9
|
-
|
|
94
|
+
[View on GitHub](https://github.com/tldraw/tldraw/releases/tag/v5.6.0)
|
|
95
|
+
|
|
96
|
+
This release introduces ICU MessageFormat and react-intl for translations, action-driven menu gating, and a `ThrottledFunction` type in `@tldraw/utils`. It also improves commenting, canvas navigation, and the select tool, and includes a broad set of bug fixes across selection, undo/redo, local persistence, sync, and the store.
|
|
97
|
+
|
|
98
|
+
### What's new
|
|
99
|
+
|
|
100
|
+
#### ICU MessageFormat and react-intl for translations ([#8036](https://github.com/tldraw/tldraw/pull/8036))
|
|
101
|
+
|
|
102
|
+
The SDK's UI strings now use [ICU MessageFormat](https://unicode-org.github.io/icu/userguide/format_parse/messages/), allowing messages to support pluralization, selections, and values interpolation cleanly across languages. We've also added react-intl authoring on top: `defineMessages` and `<F>` declare and render messages with their default English next to the code that uses them.
|
|
103
|
+
|
|
104
|
+
Existing translations overridden by ID through `overrides.translations` continue to work unchanged.
|
|
10
105
|
|
|
11
106
|
### API changes
|
|
12
107
|
|
|
13
|
-
- Add
|
|
108
|
+
- Add ICU MessageFormat translation support with `defineMessages`, `<F>`, and `useTldrawI18n`. `useTranslation`'s `msg` now supports interpolating values through an optional second argument and accepts declared message descriptors. ([#8036](https://github.com/tldraw/tldraw/pull/8036))
|
|
14
109
|
- Add `isAvailable(editor)`, `isEnabled(editor)` and `isChecked(editor)` to actions. Menu items built with `TldrawUiMenuActionItem` and `TldrawUiMenuActionCheckboxItem` read them: an unavailable action is hidden, a disabled one is greyed out or hidden depending on `whenDisabled: 'hide' | 'disable'`. `useSomeActionsEnabled` returns whether any of the given actions is available and enabled, so a submenu can hide when none of its items can run. If you replace a built-in action with a new object instead of spreading it, it loses its gating, and a toggle's checkbox always shows as unchecked. ([#11038](https://github.com/tldraw/tldraw/pull/11038))
|
|
15
110
|
- `TldrawUiMenuActionItem` now disables itself when its action's `isEnabled` returns false, so custom menus that render built-in actions grey them out when they can't run. The public menu item wrappers, such as `GroupMenuItem`, `FrameSelectionMenuItem` and `ArrangeMenuSubmenu`, now also hide outside the select tool, where their actions do nothing. ([#11038](https://github.com/tldraw/tldraw/pull/11038))
|
|
111
|
+
- Add a `ThrottledFunction<T>` type to `@tldraw/utils` for annotating the result of `throttle`. `throttle` now returns this type, with the same runtime behavior. ([#10927](https://github.com/tldraw/tldraw/pull/10927))
|
|
112
|
+
- Add `startCommentAt(editor, point)` to `@tldraw/commenting` for starting a comment thread at a specific canvas location from outside the comment tool. ([#10970](https://github.com/tldraw/tldraw/pull/10970))
|
|
113
|
+
- `TLSocketRoom.handleSocketMessage(sessionId, message, socket?)`, `handleSocketClose(sessionId, socket?)`, and `handleSocketError(sessionId, socket?)` now accept an optional originating socket parameter so messages and events from superseded connections are ignored. ([#11067](https://github.com/tldraw/tldraw/pull/11067))
|
|
114
|
+
- Add `LaserTool.startScribble()` which adds a laser scribble to the current session, starting a fresh session if none is active. ([#10781](https://github.com/tldraw/tldraw/pull/10781))
|
|
16
115
|
|
|
17
116
|
### Improvements
|
|
18
117
|
|
|
19
118
|
- Menus no longer offer actions that would do nothing: grouping locked shapes, flipping a locked shape, unlocking when nothing is locked, exporting all shapes on an empty page, moving to a new page at the page limit, and grouping an arrow away from a shape it's bound to. The main menu hides Paste, instead of disabling it, in browsers that can't read the clipboard. ([#11038](https://github.com/tldraw/tldraw/pull/11038))
|
|
119
|
+
- Allow keyboard navigation (Tab, Ctrl/Cmd+arrow, and the "Move focus to canvas" button) to reach locked shapes again, so keyboard users can select and unlock them. ([#11134](https://github.com/tldraw/tldraw/pull/11134))
|
|
120
|
+
- Add a **Comment** item to the default canvas context menu when commenting is configured. It opens the comment composer where you right-clicked. ([#11095](https://github.com/tldraw/tldraw/pull/11095))
|
|
121
|
+
- Move the comments filter menu to the right of the hide comments toggle in the comments panel header. ([#11135](https://github.com/tldraw/tldraw/pull/11135))
|
|
122
|
+
- Cancel comment draft placement and return to the select tool when clicking the canvas, instead of moving the draft comment. ([#10969](https://github.com/tldraw/tldraw/pull/10969))
|
|
20
123
|
- Draw the hinted outline around shapes, such as a frame you're dragging a shape into, at 2px instead of 2.5px. ([#10952](https://github.com/tldraw/tldraw/pull/10952))
|
|
21
124
|
- Speed up `store.query.index()` and `store.query.ids()` updates by no longer allocating for each change. ([#10228](https://github.com/tldraw/tldraw/pull/10228))
|
|
22
125
|
|
|
23
126
|
### Bug fixes
|
|
24
127
|
|
|
25
128
|
- Fix the edge scrolling preference showing as off when edge scrolling is on at a speed other than 1, such as 0.5 or 2. ([#11038](https://github.com/tldraw/tldraw/pull/11038))
|
|
129
|
+
- Fix edge scrolling jumping to partial speed after its start delay. ([#11126](https://github.com/tldraw/tldraw/pull/11126))
|
|
26
130
|
- Fix three resize issues: flipping a rotated selection gave its children the wrong rotation, shapes not aligned with the selection received `onResizeStart` and `onResizeEnd` more than once, and `resizeBox` slid the fixed edge when a shape hit its `maxWidth` or `maxHeight`. ([#10351](https://github.com/tldraw/tldraw/pull/10351))
|
|
27
131
|
- Fix duplicating a page moving its shapes when they were off screen, and starting the new page with the current page's camera instead of the duplicated page's. ([#10465](https://github.com/tldraw/tldraw/pull/10465))
|
|
132
|
+
- Fix the page menu closing and getting stuck mid-drag when Escape is pressed while reordering pages. ([#11115](https://github.com/tldraw/tldraw/pull/11115))
|
|
133
|
+
- Fix an empty line under a heading in a text shape that could not be deleted. ([#11114](https://github.com/tldraw/tldraw/pull/11114))
|
|
134
|
+
- Fix the "rhombus-2" (rhombus left) geo tool showing a raw translation key as its label. ([#11062](https://github.com/tldraw/tldraw/pull/11062))
|
|
135
|
+
- Fix the keyboard shortcuts dialog opening via keyboard shortcut when `KeyboardShortcutsDialog` is overridden with `null`. ([#11019](https://github.com/tldraw/tldraw/pull/11019))
|
|
136
|
+
- Fix the rich text toolbar reporting the wrong operation in `onUiEvent` for italic, code, and highlight. ([#11018](https://github.com/tldraw/tldraw/pull/11018))
|
|
137
|
+
- Fix undo after double-clicking a frame's corner or edge to fit it to content creating an inconsistent history step. ([#11075](https://github.com/tldraw/tldraw/pull/11075))
|
|
138
|
+
- Fix undo reverting an earlier edit after brushing to select, right-clicking an empty canvas to deselect, pressing Enter on a group, or navigating the selection with the keyboard. ([#10476](https://github.com/tldraw/tldraw/pull/10476))
|
|
139
|
+
- Fix clicking a child of a locked group selecting the locked group. ([#10180](https://github.com/tldraw/tldraw/pull/10180))
|
|
140
|
+
- Fix bookmarks, notes, and other non-resizing shapes being mispositioned when their containing group is resized or flipped. ([#10619](https://github.com/tldraw/tldraw/pull/10619))
|
|
141
|
+
- Fix bounds snapping not engaging while resizing or cropping shapes inside slightly rotated frames or groups. ([#10181](https://github.com/tldraw/tldraw/pull/10181))
|
|
28
142
|
- Fix the arrow tool's precise mode carrying over when you move to a different target shape. ([#10244](https://github.com/tldraw/tldraw/pull/10244))
|
|
29
143
|
- Fix holding Cmd/Ctrl+Shift+Arrow switching from selecting a parent or child to selecting the adjacent shape once the key starts repeating. ([#10184](https://github.com/tldraw/tldraw/pull/10184))
|
|
144
|
+
- Fix arrow-key nudging moving diagonally after using a Cmd+Arrow shortcut on macOS. ([#10892](https://github.com/tldraw/tldraw/pull/10892))
|
|
145
|
+
- Fix the eraser sometimes dropping a highlighted shape when dragging near a group. ([#10182](https://github.com/tldraw/tldraw/pull/10182))
|
|
30
146
|
- Fix `editor.setCursor` throwing for the rotate and resize cursor types, and hex cursor colors breaking SVG cursors. ([#10350](https://github.com/tldraw/tldraw/pull/10350))
|
|
147
|
+
- Fix `editor.animateShapes` throwing a `TypeError` when interpolating draw or highlight shapes to or from empty segments. ([#10771](https://github.com/tldraw/tldraw/pull/10771))
|
|
148
|
+
- Fix the laser tool crashing when its scribble session times out mid-stroke. ([#10781](https://github.com/tldraw/tldraw/pull/10781))
|
|
149
|
+
- Fix scribbles added without points disappearing after one idle frame before points could be added on pointer move. ([#10336](https://github.com/tldraw/tldraw/pull/10336))
|
|
150
|
+
- Fix hit testing and viewport culling using stale bounds when text fonts finish loading after measurement, and fix container descendants retaining stale current-page membership when reparented to another page. ([#10341](https://github.com/tldraw/tldraw/pull/10341))
|
|
31
151
|
- Fix edits being lost when an editor remounts with the same `persistenceKey` while the previous one is still saving. ([#10752](https://github.com/tldraw/tldraw/pull/10752))
|
|
152
|
+
- Fix the comment composer requiring a second tap before focusing and raising the software keyboard on iOS. ([#9957](https://github.com/tldraw/tldraw/pull/9957))
|
|
32
153
|
- Fix store changes made in the last frame before a listener is removed never reaching that listener. ([#10802](https://github.com/tldraw/tldraw/pull/10802))
|
|
33
154
|
- Fix a reaction that writes to the store re-running on every unrelated store change. ([#10236](https://github.com/tldraw/tldraw/pull/10236))
|
|
34
155
|
- Fix undo restoring an in-between state after a single `put` updated the same record twice. ([#10203](https://github.com/tldraw/tldraw/pull/10203))
|
|
156
|
+
- Fix store listeners and `extractingChanges` receiving changes from transactions that rolled back. ([#10205](https://github.com/tldraw/tldraw/pull/10205))
|
|
157
|
+
- Fix computed caches in `store.query` not re-running their derive functions when a previously removed record is recreated with the same ID. ([#10225](https://github.com/tldraw/tldraw/pull/10225))
|
|
35
158
|
- Fix `migrateStoreSnapshot` throwing on a malformed persisted schema instead of returning a migration error. ([#10220](https://github.com/tldraw/tldraw/pull/10220))
|
|
36
159
|
- Fix migrations rerunning on records when a persisted schema's sequence version isn't a number. ([#10917](https://github.com/tldraw/tldraw/pull/10917))
|
|
160
|
+
- Fix a record deleted while offline occasionally reappearing after reconnecting. ([#10997](https://github.com/tldraw/tldraw/pull/10997))
|
|
161
|
+
- Fix large chunked sync messages being dropped and active sessions being cancelled by a previous socket's late close or error when reconnecting with the same session ID. ([#11067](https://github.com/tldraw/tldraw/pull/11067))
|
|
37
162
|
- Fix a resumed sync session on a hibernating host skipping the version checks made on first connect, so after a server redeploy a client could be sent changes its schema couldn't handle. It's now rejected with `SERVER_TOO_OLD` or `CLIENT_TOO_OLD`, as on connect. ([#10122](https://github.com/tldraw/tldraw/pull/10122))
|
|
38
163
|
- Fix a record field set to `undefined` getting the sync session kicked with `INVALID_RECORD`, and ignore `__proto__` keys in incoming changes. ([#10118](https://github.com/tldraw/tldraw/pull/10118))
|
|
39
164
|
- Fix older sync clients (protocol version 7) silently falling out of sync when the server sent them text-append changes they don't support. ([#10095](https://github.com/tldraw/tldraw/pull/10095))
|
|
40
165
|
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
### Patch releases
|
|
169
|
+
|
|
170
|
+
#### v5.6.1
|
|
171
|
+
|
|
172
|
+
- Allow app links into apps such as VS Code, Cursor, Slack and Figma in shape links and bookmarks. ([#10899](https://github.com/tldraw/tldraw/pull/10899))
|
|
173
|
+
|
|
174
|
+
[View release on GitHub](https://github.com/tldraw/tldraw/releases/tag/v5.6.1)
|
|
175
|
+
|
|
41
176
|
## v5.5.0
|
|
42
177
|
|
|
43
178
|
[View on GitHub](https://github.com/tldraw/tldraw/releases/tag/v5.5.0)
|
|
@@ -219,6 +354,29 @@ import { Mark, mergeAttributes } from 'tldraw'
|
|
|
219
354
|
|
|
220
355
|
- Fix `create-tldraw --no-telemetry` being ignored. ([#10789](https://github.com/tldraw/tldraw/pull/10789))
|
|
221
356
|
|
|
357
|
+
---
|
|
358
|
+
|
|
359
|
+
### Patch releases
|
|
360
|
+
|
|
361
|
+
#### v5.5.1
|
|
362
|
+
|
|
363
|
+
- Fix shape hover and selection feeling offset below shapes, caused by the default cursor's hotspot sitting above its visible tip. ([#11033](https://github.com/tldraw/tldraw/pull/11033))
|
|
364
|
+
|
|
365
|
+
[View release on GitHub](https://github.com/tldraw/tldraw/releases/tag/v5.5.1)
|
|
366
|
+
|
|
367
|
+
#### v5.5.2
|
|
368
|
+
|
|
369
|
+
- Fix license domain validation for pages loaded from `blob:` URLs. ([#11040](https://github.com/tldraw/tldraw/pull/11040))
|
|
370
|
+
|
|
371
|
+
[View release on GitHub](https://github.com/tldraw/tldraw/releases/tag/v5.5.2)
|
|
372
|
+
|
|
373
|
+
#### v5.5.4
|
|
374
|
+
|
|
375
|
+
- Increase the default hit test margin from 3 to 4.5, making shape edges easier to hover and select. ([#11108](https://github.com/tldraw/tldraw/pull/11108))
|
|
376
|
+
- Add a tracked license flag that always sends the tracking ping. ([#11178](https://github.com/tldraw/tldraw/pull/11178))
|
|
377
|
+
|
|
378
|
+
[View release on GitHub](https://github.com/tldraw/tldraw/releases/tag/v5.5.4)
|
|
379
|
+
|
|
222
380
|
## v5.4.0
|
|
223
381
|
|
|
224
382
|
[View on GitHub](https://github.com/tldraw/tldraw/releases/tag/v5.4.0)
|
package/dist-cjs/index.d.ts
CHANGED
|
@@ -2618,6 +2618,19 @@ export declare function getGeoTypeDefinition(name: string, customGeoTypes?: Reco
|
|
|
2618
2618
|
/** @public */
|
|
2619
2619
|
export declare function getHitShapeOnCanvasPointerDown(editor: Editor, hitLabels?: boolean): TLShape | undefined;
|
|
2620
2620
|
|
|
2621
|
+
/**
|
|
2622
|
+
* Decide how a link from a shape or rich text should be opened.
|
|
2623
|
+
*
|
|
2624
|
+
* - `open`: a web link, mailto link, relative link, or a link into a well-known app.
|
|
2625
|
+
* - `confirm`: any other link that `T.linkUrl` accepts, such as an app we don't know. Ask the
|
|
2626
|
+
* user before opening it.
|
|
2627
|
+
* - `block`: anything `T.linkUrl` rejects. Stored records are validated, but a link can also
|
|
2628
|
+
* come from rendered rich text or a custom shape, so check again here.
|
|
2629
|
+
*
|
|
2630
|
+
* @public
|
|
2631
|
+
*/
|
|
2632
|
+
export declare function getLinkOpenPolicy(url: string): TLLinkOpenPolicy;
|
|
2633
|
+
|
|
2621
2634
|
/** @public */
|
|
2622
2635
|
export declare function getPointsFromDrawSegment(segment: TLDrawShapeSegment, scaleX: number, scaleY: number, points?: Vec[]): Vec[];
|
|
2623
2636
|
|
|
@@ -3204,6 +3217,16 @@ export declare interface OnDragFromToolbarToCreateShapesOpts {
|
|
|
3204
3217
|
maskedToolId?: string;
|
|
3205
3218
|
}
|
|
3206
3219
|
|
|
3220
|
+
/**
|
|
3221
|
+
* Open a user-provided link in a new window, following {@link getLinkOpenPolicy}. Links that need
|
|
3222
|
+
* confirming emit a `confirm-open-link` event, which the default UI answers with a dialog. With no
|
|
3223
|
+
* listener for that event (for example with `hideUi`), those links are not opened. To handle them
|
|
3224
|
+
* yourself, add a listener that asks the user and calls `openWindow(url, '_blank')` if they agree.
|
|
3225
|
+
*
|
|
3226
|
+
* @public
|
|
3227
|
+
*/
|
|
3228
|
+
export declare function openLink(editor: Editor, url: string): void;
|
|
3229
|
+
|
|
3207
3230
|
/** @public @react */
|
|
3208
3231
|
export declare function OvalToolbarItem(): JSX.Element;
|
|
3209
3232
|
|
|
@@ -4824,6 +4847,13 @@ export declare interface TLExternalContentProps {
|
|
|
4824
4847
|
acceptedVideoMimeTypes?: readonly string[];
|
|
4825
4848
|
}
|
|
4826
4849
|
|
|
4850
|
+
/**
|
|
4851
|
+
* How {@link openLink} treats a link. See {@link getLinkOpenPolicy}.
|
|
4852
|
+
*
|
|
4853
|
+
* @public
|
|
4854
|
+
*/
|
|
4855
|
+
export declare type TLLinkOpenPolicy = 'block' | 'confirm' | 'open';
|
|
4856
|
+
|
|
4827
4857
|
/**
|
|
4828
4858
|
* The component used to render a note shape's attribution badge, or `null` to hide it.
|
|
4829
4859
|
*
|
|
@@ -5880,7 +5910,7 @@ export declare interface TLUiTranslation {
|
|
|
5880
5910
|
export declare type TLUiTranslationContextType = TLUiTranslation;
|
|
5881
5911
|
|
|
5882
5912
|
/** @public */
|
|
5883
|
-
export declare type TLUiTranslationKey = 'a11y.adjust-shape-styles' | 'a11y.enlarge-shape' | 'a11y.enter-leave-container' | 'a11y.move-shape-faster' | 'a11y.move-shape' | 'a11y.multiple-shapes' | 'a11y.open-context-menu' | 'a11y.open-keyboard-shortcuts' | 'a11y.pan-camera' | 'a11y.repeat-shape' | 'a11y.rotate-shape-ccw-fine' | 'a11y.rotate-shape-ccw' | 'a11y.rotate-shape-cw-fine' | 'a11y.rotate-shape-cw' | 'a11y.select-shape-direction' | 'a11y.select-shape' | 'a11y.shape-image' | 'a11y.shape-index' | 'a11y.shape-video' | 'a11y.shrink-shape' | 'a11y.skip-to-main-content' | 'a11y.status' | 'action.align-bottom' | 'action.align-center-horizontal.short' | 'action.align-center-horizontal' | 'action.align-center-vertical.short' | 'action.align-center-vertical' | 'action.align-left' | 'action.align-right' | 'action.align-top' | 'action.back-to-content' | 'action.bring-forward' | 'action.bring-to-front' | 'action.convert-to-bookmark' | 'action.convert-to-embed' | 'action.copy-as-json.short' | 'action.copy-as-json' | 'action.copy-as-png.short' | 'action.copy-as-png' | 'action.copy-as-svg.short' | 'action.copy-as-svg' | 'action.copy-hovered-styles' | 'action.copy' | 'action.cut' | 'action.delete' | 'action.distribute-horizontal.short' | 'action.distribute-horizontal' | 'action.distribute-vertical.short' | 'action.distribute-vertical' | 'action.download-original' | 'action.duplicate' | 'action.edit-link' | 'action.enhanced-a11y-mode.menu' | 'action.enhanced-a11y-mode' | 'action.exit-pen-mode' | 'action.export-all-as-png.short' | 'action.export-all-as-png' | 'action.export-all-as-svg.short' | 'action.export-all-as-svg' | 'action.export-as-png.short' | 'action.export-as-png' | 'action.export-as-svg.short' | 'action.export-as-svg' | 'action.fit-frame-to-content' | 'action.flatten-to-image' | 'action.flip-horizontal.short' | 'action.flip-horizontal' | 'action.flip-vertical.short' | 'action.flip-vertical' | 'action.frame-selection' | 'action.group' | 'action.insert-embed' | 'action.insert-media' | 'action.open-cursor-chat' | 'action.open-embed-link' | 'action.open-kbd-shortcuts' | 'action.pack' | 'action.paste-error-description' | 'action.paste-error-title' | 'action.paste' | 'action.print' | 'action.redo' | 'action.remove-frame' | 'action.rename' | 'action.rotate-ccw' | 'action.rotate-cw' | 'action.save-copy' | 'action.select-all' | 'action.select-none' | 'action.select-zoom-tool' | 'action.send-backward' | 'action.send-to-back' | 'action.stack-horizontal.short' | 'action.stack-horizontal' | 'action.stack-vertical.short' | 'action.stack-vertical' | 'action.stop-following' | 'action.stretch-horizontal.short' | 'action.stretch-horizontal' | 'action.stretch-vertical.short' | 'action.stretch-vertical' | 'action.toggle-auto-none' | 'action.toggle-auto-pan' | 'action.toggle-auto-size' | 'action.toggle-auto-zoom' | 'action.toggle-dark-mode.menu' | 'action.toggle-dark-mode' | 'action.toggle-debug-mode.menu' | 'action.toggle-debug-mode' | 'action.toggle-dynamic-size-mode.menu' | 'action.toggle-dynamic-size-mode' | 'action.toggle-edge-scrolling.menu' | 'action.toggle-edge-scrolling' | 'action.toggle-focus-mode.menu' | 'action.toggle-focus-mode' | 'action.toggle-grid.menu' | 'action.toggle-grid' | 'action.toggle-invert-zoom.menu' | 'action.toggle-invert-zoom' | 'action.toggle-keyboard-shortcuts.menu' | 'action.toggle-keyboard-shortcuts' | 'action.toggle-lock' | 'action.toggle-mouse' | 'action.toggle-paste-at-cursor.menu' | 'action.toggle-paste-at-cursor' | 'action.toggle-reduce-motion.menu' | 'action.toggle-reduce-motion' | 'action.toggle-snap-mode.menu' | 'action.toggle-snap-mode' | 'action.toggle-tool-lock.menu' | 'action.toggle-tool-lock' | 'action.toggle-trackpad' | 'action.toggle-transparent.context-menu' | 'action.toggle-transparent.menu' | 'action.toggle-transparent' | 'action.toggle-wrap-mode.menu' | 'action.toggle-wrap-mode' | 'action.undo' | 'action.ungroup' | 'action.unlock-all' | 'action.zoom-in' | 'action.zoom-out' | 'action.zoom-quick' | 'action.zoom-to-100' | 'action.zoom-to-fit' | 'action.zoom-to-selection' | 'actions-menu.title' | 'align-style.end' | 'align-style.justify' | 'align-style.middle' | 'align-style.start' | 'app.loading' | 'arrow-kind-style.arc' | 'arrow-kind-style.elbow' | 'arrowheadEnd-style.arrow' | 'arrowheadEnd-style.bar' | 'arrowheadEnd-style.diamond' | 'arrowheadEnd-style.dot' | 'arrowheadEnd-style.inverted' | 'arrowheadEnd-style.none' | 'arrowheadEnd-style.pipe' | 'arrowheadEnd-style.square' | 'arrowheadEnd-style.triangle' | 'arrowheadStart-style.arrow' | 'arrowheadStart-style.bar' | 'arrowheadStart-style.diamond' | 'arrowheadStart-style.dot' | 'arrowheadStart-style.inverted' | 'arrowheadStart-style.none' | 'arrowheadStart-style.pipe' | 'arrowheadStart-style.square' | 'arrowheadStart-style.triangle' | 'assets.files.amount-too-many' | 'assets.files.maximum-size' | 'assets.files.size-too-big' | 'assets.files.type-not-allowed' | 'assets.files.upload-failed' | 'assets.url.failed' | 'color-style.black' | 'color-style.blue' | 'color-style.green' | 'color-style.grey' | 'color-style.light-blue' | 'color-style.light-green' | 'color-style.light-red' | 'color-style.light-violet' | 'color-style.orange' | 'color-style.red' | 'color-style.violet' | 'color-style.white' | 'color-style.yellow' | 'comments.add-placeholder' | 'comments.add-reaction' | 'comments.cluster-label' | 'comments.copy-link' | 'comments.delete' | 'comments.dismiss' | 'comments.edit-placeholder' | 'comments.edit' | 'comments.empty-filtered' | 'comments.empty' | 'comments.filter' | 'comments.hide' | 'comments.link-copied' | 'comments.mention-no-matches' | 'comments.mention-you' | 'comments.more-options' | 'comments.only-my-comments' | 'comments.only-unread' | 'comments.pin-label-resolved' | 'comments.pin-label' | 'comments.preview-more' | 'comments.reacted' | 'comments.reopen' | 'comments.replies' | 'comments.reply-placeholder' | 'comments.resolve' | 'comments.resolved-by' | 'comments.resolved' | 'comments.save' | 'comments.send' | 'comments.show-all-pages' | 'comments.show-resolved' | 'comments.show' | 'comments.stack-label' | 'comments.thread-title' | 'comments.title' | 'comments.unknown-author' | 'context-menu.arrange' | 'context-menu.copy-as' | 'context-menu.edit' | 'context-menu.export-all-as' | 'context-menu.export-as' | 'context-menu.move-to-page' | 'context-menu.reorder' | 'context-menu.title' | 'context.pages.new-page' | 'cursor-chat.type-to-chat' | 'dash-style.dashed' | 'dash-style.dotted' | 'dash-style.draw' | 'dash-style.solid' | 'document.default-name' | 'edit-link-dialog.cancel' | 'edit-link-dialog.clear' | 'edit-link-dialog.detail' | 'edit-link-dialog.invalid-url' | 'edit-link-dialog.save' | 'edit-link-dialog.title' | 'edit-link-dialog.url' | 'embed-dialog.back' | 'embed-dialog.cancel' | 'embed-dialog.create' | 'embed-dialog.instruction' | 'embed-dialog.invalid-url' | 'embed-dialog.learn-more' | 'embed-dialog.title' | 'embed-dialog.url' | 'error.cancel' | 'error.confirm-reset.description' | 'error.confirm-reset.title' | 'error.copied' | 'error.copy' | 'error.hide-details' | 'error.message-label' | 'error.note-label' | 'error.refresh-hint' | 'error.refresh-page' | 'error.reset-data' | 'error.reset-hint' | 'error.reset-note' | 'error.show-details' | 'error.stack-trace-label' | 'error.title' | 'file-system.confirm-open.cancel' | 'file-system.confirm-open.description' | 'file-system.confirm-open.open' | 'file-system.confirm-open.title' | 'file-system.file-open-error.file-format-version-too-new' | 'file-system.file-open-error.generic-corrupted-file' | 'file-system.file-open-error.not-a-tldraw-file' | 'file-system.file-open-error.title' | 'file-system.shared-document-file-open-error.description' | 'file-system.shared-document-file-open-error.title' | 'fill-style.fill' | 'fill-style.lined-fill' | 'fill-style.none' | 'fill-style.pattern' | 'fill-style.semi' | 'fill-style.solid' | 'focus-mode.toggle-focus-mode' | 'font-style.draw' | 'font-style.mono' | 'font-style.sans' | 'font-style.serif' | 'geo-style.arrow-down' | 'geo-style.arrow-left' | 'geo-style.arrow-right' | 'geo-style.arrow-up' | 'geo-style.check-box' | 'geo-style.cloud' | 'geo-style.diamond' | 'geo-style.ellipse' | 'geo-style.heart' | 'geo-style.hexagon' | 'geo-style.octagon' | 'geo-style.oval' | 'geo-style.pentagon' | 'geo-style.rectangle' | 'geo-style.rhombus-2' | 'geo-style.rhombus' | 'geo-style.star' | 'geo-style.trapezoid' | 'geo-style.triangle' | 'geo-style.x-box' | 'help-menu.about' | 'help-menu.discord' | 'help-menu.github' | 'help-menu.keyboard-shortcuts' | 'help-menu.privacy' | 'help-menu.terms' | 'help-menu.title' | 'help-menu.twitter' | 'menu.accessibility' | 'menu.edit' | 'menu.input-device' | 'menu.language' | 'menu.preferences' | 'menu.theme' | 'menu.title' | 'menu.view' | 'navigation-zone.minimap' | 'navigation-zone.title' | 'navigation-zone.toggle-minimap' | 'navigation-zone.zoom' | 'opacity-style.0.1' | 'opacity-style.0.25' | 'opacity-style.0.5' | 'opacity-style.0.75' | 'opacity-style.1' | 'page-menu.create-new-page' | 'page-menu.go-to-page' | 'page-menu.max-pages-reached' | 'page-menu.new-page-initial-name' | 'page-menu.resize' | 'page-menu.submenu.delete' | 'page-menu.submenu.duplicate-page' | 'page-menu.submenu.move-down' | 'page-menu.submenu.move-up' | 'page-menu.submenu.rename' | 'page-menu.submenu.title' | 'people-menu.anonymous-user' | 'people-menu.avatar-color' | 'people-menu.change-color' | 'people-menu.change-name' | 'people-menu.follow' | 'people-menu.following' | 'people-menu.leading' | 'people-menu.title' | 'people-menu.user' | 'shortcuts-dialog.a11y' | 'shortcuts-dialog.collaboration' | 'shortcuts-dialog.disabled-notice' | 'shortcuts-dialog.edit' | 'shortcuts-dialog.preferences' | 'shortcuts-dialog.text-formatting' | 'shortcuts-dialog.title' | 'shortcuts-dialog.tools' | 'shortcuts-dialog.transform' | 'shortcuts-dialog.view' | 'size-style.l' | 'size-style.m' | 'size-style.s' | 'size-style.xl' | 'spline-style.cubic' | 'spline-style.line' | 'status.offline' | 'style-panel.align' | 'style-panel.arrow-kind' | 'style-panel.arrowhead-end' | 'style-panel.arrowhead-start' | 'style-panel.arrowheads' | 'style-panel.color' | 'style-panel.dash' | 'style-panel.fill' | 'style-panel.font' | 'style-panel.geo' | 'style-panel.label-align' | 'style-panel.mixed' | 'style-panel.opacity' | 'style-panel.position' | 'style-panel.selected' | 'style-panel.size' | 'style-panel.spline' | 'style-panel.title' | 'style-panel.vertical-align' | 'theme.dark' | 'theme.light' | 'theme.system' | 'toast.close' | 'toast.error.copy-fail.desc' | 'toast.error.copy-fail.title' | 'toast.error.export-fail.desc' | 'toast.error.export-fail.title' | 'toast.error' | 'toast.info' | 'toast.moved-to-page.action' | 'toast.moved-to-page.desc' | 'toast.moved-to-page.title' | 'toast.success' | 'toast.warning' | 'tool-panel.more' | 'tool-panel.title' | 'tool.arrow-down' | 'tool.arrow-left' | 'tool.arrow-right' | 'tool.arrow-up' | 'tool.arrow' | 'tool.aspect-ratio.circle' | 'tool.aspect-ratio.landscape' | 'tool.aspect-ratio.original' | 'tool.aspect-ratio.portrait' | 'tool.aspect-ratio.square' | 'tool.aspect-ratio.wide' | 'tool.aspect-ratio' | 'tool.bookmark' | 'tool.check-box' | 'tool.cloud' | 'tool.comment' | 'tool.diamond' | 'tool.draw' | 'tool.ellipse' | 'tool.embed' | 'tool.eraser' | 'tool.frame' | 'tool.hand' | 'tool.heart' | 'tool.hexagon' | 'tool.highlight' | 'tool.image-crop-confirm' | 'tool.image-crop' | 'tool.image-toolbar-title' | 'tool.image-zoom' | 'tool.laser' | 'tool.line' | 'tool.media-alt-text-confirm' | 'tool.media-alt-text-desc' | 'tool.media-alt-text' | 'tool.media' | 'tool.note' | 'tool.octagon' | 'tool.oval' | 'tool.pentagon' | 'tool.pointer-down' | 'tool.rectangle' | 'tool.replace-media' | 'tool.rhombus-2' | 'tool.rhombus' | 'tool.rich-text-bold' | 'tool.rich-text-bulletList' | 'tool.rich-text-code' | 'tool.rich-text-header' | 'tool.rich-text-highlight' | 'tool.rich-text-italic' | 'tool.rich-text-link-remove' | 'tool.rich-text-link-visit' | 'tool.rich-text-link' | 'tool.rich-text-orderedList' | 'tool.rich-text-strikethrough' | 'tool.rich-text-toolbar-title' | 'tool.select' | 'tool.star' | 'tool.text' | 'tool.trapezoid' | 'tool.triangle' | 'tool.video-toolbar-title' | 'tool.x-box' | 'ui.checked' | 'ui.close' | 'ui.unchecked' | 'verticalAlign-style.end' | 'verticalAlign-style.middle' | 'verticalAlign-style.start' | 'vscode.file-open.backup-failed' | 'vscode.file-open.backup-saved' | 'vscode.file-open.backup' | 'vscode.file-open.desc' | 'vscode.file-open.dont-show-again' | 'vscode.file-open.open';
|
|
5913
|
+
export declare type TLUiTranslationKey = 'a11y.adjust-shape-styles' | 'a11y.enlarge-shape' | 'a11y.enter-leave-container' | 'a11y.move-shape-faster' | 'a11y.move-shape' | 'a11y.multiple-shapes' | 'a11y.open-context-menu' | 'a11y.open-keyboard-shortcuts' | 'a11y.pan-camera' | 'a11y.repeat-shape' | 'a11y.rotate-shape-ccw-fine' | 'a11y.rotate-shape-ccw' | 'a11y.rotate-shape-cw-fine' | 'a11y.rotate-shape-cw' | 'a11y.select-shape-direction' | 'a11y.select-shape' | 'a11y.shape-image' | 'a11y.shape-index' | 'a11y.shape-video' | 'a11y.shrink-shape' | 'a11y.skip-to-main-content' | 'a11y.status' | 'action.align-bottom' | 'action.align-center-horizontal.short' | 'action.align-center-horizontal' | 'action.align-center-vertical.short' | 'action.align-center-vertical' | 'action.align-left' | 'action.align-right' | 'action.align-top' | 'action.back-to-content' | 'action.bring-forward' | 'action.bring-to-front' | 'action.convert-to-bookmark' | 'action.convert-to-embed' | 'action.copy-as-json.short' | 'action.copy-as-json' | 'action.copy-as-png.short' | 'action.copy-as-png' | 'action.copy-as-svg.short' | 'action.copy-as-svg' | 'action.copy-hovered-styles' | 'action.copy' | 'action.cut' | 'action.delete' | 'action.distribute-horizontal.short' | 'action.distribute-horizontal' | 'action.distribute-vertical.short' | 'action.distribute-vertical' | 'action.download-original' | 'action.duplicate' | 'action.edit-link' | 'action.enhanced-a11y-mode.menu' | 'action.enhanced-a11y-mode' | 'action.exit-pen-mode' | 'action.export-all-as-png.short' | 'action.export-all-as-png' | 'action.export-all-as-svg.short' | 'action.export-all-as-svg' | 'action.export-as-png.short' | 'action.export-as-png' | 'action.export-as-svg.short' | 'action.export-as-svg' | 'action.fit-frame-to-content' | 'action.flatten-to-image' | 'action.flip-horizontal.short' | 'action.flip-horizontal' | 'action.flip-vertical.short' | 'action.flip-vertical' | 'action.frame-selection' | 'action.group' | 'action.insert-embed' | 'action.insert-media' | 'action.open-cursor-chat' | 'action.open-embed-link' | 'action.open-kbd-shortcuts' | 'action.pack' | 'action.paste-error-description' | 'action.paste-error-title' | 'action.paste' | 'action.print' | 'action.redo' | 'action.remove-frame' | 'action.rename' | 'action.rotate-ccw' | 'action.rotate-cw' | 'action.save-copy' | 'action.select-all' | 'action.select-none' | 'action.select-zoom-tool' | 'action.send-backward' | 'action.send-to-back' | 'action.stack-horizontal.short' | 'action.stack-horizontal' | 'action.stack-vertical.short' | 'action.stack-vertical' | 'action.stop-following' | 'action.stretch-horizontal.short' | 'action.stretch-horizontal' | 'action.stretch-vertical.short' | 'action.stretch-vertical' | 'action.toggle-auto-none' | 'action.toggle-auto-pan' | 'action.toggle-auto-size' | 'action.toggle-auto-zoom' | 'action.toggle-dark-mode.menu' | 'action.toggle-dark-mode' | 'action.toggle-debug-mode.menu' | 'action.toggle-debug-mode' | 'action.toggle-dynamic-size-mode.menu' | 'action.toggle-dynamic-size-mode' | 'action.toggle-edge-scrolling.menu' | 'action.toggle-edge-scrolling' | 'action.toggle-focus-mode.menu' | 'action.toggle-focus-mode' | 'action.toggle-grid.menu' | 'action.toggle-grid' | 'action.toggle-invert-zoom.menu' | 'action.toggle-invert-zoom' | 'action.toggle-keyboard-shortcuts.menu' | 'action.toggle-keyboard-shortcuts' | 'action.toggle-lock' | 'action.toggle-mouse' | 'action.toggle-paste-at-cursor.menu' | 'action.toggle-paste-at-cursor' | 'action.toggle-reduce-motion.menu' | 'action.toggle-reduce-motion' | 'action.toggle-snap-mode.menu' | 'action.toggle-snap-mode' | 'action.toggle-tool-lock.menu' | 'action.toggle-tool-lock' | 'action.toggle-trackpad' | 'action.toggle-transparent.context-menu' | 'action.toggle-transparent.menu' | 'action.toggle-transparent' | 'action.toggle-wrap-mode.menu' | 'action.toggle-wrap-mode' | 'action.undo' | 'action.ungroup' | 'action.unlock-all' | 'action.zoom-in' | 'action.zoom-out' | 'action.zoom-quick' | 'action.zoom-to-100' | 'action.zoom-to-fit' | 'action.zoom-to-selection' | 'actions-menu.title' | 'align-style.end' | 'align-style.justify' | 'align-style.middle' | 'align-style.start' | 'app.loading' | 'arrow-kind-style.arc' | 'arrow-kind-style.elbow' | 'arrowheadEnd-style.arrow' | 'arrowheadEnd-style.bar' | 'arrowheadEnd-style.diamond' | 'arrowheadEnd-style.dot' | 'arrowheadEnd-style.inverted' | 'arrowheadEnd-style.none' | 'arrowheadEnd-style.pipe' | 'arrowheadEnd-style.square' | 'arrowheadEnd-style.triangle' | 'arrowheadStart-style.arrow' | 'arrowheadStart-style.bar' | 'arrowheadStart-style.diamond' | 'arrowheadStart-style.dot' | 'arrowheadStart-style.inverted' | 'arrowheadStart-style.none' | 'arrowheadStart-style.pipe' | 'arrowheadStart-style.square' | 'arrowheadStart-style.triangle' | 'assets.files.amount-too-many' | 'assets.files.maximum-size' | 'assets.files.size-too-big' | 'assets.files.type-not-allowed' | 'assets.files.upload-failed' | 'assets.url.failed' | 'color-style.black' | 'color-style.blue' | 'color-style.green' | 'color-style.grey' | 'color-style.light-blue' | 'color-style.light-green' | 'color-style.light-red' | 'color-style.light-violet' | 'color-style.orange' | 'color-style.red' | 'color-style.violet' | 'color-style.white' | 'color-style.yellow' | 'comments.add-placeholder' | 'comments.add-reaction' | 'comments.cluster-label' | 'comments.copy-link' | 'comments.delete' | 'comments.dismiss' | 'comments.edit-placeholder' | 'comments.edit' | 'comments.empty-filtered' | 'comments.empty' | 'comments.filter' | 'comments.hide' | 'comments.link-copied' | 'comments.mention-no-matches' | 'comments.mention-you' | 'comments.more-options' | 'comments.only-my-comments' | 'comments.only-unread' | 'comments.pin-label-resolved' | 'comments.pin-label' | 'comments.preview-more' | 'comments.reacted' | 'comments.reopen' | 'comments.replies' | 'comments.reply-placeholder' | 'comments.resolve' | 'comments.resolved-by' | 'comments.resolved' | 'comments.save' | 'comments.send' | 'comments.show-all-pages' | 'comments.show-resolved' | 'comments.show' | 'comments.stack-label' | 'comments.thread-title' | 'comments.title' | 'comments.unknown-author' | 'confirm-open-link-dialog.cancel' | 'confirm-open-link-dialog.detail' | 'confirm-open-link-dialog.open' | 'confirm-open-link-dialog.title' | 'context-menu.arrange' | 'context-menu.copy-as' | 'context-menu.edit' | 'context-menu.export-all-as' | 'context-menu.export-as' | 'context-menu.move-to-page' | 'context-menu.reorder' | 'context-menu.title' | 'context.pages.new-page' | 'cursor-chat.type-to-chat' | 'dash-style.dashed' | 'dash-style.dotted' | 'dash-style.draw' | 'dash-style.solid' | 'document.default-name' | 'edit-link-dialog.cancel' | 'edit-link-dialog.clear' | 'edit-link-dialog.detail' | 'edit-link-dialog.invalid-url' | 'edit-link-dialog.save' | 'edit-link-dialog.title' | 'edit-link-dialog.url' | 'embed-dialog.back' | 'embed-dialog.cancel' | 'embed-dialog.create' | 'embed-dialog.instruction' | 'embed-dialog.invalid-url' | 'embed-dialog.learn-more' | 'embed-dialog.title' | 'embed-dialog.url' | 'error.cancel' | 'error.confirm-reset.description' | 'error.confirm-reset.title' | 'error.copied' | 'error.copy' | 'error.hide-details' | 'error.message-label' | 'error.note-label' | 'error.refresh-hint' | 'error.refresh-page' | 'error.reset-data' | 'error.reset-hint' | 'error.reset-note' | 'error.show-details' | 'error.stack-trace-label' | 'error.title' | 'file-system.confirm-open.cancel' | 'file-system.confirm-open.description' | 'file-system.confirm-open.open' | 'file-system.confirm-open.title' | 'file-system.file-open-error.file-format-version-too-new' | 'file-system.file-open-error.generic-corrupted-file' | 'file-system.file-open-error.not-a-tldraw-file' | 'file-system.file-open-error.title' | 'file-system.shared-document-file-open-error.description' | 'file-system.shared-document-file-open-error.title' | 'fill-style.fill' | 'fill-style.lined-fill' | 'fill-style.none' | 'fill-style.pattern' | 'fill-style.semi' | 'fill-style.solid' | 'focus-mode.toggle-focus-mode' | 'font-style.draw' | 'font-style.mono' | 'font-style.sans' | 'font-style.serif' | 'geo-style.arrow-down' | 'geo-style.arrow-left' | 'geo-style.arrow-right' | 'geo-style.arrow-up' | 'geo-style.check-box' | 'geo-style.cloud' | 'geo-style.diamond' | 'geo-style.ellipse' | 'geo-style.heart' | 'geo-style.hexagon' | 'geo-style.octagon' | 'geo-style.oval' | 'geo-style.pentagon' | 'geo-style.rectangle' | 'geo-style.rhombus-2' | 'geo-style.rhombus' | 'geo-style.star' | 'geo-style.trapezoid' | 'geo-style.triangle' | 'geo-style.x-box' | 'help-menu.about' | 'help-menu.discord' | 'help-menu.github' | 'help-menu.keyboard-shortcuts' | 'help-menu.privacy' | 'help-menu.terms' | 'help-menu.title' | 'help-menu.twitter' | 'menu.accessibility' | 'menu.edit' | 'menu.input-device' | 'menu.language' | 'menu.preferences' | 'menu.theme' | 'menu.title' | 'menu.view' | 'navigation-zone.minimap' | 'navigation-zone.title' | 'navigation-zone.toggle-minimap' | 'navigation-zone.zoom' | 'opacity-style.0.1' | 'opacity-style.0.25' | 'opacity-style.0.5' | 'opacity-style.0.75' | 'opacity-style.1' | 'page-menu.create-new-page' | 'page-menu.go-to-page' | 'page-menu.max-pages-reached' | 'page-menu.new-page-initial-name' | 'page-menu.resize' | 'page-menu.submenu.delete' | 'page-menu.submenu.duplicate-page' | 'page-menu.submenu.move-down' | 'page-menu.submenu.move-up' | 'page-menu.submenu.rename' | 'page-menu.submenu.title' | 'people-menu.anonymous-user' | 'people-menu.avatar-color' | 'people-menu.change-color' | 'people-menu.change-name' | 'people-menu.follow' | 'people-menu.following' | 'people-menu.leading' | 'people-menu.title' | 'people-menu.user' | 'shortcuts-dialog.a11y' | 'shortcuts-dialog.collaboration' | 'shortcuts-dialog.disabled-notice' | 'shortcuts-dialog.edit' | 'shortcuts-dialog.preferences' | 'shortcuts-dialog.text-formatting' | 'shortcuts-dialog.title' | 'shortcuts-dialog.tools' | 'shortcuts-dialog.transform' | 'shortcuts-dialog.view' | 'size-style.l' | 'size-style.m' | 'size-style.s' | 'size-style.xl' | 'spline-style.cubic' | 'spline-style.line' | 'status.offline' | 'style-panel.align' | 'style-panel.arrow-kind' | 'style-panel.arrowhead-end' | 'style-panel.arrowhead-start' | 'style-panel.arrowheads' | 'style-panel.color' | 'style-panel.dash' | 'style-panel.fill' | 'style-panel.font' | 'style-panel.geo' | 'style-panel.label-align' | 'style-panel.mixed' | 'style-panel.opacity' | 'style-panel.position' | 'style-panel.selected' | 'style-panel.size' | 'style-panel.spline' | 'style-panel.title' | 'style-panel.vertical-align' | 'theme.dark' | 'theme.light' | 'theme.system' | 'toast.close' | 'toast.error.copy-fail.desc' | 'toast.error.copy-fail.title' | 'toast.error.export-fail.desc' | 'toast.error.export-fail.title' | 'toast.error' | 'toast.info' | 'toast.moved-to-page.action' | 'toast.moved-to-page.desc' | 'toast.moved-to-page.title' | 'toast.success' | 'toast.warning' | 'tool-panel.more' | 'tool-panel.title' | 'tool.arrow-down' | 'tool.arrow-left' | 'tool.arrow-right' | 'tool.arrow-up' | 'tool.arrow' | 'tool.aspect-ratio.circle' | 'tool.aspect-ratio.landscape' | 'tool.aspect-ratio.original' | 'tool.aspect-ratio.portrait' | 'tool.aspect-ratio.square' | 'tool.aspect-ratio.wide' | 'tool.aspect-ratio' | 'tool.bookmark' | 'tool.check-box' | 'tool.cloud' | 'tool.comment' | 'tool.diamond' | 'tool.draw' | 'tool.ellipse' | 'tool.embed' | 'tool.eraser' | 'tool.frame' | 'tool.hand' | 'tool.heart' | 'tool.hexagon' | 'tool.highlight' | 'tool.image-crop-confirm' | 'tool.image-crop' | 'tool.image-toolbar-title' | 'tool.image-zoom' | 'tool.laser' | 'tool.line' | 'tool.media-alt-text-confirm' | 'tool.media-alt-text-desc' | 'tool.media-alt-text' | 'tool.media' | 'tool.note' | 'tool.octagon' | 'tool.oval' | 'tool.pentagon' | 'tool.pointer-down' | 'tool.rectangle' | 'tool.replace-media' | 'tool.rhombus-2' | 'tool.rhombus' | 'tool.rich-text-bold' | 'tool.rich-text-bulletList' | 'tool.rich-text-code' | 'tool.rich-text-header' | 'tool.rich-text-highlight' | 'tool.rich-text-italic' | 'tool.rich-text-link-remove' | 'tool.rich-text-link-visit' | 'tool.rich-text-link' | 'tool.rich-text-orderedList' | 'tool.rich-text-strikethrough' | 'tool.rich-text-toolbar-title' | 'tool.select' | 'tool.star' | 'tool.text' | 'tool.trapezoid' | 'tool.triangle' | 'tool.video-toolbar-title' | 'tool.x-box' | 'ui.checked' | 'ui.close' | 'ui.unchecked' | 'verticalAlign-style.end' | 'verticalAlign-style.middle' | 'verticalAlign-style.start' | 'vscode.file-open.backup-failed' | 'vscode.file-open.backup-saved' | 'vscode.file-open.backup' | 'vscode.file-open.desc' | 'vscode.file-open.dont-show-again' | 'vscode.file-open.open';
|
|
5884
5914
|
|
|
5885
5915
|
/** @public */
|
|
5886
5916
|
export declare interface TLUiTranslationProviderProps {
|
package/dist-cjs/index.js
CHANGED
|
@@ -377,6 +377,7 @@ __export(index_exports, {
|
|
|
377
377
|
getFontStyleItems: () => import_styles.getFontStyleItems,
|
|
378
378
|
getGeoTypeDefinition: () => import_getGeoShapePath.getGeoTypeDefinition,
|
|
379
379
|
getHitShapeOnCanvasPointerDown: () => import_getHitShapeOnCanvasPointerDown.getHitShapeOnCanvasPointerDown,
|
|
380
|
+
getLinkOpenPolicy: () => import_openLink.getLinkOpenPolicy,
|
|
380
381
|
getPointsFromDrawSegment: () => import_getPath.getPointsFromDrawSegment,
|
|
381
382
|
getPointsFromDrawSegments: () => import_getPath.getPointsFromDrawSegments,
|
|
382
383
|
getSchema: () => import_tiptap.getSchema,
|
|
@@ -392,6 +393,7 @@ __export(index_exports, {
|
|
|
392
393
|
mergeAttributes: () => import_tiptap.mergeAttributes,
|
|
393
394
|
notifyIfFileNotAllowed: () => import_defaultExternalContentHandlers.notifyIfFileNotAllowed,
|
|
394
395
|
onDragFromToolbarToCreateShape: () => import_useTools.onDragFromToolbarToCreateShape,
|
|
396
|
+
openLink: () => import_openLink.openLink,
|
|
395
397
|
parseAndLoadDocument: () => import_file.parseAndLoadDocument,
|
|
396
398
|
parseTldrawJsonFile: () => import_file.parseTldrawJsonFile,
|
|
397
399
|
preloadFont: () => import_preload_font.preloadFont,
|
|
@@ -662,6 +664,7 @@ var import_copyAs = require("./lib/utils/export/copyAs");
|
|
|
662
664
|
var import_exportAs = require("./lib/utils/export/exportAs");
|
|
663
665
|
var import_frames = require("./lib/utils/frames/frames");
|
|
664
666
|
var import_assetUrls2 = require("./lib/utils/static-assets/assetUrls");
|
|
667
|
+
var import_openLink = require("./lib/utils/openLink");
|
|
665
668
|
var import_sanitizeSvg = require("./lib/utils/svg/sanitizeSvg");
|
|
666
669
|
var import_richText = require("./lib/utils/text/richText");
|
|
667
670
|
var import_text = require("./lib/utils/text/text");
|
|
@@ -671,7 +674,7 @@ var import_buildFromV1Document = require("./lib/utils/tldr/buildFromV1Document")
|
|
|
671
674
|
var import_file = require("./lib/utils/tldr/file");
|
|
672
675
|
(0, import_editor.registerTldrawLibraryVersion)(
|
|
673
676
|
"tldraw",
|
|
674
|
-
"5.6.
|
|
677
|
+
"5.6.2",
|
|
675
678
|
"cjs"
|
|
676
679
|
);
|
|
677
680
|
//# sourceMappingURL=index.js.map
|