@conloca/cms-spa 0.1.16 → 0.2.1
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/README.md +1 -1
- package/dist/spa/main.css +3725 -3781
- package/dist/ts/App.d.ts +35 -0
- package/dist/ts/App.d.ts.map +1 -0
- package/dist/ts/App.js +53 -0
- package/dist/ts/App.js.map +1 -0
- package/dist/ts/CmsSpaApp.d.ts +13 -0
- package/dist/ts/CmsSpaApp.d.ts.map +1 -0
- package/dist/ts/CmsSpaApp.js +50 -0
- package/dist/ts/CmsSpaApp.js.map +1 -0
- package/dist/ts/components/CMSDashboard.d.ts +2 -0
- package/dist/ts/components/CMSDashboard.d.ts.map +1 -0
- package/dist/ts/components/CMSDashboard.js +21 -0
- package/dist/ts/components/CMSDashboard.js.map +1 -0
- package/dist/ts/components/CMSLayout.d.ts +2 -0
- package/dist/ts/components/CMSLayout.d.ts.map +1 -0
- package/dist/ts/components/CMSLayout.js +15 -0
- package/dist/ts/components/CMSLayout.js.map +1 -0
- package/dist/ts/components/ConlocaLogo.d.ts +2 -0
- package/dist/ts/components/ConlocaLogo.d.ts.map +1 -0
- package/dist/ts/components/ConlocaLogo.js +5 -0
- package/dist/ts/components/ConlocaLogo.js.map +1 -0
- package/dist/ts/components/GitStatusPanel.d.ts +21 -0
- package/dist/ts/components/GitStatusPanel.d.ts.map +1 -0
- package/dist/ts/components/GitStatusPanel.js +74 -0
- package/dist/ts/components/GitStatusPanel.js.map +1 -0
- package/dist/ts/components/MobileTopBar.d.ts +6 -0
- package/dist/ts/components/MobileTopBar.d.ts.map +1 -0
- package/dist/ts/components/MobileTopBar.js +7 -0
- package/dist/ts/components/MobileTopBar.js.map +1 -0
- package/dist/ts/components/Sidebar.d.ts +8 -0
- package/dist/ts/components/Sidebar.d.ts.map +1 -0
- package/dist/ts/components/Sidebar.js +41 -0
- package/dist/ts/components/Sidebar.js.map +1 -0
- package/dist/ts/components/UserAvatar.d.ts +2 -0
- package/dist/ts/components/UserAvatar.d.ts.map +1 -0
- package/dist/ts/components/UserAvatar.js +15 -0
- package/dist/ts/components/UserAvatar.js.map +1 -0
- package/dist/ts/components/cards/DataEntryCard.d.ts +14 -0
- package/dist/ts/components/cards/DataEntryCard.d.ts.map +1 -0
- package/dist/ts/components/cards/DataEntryCard.js +39 -0
- package/dist/ts/components/cards/DataEntryCard.js.map +1 -0
- package/dist/ts/components/cards/SectionCard.d.ts +15 -0
- package/dist/ts/components/cards/SectionCard.d.ts.map +1 -0
- package/dist/ts/components/cards/SectionCard.js +11 -0
- package/dist/ts/components/cards/SectionCard.js.map +1 -0
- package/dist/ts/components/cards/index.d.ts +2 -0
- package/dist/ts/components/cards/index.d.ts.map +1 -0
- package/dist/ts/components/cards/index.js +2 -0
- package/dist/ts/components/cards/index.js.map +1 -0
- package/dist/ts/components/dashboard/RecentActivity.d.ts +2 -0
- package/dist/ts/components/dashboard/RecentActivity.d.ts.map +1 -0
- package/dist/ts/components/dashboard/RecentActivity.js +58 -0
- package/dist/ts/components/dashboard/RecentActivity.js.map +1 -0
- package/dist/ts/components/dialog.d.ts +53 -0
- package/dist/ts/components/dialog.d.ts.map +1 -0
- package/dist/ts/components/dialog.js +57 -0
- package/dist/ts/components/dialog.js.map +1 -0
- package/dist/ts/components/dialogs/ConflictDialog.d.ts +10 -0
- package/dist/ts/components/dialogs/ConflictDialog.d.ts.map +1 -0
- package/dist/ts/components/dialogs/ConflictDialog.js +28 -0
- package/dist/ts/components/dialogs/ConflictDialog.js.map +1 -0
- package/dist/ts/components/dialogs/CreateDataDialog.d.ts +9 -0
- package/dist/ts/components/dialogs/CreateDataDialog.d.ts.map +1 -0
- package/dist/ts/components/dialogs/CreateDataDialog.js +21 -0
- package/dist/ts/components/dialogs/CreateDataDialog.js.map +1 -0
- package/dist/ts/components/dialogs/CreateFolderDialog.d.ts +11 -0
- package/dist/ts/components/dialogs/CreateFolderDialog.d.ts.map +1 -0
- package/dist/ts/components/dialogs/CreateFolderDialog.js +39 -0
- package/dist/ts/components/dialogs/CreateFolderDialog.js.map +1 -0
- package/dist/ts/components/dialogs/CreatePageDialog.d.ts +11 -0
- package/dist/ts/components/dialogs/CreatePageDialog.d.ts.map +1 -0
- package/dist/ts/components/dialogs/CreatePageDialog.js +237 -0
- package/dist/ts/components/dialogs/CreatePageDialog.js.map +1 -0
- package/dist/ts/components/dialogs/DataPropertiesDialog.d.ts +10 -0
- package/dist/ts/components/dialogs/DataPropertiesDialog.d.ts.map +1 -0
- package/dist/ts/components/dialogs/DataPropertiesDialog.js +39 -0
- package/dist/ts/components/dialogs/DataPropertiesDialog.js.map +1 -0
- package/dist/ts/components/dialogs/DeleteConfirmDialog.d.ts +12 -0
- package/dist/ts/components/dialogs/DeleteConfirmDialog.d.ts.map +1 -0
- package/dist/ts/components/dialogs/DeleteConfirmDialog.js +8 -0
- package/dist/ts/components/dialogs/DeleteConfirmDialog.js.map +1 -0
- package/dist/ts/components/dialogs/ErrorModal.d.ts +14 -0
- package/dist/ts/components/dialogs/ErrorModal.d.ts.map +1 -0
- package/dist/ts/components/dialogs/ErrorModal.js +43 -0
- package/dist/ts/components/dialogs/ErrorModal.js.map +1 -0
- package/dist/ts/components/dialogs/FragmentPropertiesDialog.d.ts +12 -0
- package/dist/ts/components/dialogs/FragmentPropertiesDialog.d.ts.map +1 -0
- package/dist/ts/components/dialogs/FragmentPropertiesDialog.js +43 -0
- package/dist/ts/components/dialogs/FragmentPropertiesDialog.js.map +1 -0
- package/dist/ts/components/dialogs/MoveFolderDialog.d.ts +12 -0
- package/dist/ts/components/dialogs/MoveFolderDialog.d.ts.map +1 -0
- package/dist/ts/components/dialogs/MoveFolderDialog.js +69 -0
- package/dist/ts/components/dialogs/MoveFolderDialog.js.map +1 -0
- package/dist/ts/components/dialogs/PageMetadataDialog.d.ts +31 -0
- package/dist/ts/components/dialogs/PageMetadataDialog.d.ts.map +1 -0
- package/dist/ts/components/dialogs/PageMetadataDialog.js +154 -0
- package/dist/ts/components/dialogs/PageMetadataDialog.js.map +1 -0
- package/dist/ts/components/dialogs/UnsavedChangesDialog.d.ts +8 -0
- package/dist/ts/components/dialogs/UnsavedChangesDialog.d.ts.map +1 -0
- package/dist/ts/components/dialogs/UnsavedChangesDialog.js +7 -0
- package/dist/ts/components/dialogs/UnsavedChangesDialog.js.map +1 -0
- package/dist/ts/components/dialogs/index.d.ts +9 -0
- package/dist/ts/components/dialogs/index.d.ts.map +1 -0
- package/dist/ts/components/dialogs/index.js +9 -0
- package/dist/ts/components/dialogs/index.js.map +1 -0
- package/dist/ts/components/editor/CMSMDXEditor.d.ts +14 -0
- package/dist/ts/components/editor/CMSMDXEditor.d.ts.map +1 -0
- package/dist/ts/components/editor/CMSMDXEditor.js +209 -0
- package/dist/ts/components/editor/CMSMDXEditor.js.map +1 -0
- package/dist/ts/components/editor/ContentDiff.d.ts +10 -0
- package/dist/ts/components/editor/ContentDiff.d.ts.map +1 -0
- package/dist/ts/components/editor/ContentDiff.js +52 -0
- package/dist/ts/components/editor/ContentDiff.js.map +1 -0
- package/dist/ts/components/editor/CreateFragmentDialog.d.ts +26 -0
- package/dist/ts/components/editor/CreateFragmentDialog.d.ts.map +1 -0
- package/dist/ts/components/editor/CreateFragmentDialog.js +159 -0
- package/dist/ts/components/editor/CreateFragmentDialog.js.map +1 -0
- package/dist/ts/components/editor/DrawerItemOverride.d.ts +8 -0
- package/dist/ts/components/editor/DrawerItemOverride.d.ts.map +1 -0
- package/dist/ts/components/editor/DrawerItemOverride.js +37 -0
- package/dist/ts/components/editor/DrawerItemOverride.js.map +1 -0
- package/dist/ts/components/editor/EditorChromeToggles.d.ts +16 -0
- package/dist/ts/components/editor/EditorChromeToggles.d.ts.map +1 -0
- package/dist/ts/components/editor/EditorChromeToggles.js +17 -0
- package/dist/ts/components/editor/EditorChromeToggles.js.map +1 -0
- package/dist/ts/components/editor/FragmentEditor.d.ts +15 -0
- package/dist/ts/components/editor/FragmentEditor.d.ts.map +1 -0
- package/dist/ts/components/editor/FragmentEditor.js +322 -0
- package/dist/ts/components/editor/FragmentEditor.js.map +1 -0
- package/dist/ts/components/editor/FragmentWrappers.d.ts +20 -0
- package/dist/ts/components/editor/FragmentWrappers.d.ts.map +1 -0
- package/dist/ts/components/editor/FragmentWrappers.js +44 -0
- package/dist/ts/components/editor/FragmentWrappers.js.map +1 -0
- package/dist/ts/components/editor/GenericBlock.d.ts +3 -0
- package/dist/ts/components/editor/GenericBlock.d.ts.map +1 -0
- package/dist/ts/components/editor/GenericBlock.js +1124 -0
- package/dist/ts/components/editor/GenericBlock.js.map +1 -0
- package/dist/ts/components/editor/ImagePickerDialog.d.ts +6 -0
- package/dist/ts/components/editor/ImagePickerDialog.d.ts.map +1 -0
- package/dist/ts/components/editor/ImagePickerDialog.js +23 -0
- package/dist/ts/components/editor/ImagePickerDialog.js.map +1 -0
- package/dist/ts/components/editor/JsxPropsPanel.d.ts +16 -0
- package/dist/ts/components/editor/JsxPropsPanel.d.ts.map +1 -0
- package/dist/ts/components/editor/JsxPropsPanel.js +146 -0
- package/dist/ts/components/editor/JsxPropsPanel.js.map +1 -0
- package/dist/ts/components/editor/LocaleSelector.d.ts +9 -0
- package/dist/ts/components/editor/LocaleSelector.d.ts.map +1 -0
- package/dist/ts/components/editor/LocaleSelector.js +14 -0
- package/dist/ts/components/editor/LocaleSelector.js.map +1 -0
- package/dist/ts/components/editor/MDXLivePreview.d.ts +15 -0
- package/dist/ts/components/editor/MDXLivePreview.d.ts.map +1 -0
- package/dist/ts/components/editor/MDXLivePreview.js +111 -0
- package/dist/ts/components/editor/MDXLivePreview.js.map +1 -0
- package/dist/ts/components/editor/MdxPageEditor.d.ts +10 -0
- package/dist/ts/components/editor/MdxPageEditor.d.ts.map +1 -0
- package/dist/ts/components/editor/MdxPageEditor.js +353 -0
- package/dist/ts/components/editor/MdxPageEditor.js.map +1 -0
- package/dist/ts/components/editor/PageEditor.d.ts +54 -0
- package/dist/ts/components/editor/PageEditor.d.ts.map +1 -0
- package/dist/ts/components/editor/PageEditor.js +399 -0
- package/dist/ts/components/editor/PageEditor.js.map +1 -0
- package/dist/ts/components/editor/PageEditorHeaderActions.d.ts +22 -0
- package/dist/ts/components/editor/PageEditorHeaderActions.d.ts.map +1 -0
- package/dist/ts/components/editor/PageEditorHeaderActions.js +24 -0
- package/dist/ts/components/editor/PageEditorHeaderActions.js.map +1 -0
- package/dist/ts/components/editor/PageEditorWrapper.d.ts +38 -0
- package/dist/ts/components/editor/PageEditorWrapper.d.ts.map +1 -0
- package/dist/ts/components/editor/PageEditorWrapper.js +360 -0
- package/dist/ts/components/editor/PageEditorWrapper.js.map +1 -0
- package/dist/ts/components/editor/PuckWithUntouchedMetadata.d.ts +5 -0
- package/dist/ts/components/editor/PuckWithUntouchedMetadata.d.ts.map +1 -0
- package/dist/ts/components/editor/PuckWithUntouchedMetadata.js +53 -0
- package/dist/ts/components/editor/PuckWithUntouchedMetadata.js.map +1 -0
- package/dist/ts/components/editor/SearchableSelect.d.ts +34 -0
- package/dist/ts/components/editor/SearchableSelect.d.ts.map +1 -0
- package/dist/ts/components/editor/SearchableSelect.js +116 -0
- package/dist/ts/components/editor/SearchableSelect.js.map +1 -0
- package/dist/ts/components/editor/host-wrapper-plugin.d.ts.map +1 -0
- package/dist/ts/components/editor/host-wrapper-plugin.js +38 -0
- package/dist/ts/components/editor/host-wrapper-plugin.js.map +1 -0
- package/dist/ts/components/editor/index.d.ts +9 -0
- package/dist/ts/components/editor/index.d.ts.map +1 -0
- package/dist/ts/components/editor/index.js +8 -0
- package/dist/ts/components/editor/index.js.map +1 -0
- package/dist/ts/components/editor/insert-menu/InsertMdxComponentButton.d.ts +15 -0
- package/dist/ts/components/editor/insert-menu/InsertMdxComponentButton.d.ts.map +1 -0
- package/dist/ts/components/editor/insert-menu/InsertMdxComponentButton.js +91 -0
- package/dist/ts/components/editor/insert-menu/InsertMdxComponentButton.js.map +1 -0
- package/dist/ts/components/editor/insert-menu/SlashMenuPlugin.d.ts +12 -0
- package/dist/ts/components/editor/insert-menu/SlashMenuPlugin.d.ts.map +1 -0
- package/dist/ts/components/editor/insert-menu/SlashMenuPlugin.js +107 -0
- package/dist/ts/components/editor/insert-menu/SlashMenuPlugin.js.map +1 -0
- package/dist/ts/components/editor/insert-menu/insert-payload.d.ts +76 -0
- package/dist/ts/components/editor/insert-menu/insert-payload.d.ts.map +1 -0
- package/dist/ts/components/editor/insert-menu/insert-payload.js +95 -0
- package/dist/ts/components/editor/insert-menu/insert-payload.js.map +1 -0
- package/dist/ts/components/editor/insert-menu/mdx-components-plugin.d.ts.map +1 -0
- package/dist/ts/components/editor/insert-menu/mdx-components-plugin.js +14 -0
- package/dist/ts/components/editor/insert-menu/mdx-components-plugin.js.map +1 -0
- package/dist/ts/components/editor/page-setting-targets.d.ts +24 -0
- package/dist/ts/components/editor/page-setting-targets.d.ts.map +1 -0
- package/dist/ts/components/editor/page-setting-targets.js +124 -0
- package/dist/ts/components/editor/page-setting-targets.js.map +1 -0
- package/dist/ts/components/editor/preview-availability.d.ts +18 -0
- package/dist/ts/components/editor/preview-availability.d.ts.map +1 -0
- package/dist/ts/components/editor/preview-availability.js +18 -0
- package/dist/ts/components/editor/preview-availability.js.map +1 -0
- package/dist/ts/components/editors/DataEditor.d.ts +18 -0
- package/dist/ts/components/editors/DataEditor.d.ts.map +1 -0
- package/dist/ts/components/editors/DataEditor.js +140 -0
- package/dist/ts/components/editors/DataEditor.js.map +1 -0
- package/dist/ts/components/fields/ContentFragmentSelectorField.d.ts +14 -0
- package/dist/ts/components/fields/ContentFragmentSelectorField.d.ts.map +1 -0
- package/dist/ts/components/fields/ContentFragmentSelectorField.js +108 -0
- package/dist/ts/components/fields/ContentFragmentSelectorField.js.map +1 -0
- package/dist/ts/components/fields/ImageField.d.ts +17 -0
- package/dist/ts/components/fields/ImageField.d.ts.map +1 -0
- package/dist/ts/components/fields/ImageField.js +39 -0
- package/dist/ts/components/fields/ImageField.js.map +1 -0
- package/dist/ts/components/fields/MDXEditField.d.ts +17 -0
- package/dist/ts/components/fields/MDXEditField.d.ts.map +1 -0
- package/dist/ts/components/fields/MDXEditField.js +29 -0
- package/dist/ts/components/fields/MDXEditField.js.map +1 -0
- package/dist/ts/components/forms/ChipArrayField.d.ts +12 -0
- package/dist/ts/components/forms/ChipArrayField.d.ts.map +1 -0
- package/dist/ts/components/forms/ChipArrayField.js +39 -0
- package/dist/ts/components/forms/ChipArrayField.js.map +1 -0
- package/dist/ts/components/forms/HintForm.d.ts +22 -0
- package/dist/ts/components/forms/HintForm.d.ts.map +1 -0
- package/dist/ts/components/forms/HintForm.js +195 -0
- package/dist/ts/components/forms/HintForm.js.map +1 -0
- package/dist/ts/components/forms/SchemaForm.d.ts +15 -0
- package/dist/ts/components/forms/SchemaForm.d.ts.map +1 -0
- package/dist/ts/components/forms/SchemaForm.js +103 -0
- package/dist/ts/components/forms/SchemaForm.js.map +1 -0
- package/dist/ts/components/index.d.ts +8 -0
- package/dist/ts/components/index.d.ts.map +1 -0
- package/dist/ts/components/index.js +14 -0
- package/dist/ts/components/index.js.map +1 -0
- package/dist/ts/components/media/AssetCard.d.ts +14 -0
- package/dist/ts/components/media/AssetCard.d.ts.map +1 -0
- package/dist/ts/components/media/AssetCard.js +26 -0
- package/dist/ts/components/media/AssetCard.js.map +1 -0
- package/dist/ts/components/media/AssetDetailSidebar.d.ts +15 -0
- package/dist/ts/components/media/AssetDetailSidebar.d.ts.map +1 -0
- package/dist/ts/components/media/AssetDetailSidebar.js +122 -0
- package/dist/ts/components/media/AssetDetailSidebar.js.map +1 -0
- package/dist/ts/components/media/BulkActionBar.d.ts +9 -0
- package/dist/ts/components/media/BulkActionBar.d.ts.map +1 -0
- package/dist/ts/components/media/BulkActionBar.js +9 -0
- package/dist/ts/components/media/BulkActionBar.js.map +1 -0
- package/dist/ts/components/media/FolderNav.d.ts +7 -0
- package/dist/ts/components/media/FolderNav.d.ts.map +1 -0
- package/dist/ts/components/media/FolderNav.js +13 -0
- package/dist/ts/components/media/FolderNav.js.map +1 -0
- package/dist/ts/components/media/FolderTreeSidebar.d.ts +9 -0
- package/dist/ts/components/media/FolderTreeSidebar.d.ts.map +1 -0
- package/dist/ts/components/media/FolderTreeSidebar.js +46 -0
- package/dist/ts/components/media/FolderTreeSidebar.js.map +1 -0
- package/dist/ts/components/media/ImagePicker.d.ts +14 -0
- package/dist/ts/components/media/ImagePicker.d.ts.map +1 -0
- package/dist/ts/components/media/ImagePicker.js +44 -0
- package/dist/ts/components/media/ImagePicker.js.map +1 -0
- package/dist/ts/components/media/MediaLibrary.d.ts +31 -0
- package/dist/ts/components/media/MediaLibrary.d.ts.map +1 -0
- package/dist/ts/components/media/MediaLibrary.js +87 -0
- package/dist/ts/components/media/MediaLibrary.js.map +1 -0
- package/dist/ts/components/media/MediaToolbar.d.ts +21 -0
- package/dist/ts/components/media/MediaToolbar.d.ts.map +1 -0
- package/dist/ts/components/media/MediaToolbar.js +7 -0
- package/dist/ts/components/media/MediaToolbar.js.map +1 -0
- package/dist/ts/components/media/UploadModal.d.ts +9 -0
- package/dist/ts/components/media/UploadModal.d.ts.map +1 -0
- package/dist/ts/components/media/UploadModal.js +36 -0
- package/dist/ts/components/media/UploadModal.js.map +1 -0
- package/dist/ts/components/media/index.d.ts +10 -0
- package/dist/ts/components/media/index.d.ts.map +1 -0
- package/dist/ts/components/media/index.js +10 -0
- package/dist/ts/components/media/index.js.map +1 -0
- package/dist/ts/components/pages/DataList.d.ts +7 -0
- package/dist/ts/components/pages/DataList.d.ts.map +1 -0
- package/dist/ts/components/pages/DataList.js +269 -0
- package/dist/ts/components/pages/DataList.js.map +1 -0
- package/dist/ts/components/pages/FragmentList.d.ts +2 -0
- package/dist/ts/components/pages/FragmentList.d.ts.map +1 -0
- package/dist/ts/components/pages/FragmentList.js +281 -0
- package/dist/ts/components/pages/FragmentList.js.map +1 -0
- package/dist/ts/components/pages/MediaPage.d.ts +8 -0
- package/dist/ts/components/pages/MediaPage.d.ts.map +1 -0
- package/dist/ts/components/pages/MediaPage.js +146 -0
- package/dist/ts/components/pages/MediaPage.js.map +1 -0
- package/dist/ts/components/pages/PageList.d.ts +7 -0
- package/dist/ts/components/pages/PageList.d.ts.map +1 -0
- package/dist/ts/components/pages/PageList.js +299 -0
- package/dist/ts/components/pages/PageList.js.map +1 -0
- package/dist/ts/components/pages/index.d.ts +3 -0
- package/dist/ts/components/pages/index.d.ts.map +1 -0
- package/dist/ts/components/pages/index.js +3 -0
- package/dist/ts/components/pages/index.js.map +1 -0
- package/dist/ts/components/puck/MDXContent.d.ts +19 -0
- package/dist/ts/components/puck/MDXContent.d.ts.map +1 -0
- package/dist/ts/components/puck/MDXContent.js +110 -0
- package/dist/ts/components/puck/MDXContent.js.map +1 -0
- package/dist/ts/components/puck/index.d.ts +2 -0
- package/dist/ts/components/puck/index.d.ts.map +1 -0
- package/dist/ts/components/puck/index.js +2 -0
- package/dist/ts/components/puck/index.js.map +1 -0
- package/dist/ts/components/sandbox/ContentSandbox.d.ts +31 -0
- package/dist/ts/components/sandbox/ContentSandbox.d.ts.map +1 -0
- package/dist/ts/components/sandbox/ContentSandbox.js +148 -0
- package/dist/ts/components/sandbox/ContentSandbox.js.map +1 -0
- package/dist/ts/components/sandbox/frame-runtime.d.ts +7 -0
- package/dist/ts/components/sandbox/frame-runtime.d.ts.map +1 -0
- package/dist/ts/components/sandbox/frame-runtime.js +7 -0
- package/dist/ts/components/sandbox/frame-runtime.js.map +1 -0
- package/dist/ts/components/toast.d.ts +44 -0
- package/dist/ts/components/toast.d.ts.map +1 -0
- package/dist/ts/components/toast.js +8 -0
- package/dist/ts/components/toast.js.map +1 -0
- package/dist/ts/components/ui/Banner.d.ts +76 -0
- package/dist/ts/components/ui/Banner.d.ts.map +1 -0
- package/dist/ts/components/ui/Banner.js +50 -0
- package/dist/ts/components/ui/Banner.js.map +1 -0
- package/dist/ts/components/ui/Button.d.ts +25 -0
- package/dist/ts/components/ui/Button.d.ts.map +1 -0
- package/dist/ts/components/ui/Button.js +34 -0
- package/dist/ts/components/ui/Button.js.map +1 -0
- package/dist/ts/components/ui/Card.d.ts +72 -0
- package/dist/ts/components/ui/Card.d.ts.map +1 -0
- package/dist/ts/components/ui/Card.js +50 -0
- package/dist/ts/components/ui/Card.js.map +1 -0
- package/dist/ts/components/ui/FieldError.d.ts +24 -0
- package/dist/ts/components/ui/FieldError.d.ts.map +1 -0
- package/dist/ts/components/ui/FieldError.js +18 -0
- package/dist/ts/components/ui/FieldError.js.map +1 -0
- package/dist/ts/components/ui/IconButton.d.ts +13 -0
- package/dist/ts/components/ui/IconButton.d.ts.map +1 -0
- package/dist/ts/components/ui/IconButton.js +11 -0
- package/dist/ts/components/ui/IconButton.js.map +1 -0
- package/dist/ts/components/ui/Input.d.ts +37 -0
- package/dist/ts/components/ui/Input.d.ts.map +1 -0
- package/dist/ts/components/ui/Input.js +10 -0
- package/dist/ts/components/ui/Input.js.map +1 -0
- package/dist/ts/components/ui/SaveIndicator.d.ts +8 -0
- package/dist/ts/components/ui/SaveIndicator.d.ts.map +1 -0
- package/dist/ts/components/ui/SaveIndicator.js +33 -0
- package/dist/ts/components/ui/SaveIndicator.js.map +1 -0
- package/dist/ts/components/ui/Select.d.ts +8 -0
- package/dist/ts/components/ui/Select.d.ts.map +1 -0
- package/dist/ts/components/ui/Select.js +10 -0
- package/dist/ts/components/ui/Select.js.map +1 -0
- package/dist/ts/components/ui/Separator.d.ts +7 -0
- package/dist/ts/components/ui/Separator.d.ts.map +1 -0
- package/dist/ts/components/ui/Separator.js +9 -0
- package/dist/ts/components/ui/Separator.js.map +1 -0
- package/dist/ts/components/ui/Textarea.d.ts +8 -0
- package/dist/ts/components/ui/Textarea.d.ts.map +1 -0
- package/dist/ts/components/ui/Textarea.js +6 -0
- package/dist/ts/components/ui/Textarea.js.map +1 -0
- package/dist/ts/components/ui/Tooltip.d.ts +9 -0
- package/dist/ts/components/ui/Tooltip.d.ts.map +1 -0
- package/dist/ts/components/ui/Tooltip.js +6 -0
- package/dist/ts/components/ui/Tooltip.js.map +1 -0
- package/dist/ts/components/ui/index.d.ts +14 -0
- package/dist/ts/components/ui/index.d.ts.map +1 -0
- package/dist/ts/components/ui/index.js +18 -0
- package/dist/ts/components/ui/index.js.map +1 -0
- package/dist/ts/data-schemas.d.ts +36 -0
- package/dist/ts/data-schemas.d.ts.map +1 -0
- package/dist/ts/data-schemas.js +52 -0
- package/dist/ts/data-schemas.js.map +1 -0
- package/dist/ts/dev-entry.d.ts +2 -0
- package/dist/ts/dev-entry.d.ts.map +1 -0
- package/dist/ts/dev-entry.js +23 -0
- package/dist/ts/dev-entry.js.map +1 -0
- package/dist/ts/editor-flush.d.ts +26 -0
- package/dist/ts/editor-flush.d.ts.map +1 -0
- package/dist/ts/editor-flush.js +40 -0
- package/dist/ts/editor-flush.js.map +1 -0
- package/dist/ts/hooks/index.d.ts +10 -0
- package/dist/ts/hooks/index.d.ts.map +1 -0
- package/dist/ts/hooks/index.js +8 -0
- package/dist/ts/hooks/index.js.map +1 -0
- package/dist/ts/hooks/useCanvasTheme.d.ts +12 -0
- package/dist/ts/hooks/useCanvasTheme.d.ts.map +1 -0
- package/dist/ts/hooks/useCanvasTheme.js +34 -0
- package/dist/ts/hooks/useCanvasTheme.js.map +1 -0
- package/dist/ts/hooks/useClickOutside.d.ts.map +1 -0
- package/dist/ts/hooks/useClickOutside.js +19 -0
- package/dist/ts/hooks/useClickOutside.js.map +1 -0
- package/dist/ts/hooks/useDialogState.d.ts.map +1 -0
- package/dist/ts/hooks/useDialogState.js +32 -0
- package/dist/ts/hooks/useDialogState.js.map +1 -0
- package/dist/ts/hooks/useEditorPref.d.ts.map +1 -0
- package/dist/ts/hooks/useEditorPref.js +50 -0
- package/dist/ts/hooks/useEditorPref.js.map +1 -0
- package/dist/ts/hooks/useErrorModal.d.ts +15 -0
- package/dist/ts/hooks/useErrorModal.d.ts.map +1 -0
- package/dist/ts/hooks/useErrorModal.js +36 -0
- package/dist/ts/hooks/useErrorModal.js.map +1 -0
- package/dist/ts/hooks/useSiteBaseUrl.d.ts +10 -0
- package/dist/ts/hooks/useSiteBaseUrl.d.ts.map +1 -0
- package/dist/ts/hooks/useSiteBaseUrl.js +15 -0
- package/dist/ts/hooks/useSiteBaseUrl.js.map +1 -0
- package/dist/ts/hooks/useTheme.d.ts +12 -0
- package/dist/ts/hooks/useTheme.d.ts.map +1 -0
- package/dist/ts/hooks/useTheme.js +55 -0
- package/dist/ts/hooks/useTheme.js.map +1 -0
- package/dist/ts/hooks/useUnsavedChangesGuard.d.ts.map +1 -0
- package/dist/ts/hooks/useUnsavedChangesGuard.js +30 -0
- package/dist/ts/hooks/useUnsavedChangesGuard.js.map +1 -0
- package/dist/ts/hooks/useUpload.d.ts +5 -0
- package/dist/ts/hooks/useUpload.d.ts.map +1 -0
- package/dist/ts/hooks/useUpload.js +15 -0
- package/dist/ts/hooks/useUpload.js.map +1 -0
- package/dist/ts/hooks/useUploadFlow.d.ts +47 -0
- package/dist/ts/hooks/useUploadFlow.d.ts.map +1 -0
- package/dist/ts/hooks/useUploadFlow.js +154 -0
- package/dist/ts/hooks/useUploadFlow.js.map +1 -0
- package/dist/ts/host-discovery.d.ts +40 -0
- package/dist/ts/host-discovery.d.ts.map +1 -0
- package/dist/ts/host-discovery.js +39 -0
- package/dist/ts/host-discovery.js.map +1 -0
- package/dist/ts/host-style-probe.d.ts +81 -0
- package/dist/ts/host-style-probe.d.ts.map +1 -0
- package/dist/ts/host-style-probe.js +638 -0
- package/dist/ts/host-style-probe.js.map +1 -0
- package/dist/ts/index.d.ts +13 -0
- package/dist/ts/index.d.ts.map +1 -0
- package/dist/ts/index.js +17 -0
- package/dist/ts/index.js.map +1 -0
- package/dist/ts/lib/utils.d.ts.map +1 -0
- package/dist/ts/lib/utils.js +48 -0
- package/dist/ts/lib/utils.js.map +1 -0
- package/dist/ts/main-spa.d.ts.map +1 -0
- package/dist/ts/main-spa.js +57 -0
- package/dist/ts/main-spa.js.map +1 -0
- package/dist/ts/main.d.ts.map +1 -0
- package/dist/ts/main.js +16 -0
- package/dist/ts/main.js.map +1 -0
- package/dist/ts/mdx-components-define.d.ts +185 -0
- package/dist/ts/mdx-components-define.d.ts.map +1 -0
- package/dist/ts/mdx-components-define.js +140 -0
- package/dist/ts/mdx-components-define.js.map +1 -0
- package/dist/ts/mdx-components.d.ts +63 -0
- package/dist/ts/mdx-components.d.ts.map +1 -0
- package/dist/ts/mdx-components.js +129 -0
- package/dist/ts/mdx-components.js.map +1 -0
- package/dist/ts/media/AssetScopePill.d.ts +30 -0
- package/dist/ts/media/AssetScopePill.d.ts.map +1 -0
- package/dist/ts/media/AssetScopePill.js +31 -0
- package/dist/ts/media/AssetScopePill.js.map +1 -0
- package/dist/ts/media/MediaIssueBadge.d.ts +33 -0
- package/dist/ts/media/MediaIssueBadge.d.ts.map +1 -0
- package/dist/ts/media/MediaIssueBadge.js +55 -0
- package/dist/ts/media/MediaIssueBadge.js.map +1 -0
- package/dist/ts/media/types.d.ts +108 -0
- package/dist/ts/media/types.d.ts.map +1 -0
- package/dist/ts/media/types.js +2 -0
- package/dist/ts/media/types.js.map +1 -0
- package/dist/ts/media/use-asset-scope.d.ts +24 -0
- package/dist/ts/media/use-asset-scope.d.ts.map +1 -0
- package/dist/ts/media/use-asset-scope.js +57 -0
- package/dist/ts/media/use-asset-scope.js.map +1 -0
- package/dist/ts/media/use-media-issue.d.ts +24 -0
- package/dist/ts/media/use-media-issue.d.ts.map +1 -0
- package/dist/ts/media/use-media-issue.js +52 -0
- package/dist/ts/media/use-media-issue.js.map +1 -0
- package/dist/ts/merge-default-props.d.ts +23 -0
- package/dist/ts/merge-default-props.d.ts.map +1 -0
- package/dist/ts/merge-default-props.js +51 -0
- package/dist/ts/merge-default-props.js.map +1 -0
- package/dist/ts/mock-puck-config.d.ts.map +1 -0
- package/dist/ts/mock-puck-config.js +74 -0
- package/dist/ts/mock-puck-config.js.map +1 -0
- package/dist/ts/page-schema-define.d.ts +134 -0
- package/dist/ts/page-schema-define.d.ts.map +1 -0
- package/dist/ts/page-schema-define.js +60 -0
- package/dist/ts/page-schema-define.js.map +1 -0
- package/dist/ts/page-schemas.d.ts +31 -0
- package/dist/ts/page-schemas.d.ts.map +1 -0
- package/dist/ts/page-schemas.js +56 -0
- package/dist/ts/page-schemas.js.map +1 -0
- package/dist/ts/page-setting-attributes.d.ts +27 -0
- package/dist/ts/page-setting-attributes.d.ts.map +1 -0
- package/dist/ts/page-setting-attributes.js +11 -0
- package/dist/ts/page-setting-attributes.js.map +1 -0
- package/dist/ts/prose-surface-css.d.ts +92 -0
- package/dist/ts/prose-surface-css.d.ts.map +1 -0
- package/dist/ts/prose-surface-css.js +349 -0
- package/dist/ts/prose-surface-css.js.map +1 -0
- package/dist/ts/puck-config.d.ts.map +1 -0
- package/dist/ts/puck-config.js +51 -0
- package/dist/ts/puck-config.js.map +1 -0
- package/dist/ts/sandbox-preview-styles.d.ts +63 -0
- package/dist/ts/sandbox-preview-styles.d.ts.map +1 -0
- package/dist/ts/sandbox-preview-styles.js +169 -0
- package/dist/ts/sandbox-preview-styles.js.map +1 -0
- package/dist/ts/selected-block.d.ts +61 -0
- package/dist/ts/selected-block.d.ts.map +1 -0
- package/dist/ts/selected-block.js +65 -0
- package/dist/ts/selected-block.js.map +1 -0
- package/dist/ts/site-css-layer.d.ts +40 -0
- package/dist/ts/site-css-layer.d.ts.map +1 -0
- package/dist/ts/site-css-layer.js +110 -0
- package/dist/ts/site-css-layer.js.map +1 -0
- package/dist/ts/site-styles.d.ts +142 -0
- package/dist/ts/site-styles.d.ts.map +1 -0
- package/dist/ts/site-styles.js +428 -0
- package/dist/ts/site-styles.js.map +1 -0
- package/dist/ts/theme.d.ts +46 -0
- package/dist/ts/theme.d.ts.map +1 -0
- package/dist/ts/theme.js +96 -0
- package/dist/ts/theme.js.map +1 -0
- package/dist/ts/types.d.ts +58 -0
- package/dist/ts/types.d.ts.map +1 -0
- package/dist/ts/types.js +2 -0
- package/dist/ts/types.js.map +1 -0
- package/dist/ts/ui-config.d.ts +256 -0
- package/dist/ts/ui-config.d.ts.map +1 -0
- package/dist/ts/ui-config.js +151 -0
- package/dist/ts/ui-config.js.map +1 -0
- package/dist/ts/utils/asset-url.d.ts +9 -0
- package/dist/ts/utils/asset-url.d.ts.map +1 -0
- package/dist/ts/utils/asset-url.js +19 -0
- package/dist/ts/utils/asset-url.js.map +1 -0
- package/dist/ts/utils/cn.d.ts.map +1 -0
- package/dist/ts/utils/cn.js +6 -0
- package/dist/ts/utils/cn.js.map +1 -0
- package/dist/ts/utils/content-failure.d.ts +32 -0
- package/dist/ts/utils/content-failure.d.ts.map +1 -0
- package/dist/ts/utils/content-failure.js +67 -0
- package/dist/ts/utils/content-failure.js.map +1 -0
- package/dist/ts/utils/entry-meta.d.ts +29 -0
- package/dist/ts/utils/entry-meta.d.ts.map +1 -0
- package/dist/ts/utils/entry-meta.js +38 -0
- package/dist/ts/utils/entry-meta.js.map +1 -0
- package/dist/ts/utils/entry-name.d.ts +11 -0
- package/dist/ts/utils/entry-name.d.ts.map +1 -0
- package/dist/ts/utils/entry-name.js +19 -0
- package/dist/ts/utils/entry-name.js.map +1 -0
- package/dist/ts/utils/format-date.d.ts.map +1 -0
- package/dist/ts/utils/format-date.js +38 -0
- package/dist/ts/utils/format-date.js.map +1 -0
- package/dist/ts/utils/mdast-to-html.d.ts.map +1 -0
- package/dist/ts/utils/mdast-to-html.js +235 -0
- package/dist/ts/utils/mdast-to-html.js.map +1 -0
- package/dist/ts/utils/mdast-tree.d.ts.map +1 -0
- package/dist/ts/utils/mdast-tree.js +286 -0
- package/dist/ts/utils/mdast-tree.js.map +1 -0
- package/dist/ts/utils/menu-placement.d.ts +8 -0
- package/dist/ts/utils/menu-placement.d.ts.map +1 -0
- package/dist/ts/utils/menu-placement.js +10 -0
- package/dist/ts/utils/menu-placement.js.map +1 -0
- package/dist/ts/utils/pageMetadata.d.ts +80 -0
- package/dist/ts/utils/pageMetadata.d.ts.map +1 -0
- package/dist/ts/utils/pageMetadata.js +249 -0
- package/dist/ts/utils/pageMetadata.js.map +1 -0
- package/dist/ts/utils/sanitize-html.d.ts +31 -0
- package/dist/ts/utils/sanitize-html.d.ts.map +1 -0
- package/dist/ts/utils/sanitize-html.js +84 -0
- package/dist/ts/utils/sanitize-html.js.map +1 -0
- package/dist/ts/utils/slugify.d.ts +14 -0
- package/dist/ts/utils/slugify.d.ts.map +1 -0
- package/dist/ts/utils/slugify.js +22 -0
- package/dist/ts/utils/slugify.js.map +1 -0
- package/dist/ts/utils/zodIntrospect.d.ts +19 -0
- package/dist/ts/utils/zodIntrospect.d.ts.map +1 -0
- package/dist/ts/utils/zodIntrospect.js +95 -0
- package/dist/ts/utils/zodIntrospect.js.map +1 -0
- package/dist/ts/write-access.d.ts +48 -0
- package/dist/ts/write-access.d.ts.map +1 -0
- package/dist/ts/write-access.js +140 -0
- package/dist/ts/write-access.js.map +1 -0
- package/package.json +145 -98
- package/src/App.tsx +78 -0
- package/src/CmsSpaApp.tsx +63 -0
- package/src/components/CMSDashboard.tsx +118 -0
- package/src/components/CMSLayout.tsx +25 -0
- package/src/components/ConlocaLogo.tsx +10 -0
- package/src/components/GitStatusPanel.tsx +188 -0
- package/src/components/MobileTopBar.tsx +22 -0
- package/src/components/Sidebar.tsx +146 -0
- package/src/components/UserAvatar.tsx +28 -0
- package/src/components/cards/DataEntryCard.tsx +163 -0
- package/src/components/cards/SectionCard.tsx +103 -0
- package/src/components/cards/index.ts +1 -0
- package/src/components/dashboard/RecentActivity.tsx +114 -0
- package/src/components/dialog.tsx +78 -0
- package/src/components/dialogs/ConflictDialog.tsx +139 -0
- package/src/components/dialogs/CreateDataDialog.tsx +70 -0
- package/src/components/dialogs/CreateFolderDialog.tsx +94 -0
- package/src/components/dialogs/CreatePageDialog.tsx +465 -0
- package/src/components/dialogs/DataPropertiesDialog.tsx +84 -0
- package/src/components/dialogs/DeleteConfirmDialog.tsx +61 -0
- package/src/components/dialogs/ErrorModal.tsx +109 -0
- package/src/components/dialogs/FragmentPropertiesDialog.tsx +97 -0
- package/src/components/dialogs/MoveFolderDialog.tsx +205 -0
- package/src/components/dialogs/PageMetadataDialog.tsx +311 -0
- package/src/components/dialogs/UnsavedChangesDialog.tsx +43 -0
- package/src/components/dialogs/index.ts +8 -0
- package/src/components/editor/CMSMDXEditor.tsx +281 -0
- package/src/components/editor/ContentDiff.tsx +251 -0
- package/src/components/editor/CreateFragmentDialog.tsx +227 -0
- package/src/components/editor/DrawerItemOverride.tsx +62 -0
- package/src/components/editor/EditorChromeToggles.tsx +35 -0
- package/src/components/editor/FragmentEditor.tsx +506 -0
- package/src/components/editor/FragmentWrappers.tsx +72 -0
- package/src/components/editor/GenericBlock.tsx +1361 -0
- package/src/components/editor/ImagePickerDialog.tsx +25 -0
- package/src/components/editor/JsxPropsPanel.tsx +293 -0
- package/src/components/editor/LocaleSelector.tsx +60 -0
- package/src/components/editor/MDXLivePreview.tsx +179 -0
- package/src/components/editor/MdxPageEditor.tsx +546 -0
- package/src/components/editor/PageEditor.tsx +529 -0
- package/src/components/editor/PageEditorHeaderActions.tsx +160 -0
- package/src/components/editor/PageEditorWrapper.tsx +502 -0
- package/src/components/editor/PuckWithUntouchedMetadata.tsx +65 -0
- package/src/components/editor/SearchableSelect.tsx +186 -0
- package/src/components/editor/host-wrapper-plugin.ts +91 -0
- package/src/components/editor/index.ts +8 -0
- package/src/components/editor/insert-menu/InsertMdxComponentButton.tsx +149 -0
- package/src/components/editor/insert-menu/SlashMenuPlugin.tsx +152 -0
- package/src/components/editor/insert-menu/insert-payload.ts +150 -0
- package/src/components/editor/insert-menu/mdx-components-plugin.ts +14 -0
- package/src/components/editor/page-setting-targets.tsx +154 -0
- package/src/components/editor/preview-availability.ts +20 -0
- package/src/components/editors/DataEditor.tsx +270 -0
- package/src/components/fields/ContentFragmentSelectorField.tsx +290 -0
- package/src/components/fields/ImageField.tsx +75 -0
- package/src/components/fields/MDXEditField.tsx +54 -0
- package/src/components/forms/ChipArrayField.tsx +81 -0
- package/src/components/forms/HintForm.tsx +437 -0
- package/src/components/forms/SchemaForm.tsx +307 -0
- package/src/components/index.ts +14 -0
- package/src/components/media/AssetCard.tsx +84 -0
- package/src/components/media/AssetDetailSidebar.tsx +335 -0
- package/src/components/media/BulkActionBar.tsx +33 -0
- package/src/components/media/FolderNav.tsx +44 -0
- package/src/components/media/FolderTreeSidebar.tsx +171 -0
- package/src/components/media/ImagePicker.tsx +102 -0
- package/src/components/media/MediaLibrary.tsx +183 -0
- package/src/components/media/MediaToolbar.tsx +100 -0
- package/src/components/media/UploadModal.tsx +266 -0
- package/src/components/media/index.ts +9 -0
- package/src/components/pages/DataList.tsx +498 -0
- package/src/components/pages/FragmentList.tsx +592 -0
- package/src/components/pages/MediaPage.tsx +284 -0
- package/src/components/pages/PageList.tsx +683 -0
- package/src/components/pages/index.ts +2 -0
- package/src/components/puck/MDXContent.tsx +199 -0
- package/src/components/puck/index.ts +1 -0
- package/src/components/sandbox/ContentSandbox.tsx +191 -0
- package/src/components/sandbox/frame-runtime.ts +15 -0
- package/src/components/toast.tsx +48 -0
- package/src/components/ui/Banner.tsx +108 -0
- package/src/components/ui/Button.tsx +51 -0
- package/src/components/ui/Card.tsx +124 -0
- package/src/components/ui/FieldError.tsx +37 -0
- package/src/components/ui/IconButton.tsx +40 -0
- package/src/components/ui/Input.tsx +66 -0
- package/src/components/ui/SaveIndicator.tsx +44 -0
- package/src/components/ui/Select.tsx +29 -0
- package/src/components/ui/Separator.tsx +14 -0
- package/src/components/ui/Textarea.tsx +22 -0
- package/src/components/ui/Tooltip.tsx +25 -0
- package/src/components/ui/index.ts +18 -0
- package/src/data-schemas.ts +82 -0
- package/src/dev-entry.tsx +25 -0
- package/src/dev.html +36 -0
- package/src/editor-flush.ts +47 -0
- package/src/hooks/index.ts +22 -0
- package/src/hooks/useCanvasTheme.tsx +52 -0
- package/src/hooks/useClickOutside.ts +24 -0
- package/src/hooks/useDialogState.ts +40 -0
- package/src/hooks/useEditorPref.ts +58 -0
- package/src/hooks/useErrorModal.tsx +63 -0
- package/src/hooks/useSiteBaseUrl.ts +16 -0
- package/src/hooks/useTheme.tsx +76 -0
- package/src/hooks/useUnsavedChangesGuard.ts +32 -0
- package/src/hooks/useUpload.ts +19 -0
- package/src/hooks/useUploadFlow.ts +227 -0
- package/src/host-discovery.ts +77 -0
- package/src/host-style-probe.ts +684 -0
- package/src/index.ts +42 -0
- package/src/lib/utils.ts +56 -0
- package/src/main-spa.tsx +68 -0
- package/src/main.css +1095 -0
- package/src/main.html +43 -0
- package/src/main.tsx +16 -0
- package/src/mdx-components-define.ts +296 -0
- package/src/mdx-components.ts +154 -0
- package/src/media/AssetScopePill.tsx +56 -0
- package/src/media/MediaIssueBadge.tsx +86 -0
- package/src/media/types.ts +96 -0
- package/src/media/use-asset-scope.ts +58 -0
- package/src/media/use-media-issue.ts +53 -0
- package/src/merge-default-props.ts +58 -0
- package/src/mock-puck-config.tsx +115 -0
- package/src/page-schema-define.ts +176 -0
- package/src/page-schemas.ts +80 -0
- package/src/page-setting-attributes.ts +40 -0
- package/src/prose-surface-css.ts +359 -0
- package/src/puck-config.ts +77 -0
- package/src/sandbox-preview-styles.ts +166 -0
- package/src/selected-block.ts +121 -0
- package/src/site-css-layer.ts +109 -0
- package/src/site-styles.ts +526 -0
- package/src/theme.ts +102 -0
- package/src/types.ts +63 -0
- package/src/ui-config.ts +344 -0
- package/src/utils/asset-url.ts +22 -0
- package/src/utils/cn.ts +6 -0
- package/src/utils/content-failure.ts +74 -0
- package/src/utils/entry-meta.ts +47 -0
- package/src/utils/entry-name.ts +21 -0
- package/src/utils/format-date.ts +34 -0
- package/src/utils/mdast-to-html.ts +247 -0
- package/src/utils/mdast-tree.ts +292 -0
- package/src/utils/menu-placement.ts +13 -0
- package/src/utils/pageMetadata.ts +285 -0
- package/src/utils/sanitize-html.ts +84 -0
- package/src/utils/slugify.ts +21 -0
- package/src/utils/zodIntrospect.ts +136 -0
- package/src/vite-env.d.ts +10 -0
- package/src/write-access.ts +147 -0
- package/styles/stylesheet.d.ts +6 -0
- package/styles/tailwind-theme.css +7 -5
- package/dist/App-Bk1LNxbS.mjs +0 -10851
- package/dist/App-Bk1LNxbS.mjs.map +0 -1
- package/dist/App.d.ts +0 -35
- package/dist/App.d.ts.map +0 -1
- package/dist/App.js +0 -52
- package/dist/CmsSpaApp.d.ts +0 -13
- package/dist/CmsSpaApp.d.ts.map +0 -1
- package/dist/CmsSpaApp.js +0 -33
- package/dist/cn-dlASUkDY.mjs +0 -10
- package/dist/cn-dlASUkDY.mjs.map +0 -1
- package/dist/components/CMSDashboard.d.ts +0 -2
- package/dist/components/CMSDashboard.d.ts.map +0 -1
- package/dist/components/CMSDashboard.js +0 -20
- package/dist/components/CMSLayout.d.ts +0 -2
- package/dist/components/CMSLayout.d.ts.map +0 -1
- package/dist/components/CMSLayout.js +0 -15
- package/dist/components/ConlocaLogo.d.ts +0 -2
- package/dist/components/ConlocaLogo.d.ts.map +0 -1
- package/dist/components/ConlocaLogo.js +0 -4
- package/dist/components/GitStatusPanel.d.ts +0 -25
- package/dist/components/GitStatusPanel.d.ts.map +0 -1
- package/dist/components/GitStatusPanel.js +0 -77
- package/dist/components/MobileTopBar.d.ts +0 -6
- package/dist/components/MobileTopBar.d.ts.map +0 -1
- package/dist/components/MobileTopBar.js +0 -6
- package/dist/components/Sidebar.d.ts +0 -8
- package/dist/components/Sidebar.d.ts.map +0 -1
- package/dist/components/Sidebar.js +0 -40
- package/dist/components/UserAvatar.d.ts +0 -2
- package/dist/components/UserAvatar.d.ts.map +0 -1
- package/dist/components/UserAvatar.js +0 -14
- package/dist/components/cards/DataEntryCard.d.ts +0 -14
- package/dist/components/cards/DataEntryCard.d.ts.map +0 -1
- package/dist/components/cards/DataEntryCard.js +0 -32
- package/dist/components/cards/SectionCard.d.ts +0 -15
- package/dist/components/cards/SectionCard.d.ts.map +0 -1
- package/dist/components/cards/SectionCard.js +0 -10
- package/dist/components/cards/index.d.ts +0 -2
- package/dist/components/cards/index.d.ts.map +0 -1
- package/dist/components/cards/index.js +0 -1
- package/dist/components/dashboard/RecentActivity.d.ts +0 -2
- package/dist/components/dashboard/RecentActivity.d.ts.map +0 -1
- package/dist/components/dashboard/RecentActivity.js +0 -58
- package/dist/components/dialog.d.ts +0 -53
- package/dist/components/dialog.d.ts.map +0 -1
- package/dist/components/dialog.js +0 -56
- package/dist/components/dialogs/BlockPropertiesDialog.d.ts +0 -12
- package/dist/components/dialogs/BlockPropertiesDialog.d.ts.map +0 -1
- package/dist/components/dialogs/BlockPropertiesDialog.js +0 -42
- package/dist/components/dialogs/ConflictDialog.d.ts +0 -10
- package/dist/components/dialogs/ConflictDialog.d.ts.map +0 -1
- package/dist/components/dialogs/ConflictDialog.js +0 -29
- package/dist/components/dialogs/CreateDataDialog.d.ts +0 -9
- package/dist/components/dialogs/CreateDataDialog.d.ts.map +0 -1
- package/dist/components/dialogs/CreateDataDialog.js +0 -20
- package/dist/components/dialogs/CreateFolderDialog.d.ts +0 -9
- package/dist/components/dialogs/CreateFolderDialog.d.ts.map +0 -1
- package/dist/components/dialogs/CreateFolderDialog.js +0 -33
- package/dist/components/dialogs/CreatePageDialog.d.ts +0 -10
- package/dist/components/dialogs/CreatePageDialog.d.ts.map +0 -1
- package/dist/components/dialogs/CreatePageDialog.js +0 -155
- package/dist/components/dialogs/DataPropertiesDialog.d.ts +0 -10
- package/dist/components/dialogs/DataPropertiesDialog.d.ts.map +0 -1
- package/dist/components/dialogs/DataPropertiesDialog.js +0 -38
- package/dist/components/dialogs/DeleteConfirmDialog.d.ts +0 -12
- package/dist/components/dialogs/DeleteConfirmDialog.d.ts.map +0 -1
- package/dist/components/dialogs/DeleteConfirmDialog.js +0 -7
- package/dist/components/dialogs/ErrorModal.d.ts +0 -14
- package/dist/components/dialogs/ErrorModal.d.ts.map +0 -1
- package/dist/components/dialogs/ErrorModal.js +0 -38
- package/dist/components/dialogs/MoveFolderDialog.d.ts +0 -11
- package/dist/components/dialogs/MoveFolderDialog.d.ts.map +0 -1
- package/dist/components/dialogs/MoveFolderDialog.js +0 -45
- package/dist/components/dialogs/PageMetadataDialog.d.ts +0 -10
- package/dist/components/dialogs/PageMetadataDialog.d.ts.map +0 -1
- package/dist/components/dialogs/PageMetadataDialog.js +0 -85
- package/dist/components/dialogs/UnsavedChangesDialog.d.ts +0 -8
- package/dist/components/dialogs/UnsavedChangesDialog.d.ts.map +0 -1
- package/dist/components/dialogs/UnsavedChangesDialog.js +0 -6
- package/dist/components/dialogs/index.d.ts +0 -9
- package/dist/components/dialogs/index.d.ts.map +0 -1
- package/dist/components/dialogs/index.js +0 -8
- package/dist/components/editor/BlockEditor.d.ts +0 -8
- package/dist/components/editor/BlockEditor.d.ts.map +0 -1
- package/dist/components/editor/BlockEditor.js +0 -262
- package/dist/components/editor/BlockWrappers.d.ts +0 -15
- package/dist/components/editor/BlockWrappers.d.ts.map +0 -1
- package/dist/components/editor/BlockWrappers.js +0 -29
- package/dist/components/editor/CMSMDXEditor.d.ts +0 -13
- package/dist/components/editor/CMSMDXEditor.d.ts.map +0 -1
- package/dist/components/editor/CMSMDXEditor.js +0 -123
- package/dist/components/editor/ContentDiff.d.ts +0 -10
- package/dist/components/editor/ContentDiff.d.ts.map +0 -1
- package/dist/components/editor/ContentDiff.js +0 -51
- package/dist/components/editor/CreateBlockDialog.d.ts +0 -26
- package/dist/components/editor/CreateBlockDialog.d.ts.map +0 -1
- package/dist/components/editor/CreateBlockDialog.js +0 -131
- package/dist/components/editor/DrawerItemOverride.d.ts +0 -8
- package/dist/components/editor/DrawerItemOverride.d.ts.map +0 -1
- package/dist/components/editor/DrawerItemOverride.js +0 -41
- package/dist/components/editor/EditorChromeToggles.d.ts +0 -16
- package/dist/components/editor/EditorChromeToggles.d.ts.map +0 -1
- package/dist/components/editor/EditorChromeToggles.js +0 -16
- package/dist/components/editor/GenericBlock.d.ts +0 -3
- package/dist/components/editor/GenericBlock.d.ts.map +0 -1
- package/dist/components/editor/GenericBlock.js +0 -1067
- package/dist/components/editor/ImagePickerDialog.d.ts +0 -6
- package/dist/components/editor/ImagePickerDialog.d.ts.map +0 -1
- package/dist/components/editor/ImagePickerDialog.js +0 -24
- package/dist/components/editor/JsxPropsPanel.d.ts +0 -16
- package/dist/components/editor/JsxPropsPanel.d.ts.map +0 -1
- package/dist/components/editor/JsxPropsPanel.js +0 -145
- package/dist/components/editor/LocaleSelector.d.ts +0 -9
- package/dist/components/editor/LocaleSelector.d.ts.map +0 -1
- package/dist/components/editor/LocaleSelector.js +0 -13
- package/dist/components/editor/MDXLivePreview.d.ts +0 -14
- package/dist/components/editor/MDXLivePreview.d.ts.map +0 -1
- package/dist/components/editor/MDXLivePreview.js +0 -103
- package/dist/components/editor/MdxPageEditor.d.ts +0 -10
- package/dist/components/editor/MdxPageEditor.d.ts.map +0 -1
- package/dist/components/editor/MdxPageEditor.js +0 -297
- package/dist/components/editor/PageEditor.d.ts +0 -18
- package/dist/components/editor/PageEditor.d.ts.map +0 -1
- package/dist/components/editor/PageEditor.js +0 -288
- package/dist/components/editor/PageEditorHeaderActions.d.ts +0 -16
- package/dist/components/editor/PageEditorHeaderActions.d.ts.map +0 -1
- package/dist/components/editor/PageEditorHeaderActions.js +0 -19
- package/dist/components/editor/PageEditorWrapper.d.ts +0 -7
- package/dist/components/editor/PageEditorWrapper.d.ts.map +0 -1
- package/dist/components/editor/PageEditorWrapper.js +0 -319
- package/dist/components/editor/SearchableSelect.d.ts +0 -34
- package/dist/components/editor/SearchableSelect.d.ts.map +0 -1
- package/dist/components/editor/SearchableSelect.js +0 -116
- package/dist/components/editor/host-wrapper-plugin.d.ts.map +0 -1
- package/dist/components/editor/host-wrapper-plugin.js +0 -37
- package/dist/components/editor/index.d.ts +0 -9
- package/dist/components/editor/index.d.ts.map +0 -1
- package/dist/components/editor/index.js +0 -7
- package/dist/components/editor/insert-menu/InsertMdxComponentButton.d.ts +0 -15
- package/dist/components/editor/insert-menu/InsertMdxComponentButton.d.ts.map +0 -1
- package/dist/components/editor/insert-menu/InsertMdxComponentButton.js +0 -90
- package/dist/components/editor/insert-menu/SlashMenuPlugin.d.ts +0 -12
- package/dist/components/editor/insert-menu/SlashMenuPlugin.d.ts.map +0 -1
- package/dist/components/editor/insert-menu/SlashMenuPlugin.js +0 -106
- package/dist/components/editor/insert-menu/insert-payload.d.ts +0 -76
- package/dist/components/editor/insert-menu/insert-payload.d.ts.map +0 -1
- package/dist/components/editor/insert-menu/insert-payload.js +0 -94
- package/dist/components/editor/insert-menu/mdx-components-plugin.d.ts.map +0 -1
- package/dist/components/editor/insert-menu/mdx-components-plugin.js +0 -13
- package/dist/components/editors/DataEditor.d.ts +0 -19
- package/dist/components/editors/DataEditor.d.ts.map +0 -1
- package/dist/components/editors/DataEditor.js +0 -139
- package/dist/components/fields/ContentBlockSelectorField.d.ts +0 -14
- package/dist/components/fields/ContentBlockSelectorField.d.ts.map +0 -1
- package/dist/components/fields/ContentBlockSelectorField.js +0 -105
- package/dist/components/fields/ImageField.d.ts +0 -16
- package/dist/components/fields/ImageField.d.ts.map +0 -1
- package/dist/components/fields/ImageField.js +0 -39
- package/dist/components/fields/MDXEditField.d.ts +0 -17
- package/dist/components/fields/MDXEditField.d.ts.map +0 -1
- package/dist/components/fields/MDXEditField.js +0 -28
- package/dist/components/forms/ChipArrayField.d.ts +0 -12
- package/dist/components/forms/ChipArrayField.d.ts.map +0 -1
- package/dist/components/forms/ChipArrayField.js +0 -40
- package/dist/components/forms/HintForm.d.ts +0 -22
- package/dist/components/forms/HintForm.d.ts.map +0 -1
- package/dist/components/forms/HintForm.js +0 -162
- package/dist/components/forms/SchemaForm.d.ts +0 -15
- package/dist/components/forms/SchemaForm.d.ts.map +0 -1
- package/dist/components/forms/SchemaForm.js +0 -106
- package/dist/components/index.d.ts +0 -8
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/index.js +0 -13
- package/dist/components/media/AssetCard.d.ts +0 -14
- package/dist/components/media/AssetCard.d.ts.map +0 -1
- package/dist/components/media/AssetCard.js +0 -31
- package/dist/components/media/AssetDetailSidebar.d.ts +0 -11
- package/dist/components/media/AssetDetailSidebar.d.ts.map +0 -1
- package/dist/components/media/AssetDetailSidebar.js +0 -101
- package/dist/components/media/BulkActionBar.d.ts +0 -9
- package/dist/components/media/BulkActionBar.d.ts.map +0 -1
- package/dist/components/media/BulkActionBar.js +0 -8
- package/dist/components/media/FolderNav.d.ts +0 -7
- package/dist/components/media/FolderNav.d.ts.map +0 -1
- package/dist/components/media/FolderNav.js +0 -12
- package/dist/components/media/FolderTreeSidebar.d.ts +0 -9
- package/dist/components/media/FolderTreeSidebar.d.ts.map +0 -1
- package/dist/components/media/FolderTreeSidebar.js +0 -41
- package/dist/components/media/ImagePicker.d.ts +0 -14
- package/dist/components/media/ImagePicker.d.ts.map +0 -1
- package/dist/components/media/ImagePicker.js +0 -45
- package/dist/components/media/MediaLibrary.d.ts +0 -35
- package/dist/components/media/MediaLibrary.d.ts.map +0 -1
- package/dist/components/media/MediaLibrary.js +0 -100
- package/dist/components/media/MediaToolbar.d.ts +0 -21
- package/dist/components/media/MediaToolbar.d.ts.map +0 -1
- package/dist/components/media/MediaToolbar.js +0 -6
- package/dist/components/media/UploadModal.d.ts +0 -9
- package/dist/components/media/UploadModal.d.ts.map +0 -1
- package/dist/components/media/UploadModal.js +0 -42
- package/dist/components/media/UploadZone.d.ts +0 -8
- package/dist/components/media/UploadZone.d.ts.map +0 -1
- package/dist/components/media/UploadZone.js +0 -22
- package/dist/components/media/index.d.ts +0 -11
- package/dist/components/media/index.d.ts.map +0 -1
- package/dist/components/media/index.js +0 -10
- package/dist/components/pages/BlockList.d.ts +0 -2
- package/dist/components/pages/BlockList.d.ts.map +0 -1
- package/dist/components/pages/BlockList.js +0 -280
- package/dist/components/pages/DataList.d.ts +0 -7
- package/dist/components/pages/DataList.d.ts.map +0 -1
- package/dist/components/pages/DataList.js +0 -244
- package/dist/components/pages/MediaPage.d.ts +0 -8
- package/dist/components/pages/MediaPage.d.ts.map +0 -1
- package/dist/components/pages/MediaPage.js +0 -107
- package/dist/components/pages/PageList.d.ts +0 -7
- package/dist/components/pages/PageList.d.ts.map +0 -1
- package/dist/components/pages/PageList.js +0 -308
- package/dist/components/pages/index.d.ts +0 -3
- package/dist/components/pages/index.d.ts.map +0 -1
- package/dist/components/pages/index.js +0 -2
- package/dist/components/puck/MDXContent.d.ts +0 -10
- package/dist/components/puck/MDXContent.d.ts.map +0 -1
- package/dist/components/puck/MDXContent.js +0 -80
- package/dist/components/puck/index.d.ts +0 -2
- package/dist/components/puck/index.d.ts.map +0 -1
- package/dist/components/puck/index.js +0 -1
- package/dist/components/toast.d.ts +0 -44
- package/dist/components/toast.d.ts.map +0 -1
- package/dist/components/toast.js +0 -7
- package/dist/components/ui/Banner.d.ts +0 -76
- package/dist/components/ui/Banner.d.ts.map +0 -1
- package/dist/components/ui/Banner.js +0 -49
- package/dist/components/ui/Button.d.ts +0 -25
- package/dist/components/ui/Button.d.ts.map +0 -1
- package/dist/components/ui/Button.js +0 -33
- package/dist/components/ui/Card.d.ts +0 -72
- package/dist/components/ui/Card.d.ts.map +0 -1
- package/dist/components/ui/Card.js +0 -49
- package/dist/components/ui/FieldError.d.ts +0 -24
- package/dist/components/ui/FieldError.d.ts.map +0 -1
- package/dist/components/ui/FieldError.js +0 -17
- package/dist/components/ui/IconButton.d.ts +0 -13
- package/dist/components/ui/IconButton.d.ts.map +0 -1
- package/dist/components/ui/IconButton.js +0 -10
- package/dist/components/ui/Input.d.ts +0 -37
- package/dist/components/ui/Input.d.ts.map +0 -1
- package/dist/components/ui/Input.js +0 -9
- package/dist/components/ui/SaveIndicator.d.ts +0 -8
- package/dist/components/ui/SaveIndicator.d.ts.map +0 -1
- package/dist/components/ui/SaveIndicator.js +0 -32
- package/dist/components/ui/Select.d.ts +0 -8
- package/dist/components/ui/Select.d.ts.map +0 -1
- package/dist/components/ui/Select.js +0 -9
- package/dist/components/ui/Separator.d.ts +0 -7
- package/dist/components/ui/Separator.d.ts.map +0 -1
- package/dist/components/ui/Separator.js +0 -8
- package/dist/components/ui/Textarea.d.ts +0 -8
- package/dist/components/ui/Textarea.d.ts.map +0 -1
- package/dist/components/ui/Textarea.js +0 -5
- package/dist/components/ui/Tooltip.d.ts +0 -9
- package/dist/components/ui/Tooltip.d.ts.map +0 -1
- package/dist/components/ui/Tooltip.js +0 -7
- package/dist/components/ui/index.d.ts +0 -14
- package/dist/components/ui/index.d.ts.map +0 -1
- package/dist/components/ui/index.js +0 -17
- package/dist/data-schemas.d.mts +0 -25
- package/dist/data-schemas.d.mts.map +0 -1
- package/dist/data-schemas.d.ts +0 -22
- package/dist/data-schemas.d.ts.map +0 -1
- package/dist/data-schemas.js +0 -51
- package/dist/data-schemas.mjs +0 -51
- package/dist/data-schemas.mjs.map +0 -1
- package/dist/dev-entry.d.ts +0 -2
- package/dist/dev-entry.d.ts.map +0 -1
- package/dist/dev-entry.js +0 -19
- package/dist/dialog.d.mts +0 -56
- package/dist/dialog.d.mts.map +0 -1
- package/dist/dialog.mjs +0 -67
- package/dist/dialog.mjs.map +0 -1
- package/dist/hooks/index.d.ts +0 -10
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/index.js +0 -7
- package/dist/hooks/useCanvasTheme.d.ts +0 -12
- package/dist/hooks/useCanvasTheme.d.ts.map +0 -1
- package/dist/hooks/useCanvasTheme.js +0 -33
- package/dist/hooks/useClickOutside.d.ts.map +0 -1
- package/dist/hooks/useClickOutside.js +0 -18
- package/dist/hooks/useDialogState.d.ts.map +0 -1
- package/dist/hooks/useDialogState.js +0 -31
- package/dist/hooks/useEditorPref.d.ts.map +0 -1
- package/dist/hooks/useEditorPref.js +0 -49
- package/dist/hooks/useErrorModal.d.ts +0 -15
- package/dist/hooks/useErrorModal.d.ts.map +0 -1
- package/dist/hooks/useErrorModal.js +0 -35
- package/dist/hooks/useSiteBaseUrl.d.ts +0 -10
- package/dist/hooks/useSiteBaseUrl.d.ts.map +0 -1
- package/dist/hooks/useSiteBaseUrl.js +0 -14
- package/dist/hooks/useTheme.d.ts +0 -13
- package/dist/hooks/useTheme.d.ts.map +0 -1
- package/dist/hooks/useTheme.js +0 -69
- package/dist/hooks/useUnsavedChangesGuard.d.ts.map +0 -1
- package/dist/hooks/useUnsavedChangesGuard.js +0 -29
- package/dist/hooks/useUpload.d.ts +0 -10
- package/dist/hooks/useUpload.d.ts.map +0 -1
- package/dist/hooks/useUpload.js +0 -42
- package/dist/hooks/useUploadFlow.d.ts +0 -42
- package/dist/hooks/useUploadFlow.d.ts.map +0 -1
- package/dist/hooks/useUploadFlow.js +0 -148
- package/dist/host-style-probe.d.ts +0 -22
- package/dist/host-style-probe.d.ts.map +0 -1
- package/dist/host-style-probe.js +0 -508
- package/dist/index.d.mts +0 -253
- package/dist/index.d.mts.map +0 -1
- package/dist/index.d.ts +0 -10
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -12
- package/dist/index.mjs +0 -38
- package/dist/index.mjs.map +0 -1
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/utils.js +0 -47
- package/dist/main-spa-781YUplS.mjs +0 -46
- package/dist/main-spa-781YUplS.mjs.map +0 -1
- package/dist/main-spa.d.ts.map +0 -1
- package/dist/main-spa.js +0 -61
- package/dist/main.d.mts +0 -1
- package/dist/main.d.ts.map +0 -1
- package/dist/main.js +0 -13
- package/dist/main.mjs +0 -17
- package/dist/main.mjs.map +0 -1
- package/dist/mdx-components.d.mts +0 -207
- package/dist/mdx-components.d.mts.map +0 -1
- package/dist/mdx-components.d.ts +0 -204
- package/dist/mdx-components.d.ts.map +0 -1
- package/dist/mdx-components.js +0 -217
- package/dist/mdx-components.mjs +0 -208
- package/dist/mdx-components.mjs.map +0 -1
- package/dist/media/AssetScopePill.d.ts +0 -30
- package/dist/media/AssetScopePill.d.ts.map +0 -1
- package/dist/media/AssetScopePill.js +0 -30
- package/dist/media/MediaIssueBadge.d.ts +0 -33
- package/dist/media/MediaIssueBadge.d.ts.map +0 -1
- package/dist/media/MediaIssueBadge.js +0 -54
- package/dist/media/types.d.ts +0 -101
- package/dist/media/types.d.ts.map +0 -1
- package/dist/media/types.js +0 -1
- package/dist/media/use-asset-scope.d.ts +0 -25
- package/dist/media/use-asset-scope.d.ts.map +0 -1
- package/dist/media/use-asset-scope.js +0 -54
- package/dist/media/use-media-issue.d.ts +0 -24
- package/dist/media/use-media-issue.d.ts.map +0 -1
- package/dist/media/use-media-issue.js +0 -49
- package/dist/mock-puck-config.d.mts +0 -23
- package/dist/mock-puck-config.d.mts.map +0 -1
- package/dist/mock-puck-config.d.ts.map +0 -1
- package/dist/mock-puck-config.js +0 -73
- package/dist/mock-puck-config.mjs +0 -125
- package/dist/mock-puck-config.mjs.map +0 -1
- package/dist/page-schemas.d.mts +0 -159
- package/dist/page-schemas.d.mts.map +0 -1
- package/dist/page-schemas.d.ts +0 -156
- package/dist/page-schemas.d.ts.map +0 -1
- package/dist/page-schemas.js +0 -118
- package/dist/page-schemas.mjs +0 -120
- package/dist/page-schemas.mjs.map +0 -1
- package/dist/puck-config.d.mts +0 -33
- package/dist/puck-config.d.mts.map +0 -1
- package/dist/puck-config.d.ts.map +0 -1
- package/dist/puck-config.js +0 -50
- package/dist/puck-config.mjs +0 -50
- package/dist/puck-config.mjs.map +0 -1
- package/dist/selected-block.d.ts +0 -61
- package/dist/selected-block.d.ts.map +0 -1
- package/dist/selected-block.js +0 -64
- package/dist/site-styles.d.mts +0 -123
- package/dist/site-styles.d.mts.map +0 -1
- package/dist/site-styles.d.ts +0 -121
- package/dist/site-styles.d.ts.map +0 -1
- package/dist/site-styles.js +0 -253
- package/dist/site-styles.mjs +0 -234
- package/dist/site-styles.mjs.map +0 -1
- package/dist/toast.d.mts +0 -7
- package/dist/toast.d.mts.map +0 -1
- package/dist/toast.mjs +0 -16
- package/dist/toast.mjs.map +0 -1
- package/dist/types.d.ts +0 -57
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -1
- package/dist/ui-CIacC6Mv.mjs +0 -318
- package/dist/ui-CIacC6Mv.mjs.map +0 -1
- package/dist/ui-config.d.ts +0 -70
- package/dist/ui-config.d.ts.map +0 -1
- package/dist/ui-config.js +0 -44
- package/dist/ui.d.mts +0 -290
- package/dist/ui.d.mts.map +0 -1
- package/dist/ui.mjs +0 -2
- package/dist/utils/asset-url.d.ts +0 -3
- package/dist/utils/asset-url.d.ts.map +0 -1
- package/dist/utils/asset-url.js +0 -7
- package/dist/utils/cn.d.ts.map +0 -1
- package/dist/utils/cn.js +0 -5
- package/dist/utils/format-date.d.ts.map +0 -1
- package/dist/utils/format-date.js +0 -37
- package/dist/utils/mdast-to-html.d.ts.map +0 -1
- package/dist/utils/mdast-to-html.js +0 -206
- package/dist/utils/mdast-tree.d.ts.map +0 -1
- package/dist/utils/mdast-tree.js +0 -285
- package/dist/utils/pageMetadata.d.ts +0 -67
- package/dist/utils/pageMetadata.d.ts.map +0 -1
- package/dist/utils/pageMetadata.js +0 -161
- package/dist/utils/slugify.d.ts +0 -12
- package/dist/utils/slugify.d.ts.map +0 -1
- package/dist/utils/slugify.js +0 -17
- package/dist/utils/zodIntrospect.d.ts +0 -24
- package/dist/utils/zodIntrospect.d.ts.map +0 -1
- package/dist/utils/zodIntrospect.js +0 -88
- package/styles/styles.css.d.ts +0 -2
- package/styles/tailwind-theme.css.d.ts +0 -2
- /package/dist/{components → ts/components}/editor/host-wrapper-plugin.d.ts +0 -0
- /package/dist/{components → ts/components}/editor/insert-menu/mdx-components-plugin.d.ts +0 -0
- /package/dist/{hooks → ts/hooks}/useClickOutside.d.ts +0 -0
- /package/dist/{hooks → ts/hooks}/useDialogState.d.ts +0 -0
- /package/dist/{hooks → ts/hooks}/useEditorPref.d.ts +0 -0
- /package/dist/{hooks → ts/hooks}/useUnsavedChangesGuard.d.ts +0 -0
- /package/dist/{lib → ts/lib}/utils.d.ts +0 -0
- /package/dist/{main-spa.d.ts → ts/main-spa.d.ts} +0 -0
- /package/dist/{main.d.ts → ts/main.d.ts} +0 -0
- /package/dist/{mock-puck-config.d.ts → ts/mock-puck-config.d.ts} +0 -0
- /package/dist/{puck-config.d.ts → ts/puck-config.d.ts} +0 -0
- /package/dist/{utils → ts/utils}/cn.d.ts +0 -0
- /package/dist/{utils → ts/utils}/format-date.d.ts +0 -0
- /package/dist/{utils → ts/utils}/mdast-to-html.d.ts +0 -0
- /package/dist/{utils → ts/utils}/mdast-tree.d.ts +0 -0
package/src/main.css
ADDED
|
@@ -0,0 +1,1095 @@
|
|
|
1
|
+
/* Cascade layer ordering.
|
|
2
|
+
* `cms-admin` ranks AFTER the ordinary top-level Tailwind layers
|
|
3
|
+
* (base/theme/components/utilities) so all CMS SPA styles win over any
|
|
4
|
+
* stylesheet injected into /__cms/* via host-style routes. Without
|
|
5
|
+
* this, host base utilities (.fixed, .w-full, etc.) clobber our
|
|
6
|
+
* responsive variants (.md:static, .md:w-80, etc.) because they
|
|
7
|
+
* load later in source order. Layers override source order. The two
|
|
8
|
+
* `conloca-host-*` layers sit after `cms-admin` BY DESIGN — see below.
|
|
9
|
+
*
|
|
10
|
+
* Host CSS lands in the SPA <head> ONLY through `useInjectHostStyles`,
|
|
11
|
+
* which wraps each stylesheet in `@layer conloca-host-preview { ... }`.
|
|
12
|
+
* Any inner `@layer foo, bar;` declaration from the host (eg
|
|
13
|
+
* Starlight's `@layer starlight.base, starlight.reset, ...;`) becomes
|
|
14
|
+
* a SUB-layer under `conloca-host-preview` and never pollutes the
|
|
15
|
+
* top-level cascade order. No per-framework slot needed here.
|
|
16
|
+
*
|
|
17
|
+
* `conloca-host-preview` is the slot for host CSS injected directly into
|
|
18
|
+
* the main admin document while an MDX editor is mounted (see
|
|
19
|
+
* `useInjectHostStyles` in site-styles.ts). Sits AFTER `cms-admin` —
|
|
20
|
+
* well after the layer carrying Tailwind's preflight (`*, ::before,
|
|
21
|
+
* ::after { border-width: 0; margin: 0; padding: 0 }`), so no host rule
|
|
22
|
+
* has to fight the universal reset on specificity (a class selector
|
|
23
|
+
* loses to `*` once layer order beats it).
|
|
24
|
+
* The host's CSS only targets `.conloca-aside`, `.conloca-card`, and
|
|
25
|
+
* other host-component selectors that admin chrome never claims, so
|
|
26
|
+
* letting host CSS win on those classes is safe; admin chrome stays
|
|
27
|
+
* intact because no host rule names admin selectors.
|
|
28
|
+
*
|
|
29
|
+
* Preflight placement: preflight is imported into the
|
|
30
|
+
* TOP-LEVEL `base` layer — its Tailwind v4 native home (`tailwindcss/
|
|
31
|
+
* index.css` wraps it in `@layer base`) and the weakest slot in this
|
|
32
|
+
* stack. It used to ride inside `cms-admin` via the monolithic
|
|
33
|
+
* `@import "tailwindcss" layer(cms-admin)`, which ranked the universal
|
|
34
|
+
* reset AFTER a host app's top-level `utilities` layer and made every
|
|
35
|
+
* host utility the admin build didn't also emit cascade-inert (the
|
|
36
|
+
* reset's `* { padding: 0 }` beat the host's own `.px-[28px]`). Only
|
|
37
|
+
* preflight moves: `theme.css` and `utilities.css` keep their
|
|
38
|
+
* `cms-admin.theme` / `cms-admin.utilities` sublayers, so the
|
|
39
|
+
* admin-beats-host invariant above is untouched for everything that
|
|
40
|
+
* styles admin chrome. Moving the utilities copy out instead was
|
|
41
|
+
* considered and rejected — it would re-introduce the failure via
|
|
42
|
+
* source-order ties between the host's and the admin's top-level
|
|
43
|
+
* `utilities` layers.
|
|
44
|
+
*
|
|
45
|
+
* `conloca-host-defaults` is the slot for the computed-style probe's
|
|
46
|
+
* synthesized stylesheet (`.conloca-prose--editor h1 { font-size: …
|
|
47
|
+
* }`, etc.). Declared BEFORE `conloca-host-preview` so the probe is
|
|
48
|
+
* a FALLBACK, not an override.
|
|
49
|
+
*
|
|
50
|
+
* Why this ordering matters: the probe captures static snapshots of
|
|
51
|
+
* single elements in isolation — `h2 { margin-block-start: 0 }` from
|
|
52
|
+
* sampling the first h2 on the page, etc. The grabbed host CSS in
|
|
53
|
+
* `conloca-host-preview` carries context-aware rules like Starlight's
|
|
54
|
+
* `.sl-markdown-content :not(...) + :not(...) { margin-top: ... }`
|
|
55
|
+
* adjacent-sibling spacing or its `.sl-markdown-content pre:not(:where
|
|
56
|
+
* (.not-content *)) { border: 1px solid }` not-content exclusion.
|
|
57
|
+
*
|
|
58
|
+
* CSS layer ordering beats selector specificity absolutely — whatever
|
|
59
|
+
* the later layer says wins, no matter how specific the earlier
|
|
60
|
+
* layer's selector is. If the probe were declared later, it would
|
|
61
|
+
* override every host rule it touches, even though host rules are
|
|
62
|
+
* almost always more specific (adjacent-sibling, not-content
|
|
63
|
+
* exclusions, etc.). The result was the editor showing first-paragraph
|
|
64
|
+
* margins everywhere, code blocks getting borders that the host
|
|
65
|
+
* intentionally suppresses, etc.
|
|
66
|
+
*
|
|
67
|
+
* With the probe declared earlier, host CSS naturally wins where it
|
|
68
|
+
* reaches the editor's typed elements (Starlight's wrapper-scoped
|
|
69
|
+
* descendant rules, etc.). The probe only fills in where host CSS
|
|
70
|
+
* doesn't reach — typically utility-first hosts whose CSS targets
|
|
71
|
+
* `.text-5xl` instead of `<h1>`, leaving bare elements unstyled. */
|
|
72
|
+
/* Layer name `conloca-host-defaults` chosen so it sorts alphabetically
|
|
73
|
+
BEFORE `conloca-host-preview`. Tailwind v4's CSS compiler rewrites
|
|
74
|
+
the explicit @layer declaration based on alphabetical sort of layer
|
|
75
|
+
names — multi-statement declarations get merged, and the source
|
|
76
|
+
order is lost. Naming the probe layer with a leading `d` (defaults)
|
|
77
|
+
ensures it lands BEFORE `conloca-host-preview` (leading `p`) in the
|
|
78
|
+
compiled cascade, so the grabbed host CSS (the "real" styling) wins
|
|
79
|
+
on tie-breaks and the probe acts as a fallback for elements the
|
|
80
|
+
host's CSS doesn't reach. */
|
|
81
|
+
@layer base, theme, components, utilities, cms-admin, conloca-host-defaults, conloca-host-preview;
|
|
82
|
+
|
|
83
|
+
@import "@puckeditor/core/puck.css" layer(cms-admin);
|
|
84
|
+
/* Granular Tailwind v4 imports (see the preflight note in the header):
|
|
85
|
+
* theme + utilities keep their exact pre-split homes — the
|
|
86
|
+
* `cms-admin.theme` / `cms-admin.utilities` sublayers the monolithic
|
|
87
|
+
* import produced — so admin-internal precedence (puck.css and
|
|
88
|
+
* hand-written cms-admin rules beat the utilities sublayer) is
|
|
89
|
+
* byte-for-byte what it was. Sublayer order stays implicit
|
|
90
|
+
* (first-mention: theme, then utilities — the same relative order the
|
|
91
|
+
* monolithic import pinned); an explicit `@layer cms-admin.*` statement
|
|
92
|
+
* here makes the v4 compiler nest rules under
|
|
93
|
+
* `cms-admin.utilities.cms-admin`, so it is deliberately NOT declared.
|
|
94
|
+
* Only preflight moves: to the top-level `base` layer, so host-app
|
|
95
|
+
* utilities beat the reset. */
|
|
96
|
+
@import "tailwindcss/theme.css" layer(cms-admin.theme);
|
|
97
|
+
@import "tailwindcss/preflight.css" layer(base);
|
|
98
|
+
@import "tailwindcss/utilities.css" layer(cms-admin.utilities);
|
|
99
|
+
@import "../styles/tailwind-theme.css";
|
|
100
|
+
@plugin "@tailwindcss/typography";
|
|
101
|
+
@source ".";
|
|
102
|
+
@source "../../mdx/src";
|
|
103
|
+
|
|
104
|
+
@theme {
|
|
105
|
+
/* Puck's azure colors */
|
|
106
|
+
--color-azure-01: #00175d;
|
|
107
|
+
--color-azure-02: #002c77;
|
|
108
|
+
--color-azure-03: #014292;
|
|
109
|
+
--color-azure-04: #0158ad;
|
|
110
|
+
--color-azure-05: #3479be;
|
|
111
|
+
--color-azure-06: #6499cf;
|
|
112
|
+
--color-azure-07: #88b0da;
|
|
113
|
+
--color-azure-08: #abc7e5;
|
|
114
|
+
--color-azure-09: #cfdff0;
|
|
115
|
+
--color-azure-10: #e7eef7;
|
|
116
|
+
--color-azure-11: #f3f6fb;
|
|
117
|
+
--color-azure-12: #f7faff;
|
|
118
|
+
|
|
119
|
+
/* Puck's grey colors */
|
|
120
|
+
--color-grey-01: #181818;
|
|
121
|
+
--color-grey-02: #292929;
|
|
122
|
+
--color-grey-03: #404040;
|
|
123
|
+
--color-grey-04: #5a5a5a;
|
|
124
|
+
--color-grey-05: #767676;
|
|
125
|
+
--color-grey-06: #949494;
|
|
126
|
+
--color-grey-07: #ababab;
|
|
127
|
+
--color-grey-08: #c3c3c3;
|
|
128
|
+
--color-grey-09: #dcdcdc;
|
|
129
|
+
--color-grey-10: #efefef;
|
|
130
|
+
--color-grey-11: #f5f5f5;
|
|
131
|
+
--color-grey-12: #fafafa;
|
|
132
|
+
|
|
133
|
+
/* Also add other Puck colors for consistency */
|
|
134
|
+
--color-green-01: #002000;
|
|
135
|
+
--color-green-02: #043604;
|
|
136
|
+
--color-green-03: #084e08;
|
|
137
|
+
--color-green-04: #0c680c;
|
|
138
|
+
--color-green-05: #1d882f;
|
|
139
|
+
--color-green-06: #2faa53;
|
|
140
|
+
--color-green-07: #56c16f;
|
|
141
|
+
--color-green-08: #7dd78b;
|
|
142
|
+
--color-green-09: #b8e8bf;
|
|
143
|
+
--color-green-10: #ddf3e0;
|
|
144
|
+
--color-green-11: #eff8f0;
|
|
145
|
+
--color-green-12: #f3fcf4;
|
|
146
|
+
|
|
147
|
+
--color-red-01: #4c0000;
|
|
148
|
+
--color-red-02: #6a0a10;
|
|
149
|
+
--color-red-03: #8a1422;
|
|
150
|
+
--color-red-04: #ac1f35;
|
|
151
|
+
--color-red-05: #bf5366;
|
|
152
|
+
--color-red-06: #ce7e8e;
|
|
153
|
+
--color-red-07: #d99ca8;
|
|
154
|
+
--color-red-08: #e4b9c2;
|
|
155
|
+
--color-red-09: #efd7db;
|
|
156
|
+
--color-red-10: #f6eaec;
|
|
157
|
+
--color-red-11: #faf4f5;
|
|
158
|
+
--color-red-12: #fff9fa;
|
|
159
|
+
|
|
160
|
+
--color-yellow-01: #211000;
|
|
161
|
+
--color-yellow-02: #362700;
|
|
162
|
+
--color-yellow-03: #4c4000;
|
|
163
|
+
--color-yellow-04: #645a00;
|
|
164
|
+
--color-yellow-05: #877614;
|
|
165
|
+
--color-yellow-06: #ab9429;
|
|
166
|
+
--color-yellow-07: #bfac4e;
|
|
167
|
+
--color-yellow-08: #d4c474;
|
|
168
|
+
--color-yellow-09: #e6deb1;
|
|
169
|
+
--color-yellow-10: #f3efd9;
|
|
170
|
+
--color-yellow-11: #f9f7ed;
|
|
171
|
+
--color-yellow-12: #fcfaf0;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/* Semantic surface tokens — flip in .dark block below.
|
|
175
|
+
* These are the only colors components should reach for when building
|
|
176
|
+
* dialogs, panels, inputs, borders, and hover states. Raw grey-* palette
|
|
177
|
+
* usage in new components creates dark-mode contrast bugs. */
|
|
178
|
+
:root {
|
|
179
|
+
--color-page-bg: #fafafa; /* outermost page surface (behind panels) */
|
|
180
|
+
--color-overlay: #ffffff; /* dialog/modal surface */
|
|
181
|
+
--color-panel: #ffffff; /* input bg, outline-button bg, side panels */
|
|
182
|
+
--color-subtle: #f5f5f5; /* recessed footer wash, info callouts */
|
|
183
|
+
--color-line: #dcdcdc; /* borders and dividers */
|
|
184
|
+
--color-hover: #f5f5f5; /* hover bg for ghost buttons, menu items */
|
|
185
|
+
--color-selected: #efefef; /* selected item bg (eg highlighted menu item) */
|
|
186
|
+
--color-foreground: #181818; /* primary text on surfaces */
|
|
187
|
+
--color-muted: #5a5a5a; /* secondary/disabled text, captions */
|
|
188
|
+
--color-accent: #0158ad; /* brand-blue used by primary buttons + selection ring */
|
|
189
|
+
--color-accent-foreground: #ffffff; /* text on accent surfaces */
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* Semantic utilities — defined explicitly so they're guaranteed in the
|
|
193
|
+
* generated CSS regardless of JIT scan state. Light/dark flip via the
|
|
194
|
+
* :root vs .dark override of the tokens above. */
|
|
195
|
+
@utility bg-page {
|
|
196
|
+
background-color: var(--color-page-bg);
|
|
197
|
+
}
|
|
198
|
+
@utility bg-overlay {
|
|
199
|
+
background-color: var(--color-overlay);
|
|
200
|
+
}
|
|
201
|
+
@utility bg-panel {
|
|
202
|
+
background-color: var(--color-panel);
|
|
203
|
+
}
|
|
204
|
+
@utility bg-subtle {
|
|
205
|
+
background-color: var(--color-subtle);
|
|
206
|
+
}
|
|
207
|
+
@utility bg-hover {
|
|
208
|
+
background-color: var(--color-hover);
|
|
209
|
+
}
|
|
210
|
+
@utility border-line {
|
|
211
|
+
/* !important needed because host site's Tailwind preflight in the
|
|
212
|
+
* conloca-host-preview layer ships `*, ::before, ::after { border-color:
|
|
213
|
+
* currentcolor }`. That layer sits above cms-admin in the cascade, so
|
|
214
|
+
* a normal `.border-line { border-color: ... }` rule loses — chrome's
|
|
215
|
+
* borders end up rendering as currentColor (typically white in dark
|
|
216
|
+
* mode, against a dark panel: invisible-ish but technically a bug).
|
|
217
|
+
* Important author beats normal author across layers, so this is the
|
|
218
|
+
* minimal hammer that pins chrome's border color regardless of which
|
|
219
|
+
* Tailwind preflight is loaded alongside us. */
|
|
220
|
+
border-color: var(--color-line) !important;
|
|
221
|
+
}
|
|
222
|
+
@utility bg-selected {
|
|
223
|
+
background-color: var(--color-selected);
|
|
224
|
+
}
|
|
225
|
+
@utility text-foreground {
|
|
226
|
+
color: var(--color-foreground);
|
|
227
|
+
}
|
|
228
|
+
@utility text-muted {
|
|
229
|
+
color: var(--color-muted);
|
|
230
|
+
}
|
|
231
|
+
@utility bg-accent {
|
|
232
|
+
background-color: var(--color-accent);
|
|
233
|
+
}
|
|
234
|
+
@utility text-accent-foreground {
|
|
235
|
+
color: var(--color-accent-foreground);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/* Dark mode: selector strategy for manual toggle + system preference.
|
|
239
|
+
* Uses :is() (not :where()) so dark variants beat any host site's
|
|
240
|
+
* Tailwind that gets injected into /__cms — its plain .bg-white
|
|
241
|
+
* etc. has spec (0,1,0) and would override a :where()-wrapped variant. */
|
|
242
|
+
@custom-variant dark {
|
|
243
|
+
&:is(.dark, .dark *) {
|
|
244
|
+
@slot;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/* Drawer + overlay animations (used by Radix Dialog wrappers) */
|
|
249
|
+
@keyframes drawer-fade-in {
|
|
250
|
+
from {
|
|
251
|
+
opacity: 0;
|
|
252
|
+
}
|
|
253
|
+
to {
|
|
254
|
+
opacity: 1;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
@keyframes drawer-fade-out {
|
|
258
|
+
from {
|
|
259
|
+
opacity: 1;
|
|
260
|
+
}
|
|
261
|
+
to {
|
|
262
|
+
opacity: 0;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
@keyframes drawer-slide-in-left {
|
|
266
|
+
from {
|
|
267
|
+
transform: translateX(-100%);
|
|
268
|
+
}
|
|
269
|
+
to {
|
|
270
|
+
transform: translateX(0);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
@keyframes drawer-slide-out-left {
|
|
274
|
+
from {
|
|
275
|
+
transform: translateX(0);
|
|
276
|
+
}
|
|
277
|
+
to {
|
|
278
|
+
transform: translateX(-100%);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
.animate-fade-in {
|
|
282
|
+
animation: drawer-fade-in 0.2s ease-out;
|
|
283
|
+
}
|
|
284
|
+
.animate-fade-out {
|
|
285
|
+
animation: drawer-fade-out 0.2s ease-out;
|
|
286
|
+
}
|
|
287
|
+
.animate-slide-in-left {
|
|
288
|
+
animation: drawer-slide-in-left 0.2s ease-out;
|
|
289
|
+
}
|
|
290
|
+
.animate-slide-out-left {
|
|
291
|
+
animation: drawer-slide-out-left 0.2s ease-out;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/* Global placeholder text colors — avoid touching every input site */
|
|
295
|
+
input::placeholder,
|
|
296
|
+
textarea::placeholder {
|
|
297
|
+
color: var(--color-grey-06);
|
|
298
|
+
}
|
|
299
|
+
.dark input::placeholder,
|
|
300
|
+
.dark textarea::placeholder {
|
|
301
|
+
color: var(--color-grey-05);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
html,
|
|
305
|
+
body {
|
|
306
|
+
margin: 0;
|
|
307
|
+
padding: 0;
|
|
308
|
+
height: 100%;
|
|
309
|
+
font-family: var(--puck-font-family);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
:root {
|
|
313
|
+
--puck-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", sans-serif;
|
|
314
|
+
--puck-font-family-monospaced: "SF Mono", "Cascadia Code", "Fira Code", Consolas, "DejaVu Sans Mono", monospace;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
#root {
|
|
318
|
+
height: 100vh;
|
|
319
|
+
display: flex;
|
|
320
|
+
flex-direction: column;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/* Puck dark mode overrides — invert grey scale so UI chrome adapts */
|
|
324
|
+
.dark {
|
|
325
|
+
--puck-color-grey-01: #fafafa;
|
|
326
|
+
--puck-color-grey-02: #efefef;
|
|
327
|
+
--puck-color-grey-03: #dcdcdc;
|
|
328
|
+
--puck-color-grey-04: #c3c3c3;
|
|
329
|
+
--puck-color-grey-05: #ababab;
|
|
330
|
+
--puck-color-grey-06: #949494;
|
|
331
|
+
--puck-color-grey-07: #767676;
|
|
332
|
+
--puck-color-grey-08: #5a5a5a;
|
|
333
|
+
--puck-color-grey-09: #404040;
|
|
334
|
+
--puck-color-grey-10: #292929;
|
|
335
|
+
--puck-color-grey-11: #1e1e1e;
|
|
336
|
+
--puck-color-grey-12: #181818;
|
|
337
|
+
--puck-color-white: #181818;
|
|
338
|
+
--puck-color-black: #fafafa;
|
|
339
|
+
|
|
340
|
+
/* Azure adjustments for dark backgrounds */
|
|
341
|
+
--puck-color-azure-09: #1a2a4a;
|
|
342
|
+
--puck-color-azure-10: #0f1d3d;
|
|
343
|
+
--puck-color-azure-11: #0a1530;
|
|
344
|
+
--puck-color-azure-12: #060e22;
|
|
345
|
+
/* Puck's blue text; its default azure-04 reads at about 2.5:1 on these dark surfaces. Sidebar tabs when selected
|
|
346
|
+
* (also the side marker on wide screens) or hovered, block categories and blocks on hover, active fields
|
|
347
|
+
* (a checked radio option, an expanded list item), and a list field's add icon. */
|
|
348
|
+
--puck-pluginbar-color-text-selected: var(--color-azure-08);
|
|
349
|
+
--puck-pluginbar-color-text-hover: var(--color-azure-08);
|
|
350
|
+
--puck-drawer-category-color-text-hover: var(--color-azure-08);
|
|
351
|
+
--puck-drawer-item-color-text-hover: var(--color-azure-08);
|
|
352
|
+
--puck-field-color-text-active: var(--color-azure-08);
|
|
353
|
+
--puck-field-array-add-color-icon: var(--color-azure-08);
|
|
354
|
+
|
|
355
|
+
/* Semantic surface tokens — dark-mode values.
|
|
356
|
+
* Keep in sync with the light-mode values inside @theme above. */
|
|
357
|
+
--color-page-bg: var(--color-grey-01); /* #181818 */
|
|
358
|
+
--color-overlay: var(--color-grey-03); /* #404040 */
|
|
359
|
+
--color-panel: var(--color-grey-02); /* #292929 */
|
|
360
|
+
--color-subtle: var(--color-grey-02); /* #292929 */
|
|
361
|
+
--color-line: var(--color-grey-04); /* #5a5a5a */
|
|
362
|
+
--color-hover: var(--color-grey-04); /* #5a5a5a */
|
|
363
|
+
--color-selected: var(--color-grey-03); /* #404040 */
|
|
364
|
+
--color-foreground: var(--color-grey-12); /* #fafafa */
|
|
365
|
+
--color-muted: var(--color-grey-07); /* #ababab */
|
|
366
|
+
--color-accent: var(--color-azure-05); /* #3479be — slightly lighter for dark surfaces */
|
|
367
|
+
--color-accent-foreground: #ffffff;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/* The right panel's parent link takes Puck's interactive blues directly, with no variable of its own, so re-point
|
|
371
|
+
* them on that link alone: 2.5:1 becomes 10.2:1, and hover and press stay distinct. */
|
|
372
|
+
.dark [class*="breadcrumbLabel"] {
|
|
373
|
+
--puck-color-interactive: var(--color-azure-08);
|
|
374
|
+
--puck-color-interactive-hover: var(--color-azure-09);
|
|
375
|
+
--puck-color-interactive-active: var(--color-azure-10);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/* The two PAINT declarations of the dark theme live in `cms-admin`, not out
|
|
379
|
+
* here with the token overrides above.
|
|
380
|
+
*
|
|
381
|
+
* Unlayered rules beat every layered rule, whatever the declared layer order
|
|
382
|
+
* says. The surround carries `dark` (so the host's own dark-theme rules
|
|
383
|
+
* resolve), so an unlayered `.dark { color }` painted the host's content
|
|
384
|
+
* surface with ADMIN ink and outranked the entire cascade this file documents
|
|
385
|
+
* at line 63 — `conloca-host-preview` last, precisely so host rules win
|
|
386
|
+
* inside the editor. `color-scheme` rode along with the same problem.
|
|
387
|
+
*
|
|
388
|
+
* Layered, they still win everywhere in admin chrome (nothing unlayered sets
|
|
389
|
+
* `color`; `html, body` above sets only box metrics and font-family), and they
|
|
390
|
+
* now correctly lose to the host's rebased `body { color }` inside the editor
|
|
391
|
+
* surround. The token overrides stay unlayered: they are custom properties
|
|
392
|
+
* that admin components read by name, not paint. */
|
|
393
|
+
@layer cms-admin {
|
|
394
|
+
.dark {
|
|
395
|
+
color-scheme: dark;
|
|
396
|
+
color: var(--color-grey-12);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/* Style Puck's header buttons — uses --puck-color-* vars so dark mode inverts automatically */
|
|
401
|
+
[class*="PuckHeader"] button,
|
|
402
|
+
[class*="IconButton"],
|
|
403
|
+
[class*="PuckHeader-toggle"] button {
|
|
404
|
+
transition: all 0.15s !important;
|
|
405
|
+
cursor: pointer !important;
|
|
406
|
+
color: var(--puck-color-grey-03) !important;
|
|
407
|
+
background: transparent !important;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
[class*="PuckHeader"] button:hover,
|
|
411
|
+
[class*="IconButton"]:hover,
|
|
412
|
+
[class*="PuckHeader-toggle"] button:hover {
|
|
413
|
+
background: var(--puck-color-grey-10) !important;
|
|
414
|
+
color: var(--puck-color-grey-01) !important;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
/* Active state for sidebar toggles */
|
|
418
|
+
[class*="PuckHeader--leftSideBarVisible"] [class*="PuckHeader-leftSideBarToggle"] button,
|
|
419
|
+
[class*="PuckHeader--rightSideBarVisible"] [class*="PuckHeader-rightSideBarToggle"] button {
|
|
420
|
+
color: var(--puck-color-grey-01) !important;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/* Menu button */
|
|
424
|
+
[class*="PuckHeader-menuButton"] button {
|
|
425
|
+
padding: 0.375rem !important;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/* Disable undo/redo buttons when there's no history */
|
|
429
|
+
[class*="MenuBar"] button[disabled],
|
|
430
|
+
[class*="MenuBar"] button:disabled,
|
|
431
|
+
[class*="MenuBar"] button[aria-disabled="true"],
|
|
432
|
+
[class*="MenuBar"] button[aria-disabled="true"]:hover {
|
|
433
|
+
opacity: 0.4 !important;
|
|
434
|
+
cursor: not-allowed !important;
|
|
435
|
+
pointer-events: none !important;
|
|
436
|
+
background: transparent !important;
|
|
437
|
+
color: var(--puck-color-grey-04) !important;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/* Style for enabled undo/redo buttons */
|
|
441
|
+
[class*="MenuBar"] button:not([disabled]):not(:disabled):not([aria-disabled="true"]) {
|
|
442
|
+
opacity: 1 !important;
|
|
443
|
+
cursor: pointer !important;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/* Also target buttons that might use data attributes for disabled state */
|
|
447
|
+
[class*="MenuBar"] button[data-disabled="true"] {
|
|
448
|
+
opacity: 0.4 !important;
|
|
449
|
+
cursor: not-allowed !important;
|
|
450
|
+
pointer-events: none !important;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/* MDXEditor select dropdown sizing.
|
|
454
|
+
* The portaled select content (block-type, code-language) attaches to
|
|
455
|
+
* document.body, so its max-height is controlled here rather than via the
|
|
456
|
+
* library's own component styles. */
|
|
457
|
+
.mdxeditor-select-content {
|
|
458
|
+
max-height: var(--radix-select-content-available-height, 300px) !important;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/* MDXEditor dark mode.
|
|
462
|
+
* The library's Radix color palette (slate-*, blue-*, accent-*) flips automatically
|
|
463
|
+
* because our root .dark class matches Radix's `.dark, .dark-theme` selectors, so
|
|
464
|
+
* --baseBg, --baseText, --baseBorder, etc. all re-resolve to their dark values.
|
|
465
|
+
* The only token the library explicitly documents as needing a manual override is
|
|
466
|
+
* --basePageBg — see https://mdxeditor.dev/editor/docs/theming ("--basePageBg: black
|
|
467
|
+
* must be set explicitly; it is not automatic").
|
|
468
|
+
*
|
|
469
|
+
* The popup-container and select-content selectors cover portaled popovers (link
|
|
470
|
+
* dialog, image picker, block-type dropdown) which attach to document.body —
|
|
471
|
+
* siblings of .mdxeditor, not descendants, so a single .mdxeditor selector would
|
|
472
|
+
* miss them. See node_modules/@mdxeditor/editor/dist/MDXEditor.js:75-93. */
|
|
473
|
+
.dark .mdxeditor,
|
|
474
|
+
.dark .mdxeditor-popup-container,
|
|
475
|
+
.dark .mdxeditor-select-content {
|
|
476
|
+
--basePageBg: var(--color-grey-02);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/* Editor content layout: center the writing area and give it breathing room
|
|
480
|
+
so markdown doesn't hug the viewport edges. Matches the Notion/Linear
|
|
481
|
+
page-editor idiom — the toolbar stays edge-to-edge above; only the
|
|
482
|
+
content body is centered. Targets the documented `.mdxeditor-root-contenteditable`
|
|
483
|
+
class (Lexical's root editable element) per mdxeditor.dev/editor/docs/theming.
|
|
484
|
+
72rem (vs. an earlier 56rem) gives a comfortable reading line-length on
|
|
485
|
+
13" laptops while no longer feeling squeezed on 1440/1920 monitors —
|
|
486
|
+
`body.mdxeditor-focus-mode` snaps the column back down for distraction-
|
|
487
|
+
free writing. */
|
|
488
|
+
.mdxeditor-root-contenteditable {
|
|
489
|
+
max-width: 72rem;
|
|
490
|
+
margin-left: auto;
|
|
491
|
+
margin-right: auto;
|
|
492
|
+
padding: 1.5rem 1.5rem;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
body.mdxeditor-focus-mode .mdxeditor-root-contenteditable {
|
|
496
|
+
max-width: 48rem;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
/* Host-component chrome (Starlight's `.starlight-aside`, etc.) reaches the
|
|
500
|
+
* editor through `useFetchedSiteStyles` in site-styles.ts, which fetches the
|
|
501
|
+
* host's compiled CSS for the current page from astro-cms's per-page styles
|
|
502
|
+
* endpoint and injects it into the `conloca-host-preview` layer wrapped in
|
|
503
|
+
* `@scope (.mdxeditor)` so it can't leak into admin chrome. */
|
|
504
|
+
|
|
505
|
+
/* Generic-block container — wraps each MDX JSX block rendered via
|
|
506
|
+
* GenericBlock.tsx. Prop editing UI lives in the side panel
|
|
507
|
+
* (`JsxPropsPanel`), so the wrapper itself stays visually clean and
|
|
508
|
+
* the SSR'd component reads as the only thing in the content surface. */
|
|
509
|
+
@layer cms-admin {
|
|
510
|
+
.conloca-generic-block {
|
|
511
|
+
position: relative;
|
|
512
|
+
/* The wrapper itself never paints — affordances ride on outline so
|
|
513
|
+
* they don't shift layout (which border would). Outline lives at
|
|
514
|
+
* 2px outside the box so it doesn't clip the host's own border on
|
|
515
|
+
* Asides etc. Transition keeps the hover/selected swap from
|
|
516
|
+
* snapping. */
|
|
517
|
+
outline: 2px solid transparent;
|
|
518
|
+
outline-offset: 2px;
|
|
519
|
+
border-radius: 0.25rem;
|
|
520
|
+
transition: outline-color 120ms ease-out;
|
|
521
|
+
}
|
|
522
|
+
/* Hover ring — only when the author can actually click into the
|
|
523
|
+
* block (no ring on text-flow inline wrappers, no ring on the raw-
|
|
524
|
+
* html static path which has its own surface). Cursor hint matches
|
|
525
|
+
* the affordance so the surface reads as interactive. */
|
|
526
|
+
.conloca-generic-block:not(.conloca-generic-block--inline):hover {
|
|
527
|
+
outline-color: var(--color-line);
|
|
528
|
+
cursor: text;
|
|
529
|
+
}
|
|
530
|
+
/* Anchors inside an SSR'd preview (Starlight `<LinkCard>`, links inside
|
|
531
|
+
* a `<Card>` body, etc) are click-through in the editor. Two reasons:
|
|
532
|
+
*
|
|
533
|
+
* 1. Navigation. Without this they'd swallow author clicks and
|
|
534
|
+
* yank them to another route. The JS-level click handler also
|
|
535
|
+
* blocks navigation (see `handleAnchorClickInPreview`), but
|
|
536
|
+
* letting the click reach an inner contenteditable element
|
|
537
|
+
* requires the anchor to be transparent to pointer events.
|
|
538
|
+
*
|
|
539
|
+
* 2. Stretched-link overlays. Starlight `<LinkCard>` ships a
|
|
540
|
+
* full-card `<a>` overlay on top of the card content; without
|
|
541
|
+
* `pointer-events: none` the overlay intercepts every click and
|
|
542
|
+
* the inner `<span class="description">` never sees a mousedown,
|
|
543
|
+
* so inline-prop editing of the description is impossible.
|
|
544
|
+
*
|
|
545
|
+
* Tab triggers (`<a role="tab">`) are excluded — they need real
|
|
546
|
+
* clicks so `activateTabInPlace` can run. Cursor matches behaviour:
|
|
547
|
+
* `text` for click-through anchors (you're editing, not navigating),
|
|
548
|
+
* default pointer for tabs (you're switching, the click does
|
|
549
|
+
* something visible). */
|
|
550
|
+
.conloca-generic-block__rendered a:not([role="tab"]) {
|
|
551
|
+
cursor: text;
|
|
552
|
+
pointer-events: none;
|
|
553
|
+
}
|
|
554
|
+
/* Anchors that author-supplied bodies emit (eg an inline link inside
|
|
555
|
+
* a Card body the author wrote with `[text](url)`) ARE part of the
|
|
556
|
+
* editable nested editor, not the SSR'd preview chrome. They need
|
|
557
|
+
* pointer events so the author can place a caret inside the link
|
|
558
|
+
* text. The nested editor's contenteditable shadows the preview
|
|
559
|
+
* cascade, so target those specifically. */
|
|
560
|
+
.conloca-generic-block__rendered [data-lexical-editor="true"] a {
|
|
561
|
+
pointer-events: auto;
|
|
562
|
+
cursor: text;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
/* Inline-editable string props inside an SSR'd preview. Wired by
|
|
566
|
+
* `wireInlinePropEditors` in GenericBlock.tsx — the element renders
|
|
567
|
+
* the prop's current value AND accepts typing, with blur committing
|
|
568
|
+
* back through `onPropChange`. Visual: faint dashed underline on
|
|
569
|
+
* hover/focus so the author can see which inline regions accept
|
|
570
|
+
* editing without intrusive permanent chrome. Selection ring on the
|
|
571
|
+
* parent block already signals "this block is active", so the inline
|
|
572
|
+
* cue stays subtle. */
|
|
573
|
+
.conloca-inline-prop {
|
|
574
|
+
cursor: text;
|
|
575
|
+
border-radius: 2px;
|
|
576
|
+
transition: background-color 120ms ease-out;
|
|
577
|
+
}
|
|
578
|
+
.conloca-inline-prop:hover {
|
|
579
|
+
background-color: color-mix(in srgb, var(--color-accent) 8%, transparent);
|
|
580
|
+
}
|
|
581
|
+
.conloca-inline-prop:focus {
|
|
582
|
+
outline: 1px solid var(--color-accent);
|
|
583
|
+
outline-offset: 1px;
|
|
584
|
+
background-color: color-mix(in srgb, var(--color-accent) 6%, transparent);
|
|
585
|
+
}
|
|
586
|
+
/* List-item editing for strict-slot list components (Steps,
|
|
587
|
+
* FileTree). Each `<li>` is a contenteditable with on-blur commit
|
|
588
|
+
* — same affordance pattern as `.conloca-inline-prop` so the cue
|
|
589
|
+
* stays consistent across both inline-edit paths. */
|
|
590
|
+
.conloca-listitem {
|
|
591
|
+
cursor: text;
|
|
592
|
+
border-radius: 2px;
|
|
593
|
+
transition: background-color 120ms ease-out;
|
|
594
|
+
}
|
|
595
|
+
.conloca-listitem:hover {
|
|
596
|
+
background-color: color-mix(in srgb, var(--color-accent) 8%, transparent);
|
|
597
|
+
}
|
|
598
|
+
.conloca-listitem:focus {
|
|
599
|
+
outline: 1px solid var(--color-accent);
|
|
600
|
+
outline-offset: 1px;
|
|
601
|
+
background-color: color-mix(in srgb, var(--color-accent) 6%, transparent);
|
|
602
|
+
}
|
|
603
|
+
/* Selection ring — published from `setSelectedBlock`. Beats the
|
|
604
|
+
* hover ring via specificity; both share the same outline slot so
|
|
605
|
+
* there's no double border. */
|
|
606
|
+
.conloca-generic-block.is-selected,
|
|
607
|
+
.conloca-generic-block.is-selected:hover {
|
|
608
|
+
outline-color: var(--color-accent);
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
/* Inline modifier — applied by GenericBlock when the descriptor's
|
|
612
|
+
* `kind === 'text'`. Sites the wrapper in text flow (eg an Icon
|
|
613
|
+
* inside a paragraph) instead of forcing a new block context.
|
|
614
|
+
* No vertical margin: the surrounding text controls line spacing.
|
|
615
|
+
*
|
|
616
|
+
* The `.sl-markdown-content` rule also flattens the host-wrapper
|
|
617
|
+
* `<div>` the render endpoint still emits when the dev server has
|
|
618
|
+
* not yet restarted with the inline-aware code path. `display:
|
|
619
|
+
* contents` makes the wrapper transparent so the inline `<svg>`
|
|
620
|
+
* inside flows as a sibling of surrounding text. Once the server
|
|
621
|
+
* restarts and stops emitting the wrapper for inline requests,
|
|
622
|
+
* this rule has no element to match — safe to leave for resilience. */
|
|
623
|
+
.conloca-generic-block--inline,
|
|
624
|
+
.conloca-generic-block--inline .conloca-generic-block__rendered {
|
|
625
|
+
display: inline;
|
|
626
|
+
margin-top: 0 !important;
|
|
627
|
+
margin-bottom: 0 !important;
|
|
628
|
+
}
|
|
629
|
+
.conloca-generic-block--inline .sl-markdown-content {
|
|
630
|
+
display: contents;
|
|
631
|
+
}
|
|
632
|
+
/* Tailwind preflight (in the top-level `base` layer since the
|
|
633
|
+
* cascade-layer fix — it used to be the `base` sub-layer of
|
|
634
|
+
* `cms-admin`)
|
|
635
|
+
* declares `svg { display: block; vertical-align: middle }`. For
|
|
636
|
+
* Icon — a text-kind component whose payload is a single inline
|
|
637
|
+
* SVG — that wipes the line and forces a wrap. Pin display back to
|
|
638
|
+
* `inline-block` so the glyph sits in text flow with surrounding
|
|
639
|
+
* letters. `!important` because the host CSS in
|
|
640
|
+
* `conloca-host-preview` (later layer) may declare its own svg
|
|
641
|
+
* rules; the inline wrapper's class scopes this fix tightly enough
|
|
642
|
+
* that nothing inside SSR'd block components is affected. */
|
|
643
|
+
.conloca-generic-block--inline svg {
|
|
644
|
+
display: inline-block !important;
|
|
645
|
+
vertical-align: -0.125em;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
/* MDX expression chip — MDXEditor library renders `{frontmatter.title}`,
|
|
649
|
+
* `{cond && X}`, MDX comment expressions and other mdast-level
|
|
650
|
+
* expressions as a tiny `<input>` between literal `{` `}` characters.
|
|
651
|
+
* Functional
|
|
652
|
+
* (editable, round-trips on save) but visually looks like a broken
|
|
653
|
+
* form field next to prose. Style it like a code chip so authors
|
|
654
|
+
* read it as "this is a code expression I can edit" rather than
|
|
655
|
+
* "something is wrong here". Targets the library's hashed class
|
|
656
|
+
* via attribute substring; the inner input element keeps the
|
|
657
|
+
* library's behavior, we just paint the wrapper. */
|
|
658
|
+
[class*="_mdxExpression_"] {
|
|
659
|
+
display: inline-flex;
|
|
660
|
+
align-items: baseline;
|
|
661
|
+
padding: 0 0.35em;
|
|
662
|
+
margin: 0 0.1em;
|
|
663
|
+
border-radius: 0.25em;
|
|
664
|
+
background: rgb(0 0 0 / 0.05);
|
|
665
|
+
line-height: 1.4;
|
|
666
|
+
font-size: 0.92em;
|
|
667
|
+
color: var(--color-text-secondary, rgb(71, 85, 105));
|
|
668
|
+
}
|
|
669
|
+
:root.dark [class*="_mdxExpression_"],
|
|
670
|
+
:root[data-theme="dark"] [class*="_mdxExpression_"] {
|
|
671
|
+
background: rgb(255 255 255 / 0.08);
|
|
672
|
+
color: var(--color-text-secondary, rgb(203, 213, 225));
|
|
673
|
+
}
|
|
674
|
+
[class*="_mdxExpression_"] input {
|
|
675
|
+
background: transparent;
|
|
676
|
+
border: 0;
|
|
677
|
+
outline: 0;
|
|
678
|
+
padding: 0;
|
|
679
|
+
color: inherit;
|
|
680
|
+
font: inherit;
|
|
681
|
+
}
|
|
682
|
+
[class*="_mdxExpression_"] input:focus-visible {
|
|
683
|
+
/* Faint focus halo via box-shadow keeps the chip's rounded shape
|
|
684
|
+
* intact (a real border would shift layout). */
|
|
685
|
+
box-shadow: 0 0 0 1.5px rgb(59 130 246 / 0.55);
|
|
686
|
+
border-radius: 2px;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
/* MDXEditor's contentEditable wraps the entire editor surface and
|
|
690
|
+
* sets text-editing properties on itself (`white-space: pre-wrap`,
|
|
691
|
+
* `word-break: break-word`, etc.) so user-typed spaces and long
|
|
692
|
+
* words preserve correctly. The *inherited* members of that set
|
|
693
|
+
* cascade into every descendant — including the SSR'd component
|
|
694
|
+
* preview HTML, which doesn't want them. On the published page
|
|
695
|
+
* those properties hold their user-agent defaults; the host's CSS
|
|
696
|
+
* doesn't override them because it never has to. So the leak is
|
|
697
|
+
* one-directional: editor → preview, no rule from the host to
|
|
698
|
+
* counter it.
|
|
699
|
+
*
|
|
700
|
+
* Each property is set to its CSS spec initial value (the same the
|
|
701
|
+
* UA uses on the live page). `revert` doesn't work here because the
|
|
702
|
+
* contentEditable ancestor declares `pre-wrap` via inline style;
|
|
703
|
+
* inheritance flows through and `revert` only rolls back rules that
|
|
704
|
+
* target this element directly. Explicit values force the cascade.
|
|
705
|
+
* If MDXEditor adds another text-editing property that leaks
|
|
706
|
+
* visibly, add it to this list with its spec initial value.
|
|
707
|
+
*
|
|
708
|
+
* The nested editor portal mounts its own contentEditable inside
|
|
709
|
+
* `<conloca-slot>`, so the editable body inside a component
|
|
710
|
+
* re-establishes its own text-editing properties. */
|
|
711
|
+
.conloca-generic-block__rendered {
|
|
712
|
+
white-space: normal;
|
|
713
|
+
word-break: normal;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.conloca-generic-block__error {
|
|
717
|
+
font-size: 0.75rem;
|
|
718
|
+
color: rgb(220 38 38);
|
|
719
|
+
padding: 0.5rem 0.75rem;
|
|
720
|
+
border: 1px solid rgb(220 38 38 / 0.3);
|
|
721
|
+
border-radius: 0.25rem;
|
|
722
|
+
margin-block: 0.5rem;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
/* Generic fallback wrapper — shown when SSR isn't possible for a
|
|
726
|
+
* component (no `import` source, or the framework component rejects
|
|
727
|
+
* the slot marker, eg Starlight `<Steps>` / `<FileTree>` whose
|
|
728
|
+
* rehype validators require `<ol>` / `<ul>` content). Body stays
|
|
729
|
+
* editable; the label tells the author what the block will render
|
|
730
|
+
* as on the published page. */
|
|
731
|
+
.conloca-generic-block__fallback {
|
|
732
|
+
display: block;
|
|
733
|
+
margin-block: 0.5rem;
|
|
734
|
+
border: 1px dashed rgb(0 0 0 / 0.15);
|
|
735
|
+
border-radius: 0.25rem;
|
|
736
|
+
padding: 0.5rem 0.75rem;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
:root.dark .conloca-generic-block__fallback {
|
|
740
|
+
border-color: rgb(255 255 255 / 0.15);
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
.conloca-generic-block__fallback-label {
|
|
744
|
+
display: inline-block;
|
|
745
|
+
font-size: 0.7rem;
|
|
746
|
+
font-weight: 600;
|
|
747
|
+
text-transform: uppercase;
|
|
748
|
+
letter-spacing: 0.05em;
|
|
749
|
+
opacity: 0.55;
|
|
750
|
+
margin-bottom: 0.25rem;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
/* Architectural rule: rendered previews are pure host-CSS surfaces.
|
|
754
|
+
* MDXEditor's nested-editor wrappers (`_nestedEditor_*`, hashed by
|
|
755
|
+
* its CSS Modules pipeline) carry their own visual chrome — grey
|
|
756
|
+
* background, padding — meant to hint "you can edit here" in a
|
|
757
|
+
* bare-document editor. Inside an SSR'd preview that hint is noise:
|
|
758
|
+
* the host's rendered framework markup already conveys the editable
|
|
759
|
+
* region visually (the Aside's body area, the Card's body, etc).
|
|
760
|
+
*
|
|
761
|
+
* The override drops MDXEditor's chrome inside the rendered region
|
|
762
|
+
* so the editable surface is indistinguishable from the published
|
|
763
|
+
* page. `!important` is intentional and minimal: MDXEditor's CSS
|
|
764
|
+
* Modules ship unlayered (CSS-Modules-via-Vite are inserted at
|
|
765
|
+
* runtime without a containing `@layer`), and unlayered rules win
|
|
766
|
+
* over layered rules in the cascade regardless of declaration
|
|
767
|
+
* order. This is the documented way to override unlayered styles
|
|
768
|
+
* from inside a layer. */
|
|
769
|
+
.conloca-generic-block__rendered [class*="_nestedEditor_"] {
|
|
770
|
+
background: transparent !important;
|
|
771
|
+
padding: 0 !important;
|
|
772
|
+
margin: 0 !important;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
/* MDXEditor's NestedLexicalEditor always wraps the editor content in
|
|
776
|
+
* a "root paragraph" (block=false default; see
|
|
777
|
+
* @mdxeditor/editor/dist/plugins/core/NestedLexicalEditor.js line 100-103).
|
|
778
|
+
* For block-level children (Aside, Card, etc. whose mdast children are
|
|
779
|
+
* already paragraphs) this produces nested <p><p>...</p></p> in the
|
|
780
|
+
* DOM. The host's prose CSS then applies its 1em top/bottom margin to
|
|
781
|
+
* the INNER <p>, pushing the body text visibly down inside the block.
|
|
782
|
+
*
|
|
783
|
+
* Tight fix: zero margins/padding only when a <p> sits directly inside
|
|
784
|
+
* another <p> inside a nested editor. Doesn't match flat sibling
|
|
785
|
+
* paragraphs (which need their normal spacing).
|
|
786
|
+
*
|
|
787
|
+
* Structural fix is to switch NestedLexicalEditor to `block={true}`
|
|
788
|
+
* everywhere in GenericBlock.tsx — that'd skip the wrapper paragraph
|
|
789
|
+
* entirely. Deferred until we can verify save round-trip on all
|
|
790
|
+
* shapes (single-text-body Aside, multi-paragraph Aside, nested
|
|
791
|
+
* lists, etc). */
|
|
792
|
+
.conloca-generic-block__rendered [class*="_nestedEditor_"] p > p {
|
|
793
|
+
margin: 0 !important;
|
|
794
|
+
padding: 0 !important;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
/* Adjacent JSX blocks: when two consecutive Lexical paragraphs each
|
|
799
|
+
* wrap a single JSX block (Aside, Card, etc.), drop the first
|
|
800
|
+
* paragraph's bottom margin so the two blocks sit closer together.
|
|
801
|
+
*
|
|
802
|
+
* Lexical's default 20px margin between block paragraphs stacks on
|
|
803
|
+
* top of the 28px cursor-placement zone inside the paragraph,
|
|
804
|
+
* producing a 48px gap between adjacent JSX blocks — much wider than
|
|
805
|
+
* the ~16px the live page shows. Dropping the margin brings the gap
|
|
806
|
+
* to ~28px without removing the cursor zone (so clicking between
|
|
807
|
+
* blocks still works for adding text).
|
|
808
|
+
*
|
|
809
|
+
* Declared OUTSIDE `@layer cms-admin` because the prose rule that
|
|
810
|
+
* sets `margin-bottom: 1.25rem` on paragraphs (in `@conloca/mdx`'s
|
|
811
|
+
* `prose.css`) is unlayered, and unlayered rules win over layered
|
|
812
|
+
* ones regardless of specificity. */
|
|
813
|
+
.mdxeditor p:has(> span > .conloca-generic-block):has(+ p > span > .conloca-generic-block) {
|
|
814
|
+
margin-bottom: 0;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
/* MDX editor content column — sits between the chrome header and the
|
|
818
|
+
* right-side props panel. Paints the host page's body bg (set via the
|
|
819
|
+
* `--conloca-host-body-bg` bridge in useInjectHostStyles) so the area
|
|
820
|
+
* around the prose card matches the live page's body color. Inside
|
|
821
|
+
* this region, the `hostWrapperPlugin` mirrors the host's content-
|
|
822
|
+
* root element (`<main>` or `[data-conloca-content-root]`) around the
|
|
823
|
+
* contenteditable — so host CSS targeting that wrapper (eg `main.card
|
|
824
|
+
* { padding: … }`) applies through the normal cascade. */
|
|
825
|
+
@layer cms-admin {
|
|
826
|
+
.conloca-mdx-editor-surround {
|
|
827
|
+
background-color: var(--conloca-host-body-bg, transparent);
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
/* Right-side props panel — appears next to the MDX editor surface,
|
|
831
|
+
* shows the descriptor's `props` as form fields for the currently
|
|
832
|
+
* selected JSX block. Sits in cms-admin chrome so it's insulated from
|
|
833
|
+
* host CSS by the existing layer-order isolation. */
|
|
834
|
+
.conloca-jsx-props-panel {
|
|
835
|
+
width: 20rem;
|
|
836
|
+
flex-shrink: 0;
|
|
837
|
+
height: 100%;
|
|
838
|
+
overflow-y: auto;
|
|
839
|
+
padding: 1rem;
|
|
840
|
+
background: rgb(0 0 0 / 0.02);
|
|
841
|
+
border-left: 1px solid rgb(0 0 0 / 0.08);
|
|
842
|
+
font-size: 0.875rem;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
:root.dark .conloca-jsx-props-panel {
|
|
846
|
+
background: rgb(255 255 255 / 0.02);
|
|
847
|
+
border-left-color: rgb(255 255 255 / 0.08);
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
.conloca-jsx-props-panel__header {
|
|
851
|
+
display: flex;
|
|
852
|
+
align-items: center;
|
|
853
|
+
justify-content: space-between;
|
|
854
|
+
margin-bottom: 1rem;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
.conloca-jsx-props-panel__title {
|
|
858
|
+
font-size: 1rem;
|
|
859
|
+
font-weight: 600;
|
|
860
|
+
margin: 0;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
.conloca-jsx-props-panel__remove {
|
|
864
|
+
display: inline-flex;
|
|
865
|
+
align-items: center;
|
|
866
|
+
gap: 0.25rem;
|
|
867
|
+
padding: 0.25rem 0.5rem;
|
|
868
|
+
border-radius: 0.25rem;
|
|
869
|
+
background: transparent;
|
|
870
|
+
border: 1px solid rgb(0 0 0 / 0.15);
|
|
871
|
+
color: inherit;
|
|
872
|
+
opacity: 0.75;
|
|
873
|
+
cursor: pointer;
|
|
874
|
+
font-size: 0.75rem;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
:root.dark .conloca-jsx-props-panel__remove {
|
|
878
|
+
border-color: rgb(255 255 255 / 0.15);
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
.conloca-jsx-props-panel__remove:hover {
|
|
882
|
+
opacity: 1;
|
|
883
|
+
background: rgb(220 38 38 / 0.1);
|
|
884
|
+
border-color: rgb(220 38 38 / 0.4);
|
|
885
|
+
color: rgb(220 38 38);
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
.conloca-jsx-props-panel__fields {
|
|
889
|
+
display: flex;
|
|
890
|
+
flex-direction: column;
|
|
891
|
+
gap: 0.75rem;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
.conloca-jsx-props-panel__field {
|
|
895
|
+
display: flex;
|
|
896
|
+
flex-direction: column;
|
|
897
|
+
gap: 0.25rem;
|
|
898
|
+
}
|
|
899
|
+
/* Inline variant for boolean (checkbox) props — checkbox on the
|
|
900
|
+
* left, label next to it. The default column layout is meant for
|
|
901
|
+
* input-with-label-above; that's weird for a checkbox where the
|
|
902
|
+
* label should sit beside the control. */
|
|
903
|
+
.conloca-jsx-props-panel__field--inline {
|
|
904
|
+
flex-direction: row;
|
|
905
|
+
align-items: center;
|
|
906
|
+
gap: 0.5rem;
|
|
907
|
+
}
|
|
908
|
+
.conloca-jsx-props-panel__field--inline input[type="checkbox"] {
|
|
909
|
+
/* Default checkboxes inherit the input padding/border block we
|
|
910
|
+
* use for text inputs — visually wrong. Reset to native sizing. */
|
|
911
|
+
padding: 0 !important;
|
|
912
|
+
width: 1rem;
|
|
913
|
+
height: 1rem;
|
|
914
|
+
margin: 0;
|
|
915
|
+
border-radius: 2px;
|
|
916
|
+
accent-color: var(--color-accent);
|
|
917
|
+
flex-shrink: 0;
|
|
918
|
+
}
|
|
919
|
+
.conloca-jsx-props-panel__field--inline .conloca-jsx-props-panel__label {
|
|
920
|
+
flex: 1;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
.conloca-jsx-props-panel__label {
|
|
924
|
+
font-size: 0.75rem;
|
|
925
|
+
font-weight: 500;
|
|
926
|
+
opacity: 0.8;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
.conloca-jsx-props-panel__label em {
|
|
930
|
+
color: rgb(220 38 38);
|
|
931
|
+
font-style: normal;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
.conloca-jsx-props-panel__field input,
|
|
935
|
+
.conloca-jsx-props-panel__field select {
|
|
936
|
+
font: inherit;
|
|
937
|
+
color: inherit;
|
|
938
|
+
padding: 0.375rem 0.5rem;
|
|
939
|
+
border: 1px solid rgb(0 0 0 / 0.15);
|
|
940
|
+
border-radius: 0.25rem;
|
|
941
|
+
background: rgb(255 255 255 / 0.8);
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
:root.dark .conloca-jsx-props-panel__field input,
|
|
945
|
+
:root.dark .conloca-jsx-props-panel__field select {
|
|
946
|
+
background: rgb(0 0 0 / 0.4);
|
|
947
|
+
border-color: rgb(255 255 255 / 0.15);
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
/* Searchable combobox widget — swap for `<select>` when the prop's
|
|
951
|
+
* option list exceeds the threshold in `JsxPropsPanel.tsx`. Mirrors
|
|
952
|
+
* the styling of the regular input above so a panel mixing native
|
|
953
|
+
* selects and comboboxes reads as one cohesive control set. The
|
|
954
|
+
* popover sits absolutely positioned under the input; the parent
|
|
955
|
+
* carries `position: relative` so the popover anchors correctly. */
|
|
956
|
+
.conloca-searchable-select {
|
|
957
|
+
position: relative;
|
|
958
|
+
}
|
|
959
|
+
.conloca-searchable-select input {
|
|
960
|
+
width: 100%;
|
|
961
|
+
box-sizing: border-box;
|
|
962
|
+
}
|
|
963
|
+
.conloca-searchable-select__list {
|
|
964
|
+
position: absolute;
|
|
965
|
+
top: 100%;
|
|
966
|
+
left: 0;
|
|
967
|
+
right: 0;
|
|
968
|
+
margin: 0.25rem 0 0;
|
|
969
|
+
padding: 0.25rem 0;
|
|
970
|
+
list-style: none;
|
|
971
|
+
max-height: 16rem;
|
|
972
|
+
overflow-y: auto;
|
|
973
|
+
background: var(--color-overlay);
|
|
974
|
+
border: 1px solid var(--color-line);
|
|
975
|
+
border-radius: 0.375rem;
|
|
976
|
+
box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
|
|
977
|
+
z-index: 50;
|
|
978
|
+
}
|
|
979
|
+
.conloca-searchable-select__option {
|
|
980
|
+
padding: 0.375rem 0.625rem;
|
|
981
|
+
cursor: pointer;
|
|
982
|
+
font-size: 0.875rem;
|
|
983
|
+
line-height: 1.3;
|
|
984
|
+
}
|
|
985
|
+
.conloca-searchable-select__option--active,
|
|
986
|
+
.conloca-searchable-select__option:hover {
|
|
987
|
+
background-color: color-mix(in srgb, var(--color-accent) 12%, transparent);
|
|
988
|
+
}
|
|
989
|
+
.conloca-searchable-select__empty {
|
|
990
|
+
position: absolute;
|
|
991
|
+
top: 100%;
|
|
992
|
+
left: 0;
|
|
993
|
+
right: 0;
|
|
994
|
+
margin: 0.25rem 0 0;
|
|
995
|
+
padding: 0.5rem 0.625rem;
|
|
996
|
+
background: var(--color-overlay);
|
|
997
|
+
border: 1px solid var(--color-line);
|
|
998
|
+
border-radius: 0.375rem;
|
|
999
|
+
font-size: 0.875rem;
|
|
1000
|
+
opacity: 0.6;
|
|
1001
|
+
z-index: 50;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
.conloca-jsx-props-panel__help {
|
|
1005
|
+
font-size: 0.75rem;
|
|
1006
|
+
opacity: 0.6;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
/* Markdown-bearing string prop: tells the author why inline editing
|
|
1010
|
+
* isn't lit up in the preview for this prop. Slightly brighter than
|
|
1011
|
+
* the default help so it reads as informational, not decoration. */
|
|
1012
|
+
.conloca-jsx-props-panel__help--md {
|
|
1013
|
+
opacity: 0.85;
|
|
1014
|
+
font-style: italic;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
.conloca-jsx-props-panel__hint {
|
|
1018
|
+
font-size: 0.75rem;
|
|
1019
|
+
opacity: 0.6;
|
|
1020
|
+
margin: 0;
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
/* Embedded: the page editor fills the height left under a host app's top bar.
|
|
1025
|
+
* Puck's left Blocks panel scrolls inside that box. Without height:100% on
|
|
1026
|
+
* the layout chain, h-screen editors extend under that bar and the
|
|
1027
|
+
* last components are clipped with no way to reach them. */
|
|
1028
|
+
.Puck[class*="Puck"] {
|
|
1029
|
+
height: 100%;
|
|
1030
|
+
max-height: 100%;
|
|
1031
|
+
min-height: 0;
|
|
1032
|
+
}
|
|
1033
|
+
[class*="PuckLayout"] {
|
|
1034
|
+
height: 100%;
|
|
1035
|
+
max-height: 100%;
|
|
1036
|
+
min-height: 0;
|
|
1037
|
+
}
|
|
1038
|
+
[class*="PuckLayout-inner"] {
|
|
1039
|
+
height: 100%;
|
|
1040
|
+
max-height: 100%;
|
|
1041
|
+
min-height: 0;
|
|
1042
|
+
}
|
|
1043
|
+
[class*="Sidebar--left"],
|
|
1044
|
+
[class*="Sidebar--right"] {
|
|
1045
|
+
max-height: 100%;
|
|
1046
|
+
min-height: 0;
|
|
1047
|
+
}
|
|
1048
|
+
[class*="BlocksPlugin"] {
|
|
1049
|
+
max-height: 100%;
|
|
1050
|
+
min-height: 0;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
/* Right panel (SidebarSection) breadcrumbs: prevent the parent-link label
|
|
1054
|
+
* from overlapping the selected component's heading on narrow sidebars.
|
|
1055
|
+
* Puck (0.23) renders the right-panel header as:
|
|
1056
|
+
* <div .SidebarSection-title>
|
|
1057
|
+
* <div .SidebarSection-breadcrumbs> -- display: flex; gap: 4px (nowrap)
|
|
1058
|
+
* <div .Breadcrumbs>
|
|
1059
|
+
* <div .Breadcrumbs-breadcrumb>
|
|
1060
|
+
* <button .Breadcrumbs-breadcrumbLabel>Parent</button> -- flex-shrink: 0
|
|
1061
|
+
* <ChevronRight />
|
|
1062
|
+
* </div>
|
|
1063
|
+
* </div>
|
|
1064
|
+
* <div .SidebarSection-heading><h2>Selected</h2></div>
|
|
1065
|
+
* </div>
|
|
1066
|
+
* </div>
|
|
1067
|
+
* Root cause: breadcrumbLabel has flex-shrink: 0 so it keeps its full width
|
|
1068
|
+
* when the panel is narrow, and the heading flex-shrinks and wraps behind it —
|
|
1069
|
+
* the blue parent link visually overlaps the bold component heading. Wrap the
|
|
1070
|
+
* row, let the label shrink with ellipsis and give the heading min-width: 0 so
|
|
1071
|
+
* flex can distribute space cleanly. Class-prefix selectors survive Puck's hash
|
|
1072
|
+
* rotation (same pattern as the MenuBar override above). */
|
|
1073
|
+
[class*="SidebarSection-breadcrumbs"] {
|
|
1074
|
+
min-width: 0;
|
|
1075
|
+
flex-wrap: wrap;
|
|
1076
|
+
}
|
|
1077
|
+
[class*="Breadcrumbs"] {
|
|
1078
|
+
min-width: 0;
|
|
1079
|
+
flex-shrink: 1;
|
|
1080
|
+
}
|
|
1081
|
+
[class*="Breadcrumbs-breadcrumbLabel"] {
|
|
1082
|
+
overflow: hidden;
|
|
1083
|
+
text-overflow: ellipsis;
|
|
1084
|
+
white-space: nowrap;
|
|
1085
|
+
}
|
|
1086
|
+
[class*="SidebarSection-heading"] {
|
|
1087
|
+
min-width: 0;
|
|
1088
|
+
flex: 1 1 auto;
|
|
1089
|
+
overflow: hidden;
|
|
1090
|
+
}
|
|
1091
|
+
[class*="SidebarSection-heading"] > [class*="Heading"] {
|
|
1092
|
+
overflow: hidden;
|
|
1093
|
+
text-overflow: ellipsis;
|
|
1094
|
+
white-space: nowrap;
|
|
1095
|
+
}
|