@ai-matrx/content-ir-react 0.17.1 → 0.18.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.
@@ -16,6 +16,14 @@ interface DirectiveApplyResult {
16
16
  * (no dead ends). Rendered through `renderRecord`; absent → the sentence alone.
17
17
  */
18
18
  records?: DirectiveRecordRef[];
19
+ /**
20
+ * For an UPDATE: what each item's fields held just BEFORE the write, by item
21
+ * index (`null` for an item the server did not record). The card draws the
22
+ * applied change from this record — never from a live re-read, which after the
23
+ * apply answers the NEW value (G6A review, 2026-10-02: "(no change)" for a
24
+ * change that happened).
25
+ */
26
+ before?: ReadonlyArray<Record<string, unknown> | null>;
19
27
  }
20
28
  /**
21
29
  * What the server's action ledger says about ONE block, read on mount so a
@@ -44,6 +52,12 @@ interface DirectiveApplyState {
44
52
  * two records, and the card says so (reviewer, 2026-10-02).
45
53
  */
46
54
  copies?: number;
55
+ /**
56
+ * For an applied UPDATE: each item's replaced values, by item index, from the
57
+ * ledger row (`null` where the ledger has none — a row from before 2026-10-02).
58
+ * Absent → the card says only what each field was set to.
59
+ */
60
+ before?: ReadonlyArray<Record<string, unknown> | null>;
47
61
  }
48
62
  /** One record a directive names: the noun it is, and its id. */
49
63
  interface DirectiveRecordRef {
@@ -16,6 +16,14 @@ interface DirectiveApplyResult {
16
16
  * (no dead ends). Rendered through `renderRecord`; absent → the sentence alone.
17
17
  */
18
18
  records?: DirectiveRecordRef[];
19
+ /**
20
+ * For an UPDATE: what each item's fields held just BEFORE the write, by item
21
+ * index (`null` for an item the server did not record). The card draws the
22
+ * applied change from this record — never from a live re-read, which after the
23
+ * apply answers the NEW value (G6A review, 2026-10-02: "(no change)" for a
24
+ * change that happened).
25
+ */
26
+ before?: ReadonlyArray<Record<string, unknown> | null>;
19
27
  }
20
28
  /**
21
29
  * What the server's action ledger says about ONE block, read on mount so a
@@ -44,6 +52,12 @@ interface DirectiveApplyState {
44
52
  * two records, and the card says so (reviewer, 2026-10-02).
45
53
  */
46
54
  copies?: number;
55
+ /**
56
+ * For an applied UPDATE: each item's replaced values, by item index, from the
57
+ * ledger row (`null` where the ledger has none — a row from before 2026-10-02).
58
+ * Absent → the card says only what each field was set to.
59
+ */
60
+ before?: ReadonlyArray<Record<string, unknown> | null>;
47
61
  }
48
62
  /** One record a directive names: the noun it is, and its id. */
49
63
  interface DirectiveRecordRef {
package/dist/route.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { e as DB_KIND_COMPONENT_KEY, f as DIRECTIVE_BLOCK_TYPE, G as GENERIC_STRUCTURED_COMPONENT_KEY, s as GenericFallbackReason, I as IR_PROVISIONAL_KEY, t as IR_ROUTE_KEY, w as IrRouteMarker, x as KindRouteBinding, y as KindRouteOptions, P as PartialRenderOptions, z as ProvisionalKindRender, A as SupersededKindRender, B as applyIrKindRoute, E as createKindRouteBinding, F as envelopeFromPartialKind, H as isPartialReadyKind, J as isProvisionalBlock, L as kindServerDataFromStoredValue, M as markKindPartialUnsafe, N as readIrRouteMarker, O as resetPartialUnsafeKinds, Q as resetSourcelessDbRowReports, R as resolveAnnouncedKindLoading, T as resolveProvisionalKindRender, U as resolveSupersededKindRender } from './route-D2Yz3El4.cjs';
1
+ export { e as DB_KIND_COMPONENT_KEY, f as DIRECTIVE_BLOCK_TYPE, G as GENERIC_STRUCTURED_COMPONENT_KEY, s as GenericFallbackReason, I as IR_PROVISIONAL_KEY, t as IR_ROUTE_KEY, w as IrRouteMarker, x as KindRouteBinding, y as KindRouteOptions, P as PartialRenderOptions, z as ProvisionalKindRender, A as SupersededKindRender, B as applyIrKindRoute, E as createKindRouteBinding, F as envelopeFromPartialKind, H as isPartialReadyKind, J as isProvisionalBlock, L as kindServerDataFromStoredValue, M as markKindPartialUnsafe, N as readIrRouteMarker, O as resetPartialUnsafeKinds, Q as resetSourcelessDbRowReports, R as resolveAnnouncedKindLoading, T as resolveProvisionalKindRender, U as resolveSupersededKindRender } from './route-KoRMp3Qn.cjs';
2
2
  import './component-resolution.types-DY4pGymy.cjs';
3
3
  import 'react';
4
4
  import '@ai-matrx/content-ir';
package/dist/route.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { e as DB_KIND_COMPONENT_KEY, f as DIRECTIVE_BLOCK_TYPE, G as GENERIC_STRUCTURED_COMPONENT_KEY, s as GenericFallbackReason, I as IR_PROVISIONAL_KEY, t as IR_ROUTE_KEY, w as IrRouteMarker, x as KindRouteBinding, y as KindRouteOptions, P as PartialRenderOptions, z as ProvisionalKindRender, A as SupersededKindRender, B as applyIrKindRoute, E as createKindRouteBinding, F as envelopeFromPartialKind, H as isPartialReadyKind, J as isProvisionalBlock, L as kindServerDataFromStoredValue, M as markKindPartialUnsafe, N as readIrRouteMarker, O as resetPartialUnsafeKinds, Q as resetSourcelessDbRowReports, R as resolveAnnouncedKindLoading, T as resolveProvisionalKindRender, U as resolveSupersededKindRender } from './route-D0f5H63n.js';
1
+ export { e as DB_KIND_COMPONENT_KEY, f as DIRECTIVE_BLOCK_TYPE, G as GENERIC_STRUCTURED_COMPONENT_KEY, s as GenericFallbackReason, I as IR_PROVISIONAL_KEY, t as IR_ROUTE_KEY, w as IrRouteMarker, x as KindRouteBinding, y as KindRouteOptions, P as PartialRenderOptions, z as ProvisionalKindRender, A as SupersededKindRender, B as applyIrKindRoute, E as createKindRouteBinding, F as envelopeFromPartialKind, H as isPartialReadyKind, J as isProvisionalBlock, L as kindServerDataFromStoredValue, M as markKindPartialUnsafe, N as readIrRouteMarker, O as resetPartialUnsafeKinds, Q as resetSourcelessDbRowReports, R as resolveAnnouncedKindLoading, T as resolveProvisionalKindRender, U as resolveSupersededKindRender } from './route-CtYw2cTN.js';
2
2
  import './component-resolution.types-DY4pGymy.js';
3
3
  import 'react';
4
4
  import '@ai-matrx/content-ir';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/content-ir-react",
3
- "version": "0.17.1",
3
+ "version": "0.18.0",
4
4
  "description": "The shared AI Matrx Content IR RENDER layer: kind routing, the component resolver, provisional (streaming) rendering, the runtime-wrapper chrome, and the generic structured floor — as portable React.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",