@almadar/ui 3.2.1 → 3.2.2

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.
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * @packageDocumentation
11
11
  */
12
- import type { BusEvent, BusEventSource, EventPayload } from '@almadar/core';
12
+ import type { BusEvent, BusEventSource, EntityRow, EventPayload } from '@almadar/core';
13
13
  export type CheckStatus = "pass" | "fail" | "pending" | "warn";
14
14
  export interface VerificationCheck {
15
15
  id: string;
@@ -81,17 +81,14 @@ export interface TraitStateSnapshot {
81
81
  /** Declared event keys for this trait (non-empty for healthy trait refs). */
82
82
  events: string[];
83
83
  /**
84
- * Entity data keyed by entity name. Matches the wire shape that flows
85
- * from `EventResponse.data` into the trait reducer: every row carries
86
- * an `id` (string on the client, string-or-number across the wire).
87
- * Rows may carry additional fields from the entity's declared schema;
88
- * consumers that need the full shape cast down to the generated entity
89
- * type (e.g. `data['CartItem'] as CartItem[]`). Snapshot-on-read;
90
- * mutating the returned arrays does not affect the live reducer.
84
+ * Entity data keyed by entity name. Uses `EntityRow` from `@almadar/core`
85
+ * the canonical persisted-entity shape the server returns and the
86
+ * trait reducer stores. Consumers that need full field-level types can
87
+ * cast down to the generated entity (e.g. `data['CartItem'] as CartItem[]`).
88
+ * Snapshot-on-read; mutating the returned arrays does not affect the
89
+ * live reducer.
91
90
  */
92
- data: Record<string, Array<{
93
- id: string | number;
94
- }>>;
91
+ data: Record<string, EntityRow[]>;
95
92
  /** Payload of the last event the state machine processed, if any. */
96
93
  lastPayload?: EventPayload;
97
94
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/components/index.js",