@declarion/react 0.52.0 → 0.54.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.
Files changed (65) hide show
  1. package/dist-lib/{DraggableChildrenTable-CJCjc_cd.js → DraggableChildrenTable-CPoUY99R.js} +35 -35
  2. package/dist-lib/{Grid-DUjbQg3r.js → Grid--QAEby8k.js} +28 -28
  3. package/dist-lib/{LayoutRenderer-DbdxC-Bq.js → LayoutRenderer-BxZ7Nd9b.js} +920 -922
  4. package/dist-lib/{ListCardsBody-C8ofksQb.js → ListCardsBody-BPV4GPrv.js} +14 -14
  5. package/dist-lib/{MarkdownRenderer-B9_5fwuE.js → MarkdownRenderer-CIKuh_0i.js} +10 -10
  6. package/dist-lib/{record-documents-key-8fdm7C10.js → RecordIdBadge-CGxPR-8q.js} +1 -4
  7. package/dist-lib/{RefreshControl-C-8UCyau.js → RefreshControl-DMLkZP3R.js} +120 -122
  8. package/dist-lib/{SmartDetailPage.impl-DWjNQ052.js → SmartDetailPage.impl-SnNu6Ug-.js} +376 -377
  9. package/dist-lib/{SmartListPage.impl-yKBK7a8b.js → SmartListPage.impl-C73pR7Iw.js} +1098 -1099
  10. package/dist-lib/{SmartRecordListPage.impl-DRpU_DOC.js → SmartRecordListPage.impl-rJjQZe1V.js} +183 -183
  11. package/dist-lib/{SortHeaderMenu-CbihbEGd.js → SortHeaderMenu-DQ_KrkWk.js} +1 -1
  12. package/dist-lib/{action-dispatch-C28UhXXA.js → action-dispatch-DsuUS7ae.js} +382 -382
  13. package/dist-lib/api/agents.d.ts +0 -1
  14. package/dist-lib/api/events.d.ts +27 -5
  15. package/dist-lib/{cardProjection-Bp_ZPLUE.js → cardProjection-BadzqyeQ.js} +146 -204
  16. package/dist-lib/components/actions/ObjectActionBar.d.ts +1 -1
  17. package/dist-lib/components/chrome/Breadcrumbs.d.ts +1 -1
  18. package/dist-lib/components/detail-layout/DetailAuditStrip.d.ts +1 -1
  19. package/dist-lib/components/detail-layout/DetailHighlights.d.ts +1 -1
  20. package/dist-lib/components/detail-layout/DraggableChildrenTable.d.ts +1 -1
  21. package/dist-lib/components/detail-layout/EditableChildrenTable.d.ts +1 -1
  22. package/dist-lib/components/detail-layout/LayoutRenderer.d.ts +1 -1
  23. package/dist-lib/components/file-widgets/host.d.ts +1 -1
  24. package/dist-lib/components/layout/Layout.d.ts +1 -1
  25. package/dist-lib/components/layout/TopBar.d.ts +1 -1
  26. package/dist-lib/components/list/InlineEditCell.d.ts +1 -1
  27. package/dist-lib/components/list/PeekFieldCell.d.ts +1 -1
  28. package/dist-lib/components/list/QuickPeek.d.ts +1 -1
  29. package/dist-lib/components/pages/DocumentsMenu.d.ts +1 -1
  30. package/dist-lib/components/pages/RecordDocumentsPanel.d.ts +2 -2
  31. package/dist-lib/components/pages/auth/AuthShell.d.ts +1 -1
  32. package/dist-lib/components/pages/list/ListCardRow.d.ts +1 -1
  33. package/dist-lib/components/pages/list/ListCardsBody.d.ts +1 -1
  34. package/dist-lib/components/pages/list/ListFloatbar.d.ts +1 -1
  35. package/dist-lib/components/pages/list/ListHeader.d.ts +1 -1
  36. package/dist-lib/components/pages/list/columns.d.ts +1 -1
  37. package/dist-lib/components/pages/list/filter-meta.d.ts +1 -1
  38. package/dist-lib/components/pages/list/use-filter-value-labels.d.ts +1 -1
  39. package/dist-lib/components/pages/list/useListQuery.d.ts +6 -1
  40. package/dist-lib/components/pages/list/useListRowInteraction.d.ts +1 -1
  41. package/dist-lib/components/pages/list/useListViews.d.ts +1 -1
  42. package/dist-lib/components/pages/list/useRowMenu.d.ts +1 -1
  43. package/dist-lib/components/shared/RefreshControl.d.ts +7 -1
  44. package/dist-lib/components/shared/useOwnRefresh.d.ts +9 -0
  45. package/dist-lib/{field-classification-CeYJlsNq.js → field-classification-sMkkAEg9.js} +301 -320
  46. package/dist-lib/{format-count-C3N-WxEy.js → format-count-B5SLlNOb.js} +245 -245
  47. package/dist-lib/hooks/useMutations.d.ts +1 -1
  48. package/dist-lib/hooks/useSSE.d.ts +24 -4
  49. package/dist-lib/index.js +1586 -1858
  50. package/dist-lib/lib/action-dispatch.d.ts +1 -1
  51. package/dist-lib/lib/document-templates.d.ts +1 -1
  52. package/dist-lib/lib/realtime-reconcile.d.ts +43 -0
  53. package/dist-lib/{peekDraftStore-D3sowXga.js → peekDraftStore-CbHFwz_F.js} +36 -36
  54. package/dist-lib/{registry-p6CejATt.js → registry-D0RhCnEL.js} +507 -507
  55. package/dist-lib/stores/realtime.d.ts +20 -0
  56. package/dist-lib/testing.js +35 -35
  57. package/dist-lib/types/api.d.ts +8 -4
  58. package/dist-lib/types/schema.d.ts +6 -0
  59. package/dist-lib/{useCurrentScreen-74x5yJNb.js → useCurrentScreen-DVTXCj_K.js} +2508 -1557
  60. package/dist-lib/{useListQuery-D75bgLLz.js → useListQuery-C2nq58YV.js} +13 -10
  61. package/dist-lib/{useProperties-C5fZp12D.js → useProperties-BcIz-MyO.js} +25 -25
  62. package/dist-lib/useTabSearchMirror-UYCsopxP.js +177 -0
  63. package/dist-lib/{value-DKekzcjz.js → value-CQzGOI0F.js} +25 -25
  64. package/package.json +14 -14
  65. package/dist-lib/useTabSearchMirror-D_wzoYRz.js +0 -406
