@almadar/ui 2.28.2 → 2.30.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.
@@ -32,7 +32,7 @@ export interface TraitStateMachineResult {
32
32
  }
33
33
  export interface UseTraitStateMachineOptions {
34
34
  /** Callback invoked after each event is processed (for server forwarding) */
35
- onEventProcessed?: (eventKey: string, payload?: Record<string, unknown>) => void;
35
+ onEventProcessed?: (eventKey: string, payload?: Record<string, unknown>) => void | Promise<void>;
36
36
  /** Router navigate function for navigate effects */
37
37
  navigate?: (path: string, params?: Record<string, unknown>) => void;
38
38
  /** Notification function for notify effects */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "2.28.2",
3
+ "version": "2.30.0",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/components/index.js",
@@ -1,21 +0,0 @@
1
- /**
2
- * enrichFromResponse
3
- *
4
- * Walks a pattern tree from a server response and injects entity data
5
- * into entity-aware patterns. Uses isEntityAwarePattern() from
6
- * @almadar/patterns (registry-driven, not a hardcoded list).
7
- *
8
- * This is the single place where entity data meets UI patterns.
9
- * Called by ServerBridge/ServerBridgeProvider when processing
10
- * clientEffects from the server response.
11
- *
12
- * @packageDocumentation
13
- */
14
- /**
15
- * Enrich a pattern tree with entity data from a server response.
16
- *
17
- * @param node - Pattern config node (from server clientEffects)
18
- * @param data - Entity records keyed by entity name (from server response.data)
19
- * @returns Enriched pattern with entity arrays injected
20
- */
21
- export declare function enrichFromResponse(node: Record<string, unknown> | null | undefined, data: Record<string, unknown[]>): Record<string, unknown>;