@alpaca-editor/core 1.0.0 → 1.0.3
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/build.css +3 -0
- package/components.json +21 -0
- package/dev.css +3 -0
- package/dist/client-components/api.d.ts +1 -0
- package/dist/client-components/api.js +4 -0
- package/dist/client-components/api.js.map +1 -0
- package/dist/client-components/index.d.ts +16 -0
- package/dist/client-components/index.js +17 -0
- package/dist/client-components/index.js.map +1 -0
- package/dist/components/ActionButton.d.ts +12 -0
- package/dist/components/ActionButton.js +6 -0
- package/dist/components/ActionButton.js.map +1 -0
- package/dist/components/Error.d.ts +9 -0
- package/dist/components/Error.js +24 -0
- package/dist/components/Error.js.map +1 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/button.js +32 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/config/config.d.ts +6 -0
- package/dist/config/config.js +647 -0
- package/dist/config/config.js.map +1 -0
- package/dist/config/types.d.ts +223 -0
- package/dist/config/types.js +2 -0
- package/dist/config/types.js.map +1 -0
- package/dist/editor/ComponentInfo.d.ts +4 -0
- package/dist/editor/ComponentInfo.js +29 -0
- package/dist/editor/ComponentInfo.js.map +1 -0
- package/dist/editor/ConfirmationDialog.d.ts +19 -0
- package/dist/editor/ConfirmationDialog.js +31 -0
- package/dist/editor/ConfirmationDialog.js.map +1 -0
- package/dist/editor/ContentTree.d.ts +35 -0
- package/dist/editor/ContentTree.js +404 -0
- package/dist/editor/ContentTree.js.map +1 -0
- package/dist/editor/ContextMenu.d.ts +13 -0
- package/dist/editor/ContextMenu.js +114 -0
- package/dist/editor/ContextMenu.js.map +1 -0
- package/dist/editor/Editor.d.ts +11 -0
- package/dist/editor/Editor.js +50 -0
- package/dist/editor/Editor.js.map +1 -0
- package/dist/editor/EditorWarning.d.ts +5 -0
- package/dist/editor/EditorWarning.js +11 -0
- package/dist/editor/EditorWarning.js.map +1 -0
- package/dist/editor/EditorWarnings.d.ts +9 -0
- package/dist/editor/EditorWarnings.js +19 -0
- package/dist/editor/EditorWarnings.js.map +1 -0
- package/dist/editor/FieldEditorPopup.d.ts +10 -0
- package/dist/editor/FieldEditorPopup.js +22 -0
- package/dist/editor/FieldEditorPopup.js.map +1 -0
- package/dist/editor/FieldHistory.d.ts +6 -0
- package/dist/editor/FieldHistory.js +38 -0
- package/dist/editor/FieldHistory.js.map +1 -0
- package/dist/editor/FieldList.d.ts +16 -0
- package/dist/editor/FieldList.js +58 -0
- package/dist/editor/FieldList.js.map +1 -0
- package/dist/editor/FieldListField.d.ts +14 -0
- package/dist/editor/FieldListField.js +161 -0
- package/dist/editor/FieldListField.js.map +1 -0
- package/dist/editor/FieldListFieldWithFallbacks.d.ts +10 -0
- package/dist/editor/FieldListFieldWithFallbacks.js +109 -0
- package/dist/editor/FieldListFieldWithFallbacks.js.map +1 -0
- package/dist/editor/FloatingToolbar.d.ts +7 -0
- package/dist/editor/FloatingToolbar.js +90 -0
- package/dist/editor/FloatingToolbar.js.map +1 -0
- package/dist/editor/ImageEditor.d.ts +5 -0
- package/dist/editor/ImageEditor.js +53 -0
- package/dist/editor/ImageEditor.js.map +1 -0
- package/dist/editor/InsertMenu.d.ts +8 -0
- package/dist/editor/InsertMenu.js +158 -0
- package/dist/editor/InsertMenu.js.map +1 -0
- package/dist/editor/ItemInfo.d.ts +4 -0
- package/dist/editor/ItemInfo.js +28 -0
- package/dist/editor/ItemInfo.js.map +1 -0
- package/dist/editor/LinkEditorDialog.d.ts +15 -0
- package/dist/editor/LinkEditorDialog.js +84 -0
- package/dist/editor/LinkEditorDialog.js.map +1 -0
- package/dist/editor/MainLayout.d.ts +9 -0
- package/dist/editor/MainLayout.js +41 -0
- package/dist/editor/MainLayout.js.map +1 -0
- package/dist/editor/NewEditorClient.d.ts +5 -0
- package/dist/editor/NewEditorClient.js +7 -0
- package/dist/editor/NewEditorClient.js.map +1 -0
- package/dist/editor/PictureCropper.d.ts +6 -0
- package/dist/editor/PictureCropper.js +327 -0
- package/dist/editor/PictureCropper.js.map +1 -0
- package/dist/editor/PictureEditor.d.ts +8 -0
- package/dist/editor/PictureEditor.js +102 -0
- package/dist/editor/PictureEditor.js.map +1 -0
- package/dist/editor/PictureEditorDialog.d.ts +8 -0
- package/dist/editor/PictureEditorDialog.js +189 -0
- package/dist/editor/PictureEditorDialog.js.map +1 -0
- package/dist/editor/ScrollingContentTree.d.ts +6 -0
- package/dist/editor/ScrollingContentTree.js +25 -0
- package/dist/editor/ScrollingContentTree.js.map +1 -0
- package/dist/editor/Terminal.d.ts +14 -0
- package/dist/editor/Terminal.js +107 -0
- package/dist/editor/Terminal.js.map +1 -0
- package/dist/editor/Titlebar.d.ts +1 -0
- package/dist/editor/Titlebar.js +9 -0
- package/dist/editor/Titlebar.js.map +1 -0
- package/dist/editor/ai/AiPopup.d.ts +10 -0
- package/dist/editor/ai/AiPopup.js +23 -0
- package/dist/editor/ai/AiPopup.js.map +1 -0
- package/dist/editor/ai/AiResponseMessage.d.ts +8 -0
- package/dist/editor/ai/AiResponseMessage.js +22 -0
- package/dist/editor/ai/AiResponseMessage.js.map +1 -0
- package/dist/editor/ai/AiTerminal.d.ts +34 -0
- package/dist/editor/ai/AiTerminal.js +236 -0
- package/dist/editor/ai/AiTerminal.js.map +1 -0
- package/dist/editor/ai/AiToolCall.d.ts +9 -0
- package/dist/editor/ai/AiToolCall.js +16 -0
- package/dist/editor/ai/AiToolCall.js.map +1 -0
- package/dist/editor/ai/EditorAiTerminal.d.ts +5 -0
- package/dist/editor/ai/EditorAiTerminal.js +7 -0
- package/dist/editor/ai/EditorAiTerminal.js.map +1 -0
- package/dist/editor/ai/editorAiContext.d.ts +11 -0
- package/dist/editor/ai/editorAiContext.js +12 -0
- package/dist/editor/ai/editorAiContext.js.map +1 -0
- package/dist/editor/client/DialogContext.d.ts +12 -0
- package/dist/editor/client/DialogContext.js +25 -0
- package/dist/editor/client/DialogContext.js.map +1 -0
- package/dist/editor/client/EditorClient.d.ts +26 -0
- package/dist/editor/client/EditorClient.js +1298 -0
- package/dist/editor/client/EditorClient.js.map +1 -0
- package/dist/editor/client/GenericDialog.d.ts +10 -0
- package/dist/editor/client/GenericDialog.js +25 -0
- package/dist/editor/client/GenericDialog.js.map +1 -0
- package/dist/editor/client/editContext.d.ts +199 -0
- package/dist/editor/client/editContext.js +20 -0
- package/dist/editor/client/editContext.js.map +1 -0
- package/dist/editor/client/helpers.d.ts +12 -0
- package/dist/editor/client/helpers.js +29 -0
- package/dist/editor/client/helpers.js.map +1 -0
- package/dist/editor/client/itemsRepository.d.ts +24 -0
- package/dist/editor/client/itemsRepository.js +253 -0
- package/dist/editor/client/itemsRepository.js.map +1 -0
- package/dist/editor/client/operations.d.ts +57 -0
- package/dist/editor/client/operations.js +393 -0
- package/dist/editor/client/operations.js.map +1 -0
- package/dist/editor/client/pageModelBuilder.d.ts +6 -0
- package/dist/editor/client/pageModelBuilder.js +127 -0
- package/dist/editor/client/pageModelBuilder.js.map +1 -0
- package/dist/editor/commands/commands.d.ts +19 -0
- package/dist/editor/commands/commands.js +2 -0
- package/dist/editor/commands/commands.js.map +1 -0
- package/dist/editor/commands/componentCommands.d.ts +13 -0
- package/dist/editor/commands/componentCommands.js +271 -0
- package/dist/editor/commands/componentCommands.js.map +1 -0
- package/dist/editor/commands/createVersionCommand.d.ts +4 -0
- package/dist/editor/commands/createVersionCommand.js +24 -0
- package/dist/editor/commands/createVersionCommand.js.map +1 -0
- package/dist/editor/commands/deleteVersionCommand.d.ts +4 -0
- package/dist/editor/commands/deleteVersionCommand.js +53 -0
- package/dist/editor/commands/deleteVersionCommand.js.map +1 -0
- package/dist/editor/commands/itemCommands.d.ts +17 -0
- package/dist/editor/commands/itemCommands.js +132 -0
- package/dist/editor/commands/itemCommands.js.map +1 -0
- package/dist/editor/commands/localizeItem/LocalizeItemDialog.d.ts +8 -0
- package/dist/editor/commands/localizeItem/LocalizeItemDialog.js +89 -0
- package/dist/editor/commands/localizeItem/LocalizeItemDialog.js.map +1 -0
- package/dist/editor/commands/undo.d.ts +15 -0
- package/dist/editor/commands/undo.js +29 -0
- package/dist/editor/commands/undo.js.map +1 -0
- package/dist/editor/component-designer/ComponentDesigner.d.ts +1 -0
- package/dist/editor/component-designer/ComponentDesigner.js +56 -0
- package/dist/editor/component-designer/ComponentDesigner.js.map +1 -0
- package/dist/editor/component-designer/ComponentDesignerAiTerminal.d.ts +1 -0
- package/dist/editor/component-designer/ComponentDesignerAiTerminal.js +7 -0
- package/dist/editor/component-designer/ComponentDesignerAiTerminal.js.map +1 -0
- package/dist/editor/component-designer/ComponentDesignerMenu.d.ts +1 -0
- package/dist/editor/component-designer/ComponentDesignerMenu.js +65 -0
- package/dist/editor/component-designer/ComponentDesignerMenu.js.map +1 -0
- package/dist/editor/component-designer/ComponentEditor.d.ts +4 -0
- package/dist/editor/component-designer/ComponentEditor.js +57 -0
- package/dist/editor/component-designer/ComponentEditor.js.map +1 -0
- package/dist/editor/component-designer/ComponentRenderingCodeEditor.d.ts +5 -0
- package/dist/editor/component-designer/ComponentRenderingCodeEditor.js +11 -0
- package/dist/editor/component-designer/ComponentRenderingCodeEditor.js.map +1 -0
- package/dist/editor/component-designer/ComponentRenderingEditor.d.ts +1 -0
- package/dist/editor/component-designer/ComponentRenderingEditor.js +69 -0
- package/dist/editor/component-designer/ComponentRenderingEditor.js.map +1 -0
- package/dist/editor/component-designer/ComponentsDropdown.d.ts +4 -0
- package/dist/editor/component-designer/ComponentsDropdown.js +20 -0
- package/dist/editor/component-designer/ComponentsDropdown.js.map +1 -0
- package/dist/editor/component-designer/PlaceholdersEditor.d.ts +4 -0
- package/dist/editor/component-designer/PlaceholdersEditor.js +68 -0
- package/dist/editor/component-designer/PlaceholdersEditor.js.map +1 -0
- package/dist/editor/component-designer/RenderingsDropdown.d.ts +1 -0
- package/dist/editor/component-designer/RenderingsDropdown.js +23 -0
- package/dist/editor/component-designer/RenderingsDropdown.js.map +1 -0
- package/dist/editor/component-designer/TemplateEditor.d.ts +1 -0
- package/dist/editor/component-designer/TemplateEditor.js +142 -0
- package/dist/editor/component-designer/TemplateEditor.js.map +1 -0
- package/dist/editor/component-designer/aiContext.d.ts +5 -0
- package/dist/editor/component-designer/aiContext.js +16 -0
- package/dist/editor/component-designer/aiContext.js.map +1 -0
- package/dist/editor/componentTreeHelper.d.ts +16 -0
- package/dist/editor/componentTreeHelper.js +87 -0
- package/dist/editor/componentTreeHelper.js.map +1 -0
- package/dist/editor/control-center/ControlCenterMenu.d.ts +1 -0
- package/dist/editor/control-center/ControlCenterMenu.js +57 -0
- package/dist/editor/control-center/ControlCenterMenu.js.map +1 -0
- package/dist/editor/control-center/IndexOverview.d.ts +1 -0
- package/dist/editor/control-center/IndexOverview.js +25 -0
- package/dist/editor/control-center/IndexOverview.js.map +1 -0
- package/dist/editor/control-center/IndexSettings.d.ts +5 -0
- package/dist/editor/control-center/IndexSettings.js +104 -0
- package/dist/editor/control-center/IndexSettings.js.map +1 -0
- package/dist/editor/control-center/Status.d.ts +1 -0
- package/dist/editor/control-center/Status.js +5 -0
- package/dist/editor/control-center/Status.js.map +1 -0
- package/dist/editor/editor-warnings/ItemLocked.d.ts +2 -0
- package/dist/editor/editor-warnings/ItemLocked.js +38 -0
- package/dist/editor/editor-warnings/ItemLocked.js.map +1 -0
- package/dist/editor/editor-warnings/NoLanguageWriteAccess.d.ts +2 -0
- package/dist/editor/editor-warnings/NoLanguageWriteAccess.js +14 -0
- package/dist/editor/editor-warnings/NoLanguageWriteAccess.js.map +1 -0
- package/dist/editor/editor-warnings/NoWorkflowWriteAccess.d.ts +2 -0
- package/dist/editor/editor-warnings/NoWorkflowWriteAccess.js +14 -0
- package/dist/editor/editor-warnings/NoWorkflowWriteAccess.js.map +1 -0
- package/dist/editor/editor-warnings/NoWriteAccess.d.ts +2 -0
- package/dist/editor/editor-warnings/NoWriteAccess.js +12 -0
- package/dist/editor/editor-warnings/NoWriteAccess.js.map +1 -0
- package/dist/editor/editor-warnings/ValidationErrors.d.ts +2 -0
- package/dist/editor/editor-warnings/ValidationErrors.js +25 -0
- package/dist/editor/editor-warnings/ValidationErrors.js.map +1 -0
- package/dist/editor/field-types/AttachmentEditor.d.ts +4 -0
- package/dist/editor/field-types/AttachmentEditor.js +5 -0
- package/dist/editor/field-types/AttachmentEditor.js.map +1 -0
- package/dist/editor/field-types/CheckboxEditor.d.ts +5 -0
- package/dist/editor/field-types/CheckboxEditor.js +30 -0
- package/dist/editor/field-types/CheckboxEditor.js.map +1 -0
- package/dist/editor/field-types/DropLinkEditor.d.ts +5 -0
- package/dist/editor/field-types/DropLinkEditor.js +49 -0
- package/dist/editor/field-types/DropLinkEditor.js.map +1 -0
- package/dist/editor/field-types/DropListEditor.d.ts +5 -0
- package/dist/editor/field-types/DropListEditor.js +56 -0
- package/dist/editor/field-types/DropListEditor.js.map +1 -0
- package/dist/editor/field-types/ImageFieldEditor.d.ts +5 -0
- package/dist/editor/field-types/ImageFieldEditor.js +34 -0
- package/dist/editor/field-types/ImageFieldEditor.js.map +1 -0
- package/dist/editor/field-types/InternalLinkFieldEditor.d.ts +5 -0
- package/dist/editor/field-types/InternalLinkFieldEditor.js +59 -0
- package/dist/editor/field-types/InternalLinkFieldEditor.js.map +1 -0
- package/dist/editor/field-types/LinkFieldEditor.d.ts +5 -0
- package/dist/editor/field-types/LinkFieldEditor.js +56 -0
- package/dist/editor/field-types/LinkFieldEditor.js.map +1 -0
- package/dist/editor/field-types/MultiLineText.d.ts +6 -0
- package/dist/editor/field-types/MultiLineText.js +33 -0
- package/dist/editor/field-types/MultiLineText.js.map +1 -0
- package/dist/editor/field-types/PictureFieldEditor.d.ts +5 -0
- package/dist/editor/field-types/PictureFieldEditor.js +57 -0
- package/dist/editor/field-types/PictureFieldEditor.js.map +1 -0
- package/dist/editor/field-types/RawEditor.d.ts +5 -0
- package/dist/editor/field-types/RawEditor.js +31 -0
- package/dist/editor/field-types/RawEditor.js.map +1 -0
- 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.d.ts +5 -0
- package/dist/editor/field-types/RichTextEditor.js +8 -0
- package/dist/editor/field-types/RichTextEditor.js.map +1 -0
- package/dist/editor/field-types/RichTextEditorComponent.d.ts +6 -0
- package/dist/editor/field-types/RichTextEditorComponent.js +70 -0
- package/dist/editor/field-types/RichTextEditorComponent.js.map +1 -0
- package/dist/editor/field-types/SingleLineText.d.ts +6 -0
- package/dist/editor/field-types/SingleLineText.js +90 -0
- package/dist/editor/field-types/SingleLineText.js.map +1 -0
- package/dist/editor/field-types/TreeListEditor.d.ts +5 -0
- package/dist/editor/field-types/TreeListEditor.js +132 -0
- package/dist/editor/field-types/TreeListEditor.js.map +1 -0
- package/dist/editor/fieldTypes.d.ts +117 -0
- package/dist/editor/fieldTypes.js +2 -0
- package/dist/editor/fieldTypes.js.map +1 -0
- package/dist/editor/media-selector/AiImageSearch.d.ts +4 -0
- package/dist/editor/media-selector/AiImageSearch.js +105 -0
- package/dist/editor/media-selector/AiImageSearch.js.map +1 -0
- package/dist/editor/media-selector/AiImageSearchPrompt.d.ts +3 -0
- package/dist/editor/media-selector/AiImageSearchPrompt.js +56 -0
- package/dist/editor/media-selector/AiImageSearchPrompt.js.map +1 -0
- package/dist/editor/media-selector/MediaSelector.d.ts +9 -0
- package/dist/editor/media-selector/MediaSelector.js +8 -0
- package/dist/editor/media-selector/MediaSelector.js.map +1 -0
- package/dist/editor/media-selector/Preview.d.ts +4 -0
- package/dist/editor/media-selector/Preview.js +7 -0
- package/dist/editor/media-selector/Preview.js.map +1 -0
- package/dist/editor/media-selector/Thumbnails.d.ts +13 -0
- package/dist/editor/media-selector/Thumbnails.js +9 -0
- package/dist/editor/media-selector/Thumbnails.js.map +1 -0
- package/dist/editor/media-selector/TreeSelector.d.ts +7 -0
- package/dist/editor/media-selector/TreeSelector.js +165 -0
- package/dist/editor/media-selector/TreeSelector.js.map +1 -0
- package/dist/editor/media-selector/UploadZone.d.ts +4 -0
- package/dist/editor/media-selector/UploadZone.js +78 -0
- package/dist/editor/media-selector/UploadZone.js.map +1 -0
- package/dist/editor/menubar/ActionsMenu.d.ts +1 -0
- package/dist/editor/menubar/ActionsMenu.js +31 -0
- package/dist/editor/menubar/ActionsMenu.js.map +1 -0
- package/dist/editor/menubar/ActiveUsers.d.ts +1 -0
- package/dist/editor/menubar/ActiveUsers.js +11 -0
- package/dist/editor/menubar/ActiveUsers.js.map +1 -0
- package/dist/editor/menubar/ApproveAndPublish.d.ts +1 -0
- package/dist/editor/menubar/ApproveAndPublish.js +11 -0
- package/dist/editor/menubar/ApproveAndPublish.js.map +1 -0
- package/dist/editor/menubar/BrowseHistory.d.ts +6 -0
- package/dist/editor/menubar/BrowseHistory.js +12 -0
- package/dist/editor/menubar/BrowseHistory.js.map +1 -0
- package/dist/editor/menubar/ItemLanguageVersion.d.ts +1 -0
- package/dist/editor/menubar/ItemLanguageVersion.js +34 -0
- package/dist/editor/menubar/ItemLanguageVersion.js.map +1 -0
- package/dist/editor/menubar/LanguageSelector.d.ts +9 -0
- package/dist/editor/menubar/LanguageSelector.js +31 -0
- package/dist/editor/menubar/LanguageSelector.js.map +1 -0
- package/dist/editor/menubar/Menu.d.ts +1 -0
- package/dist/editor/menubar/Menu.js +63 -0
- package/dist/editor/menubar/Menu.js.map +1 -0
- package/dist/editor/menubar/NavButtons.d.ts +1 -0
- package/dist/editor/menubar/NavButtons.js +41 -0
- package/dist/editor/menubar/NavButtons.js.map +1 -0
- package/dist/editor/menubar/PageSelector.d.ts +4 -0
- package/dist/editor/menubar/PageSelector.js +48 -0
- package/dist/editor/menubar/PageSelector.js.map +1 -0
- package/dist/editor/menubar/PageViewerControls.d.ts +1 -0
- package/dist/editor/menubar/PageViewerControls.js +35 -0
- package/dist/editor/menubar/PageViewerControls.js.map +1 -0
- package/dist/editor/menubar/Separator.d.ts +3 -0
- package/dist/editor/menubar/Separator.js +6 -0
- package/dist/editor/menubar/Separator.js.map +1 -0
- package/dist/editor/menubar/SiteInfo.d.ts +1 -0
- package/dist/editor/menubar/SiteInfo.js +24 -0
- package/dist/editor/menubar/SiteInfo.js.map +1 -0
- package/dist/editor/menubar/User.d.ts +4 -0
- package/dist/editor/menubar/User.js +16 -0
- package/dist/editor/menubar/User.js.map +1 -0
- package/dist/editor/menubar/VersionSelector.d.ts +9 -0
- package/dist/editor/menubar/VersionSelector.js +47 -0
- package/dist/editor/menubar/VersionSelector.js.map +1 -0
- package/dist/editor/page-editor-chrome/CommentHighlighting.d.ts +6 -0
- package/dist/editor/page-editor-chrome/CommentHighlighting.js +212 -0
- package/dist/editor/page-editor-chrome/CommentHighlighting.js.map +1 -0
- package/dist/editor/page-editor-chrome/CommentHighlightings.d.ts +4 -0
- package/dist/editor/page-editor-chrome/CommentHighlightings.js +15 -0
- package/dist/editor/page-editor-chrome/CommentHighlightings.js.map +1 -0
- package/dist/editor/page-editor-chrome/FieldActionIndicator.d.ts +4 -0
- package/dist/editor/page-editor-chrome/FieldActionIndicator.js +25 -0
- package/dist/editor/page-editor-chrome/FieldActionIndicator.js.map +1 -0
- package/dist/editor/page-editor-chrome/FieldActionIndicators.d.ts +1 -0
- package/dist/editor/page-editor-chrome/FieldActionIndicators.js +13 -0
- package/dist/editor/page-editor-chrome/FieldActionIndicators.js.map +1 -0
- package/dist/editor/page-editor-chrome/FieldEditedIndicator.d.ts +8 -0
- package/dist/editor/page-editor-chrome/FieldEditedIndicator.js +25 -0
- package/dist/editor/page-editor-chrome/FieldEditedIndicator.js.map +1 -0
- package/dist/editor/page-editor-chrome/FieldEditedIndicators.d.ts +6 -0
- package/dist/editor/page-editor-chrome/FieldEditedIndicators.js +13 -0
- package/dist/editor/page-editor-chrome/FieldEditedIndicators.js.map +1 -0
- package/dist/editor/page-editor-chrome/FrameMenu.d.ts +7 -0
- package/dist/editor/page-editor-chrome/FrameMenu.js +176 -0
- package/dist/editor/page-editor-chrome/FrameMenu.js.map +1 -0
- package/dist/editor/page-editor-chrome/FrameMenus.d.ts +5 -0
- package/dist/editor/page-editor-chrome/FrameMenus.js +22 -0
- package/dist/editor/page-editor-chrome/FrameMenus.js.map +1 -0
- package/dist/editor/page-editor-chrome/InlineEditor.d.ts +5 -0
- package/dist/editor/page-editor-chrome/InlineEditor.js +99 -0
- package/dist/editor/page-editor-chrome/InlineEditor.js.map +1 -0
- package/dist/editor/page-editor-chrome/LockedFieldIndicator.d.ts +1 -0
- package/dist/editor/page-editor-chrome/LockedFieldIndicator.js +33 -0
- package/dist/editor/page-editor-chrome/LockedFieldIndicator.js.map +1 -0
- package/dist/editor/page-editor-chrome/NoLayout.d.ts +1 -0
- package/dist/editor/page-editor-chrome/NoLayout.js +19 -0
- package/dist/editor/page-editor-chrome/NoLayout.js.map +1 -0
- package/dist/editor/page-editor-chrome/PageEditorChrome.d.ts +6 -0
- package/dist/editor/page-editor-chrome/PageEditorChrome.js +63 -0
- package/dist/editor/page-editor-chrome/PageEditorChrome.js.map +1 -0
- package/dist/editor/page-editor-chrome/PictureEditorOverlay.d.ts +1 -0
- package/dist/editor/page-editor-chrome/PictureEditorOverlay.js +107 -0
- package/dist/editor/page-editor-chrome/PictureEditorOverlay.js.map +1 -0
- package/dist/editor/page-editor-chrome/PlaceholderDropZone.d.ts +14 -0
- package/dist/editor/page-editor-chrome/PlaceholderDropZone.js +80 -0
- package/dist/editor/page-editor-chrome/PlaceholderDropZone.js.map +1 -0
- package/dist/editor/page-editor-chrome/PlaceholderDropZones.d.ts +5 -0
- package/dist/editor/page-editor-chrome/PlaceholderDropZones.js +145 -0
- package/dist/editor/page-editor-chrome/PlaceholderDropZones.js.map +1 -0
- package/dist/editor/page-viewer/DeviceToolbar.d.ts +6 -0
- package/dist/editor/page-viewer/DeviceToolbar.js +19 -0
- package/dist/editor/page-viewer/DeviceToolbar.js.map +1 -0
- package/dist/editor/page-viewer/EditorForm.d.ts +5 -0
- package/dist/editor/page-viewer/EditorForm.js +128 -0
- package/dist/editor/page-viewer/EditorForm.js.map +1 -0
- package/dist/editor/page-viewer/MiniMap.d.ts +9 -0
- package/dist/editor/page-viewer/MiniMap.js +222 -0
- package/dist/editor/page-viewer/MiniMap.js.map +1 -0
- package/dist/editor/page-viewer/PageViewer.d.ts +8 -0
- package/dist/editor/page-viewer/PageViewer.js +62 -0
- package/dist/editor/page-viewer/PageViewer.js.map +1 -0
- package/dist/editor/page-viewer/PageViewerFrame.d.ts +11 -0
- package/dist/editor/page-viewer/PageViewerFrame.js +690 -0
- package/dist/editor/page-viewer/PageViewerFrame.js.map +1 -0
- package/dist/editor/page-viewer/pageViewContext.d.ts +38 -0
- package/dist/editor/page-viewer/pageViewContext.js +115 -0
- package/dist/editor/page-viewer/pageViewContext.js.map +1 -0
- package/dist/editor/pageModel.d.ts +171 -0
- package/dist/editor/pageModel.js +2 -0
- package/dist/editor/pageModel.js.map +1 -0
- package/dist/editor/picture-shared.d.ts +16 -0
- package/dist/editor/picture-shared.js +25 -0
- package/dist/editor/picture-shared.js.map +1 -0
- package/dist/editor/reviews/Comment.d.ts +4 -0
- package/dist/editor/reviews/Comment.js +114 -0
- package/dist/editor/reviews/Comment.js.map +1 -0
- package/dist/editor/reviews/Comments.d.ts +1 -0
- package/dist/editor/reviews/Comments.js +22 -0
- package/dist/editor/reviews/Comments.js.map +1 -0
- package/dist/editor/reviews/PreviewInfo.d.ts +1 -0
- package/dist/editor/reviews/PreviewInfo.js +11 -0
- package/dist/editor/reviews/PreviewInfo.js.map +1 -0
- package/dist/editor/reviews/Reviews.d.ts +1 -0
- package/dist/editor/reviews/Reviews.js +160 -0
- package/dist/editor/reviews/Reviews.js.map +1 -0
- package/dist/editor/reviews/reviewCommands.d.ts +3 -0
- package/dist/editor/reviews/reviewCommands.js +42 -0
- package/dist/editor/reviews/reviewCommands.js.map +1 -0
- package/dist/editor/reviews/useReviews.d.ts +12 -0
- package/dist/editor/reviews/useReviews.js +43 -0
- package/dist/editor/reviews/useReviews.js.map +1 -0
- package/dist/editor/services/aiService.d.ts +34 -0
- package/dist/editor/services/aiService.js +95 -0
- package/dist/editor/services/aiService.js.map +1 -0
- package/dist/editor/services/componentDesignerService.d.ts +46 -0
- package/dist/editor/services/componentDesignerService.js +72 -0
- package/dist/editor/services/componentDesignerService.js.map +1 -0
- package/dist/editor/services/contentService.d.ts +34 -0
- package/dist/editor/services/contentService.js +92 -0
- package/dist/editor/services/contentService.js.map +1 -0
- package/dist/editor/services/editService.d.ts +34 -0
- package/dist/editor/services/editService.js +294 -0
- package/dist/editor/services/editService.js.map +1 -0
- package/dist/editor/services/indexService.d.ts +6 -0
- package/dist/editor/services/indexService.js +19 -0
- package/dist/editor/services/indexService.js.map +1 -0
- package/dist/editor/services/reviewsService.d.ts +12 -0
- package/dist/editor/services/reviewsService.js +32 -0
- package/dist/editor/services/reviewsService.js.map +1 -0
- package/dist/editor/services/serviceHelper.d.ts +9 -0
- package/dist/editor/services/serviceHelper.js +64 -0
- package/dist/editor/services/serviceHelper.js.map +1 -0
- package/dist/editor/services/systemService.d.ts +2 -0
- package/dist/editor/services/systemService.js +5 -0
- package/dist/editor/services/systemService.js.map +1 -0
- package/dist/editor/services/translationService.d.ts +11 -0
- package/dist/editor/services/translationService.js +11 -0
- package/dist/editor/services/translationService.js.map +1 -0
- package/dist/editor/services-server/api.d.ts +19 -0
- package/dist/editor/services-server/api.js +111 -0
- package/dist/editor/services-server/api.js.map +1 -0
- 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/sidebar/ComponentPalette.d.ts +1 -0
- package/dist/editor/sidebar/ComponentPalette.js +53 -0
- package/dist/editor/sidebar/ComponentPalette.js.map +1 -0
- package/dist/editor/sidebar/ComponentTree.d.ts +1 -0
- package/dist/editor/sidebar/ComponentTree.js +360 -0
- package/dist/editor/sidebar/ComponentTree.js.map +1 -0
- package/dist/editor/sidebar/Debug.d.ts +1 -0
- package/dist/editor/sidebar/Debug.js +58 -0
- package/dist/editor/sidebar/Debug.js.map +1 -0
- package/dist/editor/sidebar/DictionaryEditor.d.ts +1 -0
- package/dist/editor/sidebar/DictionaryEditor.js +158 -0
- package/dist/editor/sidebar/DictionaryEditor.js.map +1 -0
- package/dist/editor/sidebar/EditHistory.d.ts +1 -0
- package/dist/editor/sidebar/EditHistory.js +72 -0
- package/dist/editor/sidebar/EditHistory.js.map +1 -0
- package/dist/editor/sidebar/GraphQL.d.ts +1 -0
- package/dist/editor/sidebar/GraphQL.js +113 -0
- package/dist/editor/sidebar/GraphQL.js.map +1 -0
- package/dist/editor/sidebar/Insert.d.ts +1 -0
- package/dist/editor/sidebar/Insert.js +22 -0
- package/dist/editor/sidebar/Insert.js.map +1 -0
- package/dist/editor/sidebar/MainContentTree.d.ts +4 -0
- package/dist/editor/sidebar/MainContentTree.js +49 -0
- package/dist/editor/sidebar/MainContentTree.js.map +1 -0
- package/dist/editor/sidebar/Performance.d.ts +1 -0
- package/dist/editor/sidebar/Performance.js +32 -0
- package/dist/editor/sidebar/Performance.js.map +1 -0
- package/dist/editor/sidebar/Sessions.d.ts +1 -0
- package/dist/editor/sidebar/Sessions.js +29 -0
- package/dist/editor/sidebar/Sessions.js.map +1 -0
- package/dist/editor/sidebar/Sidebar.d.ts +1 -0
- package/dist/editor/sidebar/Sidebar.js +13 -0
- package/dist/editor/sidebar/Sidebar.js.map +1 -0
- package/dist/editor/sidebar/SidebarView.d.ts +8 -0
- package/dist/editor/sidebar/SidebarView.js +74 -0
- package/dist/editor/sidebar/SidebarView.js.map +1 -0
- package/dist/editor/sidebar/Translations.d.ts +1 -0
- package/dist/editor/sidebar/Translations.js +158 -0
- package/dist/editor/sidebar/Translations.js.map +1 -0
- package/dist/editor/sidebar/Validation.d.ts +1 -0
- package/dist/editor/sidebar/Validation.js +50 -0
- package/dist/editor/sidebar/Validation.js.map +1 -0
- package/dist/editor/sidebar/ViewSelector.d.ts +1 -0
- package/dist/editor/sidebar/ViewSelector.js +13 -0
- package/dist/editor/sidebar/ViewSelector.js.map +1 -0
- package/dist/editor/sidebar/Workbox.d.ts +1 -0
- package/dist/editor/sidebar/Workbox.js +78 -0
- package/dist/editor/sidebar/Workbox.js.map +1 -0
- package/dist/editor/ui/CenteredMessage.d.ts +3 -0
- package/dist/editor/ui/CenteredMessage.js +5 -0
- package/dist/editor/ui/CenteredMessage.js.map +1 -0
- package/dist/editor/ui/CopyToClipboardButton.d.ts +3 -0
- package/dist/editor/ui/CopyToClipboardButton.js +15 -0
- package/dist/editor/ui/CopyToClipboardButton.js.map +1 -0
- package/dist/editor/ui/DialogButtons.d.ts +3 -0
- package/dist/editor/ui/DialogButtons.js +5 -0
- package/dist/editor/ui/DialogButtons.js.map +1 -0
- package/dist/editor/ui/Icons.d.ts +38 -0
- package/dist/editor/ui/Icons.js +56 -0
- package/dist/editor/ui/Icons.js.map +1 -0
- package/dist/editor/ui/ItemNameDialog.d.ts +11 -0
- package/dist/editor/ui/ItemNameDialog.js +40 -0
- package/dist/editor/ui/ItemNameDialog.js.map +1 -0
- package/dist/editor/ui/ItemNameDialogNew.d.ts +10 -0
- package/dist/editor/ui/ItemNameDialogNew.js +56 -0
- package/dist/editor/ui/ItemNameDialogNew.js.map +1 -0
- package/dist/editor/ui/ItemSearch.d.ts +23 -0
- package/dist/editor/ui/ItemSearch.js +90 -0
- package/dist/editor/ui/ItemSearch.js.map +1 -0
- package/dist/editor/ui/PerfectTree.d.ts +60 -0
- package/dist/editor/ui/PerfectTree.js +187 -0
- package/dist/editor/ui/PerfectTree.js.map +1 -0
- package/dist/editor/ui/Section.d.ts +4 -0
- package/dist/editor/ui/Section.js +10 -0
- package/dist/editor/ui/Section.js.map +1 -0
- package/dist/editor/ui/SimpleIconButton.d.ts +11 -0
- package/dist/editor/ui/SimpleIconButton.js +9 -0
- package/dist/editor/ui/SimpleIconButton.js.map +1 -0
- package/dist/editor/ui/SimpleMenu.d.ts +13 -0
- package/dist/editor/ui/SimpleMenu.js +7 -0
- package/dist/editor/ui/SimpleMenu.js.map +1 -0
- package/dist/editor/ui/SimpleTable.d.ts +14 -0
- package/dist/editor/ui/SimpleTable.js +9 -0
- package/dist/editor/ui/SimpleTable.js.map +1 -0
- package/dist/editor/ui/SimpleTabs.d.ts +12 -0
- package/dist/editor/ui/SimpleTabs.js +19 -0
- package/dist/editor/ui/SimpleTabs.js.map +1 -0
- package/dist/editor/ui/SimpleToolbar.d.ts +3 -0
- package/dist/editor/ui/SimpleToolbar.js +5 -0
- package/dist/editor/ui/SimpleToolbar.js.map +1 -0
- package/dist/editor/ui/Spinner.d.ts +3 -0
- package/dist/editor/ui/Spinner.js +5 -0
- package/dist/editor/ui/Spinner.js.map +1 -0
- package/dist/editor/ui/Splitter.d.ts +15 -0
- package/dist/editor/ui/Splitter.js +151 -0
- package/dist/editor/ui/Splitter.js.map +1 -0
- package/dist/editor/ui/StackedPanels.d.ts +5 -0
- package/dist/editor/ui/StackedPanels.js +67 -0
- package/dist/editor/ui/StackedPanels.js.map +1 -0
- package/dist/editor/ui/Toolbar.d.ts +3 -0
- package/dist/editor/ui/Toolbar.js +5 -0
- package/dist/editor/ui/Toolbar.js.map +1 -0
- package/dist/editor/utils/id-helper.d.ts +1 -0
- package/dist/editor/utils/id-helper.js +5 -0
- package/dist/editor/utils/id-helper.js.map +1 -0
- package/dist/editor/utils/insertOptions.d.ts +3 -0
- package/dist/editor/utils/insertOptions.js +43 -0
- package/dist/editor/utils/insertOptions.js.map +1 -0
- package/dist/editor/utils/itemutils.d.ts +3 -0
- package/dist/editor/utils/itemutils.js +22 -0
- package/dist/editor/utils/itemutils.js.map +1 -0
- package/dist/editor/utils/useMemoDebug.d.ts +1 -0
- package/dist/editor/utils/useMemoDebug.js +18 -0
- package/dist/editor/utils/useMemoDebug.js.map +1 -0
- package/dist/editor/utils.d.ts +44 -0
- package/dist/editor/utils.js +309 -0
- package/dist/editor/utils.js.map +1 -0
- package/dist/editor/views/CompareView.d.ts +1 -0
- package/dist/editor/views/CompareView.js +145 -0
- package/dist/editor/views/CompareView.js.map +1 -0
- package/dist/editor/views/EditView.d.ts +1 -0
- package/dist/editor/views/EditView.js +15 -0
- package/dist/editor/views/EditView.js.map +1 -0
- package/dist/editor/views/ItemEditor.d.ts +7 -0
- package/dist/editor/views/ItemEditor.js +22 -0
- package/dist/editor/views/ItemEditor.js.map +1 -0
- package/dist/editor/views/SingleEditView.d.ts +8 -0
- package/dist/editor/views/SingleEditView.js +23 -0
- package/dist/editor/views/SingleEditView.js.map +1 -0
- package/dist/images/bg-shape-black.webp +0 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.js +6 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/page-wizard/PageWizard.d.ts +70 -0
- package/dist/page-wizard/PageWizard.js +60 -0
- package/dist/page-wizard/PageWizard.js.map +1 -0
- package/dist/page-wizard/SelectWizard.d.ts +7 -0
- package/dist/page-wizard/SelectWizard.js +41 -0
- package/dist/page-wizard/SelectWizard.js.map +1 -0
- package/dist/page-wizard/WizardSteps.d.ts +8 -0
- package/dist/page-wizard/WizardSteps.js +69 -0
- package/dist/page-wizard/WizardSteps.js.map +1 -0
- package/dist/page-wizard/service.d.ts +15 -0
- package/dist/page-wizard/service.js +22 -0
- package/dist/page-wizard/service.js.map +1 -0
- package/dist/page-wizard/startPageWizardCommand.d.ts +13 -0
- package/dist/page-wizard/startPageWizardCommand.js +21 -0
- package/dist/page-wizard/startPageWizardCommand.js.map +1 -0
- package/dist/page-wizard/steps/BuildPageStep.d.ts +2 -0
- package/dist/page-wizard/steps/BuildPageStep.js +133 -0
- package/dist/page-wizard/steps/BuildPageStep.js.map +1 -0
- package/dist/page-wizard/steps/CollectStep.d.ts +2 -0
- package/dist/page-wizard/steps/CollectStep.js +119 -0
- package/dist/page-wizard/steps/CollectStep.js.map +1 -0
- package/dist/page-wizard/steps/ComponentTypesSelector.d.ts +11 -0
- package/dist/page-wizard/steps/ComponentTypesSelector.js +209 -0
- package/dist/page-wizard/steps/ComponentTypesSelector.js.map +1 -0
- package/dist/page-wizard/steps/Components.d.ts +9 -0
- package/dist/page-wizard/steps/Components.js +89 -0
- package/dist/page-wizard/steps/Components.js.map +1 -0
- package/dist/page-wizard/steps/CreatePage.d.ts +12 -0
- package/dist/page-wizard/steps/CreatePage.js +140 -0
- package/dist/page-wizard/steps/CreatePage.js.map +1 -0
- package/dist/page-wizard/steps/CreatePageAndLayoutStep.d.ts +2 -0
- package/dist/page-wizard/steps/CreatePageAndLayoutStep.js +228 -0
- package/dist/page-wizard/steps/CreatePageAndLayoutStep.js.map +1 -0
- package/dist/page-wizard/steps/EditButton.d.ts +8 -0
- package/dist/page-wizard/steps/EditButton.js +5 -0
- package/dist/page-wizard/steps/EditButton.js.map +1 -0
- package/dist/page-wizard/steps/FieldEditor.d.ts +5 -0
- package/dist/page-wizard/steps/FieldEditor.js +28 -0
- package/dist/page-wizard/steps/FieldEditor.js.map +1 -0
- package/dist/page-wizard/steps/Generate.d.ts +5 -0
- package/dist/page-wizard/steps/Generate.js +10 -0
- package/dist/page-wizard/steps/Generate.js.map +1 -0
- package/dist/page-wizard/steps/ImagesStep.d.ts +2 -0
- package/dist/page-wizard/steps/ImagesStep.js +156 -0
- package/dist/page-wizard/steps/ImagesStep.js.map +1 -0
- package/dist/page-wizard/steps/LayoutStep.d.ts +2 -0
- package/dist/page-wizard/steps/LayoutStep.js +118 -0
- package/dist/page-wizard/steps/LayoutStep.js.map +1 -0
- package/dist/page-wizard/steps/SelectStep.d.ts +2 -0
- package/dist/page-wizard/steps/SelectStep.js +145 -0
- package/dist/page-wizard/steps/SelectStep.js.map +1 -0
- package/dist/page-wizard/steps/schema.d.ts +13 -0
- package/dist/page-wizard/steps/schema.js +137 -0
- package/dist/page-wizard/steps/schema.js.map +1 -0
- package/dist/page-wizard/steps/usePageCreator.d.ts +6 -0
- package/dist/page-wizard/steps/usePageCreator.js +192 -0
- package/dist/page-wizard/steps/usePageCreator.js.map +1 -0
- package/dist/splash-screen/NewPage.d.ts +3 -0
- package/dist/splash-screen/NewPage.js +129 -0
- package/dist/splash-screen/NewPage.js.map +1 -0
- package/dist/splash-screen/SectionHeadline.d.ts +4 -0
- package/dist/splash-screen/SectionHeadline.js +7 -0
- package/dist/splash-screen/SectionHeadline.js.map +1 -0
- package/dist/splash-screen/SplashScreen.d.ts +1 -0
- package/dist/splash-screen/SplashScreen.js +79 -0
- package/dist/splash-screen/SplashScreen.js.map +1 -0
- package/dist/styles.css +2739 -0
- package/dist/tour/Tour.d.ts +3 -0
- package/dist/tour/Tour.js +319 -0
- package/dist/tour/Tour.js.map +1 -0
- package/dist/tour/default-tour.d.ts +9 -0
- package/dist/tour/default-tour.js +229 -0
- package/dist/tour/default-tour.js.map +1 -0
- package/dist/tour/preview-tour.d.ts +2 -0
- package/dist/tour/preview-tour.js +91 -0
- package/dist/tour/preview-tour.js.map +1 -0
- package/dist/types.d.ts +259 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +12 -5
- package/src/components/ui/button.tsx +62 -0
- package/src/editor/Titlebar.tsx +2 -2
- package/src/editor/client/EditorClient.tsx +8 -9
- package/src/editor/menubar/ActionsMenu.tsx +1 -1
- package/src/editor/menubar/Menu.tsx +3 -3
- package/src/editor/menubar/VersionSelector.tsx +9 -10
- package/src/editor/page-editor-chrome/CommentHighlighting.tsx +8 -9
- package/src/editor/page-viewer/MiniMap.tsx +11 -11
- package/src/editor/reviews/Comment.tsx +38 -33
- package/src/editor/sidebar/ComponentTree.tsx +512 -512
- package/src/editor/sidebar/Insert.tsx +2 -2
- package/src/editor/sidebar/MainContentTree.tsx +1 -0
- package/src/editor/sidebar/Translations.tsx +12 -12
- package/src/editor/sidebar/ViewSelector.tsx +6 -7
- package/src/editor/ui/PerfectTree.tsx +2 -2
- package/src/editor/ui/SimpleTable.tsx +3 -6
- package/src/editor/utils.ts +32 -29
- package/src/index.ts +2 -0
- package/src/lib/utils.ts +6 -0
- package/src/splash-screen/SplashScreen.tsx +2 -2
- package/styles.css +124 -2
- package/tsconfig.build.json +23 -13
- package/tsconfig.json +3 -0
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
|
+
import { useEditContext } from "../client-components";
|
|
4
|
+
import { classNames } from "primereact/utils";
|
|
5
|
+
export function Tour({ tourStopCallback }) {
|
|
6
|
+
const [currentStep, setCurrentStep] = useState("start-tour");
|
|
7
|
+
const [show, setShow] = useState(true);
|
|
8
|
+
const editContext = useEditContext();
|
|
9
|
+
const [focusRect, setFocusRect] = useState(null);
|
|
10
|
+
const [pointToRect, setPointToRect] = useState(null);
|
|
11
|
+
const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
12
|
+
const waitForElement = (selector, timeout = 0) => {
|
|
13
|
+
if (selector.startsWith("iframe:")) {
|
|
14
|
+
return waitForElementInIframe(selector.substring(7), timeout);
|
|
15
|
+
}
|
|
16
|
+
return new Promise((resolve) => {
|
|
17
|
+
const startTime = Date.now();
|
|
18
|
+
const checkForElement = () => {
|
|
19
|
+
const element = document.querySelector(selector);
|
|
20
|
+
if (element) {
|
|
21
|
+
let rect = element.getBoundingClientRect();
|
|
22
|
+
const extendFocus = step?.extendFocus || 10;
|
|
23
|
+
rect = new DOMRect(rect.left - extendFocus / 2, rect.top - extendFocus / 2, rect.width + extendFocus, rect.height + extendFocus);
|
|
24
|
+
resolve(rect);
|
|
25
|
+
}
|
|
26
|
+
else if (timeout > 0 && Date.now() - startTime >= timeout) {
|
|
27
|
+
resolve(undefined);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
requestAnimationFrame(checkForElement);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
checkForElement();
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
const waitForElementInIframe = (selector, timeout = 0) => {
|
|
37
|
+
return new Promise((resolve, reject) => {
|
|
38
|
+
const startTime = Date.now();
|
|
39
|
+
const checkForElement = () => {
|
|
40
|
+
const iframe = document.querySelector("iframe.page-iframe");
|
|
41
|
+
if (iframe && iframe.contentDocument) {
|
|
42
|
+
const element = iframe.contentDocument.querySelector(selector);
|
|
43
|
+
if (element) {
|
|
44
|
+
const elementRect = element.getBoundingClientRect();
|
|
45
|
+
const iframeRect = iframe.getBoundingClientRect();
|
|
46
|
+
let rect = new DOMRect(elementRect.left + iframeRect.left, elementRect.top + iframeRect.top, elementRect.width, elementRect.height);
|
|
47
|
+
const extendFocus = step?.extendFocus || 10;
|
|
48
|
+
rect = new DOMRect(rect.left - extendFocus / 2, rect.top - extendFocus / 2, rect.width + extendFocus, rect.height + extendFocus);
|
|
49
|
+
resolve(rect);
|
|
50
|
+
}
|
|
51
|
+
else if (timeout > 0 && Date.now() - startTime >= timeout) {
|
|
52
|
+
resolve(undefined);
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
requestAnimationFrame(checkForElement);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
else if (Date.now() - startTime >= timeout) {
|
|
59
|
+
reject(new Error(`Timeout waiting for iframe: ${selector}`));
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
requestAnimationFrame(checkForElement);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
checkForElement();
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
const waitForElementToDisappear = (selector) => {
|
|
69
|
+
return new Promise((resolve) => {
|
|
70
|
+
const checkForElement = () => {
|
|
71
|
+
const element = document.querySelector(selector);
|
|
72
|
+
if (!element) {
|
|
73
|
+
resolve();
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
requestAnimationFrame(checkForElement);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
checkForElement();
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
const waitForInput = (selector, minNumberOfCharacters = 1) => {
|
|
83
|
+
return new Promise((resolve) => {
|
|
84
|
+
const checkForInput = () => {
|
|
85
|
+
const input = document.querySelector(selector);
|
|
86
|
+
let inputValue = "";
|
|
87
|
+
if (input?.getAttribute("contenteditable")) {
|
|
88
|
+
console.log("contenteditable", input.innerText);
|
|
89
|
+
inputValue = input.innerText;
|
|
90
|
+
}
|
|
91
|
+
else if (input &&
|
|
92
|
+
input.value.length >= minNumberOfCharacters) {
|
|
93
|
+
inputValue = input.value;
|
|
94
|
+
}
|
|
95
|
+
if (inputValue.length >= minNumberOfCharacters) {
|
|
96
|
+
console.log("input found", inputValue);
|
|
97
|
+
resolve();
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
requestAnimationFrame(checkForInput);
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
checkForInput();
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
function setNativeValue(element, value) {
|
|
107
|
+
const valueSetter = Object.getOwnPropertyDescriptor(element.constructor.prototype, "value")?.set;
|
|
108
|
+
const prototype = Object.getPrototypeOf(element);
|
|
109
|
+
const prototypeValueSetter = Object.getOwnPropertyDescriptor(prototype, "value")?.set;
|
|
110
|
+
if (valueSetter && valueSetter !== prototypeValueSetter) {
|
|
111
|
+
prototypeValueSetter?.call(element, value);
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
valueSetter?.call(element, value);
|
|
115
|
+
}
|
|
116
|
+
const event = new Event("input", { bubbles: true });
|
|
117
|
+
element.dispatchEvent(event);
|
|
118
|
+
}
|
|
119
|
+
async function simulateTyping(element, text, interval = 35) {
|
|
120
|
+
let i = 0;
|
|
121
|
+
while (i <= text.length) {
|
|
122
|
+
const currentText = text.substring(0, i);
|
|
123
|
+
setNativeValue(element, currentText);
|
|
124
|
+
i++;
|
|
125
|
+
const randomDelay = interval * (0.5 + Math.random());
|
|
126
|
+
await delay(randomDelay);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Stops the tour and resets the state.
|
|
131
|
+
*/
|
|
132
|
+
const stopTour = () => {
|
|
133
|
+
setCurrentStep("start-tour");
|
|
134
|
+
setFocusRect(null);
|
|
135
|
+
tourStopCallback();
|
|
136
|
+
};
|
|
137
|
+
const tours = editContext.configuration.tours;
|
|
138
|
+
const tour = tours[editContext.configuration.activeTour];
|
|
139
|
+
const tourSteps = tour.getSteps({
|
|
140
|
+
editContext: editContext,
|
|
141
|
+
nextStep: (stepId) => setCurrentStep(stepId),
|
|
142
|
+
stopTour: () => tourStopCallback(),
|
|
143
|
+
waitForElement,
|
|
144
|
+
waitForElementToDisappear,
|
|
145
|
+
setFocusRect,
|
|
146
|
+
delay,
|
|
147
|
+
waitForInput: waitForInput,
|
|
148
|
+
simulateTyping,
|
|
149
|
+
});
|
|
150
|
+
const step = tourSteps[currentStep];
|
|
151
|
+
if (!step)
|
|
152
|
+
return null;
|
|
153
|
+
useEffect(() => {
|
|
154
|
+
const runStep = async () => {
|
|
155
|
+
setShow(false);
|
|
156
|
+
setFocusRect(null);
|
|
157
|
+
await delay(500);
|
|
158
|
+
const step = tourSteps[currentStep];
|
|
159
|
+
if (!step)
|
|
160
|
+
return;
|
|
161
|
+
console.log("step", currentStep, step);
|
|
162
|
+
if (step.prepareAction) {
|
|
163
|
+
await step.prepareAction();
|
|
164
|
+
}
|
|
165
|
+
if (step.focusElement) {
|
|
166
|
+
const rect = await waitForElement(step.focusElement, 5000);
|
|
167
|
+
if (!rect)
|
|
168
|
+
setCurrentStep("error");
|
|
169
|
+
else
|
|
170
|
+
setFocusRect(rect);
|
|
171
|
+
}
|
|
172
|
+
setShow(true);
|
|
173
|
+
if (step.waitForUserInput) {
|
|
174
|
+
const nextStep = (await step.waitForUserInput()) || step.nextStep;
|
|
175
|
+
if (nextStep) {
|
|
176
|
+
setCurrentStep(nextStep);
|
|
177
|
+
}
|
|
178
|
+
else
|
|
179
|
+
console.log("no next step defined for step", currentStep);
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
if (step.waitForElement) {
|
|
183
|
+
await waitForElement(step.waitForElement);
|
|
184
|
+
if (step.nextStep) {
|
|
185
|
+
setCurrentStep(step.nextStep);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
runStep();
|
|
191
|
+
}, [currentStep]);
|
|
192
|
+
useEffect(() => {
|
|
193
|
+
const getPointTo = async () => {
|
|
194
|
+
let pointToRect = focusRect;
|
|
195
|
+
if (step.getPointTo) {
|
|
196
|
+
const pointTo = step.getPointTo();
|
|
197
|
+
if (pointTo) {
|
|
198
|
+
pointToRect = pointTo;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
if (step.pointToElement) {
|
|
202
|
+
const rect = await waitForElement(step.pointToElement, 5000);
|
|
203
|
+
if (rect) {
|
|
204
|
+
pointToRect = rect;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
setPointToRect(pointToRect);
|
|
208
|
+
};
|
|
209
|
+
getPointTo();
|
|
210
|
+
}, [focusRect, currentStep]);
|
|
211
|
+
if (!step) {
|
|
212
|
+
throw new Error(`Tour step ${currentStep} not found`);
|
|
213
|
+
}
|
|
214
|
+
const bubblePosition = step.bubblePosition || "right";
|
|
215
|
+
const bubbleStyle = {};
|
|
216
|
+
let boxStyle = {
|
|
217
|
+
position: "fixed",
|
|
218
|
+
left: "50%",
|
|
219
|
+
top: "50%",
|
|
220
|
+
transform: "translate(-50%, -50%)",
|
|
221
|
+
};
|
|
222
|
+
let arrowStyle = {};
|
|
223
|
+
if (pointToRect) {
|
|
224
|
+
if (bubblePosition === "right") {
|
|
225
|
+
boxStyle = {
|
|
226
|
+
position: "absolute",
|
|
227
|
+
left: pointToRect.left + pointToRect.width,
|
|
228
|
+
top: pointToRect.top - 10,
|
|
229
|
+
alignItems: "flex-start",
|
|
230
|
+
};
|
|
231
|
+
arrowStyle = {
|
|
232
|
+
marginLeft: "-20px",
|
|
233
|
+
};
|
|
234
|
+
bubbleStyle.marginLeft = "80px";
|
|
235
|
+
bubbleStyle.marginTop = "-20px";
|
|
236
|
+
}
|
|
237
|
+
if (bubblePosition === "left") {
|
|
238
|
+
boxStyle = {
|
|
239
|
+
position: "absolute",
|
|
240
|
+
right: window.innerWidth - pointToRect.left,
|
|
241
|
+
top: pointToRect.top + pointToRect.height / 2,
|
|
242
|
+
alignItems: "flex-end",
|
|
243
|
+
};
|
|
244
|
+
arrowStyle = {
|
|
245
|
+
marginRight: "-20px",
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
if (bubblePosition === "bottom") {
|
|
249
|
+
boxStyle = {
|
|
250
|
+
position: "absolute",
|
|
251
|
+
left: pointToRect.left + pointToRect.width / 2,
|
|
252
|
+
top: pointToRect.top + pointToRect.height,
|
|
253
|
+
transform: "translate(-50%, 0)",
|
|
254
|
+
};
|
|
255
|
+
if (step.flipArrow) {
|
|
256
|
+
arrowStyle = {
|
|
257
|
+
transform: "scaleX(-1)",
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
if (bubblePosition === "top-right") {
|
|
262
|
+
boxStyle = {
|
|
263
|
+
position: "absolute",
|
|
264
|
+
left: pointToRect.left + pointToRect.width,
|
|
265
|
+
bottom: window.innerHeight - pointToRect.top,
|
|
266
|
+
transform: "translate(-50%, 0)",
|
|
267
|
+
flexDirection: "column-reverse",
|
|
268
|
+
};
|
|
269
|
+
arrowStyle = {
|
|
270
|
+
transform: "rotate(180deg)",
|
|
271
|
+
};
|
|
272
|
+
if (step.flipArrow) {
|
|
273
|
+
arrowStyle = {
|
|
274
|
+
transform: "scaleX(-1)",
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
const arrowRotation = bubblePosition === "right" ? "-a-rotate-90" : "";
|
|
280
|
+
const overlayStyle = {
|
|
281
|
+
position: "fixed",
|
|
282
|
+
top: 0,
|
|
283
|
+
left: 0,
|
|
284
|
+
width: "100%",
|
|
285
|
+
height: "100%",
|
|
286
|
+
backgroundColor: "rgba(0, 0, 0, 0.3)",
|
|
287
|
+
pointerEvents: "auto",
|
|
288
|
+
clipPath: focusRect
|
|
289
|
+
? `polygon(0% 0%, 0% 100%, ${focusRect.left}px 100%, ${focusRect.left}px ${focusRect.top}px, ${focusRect.left + focusRect.width}px ${focusRect.top}px, ${focusRect.left + focusRect.width}px ${focusRect.top + focusRect.height}px, ${focusRect.left}px ${focusRect.top + focusRect.height}px, ${focusRect.left}px 100%, 100% 100%, 100% 0%)`
|
|
290
|
+
: "none",
|
|
291
|
+
// clipPath: focusPosition
|
|
292
|
+
// ? `path('M 0 0 H 100% V 100% H 0 Z M ${focusPosition.left}px ${focusPosition.top}px H ${focusPosition.left + focusPosition.width}px V ${focusPosition.top + focusPosition.height}px H ${focusPosition.left}px Z')`
|
|
293
|
+
// : 'none',
|
|
294
|
+
};
|
|
295
|
+
if (!show) {
|
|
296
|
+
return _jsx("div", { className: "overlay", style: overlayStyle });
|
|
297
|
+
}
|
|
298
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { className: "overlay", style: overlayStyle }), _jsxs("div", { style: boxStyle, className: "text-gray-800 flex flex-col items-center fade-in", children: [focusRect && (_jsx("svg", { width: "100px", height: "100px", viewBox: "0 -7.89 113.08 113.08", xmlns: "http://www.w3.org/2000/svg", className: classNames("pointer-events-none", arrowRotation), style: arrowStyle, children: _jsx("path", { style: { stroke: "#0000ff", fill: "#0000ff" }, d: "M20.1871 175C15.7485 172.891 13.0008 172.469 12.1553 170.992C8.98489 165.508 5.39173 160.024 3.70083 153.908C-1.37187 137.666 -0.737781 121.214 2.64402 104.762C8.35081 76.7092 21.0325 51.8201 36.8847 28.1966C38.5756 25.6655 40.0552 23.1344 41.7461 20.3924C41.7461 20.1814 41.5347 19.7596 41.112 19.1268C36.462 20.3923 31.6007 21.6579 26.9507 22.7125C24.4144 23.1344 21.4552 23.1344 18.9189 22.2907C17.4394 21.8688 15.3258 19.5486 15.3258 18.0722C15.3258 16.1739 16.8053 13.8537 18.0735 12.1663C19.1303 11.1117 21.0326 10.9008 22.7235 10.4789C35.4052 7.31508 48.087 3.72935 60.9801 0.776411C71.9709 -1.75468 75.564 1.83105 74.9299 12.5882C74.2959 23.7672 74.0845 34.9462 73.6618 45.9142C73.4505 49.289 72.8164 52.8747 72.3936 56.6714C63.5164 52.6638 63.5164 52.6638 60.346 18.494C47.0301 33.2588 38.1529 49.289 29.9098 65.7411C21.6666 82.1932 16.1712 99.489 13.2121 117.839C10.2531 136.823 13.8462 154.751 20.1871 175Z", fill: "#0D1927" }) })), _jsx("style", { children: `
|
|
299
|
+
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap');
|
|
300
|
+
.handwritten {
|
|
301
|
+
font-family: 'Caveat', cursive;
|
|
302
|
+
}
|
|
303
|
+
.fade-background {
|
|
304
|
+
background: radial-gradient(circle, rgba(255,255,255,0.8) 60%, rgba(255,255,255,0) 90%);
|
|
305
|
+
}
|
|
306
|
+
.fade-in {
|
|
307
|
+
animation: fadeIn 0.5s ease-in-out;
|
|
308
|
+
}
|
|
309
|
+
@keyframes fadeIn {
|
|
310
|
+
from { opacity: 0; }
|
|
311
|
+
to { opacity: 1; }
|
|
312
|
+
}
|
|
313
|
+
` }), _jsxs("div", { className: `relative flex items-stretch justify-center bg-gray-50 rounded-lg border border-gray-800 gap-6 shadow-2xl`, style: bubbleStyle, children: [_jsx("div", { className: "text-xs font-bold cursor-pointer flex items-center gap-2 absolute top-0 right-0 mr-2 mt-2", onClick: stopTour, children: _jsx("i", { className: "pi pi-times" }) }), _jsx("div", { className: "flex flex-col items-center justify-center gap-2 bg-gray-200 p-6 rounded-l-lg", children: _jsx(AlpacaIcon, {}) }), _jsxs("div", { className: "flex flex-col items-end justify-center gap-3 p-4 ", children: [_jsxs("div", { className: "opacity-100 text-2xl font-bold handwritten text-center flex flex-col items-center max-w-[450px]", children: [_jsx("div", { className: "text-4xl mb-4", children: step.title }), _jsx("div", { children: step.description })] }), _jsx("div", { className: "flex gap-2", children: step.buttons &&
|
|
314
|
+
step.buttons.map((button, index) => (_jsx("button", { onClick: button.onClick, className: button.className, children: button.label }, index))) })] })] })] })] }));
|
|
315
|
+
}
|
|
316
|
+
function AlpacaIcon() {
|
|
317
|
+
return (_jsxs("svg", { height: "80px", width: "80px", version: "1.1", id: "Layer_1", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: [_jsx("path", { style: { fill: "#EBE4DD" }, d: "M102.989,153.011v153.011C119.613,428.825,184.332,506.115,256,506.115\r\n\ts136.387-77.29,153.012-200.092V153.011H102.989z" }), _jsx("path", { style: { fill: "#D8CCBC" }, d: "M255.999,153.011v353.103H256c71.668,0,136.387-77.29,153.012-200.092V153.011H255.999z" }), _jsx("path", { style: { fill: "#A58868" }, d: "M273.655,435.494h-35.31c0,41.195-17.007,41.195-29.425,41.195V512\r\n\tc16.246,0,34.206-4.021,47.08-18.162C268.873,507.979,286.834,512,303.08,512v-35.31C290.662,476.69,273.655,476.69,273.655,435.494\r\n\tz" }), _jsx("path", { style: { fill: "#947859" }, d: "M273.655,435.494H256v58.343C268.873,507.979,286.834,512,303.08,512v-35.31\r\n\tC290.662,476.69,273.655,476.69,273.655,435.494z" }), _jsx("path", { style: { fill: "#EBE4DD" }, d: "M126.529,0C81.025,0,44.138,36.888,44.138,82.391s36.888,82.391,82.391,82.391V0z" }), _jsx("path", { style: { fill: "#D8CCBC" }, d: "M385.471,164.782c45.503,0,82.391-36.888,82.391-82.391S430.975,0,385.471,0V164.782z" }), _jsx("path", { style: { fill: "#BFA993" }, d: "M490.407,247.172c0.643-3.83,0.996-7.758,0.996-11.77c0-39.003-31.618-70.621-70.621-70.621\r\n\ts-70.621,31.618-70.621,70.621c0,4.012,0.352,7.94,0.995,11.77H490.407z" }), _jsx("path", { style: { fill: "#EDEDED" }, d: "M420.782,306.023c39.003,0,70.621-31.618,70.621-70.621H350.161\r\n\tC350.161,274.405,381.779,306.023,420.782,306.023z" }), _jsx("path", { style: { fill: "#454449" }, d: "M397.241,235.401c0,12.981,10.559,23.54,23.538,23.54h0.002c12.981,0.001,23.54-10.559,23.54-23.54\r\n\tH397.241z" }), _jsx("path", { style: { fill: "#BFA993" }, d: "M160.844,247.172c0.643-3.83,0.995-7.758,0.995-11.77c0-39.003-31.618-70.621-70.621-70.621\r\n\tS20.598,196.4,20.598,235.402c0,4.012,0.352,7.94,0.995,11.77H160.844z" }), _jsx("path", { style: { fill: "#EDEDED" }, d: "M91.218,306.023c39.003,0,70.621-31.618,70.621-70.621H20.598\r\n\tC20.598,274.405,52.216,306.023,91.218,306.023z" }), _jsx("path", { style: { fill: "#454449" }, d: "M67.678,235.401c0,12.981,10.559,23.54,23.538,23.54h0.002c12.981,0.001,23.54-10.559,23.54-23.54\r\n\tH67.678z" }), _jsx("path", { style: { fill: "#D8CCBC" }, d: "M391.356,107.187c0-15.527,4.902-33.778-5.082-46.69c-8.818-11.403-28.519-12.694-43.229-20.793\r\n\tc-12.822-7.059-23.38-23.527-39.415-27.235c-14.505-3.356-31.411,6.442-47.63,6.442c-16.218,0-33.125-9.796-47.631-6.442\r\n\tc-16.036,3.708-26.595,20.178-39.415,27.237c-14.71,8.099-34.41,9.391-43.227,20.792c-9.985,12.912-5.082,31.161-5.082,46.689\r\n\ts-4.902,33.778,5.082,46.69c8.818,11.403,28.519,12.693,43.229,20.793c12.821,7.059,23.379,23.527,39.413,27.235\r\n\tc14.505,3.356,31.412-6.442,47.63-6.442s33.125,9.796,47.632,6.442c16.034-3.708,26.592-20.176,39.413-27.237\r\n\tc14.709-8.099,34.411-9.391,43.228-20.792C396.259,140.965,391.356,122.715,391.356,107.187z" }), _jsx("path", { style: { fill: "#BFA993" }, d: "M386.274,60.497c-8.818-11.403-28.519-12.694-43.229-20.793\r\n\tc-12.822-7.059-23.38-23.527-39.415-27.235c-14.505-3.356-31.411,6.442-47.63,6.442v176.552c16.218,0,33.125,9.796,47.632,6.442\r\n\tc16.034-3.708,26.592-20.176,39.413-27.237c14.709-8.099,34.411-9.391,43.228-20.792c9.985-12.912,5.082-31.161,5.082-46.689\r\n\tS396.259,73.409,386.274,60.497z" }), _jsx("path", { style: { fill: "#58575D" }, d: "M293.664,406.069c-6.186,18.772-22.763,39.469-37.664,39.784\r\n\tc-14.901-0.315-31.478-21.012-37.664-39.784c-2.858-9.591,4.529-17.529,16.478-17.655c14.124,0,28.248,0,42.372,0\r\n\tC289.136,388.54,296.522,396.476,293.664,406.069z" }), _jsx("path", { style: { fill: "#454449" }, d: "M277.186,388.414c-7.062,0-14.124,0-21.186,0v57.439c14.901-0.315,31.478-21.012,37.664-39.784\r\n\tC296.522,396.476,289.136,388.54,277.186,388.414z" })] }));
|
|
318
|
+
}
|
|
319
|
+
//# sourceMappingURL=Tour.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tour.js","sourceRoot":"","sources":["../../src/tour/Tour.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG9C,MAAM,UAAU,IAAI,CAAC,EAAE,gBAAgB,EAAoC;IACzE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAS,YAAY,CAAC,CAAC;IACrE,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACvC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAiB,IAAI,CAAC,CAAC;IACjE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAiB,IAAI,CAAC,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AKiF,GACnF,EACF,eACE,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAC1B,CAAC,EAAC,+VAGuB,GACzB,EACF,eACE,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAC1B,CAAC,EAAC,qOAEwC,GAC1C,EACF,eACE,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAC1B,CAAC,EAAC,mJACwC,GAC1C,IACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GetEditorTourStepsParams, TourStep } from "../config/types";
|
|
2
|
+
export declare function getDefaultTourSteps({ editContext, nextStep, stopTour, waitForElement, waitForElementToDisappear, setFocusRect, delay, waitForInput, simulateTyping, }: GetEditorTourStepsParams, config: {
|
|
3
|
+
firstComponentTemplateId: string;
|
|
4
|
+
firstComponentTemplateName: string;
|
|
5
|
+
firstComponentTextFieldName: string;
|
|
6
|
+
firstComponentTextFieldId: string;
|
|
7
|
+
firstComponentRichTextFieldName: string;
|
|
8
|
+
firstComponentRichTextFieldId: string;
|
|
9
|
+
}): Record<string, TourStep>;
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
export function getDefaultTourSteps({ editContext, nextStep, stopTour, waitForElement, waitForElementToDisappear, setFocusRect, delay, waitForInput, simulateTyping, }, config) {
|
|
3
|
+
const tourSteps = {
|
|
4
|
+
"start-tour": {
|
|
5
|
+
title: "Welcome to the AI Editor Tour!",
|
|
6
|
+
description: "I will show you around the editor and how to use the most important features.",
|
|
7
|
+
prepareAction: async () => {
|
|
8
|
+
editContext?.openSplashScreen();
|
|
9
|
+
},
|
|
10
|
+
buttons: [
|
|
11
|
+
{
|
|
12
|
+
label: (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("i", { className: "pi pi-play" }), " Start Tour"] })),
|
|
13
|
+
onClick: () => {
|
|
14
|
+
nextStep("new-page");
|
|
15
|
+
},
|
|
16
|
+
className: "button button-primary mt-2",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("i", { className: "pi pi-times" }), " No thanks"] })),
|
|
20
|
+
onClick: () => {
|
|
21
|
+
stopTour();
|
|
22
|
+
},
|
|
23
|
+
className: "button button-secondary mt-2",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
},
|
|
27
|
+
"new-page": {
|
|
28
|
+
description: (_jsxs(_Fragment, { children: ["Click on the ", _jsx("b", { children: "New Page" }), " tab to create a new page"] })),
|
|
29
|
+
focusElement: "#new-page-tab",
|
|
30
|
+
waitForUserInput: async () => {
|
|
31
|
+
await waitForElement("#new-page-tab.active-tab");
|
|
32
|
+
},
|
|
33
|
+
nextStep: "pick-location",
|
|
34
|
+
},
|
|
35
|
+
"pick-location": {
|
|
36
|
+
description: (_jsxs(_Fragment, { children: ["Select the ", _jsx("b", { children: "Playground" }), " folder as the parent for your new page"] })),
|
|
37
|
+
focusElement: ".tour-pick-location",
|
|
38
|
+
waitForUserInput: async () => {
|
|
39
|
+
await new Promise((resolve) => {
|
|
40
|
+
const checkForElement = () => {
|
|
41
|
+
const elements = document.querySelectorAll(".p-highlight");
|
|
42
|
+
for (const element of elements) {
|
|
43
|
+
if (element.textContent?.trim() === "Playground") {
|
|
44
|
+
setFocusRect(element.getBoundingClientRect());
|
|
45
|
+
resolve();
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
requestAnimationFrame(checkForElement);
|
|
50
|
+
};
|
|
51
|
+
checkForElement();
|
|
52
|
+
});
|
|
53
|
+
},
|
|
54
|
+
getPointTo: () => {
|
|
55
|
+
const elements = document.querySelectorAll(".p-treenode-label");
|
|
56
|
+
for (const element of elements) {
|
|
57
|
+
if (element.textContent?.trim() === "Playground") {
|
|
58
|
+
return element.getBoundingClientRect();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return undefined;
|
|
62
|
+
},
|
|
63
|
+
nextStep: "choose-template",
|
|
64
|
+
},
|
|
65
|
+
"choose-template": {
|
|
66
|
+
description: "Select a template for your page",
|
|
67
|
+
focusElement: ".tour-choose-template",
|
|
68
|
+
waitForUserInput: async () => {
|
|
69
|
+
await waitForElement(".tour-selected-template");
|
|
70
|
+
},
|
|
71
|
+
bubblePosition: "left",
|
|
72
|
+
nextStep: "enter-name",
|
|
73
|
+
},
|
|
74
|
+
"enter-name": {
|
|
75
|
+
description: "Enter a name for your page",
|
|
76
|
+
focusElement: "#new-page-name",
|
|
77
|
+
bubblePosition: "left",
|
|
78
|
+
waitForUserInput: async () => {
|
|
79
|
+
await waitForElement("#create-new-page-button:not(.p-disabled)");
|
|
80
|
+
},
|
|
81
|
+
nextStep: "create-page",
|
|
82
|
+
},
|
|
83
|
+
"create-page": {
|
|
84
|
+
description: "Click the Create button",
|
|
85
|
+
focusElement: "#create-new-page-button",
|
|
86
|
+
waitForUserInput: async () => {
|
|
87
|
+
await waitForElement("#insert-component-button");
|
|
88
|
+
},
|
|
89
|
+
nextStep: "ready-to-add-component",
|
|
90
|
+
},
|
|
91
|
+
"ready-to-add-component": {
|
|
92
|
+
description: "Wanna add a component to your beautiful empty page?",
|
|
93
|
+
buttons: [
|
|
94
|
+
{
|
|
95
|
+
label: (_jsxs(_Fragment, { children: [_jsx("i", { className: "pi pi-arrow-right" }), " I'm ready, lets go!"] })),
|
|
96
|
+
onClick: () => nextStep("insert-component"),
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
"insert-component": {
|
|
101
|
+
description: "Excellent, click on the plus button to insert a component.",
|
|
102
|
+
focusElement: "#insert-component-button",
|
|
103
|
+
waitForUserInput: async () => {
|
|
104
|
+
await waitForElement(".tour-component-palette");
|
|
105
|
+
},
|
|
106
|
+
nextStep: "drag-component",
|
|
107
|
+
},
|
|
108
|
+
"drag-component": {
|
|
109
|
+
description: `Drag and drop a ${config.firstComponentTemplateName} component to your page.`,
|
|
110
|
+
focusElement: `#insert-component-${config.firstComponentTemplateId}`,
|
|
111
|
+
waitForUserInput: async () => {
|
|
112
|
+
await waitForElement(".tour-placeholder-dropzone");
|
|
113
|
+
},
|
|
114
|
+
nextStep: "drop-component-on-placeholder",
|
|
115
|
+
},
|
|
116
|
+
"drop-component-on-placeholder": {
|
|
117
|
+
description: "Drop the component onto this placeholder!",
|
|
118
|
+
focusElement: ".tour-placeholder-dropzone",
|
|
119
|
+
bubblePosition: "left",
|
|
120
|
+
extendFocus: 70,
|
|
121
|
+
waitForUserInput: async () => {
|
|
122
|
+
await waitForElementToDisappear(".tour-placeholder-dropzone");
|
|
123
|
+
await delay(400);
|
|
124
|
+
if (!document.querySelector(".tour-component-palette")) {
|
|
125
|
+
return "enter-title";
|
|
126
|
+
}
|
|
127
|
+
return "drag-component";
|
|
128
|
+
},
|
|
129
|
+
nextStep: "enter-title",
|
|
130
|
+
},
|
|
131
|
+
"enter-title": {
|
|
132
|
+
description: `Excellent! Now lets fill in the fields. First enter a ${config.firstComponentTextFieldName}`,
|
|
133
|
+
focusElement: `[data-field-id='${config.firstComponentTextFieldId}']`,
|
|
134
|
+
waitForUserInput: async () => {
|
|
135
|
+
await delay(5000);
|
|
136
|
+
await waitForInput(`[data-field-id='${config.firstComponentTextFieldId}'] input`, 5);
|
|
137
|
+
},
|
|
138
|
+
nextStep: "see-content-update",
|
|
139
|
+
},
|
|
140
|
+
"see-content-update": {
|
|
141
|
+
description: "See how the content is automatically updating on your page?",
|
|
142
|
+
focusElement: `[data-field-id='${config.firstComponentTextFieldId}']`,
|
|
143
|
+
pointToElement: `iframe:[data-fieldid='${config.firstComponentTextFieldId}']`,
|
|
144
|
+
bubblePosition: "bottom",
|
|
145
|
+
flipArrow: true,
|
|
146
|
+
waitForUserInput: async () => {
|
|
147
|
+
await delay(5000);
|
|
148
|
+
await waitForInput(`[data-field-id='${config.firstComponentTextFieldId}'] input`, 5);
|
|
149
|
+
},
|
|
150
|
+
nextStep: "edit-content-inline",
|
|
151
|
+
},
|
|
152
|
+
"edit-content-inline": {
|
|
153
|
+
description: "You can also directly edit the content on the page. Click on the [Introduction] placeholder here and start typing!",
|
|
154
|
+
focusElement: `iframe:[data-fieldid='${config.firstComponentRichTextFieldId}']`,
|
|
155
|
+
bubblePosition: "bottom",
|
|
156
|
+
flipArrow: true,
|
|
157
|
+
waitForUserInput: async () => {
|
|
158
|
+
await delay(5000);
|
|
159
|
+
await waitForInput(`[data-field-id='${config.firstComponentRichTextFieldId}'] [contenteditable]`, 5);
|
|
160
|
+
},
|
|
161
|
+
nextStep: "ai-intro",
|
|
162
|
+
},
|
|
163
|
+
"ai-intro": {
|
|
164
|
+
description: "But hey, this is an AI editor, so why not let the AI do some of the work for you?",
|
|
165
|
+
buttons: [
|
|
166
|
+
{
|
|
167
|
+
label: (_jsxs(_Fragment, { children: [_jsx("i", { className: "pi pi-arrow-right" }), " Great, show me!"] })),
|
|
168
|
+
onClick: () => nextStep("ai-sidebar"),
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
},
|
|
172
|
+
"ai-sidebar": {
|
|
173
|
+
description: "Click on the AI sidebar to open the AI chat.",
|
|
174
|
+
focusElement: `[data-sidebarview-name='ai']`,
|
|
175
|
+
nextStep: "ai-terminal",
|
|
176
|
+
waitForElement: "[data-sidebarview-name='ai'].a-active",
|
|
177
|
+
},
|
|
178
|
+
"ai-terminal": {
|
|
179
|
+
description: "Let me take control and add tell the AI to add some more components.",
|
|
180
|
+
focusElement: `.tour-ai-terminal textarea`,
|
|
181
|
+
waitForUserInput: async () => {
|
|
182
|
+
await delay(1000);
|
|
183
|
+
const aiTerminal = document.querySelector(".tour-ai-terminal textarea");
|
|
184
|
+
if (aiTerminal) {
|
|
185
|
+
aiTerminal.focus();
|
|
186
|
+
await simulateTyping(aiTerminal, `Plase add three components of type ${config.firstComponentTemplateName} with some funny dummy content to the page.`);
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
bubblePosition: "top-right",
|
|
190
|
+
nextStep: "ai-submit",
|
|
191
|
+
},
|
|
192
|
+
"ai-submit": {
|
|
193
|
+
description: "Click on the Send button to submit the prompt to the AI.",
|
|
194
|
+
focusElement: ".tour-ai-terminal .tour-send-button",
|
|
195
|
+
bubblePosition: "top-right",
|
|
196
|
+
nextStep: "ai-watch-components-added",
|
|
197
|
+
waitForElement: ".tour-ai-terminal .a-prompt",
|
|
198
|
+
},
|
|
199
|
+
"ai-watch-components-added": {
|
|
200
|
+
description: "Watch how the AI adds the components to the page. This can take a few seconds.",
|
|
201
|
+
focusElement: ".tour-ai-terminal",
|
|
202
|
+
pointToElement: ".tour-ai-terminal .a-prompt",
|
|
203
|
+
waitForElement: ".tour-ai-response-message-changes",
|
|
204
|
+
nextStep: "congratulations",
|
|
205
|
+
},
|
|
206
|
+
congratulations: {
|
|
207
|
+
title: "Congratulations!",
|
|
208
|
+
description: "You have completed the tour and are now an AI Editor Pro!",
|
|
209
|
+
buttons: [
|
|
210
|
+
{
|
|
211
|
+
label: (_jsxs(_Fragment, { children: [_jsx("i", { className: "pi pi-check" }), " Finish Tour"] })),
|
|
212
|
+
onClick: () => stopTour(),
|
|
213
|
+
className: "button button-primary mt-2",
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
},
|
|
217
|
+
error: {
|
|
218
|
+
description: "Oops, something went wrong.",
|
|
219
|
+
buttons: [
|
|
220
|
+
{
|
|
221
|
+
label: (_jsxs(_Fragment, { children: [_jsx("i", { className: "pi pi-check" }), " Close"] })),
|
|
222
|
+
onClick: () => stopTour(),
|
|
223
|
+
},
|
|
224
|
+
],
|
|
225
|
+
},
|
|
226
|
+
};
|
|
227
|
+
return tourSteps;
|
|
228
|
+
}
|
|
229
|
+
//# sourceMappingURL=default-tour.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-tour.js","sourceRoot":"","sources":["../../src/tour/default-tour.tsx"],"names":[],"m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