@vertesia/ui 0.81.0 → 0.81.2-dev.20260204.135023Z
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 +6 -10
- package/src/core/components/InputList.tsx +1 -1
- package/src/core/components/Overlay.tsx +1 -1
- package/src/core/components/SidePanel.tsx +25 -13
- package/src/core/components/index.ts +0 -8
- package/src/core/components/{Panel.tsx → shadcn/Panel.tsx} +1 -1
- package/src/core/components/{Badge.tsx → shadcn/badge.tsx} +1 -1
- package/src/core/components/shadcn/calendar.tsx +2 -2
- package/src/core/components/shadcn/command.tsx +1 -1
- package/src/core/components/shadcn/filters/index.ts +1 -1
- package/src/core/components/shadcn/index.ts +5 -3
- package/src/core/components/{ConfirmModal.tsx → shadcn/modal/ConfirmModal.tsx} +8 -8
- package/src/core/components/{DeleteModal.tsx → shadcn/modal/DeleteModal.tsx} +1 -1
- package/src/core/components/shadcn/{dialog.tsx → modal/dialog.tsx} +41 -32
- package/src/core/components/shadcn/modal/index.ts +3 -0
- package/src/core/components/shadcn/popover.tsx +4 -2
- package/src/core/components/shadcn/selectBox.tsx +14 -12
- package/src/core/components/shadcn/tabs.tsx +16 -7
- package/src/core/components/shadcn/tooltip.tsx +20 -16
- package/src/features/agent/PayloadBuilder.tsx +28 -0
- package/src/features/agent/chat/ModernAgentConversation.tsx +13 -111
- package/src/features/agent/chat/ModernAgentOutput/Header.tsx +1 -1
- package/src/features/agent/chat/ModernAgentOutput/MessageInput.tsx +7 -7
- package/src/features/facets/AgentRunnerFacetsNav.tsx +125 -0
- package/src/features/facets/index.ts +1 -0
- package/src/features/store/collections/CreateCollection.tsx +9 -9
- package/src/features/store/collections/EditCollectionView.tsx +11 -9
- package/src/features/store/objects/components/ContentOverview.tsx +8 -8
- package/src/features/store/objects/components/PropertiesEditorModal.tsx +35 -51
- package/src/features/store/objects/components/SelectDocumentModal.tsx +6 -6
- package/src/features/store/objects/components/useContentPanelHooks.ts +3 -3
- package/src/features/store/objects/selection/actions/AddToCollectionAction.tsx +13 -13
- package/src/features/store/objects/selection/actions/StartWorkflowComponent.tsx +8 -8
- package/src/features/store/objects/upload/DocumentUploadModal.tsx +25 -25
- package/src/features/store/types/ObjectSchemaEditor.tsx +30 -27
- package/src/features/store/types/SelectContentType.tsx +3 -3
- package/src/features/store/types/TableLayoutEditor.tsx +13 -17
- package/src/layout/AppLayout.tsx +16 -44
- package/src/layout/Sidebar.tsx +1 -1
- package/src/session/auth/auth-flow.md +1094 -0
- package/src/session/index.ts +1 -0
- package/src/shell/apps/AppProjectSelector.tsx +2 -2
- package/src/shell/login/InviteAcceptModal.tsx +6 -6
- package/src/shell/login/SignInModal.tsx +1 -1
- package/src/shell/login/SignupForm.tsx +3 -3
- package/src/shell/login/UserInfo.tsx +5 -5
- package/src/widgets/index.ts +1 -1
- package/src/widgets/json-view/JSONCode.tsx +28 -172
- package/src/widgets/json-view/JSONDisplay.tsx +1 -1
- package/src/widgets/{codemirror → monacoEditor}/MonacoEditor.tsx +16 -11
- package/src/widgets/monacoEditor/index.ts +3 -0
- package/src/widgets/schema-editor/editor/PropertyEditor.tsx +5 -5
- 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 -61
- 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 -20
- 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/Panel.js +0 -8
- package/lib/esm/core/components/Panel.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 -52
- 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/TagsInput.js +0 -194
- package/lib/esm/core/components/TagsInput.js.map +0 -1
- package/lib/esm/core/components/index.js +0 -36
- 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 -51
- package/lib/esm/core/components/shadcn/breadcrumb.js.map +0 -1
- package/lib/esm/core/components/shadcn/button.js +0 -76
- 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 -74
- 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 -98
- 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 -242
- 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 -23
- package/lib/esm/core/components/shadcn/index.js.map +0 -1
- package/lib/esm/core/components/shadcn/input.js +0 -41
- 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/resizeable.js +0 -15
- package/lib/esm/core/components/shadcn/resizeable.js.map +0 -1
- package/lib/esm/core/components/shadcn/selectBox.js +0 -152
- 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 -132
- 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/textarea.js +0 -7
- package/lib/esm/core/components/shadcn/textarea.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 -24
- 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 -256
- package/lib/esm/core/hooks/CompositeState.js.map +0 -1
- package/lib/esm/core/hooks/PortalContainerProvider.js +0 -42
- package/lib/esm/core/hooks/PortalContainerProvider.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 -16
- 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/useScrollableSearch.js +0 -92
- package/lib/esm/core/hooks/useScrollableSearch.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 -75
- 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 -266
- package/lib/esm/features/agent/PayloadBuilder.js.map +0 -1
- package/lib/esm/features/agent/chat/AgentChart.js +0 -184
- package/lib/esm/features/agent/chat/AgentChart.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 -490
- package/lib/esm/features/agent/chat/ModernAgentConversation.js.map +0 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +0 -133
- 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 -95
- package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js.map +0 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js +0 -54
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js.map +0 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js +0 -368
- 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 -63
- 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 -6
- package/lib/esm/features/agent/chat/index.js.map +0 -1
- package/lib/esm/features/agent/createChartTool.js +0 -354
- package/lib/esm/features/agent/createChartTool.js.map +0 -1
- package/lib/esm/features/agent/examples.js +0 -295
- package/lib/esm/features/agent/examples.js.map +0 -1
- package/lib/esm/features/agent/index.js +0 -5
- package/lib/esm/features/agent/index.js.map +0 -1
- package/lib/esm/features/agent/visualization.js +0 -165
- package/lib/esm/features/agent/visualization.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/CollectionsFacetsNav.js +0 -89
- package/lib/esm/features/facets/CollectionsFacetsNav.js.map +0 -1
- package/lib/esm/features/facets/DocumentsFacetsNav.js +0 -147
- 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/InteractionsFacetsNav.js +0 -88
- package/lib/esm/features/facets/InteractionsFacetsNav.js.map +0 -1
- package/lib/esm/features/facets/PromptsFacetsNav.js +0 -80
- package/lib/esm/features/facets/PromptsFacetsNav.js.map +0 -1
- package/lib/esm/features/facets/RunsFacetsNav.js +0 -157
- package/lib/esm/features/facets/RunsFacetsNav.js.map +0 -1
- package/lib/esm/features/facets/WorkflowExecutionsFacetsNav.js +0 -100
- package/lib/esm/features/facets/WorkflowExecutionsFacetsNav.js.map +0 -1
- package/lib/esm/features/facets/index.js +0 -15
- package/lib/esm/features/facets/index.js.map +0 -1
- package/lib/esm/features/facets/utils/SearchInterface.js +0 -2
- package/lib/esm/features/facets/utils/SearchInterface.js.map +0 -1
- package/lib/esm/features/facets/utils/StringFacet.js +0 -12
- package/lib/esm/features/facets/utils/StringFacet.js.map +0 -1
- package/lib/esm/features/facets/utils/StringListFacet.js +0 -11
- package/lib/esm/features/facets/utils/StringListFacet.js.map +0 -1
- package/lib/esm/features/facets/utils/TypeFacet.js +0 -42
- package/lib/esm/features/facets/utils/TypeFacet.js.map +0 -1
- package/lib/esm/features/facets/utils/VEnvironmentFacet.js +0 -25
- package/lib/esm/features/facets/utils/VEnvironmentFacet.js.map +0 -1
- package/lib/esm/features/facets/utils/VInteractionFacet.js +0 -45
- package/lib/esm/features/facets/utils/VInteractionFacet.js.map +0 -1
- package/lib/esm/features/facets/utils/VStringFacet.js +0 -20
- package/lib/esm/features/facets/utils/VStringFacet.js.map +0 -1
- package/lib/esm/features/facets/utils/VTypeFacet.js +0 -61
- package/lib/esm/features/facets/utils/VTypeFacet.js.map +0 -1
- package/lib/esm/features/facets/utils/VUserFacet.js +0 -31
- package/lib/esm/features/facets/utils/VUserFacet.js.map +0 -1
- package/lib/esm/features/facets/utils/utils.js +0 -7
- package/lib/esm/features/facets/utils/utils.js.map +0 -1
- package/lib/esm/features/index.js +0 -12
- package/lib/esm/features/index.js.map +0 -1
- package/lib/esm/features/layout/GenericPageNavHeader.js +0 -74
- 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/AnnotatedImageSlider.js +0 -268
- package/lib/esm/features/magic-pdf/AnnotatedImageSlider.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/ExtractedContentView.js +0 -77
- package/lib/esm/features/magic-pdf/ExtractedContentView.js.map +0 -1
- package/lib/esm/features/magic-pdf/MagicPdfProvider.js +0 -242
- package/lib/esm/features/magic-pdf/MagicPdfProvider.js.map +0 -1
- package/lib/esm/features/magic-pdf/MagicPdfView.js +0 -61
- package/lib/esm/features/magic-pdf/MagicPdfView.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/pdf-viewer/PdfPageRenderer.js +0 -261
- package/lib/esm/features/pdf-viewer/PdfPageRenderer.js.map +0 -1
- package/lib/esm/features/pdf-viewer/PdfPageSlider.js +0 -276
- package/lib/esm/features/pdf-viewer/PdfPageSlider.js.map +0 -1
- package/lib/esm/features/pdf-viewer/SimplePdfViewer.js +0 -71
- package/lib/esm/features/pdf-viewer/SimplePdfViewer.js.map +0 -1
- package/lib/esm/features/pdf-viewer/index.js +0 -4
- package/lib/esm/features/pdf-viewer/index.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 -40
- 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 -183
- package/lib/esm/features/store/collections/EditCollectionView.js.map +0 -1
- package/lib/esm/features/store/collections/SelectCollection.js +0 -119
- package/lib/esm/features/store/collections/SelectCollection.js.map +0 -1
- package/lib/esm/features/store/collections/SharedPropsEditor.js +0 -39
- package/lib/esm/features/store/collections/SharedPropsEditor.js.map +0 -1
- package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js +0 -35
- package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js.map +0 -1
- package/lib/esm/features/store/collections/index.js +0 -8
- 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 -204
- 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 -520
- package/lib/esm/features/store/objects/components/ContentOverview.js.map +0 -1
- package/lib/esm/features/store/objects/components/DocumentIcon.js +0 -33
- 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 -53
- package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js.map +0 -1
- package/lib/esm/features/store/objects/components/SelectDocument.js +0 -55
- 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/useContentPanelHooks.js +0 -153
- package/lib/esm/features/store/objects/components/useContentPanelHooks.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 -86
- package/lib/esm/features/store/objects/layout/DocumentTableColumn.js.map +0 -1
- package/lib/esm/features/store/objects/layout/documentLayout.js +0 -15
- 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 -157
- package/lib/esm/features/store/objects/layout/renderers.js.map +0 -1
- package/lib/esm/features/store/objects/search/DocumentSearchContext.js +0 -175
- 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 -150
- 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 -69
- package/lib/esm/features/store/objects/selection/SelectionActions.js.map +0 -1
- package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js +0 -81
- 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 -84
- 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 -519
- 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 -195
- 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 -121
- 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 -6
- package/lib/esm/features/utils/index.js.map +0 -1
- package/lib/esm/features/utils/mimeType.js +0 -17
- package/lib/esm/features/utils/mimeType.js.map +0 -1
- package/lib/esm/features/utils/print.js +0 -181
- package/lib/esm/features/utils/print.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/features/utils/workflowStatus.js +0 -43
- package/lib/esm/features/utils/workflowStatus.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 -192
- 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 -192
- package/lib/esm/session/UserSession.js.map +0 -1
- package/lib/esm/session/UserSessionProvider.js +0 -179
- package/lib/esm/session/UserSessionProvider.js.map +0 -1
- package/lib/esm/session/auth/composable.js +0 -255
- 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 -36
- 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 -41
- package/lib/esm/shell/login/UserInfo.js.map +0 -1
- package/lib/esm/shell/login/UserSessionMenu.js +0 -37
- 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/MonacoEditor.js +0 -128
- package/lib/esm/widgets/codemirror/MonacoEditor.js.map +0 -1
- package/lib/esm/widgets/codemirror/index.js +0 -3
- package/lib/esm/widgets/codemirror/index.js.map +0 -1
- package/lib/esm/widgets/form/Form.js +0 -100
- package/lib/esm/widgets/form/Form.js.map +0 -1
- package/lib/esm/widgets/form/FormContext.js +0 -31
- package/lib/esm/widgets/form/FormContext.js.map +0 -1
- package/lib/esm/widgets/form/ManagedObject.js +0 -287
- package/lib/esm/widgets/form/ManagedObject.js.map +0 -1
- package/lib/esm/widgets/form/fields.js +0 -12
- 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 -38
- 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 -246
- 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/ManagedSchema.js +0 -300
- 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 -7
- 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 -175
- 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 -39
- 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 -27
- 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/Panel.d.ts +0 -11
- package/lib/types/core/components/Panel.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 -19
- 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/TagsInput.d.ts +0 -16
- package/lib/types/core/components/TagsInput.d.ts.map +0 -1
- package/lib/types/core/components/index.d.ts +0 -40
- 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 -15
- 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 -38
- 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 -23
- 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 -24
- package/lib/types/core/components/shadcn/popover.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/resizeable.d.ts +0 -9
- package/lib/types/core/components/shadcn/resizeable.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/selectBox.d.ts +0 -36
- 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 -33
- 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/textarea.d.ts +0 -4
- package/lib/types/core/components/shadcn/textarea.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 -19
- 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 -137
- package/lib/types/core/hooks/CompositeState.d.ts.map +0 -1
- package/lib/types/core/hooks/PortalContainerProvider.d.ts +0 -7
- package/lib/types/core/hooks/PortalContainerProvider.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 -16
- 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/useScrollableSearch.d.ts +0 -82
- package/lib/types/core/hooks/useScrollableSearch.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 -76
- 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 -65
- package/lib/types/features/agent/PayloadBuilder.d.ts.map +0 -1
- package/lib/types/features/agent/chat/AgentChart.d.ts +0 -48
- package/lib/types/features/agent/chat/AgentChart.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 -23
- package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts.map +0 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts +0 -20
- 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 -18
- package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts.map +0 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts +0 -11
- 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 -6
- package/lib/types/features/agent/chat/index.d.ts.map +0 -1
- package/lib/types/features/agent/createChartTool.d.ts +0 -178
- package/lib/types/features/agent/createChartTool.d.ts.map +0 -1
- package/lib/types/features/agent/examples.d.ts +0 -59
- package/lib/types/features/agent/examples.d.ts.map +0 -1
- package/lib/types/features/agent/index.d.ts +0 -5
- package/lib/types/features/agent/index.d.ts.map +0 -1
- package/lib/types/features/agent/visualization.d.ts +0 -95
- package/lib/types/features/agent/visualization.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/CollectionsFacetsNav.d.ts +0 -14
- package/lib/types/features/facets/CollectionsFacetsNav.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/InteractionsFacetsNav.d.ts +0 -14
- package/lib/types/features/facets/InteractionsFacetsNav.d.ts.map +0 -1
- package/lib/types/features/facets/PromptsFacetsNav.d.ts +0 -15
- package/lib/types/features/facets/PromptsFacetsNav.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/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 -15
- package/lib/types/features/facets/index.d.ts.map +0 -1
- package/lib/types/features/facets/utils/SearchInterface.d.ts +0 -14
- package/lib/types/features/facets/utils/SearchInterface.d.ts.map +0 -1
- package/lib/types/features/facets/utils/StringFacet.d.ts +0 -11
- package/lib/types/features/facets/utils/StringFacet.d.ts.map +0 -1
- package/lib/types/features/facets/utils/StringListFacet.d.ts +0 -11
- package/lib/types/features/facets/utils/StringListFacet.d.ts.map +0 -1
- package/lib/types/features/facets/utils/TypeFacet.d.ts +0 -16
- package/lib/types/features/facets/utils/TypeFacet.d.ts.map +0 -1
- package/lib/types/features/facets/utils/VEnvironmentFacet.d.ts +0 -12
- package/lib/types/features/facets/utils/VEnvironmentFacet.d.ts.map +0 -1
- package/lib/types/features/facets/utils/VInteractionFacet.d.ts +0 -15
- package/lib/types/features/facets/utils/VInteractionFacet.d.ts.map +0 -1
- package/lib/types/features/facets/utils/VStringFacet.d.ts +0 -21
- package/lib/types/features/facets/utils/VStringFacet.d.ts.map +0 -1
- package/lib/types/features/facets/utils/VTypeFacet.d.ts +0 -12
- package/lib/types/features/facets/utils/VTypeFacet.d.ts.map +0 -1
- package/lib/types/features/facets/utils/VUserFacet.d.ts +0 -11
- package/lib/types/features/facets/utils/VUserFacet.d.ts.map +0 -1
- package/lib/types/features/facets/utils/utils.d.ts +0 -4
- package/lib/types/features/facets/utils/utils.d.ts.map +0 -1
- package/lib/types/features/index.d.ts +0 -12
- package/lib/types/features/index.d.ts.map +0 -1
- package/lib/types/features/layout/GenericPageNavHeader.d.ts +0 -14
- 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/AnnotatedImageSlider.d.ts +0 -13
- package/lib/types/features/magic-pdf/AnnotatedImageSlider.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/ExtractedContentView.d.ts +0 -8
- package/lib/types/features/magic-pdf/ExtractedContentView.d.ts.map +0 -1
- package/lib/types/features/magic-pdf/MagicPdfProvider.d.ts +0 -58
- package/lib/types/features/magic-pdf/MagicPdfProvider.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/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/pdf-viewer/PdfPageRenderer.d.ts +0 -83
- package/lib/types/features/pdf-viewer/PdfPageRenderer.d.ts.map +0 -1
- package/lib/types/features/pdf-viewer/PdfPageSlider.d.ts +0 -29
- package/lib/types/features/pdf-viewer/PdfPageSlider.d.ts.map +0 -1
- package/lib/types/features/pdf-viewer/SimplePdfViewer.d.ts +0 -19
- package/lib/types/features/pdf-viewer/SimplePdfViewer.d.ts.map +0 -1
- package/lib/types/features/pdf-viewer/index.d.ts +0 -4
- package/lib/types/features/pdf-viewer/index.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 -20
- package/lib/types/features/store/collections/SelectCollection.d.ts.map +0 -1
- package/lib/types/features/store/collections/SharedPropsEditor.d.ts +0 -7
- package/lib/types/features/store/collections/SharedPropsEditor.d.ts.map +0 -1
- package/lib/types/features/store/collections/SyncMemberHeadsToggle.d.ts +0 -7
- package/lib/types/features/store/collections/SyncMemberHeadsToggle.d.ts.map +0 -1
- package/lib/types/features/store/collections/index.d.ts +0 -8
- 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 -25
- 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 -18
- 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/useContentPanelHooks.d.ts +0 -30
- package/lib/types/features/store/objects/components/useContentPanelHooks.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 -18
- package/lib/types/features/store/objects/layout/DocumentTableColumn.d.ts.map +0 -1
- package/lib/types/features/store/objects/layout/documentLayout.d.ts +0 -20
- 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 -52
- 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 -6
- 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 -5
- 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 -39
- 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 -48
- 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 -6
- package/lib/types/features/utils/index.d.ts.map +0 -1
- package/lib/types/features/utils/mimeType.d.ts +0 -6
- package/lib/types/features/utils/mimeType.d.ts.map +0 -1
- package/lib/types/features/utils/print.d.ts +0 -10
- package/lib/types/features/utils/print.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/features/utils/workflowStatus.d.ts +0 -10
- package/lib/types/features/utils/workflowStatus.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 -59
- package/lib/types/router/HistoryNavigator.d.ts.map +0 -1
- package/lib/types/router/Nav.d.ts +0 -30
- 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 -24
- 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/MonacoEditor.d.ts +0 -38
- package/lib/types/widgets/codemirror/MonacoEditor.d.ts.map +0 -1
- package/lib/types/widgets/codemirror/index.d.ts +0 -5
- package/lib/types/widgets/codemirror/index.d.ts.map +0 -1
- package/lib/types/widgets/form/Form.d.ts +0 -22
- package/lib/types/widgets/form/Form.d.ts.map +0 -1
- package/lib/types/widgets/form/FormContext.d.ts +0 -20
- 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 -13
- 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/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 -7
- 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 -27
- 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/core/components/Button.tsx +0 -63
- package/src/core/components/Modal.tsx +0 -144
- package/src/core/components/SelectBox.tsx +0 -188
- package/src/core/components/tabs/Tabs.tsx +0 -132
- package/src/core/components/tabs/TabsContext.ts +0 -25
- package/src/core/components/tabs/index.ts +0 -2
- package/src/widgets/codemirror/CodeMirrorEditor.tsx +0 -122
- package/src/widgets/codemirror/CodemirrorStateSingleton.tsx +0 -39
- package/src/widgets/codemirror/index.ts +0 -6
- /package/src/core/components/{MessageBox.tsx → shadcn/MessageBox.tsx} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vertesia-ui-shell.js","sources":["esm/shell/login/InviteAcceptModal.js","esm/shell/login/EnterpriseSigninButton.js","esm/shell/login/GitHubSignInButton.js","esm/shell/login/GoogleSignInButton.js","esm/shell/login/MicrosoftSigninButton.js","esm/shell/login/SignupForm.js","esm/shell/login/SigninScreen.js","esm/shell/login/TerminalLogin.js","esm/shell/login/SignInModal.js","esm/shell/login/UserInfo.js","esm/shell/login/UserSessionMenu.js","esm/shell/utils.js","esm/shell/SplashScreen.js","esm/shell/VertesiaShell.js","esm/shell/apps/AppInstallationProvider.js","esm/shell/apps/AppProjectSelector.js","esm/shell/apps/StandaloneApp.js"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Button, VModal, VModalBody, VModalTitle } from \"@vertesia/ui/core\";\nimport { useEffect, useState } from \"react\";\nimport { useUserSession } from \"@vertesia/ui/session\";\nexport function InviteAcceptModal() {\n const session = useUserSession();\n const { client, account } = session;\n const [showModal, setShowModal] = useState(false);\n const [invites, setInvites] = useState([]);\n useEffect(() => {\n client.account.listInvites().then(invites => {\n if (invites.length > 0) {\n // Filter out legacy invites that do not have account data\n const notLegacyInvites = invites.filter(i => i.data.account);\n if (notLegacyInvites.length === 0) {\n console.log(\"No valid invites found, closing modal\");\n return;\n }\n // If we have valid invites, show the modal\n console.log(\"Found valid invites\", notLegacyInvites.length);\n setShowModal(true);\n setInvites(notLegacyInvites);\n }\n else {\n console.log(\"No invites found, closing modal\");\n setShowModal(false);\n }\n }).catch(err => {\n console.error(\"Error fetching invites\", err);\n });\n }, [account?.id]);\n const closeModal = () => setShowModal(false);\n const accept = async (invite) => {\n await client.account.acceptInvite(invite.id);\n await session.fetchAccounts();\n const remainingInvites = invites.filter(i => i.id !== invite.id);\n const notLegacyInvites = remainingInvites.filter(i => i.data.account);\n if (notLegacyInvites.length > 0) {\n setInvites(notLegacyInvites);\n }\n else {\n closeModal();\n }\n };\n const reject = async (invite) => {\n await client.account.rejectInvite(invite.id);\n const remainingInvites = invites.filter(i => i.id !== invite.id);\n setInvites(remainingInvites);\n if (remainingInvites.length === 0) {\n closeModal();\n }\n };\n const inviteList = invites.map(invite => {\n if (!invite.data.account) {\n console.warn(\"Invite has no account data\", invite);\n return null; // Skip rendering this invite\n }\n return (_jsxs(\"div\", { className: \"flex flex-row w-full justify-between border rounded-sm px-2 py-2 \", children: [_jsxs(\"div\", { className: \"flex flex-col\", children: [_jsx(\"div\", { className: \"w-full font-semibold\", children: invite.data.account.name ?? invite.data.account }), invite.data.project && _jsxs(\"div\", { className: \"w-full text-base\", children: [\"- \", invite.data.project.name] }), _jsxs(\"div\", { className: \"text-xs\", children: [\"Role: \", invite.data.role] }), invite.data.invited_by && _jsxs(\"div\", { className: \"text-xs\", children: [\"by \", invite.data.invited_by.name ?? invite.data.invited_by] })] }), _jsxs(\"div\", { className: \"flex flex-col gap-4\", children: [_jsx(Button, { size: 'xs', onClick: () => accept(invite), children: \"Accept\" }), \" \", _jsx(Button, { size: 'xs', variant: \"secondary\", onClick: () => reject(invite), children: \"Reject\" })] })] }, invite.id));\n });\n return (_jsx(\"div\", { children: _jsxs(VModal, { isOpen: showModal, onClose: closeModal, children: [_jsx(VModalTitle, { children: \"Review Invites\" }), _jsxs(VModalBody, { children: [_jsx(\"div\", { className: \"text-sm pb-4\", children: \"You have received the following invites to join other accounts. Please review and accept or declined them.\" }), inviteList] })] }) }));\n}\n//# sourceMappingURL=InviteAcceptModal.js.map","import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Button, Input, Spinner, useToast } from \"@vertesia/ui/core\";\nimport { Env } from \"@vertesia/ui/env\";\nimport { getFirebaseAuth, setFirebaseTenant, useUXTracking } from \"@vertesia/ui/session\";\nimport { GoogleAuthProvider, OAuthProvider, signInWithRedirect } from \"firebase/auth\";\nimport { useState } from \"react\";\nfunction getProvider(redirectTo) {\n if (!Env.firebase) {\n throw new Error(\"Firebase configuration is not available in the environment\");\n }\n const providerType = Env.firebase.providerType;\n switch (providerType) {\n case \"oidc\":\n return new OAuthProvider(\"oidc.main\");\n case \"google\": {\n let redirectPath = redirectTo || window.location.pathname || '/';\n if (redirectPath[0] !== '/') {\n redirectPath = '/' + redirectPath;\n }\n const provider = new GoogleAuthProvider();\n provider.addScope('profile');\n provider.addScope('email');\n provider.setCustomParameters({\n prompt: 'select_account',\n redirect_uri: window.location.origin + redirectPath\n });\n return provider;\n }\n case \"microsoft\":\n return new OAuthProvider(\"microsoft.com\");\n case \"github\":\n return new OAuthProvider(\"github.com\");\n default:\n return new OAuthProvider(\"oidc.main\");\n }\n}\nexport default function EnterpriseSigninButton({ redirectTo }) {\n const [isLoading, setIsLoading] = useState(false);\n const { trackEvent } = useUXTracking();\n const [email, setEmail] = useState(\"\");\n const toast = useToast();\n const signIn = async () => {\n if (!email)\n return;\n const emailRegex = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n if (!emailRegex.test(email)) {\n toast({\n title: \"Invalid email address\",\n status: \"error\",\n duration: 5000,\n });\n return;\n }\n // Env.firebase.tenantEmail = email;\n setIsLoading(true);\n setFirebaseTenant(email).then((data) => {\n if (!data) {\n toast({\n title: \"Tenant not found\",\n status: \"error\",\n duration: 5000,\n });\n setIsLoading(false);\n return;\n }\n localStorage.setItem(\"tenantName\", data.name ?? \"\");\n const provider = getProvider(redirectTo);\n trackEvent(\"enterprise_signin\", {\n firebaseTenantName: data.name,\n });\n Env.logger.info('Enterprise single sign-in', {\n vertesia: {\n email: email,\n firebaseTenantName: data.name,\n firebaseTenantId: data.firebaseTenantId,\n },\n });\n signInWithRedirect(getFirebaseAuth(), provider);\n setIsLoading(false);\n });\n };\n return (_jsxs(_Fragment, { children: [_jsx(Input, { value: email, onChange: setEmail, placeholder: \"Enter your enterprise email\", type: \"email\" }), isLoading ? (_jsx(\"div\", { className: \"w-full flex justify-center\", children: _jsx(Spinner, {}) })) : (_jsx(Button, { variant: \"outline\", onClick: signIn, className: \"w-full mt-2 py-4 flex rounded-lg hover:shadow-sm transition duration-150 text-center\", children: _jsx(\"span\", { className: \"text-sm font-semibold\", children: \"Continue with Enterprise SSO\" }) }))] }));\n}\n//# sourceMappingURL=EnterpriseSigninButton.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { GithubAuthProvider, signInWithRedirect } from \"firebase/auth\";\nimport { getFirebaseAuth } from \"@vertesia/ui/session\";\nimport { Button } from \"@vertesia/ui/core\";\nexport default function GitHubSignInButton({}) {\n const signIn = () => {\n localStorage.removeItem(\"tenantName\");\n //with github can only have one allowed redirect\n const baseUrl = \"https://dengenlabs.firebaseapp.com/__/auth/handler\";\n let redirectPath = baseUrl + window.location.pathname;\n if (redirectPath[0] !== \"/\") {\n redirectPath = \"/\" + redirectPath;\n }\n const provider = new GithubAuthProvider();\n provider.addScope(\"profile\");\n provider.addScope(\"email\");\n /*provider.setCustomParameters({\n redirect_uri: redirectPath,\n });*/\n signInWithRedirect(getFirebaseAuth(), provider);\n };\n return (_jsxs(Button, { variant: \"outline\", onClick: signIn, className: \"w-full py-5 flex rounded-lg hover:shadow-sm transition duration-150 text-center mb-2\", children: [_jsx(\"img\", { className: \"size-6 bg-white rounded-full\", src: \"https://www.svgrepo.com/show/503359/github.svg\", loading: \"lazy\", alt: \"github logo\" }), _jsx(\"span\", { className: \"text-sm font-semibold\", children: \"Continue with GitHub\" })] }));\n}\n//# sourceMappingURL=GitHubSignInButton.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { GoogleAuthProvider, signInWithRedirect } from \"firebase/auth\";\nimport { getFirebaseAuth } from \"@vertesia/ui/session\";\nimport { Button } from \"@vertesia/ui/core\";\nexport default function GoogleSignInButton({ redirectTo }) {\n const signIn = () => {\n localStorage.removeItem(\"tenantName\");\n let redirectPath = redirectTo || window.location.pathname || '/';\n if (redirectPath[0] !== '/') {\n redirectPath = '/' + redirectPath;\n }\n const provider = new GoogleAuthProvider();\n provider.addScope('profile');\n provider.addScope('email');\n // always ask to select the google account\n //console.log('redirectPath', window.location.origin + redirectPath)\n provider.setCustomParameters({\n prompt: 'select_account',\n redirect_uri: window.location.origin + redirectPath\n });\n signInWithRedirect(getFirebaseAuth(), provider);\n };\n return (_jsxs(Button, { variant: \"outline\", onClick: signIn, className: \"w-full py-5 flex rounded-lg hover:shadow-sm transition duration-150 text-center mb-2\", children: [_jsx(\"img\", { className: \"size-6\", src: \"https://www.svgrepo.com/show/475656/google-color.svg\", loading: \"lazy\", alt: \"google logo\" }), _jsx(\"span\", { className: \"text-sm font-semibold\", children: \"Continue with Google\" })] }));\n}\n//# sourceMappingURL=GoogleSignInButton.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { OAuthProvider, signInWithRedirect } from \"firebase/auth\";\nimport { getFirebaseAuth } from \"@vertesia/ui/session\";\nimport { Button } from \"@vertesia/ui/core\";\nexport default function MicrosoftSignInButton({ redirectTo }) {\n const signIn = () => {\n localStorage.removeItem(\"tenantName\");\n let redirectPath = redirectTo || window.location.pathname || '/';\n if (redirectPath[0] !== '/') {\n redirectPath = '/' + redirectPath;\n }\n const provider = new OAuthProvider('microsoft.com');\n provider.addScope('profile');\n provider.addScope('email');\n signInWithRedirect(getFirebaseAuth(), provider);\n };\n return (_jsxs(Button, { variant: \"outline\", onClick: signIn, className: \"w-full py-5 flex rounded-lg hover:shadow-sm transition duration-150 text-center\", children: [_jsx(\"img\", { className: \"size-6\", src: \"https://learn.microsoft.com/en-us/entra/identity-platform/media/howto-add-branding-in-apps/ms-symbollockup_mssymbol_19.svg\", loading: \"lazy\", alt: \"microsoft logo\" }), _jsx(\"span\", { className: \"text-sm font-semibold\", children: \"Continue with Microsoft\" })] }));\n}\n//# sourceMappingURL=MicrosoftSigninButton.js.map","import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { Button, Input, VSelectBox, SelectStack } from \"@vertesia/ui/core\";\nimport { useEffect, useState } from \"react\";\nimport { getFirebaseAuth } from \"@vertesia/ui/session\";\nconst companySizeOptions = [\n { id: 1, label: \"1-10 employees\" },\n { id: 11, label: \"11-100 employees\" },\n { id: 101, label: \"101-1000 employees\" },\n { id: 1001, label: \"1001-5000 employees\" },\n { id: 5001, label: \"5000+ employees\" },\n];\nconst accountTypeOptions = [\n {\n id: \"personal\",\n label: \"Personal\",\n description: \"For personal use, or for a small team.\",\n },\n {\n id: \"company\",\n label: \"Company\",\n description: \"For a company or organization.\",\n },\n];\nconst projectMaturityOptions = [\n { id: \"testing\", label: \"Just Testing or Evaluating LLMs\" },\n { id: \"exploring\", label: \"Actively Exploring LLMs on a Project\" },\n { id: \"using\", label: \"Already Using LLMs in Production\" },\n { id: \"migrating\", label: \"Migrating to different LLMs\" },\n { id: \"other\", label: \"Other\" },\n];\nexport default function SignupForm({ onSignup, goBack }) {\n const [accountType, setAccountType] = useState(undefined);\n const [companySize, setCompanySize] = useState(undefined);\n const [companyName, setCompanyName] = useState(undefined);\n const [companyWebsite, setCompanyWebsite] = useState(undefined);\n const [projectMaturity, setProjectMaturity] = useState(undefined);\n const [fbUser, setFbUser] = useState(undefined);\n const [error, setError] = useState(undefined);\n const isCompany = accountType === \"company\";\n useEffect(() => {\n const user = getFirebaseAuth().currentUser;\n if (!user) {\n console.error('No user found');\n return;\n }\n setFbUser(user);\n }, [fbUser]);\n const isValid = () => {\n if (!accountType) {\n setError(\"Please select an account type\");\n return false;\n }\n if (isCompany && !companyName) {\n setError(\"Please enter an organization name\");\n return false;\n }\n if (isCompany && !companySize) {\n setError(\"Please select a company size\");\n return false;\n }\n return true;\n };\n const onSubmit = async () => {\n if (!isValid())\n return;\n if (!accountType)\n return;\n const signupData = {\n accountType: accountType,\n companyName: companyName,\n companySize: companySize?.id,\n companyWebsite: companyWebsite,\n maturity: projectMaturity,\n };\n window.localStorage.setItem(\"composableSignupData\", JSON.stringify(signupData));\n const fbToken = await getFirebaseAuth().currentUser?.getIdToken();\n console.log('Got firebase token', getFirebaseAuth(), fbToken);\n if (!fbToken) {\n console.error('No firebase token found');\n return;\n }\n onSignup(signupData, fbToken);\n };\n return (_jsxs(\"div\", { className: \"flex flex-col space-y-2\", children: [_jsxs(\"div\", { className: \"prose\", children: [_jsxs(\"p\", { className: \"prose text-sm text-muted pt-4\", children: [\"Welcome to Vertesia, \", fbUser?.displayName, \" (\", fbUser?.email, \"). Please tell us a little bit about yourself and you'll be on your way. No credit card is required.\"] }), error &&\n _jsx(\"div\", { className: \"text-destructive\", children: error })] }), _jsx(FormItem, { label: \"Account Type\", children: _jsx(SelectStack, { options: accountTypeOptions, selected: accountTypeOptions.find((option) => option.id === accountType), onSelect: (option) => setAccountType(option.id) }) }), isCompany &&\n _jsxs(_Fragment, { children: [_jsx(FormItem, { label: \"Company Size\", children: _jsx(VSelectBox, { className: \"w-full border border-accent bg-muted\", value: companySize, options: companySizeOptions, onChange: setCompanySize, optionLabel: (option) => option?.label, placeholder: 'Select Company Size' }) }), _jsx(FormItem, { label: \"Company Name\", children: _jsx(Input, { value: companyName, onChange: setCompanyName, type: \"text\", required: true }) }), _jsx(FormItem, { label: \"Company Website\", children: _jsx(Input, { value: companyWebsite, onChange: setCompanyWebsite, type: \"text\" }) })] }), _jsx(FormItem, { label: \"Project Maturity\", children: _jsx(VSelectBox, { className: \"w-full border border-accent bg-muted\", options: projectMaturityOptions, value: projectMaturityOptions.find((option) => option.id === projectMaturity), optionLabel: (option) => option?.label, placeholder: 'Select Project Maturity', onChange: (option) => setProjectMaturity(option?.id) }) }), _jsxs(\"div\", { className: \"pt-8 flex flex-col\", children: [_jsx(Button, { variant: \"primary\", onClick: onSubmit, size: \"xl\", children: _jsx(\"span\", { className: \"text-lg\", children: \"Sign Up\" }) }), _jsx(Button, { variant: \"ghost\", size: \"xl\", className: \"mt-4\", onClick: goBack, children: _jsx(\"span\", { className: \"\", children: \"Wrong account, go back\" }) })] })] }));\n}\nfunction FormItem({ label, children }) {\n return (_jsxs(\"div\", { className: \"flex flex-col space-y-2 pt-4\", children: [_jsx(\"div\", { className: \"text-sm text-muted\", children: label }), children] }));\n}\n//# sourceMappingURL=SignupForm.js.map","import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { Button, useSafeLayoutEffect } from \"@vertesia/ui/core\";\nimport { Env } from \"@vertesia/ui/env\";\nimport { UserNotFoundError, useUserSession, useUXTracking } from \"@vertesia/ui/session\";\nimport clsx from \"clsx\";\nimport { useEffect, useState } from \"react\";\nimport EnterpriseSigninButton from \"./EnterpriseSigninButton\";\nimport GitHubSignInButton from \"./GitHubSignInButton\";\nimport GoogleSignInButton from \"./GoogleSignInButton\";\nimport MicrosoftSignInButton from \"./MicrosoftSigninButton\";\nimport SignupForm from \"./SignupForm\";\nexport function SigninScreen({ allowedPrefix, isNested = false, lightLogo, darkLogo }) {\n const [allow, setAllow] = useState(false);\n useSafeLayoutEffect(() => {\n allowedPrefix && setAllow(window.location.href.startsWith(allowedPrefix));\n }, []);\n return allow ? null : _jsx(SigninScreenImpl, { isNested: isNested, lightLogo: lightLogo, darkLogo: darkLogo });\n}\nfunction SigninScreenImpl({ isNested = false, lightLogo, darkLogo }) {\n const { isLoading, user, authError } = useUserSession();\n return !isLoading && !user ? (_jsx(\"div\", { style: { zIndex: 999998 }, className: (isNested ? \"absolute\" : \"fixed\") + \"overflow-y-auto \", children: _jsxs(\"div\", { className: clsx(\"flex flex-col items-center justify-center py-14 px-4\"), children: [_jsx(StandardSigninPanel, { authError: authError, lightLogo: lightLogo, darkLogo: darkLogo }), _jsxs(\"div\", { className: \"flex gap-x-6 mt-10 justify-center text-muted\", children: [_jsx(\"a\", { href: \"https://vertesiahq.com/privacy\", className: \"text-sm\", children: \"Privacy Policy\" }), _jsx(\"a\", { href: \"https://vertesiahq.com/terms\", className: \"text-sm\", children: \"Terms of Service\" })] })] }) })) : null;\n}\nfunction StandardSigninPanel({ authError, darkLogo, lightLogo }) {\n const [signupData, setSignupData] = useState(undefined);\n const [collectSignupData, setCollectSignupData] = useState(false);\n const { signOut } = useUserSession();\n const { trackEvent } = useUXTracking();\n history.replaceState({}, '', '/');\n const goBack = () => {\n console.log(\"Going back, signing out\");\n setSignupData(undefined);\n setCollectSignupData(false);\n signOut();\n };\n const goToSignup = () => {\n setSignupData(undefined);\n setCollectSignupData(true);\n };\n useEffect(() => {\n if (authError instanceof UserNotFoundError) {\n console.log(\"User not found, redirecting to signup\");\n goToSignup();\n }\n }, [authError]);\n const onSignup = (data, fbToken) => {\n console.log(\"Got Signup data\", data);\n setSignupData(data);\n const payload = {\n signupData: data,\n firebaseToken: fbToken,\n };\n fetch(Env.endpoints.studio + \"/auth/signup\", {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify(payload),\n }).then((res) => {\n console.log(\"Signup successful\", payload, res);\n trackEvent(\"sign_up\");\n window.location.href = \"/\";\n });\n };\n return (_jsxs(_Fragment, { children: [lightLogo && _jsx(\"img\", { src: lightLogo, alt: 'logo', className: 'h-15 block dark:hidden' }), darkLogo && _jsx(\"img\", { src: darkLogo, alt: 'logo', className: 'h-15 hidden dark:block' }), signupData && (_jsxs(\"div\", { className: \"my-6\", children: [\"Need to make a change?\", \" \", _jsx(Button, { onClick: goToSignup, children: \" Go back\" })] })), _jsx(\"div\", { className: \"flex flex-col space-y-2\", children: collectSignupData && !localStorage.getItem('tenantName') ? (_jsx(SignupForm, { onSignup: onSignup, goBack: goBack })) : (_jsxs(\"div\", { className: \"flex flex-col\", children: [_jsx(\"div\", { className: \"my-4\", children: _jsx(\"h2\", { className: \"text-2xl font-bold text-center\", children: \"Log in or Sign up\" }) }), _jsxs(\"div\", { className: \"max-w-2xl text-center my-2 px-2\", children: [\"First time here? No problem, it's free to try!\", _jsx(\"br\", {}), \"We'll just ask you a couple of questions next and you'll be on your way.\"] }), _jsxs(\"div\", { className: \"flex items-center flex-col\", children: [_jsxs(\"div\", { className: \"py-4 w-70\", children: [_jsx(GoogleSignInButton, {}), _jsx(GitHubSignInButton, {}), _jsx(MicrosoftSignInButton, {})] }), _jsxs(\"div\", { className: \"flex items-center flex-row w-70 text-muted\", children: [_jsx(\"hr\", { className: \"w-full\" }), _jsx(\"div\", { className: \"px-2 text-xs\", children: \"OR\" }), _jsx(\"hr\", { className: \"w-full\" })] }), _jsx(\"div\", { className: \"py-4 w-70\", children: _jsx(EnterpriseSigninButton, {}) })] }), authError && !(authError instanceof UserNotFoundError) && (_jsx(\"div\", { className: \"text-center\", children: _jsxs(\"div\", { className: \"\", children: [\"Sorry, we have not been able to sign you in.\", _jsx(\"br\", {}), \"Please try again or contact\", _jsx(\"a\", { className: 'text-info mx-1', href: \"mailto:support@vertesiahq.com\", children: \"support@vertesiahq.com\" }), \"if it persists.\", _jsxs(\"pre\", { className: \"mt-2\", children: [\"Error: \", authError.message] })] }) }))] })) })] }));\n}\n//# sourceMappingURL=SigninScreen.js.map","import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { useState } from 'react';\nimport { Button, Center, ErrorBox, Input, SelectBox, Spinner, useFetch, useToast } from '@vertesia/ui/core';\nimport { Env } from \"@vertesia/ui/env\";\nimport { useLocation } from \"@vertesia/ui/router\";\nimport { fetchComposableTokenFromFirebaseToken, useUserSession } from '@vertesia/ui/session';\nfunction getClientInfo(location) {\n const params = new URLSearchParams(location.search);\n let redirect = params.get('redirect_uri');\n const code = params.get('code');\n if (!redirect || !code) {\n return null;\n }\n redirect = decodeURI(redirect);\n if (!redirect.startsWith('http://127.0.0.1:') && !redirect.startsWith('http://localhost:')) {\n return null;\n }\n const profile = params.get('profile') ?? \"default\";\n const project = params.get('project') ?? undefined;\n const account = params.get('account') ?? undefined;\n return { redirect, code, profile, project, account };\n}\nexport function TerminalLogin() {\n const [payload, setPayload] = useState();\n const [error, setError] = useState();\n const location = useLocation();\n const clientInfo = getClientInfo(location);\n const toast = useToast();\n const onAccept = async (data) => {\n if (!clientInfo)\n return;\n if (!data.profile) {\n toast({\n title: 'Profile is required',\n description: 'Please enter a profile name to save the client authorization',\n status: 'error',\n duration: 2000\n });\n return;\n }\n if (!data.account) {\n toast({\n title: 'Account is required',\n description: 'Please select an account to authorize the client to access the ComposablePrompts servers',\n status: 'error',\n duration: 2000\n });\n return;\n }\n if (!data.project) {\n toast({\n title: 'Project is required',\n description: 'Please select a project to authorize the client to access the ComposablePrompts servers',\n status: 'error',\n duration: 2000\n });\n return;\n }\n // expire in 1 day\n let payload;\n try {\n const token = await fetchComposableTokenFromFirebaseToken(data.account, data.project, 24 * 3600);\n if (token) {\n payload = {\n ...data,\n studio_server_url: Env.endpoints.studio,\n zeno_server_url: Env.endpoints.zeno,\n token,\n };\n await fetch(clientInfo.redirect, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify(payload)\n });\n setPayload(payload);\n }\n else {\n toast({\n title: 'Failed to get composable token',\n status: 'error',\n duration: 5000\n });\n }\n }\n catch (err) {\n if (payload) {\n setError(err);\n setPayload(payload);\n }\n else {\n toast({\n title: 'Error authorizing client',\n description: err.message,\n status: 'error',\n duration: 5000\n });\n }\n }\n };\n const getPageContent = () => {\n if (!clientInfo) {\n return _jsx(ErrorBox, { title: 'Invalid request', children: \"This page should be called by a terminal client to authenticate against the ComposablePrompts servers\" });\n }\n return payload\n ? _jsx(AuthDoneScreen, { payload: payload, error: error })\n : _jsx(AuthAcceptScreen, { clientInfo: clientInfo, onAccept: onAccept });\n };\n const page = getPageContent();\n return (_jsx(\"div\", { className: \"w-full flex flex-col items-center gap-4 mt-24\", children: page }));\n}\nfunction AuthAcceptScreen({ onAccept, clientInfo }) {\n const { client, user } = useUserSession();\n const { data: allProjects, error } = useFetch(() => user ? client.projects.list() : Promise.resolve([]), [user]);\n if (error) {\n return _jsx(ErrorBox, { title: 'Error loading projects', children: error.message });\n }\n const getEnvironmentName = () => {\n if (Env.isLocalDev) {\n return \"Local Dev\";\n }\n else if (Env.isDev) {\n return \"Staging\";\n }\n return \"Production\";\n };\n const envName = getEnvironmentName();\n return user && allProjects ? (_jsxs(_Fragment, { children: [_jsxs(\"div\", { className: 'w-1/3', children: [_jsxs(\"div\", { className: \"mb-4 text-xl font-semibold text-gray-800\", children: [\"Authorizing client on \", envName, \" environment.\"] }), _jsxs(\"div\", { className: 'mb-2 text-md text-gray-800', children: [_jsx(\"div\", { children: \"A client app wants authorization to access the composable prompt servers in your name.\" }), _jsxs(\"div\", { children: [\"The client app code is \", _jsx(\"b\", { children: clientInfo.code }), \". You can check if the code is correct in the terminal.\"] })] }), _jsxs(\"div\", { className: 'mb-2 text-sm text-gray-600', children: [_jsx(\"div\", { children: \"You must choose the target account and project for the client to access.\" }), _jsx(\"div\", { children: \"Also, enter a profile name that will be used to save the authorization in your client configuration.\" })] })] }), _jsx(ProfileForm, { onAccept: onAccept, allProjects: allProjects, data: clientInfo })] })) : _jsx(Spinner, { size: 'lg' });\n}\nfunction AuthDoneScreen({ payload, error }) {\n const toast = useToast();\n const onCopy = () => {\n if (payload) {\n navigator.clipboard.writeText(JSON.stringify(payload));\n toast({\n title: 'Authentication Payload copied',\n description: error ? 'You can paste the authentication payload in the terminal to authenticate the client.' : 'You can close the page now.',\n status: 'success',\n duration: 5000\n });\n }\n };\n return (_jsxs(\"div\", { children: [error ?\n _jsxs(\"div\", { children: [_jsxs(ErrorBox, { title: 'Failed to send the authorization token to the cli tool', children: [\"This can happen due to security checks on Safari. The error is \\\"\", error.message, \"\\\"\"] }), _jsx(\"div\", { children: \"Don't worry, you can still authenticate the cli tool by pasting the authentication token in the terminal. You can close this page.\" })] })\n : _jsx(\"div\", { children: \"The client is authenticated. You can close this page.\" }), _jsx(Center, { className: \"mt-4\", children: _jsx(Button, { variant: 'secondary', onClick: onCopy, children: \"Copy the Authentication Payload\" }) })] }));\n}\nfunction ProfileForm({ allProjects, data, onAccept }) {\n const { accounts, account, project } = useUserSession();\n const [currentData, setCurrentData] = useState(() => ({\n profile: data.profile,\n account: data.account ?? account?.id,\n project: data.project ?? project?.id,\n }));\n const onChangeProfile = (value) => {\n setCurrentData({ ...currentData, profile: value });\n };\n const onChangeAccount = (value) => {\n setCurrentData({ ...currentData, account: value.id, project: undefined });\n };\n const onChangeProject = (value) => {\n setCurrentData({ ...currentData, project: value.id });\n };\n const projects = allProjects.filter(p => p.account === currentData.account);\n return (_jsxs(\"div\", { className: 'w-1/3', children: [_jsxs(\"div\", { className: \"mb-4 flex flex-col gap-2\", children: [_jsx(\"span\", { className: \"font-semibold text-gray-600\", children: \"Profile Name\" }), _jsx(Input, { type: 'text', value: currentData.profile, onChange: onChangeProfile })] }), _jsxs(\"div\", { className: \"mb-4 flex flex-col gap-2\", children: [_jsx(\"span\", { className: \"font-semibold text-gray-600\", children: \"Account\" }), _jsx(SelectAccount, { value: currentData.account, onChange: onChangeAccount, accounts: accounts || [] })] }), _jsxs(\"div\", { className: \"mb-4 flex flex-col gap-2\", children: [_jsx(\"span\", { className: \"font-semibold text-gray-600\", children: \"Project\" }), _jsx(SelectProject, { value: currentData.project, onChange: onChangeProject, projects: projects })] }), _jsx(\"div\", { className: \"pt-2\", children: _jsx(Button, { size: 'xl', onClick: () => onAccept(currentData), children: \"Authorize Client\" }) })] }));\n}\nfunction SelectAccount({ value, accounts, onChange }) {\n const _onChange = (value) => {\n onChange(value);\n };\n return _jsx(SelectBox, { options: accounts, value: accounts?.find(a => a.id === value), onChange: _onChange, by: \"id\", optionLabel: (option) => option.name, placeholder: 'Select Account' });\n}\nfunction SelectProject({ value, projects, onChange }) {\n const _onChange = (value) => {\n onChange(value);\n };\n return (_jsx(SelectBox, { by: \"id\", value: projects.find(p => p.id === value), options: projects, optionLabel: (option) => option.name, placeholder: 'Select Project', onChange: _onChange }));\n}\n//# sourceMappingURL=TerminalLogin.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Button, Modal, ModalBody, ModalFooter, ModalTitle } from \"@vertesia/ui/core\";\nimport GitHubSignInButton from \"./GitHubSignInButton\";\nimport GoogleSignInButton from \"./GoogleSignInButton\";\nimport MicrosoftSignInButton from \"./MicrosoftSigninButton\";\nexport default function SignInModal({ isOpen, onClose }) {\n return (_jsxs(Modal, { isOpen: isOpen, onClose: onClose, children: [_jsx(ModalTitle, { children: \"Sign In\" }), _jsxs(ModalBody, { className: \"flex justify-center\", children: [_jsx(GoogleSignInButton, {}), _jsx(GitHubSignInButton, {}), _jsx(MicrosoftSignInButton, {})] }), _jsx(ModalFooter, { justify: \"end\", children: _jsx(Button, { variant: \"ghost\", onClick: onClose, children: \"Cancel\" }) })] }));\n}\n//# sourceMappingURL=SignInModal.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { getTenantIdFromProject } from \"@vertesia/common\";\nimport { VTabs, VTabsBar, VTabsPanel, VTooltip } from \"@vertesia/ui/core\";\nimport { Env } from \"@vertesia/ui/env\";\nimport { useUserSession } from \"@vertesia/ui/session\";\n// Package version is now passed as prop from the consuming application\nimport { Check, CopyIcon } from \"lucide-react\";\nimport { useState } from \"react\";\nexport function InfoItems({ title, value }) {\n function copyToClipboard(value) {\n navigator.clipboard.writeText(value);\n setIsCopied(true);\n setTimeout(() => setIsCopied(false), 2000);\n }\n const [isCopied, setIsCopied] = useState(false);\n return (_jsxs(\"div\", { className: \"w-full flex justify-between items-center mb-1\", children: [_jsxs(\"div\", { className: \"flex flex-col w-[calc(100%-3rem)]\", children: [_jsx(\"div\", { className: 'text-sm px-2 dark:text-slate-200', children: title }), _jsx(VTooltip, { description: value, size: \"xs\", placement: \"left\", children: _jsxs(\"div\", { className: 'text-xs truncate text-muted w-full text-left px-2', children: [value, \" \"] }) })] }), isCopied ?\n _jsx(Check, { className: \"size-4 cursor-pointer text-success\" })\n :\n _jsx(CopyIcon, { className: \"size-4 cursor-pointer text-gray-400 dark:text-slate-400\", onClick: () => copyToClipboard(value) })] }));\n}\nexport default function InfoList() {\n const session = useUserSession();\n const { account, project, client, authToken } = session;\n const server = new URL(client.baseUrl).hostname;\n const store = new URL(client.store.baseUrl).hostname;\n const tenantId = project ? getTenantIdFromProject(project) : '';\n const tabs = [\n {\n name: 'user',\n label: 'User',\n content: _jsxs(\"div\", { className: \"space-y-1 p-2\", children: [_jsx(InfoItems, { title: \"Organization ID\", value: account?.id ?? 'Unknown' }), _jsx(InfoItems, { title: \"Project ID\", value: project?.id ?? 'Unknown' }), _jsx(InfoItems, { title: \"User ID\", value: authToken?.sub ?? 'Unknown' }), _jsx(InfoItems, { title: \"Organization Roles\", value: authToken?.account_roles?.join(',') ?? 'Unknown' }), _jsx(InfoItems, { title: \"Project Roles\", value: authToken?.project_roles?.join(',') ?? 'Unknown' })] })\n },\n {\n name: 'environment',\n label: 'Environment',\n content: _jsxs(\"div\", { className: \"space-y-1 p-2\", children: [_jsx(InfoItems, { title: \"Tenant ID\", value: tenantId }), _jsx(InfoItems, { title: \"Environment\", value: Env.type }), _jsx(InfoItems, { title: \"Server\", value: server }), _jsx(InfoItems, { title: \"Store\", value: store }), _jsx(InfoItems, { title: \"App Version\", value: Env.version }), _jsx(InfoItems, { title: \"SDK Version\", value: Env.sdkVersion || 'unknown' })] })\n }\n ];\n return (_jsx(\"div\", { className: \"w-full\", children: _jsxs(VTabs, { defaultValue: \"user\", tabs: tabs, fullWidth: true, updateHash: false, children: [_jsx(VTabsBar, {}), _jsx(VTabsPanel, {})] }) }));\n}\n//# sourceMappingURL=UserInfo.js.map","import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Permission } from \"@vertesia/common\";\nimport { Avatar, Button, MenuList, ModeToggle, Spinner } from \"@vertesia/ui/core\";\nimport { useUserSession } from \"@vertesia/ui/session\";\nimport { Popover } from \"@vertesia/ui/widgets\";\nimport clsx from \"clsx\";\nimport { useState } from \"react\";\nimport SignInModal from \"./SignInModal\";\nimport InfoList from \"./UserInfo\";\nimport { useNavigate } from \"@vertesia/ui/router\";\nimport { useUserPermissions } from \"@vertesia/ui/features\";\nexport function UserSessionMenu({}) {\n const { user, isLoading } = useUserSession();\n const [showModal, setShowModal] = useState(false);\n if (isLoading) {\n return _jsx(Spinner, {});\n }\n else if (!user) {\n return _jsxs(_Fragment, { children: [_jsx(Button, { onClick: () => setShowModal(true), children: \"Sign In\" }), _jsx(SignInModal, { isOpen: showModal, onClose: () => setShowModal(false) })] });\n }\n else {\n return (_jsx(\"div\", { className: \"px-3\", children: _jsx(UserSessionPopup, { asMenuTrigger: true }) }));\n }\n}\nfunction UserSessionPopup({ className, asMenuTrigger = false }) {\n const session = useUserSession();\n const navigate = useNavigate();\n const perms = useUserPermissions();\n const { user } = session;\n if (!session || !user)\n return null;\n const isProjectManager = perms.hasPermission(Permission.project_admin);\n return (_jsxs(Popover, { strategy: 'fixed', placement: 'bottom-start', zIndex: 100, children: [_jsx(Popover.Trigger, { click: true, children: _jsx(\"div\", { className: clsx(className, \"flex items-center justify-start\", asMenuTrigger && \"cursor-pointer\"), children: _jsx(Avatar, { size: 'sm', color: 'bg-amber-500', shape: 'circle', \n /*src={picture} */\n name: user?.name }) }) }), _jsx(Popover.Content, { className: \"w-[280px] mx-2 my-1\", children: _jsx(\"div\", { className: \"bg-white dark:bg-slate-900 shadow-lg rounded-md ring-1 ring-gray-200 dark:ring-slate-700\", children: _jsxs(\"div\", { className: 'divide-y divide-gray-200 dark:divide-slate-700', children: [_jsxs(\"div\", { className: 'py-2 pl-2', children: [_jsx(\"p\", { className: \"px-4 dark:text-white mb-1\", children: user?.name ?? 'Unknown' }), _jsx(\"p\", { className: \"px-4 text-xs text-gray-500\", children: user?.email ?? '' })] }), _jsx(\"div\", { className: \"w-full p-1\", children: _jsx(InfoList, {}) }), _jsx(\"div\", { className: 'py-2 pl-2', children: _jsx(ModeToggle, {}) }), _jsx(\"div\", { className: 'py-2', children: _jsxs(MenuList, { children: [isProjectManager && (_jsx(MenuList.Item, { className: 'px-2', onClick: () => navigate('/settings', { replace: true }), children: \"Settings\" })), _jsx(MenuList.Item, { className: 'px-2', onClick: () => session.logout(), children: \"Sign out\" })] }) })] }) }) })] }));\n}\n//# sourceMappingURL=UserSessionMenu.js.map","export function isVertesiaEmail(email) {\n return email ? (email.endsWith('@vertesiahq.com') ||\n email.endsWith('@becomposable.com') ||\n email.endsWith('@composableprompts.com')) : false;\n}\n//# sourceMappingURL=utils.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Transition } from \"@headlessui/react\";\nimport { Fragment, useEffect, useState } from \"react\";\nimport { useUserSession } from \"@vertesia/ui/session\";\nexport function SplashScreen({ icon: Icon }) {\n const { isLoading } = useUserSession();\n const [show, setShow] = useState(true);\n useEffect(() => {\n if (!isLoading) {\n setShow(false);\n }\n // setTimeout(() => {\n // setShow(false)\n // }, 2000)\n }, [isLoading]);\n // 300 500 700 1000\n return (_jsx(Transition, { appear: true, show: show, as: Fragment, unmount: true, leave: \"transition ease-in duration-500\", leaveFrom: \"opacity-100\", leaveTo: \"opacity-0\", children: _jsx(\"div\", { style: { zIndex: 999999 }, className: 'fixed inset-x-0 inset-y-0', children: _jsx(\"div\", { className: \"flex w-full h-full items-center justify-center\", children: _jsx(\"div\", { className: \"animate-[spin_4s_linear_infinite]\", children: _jsx(\"div\", { className: 'animate-pulse rounded-full bg-transparent', children: Icon || _jsx(LoadingIcon, {}) }) }) }) }) }));\n}\nfunction LoadingIcon() {\n const stopColor1 = \"currentColor\";\n const stopColor2 = \"currentColor\";\n // const stopColor1 = \"#4F46E5\";\n // const stopColor2 = \"#4F46E5\";\n return (_jsxs(\"svg\", { className: \"w-8 h-8 text-indigo-600\", viewBox: \"0 0 50 50\", xmlns: \"http://www.w3.org/2000/svg\", children: [_jsx(\"defs\", { children: _jsxs(\"linearGradient\", { id: \"spinner-gradient\", x1: \"1\", y1: \"0\", x2: \"0\", y2: \"1\", children: [_jsx(\"stop\", { offset: \"0%\", stopColor: stopColor1, stopOpacity: \"1\" }), _jsx(\"stop\", { offset: \"100%\", stopColor: stopColor2, stopOpacity: \"0\" })] }) }), _jsx(\"circle\", { cx: \"25\", cy: \"25\", r: \"20\", stroke: \"url(#spinner-gradient)\", strokeWidth: \"5\", fill: \"none\", strokeLinecap: \"round\" })] }));\n}\n//# sourceMappingURL=SplashScreen.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { ThemeProvider, ToastProvider } from \"@vertesia/ui/core\";\nimport { UserPermissionProvider } from \"@vertesia/ui/features\";\nimport { UserSessionProvider } from \"@vertesia/ui/session\";\nimport { SplashScreen } from \"./SplashScreen\";\nimport { SigninScreen } from \"./login/SigninScreen\";\nexport function VertesiaShell({ children, lightLogo, darkLogo, loadingIcon }) {\n return (_jsx(ToastProvider, { children: _jsx(UserSessionProvider, { children: _jsxs(ThemeProvider, { defaultTheme: \"system\", storageKey: \"vite-ui-theme\", children: [_jsx(SplashScreen, { icon: loadingIcon }), _jsx(SigninScreen, { allowedPrefix: \"/shared/\", lightLogo: lightLogo, darkLogo: darkLogo }), _jsx(UserPermissionProvider, { children: children })] }) }) }));\n}\n//# sourceMappingURL=VertesiaShell.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createContext, useContext } from \"react\";\nexport const AppInstallationContext = createContext(null);\nexport function AppInstallationProvider({ installation, children }) {\n return (_jsx(AppInstallationContext.Provider, { value: installation, children: children }));\n}\n/**\n * Get the current app installation obejct when called in an app context otheriwse returns null\n */\nexport function useAppInstallation() {\n return useContext(AppInstallationContext);\n}\n//# sourceMappingURL=AppInstallationProvider.js.map","import { jsxs as _jsxs, jsx as _jsx } from \"react/jsx-runtime\";\nimport { VSelectBox, useFetch } from \"@vertesia/ui/core\";\nimport { LastSelectedAccountId_KEY, LastSelectedProjectId_KEY, useUserSession } from \"@vertesia/ui/session\";\nimport { useState } from \"react\";\nexport function AppProjectSelector({ app, onChange, placeholder }) {\n const { client, project } = useUserSession();\n const { data: projects, error } = useFetch(() => {\n return client.apps.getAppInstallationProjects(app);\n }, [app.id, app.name]);\n const _onChange = (project) => {\n if (onChange) {\n if (!onChange(project)) {\n // if onChange returns true then the defualt on change is called\n return;\n }\n }\n // default on change\n localStorage.setItem(LastSelectedAccountId_KEY, project.account);\n localStorage.setItem(LastSelectedProjectId_KEY + '-' + project.account, project.id);\n window.location.reload();\n };\n if (error) {\n return _jsxs(\"span\", { className: 'text-red-600', children: [\"Error: failed to fetch projects: \", error.message] });\n }\n return _jsx(SelectProject, { placeholder: placeholder, initialValue: project?.id, projects: projects || [], onChange: _onChange });\n}\nfunction SelectProject({ initialValue, projects, onChange, placeholder = \"Select Project\" }) {\n const [value, setValue] = useState();\n const _onChange = (value) => {\n setValue(value);\n onChange(value);\n };\n let actualValue = !value && initialValue ? projects.find(p => p.id === initialValue) : value;\n return (_jsx(VSelectBox, { by: \"id\", value: actualValue, options: projects, optionLabel: (option) => option.name, placeholder: placeholder, onChange: _onChange }));\n}\n//# sourceMappingURL=AppProjectSelector.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Center } from \"@vertesia/ui/core\";\nimport { LastSelectedAccountId_KEY, LastSelectedProjectId_KEY, useUserSession } from \"@vertesia/ui/session\";\nimport { LockIcon } from \"lucide-react\";\nimport { useEffect, useState } from \"react\";\nimport { AppInstallationProvider } from \"./AppInstallationProvider\";\nimport { AppProjectSelector } from \"./AppProjectSelector\";\nexport function StandaloneApp({ name, AccessDenied = AccessDeniedMessage, children }) {\n return name ? (_jsx(StandaloneAppImpl, { name: name, AccessDenied: AccessDenied, children: children })) : (_jsx(UnknownAppName, {}));\n}\nexport function StandaloneAppImpl({ name, AccessDenied = AccessDeniedMessage, children }) {\n const { authToken, client } = useUserSession();\n const [installation, setInstallation] = useState(null);\n const [state, setState] = useState(\"loading\");\n useEffect(() => {\n if (!authToken) {\n setState(\"loading\");\n }\n else {\n const isAppVisible = authToken.apps.includes(name);\n if (isAppVisible) {\n client.apps.getAppInstallationByName(name).then(inst => {\n if (!inst) {\n console.log(`App ${name} not found!`);\n setState(\"error\");\n }\n else {\n setState(\"loaded\");\n setInstallation(inst);\n }\n });\n }\n else {\n setState(\"error\");\n }\n }\n }, [name, authToken]);\n if (state === \"loading\") {\n return null;\n }\n else if (state === \"error\") {\n return _jsx(AccessDenied, { name: name });\n }\n else if (installation) {\n return _jsx(AppInstallationProvider, { installation: installation, children: children });\n }\n}\nfunction AccessDeniedMessage({ name }) {\n const { project } = useUserSession();\n const onChange = (project) => {\n localStorage.setItem(LastSelectedAccountId_KEY, project.account);\n localStorage.setItem(LastSelectedProjectId_KEY + '-' + project.account, project.id);\n window.location.reload();\n };\n return (_jsxs(Center, { className: \"pt-10 flex flex-col items-center text-center text-gray-700\", children: [_jsx(LockIcon, { className: \"w-10 h-10 mb-4 text-gray-500\" }), _jsx(\"div\", { className: \"text-xl font-semibold\", children: \"Access Denied\" }), _jsxs(\"div\", { className: \"mt-2 text-sm text-gray-500\", children: [\"You don't have permission to view the \", _jsx(\"span\", { className: \"font-semibold\", children: name }), \" app in project: \", _jsxs(\"span\", { className: \"font-semibold\", children: [\"\\u00AB\", project?.name, \"\\u00BB\"] }), \".\"] }), _jsx(\"div\", { className: \"mt-4\", children: _jsx(AppProjectSelector, { app: { name }, onChange: onChange }) })] }));\n}\nfunction UnknownAppName() {\n return (_jsxs(Center, { className: \"pt-10 flex flex-col items-center text-center text-gray-700\", children: [_jsx(LockIcon, { className: \"w-10 h-10 mb-4 text-gray-500\" }), _jsx(\"div\", { className: \"text-xl font-semibold\", children: \"Application not registered\" }), _jsxs(\"div\", { className: \"mt-2 text-sm text-gray-500\", children: [\"Before starting to code a Vertesia application you must register an application manifest in Vertesia Studio then install it in one or more projects.\", _jsx(\"p\", {}), \"Then use the created app name as a parameter to \", _jsx(\"code\", { children: \"<StandaloneApp name=\\\"your-app-name\\\">\" }), \" in the \", _jsx(\"code\", { children: \"src/main.tsx\" }), \" file.\"] })] }));\n}\n//# sourceMappingURL=StandaloneApp.js.map"],"names":["InviteAcceptModal","session","useUserSession","client","account","showModal","setShowModal","useState","invites","setInvites","useEffect","listInvites","then","length","notLegacyInvites","filter","i","data","console","log","catch","err","error","id","closeModal","inviteList","map","invite","_jsxs","className","children","_jsx","name","project","role","invited_by","Button","size","onClick","async","acceptInvite","fetchAccounts","accept","variant","rejectInvite","remainingInvites","reject","warn","VModal","isOpen","onClose","VModalTitle","VModalBody","EnterpriseSigninButton","redirectTo","isLoading","setIsLoading","trackEvent","useUXTracking","email","setEmail","toast","useToast","_Fragment","Input","value","onChange","placeholder","type","Spinner","test","setFirebaseTenant","title","status","duration","localStorage","setItem","provider","Env","firebase","Error","providerType","OAuthProvider","redirectPath","window","location","pathname","GoogleAuthProvider","addScope","setCustomParameters","prompt","redirect_uri","origin","getProvider","firebaseTenantName","logger","info","vertesia","firebaseTenantId","signInWithRedirect","getFirebaseAuth","GitHubSignInButton","removeItem","GithubAuthProvider","src","loading","alt","GoogleSignInButton","MicrosoftSignInButton","companySizeOptions","label","accountTypeOptions","description","projectMaturityOptions","SignupForm","onSignup","goBack","accountType","setAccountType","undefined","companySize","setCompanySize","companyName","setCompanyName","companyWebsite","setCompanyWebsite","projectMaturity","setProjectMaturity","fbUser","setFbUser","setError","isCompany","user","currentUser","displayName","FormItem","SelectStack","options","selected","find","option","onSelect","VSelectBox","optionLabel","required","signupData","maturity","JSON","stringify","fbToken","getIdToken","SigninScreen","allowedPrefix","isNested","lightLogo","darkLogo","allow","setAllow","useSafeLayoutEffect","href","startsWith","SigninScreenImpl","authError","style","zIndex","clsx","StandardSigninPanel","setSignupData","collectSignupData","setCollectSignupData","signOut","history","replaceState","goToSignup","UserNotFoundError","getItem","payload","firebaseToken","fetch","endpoints","studio","method","headers","body","res","message","TerminalLogin","setPayload","clientInfo","params","URLSearchParams","search","redirect","get","code","decodeURI","profile","getClientInfo","useLocation","onAccept","token","fetchComposableTokenFromFirebaseToken","studio_server_url","zeno_server_url","zeno","page","AuthDoneScreen","AuthAcceptScreen","ErrorBox","allProjects","useFetch","projects","list","Promise","resolve","envName","isLocalDev","isDev","ProfileForm","Center","navigator","clipboard","writeText","accounts","currentData","setCurrentData","p","SelectAccount","SelectProject","SelectBox","a","by","SignInModal","Modal","ModalTitle","ModalBody","ModalFooter","justify","InfoItems","isCopied","setIsCopied","VTooltip","placement","Check","CopyIcon","setTimeout","copyToClipboard","InfoList","authToken","server","URL","baseUrl","hostname","store","tenantId","getTenantIdFromProject","tabs","content","sub","account_roles","join","project_roles","version","sdkVersion","VTabs","defaultValue","fullWidth","updateHash","VTabsBar","VTabsPanel","UserSessionMenu","UserSessionPopup","asMenuTrigger","navigate","useNavigate","perms","useUserPermissions","isProjectManager","hasPermission","Permission","project_admin","Popover","strategy","Trigger","click","Avatar","color","shape","Content","ModeToggle","MenuList","Item","replace","logout","isVertesiaEmail","endsWith","SplashScreen","icon","Icon","show","setShow","Transition","appear","as","Fragment","unmount","leave","leaveFrom","leaveTo","LoadingIcon","viewBox","xmlns","x1","y1","x2","y2","offset","stopColor","stopOpacity","cx","cy","r","stroke","strokeWidth","fill","strokeLinecap","VertesiaShell","loadingIcon","ToastProvider","UserSessionProvider","ThemeProvider","defaultTheme","storageKey","UserPermissionProvider","AppInstallationContext","createContext","AppInstallationProvider","installation","Provider","useAppInstallation","useContext","AppProjectSelector","app","apps","getAppInstallationProjects","initialValue","LastSelectedAccountId_KEY","LastSelectedProjectId_KEY","reload","setValue","actualValue","StandaloneApp","AccessDenied","AccessDeniedMessage","StandaloneAppImpl","UnknownAppName","setInstallation","state","setState","includes","getAppInstallationByName","inst","LockIcon"],"mappings":"25CAIO,SAASA,KACZ,MAAMC,EAAUC,KACVC,OAAEA,EAAMC,QAAEA,GAAYH,GACrBI,EAAWC,GAAgBC,GAAS,IACpCC,EAASC,GAAcF,EAAS,IACvCG,EAAU,KACNP,EAAOC,QAAQO,cAAcC,KAAKJ,IAC9B,GAAIA,EAAQK,OAAS,EAAG,CAEpB,MAAMC,EAAmBN,EAAQO,OAAOC,GAAKA,EAAEC,KAAKb,SACpD,GAAgC,IAA5BU,EAAiBD,OAEjB,YADAK,QAAQC,IAAI,y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AM,MAAO,CAAEC,UAAW,6BAA8BC,SAAU,CAAC,uJAAwJC,EAAK,IAAK,CAAA,GAAK,mDAAoDA,EAAK,OAAQ,CAAED,SAAU,yCAA6C,WAAYC,EAAK,OAAQ,CAAED,SAAU,iBAAmB,cACxqB"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n from"debounce";import i,{useRef as s,useEffect as a,useMemo as o,useState as l,useCallback as c,createContext as d,useContext as h,memo as u,Component as p,Children as m,isValidElement as f}from"react";import{EditorView as g}from"@codemirror/view";import{useSafeLayoutEffect as y,useTheme as b,Styles as v,FormItem as x,Button as k,DotBadge as w,Table as N,VTooltip as C,VSelectBox as S,VModal as j,VModalTitle as A,ModalBody as O,ModalFooter as P,useFlag as $,useClickOutside as E,useToast as I}from"@vertesia/ui/core";import{Text as T,EditorState as F}from"@codemirror/state";import{Editor as M}from"@monaco-editor/react";import V from"clsx";import{Plus as D,Trash2 as L,Check as q,Copy as R,Download as K,Info as z,AlignLeft as _,SquarePen as U,ChevronDown as W,ChevronRight as B,UploadIcon as H,CheckCircleIcon as G,AlertCircleIcon as Z,XCircleIcon as J}from"lucide-react";import X from"ajv";import{ObjectWalker as Y}from"@vertesia/json";import Q,{defaultUrlTransform as ee}from"react-markdown";import te from"remark-gfm";import{visit as re,SKIP as ne}from"unist-util-visit";import{toPng as ie}from"html-to-image";import{XAxis as se,YAxis as ae,CartesianGrid as oe,Tooltip as le,Legend as ce,ReferenceLine as de,ResponsiveContainer as he,ComposedChart as ue,AreaChart as pe,LineChart as me,BarChart as fe,Line as ge,Area as ye,Bar as be,PieChart as ve,Pie as xe,Cell as ke,ScatterChart as we,Scatter as Ne,RadarChart as Ce,PolarGrid as Se,PolarAngleAxis as je,PolarRadiusAxis as Ae,Radar as Oe,RadialBarChart as Pe,RadialBar as $e,FunnelChart as Ee,Funnel as Ie,LabelList as Te,Treemap as Fe}from"recharts";import{useUserSession as Me}from"@vertesia/ui/session";import{offset as Ve,shift as De,flip as Le}from"@floating-ui/dom";import{useFloating as qe,autoUpdate as Re,useDismiss as Ke,useClick as ze,useHover as _e,useInteractions as Ue,useTransitionStyles as We,FloatingPortal as Be,FloatingFocusManager as He,safePolygon as Ge}from"@floating-ui/react";import{XMLParser as Ze,XMLValidator as Je}from"fast-xml-parser";import{isNil as Xe,omit as Ye}from"lodash-es";let Qe=null;class et{editor;constructor(e){this.editor=e}setValue(e){this.editor.dispatch({changes:{from:0,to:this.editor.state.doc.length,insert:e||""}})}getValue(){return this.editor.state.doc.toString()}}const tt=[g.theme({"&":{fontSize:"14px",fontFamily:"monospace"},".cm-content":{fontFamily:"inherit"},".cm-scroller":{fontFamily:"inherit"},".cm-gutters":{backgroundColor:"transparent",color:"#ddd"},".cm-focused":{outline:"none"},".cm-cursor":{borderLeft:"2px solid #808080",borderLeftColor:"#808080",animation:"blink 1.2s step-start infinite"},"@keyframes blink":{"50%":{opacity:0}}}),g.lineWrapping];function rt({onChange:t,value:r,className:i,editorRef:l,extensions:c,debounceTimeout:d=0}){const h=s(null),u=s(void 0);a(()=>{if(t)return u.current=d>0?n(t,d):t,()=>{u.current=void 0}},[t,d]);const p=o(()=>e("div",{ref:h,className:i}),[i]);return y(()=>{if(h.current){let t=[...tt,(e=e=>{u.current?.(e)},g.updateListener.of(t=>{t.docChanged&&e(t)}))];Array.isArray(c)?t=t.concat(c):c&&t.push(c);const n=((e="",t=[])=>{const r="string"==typeof e?T.of(e.split("\n")):e;return Qe?Qe.doc.toString()!==r.toString()&&(Qe=F.create({doc:r,extensions:t})):Qe=F.create({doc:r,extensions:t}),Qe})(r,t),i=new g({state:n,parent:h.current}),s=new et(i);return l&&(l.current=s),()=>{i.destroy(),l&&(l.current=void 0)}}var e},[p,c]),p}class nt{VgetValue;VsetValue;constructor(e,t){this.VgetValue=e,this.VsetValue=t}getValue(){return this.VgetValue()}setValue(e){this.VsetValue(e||"")}}function it({onChange:t,value:r="",className:i,editorRef:d,language:h="javascript",debounceTimeout:u=0,options:p={},beforeMount:m,onMount:f,defaultValue:g}){const[y,v]=l(r),x=s(null),{theme:k}=b(),w=s(()=>y),N=s(e=>{v(e),x.current&&x.current.setValue(e)});a(()=>{w.current=()=>y},[y]),a(()=>(d&&(d.current=new nt(()=>w.current(),e=>N.current(e))),()=>{d&&(d.current=void 0)}),[d]);const C=o(()=>{if(t)return u>0?n(e=>t(e),u):t},[t,u]),S=c(e=>{const t=e||"";if(v(t),C){const e={docChanged:!0,state:{doc:{toString:()=>t,length:t.length}}};C(e)}},[C]),j=c((e,t)=>{x.current=e,N.current=t=>{v(t),e.setValue(t)},t.editor.defineTheme("errorLineTheme",{base:"dark"===k?"vs-dark":"vs",inherit:!0,rules:[],colors:{"editorError.background":"#ffebee","editorError.border":"#f44336"}}),t.editor.setTheme("errorLineTheme"),f?.(e)},[h,f,k]);a(()=>{r!==y&&(v(r),x.current&&x.current.setValue(r))},[r]);const A={fontSize:14,fontFamily:"monospace",minimap:{enabled:!1},scrollBeyondLastLine:!1,wordWrap:"on",lineNumbers:"on",folding:!1,lineDecorationsWidth:0,lineNumbersMinChars:3,automaticLayout:!0,glyphMargin:!0,renderValidationDecorations:"on",renderLineHighlight:"line",hover:{enabled:!0,delay:100},quickSuggestions:{other:!0,comments:!0,strings:!0},...p};return e("div",{className:i,children:e(M,{height:"100%",theme:"dark"===k?"vs-dark":"light",language:h,value:y,onChange:S,onMount:j,beforeMount:m,options:A,defaultValue:g||""})})}const st=d(void 0),at=st.Provider;function ot(){const e=h(st);if(!e)throw new Error("useFieldSet must be used within a Form or FieldSet element");return e}class lt{object;components;disabled;constructor(e,t={},r=!1){this.object=e,this.components=t,this.disabled=r}}const ct=d(void 0);function dt(){const e=h(ct);if(!e)throw new Error("useForm must be used within a Form element");return e}const ht=ct.Provider,ut=i.forwardRef(({object:t,type:r="text",onChange:n,...i},s)=>{const[a,o]=l(null!=t.value?String(t.value):""),[c,d]=l(t.schema.isBoolean&&!0===t.value);i.className?i.className=V(v.INPUT,i.className):i.className=v.INPUT;const h=e=>{i.disabled||(o(e.target.value),t.schema.isBoolean?(t.value=e.target.checked,d(t.value)):t.value=e.target.value,n&&n(e))};return"textarea"===r?e("textarea",{ref:s,...i,value:a,onChange:h}):e("input","checkbox"===r?{ref:s,...i,type:"checkbox",checked:c,onChange:h,className:"form-check-input"}:{ref:s,...i,type:r,value:a,onChange:h})});function pt({object:t,components:r,onSubmit:n,children:i,onChange:s,disabled:a}){return t.observer=s,e(ht,{value:new lt(t,r||{},a??!1),children:e("form",{className:"w-full",onSubmit:e=>{e.stopPropagation(),e.preventDefault(),n&&n(t.value)},children:i})})}function mt(){const t=dt();return e("div",{className:"flex flex-col gap-4 w-full",children:t.object.properties.map(gt)})}function ft({children:r,...n}){return t(pt,{...n,children:[e(mt,{}),r]})}function gt(t){return t.isList?e(vt,{object:t},t.name):t.isObject?e(bt,{object:t},t.name):e(yt,{object:t},t.name)}function yt({object:t,editor:r,inline:n=!1}){r||(r=t.schema.editor);const{components:i,disabled:s}=dt(),a=r&&i[r]||ut,o=t.getInputType();"checkbox"===o&&(n=!0);const l=e=>{s||(t.schema.isBoolean?t.value=e.target.checked:t.schema.isNumber?t.value=parseFloat(e.target.value):t.value=e.target.value)};return t.isListItem?e(a,{object:t,type:o,onChange:l,disabled:s}):e(x,{label:t.title,required:t.schema.isRequired,description:t.schema.description,className:V("flex",n?"flex-row items-center":"flex-col"),children:e(a,{object:t,type:o,onChange:l,disabled:s})})}function bt({object:r}){return t("div",{className:"flex flex-col gap-4 my-4 py-2 pl-4 border-l-4 border-l-solid border-l-slate-100 dark:border-l-slate-600",children:[!r.isListItem&&e("div",{className:"text-gray-900 dark:text-gray-200 font-semibold",children:r.title}),r.properties.map(gt)]})}function vt({object:r}){const[n,i]=l(r.value||[]),{disabled:s}=dt();return t("div",{className:"flex flex-col gap-4 my-4 py-2 pl-4 border-l-4 border-l-solid border-l-slate-100 darK:border-l-slate-600",children:[!r.isListItem&&e("div",{className:"text-gray-900 dark:text-gray-200 font-semibold",children:r.title}),r.items.map((t,a)=>e(xt,{object:t,list:r,onDelete:()=>(e=>{s||(r.remove(e),i([...r.value]))})(a),disabled:s},`${a}-${n[a]??""}`)),e("div",{children:t(k,{variant:"secondary",onClick:()=>{s||(r.add(),i([...r.value]))},disabled:s,children:[e(D,{className:"size-6"})," Add"]})})]})}function xt({list:r,object:n,onDelete:i,disabled:s}){return t("div",{className:"flex gap-2 w-full",children:[e("div",{className:"flex-1",children:(a=n,o=r.schema.arraySchema.editor,a.isList?e(vt,{object:a}):a.isObject?e(bt,{object:a}):e(yt,{object:a,editor:o}))}),e(k,{variant:"secondary",onClick:i,disabled:s,children:e(L,{className:"size-4"})})]});var a,o}class kt{schema;properties={};_validator;constructor(e){this.schema=e||{type:"object",properties:{}},this.load()}get validator(){if(!this._validator){const e=new X({allErrors:!0,strict:!1});this._validator=e.compile(this.schema)}return this._validator}load(){if(this.schema.properties){const e=this.schema.properties;Object.keys(e).forEach(t=>{this.loadProperty(t,e[t])})}}hasProperties(){return Object.keys(this.properties).length>0}get title(){return this.schema.title||this.schema.name}get description(){return this.schema.description}loadProperty(e,t){let r;return r="array"===t.type?new Nt(this,e,t):new wt(this,e,t),this.properties[e]=r,r}get type(){return this.schema.type}validate(e){return this.validator(e)?null:this.validator.errors||[]}addProperty(e,t,r=!1){"object"!==this.schema.type&&(this.schema.type="object"),this.schema.properties||(this.schema.properties={});const n="string"==typeof t?"object"===(i=t)?{type:"object",properties:{}}:"array"===i?{type:"array",items:{}}:{type:i}:t;var i;const s=this.loadProperty(e,n);return this.schema.properties[s.name]=s.schema,r&&(s.isRequired=!0),s}removeProperty(e){this.schema.properties&&(delete this.schema.properties[e],Array.isArray(this.schema.required)&&(this.schema.required=this.schema.required.filter(t=>t!==e))),delete this.properties[e]}getProperty(e){return this.properties[e]}get editor(){return this.schema.editor}}class wt extends kt{parent;name;constructor(e,t,r){if(super(r),this.parent=e,this.name=t,"array"===r.type)throw new Error("Array property must be instantiated using ArrayPropertySchema");"object"!==r.type||r.properties||(r.properties={})}get isMulti(){return!1}get isReadOnly(){return!!this.schema.readOnly}set isReadOnly(e){this.schema.readOnly=e}get defaultValue(){return this.schema.default}set defaultValue(e){this.schema.default=e}get enum(){return this.schema.enum}set enum(e){this.schema.enum=e}get isRequired(){const e=this.parent.schema.required;return!!e&&e.includes(this.name)}set isRequired(e){let t=Array.isArray(this.parent.schema.required)?this.parent.schema.required:[];t=e?t.concat(this.name):t.filter(e=>e!==this.name),this.parent.schema.required=t}get type(){return this.schema.type}set type(e){this.schema.type!==e&&(this.schema.type=e,"object"!==e&&(this.properties={},this.schema.properties=void 0))}remove(){this.parent.removeProperty(this.name)}get isBoolean(){return"boolean"===this.type}get isString(){return"string"===this.type}get isNumber(){return"number"===this.type||"integer"===this.type}get isObject(){return"object"===this.type}}class Nt extends wt{arraySchema;constructor(e,t,r){super(e,t,function(e){if("array"!==e.type)throw new Error("Expecting an array schema");if(e.items){if(Array.isArray(e.items))throw new Error("Tuple arrays are not supported")}else e.items={};return e.items}(r)),this.arraySchema=r}get isMulti(){return!0}}function Ct(e){return(e=e.replace(/_/g," ").replace(/([a-z0-9])&([A-Z])/g,"$1 $2"))[0].toUpperCase()+e.slice(1)}function St(e,t){if(t.editor)return t.editor;if(t.schema.format)return t.schema.format;switch(t.type){case"number":case"integer":return"number";case"boolean":return"checkbox";default:return"text"}}class jt{parent;schema;name;observer;constructor(e,t,r){this.parent=e,this.schema=t,this.name=r}get isRoot(){return!this.parent}get root(){return this.parent?this.parent.root:this}get path(){return this.parent?this.parent.path.concat(this.name):[]}get isScalar(){return!1}get isListItem(){return!1}get isObject(){return!1}get isList(){return!1}get title(){return this.schema.title||Ct(this.name)}onChange(e){this.observer&&!1===this.observer(this)||this.parent&&this.parent.onChange(e)}}class At extends jt{constructor(e,t,r){super(e,t,r)}get isObject(){return!0}getProperty(e){const t=this.schema.properties[e];return t.isMulti?new Et(this,t,this.getOrInitArrayProperty(e)):t.isObject?new Pt(this,t,t.name,this.getOrInitObjectProperty(e)):new $t(this,t)}getOrInitObjectProperty(e){let t=this.value[e];return t||(this.value[e]=t={}),t}getOrInitArrayProperty(e){let t=this.value[e];return t||(this.value[e]=t=[]),t}setPropertyValue(e,t){return this.value[e]!==t&&(this.value[e]=t,!0)}getPropertyValue(e){return this.value[e]}get properties(){const e=[];for(const t of Object.values(this.schema.properties))t.isMulti?e.push(new Et(this,t,this.getOrInitArrayProperty(t.name))):t.isObject?e.push(new Pt(this,t,t.name,this.getOrInitObjectProperty(t.name))):e.push(new $t(this,t));return e}[Symbol.iterator](){return this.properties[Symbol.iterator]()}}class Ot extends At{value;constructor(e,t={}){super(null,e instanceof kt?e:new kt(e),"#root"),this.value=t}}class Pt extends At{value;constructor(e,t,r,n){super(e,t,r),this.value=n}}class $t extends jt{constructor(e,t){super(e,t,t.name),void 0===e.value[this.name]&&void 0!==t.defaultValue&&(e.value[this.name]=t.defaultValue)}get isScalar(){return!0}set value(e){this.parent.setPropertyValue(this.name,e)&&this.onChange(this)}get value(){return this.parent.getPropertyValue(this.name)}getInputType(){return St(this.name,this.schema)}}class Et extends jt{value;items=[];constructor(e,t,r){super(e,t,t.name),this.value=r;for(const e of this.value)this.add()}get isList(){return!0}newItem(e){return this.schema.isObject?new It(this,e):new Tt(this,e)}add(){const e=this.newItem(this.items.length);return this.items.push(e),e}remove(e){const t=this.value;if(e>=0&&e<this.items.length){this.items.splice(e,1);for(let e=0,t=this.items.length;e<t;e++){const t=this.items[e];t.index=e,t.name=String(e)}}Array.isArray(t)&&e>=0&&e<t.length&&(t.splice(e,1),this.onChange(this))}[Symbol.iterator](){return this.items[Symbol.iterator]()}item(e){if(e<0||e>=this.value.length)return;const t=this.value[e];return this.schema.isObject?new Pt(this,this.schema,String(e),t):new Tt(this,e)}trim(){for(;void 0===this.items[this.items.length-1];)this.items.pop()}}class It extends At{index;key;constructor(e,t){super(e,e.schema,String(t)),this.index=t,void 0===e.value[t]&&(e.value[t]={}),this.key=this.name+"@"+Date.now()}get isListItem(){return!0}set value(e){this.parent.value[this.index]=e}get value(){return this.parent.value[this.index]}}class Tt extends jt{index;key;constructor(e,t){super(e,e.schema,String(t)),this.index=t,void 0===e.value[t]&&void 0!==e.schema.defaultValue&&(e.value[t]=e.schema.defaultValue),this.key=this.name+"@"+Date.now()}get isScalar(){return!0}get isListItem(){return!0}set value(e){this.parent.value[this.index]=e}get value(){return this.parent.value[this.index]}getInputType(){return St(this.name,this.schema)}}function Ft({label:t,required:r,children:n}){return e(x,{label:t,required:r,children:n})}function Mt({children:t}){return e("p",{className:"mt-2 text-sm text-gray-500",children:t})}function Vt({children:t}){return e("p",{className:"mt-2 text-sm text-red-600",children:t})}const Dt="text-pink-500 dark:text-pink-400",Lt="text-purple-500 dark:text-purple-400",qt="text-blue-500 dark:text-blue-400",Rt={code:"bg-gray-100 dark:bg-slate-800 whitespace-pre-wrap p-4 rounded-lg font-mono",comma:Dt,assign:Dt,startObject:Dt,endObject:Dt,startArray:Dt,endArray:Dt,boolean:Lt,null:Lt,key:qt,index:qt,string:"text-orange-500 dark:text-orange-400",number:"text-green-500 dark:text-green-400"};class Kt{renderer;parent;key;indent;result=[];constructor(e,t,r,n){this.renderer=e,this.parent=t,this.key=r,this.indent=n}get classMap(){return this.renderer.classMap}writeKey(e){const t=typeof e;"string"===t?(this.result.length>0&&this.result.push(`<span class='${this.classMap.comma}'>,\n</span>`),this.indent&&this.result.push(this.indent),this.result.push(`<span class="${this.classMap.key}">"${e}"</span><span class='${this.classMap.assign}'>: </span>`)):"number"===t&&(this.result.length>0&&this.result.push(`<span class='${this.classMap.comma}'>,\n</span>`),this.indent&&this.result.push(this.indent))}pushValue(e,t){if(this.writeKey(e),null===t)this.result.push(`<span class='${this.classMap.null}'>null</span>`);else if(t instanceof Kt)this.result.push(t.renderStart()+t.renderValue()+t.renderEnd());else{let e;const r=typeof t;"string"===r?(t=(t=`"${t}"`).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),e=this.classMap.string):"number"===r?e=this.classMap.number:"boolean"===r&&(e=this.classMap.boolean),this.result.push(`<span class='${e}'>${t}</span>`)}}renderValue(){return this.result.join("")}}class zt extends Kt{constructor(e,t,r,n){super(e,t,r,n)}renderStart(){return`<span class='${this.classMap.startObject}'>{\n</span>`}renderEnd(){const e=this.result.length>0?"\n":"";return`<span class='${this.classMap.endObject}'>${e}${this.parent?.indent||""}}</span>`}}class _t extends Kt{constructor(e,t,r,n){super(e,t,r,n)}renderStart(){return`<span class='${this.classMap.startArray}'>[\n</span>`}renderEnd(){const e=this.result.length>0?"\n":"";return`<span class='${this.classMap.endArray}'>${e}${this.parent?.indent||""}]</span>`}}class Ut{classMap;tab;stack=[];block=new zt(this,void 0,"","");constructor(e=Rt,t=" "){this.classMap=e,this.tab=t}onStartObject(e){const t=new zt(this,this.block,e,this.block.indent+this.tab);this.stack.push(this.block),this.block=t}onEndObject(){const e=this.block;this.block=this.stack.pop(),this.block.pushValue(e.key,e)}onStartIteration(e){const t=new _t(this,this.block,e,this.block.indent+this.tab);this.stack.push(this.block),this.block=t}onEndIteration(){const e=this.block;this.block=this.stack.pop(),this.block.pushValue(e.key,e)}onValue(e,t){this.block.pushValue(e,t)}}function Wt({data:t,className:r,classMap:n}){const[i,s]=l();return a(()=>{s(function(t,r,n){const i=new Ut(r);(new Y).walk(t,i);const s=i.block.renderValue();return e("div",{className:n,dangerouslySetInnerHTML:{__html:`<div class='${i.classMap.code}' style='overflow-x: scroll'>${s}</div>`}})}(t,n,r))},[t]),i}function Bt({value:t}){return e("div",{className:"flex flex-col gap-4",children:Object.entries(t).map(([t,r])=>e(Zt,{name:t,value:r},t))})}function Ht({name:t}){return e("div",{className:"text-md font-semibold",children:Ct(t)})}function Gt({children:t,className:r}){return e("div",{className:V("flex flex-col gap-4 py-2 pl-4 border-l-4 border-l-solid border-l-slate-100 dark:border-l-slate-600",r),children:t})}function Zt({name:r,value:n}){const i=Qt(n);switch(i.type){case Yt.Inline:return t("div",{className:"w-full flex gap-2",children:[e(Ht,{name:r+":"}),e("p",{children:i.value})]});case Yt.Paragraph:return t("div",{children:[e(Ht,{name:r}),e("p",{children:i.value})]});case Yt.Prose:return t("div",{className:"prose dark:prose-invert",children:[e(Ht,{name:r}),e("div",{className:"vprose dark:prose-invert",children:i.value})]});case Yt.Array:return e(Jt,{name:r,value:n});case Yt.Object:return t("div",{children:[e(Ht,{name:r}),e(Gt,{className:"mt-2",children:Object.entries(n).map(([t,r])=>e(Zt,{name:t,value:r},t))})]})}}function Jt({name:r,value:n}){const i=n.join(" ").length,s=i/n.length,a="string"==typeof n[0]&&(i<80||i<400&&s<32),o=n.length>9;return t("div",a?{className:"flex gap-2 flex-wrap",children:[r&&e(Ht,{name:r+":"}),n.map((t,r)=>e(w,{children:String(t)},r))]}:{children:[r&&e(Ht,{name:r}),e("div",{className:"flex flex-col gap-2",children:n.map((t,r)=>e(Xt,{index:r,value:t,useBullet:o},r))})]})}function Xt({index:r,value:n,useBullet:i}){const s=i?e("span",{className:"text-xl",children:"•"}):t("span",{children:[r+1,"."]}),a=Qt(n);let o;switch(a.type){case Yt.Object:o=e(Gt,{children:Object.entries(n).map(([t,r])=>e(Zt,{name:t,value:r},t))});break;case Yt.Array:o=e(Jt,{value:n});break;case Yt.Prose:o=e("div",{className:"prose dark:prose-invert",children:a.value});break;default:o=e("div",{children:a.value})}return t("div",{className:"flex gap-4 hover:bg-slate-50 dark:hover:bg-slate-800 py-2 pr-2 pl-4",children:[e("div",{className:"font-semibold text-gray-600 dark:text-gray-400",children:s}),e("div",{children:o})]})}var Yt;function Qt(e){if(null==e)return{value:"-",type:Yt.Inline};if(Array.isArray(e))return{value:e,type:Yt.Array};const t=typeof e;if("string"===t){const t=e.length;let r;return t<80?r=Yt.Inline:t>400?r=Yt.Prose:(r=Yt.Paragraph,e=e.replace(/(?:\n\n)+/g,"\n\n")),{type:r,value:e}}return"number"===t||"boolean"===t?{value:String(e),type:Yt.Inline}:{value:e,type:Yt.Object}}function er({value:t,viewCode:r=!1}){return t?e("div",{className:"relative w-full",children:r?e(Wt,{data:t}):e(Bt,{value:t})}):e("pre",{className:"whitespace-pre-wrap",children:"No Data to display"})}!function(e){e[e.Inline=0]="Inline",e[e.Paragraph=1]="Paragraph",e[e.Prose=2]="Prose",e[e.Array=3]="Array",e[e.Object=4]="Object"}(Yt||(Yt={}));const tr=["#4f46e5","#06b6d4","#22c55e","#f59e0b","#ef4444","#8b5cf6","#ec4899","#14b8a6"];class rr extends p{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error(`Chart rendering error (${this.props.chartType}):`,e,t)}render(){return this.state.hasError?e("div",{className:"flex items-center justify-center h-full bg-red-50 dark:bg-red-950 rounded-md p-4",children:t("div",{className:"text-center",children:[t("p",{className:"text-sm font-medium text-red-600 dark:text-red-400",children:["Cannot render ",this.props.chartType," chart"]}),e("p",{className:"text-xs text-red-500 dark:text-red-500 mt-1 max-w-xs truncate",children:this.state.error?.message||"Unknown error"})]})}):this.props.children}}function nr(e){if(!isFinite(e))return String(e);const t=Math.abs(e);return t>=1e9?(e/1e9).toFixed(1)+"B":t>=1e6?(e/1e6).toFixed(1)+"M":t>=1e3?(e/1e3).toFixed(1)+"K":e.toLocaleString()}const ir=u(function({spec:n}){const{chart:i,title:a,description:o,data:d,xKey:h,series:u,yAxis:p,options:m,nameKey:f,valueKey:g,yKey:y,zKey:b,axisKey:v,dataKey:x}=n,[k,w]=l(!1),[N,C]=l(!1),S=s(null),j=c(async()=>{if(S.current&&!N)try{const e=await ie(S.current,{backgroundColor:"#ffffff",pixelRatio:2}),t=await fetch(e),r=await t.blob();await navigator.clipboard.write([new ClipboardItem({"image/png":r})]),C(!0),setTimeout(()=>C(!1),2e3)}catch(e){console.error("Failed to copy chart:",e)}},[N]),A=c(async()=>{if(S.current&&!k){w(!0);try{const e=await ie(S.current,{backgroundColor:"#ffffff",pixelRatio:2}),t=document.createElement("a");t.download=`${a||"chart"}.png`,t.href=e,t.click()}catch(e){console.error("Failed to export chart:",e)}finally{w(!1)}}},[a,k]),O=u||[],P=d||[],$=t(r,{children:[e(se,{dataKey:h,tick:{fontSize:12}}),e(ae,{yAxisId:"left",tickFormatter:nr,label:p?.left?.label?{value:p.left.label,angle:-90,position:"insideLeft"}:void 0}),O.some(e=>"right"===e.yAxisId)&&e(ae,{yAxisId:"right",orientation:"right",tickFormatter:nr,label:p?.right?.label?{value:p.right.label,angle:-90,position:"insideRight"}:void 0})]}),E=t(r,{children:[e(oe,{strokeDasharray:"3 3"}),e(le,{formatter:e=>"number"==typeof e?nr(e):String(e)}),e(ce,{}),m?.referenceZero&&e(de,{y:0,stroke:"#999",strokeDasharray:"3 3"})]}),I=()=>O.map((t,r)=>{const n=t.color||tr[r%tr.length],s=t.yAxisId||"left";return"line"===i?e(ge,{type:"monotone",dataKey:t.key,name:t.label||t.key,stroke:n,dot:t.dot??!1,yAxisId:s},t.key):"area"===i?e(ye,{type:"monotone",dataKey:t.key,name:t.label||t.key,stroke:n,fill:n,fillOpacity:.3,stackId:m?.stacked?t.stackId||"stack":void 0,yAxisId:s},t.key):"bar"===i||"bar"===t.type?e(be,{dataKey:t.key,name:t.label||t.key,fill:n,stackId:m?.stacked?t.stackId||"stack":void 0,yAxisId:s},t.key):"area"===t.type?e(ye,{type:"monotone",dataKey:t.key,name:t.label||t.key,stroke:n,fill:n,fillOpacity:.3,stackId:m?.stacked?t.stackId||"stack":void 0,yAxisId:s},t.key):e(ge,{type:"monotone",dataKey:t.key,name:t.label||t.key,stroke:n,dot:t.dot??!1,yAxisId:s},t.key)});return e("div",{className:"bg-white dark:bg-gray-900 rounded-lg border border-gray-200 dark:border-gray-800 shadow-sm",children:t("div",{className:"flex flex-col gap-2 p-3",children:[t("div",{className:"flex items-center justify-between",children:[e("span",{className:"font-medium text-sm text-gray-900 dark:text-gray-100",children:a||"Chart"}),t("div",{className:"flex items-center gap-2 print:hidden chart-actions",children:[t("button",{onClick:j,disabled:N,className:"text-xs px-2 py-1 rounded border border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 cursor-pointer transition-colors disabled:opacity-50 flex items-center gap-1",title:"Copy to clipboard",children:[e(N?q:R,{className:"w-3 h-3"}),N?"Copied":"Copy"]}),t("button",{onClick:A,disabled:k,className:"text-xs px-2 py-1 rounded border border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 cursor-pointer transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-1",title:"Export as PNG",children:[e(K,{className:"w-3 h-3"}),k?"Exporting...":"Export"]})]})]}),o&&e("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:o}),e("div",{ref:S,className:"bg-white dark:bg-gray-900 rounded",style:{width:"100%",height:280,minWidth:0},children:e(rr,{chartType:i,children:e(he,{width:"100%",height:"100%",children:(()=>{switch(i){case"bar":return t(fe,{data:P,children:[$,E,I()]});case"line":return t(me,{data:P,children:[$,E,I()]});case"area":return t(pe,{data:P,children:[$,E,I()]});case"composed":default:return t(ue,{data:P,children:[$,E,I()]});case"pie":return t(ve,{children:[e(xe,{data:P,dataKey:g||"value",nameKey:f||"name",cx:"50%",cy:"50%",innerRadius:m?.innerRadius||0,outerRadius:100,label:!1!==m?.showLabels,children:P.map((t,r)=>e(ke,{fill:tr[r%tr.length]},`cell-${r}`))}),e(le,{formatter:e=>"number"==typeof e?nr(e):String(e)}),e(ce,{})]});case"scatter":return(()=>{const r=h,n=y||"y";return t(we,{children:[e(oe,{strokeDasharray:"3 3"}),e(se,{dataKey:r,name:r,tick:{fontSize:12}}),e(ae,{dataKey:n,name:n,tickFormatter:nr}),e(le,{formatter:e=>"number"==typeof e?nr(e):String(e)}),e(ce,{}),O.length>0?O.map((t,r)=>e(Ne,{name:t.label||t.key,data:P,fill:t.color||tr[r%tr.length]},t.key)):e(Ne,{name:"Data",data:P,fill:tr[0]})]})})();case"radar":return(()=>{const r=v||h||"axis";return t(Ce,{cx:"50%",cy:"50%",outerRadius:100,data:P,children:[e(Se,{}),e(je,{dataKey:r,tick:{fontSize:11}}),e(Ae,{tickFormatter:nr}),O.map((t,r)=>e(Oe,{name:t.label||t.key,dataKey:t.key,stroke:t.color||tr[r%tr.length],fill:t.color||tr[r%tr.length],fillOpacity:.3},t.key)),e(le,{formatter:e=>"number"==typeof e?nr(e):String(e)}),e(ce,{})]})})();case"radialBar":return(()=>{const r=f||"name",n=g||"value",i=m?.startAngle??180,s=m?.endAngle??0;return t(Pe,{cx:"50%",cy:"50%",innerRadius:m?.innerRadius??30,outerRadius:100,barSize:15,data:P,startAngle:i,endAngle:s,children:[e($e,{label:{position:"insideStart",fill:"#fff",fontSize:11},background:!0,dataKey:n,children:P.map((t,r)=>e(ke,{fill:tr[r%tr.length]},`cell-${r}`))}),e(le,{formatter:e=>"number"==typeof e?nr(e):String(e)}),e(ce,{iconSize:10,layout:"vertical",verticalAlign:"middle",align:"right",formatter:(e,t)=>{const i=P.find(i=>i[r]===e||i[n]===t.payload?.value);return i?i[r]:e}})]})})();case"funnel":return(()=>{const r=f||"name",n=g||"value";return t(Ee,{children:[e(le,{formatter:e=>"number"==typeof e?nr(e):String(e)}),t(Ie,{dataKey:n,data:P,isAnimationActive:!0,children:[P.map((t,r)=>e(ke,{fill:tr[r%tr.length]},`cell-${r}`)),!1!==m?.showLabels&&e(Te,{position:"center",fill:"#fff",stroke:"none",dataKey:r})]})]})})();case"treemap":return e(Fe,{data:P,dataKey:x||g||"value",aspectRatio:4/3,stroke:"#fff",fill:"#4f46e5",content:({x:n,y:i,width:s,height:a,name:o,value:l,index:c})=>t("g",{children:[e("rect",{x:n,y:i,width:s,height:a,style:{fill:tr[c%tr.length],stroke:"#fff",strokeWidth:2}}),s>50&&a>30&&t(r,{children:[e("text",{x:n+s/2,y:i+a/2-7,textAnchor:"middle",fill:"#fff",fontSize:12,children:o}),e("text",{x:n+s/2,y:i+a/2+10,textAnchor:"middle",fill:"#fff",fontSize:11,children:nr(l)})]})]})})}})()})})})]})})},(e,t)=>JSON.stringify(e.spec)===JSON.stringify(t.spec)),sr=["artifact:","image:","store:","document:","document://","collection:"];function ar(e){return sr.some(t=>e.startsWith(t))?e:ee(e)}function or(){return e=>{re(e,"html",(e,t,r)=>{if(e.value&&/<!--[\s\S]*?-->/.test(e.value)&&r&&"number"==typeof t&&r.children)return r.children.splice(t,1),[ne,t]})}}function lr({children:t,components:r,remarkPlugins:n=[],removeComments:s=!0,artifactRunId:a}){const{client:o}=Me(),l=[te,...n];s&&l.push(or);const c=i.useMemo(()=>{const t=r||{},n=t.code,s=t.a,l=t.img;return{...t,code:({node:t,className:r,children:i,...s})=>{const a=/language-(\w+)/.exec(r||""),o=!a,l=a?a[1]:"";if(!o&&("chart"===l||r?.includes("language-chart")))try{const t=String(i||"").trim(),r=JSON.parse(t);if(r&&r.chart&&Array.isArray(r.data))return e(ir,{spec:r})}catch(e){console.warn("Failed to parse chart spec:",e)}return"function"==typeof n?e(n,{node:t,className:r,...s,children:i}):e("code",{...s,className:o?"px-1.5 py-0.5 rounded":"text-muted",children:i})},a:t=>{const{node:r,href:n,children:l,...c}=t,d=n||"",h=d.startsWith("artifact:"),u=h?d.replace(/^artifact:/,"").trim():"",p=d.startsWith("image:"),m=p?d.replace(/^image:/,"").trim():"",[f,g]=i.useState(void 0);if(i.useEffect(()=>{let e=!1;return(async()=>{if(h||p)try{if(h)if(a&&!u.startsWith("agents/")){const{url:t}=await o.files.getArtifactDownloadUrl(a,u,"attachment");e||g(t)}else{const{url:t}=await o.files.getDownloadUrl(u);e||g(t)}else if(p){const{url:t}=await o.files.getDownloadUrl(m);e||g(t)}}catch(t){const r=h?u:m;console.error("Failed to resolve link in MarkdownRenderer:",r,t),e||g(void 0)}else g(void 0)})(),()=>{e=!0}},[h,u,p,m,a,o]),d.startsWith("document://")){const t=d.replace(/^document:\/\//,"").trim(),n=t?`/store/objects/${t}`:d;return"function"==typeof s?e(s,{node:r,href:n,...c,children:l}):e("a",{href:n,...c,target:"_blank",rel:"noopener noreferrer",children:l})}if(d.startsWith("store:")){const t=d.replace(/^store:/,"").trim(),n=t?`/store/objects/${t}`:d;return"function"==typeof s?e(s,{node:r,href:n,...c,children:l}):e("a",{href:n,...c,target:"_blank",rel:"noopener noreferrer",children:l})}if(d.startsWith("collection:")){const t=d.replace(/^collection:/,"").trim(),n=t?`/store/collections/${t}`:d;return"function"==typeof s?e(s,{node:r,href:n,...c,children:l}):e("a",{href:n,...c,target:"_blank",rel:"noopener noreferrer",children:l})}if(!h&&!p&&"function"==typeof s)return e(s,{node:r,href:n,...c,children:l});if(h){return e("a",{href:f||"#",...c,target:"_blank",rel:"noopener noreferrer",children:l})}if(p){return e("a",{href:f||"#",...c,target:"_blank",rel:"noopener noreferrer",children:l})}return e("a",{href:n,...c,target:"_blank",rel:"noopener noreferrer",children:l})},img:t=>{const{node:r,src:n,alt:s,...c}=t,d=n||"",h=d.startsWith("artifact:"),u=d.startsWith("image:"),p=h||u,m=p?d.replace(/^artifact:/,"").replace(/^image:/,"").trim():"",[f,g]=i.useState(void 0);return i.useEffect(()=>{let e=!1;return(async()=>{if(p)try{if(h)if(a&&!m.startsWith("agents/")){const{url:t}=await o.files.getArtifactDownloadUrl(a,m,"inline");e||g(t)}else{const{url:t}=await o.files.getDownloadUrl(m);e||g(t)}else if(u){const{url:t}=await o.files.getDownloadUrl(m);e||g(t)}}catch(t){console.error("Failed to resolve image link in MarkdownRenderer:",m,t),e||g(void 0)}else g(void 0)})(),()=>{e=!0}},[p,m,a,o]),p||"function"!=typeof l?p?f?e("img",{src:f,alt:s,...c}):null:e("img",{src:n,alt:s,...c}):e(l,{node:r,src:n,alt:s,...c})}}},[r,o,a]);return e(Q,{remarkPlugins:l,components:c,urlTransform:ar,children:t})}const cr=d(void 0);function dr(){return h(cr)}const hr=Symbol("__SLOT_NAME");function ur(e,t){const r=[];return m.forEach(e,e=>{!function(e,t,r){let n;f(e)&&(n=e.type[hr])?r[n]=e:t.push(e)}(e,r,t)}),r.length>1?r:r[0]}function pr(e,t){t[hr]=e}function mr(e){return e?"boolean"==typeof e?{enabled:e}:e:{enabled:!1}}function fr(t){const r={};if(ur(t.children,r),!r.content)throw new Error("Popover must provide a content slot");const n=r.trigger?.props,i=r.content.props;return e(gr,{...t,trigger:n,content:i})}function gr({middleware:r,offset:n,trigger:i,dismiss:s=!0,content:a,placement:o,strategy:c,zIndex:d=40}){const[h,u]=l(!1),p=qe({open:h,placement:o,strategy:c,onOpenChange:u,middleware:r||[Ve(n||4),De(),Le()],whileElementsMounted:Re}),{floatingStyles:m,refs:{setReference:f,setFloating:g},context:y}=p,b=Ke(y,mr(s)),v=ze(y,mr(!(x=i)||x.hover||x.click?x?.click:{enabled:!0}));var x;const k=_e(y,mr(function(e){return!0===e?.hover?{enabled:!0,handleClose:Ge({blockPointerEvents:!0}),restMs:0}:e?.hover}(i))),{getReferenceProps:w,getFloatingProps:N}=Ue([b,v,k]),{isMounted:C,styles:S}=We(y,a.transition);return t(cr.Provider,{value:{...p,close:()=>u(!1)},children:[i&&e("div",{className:V(i.className,"inline-block"),ref:f,...w(),children:i.children}),e(Be,{children:C&&e("div",{ref:g,style:{...m,zIndex:d},...N(),children:e(He,{context:y,children:e("div",{className:V(a.className,"bg-popover rounded-md text-popover-foreground max-w-md"),style:S,children:a.children})})})})]})}function yr(e){return null}function br(e){return null}function vr({percent:t}){return e("div",{className:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700",children:e("div",{className:"bg-blue-600 h-2.5 rounded-full",style:{width:`${t}%`}})})}function xr({className:r,properties:n}){return e(N,{className:r,children:e("tbody",{children:n.map(r=>t("tr",{children:[t("td",{className:"w-1/3 font-semibold gap-2",children:[e("span",{children:r.name}),r.description&&e(C,{description:r.description,placement:"top",children:e(z,{className:"size-3 ml-2 text-muted-foreground"})})]}),e("td",{className:"w-2/3",children:r.value??"undefined"})]},r.name))})})}var kr;function wr(e,t){let r="any"===t.name?void 0:t.isNullable?[t.name,"null"]:t.name;if(t.isArray)if(e.type="array",e.properties=void 0,!e.items||Array.isArray(e.items))e.items={type:r,properties:t.isObject?{}:void 0};else{const n=e.items;n.type=r,t.isObject&&!n.properties&&(n.properties={})}else e.type=r,e.items=void 0,t.isObject?e.properties||(e.properties={}):e.properties=void 0}function Nr(e){let t,r=!1,n=!1;const i=e.type;if(Array.isArray(i))for(const e of i)"null"===e?r=!0:t||(t=e);else t=i;t||(t="any"),"array"===t&&(n=!0,t=function(e){if(!e)return"any";let t;t=Array.isArray(e)?Cr(e[0].type):Cr(e.type);"array"!==t&&"null"!==t||(t="any");return t}(e.items));let s=t;switch(e.editor){case"textarea":s="text";break;case"media":s="media";break;case"document":s="document"}return{isNullable:r,isArray:n,isObject:"object"===t,name:s}}function Cr(e){return e?Array.isArray(e)?e.find(e=>"null"!==e)||"any":e:"any"}pr("trigger",yr),pr("content",br),fr.Trigger=yr,fr.Content=br,function(e){e.string="string",e.number="number",e.integer="integer",e.boolean="boolean",e.object="object",e.any="any",e.text="text",e.media="media",e.document="document"}(kr||(kr={}));let Sr=0;class jr{source;onChange=()=>{};schema;root;constructor(e,t){this.schema=e?"string"==typeof e?JSON.parse(e):e:{title:t,type:"object",properties:{}},this.schema.properties||(this.schema.properties={}),this.root=new Ar("",this.schema,this),this.root.loadChildren()}get isEmpty(){return!this.root.children||0===this.root.children.length}get children(){return this.root.children}reload(){return this.root=new Ar("",this.schema,this),this.root.loadChildren(),this.onChange?.(this),this}withSource(e,t){return this.source={uri:t,name:e},this}withChangeListener(e){return this.onChange=e,this}replaceSchema(e){this.schema=e||{title:this.schema.title,type:"object",properties:{}},this.reload()}clone(){const e=new jr(this.schema);return e.source=this.source,this.onChange&&e.withChangeListener(this.onChange),e}}class Ar{schema;loader;parent;name;isRequired=!1;type;children;constructor(e,t,r,n){if(this.schema=t,this.loader=r,this.parent=n,this.name=e,this.type=Nr(t),this.parent){let t=this.parent._getPropertiesSchema().required;this.isRequired=!(!t||!Array.isArray(t))&&t.includes(e)}}get title(){return this.schema.title}set title(e){this.schema.title=e}get description(){return this.schema.description}set description(e){this.schema.description=e}get isParent(){return this.type.isObject}get isNew(){return!!this.schema.isNew}set isNew(e){e?this.schema.isNew=!0:delete this.schema.isNew}resetIsNew(){const e=this.isNew;return this.isNew=!1,e}getNameSignature(){return`${this.name}${this.isRequired?"":"?"}`}getTypeSignature(){return`${this.type.name}${this.type.isArray?"[]":""}${this.type.isNullable?"?":""}`}getSignature(){return`${this.getNameSignature()}: ${this.getTypeSignature()}`}reloadTree(){this.loader.reload()}loadChildren(){this.children=[],this.schema.items&&this.schema.items.properties?this._loadChildren(this.schema.items.properties):this.schema.properties&&this._loadChildren(this.schema.properties)}_loadChildren(e){for(const t of Object.keys(e)){const r=e[t],n=new Ar(t,r,this.loader,this);this.children.push(n),n.isParent&&n.loadChildren()}}_getPropertiesSchema(){return this.type.isArray&&this.type.isObject?this.schema.items:this.schema}findAvailableChildName(e){const t=this._getPropertiesSchema().properties||{};let r;do{r=e+ ++Sr}while(t[r]);return r}addChild(e,t,r=!1){if(!this.type.isObject)throw new Error("Cannot add child to a non object node");this.children||(this.children=[]);const n=function(e,t,r,n=!1){if("object"!==e.type)throw new Error("Cannot add property to a non-object schema");e.properties||(e.properties={});const i={};return wr(i,r),e.properties[t]=i,n&&(Array.isArray(e.required)?function(e,t){e.includes(t)||e.push(t)}(e.required,t):e.required=[t]),i}(this._getPropertiesSchema(),e,t,r),i=new Ar(e,n,this.loader,this);return this.children.push(i),i}remove(){if(this.parent&&this.parent.type.isObject){return function(e,t){e.properties&&(delete e.properties[t],Array.isArray(e.required)&&(e.required=e.required.filter(e=>e!==t)))}(this.parent._getPropertiesSchema(),this.name),this.parent.children&&(this.parent.children=this.parent.children.filter(e=>e.name!==this.name)),!0}return!1}update(e){let t=!1;null!=e.name&&this.name!==e.name&&(this.parent&&function(e,t,r){if(e.properties){const n=e.properties,i={};for(const e of Object.keys(n)){const s=n[e];e===t?i[r]=s:i[e]=s}e.properties=i}e.required&&(e.required=e.required.map(e=>e===t?r:e))}(this.parent._getPropertiesSchema(),this.name,e.name),this.name=e.name,t=!0),null!=e.isRequired&&this.isRequired!==e.isRequired&&(this.parent&&function(e,t,r){if(Array.isArray(e.required)){const n=e.required.indexOf(t);r?n<0&&e.required.push(t):n>-1&&e.required.splice(n,1)}else r&&(e.required=[t])}(this.parent._getPropertiesSchema(),this.name,e.isRequired),this.isRequired=e.isRequired,t=!0);let r=e.type?.name;"any"===r&&(r=void 0);const n=r!==this.schema.type;return e.type&&(wr(this.schema,e.type),this.type=e.type,this.type.isObject?this.children||(this.children=[]):this.children=void 0,t=!0),this.schema.editor&&null===e.editor?(this.schema.editor=void 0,t=!0):e.editor?(this.schema.editor=e.editor,t=!0):n&&(this.schema.editor=void 0,t=!0),e.description!==this.description&&(this.description=e.description,t=!0),t}getUpdateFromNameAndTypeSignature(e,t){let r=e.trim(),n=!0;r.endsWith("?")&&(r=r.substring(0,r.length-1).trim(),n=!1);const i=function(e){let t=!1,r=!1;(e=e.trim()).endsWith("?")&&(r=!0,e=e.substring(0,e.length-1).trim()),e.endsWith("[]")&&(t=!0,e=e.substring(0,e.length-2).trim());const n=kr[e];if(!n)throw new Error(`Unknown type "${e}"`);return{name:n,isArray:t,isNullable:r,isObject:n===kr.object}}(t);let s;return"text"===i.name?(i.name=kr.string,s="textarea"):"media"===i.name?(i.name=kr.any,s="media"):"document"===i.name?(i.name=kr.any,s="document"):s=null,{name:r,type:i,isRequired:n,editor:s}}updateFromNameAndTypeSignature(e,t){return this.update(this.getUpdateFromNameAndTypeSignature(e,t))}updateFromSignature(e){const t=(e=e.trim()).indexOf(":");if(t<0)throw new Error("Expecting a name and a type separated by a colon");const r=e.substring(0,t),n=e.substring(t+1);return this.updateFromNameAndTypeSignature(r,n)}}function Or(e){return{name:e.getNameSignature(),type:e.getTypeSignature(),description:e.description}}const Pr=function(){const e=Object.values(kr),t=[...e];for(const r of e)t.push(r+"[]");return e.sort(),t}();function $r({value:r,onChange:n,onCancel:i,onSave:s}){const[a,o]=l(!1);if(!r)return null;return t("div",{className:"flex items-center",children:[e("div",{className:"flex-1",children:e(Er,{value:r.name,onChange:e=>{n({...r,name:e})},onCancel:i,onSave:s})}),e("div",{className:"px-1 font-semibold",children:":"}),e("div",{className:"flex-1",children:e(Ir,{value:r.type,onChange:e=>{n({...r,type:e})},onCancel:i,onSave:s})}),t("div",{children:[e(k,{variant:"ghost",size:"xs",onClick:()=>o(!0),title:"Edit description",children:e(_,{className:"size-4"})}),e(Tr,{value:r.description,isOpen:a,onClose:e=>{void 0!==e&&"string"==typeof e&&n({...r,description:e},!0),o(!1)}})]})]})}function Er({value:t,onChange:r,onCancel:n,onSave:i}){const o=s(null);a(()=>{o.current?.focus()},[]);return e("input",{onKeyUp:e=>{switch(e.key){case"Enter":i?.();break;case"Escape":n?.()}},ref:o,value:t,onChange:e=>{r(e.target.value)},className:v.INPUT_UNSTYLED,style:{fontSize:"inherit",width:"",display:"inline"}})}function Ir({value:t,onChange:r,onCancel:n,onSave:i}){return e(S,{className:v.INPUT_UNSTYLED,options:Pr,value:t||"",onBlur:()=>{i?.()},onChange:r,onKeyDown:(e,t)=>{t||("Enter"===e.key?i?.():"Escape"===e.key&&n?.())},popupClass:"schema-type-suggest-popup z-90"})}function Tr({value:r,isOpen:n,onClose:i}){return t(j,{isOpen:n,onClose:i,children:[e(A,{children:"Edit description"}),e(Fr,{value:r,onSave:i})]})}function Fr({value:n,onSave:i}){const o=s(null),[c,d]=l(n||"");return a(()=>{o.current&&o.current.focus()},[o.current]),t(r,{children:[e(O,{className:"h-max",children:e("textarea",{ref:o,className:"dark:bg-gray-800 w-full h-full dark:text-white",value:c,onChange:e=>d(e.target.value)})}),e(P,{children:e(k,{onClick:()=>i(c),children:"Save Changes"})})]})}function Mr({value:r}){return r?t("div",{className:"w-full flex items-baseline",children:[e("div",{children:r.name||""}),e("div",{className:"ml-2 text-sm text-muted",children:r.type||""})]}):null}function Vr(e){const[t,r]=l(new jr(e||{type:"object",properties:{}}).withChangeListener(e=>{r(e.clone())}));return t}const Dr="block text-sm sm:leading-6 rounded-md border-0 py-1.5 px-4",Lr=`${Dr} hover:shadow-xs hover:ring-1 hover:ring-inset hover:ring-ring`,qr=`${Dr} shadow-xs ring-1 ring-inset ring-ring`;function Rr({value:r,onChange:n,onDelete:i,outlineOnHover:s=!1,editOnClick:a=!0,placeholder:o,viewer:c,editor:d,skipClickOutside:h,isEditing:u=!1,readonly:p=!1,onValidate:m}){const{on:f,off:g,isOn:y}=$(u),[b,v]=l();return t("div",{className:"",children:[y&&!p?e(zr,{value:r,onSave:e=>{if(m){const t=m(e);if(t)return void v(t);v(void 0)}n(e)&&g()},onCancel:g,editor:d,skipClickOutside:e=>!!h&&h(e)}):e(Kr,{value:r,onEdit:f,viewer:c,placeholder:o,outlineOnHover:s,editOnClick:a,onDelete:i,readonly:p}),b&&e("div",{className:"text-red-500 text-sm",children:b})]})}function Kr({viewer:r,value:n,onEdit:i,editOnClick:s,outlineOnHover:a,placeholder:o,onDelete:l,readonly:c}){const d="invisible group-hover:visible";return t("div",{tabIndex:0,onKeyUp:e=>{"Enter"===e.key&&i()},onClick:()=>{s&&i()},className:V("flex justify-start items-center group",a?Lr:Dr,{"cursor-pointer":s}),children:[e(r,{value:n,placeholder:o}),t("div",{className:"ml-auto flex space-x-2",children:[!c&&l&&e(k,{variant:"ghost",size:"sm",className:d,onClick:l,children:e(L,{className:"size-4"})}),c?null:e(k,{variant:"ghost",size:"sm",className:d,onClick:i,children:e(U,{className:"size-4"})})]})]})}function zr({editor:t,value:r,onSave:n,onCancel:i,skipClickOutside:a}){const[o,c]=l(r),d=s(r),[h,u]=l(null),p=()=>{n(d.current)},m=E(p,a);return e("div",{ref:m,children:e("div",{className:qr,children:e("div",{className:"w-full",onClick:e=>e.stopPropagation(),children:e(t,{value:o,onChange:(e,t=!1)=>{c(e),d.current=e,t&&(h&&clearTimeout(h),u(setTimeout(()=>{n(e)},500)))},onSave:p,onCancel:i})})})})}function _r(e){const t=e.target;return!(!t.closest||!t.closest(".schema-type-suggest-popup"))}function Ur({schema:r,readonly:n=!1}){return t("ul",{className:"",children:[r.children.map(e=>Wr(e,n)),n?null:e(Jr,{parent:r.root})]})}function Wr(t,r){return t.isParent?e(Hr,{property:t,readonly:r},t.name):e(Br,{node:t,readonly:r},t.name)}function Br({node:t,readonly:r}){return e("li",{children:e(Zr,{property:t,readonly:r})})}function Hr({property:r,readonly:n}){const[i,s]=l(!0);return t("li",{children:[t("div",{className:"flex items-center w-full",children:[e("button",{onClick:()=>s(!i),children:e(i?W:B,{className:"size-4"})}),e("div",{className:"flex-1",children:e(Zr,{property:r,readonly:n})})]}),i&&t("ul",{className:"ml-4 border-l border-gray-400 border-dashed",children:[(r.children||[]).map(e=>Wr(e,n)),n?null:e(Jr,{parent:r})]})]})}function Gr(e){return e?/^[a-zA-Z0-9_]+[?]?$/.test(e)?void 0:"Only letters, numbers, underscores or question mark are allowed (a-zA-Z0-9_?)":"Name is required"}function Zr({property:t,readonly:r}){const n=I(),i=t.resetIsNew(),s=Or(t);return e(Rr,{value:s,onChange:e=>{try{e.description&&"string"!=typeof e.description&&(e.description=void 0);const r=t.getUpdateFromNameAndTypeSignature(e.name,e.type);t.update({...r,description:e.description})&&t.reloadTree()}catch(e){return n({status:"error",title:"Invalid property declaration",description:e.message,duration:9e3}),!1}return!0},onDelete:()=>{t.remove(),t.reloadTree()},editor:$r,viewer:Mr,outlineOnHover:!0,isEditing:i,skipClickOutside:_r,readonly:r,onValidate:e=>Gr(e.name)})}function Jr({parent:r}){return t(k,{variant:"ghost",onClick:()=>{const e=r.findAvailableChildName("new_property_");r.addChild(e,{isObject:!1,isArray:!1,isNullable:!1,name:kr.string},!0).isNew=!0,r.reloadTree()},children:[e(D,{className:"size-4"}),"Add property"]})}function Xr({content:t,...r}){const n=s(null);return a(()=>{if(!n.current)return;const e=(new DOMParser).parseFromString(t,"image/svg+xml").querySelector("svg");if(!e)return console.warn("SvgIcon: No <svg> element found in provided string"),void(n.current.innerHTML="");r&&Object.entries(r).forEach(([t,r])=>{if(null==r)return;const n="className"===t?"class":t;e.setAttribute(n,String(r))}),n.current.innerHTML="",n.current.appendChild(e)},[t,r]),e("span",{ref:n})}function Yr(t){return r=>e(Xr,{content:t,...r})}function Qr({onDrop:r,message:n,buttonLabel:i="Upload Files",allowFolders:a=!0,className:o=""}){const[c,d]=l(!1),h=s(null),u=e=>{if(e.target.files&&e.target.files.length>0){const t=Array.from(e.target.files);if(t.some(e=>e.webkitRelativePath&&e.webkitRelativePath.includes("/"))){const e=new Set(t.map(e=>e.webkitRelativePath?.split("/")[0]).filter(Boolean)).size,n=t.length,i=1===e?`Preparing to upload 1 folder with ${n} files...`:`Preparing to upload ${e} folders with ${n} files...`,s={count:t.length,message:i};r(t,s)}else{const e={count:t.length,message:`Preparing to upload ${t.length} file${1===t.length?"":"s"}...`};r(t,e)}}};return t("div",{className:`flex flex-col items-center justify-center py-12 border-2 rounded-lg transition-colors ${c?"border-color-primary bg-color-primary/10":"border-dashed border-color-border"} ${o}`,onDragOver:e=>{e.preventDefault(),e.dataTransfer.types.includes("Files")&&d(!0)},onDragLeave:e=>{e.preventDefault(),h.current&&!h.current.contains(e.relatedTarget)&&d(!1)},onDrop:async e=>{if(e.preventDefault(),d(!1),e.dataTransfer.items&&e.dataTransfer.items.length>0){const t=Array.from(e.dataTransfer.items),n=[],i=new Set,s=async e=>{if(e.isFile){const t=await new Promise(t=>{e.file(r=>{Object.defineProperty(r,"webkitRelativePath",{writable:!0,value:e.fullPath.substring(1)}),t(r)})});!t.name.startsWith(".")&&t.size>0&&n.push(t);const r=e.fullPath.substring(1).split("/").slice(0,-1).join("/");r&&i.add(r)}else if(e.isDirectory){const t=e.createReader(),r=await new Promise(e=>{t.readEntries(t=>{e(t)})});await Promise.all(r.map(s));const n=e.fullPath.substring(1);n&&i.add(n)}};try{if(await Promise.all(t.map(e=>{const t=e.webkitGetAsEntry?e.webkitGetAsEntry():e;return t?s(t):Promise.resolve()})),n.length>0){const e=new Set(Array.from(i).map(e=>e.split("/")[0]).filter(Boolean)).size,t=n.length;let s="";s=e>0?1===e?`Preparing to upload 1 folder with ${t} files...`:`Preparing to upload ${e} folders with ${t} files...`:`Preparing to upload ${t} file${1===t?"":"s"}...`,r(n,{count:n.length,message:s})}}catch(t){console.error("Error processing dropped files:",t);const n=Array.from(e.dataTransfer.files);n.length>0&&r(n)}}else if(e.dataTransfer.files&&e.dataTransfer.files.length>0){const t=Array.from(e.dataTransfer.files);r(t)}},children:[e(H,{className:"h-12 w-12 mb-3 transition-colors "+(c?"text-primary":"text-muted/50")}),e("p",{className:"text-muted",children:n}),t("div",{className:"flex gap-2 justify-center mt-2",children:[e(k,{onClick:()=>{const e=document.createElement("input");e.type="file",e.multiple=!0,e.accept="*",e?.click(),e.onchange=e=>{u(e)}},children:i}),a&&e(k,{onClick:()=>{const e=document.createElement("input");e.type="file",e.multiple=!0,e.accept="*",e.webkitdirectory=!0,e?.click(),e.onchange=e=>{u(e)}},children:"Select Folder"})]})]})}function en({title:r,count:n,icon:i=e(G,{className:"h-4 w-4 text-green-500"}),items:s}){const[a,o]=l(!1);return t("div",{className:"border border-color-border rounded-md overflow-hidden",children:[t("div",{className:"flex items-center justify-between p-3 bg-color-muted/10 cursor-pointer",onClick:()=>o(!a),children:[t("div",{className:"flex items-center",children:[e("span",{className:"mr-2",children:i}),e("span",{className:"font-medium",children:r}),e("span",{className:"ml-2 px-2 py-0.5 bg-color-muted/20 rounded-full text-xs",children:n})]}),e("button",{className:"text-muted",children:e("svg",{className:"h-5 w-5 transition-transform "+(a?"transform rotate-180":""),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),a&&e("div",{className:"p-3 border-t border-color-border max-h-48 overflow-y-auto",children:s.length>0?e("ul",{className:"space-y-1",children:s.map((t,r)=>e("li",{className:"text-sm py-1 px-2 rounded hover:bg-color-muted/10",children:t},r))}):e("div",{className:"text-sm text-muted py-2",children:"No items to display"})})]})}function tn({files:r,className:n="",location:i,collection:s}){const a=r.filter(e=>"success"===e.status),o=r.filter(e=>"updated"===e.status),l=r.filter(e=>"skipped"===e.status),c=r.filter(e=>"failed"===e.status),d=a.length,h=o.length,u=l.length,p=c.length,m=r.length;return t("div",{className:`flex flex-col py-2 ${n}`,children:[t("div",{className:"flex items-center mb-4",children:[e("div",{className:"size-8 mr-4 rounded-full bg-success/10 flex items-center justify-center",children:e(G,{className:"size-4 text-success"})}),e("div",{children:t("p",{className:"text-muted",children:[m," file",1!==m?"s":""," processed",s?` in collection '${s}'`:"",i?` in folder '${i}'`:""]})})]}),t("div",{className:"space-y-3 mt-2",children:[d>0&&e(en,{title:"Successfully Uploaded",count:d,icon:e(G,{className:"h-4 w-4 text-green-500"}),items:a.map(e=>e.name)}),h>0&&e(en,{title:"Successfully Updated",count:h,icon:e(G,{className:"h-4 w-4 text-blue-500"}),items:o.map(e=>e.name)}),u>0&&e(en,{title:"Skipped (Already Existed)",count:u,icon:e(Z,{className:"h-4 w-4 text-amber-500"}),items:l.map(e=>e.name)}),p>0&&e(en,{title:"Failed to Upload",count:p,icon:e(J,{className:"h-4 w-4 text-red-500"}),items:c.map(e=>e.name)})]})]})}const rn="#text",nn="#comment",sn="#cdata",an="DECLARATION_TAG",on={tagColor:"#d43900",textColor:"#333",attributeKeyColor:"#2a7ab0",attributeValueColor:"#008000",separatorColor:"#333",commentColor:"#aaa",cdataColor:"#1d781d",fontFamily:"monospace"},ln={attributeKeyColor:"#FFD700",attributeValueColor:"#FF4500",tagColor:"#87CEFA",textColor:"#00FF00",separatorColor:"#FFD700",commentColor:"#BEBEBE",cdataColor:"#33CC66",fontFamily:"monospace"},cn=d({theme:on,collapsible:!1,indentSize:2}),dn=()=>h(cn),hn=new Ze({preserveOrder:!0,ignoreAttributes:!1,attributeNamePrefix:"",allowBooleanAttributes:!0,commentPropName:nn,cdataPropName:sn,parseTagValue:!1});function un(r){const{indentation:n,children:i,isInline:s}=r,{theme:a}=dn();return t("div",{style:{color:a.cdataColor},children:[e("span",{children:`${n}<![CDATA[`}),i,e("span",{children:`${s?"":n}]]>`})]})}function pn(t){const{collapsible:r,theme:n}=dn(),{collapsed:i}=t;return r?e("span",{style:{position:"relative"},children:e("span",{style:{position:"absolute",right:"0",border:0,padding:0,background:"none"},children:e(mn,{fill:n.separatorColor,style:{transform:`rotate(${i?0:90}deg)`,transition:"transform 0.2s"}})})}):null}function mn({...t}){return e("svg",{width:"16px",height:"16px",viewBox:"0 0 24 24",...t,children:e("path",{d:"M9 17.898C9 18.972 10.2649 19.546 11.0731 18.8388L17.3838 13.3169C18.1806 12.6197 18.1806 11.3801 17.3838 10.6829L11.0731 5.16108C10.2649 4.45388 9 5.02785 9 6.1018V17.898Z"})})}function fn(e){const{collapsible:t,initialCollapsedDepth:r}=dn(),[n,i]=l(()=>!(Xe(r)||!t)&&e>=r);return a(()=>{i(!(Xe(r)||!t)&&e>=r)},[r,e,t]),{collapsed:n,buttonProps:t?{onClick:()=>i(e=>!e),role:"button",style:{cursor:"pointer"}}:{}}}function gn(r){const{indentation:n,children:i,isInline:s,level:a}=r,{theme:o}=dn(),{collapsed:l,buttonProps:c}=fn(a);return t("div",{style:{color:o.commentColor},children:[t("span",{...c,children:[e("span",{children:n}),e(pn,{collapsed:l}),e("span",{children:"\x3c!-- "})]}),!l&&i,l&&"...",e("span",{children:`${s||l?" ":n}--\x3e`})]})}function yn(r){const{attributes:n}=r,{theme:i}=dn();return n?e("span",{children:Object.entries(n).map(([r,n])=>t("span",{children:[e("span",{style:{color:i.attributeKeyColor},children:` ${r}`}),e("span",{style:{color:i.separatorColor},children:"="}),e("span",{style:{color:i.attributeValueColor},children:`"${n}"`})]},`attribute-${r}`))}):null}function bn(r){const{indentation:n,tagKey:i,attributes:s}=r,{theme:a}=dn();return t("div",{children:[e("span",{style:{color:a.separatorColor},children:`${n}<?`}),e("span",{style:{color:a.tagColor},children:`${i.slice(1)}`}),e(yn,{attributes:s}),e("span",{style:{color:a.separatorColor},children:"?>"})]})}function vn(e){return"string"==typeof e&&e.includes("\n")}function xn(e){const t=e[":@"],r=Ye(e,":@"),[[n,i]]=Object.entries(r),s=function(e){switch(e){case rn:case sn:case nn:return e;default:return e.startsWith("?")?an:"TAG"}}(n);return{attributes:t,tagKey:n,subElements:i,type:s}}function kn(e){return!!e&&Object.keys(e).length>0}function wn(n){const{indentation:i,tagKey:s,attributes:a,children:o,isInline:l,hasChildren:c,level:d}=n,{collapsed:h,buttonProps:u}=fn(d),{theme:p}=dn();return t("div",{children:[t("span",{...u,children:[e("span",{children:i}),e(pn,{collapsed:h}),e("span",{style:{color:p.separatorColor},children:"<"}),e("span",{style:{color:p.tagColor},children:`${s}`}),!h&&e(yn,{attributes:a}),h&&kn(a)&&" ...",e("span",{style:{color:p.separatorColor},children:c?">":" />"})]}),c&&t(r,{children:[!h&&o,h&&"...",e("span",{style:{color:p.separatorColor},children:`${l||h?"":i}</`}),e("span",{style:{color:p.tagColor},children:`${s}`}),e("span",{style:{color:p.separatorColor},children:">"})]})]})}function Nn(t){const{hasSiblings:r,text:n,indentation:i,isText:s}=t,{theme:a}=dn(),o=s?{color:a.textColor}:void 0;return vn(n)||r?e("div",{style:o,children:n.split("\n").filter(e=>!!e.trim()).map((t,r)=>e("div",{children:`${i}${t.trim()}`},`${r}`))}):e("span",{style:o,children:n})}function Cn(t){const{elements:n,level:i=0,isText:s=!0}=t,{indentSize:a}=dn();return Array.isArray(n)&&0!==n.length?e(r,{children:n.map((t,r)=>{const{tagKey:o,attributes:l,subElements:c,type:d}=xn(t),h=n.length>1,u=function(e,t){return new Array(t*e+1).join(" ")}(a,i),p=`${i}-${r}`,m=function(e){return"string"!=typeof e&&1===e.length&&rn in e[0]&&!vn(e[0][rn])}(c);switch(d){case rn:return e(Nn,{text:c,indentation:u,hasSiblings:h,isText:s},p);case nn:return e(gn,{isInline:m,indentation:u,level:i,children:e(Cn,{elements:c,level:i+1,isText:!1})},p);case sn:return e(un,{indentation:u,isInline:m,children:e(Cn,{elements:c,level:i+1,isText:!1})},p);case an:return e(bn,{indentation:u,tagKey:o,attributes:l},p);default:return e(wn,{indentation:u,tagKey:o,attributes:l,isInline:m,hasChildren:c.length>0,level:i,children:e(Cn,{elements:c,level:i+1})},p)}})}):null}function Sn(){return e("div",{children:"Invalid XML!"})}function jn(t){const{theme:r,xml:n,collapsible:i=!1,indentSize:s=2,invalidXml:c,initalCollapsedDepth:d,initialCollapsedDepth:h}=t,[u,p]=l(()=>document.documentElement.classList.contains("dark"));a(()=>{const e=document.documentElement,t=new MutationObserver(()=>{p(e.classList.contains("dark"))});return t.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>t.disconnect()},[]);const m=o(()=>({...u?ln:on,...r}),[u,r]),{json:f,valid:g}=function(e){return o(()=>{try{if(!Je.validate(e))throw new Error("Invalid XML!");const t=hn.parse(e);if("string"==typeof e&&e.trim().length>0&&0===t.length)throw new Error("Invalid XML!");return{json:t,valid:!0}}catch(e){return{json:null,valid:!1,errorMessage:`Fail to parse: ${e.message}`}}},[e])}(n),y=o(()=>({theme:m,collapsible:i,indentSize:s,initialCollapsedDepth:h??d}),[m,i,s,d,h]);return g?e(cn.Provider,{value:y,children:e("div",{className:"rxv-container",style:{whiteSpace:"pre-wrap",fontFamily:m.fontFamily,overflowWrap:"break-word"},children:e(Cn,{elements:f})})}):c||e(Sn,{})}export{Nt as ArrayPropertySchema,rt as CodeMirrorEditor,Qr as DropZone,at as FieldSetContextProvider,pt as Form,lt as FormContext,ht as FormContextProvider,Vt as FormError,Mt as FormHelper,Ft as FormLabel,ft as GeneratedForm,ut as Input,Wt as JSONCode,er as JSONDisplay,Bt as JSONView,It as ManageObjectEntry,Et as ManagedListProperty,Ot as ManagedObject,At as ManagedObjectBase,Pt as ManagedObjectProperty,$t as ManagedProperty,Tt as ManagedScalarEntry,jr as ManagedSchema,lr as MarkdownRenderer,it as MonacoEditor,jt as Node,fr as Popover,cr as PopoverContext,vr as Progress,xr as PropertiesView,$r as PropertyEditor,Er as PropertyNameEditor,wt as PropertySchema,Mr as PropertyViewer,yt as ScalarField,kt as Schema,Ur as SchemaEditor,Ar as SchemaNode,Xr as SvgIcon,en as UploadResultCategory,tn as UploadSummary,nt as VEditorApi,jn as XMLViewer,Ct as computeTitleFromName,Yr as createSvgIcon,Or as getEditableSchemaProperty,ot as useFieldSet,dt as useForm,dr as usePopoverContext,Vr as useSchema,Gr as validatePropertyName};
|
|
2
|
-
//# sourceMappingURL=vertesia-ui-widgets.js.map
|