@declarion/react 0.53.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 (52) hide show
  1. package/dist-lib/{DraggableChildrenTable-BQZTvZaU.js → DraggableChildrenTable-CPoUY99R.js} +1 -1
  2. package/dist-lib/{Grid-B9Tiytbd.js → Grid--QAEby8k.js} +2 -2
  3. package/dist-lib/{LayoutRenderer-D_v9OD_A.js → LayoutRenderer-BxZ7Nd9b.js} +6 -6
  4. package/dist-lib/{ListCardsBody-dRnXsQ7A.js → ListCardsBody-BPV4GPrv.js} +4 -4
  5. package/dist-lib/{MarkdownRenderer-BCyrsLrd.js → MarkdownRenderer-CIKuh_0i.js} +1 -1
  6. package/dist-lib/{RefreshControl-CV8nGACW.js → RefreshControl-DMLkZP3R.js} +2 -2
  7. package/dist-lib/{SmartDetailPage.impl-DWprVNMb.js → SmartDetailPage.impl-SnNu6Ug-.js} +8 -8
  8. package/dist-lib/{SmartListPage.impl-BwWURGwa.js → SmartListPage.impl-C73pR7Iw.js} +11 -11
  9. package/dist-lib/{SmartRecordListPage.impl-BKKBShAg.js → SmartRecordListPage.impl-rJjQZe1V.js} +9 -9
  10. package/dist-lib/{SortHeaderMenu-pgi4sxMs.js → SortHeaderMenu-DQ_KrkWk.js} +1 -1
  11. package/dist-lib/{action-dispatch-DlHTYag7.js → action-dispatch-DsuUS7ae.js} +3 -3
  12. package/dist-lib/api/agents.d.ts +0 -1
  13. package/dist-lib/{cardProjection-C7Orz841.js → cardProjection-BadzqyeQ.js} +2 -2
  14. package/dist-lib/components/actions/ObjectActionBar.d.ts +1 -1
  15. package/dist-lib/components/chrome/Breadcrumbs.d.ts +1 -1
  16. package/dist-lib/components/detail-layout/DetailAuditStrip.d.ts +1 -1
  17. package/dist-lib/components/detail-layout/DetailHighlights.d.ts +1 -1
  18. package/dist-lib/components/detail-layout/DraggableChildrenTable.d.ts +1 -1
  19. package/dist-lib/components/detail-layout/EditableChildrenTable.d.ts +1 -1
  20. package/dist-lib/components/detail-layout/LayoutRenderer.d.ts +1 -1
  21. package/dist-lib/components/file-widgets/host.d.ts +1 -1
  22. package/dist-lib/components/layout/Layout.d.ts +1 -1
  23. package/dist-lib/components/layout/TopBar.d.ts +1 -1
  24. package/dist-lib/components/list/InlineEditCell.d.ts +1 -1
  25. package/dist-lib/components/list/PeekFieldCell.d.ts +1 -1
  26. package/dist-lib/components/list/QuickPeek.d.ts +1 -1
  27. package/dist-lib/components/pages/auth/AuthShell.d.ts +1 -1
  28. package/dist-lib/components/pages/list/ListCardRow.d.ts +1 -1
  29. package/dist-lib/components/pages/list/ListCardsBody.d.ts +1 -1
  30. package/dist-lib/components/pages/list/ListFloatbar.d.ts +1 -1
  31. package/dist-lib/components/pages/list/ListHeader.d.ts +1 -1
  32. package/dist-lib/components/pages/list/columns.d.ts +1 -1
  33. package/dist-lib/components/pages/list/filter-meta.d.ts +1 -1
  34. package/dist-lib/components/pages/list/use-filter-value-labels.d.ts +1 -1
  35. package/dist-lib/components/pages/list/useListRowInteraction.d.ts +1 -1
  36. package/dist-lib/components/pages/list/useListViews.d.ts +1 -1
  37. package/dist-lib/components/pages/list/useRowMenu.d.ts +1 -1
  38. package/dist-lib/{field-classification-EY8CFF3P.js → field-classification-sMkkAEg9.js} +1 -1
  39. package/dist-lib/{format-count-BHkaDr9V.js → format-count-B5SLlNOb.js} +5 -5
  40. package/dist-lib/index.js +269 -250
  41. package/dist-lib/lib/action-dispatch.d.ts +1 -1
  42. package/dist-lib/{peekDraftStore-1pIajluX.js → peekDraftStore-CbHFwz_F.js} +1 -1
  43. package/dist-lib/{registry-C5ug25M8.js → registry-D0RhCnEL.js} +3 -3
  44. package/dist-lib/testing.js +1 -1
  45. package/dist-lib/types/api.d.ts +8 -4
  46. package/dist-lib/types/schema.d.ts +6 -0
  47. package/dist-lib/{useCurrentScreen-BdnZq8vZ.js → useCurrentScreen-DVTXCj_K.js} +350 -346
  48. package/dist-lib/{useListQuery-BxgrPZIB.js → useListQuery-C2nq58YV.js} +2 -2
  49. package/dist-lib/{useProperties-Bhi9Wn5O.js → useProperties-BcIz-MyO.js} +1 -1
  50. package/dist-lib/{useTabSearchMirror-Dl5x0xKu.js → useTabSearchMirror-UYCsopxP.js} +2 -2
  51. package/dist-lib/{value-Rp-5W3o8.js → value-CQzGOI0F.js} +1 -1
  52. package/package.json +9 -9
