@tldraw/editor 3.8.0-canary.5b59bb831941 → 3.8.0-canary.5e1a86803164

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.
@@ -852,6 +852,7 @@ export declare const defaultTldrawOptions: {
852
852
  readonly edgeScrollDistance: 8;
853
853
  readonly edgeScrollEaseDuration: 200;
854
854
  readonly edgeScrollSpeed: 25;
855
+ readonly enableToolbarKeyboardShortcuts: true;
855
856
  readonly exportProvider: ExoticComponent< {
856
857
  children?: ReactNode;
857
858
  }>;
@@ -1379,8 +1380,8 @@ export declare class Editor extends EventEmitter<TLEventMap> {
1379
1380
  *
1380
1381
  * @example
1381
1382
  * ```ts
1382
- * state.getStateDescendant('select')
1383
- * state.getStateDescendant('select.brushing')
1383
+ * editor.getStateDescendant('select')
1384
+ * editor.getStateDescendant('select.brushing')
1384
1385
  * ```
1385
1386
  *
1386
1387
  * @param path - The descendant's path of state ids, separated by periods.
@@ -6028,6 +6029,10 @@ export declare interface TldrawOptions {
6028
6029
  * but you can set it to be user-resizable using scale.
6029
6030
  */
6030
6031
  readonly noteShapeResizeMode: 'none' | 'scale';
6032
+ /**
6033
+ * By default, the toolbar items are accessible via number shortcuts according to their order. To disable this, set this option to false.
6034
+ */
6035
+ readonly enableToolbarKeyboardShortcuts: boolean;
6031
6036
  }
6032
6037
 
6033
6038
  /** @public */
package/dist-cjs/index.js CHANGED
@@ -365,7 +365,7 @@ function debugEnableLicensing() {
365
365
  }
366
366
  (0, import_utils.registerTldrawLibraryVersion)(
367
367
  "@tldraw/editor",
368
- "3.8.0-canary.5b59bb831941",
368
+ "3.8.0-canary.5e1a86803164",
369
369
  "cjs"
370
370
  );
371
371
  //# sourceMappingURL=index.js.map
@@ -1164,8 +1164,8 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
1164
1164
  *
1165
1165
  * @example
1166
1166
  * ```ts
1167
- * state.getStateDescendant('select')
1168
- * state.getStateDescendant('select.brushing')
1167
+ * editor.getStateDescendant('select')
1168
+ * editor.getStateDescendant('select.brushing')
1169
1169
  * ```
1170
1170
  *
1171
1171
  * @param path - The descendant's path of state ids, separated by periods.