@parhelia/core 0.1.12534 → 0.1.12555
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/agents-view/AgentCard.d.ts +4 -6
- package/dist/agents-view/AgentCard.js +24 -143
- package/dist/agents-view/AgentCard.js.map +1 -1
- package/dist/agents-view/AgentsInbox.d.ts +1 -1
- package/dist/agents-view/AgentsInbox.js +92 -7
- package/dist/agents-view/AgentsInbox.js.map +1 -1
- package/dist/agents-view/AgentsTitlebar.js +2 -3
- package/dist/agents-view/AgentsTitlebar.js.map +1 -1
- package/dist/agents-view/AgentsView.d.ts +7 -6
- package/dist/agents-view/AgentsView.js +97 -186
- package/dist/agents-view/AgentsView.js.map +1 -1
- package/dist/agents-view/AgentsWorkspaceView.d.ts +6 -2
- package/dist/agents-view/AgentsWorkspaceView.js +113 -266
- package/dist/agents-view/AgentsWorkspaceView.js.map +1 -1
- package/dist/agents-view/ProfileAgentsGroup.d.ts +1 -2
- package/dist/agents-view/ProfileAgentsGroup.js +3 -4
- package/dist/agents-view/ProfileAgentsGroup.js.map +1 -1
- package/dist/components/ActionButton.d.ts +1 -1
- package/dist/components/ActionButton.js.map +1 -1
- package/dist/components/FilterInput.d.ts +1 -1
- package/dist/components/FilterInput.js +1 -1
- package/dist/components/FilterInput.js.map +1 -1
- package/dist/components/ui/LanguageSelector.js +4 -2
- package/dist/components/ui/LanguageSelector.js.map +1 -1
- package/dist/components/ui/PlaceholderInput.js +3 -3
- package/dist/components/ui/PlaceholderInput.js.map +1 -1
- package/dist/components/ui/PlaceholderInputTypes.js +1 -1
- package/dist/components/ui/PlaceholderInputTypes.js.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts +1 -1
- package/dist/components/ui/alert-dialog.js +10 -6
- package/dist/components/ui/alert-dialog.js.map +1 -1
- package/dist/components/ui/button.d.ts +4 -4
- package/dist/components/ui/button.js +1 -4
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/context-menu.d.ts +1 -1
- package/dist/components/ui/context-menu.js +4 -12
- package/dist/components/ui/context-menu.js.map +1 -1
- package/dist/components/ui/copy-button.d.ts +1 -2
- package/dist/components/ui/copy-button.js +2 -2
- package/dist/components/ui/copy-button.js.map +1 -1
- package/dist/components/ui/dialog.d.ts +1 -1
- package/dist/components/ui/dialog.js +126 -21
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/input.d.ts +1 -1
- package/dist/components/ui/input.js +3 -5
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/paste-button.d.ts +1 -2
- package/dist/components/ui/paste-button.js +2 -2
- package/dist/components/ui/paste-button.js.map +1 -1
- package/dist/components/ui/popover.js +9 -1
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/styled-dialog-title.js +1 -1
- package/dist/components/ui/styled-dialog-title.js.map +1 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/tabs.js +11 -4
- package/dist/components/ui/tabs.js.map +1 -1
- package/dist/config/config.d.ts +2 -2
- package/dist/config/config.js +70 -215
- package/dist/config/config.js.map +1 -1
- package/dist/config/types/workspace.d.ts +0 -6
- package/dist/config/types.d.ts +12 -58
- package/dist/config/types.js.map +1 -1
- package/dist/editor/ComponentInfo.d.ts +4 -0
- package/dist/editor/ComponentInfo.js +41 -0
- package/dist/editor/ComponentInfo.js.map +1 -0
- package/dist/editor/ConfirmationDialog.js +4 -20
- package/dist/editor/ConfirmationDialog.js.map +1 -1
- package/dist/editor/ContentTree.d.ts +1 -2
- package/dist/editor/ContentTree.js +32 -93
- package/dist/editor/ContentTree.js.map +1 -1
- package/dist/editor/Editor.js +18 -72
- package/dist/editor/Editor.js.map +1 -1
- package/dist/editor/FieldHistory.js +36 -84
- package/dist/editor/FieldHistory.js.map +1 -1
- package/dist/editor/FieldListField.js +9 -21
- package/dist/editor/FieldListField.js.map +1 -1
- package/dist/editor/FieldListFieldWithFallbacks.js +2 -23
- package/dist/editor/FieldListFieldWithFallbacks.js.map +1 -1
- package/dist/editor/GlobalMenuBar.js +2 -29
- package/dist/editor/GlobalMenuBar.js.map +1 -1
- package/dist/editor/ItemInfo.js +1 -36
- package/dist/editor/ItemInfo.js.map +1 -1
- package/dist/editor/LinkEditorDialog.js +0 -3
- package/dist/editor/LinkEditorDialog.js.map +1 -1
- package/dist/editor/MainLayout.d.ts +2 -0
- package/dist/editor/MainLayout.js +5 -4
- package/dist/editor/MainLayout.js.map +1 -1
- package/dist/editor/MigrationsView.js +5 -29
- package/dist/editor/MigrationsView.js.map +1 -1
- package/dist/editor/MobileLayout.js +12 -37
- package/dist/editor/MobileLayout.js.map +1 -1
- package/dist/editor/PictureCropper.js +45 -54
- package/dist/editor/PictureCropper.js.map +1 -1
- package/dist/editor/PictureEditor.js +13 -12
- package/dist/editor/PictureEditor.js.map +1 -1
- package/dist/editor/QuickItemSwitcher.js +21 -21
- package/dist/editor/QuickItemSwitcher.js.map +1 -1
- package/dist/editor/SetupWizard.js +12 -52
- package/dist/editor/SetupWizard.js.map +1 -1
- package/dist/editor/Titlebar.js +2 -7
- package/dist/editor/Titlebar.js.map +1 -1
- package/dist/editor/ai/AgentCostDisplay.d.ts +0 -1
- package/dist/editor/ai/AgentCostDisplay.js +1 -1
- package/dist/editor/ai/AgentCostDisplay.js.map +1 -1
- package/dist/editor/ai/AgentDocumentList.js +14 -32
- package/dist/editor/ai/AgentDocumentList.js.map +1 -1
- package/dist/editor/ai/AgentGreeting.js +2 -3
- package/dist/editor/ai/AgentGreeting.js.map +1 -1
- package/dist/editor/ai/AgentProfileSelector.js +1 -2
- package/dist/editor/ai/AgentProfileSelector.js.map +1 -1
- package/dist/editor/ai/AgentStatusBadge.d.ts +5 -0
- package/dist/editor/ai/AgentStatusBadge.js +65 -67
- package/dist/editor/ai/AgentStatusBadge.js.map +1 -1
- package/dist/editor/ai/AgentTerminal.d.ts +2 -14
- package/dist/editor/ai/AgentTerminal.js +482 -2350
- package/dist/editor/ai/AgentTerminal.js.map +1 -1
- package/dist/editor/ai/AgentTerminalStatusBar.d.ts +3 -8
- package/dist/editor/ai/AgentTerminalStatusBar.js +56 -460
- package/dist/editor/ai/AgentTerminalStatusBar.js.map +1 -1
- package/dist/editor/ai/Agents.js +101 -91
- package/dist/editor/ai/Agents.js.map +1 -1
- package/dist/editor/ai/AiResponseMessage.d.ts +1 -10
- package/dist/editor/ai/AiResponseMessage.js +23 -238
- package/dist/editor/ai/AiResponseMessage.js.map +1 -1
- package/dist/editor/ai/ContextInfoBar.d.ts +3 -2
- package/dist/editor/ai/ContextInfoBar.js +7 -64
- package/dist/editor/ai/ContextInfoBar.js.map +1 -1
- package/dist/editor/ai/GuidanceOverlay.js +11 -17
- package/dist/editor/ai/GuidanceOverlay.js.map +1 -1
- package/dist/editor/ai/HelpTerminal.d.ts +5 -0
- package/dist/editor/ai/HelpTerminal.js +166 -0
- package/dist/editor/ai/HelpTerminal.js.map +1 -0
- package/dist/editor/ai/InlineAiDialog.d.ts +1 -1
- package/dist/editor/ai/InlineAiDialog.js +192 -514
- package/dist/editor/ai/InlineAiDialog.js.map +1 -1
- package/dist/editor/ai/InlineAiTrigger.js +12 -115
- package/dist/editor/ai/InlineAiTrigger.js.map +1 -1
- package/dist/editor/ai/MediaImage.js +8 -40
- package/dist/editor/ai/MediaImage.js.map +1 -1
- package/dist/editor/ai/SpawnedAgentsPanel.js +12 -10
- package/dist/editor/ai/SpawnedAgentsPanel.js.map +1 -1
- package/dist/editor/ai/ToolCallDisplay.d.ts +2 -22
- package/dist/editor/ai/ToolCallDisplay.js +147 -518
- package/dist/editor/ai/ToolCallDisplay.js.map +1 -1
- package/dist/editor/ai/dialogs/AgentDialogHandler.d.ts +8 -1
- package/dist/editor/ai/dialogs/AgentDialogHandler.js +42 -379
- package/dist/editor/ai/dialogs/AgentDialogHandler.js.map +1 -1
- package/dist/editor/ai/dialogs/QuestionnaireInline.d.ts +1 -5
- package/dist/editor/ai/dialogs/QuestionnaireInline.js +60 -628
- package/dist/editor/ai/dialogs/QuestionnaireInline.js.map +1 -1
- package/dist/editor/ai/dialogs/agentDialogTypes.d.ts +0 -115
- package/dist/editor/ai/dialogs/agentDialogTypes.js +0 -2
- package/dist/editor/ai/dialogs/agentDialogTypes.js.map +1 -1
- package/dist/editor/ai/types.d.ts +1 -3
- package/dist/editor/ai/useAgentStatus.d.ts +0 -1
- package/dist/editor/ai/useAgentStatus.js +96 -79
- package/dist/editor/ai/useAgentStatus.js.map +1 -1
- package/dist/editor/ai/useInlineAiPosition.js +5 -45
- package/dist/editor/ai/useInlineAiPosition.js.map +1 -1
- package/dist/editor/client/AboutDialog.js +2 -4
- package/dist/editor/client/AboutDialog.js.map +1 -1
- package/dist/editor/client/EditorShell.js +212 -581
- package/dist/editor/client/EditorShell.js.map +1 -1
- package/dist/editor/client/editContext.d.ts +19 -28
- package/dist/editor/client/editContext.js.map +1 -1
- package/dist/editor/client/helpers.js +0 -6
- package/dist/editor/client/helpers.js.map +1 -1
- package/dist/editor/client/hooks/useEditorUrlSync.js +2 -1
- package/dist/editor/client/hooks/useEditorUrlSync.js.map +1 -1
- package/dist/editor/client/hooks/useEditorWebSocket.d.ts +0 -10
- package/dist/editor/client/hooks/useEditorWebSocket.js +14 -209
- package/dist/editor/client/hooks/useEditorWebSocket.js.map +1 -1
- package/dist/editor/client/hooks/useQuota.d.ts +0 -8
- package/dist/editor/client/hooks/useQuota.js.map +1 -1
- package/dist/editor/client/hooks/useSocketMessageHandler.js +7 -68
- package/dist/editor/client/hooks/useSocketMessageHandler.js.map +1 -1
- package/dist/editor/client/itemsRepository.js +6 -10
- package/dist/editor/client/itemsRepository.js.map +1 -1
- package/dist/editor/client/navigation.d.ts +21 -0
- package/dist/editor/client/navigation.js +98 -0
- package/dist/editor/client/navigation.js.map +1 -0
- package/dist/editor/client/operations.d.ts +3 -6
- package/dist/editor/client/operations.js +30 -208
- package/dist/editor/client/operations.js.map +1 -1
- package/dist/editor/client/pageModelBuilder.js +31 -4
- package/dist/editor/client/pageModelBuilder.js.map +1 -1
- package/dist/editor/client/ui/EditorChrome.d.ts +6 -0
- package/dist/editor/client/ui/EditorChrome.js +72 -55
- package/dist/editor/client/ui/EditorChrome.js.map +1 -1
- package/dist/editor/client/ui/FullscreenControls.js +3 -5
- package/dist/editor/client/ui/FullscreenControls.js.map +1 -1
- package/dist/editor/commands/commands.d.ts +1 -11
- package/dist/editor/commands/commands.js +1 -12
- package/dist/editor/commands/commands.js.map +1 -1
- package/dist/editor/commands/componentCommands.js +55 -109
- package/dist/editor/commands/componentCommands.js.map +1 -1
- package/dist/editor/commands/customCommandConverter.d.ts +1 -8
- package/dist/editor/commands/customCommandConverter.js +5 -35
- package/dist/editor/commands/customCommandConverter.js.map +1 -1
- package/dist/editor/commands/handlers/agentHandler.js +1 -2
- package/dist/editor/commands/handlers/agentHandler.js.map +1 -1
- package/dist/editor/commands/handlers/uiActionHandlers.js +3 -4
- package/dist/editor/commands/handlers/uiActionHandlers.js.map +1 -1
- package/dist/editor/commands/itemCommands.d.ts +0 -3
- package/dist/editor/commands/itemCommands.js +10 -93
- package/dist/editor/commands/itemCommands.js.map +1 -1
- package/dist/editor/commands/undo.d.ts +15 -9
- package/dist/editor/commands/undo.js +0 -24
- package/dist/editor/commands/undo.js.map +1 -1
- package/dist/editor/context-menu/InsertMenu.js +39 -83
- package/dist/editor/context-menu/InsertMenu.js.map +1 -1
- package/dist/editor/field-types/MultiLineText.js +1 -1
- package/dist/editor/field-types/MultiLineText.js.map +1 -1
- package/dist/editor/field-types/RawEditor.js +1 -1
- package/dist/editor/field-types/ReactQuill.d.ts +125 -0
- package/dist/editor/field-types/ReactQuill.js +385 -0
- package/dist/editor/field-types/ReactQuill.js.map +1 -0
- package/dist/editor/field-types/RichTextEditor.js +2 -4
- package/dist/editor/field-types/RichTextEditor.js.map +1 -1
- package/dist/editor/field-types/RichTextEditorComponent.js +3 -37
- package/dist/editor/field-types/RichTextEditorComponent.js.map +1 -1
- package/dist/editor/field-types/SingleLineText.js +1 -1
- package/dist/editor/field-types/TreeListEditor.js +2 -3
- package/dist/editor/field-types/TreeListEditor.js.map +1 -1
- package/dist/editor/field-types/richtext/components/ReactSlate.css +5 -23
- package/dist/editor/field-types/richtext/components/ReactSlate.d.ts +0 -2
- package/dist/editor/field-types/richtext/components/ReactSlate.js +4 -28
- package/dist/editor/field-types/richtext/components/ReactSlate.js.map +1 -1
- package/dist/editor/field-types/richtext/components/ToolbarButton.js +2 -4
- package/dist/editor/field-types/richtext/components/ToolbarButton.js.map +1 -1
- package/dist/editor/field-types/richtext/contextMenuFactory.d.ts +0 -13
- package/dist/editor/field-types/richtext/contextMenuFactory.js +22 -177
- package/dist/editor/field-types/richtext/contextMenuFactory.js.map +1 -1
- package/dist/editor/field-types/richtext/types.d.ts +0 -2
- package/dist/editor/field-types/richtext/types.js.map +1 -1
- package/dist/editor/field-types/richtext/utils/plugins.js +0 -4
- package/dist/editor/field-types/richtext/utils/plugins.js.map +1 -1
- package/dist/editor/media-selector/MediaFolderBrowser.js +1 -1
- package/dist/editor/media-selector/MediaFolderBrowser.js.map +1 -1
- package/dist/editor/media-selector/MediaSelector.js +1 -7
- package/dist/editor/media-selector/MediaSelector.js.map +1 -1
- package/dist/editor/media-selector/TreeSelector.js +35 -40
- package/dist/editor/media-selector/TreeSelector.js.map +1 -1
- package/dist/editor/menubar/ActiveUsers.js +1 -1
- package/dist/editor/menubar/ActiveUsers.js.map +1 -1
- package/dist/editor/menubar/GenericToolbar.js +2 -4
- package/dist/editor/menubar/GenericToolbar.js.map +1 -1
- package/dist/editor/menubar/ItemLanguageVersion.js +2 -2
- package/dist/editor/menubar/ItemLanguageVersion.js.map +1 -1
- package/dist/editor/menubar/PageSelector.js +147 -26
- package/dist/editor/menubar/PageSelector.js.map +1 -1
- package/dist/editor/menubar/Separator.js +1 -1
- package/dist/editor/menubar/VersionSelector.js +4 -2
- package/dist/editor/menubar/VersionSelector.js.map +1 -1
- package/dist/editor/menubar/WorkflowButton.js +12 -39
- package/dist/editor/menubar/WorkflowButton.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/CustomCommandsToolbar.js +36 -7
- package/dist/editor/menubar/toolbar-sections/CustomCommandsToolbar.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/EditControls.js +3 -3
- package/dist/editor/menubar/toolbar-sections/EditControls.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/HelpButton.js +0 -1
- package/dist/editor/menubar/toolbar-sections/HelpButton.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/ManualBrowser.d.ts +10 -6
- package/dist/editor/menubar/toolbar-sections/ManualBrowser.js +219 -500
- package/dist/editor/menubar/toolbar-sections/ManualBrowser.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/UtilityControls.js +1 -10
- package/dist/editor/menubar/toolbar-sections/UtilityControls.js.map +1 -1
- package/dist/editor/page-editor-chrome/CommentHighlighting.js +1 -42
- package/dist/editor/page-editor-chrome/CommentHighlighting.js.map +1 -1
- package/dist/editor/page-editor-chrome/FrameMenu.js +1 -1
- package/dist/editor/page-editor-chrome/FrameMenu.js.map +1 -1
- package/dist/editor/page-editor-chrome/InlineEditor.js +48 -97
- package/dist/editor/page-editor-chrome/InlineEditor.js.map +1 -1
- package/dist/editor/page-editor-chrome/PlaceholderDropZone.js +17 -38
- package/dist/editor/page-editor-chrome/PlaceholderDropZone.js.map +1 -1
- package/dist/editor/page-editor-chrome/PlaceholderDropZones.js +11 -17
- package/dist/editor/page-editor-chrome/PlaceholderDropZones.js.map +1 -1
- package/dist/editor/page-editor-chrome/useInlineAICompletion.js +298 -283
- package/dist/editor/page-editor-chrome/useInlineAICompletion.js.map +1 -1
- package/dist/editor/page-viewer/EditorForm.js +11 -69
- package/dist/editor/page-viewer/EditorForm.js.map +1 -1
- package/dist/editor/page-viewer/MiniMap.d.ts +4 -2
- package/dist/editor/page-viewer/MiniMap.js +28 -91
- package/dist/editor/page-viewer/MiniMap.js.map +1 -1
- package/dist/editor/page-viewer/PageViewer.d.ts +1 -3
- package/dist/editor/page-viewer/PageViewer.js +19 -92
- package/dist/editor/page-viewer/PageViewer.js.map +1 -1
- package/dist/editor/page-viewer/PageViewerFrame.d.ts +1 -2
- package/dist/editor/page-viewer/PageViewerFrame.js +109 -292
- package/dist/editor/page-viewer/PageViewerFrame.js.map +1 -1
- package/dist/editor/page-viewer/RenderingParametersSection.js +3 -2
- package/dist/editor/page-viewer/RenderingParametersSection.js.map +1 -1
- package/dist/editor/page-viewer/pageModelSkeletonBuilder.js +49 -114
- package/dist/editor/page-viewer/pageModelSkeletonBuilder.js.map +1 -1
- package/dist/editor/page-viewer/pageViewContext.d.ts +0 -1
- package/dist/editor/page-viewer/pageViewContext.js +14 -51
- package/dist/editor/page-viewer/pageViewContext.js.map +1 -1
- package/dist/editor/pageModel.d.ts +1 -14
- package/dist/editor/reviews/Comment.js +11 -23
- package/dist/editor/reviews/Comment.js.map +1 -1
- package/dist/editor/reviews/CommentDisplayPopover.js +4 -4
- package/dist/editor/reviews/CommentDisplayPopover.js.map +1 -1
- package/dist/editor/reviews/CommentView.js +4 -19
- package/dist/editor/reviews/CommentView.js.map +1 -1
- package/dist/editor/reviews/Comments.js +72 -89
- package/dist/editor/reviews/Comments.js.map +1 -1
- package/dist/editor/reviews/CreateReviewDialog.js +177 -281
- package/dist/editor/reviews/CreateReviewDialog.js.map +1 -1
- package/dist/editor/reviews/DecisionsMatrix.js +25 -96
- package/dist/editor/reviews/DecisionsMatrix.js.map +1 -1
- package/dist/editor/reviews/DiffView.js +14 -7
- package/dist/editor/reviews/DiffView.js.map +1 -1
- package/dist/editor/reviews/EditReviewSettingsDialog.js +4 -6
- package/dist/editor/reviews/EditReviewSettingsDialog.js.map +1 -1
- package/dist/editor/reviews/MultiReviewManager.js +3 -25
- package/dist/editor/reviews/MultiReviewManager.js.map +1 -1
- package/dist/editor/reviews/PagesPanel.js +15 -31
- package/dist/editor/reviews/PagesPanel.js.map +1 -1
- package/dist/editor/reviews/PreviewInfo.js +4 -1
- package/dist/editor/reviews/PreviewInfo.js.map +1 -1
- package/dist/editor/reviews/ReviewCard.js +7 -13
- package/dist/editor/reviews/ReviewCard.js.map +1 -1
- package/dist/editor/reviews/ReviewDetail.js +2 -3
- package/dist/editor/reviews/ReviewDetail.js.map +1 -1
- package/dist/editor/reviews/ReviewsList.js +3 -7
- package/dist/editor/reviews/ReviewsList.js.map +1 -1
- package/dist/editor/reviews/SuggestedEdit.js +3 -34
- package/dist/editor/reviews/SuggestedEdit.js.map +1 -1
- package/dist/editor/reviews/SuggestionDisplayPopover.js +5 -31
- package/dist/editor/reviews/SuggestionDisplayPopover.js.map +1 -1
- package/dist/editor/reviews/commentAi.js +6 -21
- package/dist/editor/reviews/commentAi.js.map +1 -1
- package/dist/editor/reviews/reviewCommands.js +1 -4
- package/dist/editor/reviews/reviewCommands.js.map +1 -1
- package/dist/editor/reviews/useMultiReview.js +2 -2
- package/dist/editor/reviews/useMultiReview.js.map +1 -1
- package/dist/editor/reviews/useReviews.d.ts +2 -2
- package/dist/editor/reviews/useReviews.js +30 -12
- package/dist/editor/reviews/useReviews.js.map +1 -1
- package/dist/editor/services/agentService.d.ts +5 -229
- package/dist/editor/services/agentService.js +39 -292
- package/dist/editor/services/agentService.js.map +1 -1
- package/dist/editor/services/aiService.d.ts +1 -57
- package/dist/editor/services/aiService.js +6 -79
- package/dist/editor/services/aiService.js.map +1 -1
- package/dist/editor/services/contentService.d.ts +3 -6
- package/dist/editor/services/contentService.js +12 -13
- package/dist/editor/services/contentService.js.map +1 -1
- package/dist/editor/services/editService.d.ts +1 -50
- package/dist/editor/services/editService.js +2 -91
- package/dist/editor/services/editService.js.map +1 -1
- package/dist/editor/services/indexService.js +1 -1
- package/dist/editor/services/indexService.js.map +1 -1
- package/dist/editor/services/reviewsService.d.ts +6 -3
- package/dist/editor/services/reviewsService.js +11 -2
- package/dist/editor/services/reviewsService.js.map +1 -1
- package/dist/editor/services/serviceHelper.d.ts +1 -2
- package/dist/editor/services/serviceHelper.js +20 -112
- package/dist/editor/services/serviceHelper.js.map +1 -1
- package/dist/editor/services/systemService.d.ts +1 -2
- package/dist/editor/services/systemService.js +0 -3
- package/dist/editor/services/systemService.js.map +1 -1
- package/dist/editor/services-server/graphQL.d.ts +29 -0
- package/dist/editor/services-server/graphQL.js +53 -0
- package/dist/editor/services-server/graphQL.js.map +1 -0
- package/dist/editor/settings/About.js +3 -317
- package/dist/editor/settings/About.js.map +1 -1
- package/dist/editor/settings/AllAgentsPanel.d.ts +5 -0
- package/dist/editor/settings/AllAgentsPanel.js +139 -0
- package/dist/editor/settings/AllAgentsPanel.js.map +1 -0
- package/dist/editor/settings/LatestFeedback.d.ts +1 -0
- package/dist/editor/settings/LatestFeedback.js +136 -0
- package/dist/editor/settings/LatestFeedback.js.map +1 -0
- package/dist/editor/settings/QuotaInfo.js +4 -210
- package/dist/editor/settings/QuotaInfo.js.map +1 -1
- package/dist/editor/settings/SettingsView.js +21 -23
- package/dist/editor/settings/SettingsView.js.map +1 -1
- package/dist/editor/settings/Setup.d.ts +1 -0
- package/dist/editor/settings/Setup.js +211 -0
- package/dist/editor/settings/Setup.js.map +1 -0
- package/dist/editor/settings/Status.js +4 -5
- package/dist/editor/settings/Status.js.map +1 -1
- package/dist/editor/settings/index/useIndexStatus.js +22 -20
- package/dist/editor/settings/index/useIndexStatus.js.map +1 -1
- package/dist/editor/settings/panels/AgentsPanel.d.ts +4 -0
- package/dist/editor/settings/panels/AgentsPanel.js +121 -95
- package/dist/editor/settings/panels/AgentsPanel.js.map +1 -1
- package/dist/editor/settings/panels/DatabasePanel.d.ts +6 -0
- package/dist/editor/settings/panels/DatabasePanel.js +50 -0
- package/dist/editor/settings/panels/DatabasePanel.js.map +1 -0
- package/dist/editor/settings/panels/ModelsPanel.js +108 -329
- package/dist/editor/settings/panels/ModelsPanel.js.map +1 -1
- package/dist/editor/settings/panels/ProjectTemplatesPanel.js +1 -1
- package/dist/editor/settings/panels/ProjectTemplatesPanel.js.map +1 -1
- package/dist/editor/settings/panels/ProvidersPanel.d.ts +1 -1
- package/dist/editor/settings/panels/ProvidersPanel.js +59 -86
- package/dist/editor/settings/panels/ProvidersPanel.js.map +1 -1
- package/dist/editor/settings/panels/SearchConfigPanel.js +4 -4
- package/dist/editor/settings/panels/SearchConfigPanel.js.map +1 -1
- package/dist/editor/settings/panels/index.d.ts +2 -3
- package/dist/editor/settings/panels/index.js +2 -3
- package/dist/editor/settings/panels/index.js.map +1 -1
- package/dist/editor/settings/setup-steps/AiSetupStep/EmbeddingsModelSection.d.ts +2 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/EmbeddingsModelSection.js +195 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/EmbeddingsModelSection.js.map +1 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/index.d.ts +2 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/index.js +21 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/index.js.map +1 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/provider/ProviderSection.d.ts +1 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/provider/ProviderSection.js +233 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/provider/ProviderSection.js.map +1 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/required-containers/RequiredContainersList.d.ts +15 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/required-containers/RequiredContainersList.js +14 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/required-containers/RequiredContainersList.js.map +1 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/required-containers/RequiredContainersSection.d.ts +1 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/required-containers/RequiredContainersSection.js +94 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/required-containers/RequiredContainersSection.js.map +1 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/types.d.ts +1 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/types.js +2 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/types.js.map +1 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/utils.d.ts +5 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/utils.js +44 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/utils.js.map +1 -0
- package/dist/editor/settings/setup-steps/IndexSetupStep.d.ts +2 -0
- package/dist/editor/settings/setup-steps/IndexSetupStep.js +36 -0
- package/dist/editor/settings/setup-steps/IndexSetupStep.js.map +1 -0
- package/dist/editor/settings/setup-steps/SettingsSetupStep.d.ts +2 -0
- package/dist/editor/settings/setup-steps/SettingsSetupStep.js +111 -0
- package/dist/editor/settings/setup-steps/SettingsSetupStep.js.map +1 -0
- package/dist/editor/settings/setup-steps/SetupOverview.d.ts +14 -0
- package/dist/editor/settings/setup-steps/SetupOverview.js +38 -0
- package/dist/editor/settings/setup-steps/SetupOverview.js.map +1 -0
- package/dist/editor/settings/status/coreStatusChecks.js +19 -124
- package/dist/editor/settings/status/coreStatusChecks.js.map +1 -1
- package/dist/editor/settings/status/useStartupChecks.d.ts +1 -3
- package/dist/editor/settings/status/useStartupChecks.js +5 -9
- package/dist/editor/settings/status/useStartupChecks.js.map +1 -1
- package/dist/editor/setup-wizard/steps/CompleteStep.d.ts +1 -2
- package/dist/editor/setup-wizard/steps/CompleteStep.js +1 -2
- package/dist/editor/setup-wizard/steps/CompleteStep.js.map +1 -1
- package/dist/editor/sidebar/ComponentPalette.js +1 -2
- package/dist/editor/sidebar/ComponentPalette.js.map +1 -1
- package/dist/editor/sidebar/ComponentTree.d.ts +1 -8
- package/dist/editor/sidebar/ComponentTree.js +69 -216
- package/dist/editor/sidebar/ComponentTree.js.map +1 -1
- package/dist/editor/sidebar/Debug.d.ts +1 -0
- package/dist/editor/sidebar/Debug.js +70 -0
- package/dist/editor/sidebar/Debug.js.map +1 -0
- package/dist/editor/sidebar/EditHistory.js +46 -7
- package/dist/editor/sidebar/EditHistory.js.map +1 -1
- package/dist/editor/sidebar/Favorites.js +8 -4
- package/dist/editor/sidebar/Favorites.js.map +1 -1
- package/dist/editor/sidebar/GraphQL.d.ts +2 -0
- package/dist/editor/sidebar/GraphQL.js +234 -0
- package/dist/editor/sidebar/GraphQL.js.map +1 -0
- package/dist/editor/sidebar/LeftToolbar.d.ts +1 -0
- package/dist/editor/sidebar/LeftToolbar.js +12 -0
- package/dist/editor/sidebar/LeftToolbar.js.map +1 -0
- package/dist/editor/sidebar/MainContentTree.js +3 -4
- package/dist/editor/sidebar/MainContentTree.js.map +1 -1
- package/dist/editor/sidebar/NavigationPanelItem.js +1 -1
- package/dist/editor/sidebar/NavigationPanelItem.js.map +1 -1
- package/dist/editor/sidebar/NavigationSidebar.d.ts +4 -0
- package/dist/editor/sidebar/NavigationSidebar.js +254 -0
- package/dist/editor/sidebar/NavigationSidebar.js.map +1 -0
- package/dist/editor/sidebar/OperationItem.js +6 -20
- package/dist/editor/sidebar/OperationItem.js.map +1 -1
- package/dist/editor/sidebar/SidebarPanel.js +7 -30
- package/dist/editor/sidebar/SidebarPanel.js.map +1 -1
- package/dist/editor/sidebar/SidebarStack.js +0 -1
- package/dist/editor/sidebar/SidebarStack.js.map +1 -1
- package/dist/editor/sidebar/Validation.js +12 -22
- package/dist/editor/sidebar/Validation.js.map +1 -1
- package/dist/editor/sidebar/Workbox.js +3 -53
- package/dist/editor/sidebar/Workbox.js.map +1 -1
- package/dist/editor/sidebar/WorkspaceRail.d.ts +1 -0
- package/dist/editor/sidebar/WorkspaceRail.js +167 -56
- package/dist/editor/sidebar/WorkspaceRail.js.map +1 -1
- package/dist/editor/template-wizard/TemplateStructureInlineEditor.js +10 -3
- package/dist/editor/template-wizard/TemplateStructureInlineEditor.js.map +1 -1
- package/dist/editor/tree-indicators/GutterColumns.d.ts +1 -3
- package/dist/editor/tree-indicators/GutterColumns.js +5 -26
- package/dist/editor/tree-indicators/GutterColumns.js.map +1 -1
- package/dist/editor/tree-indicators/GutterContext.d.ts +0 -4
- package/dist/editor/tree-indicators/GutterContext.js +0 -23
- package/dist/editor/tree-indicators/GutterContext.js.map +1 -1
- package/dist/editor/tree-indicators/GutterSelector.d.ts +5 -0
- package/dist/editor/tree-indicators/GutterSelector.js +91 -0
- package/dist/editor/tree-indicators/GutterSelector.js.map +1 -0
- package/dist/editor/tree-indicators/index.d.ts +1 -0
- package/dist/editor/tree-indicators/index.js +1 -0
- package/dist/editor/tree-indicators/index.js.map +1 -1
- package/dist/editor/tree-indicators/types.d.ts +1 -12
- package/dist/editor/ui/CopyMoveTargetSelectorDialog.js +1 -1
- package/dist/editor/ui/CopyMoveTargetSelectorDialog.js.map +1 -1
- package/dist/editor/ui/Icons.js +1 -1
- package/dist/editor/ui/Icons.js.map +1 -1
- package/dist/editor/ui/ItemNameDialogNew.d.ts +0 -2
- package/dist/editor/ui/ItemNameDialogNew.js +17 -33
- package/dist/editor/ui/ItemNameDialogNew.js.map +1 -1
- package/dist/editor/ui/ItemSearch.js +11 -7
- package/dist/editor/ui/ItemSearch.js.map +1 -1
- package/dist/editor/ui/SimpleIconButton.js +1 -1
- package/dist/editor/ui/SimpleIconButton.js.map +1 -1
- package/dist/editor/ui/SimpleTabs.d.ts +0 -1
- package/dist/editor/ui/SimpleTabs.js +25 -45
- package/dist/editor/ui/SimpleTabs.js.map +1 -1
- package/dist/editor/ui/Splitter.d.ts +0 -1
- package/dist/editor/ui/Splitter.js +86 -102
- package/dist/editor/ui/Splitter.js.map +1 -1
- package/dist/editor/ui/TemplateSelectorDialog.js +4 -4
- package/dist/editor/ui/TemplateSelectorDialog.js.map +1 -1
- package/dist/editor/ui/TreeListSelector.d.ts +1 -6
- package/dist/editor/ui/TreeListSelector.js +2 -2
- package/dist/editor/ui/TreeListSelector.js.map +1 -1
- package/dist/editor/utils/keyboardNavigation.d.ts +20 -6
- package/dist/editor/utils/keyboardNavigation.js +139 -48
- package/dist/editor/utils/keyboardNavigation.js.map +1 -1
- package/dist/editor/utils.js +9 -19
- package/dist/editor/utils.js.map +1 -1
- package/dist/editor/views/CompareView.d.ts +1 -3
- package/dist/editor/views/CompareView.js +4 -6
- package/dist/editor/views/CompareView.js.map +1 -1
- package/dist/editor/views/EditView.js +1 -1
- package/dist/editor/views/EditView.js.map +1 -1
- package/dist/editor/views/EditorSlot.js +34 -27
- package/dist/editor/views/EditorSlot.js.map +1 -1
- package/dist/editor/views/ItemEditor.js +3 -7
- package/dist/editor/views/ItemEditor.js.map +1 -1
- package/dist/editor/views/MediaFolderEditView.js +1 -1
- package/dist/editor/views/MediaFolderEditView.js.map +1 -1
- package/dist/editor/views/ParheliaView.js +6 -5
- package/dist/editor/views/ParheliaView.js.map +1 -1
- package/dist/editor/views/SingleEditView.d.ts +1 -2
- package/dist/editor/views/SingleEditView.js +8 -10
- package/dist/editor/views/SingleEditView.js.map +1 -1
- package/dist/editor/views/editorSlotContext.js +6 -35
- package/dist/editor/views/editorSlotContext.js.map +1 -1
- package/dist/index.d.ts +2 -14
- package/dist/index.js +0 -10
- package/dist/index.js.map +1 -1
- package/dist/licensing/LicenseContext.d.ts +3 -1
- package/dist/licensing/LicenseContext.js +55 -38
- package/dist/licensing/LicenseContext.js.map +1 -1
- package/dist/revision.d.ts +2 -2
- package/dist/revision.js +2 -2
- package/dist/setup/services/setupWizardService.d.ts +13 -40
- package/dist/setup/services/setupWizardService.js +17 -32
- package/dist/setup/services/setupWizardService.js.map +1 -1
- package/dist/setup/wizard/steps/AddModelDialog.js +3 -12
- package/dist/setup/wizard/steps/AddModelDialog.js.map +1 -1
- package/dist/setup/wizard/steps/ImportModelDialog.js +22 -39
- package/dist/setup/wizard/steps/ImportModelDialog.js.map +1 -1
- package/dist/splash-screen/ModernSplashScreen.js +32 -110
- package/dist/splash-screen/ModernSplashScreen.js.map +1 -1
- package/dist/splash-screen/NewPage.js +50 -33
- package/dist/splash-screen/NewPage.js.map +1 -1
- package/dist/splash-screen/OpenPage.js +6 -2
- package/dist/splash-screen/OpenPage.js.map +1 -1
- package/dist/splash-screen/ParheliaAssistantChat.js +29 -12
- package/dist/splash-screen/ParheliaAssistantChat.js.map +1 -1
- package/dist/splash-screen/ParheliaLogo.js +37 -87
- package/dist/splash-screen/ParheliaLogo.js.map +1 -1
- package/dist/splash-screen/RecentPages.js +3 -3
- package/dist/splash-screen/RecentPages.js.map +1 -1
- package/dist/task-board/TaskBoardWorkspace.js +34 -6
- package/dist/task-board/TaskBoardWorkspace.js.map +1 -1
- package/dist/task-board/components/AssignAgentDialog.js +13 -1
- package/dist/task-board/components/AssignAgentDialog.js.map +1 -1
- package/dist/task-board/components/TaskAgentPanel.js +11 -1
- package/dist/task-board/components/TaskAgentPanel.js.map +1 -1
- package/dist/task-board/components/TaskAssigneePicker.js +14 -4
- package/dist/task-board/components/TaskAssigneePicker.js.map +1 -1
- package/dist/task-board/components/WizardCommunicationCenter.js +18 -9
- package/dist/task-board/components/WizardCommunicationCenter.js.map +1 -1
- package/dist/tour/Tour.d.ts +1 -2
- package/dist/tour/Tour.js +75 -256
- package/dist/tour/Tour.js.map +1 -1
- package/dist/tour/default-tour.js +96 -222
- package/dist/tour/default-tour.js.map +1 -1
- package/dist/types.d.ts +29 -63
- package/package.json +13 -17
- package/styles.css +10 -14
|
@@ -4,13 +4,11 @@ import { MiniMap } from "./MiniMap";
|
|
|
4
4
|
import { useEditContext, useEditContextRef, useFieldsEditContext, useFieldsEditContextRef, } from "../client/editContext";
|
|
5
5
|
import { useDebouncedCallback, useThrottledCallback } from "use-debounce";
|
|
6
6
|
import { PageEditorChrome } from "../page-editor-chrome/PageEditorChrome";
|
|
7
|
-
import { useViewportChangeSignal } from "./pageViewContext";
|
|
8
7
|
import morphdom from "morphdom";
|
|
9
8
|
import uuid from "react-uuid";
|
|
10
9
|
import { cn } from "../../lib/utils";
|
|
11
|
-
import { findComponentRect, findFieldElement, findNearestEditableComponentId, findParentWithAttribute, getAbsolutePosition, getFieldDescriptorFromElement, findClosestFieldElement,
|
|
10
|
+
import { findComponentRect, findFieldElement, findNearestEditableComponentId, findParentWithAttribute, getAbsolutePosition, getFieldDescriptorFromElement, findClosestFieldElement, } from "../utils";
|
|
12
11
|
import { extractDOMSelectionContext } from "../utils/selectionContext";
|
|
13
|
-
import { cleanId } from "../utils/id-helper";
|
|
14
12
|
import { getAllComponentInstances, getComponentById, } from "../componentTreeHelper";
|
|
15
13
|
import { buildComponentContextMenuItems } from "../ContextMenu";
|
|
16
14
|
import { loadFieldButtons } from "../services/editService";
|
|
@@ -22,10 +20,9 @@ import { Spinner } from "../ui/Spinner";
|
|
|
22
20
|
import { DeviceToolbar } from "./DeviceToolbar";
|
|
23
21
|
import { buildPageModelSkeleton } from "./pageModelSkeletonBuilder";
|
|
24
22
|
const EDITOR_CSS_STYLE_ID = "parhelia-editor-css";
|
|
25
|
-
export function PageViewerFrame({ compareView, pageViewContext, className,
|
|
23
|
+
export function PageViewerFrame({ compareView, pageViewContext, className, }) {
|
|
26
24
|
const editContext = useEditContext();
|
|
27
25
|
const fieldsContext = useFieldsEditContext();
|
|
28
|
-
useViewportChangeSignal();
|
|
29
26
|
const pathname = usePathname();
|
|
30
27
|
const pageViewContextRef = useRef(undefined);
|
|
31
28
|
if (!editContext || !pageViewContext)
|
|
@@ -38,7 +35,6 @@ export function PageViewerFrame({ compareView, pageViewContext, className, slotC
|
|
|
38
35
|
const iframeRef = useRef(null);
|
|
39
36
|
const currentLoadRef = useRef(null);
|
|
40
37
|
const rebindIframeInteractionsRef = useRef(null);
|
|
41
|
-
const prevModeRef = useRef(editContext.mode);
|
|
42
38
|
const [showSpinner, setShowSpinner] = useState(false);
|
|
43
39
|
const [scroll, setScroll] = useState(0);
|
|
44
40
|
const [showMiniMap, setShowMiniMap] = useState(false);
|
|
@@ -108,11 +104,6 @@ export function PageViewerFrame({ compareView, pageViewContext, className, slotC
|
|
|
108
104
|
leading: true,
|
|
109
105
|
trailing: true,
|
|
110
106
|
});
|
|
111
|
-
const requestPageModelBuild = (doc) => {
|
|
112
|
-
if (!doc)
|
|
113
|
-
return;
|
|
114
|
-
buildPageModelThrottled(doc, editContextRef, pageViewContextRef);
|
|
115
|
-
};
|
|
116
107
|
const [iframeSrc, setIframeSrc] = useState();
|
|
117
108
|
const editorCssGuardRef = useRef({ doc: null, observer: null, editMode: true });
|
|
118
109
|
const ensureEditorCssGuard = (doc, editMode) => {
|
|
@@ -179,16 +170,11 @@ export function PageViewerFrame({ compareView, pageViewContext, className, slotC
|
|
|
179
170
|
editorCssGuardRef.current.doc = null;
|
|
180
171
|
};
|
|
181
172
|
}, []);
|
|
182
|
-
// If the editor mode flips (edit/preview), re-apply CSS
|
|
173
|
+
// If the editor mode flips (edit/preview), re-apply CSS in the current iframe doc.
|
|
183
174
|
useEffect(() => {
|
|
184
175
|
const doc = iframeRef.current?.contentDocument;
|
|
185
|
-
const isPreview = editContext.mode === "preview";
|
|
186
176
|
if (doc)
|
|
187
|
-
ensureEditorCssGuard(doc,
|
|
188
|
-
if (isPreview) {
|
|
189
|
-
editContextRef.current?.setSelectedRange(undefined);
|
|
190
|
-
fieldsContextRef.current?.setInlineEditingFieldElement(undefined);
|
|
191
|
-
}
|
|
177
|
+
ensureEditorCssGuard(doc, editContext.mode !== "preview");
|
|
192
178
|
}, [editContext.mode]);
|
|
193
179
|
useEffect(() => {
|
|
194
180
|
if (!pageItemDescriptor ||
|
|
@@ -198,12 +184,6 @@ export function PageViewerFrame({ compareView, pageViewContext, className, slotC
|
|
|
198
184
|
const urlPath = editContext.mode === "preview"
|
|
199
185
|
? pageViewContext.previewUrl
|
|
200
186
|
: pageViewContext.editUrl;
|
|
201
|
-
const prevMode = prevModeRef.current;
|
|
202
|
-
prevModeRef.current = editContext.mode;
|
|
203
|
-
const modeOnlyChange = prevMode !== editContext.mode &&
|
|
204
|
-
prevMode !== "preview" &&
|
|
205
|
-
editContext.mode !== "preview";
|
|
206
|
-
const savedScrollY = iframeRef.current?.contentWindow?.scrollY ?? 0;
|
|
207
187
|
const renderUrl = new URL(urlPath, window.location.origin);
|
|
208
188
|
const editRev = uuid();
|
|
209
189
|
renderUrl.searchParams.set("edit_rev", editRev);
|
|
@@ -224,10 +204,6 @@ export function PageViewerFrame({ compareView, pageViewContext, className, slotC
|
|
|
224
204
|
const runIntegrationRefresh = (refreshFn, message) => {
|
|
225
205
|
console.log(message);
|
|
226
206
|
refreshFn(renderUrl.toString());
|
|
227
|
-
const doc = iframeRef.current?.contentDocument;
|
|
228
|
-
if (doc) {
|
|
229
|
-
requestPageModelBuild(doc);
|
|
230
|
-
}
|
|
231
207
|
// The integration refresh path may replace/normalize <head> during hydration,
|
|
232
208
|
// which can remove our injected style. Re-ensure a few times post-refresh.
|
|
233
209
|
const ensureLater = (delay) => {
|
|
@@ -242,21 +218,6 @@ export function PageViewerFrame({ compareView, pageViewContext, className, slotC
|
|
|
242
218
|
ensureLater(100);
|
|
243
219
|
ensureLater(500);
|
|
244
220
|
ensureLater(1200);
|
|
245
|
-
if (modeOnlyChange && savedScrollY > 0) {
|
|
246
|
-
const restoreScroll = (delay) => {
|
|
247
|
-
setTimeout(() => {
|
|
248
|
-
const win = iframeRef.current?.contentWindow;
|
|
249
|
-
if (win && win.scrollY === 0) {
|
|
250
|
-
win.scrollTo(0, savedScrollY);
|
|
251
|
-
}
|
|
252
|
-
}, delay);
|
|
253
|
-
};
|
|
254
|
-
restoreScroll(50);
|
|
255
|
-
restoreScroll(200);
|
|
256
|
-
restoreScroll(500);
|
|
257
|
-
restoreScroll(1000);
|
|
258
|
-
restoreScroll(2000);
|
|
259
|
-
}
|
|
260
221
|
};
|
|
261
222
|
const runFallbackRefresh = () => {
|
|
262
223
|
setShowSpinner(true);
|
|
@@ -414,7 +375,7 @@ export function PageViewerFrame({ compareView, pageViewContext, className, slotC
|
|
|
414
375
|
injectSXAScripts(iframeRef.current);
|
|
415
376
|
}, 1000);
|
|
416
377
|
try {
|
|
417
|
-
|
|
378
|
+
buildPageModelThrottled(doc, editContextRef, pageViewContextRef);
|
|
418
379
|
}
|
|
419
380
|
catch (buildErr) { }
|
|
420
381
|
}
|
|
@@ -470,110 +431,95 @@ export function PageViewerFrame({ compareView, pageViewContext, className, slotC
|
|
|
470
431
|
}, []);
|
|
471
432
|
const selecionChangeHandler = useDebouncedCallback(() => {
|
|
472
433
|
const sel = iframeRef.current?.contentDocument?.getSelection();
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
activeEl?.closest('[role="dialog"]'));
|
|
478
|
-
};
|
|
479
|
-
if (!sel || sel.rangeCount === 0) {
|
|
480
|
-
if (!isInlineAiUiFocused()) {
|
|
481
|
-
editContextRef.current?.setSelectedRange(undefined);
|
|
482
|
-
}
|
|
483
|
-
return;
|
|
484
|
-
}
|
|
485
|
-
// Preserve the last non-collapsed selection while the inline AI UI takes focus.
|
|
486
|
-
// This avoids losing context when users click the trigger or dialog.
|
|
487
|
-
if (sel.isCollapsed && isInlineAiUiFocused()) {
|
|
488
|
-
return;
|
|
489
|
-
}
|
|
490
|
-
// Find the field element containing the selection/caret
|
|
491
|
-
const fieldElement = findClosestFieldElement(sel.anchorNode);
|
|
492
|
-
if (!fieldElement) {
|
|
493
|
-
if (!isInlineAiUiFocused()) {
|
|
494
|
-
editContextRef.current?.setSelectedRange(undefined);
|
|
495
|
-
}
|
|
496
|
-
return;
|
|
497
|
-
}
|
|
498
|
-
const fieldId = fieldElement.getAttribute("data-fieldid");
|
|
499
|
-
if (!fieldId)
|
|
500
|
-
return;
|
|
501
|
-
const range = sel.getRangeAt(0);
|
|
502
|
-
// Guard: if layout components are hidden, do not set focus for fields of layout components
|
|
503
|
-
if (editContextRef.current?.showLayoutComponents === false &&
|
|
504
|
-
pageViewContextRef.current?.page) {
|
|
505
|
-
const ownerId = fieldElement.getAttribute("data-itemid") || "";
|
|
506
|
-
const owner = getComponentById(ownerId, pageViewContextRef.current.page);
|
|
507
|
-
if (owner?.layoutId)
|
|
434
|
+
if (sel && sel.rangeCount > 0) {
|
|
435
|
+
// Only process selections that have text.
|
|
436
|
+
// Collapsed selections (carets) should not overwrite a previous AI selection context.
|
|
437
|
+
if (sel.isCollapsed)
|
|
508
438
|
return;
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
text
|
|
530
|
-
contextBefore,
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
439
|
+
// Find the field element containing the selection
|
|
440
|
+
const fieldElement = findClosestFieldElement(sel.anchorNode);
|
|
441
|
+
if (!fieldElement)
|
|
442
|
+
return;
|
|
443
|
+
const fieldId = fieldElement.getAttribute("data-fieldid");
|
|
444
|
+
if (!fieldId)
|
|
445
|
+
return;
|
|
446
|
+
const range = sel.getRangeAt(0);
|
|
447
|
+
// Guard: if layout components are hidden, do not set focus for fields of layout components
|
|
448
|
+
if (editContextRef.current?.showLayoutComponents === false &&
|
|
449
|
+
pageViewContextRef.current?.page) {
|
|
450
|
+
const ownerId = fieldElement.getAttribute("data-itemid") || "";
|
|
451
|
+
const owner = getComponentById(ownerId, pageViewContextRef.current.page);
|
|
452
|
+
if (owner?.layoutId)
|
|
453
|
+
return;
|
|
454
|
+
}
|
|
455
|
+
// Compute the global offsets relative to the field element.
|
|
456
|
+
const globalStartOffset = getGlobalTextOffset(fieldElement, range.startContainer, range.startOffset);
|
|
457
|
+
const globalEndOffset = getGlobalTextOffset(fieldElement, range.endContainer, range.endOffset);
|
|
458
|
+
const selectedText = range.toString();
|
|
459
|
+
// Extract plain text context from the DOM
|
|
460
|
+
const { contextBefore, contextAfter } = extractDOMSelectionContext(fieldElement, globalStartOffset, globalEndOffset);
|
|
461
|
+
// Clone the range for the replaceText callback (ranges can become invalid after DOM changes)
|
|
462
|
+
const rangeClone = range.cloneRange();
|
|
463
|
+
const itemId = fieldElement.getAttribute("data-itemid") || "";
|
|
464
|
+
const language = fieldElement.getAttribute("data-language") || "";
|
|
465
|
+
const versionStr = fieldElement.getAttribute("data-version");
|
|
466
|
+
const version = versionStr ? parseInt(versionStr, 10) : 0;
|
|
467
|
+
editContextRef.current?.setSelectedRange({
|
|
468
|
+
itemId,
|
|
469
|
+
fieldId: fieldId,
|
|
470
|
+
language,
|
|
471
|
+
version,
|
|
472
|
+
startOffset: globalStartOffset,
|
|
473
|
+
endOffset: globalEndOffset,
|
|
474
|
+
text: selectedText,
|
|
475
|
+
contextBefore,
|
|
476
|
+
contextAfter,
|
|
477
|
+
// Create a callback that uses DOM Range API to replace text in contenteditable
|
|
478
|
+
replaceText: (newText) => {
|
|
479
|
+
try {
|
|
480
|
+
// Delete the selected content
|
|
481
|
+
rangeClone.deleteContents();
|
|
482
|
+
// Insert the new text - use the correct document from the range containers
|
|
483
|
+
const doc = rangeClone.startContainer.ownerDocument || document;
|
|
484
|
+
const textNode = doc.createTextNode(newText);
|
|
485
|
+
rangeClone.insertNode(textNode);
|
|
486
|
+
// Collapse the range to the end of the inserted text
|
|
487
|
+
rangeClone.setStartAfter(textNode);
|
|
488
|
+
rangeClone.collapse(true);
|
|
489
|
+
// Update the selection
|
|
490
|
+
const iframeSel = iframeRef.current?.contentDocument?.getSelection();
|
|
491
|
+
if (iframeSel) {
|
|
492
|
+
iframeSel.removeAllRanges();
|
|
493
|
+
iframeSel.addRange(rangeClone);
|
|
494
|
+
}
|
|
495
|
+
// Explicitly save the field value since the MutationObserver may not be active
|
|
496
|
+
// when text is selected without entering inline edit mode
|
|
497
|
+
const isRichText = fieldElement?.getAttribute("data-is-richtext") === "true";
|
|
498
|
+
const valueToSave = isRichText
|
|
499
|
+
? fieldElement?.innerHTML
|
|
500
|
+
: fieldElement?.innerText;
|
|
501
|
+
if (fieldId &&
|
|
502
|
+
itemId &&
|
|
503
|
+
language &&
|
|
504
|
+
version &&
|
|
505
|
+
editContextRef.current) {
|
|
506
|
+
editContextRef.current.operations.editField({
|
|
507
|
+
field: {
|
|
508
|
+
fieldId,
|
|
509
|
+
fieldName: fieldElement?.getAttribute("data-fieldname") || undefined,
|
|
510
|
+
item: { id: itemId, language, version },
|
|
511
|
+
},
|
|
512
|
+
refresh: "none",
|
|
513
|
+
value: valueToSave,
|
|
514
|
+
});
|
|
515
|
+
}
|
|
549
516
|
}
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
const isRichText = fieldElement?.getAttribute("data-is-richtext") === "true";
|
|
553
|
-
const valueToSave = isRichText
|
|
554
|
-
? fieldElement?.innerHTML
|
|
555
|
-
: fieldElement?.innerText;
|
|
556
|
-
if (fieldId &&
|
|
557
|
-
itemId &&
|
|
558
|
-
language &&
|
|
559
|
-
version &&
|
|
560
|
-
editContextRef.current) {
|
|
561
|
-
editContextRef.current.operations.editField({
|
|
562
|
-
field: {
|
|
563
|
-
fieldId,
|
|
564
|
-
fieldName: fieldElement?.getAttribute("data-fieldname") || undefined,
|
|
565
|
-
item: { id: itemId, language, version },
|
|
566
|
-
},
|
|
567
|
-
refresh: "none",
|
|
568
|
-
value: valueToSave,
|
|
569
|
-
});
|
|
517
|
+
catch (error) {
|
|
518
|
+
console.error("[PageViewerFrame] Failed to replace text:", error);
|
|
570
519
|
}
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
}
|
|
575
|
-
},
|
|
576
|
-
});
|
|
520
|
+
},
|
|
521
|
+
});
|
|
522
|
+
}
|
|
577
523
|
}, 300);
|
|
578
524
|
useEffect(() => {
|
|
579
525
|
const iframe = iframeRef.current;
|
|
@@ -761,16 +707,12 @@ export function PageViewerFrame({ compareView, pageViewContext, className, slotC
|
|
|
761
707
|
const isDialog = activeEl?.closest(".agent-inline-dialog") ||
|
|
762
708
|
activeEl?.closest('[role="dialog"]');
|
|
763
709
|
const isTrigger = activeEl?.closest(".agent-inline-trigger");
|
|
764
|
-
// If focus moved to dialog
|
|
765
|
-
if (!isDialog &&
|
|
766
|
-
|
|
767
|
-
|
|
710
|
+
// If focus moved to dialog or trigger, OR if we still have a selection, don't clear.
|
|
711
|
+
if (!isDialog &&
|
|
712
|
+
!isTrigger &&
|
|
713
|
+
!editContextRef.current?.selectedRange) {
|
|
714
|
+
fieldsContextRef.current?.setInlineEditingFieldElement(undefined);
|
|
768
715
|
editContextRef.current?.operations.onFieldBlur?.();
|
|
769
|
-
// Keep selection-related state intact, but clear inline editing element
|
|
770
|
-
// when there is no active selectedRange.
|
|
771
|
-
if (!editContextRef.current?.selectedRange) {
|
|
772
|
-
fieldsContextRef.current?.setInlineEditingFieldElement(undefined);
|
|
773
|
-
}
|
|
774
716
|
}
|
|
775
717
|
}, 100);
|
|
776
718
|
}
|
|
@@ -826,7 +768,7 @@ export function PageViewerFrame({ compareView, pageViewContext, className, slotC
|
|
|
826
768
|
"getAttribute" in x.target &&
|
|
827
769
|
x.target.getAttribute("data-fieldid") &&
|
|
828
770
|
x.target.getAttribute("data-itemid")))) {
|
|
829
|
-
|
|
771
|
+
buildPageModelThrottled(iframeDocument, editContextRef, pageViewContextRef);
|
|
830
772
|
}
|
|
831
773
|
});
|
|
832
774
|
mutationObserver.observe(iframeDocument, {
|
|
@@ -835,126 +777,19 @@ export function PageViewerFrame({ compareView, pageViewContext, className, slotC
|
|
|
835
777
|
characterData: false, // observe text changes
|
|
836
778
|
//attributes: true, // observe attribute changes (like style or class)
|
|
837
779
|
});
|
|
838
|
-
|
|
839
|
-
};
|
|
840
|
-
const parsePositiveInt = (value) => {
|
|
841
|
-
if (!value)
|
|
842
|
-
return undefined;
|
|
843
|
-
const parsed = parseInt(value, 10);
|
|
844
|
-
return Number.isFinite(parsed) ? parsed : undefined;
|
|
845
|
-
};
|
|
846
|
-
const resolveLinkedItemDescriptor = (anchor, clickedElement) => {
|
|
847
|
-
const href = anchor.getAttribute("href") || anchor.href;
|
|
848
|
-
let hrefUrl;
|
|
849
|
-
try {
|
|
850
|
-
hrefUrl = new URL(anchor.href, iframe.contentWindow?.location?.href || window.location.href);
|
|
851
|
-
}
|
|
852
|
-
catch {
|
|
853
|
-
return undefined;
|
|
854
|
-
}
|
|
855
|
-
const attributeContainer = clickedElement?.closest("[data-itemid],[data-language],[data-version],[sc_item],[sc_itemid],[sc_lang]") || anchor;
|
|
856
|
-
// Parse Sitecore RTE format first: ~/link.aspx?_id=GUID&_z=z (target item, not the containing component)
|
|
857
|
-
let itemIdRaw;
|
|
858
|
-
if (href.includes("~/link.aspx?_id=") ||
|
|
859
|
-
href.includes("link.aspx?_id=")) {
|
|
860
|
-
const idFromUrl = hrefUrl.searchParams.get("_id");
|
|
861
|
-
if (idFromUrl) {
|
|
862
|
-
// Convert compact GUID (AD973E51E8454BD2B333859375FBBA24) to standard format with dashes
|
|
863
|
-
itemIdRaw = idFromUrl
|
|
864
|
-
.replace(/^(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})$/i, "$1-$2-$3-$4-$5")
|
|
865
|
-
.toLowerCase();
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
if (!itemIdRaw) {
|
|
869
|
-
itemIdRaw =
|
|
870
|
-
hrefUrl.searchParams.get("sc_itemid") ??
|
|
871
|
-
hrefUrl.searchParams.get("itemid") ??
|
|
872
|
-
anchor.getAttribute("data-itemid") ??
|
|
873
|
-
anchor.getAttribute("sc_itemid") ??
|
|
874
|
-
attributeContainer?.getAttribute("data-itemid") ??
|
|
875
|
-
attributeContainer?.getAttribute("sc_itemid") ??
|
|
876
|
-
(anchor.getAttribute("sc_item")
|
|
877
|
-
? extractItemIdFromItemUri(anchor.getAttribute("sc_item"))
|
|
878
|
-
: undefined) ??
|
|
879
|
-
(attributeContainer?.getAttribute("sc_item")
|
|
880
|
-
? extractItemIdFromItemUri(attributeContainer.getAttribute("sc_item"))
|
|
881
|
-
: undefined);
|
|
882
|
-
}
|
|
883
|
-
const itemId = cleanId(itemIdRaw);
|
|
884
|
-
if (!itemId)
|
|
885
|
-
return undefined;
|
|
886
|
-
const language = hrefUrl.searchParams.get("sc_lang") ??
|
|
887
|
-
hrefUrl.searchParams.get("lang") ??
|
|
888
|
-
hrefUrl.searchParams.get("language") ??
|
|
889
|
-
anchor.getAttribute("data-language") ??
|
|
890
|
-
anchor.getAttribute("sc_lang") ??
|
|
891
|
-
attributeContainer?.getAttribute("data-language") ??
|
|
892
|
-
attributeContainer?.getAttribute("sc_lang") ??
|
|
893
|
-
editContextRef.current?.currentItemDescriptor?.language ??
|
|
894
|
-
editContextRef.current?.item?.language;
|
|
895
|
-
if (!language)
|
|
896
|
-
return undefined;
|
|
897
|
-
const version = parsePositiveInt(hrefUrl.searchParams.get("sc_version")) ??
|
|
898
|
-
parsePositiveInt(hrefUrl.searchParams.get("version")) ??
|
|
899
|
-
parsePositiveInt(anchor.getAttribute("data-version")) ??
|
|
900
|
-
parsePositiveInt(attributeContainer?.getAttribute("data-version")) ??
|
|
901
|
-
editContextRef.current?.currentItemDescriptor?.version ??
|
|
902
|
-
editContextRef.current?.item?.version ??
|
|
903
|
-
0;
|
|
904
|
-
return {
|
|
905
|
-
id: itemId,
|
|
906
|
-
language,
|
|
907
|
-
version,
|
|
908
|
-
};
|
|
780
|
+
buildPageModelThrottled(iframeDocument, editContextRef, pageViewContextRef);
|
|
909
781
|
};
|
|
910
782
|
const handleIframeClick = async (event) => {
|
|
911
783
|
const target = event.target;
|
|
912
|
-
if (
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
return;
|
|
919
|
-
const href = anchor.getAttribute("href") || anchor.href;
|
|
920
|
-
if (!href || href.startsWith("#") || href.startsWith("javascript:")) {
|
|
921
|
-
return;
|
|
922
|
-
}
|
|
923
|
-
const mode = editContextRef.current?.mode;
|
|
924
|
-
const isPreviewOrSuggestions = mode === "preview" || mode === "suggestions";
|
|
925
|
-
if (isPreviewOrSuggestions) {
|
|
926
|
-
let hrefUrl;
|
|
927
|
-
try {
|
|
928
|
-
hrefUrl = new URL(anchor.href, iframe.contentWindow?.location?.href || window.location.href);
|
|
929
|
-
}
|
|
930
|
-
catch {
|
|
931
|
-
return;
|
|
932
|
-
}
|
|
933
|
-
const iframeOrigin = iframe.contentWindow?.location?.origin;
|
|
934
|
-
const isInternalLink = hrefUrl.origin === window.location.origin ||
|
|
935
|
-
(iframeOrigin ? hrefUrl.origin === iframeOrigin : false);
|
|
936
|
-
if (!isInternalLink) {
|
|
784
|
+
// Check if the click target is a link (anchor tag)
|
|
785
|
+
const anchor = target.tagName.toLowerCase() === "a" ? target : target.closest("a");
|
|
786
|
+
if (anchor) {
|
|
787
|
+
const href = anchor.href;
|
|
788
|
+
// Block only navigation links, allow anchor links and javascript links
|
|
789
|
+
if (href && !href.startsWith("#") && !href.startsWith("javascript:")) {
|
|
937
790
|
event.preventDefault();
|
|
938
|
-
event.stopPropagation();
|
|
939
|
-
window.open(hrefUrl.toString(), "_blank", "noopener,noreferrer");
|
|
940
|
-
return;
|
|
941
|
-
}
|
|
942
|
-
if (isInternalLink) {
|
|
943
|
-
const linkedItem = resolveLinkedItemDescriptor(anchor, target);
|
|
944
|
-
if (linkedItem) {
|
|
945
|
-
event.preventDefault();
|
|
946
|
-
event.stopPropagation();
|
|
947
|
-
await editContextRef.current?.loadItem(linkedItem, {
|
|
948
|
-
openInNewSlot: event.altKey,
|
|
949
|
-
});
|
|
950
|
-
return;
|
|
951
|
-
}
|
|
952
791
|
}
|
|
953
|
-
// If this link cannot be resolved to an item, allow browser behavior.
|
|
954
|
-
return;
|
|
955
792
|
}
|
|
956
|
-
// In edit mode, keep navigation inside iframe disabled.
|
|
957
|
-
event.preventDefault();
|
|
958
793
|
};
|
|
959
794
|
const handleContextMenu = async (event) => {
|
|
960
795
|
if (editContextRef.current?.isRefreshing && showSpinner)
|
|
@@ -1147,7 +982,9 @@ export function PageViewerFrame({ compareView, pageViewContext, className, slotC
|
|
|
1147
982
|
const deviceHeight = pageViewContext.device === "desktop" || !pageViewContext.deviceHeight
|
|
1148
983
|
? "100%"
|
|
1149
984
|
: pageViewContext.deviceHeight || 640;
|
|
1150
|
-
return (_jsxs("div", { className: cn("relative flex h-full w-full flex-col items-center select-none", className,
|
|
985
|
+
return (_jsxs("div", { className: cn("relative flex h-full w-full flex-col items-center select-none", className, (editContext.showComponentNavigator ||
|
|
986
|
+
(editContext.showAgentsPanel && !editContext.currentWizardId)) &&
|
|
987
|
+
"pr-0"), children: [!pageViewContext.fullscreen && (_jsx(EditorWarnings, { item: pageViewContext.page?.item })), pageViewContext.device !== "desktop" && (_jsx(DeviceToolbar, { pageViewContext: pageViewContext, configuration: editContext.configuration })), _jsxs("div", { className: "relative flex flex-1 select-none", "data-testid": "page-viewer-viewport", style: {
|
|
1151
988
|
width: pageViewContext.device === "desktop" ||
|
|
1152
989
|
pageViewContext.device === "Responsive"
|
|
1153
990
|
? "100%"
|
|
@@ -1163,32 +1000,15 @@ export function PageViewerFrame({ compareView, pageViewContext, className, slotC
|
|
|
1163
1000
|
setTimeout(() => {
|
|
1164
1001
|
injectSXAScripts(iframeRef.current);
|
|
1165
1002
|
}, 1000);
|
|
1166
|
-
|
|
1003
|
+
buildPageModelThrottled(doc, editContextRef, pageViewContextRef);
|
|
1167
1004
|
}
|
|
1168
1005
|
} }), iframeRef.current && (_jsx(PageEditorChrome, { iframe: iframeRef.current, compareView: compareView, pageViewContext: pageViewContext })), pageViewContext.deviceHeight && pageViewContext.device && (_jsx("div", { className: "bg-gray-4 relative z-40 h-full w-full" }))] }), !pageViewContext.fullscreen &&
|
|
1169
1006
|
showMiniMap &&
|
|
1170
1007
|
editContext.showMinimap &&
|
|
1171
|
-
|
|
1172
|
-
editContext.parheliaSettings?.showMinimap !== false && (_jsx(MiniMap, { scroll: scroll, mainViewIframeRef: iframeRef, pageViewContext: pageViewContext, deviceHeight: pageViewContext.device === "Desktop"
|
|
1008
|
+
editContext.parheliaSettings?.showMinimap !== false && (_jsx(MiniMap, { compareView: compareView, scroll: scroll, mainViewIframeRef: iframeRef, pageViewContext: pageViewContext, deviceHeight: pageViewContext.device === "Desktop"
|
|
1173
1009
|
? undefined
|
|
1174
1010
|
: pageViewContext.deviceHeight })), showSpinner && (_jsxs(_Fragment, { children: [_jsx("div", { className: "bg-gray-4/50 absolute top-0 left-0 h-full w-full" }), _jsx("div", { className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 transform", children: _jsx(Spinner, {}) })] }))] }), _jsx(FieldActionsOverlay, { ref: fieldActionsOverlay, generatorButtons: contextMenuFieldButtons, onActionClick: handleActionClick, onParameterizedActionExecute: handleParameterizedActionExecute, currentOverlay: editContext?.currentOverlay, fieldId: contextMenuField?.fieldId || "", setCurrentOverlay: editContext?.setCurrentOverlay || (() => { }), preSelectedAction: preSelectedAction, iframe: iframeRef.current })] }));
|
|
1175
1011
|
}
|
|
1176
|
-
/**
|
|
1177
|
-
* In preview mode, disable editing in the iframe: set contentEditable=false on all
|
|
1178
|
-
* editable elements and blur the active element so the caret is removed and typing does nothing.
|
|
1179
|
-
*/
|
|
1180
|
-
function disableEditingInIframeDocument(doc) {
|
|
1181
|
-
if (!doc || !doc.body)
|
|
1182
|
-
return;
|
|
1183
|
-
const editable = doc.querySelectorAll("[contenteditable='true'], [contenteditable='']");
|
|
1184
|
-
editable.forEach((el) => {
|
|
1185
|
-
el.contentEditable = "false";
|
|
1186
|
-
});
|
|
1187
|
-
const active = doc.activeElement;
|
|
1188
|
-
if (active?.isContentEditable) {
|
|
1189
|
-
active.blur();
|
|
1190
|
-
}
|
|
1191
|
-
}
|
|
1192
1012
|
function injectEditorCSS(iframeDocument, editMode) {
|
|
1193
1013
|
if (!iframeDocument)
|
|
1194
1014
|
return;
|
|
@@ -1225,9 +1045,6 @@ function injectEditorCSS(iframeDocument, editMode) {
|
|
|
1225
1045
|
if (iframeDocument && iframeDocument.head) {
|
|
1226
1046
|
iframeDocument.head.appendChild(style);
|
|
1227
1047
|
}
|
|
1228
|
-
if (!editMode) {
|
|
1229
|
-
disableEditingInIframeDocument(iframeDocument);
|
|
1230
|
-
}
|
|
1231
1048
|
}
|
|
1232
1049
|
function resolveComponentIdForTarget(rawId, target, page) {
|
|
1233
1050
|
const direct = getComponentById(rawId, page);
|