@jhits/plugin-blog 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/categories.d.ts +8 -0
- package/dist/api/categories.d.ts.map +1 -0
- package/dist/api/categories.js +30 -0
- package/dist/api/check-title.d.ts +8 -0
- package/dist/api/check-title.d.ts.map +1 -0
- package/dist/api/check-title.js +47 -0
- package/dist/api/config-handler.d.ts +21 -0
- package/dist/api/config-handler.d.ts.map +1 -0
- package/dist/api/config-handler.js +46 -0
- package/dist/api/handler.d.ts +42 -0
- package/dist/api/handler.d.ts.map +1 -0
- package/dist/api/handler.js +331 -0
- package/dist/api/index.d.ts +12 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +12 -0
- package/dist/api/route.d.ts +50 -0
- package/dist/api/route.d.ts.map +1 -0
- package/dist/api/route.js +69 -0
- package/dist/api/router.d.ts +27 -0
- package/dist/api/router.d.ts.map +1 -0
- package/dist/api/router.js +98 -0
- package/dist/api-server.d.ts +9 -0
- package/dist/api-server.d.ts.map +1 -0
- package/dist/api-server.js +9 -0
- package/dist/config.d.ts +14 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +156 -0
- package/dist/hooks/index.d.ts +8 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +7 -0
- package/dist/hooks/useBlog.d.ts +31 -0
- package/dist/hooks/useBlog.d.ts.map +1 -0
- package/dist/hooks/useBlog.js +57 -0
- package/dist/hooks/useBlogs.d.ts +39 -0
- package/dist/hooks/useBlogs.d.ts.map +1 -0
- package/dist/hooks/useBlogs.js +82 -0
- package/dist/hooks/useCategories.d.ts +9 -0
- package/dist/hooks/useCategories.d.ts.map +1 -0
- package/dist/hooks/useCategories.js +70 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +228 -0
- package/dist/index.server.d.ts +12 -0
- package/dist/index.server.d.ts.map +1 -0
- package/dist/index.server.js +10 -0
- package/dist/init.d.ts +40 -0
- package/dist/init.d.ts.map +1 -0
- package/dist/init.js +41 -0
- package/dist/lib/blocks/BlockRenderer.d.ts +54 -0
- package/dist/lib/blocks/BlockRenderer.d.ts.map +1 -0
- package/dist/lib/blocks/BlockRenderer.js +54 -0
- package/dist/lib/blocks/index.d.ts +5 -0
- package/dist/lib/blocks/index.d.ts.map +1 -0
- package/dist/lib/blocks/index.js +4 -0
- package/dist/lib/config-storage.d.ts +30 -0
- package/dist/lib/config-storage.d.ts.map +1 -0
- package/dist/lib/config-storage.js +31 -0
- package/dist/lib/index.d.ts +8 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/index.js +7 -0
- package/dist/lib/layouts/blocks/ColumnsBlock.d.ts +25 -0
- package/dist/lib/layouts/blocks/ColumnsBlock.d.ts.map +1 -0
- package/dist/lib/layouts/blocks/ColumnsBlock.js +186 -0
- package/dist/lib/layouts/blocks/SectionBlock.d.ts +25 -0
- package/dist/lib/layouts/blocks/SectionBlock.d.ts.map +1 -0
- package/dist/lib/layouts/blocks/SectionBlock.js +44 -0
- package/dist/lib/layouts/blocks/index.d.ts +7 -0
- package/dist/lib/layouts/blocks/index.d.ts.map +1 -0
- package/dist/lib/layouts/blocks/index.js +6 -0
- package/dist/lib/layouts/index.d.ts +23 -0
- package/dist/lib/layouts/index.d.ts.map +1 -0
- package/dist/lib/layouts/index.js +45 -0
- package/dist/lib/layouts/registerLayoutBlocks.d.ts +9 -0
- package/dist/lib/layouts/registerLayoutBlocks.d.ts.map +1 -0
- package/dist/lib/layouts/registerLayoutBlocks.js +60 -0
- package/dist/lib/mappers/apiMapper.d.ts +66 -0
- package/dist/lib/mappers/apiMapper.d.ts.map +1 -0
- package/dist/lib/mappers/apiMapper.js +188 -0
- package/dist/lib/migration/index.d.ts +5 -0
- package/dist/lib/migration/index.d.ts.map +1 -0
- package/dist/lib/migration/index.js +4 -0
- package/dist/lib/migration/mapper.d.ts +37 -0
- package/dist/lib/migration/mapper.d.ts.map +1 -0
- package/dist/lib/migration/mapper.js +98 -0
- package/dist/lib/rich-text/RichTextEditor.d.ts +45 -0
- package/dist/lib/rich-text/RichTextEditor.d.ts.map +1 -0
- package/dist/lib/rich-text/RichTextEditor.js +556 -0
- package/dist/lib/rich-text/RichTextPreview.d.ts +16 -0
- package/dist/lib/rich-text/RichTextPreview.d.ts.map +1 -0
- package/dist/lib/rich-text/RichTextPreview.js +144 -0
- package/dist/lib/rich-text/index.d.ts +9 -0
- package/dist/lib/rich-text/index.d.ts.map +1 -0
- package/dist/lib/rich-text/index.js +6 -0
- package/dist/lib/utils/blockHelpers.d.ts +23 -0
- package/dist/lib/utils/blockHelpers.d.ts.map +1 -0
- package/dist/lib/utils/blockHelpers.js +65 -0
- package/dist/lib/utils/configValidation.d.ts +23 -0
- package/dist/lib/utils/configValidation.d.ts.map +1 -0
- package/dist/lib/utils/configValidation.js +111 -0
- package/dist/lib/utils/index.d.ts +7 -0
- package/dist/lib/utils/index.d.ts.map +1 -0
- package/dist/lib/utils/index.js +6 -0
- package/dist/lib/utils/slugify.d.ts +25 -0
- package/dist/lib/utils/slugify.d.ts.map +1 -0
- package/dist/lib/utils/slugify.js +65 -0
- package/dist/registry/BlockRegistry.d.ts +62 -0
- package/dist/registry/BlockRegistry.d.ts.map +1 -0
- package/dist/registry/BlockRegistry.js +112 -0
- package/dist/registry/index.d.ts +6 -0
- package/dist/registry/index.d.ts.map +1 -0
- package/dist/registry/index.js +4 -0
- package/dist/state/EditorContext.d.ts +45 -0
- package/dist/state/EditorContext.d.ts.map +1 -0
- package/dist/state/EditorContext.js +215 -0
- package/dist/state/index.d.ts +7 -0
- package/dist/state/index.d.ts.map +1 -0
- package/dist/state/index.js +6 -0
- package/dist/state/reducer.d.ts +11 -0
- package/dist/state/reducer.d.ts.map +1 -0
- package/dist/state/reducer.js +599 -0
- package/dist/state/types.d.ts +162 -0
- package/dist/state/types.d.ts.map +1 -0
- package/dist/state/types.js +27 -0
- package/dist/types/block.d.ts +221 -0
- package/dist/types/block.d.ts.map +1 -0
- package/dist/types/block.js +6 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +5 -0
- package/dist/types/post.d.ts +136 -0
- package/dist/types/post.d.ts.map +1 -0
- package/dist/types/post.js +5 -0
- package/dist/utils/client.d.ts +48 -0
- package/dist/utils/client.d.ts.map +1 -0
- package/dist/utils/client.js +77 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +5 -0
- package/dist/views/CanvasEditor/BlockWrapper.d.ts +16 -0
- package/dist/views/CanvasEditor/BlockWrapper.d.ts.map +1 -0
- package/dist/views/CanvasEditor/BlockWrapper.js +285 -0
- package/dist/views/CanvasEditor/CanvasEditorView.d.ts +14 -0
- package/dist/views/CanvasEditor/CanvasEditorView.d.ts.map +1 -0
- package/dist/views/CanvasEditor/CanvasEditorView.js +215 -0
- package/dist/views/CanvasEditor/EditorBody.d.ts +22 -0
- package/dist/views/CanvasEditor/EditorBody.d.ts.map +1 -0
- package/dist/views/CanvasEditor/EditorBody.js +505 -0
- package/dist/views/CanvasEditor/EditorHeader.d.ts +18 -0
- package/dist/views/CanvasEditor/EditorHeader.d.ts.map +1 -0
- package/dist/views/CanvasEditor/EditorHeader.js +101 -0
- package/dist/views/CanvasEditor/LayoutContainer.d.ts +17 -0
- package/dist/views/CanvasEditor/LayoutContainer.d.ts.map +1 -0
- package/dist/views/CanvasEditor/LayoutContainer.js +222 -0
- package/dist/views/CanvasEditor/SaveConfirmationModal.d.ts +13 -0
- package/dist/views/CanvasEditor/SaveConfirmationModal.d.ts.map +1 -0
- package/dist/views/CanvasEditor/SaveConfirmationModal.js +78 -0
- package/dist/views/CanvasEditor/components/CustomBlockItem.d.ts +14 -0
- package/dist/views/CanvasEditor/components/CustomBlockItem.d.ts.map +1 -0
- package/dist/views/CanvasEditor/components/CustomBlockItem.js +44 -0
- package/dist/views/CanvasEditor/components/EditorCanvas.d.ts +29 -0
- package/dist/views/CanvasEditor/components/EditorCanvas.d.ts.map +1 -0
- package/dist/views/CanvasEditor/components/EditorCanvas.js +32 -0
- package/dist/views/CanvasEditor/components/EditorLibrary.d.ts +7 -0
- package/dist/views/CanvasEditor/components/EditorLibrary.d.ts.map +1 -0
- package/dist/views/CanvasEditor/components/EditorLibrary.js +25 -0
- package/dist/views/CanvasEditor/components/EditorSidebar.d.ts +13 -0
- package/dist/views/CanvasEditor/components/EditorSidebar.d.ts.map +1 -0
- package/dist/views/CanvasEditor/components/EditorSidebar.js +19 -0
- package/dist/views/CanvasEditor/components/ErrorBanner.d.ts +6 -0
- package/dist/views/CanvasEditor/components/ErrorBanner.d.ts.map +1 -0
- package/dist/views/CanvasEditor/components/ErrorBanner.js +8 -0
- package/dist/views/CanvasEditor/components/FeaturedMediaSection.d.ts +25 -0
- package/dist/views/CanvasEditor/components/FeaturedMediaSection.d.ts.map +1 -0
- package/dist/views/CanvasEditor/components/FeaturedMediaSection.js +199 -0
- package/dist/views/CanvasEditor/components/LibraryItem.d.ts +14 -0
- package/dist/views/CanvasEditor/components/LibraryItem.d.ts.map +1 -0
- package/dist/views/CanvasEditor/components/LibraryItem.js +43 -0
- package/dist/views/CanvasEditor/components/PrivacySettingsSection.d.ts +15 -0
- package/dist/views/CanvasEditor/components/PrivacySettingsSection.d.ts.map +1 -0
- package/dist/views/CanvasEditor/components/PrivacySettingsSection.js +70 -0
- package/dist/views/CanvasEditor/components/index.d.ts +21 -0
- package/dist/views/CanvasEditor/components/index.d.ts.map +1 -0
- package/dist/views/CanvasEditor/components/index.js +12 -0
- package/dist/views/CanvasEditor/hooks/index.d.ts +10 -0
- package/dist/views/CanvasEditor/hooks/index.d.ts.map +1 -0
- package/dist/views/CanvasEditor/hooks/index.js +9 -0
- package/dist/views/CanvasEditor/hooks/useHeroBlock.d.ts +8 -0
- package/dist/views/CanvasEditor/hooks/useHeroBlock.d.ts.map +1 -0
- package/dist/views/CanvasEditor/hooks/useHeroBlock.js +90 -0
- package/dist/views/CanvasEditor/hooks/useKeyboardShortcuts.d.ts +3 -0
- package/dist/views/CanvasEditor/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/dist/views/CanvasEditor/hooks/useKeyboardShortcuts.js +119 -0
- package/dist/views/CanvasEditor/hooks/usePostLoader.d.ts +5 -0
- package/dist/views/CanvasEditor/hooks/usePostLoader.d.ts.map +1 -0
- package/dist/views/CanvasEditor/hooks/usePostLoader.js +32 -0
- package/dist/views/CanvasEditor/hooks/useRegisteredBlocks.d.ts +2 -0
- package/dist/views/CanvasEditor/hooks/useRegisteredBlocks.d.ts.map +1 -0
- package/dist/views/CanvasEditor/hooks/useRegisteredBlocks.js +47 -0
- package/dist/views/CanvasEditor/hooks/useUnsavedChanges.d.ts +25 -0
- package/dist/views/CanvasEditor/hooks/useUnsavedChanges.d.ts.map +1 -0
- package/dist/views/CanvasEditor/hooks/useUnsavedChanges.js +285 -0
- package/dist/views/CanvasEditor/index.d.ts +16 -0
- package/dist/views/CanvasEditor/index.d.ts.map +1 -0
- package/dist/views/CanvasEditor/index.js +9 -0
- package/dist/views/PostManager/EmptyState.d.ts +10 -0
- package/dist/views/PostManager/EmptyState.d.ts.map +1 -0
- package/dist/views/PostManager/EmptyState.js +12 -0
- package/dist/views/PostManager/PostActionsMenu.d.ts +12 -0
- package/dist/views/PostManager/PostActionsMenu.d.ts.map +1 -0
- package/dist/views/PostManager/PostActionsMenu.js +58 -0
- package/dist/views/PostManager/PostCards.d.ts +15 -0
- package/dist/views/PostManager/PostCards.d.ts.map +1 -0
- package/dist/views/PostManager/PostCards.js +77 -0
- package/dist/views/PostManager/PostFilters.d.ts +16 -0
- package/dist/views/PostManager/PostFilters.d.ts.map +1 -0
- package/dist/views/PostManager/PostFilters.js +10 -0
- package/dist/views/PostManager/PostManagerView.d.ts +11 -0
- package/dist/views/PostManager/PostManagerView.d.ts.map +1 -0
- package/dist/views/PostManager/PostManagerView.js +179 -0
- package/dist/views/PostManager/PostStats.d.ts +11 -0
- package/dist/views/PostManager/PostStats.d.ts.map +1 -0
- package/dist/views/PostManager/PostStats.js +46 -0
- package/dist/views/PostManager/PostTable.d.ts +15 -0
- package/dist/views/PostManager/PostTable.d.ts.map +1 -0
- package/dist/views/PostManager/PostTable.js +77 -0
- package/dist/views/PostManager/index.d.ts +12 -0
- package/dist/views/PostManager/index.d.ts.map +1 -0
- package/dist/views/PostManager/index.js +11 -0
- package/dist/views/Preview/PreviewBridgeView.d.ts +12 -0
- package/dist/views/Preview/PreviewBridgeView.d.ts.map +1 -0
- package/dist/views/Preview/PreviewBridgeView.js +11 -0
- package/dist/views/Preview/index.d.ts +6 -0
- package/dist/views/Preview/index.d.ts.map +1 -0
- package/dist/views/Preview/index.js +4 -0
- package/dist/views/Settings/SettingsView.d.ts +10 -0
- package/dist/views/Settings/SettingsView.d.ts.map +1 -0
- package/dist/views/Settings/SettingsView.js +113 -0
- package/dist/views/Settings/index.d.ts +6 -0
- package/dist/views/Settings/index.d.ts.map +1 -0
- package/dist/views/Settings/index.js +4 -0
- package/dist/views/SlugSEO/SlugSEOManagerView.d.ts +12 -0
- package/dist/views/SlugSEO/SlugSEOManagerView.d.ts.map +1 -0
- package/dist/views/SlugSEO/SlugSEOManagerView.js +11 -0
- package/dist/views/SlugSEO/index.d.ts +6 -0
- package/dist/views/SlugSEO/index.d.ts.map +1 -0
- package/dist/views/SlugSEO/index.js +4 -0
- package/package.json +59 -59
- package/src/hooks/index.d.ts +8 -0
- package/src/hooks/index.d.ts.map +1 -0
- package/src/hooks/index.js +7 -0
- package/src/hooks/useBlog.d.ts +31 -0
- package/src/hooks/useBlog.d.ts.map +1 -0
- package/src/hooks/useBlog.js +57 -0
- package/src/hooks/useBlogs.d.ts +39 -0
- package/src/hooks/useBlogs.d.ts.map +1 -0
- package/src/hooks/useBlogs.js +82 -0
- package/src/hooks/useCategories.d.ts +9 -0
- package/src/hooks/useCategories.d.ts.map +1 -0
- package/src/hooks/useCategories.js +70 -0
- package/src/index.d.ts +55 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.js +228 -0
- package/src/init.d.ts +40 -0
- package/src/init.d.ts.map +1 -0
- package/src/init.js +41 -0
- package/src/lib/blocks/BlockRenderer.d.ts +54 -0
- package/src/lib/blocks/BlockRenderer.d.ts.map +1 -0
- package/src/lib/blocks/BlockRenderer.js +54 -0
- package/src/lib/config-storage.d.ts +30 -0
- package/src/lib/config-storage.d.ts.map +1 -0
- package/src/lib/config-storage.js +31 -0
- package/src/lib/layouts/blocks/ColumnsBlock.d.ts +25 -0
- package/src/lib/layouts/blocks/ColumnsBlock.d.ts.map +1 -0
- package/src/lib/layouts/blocks/ColumnsBlock.js +182 -0
- package/src/lib/layouts/blocks/SectionBlock.d.ts +25 -0
- package/src/lib/layouts/blocks/SectionBlock.d.ts.map +1 -0
- package/src/lib/layouts/blocks/SectionBlock.js +44 -0
- package/src/lib/layouts/index.d.ts +23 -0
- package/src/lib/layouts/index.d.ts.map +1 -0
- package/src/lib/layouts/index.js +45 -0
- package/src/lib/layouts/registerLayoutBlocks.d.ts +9 -0
- package/src/lib/layouts/registerLayoutBlocks.d.ts.map +1 -0
- package/src/lib/layouts/registerLayoutBlocks.js +60 -0
- package/src/lib/mappers/apiMapper.d.ts +66 -0
- package/src/lib/mappers/apiMapper.d.ts.map +1 -0
- package/src/lib/mappers/apiMapper.js +191 -0
- package/src/lib/rich-text/RichTextEditor.d.ts +45 -0
- package/src/lib/rich-text/RichTextEditor.d.ts.map +1 -0
- package/src/lib/rich-text/RichTextEditor.js +564 -0
- package/src/lib/rich-text/RichTextPreview.d.ts +16 -0
- package/src/lib/rich-text/RichTextPreview.d.ts.map +1 -0
- package/src/lib/rich-text/RichTextPreview.js +144 -0
- package/src/lib/rich-text/index.d.ts +9 -0
- package/src/lib/rich-text/index.d.ts.map +1 -0
- package/src/lib/rich-text/index.js +6 -0
- package/src/lib/utils/blockHelpers.d.ts +23 -0
- package/src/lib/utils/blockHelpers.d.ts.map +1 -0
- package/src/lib/utils/blockHelpers.js +65 -0
- package/src/lib/utils/configValidation.d.ts +23 -0
- package/src/lib/utils/configValidation.d.ts.map +1 -0
- package/src/lib/utils/configValidation.js +113 -0
- package/src/registry/BlockRegistry.d.ts +62 -0
- package/src/registry/BlockRegistry.d.ts.map +1 -0
- package/src/registry/BlockRegistry.js +112 -0
- package/src/registry/index.d.ts +6 -0
- package/src/registry/index.d.ts.map +1 -0
- package/src/registry/index.js +4 -0
- package/src/state/EditorContext.d.ts +45 -0
- package/src/state/EditorContext.d.ts.map +1 -0
- package/src/state/EditorContext.js +215 -0
- package/src/state/index.d.ts +7 -0
- package/src/state/index.d.ts.map +1 -0
- package/src/state/index.js +6 -0
- package/src/state/reducer.d.ts +11 -0
- package/src/state/reducer.d.ts.map +1 -0
- package/src/state/reducer.js +443 -0
- package/src/state/types.d.ts +162 -0
- package/src/state/types.d.ts.map +1 -0
- package/src/state/types.js +27 -0
- package/src/types/block.d.ts +221 -0
- package/src/types/block.d.ts.map +1 -0
- package/src/types/block.js +6 -0
- package/src/types/index.d.ts +8 -0
- package/src/types/index.d.ts.map +1 -0
- package/src/types/index.js +5 -0
- package/src/types/post.d.ts +136 -0
- package/src/types/post.d.ts.map +1 -0
- package/src/types/post.js +5 -0
- package/src/utils/client.d.ts +48 -0
- package/src/utils/client.d.ts.map +1 -0
- package/src/utils/client.js +77 -0
- package/src/views/CanvasEditor/BlockWrapper.d.ts +16 -0
- package/src/views/CanvasEditor/BlockWrapper.d.ts.map +1 -0
- package/src/views/CanvasEditor/BlockWrapper.js +276 -0
- package/src/views/CanvasEditor/CanvasEditorView.d.ts +14 -0
- package/src/views/CanvasEditor/CanvasEditorView.d.ts.map +1 -0
- package/src/views/CanvasEditor/CanvasEditorView.js +209 -0
- package/src/views/CanvasEditor/EditorBody.d.ts +22 -0
- package/src/views/CanvasEditor/EditorBody.d.ts.map +1 -0
- package/src/views/CanvasEditor/EditorBody.js +505 -0
- package/src/views/CanvasEditor/EditorHeader.d.ts +18 -0
- package/src/views/CanvasEditor/EditorHeader.d.ts.map +1 -0
- package/src/views/CanvasEditor/EditorHeader.js +101 -0
- package/src/views/CanvasEditor/LayoutContainer.d.ts +17 -0
- package/src/views/CanvasEditor/LayoutContainer.d.ts.map +1 -0
- package/src/views/CanvasEditor/LayoutContainer.js +222 -0
- package/src/views/CanvasEditor/SaveConfirmationModal.d.ts +13 -0
- package/src/views/CanvasEditor/SaveConfirmationModal.d.ts.map +1 -0
- package/src/views/CanvasEditor/SaveConfirmationModal.js +78 -0
- package/src/views/CanvasEditor/components/CustomBlockItem.d.ts +14 -0
- package/src/views/CanvasEditor/components/CustomBlockItem.d.ts.map +1 -0
- package/src/views/CanvasEditor/components/CustomBlockItem.js +44 -0
- package/src/views/CanvasEditor/components/EditorCanvas.d.ts +29 -0
- package/src/views/CanvasEditor/components/EditorCanvas.d.ts.map +1 -0
- package/src/views/CanvasEditor/components/EditorCanvas.js +32 -0
- package/src/views/CanvasEditor/components/EditorLibrary.d.ts +7 -0
- package/src/views/CanvasEditor/components/EditorLibrary.d.ts.map +1 -0
- package/src/views/CanvasEditor/components/EditorLibrary.js +25 -0
- package/src/views/CanvasEditor/components/EditorSidebar.d.ts +13 -0
- package/src/views/CanvasEditor/components/EditorSidebar.d.ts.map +1 -0
- package/src/views/CanvasEditor/components/EditorSidebar.js +20 -0
- package/src/views/CanvasEditor/components/ErrorBanner.d.ts +6 -0
- package/src/views/CanvasEditor/components/ErrorBanner.d.ts.map +1 -0
- package/src/views/CanvasEditor/components/ErrorBanner.js +8 -0
- package/src/views/CanvasEditor/components/FeaturedMediaSection.d.ts +25 -0
- package/src/views/CanvasEditor/components/FeaturedMediaSection.d.ts.map +1 -0
- package/src/views/CanvasEditor/components/FeaturedMediaSection.js +182 -0
- package/src/views/CanvasEditor/components/LibraryItem.d.ts +14 -0
- package/src/views/CanvasEditor/components/LibraryItem.d.ts.map +1 -0
- package/src/views/CanvasEditor/components/LibraryItem.js +43 -0
- package/src/views/CanvasEditor/components/PrivacySettingsSection.d.ts +15 -0
- package/src/views/CanvasEditor/components/PrivacySettingsSection.d.ts.map +1 -0
- package/src/views/CanvasEditor/components/PrivacySettingsSection.js +63 -0
- package/src/views/CanvasEditor/components/index.d.ts +21 -0
- package/src/views/CanvasEditor/components/index.d.ts.map +1 -0
- package/src/views/CanvasEditor/components/index.js +12 -0
- package/src/views/CanvasEditor/hooks/index.d.ts +10 -0
- package/src/views/CanvasEditor/hooks/index.d.ts.map +1 -0
- package/src/views/CanvasEditor/hooks/index.js +9 -0
- package/src/views/CanvasEditor/hooks/useHeroBlock.d.ts +8 -0
- package/src/views/CanvasEditor/hooks/useHeroBlock.d.ts.map +1 -0
- package/src/views/CanvasEditor/hooks/useHeroBlock.js +79 -0
- package/src/views/CanvasEditor/hooks/useKeyboardShortcuts.d.ts +3 -0
- package/src/views/CanvasEditor/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/src/views/CanvasEditor/hooks/useKeyboardShortcuts.js +114 -0
- package/src/views/CanvasEditor/hooks/usePostLoader.d.ts +5 -0
- package/src/views/CanvasEditor/hooks/usePostLoader.d.ts.map +1 -0
- package/src/views/CanvasEditor/hooks/usePostLoader.js +32 -0
- package/src/views/CanvasEditor/hooks/useRegisteredBlocks.d.ts +2 -0
- package/src/views/CanvasEditor/hooks/useRegisteredBlocks.d.ts.map +1 -0
- package/src/views/CanvasEditor/hooks/useRegisteredBlocks.js +47 -0
- package/src/views/CanvasEditor/hooks/useUnsavedChanges.d.ts +25 -0
- package/src/views/CanvasEditor/hooks/useUnsavedChanges.d.ts.map +1 -0
- package/src/views/CanvasEditor/hooks/useUnsavedChanges.js +285 -0
- package/src/views/CanvasEditor/index.d.ts +16 -0
- package/src/views/CanvasEditor/index.d.ts.map +1 -0
- package/src/views/CanvasEditor/index.js +9 -0
- package/src/views/PostManager/EmptyState.d.ts +10 -0
- package/src/views/PostManager/EmptyState.d.ts.map +1 -0
- package/src/views/PostManager/EmptyState.js +12 -0
- package/src/views/PostManager/PostActionsMenu.d.ts +12 -0
- package/src/views/PostManager/PostActionsMenu.d.ts.map +1 -0
- package/src/views/PostManager/PostActionsMenu.js +58 -0
- package/src/views/PostManager/PostCards.d.ts +15 -0
- package/src/views/PostManager/PostCards.d.ts.map +1 -0
- package/src/views/PostManager/PostCards.js +79 -0
- package/src/views/PostManager/PostFilters.d.ts +16 -0
- package/src/views/PostManager/PostFilters.d.ts.map +1 -0
- package/src/views/PostManager/PostFilters.js +10 -0
- package/src/views/PostManager/PostManagerView.d.ts +11 -0
- package/src/views/PostManager/PostManagerView.d.ts.map +1 -0
- package/src/views/PostManager/PostManagerView.js +174 -0
- package/src/views/PostManager/PostStats.d.ts +11 -0
- package/src/views/PostManager/PostStats.d.ts.map +1 -0
- package/src/views/PostManager/PostStats.js +46 -0
- package/src/views/PostManager/PostTable.d.ts +15 -0
- package/src/views/PostManager/PostTable.d.ts.map +1 -0
- package/src/views/PostManager/PostTable.js +79 -0
- package/src/views/PostManager/index.d.ts +12 -0
- package/src/views/PostManager/index.d.ts.map +1 -0
- package/src/views/PostManager/index.js +11 -0
- package/src/views/Preview/PreviewBridgeView.d.ts +12 -0
- package/src/views/Preview/PreviewBridgeView.d.ts.map +1 -0
- package/src/views/Preview/PreviewBridgeView.js +11 -0
- package/src/views/Preview/index.d.ts +6 -0
- package/src/views/Preview/index.d.ts.map +1 -0
- package/src/views/Preview/index.js +4 -0
- package/src/views/Settings/SettingsView.d.ts +10 -0
- package/src/views/Settings/SettingsView.d.ts.map +1 -0
- package/src/views/Settings/SettingsView.js +111 -0
- package/src/views/Settings/index.d.ts +6 -0
- package/src/views/Settings/index.d.ts.map +1 -0
- package/src/views/Settings/index.js +4 -0
- package/src/views/SlugSEO/SlugSEOManagerView.d.ts +12 -0
- package/src/views/SlugSEO/SlugSEOManagerView.d.ts.map +1 -0
- package/src/views/SlugSEO/SlugSEOManagerView.js +11 -0
- package/src/views/SlugSEO/index.d.ts +6 -0
- package/src/views/SlugSEO/index.d.ts.map +1 -0
- package/src/views/SlugSEO/index.js +4 -0
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Block Wrapper Component
|
|
3
|
+
* Provides hover controls (Delete, Move, Settings) for each block
|
|
4
|
+
*/
|
|
5
|
+
'use client';
|
|
6
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
import { useState, useEffect, useRef } from 'react';
|
|
8
|
+
import { Plus, Trash2, ChevronUp, ChevronDown, Settings2, GripVertical, Copy } from 'lucide-react';
|
|
9
|
+
import { blockRegistry } from '../../registry/BlockRegistry';
|
|
10
|
+
import { getChildBlocks, isContainerBlock } from '../../lib/utils/blockHelpers';
|
|
11
|
+
import { useEditor } from '../../state/EditorContext';
|
|
12
|
+
export function BlockWrapper({ block, onUpdate, onDelete, onMoveUp, onMoveDown, allBlocks = [], }) {
|
|
13
|
+
const [isHovered, setIsHovered] = useState(false);
|
|
14
|
+
const [isControlsHovered, setIsControlsHovered] = useState(false);
|
|
15
|
+
const [showControls, setShowControls] = useState(false);
|
|
16
|
+
const [isSelectingText, setIsSelectingText] = useState(false);
|
|
17
|
+
const [showSettingsMenu, setShowSettingsMenu] = useState(false);
|
|
18
|
+
const hideTimeoutRef = useRef(null);
|
|
19
|
+
const settingsMenuRef = useRef(null);
|
|
20
|
+
const { helpers, state, dispatch } = useEditor();
|
|
21
|
+
const blockDefinition = blockRegistry.get(block.type);
|
|
22
|
+
// Check if this is a container block
|
|
23
|
+
const isContainer = isContainerBlock(block, blockRegistry);
|
|
24
|
+
// Get child blocks - if children are Block objects, use them directly
|
|
25
|
+
const childBlocks = isContainer && block.children && Array.isArray(block.children) && block.children.length > 0
|
|
26
|
+
? (typeof block.children[0] === 'object'
|
|
27
|
+
? block.children
|
|
28
|
+
: getChildBlocks(block, state.blocks))
|
|
29
|
+
: [];
|
|
30
|
+
// Handle delayed hide with timeout
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
const shouldShow = isHovered || isControlsHovered;
|
|
33
|
+
if (shouldShow) {
|
|
34
|
+
// Clear any pending hide timeout
|
|
35
|
+
if (hideTimeoutRef.current) {
|
|
36
|
+
clearTimeout(hideTimeoutRef.current);
|
|
37
|
+
hideTimeoutRef.current = null;
|
|
38
|
+
}
|
|
39
|
+
// Show immediately
|
|
40
|
+
setShowControls(true);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
// Delay hiding by 500ms
|
|
44
|
+
hideTimeoutRef.current = setTimeout(() => {
|
|
45
|
+
setShowControls(false);
|
|
46
|
+
}, 500);
|
|
47
|
+
}
|
|
48
|
+
return () => {
|
|
49
|
+
if (hideTimeoutRef.current) {
|
|
50
|
+
clearTimeout(hideTimeoutRef.current);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}, [isHovered, isControlsHovered]);
|
|
54
|
+
if (!blockDefinition) {
|
|
55
|
+
return (_jsx("div", { className: "p-4 border border-red-300 dark:border-red-700 rounded-2xl bg-red-50 dark:bg-red-900/20", children: _jsxs("p", { className: "text-sm text-red-600 dark:text-red-400", children: ["Unknown block type: ", block.type] }) }));
|
|
56
|
+
}
|
|
57
|
+
const EditComponent = blockDefinition.components.Edit;
|
|
58
|
+
const handleDragStart = (e) => {
|
|
59
|
+
// Check if user is selecting text - if so, prevent dragging
|
|
60
|
+
const selection = window.getSelection();
|
|
61
|
+
if (selection && selection.toString().length > 0) {
|
|
62
|
+
e.preventDefault();
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
// Prevent dragging if user was selecting text
|
|
66
|
+
if (isSelectingText) {
|
|
67
|
+
e.preventDefault();
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
// Only allow dragging when the block is focused/selected (hovered)
|
|
71
|
+
if (!isHovered && !showControls) {
|
|
72
|
+
e.preventDefault();
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
// Stop propagation to prevent parent containers from also handling the drag
|
|
76
|
+
e.stopPropagation();
|
|
77
|
+
console.log('[BlockWrapper] Drag Start:', {
|
|
78
|
+
blockId: block.id,
|
|
79
|
+
blockType: block.type,
|
|
80
|
+
blockData: block.data,
|
|
81
|
+
isContainer,
|
|
82
|
+
hasChildren: isContainer && childBlocks.length > 0,
|
|
83
|
+
});
|
|
84
|
+
e.dataTransfer.setData('block-id', block.id);
|
|
85
|
+
e.dataTransfer.setData('block-type', block.type);
|
|
86
|
+
e.dataTransfer.effectAllowed = 'move';
|
|
87
|
+
e.dataTransfer.setData('text/plain', ''); // Required for Firefox
|
|
88
|
+
// Store in a way that persists across components
|
|
89
|
+
if (typeof window !== 'undefined') {
|
|
90
|
+
window.__DRAGGED_BLOCK_ID__ = block.id;
|
|
91
|
+
console.log('[BlockWrapper] Stored global dragged block ID:', block.id);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
// Track text selection
|
|
95
|
+
const handleMouseDown = (e) => {
|
|
96
|
+
// Check if clicking on an input, textarea, or contentEditable element
|
|
97
|
+
const target = e.target;
|
|
98
|
+
const isEditableElement = target.tagName === 'INPUT' ||
|
|
99
|
+
target.tagName === 'TEXTAREA' ||
|
|
100
|
+
target.isContentEditable ||
|
|
101
|
+
target.closest('input, textarea, [contenteditable="true"]');
|
|
102
|
+
if (isEditableElement) {
|
|
103
|
+
setIsSelectingText(true);
|
|
104
|
+
// Reset after mouse up
|
|
105
|
+
const handleMouseUp = () => {
|
|
106
|
+
setTimeout(() => {
|
|
107
|
+
const selection = window.getSelection();
|
|
108
|
+
if (!selection || selection.toString().length === 0) {
|
|
109
|
+
setIsSelectingText(false);
|
|
110
|
+
}
|
|
111
|
+
}, 100);
|
|
112
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
113
|
+
};
|
|
114
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
// For hero blocks, only show controls when hovering over the image container
|
|
118
|
+
const isHeroBlock = block.type === 'hero';
|
|
119
|
+
const wrapperRef = useRef(null);
|
|
120
|
+
const handleMouseMove = (e) => {
|
|
121
|
+
if (isHeroBlock) {
|
|
122
|
+
// For hero blocks, check if mouse is actually over the image container element
|
|
123
|
+
const target = e.target;
|
|
124
|
+
// Check if we're over the image container (using data attribute for more reliable detection)
|
|
125
|
+
const imageContainer = target.closest('[data-hero-image-container]');
|
|
126
|
+
// Check if we're over an Image component (from plugin-images)
|
|
127
|
+
const imageElement = target.closest('[data-image-id]');
|
|
128
|
+
// Check if we're directly over an img tag
|
|
129
|
+
const isImgTag = target.tagName === 'IMG';
|
|
130
|
+
const isOverImage = !!(imageContainer || imageElement || isImgTag);
|
|
131
|
+
setIsHovered(isOverImage);
|
|
132
|
+
}
|
|
133
|
+
else if (!isHeroBlock) {
|
|
134
|
+
setIsHovered(true);
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
const handleMouseEnter = (e) => {
|
|
138
|
+
if (!isHeroBlock) {
|
|
139
|
+
setIsHovered(true);
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
// For hero blocks, check position on enter
|
|
143
|
+
handleMouseMove(e);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
const handleMouseLeave = () => {
|
|
147
|
+
setIsHovered(false);
|
|
148
|
+
};
|
|
149
|
+
// Close settings menu when clicking outside
|
|
150
|
+
useEffect(() => {
|
|
151
|
+
function handleClickOutside(event) {
|
|
152
|
+
if (settingsMenuRef.current && !settingsMenuRef.current.contains(event.target)) {
|
|
153
|
+
setShowSettingsMenu(false);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
if (showSettingsMenu) {
|
|
157
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
158
|
+
}
|
|
159
|
+
return () => {
|
|
160
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
|
161
|
+
};
|
|
162
|
+
}, [showSettingsMenu]);
|
|
163
|
+
// Generate a unique block ID
|
|
164
|
+
const generateBlockId = () => {
|
|
165
|
+
if (typeof crypto !== 'undefined' && crypto.randomUUID) {
|
|
166
|
+
return crypto.randomUUID();
|
|
167
|
+
}
|
|
168
|
+
return `block-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
169
|
+
};
|
|
170
|
+
// Clone a block with new IDs (recursive for nested blocks)
|
|
171
|
+
const cloneBlock = (blockToClone) => {
|
|
172
|
+
const cloned = Object.assign(Object.assign({}, blockToClone), { id: generateBlockId(), data: Object.assign({}, blockToClone.data), meta: blockToClone.meta ? Object.assign({}, blockToClone.meta) : undefined });
|
|
173
|
+
// Handle children if they exist
|
|
174
|
+
if (blockToClone.children) {
|
|
175
|
+
if (Array.isArray(blockToClone.children) && blockToClone.children.length > 0) {
|
|
176
|
+
// Check if children are Block objects or IDs
|
|
177
|
+
if (typeof blockToClone.children[0] === 'object') {
|
|
178
|
+
cloned.children = blockToClone.children.map(cloneBlock);
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
// If children are IDs, we need to find and clone the actual blocks
|
|
182
|
+
const childBlocks = getChildBlocks(blockToClone, allBlocks.length > 0 ? allBlocks : state.blocks);
|
|
183
|
+
cloned.children = childBlocks.map(cloneBlock);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
return cloned;
|
|
188
|
+
};
|
|
189
|
+
const handleCopy = () => {
|
|
190
|
+
const clonedBlock = cloneBlock(block);
|
|
191
|
+
// Store in localStorage for persistence across components
|
|
192
|
+
if (typeof window !== 'undefined') {
|
|
193
|
+
localStorage.setItem('__BLOG_EDITOR_COPIED_BLOCK__', JSON.stringify(clonedBlock));
|
|
194
|
+
}
|
|
195
|
+
setShowSettingsMenu(false);
|
|
196
|
+
};
|
|
197
|
+
// Store block ID when hovering for paste context
|
|
198
|
+
useEffect(() => {
|
|
199
|
+
if (isHovered || showControls) {
|
|
200
|
+
if (typeof window !== 'undefined') {
|
|
201
|
+
window.__BLOG_EDITOR_HOVERED_BLOCK_ID__ = block.id;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}, [isHovered, showControls, block.id]);
|
|
205
|
+
return (_jsxs("div", { ref: wrapperRef, className: "group relative", onMouseEnter: handleMouseEnter, onMouseMove: isHeroBlock ? handleMouseMove : undefined, onMouseLeave: handleMouseLeave, onMouseDown: handleMouseDown, draggable: isHovered || showControls, onDragStart: handleDragStart, "data-block-wrapper": true, "data-block-id": block.id, children: [_jsxs("div", { className: `absolute -left-16 top-1/2 -translate-y-1/2 flex flex-col gap-2 transition-all duration-200 ${showControls ? 'opacity-100' : 'opacity-0 pointer-events-none'}`, onMouseEnter: () => setIsControlsHovered(true), onMouseLeave: () => setIsControlsHovered(false), children: [_jsx("button", { className: "p-2 text-neutral-500 dark:text-neutral-400 hover:text-primary dark:hover:text-primary bg-white dark:bg-neutral-800 rounded-lg shadow-sm border border-neutral-200 dark:border-neutral-700 hover:border-primary dark:hover:border-primary/50 transition-colors", title: "Add block above", children: _jsx(Plus, { size: 14 }) }), onMoveUp && (_jsx("button", { onClick: onMoveUp, className: "p-2 text-neutral-500 dark:text-neutral-400 hover:text-neutral-950 dark:hover:text-white bg-white dark:bg-neutral-800 rounded-lg shadow-sm border border-neutral-200 dark:border-neutral-700 hover:border-neutral-300 dark:hover:border-neutral-600 transition-colors", title: "Move up", children: _jsx(ChevronUp, { size: 14 }) })), onMoveDown && (_jsx("button", { onClick: onMoveDown, className: "p-2 text-neutral-500 dark:text-neutral-400 hover:text-neutral-950 dark:hover:text-white bg-white dark:bg-neutral-800 rounded-lg shadow-sm border border-neutral-200 dark:border-neutral-700 hover:border-neutral-300 dark:hover:border-neutral-600 transition-colors", title: "Move down", children: _jsx(ChevronDown, { size: 14 }) })), _jsx("button", { onClick: onDelete, className: "p-2 text-neutral-500 dark:text-neutral-400 hover:text-red-500 dark:hover:text-red-400 bg-white dark:bg-neutral-800 rounded-lg shadow-sm border border-neutral-200 dark:border-neutral-700 hover:border-red-500 dark:hover:border-red-500/50 transition-colors", title: "Delete block", children: _jsx(Trash2, { size: 14 }) })] }), _jsx("div", { className: `mb-2 transition-all relative ${isHovered || showControls || showSettingsMenu
|
|
206
|
+
? 'opacity-100 translate-y-0'
|
|
207
|
+
: 'opacity-0 -translate-y-2 pointer-events-none'}`, onMouseEnter: () => setIsHovered(true), onMouseLeave: () => setIsHovered(false), children: _jsxs("div", { className: "flex items-center justify-between px-2 py-1.5 rounded-lg backdrop-blur-sm border bg-neutral-50/95 dark:bg-neutral-800/95 border-neutral-200 dark:border-neutral-800", children: [_jsxs("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [_jsx(GripVertical, { size: 12, className: "cursor-grab active:cursor-grabbing shrink-0 text-neutral-400 dark:text-neutral-500" }), _jsx("span", { className: "text-[10px] font-black uppercase tracking-wider shrink-0 text-neutral-500 dark:text-neutral-400", children: blockDefinition.name }), block.type === 'columns' && (() => {
|
|
208
|
+
const columnCount = block.data.columnCount;
|
|
209
|
+
const layout = block.data.layout;
|
|
210
|
+
// Determine number of columns
|
|
211
|
+
let numColumns;
|
|
212
|
+
if (columnCount !== undefined && columnCount > 0) {
|
|
213
|
+
numColumns = columnCount;
|
|
214
|
+
}
|
|
215
|
+
else if (layout) {
|
|
216
|
+
// Legacy layout system
|
|
217
|
+
const layoutMap = {
|
|
218
|
+
'50-50': 2,
|
|
219
|
+
'33-66': 2,
|
|
220
|
+
'66-33': 2,
|
|
221
|
+
'25-25-25-25': 4,
|
|
222
|
+
'25-75': 2,
|
|
223
|
+
'75-25': 2,
|
|
224
|
+
};
|
|
225
|
+
numColumns = layoutMap[layout] || 2;
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
numColumns = 2;
|
|
229
|
+
}
|
|
230
|
+
// Get column widths
|
|
231
|
+
const storedWidths = block.data.columnWidths;
|
|
232
|
+
const columnWidths = storedWidths && storedWidths.length === numColumns
|
|
233
|
+
? storedWidths
|
|
234
|
+
: Array(numColumns).fill(Math.floor(100 / numColumns));
|
|
235
|
+
return (_jsx("div", { className: "flex items-center gap-1.5 ml-4 flex-1 min-w-0", children: Array.from({ length: numColumns }).map((_, colIndex) => (_jsxs("div", { className: "flex items-center gap-1", children: [_jsx("input", { type: "number", min: "10", max: "90", step: "1", value: columnWidths[colIndex] || 50, onChange: (e) => {
|
|
236
|
+
const newWidth = parseInt(e.target.value) || 50;
|
|
237
|
+
const newWidths = [...columnWidths];
|
|
238
|
+
newWidths[colIndex] = Math.max(10, Math.min(90, newWidth));
|
|
239
|
+
// Normalize remaining columns to sum to 100
|
|
240
|
+
const remainingTotal = newWidths.reduce((sum, w, i) => i === colIndex ? sum : sum + w, 0);
|
|
241
|
+
const remainingTarget = 100 - newWidths[colIndex];
|
|
242
|
+
if (remainingTotal > 0 && remainingTarget > 0) {
|
|
243
|
+
const scale = remainingTarget / remainingTotal;
|
|
244
|
+
newWidths.forEach((w, i) => {
|
|
245
|
+
if (i !== colIndex) {
|
|
246
|
+
newWidths[i] = Math.round(w * scale);
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
// Ensure sum is exactly 100
|
|
251
|
+
const finalTotal = newWidths.reduce((sum, w) => sum + w, 0);
|
|
252
|
+
if (finalTotal !== 100) {
|
|
253
|
+
const diff = 100 - finalTotal;
|
|
254
|
+
const lastIndex = newWidths.length - 1;
|
|
255
|
+
newWidths[lastIndex] = Math.max(10, newWidths[lastIndex] + diff);
|
|
256
|
+
}
|
|
257
|
+
onUpdate(Object.assign(Object.assign({}, block.data), { columnWidths: newWidths, layout: undefined }));
|
|
258
|
+
}, onClick: (e) => e.stopPropagation(), className: "w-12 text-[10px] font-bold bg-white dark:bg-neutral-900/50 border border-neutral-300 dark:border-neutral-700 px-1.5 py-0.5 rounded outline-none focus:border-primary transition-all dark:text-neutral-100 text-center" }), _jsx("span", { className: "text-[9px] text-neutral-400 dark:text-neutral-500", children: "%" })] }, colIndex))) }));
|
|
259
|
+
})()] }), _jsxs("div", { className: "relative shrink-0 z-20", ref: settingsMenuRef, children: [_jsx("button", { onClick: (e) => {
|
|
260
|
+
e.stopPropagation();
|
|
261
|
+
setShowSettingsMenu(!showSettingsMenu);
|
|
262
|
+
}, className: "p-1 rounded transition-colors text-neutral-400 dark:text-neutral-500 hover:text-neutral-950 dark:hover:text-white hover:bg-neutral-100 dark:hover:bg-neutral-800 relative z-20", title: "Block settings", children: _jsx(Settings2, { size: 12 }) }), showSettingsMenu && (_jsx("div", { className: "absolute right-0 top-full mt-1 w-40 bg-white dark:bg-neutral-900 border border-neutral-300 dark:border-neutral-700 rounded-lg shadow-xl z-20 overflow-hidden", children: _jsxs("button", { onClick: (e) => {
|
|
263
|
+
e.stopPropagation();
|
|
264
|
+
handleCopy();
|
|
265
|
+
}, className: "w-full flex items-center gap-2 px-3 py-2 text-xs font-bold text-neutral-600 dark:text-neutral-400 hover:bg-neutral-100 dark:hover:bg-neutral-800 transition-colors", children: [_jsx(Copy, { size: 14 }), _jsx("span", { children: "Copy" })] }) }))] })] }) }), _jsx("div", { className: `relative rounded-xl border-2 transition-all ${showControls
|
|
266
|
+
? 'border-primary/60 dark:border-primary/40 bg-primary/5 dark:bg-primary/10'
|
|
267
|
+
: 'border-neutral-200 dark:border-neutral-700 bg-transparent'}`, children: _jsx("div", { className: "relative", style: { userSelect: 'text' }, children: isContainer && (block.type === 'section' || block.type === 'columns') ? (_jsx(EditComponent, { block: block, onUpdate: onUpdate, onDelete: onDelete, isSelected: isHovered, childBlocks: childBlocks, onChildBlockAdd: (type, index, containerId) => {
|
|
268
|
+
helpers.addBlock(type, index, containerId || block.id);
|
|
269
|
+
}, onChildBlockUpdate: (id, data, containerId) => {
|
|
270
|
+
helpers.updateBlock(id, data);
|
|
271
|
+
}, onChildBlockDelete: (id, containerId) => {
|
|
272
|
+
helpers.deleteBlock(id);
|
|
273
|
+
}, onChildBlockMove: (id, newIndex, containerId) => {
|
|
274
|
+
helpers.moveBlock(id, newIndex, containerId || block.id);
|
|
275
|
+
} })) : (_jsx(EditComponent, { block: block, onUpdate: onUpdate, onDelete: onDelete, isSelected: isHovered })) }) })] }));
|
|
276
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface CanvasEditorViewProps {
|
|
2
|
+
postId?: string;
|
|
3
|
+
siteId: string;
|
|
4
|
+
locale: string;
|
|
5
|
+
/** Enable dark mode for content area and wrappers (default: true) */
|
|
6
|
+
darkMode?: boolean;
|
|
7
|
+
/** Background colors for the editor */
|
|
8
|
+
backgroundColors?: {
|
|
9
|
+
light: string;
|
|
10
|
+
dark?: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare function CanvasEditorView({ postId, darkMode, backgroundColors: propsBackgroundColors, siteId, locale }: CanvasEditorViewProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=CanvasEditorView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CanvasEditorView.d.ts","sourceRoot":"","sources":["CanvasEditorView.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,qBAAqB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,qEAAqE;IACrE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uCAAuC;IACvC,gBAAgB,CAAC,EAAE;QACf,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;CACL;AAED,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,qBAAqB,2CAsTpI"}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState, useEffect, useRef } from 'react';
|
|
4
|
+
import { useEditor } from '../../state/EditorContext';
|
|
5
|
+
import { EditorHeader } from './EditorHeader';
|
|
6
|
+
import { ErrorBanner } from './components/ErrorBanner';
|
|
7
|
+
import { EditorLibrary } from './components/EditorLibrary';
|
|
8
|
+
import { EditorCanvas } from './components/EditorCanvas';
|
|
9
|
+
import { EditorSidebar } from './components/EditorSidebar';
|
|
10
|
+
import { usePostLoader, useHeroBlock, useRegisteredBlocks, useKeyboardShortcuts, useUnsavedChanges } from './hooks';
|
|
11
|
+
export function CanvasEditorView({ postId, darkMode, backgroundColors: propsBackgroundColors, siteId, locale }) {
|
|
12
|
+
const { state, helpers, dispatch, darkMode: contextDarkMode, backgroundColors: contextBackgroundColors, canUndo, canRedo } = useEditor();
|
|
13
|
+
const effectiveDarkMode = darkMode !== undefined ? darkMode : contextDarkMode;
|
|
14
|
+
const effectiveBackgroundColors = propsBackgroundColors || contextBackgroundColors;
|
|
15
|
+
const [isSidebarOpen, setSidebarOpen] = useState(true);
|
|
16
|
+
const [isLibraryOpen, setLibraryOpen] = useState(true);
|
|
17
|
+
const [isPreviewMode, setIsPreviewMode] = useState(false);
|
|
18
|
+
const [isSaving, setIsSaving] = useState(false);
|
|
19
|
+
const [saveError, setSaveError] = useState(null);
|
|
20
|
+
// Get registered blocks
|
|
21
|
+
const registeredBlocks = useRegisteredBlocks();
|
|
22
|
+
// Hero block management
|
|
23
|
+
const { heroBlock, setHeroBlock, heroBlockDefinition } = useHeroBlock(state, registeredBlocks);
|
|
24
|
+
// Post loading
|
|
25
|
+
const { isLoadingPost } = usePostLoader(postId, state.postId, (post) => {
|
|
26
|
+
helpers.loadPost(post);
|
|
27
|
+
// After loading, ensure we're marked as clean
|
|
28
|
+
// Use setTimeout to ensure this runs after the reducer has processed LOAD_POST
|
|
29
|
+
setTimeout(() => {
|
|
30
|
+
dispatch({ type: 'MARK_CLEAN' });
|
|
31
|
+
}, 0);
|
|
32
|
+
}, () => setHeroBlock(null));
|
|
33
|
+
// Track if we just loaded a post to prevent marking as dirty during cleanup
|
|
34
|
+
const justLoadedRef = useRef(false);
|
|
35
|
+
const previousIsLoadingRef = useRef(false);
|
|
36
|
+
const loadingCleanupTimerRef = useRef(null);
|
|
37
|
+
// Mark when post loading completes and ensure it stays clean after all effects
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
// Detect when loading just finished (was loading, now not loading, and we have a postId)
|
|
40
|
+
const loadingJustFinished = previousIsLoadingRef.current && !isLoadingPost && state.postId;
|
|
41
|
+
if (loadingJustFinished) {
|
|
42
|
+
justLoadedRef.current = true;
|
|
43
|
+
// Clear any existing cleanup timer
|
|
44
|
+
if (loadingCleanupTimerRef.current) {
|
|
45
|
+
clearTimeout(loadingCleanupTimerRef.current);
|
|
46
|
+
}
|
|
47
|
+
// Wait for all effects to complete, then ensure we're marked as clean
|
|
48
|
+
// Use multiple animation frames + setTimeout to ensure all effects have run
|
|
49
|
+
requestAnimationFrame(() => {
|
|
50
|
+
requestAnimationFrame(() => {
|
|
51
|
+
loadingCleanupTimerRef.current = setTimeout(() => {
|
|
52
|
+
// Force mark as clean after loading - this ensures cleanup effects don't leave us dirty
|
|
53
|
+
console.log('[CanvasEditorView] Post loading complete - ensuring clean state');
|
|
54
|
+
dispatch({ type: 'MARK_CLEAN' });
|
|
55
|
+
justLoadedRef.current = false;
|
|
56
|
+
loadingCleanupTimerRef.current = null;
|
|
57
|
+
}, 500); // Delay to ensure all effects complete
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
// Update ref
|
|
62
|
+
previousIsLoadingRef.current = isLoadingPost;
|
|
63
|
+
return () => {
|
|
64
|
+
if (loadingCleanupTimerRef.current) {
|
|
65
|
+
clearTimeout(loadingCleanupTimerRef.current);
|
|
66
|
+
loadingCleanupTimerRef.current = null;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}, [isLoadingPost, state.postId, dispatch]);
|
|
70
|
+
// Keyboard shortcuts
|
|
71
|
+
useKeyboardShortcuts(state, dispatch, canUndo, canRedo, helpers.undo, helpers.redo);
|
|
72
|
+
// Unsaved changes warning and auto-save
|
|
73
|
+
const { autoSaveEnabled, setAutoSaveEnabled, countdown, saveStatus } = useUnsavedChanges({
|
|
74
|
+
state,
|
|
75
|
+
isDirty: state.isDirty,
|
|
76
|
+
onSave: async () => {
|
|
77
|
+
// Preserve current status: if already published, keep it published
|
|
78
|
+
// Otherwise save as draft
|
|
79
|
+
const shouldPublish = state.status === 'published';
|
|
80
|
+
await handleSave(shouldPublish);
|
|
81
|
+
},
|
|
82
|
+
heroBlock,
|
|
83
|
+
postId: state.postId,
|
|
84
|
+
});
|
|
85
|
+
// Listen for hero title updates from HeroBlock (if it dispatches events)
|
|
86
|
+
useEffect(() => {
|
|
87
|
+
const handleHeroTitleUpdate = (e) => {
|
|
88
|
+
dispatch({ type: 'SET_TITLE', payload: e.detail });
|
|
89
|
+
};
|
|
90
|
+
window.addEventListener('hero-title-update', handleHeroTitleUpdate);
|
|
91
|
+
return () => window.removeEventListener('hero-title-update', handleHeroTitleUpdate);
|
|
92
|
+
}, [dispatch]);
|
|
93
|
+
// Remove any hero blocks from the content blocks array
|
|
94
|
+
// Note: This effect will mark as dirty, but the loading cleanup effect will fix it
|
|
95
|
+
useEffect(() => {
|
|
96
|
+
const heroBlocksInContent = state.blocks.filter(b => b.type === 'hero');
|
|
97
|
+
if (heroBlocksInContent.length > 0) {
|
|
98
|
+
heroBlocksInContent.forEach(block => {
|
|
99
|
+
dispatch({ type: 'DELETE_BLOCK', payload: { id: block.id } });
|
|
100
|
+
});
|
|
101
|
+
// Don't mark as clean here - let the loading cleanup effect handle it
|
|
102
|
+
// This ensures we wait for all effects to complete before marking clean
|
|
103
|
+
}
|
|
104
|
+
}, [state.blocks, dispatch]);
|
|
105
|
+
// Filter out hero blocks from content blocks
|
|
106
|
+
const contentBlocks = state.blocks.filter(b => b.type !== 'hero');
|
|
107
|
+
// Handler to add block at the bottom when clicking (not dragging)
|
|
108
|
+
const handleAddBlockAtBottom = (blockType) => {
|
|
109
|
+
// Add at the end of content blocks (excluding hero)
|
|
110
|
+
helpers.addBlock(blockType, contentBlocks.length, undefined);
|
|
111
|
+
};
|
|
112
|
+
// Handle save
|
|
113
|
+
const handleSave = async (publish) => {
|
|
114
|
+
setIsSaving(true);
|
|
115
|
+
setSaveError(null);
|
|
116
|
+
try {
|
|
117
|
+
// Status should already be set in EditorHeader, but verify and log
|
|
118
|
+
console.log('[CanvasEditorView] onSave called with publish:', publish, 'current status:', state.status);
|
|
119
|
+
// Only change status if explicitly requested (publish is true or false)
|
|
120
|
+
// If publish is undefined, preserve the current status (used for autosave)
|
|
121
|
+
if (publish === true && state.status !== 'published') {
|
|
122
|
+
console.warn('[CanvasEditorView] Status mismatch! Setting to published...');
|
|
123
|
+
dispatch({ type: 'SET_STATUS', payload: 'published' });
|
|
124
|
+
await new Promise(resolve => setTimeout(resolve, 100));
|
|
125
|
+
}
|
|
126
|
+
else if (publish === false && state.status !== 'draft' && state.status !== 'published') {
|
|
127
|
+
// Only set to draft if not already published (preserve published status)
|
|
128
|
+
// This prevents autosave from changing published posts back to draft
|
|
129
|
+
console.warn('[CanvasEditorView] Status mismatch! Setting to draft...');
|
|
130
|
+
dispatch({ type: 'SET_STATUS', payload: 'draft' });
|
|
131
|
+
await new Promise(resolve => setTimeout(resolve, 100));
|
|
132
|
+
}
|
|
133
|
+
console.log('[CanvasEditorView] Final status before save:', state.status);
|
|
134
|
+
// Pass hero block to save function so it can be included in the saved data
|
|
135
|
+
await helpers.save(heroBlock);
|
|
136
|
+
setIsSaving(false);
|
|
137
|
+
}
|
|
138
|
+
catch (error) {
|
|
139
|
+
console.error('[CanvasEditorView] Save error:', error);
|
|
140
|
+
// Extract and format user-friendly error message
|
|
141
|
+
let errorMessage = error.message || 'Failed to save post';
|
|
142
|
+
// Make error messages more user-friendly
|
|
143
|
+
if (errorMessage.includes('Missing required fields')) {
|
|
144
|
+
errorMessage = errorMessage.replace('Missing required fields for publishing:', 'To publish, please fill in:');
|
|
145
|
+
}
|
|
146
|
+
else if (errorMessage.includes('All required fields')) {
|
|
147
|
+
errorMessage = 'To publish, please fill in all required fields: summary, featured image, category, and content.';
|
|
148
|
+
}
|
|
149
|
+
else if (errorMessage.includes('Unauthorized')) {
|
|
150
|
+
errorMessage = 'You are not authorized to save this post. Please log in again.';
|
|
151
|
+
}
|
|
152
|
+
else if (errorMessage.includes('Failed to save')) {
|
|
153
|
+
errorMessage = 'Unable to save the post. Please check your connection and try again.';
|
|
154
|
+
}
|
|
155
|
+
setSaveError(errorMessage);
|
|
156
|
+
setIsSaving(false); // Always reset saving state on error
|
|
157
|
+
throw error; // Re-throw so EditorHeader can handle it
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
// Handle hero block update
|
|
161
|
+
const handleHeroBlockUpdate = (data) => {
|
|
162
|
+
if (!heroBlock)
|
|
163
|
+
return;
|
|
164
|
+
setHeroBlock(Object.assign(Object.assign({}, heroBlock), { data: Object.assign(Object.assign({}, heroBlock.data), data) }));
|
|
165
|
+
// Sync title to editor state
|
|
166
|
+
if (data.title !== undefined && typeof data.title === 'string') {
|
|
167
|
+
dispatch({ type: 'SET_TITLE', payload: data.title });
|
|
168
|
+
}
|
|
169
|
+
// Sync summary to editor state metadata
|
|
170
|
+
if (data.summary !== undefined && typeof data.summary === 'string') {
|
|
171
|
+
dispatch({
|
|
172
|
+
type: 'SET_METADATA',
|
|
173
|
+
payload: { excerpt: data.summary }
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
// Hero image and featured image are completely independent
|
|
177
|
+
// Do NOT sync hero image to featured image
|
|
178
|
+
// The featured image is a separate thumbnail that the client adjusts independently
|
|
179
|
+
// Sync category to editor state metadata
|
|
180
|
+
if (data.category !== undefined && typeof data.category === 'string') {
|
|
181
|
+
dispatch({
|
|
182
|
+
type: 'SET_METADATA',
|
|
183
|
+
payload: {
|
|
184
|
+
categories: data.category.trim() ? [data.category.trim()] : []
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
// Handle hero block delete/reset
|
|
190
|
+
const handleHeroBlockDelete = () => {
|
|
191
|
+
if (!heroBlock || !heroBlockDefinition)
|
|
192
|
+
return;
|
|
193
|
+
const defaultData = heroBlockDefinition.defaultData || {};
|
|
194
|
+
setHeroBlock(Object.assign(Object.assign({}, heroBlock), { data: Object.assign({}, defaultData) }));
|
|
195
|
+
};
|
|
196
|
+
return (_jsx("div", { className: "h-full rounded-[2.5rem] w-full bg-dashboard-card text-dashboard-text flex flex-col font-sans transition-colors duration-300 overflow-hidden relative", children: _jsxs("main", { className: "flex flex-1 flex-col relative min-h-0", children: [_jsx(ErrorBanner, { error: saveError, onDismiss: () => setSaveError(null) }), _jsx(EditorHeader, { isLibraryOpen: isLibraryOpen, onLibraryToggle: () => setLibraryOpen(!isLibraryOpen), isPreviewMode: isPreviewMode, onPreviewToggle: () => setIsPreviewMode(!isPreviewMode), isSidebarOpen: isSidebarOpen, onSidebarToggle: () => setSidebarOpen(!isSidebarOpen), isSaving: isSaving, onSave: handleSave, onSaveError: (error) => {
|
|
197
|
+
// Format error message for display
|
|
198
|
+
if (error) {
|
|
199
|
+
let formattedError = error;
|
|
200
|
+
if (formattedError.includes('Missing required fields')) {
|
|
201
|
+
formattedError = formattedError.replace('Missing required fields for publishing:', 'To publish, please fill in:');
|
|
202
|
+
}
|
|
203
|
+
setSaveError(formattedError);
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
setSaveError(null);
|
|
207
|
+
}
|
|
208
|
+
}, autoSaveEnabled: autoSaveEnabled, onAutoSaveToggle: setAutoSaveEnabled, isDirty: state.isDirty, autoSaveCountdown: countdown, autoSaveStatus: saveStatus }), _jsxs("div", { className: "flex flex-1 relative overflow-hidden min-h-0 flex-nowrap", children: [!isPreviewMode && (_jsx("aside", { className: `transition-all duration-500 ease-[cubic-bezier(0.4,0,0.2,1)] border-r border-dashboard-border bg-dashboard-sidebar overflow-y-auto overflow-x-hidden h-full ${isLibraryOpen ? 'w-72' : 'w-0 opacity-0 pointer-events-none'}`, children: _jsx(EditorLibrary, { registeredBlocks: registeredBlocks, onAddBlock: handleAddBlockAtBottom }) })), _jsx(EditorCanvas, { isPreviewMode: isPreviewMode, heroBlock: heroBlock, heroBlockDefinition: heroBlockDefinition, contentBlocks: contentBlocks, title: state.title, siteId: siteId, locale: locale, darkMode: effectiveDarkMode, backgroundColors: effectiveBackgroundColors, featuredImage: state.metadata.featuredImage, onTitleChange: (title) => dispatch({ type: 'SET_TITLE', payload: title }), onHeroBlockUpdate: handleHeroBlockUpdate, onHeroBlockDelete: handleHeroBlockDelete, onBlockAdd: (type, index, containerId) => helpers.addBlock(type, index, containerId), onBlockUpdate: (id, data) => helpers.updateBlock(id, data), onBlockDelete: (id) => helpers.deleteBlock(id), onBlockMove: (id, newIndex, containerId) => helpers.moveBlock(id, newIndex, containerId) }), !isPreviewMode && (_jsx("aside", { className: `transition-all duration-500 ease-[cubic-bezier(0.4,0,0.2,1)] border-l border-dashboard-border bg-dashboard-sidebar overflow-y-auto overflow-x-hidden h-full ${isSidebarOpen ? 'w-80' : 'w-0 opacity-0 pointer-events-none'}`, children: _jsx(EditorSidebar, { slug: state.slug, seo: state.seo, metadata: state.metadata, heroBlock: heroBlock, status: state.status, onSEOUpdate: (seo) => dispatch({ type: 'SET_SEO', payload: seo }), onMetadataUpdate: (metadata) => dispatch({ type: 'SET_METADATA', payload: metadata }) }) }))] })] }) }));
|
|
209
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Editor Body Component
|
|
3
|
+
* Primary root container for the editor canvas
|
|
4
|
+
* Acts as the main drop zone for blocks
|
|
5
|
+
*/
|
|
6
|
+
import { Block } from '../../types/block';
|
|
7
|
+
export interface EditorBodyProps {
|
|
8
|
+
blocks: Block[];
|
|
9
|
+
onBlockAdd: (type: string, index: number, containerId?: string) => void;
|
|
10
|
+
onBlockUpdate: (id: string, data: Partial<Block['data']>) => void;
|
|
11
|
+
onBlockDelete: (id: string) => void;
|
|
12
|
+
onBlockMove: (id: string, newIndex: number, containerId?: string) => void;
|
|
13
|
+
/** Enable dark mode for content area and wrappers (default: true) */
|
|
14
|
+
darkMode?: boolean;
|
|
15
|
+
/** Background colors for the editor */
|
|
16
|
+
backgroundColors?: {
|
|
17
|
+
light: string;
|
|
18
|
+
dark?: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export declare function EditorBody({ blocks, onBlockAdd, onBlockUpdate, onBlockDelete, onBlockMove, darkMode, backgroundColors, }: EditorBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=EditorBody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorBody.d.ts","sourceRoot":"","sources":["EditorBody.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,MAAM,WAAW,eAAe;IAC5B,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACxE,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,IAAI,CAAC;IAClE,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1E,qEAAqE;IACrE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uCAAuC;IACvC,gBAAgB,CAAC,EAAE;QACf,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;CACL;AAED,wBAAgB,UAAU,CAAC,EACvB,MAAM,EACN,UAAU,EACV,aAAa,EACb,aAAa,EACb,WAAW,EACX,QAAe,EACf,gBAAgB,GACnB,EAAE,eAAe,2CAuhBjB"}
|