@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
|
@@ -14,7 +14,7 @@ export function Insert() {
|
|
|
14
14
|
{
|
|
15
15
|
label: "Existing Component",
|
|
16
16
|
content: (
|
|
17
|
-
<div className="flex-1
|
|
17
|
+
<div className="relative flex-1">
|
|
18
18
|
<div className="absolute inset-0 overflow-auto">
|
|
19
19
|
<MainContentTree mode="insert" />
|
|
20
20
|
</div>
|
|
@@ -27,7 +27,7 @@ export function Insert() {
|
|
|
27
27
|
<SimpleTabs
|
|
28
28
|
key="insert-tabs"
|
|
29
29
|
tabs={tabs}
|
|
30
|
-
className="
|
|
30
|
+
className="flex items-center justify-center gap-4 border-b border-gray-200 py-3 text-sm"
|
|
31
31
|
activeTab={activeTab}
|
|
32
32
|
setActiveTab={(index) => setActiveTab(index)}
|
|
33
33
|
/>
|
|
@@ -63,6 +63,7 @@ export function MainContentTree({
|
|
|
63
63
|
selectionMode={mode == "insert" ? "none" : "multiple"}
|
|
64
64
|
selectedItemIds={selectedItemIds}
|
|
65
65
|
onSelectionChange={(selection) => {
|
|
66
|
+
if (mode === "insert") return;
|
|
66
67
|
const selectedItems = selection as ItemTreeNodeData[];
|
|
67
68
|
setSelectedItemIds(selectedItems.map((x) => x.id));
|
|
68
69
|
if (selectedItems.length > 0 && selectedItems[0])
|
|
@@ -25,7 +25,7 @@ export function Translation() {
|
|
|
25
25
|
>(null);
|
|
26
26
|
|
|
27
27
|
const [translationProvider, setTranslationProvider] = useState<string | null>(
|
|
28
|
-
localStorage.getItem("editor.translationProvider") || null
|
|
28
|
+
localStorage.getItem("editor.translationProvider") || null,
|
|
29
29
|
);
|
|
30
30
|
|
|
31
31
|
if (!editContext) return null;
|
|
@@ -68,7 +68,7 @@ export function Translation() {
|
|
|
68
68
|
return (
|
|
69
69
|
<div
|
|
70
70
|
key={language.languageCode}
|
|
71
|
-
className="
|
|
71
|
+
className="flex gap-2"
|
|
72
72
|
onClick={() => selectLanguage(language)}
|
|
73
73
|
>
|
|
74
74
|
<img src={language.icon} className="h-5" /> {language.name}
|
|
@@ -80,7 +80,7 @@ export function Translation() {
|
|
|
80
80
|
if (!item) return;
|
|
81
81
|
|
|
82
82
|
const status = translationStatus?.find(
|
|
83
|
-
(x) => x.targetLanguage === languageCode
|
|
83
|
+
(x) => x.targetLanguage === languageCode,
|
|
84
84
|
);
|
|
85
85
|
|
|
86
86
|
if (!status) return;
|
|
@@ -156,7 +156,7 @@ export function Translation() {
|
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
}
|
|
159
|
+
},
|
|
160
160
|
);
|
|
161
161
|
return removeSocketMessageListener;
|
|
162
162
|
}, [editContext, setTranslationProgress]);
|
|
@@ -164,7 +164,7 @@ export function Translation() {
|
|
|
164
164
|
const languageData = languages.map((x) => ({
|
|
165
165
|
...x,
|
|
166
166
|
translationStatus: translationStatus?.find(
|
|
167
|
-
(y) => y.targetLanguage === x.languageCode
|
|
167
|
+
(y) => y.targetLanguage === x.languageCode,
|
|
168
168
|
),
|
|
169
169
|
translationProgress: translationProgress.get(x.languageCode),
|
|
170
170
|
}));
|
|
@@ -179,8 +179,8 @@ export function Translation() {
|
|
|
179
179
|
});
|
|
180
180
|
|
|
181
181
|
return (
|
|
182
|
-
<div className="flex flex-col gap-2
|
|
183
|
-
<div className="flex
|
|
182
|
+
<div className="flex h-full flex-col gap-2">
|
|
183
|
+
<div className="flex w-full flex-wrap items-center justify-end gap-2 bg-gray-50 p-3">
|
|
184
184
|
<Dropdown
|
|
185
185
|
options={translationProviders || []}
|
|
186
186
|
onChange={(e) => setTranslationProvider(e.value)}
|
|
@@ -207,8 +207,8 @@ export function Translation() {
|
|
|
207
207
|
label="Create Versions"
|
|
208
208
|
/>
|
|
209
209
|
</div>
|
|
210
|
-
<div className="flex-1
|
|
211
|
-
<div className="overflow-y-auto
|
|
210
|
+
<div className="relative flex-1">
|
|
211
|
+
<div className="absolute inset-0 overflow-y-auto">
|
|
212
212
|
<SimpleTable
|
|
213
213
|
columns={[
|
|
214
214
|
{
|
|
@@ -222,8 +222,8 @@ export function Translation() {
|
|
|
222
222
|
ev.checked
|
|
223
223
|
? [...checkedLanguages, x.languageCode]
|
|
224
224
|
: checkedLanguages.filter(
|
|
225
|
-
(y) => y !== x.languageCode
|
|
226
|
-
)
|
|
225
|
+
(y) => y !== x.languageCode,
|
|
226
|
+
),
|
|
227
227
|
);
|
|
228
228
|
}}
|
|
229
229
|
/>
|
|
@@ -241,7 +241,7 @@ export function Translation() {
|
|
|
241
241
|
body: (x) => (
|
|
242
242
|
<div className="flex items-center gap-2">
|
|
243
243
|
{x.translationStatus?.status === "In Progress" && (
|
|
244
|
-
<div className="w-full
|
|
244
|
+
<div className="relative w-full">
|
|
245
245
|
<ProgressBar
|
|
246
246
|
style={{ height: "20px" }}
|
|
247
247
|
value={(x.translationProgress?.progress || 0) * 100}
|
|
@@ -9,7 +9,7 @@ export function ViewSelector() {
|
|
|
9
9
|
editContext?.configuration.editor.views.filter((x) => !x.hidden) ?? [];
|
|
10
10
|
|
|
11
11
|
return (
|
|
12
|
-
<div className="
|
|
12
|
+
<div className="z-10 flex max-w-11 flex-col items-center gap-4 bg-gray-100 p-2 shadow-md">
|
|
13
13
|
{views
|
|
14
14
|
.filter((x) => x.icon)
|
|
15
15
|
.map((x, i) => (
|
|
@@ -20,18 +20,17 @@ export function ViewSelector() {
|
|
|
20
20
|
editContext?.viewName == x.name
|
|
21
21
|
? "active text-gray-900"
|
|
22
22
|
: "text-gray-400 hover:text-gray-900",
|
|
23
|
-
"cursor-pointer
|
|
23
|
+
"cursor-pointer",
|
|
24
24
|
)}
|
|
25
25
|
data-sidebarview-name={x.name}
|
|
26
26
|
onClick={() => editContext?.switchView(x.name)}
|
|
27
27
|
>
|
|
28
28
|
{typeof x.icon === "string" ? (
|
|
29
|
-
<i
|
|
30
|
-
className={classNames(x.icon)}
|
|
31
|
-
style={{ fontSize: "1.25rem" }}
|
|
32
|
-
/>
|
|
29
|
+
<i className={classNames(x.icon)} style={{ fontSize: "1rem" }} />
|
|
33
30
|
) : (
|
|
34
|
-
|
|
31
|
+
<div className="flex h-5 w-5 items-center justify-center">
|
|
32
|
+
{x.icon}
|
|
33
|
+
</div>
|
|
35
34
|
)}
|
|
36
35
|
</div>
|
|
37
36
|
))}
|
|
@@ -313,7 +313,7 @@ const NodeContent = memo(
|
|
|
313
313
|
if (node.hasChildren && node.children === null) {
|
|
314
314
|
return (
|
|
315
315
|
<ProgressSpinner
|
|
316
|
-
style={{ width: "
|
|
316
|
+
style={{ width: "14px", height: "14px", margin: "0 2px" }}
|
|
317
317
|
className="text-gray-500"
|
|
318
318
|
/>
|
|
319
319
|
);
|
|
@@ -322,7 +322,7 @@ const NodeContent = memo(
|
|
|
322
322
|
return (
|
|
323
323
|
<span
|
|
324
324
|
onClick={handleToggle}
|
|
325
|
-
className={`mr-
|
|
325
|
+
className={`mr-1 inline-block transform cursor-pointer text-gray-500 transition duration-150 select-none ${
|
|
326
326
|
isExpanded ? "rotate-90" : "rotate-0"
|
|
327
327
|
}`}
|
|
328
328
|
>
|
|
@@ -22,7 +22,7 @@ export function SimpleTable<T>({
|
|
|
22
22
|
rowClassName?: (item: T) => string;
|
|
23
23
|
}) {
|
|
24
24
|
return (
|
|
25
|
-
<table className="
|
|
25
|
+
<table className="text-surface min-w-full table-auto text-left text-xs font-light">
|
|
26
26
|
<thead className="border-b border-neutral-200 font-medium">
|
|
27
27
|
<tr>
|
|
28
28
|
{columns.map((col, index) => (
|
|
@@ -38,7 +38,7 @@ export function SimpleTable<T>({
|
|
|
38
38
|
className={classNames(
|
|
39
39
|
"border-b border-neutral-200",
|
|
40
40
|
onRowClick ? "cursor-pointer hover:bg-neutral-100" : "",
|
|
41
|
-
rowClassName ? rowClassName(item) : ""
|
|
41
|
+
rowClassName ? rowClassName(item) : "",
|
|
42
42
|
)}
|
|
43
43
|
onClick={(ev) => {
|
|
44
44
|
if (onRowClick) onRowClick({ item, event: ev });
|
|
@@ -48,10 +48,7 @@ export function SimpleTable<T>({
|
|
|
48
48
|
key={index}
|
|
49
49
|
>
|
|
50
50
|
{columns.map((col, index) => (
|
|
51
|
-
<td
|
|
52
|
-
className={classNames("px-2 py-2", col.className)}
|
|
53
|
-
key={index}
|
|
54
|
-
>
|
|
51
|
+
<td className={classNames("p-2", col.className)} key={index}>
|
|
55
52
|
{col.body(item)}
|
|
56
53
|
</td>
|
|
57
54
|
))}
|
package/src/editor/utils.ts
CHANGED
|
@@ -18,7 +18,7 @@ export function useEventListenerExt(
|
|
|
18
18
|
eventName: string,
|
|
19
19
|
handler: any,
|
|
20
20
|
element: HTMLElement | Window,
|
|
21
|
-
capture = false
|
|
21
|
+
capture = false,
|
|
22
22
|
) {
|
|
23
23
|
// Create a ref that stores handler
|
|
24
24
|
const savedHandler = useRef<any>(undefined);
|
|
@@ -49,20 +49,20 @@ export function useEventListenerExt(
|
|
|
49
49
|
element.removeEventListener(eventName, eventListener);
|
|
50
50
|
};
|
|
51
51
|
},
|
|
52
|
-
[eventName, element] // Re-run if eventName or element changes
|
|
52
|
+
[eventName, element], // Re-run if eventName or element changes
|
|
53
53
|
);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
export const useLocalStorage = <T>(
|
|
57
57
|
storageKey: string,
|
|
58
|
-
fallbackState: T
|
|
58
|
+
fallbackState: T,
|
|
59
59
|
): [T, React.Dispatch<React.SetStateAction<T>>] => {
|
|
60
60
|
const [value, setValue] = useState<T>(
|
|
61
61
|
JSON.parse(
|
|
62
62
|
typeof window !== "undefined"
|
|
63
|
-
? localStorage.getItem(storageKey) ?? JSON.stringify(fallbackState)
|
|
64
|
-
: JSON.stringify(fallbackState)
|
|
65
|
-
)
|
|
63
|
+
? (localStorage.getItem(storageKey) ?? JSON.stringify(fallbackState))
|
|
64
|
+
: JSON.stringify(fallbackState),
|
|
65
|
+
),
|
|
66
66
|
);
|
|
67
67
|
|
|
68
68
|
useEffect(() => {
|
|
@@ -75,7 +75,7 @@ export const useLocalStorage = <T>(
|
|
|
75
75
|
|
|
76
76
|
export function isFieldActionExecuting(
|
|
77
77
|
field: Field,
|
|
78
|
-
editContext: EditContextType
|
|
78
|
+
editContext: EditContextType,
|
|
79
79
|
) {
|
|
80
80
|
const fieldItem = field.descriptor.item;
|
|
81
81
|
|
|
@@ -88,14 +88,14 @@ export function isFieldActionExecuting(
|
|
|
88
88
|
x.field.fieldId == field.id &&
|
|
89
89
|
x.field.item?.id == fieldItem.id &&
|
|
90
90
|
x.field.item?.language == fieldItem.language &&
|
|
91
|
-
x.field.item?.version == fieldItem.version
|
|
91
|
+
x.field.item?.version == fieldItem.version,
|
|
92
92
|
);
|
|
93
93
|
|
|
94
94
|
return action?.state == "running";
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
export function getItemDescriptor(
|
|
98
|
-
item: FullItem | ItemDescriptor
|
|
98
|
+
item: FullItem | ItemDescriptor,
|
|
99
99
|
): ItemDescriptor {
|
|
100
100
|
if (!item) throw new Error("Item is null");
|
|
101
101
|
|
|
@@ -118,7 +118,7 @@ export function getAbsoluteIconUrl(url: string) {
|
|
|
118
118
|
|
|
119
119
|
export function findParentWithAttribute(
|
|
120
120
|
element: HTMLElement,
|
|
121
|
-
attr: string
|
|
121
|
+
attr: string,
|
|
122
122
|
): HTMLElement | null {
|
|
123
123
|
while (element && element !== document.documentElement) {
|
|
124
124
|
if (element.hasAttribute(attr)) {
|
|
@@ -207,7 +207,7 @@ export function parsePlaceholderKey(key: string) {
|
|
|
207
207
|
|
|
208
208
|
export function hasFieldLock(
|
|
209
209
|
field: FieldDescriptor,
|
|
210
|
-
editContext: EditContextType
|
|
210
|
+
editContext: EditContextType,
|
|
211
211
|
) {
|
|
212
212
|
if (!editContext.lockedField) {
|
|
213
213
|
return false;
|
|
@@ -222,7 +222,7 @@ export function hasFieldLock(
|
|
|
222
222
|
|
|
223
223
|
export function getSessionWithFieldLock(
|
|
224
224
|
field: FieldDescriptor,
|
|
225
|
-
editContext: EditContextType
|
|
225
|
+
editContext: EditContextType,
|
|
226
226
|
) {
|
|
227
227
|
return editContext.activeSessions.find(
|
|
228
228
|
(s) =>
|
|
@@ -230,12 +230,12 @@ export function getSessionWithFieldLock(
|
|
|
230
230
|
s.fieldLock?.fieldId === field.fieldId &&
|
|
231
231
|
s.fieldLock?.item.id === field.item.id &&
|
|
232
232
|
s.fieldLock?.item.language === field.item.language &&
|
|
233
|
-
s.fieldLock?.item.version === field.item.version
|
|
233
|
+
s.fieldLock?.item.version === field.item.version,
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
export function getFieldDescriptorFromElement(
|
|
238
|
-
element: Element
|
|
238
|
+
element: Element,
|
|
239
239
|
): FieldDescriptor {
|
|
240
240
|
return {
|
|
241
241
|
item: {
|
|
@@ -263,20 +263,20 @@ export function findNearestComponentId(startElement: Element) {
|
|
|
263
263
|
|
|
264
264
|
export function findFieldElement(
|
|
265
265
|
iframe: HTMLIFrameElement,
|
|
266
|
-
fieldDescriptor: FieldDescriptor
|
|
266
|
+
fieldDescriptor: FieldDescriptor,
|
|
267
267
|
) {
|
|
268
268
|
if (!iframe.contentWindow?.document.body) return undefined;
|
|
269
269
|
|
|
270
270
|
const fieldElement = iframe.contentWindow?.document.body.querySelector(
|
|
271
271
|
"[data-itemid='" +
|
|
272
|
-
|
|
272
|
+
fieldDescriptor.item.id +
|
|
273
273
|
"'][data-language='" +
|
|
274
274
|
fieldDescriptor.item.language +
|
|
275
275
|
"'][data-version='" +
|
|
276
276
|
fieldDescriptor.item.version +
|
|
277
277
|
"'][data-fieldid='" +
|
|
278
278
|
fieldDescriptor.fieldId +
|
|
279
|
-
"']"
|
|
279
|
+
"']",
|
|
280
280
|
);
|
|
281
281
|
|
|
282
282
|
return fieldElement;
|
|
@@ -285,16 +285,16 @@ export function findFieldElement(
|
|
|
285
285
|
export function findComponentRect(
|
|
286
286
|
iframe: HTMLIFrameElement,
|
|
287
287
|
componentId: string,
|
|
288
|
-
takeScrollPositionIntoAccount = false
|
|
288
|
+
takeScrollPositionIntoAccount = false,
|
|
289
289
|
) {
|
|
290
290
|
if (!iframe.contentWindow?.document.body) return undefined;
|
|
291
291
|
|
|
292
292
|
const componentStart = iframe.contentWindow?.document.body.querySelector(
|
|
293
|
-
"[data-component-start='" + componentId + "']"
|
|
293
|
+
"[data-component-start='" + componentId + "']",
|
|
294
294
|
);
|
|
295
295
|
|
|
296
296
|
const componentEnd = iframe?.contentWindow?.document.body.querySelector(
|
|
297
|
-
"[data-component-end='" + componentId + "']"
|
|
297
|
+
"[data-component-end='" + componentId + "']",
|
|
298
298
|
);
|
|
299
299
|
|
|
300
300
|
if (!componentStart || !componentEnd) {
|
|
@@ -316,7 +316,7 @@ export function findComponentRect(
|
|
|
316
316
|
? getAbsolutePosition(startElement as HTMLElement, iframe)
|
|
317
317
|
: startElement.getBoundingClientRect();
|
|
318
318
|
|
|
319
|
-
let endElement = componentEnd.previousElementSibling;
|
|
319
|
+
let endElement = componentEnd.previousElementSibling;
|
|
320
320
|
|
|
321
321
|
while (endElement && endElement.tagName === "SCRIPT") {
|
|
322
322
|
endElement = endElement.previousElementSibling;
|
|
@@ -352,17 +352,17 @@ export function findComponentRect(
|
|
|
352
352
|
|
|
353
353
|
export const getAbsolutePosition = (
|
|
354
354
|
element: HTMLElement,
|
|
355
|
-
iframe: HTMLIFrameElement
|
|
355
|
+
iframe: HTMLIFrameElement,
|
|
356
356
|
) => {
|
|
357
357
|
const rect = element.getBoundingClientRect();
|
|
358
358
|
const scrollLeft =
|
|
359
359
|
iframe.contentWindow?.scrollX ||
|
|
360
|
-
iframe.contentDocument?.documentElement.scrollLeft ||
|
|
360
|
+
iframe.contentDocument?.documentElement.scrollLeft ||
|
|
361
|
+
0;
|
|
361
362
|
const scrollTop =
|
|
362
363
|
iframe.contentWindow?.scrollY ||
|
|
363
|
-
iframe.contentDocument?.documentElement.scrollTop ||
|
|
364
|
-
|
|
365
|
-
|
|
364
|
+
iframe.contentDocument?.documentElement.scrollTop ||
|
|
365
|
+
0;
|
|
366
366
|
|
|
367
367
|
return {
|
|
368
368
|
x: rect.left + scrollLeft,
|
|
@@ -412,7 +412,10 @@ const dateOptions: Intl.DateTimeFormatOptions = {
|
|
|
412
412
|
hour12: false,
|
|
413
413
|
};
|
|
414
414
|
|
|
415
|
-
const dateFormat = Intl.DateTimeFormat(
|
|
415
|
+
const dateFormat = Intl.DateTimeFormat(
|
|
416
|
+
typeof navigator !== "undefined" ? navigator.language : "en",
|
|
417
|
+
dateOptions,
|
|
418
|
+
);
|
|
416
419
|
|
|
417
420
|
export function formatDate(date: Date) {
|
|
418
421
|
return dateFormat.format(date);
|
|
@@ -421,7 +424,7 @@ export function formatDate(date: Date) {
|
|
|
421
424
|
export function findClosestFieldElement(node: Node | null): HTMLElement | null {
|
|
422
425
|
let current: Node | null = node;
|
|
423
426
|
|
|
424
|
-
while (current) {
|
|
427
|
+
while (current) {
|
|
425
428
|
if (current.nodeType === Node.ELEMENT_NODE) {
|
|
426
429
|
const element = current as Element;
|
|
427
430
|
if (element.hasAttribute("data-fieldid")) {
|
|
@@ -432,4 +435,4 @@ export function findClosestFieldElement(node: Node | null): HTMLElement | null {
|
|
|
432
435
|
}
|
|
433
436
|
|
|
434
437
|
return null;
|
|
435
|
-
}
|
|
438
|
+
}
|
package/src/index.ts
CHANGED
package/src/lib/utils.ts
ADDED
|
@@ -56,7 +56,7 @@ export function SplashScreen() {
|
|
|
56
56
|
const tabs: Tab[] = [
|
|
57
57
|
{
|
|
58
58
|
content: (
|
|
59
|
-
<div className="flex flex-1 gap-4
|
|
59
|
+
<div className="flex flex-1 gap-4 text-sm">
|
|
60
60
|
<div className="relative w-2/3">
|
|
61
61
|
<ScrollingContentTree
|
|
62
62
|
selectedItemId={selectedPage?.id}
|
|
@@ -87,7 +87,7 @@ export function SplashScreen() {
|
|
|
87
87
|
version: 0,
|
|
88
88
|
});
|
|
89
89
|
}}
|
|
90
|
-
className="flex cursor-pointer items-center gap-2 p-
|
|
90
|
+
className="flex cursor-pointer items-center gap-2 p-1 text-xs hover:bg-gray-100"
|
|
91
91
|
>
|
|
92
92
|
{page.icon && (
|
|
93
93
|
<img src={page.icon} width="16" height="16" />
|
package/styles.css
CHANGED
|
@@ -1,10 +1,127 @@
|
|
|
1
|
-
@source "./";
|
|
2
|
-
|
|
3
1
|
@theme {
|
|
4
2
|
--font-geist-sans: "GeistSans";
|
|
5
3
|
--font-geist-mono: "GeistMono";
|
|
6
4
|
}
|
|
7
5
|
|
|
6
|
+
:root {
|
|
7
|
+
--background: oklch(1 0 0);
|
|
8
|
+
--foreground: oklch(0.145 0 0);
|
|
9
|
+
--card: oklch(1 0 0);
|
|
10
|
+
--card-foreground: oklch(0.145 0 0);
|
|
11
|
+
--popover: oklch(1 0 0);
|
|
12
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
13
|
+
--primary: oklch(0.205 0 0);
|
|
14
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
15
|
+
--secondary: oklch(0.97 0 0);
|
|
16
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
17
|
+
--muted: oklch(0.97 0 0);
|
|
18
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
19
|
+
--accent: oklch(0.97 0 0);
|
|
20
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
21
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
22
|
+
--destructive-foreground: oklch(0.577 0.245 27.325);
|
|
23
|
+
--border: oklch(0.922 0 0);
|
|
24
|
+
--input: oklch(0.922 0 0);
|
|
25
|
+
--ring: oklch(0.708 0 0);
|
|
26
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
27
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
28
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
29
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
30
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
31
|
+
--radius: 0.625rem;
|
|
32
|
+
--sidebar: oklch(0.985 0 0);
|
|
33
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
34
|
+
--sidebar-primary: oklch(0.205 0 0);
|
|
35
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
36
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
37
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
38
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
39
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.dark {
|
|
43
|
+
--background: oklch(0.145 0 0);
|
|
44
|
+
--foreground: oklch(0.985 0 0);
|
|
45
|
+
--card: oklch(0.145 0 0);
|
|
46
|
+
--card-foreground: oklch(0.985 0 0);
|
|
47
|
+
--popover: oklch(0.145 0 0);
|
|
48
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
49
|
+
--primary: oklch(0.985 0 0);
|
|
50
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
51
|
+
--secondary: oklch(0.269 0 0);
|
|
52
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
53
|
+
--muted: oklch(0.269 0 0);
|
|
54
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
55
|
+
--accent: oklch(0.269 0 0);
|
|
56
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
57
|
+
--destructive: oklch(0.396 0.141 25.723);
|
|
58
|
+
--destructive-foreground: oklch(0.637 0.237 25.331);
|
|
59
|
+
--border: oklch(0.269 0 0);
|
|
60
|
+
--input: oklch(0.269 0 0);
|
|
61
|
+
--ring: oklch(0.439 0 0);
|
|
62
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
63
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
64
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
65
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
66
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
67
|
+
--sidebar: oklch(0.205 0 0);
|
|
68
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
69
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
70
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
71
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
72
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
73
|
+
--sidebar-border: oklch(0.269 0 0);
|
|
74
|
+
--sidebar-ring: oklch(0.439 0 0);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@theme inline {
|
|
78
|
+
--color-background: var(--background);
|
|
79
|
+
--color-foreground: var(--foreground);
|
|
80
|
+
--color-card: var(--card);
|
|
81
|
+
--color-card-foreground: var(--card-foreground);
|
|
82
|
+
--color-popover: var(--popover);
|
|
83
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
84
|
+
--color-primary: var(--primary);
|
|
85
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
86
|
+
--color-secondary: var(--secondary);
|
|
87
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
88
|
+
--color-muted: var(--muted);
|
|
89
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
90
|
+
--color-accent: var(--accent);
|
|
91
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
92
|
+
--color-destructive: var(--destructive);
|
|
93
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
94
|
+
--color-border: var(--border);
|
|
95
|
+
--color-input: var(--input);
|
|
96
|
+
--color-ring: var(--ring);
|
|
97
|
+
--color-chart-1: var(--chart-1);
|
|
98
|
+
--color-chart-2: var(--chart-2);
|
|
99
|
+
--color-chart-3: var(--chart-3);
|
|
100
|
+
--color-chart-4: var(--chart-4);
|
|
101
|
+
--color-chart-5: var(--chart-5);
|
|
102
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
103
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
104
|
+
--radius-lg: var(--radius);
|
|
105
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
106
|
+
--color-sidebar: var(--sidebar);
|
|
107
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
108
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
109
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
110
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
111
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
112
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
113
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@layer base {
|
|
117
|
+
* {
|
|
118
|
+
@apply border-border outline-ring/50;
|
|
119
|
+
}
|
|
120
|
+
body {
|
|
121
|
+
@apply bg-background text-foreground;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
8
125
|
@layer alpaca-editor {
|
|
9
126
|
.bg-shape-black {
|
|
10
127
|
background-color: black;
|
|
@@ -474,3 +591,8 @@
|
|
|
474
591
|
overflow: auto;
|
|
475
592
|
resize: vertical;
|
|
476
593
|
}
|
|
594
|
+
|
|
595
|
+
.p-checkbox-box {
|
|
596
|
+
width: 15px;
|
|
597
|
+
height: 15px;
|
|
598
|
+
}
|
package/tsconfig.build.json
CHANGED
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"
|
|
3
|
+
"paths": {
|
|
4
|
+
"@/*": ["./src/*"]
|
|
5
|
+
},
|
|
6
|
+
"target": "es2022",
|
|
7
|
+
"module": "esnext",
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"jsx": "react-jsx",
|
|
10
|
+
"declaration": true,
|
|
11
|
+
"outDir": "./dist",
|
|
12
|
+
"strict": true,
|
|
13
|
+
"esModuleInterop": true,
|
|
7
14
|
"skipLibCheck": true,
|
|
8
|
-
"strict": false,
|
|
9
15
|
"forceConsistentCasingInFileNames": true,
|
|
10
|
-
"noEmit": false,
|
|
11
|
-
"incremental": true,
|
|
12
|
-
"esModuleInterop": true,
|
|
13
|
-
"moduleResolution": "node",
|
|
14
16
|
"resolveJsonModule": true,
|
|
15
17
|
"isolatedModules": true,
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
+
"emitDecoratorMetadata": true,
|
|
19
|
+
"experimentalDecorators": true,
|
|
20
|
+
"allowSyntheticDefaultImports": true,
|
|
21
|
+
"noImplicitThis": true,
|
|
22
|
+
"noImplicitAny": true,
|
|
23
|
+
"noUnusedLocals": false,
|
|
24
|
+
"noUnusedParameters": false,
|
|
25
|
+
"sourceMap": true,
|
|
26
|
+
"removeComments": false,
|
|
27
|
+
"lib": ["dom", "dom.iterable", "esnext"]
|
|
18
28
|
},
|
|
19
29
|
"include": ["src/**/*"],
|
|
20
|
-
"exclude": ["node_modules"]
|
|
21
|
-
}
|
|
30
|
+
"exclude": ["node_modules", "dist"]
|
|
31
|
+
}
|