@almadar/ui 6.8.0 → 6.9.0

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.
@@ -78,6 +78,16 @@ interface EditorKeyEvent {
78
78
  meta: boolean;
79
79
  repeat: boolean;
80
80
  }
81
+ /**
82
+ * Merges several plugins' capture tables into one, per target: keys UNION
83
+ * across every table that declares the target; `mode` is `'any'` if any
84
+ * input says so, else the shared mode when every input agrees, else the
85
+ * distinct modes sorted and `|`-joined. A target present in only one table
86
+ * passes through unchanged. Pure, deterministic — no heuristics.
87
+ */
88
+ declare function mergeCaptureTables(tables: readonly KeyCaptureTable[]): KeyCaptureTable;
89
+ /** `"Control+Shift+P"`-style spelling of a keydown: modifiers in the fixed order Control, Alt, Shift, Meta, then `event.key`. */
90
+ declare function keyChord(event: Pick<KeyboardEvent, 'key' | 'ctrlKey' | 'altKey' | 'shiftKey' | 'metaKey'>): string;
81
91
  interface UseKeyboardRouterOptions {
82
92
  /** declared data; caller owns it; re-read on every keydown (kept in a ref) */
83
93
  captureTable: KeyCaptureTable;
@@ -92,4 +102,4 @@ interface UseKeyboardRouterOptions {
92
102
  }
93
103
  declare function useKeyboardRouter(options: UseKeyboardRouterOptions): void;
94
104
 
95
- export { type EditorKeyEvent as E, type KeyCaptureTable as K, type UseKeyboardRouterOptions as U, type KeyCaptureEntry as a, useEventBus as b, useEventListener as c, useKeyboardRouter as d, useEmitEvent as u };
105
+ export { type EditorKeyEvent as E, type KeyCaptureTable as K, type UseKeyboardRouterOptions as U, type KeyCaptureEntry as a, useEventBus as b, useEventListener as c, useKeyboardRouter as d, keyChord as k, mergeCaptureTables as m, useEmitEvent as u };
@@ -78,6 +78,16 @@ interface EditorKeyEvent {
78
78
  meta: boolean;
79
79
  repeat: boolean;
80
80
  }
81
+ /**
82
+ * Merges several plugins' capture tables into one, per target: keys UNION
83
+ * across every table that declares the target; `mode` is `'any'` if any
84
+ * input says so, else the shared mode when every input agrees, else the
85
+ * distinct modes sorted and `|`-joined. A target present in only one table
86
+ * passes through unchanged. Pure, deterministic — no heuristics.
87
+ */
88
+ declare function mergeCaptureTables(tables: readonly KeyCaptureTable[]): KeyCaptureTable;
89
+ /** `"Control+Shift+P"`-style spelling of a keydown: modifiers in the fixed order Control, Alt, Shift, Meta, then `event.key`. */
90
+ declare function keyChord(event: Pick<KeyboardEvent, 'key' | 'ctrlKey' | 'altKey' | 'shiftKey' | 'metaKey'>): string;
81
91
  interface UseKeyboardRouterOptions {
82
92
  /** declared data; caller owns it; re-read on every keydown (kept in a ref) */
83
93
  captureTable: KeyCaptureTable;
@@ -92,4 +102,4 @@ interface UseKeyboardRouterOptions {
92
102
  }
93
103
  declare function useKeyboardRouter(options: UseKeyboardRouterOptions): void;
94
104
 
95
- export { type EditorKeyEvent as E, type KeyCaptureTable as K, type UseKeyboardRouterOptions as U, type KeyCaptureEntry as a, useEventBus as b, useEventListener as c, useKeyboardRouter as d, useEmitEvent as u };
105
+ export { type EditorKeyEvent as E, type KeyCaptureTable as K, type UseKeyboardRouterOptions as U, type KeyCaptureEntry as a, useEventBus as b, useEventListener as c, useKeyboardRouter as d, keyChord as k, mergeCaptureTables as m, useEmitEvent as u };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "6.8.0",
3
+ "version": "6.9.0",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -118,11 +118,11 @@
118
118
  "access": "public"
119
119
  },
120
120
  "dependencies": {
121
- "@almadar/core": "^10.84.0",
121
+ "@almadar/core": "^10.85.0",
122
122
  "@almadar/evaluator": "^2.44.0",
123
123
  "@almadar/logger": "^1.12.0",
124
124
  "@almadar/runtime": "^6.71.0",
125
- "@almadar/std": "^16.205.0",
125
+ "@almadar/std": "^16.206.0",
126
126
  "@almadar/syntax": "^1.16.0",
127
127
  "@dnd-kit/core": "^6.3.1",
128
128
  "@dnd-kit/sortable": "^10.0.0",