@declarion/react 0.54.0 → 0.56.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 (175) hide show
  1. package/dist-lib/{DraggableChildrenTable-CPoUY99R.js → DraggableChildrenTable-BV5sb8Uo.js} +32 -32
  2. package/dist-lib/{Grid--QAEby8k.js → Grid-DWgUPuZ3.js} +45 -45
  3. package/dist-lib/{JsonEditor-DoNmyrYd.js → JsonEditor-Dz1PQHC8.js} +2 -2
  4. package/dist-lib/{LayoutRenderer-BxZ7Nd9b.js → LayoutRenderer-C9AH9cXf.js} +716 -714
  5. package/dist-lib/{ListCardsBody-BPV4GPrv.js → ListCardsBody-DXcDg536.js} +29 -29
  6. package/dist-lib/{MarkdownRenderer-CIKuh_0i.js → MarkdownRenderer-CcSFc2N3.js} +1 -1
  7. package/dist-lib/{RefreshControl-DMLkZP3R.js → RefreshControl-CNtN8zSl.js} +41 -41
  8. package/dist-lib/{SmartDetailPage.impl-SnNu6Ug-.js → SmartDetailPage.impl-lskCd-WG.js} +492 -492
  9. package/dist-lib/{SmartListPage.impl-C73pR7Iw.js → SmartListPage.impl-CrGbdzyK.js} +744 -743
  10. package/dist-lib/{SmartRecordListPage.impl-rJjQZe1V.js → SmartRecordListPage.impl-Bkl9aZJ8.js} +129 -129
  11. package/dist-lib/{SortHeaderMenu-DQ_KrkWk.js → SortHeaderMenu-SYSAaqQJ.js} +1 -1
  12. package/dist-lib/{action-dispatch-DsuUS7ae.js → action-dispatch-CR4ajBtT.js} +179 -179
  13. package/dist-lib/api/auth.d.ts +1 -1
  14. package/dist-lib/api/batch.d.ts +1 -1
  15. package/dist-lib/api/data.d.ts +3 -3
  16. package/dist-lib/api/entities.d.ts +1 -1
  17. package/dist-lib/api/events.d.ts +13 -4
  18. package/dist-lib/api/params.d.ts +1 -1
  19. package/dist-lib/api/properties.d.ts +1 -1
  20. package/dist-lib/api/schema.d.ts +1 -1
  21. package/dist-lib/api/status.d.ts +1 -1
  22. package/dist-lib/{cardProjection-BadzqyeQ.js → cardProjection-CW5RIMko.js} +24 -24
  23. package/dist-lib/components/actions/ActionButton.d.ts +1 -1
  24. package/dist-lib/components/actions/ActionDialog.d.ts +1 -1
  25. package/dist-lib/components/actions/ActionRunner.d.ts +1 -1
  26. package/dist-lib/components/actions/ObjectActionBar.d.ts +3 -3
  27. package/dist-lib/components/actions/PropertyGridEditor.d.ts +2 -2
  28. package/dist-lib/components/actions/ResponsiveActionBar.d.ts +2 -2
  29. package/dist-lib/components/actions/RowActionsKebab.d.ts +1 -1
  30. package/dist-lib/components/agents/AgentConversationDrawer.d.ts +1 -1
  31. package/dist-lib/components/agents/AgentPicker.d.ts +1 -1
  32. package/dist-lib/components/agents/transcript-runs.d.ts +1 -1
  33. package/dist-lib/components/chrome/AssociationTabs.d.ts +1 -1
  34. package/dist-lib/components/chrome/Breadcrumbs.d.ts +1 -1
  35. package/dist-lib/components/detail-layout/AssociatedBlock.d.ts +1 -1
  36. package/dist-lib/components/detail-layout/AssociatedToolbar.d.ts +1 -1
  37. package/dist-lib/components/detail-layout/ChildrenBlock.d.ts +2 -2
  38. package/dist-lib/components/detail-layout/DetailAuditStrip.d.ts +2 -2
  39. package/dist-lib/components/detail-layout/DetailHighlights.d.ts +3 -3
  40. package/dist-lib/components/detail-layout/DraggableChildrenTable.d.ts +3 -3
  41. package/dist-lib/components/detail-layout/EditableChildrenTable.d.ts +3 -3
  42. package/dist-lib/components/detail-layout/EvidenceBlock.d.ts +1 -1
  43. package/dist-lib/components/detail-layout/FieldsBlock.d.ts +1 -1
  44. package/dist-lib/components/detail-layout/LayoutColumn.d.ts +1 -1
  45. package/dist-lib/components/detail-layout/LayoutRenderer.d.ts +3 -3
  46. package/dist-lib/components/detail-layout/LayoutRow.d.ts +1 -1
  47. package/dist-lib/components/detail-layout/LayoutTabs.d.ts +1 -1
  48. package/dist-lib/components/detail-layout/PropertiesBlock.d.ts +1 -1
  49. package/dist-lib/components/detail-layout/QuickAddForm.d.ts +2 -2
  50. package/dist-lib/components/detail-layout/SectionBlock.d.ts +1 -1
  51. package/dist-lib/components/detail-layout/StatusesBlock.d.ts +1 -1
  52. package/dist-lib/components/detail-layout/TimelineComposer.d.ts +2 -2
  53. package/dist-lib/components/detail-layout/blockMeta.d.ts +1 -1
  54. package/dist-lib/components/detail-layout/useQuickAdd.d.ts +2 -2
  55. package/dist-lib/components/detail-layout/widgets/WidgetHost.d.ts +1 -1
  56. package/dist-lib/components/fields/RefCombobox.d.ts +2 -2
  57. package/dist-lib/components/fields/cells/factories/host-icons.d.ts +1 -1
  58. package/dist-lib/components/fields/cells/registry.d.ts +2 -2
  59. package/dist-lib/components/fields/index.d.ts +3 -3
  60. package/dist-lib/components/file-widgets/helpers.d.ts +1 -1
  61. package/dist-lib/components/file-widgets/host.d.ts +3 -3
  62. package/dist-lib/components/file-widgets/payload.d.ts +2 -2
  63. package/dist-lib/components/file-widgets/types.d.ts +1 -1
  64. package/dist-lib/components/file-widgets/useEmbedFileSrc.d.ts +1 -1
  65. package/dist-lib/components/filters/FilterChips.d.ts +1 -1
  66. package/dist-lib/components/filters/FilterDrawer.d.ts +3 -3
  67. package/dist-lib/components/layout/CommandPalette.d.ts +2 -2
  68. package/dist-lib/components/layout/Layout.d.ts +3 -3
  69. package/dist-lib/components/layout/Rail.d.ts +2 -2
  70. package/dist-lib/components/layout/Sidebar.d.ts +1 -1
  71. package/dist-lib/components/layout/TabStrip.d.ts +1 -1
  72. package/dist-lib/components/layout/TenantChip.d.ts +1 -1
  73. package/dist-lib/components/layout/TopBar.d.ts +1 -1
  74. package/dist-lib/components/layout/tab-close.d.ts +1 -1
  75. package/dist-lib/components/list/InlineEditCell.d.ts +1 -1
  76. package/dist-lib/components/list/PeekFieldCell.d.ts +2 -2
  77. package/dist-lib/components/list/QuickPeek.d.ts +3 -3
  78. package/dist-lib/components/list/ViewSwitcher.d.ts +1 -1
  79. package/dist-lib/components/pages/DocumentsMenu.d.ts +1 -1
  80. package/dist-lib/components/pages/ExportMenu.d.ts +1 -1
  81. package/dist-lib/components/pages/RecordDocumentsPanel.d.ts +1 -1
  82. package/dist-lib/components/pages/auth/AuthShell.d.ts +1 -1
  83. package/dist-lib/components/pages/exportRequest.d.ts +1 -1
  84. package/dist-lib/components/pages/list/ListCardRow.d.ts +3 -3
  85. package/dist-lib/components/pages/list/ListCardsBody.d.ts +3 -3
  86. package/dist-lib/components/pages/list/ListFloatbar.d.ts +3 -3
  87. package/dist-lib/components/pages/list/ListHeader.d.ts +3 -3
  88. package/dist-lib/components/pages/list/ListNoRows.d.ts +1 -1
  89. package/dist-lib/components/pages/list/ListTable.d.ts +2 -2
  90. package/dist-lib/components/pages/list/ListTableRow.d.ts +1 -1
  91. package/dist-lib/components/pages/list/ListToolbar.d.ts +7 -5
  92. package/dist-lib/components/pages/list/RowActionsCell.d.ts +1 -1
  93. package/dist-lib/components/pages/list/RowContextMenu.d.ts +1 -1
  94. package/dist-lib/components/pages/list/SortHeaderMenu.d.ts +1 -1
  95. package/dist-lib/components/pages/list/cardProjection.d.ts +2 -2
  96. package/dist-lib/components/pages/list/columns.d.ts +3 -3
  97. package/dist-lib/components/pages/list/filter-meta.d.ts +2 -2
  98. package/dist-lib/components/pages/list/sortable-header.d.ts +1 -1
  99. package/dist-lib/components/pages/list/table-features.d.ts +1 -1
  100. package/dist-lib/components/pages/list/use-filter-value-labels.d.ts +4 -4
  101. package/dist-lib/components/pages/list/useListColumnLayout.d.ts +1 -1
  102. package/dist-lib/components/pages/list/useListQuery.d.ts +4 -8
  103. package/dist-lib/components/pages/list/useListRowInteraction.d.ts +4 -4
  104. package/dist-lib/components/pages/list/useListSelection.d.ts +2 -2
  105. package/dist-lib/components/pages/list/useListSort.d.ts +1 -1
  106. package/dist-lib/components/pages/list/useListViews.d.ts +3 -3
  107. package/dist-lib/components/pages/list/useRowMenu.d.ts +3 -3
  108. package/dist-lib/components/pages/tenant-params/TenantParamsPage.d.ts +1 -1
  109. package/dist-lib/components/params/param-editors.d.ts +1 -1
  110. package/dist-lib/components/primitives/ClassifiedFieldLocked.d.ts +1 -1
  111. package/dist-lib/components/shared/MarkdownRenderer.d.ts +1 -1
  112. package/dist-lib/components/shared/StatusGroupsDisplay.d.ts +2 -2
  113. package/dist-lib/embed/screen-location.d.ts +1 -1
  114. package/dist-lib/{field-classification-sMkkAEg9.js → field-classification-D6xQYn-h.js} +271 -400
  115. package/dist-lib/{format-count-B5SLlNOb.js → format-count-Dobmi-Ji.js} +238 -238
  116. package/dist-lib/hooks/useAgentConversation.d.ts +1 -1
  117. package/dist-lib/hooks/useAllEntityData.d.ts +1 -1
  118. package/dist-lib/hooks/useAssociatedData.d.ts +1 -1
  119. package/dist-lib/hooks/useBranding.d.ts +4 -4
  120. package/dist-lib/hooks/useBrandingChrome.d.ts +2 -2
  121. package/dist-lib/hooks/useChildrenData.d.ts +1 -1
  122. package/dist-lib/hooks/useCurrentScreen.d.ts +1 -1
  123. package/dist-lib/hooks/useCursorEntityData.d.ts +5 -5
  124. package/dist-lib/hooks/useEntity.d.ts +1 -1
  125. package/dist-lib/hooks/useEntityData.d.ts +8 -1
  126. package/dist-lib/hooks/useFilters.d.ts +1 -1
  127. package/dist-lib/hooks/useImpersonation.d.ts +1 -1
  128. package/dist-lib/hooks/useLiveObject.d.ts +2 -2
  129. package/dist-lib/hooks/useMutations.d.ts +3 -3
  130. package/dist-lib/hooks/useObject.d.ts +1 -1
  131. package/dist-lib/hooks/useParams.d.ts +2 -2
  132. package/dist-lib/hooks/useRealtimeThresholds.d.ts +1 -0
  133. package/dist-lib/hooks/useRegisterScreenTab.d.ts +1 -1
  134. package/dist-lib/hooks/useResponsiveMode.d.ts +1 -1
  135. package/dist-lib/hooks/useSSE.d.ts +1 -2
  136. package/dist-lib/hooks/useScreen.d.ts +1 -1
  137. package/dist-lib/hooks/useTimelineData.d.ts +2 -2
  138. package/dist-lib/hooks/useViews.d.ts +1 -1
  139. package/dist-lib/index.js +811 -811
  140. package/dist-lib/lib/action-dispatch.d.ts +2 -2
  141. package/dist-lib/lib/actions.d.ts +1 -1
  142. package/dist-lib/lib/brand-tokens.d.ts +1 -1
  143. package/dist-lib/lib/branding.d.ts +1 -1
  144. package/dist-lib/lib/child-config.d.ts +1 -1
  145. package/dist-lib/lib/children-validation.d.ts +2 -2
  146. package/dist-lib/lib/document-templates.d.ts +1 -1
  147. package/dist-lib/lib/evidence-verdict.d.ts +1 -1
  148. package/dist-lib/lib/mass-edit.d.ts +1 -1
  149. package/dist-lib/lib/messages.d.ts +2 -2
  150. package/dist-lib/lib/realtime-query-keys.d.ts +22 -0
  151. package/dist-lib/lib/realtime-reconcile.d.ts +1 -10
  152. package/dist-lib/lib/realtime-resync.d.ts +23 -0
  153. package/dist-lib/lib/rich-text.d.ts +1 -1
  154. package/dist-lib/lib/schema-routing.d.ts +1 -1
  155. package/dist-lib/lib/screen-back.d.ts +1 -1
  156. package/dist-lib/lib/size-value.d.ts +1 -1
  157. package/dist-lib/lib/toast.d.ts +2 -2
  158. package/dist-lib/lib/ui-actions.d.ts +1 -1
  159. package/dist-lib/lib/variants.d.ts +1 -1
  160. package/dist-lib/{peekDraftStore-CbHFwz_F.js → peekDraftStore-5wQ7lq_V.js} +17 -17
  161. package/dist-lib/{registry-D0RhCnEL.js → registry-CjgUaF7C.js} +511 -511
  162. package/dist-lib/stores/auth.d.ts +1 -1
  163. package/dist-lib/stores/preferences.d.ts +1 -1
  164. package/dist-lib/stores/realtime.d.ts +86 -19
  165. package/dist-lib/testing.d.ts +4 -4
  166. package/dist-lib/testing.js +40 -40
  167. package/dist-lib/types/api.d.ts +1 -1
  168. package/dist-lib/types/schema.d.ts +2 -2
  169. package/dist-lib/{useCurrentScreen-DVTXCj_K.js → useCurrentScreen-CzwzQpoW.js} +2476 -1967
  170. package/dist-lib/useListQuery-D7Hr5WM1.js +96 -0
  171. package/dist-lib/{useProperties-BcIz-MyO.js → useProperties-CqtCzFCr.js} +25 -25
  172. package/dist-lib/{useTabSearchMirror-UYCsopxP.js → useTabSearchMirror-C39U85cg.js} +13 -13
  173. package/dist-lib/{value-CQzGOI0F.js → value-Bo8C8WMU.js} +4 -4
  174. package/package.json +10 -10
  175. package/dist-lib/useListQuery-C2nq58YV.js +0 -90
