@declarion/react 0.48.1 → 0.49.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 (84) hide show
  1. package/dist-lib/Check-DAfMbQIw.js +38 -0
  2. package/dist-lib/{DraggableChildrenTable-p2ZSdwzj.js → DraggableChildrenTable-B98Md-Yq.js} +30 -30
  3. package/dist-lib/{Grid-CjLFAKMZ.js → Grid-BdtEd4R9.js} +2 -2
  4. package/dist-lib/{LayoutRenderer-DCscqXsv.js → LayoutRenderer-oVU3nEb5.js} +600 -597
  5. package/dist-lib/ListCardsBody-DYMt1H8l.js +287 -0
  6. package/dist-lib/{MarkdownRenderer-Sb7zcvj0.js → MarkdownRenderer-E9hbyoUn.js} +1 -1
  7. package/dist-lib/RefreshControl-B_2eW53M.js +430 -0
  8. package/dist-lib/{SmartDetailPage.impl-BAW-Tx_H.js → SmartDetailPage.impl-Dg22HOxb.js} +520 -515
  9. package/dist-lib/SmartListPage.impl-CPhhXT5S.js +2849 -0
  10. package/dist-lib/{SmartRecordListPage.impl-DtSSlGrI.js → SmartRecordListPage.impl-CF0UKgUj.js} +243 -240
  11. package/dist-lib/SortHeaderMenu-DodGvb7A.js +106 -0
  12. package/dist-lib/action-dispatch-CYOw7nkP.js +1984 -0
  13. package/dist-lib/api/batch.d.ts +5 -2
  14. package/dist-lib/api/data.d.ts +35 -4
  15. package/dist-lib/api/entities.d.ts +3 -3
  16. package/dist-lib/cardProjection-D-AufCh-.js +757 -0
  17. package/dist-lib/components/{shared → actions}/ObjectActionBar.d.ts +1 -1
  18. package/dist-lib/components/{shared → actions}/ResponsiveActionBar.d.ts +1 -1
  19. package/dist-lib/components/fields/cells/factories/date.d.ts +2 -0
  20. package/dist-lib/components/file-widgets/upload.d.ts +6 -1
  21. package/dist-lib/components/layout/Layout.d.ts +1 -1
  22. package/dist-lib/components/layout/TopBar.d.ts +1 -1
  23. package/dist-lib/components/pages/SmartListPage.d.ts +2 -12
  24. package/dist-lib/components/pages/SmartListPage.impl.d.ts +4 -0
  25. package/dist-lib/components/pages/list/ListCardRow.d.ts +40 -0
  26. package/dist-lib/components/pages/list/ListCardsBody.d.ts +34 -0
  27. package/dist-lib/components/pages/list/ListFloatbar.d.ts +1 -1
  28. package/dist-lib/components/pages/list/ListFooter.d.ts +26 -0
  29. package/dist-lib/components/pages/list/ListHeader.d.ts +1 -1
  30. package/dist-lib/components/pages/list/ListNoRows.d.ts +32 -0
  31. package/dist-lib/components/pages/list/ListTable.d.ts +34 -0
  32. package/dist-lib/components/pages/list/ListTableRow.d.ts +18 -0
  33. package/dist-lib/components/pages/list/ListToolbar.d.ts +43 -0
  34. package/dist-lib/components/pages/list/SortHeaderMenu.d.ts +14 -0
  35. package/dist-lib/components/pages/list/page-size.d.ts +3 -0
  36. package/dist-lib/components/pages/list/sortable-header.d.ts +2 -0
  37. package/dist-lib/components/pages/list/useListColumnLayout.d.ts +37 -0
  38. package/dist-lib/components/pages/list/useListQuery.d.ts +66 -0
  39. package/dist-lib/components/pages/list/useListRowInteraction.d.ts +61 -0
  40. package/dist-lib/components/pages/list/useListSelection.d.ts +31 -0
  41. package/dist-lib/components/pages/list/useListSort.d.ts +45 -0
  42. package/dist-lib/components/pages/list/useListViews.d.ts +46 -0
  43. package/dist-lib/components/pages/list/useRowMenu.d.ts +1 -1
  44. package/dist-lib/components/shared/RefreshControl.d.ts +17 -4
  45. package/dist-lib/field-classification-DTgUnbzd.js +1134 -0
  46. package/dist-lib/format-count-DAHCcHZO.js +1551 -0
  47. package/dist-lib/hooks/useBrandingChrome.d.ts +17 -1
  48. package/dist-lib/hooks/useText.d.ts +3 -0
  49. package/dist-lib/hooks/useViews.d.ts +1 -1
  50. package/dist-lib/index.d.ts +17 -15
  51. package/dist-lib/index.js +1783 -6287
  52. package/dist-lib/lib/messages.d.ts +7 -1
  53. package/dist-lib/lib/rowClickGesture.d.ts +12 -0
  54. package/dist-lib/lib/timestamp.d.ts +8 -3
  55. package/dist-lib/peekDraftStore-CnxqkoWN.js +194 -0
  56. package/dist-lib/record-documents-key-DEFlLxnF.js +27 -0
  57. package/dist-lib/registry-WypUQQ7t.js +1768 -0
  58. package/dist-lib/testing.d.ts +17 -2
  59. package/dist-lib/testing.js +72 -58
  60. package/dist-lib/types/api.d.ts +54 -12
  61. package/dist-lib/types/schema.d.ts +22 -6
  62. package/dist-lib/{useCurrentScreen-BshVTPVq.js → useCurrentScreen-C5Oio-1G.js} +1125 -1068
  63. package/dist-lib/useListQuery-Dc2vbxqs.js +87 -0
  64. package/dist-lib/useProperties-C36ENFdY.js +81 -0
  65. package/dist-lib/{useProperties-DrHFr0A1.js → useTabSearchMirror-sIuYEFaq.js} +116 -194
  66. package/dist-lib/{value-B1O6QikE.js → value-igT4LsqW.js} +69 -69
  67. package/package.json +1 -1
  68. package/dist-lib/RefreshControl-Cnl9nE0x.js +0 -945
  69. package/dist-lib/registry-CCxnZW2b.js +0 -5281
  70. /package/dist-lib/components/{shared → actions}/ActionButton.d.ts +0 -0
  71. /package/dist-lib/components/{shared → actions}/ActionDialog.d.ts +0 -0
  72. /package/dist-lib/components/{shared → actions}/ActionResultDialog.d.ts +0 -0
  73. /package/dist-lib/components/{shared → actions}/ActionRunner.d.ts +0 -0
  74. /package/dist-lib/components/{mass-edit → actions}/PropertyGridEditor.d.ts +0 -0
  75. /package/dist-lib/components/{shared → actions}/RowActionsKebab.d.ts +0 -0
  76. /package/dist-lib/components/{shared → chrome}/AssociationTabs.d.ts +0 -0
  77. /package/dist-lib/components/{shared → chrome}/AuditMetaStrip.d.ts +0 -0
  78. /package/dist-lib/components/{shared → chrome}/Breadcrumbs.d.ts +0 -0
  79. /package/dist-lib/components/{shared → chrome}/HighlightsStrip.d.ts +0 -0
  80. /package/dist-lib/components/{shared → chrome}/PageHeader.d.ts +0 -0
  81. /package/dist-lib/components/{shared → chrome}/RecordHeader.d.ts +0 -0
  82. /package/dist-lib/components/{shell → layout}/CommandPalette.d.ts +0 -0
  83. /package/dist-lib/components/{columns → list}/ColumnPicker.d.ts +0 -0
  84. /package/dist-lib/components/{views → list}/ViewSwitcher.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  import { type ResponsiveBreakpoints } from "../lib/viewport-category";
