@declarion/react 0.254.0 → 0.302.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 (31) hide show
  1. package/dist-lib/components/actions/ResponsiveActionBar.js +255 -239
  2. package/dist-lib/components/detail-layout/DetailHighlights.js +40 -40
  3. package/dist-lib/components/detail-layout/EvidenceBlock.js +10 -9
  4. package/dist-lib/components/detail-layout/useQuickAdd.js +45 -47
  5. package/dist-lib/components/fields/EnumField.js +25 -25
  6. package/dist-lib/components/fields/JsonField.js +8 -5
  7. package/dist-lib/components/fields/cells/factories/badge.js +14 -27
  8. package/dist-lib/components/fields/cells/factories/statusPill.js +13 -26
  9. package/dist-lib/components/fields/cells/factories/tagList.js +13 -26
  10. package/dist-lib/components/pages/SmartDetailPage.impl.js +416 -415
  11. package/dist-lib/components/pages/auth/AuthShell.js +57 -76
  12. package/dist-lib/components/pages/list/ListCardRow.js +66 -66
  13. package/dist-lib/components/pages/list/columns.js +30 -30
  14. package/dist-lib/components/pages/profile/Profile.impl.js +130 -126
  15. package/dist-lib/components/pages/tenant-params/TenantParamsPage.impl.js +107 -109
  16. package/dist-lib/components/params/ParamsBlock.js +42 -37
  17. package/dist-lib/components/params/param-editors.js +20 -33
  18. package/dist-lib/components/primitives/Btn.js +3 -0
  19. package/dist-lib/components/primitives/IconBtn.js +2 -2
  20. package/dist-lib/components/primitives/Pill.js +36 -15
  21. package/dist-lib/components/shared/StatusGroupsDisplay.js +49 -49
  22. package/dist-lib/declarion-react.css +1 -1
  23. package/dist-lib/hooks/useDeclaredEnum.js +38 -0
  24. package/dist-lib/hooks/useResponsiveMode.js +1 -1
  25. package/dist-lib/index.d.ts +34 -12
  26. package/dist-lib/index.js +123 -122
  27. package/dist-lib/lib/evidence-verdict.js +8 -20
  28. package/dist-lib/lib/fill-from.js +15 -0
  29. package/dist-lib/testing.d.ts +1 -1
  30. package/dist-lib/{useResponsiveMode-DjoWkC2n.d.ts → useResponsiveMode-CBSHZBY5.d.ts} +3 -1
  31. package/package.json +1 -1
package/dist-lib/index.js CHANGED
@@ -10,125 +10,126 @@ import { EntityClient as C, RefCache as w, entityClient as T } from "./api/entit
10
10
  import { ActionBatchError as E, buildActionBody as D, deleteObject as O, executeAction as k, restoreObject as A } from "./api/data.js";
11
11
  import { Batch as j } from "./api/batch.js";
12
12
  import { useSchema as M } from "./hooks/useSchema.js";
