@declarion/react 0.38.5 → 0.40.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 (50) hide show
  1. package/dist-lib/{DraggableChildrenTable-DvJO6-m0.js → DraggableChildrenTable-Ctmn0liO.js} +27 -27
  2. package/dist-lib/{Grid-D2ArPFCz.js → Grid-BsIkTp3u.js} +42 -42
  3. package/dist-lib/{LayoutRenderer-C8DQ61Vo.js → LayoutRenderer-D4oTfZhV.js} +833 -731
  4. package/dist-lib/{MarkdownRenderer-CSuODN70.js → MarkdownRenderer-B-2CrtjU.js} +1 -1
  5. package/dist-lib/{RefreshControl-CHvOUn0o.js → RefreshControl-VQf34HKZ.js} +302 -220
  6. package/dist-lib/SmartDetailPage.impl-HMaLVDlV.js +1802 -0
  7. package/dist-lib/SmartRecordListPage.impl-Cxm7qvlZ.js +763 -0
  8. package/dist-lib/api/params.d.ts +12 -11
  9. package/dist-lib/components/columns/ColumnPicker.d.ts +11 -1
  10. package/dist-lib/components/detail-layout/EvidenceBlock.d.ts +6 -0
  11. package/dist-lib/components/detail-layout/useManualColumnResize.d.ts +25 -0
  12. package/dist-lib/components/list/QuickPeek.d.ts +11 -2
  13. package/dist-lib/components/pages/list/{ListBulkBar.d.ts → ListFloatbar.d.ts} +3 -3
  14. package/dist-lib/components/pages/list/RowActionsCell.d.ts +8 -10
  15. package/dist-lib/components/pages/list/RowContextMenu.d.ts +29 -0
  16. package/dist-lib/components/pages/list/SaveViewDialog.d.ts +5 -1
  17. package/dist-lib/components/pages/list/cardProjection.d.ts +1 -1
  18. package/dist-lib/components/pages/list/column-sizing.d.ts +15 -0
  19. package/dist-lib/components/pages/list/columns.d.ts +3 -0
  20. package/dist-lib/components/pages/list/useHeaderReorder.d.ts +26 -0
  21. package/dist-lib/components/pages/list/useRowMenu.d.ts +47 -0
  22. package/dist-lib/components/pages/profile/Profile.d.ts +3 -0
  23. package/dist-lib/components/pages/tenant-params/TenantParamsPage.d.ts +2 -0
  24. package/dist-lib/components/params/ParamsBlock.d.ts +25 -0
  25. package/dist-lib/components/params/param-editors.d.ts +28 -0
  26. package/dist-lib/components/primitives/Dropdown.d.ts +10 -1
  27. package/dist-lib/components/shared/ActionButton.d.ts +1 -7
  28. package/dist-lib/components/shared/ActionDialog.d.ts +2 -2
  29. package/dist-lib/components/shared/ResponsiveActionBar.d.ts +45 -23
  30. package/dist-lib/declarion-react.css +1 -1
  31. package/dist-lib/hooks/useParams.d.ts +45 -1
  32. package/dist-lib/index.d.ts +0 -2
  33. package/dist-lib/index.js +3561 -2570
  34. package/dist-lib/lib/actions.d.ts +44 -3
  35. package/dist-lib/lib/evidence-verdict.d.ts +11 -0
  36. package/dist-lib/lib/rowClickGesture.d.ts +14 -0
  37. package/dist-lib/registry-DFtAh6zc.js +4991 -0
  38. package/dist-lib/stores/list-layout.d.ts +86 -0
  39. package/dist-lib/testing.js +27 -27
  40. package/dist-lib/types/api.d.ts +29 -1
  41. package/dist-lib/types/schema.d.ts +12 -0
  42. package/dist-lib/{useCurrentScreen-DD3KdlMj.js → useCurrentScreen-mw8TfE8q.js} +596 -382
  43. package/dist-lib/{useProperties-CliP5qvg.js → useProperties-gMdnhdhO.js} +117 -117
  44. package/dist-lib/{value-CNy3_xCA.js → value-t9ETvWIJ.js} +4 -4
  45. package/package.json +1 -1
  46. package/dist-lib/SmartDetailPage.impl-Cl306lX3.js +0 -1768
  47. package/dist-lib/SmartRecordListPage.impl-j8bhyL4e.js +0 -763
  48. package/dist-lib/components/list/RowMenu.d.ts +0 -23
  49. package/dist-lib/components/shared/ActionConfirmDialog.d.ts +0 -10
  50. package/dist-lib/registry-C3hbFTDQ.js +0 -5400
@@ -1,4 +1,17 @@
1
1
  import type { Action, ActionCondition, Entity, LocalizedString, Schema } from "../types/schema";
