@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.
- package/dist/avl/index.cjs +527 -46
- package/dist/avl/index.js +527 -46
- package/dist/{cn-sgpqpN0U.d.ts → cn-C7fvp9gH.d.ts} +37 -10
- package/dist/{cn-CCjFspAo.d.cts → cn-DnLYahyL.d.cts} +37 -10
- package/dist/components/index.cjs +557 -47
- package/dist/components/index.d.cts +8 -6
- package/dist/components/index.d.ts +8 -6
- package/dist/components/index.js +556 -48
- package/dist/hooks/index.cjs +30 -1
- package/dist/hooks/index.d.cts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +29 -2
- package/dist/lib/drawable/three/index.cjs +21 -2
- package/dist/lib/drawable/three/index.js +21 -2
- package/dist/lib/index.cjs +238 -9
- package/dist/lib/index.d.cts +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +234 -10
- package/dist/marketing/index.cjs +12 -3
- package/dist/marketing/index.js +12 -3
- package/dist/providers/index.cjs +527 -46
- package/dist/providers/index.js +527 -46
- package/dist/runtime/index.cjs +541 -50
- package/dist/runtime/index.d.cts +7 -2
- package/dist/runtime/index.d.ts +7 -2
- package/dist/runtime/index.js +541 -50
- package/dist/{useKeyboardRouter-D84cNWmA.d.ts → useKeyboardRouter-B1pIi9jo.d.ts} +11 -1
- package/dist/{useKeyboardRouter-DQEE_9mq.d.cts → useKeyboardRouter-CVn8lfiX.d.cts} +11 -1
- package/package.json +3 -3
|
@@ -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.
|
|
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.
|
|
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.
|
|
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",
|