@vertesia/ui 0.77.0 → 0.78.0-dev-28b447d
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/package.json +170 -164
- package/src/core/components/SelectList.tsx +11 -1
- package/src/core/components/SidePanel.tsx +13 -10
- package/src/core/components/shadcn/filters/filterBar.tsx +46 -20
- package/src/core/components/shadcn/index.ts +1 -0
- package/src/core/components/shadcn/resizeable.tsx +54 -0
- package/src/core/components/shadcn/tabs.tsx +16 -6
- package/src/core/components/table/index.tsx +1 -1
- package/src/core/hooks/PortalContainerProvider.tsx +56 -0
- package/src/core/hooks/index.ts +1 -0
- package/src/env/index.ts +2 -1
- package/src/features/facets/CollectionsFacetsNav.tsx +94 -0
- package/src/features/facets/DocumentsFacetsNav.tsx +22 -11
- package/src/features/facets/EnvironmentFacet.tsx +1 -1
- package/src/features/facets/InteractionsFacetsNav.tsx +111 -0
- package/src/features/facets/PromptsFacetsNav.tsx +110 -0
- package/src/features/facets/RunsFacetsNav.tsx +40 -9
- package/src/features/facets/WorkflowExecutionsFacetsNav.tsx +10 -8
- package/src/features/facets/index.ts +11 -9
- package/{lib/types/features/facets/VFacetsNav.d.ts → src/features/facets/utils/SearchInterface.tsx} +0 -8
- package/src/features/facets/{VTypeFacet.tsx → utils/VTypeFacet.tsx} +6 -3
- package/src/features/facets/{VUserFacet.tsx → utils/VUserFacet.tsx} +1 -1
- package/src/features/store/collections/EditCollectionView.tsx +14 -1
- package/src/features/store/collections/SelectCollection.tsx +160 -31
- package/src/features/store/objects/DocumentSearchResults.tsx +75 -39
- package/src/features/store/objects/components/ContentOverview.tsx +432 -261
- package/src/features/store/objects/components/DocumentIcon.tsx +37 -2
- package/src/features/store/objects/layout/documentLayout.tsx +3 -7
- package/src/features/store/objects/search/DocumentSearchContext.ts +8 -3
- package/src/features/store/objects/selection/actions/AddToCollectionAction.tsx +15 -8
- package/src/features/store/objects/upload/DocumentUploadModal.tsx +5 -6
- package/src/features/store/types/ObjectSchemaEditor.tsx +1 -1
- package/src/features/user/UserInfo.tsx +68 -3
- package/src/session/UserSession.ts +1 -0
- package/src/session/UserSessionProvider.tsx +1 -1
- package/src/session/auth/composable.ts +71 -70
- package/src/shell/apps/AppProjectSelector.tsx +19 -8
- package/src/shell/apps/index.ts +1 -1
- package/src/shell/login/UserInfo.tsx +1 -1
- package/src/widgets/schema-editor/index.ts +0 -1
- package/lib/esm/core/components/Avatar.js +0 -31
- package/lib/esm/core/components/Avatar.js.map +0 -1
- package/lib/esm/core/components/Badge.js +0 -62
- package/lib/esm/core/components/Badge.js.map +0 -1
- package/lib/esm/core/components/Button.js +0 -32
- package/lib/esm/core/components/Button.js.map +0 -1
- package/lib/esm/core/components/Center.js +0 -6
- package/lib/esm/core/components/Center.js.map +0 -1
- package/lib/esm/core/components/ComboBox.js +0 -356
- package/lib/esm/core/components/ComboBox.js.map +0 -1
- package/lib/esm/core/components/ConfirmModal.js +0 -10
- package/lib/esm/core/components/ConfirmModal.js.map +0 -1
- package/lib/esm/core/components/DeleteModal.js +0 -28
- package/lib/esm/core/components/DeleteModal.js.map +0 -1
- package/lib/esm/core/components/Divider.js +0 -6
- package/lib/esm/core/components/Divider.js.map +0 -1
- package/lib/esm/core/components/Dropdown.js +0 -16
- package/lib/esm/core/components/Dropdown.js.map +0 -1
- package/lib/esm/core/components/DropdownList.js +0 -9
- package/lib/esm/core/components/DropdownList.js.map +0 -1
- package/lib/esm/core/components/EmptyCollection.js +0 -7
- package/lib/esm/core/components/EmptyCollection.js.map +0 -1
- package/lib/esm/core/components/FileUpload.js +0 -119
- package/lib/esm/core/components/FileUpload.js.map +0 -1
- package/lib/esm/core/components/FormItem.js +0 -9
- package/lib/esm/core/components/FormItem.js.map +0 -1
- package/lib/esm/core/components/InputList.js +0 -43
- package/lib/esm/core/components/InputList.js.map +0 -1
- package/lib/esm/core/components/Link.js +0 -13
- package/lib/esm/core/components/Link.js.map +0 -1
- package/lib/esm/core/components/MenuList.js +0 -23
- package/lib/esm/core/components/MenuList.js.map +0 -1
- package/lib/esm/core/components/MessageBox.js +0 -66
- package/lib/esm/core/components/MessageBox.js.map +0 -1
- package/lib/esm/core/components/Modal.js +0 -26
- package/lib/esm/core/components/Modal.js.map +0 -1
- package/lib/esm/core/components/NumberInput.js +0 -43
- package/lib/esm/core/components/NumberInput.js.map +0 -1
- package/lib/esm/core/components/Overlay.js +0 -57
- package/lib/esm/core/components/Overlay.js.map +0 -1
- package/lib/esm/core/components/Portal.js +0 -28
- package/lib/esm/core/components/Portal.js.map +0 -1
- package/lib/esm/core/components/RadioGroup.js +0 -34
- package/lib/esm/core/components/RadioGroup.js.map +0 -1
- package/lib/esm/core/components/SelectBox.js +0 -67
- package/lib/esm/core/components/SelectBox.js.map +0 -1
- package/lib/esm/core/components/SelectList.js +0 -47
- package/lib/esm/core/components/SelectList.js.map +0 -1
- package/lib/esm/core/components/SelectStack.js +0 -8
- package/lib/esm/core/components/SelectStack.js.map +0 -1
- package/lib/esm/core/components/SidePanel.js +0 -33
- package/lib/esm/core/components/SidePanel.js.map +0 -1
- package/lib/esm/core/components/Spinner.js +0 -18
- package/lib/esm/core/components/Spinner.js.map +0 -1
- package/lib/esm/core/components/Switch.js +0 -12
- package/lib/esm/core/components/Switch.js.map +0 -1
- package/lib/esm/core/components/Textarea.js +0 -15
- package/lib/esm/core/components/Textarea.js.map +0 -1
- package/lib/esm/core/components/index.js +0 -35
- package/lib/esm/core/components/index.js.map +0 -1
- package/lib/esm/core/components/libs/utils.js +0 -6
- package/lib/esm/core/components/libs/utils.js.map +0 -1
- package/lib/esm/core/components/libs/visuallyHidden.js +0 -16
- package/lib/esm/core/components/libs/visuallyHidden.js.map +0 -1
- package/lib/esm/core/components/popup/Popup.js +0 -60
- package/lib/esm/core/components/popup/Popup.js.map +0 -1
- package/lib/esm/core/components/popup/PopupController.js +0 -149
- package/lib/esm/core/components/popup/PopupController.js.map +0 -1
- package/lib/esm/core/components/popup/index.js +0 -4
- package/lib/esm/core/components/popup/index.js.map +0 -1
- package/lib/esm/core/components/popup/position.js +0 -221
- package/lib/esm/core/components/popup/position.js.map +0 -1
- package/lib/esm/core/components/popup/utils.js +0 -74
- package/lib/esm/core/components/popup/utils.js.map +0 -1
- package/lib/esm/core/components/shadcn/breadcrumb.js +0 -30
- package/lib/esm/core/components/shadcn/breadcrumb.js.map +0 -1
- package/lib/esm/core/components/shadcn/button.js +0 -75
- package/lib/esm/core/components/shadcn/button.js.map +0 -1
- package/lib/esm/core/components/shadcn/calendar.js +0 -13
- package/lib/esm/core/components/shadcn/calendar.js.map +0 -1
- package/lib/esm/core/components/shadcn/card.js +0 -17
- package/lib/esm/core/components/shadcn/card.js.map +0 -1
- package/lib/esm/core/components/shadcn/checkbox.js +0 -9
- package/lib/esm/core/components/shadcn/checkbox.js.map +0 -1
- package/lib/esm/core/components/shadcn/command.js +0 -29
- package/lib/esm/core/components/shadcn/command.js.map +0 -1
- package/lib/esm/core/components/shadcn/dialog.js +0 -60
- package/lib/esm/core/components/shadcn/dialog.js.map +0 -1
- package/lib/esm/core/components/shadcn/filters/DynamicLabel.js +0 -38
- package/lib/esm/core/components/shadcn/filters/DynamicLabel.js.map +0 -1
- package/lib/esm/core/components/shadcn/filters/animateChangeInHeight.js +0 -23
- package/lib/esm/core/components/shadcn/filters/animateChangeInHeight.js.map +0 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js +0 -129
- package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js.map +0 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js +0 -46
- package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js.map +0 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js +0 -23
- package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js.map +0 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/TextCombobox.js +0 -28
- package/lib/esm/core/components/shadcn/filters/comboBox/TextCombobox.js.map +0 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/comboBox.js +0 -5
- package/lib/esm/core/components/shadcn/filters/comboBox/comboBox.js.map +0 -1
- package/lib/esm/core/components/shadcn/filters/filter/SelectFilter.js +0 -101
- package/lib/esm/core/components/shadcn/filters/filter/SelectFilter.js.map +0 -1
- package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js +0 -24
- package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js.map +0 -1
- package/lib/esm/core/components/shadcn/filters/filter/TextFilter.js +0 -21
- package/lib/esm/core/components/shadcn/filters/filter/TextFilter.js.map +0 -1
- package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js +0 -161
- package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js.map +0 -1
- package/lib/esm/core/components/shadcn/filters/filter-styles.js +0 -88
- package/lib/esm/core/components/shadcn/filters/filter-styles.js.map +0 -1
- package/lib/esm/core/components/shadcn/filters/filterBar.js +0 -215
- package/lib/esm/core/components/shadcn/filters/filterBar.js.map +0 -1
- package/lib/esm/core/components/shadcn/filters/filters.js +0 -57
- package/lib/esm/core/components/shadcn/filters/filters.js.map +0 -1
- package/lib/esm/core/components/shadcn/filters/index.js +0 -6
- package/lib/esm/core/components/shadcn/filters/index.js.map +0 -1
- package/lib/esm/core/components/shadcn/filters/types.js +0 -10
- package/lib/esm/core/components/shadcn/filters/types.js.map +0 -1
- package/lib/esm/core/components/shadcn/heading.js +0 -17
- package/lib/esm/core/components/shadcn/heading.js.map +0 -1
- package/lib/esm/core/components/shadcn/index.js +0 -22
- package/lib/esm/core/components/shadcn/index.js.map +0 -1
- package/lib/esm/core/components/shadcn/input.js +0 -38
- package/lib/esm/core/components/shadcn/input.js.map +0 -1
- package/lib/esm/core/components/shadcn/label.js +0 -10
- package/lib/esm/core/components/shadcn/label.js.map +0 -1
- package/lib/esm/core/components/shadcn/popover.js +0 -50
- package/lib/esm/core/components/shadcn/popover.js.map +0 -1
- package/lib/esm/core/components/shadcn/selectBox.js +0 -128
- package/lib/esm/core/components/shadcn/selectBox.js.map +0 -1
- package/lib/esm/core/components/shadcn/separator.js +0 -8
- package/lib/esm/core/components/shadcn/separator.js.map +0 -1
- package/lib/esm/core/components/shadcn/tabs.js +0 -120
- package/lib/esm/core/components/shadcn/tabs.js.map +0 -1
- package/lib/esm/core/components/shadcn/text.js +0 -30
- package/lib/esm/core/components/shadcn/text.js.map +0 -1
- package/lib/esm/core/components/shadcn/theme/ThemeProvider.js +0 -39
- package/lib/esm/core/components/shadcn/theme/ThemeProvider.js.map +0 -1
- package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js +0 -13
- package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js.map +0 -1
- package/lib/esm/core/components/shadcn/tooltip.js +0 -14
- package/lib/esm/core/components/shadcn/tooltip.js.map +0 -1
- package/lib/esm/core/components/styles.js +0 -10
- package/lib/esm/core/components/styles.js.map +0 -1
- package/lib/esm/core/components/table/index.js +0 -23
- package/lib/esm/core/components/table/index.js.map +0 -1
- package/lib/esm/core/components/tabs/Tabs.js +0 -78
- package/lib/esm/core/components/tabs/Tabs.js.map +0 -1
- package/lib/esm/core/components/tabs/TabsContext.js +0 -7
- package/lib/esm/core/components/tabs/TabsContext.js.map +0 -1
- package/lib/esm/core/components/tabs/index.js +0 -3
- package/lib/esm/core/components/tabs/index.js.map +0 -1
- package/lib/esm/core/components/toast/NotificationPanel.js +0 -43
- package/lib/esm/core/components/toast/NotificationPanel.js.map +0 -1
- package/lib/esm/core/components/toast/ToastContext.js +0 -7
- package/lib/esm/core/components/toast/ToastContext.js.map +0 -1
- package/lib/esm/core/components/toast/ToastProps.js +0 -2
- package/lib/esm/core/components/toast/ToastProps.js.map +0 -1
- package/lib/esm/core/components/toast/ToastProvider.js +0 -13
- package/lib/esm/core/components/toast/ToastProvider.js.map +0 -1
- package/lib/esm/core/components/toast/index.js +0 -3
- package/lib/esm/core/components/toast/index.js.map +0 -1
- package/lib/esm/core/hooks/CompositeState.js +0 -118
- package/lib/esm/core/hooks/CompositeState.js.map +0 -1
- package/lib/esm/core/hooks/SharedState.js +0 -64
- package/lib/esm/core/hooks/SharedState.js.map +0 -1
- package/lib/esm/core/hooks/index.js +0 -14
- package/lib/esm/core/hooks/index.js.map +0 -1
- package/lib/esm/core/hooks/useClickOutside.js +0 -29
- package/lib/esm/core/hooks/useClickOutside.js.map +0 -1
- package/lib/esm/core/hooks/useCopyToClipboard.js +0 -23
- package/lib/esm/core/hooks/useCopyToClipboard.js.map +0 -1
- package/lib/esm/core/hooks/useDarkMode.js +0 -11
- package/lib/esm/core/hooks/useDarkMode.js.map +0 -1
- package/lib/esm/core/hooks/useDebounce.js +0 -14
- package/lib/esm/core/hooks/useDebounce.js.map +0 -1
- package/lib/esm/core/hooks/useEventSource.js +0 -31
- package/lib/esm/core/hooks/useEventSource.js.map +0 -1
- package/lib/esm/core/hooks/useFetch.js +0 -40
- package/lib/esm/core/hooks/useFetch.js.map +0 -1
- package/lib/esm/core/hooks/useFlag.js +0 -13
- package/lib/esm/core/hooks/useFlag.js.map +0 -1
- package/lib/esm/core/hooks/useIntersectionObserver.js +0 -34
- package/lib/esm/core/hooks/useIntersectionObserver.js.map +0 -1
- package/lib/esm/core/hooks/useIsFistRendering.js +0 -14
- package/lib/esm/core/hooks/useIsFistRendering.js.map +0 -1
- package/lib/esm/core/hooks/useSafeLayoutEffect.js +0 -4
- package/lib/esm/core/hooks/useSafeLayoutEffect.js.map +0 -1
- package/lib/esm/core/hooks/useSharedValue.js +0 -21
- package/lib/esm/core/hooks/useSharedValue.js.map +0 -1
- package/lib/esm/core/index.js +0 -4
- package/lib/esm/core/index.js.map +0 -1
- package/lib/esm/core/utils/cn.js +0 -6
- package/lib/esm/core/utils/cn.js.map +0 -1
- package/lib/esm/core/utils/index.js +0 -2
- package/lib/esm/core/utils/index.js.map +0 -1
- package/lib/esm/env/index.js +0 -72
- package/lib/esm/env/index.js.map +0 -1
- package/lib/esm/features/activity-doc/ActivityDoc.js +0 -71
- package/lib/esm/features/activity-doc/ActivityDoc.js.map +0 -1
- package/lib/esm/features/activity-doc/index.js +0 -2
- package/lib/esm/features/activity-doc/index.js.map +0 -1
- package/lib/esm/features/agent/PayloadBuilder.js +0 -241
- package/lib/esm/features/agent/PayloadBuilder.js.map +0 -1
- package/lib/esm/features/agent/chat/AnimatedThinkingDots.js +0 -207
- package/lib/esm/features/agent/chat/AnimatedThinkingDots.js.map +0 -1
- package/lib/esm/features/agent/chat/JumpingDots.js +0 -6
- package/lib/esm/features/agent/chat/JumpingDots.js.map +0 -1
- package/lib/esm/features/agent/chat/ModernAgentConversation.js +0 -415
- package/lib/esm/features/agent/chat/ModernAgentConversation.js.map +0 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +0 -130
- package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +0 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js +0 -62
- package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js.map +0 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.js +0 -29
- package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.js.map +0 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js +0 -97
- package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js.map +0 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js +0 -46
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js.map +0 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js +0 -364
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js.map +0 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessagesContainer.js +0 -20
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessagesContainer.js.map +0 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js +0 -62
- package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js.map +0 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/SlideInPanel.js +0 -23
- package/lib/esm/features/agent/chat/ModernAgentOutput/SlideInPanel.js.map +0 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingMessages.js +0 -52
- package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingMessages.js.map +0 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js +0 -82
- package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js.map +0 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/StackedMessages.js +0 -13
- package/lib/esm/features/agent/chat/ModernAgentOutput/StackedMessages.js.map +0 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js +0 -105
- package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js.map +0 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js +0 -160
- package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js.map +0 -1
- package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js +0 -266
- package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js.map +0 -1
- package/lib/esm/features/agent/chat/WaitingMessages.js +0 -60
- package/lib/esm/features/agent/chat/WaitingMessages.js.map +0 -1
- package/lib/esm/features/agent/chat/index.js +0 -5
- package/lib/esm/features/agent/chat/index.js.map +0 -1
- package/lib/esm/features/agent/index.js +0 -3
- package/lib/esm/features/agent/index.js.map +0 -1
- package/lib/esm/features/errors/PanelErrorBoundary.js +0 -11
- package/lib/esm/features/errors/PanelErrorBoundary.js.map +0 -1
- package/lib/esm/features/errors/RowErrorBoundary.js +0 -9
- package/lib/esm/features/errors/RowErrorBoundary.js.map +0 -1
- package/lib/esm/features/errors/VertesiaErrorBoundary.js +0 -15
- package/lib/esm/features/errors/VertesiaErrorBoundary.js.map +0 -1
- package/lib/esm/features/errors/WidgetErrorBoundary.js +0 -11
- package/lib/esm/features/errors/WidgetErrorBoundary.js.map +0 -1
- package/lib/esm/features/errors/index.js +0 -5
- package/lib/esm/features/errors/index.js.map +0 -1
- package/lib/esm/features/facets/DocumentsFacetsNav.js +0 -135
- package/lib/esm/features/facets/DocumentsFacetsNav.js.map +0 -1
- package/lib/esm/features/facets/EnvironmentFacet.js +0 -39
- package/lib/esm/features/facets/EnvironmentFacet.js.map +0 -1
- package/lib/esm/features/facets/FacetsNav.js +0 -8
- package/lib/esm/features/facets/FacetsNav.js.map +0 -1
- package/lib/esm/features/facets/RunsFacetsNav.js +0 -135
- package/lib/esm/features/facets/RunsFacetsNav.js.map +0 -1
- package/lib/esm/features/facets/StringFacet.js +0 -12
- package/lib/esm/features/facets/StringFacet.js.map +0 -1
- package/lib/esm/features/facets/StringListFacet.js +0 -11
- package/lib/esm/features/facets/StringListFacet.js.map +0 -1
- package/lib/esm/features/facets/TypeFacet.js +0 -42
- package/lib/esm/features/facets/TypeFacet.js.map +0 -1
- package/lib/esm/features/facets/VEnvironmentFacet.js +0 -24
- package/lib/esm/features/facets/VEnvironmentFacet.js.map +0 -1
- package/lib/esm/features/facets/VFacetsNav.js +0 -48
- package/lib/esm/features/facets/VFacetsNav.js.map +0 -1
- package/lib/esm/features/facets/VInteractionFacet.js +0 -45
- package/lib/esm/features/facets/VInteractionFacet.js.map +0 -1
- package/lib/esm/features/facets/VStringFacet.js +0 -20
- package/lib/esm/features/facets/VStringFacet.js.map +0 -1
- package/lib/esm/features/facets/VTypeFacet.js +0 -56
- package/lib/esm/features/facets/VTypeFacet.js.map +0 -1
- package/lib/esm/features/facets/VUserFacet.js +0 -31
- package/lib/esm/features/facets/VUserFacet.js.map +0 -1
- package/lib/esm/features/facets/WorkflowExecutionsFacetsNav.js +0 -98
- package/lib/esm/features/facets/WorkflowExecutionsFacetsNav.js.map +0 -1
- package/lib/esm/features/facets/index.js +0 -13
- package/lib/esm/features/facets/index.js.map +0 -1
- package/lib/esm/features/facets/utils.js +0 -7
- package/lib/esm/features/facets/utils.js.map +0 -1
- package/lib/esm/features/index.js +0 -11
- package/lib/esm/features/index.js.map +0 -1
- package/lib/esm/features/layout/GenericPageNavHeader.js +0 -11
- package/lib/esm/features/layout/GenericPageNavHeader.js.map +0 -1
- package/lib/esm/features/layout/NotFoundView.js +0 -5
- package/lib/esm/features/layout/NotFoundView.js.map +0 -1
- package/lib/esm/features/layout/index.js +0 -3
- package/lib/esm/features/layout/index.js.map +0 -1
- package/lib/esm/features/magic-pdf/DownloadPopover.js +0 -28
- package/lib/esm/features/magic-pdf/DownloadPopover.js.map +0 -1
- package/lib/esm/features/magic-pdf/MagicPdfView.js +0 -67
- package/lib/esm/features/magic-pdf/MagicPdfView.js.map +0 -1
- package/lib/esm/features/magic-pdf/PageSlider.js +0 -70
- package/lib/esm/features/magic-pdf/PageSlider.js.map +0 -1
- package/lib/esm/features/magic-pdf/PdfPageProvider.js +0 -188
- package/lib/esm/features/magic-pdf/PdfPageProvider.js.map +0 -1
- package/lib/esm/features/magic-pdf/TextPageView.js +0 -62
- package/lib/esm/features/magic-pdf/TextPageView.js.map +0 -1
- package/lib/esm/features/magic-pdf/index.js +0 -2
- package/lib/esm/features/magic-pdf/index.js.map +0 -1
- package/lib/esm/features/magic-pdf/types.js +0 -2
- package/lib/esm/features/magic-pdf/types.js.map +0 -1
- package/lib/esm/features/magic-pdf/useResizeOnDrag.js +0 -34
- package/lib/esm/features/magic-pdf/useResizeOnDrag.js.map +0 -1
- package/lib/esm/features/permissions/SecureButton.js +0 -13
- package/lib/esm/features/permissions/SecureButton.js.map +0 -1
- package/lib/esm/features/permissions/SecureSidebarItem.js +0 -14
- package/lib/esm/features/permissions/SecureSidebarItem.js.map +0 -1
- package/lib/esm/features/permissions/UserPermissionsProvider.js +0 -87
- package/lib/esm/features/permissions/UserPermissionsProvider.js.map +0 -1
- package/lib/esm/features/permissions/helpers.js +0 -12
- package/lib/esm/features/permissions/helpers.js.map +0 -1
- package/lib/esm/features/permissions/index.js +0 -5
- package/lib/esm/features/permissions/index.js.map +0 -1
- package/lib/esm/features/store/collections/BrowseCollectionView.js +0 -37
- package/lib/esm/features/store/collections/BrowseCollectionView.js.map +0 -1
- package/lib/esm/features/store/collections/CollectionsTable.js +0 -64
- package/lib/esm/features/store/collections/CollectionsTable.js.map +0 -1
- package/lib/esm/features/store/collections/CreateCollection.js +0 -87
- package/lib/esm/features/store/collections/CreateCollection.js.map +0 -1
- package/lib/esm/features/store/collections/EditCollectionView.js +0 -162
- package/lib/esm/features/store/collections/EditCollectionView.js.map +0 -1
- package/lib/esm/features/store/collections/SelectCollection.js +0 -24
- package/lib/esm/features/store/collections/SelectCollection.js.map +0 -1
- package/lib/esm/features/store/collections/index.js +0 -6
- package/lib/esm/features/store/collections/index.js.map +0 -1
- package/lib/esm/features/store/index.js +0 -4
- package/lib/esm/features/store/index.js.map +0 -1
- package/lib/esm/features/store/objects/DocumentPreviewPanel.js +0 -147
- package/lib/esm/features/store/objects/DocumentPreviewPanel.js.map +0 -1
- package/lib/esm/features/store/objects/DocumentSearchResults.js +0 -159
- package/lib/esm/features/store/objects/DocumentSearchResults.js.map +0 -1
- package/lib/esm/features/store/objects/DocumentSelectionProvider.js +0 -81
- package/lib/esm/features/store/objects/DocumentSelectionProvider.js.map +0 -1
- package/lib/esm/features/store/objects/DocumentTable.js +0 -278
- package/lib/esm/features/store/objects/DocumentTable.js.map +0 -1
- package/lib/esm/features/store/objects/ExportPropertiesModal.js +0 -31
- package/lib/esm/features/store/objects/ExportPropertiesModal.js.map +0 -1
- package/lib/esm/features/store/objects/components/ContentDispositionButton.js +0 -31
- package/lib/esm/features/store/objects/components/ContentDispositionButton.js.map +0 -1
- package/lib/esm/features/store/objects/components/ContentOverview.js +0 -192
- package/lib/esm/features/store/objects/components/ContentOverview.js.map +0 -1
- package/lib/esm/features/store/objects/components/DocumentIcon.js +0 -25
- package/lib/esm/features/store/objects/components/DocumentIcon.js.map +0 -1
- package/lib/esm/features/store/objects/components/DocumentInput.js +0 -51
- package/lib/esm/features/store/objects/components/DocumentInput.js.map +0 -1
- package/lib/esm/features/store/objects/components/PropertiesEditorModal.js +0 -171
- package/lib/esm/features/store/objects/components/PropertiesEditorModal.js.map +0 -1
- package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js +0 -44
- package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js.map +0 -1
- package/lib/esm/features/store/objects/components/SelectDocument.js +0 -45
- package/lib/esm/features/store/objects/components/SelectDocument.js.map +0 -1
- package/lib/esm/features/store/objects/components/SelectDocumentModal.js +0 -7
- package/lib/esm/features/store/objects/components/SelectDocumentModal.js.map +0 -1
- package/lib/esm/features/store/objects/components/VectorSearchWidget.js +0 -90
- package/lib/esm/features/store/objects/components/VectorSearchWidget.js.map +0 -1
- package/lib/esm/features/store/objects/components/index.js +0 -10
- package/lib/esm/features/store/objects/components/index.js.map +0 -1
- package/lib/esm/features/store/objects/components/useDownloadObject.js +0 -21
- package/lib/esm/features/store/objects/components/useDownloadObject.js.map +0 -1
- package/lib/esm/features/store/objects/index.js +0 -11
- package/lib/esm/features/store/objects/index.js.map +0 -1
- package/lib/esm/features/store/objects/layout/DocumentTableColumn.js +0 -74
- package/lib/esm/features/store/objects/layout/DocumentTableColumn.js.map +0 -1
- package/lib/esm/features/store/objects/layout/documentLayout.js +0 -16
- package/lib/esm/features/store/objects/layout/documentLayout.js.map +0 -1
- package/lib/esm/features/store/objects/layout/index.js +0 -3
- package/lib/esm/features/store/objects/layout/index.js.map +0 -1
- package/lib/esm/features/store/objects/layout/renderers.js +0 -128
- package/lib/esm/features/store/objects/layout/renderers.js.map +0 -1
- package/lib/esm/features/store/objects/search/DocumentSearchContext.js +0 -168
- package/lib/esm/features/store/objects/search/DocumentSearchContext.js.map +0 -1
- package/lib/esm/features/store/objects/search/DocumentSearchProvider.js +0 -39
- package/lib/esm/features/store/objects/search/DocumentSearchProvider.js.map +0 -1
- package/lib/esm/features/store/objects/search/index.js +0 -3
- package/lib/esm/features/store/objects/search/index.js.map +0 -1
- package/lib/esm/features/store/objects/selection/ObjectsActionContext.js +0 -149
- package/lib/esm/features/store/objects/selection/ObjectsActionContext.js.map +0 -1
- package/lib/esm/features/store/objects/selection/ObjectsActionSpec.js +0 -2
- package/lib/esm/features/store/objects/selection/ObjectsActionSpec.js.map +0 -1
- package/lib/esm/features/store/objects/selection/SelectionActions.js +0 -75
- package/lib/esm/features/store/objects/selection/SelectionActions.js.map +0 -1
- package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js +0 -73
- package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js.map +0 -1
- package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js +0 -53
- package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js.map +0 -1
- package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js +0 -30
- package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js.map +0 -1
- package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js +0 -66
- package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js.map +0 -1
- package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js +0 -106
- package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js.map +0 -1
- package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js +0 -64
- package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js.map +0 -1
- package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js +0 -72
- package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js.map +0 -1
- package/lib/esm/features/store/objects/selection/actions/index.js +0 -8
- package/lib/esm/features/store/objects/selection/actions/index.js.map +0 -1
- package/lib/esm/features/store/objects/selection/index.js +0 -5
- package/lib/esm/features/store/objects/selection/index.js.map +0 -1
- package/lib/esm/features/store/objects/upload/DocumentUploadModal.js +0 -511
- package/lib/esm/features/store/objects/upload/DocumentUploadModal.js.map +0 -1
- package/lib/esm/features/store/objects/upload/index.js +0 -4
- package/lib/esm/features/store/objects/upload/index.js.map +0 -1
- package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js +0 -194
- package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js.map +0 -1
- package/lib/esm/features/store/objects/upload/useUploadHandler.js +0 -230
- package/lib/esm/features/store/objects/upload/useUploadHandler.js.map +0 -1
- package/lib/esm/features/store/types/ContentObjectTypesSearch.js +0 -81
- package/lib/esm/features/store/types/ContentObjectTypesSearch.js.map +0 -1
- package/lib/esm/features/store/types/ContentObjectTypesTable.js +0 -11
- package/lib/esm/features/store/types/ContentObjectTypesTable.js.map +0 -1
- package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js +0 -26
- package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js.map +0 -1
- package/lib/esm/features/store/types/ObjectSchemaEditor.js +0 -103
- package/lib/esm/features/store/types/ObjectSchemaEditor.js.map +0 -1
- package/lib/esm/features/store/types/SelectContentType.js +0 -43
- package/lib/esm/features/store/types/SelectContentType.js.map +0 -1
- package/lib/esm/features/store/types/SelectContentTypeModal.js +0 -28
- package/lib/esm/features/store/types/SelectContentTypeModal.js.map +0 -1
- package/lib/esm/features/store/types/TableLayoutEditor.js +0 -78
- package/lib/esm/features/store/types/TableLayoutEditor.js.map +0 -1
- package/lib/esm/features/store/types/index.js +0 -9
- package/lib/esm/features/store/types/index.js.map +0 -1
- package/lib/esm/features/store/types/search/ObjectTypeSearchContext.js +0 -98
- package/lib/esm/features/store/types/search/ObjectTypeSearchContext.js.map +0 -1
- package/lib/esm/features/store/types/search/ObjectTypeSearchProvider.js +0 -15
- package/lib/esm/features/store/types/search/ObjectTypeSearchProvider.js.map +0 -1
- package/lib/esm/features/store/types/search/index.js +0 -3
- package/lib/esm/features/store/types/search/index.js.map +0 -1
- package/lib/esm/features/user/UserAvatar.js +0 -18
- package/lib/esm/features/user/UserAvatar.js.map +0 -1
- package/lib/esm/features/user/UserInfo.js +0 -87
- package/lib/esm/features/user/UserInfo.js.map +0 -1
- package/lib/esm/features/user/index.js +0 -3
- package/lib/esm/features/user/index.js.map +0 -1
- package/lib/esm/features/utils/index.js +0 -4
- package/lib/esm/features/utils/index.js.map +0 -1
- package/lib/esm/features/utils/mimeType.js +0 -9
- package/lib/esm/features/utils/mimeType.js.map +0 -1
- package/lib/esm/features/utils/rendition.js +0 -67
- package/lib/esm/features/utils/rendition.js.map +0 -1
- package/lib/esm/features/utils/text.js +0 -10
- package/lib/esm/features/utils/text.js.map +0 -1
- package/lib/esm/layout/AppLayout.js +0 -46
- package/lib/esm/layout/AppLayout.js.map +0 -1
- package/lib/esm/layout/FullHeightLayout.js +0 -18
- package/lib/esm/layout/FullHeightLayout.js.map +0 -1
- package/lib/esm/layout/Navbar.js +0 -40
- package/lib/esm/layout/Navbar.js.map +0 -1
- package/lib/esm/layout/Sidebar.js +0 -45
- package/lib/esm/layout/Sidebar.js.map +0 -1
- package/lib/esm/layout/SidebarContext.js +0 -10
- package/lib/esm/layout/SidebarContext.js.map +0 -1
- package/lib/esm/layout/TitleBar.js +0 -5
- package/lib/esm/layout/TitleBar.js.map +0 -1
- package/lib/esm/layout/index.js +0 -7
- package/lib/esm/layout/index.js.map +0 -1
- package/lib/esm/router/FixLinks.js +0 -23
- package/lib/esm/router/FixLinks.js.map +0 -1
- package/lib/esm/router/HistoryNavigator.js +0 -149
- package/lib/esm/router/HistoryNavigator.js.map +0 -1
- package/lib/esm/router/Nav.js +0 -26
- package/lib/esm/router/Nav.js.map +0 -1
- package/lib/esm/router/NestedNavigationContext.js +0 -19
- package/lib/esm/router/NestedNavigationContext.js.map +0 -1
- package/lib/esm/router/NestedRouterProvider.js +0 -44
- package/lib/esm/router/NestedRouterProvider.js.map +0 -1
- package/lib/esm/router/PathMatcher.js +0 -159
- package/lib/esm/router/PathMatcher.js.map +0 -1
- package/lib/esm/router/PathWithParams.js +0 -34
- package/lib/esm/router/PathWithParams.js.map +0 -1
- package/lib/esm/router/Route404.js +0 -18
- package/lib/esm/router/Route404.js.map +0 -1
- package/lib/esm/router/RouteComponent.js +0 -32
- package/lib/esm/router/RouteComponent.js.map +0 -1
- package/lib/esm/router/Router.js +0 -161
- package/lib/esm/router/Router.js.map +0 -1
- package/lib/esm/router/RouterProvider.js +0 -41
- package/lib/esm/router/RouterProvider.js.map +0 -1
- package/lib/esm/router/index.js +0 -11
- package/lib/esm/router/index.js.map +0 -1
- package/lib/esm/router/path.js +0 -140
- package/lib/esm/router/path.js.map +0 -1
- package/lib/esm/session/TypeRegistry.js +0 -24
- package/lib/esm/session/TypeRegistry.js.map +0 -1
- package/lib/esm/session/UserSession.js +0 -191
- package/lib/esm/session/UserSession.js.map +0 -1
- package/lib/esm/session/UserSessionProvider.js +0 -164
- package/lib/esm/session/UserSessionProvider.js.map +0 -1
- package/lib/esm/session/auth/composable.js +0 -162
- package/lib/esm/session/auth/composable.js.map +0 -1
- package/lib/esm/session/auth/firebase.js +0 -158
- package/lib/esm/session/auth/firebase.js.map +0 -1
- package/lib/esm/session/auth/useAuthState.js +0 -46
- package/lib/esm/session/auth/useAuthState.js.map +0 -1
- package/lib/esm/session/auth/useCurrentTenant.js +0 -63
- package/lib/esm/session/auth/useCurrentTenant.js.map +0 -1
- package/lib/esm/session/constants.js +0 -3
- package/lib/esm/session/constants.js.map +0 -1
- package/lib/esm/session/index.js +0 -8
- package/lib/esm/session/index.js.map +0 -1
- package/lib/esm/session/useUXTracking.js +0 -29
- package/lib/esm/session/useUXTracking.js.map +0 -1
- package/lib/esm/shell/SplashScreen.js +0 -26
- package/lib/esm/shell/SplashScreen.js.map +0 -1
- package/lib/esm/shell/VertesiaShell.js +0 -10
- package/lib/esm/shell/VertesiaShell.js.map +0 -1
- package/lib/esm/shell/apps/AppInstallationProvider.js +0 -13
- package/lib/esm/shell/apps/AppInstallationProvider.js.map +0 -1
- package/lib/esm/shell/apps/AppProjectSelector.js +0 -25
- package/lib/esm/shell/apps/AppProjectSelector.js.map +0 -1
- package/lib/esm/shell/apps/StandaloneApp.js +0 -60
- package/lib/esm/shell/apps/StandaloneApp.js.map +0 -1
- package/lib/esm/shell/apps/index.js +0 -4
- package/lib/esm/shell/apps/index.js.map +0 -1
- package/lib/esm/shell/index.js +0 -8
- package/lib/esm/shell/index.js.map +0 -1
- package/lib/esm/shell/login/EnterpriseSigninButton.js +0 -84
- package/lib/esm/shell/login/EnterpriseSigninButton.js.map +0 -1
- package/lib/esm/shell/login/GitHubSignInButton.js +0 -24
- package/lib/esm/shell/login/GitHubSignInButton.js.map +0 -1
- package/lib/esm/shell/login/GoogleSignInButton.js +0 -25
- package/lib/esm/shell/login/GoogleSignInButton.js.map +0 -1
- package/lib/esm/shell/login/InviteAcceptModal.js +0 -62
- package/lib/esm/shell/login/InviteAcceptModal.js.map +0 -1
- package/lib/esm/shell/login/MicrosoftSigninButton.js +0 -19
- package/lib/esm/shell/login/MicrosoftSigninButton.js.map +0 -1
- package/lib/esm/shell/login/PreviewIcon.js +0 -23
- package/lib/esm/shell/login/PreviewIcon.js.map +0 -1
- package/lib/esm/shell/login/SignInModal.js +0 -9
- package/lib/esm/shell/login/SignInModal.js.map +0 -1
- package/lib/esm/shell/login/SigninScreen.js +0 -64
- package/lib/esm/shell/login/SigninScreen.js.map +0 -1
- package/lib/esm/shell/login/SignupForm.js +0 -91
- package/lib/esm/shell/login/SignupForm.js.map +0 -1
- package/lib/esm/shell/login/TerminalLogin.js +0 -179
- package/lib/esm/shell/login/TerminalLogin.js.map +0 -1
- package/lib/esm/shell/login/UserInfo.js +0 -40
- package/lib/esm/shell/login/UserInfo.js.map +0 -1
- package/lib/esm/shell/login/UserSessionMenu.js +0 -31
- package/lib/esm/shell/login/UserSessionMenu.js.map +0 -1
- package/lib/esm/shell/utils.js +0 -6
- package/lib/esm/shell/utils.js.map +0 -1
- package/lib/esm/widgets/Progress.js +0 -5
- package/lib/esm/widgets/Progress.js.map +0 -1
- package/lib/esm/widgets/SvgIcon.js +0 -36
- package/lib/esm/widgets/SvgIcon.js.map +0 -1
- package/lib/esm/widgets/codemirror/CodeMirrorEditor.js +0 -103
- package/lib/esm/widgets/codemirror/CodeMirrorEditor.js.map +0 -1
- package/lib/esm/widgets/codemirror/CodemirrorStateSingleton.js +0 -33
- package/lib/esm/widgets/codemirror/CodemirrorStateSingleton.js.map +0 -1
- package/lib/esm/widgets/codemirror/index.js +0 -2
- package/lib/esm/widgets/codemirror/index.js.map +0 -1
- package/lib/esm/widgets/form/Form.js +0 -102
- package/lib/esm/widgets/form/Form.js.map +0 -1
- package/lib/esm/widgets/form/FormContext.js +0 -29
- package/lib/esm/widgets/form/FormContext.js.map +0 -1
- package/lib/esm/widgets/form/ManagedObject.js +0 -283
- package/lib/esm/widgets/form/ManagedObject.js.map +0 -1
- package/lib/esm/widgets/form/fields.js +0 -11
- package/lib/esm/widgets/form/fields.js.map +0 -1
- package/lib/esm/widgets/form/index.js +0 -7
- package/lib/esm/widgets/form/index.js.map +0 -1
- package/lib/esm/widgets/form/inputs.js +0 -36
- package/lib/esm/widgets/form/inputs.js.map +0 -1
- package/lib/esm/widgets/form/schema.js +0 -197
- package/lib/esm/widgets/form/schema.js.map +0 -1
- package/lib/esm/widgets/index.js +0 -12
- package/lib/esm/widgets/index.js.map +0 -1
- package/lib/esm/widgets/json-view/JSONCode.js +0 -157
- package/lib/esm/widgets/json-view/JSONCode.js.map +0 -1
- package/lib/esm/widgets/json-view/JSONDisplay.js +0 -10
- package/lib/esm/widgets/json-view/JSONDisplay.js.map +0 -1
- package/lib/esm/widgets/json-view/JSONView.js +0 -106
- package/lib/esm/widgets/json-view/JSONView.js.map +0 -1
- package/lib/esm/widgets/json-view/index.js +0 -4
- package/lib/esm/widgets/json-view/index.js.map +0 -1
- package/lib/esm/widgets/json-view/types.js +0 -2
- package/lib/esm/widgets/json-view/types.js.map +0 -1
- package/lib/esm/widgets/markdown/MarkdownRenderer.js +0 -24
- package/lib/esm/widgets/markdown/MarkdownRenderer.js.map +0 -1
- package/lib/esm/widgets/markdown/index.js +0 -2
- package/lib/esm/widgets/markdown/index.js.map +0 -1
- package/lib/esm/widgets/popover/Popover.js +0 -73
- package/lib/esm/widgets/popover/Popover.js.map +0 -1
- package/lib/esm/widgets/popover/context.js +0 -7
- package/lib/esm/widgets/popover/context.js.map +0 -1
- package/lib/esm/widgets/popover/index.js +0 -3
- package/lib/esm/widgets/popover/index.js.map +0 -1
- package/lib/esm/widgets/popover/slots.js +0 -22
- package/lib/esm/widgets/popover/slots.js.map +0 -1
- package/lib/esm/widgets/properties/PropertiesView.js +0 -8
- package/lib/esm/widgets/properties/PropertiesView.js.map +0 -1
- package/lib/esm/widgets/properties/index.js +0 -2
- package/lib/esm/widgets/properties/index.js.map +0 -1
- package/lib/esm/widgets/schema-editor/JSONSchemaEditorModal.js +0 -49
- package/lib/esm/widgets/schema-editor/JSONSchemaEditorModal.js.map +0 -1
- package/lib/esm/widgets/schema-editor/ManagedSchema.js +0 -303
- package/lib/esm/widgets/schema-editor/ManagedSchema.js.map +0 -1
- package/lib/esm/widgets/schema-editor/editor/Editable.js +0 -110
- package/lib/esm/widgets/schema-editor/editor/Editable.js.map +0 -1
- package/lib/esm/widgets/schema-editor/editor/EditableSchemaProperty.js +0 -8
- package/lib/esm/widgets/schema-editor/editor/EditableSchemaProperty.js.map +0 -1
- package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js +0 -81
- package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js.map +0 -1
- package/lib/esm/widgets/schema-editor/editor/PropertyViewer.js +0 -7
- package/lib/esm/widgets/schema-editor/editor/PropertyViewer.js.map +0 -1
- package/lib/esm/widgets/schema-editor/editor/SchemaContext.js +0 -9
- package/lib/esm/widgets/schema-editor/editor/SchemaContext.js.map +0 -1
- package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js +0 -84
- package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js.map +0 -1
- package/lib/esm/widgets/schema-editor/index.js +0 -8
- package/lib/esm/widgets/schema-editor/index.js.map +0 -1
- package/lib/esm/widgets/schema-editor/json-schema4-utils.js +0 -188
- package/lib/esm/widgets/schema-editor/json-schema4-utils.js.map +0 -1
- package/lib/esm/widgets/schema-editor/type-signature.js +0 -30
- package/lib/esm/widgets/schema-editor/type-signature.js.map +0 -1
- package/lib/esm/widgets/upload/DropZone.js +0 -162
- package/lib/esm/widgets/upload/DropZone.js.map +0 -1
- package/lib/esm/widgets/upload/UploadResultCategory.js +0 -19
- package/lib/esm/widgets/upload/UploadResultCategory.js.map +0 -1
- package/lib/esm/widgets/upload/UploadSummary.js +0 -30
- package/lib/esm/widgets/upload/UploadSummary.js.map +0 -1
- package/lib/esm/widgets/upload/index.js +0 -4
- package/lib/esm/widgets/upload/index.js.map +0 -1
- package/lib/esm/widgets/xml-viewer/components/Attributes/index.js +0 -11
- package/lib/esm/widgets/xml-viewer/components/Attributes/index.js.map +0 -1
- package/lib/esm/widgets/xml-viewer/components/CDataTag/index.js +0 -8
- package/lib/esm/widgets/xml-viewer/components/CDataTag/index.js.map +0 -1
- package/lib/esm/widgets/xml-viewer/components/CollapseIcon/index.js +0 -11
- package/lib/esm/widgets/xml-viewer/components/CollapseIcon/index.js.map +0 -1
- package/lib/esm/widgets/xml-viewer/components/CommentTag/index.js +0 -11
- package/lib/esm/widgets/xml-viewer/components/CommentTag/index.js.map +0 -1
- package/lib/esm/widgets/xml-viewer/components/DeclarationTag/index.js +0 -9
- package/lib/esm/widgets/xml-viewer/components/DeclarationTag/index.js.map +0 -1
- package/lib/esm/widgets/xml-viewer/components/Elements/index.js +0 -36
- package/lib/esm/widgets/xml-viewer/components/Elements/index.js.map +0 -1
- package/lib/esm/widgets/xml-viewer/components/InvalidXml/index.js +0 -5
- package/lib/esm/widgets/xml-viewer/components/InvalidXml/index.js.map +0 -1
- package/lib/esm/widgets/xml-viewer/components/Tag/index.js +0 -13
- package/lib/esm/widgets/xml-viewer/components/Tag/index.js.map +0 -1
- package/lib/esm/widgets/xml-viewer/components/TextElement/index.js +0 -13
- package/lib/esm/widgets/xml-viewer/components/TextElement/index.js.map +0 -1
- package/lib/esm/widgets/xml-viewer/components/XMLViewer.js +0 -30
- package/lib/esm/widgets/xml-viewer/components/XMLViewer.js.map +0 -1
- package/lib/esm/widgets/xml-viewer/components/types.js +0 -2
- package/lib/esm/widgets/xml-viewer/components/types.js.map +0 -1
- package/lib/esm/widgets/xml-viewer/constants/index.js +0 -17
- package/lib/esm/widgets/xml-viewer/constants/index.js.map +0 -1
- package/lib/esm/widgets/xml-viewer/context/xml-viewer-context.js +0 -10
- package/lib/esm/widgets/xml-viewer/context/xml-viewer-context.js.map +0 -1
- package/lib/esm/widgets/xml-viewer/helpers/index.js +0 -40
- package/lib/esm/widgets/xml-viewer/helpers/index.js.map +0 -1
- package/lib/esm/widgets/xml-viewer/hooks/useCollapsible.js +0 -22
- package/lib/esm/widgets/xml-viewer/hooks/useCollapsible.js.map +0 -1
- package/lib/esm/widgets/xml-viewer/hooks/useXMLViewer.js +0 -31
- package/lib/esm/widgets/xml-viewer/hooks/useXMLViewer.js.map +0 -1
- package/lib/esm/widgets/xml-viewer/index.js +0 -3
- package/lib/esm/widgets/xml-viewer/index.js.map +0 -1
- package/lib/esm/widgets/xml-viewer/types/index.js +0 -2
- package/lib/esm/widgets/xml-viewer/types/index.js.map +0 -1
- package/lib/tsconfig.tsbuildinfo +0 -1
- package/lib/types/core/components/Avatar.d.ts +0 -16
- package/lib/types/core/components/Avatar.d.ts.map +0 -1
- package/lib/types/core/components/Badge.d.ts +0 -21
- package/lib/types/core/components/Badge.d.ts.map +0 -1
- package/lib/types/core/components/Button.d.ts +0 -14
- package/lib/types/core/components/Button.d.ts.map +0 -1
- package/lib/types/core/components/Center.d.ts +0 -8
- package/lib/types/core/components/Center.d.ts.map +0 -1
- package/lib/types/core/components/ComboBox.d.ts +0 -124
- package/lib/types/core/components/ComboBox.d.ts.map +0 -1
- package/lib/types/core/components/ConfirmModal.d.ts +0 -11
- package/lib/types/core/components/ConfirmModal.d.ts.map +0 -1
- package/lib/types/core/components/DeleteModal.d.ts +0 -11
- package/lib/types/core/components/DeleteModal.d.ts.map +0 -1
- package/lib/types/core/components/Divider.d.ts +0 -6
- package/lib/types/core/components/Divider.d.ts.map +0 -1
- package/lib/types/core/components/Dropdown.d.ts +0 -15
- package/lib/types/core/components/Dropdown.d.ts.map +0 -1
- package/lib/types/core/components/DropdownList.d.ts +0 -13
- package/lib/types/core/components/DropdownList.d.ts.map +0 -1
- package/lib/types/core/components/EmptyCollection.d.ts +0 -9
- package/lib/types/core/components/EmptyCollection.d.ts.map +0 -1
- package/lib/types/core/components/FileUpload.d.ts +0 -29
- package/lib/types/core/components/FileUpload.d.ts.map +0 -1
- package/lib/types/core/components/FormItem.d.ts +0 -13
- package/lib/types/core/components/FormItem.d.ts.map +0 -1
- package/lib/types/core/components/InputList.d.ts +0 -12
- package/lib/types/core/components/InputList.d.ts.map +0 -1
- package/lib/types/core/components/Link.d.ts +0 -7
- package/lib/types/core/components/Link.d.ts.map +0 -1
- package/lib/types/core/components/MenuList.d.ts +0 -14
- package/lib/types/core/components/MenuList.d.ts.map +0 -1
- package/lib/types/core/components/MessageBox.d.ts +0 -36
- package/lib/types/core/components/MessageBox.d.ts.map +0 -1
- package/lib/types/core/components/Modal.d.ts +0 -30
- package/lib/types/core/components/Modal.d.ts.map +0 -1
- package/lib/types/core/components/NumberInput.d.ts +0 -16
- package/lib/types/core/components/NumberInput.d.ts.map +0 -1
- package/lib/types/core/components/Overlay.d.ts +0 -25
- package/lib/types/core/components/Overlay.d.ts.map +0 -1
- package/lib/types/core/components/Portal.d.ts +0 -6
- package/lib/types/core/components/Portal.d.ts.map +0 -1
- package/lib/types/core/components/RadioGroup.d.ts +0 -26
- package/lib/types/core/components/RadioGroup.d.ts.map +0 -1
- package/lib/types/core/components/SelectBox.d.ts +0 -36
- package/lib/types/core/components/SelectBox.d.ts.map +0 -1
- package/lib/types/core/components/SelectList.d.ts +0 -18
- package/lib/types/core/components/SelectList.d.ts.map +0 -1
- package/lib/types/core/components/SelectStack.d.ts +0 -13
- package/lib/types/core/components/SelectStack.d.ts.map +0 -1
- package/lib/types/core/components/SidePanel.d.ts +0 -11
- package/lib/types/core/components/SidePanel.d.ts.map +0 -1
- package/lib/types/core/components/Spinner.d.ts +0 -7
- package/lib/types/core/components/Spinner.d.ts.map +0 -1
- package/lib/types/core/components/Switch.d.ts +0 -11
- package/lib/types/core/components/Switch.d.ts.map +0 -1
- package/lib/types/core/components/Textarea.d.ts +0 -8
- package/lib/types/core/components/Textarea.d.ts.map +0 -1
- package/lib/types/core/components/index.d.ts +0 -39
- package/lib/types/core/components/index.d.ts.map +0 -1
- package/lib/types/core/components/libs/utils.d.ts +0 -3
- package/lib/types/core/components/libs/utils.d.ts.map +0 -1
- package/lib/types/core/components/libs/visuallyHidden.d.ts +0 -7
- package/lib/types/core/components/libs/visuallyHidden.d.ts.map +0 -1
- package/lib/types/core/components/popup/Popup.d.ts +0 -26
- package/lib/types/core/components/popup/Popup.d.ts.map +0 -1
- package/lib/types/core/components/popup/PopupController.d.ts +0 -41
- package/lib/types/core/components/popup/PopupController.d.ts.map +0 -1
- package/lib/types/core/components/popup/index.d.ts +0 -4
- package/lib/types/core/components/popup/index.d.ts.map +0 -1
- package/lib/types/core/components/popup/position.d.ts +0 -59
- package/lib/types/core/components/popup/position.d.ts.map +0 -1
- package/lib/types/core/components/popup/utils.d.ts +0 -30
- package/lib/types/core/components/popup/utils.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/breadcrumb.d.ts +0 -14
- package/lib/types/core/components/shadcn/breadcrumb.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/button.d.ts +0 -27
- package/lib/types/core/components/shadcn/button.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/calendar.d.ts +0 -11
- package/lib/types/core/components/shadcn/calendar.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/card.d.ts +0 -9
- package/lib/types/core/components/shadcn/card.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/checkbox.d.ts +0 -5
- package/lib/types/core/components/shadcn/checkbox.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/command.d.ts +0 -17
- package/lib/types/core/components/shadcn/command.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/dialog.d.ts +0 -36
- package/lib/types/core/components/shadcn/dialog.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/filters/DynamicLabel.d.ts +0 -9
- package/lib/types/core/components/shadcn/filters/DynamicLabel.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/filters/animateChangeInHeight.d.ts +0 -7
- package/lib/types/core/components/shadcn/filters/animateChangeInHeight.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/filters/comboBox/DateCombobox.d.ts +0 -6
- package/lib/types/core/components/shadcn/filters/comboBox/DateCombobox.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/filters/comboBox/SelectCombobox.d.ts +0 -9
- package/lib/types/core/components/shadcn/filters/comboBox/SelectCombobox.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/filters/comboBox/StringListCombobox.d.ts +0 -6
- package/lib/types/core/components/shadcn/filters/comboBox/StringListCombobox.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/filters/comboBox/TextCombobox.d.ts +0 -6
- package/lib/types/core/components/shadcn/filters/comboBox/TextCombobox.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/filters/comboBox/comboBox.d.ts +0 -5
- package/lib/types/core/components/shadcn/filters/comboBox/comboBox.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/filters/filter/SelectFilter.d.ts +0 -12
- package/lib/types/core/components/shadcn/filters/filter/SelectFilter.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/filters/filter/StringListFilter.d.ts +0 -11
- package/lib/types/core/components/shadcn/filters/filter/StringListFilter.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/filters/filter/TextFilter.d.ts +0 -13
- package/lib/types/core/components/shadcn/filters/filter/TextFilter.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/filters/filter/dateFilter.d.ts +0 -14
- package/lib/types/core/components/shadcn/filters/filter/dateFilter.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/filters/filter-styles.d.ts +0 -2
- package/lib/types/core/components/shadcn/filters/filter-styles.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/filters/filterBar.d.ts +0 -20
- package/lib/types/core/components/shadcn/filters/filterBar.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/filters/filters.d.ts +0 -10
- package/lib/types/core/components/shadcn/filters/filters.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/filters/index.d.ts +0 -6
- package/lib/types/core/components/shadcn/filters/index.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/filters/types.d.ts +0 -35
- package/lib/types/core/components/shadcn/filters/types.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/heading.d.ts +0 -6
- package/lib/types/core/components/shadcn/heading.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/index.d.ts +0 -22
- package/lib/types/core/components/shadcn/index.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/input.d.ts +0 -17
- package/lib/types/core/components/shadcn/input.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/label.d.ts +0 -8
- package/lib/types/core/components/shadcn/label.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/popover.d.ts +0 -17
- package/lib/types/core/components/shadcn/popover.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/selectBox.d.ts +0 -31
- package/lib/types/core/components/shadcn/selectBox.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/separator.d.ts +0 -5
- package/lib/types/core/components/shadcn/separator.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/tabs.d.ts +0 -30
- package/lib/types/core/components/shadcn/tabs.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/text.d.ts +0 -11
- package/lib/types/core/components/shadcn/text.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/theme/ThemeProvider.d.ts +0 -15
- package/lib/types/core/components/shadcn/theme/ThemeProvider.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts +0 -10
- package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/tooltip.d.ts +0 -20
- package/lib/types/core/components/shadcn/tooltip.d.ts.map +0 -1
- package/lib/types/core/components/styles.d.ts +0 -7
- package/lib/types/core/components/styles.d.ts.map +0 -1
- package/lib/types/core/components/table/index.d.ts +0 -15
- package/lib/types/core/components/table/index.d.ts.map +0 -1
- package/lib/types/core/components/tabs/Tabs.d.ts +0 -25
- package/lib/types/core/components/tabs/Tabs.d.ts.map +0 -1
- package/lib/types/core/components/tabs/TabsContext.d.ts +0 -17
- package/lib/types/core/components/tabs/TabsContext.d.ts.map +0 -1
- package/lib/types/core/components/tabs/index.d.ts +0 -3
- package/lib/types/core/components/tabs/index.d.ts.map +0 -1
- package/lib/types/core/components/toast/NotificationPanel.d.ts +0 -8
- package/lib/types/core/components/toast/NotificationPanel.d.ts.map +0 -1
- package/lib/types/core/components/toast/ToastContext.d.ts +0 -6
- package/lib/types/core/components/toast/ToastContext.d.ts.map +0 -1
- package/lib/types/core/components/toast/ToastProps.d.ts +0 -7
- package/lib/types/core/components/toast/ToastProps.d.ts.map +0 -1
- package/lib/types/core/components/toast/ToastProvider.d.ts +0 -6
- package/lib/types/core/components/toast/ToastProvider.d.ts.map +0 -1
- package/lib/types/core/components/toast/index.d.ts +0 -3
- package/lib/types/core/components/toast/index.d.ts.map +0 -1
- package/lib/types/core/hooks/CompositeState.d.ts +0 -28
- package/lib/types/core/hooks/CompositeState.d.ts.map +0 -1
- package/lib/types/core/hooks/SharedState.d.ts +0 -10
- package/lib/types/core/hooks/SharedState.d.ts.map +0 -1
- package/lib/types/core/hooks/index.d.ts +0 -14
- package/lib/types/core/hooks/index.d.ts.map +0 -1
- package/lib/types/core/hooks/useClickOutside.d.ts +0 -8
- package/lib/types/core/hooks/useClickOutside.d.ts.map +0 -1
- package/lib/types/core/hooks/useCopyToClipboard.d.ts +0 -5
- package/lib/types/core/hooks/useCopyToClipboard.d.ts.map +0 -1
- package/lib/types/core/hooks/useDarkMode.d.ts +0 -2
- package/lib/types/core/hooks/useDarkMode.d.ts.map +0 -1
- package/lib/types/core/hooks/useDebounce.d.ts +0 -2
- package/lib/types/core/hooks/useDebounce.d.ts.map +0 -1
- package/lib/types/core/hooks/useEventSource.d.ts +0 -2
- package/lib/types/core/hooks/useEventSource.d.ts.map +0 -1
- package/lib/types/core/hooks/useFetch.d.ts +0 -24
- package/lib/types/core/hooks/useFetch.d.ts.map +0 -1
- package/lib/types/core/hooks/useFlag.d.ts +0 -9
- package/lib/types/core/hooks/useFlag.d.ts.map +0 -1
- package/lib/types/core/hooks/useIntersectionObserver.d.ts +0 -14
- package/lib/types/core/hooks/useIntersectionObserver.d.ts.map +0 -1
- package/lib/types/core/hooks/useIsFistRendering.d.ts +0 -2
- package/lib/types/core/hooks/useIsFistRendering.d.ts.map +0 -1
- package/lib/types/core/hooks/useSafeLayoutEffect.d.ts +0 -4
- package/lib/types/core/hooks/useSafeLayoutEffect.d.ts.map +0 -1
- package/lib/types/core/hooks/useSharedValue.d.ts +0 -12
- package/lib/types/core/hooks/useSharedValue.d.ts.map +0 -1
- package/lib/types/core/index.d.ts +0 -4
- package/lib/types/core/index.d.ts.map +0 -1
- package/lib/types/core/utils/cn.d.ts +0 -3
- package/lib/types/core/utils/cn.d.ts.map +0 -1
- package/lib/types/core/utils/index.d.ts +0 -2
- package/lib/types/core/utils/index.d.ts.map +0 -1
- package/lib/types/env/index.d.ts +0 -72
- package/lib/types/env/index.d.ts.map +0 -1
- package/lib/types/features/activity-doc/ActivityDoc.d.ts +0 -14
- package/lib/types/features/activity-doc/ActivityDoc.d.ts.map +0 -1
- package/lib/types/features/activity-doc/index.d.ts +0 -2
- package/lib/types/features/activity-doc/index.d.ts.map +0 -1
- package/lib/types/features/agent/PayloadBuilder.d.ts +0 -73
- package/lib/types/features/agent/PayloadBuilder.d.ts.map +0 -1
- package/lib/types/features/agent/chat/AnimatedThinkingDots.d.ts +0 -38
- package/lib/types/features/agent/chat/AnimatedThinkingDots.d.ts.map +0 -1
- package/lib/types/features/agent/chat/JumpingDots.d.ts +0 -7
- package/lib/types/features/agent/chat/JumpingDots.d.ts.map +0 -1
- package/lib/types/features/agent/chat/ModernAgentConversation.d.ts +0 -25
- package/lib/types/features/agent/chat/ModernAgentConversation.d.ts.map +0 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts +0 -22
- package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts.map +0 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts +0 -19
- package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts.map +0 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.d.ts +0 -11
- package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.d.ts.map +0 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts +0 -16
- package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts.map +0 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts +0 -13
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts.map +0 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts +0 -8
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts.map +0 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/MessagesContainer.d.ts +0 -10
- package/lib/types/features/agent/chat/ModernAgentOutput/MessagesContainer.d.ts.map +0 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts +0 -9
- package/lib/types/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts.map +0 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/SlideInPanel.d.ts +0 -11
- package/lib/types/features/agent/chat/ModernAgentOutput/SlideInPanel.d.ts.map +0 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/SlidingMessages.d.ts +0 -8
- package/lib/types/features/agent/chat/ModernAgentOutput/SlidingMessages.d.ts.map +0 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts +0 -10
- package/lib/types/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts.map +0 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/StackedMessages.d.ts +0 -8
- package/lib/types/features/agent/chat/ModernAgentOutput/StackedMessages.d.ts.map +0 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts +0 -22
- package/lib/types/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts.map +0 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts +0 -25
- package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts.map +0 -1
- package/lib/types/features/agent/chat/SlidingThinkingIndicator.d.ts +0 -18
- package/lib/types/features/agent/chat/SlidingThinkingIndicator.d.ts.map +0 -1
- package/lib/types/features/agent/chat/WaitingMessages.d.ts +0 -2
- package/lib/types/features/agent/chat/WaitingMessages.d.ts.map +0 -1
- package/lib/types/features/agent/chat/index.d.ts +0 -5
- package/lib/types/features/agent/chat/index.d.ts.map +0 -1
- package/lib/types/features/agent/index.d.ts +0 -3
- package/lib/types/features/agent/index.d.ts.map +0 -1
- package/lib/types/features/errors/PanelErrorBoundary.d.ts +0 -5
- package/lib/types/features/errors/PanelErrorBoundary.d.ts.map +0 -1
- package/lib/types/features/errors/RowErrorBoundary.d.ts +0 -8
- package/lib/types/features/errors/RowErrorBoundary.d.ts.map +0 -1
- package/lib/types/features/errors/VertesiaErrorBoundary.d.ts +0 -12
- package/lib/types/features/errors/VertesiaErrorBoundary.d.ts.map +0 -1
- package/lib/types/features/errors/WidgetErrorBoundary.d.ts +0 -5
- package/lib/types/features/errors/WidgetErrorBoundary.d.ts.map +0 -1
- package/lib/types/features/errors/index.d.ts +0 -5
- package/lib/types/features/errors/index.d.ts.map +0 -1
- package/lib/types/features/facets/DocumentsFacetsNav.d.ts +0 -17
- package/lib/types/features/facets/DocumentsFacetsNav.d.ts.map +0 -1
- package/lib/types/features/facets/EnvironmentFacet.d.ts +0 -10
- package/lib/types/features/facets/EnvironmentFacet.d.ts.map +0 -1
- package/lib/types/features/facets/FacetsNav.d.ts +0 -7
- package/lib/types/features/facets/FacetsNav.d.ts.map +0 -1
- package/lib/types/features/facets/RunsFacetsNav.d.ts +0 -20
- package/lib/types/features/facets/RunsFacetsNav.d.ts.map +0 -1
- package/lib/types/features/facets/StringFacet.d.ts +0 -11
- package/lib/types/features/facets/StringFacet.d.ts.map +0 -1
- package/lib/types/features/facets/StringListFacet.d.ts +0 -11
- package/lib/types/features/facets/StringListFacet.d.ts.map +0 -1
- package/lib/types/features/facets/TypeFacet.d.ts +0 -16
- package/lib/types/features/facets/TypeFacet.d.ts.map +0 -1
- package/lib/types/features/facets/VEnvironmentFacet.d.ts +0 -12
- package/lib/types/features/facets/VEnvironmentFacet.d.ts.map +0 -1
- package/lib/types/features/facets/VFacetsNav.d.ts.map +0 -1
- package/lib/types/features/facets/VInteractionFacet.d.ts +0 -15
- package/lib/types/features/facets/VInteractionFacet.d.ts.map +0 -1
- package/lib/types/features/facets/VStringFacet.d.ts +0 -21
- package/lib/types/features/facets/VStringFacet.d.ts.map +0 -1
- package/lib/types/features/facets/VTypeFacet.d.ts +0 -11
- package/lib/types/features/facets/VTypeFacet.d.ts.map +0 -1
- package/lib/types/features/facets/VUserFacet.d.ts +0 -11
- package/lib/types/features/facets/VUserFacet.d.ts.map +0 -1
- package/lib/types/features/facets/WorkflowExecutionsFacetsNav.d.ts +0 -14
- package/lib/types/features/facets/WorkflowExecutionsFacetsNav.d.ts.map +0 -1
- package/lib/types/features/facets/index.d.ts +0 -13
- package/lib/types/features/facets/index.d.ts.map +0 -1
- package/lib/types/features/facets/utils.d.ts +0 -4
- package/lib/types/features/facets/utils.d.ts.map +0 -1
- package/lib/types/features/index.d.ts +0 -11
- package/lib/types/features/index.d.ts.map +0 -1
- package/lib/types/features/layout/GenericPageNavHeader.d.ts +0 -13
- package/lib/types/features/layout/GenericPageNavHeader.d.ts.map +0 -1
- package/lib/types/features/layout/NotFoundView.d.ts +0 -5
- package/lib/types/features/layout/NotFoundView.d.ts.map +0 -1
- package/lib/types/features/layout/index.d.ts +0 -3
- package/lib/types/features/layout/index.d.ts.map +0 -1
- package/lib/types/features/magic-pdf/DownloadPopover.d.ts +0 -7
- package/lib/types/features/magic-pdf/DownloadPopover.d.ts.map +0 -1
- package/lib/types/features/magic-pdf/MagicPdfView.d.ts +0 -7
- package/lib/types/features/magic-pdf/MagicPdfView.d.ts.map +0 -1
- package/lib/types/features/magic-pdf/PageSlider.d.ts +0 -9
- package/lib/types/features/magic-pdf/PageSlider.d.ts.map +0 -1
- package/lib/types/features/magic-pdf/PdfPageProvider.d.ts +0 -39
- package/lib/types/features/magic-pdf/PdfPageProvider.d.ts.map +0 -1
- package/lib/types/features/magic-pdf/TextPageView.d.ts +0 -8
- package/lib/types/features/magic-pdf/TextPageView.d.ts.map +0 -1
- package/lib/types/features/magic-pdf/index.d.ts +0 -2
- package/lib/types/features/magic-pdf/index.d.ts.map +0 -1
- package/lib/types/features/magic-pdf/types.d.ts +0 -2
- package/lib/types/features/magic-pdf/types.d.ts.map +0 -1
- package/lib/types/features/magic-pdf/useResizeOnDrag.d.ts +0 -9
- package/lib/types/features/magic-pdf/useResizeOnDrag.d.ts.map +0 -1
- package/lib/types/features/permissions/SecureButton.d.ts +0 -8
- package/lib/types/features/permissions/SecureButton.d.ts.map +0 -1
- package/lib/types/features/permissions/SecureSidebarItem.d.ts +0 -8
- package/lib/types/features/permissions/SecureSidebarItem.d.ts.map +0 -1
- package/lib/types/features/permissions/UserPermissionsProvider.d.ts +0 -21
- package/lib/types/features/permissions/UserPermissionsProvider.d.ts.map +0 -1
- package/lib/types/features/permissions/helpers.d.ts +0 -5
- package/lib/types/features/permissions/helpers.d.ts.map +0 -1
- package/lib/types/features/permissions/index.d.ts +0 -5
- package/lib/types/features/permissions/index.d.ts.map +0 -1
- package/lib/types/features/store/collections/BrowseCollectionView.d.ts +0 -7
- package/lib/types/features/store/collections/BrowseCollectionView.d.ts.map +0 -1
- package/lib/types/features/store/collections/CollectionsTable.d.ts +0 -6
- package/lib/types/features/store/collections/CollectionsTable.d.ts.map +0 -1
- package/lib/types/features/store/collections/CreateCollection.d.ts +0 -13
- package/lib/types/features/store/collections/CreateCollection.d.ts.map +0 -1
- package/lib/types/features/store/collections/EditCollectionView.d.ts +0 -8
- package/lib/types/features/store/collections/EditCollectionView.d.ts.map +0 -1
- package/lib/types/features/store/collections/SelectCollection.d.ts +0 -15
- package/lib/types/features/store/collections/SelectCollection.d.ts.map +0 -1
- package/lib/types/features/store/collections/index.d.ts +0 -6
- package/lib/types/features/store/collections/index.d.ts.map +0 -1
- package/lib/types/features/store/index.d.ts +0 -4
- package/lib/types/features/store/index.d.ts.map +0 -1
- package/lib/types/features/store/objects/DocumentPreviewPanel.d.ts +0 -8
- package/lib/types/features/store/objects/DocumentPreviewPanel.d.ts.map +0 -1
- package/lib/types/features/store/objects/DocumentSearchResults.d.ts +0 -20
- package/lib/types/features/store/objects/DocumentSearchResults.d.ts.map +0 -1
- package/lib/types/features/store/objects/DocumentSelectionProvider.d.ts +0 -33
- package/lib/types/features/store/objects/DocumentSelectionProvider.d.ts.map +0 -1
- package/lib/types/features/store/objects/DocumentTable.d.ts +0 -21
- package/lib/types/features/store/objects/DocumentTable.d.ts.map +0 -1
- package/lib/types/features/store/objects/ExportPropertiesModal.d.ts +0 -12
- package/lib/types/features/store/objects/ExportPropertiesModal.d.ts.map +0 -1
- package/lib/types/features/store/objects/components/ContentDispositionButton.d.ts +0 -9
- package/lib/types/features/store/objects/components/ContentDispositionButton.d.ts.map +0 -1
- package/lib/types/features/store/objects/components/ContentOverview.d.ts +0 -9
- package/lib/types/features/store/objects/components/ContentOverview.d.ts.map +0 -1
- package/lib/types/features/store/objects/components/DocumentIcon.d.ts +0 -12
- package/lib/types/features/store/objects/components/DocumentIcon.d.ts.map +0 -1
- package/lib/types/features/store/objects/components/DocumentInput.d.ts +0 -8
- package/lib/types/features/store/objects/components/DocumentInput.d.ts.map +0 -1
- package/lib/types/features/store/objects/components/PropertiesEditorModal.d.ts +0 -9
- package/lib/types/features/store/objects/components/PropertiesEditorModal.d.ts.map +0 -1
- package/lib/types/features/store/objects/components/SaveVersionConfirmModal.d.ts +0 -9
- package/lib/types/features/store/objects/components/SaveVersionConfirmModal.d.ts.map +0 -1
- package/lib/types/features/store/objects/components/SelectDocument.d.ts +0 -9
- package/lib/types/features/store/objects/components/SelectDocument.d.ts.map +0 -1
- package/lib/types/features/store/objects/components/SelectDocumentModal.d.ts +0 -9
- package/lib/types/features/store/objects/components/SelectDocumentModal.d.ts.map +0 -1
- package/lib/types/features/store/objects/components/VectorSearchWidget.d.ts +0 -12
- package/lib/types/features/store/objects/components/VectorSearchWidget.d.ts.map +0 -1
- package/lib/types/features/store/objects/components/index.d.ts +0 -10
- package/lib/types/features/store/objects/components/index.d.ts.map +0 -1
- package/lib/types/features/store/objects/components/useDownloadObject.d.ts +0 -4
- package/lib/types/features/store/objects/components/useDownloadObject.d.ts.map +0 -1
- package/lib/types/features/store/objects/index.d.ts +0 -11
- package/lib/types/features/store/objects/index.d.ts.map +0 -1
- package/lib/types/features/store/objects/layout/DocumentTableColumn.d.ts +0 -17
- package/lib/types/features/store/objects/layout/DocumentTableColumn.d.ts.map +0 -1
- package/lib/types/features/store/objects/layout/documentLayout.d.ts +0 -18
- package/lib/types/features/store/objects/layout/documentLayout.d.ts.map +0 -1
- package/lib/types/features/store/objects/layout/index.d.ts +0 -3
- package/lib/types/features/store/objects/layout/index.d.ts.map +0 -1
- package/lib/types/features/store/objects/layout/renderers.d.ts +0 -3
- package/lib/types/features/store/objects/layout/renderers.d.ts.map +0 -1
- package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts +0 -53
- package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts.map +0 -1
- package/lib/types/features/store/objects/search/DocumentSearchProvider.d.ts +0 -14
- package/lib/types/features/store/objects/search/DocumentSearchProvider.d.ts.map +0 -1
- package/lib/types/features/store/objects/search/index.d.ts +0 -3
- package/lib/types/features/store/objects/search/index.d.ts.map +0 -1
- package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts +0 -26
- package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts.map +0 -1
- package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts +0 -28
- package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts.map +0 -1
- package/lib/types/features/store/objects/selection/SelectionActions.d.ts +0 -5
- package/lib/types/features/store/objects/selection/SelectionActions.d.ts.map +0 -1
- package/lib/types/features/store/objects/selection/actions/AddToCollectionAction.d.ts +0 -4
- package/lib/types/features/store/objects/selection/actions/AddToCollectionAction.d.ts.map +0 -1
- package/lib/types/features/store/objects/selection/actions/ChangeTypeAction.d.ts +0 -4
- package/lib/types/features/store/objects/selection/actions/ChangeTypeAction.d.ts.map +0 -1
- package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts +0 -16
- package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts.map +0 -1
- package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.d.ts +0 -4
- package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.d.ts.map +0 -1
- package/lib/types/features/store/objects/selection/actions/ExportPropertiesAction.d.ts +0 -4
- package/lib/types/features/store/objects/selection/actions/ExportPropertiesAction.d.ts.map +0 -1
- package/lib/types/features/store/objects/selection/actions/RemoveFromCollectionAction.d.ts +0 -4
- package/lib/types/features/store/objects/selection/actions/RemoveFromCollectionAction.d.ts.map +0 -1
- package/lib/types/features/store/objects/selection/actions/StartWorkflowComponent.d.ts +0 -4
- package/lib/types/features/store/objects/selection/actions/StartWorkflowComponent.d.ts.map +0 -1
- package/lib/types/features/store/objects/selection/actions/index.d.ts +0 -8
- package/lib/types/features/store/objects/selection/actions/index.d.ts.map +0 -1
- package/lib/types/features/store/objects/selection/index.d.ts +0 -5
- package/lib/types/features/store/objects/selection/index.d.ts.map +0 -1
- package/lib/types/features/store/objects/upload/DocumentUploadModal.d.ts +0 -38
- package/lib/types/features/store/objects/upload/DocumentUploadModal.d.ts.map +0 -1
- package/lib/types/features/store/objects/upload/index.d.ts +0 -4
- package/lib/types/features/store/objects/upload/index.d.ts.map +0 -1
- package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts +0 -30
- package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts.map +0 -1
- package/lib/types/features/store/objects/upload/useUploadHandler.d.ts +0 -50
- package/lib/types/features/store/objects/upload/useUploadHandler.d.ts.map +0 -1
- package/lib/types/features/store/types/ContentObjectTypesSearch.d.ts +0 -6
- package/lib/types/features/store/types/ContentObjectTypesSearch.d.ts.map +0 -1
- package/lib/types/features/store/types/ContentObjectTypesTable.d.ts +0 -8
- package/lib/types/features/store/types/ContentObjectTypesTable.d.ts.map +0 -1
- package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts +0 -15
- package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts.map +0 -1
- package/lib/types/features/store/types/ObjectSchemaEditor.d.ts +0 -8
- package/lib/types/features/store/types/ObjectSchemaEditor.d.ts.map +0 -1
- package/lib/types/features/store/types/SelectContentType.d.ts +0 -11
- package/lib/types/features/store/types/SelectContentType.d.ts.map +0 -1
- package/lib/types/features/store/types/SelectContentTypeModal.d.ts +0 -33
- package/lib/types/features/store/types/SelectContentTypeModal.d.ts.map +0 -1
- package/lib/types/features/store/types/TableLayoutEditor.d.ts +0 -9
- package/lib/types/features/store/types/TableLayoutEditor.d.ts.map +0 -1
- package/lib/types/features/store/types/index.d.ts +0 -9
- package/lib/types/features/store/types/index.d.ts.map +0 -1
- package/lib/types/features/store/types/search/ObjectTypeSearchContext.d.ts +0 -36
- package/lib/types/features/store/types/search/ObjectTypeSearchContext.d.ts.map +0 -1
- package/lib/types/features/store/types/search/ObjectTypeSearchProvider.d.ts +0 -11
- package/lib/types/features/store/types/search/ObjectTypeSearchProvider.d.ts.map +0 -1
- package/lib/types/features/store/types/search/index.d.ts +0 -3
- package/lib/types/features/store/types/search/index.d.ts.map +0 -1
- package/lib/types/features/user/UserAvatar.d.ts +0 -9
- package/lib/types/features/user/UserAvatar.d.ts.map +0 -1
- package/lib/types/features/user/UserInfo.d.ts +0 -37
- package/lib/types/features/user/UserInfo.d.ts.map +0 -1
- package/lib/types/features/user/index.d.ts +0 -3
- package/lib/types/features/user/index.d.ts.map +0 -1
- package/lib/types/features/utils/index.d.ts +0 -4
- package/lib/types/features/utils/index.d.ts.map +0 -1
- package/lib/types/features/utils/mimeType.d.ts +0 -5
- package/lib/types/features/utils/mimeType.d.ts.map +0 -1
- package/lib/types/features/utils/rendition.d.ts +0 -4
- package/lib/types/features/utils/rendition.d.ts.map +0 -1
- package/lib/types/features/utils/text.d.ts +0 -3
- package/lib/types/features/utils/text.d.ts.map +0 -1
- package/lib/types/layout/AppLayout.d.ts +0 -13
- package/lib/types/layout/AppLayout.d.ts.map +0 -1
- package/lib/types/layout/FullHeightLayout.d.ts +0 -27
- package/lib/types/layout/FullHeightLayout.d.ts.map +0 -1
- package/lib/types/layout/Navbar.d.ts +0 -33
- package/lib/types/layout/Navbar.d.ts.map +0 -1
- package/lib/types/layout/Sidebar.d.ts +0 -31
- package/lib/types/layout/Sidebar.d.ts.map +0 -1
- package/lib/types/layout/SidebarContext.d.ts +0 -9
- package/lib/types/layout/SidebarContext.d.ts.map +0 -1
- package/lib/types/layout/TitleBar.d.ts +0 -6
- package/lib/types/layout/TitleBar.d.ts.map +0 -1
- package/lib/types/layout/index.d.ts +0 -7
- package/lib/types/layout/index.d.ts.map +0 -1
- package/lib/types/router/FixLinks.d.ts +0 -7
- package/lib/types/router/FixLinks.d.ts.map +0 -1
- package/lib/types/router/HistoryNavigator.d.ts +0 -56
- package/lib/types/router/HistoryNavigator.d.ts.map +0 -1
- package/lib/types/router/Nav.d.ts +0 -29
- package/lib/types/router/Nav.d.ts.map +0 -1
- package/lib/types/router/NestedNavigationContext.d.ts +0 -9
- package/lib/types/router/NestedNavigationContext.d.ts.map +0 -1
- package/lib/types/router/NestedRouterProvider.d.ts +0 -14
- package/lib/types/router/NestedRouterProvider.d.ts.map +0 -1
- package/lib/types/router/PathMatcher.d.ts +0 -36
- package/lib/types/router/PathMatcher.d.ts.map +0 -1
- package/lib/types/router/PathWithParams.d.ts +0 -9
- package/lib/types/router/PathWithParams.d.ts.map +0 -1
- package/lib/types/router/Route404.d.ts +0 -4
- package/lib/types/router/Route404.d.ts.map +0 -1
- package/lib/types/router/RouteComponent.d.ts +0 -6
- package/lib/types/router/RouteComponent.d.ts.map +0 -1
- package/lib/types/router/Router.d.ts +0 -74
- package/lib/types/router/Router.d.ts.map +0 -1
- package/lib/types/router/RouterProvider.d.ts +0 -15
- package/lib/types/router/RouterProvider.d.ts.map +0 -1
- package/lib/types/router/index.d.ts +0 -11
- package/lib/types/router/index.d.ts.map +0 -1
- package/lib/types/router/path.d.ts +0 -8
- package/lib/types/router/path.d.ts.map +0 -1
- package/lib/types/session/TypeRegistry.d.ts +0 -10
- package/lib/types/session/TypeRegistry.d.ts.map +0 -1
- package/lib/types/session/UserSession.d.ts +0 -40
- package/lib/types/session/UserSession.d.ts.map +0 -1
- package/lib/types/session/UserSessionProvider.d.ts +0 -7
- package/lib/types/session/UserSessionProvider.d.ts.map +0 -1
- package/lib/types/session/auth/composable.d.ts +0 -26
- package/lib/types/session/auth/composable.d.ts.map +0 -1
- package/lib/types/session/auth/firebase.d.ts +0 -10
- package/lib/types/session/auth/firebase.d.ts.map +0 -1
- package/lib/types/session/auth/useAuthState.d.ts +0 -10
- package/lib/types/session/auth/useAuthState.d.ts.map +0 -1
- package/lib/types/session/auth/useCurrentTenant.d.ts +0 -15
- package/lib/types/session/auth/useCurrentTenant.d.ts.map +0 -1
- package/lib/types/session/constants.d.ts +0 -3
- package/lib/types/session/constants.d.ts.map +0 -1
- package/lib/types/session/index.d.ts +0 -8
- package/lib/types/session/index.d.ts.map +0 -1
- package/lib/types/session/useUXTracking.d.ts +0 -6
- package/lib/types/session/useUXTracking.d.ts.map +0 -1
- package/lib/types/shell/SplashScreen.d.ts +0 -7
- package/lib/types/shell/SplashScreen.d.ts.map +0 -1
- package/lib/types/shell/VertesiaShell.d.ts +0 -10
- package/lib/types/shell/VertesiaShell.d.ts.map +0 -1
- package/lib/types/shell/apps/AppInstallationProvider.d.ts +0 -12
- package/lib/types/shell/apps/AppInstallationProvider.d.ts.map +0 -1
- package/lib/types/shell/apps/AppProjectSelector.d.ts +0 -12
- package/lib/types/shell/apps/AppProjectSelector.d.ts.map +0 -1
- package/lib/types/shell/apps/StandaloneApp.d.ts +0 -23
- package/lib/types/shell/apps/StandaloneApp.d.ts.map +0 -1
- package/lib/types/shell/apps/index.d.ts +0 -4
- package/lib/types/shell/apps/index.d.ts.map +0 -1
- package/lib/types/shell/index.d.ts +0 -8
- package/lib/types/shell/index.d.ts.map +0 -1
- package/lib/types/shell/login/EnterpriseSigninButton.d.ts +0 -6
- package/lib/types/shell/login/EnterpriseSigninButton.d.ts.map +0 -1
- package/lib/types/shell/login/GitHubSignInButton.d.ts +0 -6
- package/lib/types/shell/login/GitHubSignInButton.d.ts.map +0 -1
- package/lib/types/shell/login/GoogleSignInButton.d.ts +0 -6
- package/lib/types/shell/login/GoogleSignInButton.d.ts.map +0 -1
- package/lib/types/shell/login/InviteAcceptModal.d.ts +0 -2
- package/lib/types/shell/login/InviteAcceptModal.d.ts.map +0 -1
- package/lib/types/shell/login/MicrosoftSigninButton.d.ts +0 -6
- package/lib/types/shell/login/MicrosoftSigninButton.d.ts.map +0 -1
- package/lib/types/shell/login/PreviewIcon.d.ts +0 -6
- package/lib/types/shell/login/PreviewIcon.d.ts.map +0 -1
- package/lib/types/shell/login/SignInModal.d.ts +0 -7
- package/lib/types/shell/login/SignInModal.d.ts.map +0 -1
- package/lib/types/shell/login/SigninScreen.d.ts +0 -9
- package/lib/types/shell/login/SigninScreen.d.ts.map +0 -1
- package/lib/types/shell/login/SignupForm.d.ts +0 -8
- package/lib/types/shell/login/SignupForm.d.ts.map +0 -1
- package/lib/types/shell/login/TerminalLogin.d.ts +0 -2
- package/lib/types/shell/login/TerminalLogin.d.ts.map +0 -1
- package/lib/types/shell/login/UserInfo.d.ts +0 -6
- package/lib/types/shell/login/UserInfo.d.ts.map +0 -1
- package/lib/types/shell/login/UserSessionMenu.d.ts +0 -9
- package/lib/types/shell/login/UserSessionMenu.d.ts.map +0 -1
- package/lib/types/shell/utils.d.ts +0 -2
- package/lib/types/shell/utils.d.ts.map +0 -1
- package/lib/types/widgets/Progress.d.ts +0 -6
- package/lib/types/widgets/Progress.d.ts.map +0 -1
- package/lib/types/widgets/SvgIcon.d.ts +0 -7
- package/lib/types/widgets/SvgIcon.d.ts.map +0 -1
- package/lib/types/widgets/codemirror/CodeMirrorEditor.d.ts +0 -23
- package/lib/types/widgets/codemirror/CodeMirrorEditor.d.ts.map +0 -1
- package/lib/types/widgets/codemirror/CodemirrorStateSingleton.d.ts +0 -15
- package/lib/types/widgets/codemirror/CodemirrorStateSingleton.d.ts.map +0 -1
- package/lib/types/widgets/codemirror/index.d.ts +0 -2
- package/lib/types/widgets/codemirror/index.d.ts.map +0 -1
- package/lib/types/widgets/form/Form.d.ts +0 -21
- package/lib/types/widgets/form/Form.d.ts.map +0 -1
- package/lib/types/widgets/form/FormContext.d.ts +0 -17
- package/lib/types/widgets/form/FormContext.d.ts.map +0 -1
- package/lib/types/widgets/form/ManagedObject.d.ts +0 -82
- package/lib/types/widgets/form/ManagedObject.d.ts.map +0 -1
- package/lib/types/widgets/form/fields.d.ts +0 -16
- package/lib/types/widgets/form/fields.d.ts.map +0 -1
- package/lib/types/widgets/form/index.d.ts +0 -7
- package/lib/types/widgets/form/index.d.ts.map +0 -1
- package/lib/types/widgets/form/inputs.d.ts +0 -8
- package/lib/types/widgets/form/inputs.d.ts.map +0 -1
- package/lib/types/widgets/form/schema.d.ts +0 -47
- package/lib/types/widgets/form/schema.d.ts.map +0 -1
- package/lib/types/widgets/index.d.ts +0 -12
- package/lib/types/widgets/index.d.ts.map +0 -1
- package/lib/types/widgets/json-view/JSONCode.d.ts +0 -22
- package/lib/types/widgets/json-view/JSONCode.d.ts.map +0 -1
- package/lib/types/widgets/json-view/JSONDisplay.d.ts +0 -8
- package/lib/types/widgets/json-view/JSONDisplay.d.ts.map +0 -1
- package/lib/types/widgets/json-view/JSONView.d.ts +0 -7
- package/lib/types/widgets/json-view/JSONView.d.ts.map +0 -1
- package/lib/types/widgets/json-view/index.d.ts +0 -5
- package/lib/types/widgets/json-view/index.d.ts.map +0 -1
- package/lib/types/widgets/json-view/types.d.ts +0 -8
- package/lib/types/widgets/json-view/types.d.ts.map +0 -1
- package/lib/types/widgets/markdown/MarkdownRenderer.d.ts +0 -9
- package/lib/types/widgets/markdown/MarkdownRenderer.d.ts.map +0 -1
- package/lib/types/widgets/markdown/index.d.ts +0 -2
- package/lib/types/widgets/markdown/index.d.ts.map +0 -1
- package/lib/types/widgets/popover/Popover.d.ts +0 -38
- package/lib/types/widgets/popover/Popover.d.ts.map +0 -1
- package/lib/types/widgets/popover/context.d.ts +0 -8
- package/lib/types/widgets/popover/context.d.ts.map +0 -1
- package/lib/types/widgets/popover/index.d.ts +0 -3
- package/lib/types/widgets/popover/index.d.ts.map +0 -1
- package/lib/types/widgets/popover/slots.d.ts +0 -5
- package/lib/types/widgets/popover/slots.d.ts.map +0 -1
- package/lib/types/widgets/properties/PropertiesView.d.ts +0 -11
- package/lib/types/widgets/properties/PropertiesView.d.ts.map +0 -1
- package/lib/types/widgets/properties/index.d.ts +0 -2
- package/lib/types/widgets/properties/index.d.ts.map +0 -1
- package/lib/types/widgets/schema-editor/JSONSchemaEditorModal.d.ts +0 -10
- package/lib/types/widgets/schema-editor/JSONSchemaEditorModal.d.ts.map +0 -1
- package/lib/types/widgets/schema-editor/ManagedSchema.d.ts +0 -75
- package/lib/types/widgets/schema-editor/ManagedSchema.d.ts.map +0 -1
- package/lib/types/widgets/schema-editor/editor/Editable.d.ts +0 -40
- package/lib/types/widgets/schema-editor/editor/Editable.d.ts.map +0 -1
- package/lib/types/widgets/schema-editor/editor/EditableSchemaProperty.d.ts +0 -8
- package/lib/types/widgets/schema-editor/editor/EditableSchemaProperty.d.ts.map +0 -1
- package/lib/types/widgets/schema-editor/editor/PropertyEditor.d.ts +0 -5
- package/lib/types/widgets/schema-editor/editor/PropertyEditor.d.ts.map +0 -1
- package/lib/types/widgets/schema-editor/editor/PropertyViewer.d.ts +0 -4
- package/lib/types/widgets/schema-editor/editor/PropertyViewer.d.ts.map +0 -1
- package/lib/types/widgets/schema-editor/editor/SchemaContext.d.ts +0 -3
- package/lib/types/widgets/schema-editor/editor/SchemaContext.d.ts.map +0 -1
- package/lib/types/widgets/schema-editor/editor/SchemaEditor.d.ts +0 -9
- package/lib/types/widgets/schema-editor/editor/SchemaEditor.d.ts.map +0 -1
- package/lib/types/widgets/schema-editor/index.d.ts +0 -8
- package/lib/types/widgets/schema-editor/index.d.ts.map +0 -1
- package/lib/types/widgets/schema-editor/json-schema4-utils.d.ts +0 -16
- package/lib/types/widgets/schema-editor/json-schema4-utils.d.ts.map +0 -1
- package/lib/types/widgets/schema-editor/type-signature.d.ts +0 -19
- package/lib/types/widgets/schema-editor/type-signature.d.ts.map +0 -1
- package/lib/types/widgets/upload/DropZone.d.ts +0 -41
- package/lib/types/widgets/upload/DropZone.d.ts.map +0 -1
- package/lib/types/widgets/upload/UploadResultCategory.d.ts +0 -26
- package/lib/types/widgets/upload/UploadResultCategory.d.ts.map +0 -1
- package/lib/types/widgets/upload/UploadSummary.d.ts +0 -38
- package/lib/types/widgets/upload/UploadSummary.d.ts.map +0 -1
- package/lib/types/widgets/upload/index.d.ts +0 -4
- package/lib/types/widgets/upload/index.d.ts.map +0 -1
- package/lib/types/widgets/xml-viewer/components/Attributes/index.d.ts +0 -6
- package/lib/types/widgets/xml-viewer/components/Attributes/index.d.ts.map +0 -1
- package/lib/types/widgets/xml-viewer/components/CDataTag/index.d.ts +0 -8
- package/lib/types/widgets/xml-viewer/components/CDataTag/index.d.ts.map +0 -1
- package/lib/types/widgets/xml-viewer/components/CollapseIcon/index.d.ts +0 -5
- package/lib/types/widgets/xml-viewer/components/CollapseIcon/index.d.ts.map +0 -1
- package/lib/types/widgets/xml-viewer/components/CommentTag/index.d.ts +0 -9
- package/lib/types/widgets/xml-viewer/components/CommentTag/index.d.ts.map +0 -1
- package/lib/types/widgets/xml-viewer/components/DeclarationTag/index.d.ts +0 -8
- package/lib/types/widgets/xml-viewer/components/DeclarationTag/index.d.ts.map +0 -1
- package/lib/types/widgets/xml-viewer/components/Elements/index.d.ts +0 -8
- package/lib/types/widgets/xml-viewer/components/Elements/index.d.ts.map +0 -1
- package/lib/types/widgets/xml-viewer/components/InvalidXml/index.d.ts +0 -2
- package/lib/types/widgets/xml-viewer/components/InvalidXml/index.d.ts.map +0 -1
- package/lib/types/widgets/xml-viewer/components/Tag/index.d.ts +0 -13
- package/lib/types/widgets/xml-viewer/components/Tag/index.d.ts.map +0 -1
- package/lib/types/widgets/xml-viewer/components/TextElement/index.d.ts +0 -8
- package/lib/types/widgets/xml-viewer/components/TextElement/index.d.ts.map +0 -1
- package/lib/types/widgets/xml-viewer/components/XMLViewer.d.ts +0 -3
- package/lib/types/widgets/xml-viewer/components/XMLViewer.d.ts.map +0 -1
- package/lib/types/widgets/xml-viewer/components/types.d.ts +0 -104
- package/lib/types/widgets/xml-viewer/components/types.d.ts.map +0 -1
- package/lib/types/widgets/xml-viewer/constants/index.d.ts +0 -17
- package/lib/types/widgets/xml-viewer/constants/index.d.ts.map +0 -1
- package/lib/types/widgets/xml-viewer/context/xml-viewer-context.d.ts +0 -4
- package/lib/types/widgets/xml-viewer/context/xml-viewer-context.d.ts.map +0 -1
- package/lib/types/widgets/xml-viewer/helpers/index.d.ts +0 -13
- package/lib/types/widgets/xml-viewer/helpers/index.d.ts.map +0 -1
- package/lib/types/widgets/xml-viewer/hooks/useCollapsible.d.ts +0 -15
- package/lib/types/widgets/xml-viewer/hooks/useCollapsible.d.ts.map +0 -1
- package/lib/types/widgets/xml-viewer/hooks/useXMLViewer.d.ts +0 -10
- package/lib/types/widgets/xml-viewer/hooks/useXMLViewer.d.ts.map +0 -1
- package/lib/types/widgets/xml-viewer/index.d.ts +0 -3
- package/lib/types/widgets/xml-viewer/index.d.ts.map +0 -1
- package/lib/types/widgets/xml-viewer/types/index.d.ts +0 -16
- package/lib/types/widgets/xml-viewer/types/index.d.ts.map +0 -1
- package/lib/vertesia-ui-core.js +0 -2
- package/lib/vertesia-ui-core.js.map +0 -1
- package/lib/vertesia-ui-env.js +0 -2
- package/lib/vertesia-ui-env.js.map +0 -1
- package/lib/vertesia-ui-features.js +0 -2
- package/lib/vertesia-ui-features.js.map +0 -1
- package/lib/vertesia-ui-layout.js +0 -2
- package/lib/vertesia-ui-layout.js.map +0 -1
- package/lib/vertesia-ui-router.js +0 -2
- package/lib/vertesia-ui-router.js.map +0 -1
- package/lib/vertesia-ui-session.js +0 -2
- package/lib/vertesia-ui-session.js.map +0 -1
- package/lib/vertesia-ui-shell.js +0 -2
- package/lib/vertesia-ui-shell.js.map +0 -1
- package/lib/vertesia-ui-widgets.js +0 -2
- package/lib/vertesia-ui-widgets.js.map +0 -1
- package/src/features/facets/FacetsNav.tsx +0 -19
- package/src/features/facets/VFacetsNav.tsx +0 -81
- package/src/widgets/schema-editor/JSONSchemaEditorModal.tsx +0 -67
- /package/src/features/facets/{StringFacet.tsx → utils/StringFacet.tsx} +0 -0
- /package/src/features/facets/{StringListFacet.tsx → utils/StringListFacet.tsx} +0 -0
- /package/src/features/facets/{TypeFacet.tsx → utils/TypeFacet.tsx} +0 -0
- /package/src/features/facets/{VEnvironmentFacet.tsx → utils/VEnvironmentFacet.tsx} +0 -0
- /package/src/features/facets/{VInteractionFacet.tsx → utils/VInteractionFacet.tsx} +0 -0
- /package/src/features/facets/{VStringFacet.tsx → utils/VStringFacet.tsx} +0 -0
- /package/src/features/facets/{utils.tsx → utils/utils.tsx} +0 -0
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useState } from "react";
|
|
3
|
-
import { useUserSession } from "@vertesia/ui/session";
|
|
4
|
-
import { Button, Spinner, useToast } from "@vertesia/ui/core";
|
|
5
|
-
import { JSONDisplay, MarkdownRenderer } from "@vertesia/ui/widgets";
|
|
6
|
-
import { ImageRenditionFormat } from "@vertesia/common";
|
|
7
|
-
import { Copy, Download, SquarePen } from "lucide-react";
|
|
8
|
-
import { PropertiesEditorModal } from "./PropertiesEditorModal";
|
|
9
|
-
import { NavLink } from "@vertesia/ui/router";
|
|
10
|
-
export function ContentOverview({ object, loadText, refetch, }) {
|
|
11
|
-
const { client, store } = useUserSession();
|
|
12
|
-
const [isLoadingText, setIsLoadingText] = useState(false);
|
|
13
|
-
const [text, setText] = useState(object.text);
|
|
14
|
-
const [imageUrl, setImageUrl] = useState();
|
|
15
|
-
const [isPropertiesModalOpen, setPropertiesModalOpen] = useState(false);
|
|
16
|
-
const toast = useToast();
|
|
17
|
-
const [viewCode, setViewCode] = useState(false);
|
|
18
|
-
const VIEW_JSON = "JSON";
|
|
19
|
-
const VIEW_TEXT = "Preview";
|
|
20
|
-
const handleOpenPropertiesModal = () => {
|
|
21
|
-
setPropertiesModalOpen(true);
|
|
22
|
-
};
|
|
23
|
-
const handleClosePropertiesModal = () => {
|
|
24
|
-
setPropertiesModalOpen(false);
|
|
25
|
-
};
|
|
26
|
-
useEffect(() => {
|
|
27
|
-
if (loadText && !text) {
|
|
28
|
-
setIsLoadingText(true);
|
|
29
|
-
store.objects
|
|
30
|
-
.getObjectText(object.id)
|
|
31
|
-
.then((res) => {
|
|
32
|
-
setText(res.text);
|
|
33
|
-
})
|
|
34
|
-
.catch((err) => {
|
|
35
|
-
console.error("Failed to load text", err);
|
|
36
|
-
})
|
|
37
|
-
.finally(() => {
|
|
38
|
-
setIsLoadingText(false);
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}, [loadText]);
|
|
42
|
-
const handleCopyContent = async (content, type) => {
|
|
43
|
-
try {
|
|
44
|
-
await navigator.clipboard.writeText(content);
|
|
45
|
-
toast({
|
|
46
|
-
status: "success",
|
|
47
|
-
title: `${type === "text" ? "Content" : "Properties"} copied`,
|
|
48
|
-
description: `Successfully copied ${type} to clipboard`,
|
|
49
|
-
duration: 2000,
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
catch (err) {
|
|
53
|
-
console.error(`Failed to copy ${type}:`, err);
|
|
54
|
-
toast({
|
|
55
|
-
status: "error",
|
|
56
|
-
title: "Copy failed",
|
|
57
|
-
description: `Failed to copy ${type} to clipboard`,
|
|
58
|
-
duration: 5000,
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
const handleExportDocument = async (format) => {
|
|
63
|
-
try {
|
|
64
|
-
// Request document rendition from the server
|
|
65
|
-
const response = await client.objects.getRendition(object.id, {
|
|
66
|
-
format: format, // We're extending the format type
|
|
67
|
-
generate_if_missing: true,
|
|
68
|
-
sign_url: true,
|
|
69
|
-
});
|
|
70
|
-
if (response.status === "generating") {
|
|
71
|
-
toast({
|
|
72
|
-
status: "info",
|
|
73
|
-
title: "Generating document",
|
|
74
|
-
description: `Please wait while we prepare your ${format.toUpperCase()} file...`,
|
|
75
|
-
duration: 5000,
|
|
76
|
-
});
|
|
77
|
-
// Poll for completion
|
|
78
|
-
setTimeout(() => handleExportDocument(format), 3000);
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
if (response.status === "failed") {
|
|
82
|
-
throw new Error("Document generation failed");
|
|
83
|
-
}
|
|
84
|
-
// Download the generated file or open in new window
|
|
85
|
-
if (response.renditions && response.renditions.length > 0) {
|
|
86
|
-
const downloadUrl = response.renditions[0];
|
|
87
|
-
if (format === 'pdf') {
|
|
88
|
-
// Open PDF in new window
|
|
89
|
-
window.open(downloadUrl, '_blank');
|
|
90
|
-
toast({
|
|
91
|
-
status: "success",
|
|
92
|
-
title: "PDF opened",
|
|
93
|
-
description: "PDF document opened in a new window",
|
|
94
|
-
duration: 2000,
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
// Download DOCX file
|
|
99
|
-
const link = document.createElement("a");
|
|
100
|
-
link.href = downloadUrl;
|
|
101
|
-
link.download = `${object.name || "document"}.${format}`;
|
|
102
|
-
document.body.appendChild(link);
|
|
103
|
-
link.click();
|
|
104
|
-
document.body.removeChild(link);
|
|
105
|
-
toast({
|
|
106
|
-
status: "success",
|
|
107
|
-
title: "Document exported",
|
|
108
|
-
description: `Successfully exported to ${format.toUpperCase()} format`,
|
|
109
|
-
duration: 2000,
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
catch (err) {
|
|
115
|
-
console.error(`Failed to export document as ${format}:`, err);
|
|
116
|
-
toast({
|
|
117
|
-
status: "error",
|
|
118
|
-
title: "Export failed",
|
|
119
|
-
description: `Failed to export document to ${format.toUpperCase()} format`,
|
|
120
|
-
duration: 5000,
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
const handleExportDocx = () => handleExportDocument("docx");
|
|
125
|
-
const handleExportPdf = () => handleExportDocument("pdf");
|
|
126
|
-
const content = object.content;
|
|
127
|
-
const isImage = content &&
|
|
128
|
-
content.source &&
|
|
129
|
-
content.type &&
|
|
130
|
-
content.type.startsWith("image/");
|
|
131
|
-
const isMarkdownOrText = content &&
|
|
132
|
-
content.type &&
|
|
133
|
-
(content.type === "text/markdown" || content.type === "text/plain");
|
|
134
|
-
// Check for markdown indicators, ignoring any HTML comments
|
|
135
|
-
const seemsMarkdown = text &&
|
|
136
|
-
// Look for markdown indicators
|
|
137
|
-
(text.includes("\n#") ||
|
|
138
|
-
text.includes("\n*") ||
|
|
139
|
-
text.includes("\n+") ||
|
|
140
|
-
text.includes("!["));
|
|
141
|
-
useEffect(() => {
|
|
142
|
-
if (isImage) {
|
|
143
|
-
client.objects
|
|
144
|
-
.getRendition(object.id, {
|
|
145
|
-
format: ImageRenditionFormat.jpeg,
|
|
146
|
-
generate_if_missing: false,
|
|
147
|
-
sign_url: true,
|
|
148
|
-
})
|
|
149
|
-
.then((r) => {
|
|
150
|
-
if (r.status === "found") {
|
|
151
|
-
return r.renditions?.length ? r.renditions[0] : null;
|
|
152
|
-
}
|
|
153
|
-
else {
|
|
154
|
-
return object;
|
|
155
|
-
}
|
|
156
|
-
})
|
|
157
|
-
.catch(() => {
|
|
158
|
-
return object;
|
|
159
|
-
})
|
|
160
|
-
.then(() => {
|
|
161
|
-
client.files
|
|
162
|
-
.getDownloadUrl(object.content.source)
|
|
163
|
-
.then((r) => {
|
|
164
|
-
setImageUrl(r.url);
|
|
165
|
-
});
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
}, []);
|
|
169
|
-
return (_jsxs("div", { className: "w-full", children: [_jsxs("div", { className: "flex flex-col lg:flex-row lg:gap-8", children: [_jsxs("div", { className: "w-full lg:w-1/2", children: [_jsxs("div", { className: "h-[41px] text-lg font-semibold mb-4 border-b flex justify-between items-center", children: [_jsxs("div", { className: "flex items-center gap-1", children: ["Properties", _jsx(Button, { variant: "outline", size: "sm", alt: `${viewCode ? "Preview" : "View in JSON format"}`, onClick: () => setViewCode(!viewCode), children: viewCode ? VIEW_TEXT : VIEW_JSON })] }), _jsxs("div", { className: "flex items-center gap-2", children: [object.properties && (_jsx(Button, { variant: "ghost", size: "sm", title: "Copy properties", onClick: () => handleCopyContent(JSON.stringify(object.properties, null, 2), "properties"), children: _jsx(Copy, { className: "size-4" }) })), _jsx(Button, { variant: "ghost", size: "sm", onClick: handleOpenPropertiesModal, title: "Edit properties", className: "flex items-center gap-2", children: _jsx(SquarePen, { className: "size-4" }) })] })] }), object.properties ? (_jsx(JSONDisplay, { value: object.properties, viewCode: viewCode })) : (_jsx("div", { children: "No properties defined" })), isImage && (_jsxs("div", { className: "my-4", children: [_jsx("div", { className: "h-[41px] text-lg font-semibold mb-4 border-b flex justify-between items-center", children: _jsx("span", { className: "py-1", children: "Image" }) }), imageUrl ? (_jsx("img", { src: imageUrl, alt: object.name, className: "w-full object-contain" })) : (_jsx(Spinner, { size: "md" }))] }))] }), _jsxs("div", { className: "w-full lg:w-1/2 mt-4 lg:mt-0", children: [_jsxs("div", { className: "h-[41px] text-lg font-semibold mb-4 border-b flex justify-between items-center", children: [_jsx("span", { className: "py-1", children: "Text" }), _jsxs("div", { className: "flex items-center gap-2", children: [text && (_jsx(Button, { variant: "ghost", size: "sm", title: "Copy text", onClick: () => handleCopyContent(text, "text"), className: "flex items-center gap-2", children: _jsx(Copy, { className: "h-4 w-4" }) })), (isMarkdownOrText || seemsMarkdown) && text && (_jsxs(_Fragment, { children: [_jsxs(Button, { variant: "ghost", size: "sm", onClick: handleExportDocx, className: "flex items-center gap-2", children: [_jsx(Download, { className: "h-4 w-4" }), "DOCX"] }), _jsxs(Button, { variant: "ghost", size: "sm", onClick: handleExportPdf, className: "flex items-center gap-2", children: [_jsx(Download, { className: "h-4 w-4" }), "PDF"] })] }))] })] }), isLoadingText && _jsx(Spinner, { size: "md" }), text ? (_jsx("div", { className: "border shadow-xs rounded-xs max-w-7xl", children: seemsMarkdown ? (_jsx("div", { className: "vprose prose-sm p-1", children: _jsx(MarkdownRenderer, { components: {
|
|
170
|
-
a: ({ node, ...props }) => {
|
|
171
|
-
const href = props.href || "";
|
|
172
|
-
if (href.includes("/store/objects/")) {
|
|
173
|
-
return (_jsx(NavLink, { topLevelNav: true, href: href, className: "text-info", children: props.children }));
|
|
174
|
-
}
|
|
175
|
-
return _jsx("a", { ...props, "data-debug": "test", target: "_blank", rel: "noopener noreferrer" });
|
|
176
|
-
},
|
|
177
|
-
p: ({ node, ...props }) => (_jsx("p", { ...props, className: `my-0` })),
|
|
178
|
-
pre: ({ node, ...props }) => (_jsx("pre", { ...props, className: `my-2 p-2 rounded` })),
|
|
179
|
-
code: ({ node, className, children, ...props }) => {
|
|
180
|
-
const match = /language-(\w+)/.exec(className || "");
|
|
181
|
-
const isInline = !match;
|
|
182
|
-
return (_jsx("code", { ...props, className: isInline
|
|
183
|
-
? `px-1.5 py-0.5 rounded`
|
|
184
|
-
: "text-muted", children: children }));
|
|
185
|
-
},
|
|
186
|
-
h1: ({ node, ...props }) => (_jsx("h1", { ...props, className: `font-bold text-2xl my-2` })),
|
|
187
|
-
h2: ({ node, ...props }) => (_jsx("h2", { ...props, className: `font-bold text-xl my-2` })),
|
|
188
|
-
h3: ({ node, ...props }) => (_jsx("h3", { ...props, className: `font-bold text-lg my-2` })),
|
|
189
|
-
li: ({ node, ...props }) => (_jsx("li", { ...props })),
|
|
190
|
-
}, children: text }) })) : (_jsx("pre", { className: "text-wrap bg-muted text-muted p-2", children: text })) })) : (_jsx("div", { children: "No content" }))] })] }), _jsx(PropertiesEditorModal, { isOpen: isPropertiesModalOpen, onClose: handleClosePropertiesModal, object: object, refetch: refetch })] }));
|
|
191
|
-
}
|
|
192
|
-
//# sourceMappingURL=ContentOverview.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContentOverview.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/ContentOverview.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAiB,oBAAoB,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,SAAS,EAAE,yBAAyB,GAAI,CAC1D;4CACD,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,KAAK,EAA8C,EAAE,EAAE,CAAC,CACpE,gBAAQ,KAAK,EAAE,SAAS,EAAE,wBAAwB,GAAI,CACzD;4CACD,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,KAAK,EAA8C,EAAE,EAAE,CAAC,CACpE,gBAAQ,KAAK,EAAE,SAAS,EAAE,wBAAwB,GAAI,CACzD;4CACD,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,KAAK,EAA8C,EAAE,EAAE,CAAC,CACpE,gBAAQ,KAAK,GAAI,CACpB;yCACJ,YAEA,IAAI,GACU,GACjB,CACT,CAAC,CAAC,CAAC,CACA,cAAK,SAAS,EAAC,mCAAmC,YAC7C,IAAI,GACH,CACT,GACC,CACT,CAAC,CAAC,CAAC,CACA,uCAAqB,CACxB,IACC,IACJ,EAGN,KAAC,qBAAqB,IAClB,MAAM,EAAE,qBAAqB,EAC7B,OAAO,EAAE,0BAA0B,EACnC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,GAClB,IACA,CACT,CAAC;AACN,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useState } from 'react';
|
|
3
|
-
import { retrieveRendition } from '../../../utils';
|
|
4
|
-
import { Button, Card, CardContent, Separator, VTooltip } from "@vertesia/ui/core";
|
|
5
|
-
import { NavLink } from "@vertesia/ui/router";
|
|
6
|
-
import { useUserSession } from "@vertesia/ui/session";
|
|
7
|
-
import { Eye } from 'lucide-react';
|
|
8
|
-
export function DocumentIcon({ selection, document, onSelectionChange, onRowClick }) {
|
|
9
|
-
const { client } = useUserSession();
|
|
10
|
-
const [renditionUrl, setRenditionUrl] = useState(undefined);
|
|
11
|
-
const [renditionAlt, setRenditionAlt] = useState(undefined);
|
|
12
|
-
const [renditionStatus, setRenditionStatus] = useState(undefined);
|
|
13
|
-
const handleSelect = (ev) => {
|
|
14
|
-
ev.stopPropagation();
|
|
15
|
-
onSelectionChange(document, ev);
|
|
16
|
-
};
|
|
17
|
-
useEffect(() => {
|
|
18
|
-
if (!document?.content) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
retrieveRendition(client, document, setRenditionUrl, setRenditionAlt, setRenditionStatus);
|
|
22
|
-
}, [document]);
|
|
23
|
-
return (_jsxs(Card, { className: "relative flex flex-col border h-fit", onClick: () => (onRowClick && onRowClick(document)), children: [selection && (_jsx("div", { className: "absolute top-2 left-2 z-10 flex flex-col items-center gap-1", children: _jsx("input", { checked: selection.isSelected(document.id), type: "checkbox", onChange: handleSelect, onClick: (e) => e.stopPropagation() }) })), _jsx("div", { className: "absolute top-1 right-1 z-10 flex flex-col items-center", children: _jsx(NavLink, { topLevelNav: true, href: `/store/objects/${document.id}`, children: _jsx(Button, { variant: "ghost", size: "sm", title: "Open Object", children: _jsx(Eye, { className: `size-4 ${renditionStatus === 'ready' ? 'text-muted' : 'text-white'}` }) }) }) }), (renditionUrl && renditionStatus == 'ready') ? (_jsx("img", { src: renditionUrl, alt: renditionAlt, className: "w-auto h-48 object-cover rounded-t-xl" })) : (_jsx("div", { className: "h-48 bg-gray-700 rounded-t-xl flex items-center justify-center text-muted", children: renditionStatus })), _jsx(Separator, { className: 'bg-gray-200 h-[2px]' }), _jsx(CardContent, { className: "p-2 flex flex-col gap-1", children: _jsxs("div", { className: "flex flex-col", children: [_jsx(VTooltip, { placement: 'top', description: document.properties?.title ?? document.name, children: _jsx("h3", { className: "text-start font-medium leading-none truncate", children: document.properties?.title ?? document.name }) }), document?.type?.name ? (_jsx(VTooltip, { placement: 'bottom', size: 'xs', description: document?.type?.name, children: _jsx("p", { className: "text-start text-xs text-muted truncate", children: document?.type?.name }) })) : _jsx("p", { className: "text-xs text-muted", children: "\u2002" })] }) })] }));
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=DocumentIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentIcon.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/DocumentIcon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAe,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAExD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAGlD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAQlC,MAAM,UAAU,YAAY,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,iBAAiB,EAAE,UAAU,EAA+B;IAC5G,MAAM,EAAE,MAAM,EAAE,GAAG,cAAc,EAAE,CAAA;IAEnC,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAqB,SAAS,CAAC,CAAA;IAC/E,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAqB,SAAS,CAAC,CAAA;IAC/E,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAqB,SAAS,CAAC,CAAA;IAGrF,MAAM,YAAY,GAAG,CAAC,EAAuC,EAAE,EAAE;QAC7D,EAAE,CAAC,eAAe,EAAE,CAAA;QACpB,iBAAiB,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAA;IACnC,CAAC,CAAA;IAED,SAAS,CAAC,GAAG,EAAE;QACX,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,CAAC;YACrB,OAAM;QACV,CAAC;QAED,iBAAiB,CAAC,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,e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AW,EAAE,QAAQ,CAAC,UAAU,EAAE,KAAK,IAAI,QAAQ,CAAC,IAAI,YACxD,aAAI,SAAS,EAAC,8CAA8C,YAAE,QAAQ,CAAC,UAAU,EAAE,KAAK,IAAI,QAAQ,CAAC,IAAI,GAAM,GACxG,EAEP,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CACnB,KAAC,QAAQ,IACL,SAAS,EAAC,QAAQ,EAAC,IAAI,EAAC,IAAI,EAC5B,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,YACjC,YAAG,SAAS,EAAC,wCAAwC,YAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,GAAK,GACzE,CACd,CAAC,CAAC,CAAC,YAAG,SAAS,EAAC,oBAAoB,YAAE,QAAQ,GAAK,IAEtD,GACI,IACX,CACV,CAAA;AACL,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import { useEffect, useState } from 'react';
|
|
4
|
-
import { useUserSession } from '@vertesia/ui/session';
|
|
5
|
-
import { ChevronsUpDown, X } from 'lucide-react';
|
|
6
|
-
import { Button, Styles, useFlag } from '@vertesia/ui/core';
|
|
7
|
-
import { SelectDocumentModal } from './SelectDocumentModal';
|
|
8
|
-
const STORE_REGEX = /store:([a-f0-9]+)/;
|
|
9
|
-
export function DocumentInput({ object }) {
|
|
10
|
-
const { client } = useUserSession();
|
|
11
|
-
const { off, on, isOn } = useFlag();
|
|
12
|
-
const [actualValue, setValue] = useState(object.value != null ? String(object.value) : '');
|
|
13
|
-
const [doc, setDoc] = useState(undefined);
|
|
14
|
-
const _onChange = (event) => {
|
|
15
|
-
const value = event.target.value;
|
|
16
|
-
setValue(value);
|
|
17
|
-
object.value = value;
|
|
18
|
-
};
|
|
19
|
-
const clearValue = () => {
|
|
20
|
-
setValue('');
|
|
21
|
-
object.value = '';
|
|
22
|
-
setDoc(undefined);
|
|
23
|
-
};
|
|
24
|
-
const onSelect = (value) => {
|
|
25
|
-
if (value) {
|
|
26
|
-
const uri = "store:" + value.id;
|
|
27
|
-
setValue(uri);
|
|
28
|
-
setDoc(value || undefined);
|
|
29
|
-
object.value = uri;
|
|
30
|
-
}
|
|
31
|
-
off();
|
|
32
|
-
};
|
|
33
|
-
useEffect(() => {
|
|
34
|
-
if (!actualValue || doc) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
const match = actualValue.match(STORE_REGEX);
|
|
38
|
-
if (!match) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
client.objects.get(match[1]).then((doc) => {
|
|
42
|
-
setDoc(doc);
|
|
43
|
-
}).catch(() => {
|
|
44
|
-
clearValue();
|
|
45
|
-
});
|
|
46
|
-
}, [actualValue]);
|
|
47
|
-
return (_jsxs("div", { children: [_jsxs("div", { className: "relative", children: [_jsx("input", { value: actualValue, onChange: _onChange, className: clsx(Styles.INPUT, "pr-10 w-full") }), doc &&
|
|
48
|
-
_jsx("div", { className: "absolute inset-y-0 right-10 flex items-center justify-center ", children: _jsx(Button, { onClick: clearValue, variant: 'unstyled', className: 'hover:text-red-500 hover:bg-gray-100 dark:hover:bg-gray-600', children: _jsx(X, { className: "size-5" }) }) }), _jsx("div", { className: "absolute inset-y-0 right-0 flex items-center justify-center", children: _jsx(Button, { onClick: on, variant: 'unstyled', className: 'hover:bg-gray-100 dark:hover:bg-gray-600', children: _jsx(ChevronsUpDown, { className: "size-5" }) }) }), _jsx(SelectDocumentModal, { value: actualValue, isOpen: isOn, onClose: onSelect })] }), doc &&
|
|
49
|
-
_jsx("div", { className: "p-1 semibold text-sm text-gray-600 dark:text-slate-300", children: doc.properties?.title || doc.name })] }));
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=DocumentInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentInput.js","sourceRoot":"","sources":["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EV,cAAK,SAAS,EAAC,6DAA6D,YACxE,KAAC,MAAM,IAAC,OAAO,EAAE,EAAE,EAAE,OAAO,EAAC,UAAU,EAAC,SAAS,EAAC,0CAA0C,YACxF,KAAC,cAAc,IAAC,SAAS,EAAC,QAAQ,GAAG,GAChC,GACP,EACN,KAAC,mBAAmB,IAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,GAAI,IAC1E,EACL,GAAG;gBACA,cAAK,SAAS,EAAC,wDAAwD,YAClE,GAAG,CAAC,UAAU,EAAE,KAAK,IAAI,GAAG,CAAC,IAAI,GAChC,IAER,CACT,CAAA;AACL,CAAC"}
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useUserSession } from '@vertesia/ui/session';
|
|
3
|
-
import { useState, useRef, useEffect } from 'react';
|
|
4
|
-
import { Button, Modal, ModalBody, ModalFooter, ModalTitle, useToast } from '@vertesia/ui/core';
|
|
5
|
-
import { useNavigate } from "@vertesia/ui/router";
|
|
6
|
-
// Import Monaco Editor
|
|
7
|
-
import Editor from '@monaco-editor/react';
|
|
8
|
-
// Import SaveVersionConfirmModal
|
|
9
|
-
import { SaveVersionConfirmModal } from './SaveVersionConfirmModal';
|
|
10
|
-
export function PropertiesEditorModal({ isOpen, onClose, object, refetch }) {
|
|
11
|
-
const { client, store } = useUserSession();
|
|
12
|
-
const toast = useToast();
|
|
13
|
-
const navigate = useNavigate();
|
|
14
|
-
const [isLoading, setIsLoading] = useState(false);
|
|
15
|
-
const [propertiesJson, setPropertiesJson] = useState('');
|
|
16
|
-
const [showConfirmation, setShowConfirmation] = useState(false);
|
|
17
|
-
const [parsedProperties, setParsedProperties] = useState(null);
|
|
18
|
-
const editorRef = useRef(null);
|
|
19
|
-
const monacoRef = useRef(null);
|
|
20
|
-
const [jsonSchema, setJsonSchema] = useState(null);
|
|
21
|
-
//TODO state not used
|
|
22
|
-
const [_newVersionId, setNewVersionId] = useState(null);
|
|
23
|
-
// Initialize editor content when modal opens
|
|
24
|
-
useEffect(() => {
|
|
25
|
-
if (isOpen) {
|
|
26
|
-
setPropertiesJson(JSON.stringify(object.properties || {}, null, 2));
|
|
27
|
-
// Try to fetch JSON schema if object has a type
|
|
28
|
-
if (object.type?.id) {
|
|
29
|
-
fetchJsonSchema(object.type.id);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}, [isOpen, object]);
|
|
33
|
-
// Handle editor mounting
|
|
34
|
-
function handleEditorDidMount(editor, monaco) {
|
|
35
|
-
editorRef.current = editor;
|
|
36
|
-
monacoRef.current = monaco;
|
|
37
|
-
// Apply JSON schema validation if available
|
|
38
|
-
if (jsonSchema) {
|
|
39
|
-
setMonacoJsonSchema(monaco, jsonSchema);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
// Fetch JSON schema for the object type
|
|
43
|
-
async function fetchJsonSchema(typeId) {
|
|
44
|
-
try {
|
|
45
|
-
const typeDetails = await store.types.retrieve(typeId);
|
|
46
|
-
if (typeDetails.object_schema) {
|
|
47
|
-
setJsonSchema(typeDetails.object_schema);
|
|
48
|
-
// Apply schema if Monaco is already mounted
|
|
49
|
-
if (monacoRef.current) {
|
|
50
|
-
setMonacoJsonSchema(monacoRef.current, typeDetails.object_schema);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
catch (error) {
|
|
55
|
-
console.error('Failed to fetch JSON schema:', error);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
// Configure Monaco editor with JSON schema
|
|
59
|
-
function setMonacoJsonSchema(monaco, schema) {
|
|
60
|
-
monaco.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
61
|
-
validate: true,
|
|
62
|
-
schemas: [
|
|
63
|
-
{
|
|
64
|
-
uri: 'http://myserver/object-schema.json',
|
|
65
|
-
fileMatch: ['*'],
|
|
66
|
-
schema
|
|
67
|
-
}
|
|
68
|
-
]
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
// Validate JSON and open confirmation modal
|
|
72
|
-
function handleSave() {
|
|
73
|
-
if (!editorRef.current)
|
|
74
|
-
return;
|
|
75
|
-
const editorValue = editorRef.current.getValue();
|
|
76
|
-
try {
|
|
77
|
-
const properties = JSON.parse(editorValue);
|
|
78
|
-
setParsedProperties(properties);
|
|
79
|
-
setShowConfirmation(true);
|
|
80
|
-
}
|
|
81
|
-
catch (err) {
|
|
82
|
-
toast({
|
|
83
|
-
status: 'error',
|
|
84
|
-
title: 'Invalid JSON',
|
|
85
|
-
description: 'Please fix the JSON syntax errors before saving.',
|
|
86
|
-
duration: 5000
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
// Save properties
|
|
91
|
-
async function saveProperties(createVersion, versionLabel) {
|
|
92
|
-
try {
|
|
93
|
-
setIsLoading(true);
|
|
94
|
-
const properties = parsedProperties || JSON.parse(propertiesJson);
|
|
95
|
-
if (createVersion) {
|
|
96
|
-
// Create a new version with the updated properties
|
|
97
|
-
const response = await client.objects.update(object.id, {
|
|
98
|
-
properties: properties
|
|
99
|
-
}, {
|
|
100
|
-
createRevision: true,
|
|
101
|
-
revisionLabel: versionLabel
|
|
102
|
-
});
|
|
103
|
-
// Store the new version ID for navigation
|
|
104
|
-
if (response.id !== object.id) {
|
|
105
|
-
setNewVersionId(response.id);
|
|
106
|
-
}
|
|
107
|
-
toast({
|
|
108
|
-
status: 'success',
|
|
109
|
-
title: 'New version created',
|
|
110
|
-
description: 'A new version with updated properties has been created.',
|
|
111
|
-
duration: 2000
|
|
112
|
-
});
|
|
113
|
-
// Close modals
|
|
114
|
-
setShowConfirmation(false);
|
|
115
|
-
onClose();
|
|
116
|
-
// Navigate to the new version
|
|
117
|
-
if (response.id !== object.id) {
|
|
118
|
-
// Delay slightly to allow modal closing to complete
|
|
119
|
-
setTimeout(() => {
|
|
120
|
-
navigate(`/objects/${response.id}`);
|
|
121
|
-
toast({
|
|
122
|
-
status: 'info',
|
|
123
|
-
title: 'Viewing New Version',
|
|
124
|
-
description: versionLabel ? `Now viewing version '${versionLabel}'` : 'Now viewing the new version',
|
|
125
|
-
duration: 3000
|
|
126
|
-
});
|
|
127
|
-
}, 100);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
// Update the object properties in place
|
|
132
|
-
await store.objects.update(object.id, {
|
|
133
|
-
properties: properties
|
|
134
|
-
});
|
|
135
|
-
toast({
|
|
136
|
-
status: 'success',
|
|
137
|
-
title: 'Properties updated',
|
|
138
|
-
description: 'The object properties have been updated successfully.',
|
|
139
|
-
duration: 2000
|
|
140
|
-
});
|
|
141
|
-
if (refetch) {
|
|
142
|
-
await refetch();
|
|
143
|
-
}
|
|
144
|
-
setShowConfirmation(false);
|
|
145
|
-
onClose();
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
catch (error) {
|
|
149
|
-
toast({
|
|
150
|
-
status: 'error',
|
|
151
|
-
title: 'Error updating properties',
|
|
152
|
-
description: error.message || 'An error occurred while updating the properties.',
|
|
153
|
-
duration: 5000
|
|
154
|
-
});
|
|
155
|
-
setIsLoading(false);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
// Handle closing the confirmation modal without saving
|
|
159
|
-
function handleCancelConfirmation() {
|
|
160
|
-
setShowConfirmation(false);
|
|
161
|
-
}
|
|
162
|
-
return (_jsxs(_Fragment, { children: [_jsxs(Modal, { isOpen: isOpen, onClose: onClose, className: "sm:max-w-[90%] md:max-w-[80%] lg:max-w-[75%] xl:max-w-[70%]", children: [_jsx(ModalTitle, { children: "Edit Properties" }), _jsxs(ModalBody, { children: [_jsxs("div", { className: "mb-2 text-sm text-gray-500", children: [object.type?.name ? (_jsxs("span", { children: ["Editing properties for object type: ", _jsx("strong", { children: object.type.name })] })) : (_jsx("span", { children: "Editing properties for generic document" })), jsonSchema && (_jsx("span", { className: "ml-2 text-green-600", children: "(JSON schema validation enabled)" }))] }), _jsx("div", { className: "h-[75vh] border border-gray-300 dark:border-gray-700 rounded-md", children: _jsx(Editor, { height: "100%", language: "json", value: propertiesJson, onChange: (value) => setPropertiesJson(value || ''), onMount: handleEditorDidMount, options: {
|
|
163
|
-
minimap: { enabled: false },
|
|
164
|
-
scrollBeyondLastLine: false,
|
|
165
|
-
formatOnPaste: true,
|
|
166
|
-
formatOnType: true,
|
|
167
|
-
automaticLayout: true,
|
|
168
|
-
wordWrap: 'on'
|
|
169
|
-
} }) })] }), _jsxs(ModalFooter, { children: [_jsx(Button, { variant: "secondary", onClick: onClose, children: "Cancel" }), _jsx(Button, { variant: "primary", onClick: handleSave, children: "Save Changes" })] })] }), _jsx(SaveVersionConfirmModal, { isOpen: showConfirmation, onClose: handleCancelConfirmation, onConfirm: saveProperties, isLoading: isLoading })] }));
|
|
170
|
-
}
|
|
171
|
-
//# sourceMappingURL=PropertiesEditorModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PropertiesEditorModal.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/PropertiesEditorModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EACH,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,UAAU,EACV,QAAQ,EACX,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,uBAAuB;AACvB,OAAO,MAAkB,MAAM,sBAAsB,CAAC;AAGtD,iCAAiC;AACjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AASpE,MAAM,UAAU,qBAAqB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAA8B;IACl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3
|
-
import { Button, Modal, ModalBody, ModalFooter, ModalTitle, Input, RadioGroup, RadioOptionAdapter, FormItem } from '@vertesia/ui/core';
|
|
4
|
-
class SaveOptionAdapter extends RadioOptionAdapter {
|
|
5
|
-
labelOf(item) {
|
|
6
|
-
return item.label;
|
|
7
|
-
}
|
|
8
|
-
idOf(item) {
|
|
9
|
-
return item.id;
|
|
10
|
-
}
|
|
11
|
-
renderOption(item) {
|
|
12
|
-
return (_jsxs("div", { children: [_jsx("div", { className: "font-medium", children: item.label }), _jsx("p", { className: "text-sm text-gray-500 dark:text-gray-400 mt-1", children: item.description })] }));
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export function SaveVersionConfirmModal({ isOpen, onClose, onConfirm, isLoading, uploadedFileName }) {
|
|
16
|
-
const saveOptions = [
|
|
17
|
-
{
|
|
18
|
-
id: "update",
|
|
19
|
-
label: "Update current version",
|
|
20
|
-
description: uploadedFileName
|
|
21
|
-
? "Replace the content file and modify properties directly in the current revision."
|
|
22
|
-
: "Modify the properties directly in the current revision."
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
id: "new-version",
|
|
26
|
-
label: "Create new version",
|
|
27
|
-
description: uploadedFileName
|
|
28
|
-
? "Create a new revision with the replacement file while preserving the original."
|
|
29
|
-
: "Create a new revision with these property changes while preserving the original."
|
|
30
|
-
}
|
|
31
|
-
];
|
|
32
|
-
const [selectedOption, setSelectedOption] = useState(saveOptions[0]);
|
|
33
|
-
const [versionLabel, setVersionLabel] = useState('');
|
|
34
|
-
const optionAdapter = new SaveOptionAdapter();
|
|
35
|
-
const createVersion = selectedOption?.id === "new-version";
|
|
36
|
-
const handleOptionChange = (option) => {
|
|
37
|
-
setSelectedOption(option);
|
|
38
|
-
};
|
|
39
|
-
const handleConfirm = async () => {
|
|
40
|
-
await onConfirm(createVersion, createVersion ? versionLabel : undefined);
|
|
41
|
-
};
|
|
42
|
-
return (_jsxs(Modal, { isOpen: isOpen, onClose: onClose, className: "sm:max-w-md", children: [_jsx(ModalTitle, { children: "Save Changes" }), _jsx(ModalBody, { children: _jsxs("div", { className: "space-y-4", children: [uploadedFileName && (_jsx("div", { className: "mb-4 p-3 bg-blue-50 dark:bg-blue-900/20 rounded-md", children: _jsxs("p", { className: "text-sm text-blue-700 dark:text-blue-300 font-medium", children: ["You're about to replace the content file with: ", _jsx("span", { className: "font-bold", children: uploadedFileName })] }) })), _jsx("p", { className: "text-sm text-mixer-muted/5", children: "How would you like to save these changes?" }), _jsx(RadioGroup, { adapter: optionAdapter, options: saveOptions, value: selectedOption, onChange: handleOptionChange, gap: "gap-4" }), createVersion && (_jsx(FormItem, { label: "Version Label (Optional)", description: "Optional label for the new version.", className: "mt-3 pl-8", children: _jsx(Input, { value: versionLabel, onChange: setVersionLabel, placeholder: "e.g., v1.2, approved, post-review", className: "w-full" }) }))] }) }), _jsxs(ModalFooter, { children: [_jsx(Button, { variant: "secondary", onClick: onClose, disabled: isLoading, children: "Cancel" }), _jsx(Button, { variant: "primary", onClick: handleConfirm, isLoading: isLoading, children: "Save" })] })] }));
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=SaveVersionConfirmModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SaveVersionConfirmModal.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/SaveVersionConfirmModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EACH,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,UAAU,EACV,KAAK,EACL,UAAU,EACV,kBAAkB,EAClB,QAAQ,EACX,MAAM,mBAAmB,CAAC;AAiB3B,MAAM,iBAAkB,SAAQ,kBAAkC;IAC9D,OAAO,CAAC,IAAoB;QACxB,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED,IAAI,CAAC,IAAoB;QACrB,OAAO,IAAI,CAAC,EAAE,CAAC;IACnB,CA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C,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,aAAa,aAC5D,KAAC,UAAU,+BAA0B,EACrC,KAAC,SAAS,cACN,eAAK,SAAS,EAAC,WAAW,aACrB,gBAAgB,IAAI,CACjB,cAAK,SAAS,EAAC,oDAAoD,YAC/D,aAAG,SAAS,EAAC,sDAAsD,gEACX,eAAM,SAAS,EAAC,WAAW,YAAE,gBAAgB,GAAQ,IACzG,GACF,CACT,EACD,YAAG,SAAS,EAAC,4BAA4B,0DAErC,EAEJ,KAAC,UAAU,IACP,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,cAAc,EACrB,QAAQ,EAAE,kBAAkB,EAC5B,GAAG,EAAC,OAAO,GACb,EAED,aAAa,IAAI,CACd,KAAC,QAAQ,IACL,KAAK,EAAC,0BAA0B,EAChC,WAAW,EAAC,qCAAqC,EACjD,SAAS,EAAC,WAAW,YAErB,KAAC,KAAK,IACF,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,eAAe,EACzB,WAAW,EAAC,mCAAmC,EAC/C,SAAS,EAAC,QAAQ,GACpB,GACK,CACd,IACC,GACE,EACZ,MAAC,WAAW,eACR,KAAC,MAAM,IAAC,OAAO,EAAC,WAAW,EAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,uBAExD,EACT,KAAC,MAAM,IACH,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,SAAS,qBAGf,IACC,IACV,CACX,CAAC;AACN,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button, ErrorBox, Spinner, useIntersectionObserver } from "@vertesia/ui/core";
|
|
3
|
-
import { useEffect, useRef, useState } from "react";
|
|
4
|
-
import { DocumentsFacetsNav } from "../../../facets";
|
|
5
|
-
import { DocumentTable } from "../DocumentTable";
|
|
6
|
-
import { useDocumentSearch, useWatchDocumentSearchFacets, useWatchDocumentSearchResult } from "../search/DocumentSearchContext";
|
|
7
|
-
import { DocumentSearchProvider } from "../search/DocumentSearchProvider";
|
|
8
|
-
import { ContentDispositionButton } from "./ContentDispositionButton";
|
|
9
|
-
import { RefreshCw } from "lucide-react";
|
|
10
|
-
const layout = [
|
|
11
|
-
{ "name": "Name", "field": "properties.title", "type": "string", "fallback": "name" },
|
|
12
|
-
{ "name": "Type", "field": "type.name", "type": "string" },
|
|
13
|
-
{ "name": "Status", "field": "status", "type": "string" },
|
|
14
|
-
{ "name": "Created At", "field": "created_at", "type": "date" }
|
|
15
|
-
];
|
|
16
|
-
export function SelectDocument({ onChange }) {
|
|
17
|
-
const onRowClick = (selected) => {
|
|
18
|
-
onChange(selected || undefined);
|
|
19
|
-
};
|
|
20
|
-
return (_jsx(DocumentSearchProvider, { children: _jsx(SelectDocumentImpl, { onRowClick: onRowClick }) }));
|
|
21
|
-
}
|
|
22
|
-
const LAST_DISPLAYED_VIEW = 'vertesia.content_store.lastDisplayedView';
|
|
23
|
-
function SelectDocumentImpl({ onRowClick }) {
|
|
24
|
-
const [isReady, setIsReady] = useState(false);
|
|
25
|
-
const [isGridView, setIsGridView] = useState(localStorage.getItem(LAST_DISPLAYED_VIEW) === 'grid');
|
|
26
|
-
const { search, isLoading, error, objects } = useWatchDocumentSearchResult();
|
|
27
|
-
const loadMoreRef = useRef(null);
|
|
28
|
-
useIntersectionObserver(loadMoreRef, () => {
|
|
29
|
-
isReady && search.loadMore(true);
|
|
30
|
-
}, { deps: [isReady] });
|
|
31
|
-
useEffect(() => {
|
|
32
|
-
search.search().then(() => setIsReady(true));
|
|
33
|
-
}, []);
|
|
34
|
-
const facets = useWatchDocumentSearchFacets();
|
|
35
|
-
const facetSearch = useDocumentSearch();
|
|
36
|
-
const handleRefetch = () => {
|
|
37
|
-
setIsReady(false);
|
|
38
|
-
search.search().then(() => setIsReady(true));
|
|
39
|
-
};
|
|
40
|
-
if (error) {
|
|
41
|
-
return _jsx(ErrorBox, { title: "Search failed", children: error.message });
|
|
42
|
-
}
|
|
43
|
-
return (_jsxs("div", { children: [_jsxs("div", { className: "flex justify-between items-center mb-4", children: [_jsx(DocumentsFacetsNav, { facets: facets, search: facetSearch }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Button, { variant: "outline", onClick: handleRefetch, alt: "Refresh", children: _jsx(RefreshCw, { size: 16 }) }), _jsx(ContentDispositionButton, { onUpdate: setIsGridView })] })] }), _jsx(DocumentTable, { objects: objects || [], isLoading: false, layout: layout, onRowClick: onRowClick, isGridView: isGridView }), _jsx("div", { ref: loadMoreRef, className: 'mt-10' }), isLoading && _jsx("div", { className: 'flex justify-center', children: _jsx(Spinner, { size: 'xl' }) })] }));
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=SelectDocument.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelectDocument.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/SelectDocument.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,4BAA4B,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAChI,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,MAAM,GAAmB;IAC3B,EAAE,MAAM,EAAE,MAAM,EA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AC,OAAO,IAAC,IAAI,EAAC,IAAI,GAAG,GAAM,IAE/E,CACT,CAAA;AACL,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { VModal, VModalBody, VModalTitle } from "@vertesia/ui/core";
|
|
3
|
-
import { SelectDocument } from "./SelectDocument";
|
|
4
|
-
export function SelectDocumentModal({ isOpen, onClose }) {
|
|
5
|
-
return (_jsxs(VModal, { onClose: () => onClose(), isOpen: !!isOpen, className: 'min-w-[60vw]', children: [_jsx(VModalTitle, { children: "Select Content" }), _jsx(VModalBody, { className: 'pt-0 overflow-y-auto max-h-[80vh] min-h-[80vh]', children: isOpen && _jsx(SelectDocument, { onChange: onClose }) })] }));
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=SelectDocumentModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelectDocumentModal.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/SelectDocumentModal.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQlD,MAAM,UAAU,mBAAmB,CAAC,EAAE,MAAM,EAAE,OAAO,EAA4B;IAC7E,OAAO,CACH,MAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,SAAS,EAAC,cAAc,aACxE,KAAC,WAAW,iCAA6B,EACzC,KAAC,UAAU,IAAC,SAAS,EAAC,gDAAgD,YACjE,MAAM,IAAI,KAAC,cAAc,IAAC,QAAQ,EAAE,OAAO,GAAI,GACvC,IACR,CACZ,CAAA;AACL,CAAC"}
|