tldraw 4.1.0-canary.bace23a29058 → 4.1.0-canary.e4499a57ef5b

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.
Files changed (23) hide show
  1. package/dist-cjs/index.js +1 -1
  2. package/dist-cjs/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.js +1 -1
  3. package/dist-cjs/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.js.map +1 -1
  4. package/dist-cjs/lib/ui/components/MainMenu/DefaultMainMenuContent.js +5 -3
  5. package/dist-cjs/lib/ui/components/MainMenu/DefaultMainMenuContent.js.map +2 -2
  6. package/dist-cjs/lib/ui/context/actions.js +20 -0
  7. package/dist-cjs/lib/ui/context/actions.js.map +2 -2
  8. package/dist-cjs/lib/ui/version.js +3 -3
  9. package/dist-cjs/lib/ui/version.js.map +1 -1
  10. package/dist-esm/index.mjs +1 -1
  11. package/dist-esm/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.mjs +1 -1
  12. package/dist-esm/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.mjs.map +1 -1
  13. package/dist-esm/lib/ui/components/MainMenu/DefaultMainMenuContent.mjs +5 -3
  14. package/dist-esm/lib/ui/components/MainMenu/DefaultMainMenuContent.mjs.map +2 -2
  15. package/dist-esm/lib/ui/context/actions.mjs +20 -0
  16. package/dist-esm/lib/ui/context/actions.mjs.map +2 -2
  17. package/dist-esm/lib/ui/version.mjs +3 -3
  18. package/dist-esm/lib/ui/version.mjs.map +1 -1
  19. package/package.json +3 -3
  20. package/src/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.tsx +1 -1
  21. package/src/lib/ui/components/MainMenu/DefaultMainMenuContent.tsx +1 -5
  22. package/src/lib/ui/context/actions.tsx +22 -0
  23. package/src/lib/ui/version.ts +3 -3
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tldraw",
3
3
  "description": "A tiny little drawing editor.",
4
- "version": "4.1.0-canary.bace23a29058",
4
+ "version": "4.1.0-canary.e4499a57ef5b",
5
5
  "author": {
6
6
  "name": "tldraw Inc.",
7
7
  "email": "hello@tldraw.com"
@@ -55,8 +55,8 @@
55
55
  "@tiptap/pm": "^2.9.1",
56
56
  "@tiptap/react": "^2.9.1",
57
57
  "@tiptap/starter-kit": "^2.9.1",
58
- "@tldraw/editor": "4.1.0-canary.bace23a29058",
59
- "@tldraw/store": "4.1.0-canary.bace23a29058",
58
+ "@tldraw/editor": "4.1.0-canary.e4499a57ef5b",
59
+ "@tldraw/store": "4.1.0-canary.e4499a57ef5b",
60
60
  "classnames": "^2.5.1",
61
61
  "hotkeys-js": "^3.13.9",
62
62
  "idb": "^7.1.1",
@@ -165,7 +165,7 @@ export function DefaultKeyboardShortcutsDialogContent() {
165
165
  <TldrawUiMenuItem
166
166
  id="a11y-select-next-shape-container"
167
167
  label="a11y.enter-leave-container"
168
- kbd="cmd+shift+[[↑→]]"
168
+ kbd="cmd+shift+[[↑↓]]"
169
169
  onSelect={() => {
170
170
  /* do nothing */
171
171
  }}
@@ -165,13 +165,9 @@ export function PreferencesGroup() {
165
165
  <TogglePasteAtCursorItem />
166
166
  <ToggleDebugModeItem />
167
167
  </TldrawUiMenuGroup>
168
- <TldrawUiMenuGroup id="input-mode">
168
+ <TldrawUiMenuGroup id="user-interface-submenus">
169
169
  <InputModeMenu />
170
- </TldrawUiMenuGroup>
171
- <TldrawUiMenuGroup id="color-scheme">
172
170
  <ColorSchemeMenu />
173
- </TldrawUiMenuGroup>
174
- <TldrawUiMenuGroup id="accessibility-menu">
175
171
  <AccessibilityMenu />
176
172
  </TldrawUiMenuGroup>
177
173
  </TldrawUiMenuSubmenu>
@@ -1344,6 +1344,28 @@ export function ActionsProvider({ overrides, children }: ActionsProviderProps) {
1344
1344
  }
1345
1345
  },
1346
1346
  },
1347
+ {
1348
+ id: 'toggle-focus-mode',
1349
+ label: {
1350
+ default: 'action.toggle-focus-mode',
1351
+ menu: 'action.toggle-focus-mode.menu',
1352
+ },
1353
+ readonlyOk: true,
1354
+ kbd: 'cmd+.,ctrl+.',
1355
+ checkbox: true,
1356
+ onSelect(source) {
1357
+ // this needs to be deferred because it causes the menu
1358
+ // UI to unmount which puts us in a dodgy state
1359
+ editor.timers.requestAnimationFrame(() => {
1360
+ editor.run(() => {
1361
+ trackEvent('toggle-focus-mode', { source })
1362
+ helpers.clearDialogs()
1363
+ helpers.clearToasts()
1364
+ editor.updateInstanceState({ isFocusMode: !editor.getInstanceState().isFocusMode })
1365
+ })
1366
+ })
1367
+ },
1368
+ },
1347
1369
  {
1348
1370
  id: 'toggle-grid',
1349
1371
  label: {
@@ -1,9 +1,9 @@
1
1
  // This file is automatically generated by internal/scripts/refresh-assets.ts.
2
2
  // Do not edit manually. Or do, I'm a comment, not a cop.
3
3
 
4
- export const version = '4.1.0-canary.bace23a29058'
4
+ export const version = '4.1.0-canary.e4499a57ef5b'
5
5
  export const publishDates = {
6
6
  major: '2025-09-18T14:39:22.803Z',
7
- minor: '2025-09-18T15:06:06.255Z',
8
- patch: '2025-09-18T15:06:06.255Z',
7
+ minor: '2025-09-19T11:41:15.460Z',
8
+ patch: '2025-09-19T11:41:15.460Z',
9
9
  }