@@ -110,7 +110,6 @@ export interface AgentConversation {
110
110
  in?: number;
111
111
  out?: number;
112
112
  cached_in?: number;
113
- cost_cents?: number;
114
113
  };
115
114
  }
116
115
  export interface AvailableAgent {
@@ -1,21 +1,43 @@
1
+ /**
2
+ * What a change frame says happened. The relay emits exactly these three
3
+ * (`golang/internal/realtime/mapper_coerce.go`, `actionForOp`); a restore is an
4
+ * SQL update and arrives as `updated`, so a branch on a fourth value is dead.
5
+ * Declared once here because every layer below reads the same wire word.
6
+ */
7
+ export type EntityAction = "created" | "updated" | "deleted";
8
+ /** One row a change frame names: its object id and its primary key. */
9
+ export interface ChangedObject {
10
+ object_id?: string;
11
+ pk?: Record<string, string>;
12
+ }
1
13
  export type SSEEvent = {
2
14
  type: "entity_changed";
3
15
  eventID?: string;
4
16
  entity: string;
5
17
  ids: string[];
6
- objects?: Array<{
7
- object_id?: string;
8
- pk?: Record<string, string>;
9
- }>;
10
- action: "created" | "updated" | "deleted" | "restored";
18
+ objects?: ChangedObject[];
19
+ action: EntityAction;
20
+ /**
21
+ * Why the frame names no rows, when it names none. Only
22
+ * `access_not_projectable` can mean a viewer LOST a row, so only it may
23
+ * empty a cache; the rest leave a screen stale rather than wrong.
24
+ */
25
+ reason?: string;
11
26
  } | {
12
27
  type: "checkpoint";
13
28
  eventID: string;
29
+ } | {
30
+ type: "replay_complete";
31
+ seq?: number;
14
32
  } | {
15
33
  type: "realtime_degraded";
16
34
  eventID?: string;
17
35
  entity: string;
18
36
  degradedSeq?: number;
37
+ } | {
38
+ type: "realtime_restored";
39
+ eventID?: string;
40
+ restoredSeq?: number;
19
41
  } | {
20
42
  type: "cache_reset";
21
43
  eventID?: string;