2
+ /**
3
+ * Row-menu navigation platform-default action codes. The server injects them
4
+ * into every entity and (for explicit action_layout trees) prepends them so the
5
+ * Row Menu leads with navigation. `__peek` opens the Quick peek drawer (mode-less
6
+ * client verb); `__open` navigates to the record's detail page (href). Shared by
7
+ * the dispatcher, the nav-divider renderer, and client-side suppression (drop
8
+ * `__peek` where peek is unavailable, `__open` where the entity has no detail
9
+ * route). Kept as named constants because these codes are read in 3+ places.
10
+ */
11
+ export declare const PEEK_ACTION_CODE = "__peek";
12
+ export declare const OPEN_ACTION_CODE = "__open";
13
+ /** True when the code is one of the leading row-menu navigation defaults. */
14
+ export declare function isNavDefaultCode(code: string): boolean;
2
15
  /**
3
16
  * rowDetailId builds the detail-route id for a row - the value an href's
4
17
  * `${id}` placeholder and a detail screen's `:id` segment receive - addressing
@@ -22,9 +35,10 @@ export declare function actionConditionFieldValue(row: Record<string, unknown>,
22
35
  export declare function withActionConditionFields<T extends Record<string, unknown>>(row: T): T;
23
36
  /**
24
37
  * Returns actions from an entity whose visibility array contains the given
25
- * placement. Canonical values: detail | list_row | list_toolbar | app_menu |
26
- * nav_create | command_palette. Schema validator rejects unknown values at
27
- * load time so we don't need runtime alias handling here.
38
+ * placement. Canonical values (the 9 the Go validator accepts): detail |
39
+ * detail_toolbar | list_row | list_toolbar | list_floatbar | quick_peek |
40
+ * app_menu | nav_create | command_palette. Schema validator rejects unknown
41
+ * values at load time so we don't need runtime alias handling here.
28
42
  */
29
43
  export declare function getActionsByVisibility(actions: Record<string, Action> | undefined, visibility: string): Array<{
30
44
  code: string;
@@ -50,6 +64,33 @@ export declare function filterUnavailableMutationActions(actions: Array<{
50
64
  * Checks if an action has parameters that need user input.
51
65
  */
52
66
  export declare function actionHasParams(action: Action): boolean;
67
+ /**
68
+ * Default confirmation copy for a destructive action that declares none. A
69
+ * LocalizedString like every user-facing string in the platform, resolved
70
+ * against the caller's locale by `actionConfirmMessage`. A consumer's own
71
+ * `confirmation` (also localized) overrides it.
72
+ */
73
+ export declare const DEFAULT_DESTRUCTIVE_CONFIRM: LocalizedString;
74
+ /**
75
+ * The confirmation message to show before running an action, or null when no
76
+ * confirm step is needed. This is the SINGLE source of confirm semantics, read
77
+ * by every dispatch surface (the ActionRunner and ActionButton) so they cannot
78
+ * drift (see docs/ui-internals.md "Action dialogs and dispatch"):
79
+ * - a declared `confirmation` wins (works on any action, destructive or not);
80
+ * - else a `destructive` action gets the default danger warning;
81
+ * - else null (no confirm).
82
+ * Both the declared text and the default are localized and resolved against
83
+ * `locale`. `destructive` is a semantic class (danger colour + trailing
84
+ * placement + the server impersonation gate + agent HITL); the confirm is one
85
+ * of its effects, and `confirmation` only tunes the TEXT - not a second gate.
86
+ */
87
+ export declare function actionConfirmMessage(action: Action | undefined, locale: string): string | null;
88
+ /**
89
+ * True when the action must show a confirm step (destructive OR a declared
90
+ * confirmation). Locale-independent - it is a presence check, so the runner can
91
+ * decide whether to open the dialog without resolving the text.
92
+ */
93
+ export declare function actionNeedsConfirm(action: Action | undefined): boolean;
53
94
  /**
54
95
  * Tooltip text for an action control (plan 2026-07-02-action-display-description).
55
96
  * Precedence: disabled-reason > description > name.
@@ -0,0 +1,11 @@
1
+ import type { PillTone } from "../components/primitives/Pill";
2
+ export declare const EVIDENCE_VERDICT: {
3
+ readonly verified: "verified";
4
+ readonly unverified: "unverified";
5
+ readonly tampered: "tampered";
6
+ readonly erased: "erased";
7
+ readonly indeterminate: "indeterminate";
8
+ readonly outsideCoverage: "outside_coverage";
9
+ };
10
+ export declare function verdictLabel(verdict: string): string;
11
+ export declare function verdictTone(verdict: string): PillTone;
@@ -0,0 +1,14 @@
1
+ /** Window to wait for a second click before committing to the single-click
2
+ * (peek) action. Comfortably inside the OS double-click interval so real
3
+ * double-clicks are caught, short enough that the peek does not feel laggy. */
4
+ export declare const ROW_DOUBLE_CLICK_MS = 250;
5
+ /** A deferred single click awaiting a possible second click. */
6
+ export type RowClickPending = {
7
+ rowId: string;
8
+ } | null;
9
+ /**
10
+ * Classify a click on `rowId` given the pending deferred-click state:
11
+ * "double" when the same row already has an undelivered deferred click (this is
12
+ * its second click), otherwise "single".
13
+ */
14
+ export declare function classifyRowClick(pending: RowClickPending, rowId: string): "single" | "double";