@declarion/react 0.51.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.
Files changed (37) hide show
  1. package/dist-lib/{DraggableChildrenTable-CJCjc_cd.js → DraggableChildrenTable-BQZTvZaU.js} +35 -35
  2. package/dist-lib/{Grid-DUjbQg3r.js → Grid-B9Tiytbd.js} +28 -28
  3. package/dist-lib/{LayoutRenderer-DbdxC-Bq.js → LayoutRenderer-D_v9OD_A.js} +920 -922
  4. package/dist-lib/{ListCardsBody-C8ofksQb.js → ListCardsBody-dRnXsQ7A.js} +14 -14
  5. package/dist-lib/{MarkdownRenderer-B9_5fwuE.js → MarkdownRenderer-BCyrsLrd.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-CV8nGACW.js} +120 -122
  8. package/dist-lib/{SmartDetailPage.impl-DWjNQ052.js → SmartDetailPage.impl-DWprVNMb.js} +376 -377
  9. package/dist-lib/{SmartListPage.impl-yKBK7a8b.js → SmartListPage.impl-BwWURGwa.js} +1098 -1099
  10. package/dist-lib/{SmartRecordListPage.impl-DRpU_DOC.js → SmartRecordListPage.impl-BKKBShAg.js} +183 -183
  11. package/dist-lib/{SortHeaderMenu-CbihbEGd.js → SortHeaderMenu-pgi4sxMs.js} +1 -1
  12. package/dist-lib/{action-dispatch-C28UhXXA.js → action-dispatch-DlHTYag7.js} +382 -382
  13. package/dist-lib/api/events.d.ts +27 -5
  14. package/dist-lib/{cardProjection-Bp_ZPLUE.js → cardProjection-C7Orz841.js} +146 -204
  15. package/dist-lib/components/pages/DocumentsMenu.d.ts +1 -1
  16. package/dist-lib/components/pages/RecordDocumentsPanel.d.ts +2 -2
  17. package/dist-lib/components/pages/list/useListQuery.d.ts +6 -1
  18. package/dist-lib/components/shared/RefreshControl.d.ts +7 -1
  19. package/dist-lib/components/shared/useOwnRefresh.d.ts +9 -0
  20. package/dist-lib/{field-classification-CeYJlsNq.js → field-classification-EY8CFF3P.js} +301 -320
  21. package/dist-lib/{format-count-C3N-WxEy.js → format-count-BHkaDr9V.js} +245 -245
  22. package/dist-lib/hooks/useMutations.d.ts +1 -1
  23. package/dist-lib/hooks/useSSE.d.ts +24 -4
  24. package/dist-lib/index.js +1541 -1832
  25. package/dist-lib/lib/document-templates.d.ts +1 -1
  26. package/dist-lib/lib/realtime-reconcile.d.ts +43 -0
  27. package/dist-lib/{peekDraftStore-D3sowXga.js → peekDraftStore-1pIajluX.js} +36 -36
  28. package/dist-lib/{registry-p6CejATt.js → registry-C5ug25M8.js} +507 -507
  29. package/dist-lib/stores/realtime.d.ts +20 -0
  30. package/dist-lib/testing.js +35 -35
  31. package/dist-lib/{useCurrentScreen-74x5yJNb.js → useCurrentScreen-BdnZq8vZ.js} +2504 -1557
  32. package/dist-lib/{useListQuery-D75bgLLz.js → useListQuery-BxgrPZIB.js} +13 -10
  33. package/dist-lib/{useProperties-C5fZp12D.js → useProperties-Bhi9Wn5O.js} +25 -25
  34. package/dist-lib/useTabSearchMirror-Dl5x0xKu.js +177 -0
  35. package/dist-lib/{value-DKekzcjz.js → value-Rp-5W3o8.js} +25 -25
  36. package/package.json +7 -7
  37. package/dist-lib/useTabSearchMirror-D_wzoYRz.js +0 -406
@@ -15,7 +15,7 @@ export interface DocumentsMenuProps {
15
15
  /** True when the caller can manage tenant document templates (heuristic:
16
16
  * `document_template` is present & readable in `schema.entities`). Gates
17
17
  * the lazy `document.templates.available` visibility probe so a
18
- * template-less, non-manager caller (the Haia default) makes ZERO extra
18
+ * template-less, non-manager caller - the default - makes ZERO extra
19
19
  * network calls - Business Case 6. */
20
20
  canManageTemplates?: boolean;
21
21
  }
@@ -9,11 +9,11 @@ interface RecordDocumentsPanelProps {
9
9
  * false/absent the shelf mounts ONLY if the record already has >=1
10
10
  * attached document - it never orphans visible history, but it also
11
11
  * never shows an empty "no documents" shelf on an entity with nothing to
12
- * generate and nothing generated (the Haia case). */
12
+ * generate and nothing generated. */
13
13
  canGenerateOne?: boolean;
14
14
  /** True when the caller can manage tenant document templates. Together with
15
15
  * canGenerateOne this gates whether the attachment fetch runs at all: a
16
- * template-less, non-manager caller (the Haia default) makes ZERO
16
+ * template-less, non-manager caller - the default - makes ZERO
17
17
  * document.object_links calls per record view. The rare orphaned-attachment
18
18
  * case (a template was removed but its current-attached docs remain) then
19
19
  * surfaces only to managers on the record and to everyone via My Documents,
@@ -39,7 +39,12 @@ export interface ListQueryResult {
39
39
  error: unknown;
40
40
  /** True while a load has been running long enough to be worth saying so. */
41
41
  isLoadingStale: boolean;
42
- retry: () => void;
42
+ /**
43
+ * Cancels this query's in-flight fetch and refetches it, resolving when both
44
+ * have settled - in that order. Returning nothing made every completion-based
45
+ * state silently instant, so a control that waited on it never waited.
46
+ */
47
+ retry: () => Promise<void>;
43
48
  /** The total, and how it was produced. Undefined while the count is in flight
44
49
  * or after it failed - a caller degrades to the loaded row count. */
45
50
  countTotal: number | undefined;
@@ -9,10 +9,16 @@
9
9
  */
10
10
  export interface RefreshControlProps {
11
11
  liveObject: {
12
+ /** Resolves when the refresh it starts has settled. See useOwnRefresh. */
12
13
  refetch: () => unknown;
13
- isFetching: boolean;
14
14
  isLoading: boolean;
15
15
  isLive: boolean;
16
+ /**
17
+ * @deprecated Ignored; the control reports only the refresh a person
18
+ * started. Passing it changes nothing. Declared so a consumer that builds
19
+ * this object literally still compiles.
20
+ */
21
+ isFetching?: boolean;
16
22
  };
17
23
  realtime?: boolean;
18
24
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Whether the refresh THIS control started is still running. A control driven
3
+ * by its query's flag reports somebody else's work and sits disabled exactly
4
+ * when a person reaches for it. docs/architecture.md.
5
+ */
6
+ export declare function useOwnRefresh(refetch: () => unknown): {
7
+ refreshing: boolean;
8
+ refresh: () => void;
9
+ };