@@ -1,4 +1,4 @@
1
- import type { AuthUser, Tenant } from "../types/api";
1
+ import type { AuthUser, Tenant } from "../types/api.d.ts";
2
2
  interface AuthState {
3
3
  user: AuthUser | null;
4
4
  isAuthenticated: boolean;
@@ -1,4 +1,4 @@
1
- import type { BrandingPreferences } from "../types/api";
1
+ import type { BrandingPreferences } from "../types/api.d.ts";
2
2
  export type ColorScheme = "light" | "dark";
3
3
  export type AccentId = "violet" | "blue" | "teal" | "amber" | "rose";
4
4
  export type Density = "compact" | "comfortable" | "cozy";
@@ -1,29 +1,96 @@
1
+ import type { QueryCacheNotifyEvent, QueryKey } from "@tanstack/react-query";
2
+ /** A query as the query cache holds it, whatever its data type. */
3
+ export type CachedQuery = QueryCacheNotifyEvent["query"];
4
+ /** An entity the relay is not delivering; `mark` lets a resync drop only the mark it saw. */
5
+ export interface DegradedMark {
6
+ mark: number;
7
+ since: number;
8
+ }
9
+ export interface RealtimeThresholds {
10
+ pauseGraceMs: number;
11
+ silenceMs: number;
12
+ }
13
+ /**
14
+ * Which query keys a resync covers. `all` and `entities` also take in matching
15
+ * keys first observed while the resync is pending; `keys` is fixed.
16
+ */
17
+ export type ResyncScope = {
18
+ kind: "all";
19
+ } | {
20
+ kind: "entities";
21
+ entities: ReadonlySet<string>;
22
+ } | {
23
+ kind: "keys";
24
+ };
25
+ export interface Resync {
26
+ id: number;
27
+ /** The fetch generation when it opened; only a fetch stamped above it satisfies a key. */
28
+ generation: number;
29
+ openedAt: number;
30
+ /** A refused read: shown at once, never issued, closed only by a fetch someone else starts. */
31
+ standing: boolean;
32
+ issued: boolean;
33
+ /** Whether issuing waits a random delay, so a fleet-wide cause does not burst. */
34
+ jitter: boolean;
35
+ scope: ResyncScope;
36
+ /** Query hash → key. */
37
+ keys: ReadonlyMap<string, QueryKey>;
38
+ /** Query hash → the query last seen observed under it, so a removed one still blocks while observed. */
39
+ observed: ReadonlyMap<string, CachedQuery>;
40
+ /** Marks dropped on completion, each only while it still carries this number. */
41
+ carriedMarks: ReadonlyMap<string, number>;
42
+ /** Entities with an observed key not yet satisfied. */
43
+ blocking: ReadonlySet<string>;
44
+ }
1
45
  interface RealtimeState {
2
- /** Entity codes the relay auto-degraded this session. */
3
- degradedEntities: ReadonlySet<string>;
4
- /** Mark one entity as auto-degraded. Idempotent. */
46
+ degradedEntities: ReadonlyMap<string, DegradedMark>;
47
+ /** Mark one entity degraded. A repeated mark renumbers it and keeps its start. */
5
48
  markDegraded: (entityCode: string) => void;
6
- /** Realtime is delivering everything again; forget every degraded entity. */
7
- clearDegraded: () => void;
49
+ /** Drop each mark named, only while the entity still carries that number. */
50
+ unmarkDegraded: (marks: ReadonlyMap<string, number>) => void;
51
+ /** Self-closing: no connection has stated its snapshot, or it went silent. */
52
+ connectionInterruptedSince: number | null;
53
+ holdConnectionInterruption: () => void;
54
+ clearConnectionInterruption: () => void;
55
+ /** Self-closing: the server's last word says the relay may not be streaming. */
56
+ relayInterruptedSince: number | null;
57
+ holdRelayInterruption: () => void;
58
+ clearRelayInterruption: () => void;
59
+ /** Self-closing: a connection presented a position and its replay has not applied. */
60
+ replayStartedAt: number | null;
61
+ startReplay: () => void;
62
+ endReplay: () => void;
8
63
  /**
9
- * True while a presented resume position's replay has not landed. The rows
10
- * keep rendering; what is not true is that they are up to date.
64
+ * Null while the declared thresholds load. `unreadable` is itself a held
65
+ * connection interruption, shown at once: claiming "Live" without the means
66
+ * to know is the defect this model removes.
11
67
  */
12
- replayPending: boolean;
13
- setReplayPending: (pending: boolean) => void;
14
- /**
15
- * True while a row re-read was turned away for budget. The rows keep
16
- * rendering, but only a refresh the person asks for will renew them.
17
- */
18
- readRefused: boolean;
19
- setReadRefused: (refused: boolean) => void;
68
+ thresholds: RealtimeThresholds | "unreadable" | null;
69
+ setThresholds: (thresholds: RealtimeThresholds | "unreadable" | null) => void;
70
+ resyncs: readonly Resync[];
71
+ addResync: (resync: Omit<Resync, "id">) => number;
72
+ updateResync: (id: number, patch: Partial<Omit<Resync, "id">>) => void;
73
+ removeResync: (id: number) => void;
20
74
  }
21
75
  export declare const useRealtimeStore: import("zustand").UseBoundStore<import("zustand").StoreApi<RealtimeState>>;
22
- export declare function isEntityLive(realtimeFlag: boolean | undefined, degradedEntities: ReadonlySet<string>, entityCode: string): boolean;
76
+ export declare function isEntityLive(realtimeFlag: boolean | undefined, degradedEntities: {
77
+ has(entityCode: string): boolean;
78
+ }, entityCode: string): boolean;
79
+ type CurrentnessInputs = Pick<RealtimeState, "degradedEntities" | "connectionInterruptedSince" | "relayInterruptedSince" | "replayStartedAt" | "thresholds" | "resyncs">;
80
+ /**
81
+ * Whether an entity is current at `now`, and the next instant that answer can
82
+ * flip without any state changing - when a self-closing cause reaches the pause
83
+ * grace. Measured from each cause's stored start, so every surface flips at the
84
+ * same instant.
85
+ */
86
+ export declare function screenCurrentness(state: CurrentnessInputs, realtimeFlag: boolean | undefined, entityCode: string, now: number): {
87
+ live: boolean;
88
+ recheckAt: number | null;
89
+ };
23
90
  /**
24
- * Whether a screen showing this entity is CURRENT - a different question from
25
- * isEntityLive, which answers whether the relay delivers at all. The rows keep
26
- * rendering throughout; this is what says they may be behind. docs/realtime.md.
91
+ * The one predicate every indicator reads: is the screen showing this entity
92
+ * CURRENT. The rows keep rendering throughout; this says whether they may be
93
+ * behind. docs/realtime.md "Currentness".
27
94
  */
28
95
  export declare function useScreenIsLive(realtimeFlag: boolean | undefined, entityCode: string): boolean;
29
96
  export {};
@@ -1,10 +1,10 @@
1
1
  import { type ReactElement, type ReactNode } from "react";
2
2
  import { type RenderResult } from "@testing-library/react";
3
3
  import { QueryClient } from "@tanstack/react-query";
4
- import { type ResponsiveViewport } from "./hooks/useResponsiveMode";
5
- import { type ActionExecuteRequest, type ActionExecuteResponse } from "./api/data";
6
- import type { Schema } from "./types/schema";
7
- import type { DataResponse, ListMeta, ListResponse, Refs } from "./types/api";
4
+ import { type ResponsiveViewport } from "./hooks/useResponsiveMode.d.ts";
5
+ import { type ActionExecuteRequest, type ActionExecuteResponse } from "./api/data.d.ts";
6
+ import type { Schema } from "./types/schema.d.ts";
7
+ import type { DataResponse, ListMeta, ListResponse, Refs } from "./types/api.d.ts";
8
8
  /** A single action's stubbed outcome: the action's RESULT payload (what
9
9
  * executeDeclarionAction unwraps from response.result), or a function of the
10
10
  * dispatched body returning it. The harness always wraps it in a success
@@ -1,4 +1,4 @@
1
- import { Er as e, Jt as t, Vt as n, nn as r, on as i, r as a, rn as o, t as s, tn as c } from "./useCurrentScreen-DVTXCj_K.js";
1
+ import { $t as e, Bt as t, cn as n, dn as r, jr as i, on as a, r as o, sn as s, t as c } from "./useCurrentScreen-CzwzQpoW.js";
2
2
  import { useState as l } from "react";
3
3
  import { MemoryRouter as u, useLocation as d } from "react-router";
4
4
  import { QueryClient as f, QueryClientProvider as p } from "@tanstack/react-query";
@@ -74,7 +74,7 @@ function T() {
74
74
  created_at: "2026-01-01T00:00:00Z",
75
75
  updated_at: "2026-01-01T00:00:00Z"
76
76
  };
77
- i.getState().setUser(t, e);
77
+ r.getState().setUser(t, e);
78
78
  }
79
79
  function E(e) {
80
80
  if (e === void 0) return { rows: [] };
@@ -89,15 +89,15 @@ function E(e) {
89
89
  }
90
90
  return e;
91
91
  }
92
- function D(e) {
93
- let n = e.entityData ?? {};
94
- o((t, r) => {
95
- let i = r;
96
- e.onListRequest?.(t, i);
97
- let a = n[t], o = typeof a == "function" ? a(i) : a;
92
+ function D(t) {
93
+ let r = t.entityData ?? {};
94
+ n((e, n) => {
95
+ let i = n;
96
+ t.onListRequest?.(e, i);
97
+ let a = r[e], o = typeof a == "function" ? a(i) : a;
98
98
  if (o instanceof Error) throw o;
99
99
  let s = E(o), c = s.meta?.per_page ?? 50, l = s.meta?.total ?? s.rows.length;
100
- return r.count === "only" ? {
100
+ return n.count === "only" ? {
101
101
  data: [],
102
102
  meta: {
103
103
  page: 1,
@@ -116,64 +116,64 @@ function D(e) {
116
116
  ...s.refs === void 0 ? {} : { $refs: s.refs }
117
117
  };
118
118
  });
119
- let i = e.entityItems ?? {}, a = e.entityItemResponses ?? {};
120
- r((e, n) => {
121
- let r = typeof n == "string" ? n : t(n), o = a[e]?.[r];
122
- if (o instanceof Error) throw o;
123
- if (o !== void 0) return o;
124
- let s = i[e]?.[r];
119
+ let i = t.entityItems ?? {}, o = t.entityItemResponses ?? {};
120
+ s((t, n) => {
121
+ let r = typeof n == "string" ? n : e(n), a = o[t]?.[r];
122
+ if (a instanceof Error) throw a;
123
+ if (a !== void 0) return a;
124
+ let s = i[t]?.[r];
125
125
  if (s instanceof Error) throw s;
126
126
  return { data: s };
127
127
  });
128
- let s = e.actionResults ?? {};
129
- c(async (e, t) => {
130
- if (!(e in s)) throw Error(`renderWithDeclarion: no action result registered for "${e}" (seed it via actionResults)`);
131
- let n = s[e];
128
+ let c = t.actionResults ?? {};
129
+ a(async (e, t) => {
130
+ if (!(e in c)) throw Error(`renderWithDeclarion: no action result registered for "${e}" (seed it via actionResults)`);
131
+ let n = c[e];
132
132
  return C(typeof n == "function" ? await n(t) : n);
133
133
  });
134
134
  }
135
135
  function O() {
136
- o(null), r(null), c(null), i.setState({
136
+ n(null), s(null), a(null), r.setState({
137
137
  user: null,
138
138
  isAuthenticated: !1,
139
139
  activeTenant: null,
140
140
  tenants: []
141
141
  });
142
142
  }
143
- function k(t, r = {}) {
144
- let i = new f({ defaultOptions: { queries: {
143
+ function k(e, n = {}) {
144
+ let r = new f({ defaultOptions: { queries: {
145
145
  retry: !1,
146
146
  gcTime: Infinity
147
147
  } } });
148
- T(), i.setQueryData(["schema", !0], r.schema ?? v()), D(r);
149
- let o = r.screenCode ? /* @__PURE__ */ h(s, {
150
- code: r.screenCode,
151
- children: t
152
- }) : t, c = { current: r.route ?? "/" }, l = /* @__PURE__ */ g(p, {
153
- client: i,
148
+ T(), r.setQueryData(["schema", !0], n.schema ?? v()), D(n);
149
+ let a = n.screenCode ? /* @__PURE__ */ h(c, {
150
+ code: n.screenCode,
151
+ children: e
152
+ }) : e, s = { current: n.route ?? "/" }, l = /* @__PURE__ */ g(p, {
153
+ client: r,
154
154
  children: [/* @__PURE__ */ g(u, {
155
- initialEntries: [r.route ?? "/"],
156
- children: [/* @__PURE__ */ h(w, { into: c }), /* @__PURE__ */ h(a, { children: o })]
155
+ initialEntries: [n.route ?? "/"],
156
+ children: [/* @__PURE__ */ h(w, { into: s }), /* @__PURE__ */ h(o, { children: a })]
157
157
  }), /* @__PURE__ */ h(m, {})]
158
- }), d = r.embedQuery ? /* @__PURE__ */ h(n, {
159
- query: r.embedQuery,
158
+ }), d = n.embedQuery ? /* @__PURE__ */ h(t, {
159
+ query: n.embedQuery,
160
160
  children: l
161
- }) : l, y = _(r.viewport ? /* @__PURE__ */ h(e, {
162
- viewportOverride: r.viewport,
161
+ }) : l, y = _(n.viewport ? /* @__PURE__ */ h(i, {
162
+ viewportOverride: n.viewport,
163
163
  children: d
164
164
  }) : d);
165
165
  return Object.assign(y, {
166
- queryClient: i,
167
- location: () => c.current
166
+ queryClient: r,
167
+ location: () => s.current
168
168
  });
169
169
  }
170
170
  function A({ children: e, authenticated: t = !0, ...n }) {
171
- let [r] = l(() => {
171
+ let [i] = l(() => {
172
172
  let e = new f({ defaultOptions: { queries: {
173
173
  retry: !1,
174
174
  gcTime: Infinity
175
175
  } } });
176
- return t ? (T(), e.setQueryData(["schema", !0], n.schema ?? v())) : i.setState({
176
+ return t ? (T(), e.setQueryData(["schema", !0], n.schema ?? v())) : r.setState({
177
177
  user: null,
178
178
  isAuthenticated: !1,
179
179
  activeTenant: null,
@@ -181,10 +181,10 @@ function A({ children: e, authenticated: t = !0, ...n }) {
181
181
  }), D(n), e;
182
182
  });
183
183
  return /* @__PURE__ */ g(p, {
184
- client: r,
184
+ client: i,
185
185
  children: [/* @__PURE__ */ h(u, {
186
186
  initialEntries: [n.route ?? "/"],
187
- children: /* @__PURE__ */ h(a, { children: e })
187
+ children: /* @__PURE__ */ h(o, { children: e })
188
188
  }), /* @__PURE__ */ h(m, {})]
189
189
  });
190
190
  }
@@ -1,6 +1,6 @@
1
1
  import type { AccentDef, EntityField, LocalizedString } from "./schema";
2
2
  import type { HydratedFile } from "./files";
3
- import type { FilterNode } from "../lib/filters";
3
+ import type { FilterNode } from "../lib/filters.d.ts";
4
4
  export interface ListMeta {
5
5
  /**
6
6
  * Total matching rows. Present only when the request asked for a count
@@ -1,7 +1,7 @@
1
1
  import { OrderedMap } from "./ordmap";
2
2
  import type { FileFieldDef } from "./files";
3
- import type { IconDef } from "../stores/icon-registry";
4
- import type { FilterNode } from "../lib/filters";
3
+ import type { IconDef } from "../stores/icon-registry.d.ts";
4
+ import type { FilterNode } from "../lib/filters.d.ts";
5
5
  export { OrderedMap };
6
6
  export type { IconDef };
7
7
  export type LocalizedString = Record<string, string>;