@almadar/ui 3.1.2 → 3.1.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.
@@ -1,4 +1,5 @@
1
1
  import { useEventBus } from "./useEventBus";
2
+ import type { EventPayload } from "@almadar/core";
2
3
  /**
3
4
  * Hook to bridge UI events to state machine dispatch
4
5
  *
@@ -6,7 +7,7 @@ import { useEventBus } from "./useEventBus";
6
7
  * @param validEvents - Optional array of valid event names (filters which events to handle)
7
8
  * @param eventBusInstance - Optional event bus instance (for testing, uses hook if not provided)
8
9
  */
9
- export declare function useUIEvents<E extends string>(dispatch: (event: E, payload?: unknown) => void, validEvents?: readonly E[], eventBusInstance?: ReturnType<typeof useEventBus>): void;
10
+ export declare function useUIEvents<E extends string>(dispatch: (event: E, payload?: EventPayload) => void, validEvents?: readonly E[], eventBusInstance?: ReturnType<typeof useEventBus>): void;
10
11
  /**
11
12
  * Hook for selected entity tracking
12
13
  * Many list UIs need to track which item is selected.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "3.1.2",
3
+ "version": "3.1.4",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/components/index.js",
@@ -121,7 +121,7 @@
121
121
  "@almadar/core": ">=5.3.1",
122
122
  "@almadar/evaluator": ">=2.9.2",
123
123
  "@almadar/patterns": ">=2.14.1",
124
- "@almadar/runtime": ">=4.2.7",
124
+ "@almadar/runtime": ">=4.3.0",
125
125
  "@almadar/std": ">=6.4.1",
126
126
  "@almadar/syntax": ">=1.3.1",
127
127
  "@xyflow/react": "12.10.1",