@almadar/ui 2.58.0 → 2.59.3
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 +45078 -40666
- package/dist/avl/index.js +44821 -40409
- package/dist/components/atoms/TraitFrame.d.ts +54 -0
- package/dist/components/atoms/index.d.ts +1 -0
- package/dist/components/index.cjs +37022 -34434
- package/dist/components/index.js +36700 -33935
- package/dist/context/index.cjs +73 -5
- package/dist/context/index.js +73 -5
- package/dist/hooks/index.cjs +73 -5
- package/dist/hooks/index.js +73 -5
- package/dist/hooks/useUISlots.d.ts +28 -0
- package/dist/providers/index.cjs +37905 -4379
- package/dist/providers/index.js +37925 -4399
- package/dist/renderer/trait-binding-resolver.d.ts +53 -0
- package/dist/runtime/index.cjs +28622 -24075
- package/dist/runtime/index.js +25143 -20596
- package/dist/runtime/useTraitStateMachine.d.ts +3 -2
- package/package.json +5 -5
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
*
|
|
17
17
|
* @packageDocumentation
|
|
18
18
|
*/
|
|
19
|
+
import type { EventPayload } from '@almadar/core';
|
|
19
20
|
import { type TraitState } from '@almadar/runtime';
|
|
20
21
|
import type { ResolvedTraitBinding } from './types';
|
|
21
22
|
import type { SlotsActions } from './ui/SlotsContext';
|
|
@@ -24,7 +25,7 @@ export interface TraitStateMachineResult {
|
|
|
24
25
|
/** Current state for each trait */
|
|
25
26
|
traitStates: Map<string, TraitState>;
|
|
26
27
|
/** Send an event to trigger a transition */
|
|
27
|
-
sendEvent: (eventKey: string, payload?:
|
|
28
|
+
sendEvent: (eventKey: string, payload?: EventPayload) => void;
|
|
28
29
|
/** Get current state for a specific trait */
|
|
29
30
|
getTraitState: (traitName: string) => TraitState | undefined;
|
|
30
31
|
/** Check if a trait can handle an event from its current state */
|
|
@@ -32,7 +33,7 @@ export interface TraitStateMachineResult {
|
|
|
32
33
|
}
|
|
33
34
|
export interface UseTraitStateMachineOptions {
|
|
34
35
|
/** Callback invoked after each event is processed (for server forwarding) */
|
|
35
|
-
onEventProcessed?: (eventKey: string, payload?:
|
|
36
|
+
onEventProcessed?: (eventKey: string, payload?: EventPayload) => void | Promise<void>;
|
|
36
37
|
/** Router navigate function for navigate effects */
|
|
37
38
|
navigate?: (path: string, params?: Record<string, unknown>) => void;
|
|
38
39
|
/** Notification function for notify effects */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almadar/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.59.3",
|
|
4
4
|
"description": "React UI components, hooks, and providers for Almadar",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/components/index.js",
|
|
@@ -118,12 +118,12 @@
|
|
|
118
118
|
"access": "public"
|
|
119
119
|
},
|
|
120
120
|
"dependencies": {
|
|
121
|
-
"@almadar/core": ">=4.
|
|
122
|
-
"@almadar/evaluator": ">=2.
|
|
121
|
+
"@almadar/core": ">=4.8.0",
|
|
122
|
+
"@almadar/evaluator": ">=2.8.0",
|
|
123
123
|
"@almadar/patterns": ">=2.10.0",
|
|
124
|
-
"@almadar/std": ">=
|
|
124
|
+
"@almadar/std": ">=6.3.0",
|
|
125
125
|
"@almadar/syntax": ">=1.2.1",
|
|
126
|
-
"@almadar/runtime": ">=2.
|
|
126
|
+
"@almadar/runtime": ">=3.2.1",
|
|
127
127
|
"@xyflow/react": "12.10.1",
|
|
128
128
|
"clsx": "^2.1.0",
|
|
129
129
|
"elkjs": "0.11.1",
|