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.
- package/dist-cjs/index.js +1 -1
- package/dist-cjs/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.js +1 -1
- package/dist-cjs/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.js.map +1 -1
- package/dist-cjs/lib/ui/components/MainMenu/DefaultMainMenuContent.js +5 -3
- package/dist-cjs/lib/ui/components/MainMenu/DefaultMainMenuContent.js.map +2 -2
- package/dist-cjs/lib/ui/context/actions.js +20 -0
- package/dist-cjs/lib/ui/context/actions.js.map +2 -2
- package/dist-cjs/lib/ui/version.js +3 -3
- package/dist-cjs/lib/ui/version.js.map +1 -1
- package/dist-esm/index.mjs +1 -1
- package/dist-esm/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.mjs +1 -1
- package/dist-esm/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.mjs.map +1 -1
- package/dist-esm/lib/ui/components/MainMenu/DefaultMainMenuContent.mjs +5 -3
- package/dist-esm/lib/ui/components/MainMenu/DefaultMainMenuContent.mjs.map +2 -2
- package/dist-esm/lib/ui/context/actions.mjs +20 -0
- package/dist-esm/lib/ui/context/actions.mjs.map +2 -2
- package/dist-esm/lib/ui/version.mjs +3 -3
- package/dist-esm/lib/ui/version.mjs.map +1 -1
- package/package.json +3 -3
- package/src/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.tsx +1 -1
- package/src/lib/ui/components/MainMenu/DefaultMainMenuContent.tsx +1 -5
- package/src/lib/ui/context/actions.tsx +22 -0
- 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.
|
|
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.
|
|
59
|
-
"@tldraw/store": "4.1.0-canary.
|
|
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",
|
package/src/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.tsx
CHANGED
|
@@ -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="
|
|
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: {
|
package/src/lib/ui/version.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// This file is automatically generated by internal/scripts/refresh-assets.ts.
|
|
2
2
|
// Do not edit manually. Or do, I'm a comment, not a cop.
|
|
3
3
|
|
|
4
|
-
export const version = '4.1.0-canary.
|
|
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-
|
|
8
|
-
patch: '2025-09-
|
|
7
|
+
minor: '2025-09-19T11:41:15.460Z',
|
|
8
|
+
patch: '2025-09-19T11:41:15.460Z',
|
|
9
9
|
}
|