2
- import type { BrandingShellFlags, BrandingSurfaceFlags, BrandingViewport } from "../types/api";
2
+ import type { BrandingBreakpoints, BrandingShellFlags, BrandingSurfaceFlags, BrandingViewport } from "../types/api";
3
3
  export type BrandingChromeSurface = "list" | "detail" | "record_list" | "custom";
4
4
  /**
5
5
  * The deployment's declared viewport for the CURRENT presentation context.
@@ -24,6 +24,22 @@ export declare function useBrandingViewport(): BrandingViewport;
24
24
  * pinning every user of that context to one class.
25
25
  */
26
26
  export declare function useBrandingBreakpoints(): ResponsiveBreakpoints;
27
+ /**
28
+ * The declared bounds, or the SDK's table where a bound is absent or unusable.
29
+ *
30
+ * The two widths are read TOGETHER because they are ordered: the rule tests
31
+ * `phoneMax` first and `tabletMax` second, so a declaration where the phone
32
+ * bound is not below the tablet bound makes the tablet class unreachable - every
33
+ * viewport is a phone or a desktop and nothing says so. That is the class this
34
+ * refuses. It is also the lever the responsive design nominates as the recovery
35
+ * for a device the default table misreads, so a silently dead override would be
36
+ * discovered by the operator who reached for it in an emergency.
37
+ *
38
+ * Refusing means keeping the pair the SDK ships, which is coherent, and saying
39
+ * so once where a deployment can read it. The height bound is independent of
40
+ * both and is resolved on its own.
41
+ */
42
+ export declare function resolveBreakpoints(declared: BrandingBreakpoints | undefined): ResponsiveBreakpoints;
27
43
  export interface ResolvedBrandingChrome extends BrandingSurfaceFlags {
28
44
  isVisible: (key: keyof BrandingSurfaceFlags) => boolean;
29
45
  }
