@almadar/ui 3.2.0 → 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.
@@ -81,9 +81,12 @@ 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. Same shape the trait reducer holds
85
- * in `state.data`. Snapshot-on-read; mutating the returned arrays does
86
- * 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.
87
90
  */
88
91
  data: Record<string, EntityRow[]>;
89
92
  /** Payload of the last event the state machine processed, if any. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "3.2.0",
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",