@almadar/ui 3.9.1 → 4.0.1

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.
@@ -2,7 +2,9 @@
2
2
  * EntitySchemaContext
3
3
  *
4
4
  * Minimal context providing entity schema definitions (field metadata).
5
- * This is NOT a data store - data comes from FetchedDataContext via server.
5
+ * This is NOT a data store actual entity rows flow through the state
6
+ * machine's `@payload.data` binding on the emitting trait's fetch-success
7
+ * transition and land on the rendering component's `entity` prop.
6
8
  *
7
9
  * Replaces EntityStore's schema functionality without the mock data generation.
8
10
  *
@@ -24,13 +26,15 @@ export interface EntitySchemaProviderProps {
24
26
  * Provides entity schema definitions to the component tree.
25
27
  *
26
28
  * This is a lightweight provider that only holds schema metadata (field definitions).
27
- * Actual entity data comes from FetchedDataContext via server responses.
29
+ * Actual entity rows arrive via `@payload.data` on the rendering trait's
30
+ * success transition — they do NOT live in this context.
28
31
  */
29
32
  export declare function EntitySchemaProvider({ entities, children, }: EntitySchemaProviderProps): React.ReactElement;
30
33
  /**
31
34
  * Access entity schema definitions.
32
35
  * Use this for field metadata (form building, filter enrichment).
33
- * For actual data, use useFetchedDataContext.
36
+ * Actual entity rows flow via `@payload.data` on the state machine's
37
+ * success transition — never read them from a context.
34
38
  */
35
39
  export declare function useEntitySchema(): EntitySchemaContextValue;
36
40
  /**