@declarion/react 0.142.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,34 +1,34 @@
|
|
|
1
1
|
import { Icon as e } from "../primitives/Icons.js";
|
|
2
2
|
import { IconBtn as t } from "../primitives/IconBtn.js";
|
|
3
3
|
import { Kbd as n } from "../primitives/Kbd.js";
|
|
4
|
-
import {
|
|
4
|
+
import { DynamicIcon as r } from "../shared/DynamicIcon.js";
|
|
5
5
|
import { useResponsiveMode as i } from "../../hooks/useResponsiveMode.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { screenOffersCreate as a } from "../../lib/actions.js";
|
|
7
|
+
import { useText as o } from "../../hooks/useText.js";
|
|
8
|
+
import { useBrandingIdentity as s } from "../../hooks/useBranding.js";
|
|
9
9
|
import { useEffect as c, useMemo as l, useRef as u, useState as d } from "react";
|
|
10
10
|
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
11
|
-
|
|
11
|
+
// src/components/layout/CommandPalette.impl.tsx
|
|
12
12
|
var h = "Esc";
|
|
13
13
|
function g(t, n = 14) {
|
|
14
14
|
if (!t) return null;
|
|
15
|
-
let
|
|
16
|
-
return
|
|
15
|
+
let i = e[t];
|
|
16
|
+
return i ? /* @__PURE__ */ p(i, { size: n }) : /* @__PURE__ */ p(r, {
|
|
17
17
|
name: t,
|
|
18
18
|
size: n
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
function _(t, n, r) {
|
|
22
22
|
if (!n?.navigation || !n.screens) return [];
|
|
23
|
-
let { navigation: i, screens:
|
|
23
|
+
let { navigation: i, screens: o, entities: s, actions: c } = n, l = [], u = (n) => {
|
|
24
24
|
if (n.screen) {
|
|
25
|
-
let i =
|
|
25
|
+
let i = o[n.screen];
|
|
26
26
|
if (i) {
|
|
27
|
-
let
|
|
27
|
+
let o = t(n.name) || n.screen;
|
|
28
28
|
l.push({
|
|
29
29
|
group: t("shell.palette.group.navigate", "Navigate"),
|
|
30
30
|
icon: g(n.icon || i.display?.icon || "folder"),
|
|
31
|
-
label: t("shell.palette.go_to", "Go to {name}", { name:
|
|
31
|
+
label: t("shell.palette.go_to", "Go to {name}", { name: o }),
|
|
32
32
|
act: () => r({
|
|
33
33
|
type: "nav",
|
|
34
34
|
id: n.screen,
|
|
@@ -36,11 +36,11 @@ function _(t, n, r) {
|
|
|
36
36
|
}),
|
|
37
37
|
actionType: "nav"
|
|
38
38
|
});
|
|
39
|
-
let u = i.entity ?
|
|
40
|
-
|
|
39
|
+
let u = i.entity ? s?.[i.entity] : void 0;
|
|
40
|
+
a(i, u, c) && l.push({
|
|
41
41
|
group: t("shell.palette.group.create", "Create"),
|
|
42
42
|
icon: /* @__PURE__ */ p(e.plus, { size: 14 }),
|
|
43
|
-
label: t("shell.palette.new_in_screen", "New {name}", { name: t(u?.display?.name) ||
|
|
43
|
+
label: t("shell.palette.new_in_screen", "New {name}", { name: t(u?.display?.name) || o }),
|
|
44
44
|
act: () => r({
|
|
45
45
|
type: "new",
|
|
46
46
|
id: n.screen,
|
|
@@ -56,12 +56,12 @@ function _(t, n, r) {
|
|
|
56
56
|
for (let e of i) u(e);
|
|
57
57
|
return l;
|
|
58
58
|
}
|
|
59
|
-
function v({ open:
|
|
60
|
-
let S =
|
|
59
|
+
function v({ open: r, onClose: a, onAction: g, mode: v = "default", schema: y, includeAI: b = !0, aiName: x = "" }) {
|
|
60
|
+
let S = o(), C = s()?.app_name?.trim(), [w, T] = d(""), [E, D] = d(0), O = u(null), k = i().category === "phone";
|
|
61
61
|
c(() => {
|
|
62
|
-
|
|
62
|
+
r && (setTimeout(() => O.current?.focus(), 50), T(v === "new" ? S("shell.palette.new_in_screen", "New {name}").split("{name}")[0] : ""), D(0));
|
|
63
63
|
}, [
|
|
64
|
-
|
|
64
|
+
r,
|
|
65
65
|
v,
|
|
66
66
|
S
|
|
67
67
|
]);
|
|
@@ -152,8 +152,8 @@ function v({ open: a, onClose: s, onAction: g, mode: v = "default", schema: y, i
|
|
|
152
152
|
...e,
|
|
153
153
|
_i: t
|
|
154
154
|
});
|
|
155
|
-
}),
|
|
156
|
-
onClick:
|
|
155
|
+
}), r ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
|
|
156
|
+
onClick: a,
|
|
157
157
|
style: {
|
|
158
158
|
position: "fixed",
|
|
159
159
|
inset: 0,
|
|
@@ -184,10 +184,10 @@ function v({ open: a, onClose: s, onAction: g, mode: v = "default", schema: y, i
|
|
|
184
184
|
minWidth: 0
|
|
185
185
|
},
|
|
186
186
|
onKeyDown: (e) => {
|
|
187
|
-
e.key === "ArrowDown" ? (e.preventDefault(), D(Math.min(E + 1, j.length - 1))) : e.key === "ArrowUp" ? (e.preventDefault(), D(Math.max(E - 1, 0))) : e.key === "Enter" && j[E] ? (j[E].act(),
|
|
187
|
+
e.key === "ArrowDown" ? (e.preventDefault(), D(Math.min(E + 1, j.length - 1))) : e.key === "ArrowUp" ? (e.preventDefault(), D(Math.max(E - 1, 0))) : e.key === "Enter" && j[E] ? (j[E].act(), a()) : e.key === "Enter" && b && w.trim() ? (e.preventDefault(), g({
|
|
188
188
|
type: "ai",
|
|
189
189
|
q: w.trim()
|
|
190
|
-
}),
|
|
190
|
+
}), a()) : e.key === "Escape" && a();
|
|
191
191
|
},
|
|
192
192
|
children: [
|
|
193
193
|
/* @__PURE__ */ m("div", {
|
|
@@ -224,7 +224,7 @@ function v({ open: a, onClose: s, onAction: g, mode: v = "default", schema: y, i
|
|
|
224
224
|
k && /* @__PURE__ */ p(t, {
|
|
225
225
|
icon: /* @__PURE__ */ p(e.x, { size: 14 }),
|
|
226
226
|
title: S("shell.palette.close", "Close command palette"),
|
|
227
|
-
onClick:
|
|
227
|
+
onClick: a
|
|
228
228
|
}),
|
|
229
229
|
!k && /* @__PURE__ */ p(n, { children: h })
|
|
230
230
|
]
|
|
@@ -249,7 +249,7 @@ function v({ open: a, onClose: s, onAction: g, mode: v = "default", schema: y, i
|
|
|
249
249
|
children: e
|
|
250
250
|
}), t.map((e) => /* @__PURE__ */ m("div", {
|
|
251
251
|
onClick: () => {
|
|
252
|
-
e.act(),
|
|
252
|
+
e.act(), a();
|
|
253
253
|
},
|
|
254
254
|
onMouseEnter: () => D(e._i),
|
|
255
255
|
style: {
|
|
@@ -382,5 +382,4 @@ function v({ open: a, onClose: s, onAction: g, mode: v = "default", schema: y, i
|
|
|
382
382
|
]
|
|
383
383
|
})] }) : null;
|
|
384
384
|
}
|
|
385
|
-
//#endregion
|
|
386
385
|
export { v as CommandPalette };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Suspense as e, lazy as t } from "react";
|
|
2
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/layout/CommandPalette.tsx
|
|
4
4
|
var r = t(() => import("./CommandPalette.impl.js").then((e) => ({ default: e.CommandPalette })));
|
|
5
5
|
function i(t) {
|
|
6
6
|
return /* @__PURE__ */ n(e, {
|
|
@@ -8,5 +8,4 @@ function i(t) {
|
|
|
8
8
|
children: /* @__PURE__ */ n(r, { ...t })
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
11
|
export { i as CommandPalette };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Btn as e } from "../primitives/Btn.js";
|
|
2
2
|
import { Icon as t } from "../primitives/Icons.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { IconBtn as n } from "../primitives/IconBtn.js";
|
|
4
|
+
import { DynamicIcon as r } from "../shared/DynamicIcon.js";
|
|
5
5
|
import { useText as i } from "../../hooks/useText.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { useTabTitle as a } from "../../hooks/useTabTitle.js";
|
|
7
|
+
import { pluralText as o } from "../../lib/language.js";
|
|
8
8
|
import { useEffect as s } from "react";
|
|
9
9
|
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
|
-
|
|
10
|
+
// src/components/layout/DirtyTabsCloseDialog.impl.tsx
|
|
11
11
|
function d({ pending: d, onCancel: f, onCloseClean: p, onDiscardAll: m }) {
|
|
12
|
-
let h = i(), g =
|
|
12
|
+
let h = i(), g = a();
|
|
13
13
|
if (s(() => {
|
|
14
14
|
if (!d) return;
|
|
15
15
|
let e = (e) => {
|
|
@@ -17,7 +17,7 @@ function d({ pending: d, onCancel: f, onCloseClean: p, onDiscardAll: m }) {
|
|
|
17
17
|
};
|
|
18
18
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
19
19
|
}, [d, f]), !d) return null;
|
|
20
|
-
let _ = d.ids.length, v = d.dirtyTabs.length, y = d.cleanIds.length, b =
|
|
20
|
+
let _ = d.ids.length, v = d.dirtyTabs.length, y = d.cleanIds.length, b = o(h, "shell.tabs.close_dialog.title", _, {
|
|
21
21
|
one: "Close {count} tab?",
|
|
22
22
|
other: "Close {count} tabs?"
|
|
23
23
|
});
|
|
@@ -89,13 +89,13 @@ function d({ pending: d, onCancel: f, onCloseClean: p, onDiscardAll: m }) {
|
|
|
89
89
|
color: "var(--text-3)",
|
|
90
90
|
marginTop: 2
|
|
91
91
|
},
|
|
92
|
-
children:
|
|
92
|
+
children: o(h, "shell.tabs.close_dialog.dirty", v, {
|
|
93
93
|
one: "{count} tab has unsaved changes.",
|
|
94
94
|
other: "{count} tabs have unsaved changes."
|
|
95
95
|
})
|
|
96
96
|
})]
|
|
97
97
|
}),
|
|
98
|
-
/* @__PURE__ */ l(
|
|
98
|
+
/* @__PURE__ */ l(n, {
|
|
99
99
|
icon: /* @__PURE__ */ l(t.x, { size: 14 }),
|
|
100
100
|
onClick: f,
|
|
101
101
|
title: h("dialog.cancel", "Cancel")
|
|
@@ -131,7 +131,7 @@ function d({ pending: d, onCancel: f, onCloseClean: p, onDiscardAll: m }) {
|
|
|
131
131
|
background: "var(--warn)",
|
|
132
132
|
flexShrink: 0
|
|
133
133
|
} }),
|
|
134
|
-
e.icon && /* @__PURE__ */ l(
|
|
134
|
+
e.icon && /* @__PURE__ */ l(r, {
|
|
135
135
|
name: e.icon,
|
|
136
136
|
size: 12,
|
|
137
137
|
style: { color: "var(--text-4)" }
|
|
@@ -152,7 +152,7 @@ function d({ pending: d, onCancel: f, onCloseClean: p, onDiscardAll: m }) {
|
|
|
152
152
|
color: "var(--text-4)",
|
|
153
153
|
marginTop: 10
|
|
154
154
|
},
|
|
155
|
-
children:
|
|
155
|
+
children: o(h, "shell.tabs.close_dialog.clean", y, {
|
|
156
156
|
one: "Other {count} tab has no unsaved changes.",
|
|
157
157
|
other: "Other {count} tabs have no unsaved changes."
|
|
158
158
|
})
|
|
@@ -169,16 +169,16 @@ function d({ pending: d, onCancel: f, onCloseClean: p, onDiscardAll: m }) {
|
|
|
169
169
|
},
|
|
170
170
|
children: [
|
|
171
171
|
/* @__PURE__ */ l("div", { style: { flex: 1 } }),
|
|
172
|
-
/* @__PURE__ */ l(
|
|
172
|
+
/* @__PURE__ */ l(e, {
|
|
173
173
|
onClick: f,
|
|
174
174
|
children: h("dialog.cancel", "Cancel")
|
|
175
175
|
}),
|
|
176
|
-
y > 0 && /* @__PURE__ */ l(
|
|
176
|
+
y > 0 && /* @__PURE__ */ l(e, {
|
|
177
177
|
autoFocus: !0,
|
|
178
178
|
onClick: p,
|
|
179
179
|
children: h("shell.tabs.close_dialog.close_clean", "Close clean only")
|
|
180
180
|
}),
|
|
181
|
-
/* @__PURE__ */ l(
|
|
181
|
+
/* @__PURE__ */ l(e, {
|
|
182
182
|
kind: "primary",
|
|
183
183
|
danger: !0,
|
|
184
184
|
onClick: m,
|
|
@@ -189,5 +189,4 @@ function d({ pending: d, onCancel: f, onCloseClean: p, onDiscardAll: m }) {
|
|
|
189
189
|
]
|
|
190
190
|
})] });
|
|
191
191
|
}
|
|
192
|
-
//#endregion
|
|
193
192
|
export { d as DirtyTabsCloseDialog };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Suspense as e, lazy as t } from "react";
|
|
2
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/layout/DirtyTabsCloseDialog.tsx
|
|
4
4
|
var r = t(() => import("./DirtyTabsCloseDialog.impl.js").then((e) => ({ default: e.DirtyTabsCloseDialog })));
|
|
5
5
|
function i(t) {
|
|
6
6
|
return /* @__PURE__ */ n(e, {
|
|
@@ -8,5 +8,4 @@ function i(t) {
|
|
|
8
8
|
children: /* @__PURE__ */ n(r, { ...t })
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
11
|
export { i as DirtyTabsCloseDialog };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useImpersonation as e } from "../../hooks/useImpersonation.js";
|
|
2
2
|
import { useText as t } from "../../hooks/useText.js";
|
|
3
|
-
import {
|
|
3
|
+
import { textWithNodes as n } from "../../lib/language.js";
|
|
4
4
|
import { useEffect as r, useState as i } from "react";
|
|
5
5
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/layout/ImpersonationBanner.impl.tsx
|
|
7
7
|
function s() {
|
|
8
|
-
let s = t(), { info: c, stop: l, isStopping: u } =
|
|
8
|
+
let s = t(), { info: c, stop: l, isStopping: u } = e(), [d, f] = i(() => Date.now());
|
|
9
9
|
if (r(() => {
|
|
10
10
|
if (!c) return;
|
|
11
11
|
let e = window.setInterval(() => f(Date.now()), 1e3);
|
|
@@ -35,13 +35,13 @@ function s() {
|
|
|
35
35
|
"aria-hidden": "true",
|
|
36
36
|
children: "⚠"
|
|
37
37
|
}),
|
|
38
|
-
/* @__PURE__ */ a("span", { children:
|
|
38
|
+
/* @__PURE__ */ a("span", { children: n(s("shell.impersonation.acting_as", "You are acting as {target}"), { target: /* @__PURE__ */ a("strong", {
|
|
39
39
|
"data-testid": "impersonation-target",
|
|
40
40
|
children: c.target_user_email || c.target_user_id
|
|
41
41
|
}) }) }),
|
|
42
42
|
/* @__PURE__ */ a("span", {
|
|
43
43
|
style: { opacity: .85 },
|
|
44
|
-
children:
|
|
44
|
+
children: n(s("shell.impersonation.real_user", "· Real user: {user}"), { user: /* @__PURE__ */ a("strong", { children: c.real_user_email || c.real_user_id }) })
|
|
45
45
|
}),
|
|
46
46
|
/* @__PURE__ */ a("span", {
|
|
47
47
|
style: { opacity: .85 },
|
|
@@ -73,5 +73,4 @@ function s() {
|
|
|
73
73
|
]
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
//#endregion
|
|
77
76
|
export { s as ImpersonationBanner };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Suspense as e, lazy as t } from "react";
|
|
2
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/layout/ImpersonationBanner.tsx
|
|
4
4
|
var r = t(() => import("./ImpersonationBanner.impl.js").then((e) => ({ default: e.ImpersonationBanner })));
|
|
5
5
|
function i() {
|
|
6
6
|
return /* @__PURE__ */ n(e, {
|
|
@@ -8,5 +8,4 @@ function i() {
|
|
|
8
8
|
children: /* @__PURE__ */ n(r, {})
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
11
|
export { i as ImpersonationBanner };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useImpersonation as e } from "../../hooks/useImpersonation.js";
|
|
2
|
+
import { useParam as t } from "../../hooks/useParams.js";
|
|
3
3
|
import { useEffect as n } from "react";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/layout/ImpersonationFrame.tsx
|
|
6
6
|
function i() {
|
|
7
|
-
let { info: i } =
|
|
7
|
+
let { info: i } = e(), { value: a } = t(i ? "impersonation.allow_destructive" : "", !1);
|
|
8
8
|
return n(() => {
|
|
9
9
|
if (!i) document.body.removeAttribute("data-impersonation-destructive");
|
|
10
10
|
else return a ? document.body.setAttribute("data-impersonation-destructive", "true") : document.body.removeAttribute("data-impersonation-destructive"), () => {
|
|
@@ -25,5 +25,4 @@ function i() {
|
|
|
25
25
|
}
|
|
26
26
|
}) : null;
|
|
27
27
|
}
|
|
28
|
-
//#endregion
|
|
29
28
|
export { i as ImpersonationFrame };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useImpersonation as e } from "../../hooks/useImpersonation.js";
|
|
2
2
|
import { useParam as t } from "../../hooks/useParams.js";
|
|
3
|
-
import {
|
|
3
|
+
import { useText as n } from "../../hooks/useText.js";
|
|
4
4
|
import { useState as r } from "react";
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/layout/ImpersonationStartModal.impl.tsx
|
|
7
7
|
function o({ open: o, targetUserId: s, targetUserLabel: c, onClose: l, onStarted: u }) {
|
|
8
|
-
let d =
|
|
8
|
+
let d = n(), { start: f, isStarting: p } = e(), { value: m } = t("impersonation.require_reason_min_length", 10), [h, g] = r(""), [_, v] = r("");
|
|
9
9
|
if (!o) return null;
|
|
10
10
|
let y = h.trim(), b = y.length >= m;
|
|
11
11
|
return /* @__PURE__ */ i("div", {
|
|
@@ -154,5 +154,4 @@ function o({ open: o, targetUserId: s, targetUserLabel: c, onClose: l, onStarted
|
|
|
154
154
|
})
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
|
-
//#endregion
|
|
158
157
|
export { o as ImpersonationStartModal };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Suspense as e, lazy as t } from "react";
|
|
2
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/layout/ImpersonationStartModal.tsx
|
|
4
4
|
var r = t(() => import("./ImpersonationStartModal.impl.js").then((e) => ({ default: e.ImpersonationStartModal })));
|
|
5
5
|
function i(t) {
|
|
6
6
|
return /* @__PURE__ */ n(e, {
|
|
@@ -8,5 +8,4 @@ function i(t) {
|
|
|
8
8
|
children: /* @__PURE__ */ n(r, { ...t })
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
11
|
export { i as ImpersonationStartModal };
|