@@ -1,4 +1,4 @@
1
- import { type UIActionContext } from "../lib/ui-actions";
1
+ import { type UIActionContext } from "./ui-actions";
2
2
  import type { UIStep } from "../types/schema";
3
3
  export declare function dispatchAction(code: string, action: {
4
4
  ui_steps?: UIStep[];
@@ -1,5 +1,5 @@
1
1
  import { s as e } from "./DynamicIcon-DW5krHuX.js";
2
- import { Dr as t, Ir as n, Mr as r, Yt as i, Zn as a, i as o, ur as s, wr as c } from "./useCurrentScreen-BdnZq8vZ.js";
2
+ import { Dr as t, Ir as n, Mr as r, Yt as i, Zn as a, i as o, ur as s, wr as c } from "./useCurrentScreen-DVTXCj_K.js";
3
3
  import { useMemo as l, useRef as u, useState as d } from "react";
4
4
  import { useQuery as f } from "@tanstack/react-query";
5
5
  import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  import { s as e, t } from "./DynamicIcon-DW5krHuX.js";
2
- import { $t as n, A as r, Bn as i, Cr as a, Dr as o, Fr as s, Gt as c, I as l, Ir as u, Jn as d, Jt as f, K as p, Kn as m, Kt as h, L as g, Mr as _, Mt as v, Pr as y, Q as b, St as x, U as S, W as C, Xn as w, Y as T, Yt as E, Z as D, Zn as O, Zt as k, an as A, et as j, i as M, in as N, k as P, lr as F, nt as I, qn as L, qt as ee, rr as R, rt as z, ur as B, vr as V, vt as H, wr as U, xr as te, yn as W } from "./useCurrentScreen-BdnZq8vZ.js";
3
- import { O as ne } from "./field-classification-EY8CFF3P.js";
4
- import { c as re, l as ie, o as ae, t as oe } from "./action-dispatch-DlHTYag7.js";
2
+ import { $t as n, A as r, Bn as i, Cr as a, Dr as o, Fr as s, Gt as c, I as l, Ir as u, Jn as d, Jt as f, K as p, Kn as m, Kt as h, L as g, Mr as _, Mt as v, Pr as y, Q as b, St as x, U as S, W as C, Xn as w, Y as T, Yt as E, Z as D, Zn as O, Zt as k, an as A, et as j, i as M, in as N, k as P, lr as F, nt as I, qn as L, qt as ee, rr as R, rt as z, ur as B, vr as V, vt as H, wr as U, xr as te, yn as W } from "./useCurrentScreen-DVTXCj_K.js";
3
+ import { O as ne } from "./field-classification-sMkkAEg9.js";
4
+ import { c as re, l as ie, o as ae, t as oe } from "./action-dispatch-DsuUS7ae.js";
5
5
  import { n as se, r as ce, t as G } from "./dataTableStyles-vwD1mVOP.js";
6
6
  import { Component as le, useCallback as K, useEffect as ue, useId as de, useMemo as q, useRef as J, useState as Y } from "react";
7
7
  import { useInfiniteQuery as fe, useQuery as pe, useQueryClient as X } from "@tanstack/react-query";
@@ -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-BdnZq8vZ.js";
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";
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";
@@ -1,4 +1,4 @@
1
- import type { AccentDef, LocalizedString } from "./schema";
1
+ import type { AccentDef, EntityField, LocalizedString } from "./schema";
2
2
  import type { HydratedFile } from "./files";
3
3
  import type { FilterNode } from "../lib/filters";
4
4
  export interface ListMeta {
@@ -398,7 +398,7 @@ export interface ParamLookup {
398
398
  /**
399
399
  * One entry of the bulk `GET /api/params` response (and per-code resolution).
400
400
  * Carries the declaration facets the admin UIs need to compute attachment,
401
- * render structure editors, and render choice selects, so the bulk endpoint is
401
+ * render structure editors, and render member selects, so the bulk endpoint is
402
402
  * self-sufficient without a second schema fetch.
403
403
  */
404
404
  export interface ResolvedParam {
@@ -413,8 +413,12 @@ export interface ResolvedParam {
413
413
  scopes?: string[];
414
414
  /** Structure code when `type === "structure"`. */
415
415
  structure?: string;
416
- /** Closed value set for a choices-constrained string param. */
417
- choices?: string[];
416
+ /** Members of a closed type - `enum`, or an enum-backed `string_array`.
417
+ * Carried whole rather than as bare codes so the editor can show a name. */
418
+ values?: EntityField["values"];
419
+ /** Shared enum this parameter names, when it names one rather than listing
420
+ * its members inline. Present for display; `values` is what to render. */
421
+ enum?: string;
418
422
  }
419
423
  export interface ParamOverride {
420
424
  param_code: string;
@@ -301,6 +301,12 @@ export interface ParameterDef {
301
301
  category?: string;
302
302
  /** Override scopes accepted on writes. Subset of: env, tenant, role, user, object. Empty = all. */
303
303
  scopes?: string[];
304
+ /** Members of a closed type - `enum`, or an enum-backed `string_array`. Resolved
305
+ * at load whether declared inline or by naming a shared enum, so this is the set
306
+ * the platform enforces. Same shape a field's members have. */
307
+ values?: EntityField["values"];
308
+ /** The shared enum this parameter names, when it names one. `values` is what to render. */
309
+ enum?: string;
304
310
  }
305
311
  export interface AssociationDisplay {
306
312
  name?: LocalizedString;