@declarion/react 0.52.0 → 0.53.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.
- package/dist-lib/{DraggableChildrenTable-CJCjc_cd.js → DraggableChildrenTable-BQZTvZaU.js} +35 -35
- package/dist-lib/{Grid-DUjbQg3r.js → Grid-B9Tiytbd.js} +28 -28
- package/dist-lib/{LayoutRenderer-DbdxC-Bq.js → LayoutRenderer-D_v9OD_A.js} +920 -922
- package/dist-lib/{ListCardsBody-C8ofksQb.js → ListCardsBody-dRnXsQ7A.js} +14 -14
- package/dist-lib/{MarkdownRenderer-B9_5fwuE.js → MarkdownRenderer-BCyrsLrd.js} +10 -10
- package/dist-lib/{record-documents-key-8fdm7C10.js → RecordIdBadge-CGxPR-8q.js} +1 -4
- package/dist-lib/{RefreshControl-C-8UCyau.js → RefreshControl-CV8nGACW.js} +120 -122
- package/dist-lib/{SmartDetailPage.impl-DWjNQ052.js → SmartDetailPage.impl-DWprVNMb.js} +376 -377
- package/dist-lib/{SmartListPage.impl-yKBK7a8b.js → SmartListPage.impl-BwWURGwa.js} +1098 -1099
- package/dist-lib/{SmartRecordListPage.impl-DRpU_DOC.js → SmartRecordListPage.impl-BKKBShAg.js} +183 -183
- package/dist-lib/{SortHeaderMenu-CbihbEGd.js → SortHeaderMenu-pgi4sxMs.js} +1 -1
- package/dist-lib/{action-dispatch-C28UhXXA.js → action-dispatch-DlHTYag7.js} +382 -382
- package/dist-lib/api/events.d.ts +27 -5
- package/dist-lib/{cardProjection-Bp_ZPLUE.js → cardProjection-C7Orz841.js} +146 -204
- package/dist-lib/components/pages/DocumentsMenu.d.ts +1 -1
- package/dist-lib/components/pages/RecordDocumentsPanel.d.ts +2 -2
- package/dist-lib/components/pages/list/useListQuery.d.ts +6 -1
- package/dist-lib/components/shared/RefreshControl.d.ts +7 -1
- package/dist-lib/components/shared/useOwnRefresh.d.ts +9 -0
- package/dist-lib/{field-classification-CeYJlsNq.js → field-classification-EY8CFF3P.js} +301 -320
- package/dist-lib/{format-count-C3N-WxEy.js → format-count-BHkaDr9V.js} +245 -245
- package/dist-lib/hooks/useMutations.d.ts +1 -1
- package/dist-lib/hooks/useSSE.d.ts +24 -4
- package/dist-lib/index.js +1541 -1832
- package/dist-lib/lib/document-templates.d.ts +1 -1
- package/dist-lib/lib/realtime-reconcile.d.ts +43 -0
- package/dist-lib/{peekDraftStore-D3sowXga.js → peekDraftStore-1pIajluX.js} +36 -36
- package/dist-lib/{registry-p6CejATt.js → registry-C5ug25M8.js} +507 -507
- package/dist-lib/stores/realtime.d.ts +20 -0
- package/dist-lib/testing.js +35 -35
- package/dist-lib/{useCurrentScreen-74x5yJNb.js → useCurrentScreen-BdnZq8vZ.js} +2504 -1557
- package/dist-lib/{useListQuery-D75bgLLz.js → useListQuery-BxgrPZIB.js} +13 -10
- package/dist-lib/{useProperties-C5fZp12D.js → useProperties-Bhi9Wn5O.js} +25 -25
- package/dist-lib/useTabSearchMirror-Dl5x0xKu.js +177 -0
- package/dist-lib/{value-DKekzcjz.js → value-Rp-5W3o8.js} +25 -25
- package/package.json +7 -7
- package/dist-lib/useTabSearchMirror-D_wzoYRz.js +0 -406
package/dist-lib/api/events.d.ts
CHANGED
|
@@ -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?:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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;
|