floor-editor-ts 1.2.2 → 1.2.4

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.
@@ -2,6 +2,8 @@ export interface ShortcutContext {
2
2
  rotateFurniture?: () => void;
3
3
  save?: () => void;
4
4
  }
5
+ /** Walk nested shadow roots — needed when running inside <floor-editor> web component. */
6
+ export declare function getDeepActiveElement(root?: Document | ShadowRoot): HTMLElement | null;
5
7
  /** True when the user is typing in a form field — canvas shortcuts should not run. */
6
8
  export declare function isEditableTarget(e: KeyboardEvent): boolean;
7
9
  export declare function handleGlobalShortcut(e: KeyboardEvent, ctx?: ShortcutContext): boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "floor-editor-ts",
3
3
  "private": false,
4
- "version": "1.2.2",
4
+ "version": "1.2.4",
5
5
  "type": "module",
6
6
  "main": "./dist/floor-editor.es.js",
7
7
  "module": "./dist/floor-editor.es.js",