13
- import { useEntity as N } from "./hooks/useEntity.js";
14
- import { useScreen as P } from "./hooks/useScreen.js";
15
- import { CurrentScreenProvider as F, useCurrentScreen as I } from "./hooks/useCurrentScreen.js";
16
- import { useAuth as L } from "./hooks/useAuth.js";
17
- import { entityDataQueryKey as R, useEntityCount as z, useEntityData as B } from "./hooks/useEntityData.js";
18
- import { useAggregate as V } from "./hooks/useAggregate.js";
19
- import { cursorEntityDataQueryKey as H, cursorEntityStableKey as U, useCursorEntityData as W } from "./hooks/useCursorEntityData.js";
20
- import { useAllEntityData as G } from "./hooks/useAllEntityData.js";
21
- import { objectQueryKey as K, useObject as q } from "./hooks/useObject.js";
22
- import { fileReferenceJSONQueryKey as J, useFileReferenceJSON as Y } from "./hooks/useFileReferenceJSON.js";
23
- import { StructureField as X } from "./components/fields/StructureField.js";
24
- import { useLiveObject as Z } from "./hooks/useLiveObject.js";
25
- import { ACTION_DATA_CURSOR_KEY as Q, ACTION_DATA_KEY as $, actionDataQueryKey as ee, cursorActionDataQueryKey as te, useActionData as ne, useCursorActionData as re } from "./hooks/useActionData.js";
26
- import { useCreateObject as ie, useDeleteObject as ae, useUpdateObject as oe } from "./hooks/useMutations.js";
27
- import { useDebounce as se } from "./hooks/useDebounce.js";
28
- import { ResponsiveModeProvider as ce, useResponsiveMode as le } from "./hooks/useResponsiveMode.js";
29
- import { useEffectiveParam as ue, useParam as de, usePublicParams as fe, useResolvedParam as pe } from "./hooks/useParams.js";
30
- import { DEFAULT_RESPONSIVE_BREAKPOINTS as me, resolveViewportCategory as he } from "./lib/viewport-category.js";
31
- import { useSetStatus as ge } from "./hooks/useObjectStatus.js";
32
- import { useDeleteProperty as _e, useSetProperty as ve } from "./hooks/useProperties.js";
33
- import { useFilters as ye } from "./hooks/useFilters.js";
34
- import { useColumns as be } from "./hooks/useColumns.js";
35
- import { useViews as xe } from "./hooks/useViews.js";
36
- import { registerScreen as Se } from "./stores/screen-registry.js";
37
- import { getIcon as Ce, setIconRegistry as we } from "./stores/icon-registry.js";
38
- import { getLayoutWidget as Te, hasLayoutWidget as Ee, registerLayoutWidget as De } from "./components/detail-layout/widgets/registry.js";
39
- import { reresolveLanguage as Oe, useDeploymentLanguage as ke, useLanguage as Ae } from "./hooks/useLanguage.js";
40
- import { useText as je } from "./hooks/useText.js";
41
- import { MANDATORY_LANGUAGE as Me, makeTextFn as Ne, pickLocalized as Pe, pluralText as Fe, textWithNodes as Ie } from "./lib/language.js";
42
- import { failureTitle as Le } from "./lib/failure.js";
43
- import { readDisplayState as Re } from "./lib/read-display-state.js";
44
- import { useTabStore as ze } from "./stores/tabs.js";
45
- import { useTabNavigate as Be } from "./hooks/useTabNavigate.js";
46
- import { useScreenBack as Ve } from "./hooks/useScreenBack.js";
47
- import { usePageState as He } from "./hooks/usePageState.js";
48
- import { canonicalUrl as Ue } from "./lib/canonical-url.js";
49
- import { useRegisterRetainedQuery as We } from "./hooks/usePageStateRuntime.js";
50
- import { PAGE_STATE_TTL_PARAM as Ge, usePageStateTtl as Ke } from "./hooks/usePageStateTtl.js";
51
- import { useScreenTab as qe } from "./hooks/useScreenTab.js";
52
- import { useTabSearchMirror as Je } from "./hooks/useTabSearchMirror.js";
53
- import { SCROLL_STATE_KEY as Ye, usePlainScrollRestoration as Xe, useSavedScrollOffset as Ze, useVirtualScrollRestoration as Qe } from "./lib/scroll-restoration.js";
54
- import { SmartListPage as $e } from "./components/pages/SmartListPage.js";
55
- import { SmartDetailPage as et } from "./components/pages/SmartDetailPage.js";
56
- import { SmartRecordListPage as tt } from "./components/pages/SmartRecordListPage.js";
57
- import { DynamicIcon as nt } from "./components/shared/DynamicIcon.js";
58
- import { PageHeader as rt } from "./components/chrome/PageHeader.js";
59
- import { EmptyState as it } from "./components/shared/EmptyState.js";
60
- import { ConfirmDialog as at } from "./components/shared/ConfirmDialog.js";
61
- import { FilterDrawer as ot } from "./components/filters/FilterDrawer.js";
62
- import { FilterChips as st } from "./components/filters/FilterChips.js";
63
- import { ColumnPicker as ct } from "./components/list/ColumnPicker.js";
64
- import { ViewSwitcher as lt } from "./components/list/ViewSwitcher.js";
65
- import { ActionRunnerProvider as ut, useActionRunner as dt } from "./components/actions/ActionRunner.js";
66
- import { ObjectActionBar as ft, useObjectActions as pt } from "./components/actions/ObjectActionBar.js";
67
- import { RefreshControl as mt } from "./components/shared/RefreshControl.js";
68
- import { RefCombobox as ht } from "./components/fields/RefCombobox.js";
69
- import { QEField as gt, QuickPeek as _t } from "./components/list/QuickPeek.js";
70
- import { InlineEditCell as vt } from "./components/list/InlineEditCell.js";
71
- import { SignIn as yt } from "./components/pages/auth/SignIn.js";
72
- import { SignUp as bt } from "./components/pages/auth/SignUp.js";
73
- import { Forgot as xt } from "./components/pages/auth/Forgot.js";
74
- import { Reset as St } from "./components/pages/auth/Reset.js";
75
- import { TwoFA as Ct } from "./components/pages/auth/TwoFA.js";
76
- import { AuthShell as wt } from "./components/pages/auth/AuthShell.js";
77
- import { Profile as Tt } from "./components/pages/profile/Profile.js";
78
- import { Preferences as Et } from "./components/pages/profile/Preferences.js";
79
- import { ChangePasswordDialog as Dt } from "./components/shared/ChangePasswordDialog.js";
80
- import { Icon as Ot } from "./components/primitives/Icons.js";
81
- import { Btn as kt } from "./components/primitives/Btn.js";
82
- import { IconBtn as At } from "./components/primitives/IconBtn.js";
83
- import { Pill as jt } from "./components/primitives/Pill.js";
84
- import { Kbd as Mt } from "./components/primitives/Kbd.js";
85
- import { Avatar as Nt } from "./components/primitives/Avatar.js";
86
- import { BrandGlyph as Pt } from "./components/primitives/BrandGlyph.js";
87
- import { Dropdown as Ft } from "./components/primitives/Dropdown.js";
88
- import { HoverCard as It } from "./components/primitives/HoverCard.js";
89
- import { InfoTooltip as Lt, Tooltip as Rt } from "./components/primitives/Tooltip.js";
90
- import { Chip as zt } from "./components/primitives/Chip.js";
91
- import { SectionCard as Bt } from "./components/primitives/SectionCard.js";
92
- import { StatTile as Vt } from "./components/primitives/StatTile.js";
93
- import { RecordIdBadge as Ht } from "./components/primitives/RecordIdBadge.js";
94
- import { RowField as Ut } from "./components/primitives/RowField.js";
95
- import { BoolToggle as Wt } from "./components/primitives/BoolToggle.js";
96
- import { MenuItem as Gt } from "./components/primitives/MenuItem.js";
97
- import { Check as Kt } from "./components/primitives/Check.js";
98
- import { Spinner as qt } from "./components/primitives/Spinner.js";
99
- import { DateInput as Jt, FieldLabel as Yt, JsonField as Xt, MultiSelect as Zt, PasswordInput as Qt, QuickEditCell as $t, RefField as en, Select as tn, TagsInput as nn, TextArea as rn, TextInput as an, ViewField as on } from "./components/primitives/Fields.js";
100
- import { SquareImage as sn } from "./components/file-widgets/SquareImage.js";
101
- import { CircleImage as cn } from "./components/file-widgets/CircleImage.js";
102
- import { WideBanner as ln } from "./components/file-widgets/WideBanner.js";
103
- import { getFileWidget as un, hasFileWidget as dn, registerFileWidget as fn } from "./components/file-widgets/registry.js";
104
- import { UploadError as pn, discardFile as mn, formatBytes as hn, uploadFile as gn, validateClientSide as _n } from "./components/file-widgets/upload.js";
105
- import { getImageCropper as vn, setImageCropper as yn } from "./components/file-widgets/cropper.js";
106
- import { FileDraftScope as bn, useDraftRegistration as xn, useFileDraftScope as Sn } from "./components/file-widgets/draft-scope.js";
107
- import { fileSelectionReducer as Cn, summarizeFileSelections as wn, useFileSelection as Tn } from "./components/file-widgets/useFileSelection.js";
108
- import { Rail as En } from "./components/layout/Rail.js";
109
- import { Sidebar as Dn, buildSections as On } from "./components/layout/Sidebar.js";
110
- import { TopBar as kn } from "./components/layout/TopBar.js";
111
- import { TenantChip as An, envTone as jn } from "./components/layout/TenantChip.js";
112
- import { TabStrip as Mn } from "./components/layout/TabStrip.js";
113
- import { ImpersonationBanner as Nn } from "./components/layout/ImpersonationBanner.js";
114
- import { ImpersonationFrame as Pn } from "./components/layout/ImpersonationFrame.js";
115
- import { ImpersonationStartModal as Fn } from "./components/layout/ImpersonationStartModal.js";
116
- import { useImpersonation as In } from "./hooks/useImpersonation.js";
117
- import { CommandPalette as Ln } from "./components/layout/CommandPalette.js";
118
- import { AgentChatPanel as Rn } from "./components/agents/AgentChatPanel.js";
119
- import { AgentElicitForm as zn } from "./components/agents/AgentElicitForm.js";
120
- import { AgentPicker as Bn } from "./components/agents/AgentPicker.js";
121
- import { AgentConversationDrawer as Vn } from "./components/agents/AgentConversationDrawer.js";
122
- import { useAgentConversation as Hn } from "./hooks/useAgentConversation.js";
123
- import { answerQuestion as Un, approveInvocation as Wn, cancelConversation as Gn, cancelInvocation as Kn, createConversation as qn, listAvailableAgents as Jn, listConversations as Yn, loadConversationInvocations as Xn, loadConversationTurns as Zn, loadHistory as Qn, rejectInvocation as $n, sendElicitResponse as er, sendMessage as tr } from "./api/agents.js";
124
- import { Breadcrumbs as nr } from "./components/chrome/Breadcrumbs.js";
125
- import { NO_VALUE_OPS as rr, OP_LABELS as ir, countActiveFilters as ar, hasOrGroups as or, parseFilterURLState as sr, parseFiltersFromURL as cr, setFiltersInURL as lr } from "./lib/filters.js";
126
- import { evaluateFilterTree as ur } from "./lib/filter-evaluator.js";
127
- import { commonVariantActionCodes as dr, effectiveScreenForRecord as fr, resolveEntityVariantCode as pr, resolveScreenVariantCode as mr, variantActionCodesForRecord as hr } from "./lib/variants.js";
128
- import { formatCount as gr, formatEstimatedCount as _r, formatExactCount as vr } from "./lib/format-count.js";
129
- import { buildMassEditTargets as yr, parseTargetFilter as br } from "./lib/mass-edit.js";
130
- import { MULTIPLE_VALUES as xr, PropertyGridEditor as Sr, detectCommonValue as Cr } from "./components/actions/PropertyGridEditor.js";
131
- import { ClassifiedFieldLocked as wr } from "./components/primitives/ClassifiedFieldLocked.js";
132
- import { classificationTier as Tr, fieldAccessInfo as Er, fieldClassification as Dr, fieldRequiredPermission as Or, isFieldReadable as kr, isFieldSoDProtected as Ar, isFieldWritable as jr } from "./lib/field-classification.js";
133
- import { useLocation as Mr, useNavigate as Nr, useParams as Pr, useSearchParams as Fr } from "react-router";
134
- export { Q as ACTION_DATA_CURSOR_KEY, $ as ACTION_DATA_KEY, E as ActionBatchError, ut as ActionRunnerProvider, Rn as AgentChatPanel, Vn as AgentConversationDrawer, zn as AgentElicitForm, Bn as AgentPicker, e as App, wt as AuthShell, Nt as Avatar, j as Batch, Wt as BoolToggle, Pt as BrandGlyph, nr as Breadcrumbs, kt as Btn, p as CURSOR_LANGUAGE_CHANGED, m as CURSOR_SEMANTICS_MISMATCH, Dt as ChangePasswordDialog, Kt as Check, zt as Chip, cn as CircleImage, wr as ClassifiedFieldLocked, ct as ColumnPicker, Ln as CommandPalette, at as ConfirmDialog, F as CurrentScreenProvider, me as DEFAULT_RESPONSIVE_BREAKPOINTS, Jt as DateInput, e as Declarion, Ft as Dropdown, nt as DynamicIcon, it as EmptyState, C as EntityClient, Yt as FieldLabel, bn as FileDraftScope, st as FilterChips, ot as FilterDrawer, xt as Forgot, It as HoverCard, Ot as Icon, At as IconBtn, Nn as ImpersonationBanner, Pn as ImpersonationFrame, Fn as ImpersonationStartModal, Lt as InfoTooltip, vt as InlineEditCell, Xt as JsonField, Mt as Kbd, Me as MANDATORY_LANGUAGE, xr as MULTIPLE_VALUES, Gt as MenuItem, Zt as MultiSelect, rr as NO_VALUE_OPS, ir as OP_LABELS, ft as ObjectActionBar, t as OrderedMap, Ge as PAGE_STATE_TTL_PARAM, rt as PageHeader, Qt as PasswordInput, jt as Pill, Et as Preferences, Tt as Profile, Sr as PropertyGridEditor, gt as QEField, $t as QuickEditCell, _t as QuickPeek, En as Rail, Ht as RecordIdBadge, w as RefCache, ht as RefCombobox, en as RefField, mt as RefreshControl, St as Reset, ce as ResponsiveModeProvider, Ut as RowField, Ye as SCROLL_STATE_KEY, Bt as SectionCard, tn as Select, Dn as Sidebar, yt as SignIn, bt as SignUp, et as SmartDetailPage, $e as SmartListPage, tt as SmartRecordListPage, qt as Spinner, sn as SquareImage, Vt as StatTile, X as StructureField, Mn as TabStrip, nn as TagsInput, An as TenantChip, rn as TextArea, an as TextInput, Rt as Tooltip, kn as TopBar, Ct as TwoFA, pn as UploadError, on as ViewField, lt as ViewSwitcher, ln as WideBanner, ee as actionDataQueryKey, Un as answerQuestion, Wn as approveInvocation, D as buildActionBody, n as buildDetailHrefFromId, r as buildEntityDetailHref, yr as buildMassEditTargets, i as buildRowDetailHref, On as buildSections, Gn as cancelConversation, Kn as cancelInvocation, Ue as canonicalUrl, Tr as classificationTier, _ as coerceDisplayString, dr as commonVariantActionCodes, ar as countActiveFilters, qn as createConversation, te as cursorActionDataQueryKey, H as cursorEntityDataQueryKey, U as cursorEntityStableKey, O as deleteObject, Cr as detectCommonValue, mn as discardFile, v as editorWallClock, y as editorWireValue, fr as effectiveScreenForRecord, T as entityClient, R as entityDataQueryKey, jn as envTone, h as errorCodeOf, ur as evaluateFilterTree, k as executeAction, a as extractPkValues, Le as failureTitle, Er as fieldAccessInfo, Dr as fieldClassification, o as fieldDisplayName, Or as fieldRequiredPermission, J as fileReferenceJSONQueryKey, Cn as fileSelectionReducer, hn as formatBytes, gr as formatCount, _r as formatEstimatedCount, vr as formatExactCount, S as formatMoneyText, b as formatOffsetTimestamp, un as getFileWidget, Ce as getIcon, vn as getImageCropper, Te as getLayoutWidget, s as getPrimaryKeyFields, dn as hasFileWidget, Ee as hasLayoutWidget, or as hasOrGroups, g as isCursorStaleError, kr as isFieldReadable, Ar as isFieldSoDProtected, jr as isFieldWritable, Jn as listAvailableAgents, Yn as listConversations, Xn as loadConversationInvocations, Zn as loadConversationTurns, Qn as loadHistory, Ne as makeTextFn, K as objectQueryKey, sr as parseFilterURLState, cr as parseFiltersFromURL, br as parseTargetFilter, Pe as pickLocalized, c as pkValuePartsToId, l as pkValuesFromId, u as pkValuesToDetailId, d as pkValuesToId, Fe as pluralText, Re as readDisplayState, fn as registerFileWidget, De as registerLayoutWidget, Se as registerScreen, $n as rejectInvocation, Oe as reresolveLanguage, f as resolveDetailRoute, pr as resolveEntityVariantCode, mr as resolveScreenVariantCode, he as resolveViewportCategory, A as restoreObject, er as sendElicitResponse, tr as sendMessage, lr as setFiltersInURL, we as setIconRegistry, yn as setImageCropper, wn as summarizeFileSelections, Ie as textWithNodes, gn as uploadFile, ne as useActionData, dt as useActionRunner, Hn as useAgentConversation, V as useAggregate, G as useAllEntityData, L as useAuth, be as useColumns, ie as useCreateObject, I as useCurrentScreen, re as useCursorActionData, W as useCursorEntityData, se as useDebounce, ae as useDeleteObject, _e as useDeleteProperty, ke as useDeploymentLanguage, xn as useDraftRegistration, ue as useEffectiveParam, N as useEntity, z as useEntityCount, B as useEntityData, Sn as useFileDraftScope, Y as useFileReferenceJSON, Tn as useFileSelection, ye as useFilters, In as useImpersonation, Ae as useLanguage, Z as useLiveObject, Mr as useLocation, Nr as useNavigate, q as useObject, pt as useObjectActions, He as usePageState, Ke as usePageStateTtl, de as useParam, Pr as useParams, Xe as usePlainScrollRestoration, fe as usePublicParams, We as useRegisterRetainedQuery, pe as useResolvedParam, le as useResponsiveMode, Ze as useSavedScrollOffset, M as useSchema, P as useScreen, Ve as useScreenBack, qe as useScreenTab, Fr as useSearchParams, ve as useSetProperty, ge as useSetStatus, Be as useTabNavigate, Je as useTabSearchMirror, ze as useTabStore, je as useText, oe as useUpdateObject, xe as useViews, Qe as useVirtualScrollRestoration, _n as validateClientSide, hr as variantActionCodesForRecord, x as zoneMark };
13
+ import { useDeclaredEnum as N, useDeclaredField as P, useDeclaredStatuses as F } from "./hooks/useDeclaredEnum.js";
14
+ import { useEntity as I } from "./hooks/useEntity.js";
15
+ import { useScreen as L } from "./hooks/useScreen.js";
16
+ import { CurrentScreenProvider as R, useCurrentScreen as z } from "./hooks/useCurrentScreen.js";
17
+ import { useAuth as B } from "./hooks/useAuth.js";
18
+ import { entityDataQueryKey as V, useEntityCount as H, useEntityData as U } from "./hooks/useEntityData.js";
19
+ import { useAggregate as W } from "./hooks/useAggregate.js";
20
+ import { cursorEntityDataQueryKey as G, cursorEntityStableKey as K, useCursorEntityData as q } from "./hooks/useCursorEntityData.js";
21
+ import { useAllEntityData as J } from "./hooks/useAllEntityData.js";
22
+ import { objectQueryKey as Y, useObject as X } from "./hooks/useObject.js";
23
+ import { fileReferenceJSONQueryKey as Z, useFileReferenceJSON as Q } from "./hooks/useFileReferenceJSON.js";
24
+ import { StructureField as $ } from "./components/fields/StructureField.js";
25
+ import { useLiveObject as ee } from "./hooks/useLiveObject.js";
26
+ import { ACTION_DATA_CURSOR_KEY as te, ACTION_DATA_KEY as ne, actionDataQueryKey as re, cursorActionDataQueryKey as ie, useActionData as ae, useCursorActionData as oe } from "./hooks/useActionData.js";
27
+ import { useCreateObject as se, useDeleteObject as ce, useUpdateObject as le } from "./hooks/useMutations.js";
28
+ import { useDebounce as ue } from "./hooks/useDebounce.js";
29
+ import { ResponsiveModeProvider as de, useResponsiveMode as fe } from "./hooks/useResponsiveMode.js";
30
+ import { DEFAULT_RESPONSIVE_BREAKPOINTS as pe, resolveViewportCategory as me } from "./lib/viewport-category.js";
31
+ import { useEffectiveParam as he, useParam as ge, usePublicParams as _e, useResolvedParam as ve } from "./hooks/useParams.js";
32
+ import { useSetStatus as ye } from "./hooks/useObjectStatus.js";
33
+ import { useDeleteProperty as be, useSetProperty as xe } from "./hooks/useProperties.js";
34
+ import { useFilters as Se } from "./hooks/useFilters.js";
35
+ import { useColumns as Ce } from "./hooks/useColumns.js";
36
+ import { useViews as we } from "./hooks/useViews.js";
37
+ import { registerScreen as Te } from "./stores/screen-registry.js";
38
+ import { getIcon as Ee, setIconRegistry as De } from "./stores/icon-registry.js";
39
+ import { getLayoutWidget as Oe, hasLayoutWidget as ke, registerLayoutWidget as Ae } from "./components/detail-layout/widgets/registry.js";
40
+ import { reresolveLanguage as je, useDeploymentLanguage as Me, useLanguage as Ne } from "./hooks/useLanguage.js";
41
+ import { useText as Pe } from "./hooks/useText.js";
42
+ import { MANDATORY_LANGUAGE as Fe, makeTextFn as Ie, pickLocalized as Le, pluralText as Re, textWithNodes as ze } from "./lib/language.js";
43
+ import { failureTitle as Be } from "./lib/failure.js";
44
+ import { readDisplayState as Ve } from "./lib/read-display-state.js";
45
+ import { useTabStore as He } from "./stores/tabs.js";
46
+ import { useTabNavigate as Ue } from "./hooks/useTabNavigate.js";
47
+ import { useScreenBack as We } from "./hooks/useScreenBack.js";
48
+ import { usePageState as Ge } from "./hooks/usePageState.js";
49
+ import { canonicalUrl as Ke } from "./lib/canonical-url.js";
50
+ import { useRegisterRetainedQuery as qe } from "./hooks/usePageStateRuntime.js";
51
+ import { PAGE_STATE_TTL_PARAM as Je, usePageStateTtl as Ye } from "./hooks/usePageStateTtl.js";
52
+ import { useScreenTab as Xe } from "./hooks/useScreenTab.js";
53
+ import { useTabSearchMirror as Ze } from "./hooks/useTabSearchMirror.js";
54
+ import { SCROLL_STATE_KEY as Qe, usePlainScrollRestoration as $e, useSavedScrollOffset as et, useVirtualScrollRestoration as tt } from "./lib/scroll-restoration.js";
55
+ import { SmartListPage as nt } from "./components/pages/SmartListPage.js";
56
+ import { SmartDetailPage as rt } from "./components/pages/SmartDetailPage.js";
57
+ import { SmartRecordListPage as it } from "./components/pages/SmartRecordListPage.js";
58
+ import { DynamicIcon as at } from "./components/shared/DynamicIcon.js";
59
+ import { PageHeader as ot } from "./components/chrome/PageHeader.js";
60
+ import { EmptyState as st } from "./components/shared/EmptyState.js";
61
+ import { ConfirmDialog as ct } from "./components/shared/ConfirmDialog.js";
62
+ import { FilterDrawer as lt } from "./components/filters/FilterDrawer.js";
63
+ import { FilterChips as ut } from "./components/filters/FilterChips.js";
64
+ import { ColumnPicker as dt } from "./components/list/ColumnPicker.js";
65
+ import { ViewSwitcher as ft } from "./components/list/ViewSwitcher.js";
66
+ import { ActionRunnerProvider as pt, useActionRunner as mt } from "./components/actions/ActionRunner.js";
67
+ import { ObjectActionBar as ht, useObjectActions as gt } from "./components/actions/ObjectActionBar.js";
68
+ import { RefreshControl as _t } from "./components/shared/RefreshControl.js";
69
+ import { RefCombobox as vt } from "./components/fields/RefCombobox.js";
70
+ import { QEField as yt, QuickPeek as bt } from "./components/list/QuickPeek.js";
71
+ import { InlineEditCell as xt } from "./components/list/InlineEditCell.js";
72
+ import { SignIn as St } from "./components/pages/auth/SignIn.js";
73
+ import { SignUp as Ct } from "./components/pages/auth/SignUp.js";
74
+ import { Forgot as wt } from "./components/pages/auth/Forgot.js";
75
+ import { Reset as Tt } from "./components/pages/auth/Reset.js";
76
+ import { TwoFA as Et } from "./components/pages/auth/TwoFA.js";
77
+ import { AuthShell as Dt } from "./components/pages/auth/AuthShell.js";
78
+ import { Profile as Ot } from "./components/pages/profile/Profile.js";
79
+ import { Preferences as kt } from "./components/pages/profile/Preferences.js";
80
+ import { ChangePasswordDialog as At } from "./components/shared/ChangePasswordDialog.js";
81
+ import { Icon as jt } from "./components/primitives/Icons.js";
82
+ import { Btn as Mt } from "./components/primitives/Btn.js";
83
+ import { IconBtn as Nt } from "./components/primitives/IconBtn.js";
84
+ import { PILL_TONES as Pt, Pill as Ft, pillColor as It, pillForeground as Lt } from "./components/primitives/Pill.js";
85
+ import { Kbd as Rt } from "./components/primitives/Kbd.js";
86
+ import { Avatar as zt } from "./components/primitives/Avatar.js";
87
+ import { BrandGlyph as Bt } from "./components/primitives/BrandGlyph.js";
88
+ import { Dropdown as Vt } from "./components/primitives/Dropdown.js";
89
+ import { HoverCard as Ht } from "./components/primitives/HoverCard.js";
90
+ import { InfoTooltip as Ut, Tooltip as Wt } from "./components/primitives/Tooltip.js";
91
+ import { Chip as Gt } from "./components/primitives/Chip.js";
92
+ import { SectionCard as Kt } from "./components/primitives/SectionCard.js";
93
+ import { StatTile as qt } from "./components/primitives/StatTile.js";
94
+ import { RecordIdBadge as Jt } from "./components/primitives/RecordIdBadge.js";
95
+ import { RowField as Yt } from "./components/primitives/RowField.js";
96
+ import { BoolToggle as Xt } from "./components/primitives/BoolToggle.js";
97
+ import { MenuItem as Zt } from "./components/primitives/MenuItem.js";
98
+ import { Check as Qt } from "./components/primitives/Check.js";
99
+ import { Spinner as $t } from "./components/primitives/Spinner.js";
100
+ import { DateInput as en, FieldLabel as tn, JsonField as nn, MultiSelect as rn, PasswordInput as an, QuickEditCell as on, RefField as sn, Select as cn, TagsInput as ln, TextArea as un, TextInput as dn, ViewField as fn } from "./components/primitives/Fields.js";
101
+ import { SquareImage as pn } from "./components/file-widgets/SquareImage.js";
102
+ import { CircleImage as mn } from "./components/file-widgets/CircleImage.js";
103
+ import { WideBanner as hn } from "./components/file-widgets/WideBanner.js";
104
+ import { getFileWidget as gn, hasFileWidget as _n, registerFileWidget as vn } from "./components/file-widgets/registry.js";
105
+ import { UploadError as yn, discardFile as bn, formatBytes as xn, uploadFile as Sn, validateClientSide as Cn } from "./components/file-widgets/upload.js";
106
+ import { getImageCropper as wn, setImageCropper as Tn } from "./components/file-widgets/cropper.js";
107
+ import { FileDraftScope as En, useDraftRegistration as Dn, useFileDraftScope as On } from "./components/file-widgets/draft-scope.js";
108
+ import { fileSelectionReducer as kn, summarizeFileSelections as An, useFileSelection as jn } from "./components/file-widgets/useFileSelection.js";
109
+ import { Rail as Mn } from "./components/layout/Rail.js";
110
+ import { Sidebar as Nn, buildSections as Pn } from "./components/layout/Sidebar.js";
111
+ import { TopBar as Fn } from "./components/layout/TopBar.js";
112
+ import { TenantChip as In, envTone as Ln } from "./components/layout/TenantChip.js";
113
+ import { TabStrip as Rn } from "./components/layout/TabStrip.js";
114
+ import { ImpersonationBanner as zn } from "./components/layout/ImpersonationBanner.js";
115
+ import { ImpersonationFrame as Bn } from "./components/layout/ImpersonationFrame.js";
116
+ import { ImpersonationStartModal as Vn } from "./components/layout/ImpersonationStartModal.js";
117
+ import { useImpersonation as Hn } from "./hooks/useImpersonation.js";
118
+ import { CommandPalette as Un } from "./components/layout/CommandPalette.js";
119
+ import { AgentChatPanel as Wn } from "./components/agents/AgentChatPanel.js";
120
+ import { AgentElicitForm as Gn } from "./components/agents/AgentElicitForm.js";
121
+ import { AgentPicker as Kn } from "./components/agents/AgentPicker.js";
122
+ import { AgentConversationDrawer as qn } from "./components/agents/AgentConversationDrawer.js";
123
+ import { useAgentConversation as Jn } from "./hooks/useAgentConversation.js";
124
+ import { answerQuestion as Yn, approveInvocation as Xn, cancelConversation as Zn, cancelInvocation as Qn, createConversation as $n, listAvailableAgents as er, listConversations as tr, loadConversationInvocations as nr, loadConversationTurns as rr, loadHistory as ir, rejectInvocation as ar, sendElicitResponse as or, sendMessage as sr } from "./api/agents.js";
125
+ import { Breadcrumbs as cr } from "./components/chrome/Breadcrumbs.js";
126
+ import { NO_VALUE_OPS as lr, OP_LABELS as ur, countActiveFilters as dr, hasOrGroups as fr, parseFilterURLState as pr, parseFiltersFromURL as mr, setFiltersInURL as hr } from "./lib/filters.js";
127
+ import { evaluateFilterTree as gr } from "./lib/filter-evaluator.js";
128
+ import { commonVariantActionCodes as _r, effectiveScreenForRecord as vr, resolveEntityVariantCode as yr, resolveScreenVariantCode as br, variantActionCodesForRecord as xr } from "./lib/variants.js";
129
+ import { formatCount as Sr, formatEstimatedCount as Cr, formatExactCount as wr } from "./lib/format-count.js";
130
+ import { buildMassEditTargets as Tr, parseTargetFilter as Er } from "./lib/mass-edit.js";
131
+ import { MULTIPLE_VALUES as Dr, PropertyGridEditor as Or, detectCommonValue as kr } from "./components/actions/PropertyGridEditor.js";
132
+ import { ClassifiedFieldLocked as Ar } from "./components/primitives/ClassifiedFieldLocked.js";
133
+ import { classificationTier as jr, fieldAccessInfo as Mr, fieldClassification as Nr, fieldRequiredPermission as Pr, isFieldReadable as Fr, isFieldSoDProtected as Ir, isFieldWritable as Lr } from "./lib/field-classification.js";
134
+ import { useLocation as Rr, useNavigate as zr, useParams as Br, useSearchParams as Vr } from "react-router";
135
+ export { te as ACTION_DATA_CURSOR_KEY, ne as ACTION_DATA_KEY, E as ActionBatchError, pt as ActionRunnerProvider, Wn as AgentChatPanel, qn as AgentConversationDrawer, Gn as AgentElicitForm, Kn as AgentPicker, e as App, Dt as AuthShell, zt as Avatar, j as Batch, Xt as BoolToggle, Bt as BrandGlyph, cr as Breadcrumbs, Mt as Btn, p as CURSOR_LANGUAGE_CHANGED, m as CURSOR_SEMANTICS_MISMATCH, At as ChangePasswordDialog, Qt as Check, Gt as Chip, mn as CircleImage, Ar as ClassifiedFieldLocked, dt as ColumnPicker, Un as CommandPalette, ct as ConfirmDialog, R as CurrentScreenProvider, pe as DEFAULT_RESPONSIVE_BREAKPOINTS, en as DateInput, e as Declarion, Vt as Dropdown, at as DynamicIcon, st as EmptyState, C as EntityClient, tn as FieldLabel, En as FileDraftScope, ut as FilterChips, lt as FilterDrawer, wt as Forgot, Ht as HoverCard, jt as Icon, Nt as IconBtn, zn as ImpersonationBanner, Bn as ImpersonationFrame, Vn as ImpersonationStartModal, Ut as InfoTooltip, xt as InlineEditCell, nn as JsonField, Rt as Kbd, Fe as MANDATORY_LANGUAGE, Dr as MULTIPLE_VALUES, Zt as MenuItem, rn as MultiSelect, lr as NO_VALUE_OPS, ur as OP_LABELS, ht as ObjectActionBar, t as OrderedMap, Je as PAGE_STATE_TTL_PARAM, Pt as PILL_TONES, ot as PageHeader, an as PasswordInput, Ft as Pill, kt as Preferences, Ot as Profile, Or as PropertyGridEditor, yt as QEField, on as QuickEditCell, bt as QuickPeek, Mn as Rail, Jt as RecordIdBadge, w as RefCache, vt as RefCombobox, sn as RefField, _t as RefreshControl, Tt as Reset, de as ResponsiveModeProvider, Yt as RowField, Qe as SCROLL_STATE_KEY, Kt as SectionCard, cn as Select, Nn as Sidebar, St as SignIn, Ct as SignUp, rt as SmartDetailPage, nt as SmartListPage, it as SmartRecordListPage, $t as Spinner, pn as SquareImage, qt as StatTile, $ as StructureField, Rn as TabStrip, ln as TagsInput, In as TenantChip, un as TextArea, dn as TextInput, Wt as Tooltip, Fn as TopBar, Et as TwoFA, yn as UploadError, fn as ViewField, ft as ViewSwitcher, hn as WideBanner, re as actionDataQueryKey, Yn as answerQuestion, Xn as approveInvocation, D as buildActionBody, n as buildDetailHrefFromId, r as buildEntityDetailHref, Tr as buildMassEditTargets, i as buildRowDetailHref, Pn as buildSections, Zn as cancelConversation, Qn as cancelInvocation, Ke as canonicalUrl, jr as classificationTier, _ as coerceDisplayString, _r as commonVariantActionCodes, dr as countActiveFilters, $n as createConversation, ie as cursorActionDataQueryKey, G as cursorEntityDataQueryKey, K as cursorEntityStableKey, O as deleteObject, kr as detectCommonValue, bn as discardFile, v as editorWallClock, y as editorWireValue, vr as effectiveScreenForRecord, T as entityClient, V as entityDataQueryKey, Ln as envTone, h as errorCodeOf, gr as evaluateFilterTree, k as executeAction, a as extractPkValues, Be as failureTitle, Mr as fieldAccessInfo, Nr as fieldClassification, o as fieldDisplayName, Pr as fieldRequiredPermission, Z as fileReferenceJSONQueryKey, kn as fileSelectionReducer, xn as formatBytes, Sr as formatCount, Cr as formatEstimatedCount, wr as formatExactCount, S as formatMoneyText, b as formatOffsetTimestamp, gn as getFileWidget, Ee as getIcon, wn as getImageCropper, Oe as getLayoutWidget, s as getPrimaryKeyFields, _n as hasFileWidget, ke as hasLayoutWidget, fr as hasOrGroups, g as isCursorStaleError, Fr as isFieldReadable, Ir as isFieldSoDProtected, Lr as isFieldWritable, er as listAvailableAgents, tr as listConversations, nr as loadConversationInvocations, rr as loadConversationTurns, ir as loadHistory, Ie as makeTextFn, Y as objectQueryKey, pr as parseFilterURLState, mr as parseFiltersFromURL, Er as parseTargetFilter, Le as pickLocalized, It as pillColor, Lt as pillForeground, c as pkValuePartsToId, l as pkValuesFromId, u as pkValuesToDetailId, d as pkValuesToId, Re as pluralText, Ve as readDisplayState, vn as registerFileWidget, Ae as registerLayoutWidget, Te as registerScreen, ar as rejectInvocation, je as reresolveLanguage, f as resolveDetailRoute, yr as resolveEntityVariantCode, br as resolveScreenVariantCode, me as resolveViewportCategory, A as restoreObject, or as sendElicitResponse, sr as sendMessage, hr as setFiltersInURL, De as setIconRegistry, Tn as setImageCropper, An as summarizeFileSelections, ze as textWithNodes, Sn as uploadFile, ae as useActionData, mt as useActionRunner, Jn as useAgentConversation, W as useAggregate, J as useAllEntityData, B as useAuth, Ce as useColumns, se as useCreateObject, z as useCurrentScreen, oe as useCursorActionData, q as useCursorEntityData, ue as useDebounce, N as useDeclaredEnum, P as useDeclaredField, F as useDeclaredStatuses, ce as useDeleteObject, be as useDeleteProperty, Me as useDeploymentLanguage, Dn as useDraftRegistration, he as useEffectiveParam, I as useEntity, H as useEntityCount, U as useEntityData, On as useFileDraftScope, Q as useFileReferenceJSON, jn as useFileSelection, Se as useFilters, Hn as useImpersonation, Ne as useLanguage, ee as useLiveObject, Rr as useLocation, zr as useNavigate, X as useObject, gt as useObjectActions, Ge as usePageState, Ye as usePageStateTtl, ge as useParam, Br as useParams, $e as usePlainScrollRestoration, _e as usePublicParams, qe as useRegisterRetainedQuery, ve as useResolvedParam, fe as useResponsiveMode, et as useSavedScrollOffset, M as useSchema, L as useScreen, We as useScreenBack, Xe as useScreenTab, Vr as useSearchParams, xe as useSetProperty, ye as useSetStatus, Ue as useTabNavigate, Ze as useTabSearchMirror, He as useTabStore, Pe as useText, le as useUpdateObject, we as useViews, tt as useVirtualScrollRestoration, Cn as validateClientSide, xr as variantActionCodesForRecord, x as zoneMark };
@@ -1,22 +1,10 @@
1
+ import { pillColor as e } from "../components/primitives/Pill.js";
1
2
  // src/lib/evidence-verdict.ts
