@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,286 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useEditContext } from "./client/editContext";
|
|
3
|
+
import { useFieldModification } from "./client/fieldModificationStore";
|
|
4
|
+
import { useEffect, useRef, useState } from "react";
|
|
5
|
+
import { getSessionWithFieldLock } from "./utils";
|
|
6
|
+
import { loadFieldButtons } from "./services/editService";
|
|
7
|
+
import { FieldActionsOverlay, } from "./FieldActionsOverlay";
|
|
8
|
+
import { useThrottledCallback } from "use-debounce";
|
|
9
|
+
import { SimpleIconButton } from "./ui/SimpleIconButton";
|
|
10
|
+
import { FieldHistory } from "./FieldHistory";
|
|
11
|
+
import { History, MessageCircle, MessageCirclePlus, WandSparkles, ExternalLink, Loader2, } from "lucide-react";
|
|
12
|
+
import { Checkbox } from "../components/ui/checkbox";
|
|
13
|
+
import { CopyButton } from "../components/ui/copy-button";
|
|
14
|
+
import { PasteButton } from "../components/ui/paste-button";
|
|
15
|
+
import { containsGuidInText, findGuidsInText } from "./utils";
|
|
16
|
+
import { Popover, PopoverContent, PopoverTrigger, } from "../components/ui/popover";
|
|
17
|
+
import { Tooltip, TooltipContent, TooltipTrigger, } from "../components/ui/tooltip";
|
|
18
|
+
export default function FieldListField({ field, validators, simplified, title, isFocusedField, showFallbackButton, compareToField, readonly, isHoveringField, tabIndex, }) {
|
|
19
|
+
const editContext = useEditContext();
|
|
20
|
+
if (!editContext)
|
|
21
|
+
return;
|
|
22
|
+
const fieldItem = field.descriptor.item;
|
|
23
|
+
// Field-specific subscription - only rerenders when THIS field changes
|
|
24
|
+
const { isModified, isSaved } = useFieldModification(field.id, fieldItem.id, fieldItem.language, fieldItem.version);
|
|
25
|
+
const [showRawValue, setShowRawValue] = useState(false);
|
|
26
|
+
const [showFieldJson, setShowFieldJson] = useState(false);
|
|
27
|
+
const [fieldMenuOpen, setFieldMenuOpen] = useState(false);
|
|
28
|
+
const [fieldHistoryOpen, setFieldHistoryOpen] = useState(false);
|
|
29
|
+
const generatorsOverlay = useRef(null);
|
|
30
|
+
const [generatorButtons, setButtons] = useState();
|
|
31
|
+
const [historyEntry, setHistoryEntry] = useState();
|
|
32
|
+
async function handleActionClick(action) {
|
|
33
|
+
editContext?.triggerFieldAction(field.descriptor, action);
|
|
34
|
+
}
|
|
35
|
+
async function handleParameterizedActionExecute(action, parameters) {
|
|
36
|
+
editContext?.triggerFieldAction(field.descriptor, action, parameters);
|
|
37
|
+
}
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
setShowRawValue(false);
|
|
40
|
+
}, [
|
|
41
|
+
field.descriptor.item.id,
|
|
42
|
+
field.descriptor.item.language,
|
|
43
|
+
field.descriptor.item.version,
|
|
44
|
+
field.descriptor.fieldId,
|
|
45
|
+
]);
|
|
46
|
+
const fieldLockedBySession = getSessionWithFieldLock(field.descriptor, editContext);
|
|
47
|
+
const debouncedSetFieldvalue = useThrottledCallback(async (value) => {
|
|
48
|
+
await editContext.operations.editField({
|
|
49
|
+
field: field.descriptor,
|
|
50
|
+
value: value,
|
|
51
|
+
refresh: "none",
|
|
52
|
+
});
|
|
53
|
+
}, editContext.configuration.debounceFieldEditsInterval, {
|
|
54
|
+
trailing: true,
|
|
55
|
+
leading: false,
|
|
56
|
+
});
|
|
57
|
+
const executingAction = editContext.activeFieldActions.find((x) => x.field.fieldId == field.id &&
|
|
58
|
+
x.field.item?.id == fieldItem.id &&
|
|
59
|
+
x.field.item?.language == fieldItem.language &&
|
|
60
|
+
x.field.item?.version == fieldItem.version);
|
|
61
|
+
const isReadOnly = executingAction?.state == "running" ||
|
|
62
|
+
readonly ||
|
|
63
|
+
!field.canWrite ||
|
|
64
|
+
(fieldLockedBySession &&
|
|
65
|
+
fieldLockedBySession.sessionId !== editContext.sessionId) ||
|
|
66
|
+
false;
|
|
67
|
+
let classNames = "flex items-stretch";
|
|
68
|
+
if (executingAction?.state == "running")
|
|
69
|
+
classNames += " executing-action ";
|
|
70
|
+
else {
|
|
71
|
+
if (isFocusedField)
|
|
72
|
+
classNames += " focused-field ";
|
|
73
|
+
if (isReadOnly)
|
|
74
|
+
classNames += " readonly ";
|
|
75
|
+
if (isModified && !isSaved)
|
|
76
|
+
classNames += " saving ";
|
|
77
|
+
if (isSaved)
|
|
78
|
+
classNames += " saved ";
|
|
79
|
+
}
|
|
80
|
+
let validationBarClassNames = undefined;
|
|
81
|
+
if (validators.find((x) => x.result > 1))
|
|
82
|
+
validationBarClassNames = " pl-2 border-l-4 border-red-500";
|
|
83
|
+
useEffect(() => {
|
|
84
|
+
const load = async () => {
|
|
85
|
+
if (!field.descriptor)
|
|
86
|
+
return;
|
|
87
|
+
const buttons = await loadFieldButtons(field.descriptor);
|
|
88
|
+
field.buttons = buttons;
|
|
89
|
+
setButtons(buttons);
|
|
90
|
+
};
|
|
91
|
+
if (isFocusedField || isHoveringField) {
|
|
92
|
+
if (field.buttons)
|
|
93
|
+
setButtons(field.buttons);
|
|
94
|
+
else
|
|
95
|
+
load();
|
|
96
|
+
}
|
|
97
|
+
}, [isFocusedField, isHoveringField]);
|
|
98
|
+
const renderGeneratorButtons = generatorButtons?.length || 0 > 0 ? (_jsxs(_Fragment, { children: [(!executingAction || executingAction.state !== "running") && (_jsx(SimpleIconButton, { icon: _jsx(WandSparkles, { strokeWidth: 1, className: "h-3.5 w-3.5" }), label: "Generate", onClick: (e) => {
|
|
99
|
+
generatorsOverlay.current?.show(e);
|
|
100
|
+
} })), executingAction && executingAction.state === "running" && (_jsxs("div", { className: "ml-auto flex items-center gap-1.5 text-xs", children: [_jsx(Loader2, { className: "h-3.5 w-3.5 animate-spin" }), " ", executingAction?.label] })), _jsx(FieldActionsOverlay, { ref: generatorsOverlay, generatorButtons: generatorButtons, onActionClick: handleActionClick, onParameterizedActionExecute: handleParameterizedActionExecute, currentOverlay: editContext.currentOverlay, fieldId: field.id, setCurrentOverlay: editContext.setCurrentOverlay })] })) : null;
|
|
101
|
+
const config = editContext.configuration.fieldTypes[field.type];
|
|
102
|
+
const handleOpenFieldItem = () => {
|
|
103
|
+
// Load the field item in the editor
|
|
104
|
+
editContext.loadItem({
|
|
105
|
+
id: field.id,
|
|
106
|
+
language: "en",
|
|
107
|
+
version: 0,
|
|
108
|
+
});
|
|
109
|
+
setFieldMenuOpen(false);
|
|
110
|
+
};
|
|
111
|
+
const handleShowFieldJson = () => {
|
|
112
|
+
setShowFieldJson(!showFieldJson);
|
|
113
|
+
setFieldMenuOpen(false);
|
|
114
|
+
};
|
|
115
|
+
useEffect(() => {
|
|
116
|
+
if (!fieldHistoryOpen) {
|
|
117
|
+
setHistoryEntry(undefined);
|
|
118
|
+
}
|
|
119
|
+
}, [fieldHistoryOpen]);
|
|
120
|
+
// Filter comments and suggestedEdits for this field
|
|
121
|
+
// Comments can be associated with either itemId (component) or mainItemId (page)
|
|
122
|
+
const fieldComments = editContext.comments.filter((comment) => comment.fieldId === field.id &&
|
|
123
|
+
(comment.itemId === fieldItem.id ||
|
|
124
|
+
comment.mainItemId === fieldItem.id) &&
|
|
125
|
+
comment.language === fieldItem.language &&
|
|
126
|
+
comment.version === fieldItem.version);
|
|
127
|
+
const fieldSuggestedEdits = editContext.suggestedEdits.filter((suggestedEdit) => suggestedEdit.fieldId === field.id &&
|
|
128
|
+
(suggestedEdit.itemId === fieldItem.id ||
|
|
129
|
+
suggestedEdit.mainItemId === fieldItem.id) &&
|
|
130
|
+
suggestedEdit.mainItemLanguage === fieldItem.language &&
|
|
131
|
+
suggestedEdit.mainItemVersion === fieldItem.version);
|
|
132
|
+
const hasUnresolvedComments = fieldComments.some((comment) => !comment.isResolved) ||
|
|
133
|
+
fieldSuggestedEdits.some((edit) => edit.status === "pending");
|
|
134
|
+
const hasResolvedComments = fieldComments.some((comment) => comment.isResolved) ||
|
|
135
|
+
fieldSuggestedEdits.some((edit) => edit.status === "applied" || edit.status === "rejected");
|
|
136
|
+
const hasAnyCommentsOrSuggestions = fieldComments.length > 0 || fieldSuggestedEdits.length > 0;
|
|
137
|
+
const totalCount = fieldComments.length + fieldSuggestedEdits.length;
|
|
138
|
+
const unresolvedCount = fieldComments.filter((c) => !c.isResolved).length +
|
|
139
|
+
fieldSuggestedEdits.filter((e) => e.status === "pending").length;
|
|
140
|
+
return (_jsxs("div", { className: classNames, children: [validationBarClassNames && (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("div", { className: validationBarClassNames, id: "validation_" + field.id }) }), _jsx(TooltipContent, { children: validators
|
|
141
|
+
.filter((x) => x.result > 1)
|
|
142
|
+
.map((x) => (_jsx("div", { children: x.message }, x.validator))) })] })), _jsxs("div", { className: "flex-1", children: [_jsxs("div", { className: "flex min-h-7 flex-wrap items-center gap-x-3 gap-y-1", children: [!simplified ? (_jsxs(Popover, { open: fieldMenuOpen, onOpenChange: setFieldMenuOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsx("button", { className: "text-gray-1 rounded py-0.5 text-left text-xs font-medium transition-colors hover:bg-gray-100", children: title || field.displayName || field.name }) }), _jsxs(PopoverContent, { className: "w-56 p-1", align: "start", side: "bottom", children: [_jsxs("button", { className: "flex w-full items-center gap-2 rounded px-3 py-2 text-xs transition-colors hover:bg-gray-100", onClick: handleOpenFieldItem, children: [_jsx(ExternalLink, { strokeWidth: 1, className: "h-4 w-4" }), "Open Field Item"] }), _jsxs("button", { className: "flex w-full items-center gap-2 rounded px-3 py-2 text-xs transition-colors hover:bg-gray-100", onClick: handleShowFieldJson, children: [_jsx("span", { className: "font-mono text-sm", children: "{}" }), showFieldJson ? "Hide" : "Show", " Field JSON"] })] })] })) : (_jsx("label", { className: "block text-xs font-medium select-text", children: title || field.displayName || field.name })), fieldLockedBySession &&
|
|
143
|
+
fieldLockedBySession.sessionId !== editContext.sessionId && (_jsxs("div", { className: "rounded-sm px-1.5 py-0.5 text-xs text-white", style: { backgroundColor: fieldLockedBySession.color }, children: ["locked by", " ", fieldLockedBySession.user.fullName ||
|
|
144
|
+
fieldLockedBySession.user.name] })), hasAnyCommentsOrSuggestions &&
|
|
145
|
+
(!isFocusedField && !isHoveringField) && (_jsx("div", { className: "ml-auto flex items-center gap-1", children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "relative cursor-pointer rounded p-1 transition-colors hover:bg-gray-100 opacity-60", onClick: () => {
|
|
146
|
+
editContext.switchView("comments");
|
|
147
|
+
const firstComment = fieldComments.find((c) => !c.isResolved) ||
|
|
148
|
+
fieldComments[0];
|
|
149
|
+
if (firstComment) {
|
|
150
|
+
editContext.setSelectedComment(firstComment);
|
|
151
|
+
editContext.setFocusedField(field.descriptor, false);
|
|
152
|
+
}
|
|
153
|
+
}, children: [_jsx(MessageCircle, { strokeWidth: 1, className: hasUnresolvedComments
|
|
154
|
+
? "h-3.5 w-3.5 text-blue-500 hover:text-blue-600"
|
|
155
|
+
: hasResolvedComments
|
|
156
|
+
? "h-3.5 w-3.5 text-green-500 hover:text-green-600"
|
|
157
|
+
: "h-3.5 w-3.5 text-gray-400" }), _jsx("div", { className: `absolute -right-1 -top-1 flex h-4 min-w-4 items-center justify-center rounded-full px-1 text-[10px] font-medium ${hasUnresolvedComments
|
|
158
|
+
? "bg-blue-500 text-white"
|
|
159
|
+
: hasResolvedComments
|
|
160
|
+
? "bg-green-500 text-white"
|
|
161
|
+
: "bg-gray-400 text-white"}`, children: totalCount })] }) }), _jsx(TooltipContent, { children: _jsxs("div", { className: "text-xs", children: [unresolvedCount > 0 && (_jsxs("div", { children: [unresolvedCount, " unresolved", " ", unresolvedCount === 1
|
|
162
|
+
? "comment/suggestion"
|
|
163
|
+
: "comments/suggestions"] })), totalCount > unresolvedCount && (_jsxs("div", { children: [totalCount - unresolvedCount, " resolved"] })), totalCount === unresolvedCount && totalCount > 0 && (_jsxs("div", { children: ["Total: ", totalCount] })), (fieldComments.length > 0 ||
|
|
164
|
+
fieldSuggestedEdits.length > 0) && (_jsxs("div", { className: "mt-1 text-gray-500", children: [fieldComments.length > 0 && (_jsxs("div", { children: [fieldComments.length, " ", fieldComments.length === 1
|
|
165
|
+
? "comment"
|
|
166
|
+
: "comments"] })), fieldSuggestedEdits.length > 0 && (_jsxs("div", { children: [fieldSuggestedEdits.length, " ", fieldSuggestedEdits.length === 1
|
|
167
|
+
? "suggestion"
|
|
168
|
+
: "suggestions"] }))] }))] }) })] }) })), (isFocusedField || isHoveringField) &&
|
|
169
|
+
(!fieldLockedBySession ||
|
|
170
|
+
fieldLockedBySession?.sessionId === editContext.sessionId) && (_jsxs(_Fragment, { children: [field.isShared && (_jsx("span", { className: "text-xs text-gray-400", children: "[Shared]" })), ((!field.isFallback &&
|
|
171
|
+
!field.isStandardValue &&
|
|
172
|
+
field.hasValue &&
|
|
173
|
+
field.rawValue !== null) ||
|
|
174
|
+
showFallbackButton ||
|
|
175
|
+
(config?.buttons && config.buttons.length > 0) ||
|
|
176
|
+
!simplified) && _jsx("span", { className: "text-xs", children: "\u00B7" }), !field.isFallback &&
|
|
177
|
+
!field.isStandardValue &&
|
|
178
|
+
field.hasValue &&
|
|
179
|
+
field.rawValue !== null ? (!isReadOnly ? (_jsxs("button", { className: "text-gray-1 cursor-pointer p-0 text-xs", onClick: () => {
|
|
180
|
+
editContext?.operations.editField({
|
|
181
|
+
field: field.descriptor,
|
|
182
|
+
rawValue: null,
|
|
183
|
+
});
|
|
184
|
+
}, children: ["Reset", " "] })) : null) : (showFallbackButton), config?.buttons?.map((x) => {
|
|
185
|
+
return (_jsxs("button", { className: "text-gray-1 cursor-pointer p-0 text-xs", onClick: () => editContext.triggerFieldAction(field.descriptor, x), children: [_jsx("i", { className: "pi text-xs " + x.icon }), " ", x.label] }, x.id));
|
|
186
|
+
}), !simplified && (_jsxs("div", { className: "flex items-center gap-1.5 text-xs", children: [_jsx(Checkbox, { className: "size-3.5", checked: showRawValue, onCheckedChange: (checked) => setShowRawValue(!!checked) }), _jsx("label", { className: "cursor-pointer", onClick: () => setShowRawValue(!showRawValue), children: "Raw" })] })), field.rawValue && (_jsx(CopyButton, { textToCopy: field.rawValue || "" })), !isReadOnly &&
|
|
187
|
+
(() => {
|
|
188
|
+
const typeConfig = editContext.configuration.fieldTypes[field.type];
|
|
189
|
+
const pasteCfg = typeConfig?.paste;
|
|
190
|
+
const enabled = pasteCfg?.enabled
|
|
191
|
+
? pasteCfg.enabled(field)
|
|
192
|
+
: false;
|
|
193
|
+
if (!enabled)
|
|
194
|
+
return null;
|
|
195
|
+
const hideIfInvalid = pasteCfg?.hideIfInvalidClipboard ?? true;
|
|
196
|
+
const pasteKind = pasteCfg?.kind?.type;
|
|
197
|
+
const validateClipboard = pasteCfg?.isValid ??
|
|
198
|
+
(pasteKind === "guid"
|
|
199
|
+
? (t) => containsGuidInText(t)
|
|
200
|
+
: pasteKind === "guid-list"
|
|
201
|
+
? (t) => findGuidsInText(t).length > 0
|
|
202
|
+
: (t) => (t || "").trim().length > 0);
|
|
203
|
+
const computeValueFromClipboard = (clipboardText) => {
|
|
204
|
+
if (pasteKind === "guid") {
|
|
205
|
+
const guids = findGuidsInText(clipboardText);
|
|
206
|
+
return guids[0];
|
|
207
|
+
}
|
|
208
|
+
if (pasteKind === "guid-list") {
|
|
209
|
+
const guids = findGuidsInText(clipboardText);
|
|
210
|
+
if (!guids.length)
|
|
211
|
+
return undefined;
|
|
212
|
+
const separator = pasteCfg?.kind?.separator ?? "|";
|
|
213
|
+
return guids.join(separator);
|
|
214
|
+
}
|
|
215
|
+
if (pasteCfg?.transform) {
|
|
216
|
+
const transformed = pasteCfg.transform(clipboardText, field);
|
|
217
|
+
return typeof transformed === "string"
|
|
218
|
+
? transformed
|
|
219
|
+
: undefined;
|
|
220
|
+
}
|
|
221
|
+
return clipboardText;
|
|
222
|
+
};
|
|
223
|
+
return (_jsx(PasteButton, { hideIfClipboardEmpty: hideIfInvalid, isClipboardValid: validateClipboard, onPaste: async (clipboardText) => {
|
|
224
|
+
const valueToWrite = computeValueFromClipboard(clipboardText);
|
|
225
|
+
if (valueToWrite === undefined)
|
|
226
|
+
return;
|
|
227
|
+
const target = pasteCfg?.target ?? "value";
|
|
228
|
+
await editContext?.operations.editField({
|
|
229
|
+
field: field.descriptor,
|
|
230
|
+
[target]: valueToWrite,
|
|
231
|
+
});
|
|
232
|
+
} }));
|
|
233
|
+
})(), _jsxs("div", { className: "ml-auto flex items-center gap-1", children: [hasAnyCommentsOrSuggestions && (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "relative cursor-pointer rounded p-1 transition-colors hover:bg-gray-100", onClick: () => {
|
|
234
|
+
editContext.switchView("comments");
|
|
235
|
+
const firstComment = fieldComments.find((c) => !c.isResolved) ||
|
|
236
|
+
fieldComments[0];
|
|
237
|
+
if (firstComment) {
|
|
238
|
+
editContext.setSelectedComment(firstComment);
|
|
239
|
+
editContext.setFocusedField(field.descriptor, false);
|
|
240
|
+
}
|
|
241
|
+
}, children: [_jsx(MessageCircle, { strokeWidth: 1, className: hasUnresolvedComments
|
|
242
|
+
? "h-3.5 w-3.5 text-blue-500 hover:text-blue-600"
|
|
243
|
+
: hasResolvedComments
|
|
244
|
+
? "h-3.5 w-3.5 text-green-500 hover:text-green-600"
|
|
245
|
+
: "h-3.5 w-3.5 text-gray-400" }), _jsx("div", { className: `absolute -right-1 -top-1 flex h-4 min-w-4 items-center justify-center rounded-full px-1 text-[10px] font-medium ${hasUnresolvedComments
|
|
246
|
+
? "bg-blue-500 text-white"
|
|
247
|
+
: hasResolvedComments
|
|
248
|
+
? "bg-green-500 text-white"
|
|
249
|
+
: "bg-gray-400 text-white"}`, children: totalCount })] }) }), _jsx(TooltipContent, { children: _jsxs("div", { className: "text-xs", children: [unresolvedCount > 0 && (_jsxs("div", { children: [unresolvedCount, " unresolved", " ", unresolvedCount === 1
|
|
250
|
+
? "comment/suggestion"
|
|
251
|
+
: "comments/suggestions"] })), totalCount > unresolvedCount && (_jsxs("div", { children: [totalCount - unresolvedCount, " resolved"] })), totalCount === unresolvedCount && totalCount > 0 && (_jsxs("div", { children: ["Total: ", totalCount] })), (fieldComments.length > 0 ||
|
|
252
|
+
fieldSuggestedEdits.length > 0) && (_jsxs("div", { className: "mt-1 text-gray-500", children: [fieldComments.length > 0 && (_jsxs("div", { children: [fieldComments.length, " ", fieldComments.length === 1
|
|
253
|
+
? "comment"
|
|
254
|
+
: "comments"] })), fieldSuggestedEdits.length > 0 && (_jsxs("div", { children: [fieldSuggestedEdits.length, " ", fieldSuggestedEdits.length === 1
|
|
255
|
+
? "suggestion"
|
|
256
|
+
: "suggestions"] }))] }))] }) })] })), !editContext.configuration.forceFullscreen && (_jsx(SimpleIconButton, { icon: _jsx(MessageCirclePlus, { strokeWidth: 1, className: "h-3.5 w-3.5" }), onClick: () => {
|
|
257
|
+
editContext.switchView("comments");
|
|
258
|
+
editContext.addComment();
|
|
259
|
+
}, label: "Add Comment" })), !readonly && renderGeneratorButtons, _jsxs(Tooltip, { children: [_jsxs(Popover, { open: fieldHistoryOpen, onOpenChange: (open) => {
|
|
260
|
+
setFieldHistoryOpen(open);
|
|
261
|
+
if (!open)
|
|
262
|
+
setHistoryEntry(undefined);
|
|
263
|
+
}, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsx(TooltipTrigger, { asChild: true, children: _jsx("button", { className: "cursor-pointer rounded p-1 transition-colors hover:bg-gray-100", "aria-label": "Field History", children: _jsx(History, { strokeWidth: 1, className: "h-3.5 w-3.5" }) }) }) }), _jsx(PopoverContent, { className: "w-80 p-2", align: "end", side: "top", children: _jsx(FieldHistory, { field: field, onHover: (x) => setHistoryEntry(x), onRevert: () => {
|
|
264
|
+
setFieldHistoryOpen(false);
|
|
265
|
+
} }) })] }), _jsx(TooltipContent, { children: "Field History" })] })] })] }))] }), executingAction?.message && (_jsx("div", { className: "mt-1 mb-1 p-0 text-xs", children: executingAction?.message })), showFieldJson && (_jsxs("div", { className: "mt-2 mb-2 rounded border bg-gray-50 p-2 text-xs", children: [_jsxs("div", { className: "mb-2 flex items-center justify-between", children: [_jsx("span", { className: "font-medium", children: "Field JSON" }), _jsx(CopyButton, { textToCopy: JSON.stringify(field, null, 2) })] }), _jsx("pre", { className: "max-h-40 overflow-auto text-xs whitespace-pre-wrap select-text", children: JSON.stringify(field, null, 2) })] })), !compareToField && (_jsx("div", { className: "mt-1 p-0 text-xs", children: getFieldEditor(historyEntry
|
|
266
|
+
? { ...field, value: historyEntry.value, isHistoric: true }
|
|
267
|
+
: field, showRawValue, historyEntry ? true : isReadOnly, editContext.configuration, debouncedSetFieldvalue, isFocusedField, tabIndex) })), compareToField && (_jsxs("div", { className: "mt-1 flex w-full gap-1 p-0 text-xs", children: [_jsx("div", { className: "flex-1", children: getFieldEditor(field, showRawValue, isReadOnly, editContext.configuration, debouncedSetFieldvalue, isFocusedField, tabIndex) }), _jsx("div", { className: "flex-1", children: getFieldEditor(compareToField, showRawValue, true, editContext.configuration, debouncedSetFieldvalue, isFocusedField, undefined) })] }))] })] }, field.id +
|
|
268
|
+
"_" +
|
|
269
|
+
fieldItem.id +
|
|
270
|
+
"_" +
|
|
271
|
+
fieldItem.language +
|
|
272
|
+
"_" +
|
|
273
|
+
fieldItem.version));
|
|
274
|
+
}
|
|
275
|
+
export function getFieldEditor(field, showRawValue, isReadOnly, configuration, debouncedSetFieldvalue, isFocusedField, tabIndex) {
|
|
276
|
+
let fieldType = showRawValue ? "raw" : field.type;
|
|
277
|
+
var typeConfig = configuration.fieldTypes[fieldType];
|
|
278
|
+
if (!typeConfig)
|
|
279
|
+
typeConfig = configuration.fieldTypes["single-line text"];
|
|
280
|
+
if (!typeConfig)
|
|
281
|
+
return null;
|
|
282
|
+
return (_jsx(typeConfig.editor, { field: field, readOnly: isReadOnly, isFocusedField: isFocusedField, updateFieldValue: (value) => {
|
|
283
|
+
debouncedSetFieldvalue(value);
|
|
284
|
+
}, tabIndex: tabIndex }));
|
|
285
|
+
}
|
|
286
|
+
//# sourceMappingURL=FieldListField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldListField.js","sourceRoot":"","sources":["../../src/editor/FieldListField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAwB,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAGvE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAIpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EACL,mBAAmB,GAEpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EACL,OAAO,EACP,aAAa,EACb,iBAAiB,EACjB,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AAQ,CACT,GACG,EACN,cAAK,SAAS,EAAC,QAAQ,YACpB,cAAc,CACb,cAAc,EACd,YAAY,EACZ,IAAI,EACJ,WAAW,CAAC,aAAa,EACzB,sBAAsB,EACtB,cAAc,EACd,SAAS,CACV,GACG,IACF,CACP,IACG,KAjeJ,KAAK,CAAC,EAAE;QACR,GAAG;QACH,SAAS,CAAC,EAAE;QACZ,GAAG;QACH,SAAS,CAAC,QAAQ;QAClB,GAAG;QACH,SAAS,CAAC,OAAO,CA4df,CACP,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,cAAc,CAC5B,KAAY,EACZ,YAAqB,EACrB,UAAmB,EACnB,aAAkC,EAClC,sBAA+C,EAC/C,cAAuB,EACvB,QAAiB;IAEjB,IAAI,SAAS,GAAG,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;IAElD,IAAI,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IAErD,IAAI,CAAC,UAAU;QAAE,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAE3E,IAAI,CAAC,UAAU;QAAE,OAAO,IAAI,CAAC;IAE7B,OAAO,CACL,KAAC,UAAU,CAAC,MAAM,IAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,UAAU,EACpB,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,CAAC,KAAa,EAAE,EAAE;YAClC,sBAAsB,CAAC,KAAK,CAAC,CAAC;QAChC,CAAC,EACD,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SingleValidatorResult } from "../types";
|
|
2
|
+
import { Field, FieldDescriptor } from "./pageModel";
|
|
3
|
+
export declare function FieldListFieldWithFallbacks({ fieldDescriptor, validators, simplified, title, compareToField, readonly, tabIndex, }: {
|
|
4
|
+
fieldDescriptor: FieldDescriptor;
|
|
5
|
+
validators: SingleValidatorResult[];
|
|
6
|
+
simplified?: boolean;
|
|
7
|
+
title?: React.ReactNode;
|
|
8
|
+
compareToField?: Field;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
tabIndex?: number;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef, useState } from "react";
|
|
3
|
+
import { ArrowUp } from "lucide-react";
|
|
4
|
+
import FieldListField from "./FieldListField";
|
|
5
|
+
import { useEditContext, useOperationsContext, useFieldsEditContext, } from "./client/editContext";
|
|
6
|
+
import { Checkbox } from "../components/ui/checkbox";
|
|
7
|
+
export function FieldListFieldWithFallbacks({ fieldDescriptor, validators, simplified, title, compareToField, readonly, tabIndex, }) {
|
|
8
|
+
const [showFallback, setShowFallback] = useState(false);
|
|
9
|
+
const [fallbackChain, setFallbackChain] = useState();
|
|
10
|
+
const ref = useRef(null);
|
|
11
|
+
const [hover, setHover] = useState(false);
|
|
12
|
+
const [field, setField] = useState();
|
|
13
|
+
const editContext = useEditContext();
|
|
14
|
+
const fieldsContext = useFieldsEditContext();
|
|
15
|
+
if (!editContext)
|
|
16
|
+
return;
|
|
17
|
+
const operationsContext = useOperationsContext();
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
const loadField = async () => {
|
|
20
|
+
const field = await editContext.itemsRepository.getField(fieldDescriptor);
|
|
21
|
+
setField(field);
|
|
22
|
+
};
|
|
23
|
+
loadField();
|
|
24
|
+
}, [editContext.itemsRepository.revision, fieldDescriptor]);
|
|
25
|
+
//const liveField = editContext.getLiveField(field);
|
|
26
|
+
// function isEditFieldOp(op?: EditOperation): op is EditFieldOperation {
|
|
27
|
+
// return op?.type === "edit-field";
|
|
28
|
+
// }
|
|
29
|
+
async function loadFallback() {
|
|
30
|
+
if (!field?.fallbackChain || !editContext)
|
|
31
|
+
return;
|
|
32
|
+
await editContext.itemsRepository.getItems(field.fallbackChain?.map((x) => x.item));
|
|
33
|
+
setFallbackChain((await Promise.all(field.fallbackChain.map((x) => editContext.itemsRepository.getField(x)))).filter((x) => x));
|
|
34
|
+
//const chain = await loadFallbackChain(field.descriptor);
|
|
35
|
+
// if(currentEditOp.item.language !== field._editor!.descriptor.item.language) {
|
|
36
|
+
// chain.forEach((x, i) => {
|
|
37
|
+
// if (i > 0) {
|
|
38
|
+
// x._editor!.isFallback = true;
|
|
39
|
+
// }
|
|
40
|
+
// });
|
|
41
|
+
// }
|
|
42
|
+
// // chain.forEach((x, i) => {
|
|
43
|
+
// // if (
|
|
44
|
+
// // init ||
|
|
45
|
+
// // !isEditFieldOp(currentEditOp) ||
|
|
46
|
+
// // currentEditOp.fieldId !== x.id ||
|
|
47
|
+
// // currentEditOp.item.id !== x._editor!.descriptor.item.id ||
|
|
48
|
+
// // currentEditOp.item.language !== x._editor!.descriptor.item.language
|
|
49
|
+
// // ) {
|
|
50
|
+
// // console.log("apply change", i, x);
|
|
51
|
+
// // x._editor! = chain[i]._editor!;
|
|
52
|
+
// // x.value = chain[i].value;
|
|
53
|
+
// // x.jsonValue = chain[i].jsonValue;
|
|
54
|
+
// // }
|
|
55
|
+
// // });
|
|
56
|
+
//setFallbackChain(chain);
|
|
57
|
+
}
|
|
58
|
+
const fieldItem = field?.descriptor.item;
|
|
59
|
+
const isFocusedField = fieldsContext?.focusedField?.fieldId === field?.id &&
|
|
60
|
+
fieldsContext?.focusedField?.item?.id === fieldItem?.id &&
|
|
61
|
+
fieldsContext?.focusedField?.item?.language === fieldItem?.language;
|
|
62
|
+
useEffect(() => {
|
|
63
|
+
const handleEnter = () => {
|
|
64
|
+
setHover(true);
|
|
65
|
+
};
|
|
66
|
+
const handleLeave = () => {
|
|
67
|
+
setHover(false);
|
|
68
|
+
};
|
|
69
|
+
const element = ref.current;
|
|
70
|
+
if (element && field) {
|
|
71
|
+
element.addEventListener("mouseenter", handleEnter);
|
|
72
|
+
element.addEventListener("mouseleave", handleLeave);
|
|
73
|
+
}
|
|
74
|
+
return () => {
|
|
75
|
+
if (element) {
|
|
76
|
+
element.removeEventListener("mouseenter", handleEnter);
|
|
77
|
+
element.removeEventListener("mouseleave", handleLeave);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}, [field]);
|
|
81
|
+
useEffect(() => {
|
|
82
|
+
if (ref.current && isFocusedField) {
|
|
83
|
+
// only scroll if the field is completely outside the viewport
|
|
84
|
+
const rect = ref.current.getBoundingClientRect();
|
|
85
|
+
if (rect.bottom < 0 || rect.top > window.innerHeight) {
|
|
86
|
+
ref.current.scrollIntoView({
|
|
87
|
+
behavior: "smooth",
|
|
88
|
+
block: "center",
|
|
89
|
+
inline: "center",
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}, [fieldsContext?.focusedField?.fieldId]);
|
|
94
|
+
useEffect(() => {
|
|
95
|
+
if (ref.current && (isFocusedField || hover) && field?.isFallback) {
|
|
96
|
+
loadFallback();
|
|
97
|
+
}
|
|
98
|
+
}, [fieldsContext?.focusedField, hover]);
|
|
99
|
+
useEffect(() => {
|
|
100
|
+
if (field?.isFallback && isFocusedField) {
|
|
101
|
+
loadFallback();
|
|
102
|
+
}
|
|
103
|
+
}, [
|
|
104
|
+
operationsContext?.editOperationExecuted,
|
|
105
|
+
editContext.refreshCompletedFlag,
|
|
106
|
+
editContext.itemsRepository.revision,
|
|
107
|
+
]);
|
|
108
|
+
const showFallbackButton = field?.isFallback && (_jsxs("div", { className: "flex items-center gap-1.5 text-xs", children: [_jsx(Checkbox, { className: "size-3.5", checked: showFallback, onCheckedChange: (checked) => setShowFallback(!!checked) }), _jsx("label", { className: "cursor-pointer", onClick: () => setShowFallback(!showFallback), children: "Fallback" })] }));
|
|
109
|
+
if (!field) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
return (_jsxs("div", { "data-field-id": field.id, "data-fieldname": field.name, ref: ref, className: "px-2 [&:not(:first-child)]:mt-4", onClickCapture: () => {
|
|
113
|
+
fieldsContext?.setFocusedField(field.descriptor, field.canWrite || false);
|
|
114
|
+
}, onFocusCapture: () => {
|
|
115
|
+
// Handle Tab navigation: update focused field when any input within this field gets focus
|
|
116
|
+
fieldsContext?.setFocusedField(field.descriptor, field.canWrite || false);
|
|
117
|
+
}, children: [_jsx(FieldListField, { field: field, validators: validators, simplified: simplified, title: title, isFocusedField: isFocusedField, showFallbackButton: showFallbackButton, compareToField: compareToField, readonly: readonly, isHoveringField: hover, tabIndex: tabIndex }), field.isFallback && isFocusedField && showFallback && (_jsx(_Fragment, { children: fallbackChain &&
|
|
118
|
+
fallbackChain.map((x, i) => (_jsxs("div", { className: "ml-3", children: [_jsx("div", { className: "mb-4 text-center", children: _jsx(ArrowUp, { className: "fallback-arrow-animation relative top-3 inline-block h-5 w-5 font-bold text-blue-300" }) }), _jsx(FieldListField, { field: x, validators: validators, simplified: true, isFocusedField: true, readonly: readonly, isHoveringField: hover, title: _jsxs("div", { className: "text-xs", children: [x.displayName || x.name, " (", x.descriptor.item.language, ")", x.descriptor.item.id != field.descriptor.item.id && (_jsxs("span", { className: "text-gray-400", children: ["- Item: ", x.descriptor.item.id] }))] }) }, i)] }, i))) }))] }, field.id));
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=FieldListFieldWithFallbacks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldListFieldWithFallbacks.js","sourceRoot":"","sources":["../../src/editor/FieldListFieldWithFallbacks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,oBAAoB,GACrB,MAAM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E,cAAc,EAC9B,QAAQ,EAAE,QAAQ,EAClB,eAAe,EAAE,KAAK,EACtB,QAAQ,EAAE,QAAQ,GAClB,EACD,KAAK,CAAC,UAAU,IAAI,cAAc,IAAI,YAAY,IAAI,CACrD,4BACG,aAAa;oBACZ,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAC1B,eAAK,SAAS,EAAC,MAAM,aACnB,cAAK,SAAS,EAAC,kBAAkB,YAC/B,KAAC,OAAO,IAAC,SAAS,EAAC,sFAAsF,GAAG,GACxG,EACN,KAAC,cAAc,IAEb,KAAK,EAAE,CAAC,EACR,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,IAAI,EAChB,cAAc,EAAE,IAAI,EACpB,QAAQ,EAAE,QAAQ,EAClB,eAAe,EAAE,KAAK,EACtB,KAAK,EAAC,eAAK,SAAS,EAAC,SAAS,aAC3B,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,IAAI,QAAI,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,OACrD,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,CACnD,gBAAM,SAAS,EAAC,eAAe,yBACpB,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,IACxB,CACR,IACG,IAdD,CAAC,CAeN,KApBuB,CAAC,CAqBtB,CACP,CAAC,GACH,CACJ,KA3DI,KAAK,CAAC,EAAE,CA4DT,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect, useState } from "react";
|
|
3
|
+
import { ArrowDownLeft, ChevronDown } from "lucide-react";
|
|
4
|
+
export default function FloatingToolbar({ children, onPin, height, width, }) {
|
|
5
|
+
const [position, setPosition] = useState({ x: 0, y: 95 });
|
|
6
|
+
const [size, setSize] = useState({ width: 400, height: 70 });
|
|
7
|
+
const [dragging, setDragging] = useState(false);
|
|
8
|
+
const [resizing, setResizing] = useState(false);
|
|
9
|
+
const [offset, setOffset] = useState({ x: 0, y: 0 });
|
|
10
|
+
const [hidden, setHidden] = useState(false);
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
console.log("WIDTH: ", width, "Height: ", height);
|
|
13
|
+
setSize({ width: width || 400, height: height || 70 });
|
|
14
|
+
}, []);
|
|
15
|
+
const handleMouseDown = useCallback((e) => {
|
|
16
|
+
// Start dragging and calculate the offset from the mouse to the sidebar top-left corner
|
|
17
|
+
setDragging(true);
|
|
18
|
+
setOffset({
|
|
19
|
+
x: e.clientX - position.x,
|
|
20
|
+
y: e.clientY - position.y,
|
|
21
|
+
});
|
|
22
|
+
}, [position]);
|
|
23
|
+
const handleMouseMove = useCallback((e) => {
|
|
24
|
+
if (dragging) {
|
|
25
|
+
// Update the position state based on mouse movement, adjusted by the initial offset
|
|
26
|
+
setPosition({
|
|
27
|
+
x: e.clientX - offset.x,
|
|
28
|
+
y: e.clientY - offset.y,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}, [dragging, offset]);
|
|
32
|
+
const handleMouseUp = useCallback(() => {
|
|
33
|
+
// Stop dragging
|
|
34
|
+
setDragging(false);
|
|
35
|
+
}, []);
|
|
36
|
+
const handleResizeMouseDown = useCallback((e) => {
|
|
37
|
+
e.preventDefault();
|
|
38
|
+
setResizing(true);
|
|
39
|
+
setOffset({
|
|
40
|
+
x: e.clientX,
|
|
41
|
+
y: e.clientY,
|
|
42
|
+
});
|
|
43
|
+
}, []);
|
|
44
|
+
const handleResizeMouseMove = useCallback((e) => {
|
|
45
|
+
if (resizing) {
|
|
46
|
+
const newWidth = size.width + (e.clientX - offset.x);
|
|
47
|
+
const newHeight = size.height + (e.clientY - offset.y);
|
|
48
|
+
setSize({
|
|
49
|
+
width: newWidth > 200 ? newWidth : 200, // Minimum width
|
|
50
|
+
height: newHeight > 100 ? newHeight : 100, // Minimum height
|
|
51
|
+
});
|
|
52
|
+
setOffset({
|
|
53
|
+
x: e.clientX,
|
|
54
|
+
y: e.clientY,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}, [resizing, offset, size]);
|
|
58
|
+
const handleResizeMouseUp = useCallback(() => {
|
|
59
|
+
setResizing(false);
|
|
60
|
+
}, []);
|
|
61
|
+
useEffect(() => {
|
|
62
|
+
if (resizing) {
|
|
63
|
+
document.addEventListener("mousemove", handleResizeMouseMove);
|
|
64
|
+
document.addEventListener("mouseup", handleResizeMouseUp);
|
|
65
|
+
}
|
|
66
|
+
return () => {
|
|
67
|
+
document.removeEventListener("mousemove", handleResizeMouseMove);
|
|
68
|
+
document.removeEventListener("mouseup", handleResizeMouseUp);
|
|
69
|
+
};
|
|
70
|
+
}, [resizing, handleResizeMouseMove, handleResizeMouseUp]);
|
|
71
|
+
// Add event listeners to the document when the sidebar is being dragged
|
|
72
|
+
useEffect(() => {
|
|
73
|
+
if (dragging) {
|
|
74
|
+
document.addEventListener("mousemove", handleMouseMove);
|
|
75
|
+
document.addEventListener("mouseup", handleMouseUp);
|
|
76
|
+
}
|
|
77
|
+
// Cleanup the document event listeners when the component unmounts or dragging stops
|
|
78
|
+
return () => {
|
|
79
|
+
document.removeEventListener("mousemove", handleMouseMove);
|
|
80
|
+
document.removeEventListener("mouseup", handleMouseUp);
|
|
81
|
+
};
|
|
82
|
+
}, [dragging, handleMouseMove, handleMouseUp]);
|
|
83
|
+
return (_jsxs("div", { className: "z-10 flex flex-col border border-gray-200 drop-shadow", onMouseMove: handleMouseMove, onMouseUp: handleMouseUp, style: {
|
|
84
|
+
left: `${position.x}px`,
|
|
85
|
+
top: `${position.y}px`,
|
|
86
|
+
position: "absolute", // Use 'fixed' or 'absolute' depending on your layout needs
|
|
87
|
+
height: `${hidden ? 30 : size.height}px`,
|
|
88
|
+
width: `${size.width}px`,
|
|
89
|
+
}, children: [_jsxs("div", { className: "items-between flex w-full justify-between bg-gray-100 p-2 text-sm", style: { cursor: "move", userSelect: "none" }, onMouseDown: handleMouseDown, children: ["Toolbar", _jsxs("div", { className: "flex gap-2", children: [hidden && (_jsx("div", { className: "cusor-pointer h-4 w-4 border-2 border-gray-800", onClick: () => setHidden(false) })), !hidden && (_jsx("div", { className: "cusor-pointer h-4 w-4 border-b-2 border-gray-800", onClick: () => setHidden(true) })), onPin && (_jsx(ArrowDownLeft, { className: "h-4 w-4 cursor-pointer", onClick: onPin }))] })] }), _jsx("div", { className: "flex-1", children: !hidden && children }), _jsx("div", { className: "h-4 bg-gray-100" }), _jsx("div", { className: "absolute -right-2 -bottom-1 h-4 w-4 cursor-nwse-resize text-gray-500", onMouseDown: handleResizeMouseDown, children: _jsx(ChevronDown, { className: "h-4 w-4 -rotate-45" }) })] }));
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=FloatingToolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FloatingToolbar.js","sourceRoot":"","sources":["../../src/editor/FloatingToolbar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE1D,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,QAAQ,EACR,KAAK,EACL,MAAM,EACN,KAAK,GAMN;IACC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1D,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,C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CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,IAAI;YACxC,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,IAAI;SACzB,aAED,eACE,SAAS,EAAC,mEAAmE,EAC7E,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,EAC7C,WAAW,EAAE,eAAe,wBAG5B,eAAK,SAAS,EAAC,YAAY,aACxB,MAAM,IAAI,CACT,cACE,SAAS,EAAC,gDAAgD,EAC1D,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,GAC1B,CACR,EACA,CAAC,MAAM,IAAI,CACV,cACE,SAAS,EAAC,kDAAkD,EAC5D,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,GACzB,CACR,EACA,KAAK,IAAI,CACR,KAAC,aAAa,IAAC,SAAS,EAAC,wBAAwB,EAAC,OAAO,EAAE,KAAK,GAAI,CACrE,IACG,IACF,EACN,cAAK,SAAS,EAAC,QAAQ,YAAE,CAAC,MAAM,IAAI,QAAQ,GAAO,EACnD,cAAK,SAAS,EAAC,iBAAiB,GAAO,EACvC,cACE,SAAS,EAAC,sEAAsE,EAChF,WAAW,EAAE,qBAAqB,YAElC,KAAC,WAAW,IAAC,SAAS,EAAC,oBAAoB,GAAG,GAC1C,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
export interface MenuAction {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon: React.ReactNode;
|
|
6
|
+
onClick: (e?: React.MouseEvent) => void;
|
|
7
|
+
parameters?: any[];
|
|
8
|
+
}
|
|
9
|
+
interface ImageEditButtonProps {
|
|
10
|
+
/** Menu items to display in the dropdown */
|
|
11
|
+
actions: MenuAction[];
|
|
12
|
+
/** Custom trigger button content */
|
|
13
|
+
triggerButton?: ReactNode;
|
|
14
|
+
/** Whether to use the compact round button style (default: false) */
|
|
15
|
+
compact?: boolean;
|
|
16
|
+
/** Custom trigger button text (used with non-compact style) */
|
|
17
|
+
buttonText?: string;
|
|
18
|
+
/** Custom trigger button icon (used with compact style) */
|
|
19
|
+
buttonIcon?: string;
|
|
20
|
+
/** Test ID for the trigger button */
|
|
21
|
+
testId?: string;
|
|
22
|
+
/** Additional CSS classes for the trigger button */
|
|
23
|
+
buttonClassName?: string;
|
|
24
|
+
defaultActionId?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function ImageEditButton({ actions, triggerButton, buttonText, buttonIcon, testId, buttonClassName, defaultActionId, }: ImageEditButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export {};
|