@@ -0,0 +1,3 @@
1
+ /** Resolves a declared message by code, with the English fallback the caller states. */
2
+ export type TextFn = (code: string, fallback: string, vars?: Record<string, string | number>) => string;
3
+ export declare function useText(): TextFn;
@@ -1,4 +1,4 @@
1
- import type { ViewItem } from "../components/views/ViewSwitcher";
1
+ import type { ViewItem } from "../components/list/ViewSwitcher";
2
2
  /**
3
3
  * useViews fetches DB views for a screen and merges with system views (presets) from DSL.
4
4
  * Returns a unified list with source tagging.
@@ -63,17 +63,17 @@ export { SmartListPage } from "./components/pages/SmartListPage";
63
63
  export { SmartDetailPage } from "./components/pages/SmartDetailPage";
64
64
  export { SmartRecordListPage } from "./components/pages/SmartRecordListPage";
65
65
  export { DynamicIcon } from "./components/shared/DynamicIcon";
66
- export { PageHeader } from "./components/shared/PageHeader";
66
+ export { PageHeader } from "./components/chrome/PageHeader";
67
67
  export { EmptyState } from "./components/shared/EmptyState";
68
68
  export { ConfirmDialog } from "./components/shared/ConfirmDialog";
69
69
  export { FilterDrawer } from "./components/filters/FilterDrawer";
70
70
  export { FilterChips } from "./components/filters/FilterChips";
71
- export { ColumnPicker } from "./components/columns/ColumnPicker";
72
- export { ViewSwitcher } from "./components/views/ViewSwitcher";
73
- export { ActionRunnerProvider, useActionRunner } from "./components/shared/ActionRunner";
74
- export type { RunActionOptions } from "./components/shared/ActionRunner";
75
- export { ObjectActionBar, useObjectActions } from "./components/shared/ObjectActionBar";
76
- export type { ObjectActionBarProps, ObjectActionBarSlot, ObjectActionSelection, UseObjectActionsResult, } from "./components/shared/ObjectActionBar";
71
+ export { ColumnPicker } from "./components/list/ColumnPicker";
72
+ export { ViewSwitcher } from "./components/list/ViewSwitcher";
73
+ export { ActionRunnerProvider, useActionRunner } from "./components/actions/ActionRunner";
74
+ export type { RunActionOptions } from "./components/actions/ActionRunner";
75
+ export { ObjectActionBar, useObjectActions } from "./components/actions/ObjectActionBar";
76
+ export type { ObjectActionBarProps, ObjectActionBarSlot, ObjectActionSelection, UseObjectActionsResult, } from "./components/actions/ObjectActionBar";
77
77
  export { RefreshControl } from "./components/shared/RefreshControl";
78
78
  export type { RefreshControlProps } from "./components/shared/RefreshControl";
79
79
  export { RefCombobox } from "./components/fields/RefCombobox";
@@ -97,7 +97,8 @@ export { PipelineStub } from "./components/pages/pipeline/Pipeline";
97
97
  export { JobsStub } from "./components/pages/jobs/Jobs";
98
98
  export { ChangePasswordDialog } from "./components/shared/ChangePasswordDialog";
99
99
  export type { ChangePasswordDialogProps } from "./components/shared/ChangePasswordDialog";
100
- export * from "./components/primitives";
100
+ export { Icon, Btn, IconBtn, Pill, Kbd, Avatar, BrandGlyph, Dropdown, HoverCard, Tooltip, InfoTooltip, Chip, SectionCard, RecordIdBadge, RowField, BoolToggle, MenuItem, Check, Spinner, FieldLabel, TextInput, TextArea, Select, MultiSelect, DateInput, PasswordInput, TagsInput, JsonField, RefField, ViewField, QuickEditCell, } from "./components/primitives";
101
+ export type { IconProps, IconName, BtnProps, BtnKind, BtnSize, IconBtnProps, PillProps, PillTone, PillSize, AvatarProps, BrandGlyphProps, DropdownProps, HoverCardProps, HoverCardAlign, TooltipProps, InfoTooltipProps, ChipProps, SectionCardProps, SectionBadge, SectionEmphasis, RecordIdBadgeProps, RowFieldProps, BoolToggleProps, MenuItemProps, CheckProps, FieldLabelProps, TextInputProps, TextAreaProps, SelectProps, MultiSelectProps, SelectOption, DateInputProps, PasswordInputProps, TagsInputProps, JsonFieldProps, RefFieldProps, RefFieldItem, ViewFieldProps, QuickEditCellProps, } from "./components/primitives";
101
102
  export { SquareImage, CircleImage, WideBanner, registerFileWidget, getFileWidget, hasFileWidget, uploadFile, discardFile, validateClientSide, formatBytes, UploadError, setImageCropper, getImageCropper, FileDraftScope, useFileDraftScope, useDraftRegistration, } from "./components/file-widgets";
102
103
  export type { FileFieldDef, FileFieldDisplay, FileFieldMode, FileWidget, FileWidgetProps, HydratedFile, UploadProgress, UploadedFile, ImageCropper, CropperOptions, CropperResult, FileDraftScopeApi, DraftEntry, } from "./components/file-widgets";
103
104
  export { Rail } from "./components/layout/Rail";
@@ -114,8 +115,8 @@ export { ImpersonationBanner } from "./components/layout/ImpersonationBanner";
114
115
  export { ImpersonationFrame } from "./components/layout/ImpersonationFrame";
115
116
  export { ImpersonationStartModal } from "./components/layout/ImpersonationStartModal";
116
117
  export { useImpersonation } from "./hooks/useImpersonation";
117
- export { CommandPalette } from "./components/shell/CommandPalette";
118
- export type { CommandPaletteProps, CommandAction, CommandActionType, } from "./components/shell/CommandPalette";
118
+ export { CommandPalette } from "./components/layout/CommandPalette";
119
+ export type { CommandPaletteProps, CommandAction, CommandActionType, } from "./components/layout/CommandPalette";
119
120
  export { AgentChatPanel } from "./components/agents/AgentChatPanel";
120
121
  export type { AgentChatPanelProps } from "./components/agents/AgentChatPanel";
121
122
  export { AgentElicitForm } from "./components/agents/AgentElicitForm";
@@ -126,9 +127,10 @@ export { AgentConversationDrawer } from "./components/agents/AgentConversationDr
126
127
  export type { AgentConversationDrawerProps } from "./components/agents/AgentConversationDrawer";
127
128
  export { useAgentConversation } from "./hooks/useAgentConversation";
128
129
  export type { AgentTurnState } from "./hooks/useAgentConversation";
129
- export * from "./api/agents";
130
- export { Breadcrumbs } from "./components/shared/Breadcrumbs";
131
- export type { BreadcrumbsProps, Crumb } from "./components/shared/Breadcrumbs";
130
+ export { listAvailableAgents, createConversation, sendMessage, answerQuestion, sendElicitResponse, approveInvocation, rejectInvocation, cancelInvocation, cancelConversation, listConversations, loadConversationTurns, loadConversationInvocations, loadHistory, } from "./api/agents";
131
+ export type { AgentRole, AgentContentBlock, AgentMessage, AgentTurnStatus, AgentTurn, AgentInvocationStatus, AgentInvocationKind, AgentToolInvocation, AgentConversationStatus, AgentConversation, AvailableAgent, ApprovalScope, } from "./api/agents";
132
+ export { Breadcrumbs } from "./components/chrome/Breadcrumbs";
133
+ export type { BreadcrumbsProps, Crumb } from "./components/chrome/Breadcrumbs";
132
134
  export type { FilterNode, FilterOp } from "./lib/filters";
133
135
  export type { FilterURLState } from "./lib/filters";
134
136
  export type { FilterRecord, FilterRecordField, FilterRecordFields } from "./lib/filter-evaluator";
@@ -140,8 +142,8 @@ export { resolveScreenVariantCode, effectiveScreenForRecord } from "./lib/varian
140
142
  export { formatCount, formatExactCount, formatEstimatedCount } from "./lib/format-count";
141
143
  export type { MassEditTarget, MassEditTargetKind } from "./lib/mass-edit";
142
144
  export { buildMassEditTargets, parseTargetFilter } from "./lib/mass-edit";
143
- export { PropertyGridEditor, detectCommonValue, MULTIPLE_VALUES } from "./components/mass-edit/PropertyGridEditor";
144
- export type { PatchMap } from "./components/mass-edit/PropertyGridEditor";
145
+ export { PropertyGridEditor, detectCommonValue, MULTIPLE_VALUES } from "./components/actions/PropertyGridEditor";
146
+ export type { PatchMap } from "./components/actions/PropertyGridEditor";
145
147
  export { ClassifiedFieldLocked, } from "./components/primitives";
146
148
  export { isFieldReadable, isFieldWritable, fieldClassification, fieldRequiredPermission, classificationTier, isFieldSoDProtected, fieldAccessInfo, } from "./lib/field-classification";
147
149
  export type { ClassificationTierDef, FieldAccessInfo } from "./types/schema";