@parhelia/core 0.1.11004 → 0.1.11007
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dist/agents-view/AgentCard.d.ts +12 -0
- package/dist/dist/agents-view/AgentCard.js +30 -0
- package/dist/dist/agents-view/AgentCard.js.map +1 -0
- package/dist/dist/agents-view/AgentsView.d.ts +5 -0
- package/dist/dist/agents-view/AgentsView.js +255 -0
- package/dist/dist/agents-view/AgentsView.js.map +1 -0
- package/dist/dist/agents-view/ProfileAgentsGroup.d.ts +17 -0
- package/dist/dist/agents-view/ProfileAgentsGroup.js +13 -0
- package/dist/dist/agents-view/ProfileAgentsGroup.js.map +1 -0
- package/dist/dist/client-components/api.d.ts +1 -0
- package/dist/dist/client-components/api.js +4 -0
- package/dist/dist/client-components/api.js.map +1 -0
- package/dist/dist/client-components/index.d.ts +17 -0
- package/dist/dist/client-components/index.js +18 -0
- package/dist/dist/client-components/index.js.map +1 -0
- package/dist/dist/components/ActionButton.d.ts +14 -0
- package/dist/dist/components/ActionButton.js +6 -0
- package/dist/dist/components/ActionButton.js.map +1 -0
- package/dist/dist/components/Error.d.ts +9 -0
- package/dist/dist/components/Error.js +24 -0
- package/dist/dist/components/Error.js.map +1 -0
- package/dist/dist/components/FilterInput.d.ts +22 -0
- package/dist/dist/components/FilterInput.js +29 -0
- package/dist/dist/components/FilterInput.js.map +1 -0
- package/dist/dist/components/index.d.ts +7 -0
- package/dist/dist/components/index.js +5 -0
- package/dist/dist/components/index.js.map +1 -0
- package/dist/dist/components/ui/CardConnector.d.ts +4 -0
- package/dist/dist/components/ui/CardConnector.js +6 -0
- package/dist/dist/components/ui/CardConnector.js.map +1 -0
- package/dist/dist/components/ui/LanguageSelector.d.ts +8 -0
- package/dist/dist/components/ui/LanguageSelector.js +53 -0
- package/dist/dist/components/ui/LanguageSelector.js.map +1 -0
- package/dist/dist/components/ui/PlaceholderInput.d.ts +41 -0
- package/dist/dist/components/ui/PlaceholderInput.js +160 -0
- package/dist/dist/components/ui/PlaceholderInput.js.map +1 -0
- package/dist/dist/components/ui/PlaceholderInputTypes.d.ts +41 -0
- package/dist/dist/components/ui/PlaceholderInputTypes.js +48 -0
- package/dist/dist/components/ui/PlaceholderInputTypes.js.map +1 -0
- package/dist/dist/components/ui/PlaceholderItemSelector.d.ts +7 -0
- package/dist/dist/components/ui/PlaceholderItemSelector.js +154 -0
- package/dist/dist/components/ui/PlaceholderItemSelector.js.map +1 -0
- package/dist/dist/components/ui/alert.d.ts +7 -0
- package/dist/dist/components/ui/alert.js +21 -0
- package/dist/dist/components/ui/alert.js.map +1 -0
- package/dist/dist/components/ui/badge.d.ts +9 -0
- package/dist/dist/components/ui/badge.js +23 -0
- package/dist/dist/components/ui/badge.js.map +1 -0
- package/dist/dist/components/ui/button.d.ts +10 -0
- package/dist/dist/components/ui/button.js +33 -0
- package/dist/dist/components/ui/button.js.map +1 -0
- package/dist/dist/components/ui/calendar.d.ts +7 -0
- package/dist/dist/components/ui/calendar.js +58 -0
- package/dist/dist/components/ui/calendar.js.map +1 -0
- package/dist/dist/components/ui/card.d.ts +19 -0
- package/dist/dist/components/ui/card.js +78 -0
- package/dist/dist/components/ui/card.js.map +1 -0
- package/dist/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/dist/components/ui/checkbox.js +10 -0
- package/dist/dist/components/ui/checkbox.js.map +1 -0
- package/dist/dist/components/ui/command.d.ts +18 -0
- package/dist/dist/components/ui/command.js +35 -0
- package/dist/dist/components/ui/command.js.map +1 -0
- package/dist/dist/components/ui/context-menu.d.ts +53 -0
- package/dist/dist/components/ui/context-menu.js +290 -0
- package/dist/dist/components/ui/context-menu.js.map +1 -0
- package/dist/dist/components/ui/copy-button.d.ts +10 -0
- package/dist/dist/components/ui/copy-button.js +61 -0
- package/dist/dist/components/ui/copy-button.js.map +1 -0
- package/dist/dist/components/ui/dialog.d.ts +16 -0
- package/dist/dist/components/ui/dialog.js +37 -0
- package/dist/dist/components/ui/dialog.js.map +1 -0
- package/dist/dist/components/ui/dropdown-menu.d.ts +25 -0
- package/dist/dist/components/ui/dropdown-menu.js +52 -0
- package/dist/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/dist/components/ui/input.d.ts +3 -0
- package/dist/dist/components/ui/input.js +9 -0
- package/dist/dist/components/ui/input.js.map +1 -0
- package/dist/dist/components/ui/label.d.ts +5 -0
- package/dist/dist/components/ui/label.js +9 -0
- package/dist/dist/components/ui/label.js.map +1 -0
- package/dist/dist/components/ui/menubar.d.ts +26 -0
- package/dist/dist/components/ui/menubar.js +55 -0
- package/dist/dist/components/ui/menubar.js.map +1 -0
- package/dist/dist/components/ui/paste-button.d.ts +14 -0
- package/dist/dist/components/ui/paste-button.js +114 -0
- package/dist/dist/components/ui/paste-button.js.map +1 -0
- package/dist/dist/components/ui/popover.d.ts +11 -0
- package/dist/dist/components/ui/popover.js +66 -0
- package/dist/dist/components/ui/popover.js.map +1 -0
- package/dist/dist/components/ui/progress.d.ts +7 -0
- package/dist/dist/components/ui/progress.js +9 -0
- package/dist/dist/components/ui/progress.js.map +1 -0
- package/dist/dist/components/ui/select.d.ts +18 -0
- package/dist/dist/components/ui/select.js +34 -0
- package/dist/dist/components/ui/select.js.map +1 -0
- package/dist/dist/components/ui/sonner.d.ts +3 -0
- package/dist/dist/components/ui/sonner.js +16 -0
- package/dist/dist/components/ui/sonner.js.map +1 -0
- package/dist/dist/components/ui/switch.d.ts +4 -0
- package/dist/dist/components/ui/switch.js +9 -0
- package/dist/dist/components/ui/switch.js.map +1 -0
- package/dist/dist/components/ui/tabs.d.ts +17 -0
- package/dist/dist/components/ui/tabs.js +27 -0
- package/dist/dist/components/ui/tabs.js.map +1 -0
- package/dist/dist/components/ui/textarea.d.ts +3 -0
- package/dist/dist/components/ui/textarea.js +11 -0
- package/dist/dist/components/ui/textarea.js.map +1 -0
- package/dist/dist/components/ui/tooltip.d.ts +9 -0
- package/dist/dist/components/ui/tooltip.js +18 -0
- package/dist/dist/components/ui/tooltip.js.map +1 -0
- package/dist/dist/components/ui/upload-button.d.ts +15 -0
- package/dist/dist/components/ui/upload-button.js +56 -0
- package/dist/dist/components/ui/upload-button.js.map +1 -0
- package/dist/dist/config/config.d.ts +24 -0
- package/dist/dist/config/config.js +1088 -0
- package/dist/dist/config/config.js.map +1 -0
- package/dist/dist/config/types.d.ts +244 -0
- package/dist/dist/config/types.js +2 -0
- package/dist/dist/config/types.js.map +1 -0
- package/dist/dist/editor/AspectRatioSelector.d.ts +13 -0
- package/dist/dist/editor/AspectRatioSelector.js +71 -0
- package/dist/dist/editor/AspectRatioSelector.js.map +1 -0
- package/dist/dist/editor/ComponentInfo.d.ts +4 -0
- package/dist/dist/editor/ComponentInfo.js +41 -0
- package/dist/dist/editor/ComponentInfo.js.map +1 -0
- package/dist/dist/editor/ConfirmationDialog.d.ts +19 -0
- package/dist/dist/editor/ConfirmationDialog.js +31 -0
- package/dist/dist/editor/ConfirmationDialog.js.map +1 -0
- package/dist/dist/editor/ContentTree.d.ts +39 -0
- package/dist/dist/editor/ContentTree.js +602 -0
- package/dist/dist/editor/ContentTree.js.map +1 -0
- package/dist/dist/editor/ContextMenu.d.ts +15 -0
- package/dist/dist/editor/ContextMenu.js +239 -0
- package/dist/dist/editor/ContextMenu.js.map +1 -0
- package/dist/dist/editor/Editor.d.ts +12 -0
- package/dist/dist/editor/Editor.js +116 -0
- package/dist/dist/editor/Editor.js.map +1 -0
- package/dist/dist/editor/EditorWarning.d.ts +5 -0
- package/dist/dist/editor/EditorWarning.js +12 -0
- package/dist/dist/editor/EditorWarning.js.map +1 -0
- package/dist/dist/editor/EditorWarnings.d.ts +9 -0
- package/dist/dist/editor/EditorWarnings.js +19 -0
- package/dist/dist/editor/EditorWarnings.js.map +1 -0
- package/dist/dist/editor/FieldActionsOverlay.d.ts +18 -0
- package/dist/dist/editor/FieldActionsOverlay.js +201 -0
- package/dist/dist/editor/FieldActionsOverlay.js.map +1 -0
- package/dist/dist/editor/FieldEditorPopup.d.ts +10 -0
- package/dist/dist/editor/FieldEditorPopup.js +23 -0
- package/dist/dist/editor/FieldEditorPopup.js.map +1 -0
- package/dist/dist/editor/FieldHistory.d.ts +7 -0
- package/dist/dist/editor/FieldHistory.js +45 -0
- package/dist/dist/editor/FieldHistory.js.map +1 -0
- package/dist/dist/editor/FieldList.d.ts +19 -0
- package/dist/dist/editor/FieldList.js +90 -0
- package/dist/dist/editor/FieldList.js.map +1 -0
- package/dist/dist/editor/FieldListField.d.ts +16 -0
- package/dist/dist/editor/FieldListField.js +286 -0
- package/dist/dist/editor/FieldListField.js.map +1 -0
- package/dist/dist/editor/FieldListFieldWithFallbacks.d.ts +11 -0
- package/dist/dist/editor/FieldListFieldWithFallbacks.js +120 -0
- package/dist/dist/editor/FieldListFieldWithFallbacks.js.map +1 -0
- package/dist/dist/editor/FloatingToolbar.d.ts +7 -0
- package/dist/dist/editor/FloatingToolbar.js +91 -0
- package/dist/dist/editor/FloatingToolbar.js.map +1 -0
- package/dist/dist/editor/ImageEditButton.d.ts +27 -0
- package/dist/dist/editor/ImageEditButton.js +22 -0
- package/dist/dist/editor/ImageEditButton.js.map +1 -0
- package/dist/dist/editor/ImageEditor.d.ts +5 -0
- package/dist/dist/editor/ImageEditor.js +76 -0
- package/dist/dist/editor/ImageEditor.js.map +1 -0
- package/dist/dist/editor/ItemInfo.d.ts +4 -0
- package/dist/dist/editor/ItemInfo.js +60 -0
- package/dist/dist/editor/ItemInfo.js.map +1 -0
- package/dist/dist/editor/LinkEditorDialog.d.ts +18 -0
- package/dist/dist/editor/LinkEditorDialog.js +101 -0
- package/dist/dist/editor/LinkEditorDialog.js.map +1 -0
- package/dist/dist/editor/MainLayout.d.ts +12 -0
- package/dist/dist/editor/MainLayout.js +124 -0
- package/dist/dist/editor/MainLayout.js.map +1 -0
- package/dist/dist/editor/MobileLayout.d.ts +2 -0
- package/dist/dist/editor/MobileLayout.js +34 -0
- package/dist/dist/editor/MobileLayout.js.map +1 -0
- package/dist/dist/editor/NewEditorClient.d.ts +5 -0
- package/dist/dist/editor/NewEditorClient.js +7 -0
- package/dist/dist/editor/NewEditorClient.js.map +1 -0
- package/dist/dist/editor/PictureCropper.d.ts +6 -0
- package/dist/dist/editor/PictureCropper.js +722 -0
- package/dist/dist/editor/PictureCropper.js.map +1 -0
- package/dist/dist/editor/PictureEditor.d.ts +9 -0
- package/dist/dist/editor/PictureEditor.js +180 -0
- package/dist/dist/editor/PictureEditor.js.map +1 -0
- package/dist/dist/editor/PictureEditorDialog.d.ts +8 -0
- package/dist/dist/editor/PictureEditorDialog.js +195 -0
- package/dist/dist/editor/PictureEditorDialog.js.map +1 -0
- package/dist/dist/editor/QuickItemSwitcher.d.ts +9 -0
- package/dist/dist/editor/QuickItemSwitcher.js +78 -0
- package/dist/dist/editor/QuickItemSwitcher.js.map +1 -0
- package/dist/dist/editor/ScrollingContentTree.d.ts +10 -0
- package/dist/dist/editor/ScrollingContentTree.js +48 -0
- package/dist/dist/editor/ScrollingContentTree.js.map +1 -0
- package/dist/dist/editor/SetupLoadingScreen.d.ts +5 -0
- package/dist/dist/editor/SetupLoadingScreen.js +11 -0
- package/dist/dist/editor/SetupLoadingScreen.js.map +1 -0
- package/dist/dist/editor/Titlebar.d.ts +1 -0
- package/dist/dist/editor/Titlebar.js +46 -0
- package/dist/dist/editor/Titlebar.js.map +1 -0
- package/dist/dist/editor/ai/AgentCostDisplay.d.ts +32 -0
- package/dist/dist/editor/ai/AgentCostDisplay.js +93 -0
- package/dist/dist/editor/ai/AgentCostDisplay.js.map +1 -0
- package/dist/dist/editor/ai/AgentDocumentList.d.ts +8 -0
- package/dist/dist/editor/ai/AgentDocumentList.js +132 -0
- package/dist/dist/editor/ai/AgentDocumentList.js.map +1 -0
- package/dist/dist/editor/ai/AgentHistory.d.ts +11 -0
- package/dist/dist/editor/ai/AgentHistory.js +12 -0
- package/dist/dist/editor/ai/AgentHistory.js.map +1 -0
- package/dist/dist/editor/ai/AgentProfilesOverview.d.ts +9 -0
- package/dist/dist/editor/ai/AgentProfilesOverview.js +16 -0
- package/dist/dist/editor/ai/AgentProfilesOverview.js.map +1 -0
- package/dist/dist/editor/ai/AgentStatusBadge.d.ts +26 -0
- package/dist/dist/editor/ai/AgentStatusBadge.js +126 -0
- package/dist/dist/editor/ai/AgentStatusBadge.js.map +1 -0
- package/dist/dist/editor/ai/AgentTerminal.d.ts +14 -0
- package/dist/dist/editor/ai/AgentTerminal.js +3012 -0
- package/dist/dist/editor/ai/AgentTerminal.js.map +1 -0
- package/dist/dist/editor/ai/Agents.d.ts +4 -0
- package/dist/dist/editor/ai/Agents.js +891 -0
- package/dist/dist/editor/ai/Agents.js.map +1 -0
- package/dist/dist/editor/ai/AiResponseMessage.d.ts +18 -0
- package/dist/dist/editor/ai/AiResponseMessage.js +684 -0
- package/dist/dist/editor/ai/AiResponseMessage.js.map +1 -0
- package/dist/dist/editor/ai/ContextInfoBar.d.ts +14 -0
- package/dist/dist/editor/ai/ContextInfoBar.js +432 -0
- package/dist/dist/editor/ai/ContextInfoBar.js.map +1 -0
- package/dist/dist/editor/ai/DancingDots.d.ts +1 -0
- package/dist/dist/editor/ai/DancingDots.js +6 -0
- package/dist/dist/editor/ai/DancingDots.js.map +1 -0
- package/dist/dist/editor/ai/MediaImage.d.ts +6 -0
- package/dist/dist/editor/ai/MediaImage.js +38 -0
- package/dist/dist/editor/ai/MediaImage.js.map +1 -0
- package/dist/dist/editor/ai/ToolCallDisplay.d.ts +45 -0
- package/dist/dist/editor/ai/ToolCallDisplay.js +292 -0
- package/dist/dist/editor/ai/ToolCallDisplay.js.map +1 -0
- package/dist/dist/editor/ai/aiPageModel.d.ts +24 -0
- package/dist/dist/editor/ai/aiPageModel.js +97 -0
- package/dist/dist/editor/ai/aiPageModel.js.map +1 -0
- package/dist/dist/editor/ai/editorAiContext.d.ts +10 -0
- package/dist/dist/editor/ai/editorAiContext.js +10 -0
- package/dist/dist/editor/ai/editorAiContext.js.map +1 -0
- package/dist/dist/editor/ai/types.d.ts +30 -0
- package/dist/dist/editor/ai/types.js +2 -0
- package/dist/dist/editor/ai/types.js.map +1 -0
- package/dist/dist/editor/ai/useAgentStatus.d.ts +14 -0
- package/dist/dist/editor/ai/useAgentStatus.js +203 -0
- package/dist/dist/editor/ai/useAgentStatus.js.map +1 -0
- package/dist/dist/editor/client/AboutDialog.d.ts +2 -0
- package/dist/dist/editor/client/AboutDialog.js +23 -0
- package/dist/dist/editor/client/AboutDialog.js.map +1 -0
- package/dist/dist/editor/client/EditorShell.d.ts +37 -0
- package/dist/dist/editor/client/EditorShell.js +2283 -0
- package/dist/dist/editor/client/EditorShell.js.map +1 -0
- package/dist/dist/editor/client/GenericDialog.d.ts +10 -0
- package/dist/dist/editor/client/GenericDialog.js +25 -0
- package/dist/dist/editor/client/GenericDialog.js.map +1 -0
- package/dist/dist/editor/client/editContext.d.ts +262 -0
- package/dist/dist/editor/client/editContext.js +29 -0
- package/dist/dist/editor/client/editContext.js.map +1 -0
- package/dist/dist/editor/client/fieldModificationStore.d.ts +25 -0
- package/dist/dist/editor/client/fieldModificationStore.js +184 -0
- package/dist/dist/editor/client/fieldModificationStore.js.map +1 -0
- package/dist/dist/editor/client/helpers.d.ts +12 -0
- package/dist/dist/editor/client/helpers.js +29 -0
- package/dist/dist/editor/client/helpers.js.map +1 -0
- package/dist/dist/editor/client/hooks/useEditorUrlSync.d.ts +18 -0
- package/dist/dist/editor/client/hooks/useEditorUrlSync.js +56 -0
- package/dist/dist/editor/client/hooks/useEditorUrlSync.js.map +1 -0
- package/dist/dist/editor/client/hooks/useEditorWebSocket.d.ts +11 -0
- package/dist/dist/editor/client/hooks/useEditorWebSocket.js +86 -0
- package/dist/dist/editor/client/hooks/useEditorWebSocket.js.map +1 -0
- package/dist/dist/editor/client/hooks/useGlobalEditorKeyDown.d.ts +1 -0
- package/dist/dist/editor/client/hooks/useGlobalEditorKeyDown.js +12 -0
- package/dist/dist/editor/client/hooks/useGlobalEditorKeyDown.js.map +1 -0
- package/dist/dist/editor/client/hooks/useMediaQuery.d.ts +1 -0
- package/dist/dist/editor/client/hooks/useMediaQuery.js +19 -0
- package/dist/dist/editor/client/hooks/useMediaQuery.js.map +1 -0
- package/dist/dist/editor/client/hooks/useMediaSelector.d.ts +12 -0
- package/dist/dist/editor/client/hooks/useMediaSelector.js +30 -0
- package/dist/dist/editor/client/hooks/useMediaSelector.js.map +1 -0
- package/dist/dist/editor/client/hooks/useQuota.d.ts +29 -0
- package/dist/dist/editor/client/hooks/useQuota.js +53 -0
- package/dist/dist/editor/client/hooks/useQuota.js.map +1 -0
- package/dist/dist/editor/client/hooks/useSocketMessageHandler.d.ts +35 -0
- package/dist/dist/editor/client/hooks/useSocketMessageHandler.js +241 -0
- package/dist/dist/editor/client/hooks/useSocketMessageHandler.js.map +1 -0
- package/dist/dist/editor/client/hooks/useWorkbox.d.ts +9 -0
- package/dist/dist/editor/client/hooks/useWorkbox.js +52 -0
- package/dist/dist/editor/client/hooks/useWorkbox.js.map +1 -0
- package/dist/dist/editor/client/itemsRepository.d.ts +38 -0
- package/dist/dist/editor/client/itemsRepository.js +482 -0
- package/dist/dist/editor/client/itemsRepository.js.map +1 -0
- package/dist/dist/editor/client/operations.d.ts +69 -0
- package/dist/dist/editor/client/operations.js +633 -0
- package/dist/dist/editor/client/operations.js.map +1 -0
- package/dist/dist/editor/client/pageModelBuilder.d.ts +6 -0
- package/dist/dist/editor/client/pageModelBuilder.js +171 -0
- package/dist/dist/editor/client/pageModelBuilder.js.map +1 -0
- package/dist/dist/editor/client/ui/EditorChrome.d.ts +12 -0
- package/dist/dist/editor/client/ui/EditorChrome.js +30 -0
- package/dist/dist/editor/client/ui/EditorChrome.js.map +1 -0
- package/dist/dist/editor/client/ui/FullscreenControls.d.ts +7 -0
- package/dist/dist/editor/client/ui/FullscreenControls.js +21 -0
- package/dist/dist/editor/client/ui/FullscreenControls.js.map +1 -0
- package/dist/dist/editor/commands/agentCommands.d.ts +9 -0
- package/dist/dist/editor/commands/agentCommands.js +30 -0
- package/dist/dist/editor/commands/agentCommands.js.map +1 -0
- package/dist/dist/editor/commands/commands.d.ts +19 -0
- package/dist/dist/editor/commands/commands.js +2 -0
- package/dist/dist/editor/commands/commands.js.map +1 -0
- package/dist/dist/editor/commands/componentCommands.d.ts +12 -0
- package/dist/dist/editor/commands/componentCommands.js +367 -0
- package/dist/dist/editor/commands/componentCommands.js.map +1 -0
- package/dist/dist/editor/commands/createVersionCommand.d.ts +4 -0
- package/dist/dist/editor/commands/createVersionCommand.js +24 -0
- package/dist/dist/editor/commands/createVersionCommand.js.map +1 -0
- package/dist/dist/editor/commands/deleteVersionCommand.d.ts +4 -0
- package/dist/dist/editor/commands/deleteVersionCommand.js +53 -0
- package/dist/dist/editor/commands/deleteVersionCommand.js.map +1 -0
- package/dist/dist/editor/commands/itemCommands.d.ts +29 -0
- package/dist/dist/editor/commands/itemCommands.js +448 -0
- package/dist/dist/editor/commands/itemCommands.js.map +1 -0
- package/dist/dist/editor/commands/localizeItem/LocalizeItemDialog.d.ts +8 -0
- package/dist/dist/editor/commands/localizeItem/LocalizeItemDialog.js +91 -0
- package/dist/dist/editor/commands/localizeItem/LocalizeItemDialog.js.map +1 -0
- package/dist/dist/editor/commands/undo.d.ts +15 -0
- package/dist/dist/editor/commands/undo.js +29 -0
- package/dist/dist/editor/commands/undo.js.map +1 -0
- package/dist/dist/editor/componentTreeHelper.d.ts +18 -0
- package/dist/dist/editor/componentTreeHelper.js +123 -0
- package/dist/dist/editor/componentTreeHelper.js.map +1 -0
- package/dist/dist/editor/context-menu/CopyMoveMenu.d.ts +7 -0
- package/dist/dist/editor/context-menu/CopyMoveMenu.js +58 -0
- package/dist/dist/editor/context-menu/CopyMoveMenu.js.map +1 -0
- package/dist/dist/editor/context-menu/InsertMenu.d.ts +9 -0
- package/dist/dist/editor/context-menu/InsertMenu.js +229 -0
- package/dist/dist/editor/context-menu/InsertMenu.js.map +1 -0
- package/dist/dist/editor/control-center/About.d.ts +1 -0
- package/dist/dist/editor/control-center/About.js +8 -0
- package/dist/dist/editor/control-center/About.js.map +1 -0
- package/dist/dist/editor/control-center/AllAgentsPanel.d.ts +5 -0
- package/dist/dist/editor/control-center/AllAgentsPanel.js +126 -0
- package/dist/dist/editor/control-center/AllAgentsPanel.js.map +1 -0
- package/dist/dist/editor/control-center/ControlCenterMenu.d.ts +1 -0
- package/dist/dist/editor/control-center/ControlCenterMenu.js +66 -0
- package/dist/dist/editor/control-center/ControlCenterMenu.js.map +1 -0
- package/dist/dist/editor/control-center/IndexOverview.d.ts +1 -0
- package/dist/dist/editor/control-center/IndexOverview.js +323 -0
- package/dist/dist/editor/control-center/IndexOverview.js.map +1 -0
- package/dist/dist/editor/control-center/Info.d.ts +1 -0
- package/dist/dist/editor/control-center/Info.js +10 -0
- package/dist/dist/editor/control-center/Info.js.map +1 -0
- package/dist/dist/editor/control-center/LatestFeedback.d.ts +1 -0
- package/dist/dist/editor/control-center/LatestFeedback.js +136 -0
- package/dist/dist/editor/control-center/LatestFeedback.js.map +1 -0
- package/dist/dist/editor/control-center/QuotaInfo.d.ts +1 -0
- package/dist/dist/editor/control-center/QuotaInfo.js +102 -0
- package/dist/dist/editor/control-center/QuotaInfo.js.map +1 -0
- package/dist/dist/editor/control-center/Setup.d.ts +1 -0
- package/dist/dist/editor/control-center/Setup.js +174 -0
- package/dist/dist/editor/control-center/Setup.js.map +1 -0
- package/dist/dist/editor/control-center/Status.d.ts +1 -0
- package/dist/dist/editor/control-center/Status.js +79 -0
- package/dist/dist/editor/control-center/Status.js.map +1 -0
- package/dist/dist/editor/control-center/WebSocketMessages.d.ts +1 -0
- package/dist/dist/editor/control-center/WebSocketMessages.js +71 -0
- package/dist/dist/editor/control-center/WebSocketMessages.js.map +1 -0
- package/dist/dist/editor/control-center/parhelia-setup/Overview.d.ts +1 -0
- package/dist/dist/editor/control-center/parhelia-setup/Overview.js +91 -0
- package/dist/dist/editor/control-center/parhelia-setup/Overview.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/EmbeddingsModelSection.d.ts +2 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/EmbeddingsModelSection.js +195 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/EmbeddingsModelSection.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/index.d.ts +2 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/index.js +22 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/index.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/provider/ProviderSection.d.ts +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/provider/ProviderSection.js +233 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/provider/ProviderSection.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/required-containers/RequiredContainersList.d.ts +15 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/required-containers/RequiredContainersList.js +14 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/required-containers/RequiredContainersList.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/required-containers/RequiredContainersSection.d.ts +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/required-containers/RequiredContainersSection.js +94 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/required-containers/RequiredContainersSection.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/tools/GenerateToolsSection.d.ts +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/tools/GenerateToolsSection.js +367 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/tools/GenerateToolsSection.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/types.d.ts +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/types.js +2 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/types.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/utils.d.ts +5 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/utils.js +44 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/utils.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/DbSetupStep.d.ts +2 -0
- package/dist/dist/editor/control-center/setup-steps/DbSetupStep.js +46 -0
- package/dist/dist/editor/control-center/setup-steps/DbSetupStep.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/IndexSetupStep.d.ts +2 -0
- package/dist/dist/editor/control-center/setup-steps/IndexSetupStep.js +36 -0
- package/dist/dist/editor/control-center/setup-steps/IndexSetupStep.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/SettingsSetupStep.d.ts +2 -0
- package/dist/dist/editor/control-center/setup-steps/SettingsSetupStep.js +111 -0
- package/dist/dist/editor/control-center/setup-steps/SettingsSetupStep.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/SetupOverview.d.ts +14 -0
- package/dist/dist/editor/control-center/setup-steps/SetupOverview.js +38 -0
- package/dist/dist/editor/control-center/setup-steps/SetupOverview.js.map +1 -0
- package/dist/dist/editor/editor-warnings/ItemLocked.d.ts +2 -0
- package/dist/dist/editor/editor-warnings/ItemLocked.js +38 -0
- package/dist/dist/editor/editor-warnings/ItemLocked.js.map +1 -0
- package/dist/dist/editor/editor-warnings/NoLanguageWriteAccess.d.ts +2 -0
- package/dist/dist/editor/editor-warnings/NoLanguageWriteAccess.js +14 -0
- package/dist/dist/editor/editor-warnings/NoLanguageWriteAccess.js.map +1 -0
- package/dist/dist/editor/editor-warnings/NoWorkflowWriteAccess.d.ts +2 -0
- package/dist/dist/editor/editor-warnings/NoWorkflowWriteAccess.js +14 -0
- package/dist/dist/editor/editor-warnings/NoWorkflowWriteAccess.js.map +1 -0
- package/dist/dist/editor/editor-warnings/NoWriteAccess.d.ts +2 -0
- package/dist/dist/editor/editor-warnings/NoWriteAccess.js +14 -0
- package/dist/dist/editor/editor-warnings/NoWriteAccess.js.map +1 -0
- package/dist/dist/editor/editor-warnings/ValidationErrors.d.ts +2 -0
- package/dist/dist/editor/editor-warnings/ValidationErrors.js +28 -0
- package/dist/dist/editor/editor-warnings/ValidationErrors.js.map +1 -0
- package/dist/dist/editor/field-types/AttachmentEditor.d.ts +9 -0
- package/dist/dist/editor/field-types/AttachmentEditor.js +68 -0
- package/dist/dist/editor/field-types/AttachmentEditor.js.map +1 -0
- package/dist/dist/editor/field-types/CheckboxEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/CheckboxEditor.js +30 -0
- package/dist/dist/editor/field-types/CheckboxEditor.js.map +1 -0
- package/dist/dist/editor/field-types/DateFieldEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/DateFieldEditor.js +93 -0
- package/dist/dist/editor/field-types/DateFieldEditor.js.map +1 -0
- package/dist/dist/editor/field-types/DateTimeFieldEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/DateTimeFieldEditor.js +151 -0
- package/dist/dist/editor/field-types/DateTimeFieldEditor.js.map +1 -0
- package/dist/dist/editor/field-types/DropLinkEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/DropLinkEditor.js +42 -0
- package/dist/dist/editor/field-types/DropLinkEditor.js.map +1 -0
- package/dist/dist/editor/field-types/DropListEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/DropListEditor.js +46 -0
- package/dist/dist/editor/field-types/DropListEditor.js.map +1 -0
- package/dist/dist/editor/field-types/ImageFieldEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/ImageFieldEditor.js +34 -0
- package/dist/dist/editor/field-types/ImageFieldEditor.js.map +1 -0
- package/dist/dist/editor/field-types/InternalLinkFieldEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/InternalLinkFieldEditor.js +172 -0
- package/dist/dist/editor/field-types/InternalLinkFieldEditor.js.map +1 -0
- package/dist/dist/editor/field-types/LinkFieldEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/LinkFieldEditor.js +62 -0
- package/dist/dist/editor/field-types/LinkFieldEditor.js.map +1 -0
- package/dist/dist/editor/field-types/MultiLineText.d.ts +7 -0
- package/dist/dist/editor/field-types/MultiLineText.js +48 -0
- package/dist/dist/editor/field-types/MultiLineText.js.map +1 -0
- package/dist/dist/editor/field-types/NameValueListEditor.d.ts +7 -0
- package/dist/dist/editor/field-types/NameValueListEditor.js +101 -0
- package/dist/dist/editor/field-types/NameValueListEditor.js.map +1 -0
- package/dist/dist/editor/field-types/PictureFieldEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/PictureFieldEditor.js +58 -0
- package/dist/dist/editor/field-types/PictureFieldEditor.js.map +1 -0
- package/dist/dist/editor/field-types/RawEditor.d.ts +6 -0
- package/dist/dist/editor/field-types/RawEditor.js +31 -0
- package/dist/dist/editor/field-types/RawEditor.js.map +1 -0
- package/dist/dist/editor/field-types/ReactQuill.d.ts +125 -0
- package/dist/dist/editor/field-types/ReactQuill.js +385 -0
- package/dist/dist/editor/field-types/ReactQuill.js.map +1 -0
- package/dist/dist/editor/field-types/RichTextEditor.d.ts +7 -0
- package/dist/dist/editor/field-types/RichTextEditor.js +21 -0
- package/dist/dist/editor/field-types/RichTextEditor.js.map +1 -0
- package/dist/dist/editor/field-types/RichTextEditorComponent.d.ts +8 -0
- package/dist/dist/editor/field-types/RichTextEditorComponent.js +88 -0
- package/dist/dist/editor/field-types/RichTextEditorComponent.js.map +1 -0
- package/dist/dist/editor/field-types/SingleLineText.d.ts +7 -0
- package/dist/dist/editor/field-types/SingleLineText.js +113 -0
- package/dist/dist/editor/field-types/SingleLineText.js.map +1 -0
- package/dist/dist/editor/field-types/TreeListEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/TreeListEditor.js +387 -0
- package/dist/dist/editor/field-types/TreeListEditor.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/components/EditorDropdown.css +82 -0
- package/dist/dist/editor/field-types/richtext/components/EditorDropdown.d.ts +11 -0
- package/dist/dist/editor/field-types/richtext/components/EditorDropdown.js +83 -0
- package/dist/dist/editor/field-types/richtext/components/EditorDropdown.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/components/ReactSlate.css +208 -0
- package/dist/dist/editor/field-types/richtext/components/ReactSlate.d.ts +5 -0
- package/dist/dist/editor/field-types/richtext/components/ReactSlate.js +607 -0
- package/dist/dist/editor/field-types/richtext/components/ReactSlate.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleDropdown.d.ts +18 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleDropdown.js +71 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleDropdown.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleRichTextEditor.css +325 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleRichTextEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleRichTextEditor.js +359 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleRichTextEditor.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleToolbar.d.ts +16 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleToolbar.js +181 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleToolbar.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleToolbarButton.d.ts +9 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleToolbarButton.js +14 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleToolbarButton.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/components/ToolbarButton.d.ts +3 -0
- package/dist/dist/editor/field-types/richtext/components/ToolbarButton.js +6 -0
- package/dist/dist/editor/field-types/richtext/components/ToolbarButton.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/config/pluginFactory.d.ts +19 -0
- package/dist/dist/editor/field-types/richtext/config/pluginFactory.js +17 -0
- package/dist/dist/editor/field-types/richtext/config/pluginFactory.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/contextMenuFactory.d.ts +4 -0
- package/dist/dist/editor/field-types/richtext/contextMenuFactory.js +201 -0
- package/dist/dist/editor/field-types/richtext/contextMenuFactory.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/hooks/useProfileCache.d.ts +68 -0
- package/dist/dist/editor/field-types/richtext/hooks/useProfileCache.js +214 -0
- package/dist/dist/editor/field-types/richtext/hooks/useProfileCache.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/hooks/useRichTextProfile.d.ts +25 -0
- package/dist/dist/editor/field-types/richtext/hooks/useRichTextProfile.js +64 -0
- package/dist/dist/editor/field-types/richtext/hooks/useRichTextProfile.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/index.d.ts +6 -0
- package/dist/dist/editor/field-types/richtext/index.js +7 -0
- package/dist/dist/editor/field-types/richtext/index.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/types.d.ts +288 -0
- package/dist/dist/editor/field-types/richtext/types.js +107 -0
- package/dist/dist/editor/field-types/richtext/types.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/utils/conversion.d.ts +7 -0
- package/dist/dist/editor/field-types/richtext/utils/conversion.js +762 -0
- package/dist/dist/editor/field-types/richtext/utils/conversion.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/utils/plugins.d.ts +170 -0
- package/dist/dist/editor/field-types/richtext/utils/plugins.js +490 -0
- package/dist/dist/editor/field-types/richtext/utils/plugins.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/utils/profileMapper.d.ts +38 -0
- package/dist/dist/editor/field-types/richtext/utils/profileMapper.js +386 -0
- package/dist/dist/editor/field-types/richtext/utils/profileMapper.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/utils/profileServiceCache.d.ts +37 -0
- package/dist/dist/editor/field-types/richtext/utils/profileServiceCache.js +119 -0
- package/dist/dist/editor/field-types/richtext/utils/profileServiceCache.js.map +1 -0
- package/dist/dist/editor/fieldTypes.d.ts +129 -0
- package/dist/dist/editor/fieldTypes.js +2 -0
- package/dist/dist/editor/fieldTypes.js.map +1 -0
- package/dist/dist/editor/hooks/useEditorSettings.d.ts +17 -0
- package/dist/dist/editor/hooks/useEditorSettings.js +61 -0
- package/dist/dist/editor/hooks/useEditorSettings.js.map +1 -0
- package/dist/dist/editor/hooks/useParheliaSettings.d.ts +17 -0
- package/dist/dist/editor/hooks/useParheliaSettings.js +61 -0
- package/dist/dist/editor/hooks/useParheliaSettings.js.map +1 -0
- package/dist/dist/editor/media-selector/AiImageSearch.d.ts +4 -0
- package/dist/dist/editor/media-selector/AiImageSearch.js +164 -0
- package/dist/dist/editor/media-selector/AiImageSearch.js.map +1 -0
- package/dist/dist/editor/media-selector/AiImageSearchPrompt.d.ts +3 -0
- package/dist/dist/editor/media-selector/AiImageSearchPrompt.js +57 -0
- package/dist/dist/editor/media-selector/AiImageSearchPrompt.js.map +1 -0
- package/dist/dist/editor/media-selector/MediaFolderBrowser.d.ts +5 -0
- package/dist/dist/editor/media-selector/MediaFolderBrowser.js +182 -0
- package/dist/dist/editor/media-selector/MediaFolderBrowser.js.map +1 -0
- package/dist/dist/editor/media-selector/MediaSelector.d.ts +9 -0
- package/dist/dist/editor/media-selector/MediaSelector.js +8 -0
- package/dist/dist/editor/media-selector/MediaSelector.js.map +1 -0
- package/dist/dist/editor/media-selector/Preview.d.ts +4 -0
- package/dist/dist/editor/media-selector/Preview.js +19 -0
- package/dist/dist/editor/media-selector/Preview.js.map +1 -0
- package/dist/dist/editor/media-selector/Thumbnails.d.ts +8 -0
- package/dist/dist/editor/media-selector/Thumbnails.js +10 -0
- package/dist/dist/editor/media-selector/Thumbnails.js.map +1 -0
- package/dist/dist/editor/media-selector/TreeSelector.d.ts +7 -0
- package/dist/dist/editor/media-selector/TreeSelector.js +183 -0
- package/dist/dist/editor/media-selector/TreeSelector.js.map +1 -0
- package/dist/dist/editor/media-selector/UploadZone.d.ts +4 -0
- package/dist/dist/editor/media-selector/UploadZone.js +81 -0
- package/dist/dist/editor/media-selector/UploadZone.js.map +1 -0
- package/dist/dist/editor/media-selector/index.d.ts +8 -0
- package/dist/dist/editor/media-selector/index.js +9 -0
- package/dist/dist/editor/media-selector/index.js.map +1 -0
- package/dist/dist/editor/menubar/ActiveUsers.d.ts +1 -0
- package/dist/dist/editor/menubar/ActiveUsers.js +120 -0
- package/dist/dist/editor/menubar/ActiveUsers.js.map +1 -0
- package/dist/dist/editor/menubar/ApproveAndPublish.d.ts +1 -0
- package/dist/dist/editor/menubar/ApproveAndPublish.js +13 -0
- package/dist/dist/editor/menubar/ApproveAndPublish.js.map +1 -0
- package/dist/dist/editor/menubar/FavoritesControls.d.ts +8 -0
- package/dist/dist/editor/menubar/FavoritesControls.js +217 -0
- package/dist/dist/editor/menubar/FavoritesControls.js.map +1 -0
- package/dist/dist/editor/menubar/GenericToolbar.d.ts +11 -0
- package/dist/dist/editor/menubar/GenericToolbar.js +10 -0
- package/dist/dist/editor/menubar/GenericToolbar.js.map +1 -0
- package/dist/dist/editor/menubar/ItemActionsMenu.d.ts +3 -0
- package/dist/dist/editor/menubar/ItemActionsMenu.js +23 -0
- package/dist/dist/editor/menubar/ItemActionsMenu.js.map +1 -0
- package/dist/dist/editor/menubar/ItemLanguageVersion.d.ts +1 -0
- package/dist/dist/editor/menubar/ItemLanguageVersion.js +54 -0
- package/dist/dist/editor/menubar/ItemLanguageVersion.js.map +1 -0
- package/dist/dist/editor/menubar/ItemToolbar.d.ts +1 -0
- package/dist/dist/editor/menubar/ItemToolbar.js +11 -0
- package/dist/dist/editor/menubar/ItemToolbar.js.map +1 -0
- package/dist/dist/editor/menubar/NavButtons.d.ts +1 -0
- package/dist/dist/editor/menubar/NavButtons.js +40 -0
- package/dist/dist/editor/menubar/NavButtons.js.map +1 -0
- package/dist/dist/editor/menubar/PageSelector.d.ts +4 -0
- package/dist/dist/editor/menubar/PageSelector.js +152 -0
- package/dist/dist/editor/menubar/PageSelector.js.map +1 -0
- package/dist/dist/editor/menubar/Separator.d.ts +3 -0
- package/dist/dist/editor/menubar/Separator.js +6 -0
- package/dist/dist/editor/menubar/Separator.js.map +1 -0
- package/dist/dist/editor/menubar/SiteInfo.d.ts +1 -0
- package/dist/dist/editor/menubar/SiteInfo.js +24 -0
- package/dist/dist/editor/menubar/SiteInfo.js.map +1 -0
- package/dist/dist/editor/menubar/ToolbarFactory.d.ts +2 -0
- package/dist/dist/editor/menubar/ToolbarFactory.js +55 -0
- package/dist/dist/editor/menubar/ToolbarFactory.js.map +1 -0
- package/dist/dist/editor/menubar/User.d.ts +4 -0
- package/dist/dist/editor/menubar/User.js +18 -0
- package/dist/dist/editor/menubar/User.js.map +1 -0
- package/dist/dist/editor/menubar/VersionSelector.d.ts +10 -0
- package/dist/dist/editor/menubar/VersionSelector.js +53 -0
- package/dist/dist/editor/menubar/VersionSelector.js.map +1 -0
- package/dist/dist/editor/menubar/WorkflowButton.d.ts +1 -0
- package/dist/dist/editor/menubar/WorkflowButton.js +93 -0
- package/dist/dist/editor/menubar/WorkflowButton.js.map +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/CompareControls.d.ts +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/CompareControls.js +11 -0
- package/dist/dist/editor/menubar/toolbar-sections/CompareControls.js.map +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/EditControls.d.ts +7 -0
- package/dist/dist/editor/menubar/toolbar-sections/EditControls.js +15 -0
- package/dist/dist/editor/menubar/toolbar-sections/EditControls.js.map +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/InsertControls.d.ts +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/InsertControls.js +15 -0
- package/dist/dist/editor/menubar/toolbar-sections/InsertControls.js.map +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/ReviewCommands.d.ts +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/ReviewCommands.js +41 -0
- package/dist/dist/editor/menubar/toolbar-sections/ReviewCommands.js.map +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/UtilityControls.d.ts +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/UtilityControls.js +17 -0
- package/dist/dist/editor/menubar/toolbar-sections/UtilityControls.js.map +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/ViewportControls.d.ts +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/ViewportControls.js +21 -0
- package/dist/dist/editor/menubar/toolbar-sections/ViewportControls.js.map +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/index.d.ts +6 -0
- package/dist/dist/editor/menubar/toolbar-sections/index.js +7 -0
- package/dist/dist/editor/menubar/toolbar-sections/index.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/CommentHighlighting.d.ts +6 -0
- package/dist/dist/editor/page-editor-chrome/CommentHighlighting.js +270 -0
- package/dist/dist/editor/page-editor-chrome/CommentHighlighting.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/CommentHighlightings.d.ts +4 -0
- package/dist/dist/editor/page-editor-chrome/CommentHighlightings.js +15 -0
- package/dist/dist/editor/page-editor-chrome/CommentHighlightings.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/FieldActionIndicator.d.ts +4 -0
- package/dist/dist/editor/page-editor-chrome/FieldActionIndicator.js +35 -0
- package/dist/dist/editor/page-editor-chrome/FieldActionIndicator.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/FieldActionIndicators.d.ts +1 -0
- package/dist/dist/editor/page-editor-chrome/FieldActionIndicators.js +13 -0
- package/dist/dist/editor/page-editor-chrome/FieldActionIndicators.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/FieldEditedIndicator.d.ts +8 -0
- package/dist/dist/editor/page-editor-chrome/FieldEditedIndicator.js +26 -0
- package/dist/dist/editor/page-editor-chrome/FieldEditedIndicator.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/FieldEditedIndicators.d.ts +6 -0
- package/dist/dist/editor/page-editor-chrome/FieldEditedIndicators.js +14 -0
- package/dist/dist/editor/page-editor-chrome/FieldEditedIndicators.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/FrameMenu.d.ts +7 -0
- package/dist/dist/editor/page-editor-chrome/FrameMenu.js +346 -0
- package/dist/dist/editor/page-editor-chrome/FrameMenu.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/FrameMenus.d.ts +5 -0
- package/dist/dist/editor/page-editor-chrome/FrameMenus.js +22 -0
- package/dist/dist/editor/page-editor-chrome/FrameMenus.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/InlineEditor.d.ts +5 -0
- package/dist/dist/editor/page-editor-chrome/InlineEditor.js +704 -0
- package/dist/dist/editor/page-editor-chrome/InlineEditor.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/LockedFieldIndicator.d.ts +1 -0
- package/dist/dist/editor/page-editor-chrome/LockedFieldIndicator.js +33 -0
- package/dist/dist/editor/page-editor-chrome/LockedFieldIndicator.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/NoLayout.d.ts +1 -0
- package/dist/dist/editor/page-editor-chrome/NoLayout.js +19 -0
- package/dist/dist/editor/page-editor-chrome/NoLayout.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/PageEditorChrome.d.ts +6 -0
- package/dist/dist/editor/page-editor-chrome/PageEditorChrome.js +64 -0
- package/dist/dist/editor/page-editor-chrome/PageEditorChrome.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/PictureEditorOverlay.d.ts +1 -0
- package/dist/dist/editor/page-editor-chrome/PictureEditorOverlay.js +190 -0
- package/dist/dist/editor/page-editor-chrome/PictureEditorOverlay.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/PlaceholderDropZone.d.ts +18 -0
- package/dist/dist/editor/page-editor-chrome/PlaceholderDropZone.js +122 -0
- package/dist/dist/editor/page-editor-chrome/PlaceholderDropZone.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/PlaceholderDropZones.d.ts +5 -0
- package/dist/dist/editor/page-editor-chrome/PlaceholderDropZones.js +289 -0
- package/dist/dist/editor/page-editor-chrome/PlaceholderDropZones.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/SuggestionHighlighting.d.ts +6 -0
- package/dist/dist/editor/page-editor-chrome/SuggestionHighlighting.js +224 -0
- package/dist/dist/editor/page-editor-chrome/SuggestionHighlighting.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/SuggestionHighlightings.d.ts +4 -0
- package/dist/dist/editor/page-editor-chrome/SuggestionHighlightings.js +16 -0
- package/dist/dist/editor/page-editor-chrome/SuggestionHighlightings.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/useInlineAICompletion.d.ts +7 -0
- package/dist/dist/editor/page-editor-chrome/useInlineAICompletion.js +699 -0
- package/dist/dist/editor/page-editor-chrome/useInlineAICompletion.js.map +1 -0
- package/dist/dist/editor/page-viewer/DeviceToolbar.d.ts +6 -0
- package/dist/dist/editor/page-viewer/DeviceToolbar.js +21 -0
- package/dist/dist/editor/page-viewer/DeviceToolbar.js.map +1 -0
- package/dist/dist/editor/page-viewer/EditorForm.d.ts +8 -0
- package/dist/dist/editor/page-viewer/EditorForm.js +264 -0
- package/dist/dist/editor/page-viewer/EditorForm.js.map +1 -0
- package/dist/dist/editor/page-viewer/EditorFormPopup.d.ts +11 -0
- package/dist/dist/editor/page-viewer/EditorFormPopup.js +41 -0
- package/dist/dist/editor/page-viewer/EditorFormPopup.js.map +1 -0
- package/dist/dist/editor/page-viewer/MiniMap.d.ts +9 -0
- package/dist/dist/editor/page-viewer/MiniMap.js +234 -0
- package/dist/dist/editor/page-viewer/MiniMap.js.map +1 -0
- package/dist/dist/editor/page-viewer/PageViewer.d.ts +10 -0
- package/dist/dist/editor/page-viewer/PageViewer.js +67 -0
- package/dist/dist/editor/page-viewer/PageViewer.js.map +1 -0
- package/dist/dist/editor/page-viewer/PageViewerFrame.d.ts +11 -0
- package/dist/dist/editor/page-viewer/PageViewerFrame.js +846 -0
- package/dist/dist/editor/page-viewer/PageViewerFrame.js.map +1 -0
- package/dist/dist/editor/page-viewer/pageModelSkeletonBuilder.d.ts +3 -0
- package/dist/dist/editor/page-viewer/pageModelSkeletonBuilder.js +349 -0
- package/dist/dist/editor/page-viewer/pageModelSkeletonBuilder.js.map +1 -0
- package/dist/dist/editor/page-viewer/pageViewContext.d.ts +40 -0
- package/dist/dist/editor/page-viewer/pageViewContext.js +155 -0
- package/dist/dist/editor/page-viewer/pageViewContext.js.map +1 -0
- package/dist/dist/editor/pageModel.d.ts +223 -0
- package/dist/dist/editor/pageModel.js +2 -0
- package/dist/dist/editor/pageModel.js.map +1 -0
- package/dist/dist/editor/picture-shared.d.ts +16 -0
- package/dist/dist/editor/picture-shared.js +25 -0
- package/dist/dist/editor/picture-shared.js.map +1 -0
- package/dist/dist/editor/reviews/Comment.d.ts +8 -0
- package/dist/dist/editor/reviews/Comment.js +162 -0
- package/dist/dist/editor/reviews/Comment.js.map +1 -0
- package/dist/dist/editor/reviews/CommentDisplayPopover.d.ts +9 -0
- package/dist/dist/editor/reviews/CommentDisplayPopover.js +104 -0
- package/dist/dist/editor/reviews/CommentDisplayPopover.js.map +1 -0
- package/dist/dist/editor/reviews/CommentEditor.d.ts +20 -0
- package/dist/dist/editor/reviews/CommentEditor.js +57 -0
- package/dist/dist/editor/reviews/CommentEditor.js.map +1 -0
- package/dist/dist/editor/reviews/CommentPopover.d.ts +22 -0
- package/dist/dist/editor/reviews/CommentPopover.js +145 -0
- package/dist/dist/editor/reviews/CommentPopover.js.map +1 -0
- package/dist/dist/editor/reviews/CommentView.d.ts +21 -0
- package/dist/dist/editor/reviews/CommentView.js +52 -0
- package/dist/dist/editor/reviews/CommentView.js.map +1 -0
- package/dist/dist/editor/reviews/Comments.d.ts +3 -0
- package/dist/dist/editor/reviews/Comments.js +118 -0
- package/dist/dist/editor/reviews/Comments.js.map +1 -0
- package/dist/dist/editor/reviews/CreateReviewDialog.d.ts +9 -0
- package/dist/dist/editor/reviews/CreateReviewDialog.js +454 -0
- package/dist/dist/editor/reviews/CreateReviewDialog.js.map +1 -0
- package/dist/dist/editor/reviews/DecisionsMatrix.d.ts +29 -0
- package/dist/dist/editor/reviews/DecisionsMatrix.js +739 -0
- package/dist/dist/editor/reviews/DecisionsMatrix.js.map +1 -0
- package/dist/dist/editor/reviews/DiffView.d.ts +17 -0
- package/dist/dist/editor/reviews/DiffView.js +57 -0
- package/dist/dist/editor/reviews/DiffView.js.map +1 -0
- package/dist/dist/editor/reviews/EditReviewSettingsDialog.d.ts +20 -0
- package/dist/dist/editor/reviews/EditReviewSettingsDialog.js +208 -0
- package/dist/dist/editor/reviews/EditReviewSettingsDialog.js.map +1 -0
- package/dist/dist/editor/reviews/ItemTreeSelector.d.ts +9 -0
- package/dist/dist/editor/reviews/ItemTreeSelector.js +43 -0
- package/dist/dist/editor/reviews/ItemTreeSelector.js.map +1 -0
- package/dist/dist/editor/reviews/MultiReviewManager.d.ts +1 -0
- package/dist/dist/editor/reviews/MultiReviewManager.js +50 -0
- package/dist/dist/editor/reviews/MultiReviewManager.js.map +1 -0
- package/dist/dist/editor/reviews/PagesPanel.d.ts +21 -0
- package/dist/dist/editor/reviews/PagesPanel.js +124 -0
- package/dist/dist/editor/reviews/PagesPanel.js.map +1 -0
- package/dist/dist/editor/reviews/PreconfiguredReviewerSelector.d.ts +9 -0
- package/dist/dist/editor/reviews/PreconfiguredReviewerSelector.js +55 -0
- package/dist/dist/editor/reviews/PreconfiguredReviewerSelector.js.map +1 -0
- package/dist/dist/editor/reviews/PreviewInfo.d.ts +1 -0
- package/dist/dist/editor/reviews/PreviewInfo.js +12 -0
- package/dist/dist/editor/reviews/PreviewInfo.js.map +1 -0
- package/dist/dist/editor/reviews/ReviewDetail.d.ts +8 -0
- package/dist/dist/editor/reviews/ReviewDetail.js +189 -0
- package/dist/dist/editor/reviews/ReviewDetail.js.map +1 -0
- package/dist/dist/editor/reviews/ReviewersPanel.d.ts +14 -0
- package/dist/dist/editor/reviews/ReviewersPanel.js +216 -0
- package/dist/dist/editor/reviews/ReviewersPanel.js.map +1 -0
- package/dist/dist/editor/reviews/Reviews.d.ts +1 -0
- package/dist/dist/editor/reviews/Reviews.js +6 -0
- package/dist/dist/editor/reviews/Reviews.js.map +1 -0
- package/dist/dist/editor/reviews/ReviewsList.d.ts +11 -0
- package/dist/dist/editor/reviews/ReviewsList.js +134 -0
- package/dist/dist/editor/reviews/ReviewsList.js.map +1 -0
- package/dist/dist/editor/reviews/SuggestedEdit.d.ts +4 -0
- package/dist/dist/editor/reviews/SuggestedEdit.js +200 -0
- package/dist/dist/editor/reviews/SuggestedEdit.js.map +1 -0
- package/dist/dist/editor/reviews/SuggestionDisplayPopover.d.ts +9 -0
- package/dist/dist/editor/reviews/SuggestionDisplayPopover.js +204 -0
- package/dist/dist/editor/reviews/SuggestionDisplayPopover.js.map +1 -0
- package/dist/dist/editor/reviews/commentAi.d.ts +7 -0
- package/dist/dist/editor/reviews/commentAi.js +100 -0
- package/dist/dist/editor/reviews/commentAi.js.map +1 -0
- package/dist/dist/editor/reviews/reviewCommands.d.ts +3 -0
- package/dist/dist/editor/reviews/reviewCommands.js +38 -0
- package/dist/dist/editor/reviews/reviewCommands.js.map +1 -0
- package/dist/dist/editor/reviews/useMultiReview.d.ts +42 -0
- package/dist/dist/editor/reviews/useMultiReview.js +377 -0
- package/dist/dist/editor/reviews/useMultiReview.js.map +1 -0
- package/dist/dist/editor/reviews/useReviews.d.ts +12 -0
- package/dist/dist/editor/reviews/useReviews.js +43 -0
- package/dist/dist/editor/reviews/useReviews.js.map +1 -0
- package/dist/dist/editor/services/agentService.d.ts +368 -0
- package/dist/dist/editor/services/agentService.js +721 -0
- package/dist/dist/editor/services/agentService.js.map +1 -0
- package/dist/dist/editor/services/aiService.d.ts +111 -0
- package/dist/dist/editor/services/aiService.js +294 -0
- package/dist/dist/editor/services/aiService.js.map +1 -0
- package/dist/dist/editor/services/componentDesignerService.d.ts +46 -0
- package/dist/dist/editor/services/componentDesignerService.js +72 -0
- package/dist/dist/editor/services/componentDesignerService.js.map +1 -0
- package/dist/dist/editor/services/contentService.d.ts +79 -0
- package/dist/dist/editor/services/contentService.js +127 -0
- package/dist/dist/editor/services/contentService.js.map +1 -0
- package/dist/dist/editor/services/contextService.d.ts +26 -0
- package/dist/dist/editor/services/contextService.js +103 -0
- package/dist/dist/editor/services/contextService.js.map +1 -0
- package/dist/dist/editor/services/editService.d.ts +66 -0
- package/dist/dist/editor/services/editService.js +325 -0
- package/dist/dist/editor/services/editService.js.map +1 -0
- package/dist/dist/editor/services/favouritesService.d.ts +47 -0
- package/dist/dist/editor/services/favouritesService.js +28 -0
- package/dist/dist/editor/services/favouritesService.js.map +1 -0
- package/dist/dist/editor/services/iconService.d.ts +8 -0
- package/dist/dist/editor/services/iconService.js +6 -0
- package/dist/dist/editor/services/iconService.js.map +1 -0
- package/dist/dist/editor/services/indexService.d.ts +13 -0
- package/dist/dist/editor/services/indexService.js +45 -0
- package/dist/dist/editor/services/indexService.js.map +1 -0
- package/dist/dist/editor/services/reviewsService.d.ts +53 -0
- package/dist/dist/editor/services/reviewsService.js +130 -0
- package/dist/dist/editor/services/reviewsService.js.map +1 -0
- package/dist/dist/editor/services/searchService.d.ts +17 -0
- package/dist/dist/editor/services/searchService.js +25 -0
- package/dist/dist/editor/services/searchService.js.map +1 -0
- package/dist/dist/editor/services/serviceHelper.d.ts +10 -0
- package/dist/dist/editor/services/serviceHelper.js +118 -0
- package/dist/dist/editor/services/serviceHelper.js.map +1 -0
- package/dist/dist/editor/services/setupService.d.ts +30 -0
- package/dist/dist/editor/services/setupService.js +17 -0
- package/dist/dist/editor/services/setupService.js.map +1 -0
- package/dist/dist/editor/services/suggestedEditsService.d.ts +18 -0
- package/dist/dist/editor/services/suggestedEditsService.js +44 -0
- package/dist/dist/editor/services/suggestedEditsService.js.map +1 -0
- package/dist/dist/editor/services/systemService.d.ts +4 -0
- package/dist/dist/editor/services/systemService.js +11 -0
- package/dist/dist/editor/services/systemService.js.map +1 -0
- package/dist/dist/editor/services-server/api.d.ts +19 -0
- package/dist/dist/editor/services-server/api.js +111 -0
- package/dist/dist/editor/services-server/api.js.map +1 -0
- package/dist/dist/editor/services-server/graphQL.d.ts +29 -0
- package/dist/dist/editor/services-server/graphQL.js +53 -0
- package/dist/dist/editor/services-server/graphQL.js.map +1 -0
- package/dist/dist/editor/sidebar/Completions.d.ts +1 -0
- package/dist/dist/editor/sidebar/Completions.js +55 -0
- package/dist/dist/editor/sidebar/Completions.js.map +1 -0
- package/dist/dist/editor/sidebar/ComponentPalette.d.ts +1 -0
- package/dist/dist/editor/sidebar/ComponentPalette.js +86 -0
- package/dist/dist/editor/sidebar/ComponentPalette.js.map +1 -0
- package/dist/dist/editor/sidebar/ComponentTree.d.ts +1 -0
- package/dist/dist/editor/sidebar/ComponentTree.js +691 -0
- package/dist/dist/editor/sidebar/ComponentTree.js.map +1 -0
- package/dist/dist/editor/sidebar/Debug.d.ts +1 -0
- package/dist/dist/editor/sidebar/Debug.js +71 -0
- package/dist/dist/editor/sidebar/Debug.js.map +1 -0
- package/dist/dist/editor/sidebar/DictionaryEditor.d.ts +1 -0
- package/dist/dist/editor/sidebar/DictionaryEditor.js +158 -0
- package/dist/dist/editor/sidebar/DictionaryEditor.js.map +1 -0
- package/dist/dist/editor/sidebar/Divider.d.ts +6 -0
- package/dist/dist/editor/sidebar/Divider.js +6 -0
- package/dist/dist/editor/sidebar/Divider.js.map +1 -0
- package/dist/dist/editor/sidebar/EditHistory.d.ts +1 -0
- package/dist/dist/editor/sidebar/EditHistory.js +80 -0
- package/dist/dist/editor/sidebar/EditHistory.js.map +1 -0
- package/dist/dist/editor/sidebar/GraphQL.d.ts +2 -0
- package/dist/dist/editor/sidebar/GraphQL.js +234 -0
- package/dist/dist/editor/sidebar/GraphQL.js.map +1 -0
- package/dist/dist/editor/sidebar/Insert.d.ts +1 -0
- package/dist/dist/editor/sidebar/Insert.js +22 -0
- package/dist/dist/editor/sidebar/Insert.js.map +1 -0
- package/dist/dist/editor/sidebar/LeftToolbar.d.ts +1 -0
- package/dist/dist/editor/sidebar/LeftToolbar.js +16 -0
- package/dist/dist/editor/sidebar/LeftToolbar.js.map +1 -0
- package/dist/dist/editor/sidebar/MainContentTree.d.ts +5 -0
- package/dist/dist/editor/sidebar/MainContentTree.js +70 -0
- package/dist/dist/editor/sidebar/MainContentTree.js.map +1 -0
- package/dist/dist/editor/sidebar/Performance.d.ts +1 -0
- package/dist/dist/editor/sidebar/Performance.js +32 -0
- package/dist/dist/editor/sidebar/Performance.js.map +1 -0
- package/dist/dist/editor/sidebar/SEOInfo.d.ts +1 -0
- package/dist/dist/editor/sidebar/SEOInfo.js +158 -0
- package/dist/dist/editor/sidebar/SEOInfo.js.map +1 -0
- package/dist/dist/editor/sidebar/Sessions.d.ts +1 -0
- package/dist/dist/editor/sidebar/Sessions.js +29 -0
- package/dist/dist/editor/sidebar/Sessions.js.map +1 -0
- package/dist/dist/editor/sidebar/Sidebar.d.ts +1 -0
- package/dist/dist/editor/sidebar/Sidebar.js +13 -0
- package/dist/dist/editor/sidebar/Sidebar.js.map +1 -0
- package/dist/dist/editor/sidebar/SidebarView.d.ts +13 -0
- package/dist/dist/editor/sidebar/SidebarView.js +53 -0
- package/dist/dist/editor/sidebar/SidebarView.js.map +1 -0
- package/dist/dist/editor/sidebar/Validation.d.ts +1 -0
- package/dist/dist/editor/sidebar/Validation.js +51 -0
- package/dist/dist/editor/sidebar/Validation.js.map +1 -0
- package/dist/dist/editor/sidebar/ViewSelector.d.ts +4 -0
- package/dist/dist/editor/sidebar/ViewSelector.js +191 -0
- package/dist/dist/editor/sidebar/ViewSelector.js.map +1 -0
- package/dist/dist/editor/sidebar/Workbox.d.ts +1 -0
- package/dist/dist/editor/sidebar/Workbox.js +79 -0
- package/dist/dist/editor/sidebar/Workbox.js.map +1 -0
- package/dist/dist/editor/ui/CenteredMessage.d.ts +3 -0
- package/dist/dist/editor/ui/CenteredMessage.js +5 -0
- package/dist/dist/editor/ui/CenteredMessage.js.map +1 -0
- package/dist/dist/editor/ui/CopyMoveTargetSelectorDialog.d.ts +10 -0
- package/dist/dist/editor/ui/CopyMoveTargetSelectorDialog.js +38 -0
- package/dist/dist/editor/ui/CopyMoveTargetSelectorDialog.js.map +1 -0
- package/dist/dist/editor/ui/DialogButtons.d.ts +4 -0
- package/dist/dist/editor/ui/DialogButtons.js +6 -0
- package/dist/dist/editor/ui/DialogButtons.js.map +1 -0
- package/dist/dist/editor/ui/DragPreview.d.ts +14 -0
- package/dist/dist/editor/ui/DragPreview.js +33 -0
- package/dist/dist/editor/ui/DragPreview.js.map +1 -0
- package/dist/dist/editor/ui/IconSelectorDialog.d.ts +5 -0
- package/dist/dist/editor/ui/IconSelectorDialog.js +239 -0
- package/dist/dist/editor/ui/IconSelectorDialog.js.map +1 -0
- package/dist/dist/editor/ui/Icons.d.ts +74 -0
- package/dist/dist/editor/ui/Icons.js +106 -0
- package/dist/dist/editor/ui/Icons.js.map +1 -0
- package/dist/dist/editor/ui/ItemList.d.ts +16 -0
- package/dist/dist/editor/ui/ItemList.js +19 -0
- package/dist/dist/editor/ui/ItemList.js.map +1 -0
- package/dist/dist/editor/ui/ItemNameDialogNew.d.ts +10 -0
- package/dist/dist/editor/ui/ItemNameDialogNew.js +82 -0
- package/dist/dist/editor/ui/ItemNameDialogNew.js.map +1 -0
- package/dist/dist/editor/ui/ItemSearch.d.ts +25 -0
- package/dist/dist/editor/ui/ItemSearch.js +92 -0
- package/dist/dist/editor/ui/ItemSearch.js.map +1 -0
- package/dist/dist/editor/ui/PerfectTree.d.ts +78 -0
- package/dist/dist/editor/ui/PerfectTree.js +860 -0
- package/dist/dist/editor/ui/PerfectTree.js.map +1 -0
- package/dist/dist/editor/ui/Section.d.ts +4 -0
- package/dist/dist/editor/ui/Section.js +12 -0
- package/dist/dist/editor/ui/Section.js.map +1 -0
- package/dist/dist/editor/ui/SimpleIconButton.d.ts +14 -0
- package/dist/dist/editor/ui/SimpleIconButton.js +15 -0
- package/dist/dist/editor/ui/SimpleIconButton.js.map +1 -0
- package/dist/dist/editor/ui/SimpleMenu.d.ts +6 -0
- package/dist/dist/editor/ui/SimpleMenu.js +7 -0
- package/dist/dist/editor/ui/SimpleMenu.js.map +1 -0
- package/dist/dist/editor/ui/SimpleTable.d.ts +14 -0
- package/dist/dist/editor/ui/SimpleTable.js +9 -0
- package/dist/dist/editor/ui/SimpleTable.js.map +1 -0
- package/dist/dist/editor/ui/SimpleTabs.d.ts +16 -0
- package/dist/dist/editor/ui/SimpleTabs.js +20 -0
- package/dist/dist/editor/ui/SimpleTabs.js.map +1 -0
- package/dist/dist/editor/ui/SimpleToolbar.d.ts +3 -0
- package/dist/dist/editor/ui/SimpleToolbar.js +5 -0
- package/dist/dist/editor/ui/SimpleToolbar.js.map +1 -0
- package/dist/dist/editor/ui/Spinner.d.ts +4 -0
- package/dist/dist/editor/ui/Spinner.js +18 -0
- package/dist/dist/editor/ui/Spinner.js.map +1 -0
- package/dist/dist/editor/ui/Splitter.d.ts +22 -0
- package/dist/dist/editor/ui/Splitter.js +443 -0
- package/dist/dist/editor/ui/Splitter.js.map +1 -0
- package/dist/dist/editor/ui/TemplateSelectorDialog.d.ts +8 -0
- package/dist/dist/editor/ui/TemplateSelectorDialog.js +138 -0
- package/dist/dist/editor/ui/TemplateSelectorDialog.js.map +1 -0
- package/dist/dist/editor/ui/Toolbar.d.ts +3 -0
- package/dist/dist/editor/ui/Toolbar.js +5 -0
- package/dist/dist/editor/ui/Toolbar.js.map +1 -0
- package/dist/dist/editor/utils/id-helper.d.ts +1 -0
- package/dist/dist/editor/utils/id-helper.js +5 -0
- package/dist/dist/editor/utils/id-helper.js.map +1 -0
- package/dist/dist/editor/utils/insertOptions.d.ts +3 -0
- package/dist/dist/editor/utils/insertOptions.js +43 -0
- package/dist/dist/editor/utils/insertOptions.js.map +1 -0
- package/dist/dist/editor/utils/itemConverters.d.ts +3 -0
- package/dist/dist/editor/utils/itemConverters.js +53 -0
- package/dist/dist/editor/utils/itemConverters.js.map +1 -0
- package/dist/dist/editor/utils/itemutils.d.ts +3 -0
- package/dist/dist/editor/utils/itemutils.js +24 -0
- package/dist/dist/editor/utils/itemutils.js.map +1 -0
- package/dist/dist/editor/utils/jsonCleaner.d.ts +8 -0
- package/dist/dist/editor/utils/jsonCleaner.js +76 -0
- package/dist/dist/editor/utils/jsonCleaner.js.map +1 -0
- package/dist/dist/editor/utils/keyboardNavigation.d.ts +34 -0
- package/dist/dist/editor/utils/keyboardNavigation.js +237 -0
- package/dist/dist/editor/utils/keyboardNavigation.js.map +1 -0
- package/dist/dist/editor/utils/urlUtils.d.ts +9 -0
- package/dist/dist/editor/utils/urlUtils.js +25 -0
- package/dist/dist/editor/utils/urlUtils.js.map +1 -0
- package/dist/dist/editor/utils/useMemoDebug.d.ts +1 -0
- package/dist/dist/editor/utils/useMemoDebug.js +18 -0
- package/dist/dist/editor/utils/useMemoDebug.js.map +1 -0
- package/dist/dist/editor/utils.d.ts +65 -0
- package/dist/dist/editor/utils.js +488 -0
- package/dist/dist/editor/utils.js.map +1 -0
- package/dist/dist/editor/views/CompareView.d.ts +1 -0
- package/dist/dist/editor/views/CompareView.js +148 -0
- package/dist/dist/editor/views/CompareView.js.map +1 -0
- package/dist/dist/editor/views/EditView.d.ts +1 -0
- package/dist/dist/editor/views/EditView.js +15 -0
- package/dist/dist/editor/views/EditView.js.map +1 -0
- package/dist/dist/editor/views/ItemEditor.d.ts +7 -0
- package/dist/dist/editor/views/ItemEditor.js +29 -0
- package/dist/dist/editor/views/ItemEditor.js.map +1 -0
- package/dist/dist/editor/views/MediaFolderEditView.d.ts +4 -0
- package/dist/dist/editor/views/MediaFolderEditView.js +40 -0
- package/dist/dist/editor/views/MediaFolderEditView.js.map +1 -0
- package/dist/dist/editor/views/ParheliaView.d.ts +5 -0
- package/dist/dist/editor/views/ParheliaView.js +163 -0
- package/dist/dist/editor/views/ParheliaView.js.map +1 -0
- package/dist/dist/editor/views/SingleEditView.d.ts +9 -0
- package/dist/dist/editor/views/SingleEditView.js +33 -0
- package/dist/dist/editor/views/SingleEditView.js.map +1 -0
- package/dist/dist/images/bg-shape-black.webp +0 -0
- package/dist/dist/images/wizard-bg.png +0 -0
- package/dist/dist/images/wizard-tour.png +0 -0
- package/dist/dist/images/wizard.png +0 -0
- package/dist/dist/index.d.ts +67 -0
- package/dist/dist/index.js +57 -0
- package/dist/dist/index.js.map +1 -0
- package/dist/dist/lib/safelist.d.ts +1 -0
- package/dist/dist/lib/safelist.js +5 -0
- package/dist/dist/lib/safelist.js.map +1 -0
- package/dist/dist/lib/utils.d.ts +2 -0
- package/dist/dist/lib/utils.js +6 -0
- package/dist/dist/lib/utils.js.map +1 -0
- package/dist/dist/revision.d.ts +2 -0
- package/dist/dist/revision.js +3 -0
- package/dist/dist/revision.js.map +1 -0
- package/dist/dist/setup/SetupWizardPage.d.ts +5 -0
- package/dist/dist/setup/SetupWizardPage.js +8 -0
- package/dist/dist/setup/SetupWizardPage.js.map +1 -0
- package/dist/dist/setup/services/setupWizardService.d.ts +89 -0
- package/dist/dist/setup/services/setupWizardService.js +92 -0
- package/dist/dist/setup/services/setupWizardService.js.map +1 -0
- package/dist/dist/setup/utils/modelPricing.d.ts +7 -0
- package/dist/dist/setup/utils/modelPricing.js +106 -0
- package/dist/dist/setup/utils/modelPricing.js.map +1 -0
- package/dist/dist/setup/wizard/SetupWizard.d.ts +27 -0
- package/dist/dist/setup/wizard/SetupWizard.js +92 -0
- package/dist/dist/setup/wizard/SetupWizard.js.map +1 -0
- package/dist/dist/setup/wizard/index.d.ts +6 -0
- package/dist/dist/setup/wizard/index.js +6 -0
- package/dist/dist/setup/wizard/index.js.map +1 -0
- package/dist/dist/setup/wizard/steps/AgentsStep.d.ts +2 -0
- package/dist/dist/setup/wizard/steps/AgentsStep.js +117 -0
- package/dist/dist/setup/wizard/steps/AgentsStep.js.map +1 -0
- package/dist/dist/setup/wizard/steps/EndpointsStep.d.ts +2 -0
- package/dist/dist/setup/wizard/steps/EndpointsStep.js +94 -0
- package/dist/dist/setup/wizard/steps/EndpointsStep.js.map +1 -0
- package/dist/dist/setup/wizard/steps/ModelsStep.d.ts +2 -0
- package/dist/dist/setup/wizard/steps/ModelsStep.js +287 -0
- package/dist/dist/setup/wizard/steps/ModelsStep.js.map +1 -0
- package/dist/dist/setup/wizard/steps/SearchStep.d.ts +2 -0
- package/dist/dist/setup/wizard/steps/SearchStep.js +95 -0
- package/dist/dist/setup/wizard/steps/SearchStep.js.map +1 -0
- package/dist/dist/splash-screen/ModernSplashScreen.d.ts +8 -0
- package/dist/dist/splash-screen/ModernSplashScreen.js +36 -0
- package/dist/dist/splash-screen/ModernSplashScreen.js.map +1 -0
- package/dist/dist/splash-screen/NewPage.d.ts +3 -0
- package/dist/dist/splash-screen/NewPage.js +145 -0
- package/dist/dist/splash-screen/NewPage.js.map +1 -0
- package/dist/dist/splash-screen/OpenPage.d.ts +1 -0
- package/dist/dist/splash-screen/OpenPage.js +56 -0
- package/dist/dist/splash-screen/OpenPage.js.map +1 -0
- package/dist/dist/splash-screen/ParheliaAssistantChat.d.ts +8 -0
- package/dist/dist/splash-screen/ParheliaAssistantChat.js +169 -0
- package/dist/dist/splash-screen/ParheliaAssistantChat.js.map +1 -0
- package/dist/dist/splash-screen/ParheliaLogo.d.ts +5 -0
- package/dist/dist/splash-screen/ParheliaLogo.js +71 -0
- package/dist/dist/splash-screen/ParheliaLogo.js.map +1 -0
- package/dist/dist/splash-screen/RecentAgents.d.ts +7 -0
- package/dist/dist/splash-screen/RecentAgents.js +76 -0
- package/dist/dist/splash-screen/RecentAgents.js.map +1 -0
- package/dist/dist/splash-screen/RecentPages.d.ts +1 -0
- package/dist/dist/splash-screen/RecentPages.js +59 -0
- package/dist/dist/splash-screen/RecentPages.js.map +1 -0
- package/dist/dist/splash-screen/SectionHeadline.d.ts +4 -0
- package/dist/dist/splash-screen/SectionHeadline.js +7 -0
- package/dist/dist/splash-screen/SectionHeadline.js.map +1 -0
- package/dist/dist/styles.css +6035 -0
- package/dist/dist/tour/Tour.d.ts +3 -0
- package/dist/dist/tour/Tour.js +426 -0
- package/dist/dist/tour/Tour.js.map +1 -0
- package/dist/dist/tour/default-tour.d.ts +9 -0
- package/dist/dist/tour/default-tour.js +302 -0
- package/dist/dist/tour/default-tour.js.map +1 -0
- package/dist/dist/tour/preview-tour.d.ts +2 -0
- package/dist/dist/tour/preview-tour.js +93 -0
- package/dist/dist/tour/preview-tour.js.map +1 -0
- package/dist/dist/types.d.ts +490 -0
- package/dist/dist/types.js +2 -0
- package/dist/dist/types.js.map +1 -0
- package/dist/editor/control-center/parhelia-setup/Overview.d.ts +1 -0
- package/dist/editor/control-center/parhelia-setup/Overview.js +91 -0
- package/dist/editor/control-center/parhelia-setup/Overview.js.map +1 -0
- package/dist/editor/hooks/useEditorSettings.d.ts +17 -0
- package/dist/editor/hooks/useEditorSettings.js +61 -0
- package/dist/editor/hooks/useEditorSettings.js.map +1 -0
- package/dist/editor/page-viewer/EditorFormPopup.d.ts +11 -0
- package/dist/editor/page-viewer/EditorFormPopup.js +41 -0
- package/dist/editor/page-viewer/EditorFormPopup.js.map +1 -0
- package/dist/revision.d.ts +2 -2
- package/dist/revision.js +2 -2
- package/dist/revision.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useState, useEffect } from "react";
|
|
3
|
+
import { Card } from "../../../components/ui/card";
|
|
4
|
+
import { Button } from "../../../components/ui/button";
|
|
5
|
+
import { Select } from "../../../components/ui/select";
|
|
6
|
+
import { setupWizardService, } from "../../services/setupWizardService";
|
|
7
|
+
import { CheckCircle, AlertCircle, RefreshCw, Search, Save, } from "lucide-react";
|
|
8
|
+
export function SearchStep() {
|
|
9
|
+
const [state, setState] = useState("loading");
|
|
10
|
+
const [embeddingsModels, setEmbeddingsModels] = useState([]);
|
|
11
|
+
const [endpoints, setEndpoints] = useState([]);
|
|
12
|
+
const [error, setError] = useState(null);
|
|
13
|
+
const [selectedModelId, setSelectedModelId] = useState("");
|
|
14
|
+
const [selectedEndpointId, setSelectedEndpointId] = useState("");
|
|
15
|
+
const [saving, setSaving] = useState(false);
|
|
16
|
+
const loadData = useCallback(async () => {
|
|
17
|
+
try {
|
|
18
|
+
setState("loading");
|
|
19
|
+
setError(null);
|
|
20
|
+
const [models, endpointsData] = await Promise.all([
|
|
21
|
+
setupWizardService.getEmbeddingsModels(),
|
|
22
|
+
setupWizardService.getEndpoints(),
|
|
23
|
+
]);
|
|
24
|
+
setEmbeddingsModels(models);
|
|
25
|
+
setEndpoints(endpointsData);
|
|
26
|
+
// Pre-select if model has endpoint
|
|
27
|
+
if (models.length > 0) {
|
|
28
|
+
const modelWithEndpoint = models.find((m) => m.endpointId);
|
|
29
|
+
if (modelWithEndpoint) {
|
|
30
|
+
setSelectedModelId(modelWithEndpoint.id);
|
|
31
|
+
if (modelWithEndpoint.endpointId) {
|
|
32
|
+
setSelectedEndpointId(modelWithEndpoint.endpointId);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
const firstModel = models[0];
|
|
37
|
+
if (firstModel) {
|
|
38
|
+
setSelectedModelId(firstModel.id);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if (endpointsData.length > 0 && !selectedEndpointId) {
|
|
43
|
+
const firstEndpoint = endpointsData[0];
|
|
44
|
+
if (firstEndpoint) {
|
|
45
|
+
setSelectedEndpointId(firstEndpoint.id);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
setState("success");
|
|
49
|
+
}
|
|
50
|
+
catch (e) {
|
|
51
|
+
setState("error");
|
|
52
|
+
setError(e?.message || "Failed to load embeddings configuration");
|
|
53
|
+
}
|
|
54
|
+
}, [selectedEndpointId]);
|
|
55
|
+
const handleSave = useCallback(async () => {
|
|
56
|
+
if (!selectedModelId) {
|
|
57
|
+
setError("Please select an embeddings model");
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
try {
|
|
61
|
+
setSaving(true);
|
|
62
|
+
setError(null);
|
|
63
|
+
await setupWizardService.setEmbeddingsConfig({
|
|
64
|
+
modelId: selectedModelId,
|
|
65
|
+
endpointId: selectedEndpointId,
|
|
66
|
+
});
|
|
67
|
+
setState("success");
|
|
68
|
+
}
|
|
69
|
+
catch (e) {
|
|
70
|
+
setError(e?.message || "Failed to save embeddings configuration");
|
|
71
|
+
}
|
|
72
|
+
finally {
|
|
73
|
+
setSaving(false);
|
|
74
|
+
}
|
|
75
|
+
}, [selectedModelId, selectedEndpointId]);
|
|
76
|
+
useEffect(() => {
|
|
77
|
+
loadData();
|
|
78
|
+
}, [loadData]);
|
|
79
|
+
const statusIcon = (state) => {
|
|
80
|
+
if (state === "success")
|
|
81
|
+
return _jsx(CheckCircle, { className: "h-4 w-4 text-green-600", strokeWidth: 1 });
|
|
82
|
+
if (state === "error")
|
|
83
|
+
return _jsx(AlertCircle, { className: "h-4 w-4 text-red-600", strokeWidth: 1 });
|
|
84
|
+
return (_jsx(RefreshCw, { className: "h-4 w-4 animate-spin text-amber-600", strokeWidth: 1 }));
|
|
85
|
+
};
|
|
86
|
+
return (_jsx(Card, { icon: _jsx(Search, { strokeWidth: 1, className: "h-5 w-5" }), title: "Search Index Configuration", description: "Configure embeddings model and endpoint for search functionality.", children: _jsxs("div", { className: "space-y-4", children: [_jsxs("div", { className: "flex items-center gap-2", children: [statusIcon(state), _jsx("span", { className: "text-sm text-gray-700", children: "Configure embeddings for search" })] }), embeddingsModels.length === 0 && (_jsx("div", { className: "rounded border border-yellow-200 bg-yellow-50 p-2 text-xs text-yellow-800", children: "No embeddings models found. Please install embeddings models in the Models step." })), endpoints.length === 0 && (_jsx("div", { className: "rounded border border-yellow-200 bg-yellow-50 p-2 text-xs text-yellow-800", children: "No endpoints found. Please configure endpoints in the Endpoints step." })), embeddingsModels.length > 0 && (_jsxs("div", { className: "space-y-2", children: [_jsx("label", { htmlFor: "embeddings-model", className: "mb-1 block text-sm font-medium text-gray-700", children: "Embeddings Model" }), _jsx(Select, { id: "embeddings-model", value: selectedModelId, onValueChange: setSelectedModelId, options: embeddingsModels.map((model) => ({
|
|
87
|
+
value: model.id,
|
|
88
|
+
label: `${model.name}${model.endpointName ? ` (${model.endpointName})` : ""}`,
|
|
89
|
+
})), placeholder: "Select embeddings model" })] })), endpoints.length > 0 && (_jsxs("div", { className: "space-y-2", children: [_jsx("label", { htmlFor: "embeddings-endpoint", className: "mb-1 block text-sm font-medium text-gray-700", children: "Embeddings Endpoint" }), _jsx(Select, { id: "embeddings-endpoint", value: selectedEndpointId, onValueChange: setSelectedEndpointId, options: endpoints.map((endpoint) => ({
|
|
90
|
+
value: endpoint.id,
|
|
91
|
+
label: `${endpoint.name} (${endpoint.type})`,
|
|
92
|
+
})), placeholder: "Select endpoint" }), _jsx("p", { className: "text-xs text-gray-500", children: "Note: The endpoint is typically derived from the selected model's endpoint." })] })), embeddingsModels.length > 0 && endpoints.length > 0 && (_jsxs(Button, { onClick: handleSave, disabled: saving || !selectedModelId, className: "w-full", children: [saving ? (_jsx(RefreshCw, { strokeWidth: 1, className: "h-4 w-4 animate-spin" })) : (_jsx(Save, { strokeWidth: 1, className: "h-4 w-4" })), "Configure Search"] })), error && (_jsx("div", { className: "rounded border border-red-200 bg-red-50 p-2 text-xs whitespace-pre-wrap text-red-700", children: error }))] }) }));
|
|
93
|
+
}
|
|
94
|
+
export default SearchStep;
|
|
95
|
+
//# sourceMappingURL=SearchStep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchStep.js","sourceRoot":"","sources":["../../../../src/setup/wizard/steps/SearchStep.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EACL,kBAAkB,GAGnB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,WAAW,E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,EAAE,UAAU,EACnB,QAAQ,EAAE,MAAM,IAAI,CAAC,eAAe,EACpC,SAAS,EAAC,QAAQ,aAEjB,MAAM,CAAC,CAAC,CAAC,CACR,KAAC,SAAS,IAAC,WAAW,EAAE,CAAC,EAAE,SAAS,EAAC,sBAAsB,GAAG,CAC/D,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,IAAC,WAAW,EAAE,CAAC,EAAE,SAAS,EAAC,SAAS,GAAG,CAC7C,wBAEM,CACV,EAEA,KAAK,IAAI,CACR,cAAK,SAAS,EAAC,sFAAsF,YAClG,KAAK,GACF,CACP,IACG,GACD,CACR,CAAC;AACJ,CAAC;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modern splash screen with clean design featuring:
|
|
3
|
+
* - Parhelia logo and branding
|
|
4
|
+
* - Functional AI assistant chat interface
|
|
5
|
+
* - Quick action buttons
|
|
6
|
+
* - Recent pages overview
|
|
7
|
+
*/
|
|
8
|
+
export declare function ModernSplashScreen(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import { useEditContext } from "../editor/client/editContext";
|
|
5
|
+
import { ActionButton } from "../components/ActionButton";
|
|
6
|
+
import { RecentPages } from "./RecentPages";
|
|
7
|
+
import { ParheliaAssistantChat } from "./ParheliaAssistantChat";
|
|
8
|
+
import { RecentAgents } from "./RecentAgents";
|
|
9
|
+
import { FileText, FolderOpen, ExternalLink, Bot, Layers } from "lucide-react";
|
|
10
|
+
import { ParheliaLogo } from "./ParheliaLogo";
|
|
11
|
+
/**
|
|
12
|
+
* Modern splash screen with clean design featuring:
|
|
13
|
+
* - Parhelia logo and branding
|
|
14
|
+
* - Functional AI assistant chat interface
|
|
15
|
+
* - Quick action buttons
|
|
16
|
+
* - Recent pages overview
|
|
17
|
+
*/
|
|
18
|
+
export function ModernSplashScreen() {
|
|
19
|
+
const editContext = useEditContext();
|
|
20
|
+
const [selectedAgent, setSelectedAgent] = useState(null);
|
|
21
|
+
const handleSelectAgent = (agent) => {
|
|
22
|
+
setSelectedAgent(agent);
|
|
23
|
+
};
|
|
24
|
+
return (_jsxs("div", { className: "overflow-y-auto bg-gradient-to-br relative flex h-screen w-full flex-col from-purple-50/30 via-pink-50/20 to-blue-50/30", children: [_jsx("div", { className: "bg-wizard absolute inset-0 opacity-20" }), _jsxs("div", { className: "relative z-10 flex flex-1 flex-col items-center px-4 py-8 md:py-12", children: [_jsxs("div", { className: "mb-8 flex flex-col items-center gap-4 md:mb-12", children: [_jsx(ParheliaLogo, {}), _jsx("p", { className: "text-center text-sm text-gray-600 md:text-base", children: "Where brilliant ideas become brilliant content" })] }), _jsx("div", { className: "mb-8 w-full max-w-3xl md:mb-12", children: _jsx(ParheliaAssistantChat, { className: "w-full", externalAgent: selectedAgent }) }), _jsx("div", { className: "mb-8 w-full max-w-3xl md:mb-12", children: _jsx(RecentAgents, { onSelectAgent: handleSelectAgent }) }), _jsxs("div", { className: "mb-8 w-full max-w-5xl md:mb-12", children: [_jsx("h2", { className: "mb-4 text-center text-sm font-medium text-gray-700", children: "Quick Actions" }), _jsxs("div", { className: "grid grid-cols-2 gap-3 md:grid-cols-4 md:gap-4", children: [_jsx(ActionCard, { icon: _jsx(FileText, { strokeWidth: 1 }), title: "Create Page", description: "Start building", onClick: () => editContext?.switchView("new-page"), dataTestId: "create-new-page-button" }), _jsx(ActionCard, { icon: _jsx(FolderOpen, { strokeWidth: 1 }), title: "Open Page", description: "Browse content", onClick: () => editContext?.switchView("open-page") }), _jsx(ActionCard, { icon: _jsx(Bot, { strokeWidth: 1 }), title: "My Agents", description: "AI assistants", onClick: () => {
|
|
25
|
+
editContext?.switchView("agents-overview");
|
|
26
|
+
editContext?.setShowAgentsPanel?.(true);
|
|
27
|
+
} }), _jsx(ActionCard, { icon: _jsx(ExternalLink, { strokeWidth: 1 }), title: "Launchpad", description: "Sitecore tools", onClick: () => {
|
|
28
|
+
window.open("/sitecore/shell/sitecore/client/Applications/Launchpad", "_blank");
|
|
29
|
+
} })] })] }), _jsx("div", { className: "w-full max-w-5xl", children: _jsx(RecentPages, {}) }), _jsx("div", { className: "mt-8 flex flex-col gap-3 md:mt-12", children: _jsxs(ActionButton, { variant: "ghost", onClick: () => {
|
|
30
|
+
editContext?.switchView("page-editor");
|
|
31
|
+
}, className: "text-gray-600 hover:text-gray-900", children: [_jsx(Layers, { strokeWidth: 1, className: "mr-2 h-4 w-4" }), "Return to editor"] }) })] })] }));
|
|
32
|
+
}
|
|
33
|
+
const ActionCard = ({ icon, title, description, onClick, dataTestId, }) => {
|
|
34
|
+
return (_jsxs("button", { onClick: onClick, "data-testid": dataTestId, className: "group flex cursor-pointer flex-col items-center gap-3 rounded-lg bg-white p-6 shadow-sm transition-all duration-200 hover:scale-[1.02] hover:shadow-md active:scale-[0.98] md:p-8", children: [_jsx("div", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-gradient-to-br from-purple-100 to-pink-100 text-purple-600 transition-colors group-hover:from-purple-500 group-hover:to-pink-500 group-hover:text-white md:h-14 md:w-14", children: icon }), _jsxs("div", { className: "flex flex-col items-center gap-1", children: [_jsx("h3", { className: "text-sm font-semibold text-gray-900 md:text-base", children: title }), _jsx("p", { className: "text-xs text-gray-500", children: description })] })] }));
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=ModernSplashScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModernSplashScreen.js","sourceRoot":"","sources":["../../src/splash-screen/ModernSplashScreen.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EAAE,YAAY,E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F,CACP,CAAC;AACJ,CAAC;AAaD,MAAM,UAAU,GAA8B,CAAC,EAC7C,IAAI,EACJ,KAAK,EACL,WAAW,EACX,OAAO,EACP,UAAU,GACX,EAAE,EAAE;IACH,OAAO,CACL,kBACE,OAAO,EAAE,OAAO,iBACH,UAAU,EACvB,SAAS,EAAC,mLAAmL,aAE7L,cAAK,SAAS,EAAC,oOAAoO,YAChP,IAAI,GACD,EACN,eAAK,SAAS,EAAC,kCAAkC,aAC/C,aAAI,SAAS,EAAC,kDAAkD,YAC7D,KAAK,GACH,EACL,YAAG,SAAS,EAAC,uBAAuB,YAAE,WAAW,GAAK,IAClD,IACC,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useMemo, useState } from "react";
|
|
3
|
+
import { ScrollingContentTree } from "../editor/ScrollingContentTree";
|
|
4
|
+
import { getChildren, } from "../editor/services/contentService";
|
|
5
|
+
import { executeCreateItem, loadInsertOptions, } from "../editor/services/editService";
|
|
6
|
+
import { Input } from "../components/ui/input";
|
|
7
|
+
import { getAbsoluteIconUrl, getItemDescriptor } from "../editor/utils";
|
|
8
|
+
import { cn } from "../lib/utils";
|
|
9
|
+
import { useEditContext } from "../client-components";
|
|
10
|
+
import { useDebouncedCallback } from "use-debounce";
|
|
11
|
+
// Wizard imports removed; use generic insert options only
|
|
12
|
+
import { Card } from "../components/ui/card";
|
|
13
|
+
import { CardConnector } from "../components/ui/CardConnector";
|
|
14
|
+
import { Logo } from "../editor/ui/Icons";
|
|
15
|
+
import { ActionButton } from "../components/ActionButton";
|
|
16
|
+
import { FilePenLine, Palette, X, MapPin } from "lucide-react";
|
|
17
|
+
import { toast } from "sonner";
|
|
18
|
+
export function NewPage({ selectedItemId }) {
|
|
19
|
+
const [selectedItem, setSelectedItem] = useState(null);
|
|
20
|
+
const [isValid, setIsValid] = useState(false);
|
|
21
|
+
const [insertOptions, setInsertOptions] = useState(null);
|
|
22
|
+
const [validationMessage, setValidationMessage] = useState(null);
|
|
23
|
+
const [selectedTemplate, setSelectedTemplate] = useState();
|
|
24
|
+
const [name, setName] = useState("");
|
|
25
|
+
const editContext = useEditContext();
|
|
26
|
+
const insertOptionsAndWizards = useMemo(() => insertOptions || [], [insertOptions]);
|
|
27
|
+
const selectedOption = useMemo(() => insertOptionsAndWizards?.find((x) => (x.id ?? x.typeId) === selectedTemplate), [insertOptionsAndWizards, selectedTemplate]);
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
const loadOptions = async () => {
|
|
30
|
+
if (!selectedItem)
|
|
31
|
+
return;
|
|
32
|
+
const item = getItemDescriptor(selectedItem);
|
|
33
|
+
const insertOptions = await loadInsertOptions(item);
|
|
34
|
+
// Keep all options (templates and wizards). Wizards have an `action` property.
|
|
35
|
+
setInsertOptions(insertOptions);
|
|
36
|
+
setSelectedTemplate(insertOptions?.[0]?.id ?? insertOptions?.[0]?.typeId);
|
|
37
|
+
};
|
|
38
|
+
loadOptions();
|
|
39
|
+
}, [selectedItem]);
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
const loadItem = async () => {
|
|
42
|
+
const itemId = selectedItemId ||
|
|
43
|
+
editContext?.contentEditorItem?.id ||
|
|
44
|
+
editContext?.configuration.editor.dialogs.newPage.expandTreeNode;
|
|
45
|
+
if (!itemId)
|
|
46
|
+
return;
|
|
47
|
+
const item = await editContext.itemsRepository.getItem({
|
|
48
|
+
id: itemId,
|
|
49
|
+
language: "en",
|
|
50
|
+
version: 0,
|
|
51
|
+
});
|
|
52
|
+
if (item)
|
|
53
|
+
setSelectedItem(item);
|
|
54
|
+
};
|
|
55
|
+
loadItem();
|
|
56
|
+
}, [selectedItemId, editContext?.contentEditorItem?.id]);
|
|
57
|
+
const isValidDebounced = useDebouncedCallback(async () => {
|
|
58
|
+
if (!selectedItem)
|
|
59
|
+
return;
|
|
60
|
+
// Only validate for template creation (no action).
|
|
61
|
+
const isWizard = !!selectedOption?.action?.type;
|
|
62
|
+
if (isWizard) {
|
|
63
|
+
setIsValid(false);
|
|
64
|
+
setValidationMessage(null);
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
let valid = !!selectedTemplate && name.trim().length >= 3;
|
|
68
|
+
if (valid) {
|
|
69
|
+
const children = await getChildren(selectedItem.id, editContext?.sessionId ?? "", [], false, editContext?.contentEditorItem?.language || "en");
|
|
70
|
+
if (children.find((x) => x.name.toLocaleLowerCase() === name.trim().toLocaleLowerCase())) {
|
|
71
|
+
valid = false;
|
|
72
|
+
setValidationMessage("A page with this name already exists.");
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
if (name.trim().length > 0 && name.trim().length < 3)
|
|
77
|
+
setValidationMessage("Name is too short.");
|
|
78
|
+
else
|
|
79
|
+
setValidationMessage(null);
|
|
80
|
+
}
|
|
81
|
+
if (valid)
|
|
82
|
+
setValidationMessage(null);
|
|
83
|
+
setIsValid(valid);
|
|
84
|
+
}, 200);
|
|
85
|
+
useEffect(() => {
|
|
86
|
+
isValidDebounced();
|
|
87
|
+
}, [name]);
|
|
88
|
+
const handleOk = async () => {
|
|
89
|
+
if (!selectedItem || !selectedTemplate)
|
|
90
|
+
return;
|
|
91
|
+
const result = await executeCreateItem(getItemDescriptor(selectedItem), selectedTemplate, name);
|
|
92
|
+
if (result.response.ok) {
|
|
93
|
+
editContext?.switchView("page-editor");
|
|
94
|
+
if (result.data)
|
|
95
|
+
editContext?.loadItem(result.data);
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
toast.error("Failed to create item");
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
const launchAction = (ev) => {
|
|
102
|
+
if (!selectedTemplate || !selectedItem)
|
|
103
|
+
return;
|
|
104
|
+
const option = selectedOption;
|
|
105
|
+
const action = option?.action;
|
|
106
|
+
if (!action?.type)
|
|
107
|
+
return;
|
|
108
|
+
const cmd = editContext?.configuration?.commands?.[action.type];
|
|
109
|
+
if (!cmd)
|
|
110
|
+
return;
|
|
111
|
+
editContext?.executeCommand({ command: cmd, data: { ...action.data, item: selectedItem }, event: ev });
|
|
112
|
+
};
|
|
113
|
+
return (_jsxs("div", { className: "flex h-full flex-col gap-6 bg-gray-100 p-4 md:p-8", children: [_jsxs("div", { className: "flex gap-4", children: [_jsx(Logo, { className: "h-8 w-8" }), _jsxs("div", { className: "flex-1 text-neutral-800", children: [_jsx("div", { className: "text-lg font-semibold md:text-xl", children: "Create New Page" }), _jsx("div", { className: "mt-1 text-xs font-light md:text-sm", children: "Select a location, choose a template or wizard, and name your new page" })] }), _jsxs("div", { className: "flex items-start gap-2", children: [_jsx(ActionButton, { onClick: () => editContext?.switchView("open-page"), children: "Open Existing" }), _jsx(ActionButton, { onClick: () => editContext?.switchView(editContext.previousViewName || "splash-screen"), variant: "ghost", className: "p-2", "aria-label": "Close", children: _jsx(X, { className: "h-4 w-4" }) })] })] }), _jsxs("div", { className: "flex flex-1 flex-col md:flex-row", children: [" ", _jsx("div", { "data-testid": "new-page-pick-location-tree", className: `tour-pick-location w-full md:w-1/2 ${selectedItem ? "h-full md:h-full" : ""}`, children: _jsx(Card, { icon: _jsx(MapPin, { className: "h-4 w-4" }), title: "Pick Location", description: "Select where to create your new page", noPadding: true, className: selectedItem ? "h-full" : "h-auto", children: _jsx("div", { className: `px-4 pb-4 md:px-6 ${selectedItem ? "h-full" : ""}`, children: _jsxs("div", { className: `relative ${selectedItem ? "h-full" : ""}`, children: [" ", _jsx("div", { className: `overflow-auto ${selectedItem
|
|
114
|
+
? "absolute inset-0"
|
|
115
|
+
: "min-h-[300px] md:min-h-[400px]"}`, children: _jsx(ScrollingContentTree, { selectedItemId: selectedItem?.id || selectedItemId, expandedItemId: selectedItem?.id || selectedItemId, scrollToSelected: true, hideRootNodes: true, onSelectionChange: (selection) => {
|
|
116
|
+
const selected = selection[0];
|
|
117
|
+
if (selected)
|
|
118
|
+
setSelectedItem(selected);
|
|
119
|
+
} }) })] }) }) }) }), selectedItem && _jsx(CardConnector, {}), selectedItem && (_jsxs("div", { className: "flex h-auto w-full flex-col md:w-1/2", children: [_jsx(Card, { icon: _jsx(Palette, { className: "h-4 w-4" }), title: "Choose Template or Wizard", description: "Select a template or wizard to create your page", children: _jsx("div", { className: "tour-choose-template", children: _jsxs("div", { className: "flex min-h-8 flex-wrap gap-3", children: [!insertOptions?.length && (_jsx("div", { className: "text-sm text-gray-500", children: "You cannot insert content at the selected location." })), insertOptionsAndWizards?.map((option) => (_jsxs("div", { onClick: () => {
|
|
120
|
+
const id = option.id ?? option.typeId;
|
|
121
|
+
setSelectedTemplate(id);
|
|
122
|
+
const action = option?.action;
|
|
123
|
+
if (action?.type && selectedItem) {
|
|
124
|
+
const cfg = editContext?.configuration;
|
|
125
|
+
try {
|
|
126
|
+
console.log("[NewPage] action type:", action.type);
|
|
127
|
+
console.log("[NewPage] command keys at click:", Object.keys(cfg?.commands || {}));
|
|
128
|
+
}
|
|
129
|
+
catch { }
|
|
130
|
+
const cmd = cfg?.commands?.[action.type] || cfg?.commands?.["start-wizard"];
|
|
131
|
+
if (cmd) {
|
|
132
|
+
editContext?.executeCommand({
|
|
133
|
+
command: cmd,
|
|
134
|
+
data: { ...(action.data ?? {}), item: selectedItem },
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}, className: cn("hover:border-theme-secondary flex h-23 min-w-34 cursor-pointer flex-col items-center justify-center gap-2 rounded border border-gray-200 text-xs", selectedTemplate === (option.id ?? option.typeId)
|
|
139
|
+
? "bg-theme-secondary-light border-theme-secondary"
|
|
140
|
+
: "bg-white"), children: [" ", _jsx("img", { src: getAbsoluteIconUrl(option.icon), alt: option.name, width: "32", height: "32" }), option.name] }, option.id ?? option.typeId)))] }) }) }), selectedTemplate && selectedOption && !selectedOption?.action && (_jsxs(_Fragment, { children: [_jsx(CardConnector, { direction: "vertical" }), _jsx(Card, { icon: _jsx(FilePenLine, {}), title: "Name Your Page", description: "Enter a name for your new page", children: _jsxs("div", { children: [_jsx(Input, { className: "w-full rounded p-1.5 text-xs", value: name, id: "new-page-name", onChange: (e) => setName(e.target.value), onKeyDown: (ev) => {
|
|
141
|
+
if (ev.key === "Enter" && isValid)
|
|
142
|
+
handleOk();
|
|
143
|
+
}, "data-testid": "new-page-name", placeholder: "Enter page name..." }), validationMessage && (_jsx("div", { className: "mt-2 text-red-500", children: validationMessage })), _jsx("div", { className: "mt-4", children: _jsx(ActionButton, { id: "create-new-page-button", onClick: handleOk, disabled: !isValid, isLoading: false, children: "Create page" }) })] }) })] }))] }))] })] }));
|
|
144
|
+
}
|
|
145
|
+
//# sourceMappingURL=NewPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewPage.js","sourceRoot":"","sources":["../../src/splash-screen/NewPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEtE,OAAO,EACL,WAAW,GAEZ,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,0DAA0D;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,M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AE,QAAQ,EAAE,CAAC;oDAChD,CAAC,iBACW,eAAe,EAC3B,WAAW,EAAC,oBAAoB,GAChC,EACD,iBAAiB,IAAI,CACpB,cAAK,SAAS,EAAC,mBAAmB,YAC/B,iBAAiB,GACd,CACP,EACD,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,YAAY,IACX,EAAE,EAAC,wBAAwB,EAC3B,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,CAAC,OAAO,EAClB,SAAS,EAAE,KAAK,4BAGH,GACX,IACF,GACD,IACN,CACJ,IACC,CACP,IACG,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function OpenPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect, useState } from "react";
|
|
4
|
+
import { useEditContext } from "../editor/client/editContext";
|
|
5
|
+
import { ScrollingContentTree } from "../editor/ScrollingContentTree";
|
|
6
|
+
import { Spinner } from "../editor/ui/Spinner";
|
|
7
|
+
import { Card } from "../components/ui/card";
|
|
8
|
+
import { Logo, MagicEditIcon } from "../editor/ui/Icons";
|
|
9
|
+
import { ActionButton } from "../components/ActionButton";
|
|
10
|
+
import { RecentPages } from "./RecentPages";
|
|
11
|
+
import { X, Network } from "lucide-react";
|
|
12
|
+
import ItemSearch from "../editor/ui/ItemSearch";
|
|
13
|
+
export function OpenPage() {
|
|
14
|
+
const savedHistory = typeof window !== "undefined"
|
|
15
|
+
? localStorage.getItem("editor.browseHistory")
|
|
16
|
+
: null;
|
|
17
|
+
const [selectedPage, setSelectedPage] = useState(null);
|
|
18
|
+
const editContext = useEditContext();
|
|
19
|
+
const recentPages = savedHistory
|
|
20
|
+
? JSON.parse(savedHistory)
|
|
21
|
+
: [];
|
|
22
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
23
|
+
const [hoveredItem, setHoveredItem] = useState();
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
if (recentPages.length > 0 && recentPages[0])
|
|
26
|
+
setSelectedPage(recentPages[0]);
|
|
27
|
+
}, []);
|
|
28
|
+
if (isLoading) {
|
|
29
|
+
return (_jsx("div", { className: "flex h-full items-center justify-center bg-gray-100", children: _jsx(Spinner, {}) }));
|
|
30
|
+
}
|
|
31
|
+
const loadItem = (item) => {
|
|
32
|
+
setIsLoading(true);
|
|
33
|
+
editContext?.switchView("page-editor");
|
|
34
|
+
editContext
|
|
35
|
+
?.loadItem({
|
|
36
|
+
id: item.id,
|
|
37
|
+
language: item.language ?? "en",
|
|
38
|
+
version: item.version,
|
|
39
|
+
})
|
|
40
|
+
.finally(() => {
|
|
41
|
+
setIsLoading(false);
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
const renderContent = () => {
|
|
45
|
+
return (_jsxs("div", { className: "flex h-full flex-col gap-6", children: [_jsxs("div", { className: "flex gap-4", children: [_jsx(Logo, { className: "h-8 w-8" }), _jsxs("div", { className: "flex-1 text-neutral-800", children: [_jsx("div", { className: "text-lg font-semibold md:text-xl", children: "Open Page" }), _jsx("div", { className: "mt-1 text-xs font-light md:text-sm", children: "Browse your content structure or access recently viewed pages" })] }), _jsxs("div", { className: "flex items-start gap-2", children: [_jsxs(ActionButton, { onClick: () => editContext?.switchView("new-page"), isLoading: false, children: ["Create New Page ", _jsx(MagicEditIcon, {})] }), _jsx(ActionButton, { onClick: () => editContext?.switchView(editContext.previousViewName || "splash-screen"), variant: "ghost", className: "p-2", "aria-label": "Close", children: _jsx(X, { className: "h-4 w-4" }) })] })] }), _jsxs("div", { className: "flex flex-1 flex-col gap-4 text-sm md:flex-row", children: [_jsx("div", { className: "flex-1", children: _jsx(Card, { icon: _jsx(Network, { className: "h-4 w-4" }), title: "Browse Content", description: "Navigate through your content structure", noPadding: true, className: "h-full", children: _jsxs("div", { className: "flex h-full flex-col gap-2 px-4 py-2", children: [_jsx(ItemSearch, { setHoveredItem: setHoveredItem, itemSelected: (item) => {
|
|
46
|
+
loadItem(item);
|
|
47
|
+
} }), _jsx("div", { className: "relative flex-1", children: _jsx(ScrollingContentTree, { selectedItemId: hoveredItem?.id ?? selectedPage?.id, hideRootNodes: true, onSelectionChange: (selection) => {
|
|
48
|
+
const selectedItem = selection[0];
|
|
49
|
+
if (selectedItem) {
|
|
50
|
+
loadItem(selectedItem);
|
|
51
|
+
}
|
|
52
|
+
} }) })] }) }) }), _jsx("div", { className: "flex-1 md:pl-4", children: _jsx(RecentPages, {}) })] })] }));
|
|
53
|
+
};
|
|
54
|
+
return (_jsx("div", { className: "flex h-full flex-col bg-gray-100 p-4 md:p-8", children: renderContent() }));
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=OpenPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenPage.js","sourceRoot":"","sources":["../../src/splash-screen/OpenPage.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,UAA0B,MAAM,yBAAyB,CAAC;AAEjE,MAAM,UAAU,QAAQ;IACtB,MAAM,YAAY,GAChB,OAAO,M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AiB,EAAE,CAAC,SAAS,EAAE,EAAE;oDAC/B,MAAM,YAAY,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;oDAClC,IAAI,YAAY,EAAE,CAAC;wDACjB,QAAQ,CAAC,YAAY,CAAC,CAAC;oDACzB,CAAC;gDACH,CAAC,GACD,GACE,IACF,GACD,GACH,EACN,cAAK,SAAS,EAAC,gBAAgB,YAC7B,KAAC,WAAW,KAAG,GACX,IACF,IACF,CACP,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,cAAK,SAAS,EAAC,6CAA6C,YACzD,aAAa,EAAE,GACZ,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Agent } from "../editor/services/agentService";
|
|
3
|
+
interface ParheliaAssistantChatProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
externalAgent?: Agent | null;
|
|
6
|
+
}
|
|
7
|
+
export declare const ParheliaAssistantChat: React.FC<ParheliaAssistantChatProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState, useEffect, useCallback, startTransition, ViewTransition } from "react";
|
|
4
|
+
import { Loader2, RotateCcw, X } from "lucide-react";
|
|
5
|
+
import { useEditContext } from "../editor/client/editContext";
|
|
6
|
+
import { loadAiProfiles } from "../editor/services/aiService";
|
|
7
|
+
import { getActiveAgents, closeAgent } from "../editor/services/agentService";
|
|
8
|
+
import { AgentTerminal } from "../editor/ai/AgentTerminal";
|
|
9
|
+
import { cn } from "../lib/utils";
|
|
10
|
+
import { Button } from "../components/ui/button";
|
|
11
|
+
export const ParheliaAssistantChat = ({ className, externalAgent, }) => {
|
|
12
|
+
const editContext = useEditContext();
|
|
13
|
+
const [profile, setProfile] = useState(null);
|
|
14
|
+
const [profiles, setProfiles] = useState([]);
|
|
15
|
+
const [isLoading, setIsLoading] = useState(true);
|
|
16
|
+
const [agent, setAgent] = useState(null);
|
|
17
|
+
const [agentKey, setAgentKey] = useState(0); // Force re-render of AgentTerminal
|
|
18
|
+
const [isTerminalVisible, setIsTerminalVisible] = useState(false);
|
|
19
|
+
// Create a new agent
|
|
20
|
+
const createNewAgent = useCallback((selectedProfile) => {
|
|
21
|
+
const agentDisplayName = selectedProfile.agentName || "Parhelia";
|
|
22
|
+
const agentId = crypto.randomUUID();
|
|
23
|
+
const newAgent = {
|
|
24
|
+
status: "new",
|
|
25
|
+
id: agentId,
|
|
26
|
+
name: agentDisplayName,
|
|
27
|
+
updatedDate: new Date().toISOString(),
|
|
28
|
+
userId: "",
|
|
29
|
+
profileId: selectedProfile.id,
|
|
30
|
+
profileName: selectedProfile.name,
|
|
31
|
+
};
|
|
32
|
+
setAgent(newAgent);
|
|
33
|
+
return newAgent;
|
|
34
|
+
}, []);
|
|
35
|
+
// Function to load profiles
|
|
36
|
+
const loadProfile = useCallback(async () => {
|
|
37
|
+
try {
|
|
38
|
+
setIsLoading(true);
|
|
39
|
+
const profileList = await loadAiProfiles();
|
|
40
|
+
// Try to find Parhelia profile with multiple strategies
|
|
41
|
+
let assistantProfile;
|
|
42
|
+
// Strategy 1: Look for exact ID match
|
|
43
|
+
assistantProfile = profileList.find((p) => p.id === "7d45ab97-f253-4915-8b32-f9e8c762c5e9");
|
|
44
|
+
// Strategy 2: Look for exact name match (case-insensitive)
|
|
45
|
+
if (!assistantProfile) {
|
|
46
|
+
assistantProfile = profileList.find((p) => p.name.toLowerCase() === "parhelia");
|
|
47
|
+
}
|
|
48
|
+
// Strategy 3: Look for profile containing "parhelia" in name or displayTitle
|
|
49
|
+
if (!assistantProfile) {
|
|
50
|
+
assistantProfile = profileList.find((p) => p.name.toLowerCase().includes("parhelia") ||
|
|
51
|
+
p.displayTitle?.toLowerCase().includes("parhelia"));
|
|
52
|
+
}
|
|
53
|
+
// Strategy 4: Fallback to first available profile
|
|
54
|
+
const selectedProfile = assistantProfile || profileList[0];
|
|
55
|
+
if (selectedProfile) {
|
|
56
|
+
setProfile(selectedProfile);
|
|
57
|
+
setProfiles(profileList);
|
|
58
|
+
// Try to find latest idle Parhelia agent
|
|
59
|
+
try {
|
|
60
|
+
const response = await getActiveAgents({ limit: 50 });
|
|
61
|
+
// Filter for Parhelia agents (by profileId) that are idle/completed
|
|
62
|
+
// Exclude agents that are "running" (1) or "waitingForApproval" (2) to avoid showing stuck dancing dots
|
|
63
|
+
const parheliaAgents = response.agents.filter((a) => a.profileId === selectedProfile.id &&
|
|
64
|
+
a.status !== "running" &&
|
|
65
|
+
a.status !== 1 &&
|
|
66
|
+
a.status !== "waitingForApproval" &&
|
|
67
|
+
a.status !== 2);
|
|
68
|
+
if (parheliaAgents.length > 0 && parheliaAgents[0]) {
|
|
69
|
+
// Use the most recent idle agent (agents are typically ordered by updatedDate)
|
|
70
|
+
const latestAgent = parheliaAgents[0];
|
|
71
|
+
setAgent(latestAgent);
|
|
72
|
+
// Show terminal immediately for existing agents
|
|
73
|
+
setIsTerminalVisible(true);
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
// No existing idle agent, create new one
|
|
77
|
+
createNewAgent(selectedProfile);
|
|
78
|
+
// Terminal stays hidden for new agents
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
catch (err) {
|
|
82
|
+
// Failed to fetch active agents, create new one
|
|
83
|
+
createNewAgent(selectedProfile);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
catch (err) {
|
|
88
|
+
console.error("Failed to load AI profile:", err);
|
|
89
|
+
}
|
|
90
|
+
finally {
|
|
91
|
+
setIsLoading(false);
|
|
92
|
+
}
|
|
93
|
+
}, [createNewAgent]);
|
|
94
|
+
// Load AI profiles on mount
|
|
95
|
+
useEffect(() => {
|
|
96
|
+
loadProfile();
|
|
97
|
+
}, [loadProfile]);
|
|
98
|
+
// Listen for agent profile changes via websocket
|
|
99
|
+
useEffect(() => {
|
|
100
|
+
if (!editContext?.addSocketMessageListener)
|
|
101
|
+
return;
|
|
102
|
+
const removeListener = editContext.addSocketMessageListener((message) => {
|
|
103
|
+
if (message.type === "agent-profiles-changed") {
|
|
104
|
+
loadProfile();
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
return () => {
|
|
108
|
+
removeListener();
|
|
109
|
+
};
|
|
110
|
+
}, [editContext?.addSocketMessageListener, loadProfile]);
|
|
111
|
+
// Handle external agent selection
|
|
112
|
+
useEffect(() => {
|
|
113
|
+
if (externalAgent) {
|
|
114
|
+
setAgent(externalAgent);
|
|
115
|
+
setAgentKey((prev) => prev + 1);
|
|
116
|
+
setIsTerminalVisible(true);
|
|
117
|
+
}
|
|
118
|
+
}, [externalAgent]);
|
|
119
|
+
// Handle revealing the terminal when user clicks into chat
|
|
120
|
+
const handleRevealTerminal = useCallback(() => {
|
|
121
|
+
startTransition(() => {
|
|
122
|
+
setIsTerminalVisible(true);
|
|
123
|
+
});
|
|
124
|
+
}, []);
|
|
125
|
+
// Handle start over
|
|
126
|
+
const handleStartOver = useCallback(async () => {
|
|
127
|
+
if (!profile || !agent)
|
|
128
|
+
return;
|
|
129
|
+
try {
|
|
130
|
+
// Close the current agent first
|
|
131
|
+
await closeAgent(agent.id);
|
|
132
|
+
}
|
|
133
|
+
catch (error) {
|
|
134
|
+
console.error("Failed to close agent:", error);
|
|
135
|
+
// Continue anyway to create new agent
|
|
136
|
+
}
|
|
137
|
+
// Create new agent and force re-render
|
|
138
|
+
createNewAgent(profile);
|
|
139
|
+
setAgentKey((prev) => prev + 1);
|
|
140
|
+
// Keep terminal visible when starting over
|
|
141
|
+
}, [profile, agent, createNewAgent]);
|
|
142
|
+
// Handle close
|
|
143
|
+
const handleClose = useCallback(async () => {
|
|
144
|
+
if (!agent)
|
|
145
|
+
return;
|
|
146
|
+
try {
|
|
147
|
+
await closeAgent(agent.id);
|
|
148
|
+
}
|
|
149
|
+
catch (error) {
|
|
150
|
+
console.error("Failed to close agent:", error);
|
|
151
|
+
}
|
|
152
|
+
// Hide the terminal
|
|
153
|
+
setIsTerminalVisible(false);
|
|
154
|
+
}, [agent]);
|
|
155
|
+
if (isLoading) {
|
|
156
|
+
return (_jsx("div", { className: cn("flex items-center justify-center rounded-lg bg-white p-8 shadow-md", className), children: _jsx(Loader2, { className: "h-6 w-6 animate-spin text-gray-400" }) }));
|
|
157
|
+
}
|
|
158
|
+
if (!agent || !profile) {
|
|
159
|
+
return (_jsx("div", { className: cn("flex items-center justify-center rounded-lg bg-white p-8 shadow-md", className), children: _jsx("p", { className: "text-sm text-gray-500", children: "Assistant unavailable. Please try again later." }) }));
|
|
160
|
+
}
|
|
161
|
+
return (_jsxs("div", { onClick: handleRevealTerminal, className: cn("flex flex-col overflow-hidden rounded-lg bg-white shadow-md", !isTerminalVisible && "cursor-pointer", className), children: [_jsxs("div", { className: "flex items-center justify-between border-b border-gray-200 px-4 py-2", children: [_jsxs("div", { className: "text-sm font-medium text-gray-700", children: ["Chat with ", agent.name || profile.agentName || "Parhelia"] }), isTerminalVisible && (_jsxs("div", { className: "flex items-center gap-1", children: [_jsxs(Button, { variant: "ghost", size: "sm", onClick: handleStartOver, className: "h-7 gap-1.5 text-xs", children: [_jsx(RotateCcw, { className: "h-3.5 w-3.5", strokeWidth: 1 }), "Start Over"] }), _jsx(Button, { variant: "ghost", size: "sm", onClick: handleClose, className: "h-7 w-7 p-0", "aria-label": "Close", children: _jsx(X, { className: "h-4 w-4", strokeWidth: 1.5 }) })] }))] }), _jsx("div", { className: "flex-1 overflow-hidden", children: isTerminalVisible && (_jsx(ViewTransition, { enter: "slide-fade-in", children: _jsx("div", { className: "h-[600px]", children: _jsx(AgentTerminal, { agentStub: agent, initialMetadata: {
|
|
162
|
+
profile: profile.name,
|
|
163
|
+
additionalData: {
|
|
164
|
+
profileId: profile.id,
|
|
165
|
+
profileName: profile.name,
|
|
166
|
+
},
|
|
167
|
+
}, profiles: profiles, isActive: true, compact: true, hideContext: true, hideBottomControls: true, hideGreeting: false, className: "h-full", initialPrompt: agent.status === "new" ? "" : undefined }, agentKey) }) })) })] }));
|
|
168
|
+
};
|
|
169
|
+
//# sourceMappingURL=ParheliaAssistantChat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParheliaAssistantChat.js","sourceRoot":"","sources":["../../src/splash-screen/ParheliaAssistantChat.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACjG,OAAO,EAAE,OAAO,EAAE,SAAS,EAAiB,CAAC,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAa,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAS,eAAe,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAOjD,MAAM,CAAC,MAAM,qBAAqB,GAAyC,CAAC,EAC1E,SAAS,EACT,aAAa,GACd,EAAE,EAAE;IACH,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAmB,IAAI,CAAC,CAAC;IAC/D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAc,EAAE,CAAC,CAAC;IAC1D,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACjD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAe,IAAI,CAAC,CAAC;IACvD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