@declarion/react 0.141.0 → 0.146.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.
- package/dist-lib/{Icons-Dzl-AkD_.d.ts → Icons-BdXCxyw3.d.ts} +0 -4
- package/dist-lib/api/access-expiry.js +1 -2
- package/dist-lib/api/agents.js +1 -2
- package/dist-lib/api/audience.js +1 -2
- package/dist-lib/api/auth-redirect.js +1 -2
- package/dist-lib/api/auth.js +1 -2
- package/dist-lib/api/batch.js +1 -2
- package/dist-lib/api/client.js +27 -28
- package/dist-lib/api/data.js +23 -24
- package/dist-lib/api/entities.js +36 -37
- package/dist-lib/api/events.js +6 -7
- package/dist-lib/api/fileReferences.js +1 -2
- package/dist-lib/api/params.js +1 -2
- package/dist-lib/api/properties.js +1 -2
- package/dist-lib/api/request-bounds.js +1 -2
- package/dist-lib/api/schema.js +5 -6
- package/dist-lib/api/session-renewal.js +6 -7
- package/dist-lib/api/status.js +1 -2
- package/dist-lib/app.js +154 -155
- package/dist-lib/components/actions/ActionButton.js +32 -33
- package/dist-lib/components/actions/ActionDialog.js +85 -86
- package/dist-lib/components/actions/ActionResultDialog.impl.js +48 -49
- package/dist-lib/components/actions/ActionResultDialog.js +1 -2
- package/dist-lib/components/actions/ActionRunner.js +96 -97
- package/dist-lib/components/actions/ObjectActionBar.js +49 -50
- package/dist-lib/components/actions/PropertyGridEditor.js +50 -51
- package/dist-lib/components/actions/ResponsiveActionBar.js +127 -128
- package/dist-lib/components/actions/RowActionsKebab.js +27 -28
- package/dist-lib/components/agents/AgentChatPanel.impl.js +317 -318
- package/dist-lib/components/agents/AgentChatPanel.js +1 -2
- package/dist-lib/components/agents/AgentConversationDrawer.js +6 -7
- package/dist-lib/components/agents/AgentElicitForm.js +13 -14
- package/dist-lib/components/agents/AgentOpenFollower.impl.js +1 -2
- package/dist-lib/components/agents/AgentOpenFollower.js +1 -2
- package/dist-lib/components/agents/AgentPicker.js +1 -2
- package/dist-lib/components/agents/ChatAttachments.js +22 -23
- package/dist-lib/components/agents/transcript-runs.js +1 -2
- package/dist-lib/components/chrome/AssociationTabs.js +44 -45
- package/dist-lib/components/chrome/AuditMetaStrip.js +1 -2
- package/dist-lib/components/chrome/Breadcrumbs.js +1 -2
- package/dist-lib/components/chrome/HighlightsStrip.js +1 -2
- package/dist-lib/components/chrome/PageHeader.js +12 -13
- package/dist-lib/components/chrome/PageShell.js +1 -2
- package/dist-lib/components/chrome/RecordHeader.js +1 -2
- package/dist-lib/components/chrome/headerActionZone.js +0 -1
- package/dist-lib/components/detail-layout/AssociatedBlock.js +463 -464
- package/dist-lib/components/detail-layout/AssociatedToolbar.js +43 -44
- package/dist-lib/components/detail-layout/ChildrenBlock.js +24 -25
- package/dist-lib/components/detail-layout/ChildrenCards.js +29 -30
- package/dist-lib/components/detail-layout/ChildrenList.js +23 -24
- package/dist-lib/components/detail-layout/ChildrenTable.js +50 -51
- package/dist-lib/components/detail-layout/ChildrenTimeline.js +164 -165
- package/dist-lib/components/detail-layout/DetailAuditStrip.js +14 -15
- package/dist-lib/components/detail-layout/DetailHighlights.js +23 -24
- package/dist-lib/components/detail-layout/DraggableChildrenTable.js +76 -77
- package/dist-lib/components/detail-layout/EditableChildrenTable.js +90 -91
- package/dist-lib/components/detail-layout/ErrorSummary.js +7 -8
- package/dist-lib/components/detail-layout/EvidenceBlock.js +15 -16
- package/dist-lib/components/detail-layout/FieldRow.js +11 -12
- package/dist-lib/components/detail-layout/FieldsBlock.js +31 -32
- package/dist-lib/components/detail-layout/LayoutColumn.js +1 -2
- package/dist-lib/components/detail-layout/LayoutRenderer.js +11 -12
- package/dist-lib/components/detail-layout/LayoutRow.js +1 -2
- package/dist-lib/components/detail-layout/LayoutTabs.js +23 -24
- package/dist-lib/components/detail-layout/PropertiesBlock.js +38 -39
- package/dist-lib/components/detail-layout/QuickAddForm.js +28 -29
- package/dist-lib/components/detail-layout/SectionBlock.js +9 -10
- package/dist-lib/components/detail-layout/StatusesBlock.js +1 -2
- package/dist-lib/components/detail-layout/TimelineComposer.js +19 -20
- package/dist-lib/components/detail-layout/blockMeta.js +1 -2
- package/dist-lib/components/detail-layout/useManualColumnResize.js +1 -2
- package/dist-lib/components/detail-layout/useQuickAdd.js +21 -22
- package/dist-lib/components/detail-layout/visibility.js +1 -2
- package/dist-lib/components/detail-layout/widgets/EntityScorecardWidget.js +25 -26
- package/dist-lib/components/detail-layout/widgets/JsonDiffWidget.js +18 -19
- package/dist-lib/components/detail-layout/widgets/MonacoJson.js +1 -2
- package/dist-lib/components/detail-layout/widgets/WidgetHost.js +10 -11
- package/dist-lib/components/detail-layout/widgets/builtins.js +1 -2
- package/dist-lib/components/detail-layout/widgets/canonicalizeJson.js +1 -2
- package/dist-lib/components/detail-layout/widgets/monacoBootstrap.js +1 -2
- package/dist-lib/components/detail-layout/widgets/registry.js +1 -2
- package/dist-lib/components/fields/BoolField.js +1 -2
- package/dist-lib/components/fields/EmailField.js +5 -6
- package/dist-lib/components/fields/EnumField.js +7 -8
- package/dist-lib/components/fields/FileReferenceField.js +18 -19
- package/dist-lib/components/fields/IntArrayField.js +11 -12
- package/dist-lib/components/fields/JsonEditor.js +1 -2
- package/dist-lib/components/fields/JsonField.js +1 -2
- package/dist-lib/components/fields/MultilangArrayField.js +22 -23
- package/dist-lib/components/fields/MultilangField.js +13 -14
- package/dist-lib/components/fields/MultilangTextField.js +13 -14
- package/dist-lib/components/fields/NumberField.js +5 -6
- package/dist-lib/components/fields/PasswordField.js +1 -2
- package/dist-lib/components/fields/PhoneField.js +24 -25
- package/dist-lib/components/fields/RefCombobox.js +42 -43
- package/dist-lib/components/fields/RefField.js +14 -15
- package/dist-lib/components/fields/RichTextField.js +29 -30
- package/dist-lib/components/fields/SecretField.js +1 -2
- package/dist-lib/components/fields/StringArrayField.js +29 -30
- package/dist-lib/components/fields/StringField.js +12 -13
- package/dist-lib/components/fields/StructureField.js +60 -61
- package/dist-lib/components/fields/TextField.js +18 -19
- package/dist-lib/components/fields/TimestampField.js +17 -18
- package/dist-lib/components/fields/UrlField.js +5 -6
- package/dist-lib/components/fields/cells/factories/badge.js +5 -6
- package/dist-lib/components/fields/cells/factories/boolPill.js +1 -2
- package/dist-lib/components/fields/cells/factories/code.js +1 -2
- package/dist-lib/components/fields/cells/factories/date.js +1 -2
- package/dist-lib/components/fields/cells/factories/email.js +1 -2
- package/dist-lib/components/fields/cells/factories/emptyCell.js +0 -1
- package/dist-lib/components/fields/cells/factories/fileReference.js +1 -2
- package/dist-lib/components/fields/cells/factories/host-icons.js +1 -2
- package/dist-lib/components/fields/cells/factories/json.js +1 -2
- package/dist-lib/components/fields/cells/factories/link.js +10 -11
- package/dist-lib/components/fields/cells/factories/markdown.js +14 -15
- package/dist-lib/components/fields/cells/factories/markdownPreview.js +1 -2
- package/dist-lib/components/fields/cells/factories/money.js +1 -2
- package/dist-lib/components/fields/cells/factories/multilangInline.js +1 -2
- package/dist-lib/components/fields/cells/factories/nextRun.js +8 -9
- package/dist-lib/components/fields/cells/factories/number.js +1 -2
- package/dist-lib/components/fields/cells/factories/passwordMask.js +1 -2
- package/dist-lib/components/fields/cells/factories/phone.js +1 -2
- package/dist-lib/components/fields/cells/factories/refLink.js +13 -14
- package/dist-lib/components/fields/cells/factories/richTextPreview.js +16 -17
- package/dist-lib/components/fields/cells/factories/statusPill.js +5 -6
- package/dist-lib/components/fields/cells/factories/tagList.js +6 -7
- package/dist-lib/components/fields/cells/factories/text.js +1 -2
- package/dist-lib/components/fields/cells/factories/timestamp.js +1 -2
- package/dist-lib/components/fields/cells/factories/url-helpers.js +1 -2
- package/dist-lib/components/fields/cells/factories/url.js +13 -14
- package/dist-lib/components/fields/cells/registry.js +1 -2
- package/dist-lib/components/fields/index.js +19 -20
- package/dist-lib/components/fields/langMap.js +1 -2
- package/dist-lib/components/fields/secretValue.js +1 -2
- package/dist-lib/components/file-widgets/CircleImage.js +1 -2
- package/dist-lib/components/file-widgets/DocumentCard.js +101 -102
- package/dist-lib/components/file-widgets/FileList.js +35 -36
- package/dist-lib/components/file-widgets/Grid.js +119 -120
- package/dist-lib/components/file-widgets/GridLazy.js +1 -2
- package/dist-lib/components/file-widgets/ImageWidget.js +189 -190
- package/dist-lib/components/file-widgets/LabeledSlots.js +14 -15
- package/dist-lib/components/file-widgets/SquareImage.js +1 -2
- package/dist-lib/components/file-widgets/UnknownFileWidget.js +1 -2
- package/dist-lib/components/file-widgets/UploadFailureText.js +1 -2
- package/dist-lib/components/file-widgets/WideBanner.js +1 -2
- package/dist-lib/components/file-widgets/builtins.js +1 -2
- package/dist-lib/components/file-widgets/cropper.js +1 -2
- package/dist-lib/components/file-widgets/draft-scope.js +1 -2
- package/dist-lib/components/file-widgets/helpers.js +1 -2
- package/dist-lib/components/file-widgets/host.js +33 -34
- package/dist-lib/components/file-widgets/payload.js +1 -2
- package/dist-lib/components/file-widgets/registry.js +1 -2
- package/dist-lib/components/file-widgets/upload.js +41 -42
- package/dist-lib/components/file-widgets/useEmbedFileSrc.js +12 -13
- package/dist-lib/components/file-widgets/useFileSelection.js +1 -2
- package/dist-lib/components/file-widgets/value.js +1 -2
- package/dist-lib/components/filters/FilterChips.js +15 -16
- package/dist-lib/components/filters/FilterConditionValue.js +15 -16
- package/dist-lib/components/filters/FilterDrawer.js +141 -142
- package/dist-lib/components/filters/FilterOmittedNotice.js +1 -2
- package/dist-lib/components/filters/filter-op-label.js +1 -2
- package/dist-lib/components/layout/CommandPalette.impl.js +24 -25
- package/dist-lib/components/layout/CommandPalette.js +1 -2
- package/dist-lib/components/layout/DirtyTabsCloseDialog.impl.js +15 -16
- package/dist-lib/components/layout/DirtyTabsCloseDialog.js +1 -2
- package/dist-lib/components/layout/ImpersonationBanner.impl.js +6 -7
- package/dist-lib/components/layout/ImpersonationBanner.js +1 -2
- package/dist-lib/components/layout/ImpersonationFrame.js +4 -5
- package/dist-lib/components/layout/ImpersonationStartModal.impl.js +4 -5
- package/dist-lib/components/layout/ImpersonationStartModal.js +1 -2
- package/dist-lib/components/layout/Layout.js +132 -140
- package/dist-lib/components/layout/Rail.js +11 -12
- package/dist-lib/components/layout/Sidebar.js +60 -61
- package/dist-lib/components/layout/TabStrip.js +66 -67
- package/dist-lib/components/layout/TenantChip.js +21 -22
- package/dist-lib/components/layout/TopBar.js +89 -90
- package/dist-lib/components/layout/tab-close.js +1 -2
- package/dist-lib/components/list/ColumnPicker.js +35 -36
- package/dist-lib/components/list/InlineEditCell.js +22 -23
- package/dist-lib/components/list/PeekFieldCell.js +7 -8
- package/dist-lib/components/list/QuickPeek.js +29 -30
- package/dist-lib/components/list/ViewSwitcher.js +44 -45
- package/dist-lib/components/list/peekDraftStore.js +1 -2
- package/dist-lib/components/pages/AdminCatalogPage.impl.js +59 -60
- package/dist-lib/components/pages/AdminCatalogPage.js +1 -2
- package/dist-lib/components/pages/DocumentsMenu.js +53 -54
- package/dist-lib/components/pages/ExportMenu.js +37 -38
- package/dist-lib/components/pages/NoScreensPage.impl.js +5 -6
- package/dist-lib/components/pages/NoScreensPage.js +1 -2
- package/dist-lib/components/pages/NotFoundPage.impl.js +7 -8
- package/dist-lib/components/pages/NotFoundPage.js +1 -2
- package/dist-lib/components/pages/RecordDocumentsPanel.js +40 -41
- package/dist-lib/components/pages/RecordNotesPanel.js +43 -44
- package/dist-lib/components/pages/RecordPanels.js +1 -2
- package/dist-lib/components/pages/SSOCallbackPage.impl.js +6 -7
- package/dist-lib/components/pages/SSOCallbackPage.js +1 -2
- package/dist-lib/components/pages/SmartDetailPage.impl.js +501 -502
- package/dist-lib/components/pages/SmartDetailPage.js +1 -2
- package/dist-lib/components/pages/SmartListPage.impl.js +316 -317
- package/dist-lib/components/pages/SmartListPage.js +1 -2
- package/dist-lib/components/pages/SmartRecordListPage.impl.js +316 -317
- package/dist-lib/components/pages/SmartRecordListPage.js +1 -2
- package/dist-lib/components/pages/auth/AuthShell.js +14 -15
- package/dist-lib/components/pages/auth/CodeInput.js +0 -1
- package/dist-lib/components/pages/auth/Forgot.impl.js +12 -13
- package/dist-lib/components/pages/auth/Forgot.js +1 -2
- package/dist-lib/components/pages/auth/Reset.impl.js +20 -21
- package/dist-lib/components/pages/auth/Reset.js +1 -2
- package/dist-lib/components/pages/auth/SignIn.js +44 -45
- package/dist-lib/components/pages/auth/SignUp.impl.js +35 -36
- package/dist-lib/components/pages/auth/SignUp.js +1 -2
- package/dist-lib/components/pages/auth/SignUpCode.js +17 -18
- package/dist-lib/components/pages/auth/TwoFA.impl.js +9 -10
- package/dist-lib/components/pages/auth/TwoFA.js +1 -2
- package/dist-lib/components/pages/auth/icons.js +1 -2
- package/dist-lib/components/pages/exportRequest.js +1 -2
- package/dist-lib/components/pages/list/DataCell.js +1 -2
- package/dist-lib/components/pages/list/DeleteViewDialog.js +5 -6
- package/dist-lib/components/pages/list/ListCardRow.js +53 -54
- package/dist-lib/components/pages/list/ListCardsBody.js +1 -2
- package/dist-lib/components/pages/list/ListFloatbar.js +25 -26
- package/dist-lib/components/pages/list/ListFooter.js +17 -18
- package/dist-lib/components/pages/list/ListHeader.js +31 -32
- package/dist-lib/components/pages/list/ListNoRows.js +32 -33
- package/dist-lib/components/pages/list/ListTable.js +29 -30
- package/dist-lib/components/pages/list/ListTableRow.js +1 -2
- package/dist-lib/components/pages/list/ListToolbar.js +58 -59
- package/dist-lib/components/pages/list/ListUrlBanner.js +1 -2
- package/dist-lib/components/pages/list/RowActionsCell.js +6 -7
- package/dist-lib/components/pages/list/RowContextMenu.js +1 -2
- package/dist-lib/components/pages/list/SaveViewDialog.js +5 -6
- package/dist-lib/components/pages/list/SortHeaderMenu.js +25 -26
- package/dist-lib/components/pages/list/cardProjection.js +16 -17
- package/dist-lib/components/pages/list/column-sizing.js +1 -2
- package/dist-lib/components/pages/list/columns.js +74 -75
- package/dist-lib/components/pages/list/filter-meta.js +1 -2
- package/dist-lib/components/pages/list/page-size.js +1 -2
- package/dist-lib/components/pages/list/sortable-header.js +1 -2
- package/dist-lib/components/pages/list/table-features.js +1 -2
- package/dist-lib/components/pages/list/use-filter-value-labels.js +15 -16
- package/dist-lib/components/pages/list/useActiveView.js +1 -2
- package/dist-lib/components/pages/list/useHeaderReorder.js +1 -2
- package/dist-lib/components/pages/list/useListColumnLayout.js +6 -7
- package/dist-lib/components/pages/list/useListFilterPresentation.js +1 -2
- package/dist-lib/components/pages/list/useListQuery.js +1 -2
- package/dist-lib/components/pages/list/useListRowInteraction.js +37 -38
- package/dist-lib/components/pages/list/useListSelection.js +16 -17
- package/dist-lib/components/pages/list/useListSort.js +1 -2
- package/dist-lib/components/pages/list/useListViews.js +31 -32
- package/dist-lib/components/pages/list/useRowMenu.js +20 -21
- package/dist-lib/components/pages/list/visible-filters.js +1 -2
- package/dist-lib/components/pages/profile/Preferences.impl.js +44 -45
- package/dist-lib/components/pages/profile/Preferences.js +1 -2
- package/dist-lib/components/pages/profile/Profile.impl.js +223 -224
- package/dist-lib/components/pages/profile/Profile.js +1 -2
- package/dist-lib/components/pages/tenant-params/TenantParamsPage.impl.js +133 -134
- package/dist-lib/components/pages/tenant-params/TenantParamsPage.js +1 -2
- package/dist-lib/components/params/ParamsBlock.js +30 -31
- package/dist-lib/components/params/param-editors.js +58 -59
- package/dist-lib/components/primitives/Avatar.js +1 -2
- package/dist-lib/components/primitives/BoolToggle.js +1 -2
- package/dist-lib/components/primitives/BrandGlyph.js +1 -2
- package/dist-lib/components/primitives/BrandLogo.js +1 -2
- package/dist-lib/components/primitives/Btn.js +1 -2
- package/dist-lib/components/primitives/Check.js +1 -2
- package/dist-lib/components/primitives/Chip.js +1 -2
- package/dist-lib/components/primitives/ClassifiedFieldLocked.js +1 -2
- package/dist-lib/components/primitives/Dropdown.js +2 -3
- package/dist-lib/components/primitives/Fields.js +128 -129
- package/dist-lib/components/primitives/HoverCard.js +2 -3
- package/dist-lib/components/primitives/IconBtn.js +1 -2
- package/dist-lib/components/primitives/Icons.js +1 -2
- package/dist-lib/components/primitives/Kbd.js +1 -2
- package/dist-lib/components/primitives/MenuItem.js +1 -2
- package/dist-lib/components/primitives/Pill.js +1 -2
- package/dist-lib/components/primitives/RecordIdBadge.js +1 -2
- package/dist-lib/components/primitives/RetryButton.js +5 -6
- package/dist-lib/components/primitives/RowField.js +1 -2
- package/dist-lib/components/primitives/SectionCard.js +1 -2
- package/dist-lib/components/primitives/Spinner.js +1 -2
- package/dist-lib/components/primitives/StatTile.js +1 -2
- package/dist-lib/components/primitives/Tooltip.js +1 -2
- package/dist-lib/components/primitives/dataTableStyles.js +1 -2
- package/dist-lib/components/shared/BlankScreen.js +1 -2
- package/dist-lib/components/shared/ChangePasswordDialog.impl.js +20 -21
- package/dist-lib/components/shared/ChangePasswordDialog.js +1 -2
- package/dist-lib/components/shared/ConfirmDialog.js +7 -8
- package/dist-lib/components/shared/ConnectionNotice.js +1 -2
- package/dist-lib/components/shared/CopyButton.js +1 -2
- package/dist-lib/components/shared/DynamicIcon.js +1 -2
- package/dist-lib/components/shared/EmptyState.js +1 -2
- package/dist-lib/components/shared/ErrorBoundary.js +10 -11
- package/dist-lib/components/shared/LoadingSkeleton.js +1 -2
- package/dist-lib/components/shared/LucideIcon.js +1 -2
- package/dist-lib/components/shared/Markdown.js +1 -2
- package/dist-lib/components/shared/MarkdownRenderer.js +22 -23
- package/dist-lib/components/shared/ModalFrame.js +1 -2
- package/dist-lib/components/shared/RefreshControl.js +6 -7
- package/dist-lib/components/shared/StatusGroupsDisplay.js +16 -17
- package/dist-lib/components/shared/StatusStepper.js +1 -2
- package/dist-lib/components/shared/toast/DeclarionToast.js +1 -2
- package/dist-lib/components/shared/useOwnRefresh.js +1 -2
- package/dist-lib/embed/EmbedAuthBootstrap.js +30 -31
- package/dist-lib/embed/EmbedContext.js +1 -2
- package/dist-lib/embed/EmbedDirtyReporter.js +6 -7
- package/dist-lib/embed/EmbedHistoryTracker.js +1 -2
- package/dist-lib/embed/EmbedLocationReporter.js +11 -12
- package/dist-lib/embed/EmbedResizeReporter.js +9 -10
- package/dist-lib/embed/EmbedUnsavedGuard.js +5 -6
- package/dist-lib/embed/embed-dirty.js +1 -2
- package/dist-lib/embed/embed-history.js +1 -2
- package/dist-lib/embed/embed-nav-guard.js +1 -2
- package/dist-lib/embed/file-src.js +12 -13
- package/dist-lib/embed/handshake.js +1 -2
- package/dist-lib/embed/params.js +1 -2
- package/dist-lib/embed/protocol.js +1 -2
- package/dist-lib/embed/screen-location.js +1 -2
- package/dist-lib/embed/theme.js +1 -2
- package/dist-lib/embed/token.js +1 -2
- package/dist-lib/embed/useEmbedNavigate.js +25 -26
- package/dist-lib/embed/useGlobalLinkInterceptor.js +9 -10
- package/dist-lib/hooks/useActionData.js +1 -2
- package/dist-lib/hooks/useActiveTabFollowsRoute.js +7 -8
- package/dist-lib/hooks/useAgentConversation.js +122 -123
- package/dist-lib/hooks/useAggregate.js +1 -2
- package/dist-lib/hooks/useAllEntityData.js +9 -10
- package/dist-lib/hooks/useAssociatedData.js +1 -2
- package/dist-lib/hooks/useAuth.js +26 -27
- package/dist-lib/hooks/useBranding.js +1 -2
- package/dist-lib/hooks/useBrandingChrome.js +16 -17
- package/dist-lib/hooks/useChildrenData.js +4 -5
- package/dist-lib/hooks/useColumns.js +1 -2
- package/dist-lib/hooks/useConnectionNotice.js +16 -17
- package/dist-lib/hooks/useCurrentLocation.js +1 -2
- package/dist-lib/hooks/useCurrentScreen.js +1 -2
- package/dist-lib/hooks/useCursorEntityData.js +1 -2
- package/dist-lib/hooks/useDebounce.js +1 -2
- package/dist-lib/hooks/useDisplayTimeZone.js +4 -5
- package/dist-lib/hooks/useDocumentTitle.js +5 -6
- package/dist-lib/hooks/useEntity.js +1 -2
- package/dist-lib/hooks/useEntityData.js +1 -2
- package/dist-lib/hooks/useFileReferenceJSON.js +9 -10
- package/dist-lib/hooks/useFilters.js +5 -6
- package/dist-lib/hooks/useFollowAgentOpen.js +40 -41
- package/dist-lib/hooks/useImpersonation.js +15 -16
- package/dist-lib/hooks/useIntentPrefetch.js +6 -7
- package/dist-lib/hooks/useJsonSnapshot.js +1 -2
- package/dist-lib/hooks/useLanguage.js +11 -12
- package/dist-lib/hooks/useLiveObject.js +6 -7
- package/dist-lib/hooks/useLongPress.js +1 -2
- package/dist-lib/hooks/useMutations.js +31 -32
- package/dist-lib/hooks/useObject.js +1 -2
- package/dist-lib/hooks/useObjectStatus.js +4 -5
- package/dist-lib/hooks/usePageState.js +9 -10
- package/dist-lib/hooks/usePageStateRuntime.js +16 -17
- package/dist-lib/hooks/usePageStateTtl.js +1 -2
- package/dist-lib/hooks/useParams.js +58 -59
- package/dist-lib/hooks/useProperties.js +5 -6
- package/dist-lib/hooks/useRealtimeThresholds.js +4 -5
- package/dist-lib/hooks/useRefRecords.js +31 -32
- package/dist-lib/hooks/useRegisterScreenTab.js +12 -13
- package/dist-lib/hooks/useResponsiveMode.js +1 -2
- package/dist-lib/hooks/useRowTenant.js +1 -2
- package/dist-lib/hooks/useSSE.js +100 -101
- package/dist-lib/hooks/useSchema.js +16 -17
- package/dist-lib/hooks/useScreen.js +1 -2
- package/dist-lib/hooks/useScreenBack.js +17 -18
- package/dist-lib/hooks/useScreenTab.js +1 -2
- package/dist-lib/hooks/useTabNavigate.js +25 -26
- package/dist-lib/hooks/useTabSearchMirror.js +6 -7
- package/dist-lib/hooks/useTabTitle.js +10 -11
- package/dist-lib/hooks/useText.js +6 -7
- package/dist-lib/hooks/useTimelineData.js +5 -6
- package/dist-lib/hooks/useUiPreferences.js +31 -32
- package/dist-lib/hooks/useUnsavedInput.js +1 -2
- package/dist-lib/hooks/useVersionWatcher.js +16 -17
- package/dist-lib/hooks/useViews.js +16 -17
- package/dist-lib/hooks/useWindowConversation.js +1 -2
- package/dist-lib/{icon-registry-CUT4eF63.d.ts → icon-registry-BY2tt-GF.d.ts} +0 -2
- package/dist-lib/icons.d.ts +2 -4
- package/dist-lib/icons.js +5 -5
- package/dist-lib/index.d.ts +4 -272
- package/dist-lib/index.js +129 -129
- package/dist-lib/lib/action-dispatch.js +1 -2
- package/dist-lib/lib/actions.js +26 -27
- package/dist-lib/lib/anchor.js +1 -2
- package/dist-lib/lib/brand-tokens.js +1 -2
- package/dist-lib/lib/branding.js +1 -2
- package/dist-lib/lib/canonical-url.js +1 -2
- package/dist-lib/lib/capabilityPrefetch.js +1 -2
- package/dist-lib/lib/child-config.js +1 -2
- package/dist-lib/lib/children-validation.js +2 -3
- package/dist-lib/lib/date-text.js +1 -2
- package/dist-lib/lib/decimal-text.js +1 -2
- package/dist-lib/lib/display-value.js +1 -2
- package/dist-lib/lib/document-templates.js +1 -2
- package/dist-lib/lib/download.js +13 -14
- package/dist-lib/lib/evidence-verdict.js +1 -2
- package/dist-lib/lib/failure.js +4 -5
- package/dist-lib/lib/field-classification.js +1 -2
- package/dist-lib/lib/field-regions.js +1 -2
- package/dist-lib/lib/filter-evaluator.js +1 -2
- package/dist-lib/lib/filters.js +1 -2
- package/dist-lib/lib/format-count.js +1 -2
- package/dist-lib/lib/html-state.js +1 -2
- package/dist-lib/lib/language.js +1 -2
- package/dist-lib/lib/longPressGesture.js +0 -1
- package/dist-lib/lib/mass-edit.js +1 -2
- package/dist-lib/lib/money-text.js +1 -2
- package/dist-lib/lib/number-text.js +1 -2
- package/dist-lib/lib/page-inset.js +1 -2
- package/dist-lib/lib/phone.js +1 -2
- package/dist-lib/lib/profile.js +1 -2
- package/dist-lib/lib/query-retry.js +1 -2
- package/dist-lib/lib/quick-add.js +1 -2
- package/dist-lib/lib/read-display-state.js +1 -2
- package/dist-lib/lib/realtime-query-keys.js +2 -3
- package/dist-lib/lib/realtime-reconcile.js +32 -33
- package/dist-lib/lib/realtime-resync.js +40 -41
- package/dist-lib/lib/record-documents-key.js +1 -2
- package/dist-lib/lib/ref-choices.js +1 -2
- package/dist-lib/lib/refetch-when-idle.js +1 -2
- package/dist-lib/lib/rich-text.js +1 -2
- package/dist-lib/lib/role-label.js +1 -2
- package/dist-lib/lib/rowClickGesture.js +1 -2
- package/dist-lib/lib/safe-url.js +1 -2
- package/dist-lib/lib/schema-routing.js +1 -2
- package/dist-lib/lib/screen-back.js +1 -2
- package/dist-lib/lib/scroll-restoration.js +21 -22
- package/dist-lib/lib/shortcut.js +1 -2
- package/dist-lib/lib/size-value.js +1 -2
- package/dist-lib/lib/sort.js +1 -2
- package/dist-lib/lib/timestamp.js +1 -2
- package/dist-lib/lib/toast.js +1 -2
- package/dist-lib/lib/ui-actions.js +43 -44
- package/dist-lib/lib/utils.js +1 -2
- package/dist-lib/lib/variants.js +1 -2
- package/dist-lib/lib/versionTracker.js +26 -27
- package/dist-lib/lib/viewport-category.js +1 -2
- package/dist-lib/lib/window-election.js +1 -2
- package/dist-lib/stores/auth.js +32 -33
- package/dist-lib/stores/icon-registry.js +1 -2
- package/dist-lib/stores/list-layout.js +0 -1
- package/dist-lib/stores/page-state.js +1 -2
- package/dist-lib/stores/preferences.js +1 -2
- package/dist-lib/stores/realtime.js +1 -2
- package/dist-lib/stores/screen-registry.js +1 -2
- package/dist-lib/stores/tabs.js +1 -2
- package/dist-lib/test/seed-schema.js +4 -5
- package/dist-lib/testing.d.ts +2 -4
- package/dist-lib/testing.js +49 -50
- package/dist-lib/types/api.js +1 -2
- package/dist-lib/types/fieldType.js +1 -2
- package/dist-lib/types/ordmap.js +1 -2
- package/dist-lib/types/schema.js +1 -2
- package/dist-lib/{useResponsiveMode-C4MeAgoS.d.ts → useResponsiveMode-BElw02Gh.d.ts} +1 -19
- package/dist-lib/vite/index.d.ts +0 -2
- package/dist-lib/vite/index.js +1 -2
- package/package.json +11 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect as e, useReducer as t } from "react";
|
|
2
2
|
import { create as n } from "zustand";
|
|
3
|
-
|
|
3
|
+
// src/stores/realtime.ts
|
|
4
4
|
var r = n((e, t) => {
|
|
5
5
|
let n = 0, r = 0;
|
|
6
6
|
return {
|
|
@@ -111,5 +111,4 @@ function o(n, i) {
|
|
|
111
111
|
return () => clearTimeout(e);
|
|
112
112
|
}, [m]), p;
|
|
113
113
|
}
|
|
114
|
-
//#endregion
|
|
115
114
|
export { i as isEntityLive, a as screenCurrentness, r as useRealtimeStore, o as useScreenIsLive };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/stores/screen-registry.ts
|
|
2
2
|
var e = /* @__PURE__ */ new Map();
|
|
3
3
|
function t(t, n) {
|
|
4
4
|
e.set(t, n);
|
|
@@ -6,5 +6,4 @@ function t(t, n) {
|
|
|
6
6
|
function n(t) {
|
|
7
7
|
return e.get(t);
|
|
8
8
|
}
|
|
9
|
-
//#endregion
|
|
10
9
|
export { n as getRegisteredScreen, t as registerScreen };
|
package/dist-lib/stores/tabs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { usePreferencesStore as e } from "./preferences.js";
|
|
2
2
|
import { create as t } from "zustand";
|
|
3
|
-
|
|
3
|
+
// src/stores/tabs.ts
|
|
4
4
|
var n = ["/login", "/signup"];
|
|
5
5
|
function r(e) {
|
|
6
6
|
return n.includes(e);
|
|
@@ -227,5 +227,4 @@ typeof window < "u" && window.addEventListener("pagehide", () => {
|
|
|
227
227
|
let { tabs: e, activeTabId: t } = y.getState();
|
|
228
228
|
_(e, t);
|
|
229
229
|
});
|
|
230
|
-
//#endregion
|
|
231
230
|
export { r as isExcludedRoute, i as isSameOriginPath, g as peekTenantLandingPath, l as tabIdsForCloseScope, y as useTabStore };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { sessionCaller as e } from "../api/audience.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { SCHEMA_QUERY_KEY as t, schemaAnswerFor as n } from "../hooks/useSchema.js";
|
|
3
|
+
import { useAuthStore as r } from "../stores/auth.js";
|
|
4
|
+
// src/test/seed-schema.ts
|
|
5
5
|
function i(i, a) {
|
|
6
|
-
|
|
6
|
+
r.getState().isLoading && r.setState({ isLoading: !1 }), i.setQueryData(t, n(a, e(r.getState()) ?? null));
|
|
7
7
|
}
|
|
8
|
-
//#endregion
|
|
9
8
|
export { i as seedSchemaCache };
|
package/dist-lib/testing.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { B as Refs, M as ListMeta, P as ListResponse, d as ActionExecuteResponse, jt as TextFn, k as DataResponse, o as ResponsiveViewport, pt as Schema, st as LocalizedString, u as ActionExecuteRequest } from "./useResponsiveMode-
|
|
1
|
+
import { B as Refs, M as ListMeta, P as ListResponse, d as ActionExecuteResponse, jt as TextFn, k as DataResponse, o as ResponsiveViewport, pt as Schema, st as LocalizedString, u as ActionExecuteRequest } from "./useResponsiveMode-BElw02Gh.js";
|
|
2
2
|
import { ReactElement, ReactNode } from "react";
|
|
3
3
|
import { QueryClient } from "@tanstack/react-query";
|
|
4
4
|
import { RenderResult } from "@testing-library/react";
|
|
5
|
-
//#region src/testing.d.ts
|
|
6
5
|
/** A single action's stubbed outcome: the action's RESULT payload (what
|
|
7
6
|
* executeDeclarionAction unwraps from response.result), or a function of the
|
|
8
7
|
* dispatched body returning it. The harness always wraps it in a success
|
|
@@ -111,5 +110,4 @@ export interface PreviewHarnessProps extends RenderWithDeclarionOptions {
|
|
|
111
110
|
* this returns an element you compose directly. Providers + seeds are created
|
|
112
111
|
* once per mount (useState initializer) so a static snapshot is deterministic.
|
|
113
112
|
*/
|
|
114
|
-
export declare function PreviewHarness({ children, authenticated, ...opts }: PreviewHarnessProps): ReactElement;
|
|
115
|
-
//#endregion
|
|
113
|
+
export declare function PreviewHarness({ children, authenticated, ...opts }: PreviewHarnessProps): ReactElement;
|
package/dist-lib/testing.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { ResponsiveModeProvider as e } from "./hooks/useResponsiveMode.js";
|
|
2
|
+
import { CurrentScreenProvider as t } from "./hooks/useCurrentScreen.js";
|
|
3
|
+
import { EmbedProvider as n } from "./embed/EmbedContext.js";
|
|
4
|
+
import { ActionRunnerProvider as r } from "./components/actions/ActionRunner.js";
|
|
5
|
+
import { useAuthStore as i } from "./stores/auth.js";
|
|
6
|
+
import { seedSchemaCache as a } from "./test/seed-schema.js";
|
|
7
|
+
import { encodeObjectId as o, setActionExecutor as s, setGetEntityResolver as c, setListEntitiesResolver as l } from "./api/data.js";
|
|
8
|
+
import { makeTextFn as u } from "./lib/language.js";
|
|
9
9
|
import { useState as d } from "react";
|
|
10
10
|
import { QueryClient as f, QueryClientProvider as p } from "@tanstack/react-query";
|
|
11
11
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
12
12
|
import { MemoryRouter as g, useLocation as _ } from "react-router";
|
|
13
13
|
import { Toaster as v } from "sonner";
|
|
14
14
|
import { render as y } from "@testing-library/react";
|
|
15
|
-
|
|
15
|
+
// src/testing.tsx
|
|
16
16
|
function b(e = "en", t) {
|
|
17
|
-
return
|
|
17
|
+
return u(t, e, "en");
|
|
18
18
|
}
|
|
19
19
|
function x(e = "en", t) {
|
|
20
20
|
let n = new f({ defaultOptions: { queries: { retry: !1 } } });
|
|
21
|
-
return
|
|
21
|
+
return a(n, S({
|
|
22
22
|
language: e,
|
|
23
23
|
messages: t
|
|
24
24
|
})), function({ children: e }) {
|
|
@@ -86,7 +86,7 @@ function k() {
|
|
|
86
86
|
id: "test-tenant",
|
|
87
87
|
code: "test",
|
|
88
88
|
name: "Test"
|
|
89
|
-
},
|
|
89
|
+
}, t = {
|
|
90
90
|
id: "test-user",
|
|
91
91
|
email: "test@example.com",
|
|
92
92
|
display_name: "Test User",
|
|
@@ -96,7 +96,7 @@ function k() {
|
|
|
96
96
|
permissions: ["*"],
|
|
97
97
|
tenant: e
|
|
98
98
|
};
|
|
99
|
-
|
|
99
|
+
i.getState().setUser(t, e);
|
|
100
100
|
}
|
|
101
101
|
function A(e) {
|
|
102
102
|
if (e === void 0) return { rows: [] };
|
|
@@ -113,7 +113,7 @@ function A(e) {
|
|
|
113
113
|
}
|
|
114
114
|
function j(e) {
|
|
115
115
|
let t = e.entityData ?? {};
|
|
116
|
-
|
|
116
|
+
l((n, r) => {
|
|
117
117
|
let i = r;
|
|
118
118
|
e.onListRequest?.(n, i);
|
|
119
119
|
let a = t[n], o = typeof a == "function" ? a(i) : a;
|
|
@@ -138,79 +138,78 @@ function j(e) {
|
|
|
138
138
|
...s.refs === void 0 ? {} : { $refs: s.refs }
|
|
139
139
|
};
|
|
140
140
|
});
|
|
141
|
-
let n = e.entityItems ?? {},
|
|
142
|
-
|
|
143
|
-
let i = typeof t == "string" ? t :
|
|
141
|
+
let n = e.entityItems ?? {}, r = e.entityItemResponses ?? {};
|
|
142
|
+
c((e, t) => {
|
|
143
|
+
let i = typeof t == "string" ? t : o(t), a = r[e]?.[i];
|
|
144
144
|
if (a instanceof Error) throw a;
|
|
145
145
|
if (a !== void 0) return a;
|
|
146
|
-
let
|
|
147
|
-
if (
|
|
148
|
-
return { data:
|
|
146
|
+
let s = n[e]?.[i];
|
|
147
|
+
if (s instanceof Error) throw s;
|
|
148
|
+
return { data: s };
|
|
149
149
|
});
|
|
150
|
-
let
|
|
151
|
-
|
|
152
|
-
if (!(e in
|
|
153
|
-
let n =
|
|
150
|
+
let i = e.actionResults ?? {};
|
|
151
|
+
s(async (e, t) => {
|
|
152
|
+
if (!(e in i)) throw Error(`renderWithDeclarion: no action result registered for "${e}" (seed it via actionResults)`);
|
|
153
|
+
let n = i[e];
|
|
154
154
|
return D(typeof n == "function" ? await n(t) : n);
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
function M() {
|
|
158
|
-
|
|
158
|
+
l(null), c(null), s(null), i.setState({
|
|
159
159
|
user: null,
|
|
160
160
|
isAuthenticated: !1,
|
|
161
161
|
activeTenant: null,
|
|
162
162
|
tenants: []
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
|
-
function N(
|
|
166
|
-
let
|
|
165
|
+
function N(i, o = {}) {
|
|
166
|
+
let s = new f({ defaultOptions: { queries: {
|
|
167
167
|
retry: !1,
|
|
168
168
|
gcTime: Infinity
|
|
169
169
|
} } });
|
|
170
|
-
k(),
|
|
171
|
-
let
|
|
172
|
-
code:
|
|
173
|
-
children:
|
|
174
|
-
}) :
|
|
175
|
-
client:
|
|
170
|
+
k(), a(s, o.schema ?? S()), j(o);
|
|
171
|
+
let c = o.screenCode ? /* @__PURE__ */ m(t, {
|
|
172
|
+
code: o.screenCode,
|
|
173
|
+
children: i
|
|
174
|
+
}) : i, l = { current: o.route ?? "/" }, u = /* @__PURE__ */ h(p, {
|
|
175
|
+
client: s,
|
|
176
176
|
children: [/* @__PURE__ */ h(g, {
|
|
177
|
-
initialEntries: [
|
|
178
|
-
children: [/* @__PURE__ */ m(O, { into:
|
|
177
|
+
initialEntries: [o.route ?? "/"],
|
|
178
|
+
children: [/* @__PURE__ */ m(O, { into: l }), /* @__PURE__ */ m(r, { children: c })]
|
|
179
179
|
}), /* @__PURE__ */ m(v, {})]
|
|
180
|
-
}), d =
|
|
181
|
-
query:
|
|
182
|
-
children:
|
|
183
|
-
}) :
|
|
184
|
-
viewportOverride:
|
|
180
|
+
}), d = o.embedQuery ? /* @__PURE__ */ m(n, {
|
|
181
|
+
query: o.embedQuery,
|
|
182
|
+
children: u
|
|
183
|
+
}) : u, _ = y(o.viewport ? /* @__PURE__ */ m(e, {
|
|
184
|
+
viewportOverride: o.viewport,
|
|
185
185
|
children: d
|
|
186
186
|
}) : d);
|
|
187
187
|
return Object.assign(_, {
|
|
188
|
-
queryClient:
|
|
189
|
-
location: () =>
|
|
188
|
+
queryClient: s,
|
|
189
|
+
location: () => l.current
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
function P({ children: e, authenticated:
|
|
193
|
-
let [
|
|
192
|
+
function P({ children: e, authenticated: t = !0, ...n }) {
|
|
193
|
+
let [o] = d(() => {
|
|
194
194
|
let e = new f({ defaultOptions: { queries: {
|
|
195
195
|
retry: !1,
|
|
196
196
|
gcTime: Infinity
|
|
197
197
|
} } });
|
|
198
|
-
return
|
|
198
|
+
return t ? (k(), a(e, n.schema ?? S())) : (i.setState({
|
|
199
199
|
user: null,
|
|
200
200
|
isAuthenticated: !1,
|
|
201
201
|
isLoading: !1,
|
|
202
202
|
activeTenant: null,
|
|
203
203
|
tenants: []
|
|
204
|
-
}),
|
|
204
|
+
}), a(e, n.schema ?? S())), j(n), e;
|
|
205
205
|
});
|
|
206
206
|
return /* @__PURE__ */ h(p, {
|
|
207
|
-
client:
|
|
207
|
+
client: o,
|
|
208
208
|
children: [/* @__PURE__ */ m(g, {
|
|
209
|
-
initialEntries: [
|
|
210
|
-
children: /* @__PURE__ */ m(
|
|
209
|
+
initialEntries: [n.route ?? "/"],
|
|
210
|
+
children: /* @__PURE__ */ m(r, { children: e })
|
|
211
211
|
}), /* @__PURE__ */ m(v, {})]
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
214
|
typeof afterEach == "function" && afterEach(() => M());
|
|
215
|
-
//#endregion
|
|
216
215
|
export { P as PreviewHarness, E as actionEnvelope, w as actionResults, M as cleanupDeclarion, C as entityDataFixture, x as languageWrapper, N as renderWithDeclarion, S as schemaFixture, b as textFixture };
|
package/dist-lib/types/api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/types/api.ts
|
|
2
2
|
var e = class extends Error {
|
|
3
3
|
status;
|
|
4
4
|
code;
|
|
@@ -44,5 +44,4 @@ async function c(e) {
|
|
|
44
44
|
body: r(t) ? t : {}
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
//#endregion
|
|
48
47
|
export { o as ARCHIVE_CURSOR_INVALID, e as ApiError, a as CURSOR_LANGUAGE_CHANGED, i as CURSOR_SEMANTICS_MISMATCH, t as NetworkError, n as errorCodeOf, r as isApiErrorBody, s as isCursorStaleError, c as readProblem };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/types/fieldType.ts
|
|
2
2
|
var e = /* @__PURE__ */ "bool.bytes.date.decimal.email.enum.file_ref.float.folder_ref.int.int_array.json.multilang.multilang_array.multilang_text.password.phone.ref.rich_text.secret.string.string_array.structure.tags.text.time.timestamp.url.uuid.uuid_array".split(".");
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as FIELD_TYPES };
|
package/dist-lib/types/ordmap.js
CHANGED
package/dist-lib/types/schema.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OrderedMap as e } from "./ordmap.js";
|
|
2
2
|
import { coerceDisplayString as t } from "../lib/display-value.js";
|
|
3
3
|
import { formatOffsetTimestamp as n } from "../lib/timestamp.js";
|
|
4
|
-
|
|
4
|
+
// src/types/schema.ts
|
|
5
5
|
var r = "none", i = "$display";
|
|
6
6
|
function a(e, r, a) {
|
|
7
7
|
if (!r) return;
|
|
@@ -182,5 +182,4 @@ function j(e, t, n, r) {
|
|
|
182
182
|
function M(e) {
|
|
183
183
|
return x(e).length > 1;
|
|
184
184
|
}
|
|
185
|
-
//#endregion
|
|
186
185
|
export { r as DETAIL_SCREEN_NONE, i as DISPLAY_KEY, e as OrderedMap, k as buildDetailHrefFromId, A as buildEntityDetailHref, j as buildRowDetailHref, m as effectiveSpecialValues, b as entityAllowsCreateRoute, _ as entityAllowsMutation, S as extractPkValues, u as fieldDisplayName, a as getDisplayValue, x as getPrimaryKeyFields, M as isCompositePk, g as isUserEditableField, d as normalizeRefConfig, C as pkValuePartsToId, D as pkValuesFromId, T as pkValuesToDetailId, w as pkValuesToId, h as propertyToField, O as resolveDetailRoute, o as resolveRefRecordLabel, y as rowAllowsMutation, v as rowSetInTenant, l as screenTitleForPath, E as singlePkValues, f as specialValueMarker, p as specialValueMarkerCode };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as IconDef } from "./icon-registry-
|
|
1
|
+
import { t as IconDef } from "./icon-registry-BY2tt-GF.js";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
//#region src/types/ordmap.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* OrderedMap preserves the insertion order of a string-keyed map while
|
|
6
5
|
* keeping O(1) lookup. It mirrors the Go `ordmap.OrderedMap[T]` container
|
|
@@ -40,8 +39,6 @@ declare class OrderedMap<T extends {
|
|
|
40
39
|
names(): readonly string[];
|
|
41
40
|
[Symbol.iterator](): IterableIterator<[string, T]>;
|
|
42
41
|
}
|
|
43
|
-
//#endregion
|
|
44
|
-
//#region src/types/files.d.ts
|
|
45
42
|
type FileFieldMode = "single" | "array" | "named_map" | "rich_text_inline";
|
|
46
43
|
interface FileFieldDisplay {
|
|
47
44
|
widget: string;
|
|
@@ -121,8 +118,6 @@ interface UploadedFile extends FileAddress {
|
|
|
121
118
|
height?: number;
|
|
122
119
|
metadata?: Record<string, unknown>;
|
|
123
120
|
}
|
|
124
|
-
//#endregion
|
|
125
|
-
//#region src/lib/filters.d.ts
|
|
126
121
|
/** A single node in the recursive filter tree. */
|
|
127
122
|
interface FilterNode {
|
|
128
123
|
/** Field condition */
|
|
@@ -183,8 +178,6 @@ declare function setFiltersInURL(filters: FilterNode[], searchParams: URLSearchP
|
|
|
183
178
|
declare function hasOrGroups(nodes: FilterNode[]): boolean;
|
|
184
179
|
/** Count active field conditions in the filter tree. */
|
|
185
180
|
declare function countActiveFilters(nodes: FilterNode[]): number;
|
|
186
|
-
//#endregion
|
|
187
|
-
//#region src/lib/language.d.ts
|
|
188
181
|
declare const MANDATORY_LANGUAGE = "en";
|
|
189
182
|
declare function pickLocalized(ls: LocalizedString | null | undefined, language: string, deploymentLanguage: string): string | undefined;
|
|
190
183
|
type TextVars = Record<string, string | number>;
|
|
@@ -201,8 +194,6 @@ declare function pluralText(t: TextFn, code: string, count: number, english: {
|
|
|
201
194
|
other: string;
|
|
202
195
|
}, more?: TextVars): string;
|
|
203
196
|
declare function textWithNodes(text: string, nodes: Record<string, ReactNode>): ReactNode[];
|
|
204
|
-
//#endregion
|
|
205
|
-
//#region src/types/schema.d.ts
|
|
206
197
|
type LocalizedString = Record<string, string>;
|
|
207
198
|
/**
|
|
208
199
|
* Where a `url` cell fetches an unknown host's site icon from.
|
|
@@ -1269,8 +1260,6 @@ interface ClassificationTierDef {
|
|
|
1269
1260
|
*/
|
|
1270
1261
|
sod_protected?: boolean;
|
|
1271
1262
|
}
|
|
1272
|
-
//#endregion
|
|
1273
|
-
//#region src/types/api.d.ts
|
|
1274
1263
|
interface ListMeta {
|
|
1275
1264
|
/**
|
|
1276
1265
|
* Total matching rows. Present only when the request asked for a count
|
|
@@ -1659,8 +1648,6 @@ interface AggregateGroup {
|
|
|
1659
1648
|
interface AggregateResponse {
|
|
1660
1649
|
aggregates: AggregateGroup[];
|
|
1661
1650
|
}
|
|
1662
|
-
//#endregion
|
|
1663
|
-
//#region src/api/data.d.ts
|
|
1664
1651
|
/** What a single-record read asks the server to compute beside the row. */
|
|
1665
1652
|
interface GetEntityOptions {
|
|
1666
1653
|
expand?: readonly "evidence"[];
|
|
@@ -1753,8 +1740,6 @@ declare function buildActionBody(params: Record<string, unknown> | undefined, id
|
|
|
1753
1740
|
* action code on its own (e.g. `auth.login`).
|
|
1754
1741
|
*/
|
|
1755
1742
|
declare function executeAction(code: string, body: ActionExecuteRequest): Promise<ActionExecuteResponse>;
|
|
1756
|
-
//#endregion
|
|
1757
|
-
//#region src/lib/viewport-category.d.ts
|
|
1758
1743
|
type ViewportCategory = "phone" | "tablet" | "desktop";
|
|
1759
1744
|
interface ResponsiveBreakpoints {
|
|
1760
1745
|
phoneMax: number;
|
|
@@ -1799,8 +1784,6 @@ declare function resolveViewportCategory(viewport: {
|
|
|
1799
1784
|
height: number;
|
|
1800
1785
|
touch?: boolean;
|
|
1801
1786
|
}, breakpoints?: ResponsiveBreakpoints): ViewportCategory;
|
|
1802
|
-
//#endregion
|
|
1803
|
-
//#region src/hooks/useResponsiveMode.d.ts
|
|
1804
1787
|
interface ResponsiveModeProviderProps {
|
|
1805
1788
|
children: ReactNode;
|
|
1806
1789
|
breakpoints?: ResponsiveBreakpoints;
|
|
@@ -1824,5 +1807,4 @@ interface ResponsiveModeProviderProps {
|
|
|
1824
1807
|
type ForcedViewport = "auto" | ViewportCategory;
|
|
1825
1808
|
declare function ResponsiveModeProvider({ children, breakpoints, viewportOverride, viewport: declaredViewport }: ResponsiveModeProviderProps): import("react").JSX.Element;
|
|
1826
1809
|
declare function useResponsiveMode(): ResponsiveMode;
|
|
1827
|
-
//#endregion
|
|
1828
1810
|
export { AreaDef as $, HydratedFile as $t, EnrichedRow as A, MANDATORY_LANGUAGE as At, Refs as B, FilterValueResolver as Bt, ApiErrorBody as C, fieldDisplayName as Ct, CURSOR_SEMANTICS_MISMATCH as D, pkValuesToDetailId as Dt, CURSOR_LANGUAGE_CHANGED as E, pkValuesFromId as Et, LoginResponse as F, pluralText as Ft, V2ListParams as G, parseFilterURLState as Gt, StatusInfo as H, OP_LABELS as Ht, ParamLookup as I, textWithNodes as It, V2ParamInstance as J, FileAddress as Jt, V2ListResponse as K, parseFiltersFromURL as Kt, PropertyValue as L, FilterNode as Lt, ListMeta as M, TextVars as Mt, ListParams as N, makeTextFn as Nt, CheckSetupResponse as O, pkValuesToId as Ot, ListResponse as P, pickLocalized as Pt, Action as Q, FileFieldValue as Qt, PublicParam as R, FilterOp as Rt, ApiError as S, extractPkValues as St, BrandingIdentity as T, pkValuePartsToId as Tt, Tenant as U, countActiveFilters as Ut, SignupResponse as V, NO_VALUE_OPS as Vt, TenantEnv as W, hasOrGroups as Wt, V2StatusInstance as X, FileFieldDisplay as Xt, V2PropertyInstance as Y, FileFieldDef as Yt, isCursorStaleError as Z, FileFieldMode as Zt, executeAction as _, StatusGroupDef as _t, ResponsiveMode as a, FieldAccessInfo as at, AggregateParams as b, buildEntityDetailHref as bt, resolveViewportCategory as c, NavNode as ct, ActionExecuteResponse as d, PropertyDef as dt, UploadProgress as en, ChildRelation as et, ActionItemError as f, RefConfig as ft, deleteObject as g, StatusDef as gt, buildActionBody as h, SpecialValue as ht, ResponsiveBreakpoints as i, EnumDef as it, ImpersonationInfo as j, TextFn as jt, DataResponse as k, resolveDetailRoute as kt, ActionBatchError as l, ParameterDef as lt, GetEntityOptions as m, Screen as mt, useResponsiveMode as n, OrderedMap as nn, Entity as nt, ResponsiveViewport as o, LanguageDef as ot, ActionItemSkip as p, Schema as pt, V2Meta as q, setFiltersInURL as qt, DEFAULT_RESPONSIVE_BREAKPOINTS as r, EntityField as rt, ViewportCategory as s, LocalizedString as st, ResponsiveModeProvider as t, UploadedFile as tn, ClassificationTierDef as tt, ActionExecuteRequest as u, PkValues as ut, restoreObject as v, StructureDef as vt, AuthUser as w, getPrimaryKeyFields as wt, AggregateResponse as x, buildRowDetailHref as xt, AggregateGroup as y, buildDetailHrefFromId as yt, PublicParamsResponse as z, FilterURLState as zt };
|
package/dist-lib/vite/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Plugin } from "vite";
|
|
2
|
-
//#region src/vite/fingerprint-plugin.d.ts
|
|
3
2
|
interface DeclarionFingerprintPluginOptions {
|
|
4
3
|
/**
|
|
5
4
|
* Subdirectory of `outDir` to walk. Defaults to "assets" — Vite's
|
|
@@ -43,5 +42,4 @@ interface DeclarionFingerprintPluginOptions {
|
|
|
43
42
|
* binary fingerprint differs across builds anyway). No errors.
|
|
44
43
|
*/
|
|
45
44
|
export declare function declarionFingerprintPlugin(options?: DeclarionFingerprintPluginOptions): Plugin;
|
|
46
|
-
//#endregion
|
|
47
45
|
export type { DeclarionFingerprintPluginOptions };
|
package/dist-lib/vite/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createHash as e } from "node:crypto";
|
|
2
2
|
import { mkdirSync as t, readFileSync as n, readdirSync as r, statSync as i, writeFileSync as a } from "node:fs";
|
|
3
3
|
import { join as o } from "node:path";
|
|
4
|
-
|
|
4
|
+
// src/vite/fingerprint-plugin.ts
|
|
5
5
|
function s(r = {}) {
|
|
6
6
|
let i = r.filename ?? "bundle-fingerprint.txt";
|
|
7
7
|
return {
|
|
@@ -47,5 +47,4 @@ function c(e) {
|
|
|
47
47
|
}
|
|
48
48
|
return t;
|
|
49
49
|
}
|
|
50
|
-
//#endregion
|
|
51
50
|
export { s as declarionFingerprintPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@declarion/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.146.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "React SDK for Declarion, the schema-driven business apps platform.",
|
|
@@ -58,18 +58,18 @@
|
|
|
58
58
|
"@dnd-kit/sortable": "^10.0.0",
|
|
59
59
|
"@dnd-kit/utilities": "^3.2.2",
|
|
60
60
|
"@monaco-editor/react": "^4.7.0",
|
|
61
|
-
"@tanstack/react-query": "^5.
|
|
61
|
+
"@tanstack/react-query": "^5.105.0",
|
|
62
62
|
"@tanstack/react-table": "^9.3.1",
|
|
63
|
-
"@tanstack/react-virtual": "^3.14.
|
|
63
|
+
"@tanstack/react-virtual": "^3.14.24",
|
|
64
64
|
"class-variance-authority": "^0.7.1",
|
|
65
65
|
"clsx": "^2.1.1",
|
|
66
66
|
"date-fns": "^4.4.0",
|
|
67
67
|
"libphonenumber-js": "1.13.15",
|
|
68
|
-
"lucide-react": "^1.
|
|
68
|
+
"lucide-react": "^1.64.0",
|
|
69
69
|
"mdast-util-to-string": "^4.0.0",
|
|
70
70
|
"monaco-editor": "^0.57.0",
|
|
71
71
|
"react-markdown": "^10.1.0",
|
|
72
|
-
"react-router": "^8.
|
|
72
|
+
"react-router": "^8.5.1",
|
|
73
73
|
"react-textarea-autosize": "^8.5.9",
|
|
74
74
|
"recharts": "^3.10.1",
|
|
75
75
|
"remark-breaks": "^4.0.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"tailwind-merge": "^3.7.0",
|
|
80
80
|
"unified": "^11.0.5",
|
|
81
81
|
"vanilla-jsoneditor": "^3.13.0",
|
|
82
|
-
"zustand": "^5.0.
|
|
82
|
+
"zustand": "^5.0.16"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@axe-core/react": "^4.14.0",
|
|
@@ -95,18 +95,18 @@
|
|
|
95
95
|
"@vitejs/plugin-react": "^6.1.2",
|
|
96
96
|
"@vitest/coverage-v8": "^5.0.5",
|
|
97
97
|
"axe-core": "^4.14.0",
|
|
98
|
-
"eslint": "^10.
|
|
98
|
+
"eslint": "^10.13.0",
|
|
99
99
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
100
100
|
"jsdom": "^30.1.3",
|
|
101
101
|
"publint": "^0.3.25",
|
|
102
102
|
"react": "^19.3.1",
|
|
103
103
|
"react-dom": "^19.3.1",
|
|
104
|
-
"rolldown": "^1.2.
|
|
105
|
-
"rolldown-plugin-dts": "^0.
|
|
104
|
+
"rolldown": "^1.2.16",
|
|
105
|
+
"rolldown-plugin-dts": "^0.29.0",
|
|
106
106
|
"tailwindcss": "^4.3.3",
|
|
107
107
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
108
|
-
"typescript-eslint": "^8.
|
|
109
|
-
"vite": "^8.3.
|
|
108
|
+
"typescript-eslint": "^8.72.1",
|
|
109
|
+
"vite": "^8.3.5",
|
|
110
110
|
"vitest": "^5.0.5"
|
|
111
111
|
},
|
|
112
112
|
"scripts": {
|