@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/dist/toast.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toast.mjs","names":["SonnerToaster"],"sources":["../src/components/toast.tsx"],"sourcesContent":["import 'sonner/dist/styles.css';\nimport { Toaster as SonnerToaster, type ToasterProps } from 'sonner';\n\n/**\n * Toast primitive surface for `@conloca/cms-spa/toast`.\n *\n * Thin wrapper around [Sonner](https://sonner.emilkowal.ski/) so consumers\n * share the same toast vocabulary without each one re-mirroring Sonner's\n * defaults by hand. Mirrors the `./ui` and `./dialog` precedent: a\n * single subpath export, minimal additive surface, sonner's own API stays\n * the API.\n *\n * Shape:\n *\n * - `toast` is re-exported verbatim from sonner. Consumers call\n * `toast.success(...)`, `toast.error(...)`, etc. directly.\n * - `Toaster` wraps `sonner`'s `Toaster` with cms-spa defaults:\n * - `position=\"bottom-right\"` — quiet corner that doesn't compete with\n * the host strip / banner stack.\n * - `theme=\"system\"` — Sonner reads `prefers-color-scheme` for its\n * internal `data-sonner-theme` attribute. cms-spa's manual `.dark`\n * class drives any Tailwind classes consumers add via `className` /\n * `toastOptions.classNames` independently. The two dimensions don't\n * fight; visual output matches cms-spa surfaces.\n * - `richColors={false}` — keeps Sonner's accent system neutral so\n * cms-spa's color tokens own the visual.\n * All props spread last so consumers can override width, z-index,\n * classNames, toastOptions, etc.\n *\n * Sonner's own stylesheet is loaded as a side-effect import at the top of\n * this file (`sonner/dist/styles.css`). Sonner already imports its CSS\n * internally, but the explicit re-import here documents the contract and\n * survives any future bundler that strips internal side-effect imports.\n *\n * Style provenance: any Tailwind classes baked into this wrapper are\n * scanned by consumer Tailwind compilations via the\n * `@source \"../src/components/toast.tsx\"` directive in\n * `styles/tailwind-theme.css`. The wrapper today carries no Tailwind\n * classes — Sonner ships its own CSS — but the @source future-proofs any\n * later additions.\n */\n\nexport type { ExternalToast, ToastClassnames, ToasterProps, ToastT } from 'sonner';\nexport { toast } from 'sonner';\n\nexport function Toaster(props: ToasterProps) {\n return <SonnerToaster position=\"bottom-right\" theme=\"system\" richColors={false} {...props} />;\n}\n"],"mappings":";;;;AA6CA,SAAgB,QAAQ,OAAqB;CAC3C,OAAO,oBAACA,WAAD;EAAe,UAAS;EAAe,OAAM;EAAS,YAAY;EAAO,GAAI;CAAQ,CAAA;AAC9F"}
|
package/dist/types.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type { BlockEditable, DataEditable } from '@conloca/content-api-client';
|
|
2
|
-
export interface Page {
|
|
3
|
-
id: string;
|
|
4
|
-
title: string;
|
|
5
|
-
path: string;
|
|
6
|
-
/** Underlying content format. 'puck' = Puck visual editor, 'mdx' = MDX source editor. */
|
|
7
|
-
type: 'puck' | 'mdx';
|
|
8
|
-
status: 'draft' | 'scheduled' | 'published';
|
|
9
|
-
modified: Date;
|
|
10
|
-
locales: string[];
|
|
11
|
-
}
|
|
12
|
-
export interface Block {
|
|
13
|
-
id: string;
|
|
14
|
-
title: string;
|
|
15
|
-
preview: string;
|
|
16
|
-
category: string;
|
|
17
|
-
locales: string[];
|
|
18
|
-
etag: string;
|
|
19
|
-
name?: string;
|
|
20
|
-
meta?: BlockEditable;
|
|
21
|
-
}
|
|
22
|
-
export interface DataEntry {
|
|
23
|
-
id: string;
|
|
24
|
-
title: string;
|
|
25
|
-
description?: string;
|
|
26
|
-
collection: string;
|
|
27
|
-
locales: string[];
|
|
28
|
-
etag: string;
|
|
29
|
-
name?: string;
|
|
30
|
-
meta?: DataEditable;
|
|
31
|
-
}
|
|
32
|
-
export interface PageMetadata {
|
|
33
|
-
title: string;
|
|
34
|
-
description: string;
|
|
35
|
-
pathname: string;
|
|
36
|
-
publishDate: Date | null;
|
|
37
|
-
unpublishDate: Date | null;
|
|
38
|
-
robots?: string;
|
|
39
|
-
canonical?: string;
|
|
40
|
-
customMeta?: Record<string, unknown>;
|
|
41
|
-
/** Content collection the page belongs to — drives schema resolution. */
|
|
42
|
-
collection?: string;
|
|
43
|
-
/** Content format — drives schema resolution and editor selection. */
|
|
44
|
-
type?: 'puck' | 'mdx';
|
|
45
|
-
}
|
|
46
|
-
export type SaveState = 'idle' | 'saving' | 'saved' | 'error' | 'conflict';
|
|
47
|
-
export interface CreatePageData {
|
|
48
|
-
title: string;
|
|
49
|
-
path: string;
|
|
50
|
-
template: string;
|
|
51
|
-
locale: string;
|
|
52
|
-
/** Content format. Defaults to 'puck' (the visual editor). */
|
|
53
|
-
format: 'puck' | 'mdx';
|
|
54
|
-
/** Optional description, surfaced for MDX pages whose renderer uses one. */
|
|
55
|
-
description?: string;
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE/E,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,yFAAyF;IACzF,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC;IACrB,MAAM,EAAE,OAAO,GAAG,WAAW,GAAG,WAAW,CAAC;IAC5C,QAAQ,EAAE,IAAI,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IACzB,aAAa,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,yEAAyE;IACzE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sEAAsE;IACtE,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;CACvB;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC;AAE3E,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,8DAA8D;IAC9D,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC;IACvB,4EAA4E;IAC5E,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
package/dist/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/ui-CIacC6Mv.mjs
DELETED
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
import { t as cn } from "./cn-dlASUkDY.mjs";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
import { AlertCircle, AlertTriangle, Check, Loader2, X } from "lucide-react";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
//#region src/components/ConlocaLogo.tsx
|
|
6
|
-
function ConlocaLogo() {
|
|
7
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
8
|
-
className: "flex items-center gap-2.5",
|
|
9
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
10
|
-
className: "h-7 w-7 rounded-md bg-azure-04 flex items-center justify-center",
|
|
11
|
-
children: /* @__PURE__ */ jsx("span", {
|
|
12
|
-
className: "text-white font-bold text-sm",
|
|
13
|
-
children: "C"
|
|
14
|
-
})
|
|
15
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
16
|
-
className: "text-base font-semibold text-grey-01 dark:text-grey-12",
|
|
17
|
-
children: "Conloca"
|
|
18
|
-
})]
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
//#endregion
|
|
22
|
-
//#region src/components/ui/Banner.tsx
|
|
23
|
-
const VARIANT_CLASS = {
|
|
24
|
-
info: "bg-azure-11 dark:bg-azure-02 border-azure-08 dark:border-azure-03 text-azure-02 dark:text-azure-09",
|
|
25
|
-
warning: "bg-yellow-11 dark:bg-yellow-02 border-yellow-08 dark:border-yellow-03 text-yellow-02 dark:text-yellow-09",
|
|
26
|
-
error: "bg-red-11 dark:bg-red-02 border-red-08 dark:border-red-03 text-red-04 dark:text-red-08",
|
|
27
|
-
success: "bg-green-11 dark:bg-green-02 border-green-08 dark:border-green-03 text-green-02 dark:text-green-09"
|
|
28
|
-
};
|
|
29
|
-
const DEFAULT_ROLE = {
|
|
30
|
-
info: "status",
|
|
31
|
-
warning: "status",
|
|
32
|
-
error: "alert",
|
|
33
|
-
success: "status"
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Banner primitive.
|
|
37
|
-
*
|
|
38
|
-
* Replaces the per-component restating of the
|
|
39
|
-
* `flex items-start gap-3 px-6 py-3 text-sm border-b bg-{color}-11
|
|
40
|
-
* ... border-{color}-08 ... text-{color}-02 ...` pattern that hosts
|
|
41
|
-
* had been hand-rolling at every banner / alert site. Centralising
|
|
42
|
-
* the surface:
|
|
43
|
-
*
|
|
44
|
-
* - locks the variant palette (one place to change yellow / green /
|
|
45
|
-
* red treatments across every host)
|
|
46
|
-
* - aligns with the inline-alert vocabulary already used inside
|
|
47
|
-
* cms-spa (`BlockWrappers`, `MDXEditField`, etc.) so a "strip"
|
|
48
|
-
* banner at the top of the shell and an "inline" alert inside an
|
|
49
|
-
* editor block read as one design system
|
|
50
|
-
* - dodges the CSS cascade-layer fight on raw atomic classes (see
|
|
51
|
-
* the `Card` primitive's JSDoc for context)
|
|
52
|
-
*
|
|
53
|
-
* Layout is deliberately one-row: icon + title + description +
|
|
54
|
-
* actions, vertically centered (`items-center`). Multi-row or
|
|
55
|
-
* footer content (a `<details>` disclosure, a secondary description
|
|
56
|
-
* block, etc.) is the caller's job — render Banner with the row
|
|
57
|
-
* content, then put the footer below via the parent's layout. If
|
|
58
|
-
* a future banner has genuinely multi-line description that needs
|
|
59
|
-
* top-aligned chrome, add an `align` prop then; do not flip the
|
|
60
|
-
* default — every existing banner reads better centered.
|
|
61
|
-
*
|
|
62
|
-
* ARIA role defaults: `alert` for `error`, `status` for everything
|
|
63
|
-
* else. Override via the standard `role` prop when the default is
|
|
64
|
-
* wrong (e.g. a non-error loading variant that should still be
|
|
65
|
-
* announced assertively).
|
|
66
|
-
*/
|
|
67
|
-
function Banner({ variant, icon, title, actions, className, role, children, ...rest }) {
|
|
68
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
69
|
-
role: role ?? DEFAULT_ROLE[variant],
|
|
70
|
-
className: cn("flex items-center gap-3 text-sm border-b px-6 py-3", VARIANT_CLASS[variant], className),
|
|
71
|
-
...rest,
|
|
72
|
-
children: [
|
|
73
|
-
icon ? /* @__PURE__ */ jsx("span", {
|
|
74
|
-
className: "flex-shrink-0 inline-flex items-center h-5",
|
|
75
|
-
children: icon
|
|
76
|
-
}) : null,
|
|
77
|
-
/* @__PURE__ */ jsxs("div", {
|
|
78
|
-
className: "flex-1 min-w-0",
|
|
79
|
-
children: [title ? /* @__PURE__ */ jsx("strong", {
|
|
80
|
-
className: "font-semibold mr-2",
|
|
81
|
-
children: title
|
|
82
|
-
}) : null, children]
|
|
83
|
-
}),
|
|
84
|
-
actions ? /* @__PURE__ */ jsx("div", {
|
|
85
|
-
className: "flex items-center gap-2 flex-shrink-0",
|
|
86
|
-
children: actions
|
|
87
|
-
}) : null
|
|
88
|
-
]
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
//#endregion
|
|
92
|
-
//#region src/components/ui/Button.tsx
|
|
93
|
-
/**
|
|
94
|
-
* Variants:
|
|
95
|
-
*
|
|
96
|
-
* - `primary` — solid azure fill, white text. Default action.
|
|
97
|
-
* - `outline` — bordered, panel-background, grey text. Secondary on
|
|
98
|
-
* panel surfaces.
|
|
99
|
-
* - `ghost` — no resting fill, grey text. Tertiary on panel surfaces.
|
|
100
|
-
* - `tonal` — soft grey fill (grey-11 / dark:grey-03), grey text. The
|
|
101
|
-
* "soft secondary" used on chrome surfaces (host shells, toolbars)
|
|
102
|
-
* where `outline` would compete with the surface border and `ghost`
|
|
103
|
-
* would visually disappear against the chrome's own grey wash.
|
|
104
|
-
* Sized for compact toolbar usage; pairs naturally with
|
|
105
|
-
* `size="sm"`.
|
|
106
|
-
* - `destructive` — solid red fill, white text. Confirms a destructive
|
|
107
|
-
* action.
|
|
108
|
-
*/
|
|
109
|
-
function Button({ variant = "primary", size = "default", type = "button", className, ref, ...props }) {
|
|
110
|
-
return /* @__PURE__ */ jsx("button", {
|
|
111
|
-
ref,
|
|
112
|
-
type,
|
|
113
|
-
className: cn("rounded-md transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed", {
|
|
114
|
-
default: "px-4 py-2",
|
|
115
|
-
sm: "px-3 py-1.5 text-sm"
|
|
116
|
-
}[size], {
|
|
117
|
-
primary: "bg-azure-04 text-white hover:bg-azure-03",
|
|
118
|
-
outline: "border border-line bg-panel text-grey-04 dark:text-grey-07 hover:bg-hover hover:text-grey-01 dark:hover:text-grey-12",
|
|
119
|
-
ghost: "text-grey-04 dark:text-grey-07 hover:bg-hover hover:text-grey-01 dark:hover:text-grey-12",
|
|
120
|
-
tonal: "bg-grey-11 dark:bg-grey-03 text-grey-04 dark:text-grey-07 hover:bg-grey-10 dark:hover:bg-hover hover:text-grey-01 dark:hover:text-grey-12",
|
|
121
|
-
destructive: "bg-red-04 text-white hover:bg-red-03"
|
|
122
|
-
}[variant], className),
|
|
123
|
-
...props
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
//#endregion
|
|
127
|
-
//#region src/components/ui/Card.tsx
|
|
128
|
-
const SURFACE_CLASS = {
|
|
129
|
-
panel: "bg-white dark:bg-grey-02 border border-grey-09 dark:border-grey-03",
|
|
130
|
-
elevated: "bg-white dark:bg-grey-01"
|
|
131
|
-
};
|
|
132
|
-
const PADDING_CLASS = {
|
|
133
|
-
none: "",
|
|
134
|
-
sm: "p-2",
|
|
135
|
-
md: "p-4",
|
|
136
|
-
lg: "p-6",
|
|
137
|
-
xl: "px-8 py-10"
|
|
138
|
-
};
|
|
139
|
-
const RADIUS_CLASS = {
|
|
140
|
-
sm: "rounded-sm",
|
|
141
|
-
md: "rounded-md",
|
|
142
|
-
lg: "rounded-lg"
|
|
143
|
-
};
|
|
144
|
-
const SHADOW_CLASS = {
|
|
145
|
-
none: "",
|
|
146
|
-
sm: "shadow-sm",
|
|
147
|
-
md: "shadow-md",
|
|
148
|
-
lg: "shadow-lg"
|
|
149
|
-
};
|
|
150
|
-
/**
|
|
151
|
-
* Generic card surface primitive.
|
|
152
|
-
*
|
|
153
|
-
* Hosted shells (pre-auth screens, account menus, banner panels,
|
|
154
|
-
* etc.) compose this rather than restating
|
|
155
|
-
* `bg-white dark:bg-grey-02 border border-grey-09 ... rounded-md
|
|
156
|
-
* shadow-sm` at every call site. Centralising the surface here:
|
|
157
|
-
*
|
|
158
|
-
* - keeps the visual vocabulary aligned with `Dialog.Content`
|
|
159
|
-
* (same `panel` classes — see `SURFACE_CLASS`)
|
|
160
|
-
* - prevents drift (no more "this screen has px-8 py-10, that one
|
|
161
|
-
* has px-6 py-8 and nobody noticed")
|
|
162
|
-
* - dodges the CSS cascade-layer fight that bites raw Tailwind
|
|
163
|
-
* `px-*` / `py-*` classes on consumers outside cms-spa. Card's
|
|
164
|
-
* classes are compiled into cms-spa's bundle alongside the
|
|
165
|
-
* Tailwind preflight reset, so they resolve in the same layer
|
|
166
|
-
* and the reset's `* { padding: 0 }` doesn't win.
|
|
167
|
-
*
|
|
168
|
-
* Layout (`flex`, `gap-*`, `max-w-*`, alignment) stays on the
|
|
169
|
-
* caller via `className` — Card owns the surface; the caller owns
|
|
170
|
-
* what's inside and how the card sits on the page.
|
|
171
|
-
*/
|
|
172
|
-
function Card({ surface = "panel", padding = "md", radius = "md", shadow = "sm", className, ...rest }) {
|
|
173
|
-
return /* @__PURE__ */ jsx("div", {
|
|
174
|
-
className: cn(SURFACE_CLASS[surface], PADDING_CLASS[padding], RADIUS_CLASS[radius], SHADOW_CLASS[shadow], className),
|
|
175
|
-
...rest
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
//#endregion
|
|
179
|
-
//#region src/components/ui/FieldError.tsx
|
|
180
|
-
/**
|
|
181
|
-
* Inline form-error message: small alert-circle icon + red text-xs body.
|
|
182
|
-
*
|
|
183
|
-
* Renders with `role="alert"` so the browser surfaces the message to
|
|
184
|
-
* assistive tech the moment it appears. Pair with `aria-invalid` on
|
|
185
|
-
* the field and `aria-describedby` pointing at this element's id.
|
|
186
|
-
*
|
|
187
|
-
* Layout: `inline-flex items-center gap-2`. Drop-in replacement for the
|
|
188
|
-
* `<AlertCircle h-3 w-3 /> + text-xs text-red-04` pattern that was
|
|
189
|
-
* being hand-rolled across hosted-shell form fields.
|
|
190
|
-
*/
|
|
191
|
-
function FieldError({ id, className, children }) {
|
|
192
|
-
return /* @__PURE__ */ jsxs("span", {
|
|
193
|
-
id,
|
|
194
|
-
role: "alert",
|
|
195
|
-
className: cn("inline-flex items-center gap-2 text-xs text-red-04", className),
|
|
196
|
-
children: [/* @__PURE__ */ jsx(AlertCircle, {
|
|
197
|
-
"aria-hidden": true,
|
|
198
|
-
className: "h-3 w-3 flex-shrink-0"
|
|
199
|
-
}), /* @__PURE__ */ jsx("span", { children })]
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
//#endregion
|
|
203
|
-
//#region src/components/ui/IconButton.tsx
|
|
204
|
-
function IconButton({ icon: Icon, onClick, ariaLabel, title, className, iconSize = "h-4 w-4", variant = "default" }) {
|
|
205
|
-
return /* @__PURE__ */ jsx("button", {
|
|
206
|
-
type: "button",
|
|
207
|
-
onClick,
|
|
208
|
-
className: cn("p-2 rounded-md transition-all duration-150 cursor-pointer", {
|
|
209
|
-
default: "text-grey-03 dark:text-grey-09 hover:bg-hover hover:text-grey-01 dark:hover:text-grey-12",
|
|
210
|
-
ghost: "text-grey-04 dark:text-grey-07 hover:bg-hover hover:text-grey-01 dark:hover:text-grey-12"
|
|
211
|
-
}[variant], className),
|
|
212
|
-
"aria-label": ariaLabel,
|
|
213
|
-
title: title || ariaLabel,
|
|
214
|
-
children: /* @__PURE__ */ jsx(Icon, { className: iconSize })
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
//#endregion
|
|
218
|
-
//#region src/components/ui/Input.tsx
|
|
219
|
-
function Input({ size = "default", surface = "panel", intrinsic = false, error, className, ref, ...props }) {
|
|
220
|
-
return /* @__PURE__ */ jsx("input", {
|
|
221
|
-
ref,
|
|
222
|
-
className: cn(intrinsic ? null : "w-full", "rounded-md border text-grey-01 dark:text-grey-12", "focus:outline-none focus:ring-2 focus:ring-azure-04", size === "xs" ? "h-8 px-3 text-sm" : size === "sm" ? "px-3 py-2 text-sm" : "px-3 py-2", surface === "elevated" ? "bg-white dark:bg-grey-01" : "bg-panel", error ? "border-red-04 focus:ring-red-04" : surface === "elevated" ? "border-grey-09 dark:border-grey-04" : "border-line", className),
|
|
223
|
-
...props
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
//#endregion
|
|
227
|
-
//#region src/components/ui/SaveIndicator.tsx
|
|
228
|
-
function SaveIndicator({ state, className }) {
|
|
229
|
-
const config = {
|
|
230
|
-
idle: null,
|
|
231
|
-
saving: {
|
|
232
|
-
icon: /* @__PURE__ */ jsx(Loader2, { className: "lucide lucide-loader-2 h-4 w-4 animate-spin" }),
|
|
233
|
-
text: "Saving...",
|
|
234
|
-
className: "text-grey-04"
|
|
235
|
-
},
|
|
236
|
-
saved: {
|
|
237
|
-
icon: /* @__PURE__ */ jsx(Check, { className: "lucide lucide-check h-4 w-4" }),
|
|
238
|
-
text: "Saved",
|
|
239
|
-
className: "text-green-06"
|
|
240
|
-
},
|
|
241
|
-
error: {
|
|
242
|
-
icon: /* @__PURE__ */ jsx(X, { className: "lucide lucide-x h-4 w-4" }),
|
|
243
|
-
text: "Error",
|
|
244
|
-
className: "text-red-04"
|
|
245
|
-
},
|
|
246
|
-
conflict: {
|
|
247
|
-
icon: /* @__PURE__ */ jsx(AlertTriangle, { className: "lucide lucide-alert-triangle h-4 w-4" }),
|
|
248
|
-
text: "Conflict",
|
|
249
|
-
className: "text-yellow-06"
|
|
250
|
-
}
|
|
251
|
-
}[state];
|
|
252
|
-
if (!config) return null;
|
|
253
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
254
|
-
className: cn("flex items-center gap-2", config.className, className),
|
|
255
|
-
"data-testid": `save-indicator-${state}`,
|
|
256
|
-
children: [config.icon, /* @__PURE__ */ jsx("span", {
|
|
257
|
-
className: "text-sm",
|
|
258
|
-
children: config.text
|
|
259
|
-
})]
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
//#endregion
|
|
263
|
-
//#region src/components/ui/Select.tsx
|
|
264
|
-
function Select({ size = "default", className, children, ref, ...props }) {
|
|
265
|
-
return /* @__PURE__ */ jsx("select", {
|
|
266
|
-
ref,
|
|
267
|
-
className: cn("w-full appearance-none rounded-md border bg-panel border-line text-grey-01 dark:text-grey-12", "pr-8 bg-no-repeat bg-[length:1.25rem_1.25rem] bg-[right_0.5rem_center]", "bg-[url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 20 20'><path stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/></svg>\")]", "focus:outline-none focus:ring-2 focus:ring-azure-04", size === "sm" ? "px-3 py-1.5 text-sm" : "px-3 py-2", className),
|
|
268
|
-
...props,
|
|
269
|
-
children
|
|
270
|
-
});
|
|
271
|
-
}
|
|
272
|
-
//#endregion
|
|
273
|
-
//#region src/components/ui/Separator.tsx
|
|
274
|
-
function Separator({ className, orientation = "vertical" }) {
|
|
275
|
-
if (orientation === "horizontal") return /* @__PURE__ */ jsx("div", {
|
|
276
|
-
className: cn("w-full h-px bg-grey-09 dark:bg-grey-04", className),
|
|
277
|
-
role: "separator",
|
|
278
|
-
"aria-orientation": "horizontal"
|
|
279
|
-
});
|
|
280
|
-
return /* @__PURE__ */ jsx("div", {
|
|
281
|
-
className: cn("h-5 w-px bg-grey-09 dark:bg-grey-04", className),
|
|
282
|
-
role: "separator",
|
|
283
|
-
"aria-orientation": "vertical"
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
//#endregion
|
|
287
|
-
//#region src/components/ui/Textarea.tsx
|
|
288
|
-
function Textarea({ error, className, ref, ...props }) {
|
|
289
|
-
return /* @__PURE__ */ jsx("textarea", {
|
|
290
|
-
ref,
|
|
291
|
-
className: cn("w-full px-3 py-2 rounded-md border bg-panel text-grey-01 dark:text-grey-12", "focus:outline-none focus:ring-2 focus:ring-azure-04", error ? "border-red-04 focus:ring-red-04" : "border-line", className),
|
|
292
|
-
...props
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
//#endregion
|
|
296
|
-
//#region src/components/ui/Tooltip.tsx
|
|
297
|
-
function Tooltip({ content, children, className = "" }) {
|
|
298
|
-
const [isVisible, setIsVisible] = useState(false);
|
|
299
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
300
|
-
className: "relative inline-block",
|
|
301
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
302
|
-
onMouseEnter: () => setIsVisible(true),
|
|
303
|
-
onMouseLeave: () => setIsVisible(false),
|
|
304
|
-
children
|
|
305
|
-
}), isVisible && /* @__PURE__ */ jsxs("div", {
|
|
306
|
-
className: `absolute z-10 px-3 py-2 text-sm text-white bg-grey-01 rounded-lg shadow-sm
|
|
307
|
-
bottom-full left-1/2 transform -translate-x-1/2 mb-2 whitespace-nowrap ${className}`,
|
|
308
|
-
children: [content, /* @__PURE__ */ jsx("div", {
|
|
309
|
-
className: "absolute top-full left-1/2 transform -translate-x-1/2 -mt-1",
|
|
310
|
-
children: /* @__PURE__ */ jsx("div", { className: "w-0 h-0 border-l-4 border-r-4 border-t-4 border-l-transparent border-r-transparent border-t-grey-01" })
|
|
311
|
-
})]
|
|
312
|
-
})]
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
//#endregion
|
|
316
|
-
export { SaveIndicator as a, FieldError as c, Banner as d, ConlocaLogo as f, Select as i, Card as l, Textarea as n, Input as o, Separator as r, IconButton as s, Tooltip as t, Button as u };
|
|
317
|
-
|
|
318
|
-
//# sourceMappingURL=ui-CIacC6Mv.mjs.map
|
package/dist/ui-CIacC6Mv.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-CIacC6Mv.mjs","names":[],"sources":["../src/components/ConlocaLogo.tsx","../src/components/ui/Banner.tsx","../src/components/ui/Button.tsx","../src/components/ui/Card.tsx","../src/components/ui/FieldError.tsx","../src/components/ui/IconButton.tsx","../src/components/ui/Input.tsx","../src/components/ui/SaveIndicator.tsx","../src/components/ui/Select.tsx","../src/components/ui/Separator.tsx","../src/components/ui/Textarea.tsx","../src/components/ui/Tooltip.tsx"],"sourcesContent":["export function ConlocaLogo() {\n return (\n <div className=\"flex items-center gap-2.5\">\n <div className=\"h-7 w-7 rounded-md bg-azure-04 flex items-center justify-center\">\n <span className=\"text-white font-bold text-sm\">C</span>\n </div>\n <span className=\"text-base font-semibold text-grey-01 dark:text-grey-12\">Conloca</span>\n </div>\n );\n}\n","import type { ComponentProps, ReactNode } from 'react';\nimport { cn } from '../../utils/cn';\n\n/**\n * Visual palette. The names are semantic (\"what is the user being\n * told?\") rather than chromatic (\"what color is it?\"). Two semantic\n * variants can share a palette — e.g. a support-session banner and\n * a success banner are both `success` (green) because the visual\n * weight is the same; the copy carries the meaning.\n *\n * - `info` — azure. Neutral announcements, transient progress,\n * read-only context the user should be aware of.\n * - `warning` — yellow. User-actionable but not catastrophic.\n * Offline state, upstream divergence, provisioning in flight.\n * - `error` — red. Something failed or is blocking. The default\n * ARIA role flips to `alert` for this variant.\n * - `success` — green. Operation succeeded, or persistent context\n * the user can lean on (support session, deploy live).\n *\n * Colors are sourced from the cms-spa Tailwind theme tokens\n * (`{color}-{02..11}`) so dark mode is automatic. Matches the\n * inline-alert palette already used by `BlockWrappers`,\n * `MDXEditField`, `DataEditor`, and `MDXContent` so any host that\n * mixes inline alerts and strip banners reads as one design system.\n */\nexport type BannerVariant = 'info' | 'warning' | 'error' | 'success';\n\nconst VARIANT_CLASS: Record<BannerVariant, string> = {\n info: 'bg-azure-11 dark:bg-azure-02 border-azure-08 dark:border-azure-03 text-azure-02 dark:text-azure-09',\n warning: 'bg-yellow-11 dark:bg-yellow-02 border-yellow-08 dark:border-yellow-03 text-yellow-02 dark:text-yellow-09',\n error: 'bg-red-11 dark:bg-red-02 border-red-08 dark:border-red-03 text-red-04 dark:text-red-08',\n success: 'bg-green-11 dark:bg-green-02 border-green-08 dark:border-green-03 text-green-02 dark:text-green-09',\n};\n\nconst DEFAULT_ROLE: Record<BannerVariant, 'status' | 'alert'> = {\n info: 'status',\n warning: 'status',\n error: 'alert',\n success: 'status',\n};\n\nexport interface BannerProps extends Omit<ComponentProps<'div'>, 'title'> {\n /** Visual palette. Required — there's no neutral default that\n * would make sense across the four uses. */\n variant: BannerVariant;\n /** Leading icon. Conventionally a lucide icon at `h-4 w-4`;\n * Banner wraps it in a `flex-shrink-0` so a long description\n * doesn't squeeze it. Pass `<Loader2 className=\"animate-spin\" />`\n * for the loading-state idiom — there is no separate `loading`\n * prop because that would just be a one-import shortcut. */\n icon?: ReactNode;\n /** Bold lead text. Rendered as `<strong>` with right margin so\n * the description flows inline on the same row. */\n title?: ReactNode;\n /** Trailing actions cluster (typically `<Button>`s). Banner wraps\n * them in a `flex items-center gap-2 flex-shrink-0` cluster so\n * they always sit on the right edge. */\n actions?: ReactNode;\n}\n\n/**\n * Banner primitive.\n *\n * Replaces the per-component restating of the\n * `flex items-start gap-3 px-6 py-3 text-sm border-b bg-{color}-11\n * ... border-{color}-08 ... text-{color}-02 ...` pattern that hosts\n * had been hand-rolling at every banner / alert site. Centralising\n * the surface:\n *\n * - locks the variant palette (one place to change yellow / green /\n * red treatments across every host)\n * - aligns with the inline-alert vocabulary already used inside\n * cms-spa (`BlockWrappers`, `MDXEditField`, etc.) so a \"strip\"\n * banner at the top of the shell and an \"inline\" alert inside an\n * editor block read as one design system\n * - dodges the CSS cascade-layer fight on raw atomic classes (see\n * the `Card` primitive's JSDoc for context)\n *\n * Layout is deliberately one-row: icon + title + description +\n * actions, vertically centered (`items-center`). Multi-row or\n * footer content (a `<details>` disclosure, a secondary description\n * block, etc.) is the caller's job — render Banner with the row\n * content, then put the footer below via the parent's layout. If\n * a future banner has genuinely multi-line description that needs\n * top-aligned chrome, add an `align` prop then; do not flip the\n * default — every existing banner reads better centered.\n *\n * ARIA role defaults: `alert` for `error`, `status` for everything\n * else. Override via the standard `role` prop when the default is\n * wrong (e.g. a non-error loading variant that should still be\n * announced assertively).\n */\nexport function Banner({ variant, icon, title, actions, className, role, children, ...rest }: BannerProps) {\n return (\n <div\n role={role ?? DEFAULT_ROLE[variant]}\n className={cn('flex items-center gap-3 text-sm border-b px-6 py-3', VARIANT_CLASS[variant], className)}\n {...rest}\n >\n {icon ? <span className=\"flex-shrink-0 inline-flex items-center h-5\">{icon}</span> : null}\n <div className=\"flex-1 min-w-0\">\n {title ? <strong className=\"font-semibold mr-2\">{title}</strong> : null}\n {children}\n </div>\n {actions ? <div className=\"flex items-center gap-2 flex-shrink-0\">{actions}</div> : null}\n </div>\n );\n}\n","import type { ButtonHTMLAttributes, Ref } from 'react';\nimport { cn } from '../../utils/cn';\n\ninterface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n variant?: 'primary' | 'outline' | 'ghost' | 'destructive' | 'tonal';\n size?: 'default' | 'sm';\n ref?: Ref<HTMLButtonElement>;\n}\n\n/**\n * Variants:\n *\n * - `primary` — solid azure fill, white text. Default action.\n * - `outline` — bordered, panel-background, grey text. Secondary on\n * panel surfaces.\n * - `ghost` — no resting fill, grey text. Tertiary on panel surfaces.\n * - `tonal` — soft grey fill (grey-11 / dark:grey-03), grey text. The\n * \"soft secondary\" used on chrome surfaces (host shells, toolbars)\n * where `outline` would compete with the surface border and `ghost`\n * would visually disappear against the chrome's own grey wash.\n * Sized for compact toolbar usage; pairs naturally with\n * `size=\"sm\"`.\n * - `destructive` — solid red fill, white text. Confirms a destructive\n * action.\n */\nexport function Button({\n variant = 'primary',\n size = 'default',\n type = 'button',\n className,\n ref,\n ...props\n}: ButtonProps) {\n const base = 'rounded-md transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed';\n const sizes = {\n default: 'px-4 py-2',\n sm: 'px-3 py-1.5 text-sm',\n };\n const variants = {\n primary: 'bg-azure-04 text-white hover:bg-azure-03',\n outline:\n 'border border-line bg-panel text-grey-04 dark:text-grey-07 hover:bg-hover hover:text-grey-01 dark:hover:text-grey-12',\n ghost: 'text-grey-04 dark:text-grey-07 hover:bg-hover hover:text-grey-01 dark:hover:text-grey-12',\n tonal:\n 'bg-grey-11 dark:bg-grey-03 text-grey-04 dark:text-grey-07 hover:bg-grey-10 dark:hover:bg-hover hover:text-grey-01 dark:hover:text-grey-12',\n destructive: 'bg-red-04 text-white hover:bg-red-03',\n };\n\n return <button ref={ref} type={type} className={cn(base, sizes[size], variants[variant], className)} {...props} />;\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '../../utils/cn';\n\n/**\n * Surface vocabulary shared with `Dialog.Content` so any host\n * shell that mixes plain cards and dialog panels reads as one\n * design system rather than two.\n *\n * - `panel` — opaque-white-on-light, opaque-grey-on-dark, with a\n * border. The default for pre-auth screens, account menus, and\n * any anchored popover. Matches `Dialog.Content surface=\"panel\"`\n * verbatim so a panel that turns into a dialog (or vice versa)\n * doesn't visually jump.\n * - `elevated` — borderless white-on-light, near-black-on-dark.\n * For floating surfaces that read as \"lifted off the page\"\n * (think menu portals); kept as a separate variant rather than\n * folding into `panel` so the absence of a border is explicit.\n */\nexport type CardSurface = 'panel' | 'elevated';\n\n/**\n * Inner padding scale. The pre-auth `LoginScreen` card uses `xl`;\n * tight popovers (account menu) use `sm`; the default `md` covers\n * most cases. `none` exists for callers that want to manage\n * padding internally (e.g. a header row + body split where the\n * dividing line should extend to the card edge).\n */\nexport type CardPadding = 'none' | 'sm' | 'md' | 'lg' | 'xl';\n\n/**\n * Border radius. `md` is the conventional Conloca card radius and\n * matches `Dialog.Content surface=\"panel\"`. `lg` is reserved for\n * overlay-style surfaces; `sm` for tight chips that have card\n * affordances (rare).\n */\nexport type CardRadius = 'sm' | 'md' | 'lg';\n\n/**\n * Drop-shadow scale. `sm` is the default for resting cards; `lg`\n * matches the dialog overlay treatment. `none` exists so callers\n * can stack cards inside larger surfaces without a double shadow.\n */\nexport type CardShadow = 'none' | 'sm' | 'md' | 'lg';\n\nconst SURFACE_CLASS: Record<CardSurface, string> = {\n panel: 'bg-white dark:bg-grey-02 border border-grey-09 dark:border-grey-03',\n elevated: 'bg-white dark:bg-grey-01',\n};\n\nconst PADDING_CLASS: Record<CardPadding, string> = {\n none: '',\n sm: 'p-2',\n md: 'p-4',\n lg: 'p-6',\n xl: 'px-8 py-10',\n};\n\nconst RADIUS_CLASS: Record<CardRadius, string> = {\n sm: 'rounded-sm',\n md: 'rounded-md',\n lg: 'rounded-lg',\n};\n\nconst SHADOW_CLASS: Record<CardShadow, string> = {\n none: '',\n sm: 'shadow-sm',\n md: 'shadow-md',\n lg: 'shadow-lg',\n};\n\nexport interface CardProps extends ComponentProps<'div'> {\n /** Visual surface treatment. Default `panel`. */\n surface?: CardSurface;\n /** Inner padding scale. Default `md`. */\n padding?: CardPadding;\n /** Corner radius. Default `md`. */\n radius?: CardRadius;\n /** Drop shadow scale. Default `sm`. */\n shadow?: CardShadow;\n}\n\n/**\n * Generic card surface primitive.\n *\n * Hosted shells (pre-auth screens, account menus, banner panels,\n * etc.) compose this rather than restating\n * `bg-white dark:bg-grey-02 border border-grey-09 ... rounded-md\n * shadow-sm` at every call site. Centralising the surface here:\n *\n * - keeps the visual vocabulary aligned with `Dialog.Content`\n * (same `panel` classes — see `SURFACE_CLASS`)\n * - prevents drift (no more \"this screen has px-8 py-10, that one\n * has px-6 py-8 and nobody noticed\")\n * - dodges the CSS cascade-layer fight that bites raw Tailwind\n * `px-*` / `py-*` classes on consumers outside cms-spa. Card's\n * classes are compiled into cms-spa's bundle alongside the\n * Tailwind preflight reset, so they resolve in the same layer\n * and the reset's `* { padding: 0 }` doesn't win.\n *\n * Layout (`flex`, `gap-*`, `max-w-*`, alignment) stays on the\n * caller via `className` — Card owns the surface; the caller owns\n * what's inside and how the card sits on the page.\n */\nexport function Card({\n surface = 'panel',\n padding = 'md',\n radius = 'md',\n shadow = 'sm',\n className,\n ...rest\n}: CardProps) {\n return (\n <div\n className={cn(\n SURFACE_CLASS[surface],\n PADDING_CLASS[padding],\n RADIUS_CLASS[radius],\n SHADOW_CLASS[shadow],\n className,\n )}\n {...rest}\n />\n );\n}\n","import { AlertCircle } from 'lucide-react';\nimport type { ReactNode } from 'react';\nimport { cn } from '../../utils/cn';\n\ninterface FieldErrorProps {\n /**\n * Optional id so the form field can wire `aria-describedby` to the\n * error message for assistive tech.\n */\n id?: string;\n className?: string;\n children: ReactNode;\n}\n\n/**\n * Inline form-error message: small alert-circle icon + red text-xs body.\n *\n * Renders with `role=\"alert\"` so the browser surfaces the message to\n * assistive tech the moment it appears. Pair with `aria-invalid` on\n * the field and `aria-describedby` pointing at this element's id.\n *\n * Layout: `inline-flex items-center gap-2`. Drop-in replacement for the\n * `<AlertCircle h-3 w-3 /> + text-xs text-red-04` pattern that was\n * being hand-rolled across hosted-shell form fields.\n */\nexport function FieldError({ id, className, children }: FieldErrorProps) {\n return (\n <span id={id} role=\"alert\" className={cn('inline-flex items-center gap-2 text-xs text-red-04', className)}>\n <AlertCircle aria-hidden className=\"h-3 w-3 flex-shrink-0\" />\n <span>{children}</span>\n </span>\n );\n}\n","import type { LucideIcon } from 'lucide-react';\nimport { cn } from '../../utils/cn';\n\ninterface IconButtonProps {\n icon: LucideIcon;\n onClick?: () => void;\n ariaLabel: string;\n title?: string;\n className?: string;\n iconSize?: string;\n variant?: 'default' | 'ghost';\n}\n\nexport function IconButton({\n icon: Icon,\n onClick,\n ariaLabel,\n title,\n className,\n iconSize = 'h-4 w-4',\n variant = 'default',\n}: IconButtonProps) {\n const baseClasses = 'p-2 rounded-md transition-all duration-150 cursor-pointer';\n const variantClasses = {\n default: 'text-grey-03 dark:text-grey-09 hover:bg-hover hover:text-grey-01 dark:hover:text-grey-12',\n ghost: 'text-grey-04 dark:text-grey-07 hover:bg-hover hover:text-grey-01 dark:hover:text-grey-12',\n };\n\n return (\n <button\n type=\"button\"\n onClick={onClick}\n className={cn(baseClasses, variantClasses[variant], className)}\n aria-label={ariaLabel}\n title={title || ariaLabel}\n >\n <Icon className={iconSize} />\n </button>\n );\n}\n","import type { InputHTMLAttributes, Ref } from 'react';\nimport { cn } from '../../utils/cn';\n\ninterface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {\n /**\n * Visual size:\n * - `default` — comfortable padding, body type.\n * - `sm` — same padding, smaller (text-sm) type. Width-flexible.\n * - `xs` — height-locked at `h-8` with `text-sm`. The chrome-strip\n * size; pairs with `Button size=\"sm\"` so toolbars and inline form\n * rows align cleanly.\n */\n size?: 'default' | 'sm' | 'xs';\n /**\n * Surface the input sits on:\n * - `panel` (default) — `bg-panel` / `border-line`. Use inside\n * panel-tone surfaces (cms-spa dialogs and side panels) where\n * the input should read recessed against the panel.\n * - `elevated` — `bg-white dark:bg-grey-01`, explicit grey border.\n * Use inside chrome surfaces (host strips, panel-toned dialogs)\n * where `bg-panel` (which collapses to `grey-02` in dark mode)\n * would blend with the surface itself. The elevated bg is\n * blacker than the strip's grey-02 in dark mode, restoring the\n * contrast that the panel surface erases.\n */\n surface?: 'panel' | 'elevated';\n /**\n * When true, drops the default `w-full` so the input is laid out at\n * its native intrinsic width (driven by the HTML `size` attribute\n * or any `min-w-*` className). Use inside inline-flex form rows or\n * flex columns where the input shouldn't dominate the row width.\n */\n intrinsic?: boolean;\n error?: boolean;\n ref?: Ref<HTMLInputElement>;\n}\n\nexport function Input({\n size = 'default',\n surface = 'panel',\n intrinsic = false,\n error,\n className,\n ref,\n ...props\n}: InputProps) {\n return (\n <input\n ref={ref}\n className={cn(\n intrinsic ? null : 'w-full',\n 'rounded-md border text-grey-01 dark:text-grey-12',\n 'focus:outline-none focus:ring-2 focus:ring-azure-04',\n size === 'xs' ? 'h-8 px-3 text-sm' : size === 'sm' ? 'px-3 py-2 text-sm' : 'px-3 py-2',\n surface === 'elevated' ? 'bg-white dark:bg-grey-01' : 'bg-panel',\n error\n ? 'border-red-04 focus:ring-red-04'\n : surface === 'elevated'\n ? 'border-grey-09 dark:border-grey-04'\n : 'border-line',\n className,\n )}\n {...props}\n />\n );\n}\n","import { AlertTriangle, Check, Loader2, X } from 'lucide-react';\nimport type { SaveState } from '../../types';\nimport { cn } from '../../utils/cn';\n\ninterface SaveIndicatorProps {\n state: SaveState;\n className?: string;\n}\n\nexport function SaveIndicator({ state, className }: SaveIndicatorProps) {\n const stateConfig = {\n idle: null,\n saving: {\n icon: <Loader2 className=\"lucide lucide-loader-2 h-4 w-4 animate-spin\" />,\n text: 'Saving...',\n className: 'text-grey-04',\n },\n saved: {\n icon: <Check className=\"lucide lucide-check h-4 w-4\" />,\n text: 'Saved',\n className: 'text-green-06',\n },\n error: {\n icon: <X className=\"lucide lucide-x h-4 w-4\" />,\n text: 'Error',\n className: 'text-red-04',\n },\n conflict: {\n icon: <AlertTriangle className=\"lucide lucide-alert-triangle h-4 w-4\" />,\n text: 'Conflict',\n className: 'text-yellow-06',\n },\n };\n\n const config = stateConfig[state];\n if (!config) return null;\n\n return (\n <div className={cn('flex items-center gap-2', config.className, className)} data-testid={`save-indicator-${state}`}>\n {config.icon}\n <span className=\"text-sm\">{config.text}</span>\n </div>\n );\n}\n","import type { Ref, SelectHTMLAttributes } from 'react';\nimport { cn } from '../../utils/cn';\n\ninterface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> {\n size?: 'default' | 'sm';\n ref?: Ref<HTMLSelectElement>;\n}\n\nexport function Select({ size = 'default', className, children, ref, ...props }: SelectProps) {\n return (\n <select\n ref={ref}\n className={cn(\n // appearance-none removes the native OS chrome (white box on dark themes,\n // platform-default fonts). The custom chevron is painted via background-image\n // so the select still looks like a dropdown without the cross-OS inconsistency.\n 'w-full appearance-none rounded-md border bg-panel border-line text-grey-01 dark:text-grey-12',\n 'pr-8 bg-no-repeat bg-[length:1.25rem_1.25rem] bg-[right_0.5rem_center]',\n \"bg-[url(\\\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 20 20'><path stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/></svg>\\\")]\",\n 'focus:outline-none focus:ring-2 focus:ring-azure-04',\n size === 'sm' ? 'px-3 py-1.5 text-sm' : 'px-3 py-2',\n className,\n )}\n {...props}\n >\n {children}\n </select>\n );\n}\n","import { cn } from '../../utils/cn';\n\ninterface SeparatorProps {\n className?: string;\n orientation?: 'vertical' | 'horizontal';\n}\n\nexport function Separator({ className, orientation = 'vertical' }: SeparatorProps) {\n if (orientation === 'horizontal') {\n return (\n <div\n className={cn('w-full h-px bg-grey-09 dark:bg-grey-04', className)}\n role=\"separator\"\n aria-orientation=\"horizontal\"\n />\n );\n }\n\n return (\n <div\n className={cn('h-5 w-px bg-grey-09 dark:bg-grey-04', className)}\n role=\"separator\"\n aria-orientation=\"vertical\"\n />\n );\n}\n","import type { Ref, TextareaHTMLAttributes } from 'react';\nimport { cn } from '../../utils/cn';\n\ninterface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {\n error?: boolean;\n ref?: Ref<HTMLTextAreaElement>;\n}\n\nexport function Textarea({ error, className, ref, ...props }: TextareaProps) {\n return (\n <textarea\n ref={ref}\n className={cn(\n 'w-full px-3 py-2 rounded-md border bg-panel text-grey-01 dark:text-grey-12',\n 'focus:outline-none focus:ring-2 focus:ring-azure-04',\n error ? 'border-red-04 focus:ring-red-04' : 'border-line',\n className,\n )}\n {...props}\n />\n );\n}\n","import { type ReactNode, useState } from 'react';\n\ninterface TooltipProps {\n content: string;\n children: ReactNode;\n className?: string;\n}\n\nexport function Tooltip({ content, children, className = '' }: TooltipProps) {\n const [isVisible, setIsVisible] = useState(false);\n\n return (\n <div className=\"relative inline-block\">\n <div onMouseEnter={() => setIsVisible(true)} onMouseLeave={() => setIsVisible(false)}>\n {children}\n </div>\n {isVisible && (\n <div\n className={`absolute z-10 px-3 py-2 text-sm text-white bg-grey-01 rounded-lg shadow-sm\n bottom-full left-1/2 transform -translate-x-1/2 mb-2 whitespace-nowrap ${className}`}\n >\n {content}\n <div className=\"absolute top-full left-1/2 transform -translate-x-1/2 -mt-1\">\n <div className=\"w-0 h-0 border-l-4 border-r-4 border-t-4 border-l-transparent border-r-transparent border-t-grey-01\" />\n </div>\n </div>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;AAAA,SAAgB,cAAc;CAC5B,OACE,qBAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CACE,oBAAC,OAAD;GAAK,WAAU;GACb,UAAA,oBAAC,QAAD;IAAM,WAAU;IAA+B,UAAA;GAAO,CAAA;EACnD,CAAA,GACL,oBAAC,QAAD;GAAM,WAAU;GAAyD,UAAA;EAAa,CAAA,CACnF;;AAET;;;ACkBA,MAAM,gBAA+C;CACnD,MAAM;CACN,SAAS;CACT,OAAO;CACP,SAAS;AACX;AAEA,MAAM,eAA0D;CAC9D,MAAM;CACN,SAAS;CACT,OAAO;CACP,SAAS;AACX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,SAAgB,OAAO,EAAE,SAAS,MAAM,OAAO,SAAS,WAAW,MAAM,UAAU,GAAG,QAAqB;CACzG,OACE,qBAAC,OAAD;EACE,MAAM,QAAQ,aAAa;EAC3B,WAAW,GAAG,sDAAsD,cAAc,UAAU,SAAS;EACrG,GAAI;EAHN,UAAA;GAKG,OAAO,oBAAC,QAAD;IAAM,WAAU;IAA8C,UAAA;GAAW,CAAA,IAAI;GACrF,qBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACG,QAAQ,oBAAC,UAAD;KAAQ,WAAU;KAAsB,UAAA;IAAc,CAAA,IAAI,MAClE,QACE;;GACJ,UAAU,oBAAC,OAAD;IAAK,WAAU;IAAyC,UAAA;GAAa,CAAA,IAAI;EACjF;;AAET;;;;;;;;;;;;;;;;;;;AClFA,SAAgB,OAAO,EACrB,UAAU,WACV,OAAO,WACP,OAAO,UACP,WACA,KACA,GAAG,SACW;CAgBd,OAAO,oBAAC,UAAD;EAAa;EAAW;EAAM,WAAW,GAAG,+FAAM;GAbvD,SAAS;GACT,IAAI;EAYuD,EAAE,OAAO;GATpE,SAAS;GACT,SACE;GACF,OAAO;GACP,OACE;GACF,aAAa;EAG8D,EAAE,UAAU,SAAS;EAAG,GAAI;CAAQ,CAAA;AACnH;;;ACLA,MAAM,gBAA6C;CACjD,OAAO;CACP,UAAU;AACZ;AAEA,MAAM,gBAA6C;CACjD,MAAM;CACN,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;AACN;AAEA,MAAM,eAA2C;CAC/C,IAAI;CACJ,IAAI;CACJ,IAAI;AACN;AAEA,MAAM,eAA2C;CAC/C,MAAM;CACN,IAAI;CACJ,IAAI;CACJ,IAAI;AACN;;;;;;;;;;;;;;;;;;;;;;;AAmCA,SAAgB,KAAK,EACnB,UAAU,SACV,UAAU,MACV,SAAS,MACT,SAAS,MACT,WACA,GAAG,QACS;CACZ,OACE,oBAAC,OAAD;EACE,WAAW,GACT,cAAc,UACd,cAAc,UACd,aAAa,SACb,aAAa,SACb,SACF;EACA,GAAI;CACL,CAAA;AAEL;;;;;;;;;;;;;;AClGA,SAAgB,WAAW,EAAE,IAAI,WAAW,YAA6B;CACvE,OACE,qBAAC,QAAD;EAAU;EAAI,MAAK;EAAQ,WAAW,GAAG,sDAAsD,SAAS;EAAxG,UAAA,CACE,oBAAC,aAAD;GAAa,eAAA;GAAY,WAAU;EAAyB,CAAA,GAC5D,oBAAC,QAAD,EAAO,SAAe,CAAA,CAClB;;AAEV;;;ACnBA,SAAgB,WAAW,EACzB,MAAM,MACN,SACA,WACA,OACA,WACA,WAAW,WACX,UAAU,aACQ;CAOlB,OACE,oBAAC,UAAD;EACE,MAAK;EACI;EACT,WAAW,GAAG,6DAAa;GAR7B,SAAS;GACT,OAAO;EAOmC,EAAE,UAAU,SAAS;EAC7D,cAAY;EACZ,OAAO,SAAS;EAEhB,UAAA,oBAAC,MAAD,EAAM,WAAW,SAAW,CAAA;CACtB,CAAA;AAEZ;;;ACFA,SAAgB,MAAM,EACpB,OAAO,WACP,UAAU,SACV,YAAY,OACZ,OACA,WACA,KACA,GAAG,SACU;CACb,OACE,oBAAC,SAAD;EACO;EACL,WAAW,GACT,YAAY,OAAO,UACnB,oDACA,uDACA,SAAS,OAAO,qBAAqB,SAAS,OAAO,sBAAsB,aAC3E,YAAY,aAAa,6BAA6B,YACtD,QACI,oCACA,YAAY,aACV,uCACA,eACN,SACF;EACA,GAAI;CACL,CAAA;AAEL;;;ACxDA,SAAgB,cAAc,EAAE,OAAO,aAAiC;CAyBtE,MAAM,SAAS;EAvBb,MAAM;EACN,QAAQ;GACN,MAAM,oBAAC,SAAD,EAAS,WAAU,8CAA+C,CAAA;GACxE,MAAM;GACN,WAAW;EACb;EACA,OAAO;GACL,MAAM,oBAAC,OAAD,EAAO,WAAU,8BAA+B,CAAA;GACtD,MAAM;GACN,WAAW;EACb;EACA,OAAO;GACL,MAAM,oBAAC,GAAD,EAAG,WAAU,0BAA2B,CAAA;GAC9C,MAAM;GACN,WAAW;EACb;EACA,UAAU;GACR,MAAM,oBAAC,eAAD,EAAe,WAAU,uCAAwC,CAAA;GACvE,MAAM;GACN,WAAW;EACb;CAGuB,EAAE;CAC3B,IAAI,CAAC,QAAQ,OAAO;CAEpB,OACE,qBAAC,OAAD;EAAK,WAAW,GAAG,2BAA2B,OAAO,WAAW,SAAS;EAAG,eAAa,kBAAkB;EAA3G,UAAA,CACG,OAAO,MACR,oBAAC,QAAD;GAAM,WAAU;GAAW,UAAA,OAAO;EAAW,CAAA,CAC1C;;AAET;;;ACnCA,SAAgB,OAAO,EAAE,OAAO,WAAW,WAAW,UAAU,KAAK,GAAG,SAAsB;CAC5F,OACE,oBAAC,UAAD;EACO;EACL,WAAW,GAIT,gGACA,0EACA,+PACA,uDACA,SAAS,OAAO,wBAAwB,aACxC,SACF;EACA,GAAI;EAEH;CACK,CAAA;AAEZ;;;ACrBA,SAAgB,UAAU,EAAE,WAAW,cAAc,cAA8B;CACjF,IAAI,gBAAgB,cAClB,OACE,oBAAC,OAAD;EACE,WAAW,GAAG,0CAA0C,SAAS;EACjE,MAAK;EACL,oBAAiB;CAClB,CAAA;CAIL,OACE,oBAAC,OAAD;EACE,WAAW,GAAG,uCAAuC,SAAS;EAC9D,MAAK;EACL,oBAAiB;CAClB,CAAA;AAEL;;;ACjBA,SAAgB,SAAS,EAAE,OAAO,WAAW,KAAK,GAAG,SAAwB;CAC3E,OACE,oBAAC,YAAD;EACO;EACL,WAAW,GACT,8EACA,uDACA,QAAQ,oCAAoC,eAC5C,SACF;EACA,GAAI;CACL,CAAA;AAEL;;;ACbA,SAAgB,QAAQ,EAAE,SAAS,UAAU,YAAY,MAAoB;CAC3E,MAAM,CAAC,WAAW,gBAAgB,SAAS,KAAK;CAEhD,OACE,qBAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CACE,oBAAC,OAAD;GAAK,oBAAoB,aAAa,IAAI;GAAG,oBAAoB,aAAa,KAAK;GAChF;EACE,CAAA,GACJ,aACC,qBAAC,OAAD;GACE,WAAW;qFACgE;GAF7E,UAAA,CAIG,SACD,oBAAC,OAAD;IAAK,WAAU;IACb,UAAA,oBAAC,OAAD,EAAK,WAAU,sGAAuG,CAAA;GACnH,CAAA,CACF;EAEJ,CAAA,CAAA;;AAET"}
|
package/dist/ui-config.d.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import type { ContentAPIClient } from '@conloca/content-api-client';
|
|
2
|
-
import type { QueryClientConfig } from '@tanstack/react-query';
|
|
3
|
-
import type { MediaBridge } from './media/types';
|
|
4
|
-
export interface TemplateConfig {
|
|
5
|
-
label: string;
|
|
6
|
-
component: string;
|
|
7
|
-
pathPrefix?: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface UIConfig {
|
|
11
|
-
basename?: string;
|
|
12
|
-
apiBaseUrl?: string;
|
|
13
|
-
siteBaseUrl?: string;
|
|
14
|
-
enableDevtools?: boolean;
|
|
15
|
-
queryClientOptions?: QueryClientConfig;
|
|
16
|
-
/**
|
|
17
|
-
* Optional content client supplied by an embedding host. When absent,
|
|
18
|
-
* CmsSpaApp creates the default ContentAPIClient from `apiBaseUrl`.
|
|
19
|
-
*/
|
|
20
|
-
contentClient?: ContentAPIClient;
|
|
21
|
-
/** Absolute path to project root (for "Open in Editor" links) */
|
|
22
|
-
projectRoot?: string;
|
|
23
|
-
/** Relative path to schemas file (e.g., './src/schemas.ts') */
|
|
24
|
-
schemasPath?: string;
|
|
25
|
-
/** Page creation templates */
|
|
26
|
-
templates?: Record<string, TemplateConfig>;
|
|
27
|
-
/**
|
|
28
|
-
* True when at least one site in `sites.json` declares an `mdxPages`
|
|
29
|
-
* path. Drives whether the create-page dialog exposes the "Document
|
|
30
|
-
* page" (MDX) option. When absent or false, the dialog only creates
|
|
31
|
-
* Puck pages — the historical behavior.
|
|
32
|
-
*/
|
|
33
|
-
mdxPagesEnabled?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* The site's supported locales. Comes from the top-level `locales`
|
|
36
|
-
* option on `conlocaCMS({...})` (which can be derived from
|
|
37
|
-
* `localesFromAstroI18n` / `localesFromStarlight`). When absent the
|
|
38
|
-
* dialog falls back to a single English locale and hides the locale
|
|
39
|
-
* field entirely.
|
|
40
|
-
*/
|
|
41
|
-
locales?: {
|
|
42
|
-
list: string[];
|
|
43
|
-
defaultLocale: string;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* When true, cms-spa is rendering inside a hosted shell that already
|
|
47
|
-
* owns workspace identity, account, and workspace-state UI. The sidebar
|
|
48
|
-
* suppresses widgets that would compete with the host (UserAvatar,
|
|
49
|
-
* GitStatusPanel) and lets the host's chrome show through. Default
|
|
50
|
-
* false: cms-spa runs as the whole page (astro-cms, dev-entry).
|
|
51
|
-
*/
|
|
52
|
-
hosted?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Bridge the host shell installs to surface hosted-mode media
|
|
55
|
-
* metadata (e.g. branch-vs-published scope) in cms-spa's media
|
|
56
|
-
* surfaces. cms-spa's renderer-neutral `AssetEntry` does NOT
|
|
57
|
-
* carry scope because the local-Astro case has no notion of
|
|
58
|
-
* branch-only assets. Surfaces consult the bridge through a
|
|
59
|
-
* TanStack-wrapped hook (`useAssetScope` in `media/use-asset-scope.ts`)
|
|
60
|
-
* so per-asset lookups cache cleanly.
|
|
61
|
-
*
|
|
62
|
-
* Optional in `UIConfig` — when absent, AssetCard /
|
|
63
|
-
* AssetDetailSidebar skip the scope pill entirely. This keeps
|
|
64
|
-
* astro-cms standalone working unchanged.
|
|
65
|
-
*/
|
|
66
|
-
mediaBridge?: MediaBridge;
|
|
67
|
-
}
|
|
68
|
-
export declare function configureUI(options: Partial<UIConfig>): void;
|
|
69
|
-
export declare function getUIConfig(): UIConfig;
|
|
70
|
-
//# sourceMappingURL=ui-config.d.ts.map
|
package/dist/ui-config.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-config.d.ts","sourceRoot":"","sources":["../src/ui-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,iBAAiB,CAAC;IACvC;;;OAGG;IACH,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,iEAAiE;IACjE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+DAA+D;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC3C;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;;OAMG;IACH,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;IACpD;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAmBD,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,QAOrD;AAED,wBAAgB,WAAW,IAAI,QAAQ,CAoBtC"}
|
package/dist/ui-config.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
const defaultConfig = {
|
|
2
|
-
basename: '/__cms',
|
|
3
|
-
apiBaseUrl: '/__cms/api',
|
|
4
|
-
siteBaseUrl: '', // No base URL by default (site at root)
|
|
5
|
-
enableDevtools: false,
|
|
6
|
-
queryClientOptions: {
|
|
7
|
-
defaultOptions: {
|
|
8
|
-
queries: {
|
|
9
|
-
staleTime: 1000 * 60 * 5, // 5 minutes
|
|
10
|
-
retry: 1,
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
let config = { ...defaultConfig };
|
|
16
|
-
export function configureUI(options) {
|
|
17
|
-
config = { ...defaultConfig, ...options };
|
|
18
|
-
// Make it available globally for the runtime
|
|
19
|
-
if (typeof window !== 'undefined') {
|
|
20
|
-
window.__UI_CONFIG__ = config;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
export function getUIConfig() {
|
|
24
|
-
if (typeof window === 'undefined') {
|
|
25
|
-
return config;
|
|
26
|
-
}
|
|
27
|
-
// Check if already configured via global
|
|
28
|
-
if (window.__UI_CONFIG__) {
|
|
29
|
-
return window.__UI_CONFIG__;
|
|
30
|
-
}
|
|
31
|
-
// For development mode, auto-configure
|
|
32
|
-
if (window.location.pathname === '/') {
|
|
33
|
-
return {
|
|
34
|
-
...defaultConfig,
|
|
35
|
-
basename: undefined,
|
|
36
|
-
enableDevtools: true,
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
return config;
|
|
40
|
-
}
|
|
41
|
-
// Export for Astro plugin to use
|
|
42
|
-
if (typeof window !== 'undefined') {
|
|
43
|
-
window.configureUI = configureUI;
|
|
44
|
-
}
|