2
- var e = {
3
- verified: "Verified",
4
- unverified: "Not yet verified",
5
- tampered: "Tampered",
6
- indeterminate: "Cannot verify",
7
- outside_coverage: "Outside coverage"
8
- }, t = {
9
- verified: "emerald",
10
- unverified: "slate",
11
- tampered: "rose",
12
- indeterminate: "amber",
13
- outside_coverage: "slate"
14
- };
15
- function n(t, n) {
16
- let r = e[n];
17
- return r ? t(`evidence.verdict.${n}`, r) : n;
3
+ function t(t, n, r) {
4
+ let i = n?.evidence_verdict?.values.find((e) => e.code === r);
5
+ return {
6
+ label: i && t(i.name) || r,
7
+ tone: e(i?.color)
8
+ };
18
9
  }
19
- function r(e) {
20
- return t[e] ?? "slate";
21
- }
22
- export { n as verdictLabel, r as verdictTone };
10
+ export { t as evidenceVerdictPill };
@@ -0,0 +1,15 @@
1
+ // src/lib/fill-from.ts
2
+ function e(e) {
3
+ return e.normalize("NFKD").replace(/[̀-ͯ]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
4
+ }
5
+ function t(t, n, r, i, a) {
6
+ let o = {
7
+ ...n,
8
+ [r]: i
9
+ };
10
+ if (!t) return o;
11
+ t.fields.get(r)?.display?.fill_from && a.add(r);
12
+ for (let n of t.fields.items()) n.name && n.display?.fill_from === r && !a.has(n.name) && (o[n.name] = e(typeof i == "string" ? i : ""));
13
+ return o;
14
+ }
15
+ export { e as codeFromText, t as withFillFrom };
@@ -1,4 +1,4 @@
1
- import { B as Refs, M as ListMeta, Mt as TextFn, P as ListResponse, ct as LocalizedString, d as ActionExecuteResponse, k as DataResponse, mt as Schema, o as ResponsiveViewport, u as ActionExecuteRequest } from "./useResponsiveMode-DjoWkC2n.js";
1
+ import { B as Refs, M as ListMeta, Mt as TextFn, P as ListResponse, ct as LocalizedString, d as ActionExecuteResponse, k as DataResponse, mt as Schema, o as ResponsiveViewport, u as ActionExecuteRequest } from "./useResponsiveMode-CBSHZBY5.js";
2
2
  import { ReactElement, ReactNode } from "react";
3
3
  import { QueryClient } from "@tanstack/react-query";
4
4
  import { RenderResult } from "@testing-library/react";
@@ -316,6 +316,7 @@ interface EntityField {
316
316
  currency_field?: string;
317
317
  currency_display?: "symbol" | "narrow_symbol" | "code" | "name";
318
318
  favicon_source?: FaviconSource;
319
+ fill_from?: string;
319
320
  };
320
321
  values?: Array<{
321
322
  code: string;
@@ -1573,7 +1574,8 @@ interface V2PropertyInstance {
1573
1574
  * row's `$evidence` key (the evidence satellite, mirroring `$statuses`). Read
1574
1575
  * cheaply from the stored verification result - never a live re-verify. Mirrors
1575
1576
  * the Go `evidence.RowVerdict`. `verdict` is one of: `verified`, `unverified`,
1576
- * `tampered`, `indeterminate`, `outside_coverage`.
1577
+ * `tampered`, `indeterminate`, `not_final`, `no_proof_needed`: the values of
1578
+ * the declared enum `evidence_verdict`.
1577
1579
  */
1578
1580
  interface EvidenceVerdict {
1579
1581
  verdict: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@declarion/react",
3
- "version": "0.254.0",
3
+ "version": "0.302.0",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "React SDK for Declarion, the schema-driven business apps platform.",