@conloca/cms-spa 0.1.14 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App-Bk1LNxbS.mjs +10851 -0
- package/dist/App-Bk1LNxbS.mjs.map +1 -0
- package/dist/App.d.ts +35 -0
- package/dist/App.d.ts.map +1 -0
- package/dist/App.js +52 -0
- package/dist/CmsSpaApp.d.ts +13 -0
- package/dist/CmsSpaApp.d.ts.map +1 -0
- package/dist/CmsSpaApp.js +33 -0
- package/dist/cn-dlASUkDY.mjs +10 -0
- package/dist/cn-dlASUkDY.mjs.map +1 -0
- package/dist/components/CMSDashboard.d.ts +2 -0
- package/dist/components/CMSDashboard.d.ts.map +1 -0
- package/dist/components/CMSDashboard.js +20 -0
- package/dist/components/CMSLayout.d.ts +2 -0
- package/dist/components/CMSLayout.d.ts.map +1 -0
- package/dist/components/CMSLayout.js +15 -0
- package/dist/components/ConlocaLogo.d.ts +2 -0
- package/dist/components/ConlocaLogo.d.ts.map +1 -0
- package/dist/components/ConlocaLogo.js +4 -0
- package/dist/components/GitStatusPanel.d.ts +25 -0
- package/dist/components/GitStatusPanel.d.ts.map +1 -0
- package/dist/components/GitStatusPanel.js +77 -0
- package/dist/components/MobileTopBar.d.ts +6 -0
- package/dist/components/MobileTopBar.d.ts.map +1 -0
- package/dist/components/MobileTopBar.js +6 -0
- package/dist/components/Sidebar.d.ts +8 -0
- package/dist/components/Sidebar.d.ts.map +1 -0
- package/dist/components/Sidebar.js +40 -0
- package/dist/components/UserAvatar.d.ts +2 -0
- package/dist/components/UserAvatar.d.ts.map +1 -0
- package/dist/components/UserAvatar.js +14 -0
- package/dist/components/cards/DataEntryCard.d.ts +14 -0
- package/dist/components/cards/DataEntryCard.d.ts.map +1 -0
- package/dist/components/cards/DataEntryCard.js +32 -0
- package/dist/components/cards/SectionCard.d.ts +15 -0
- package/dist/components/cards/SectionCard.d.ts.map +1 -0
- package/dist/components/cards/SectionCard.js +10 -0
- package/dist/components/cards/index.d.ts +2 -0
- package/dist/components/cards/index.d.ts.map +1 -0
- package/dist/components/cards/index.js +1 -0
- package/dist/components/dashboard/RecentActivity.d.ts +2 -0
- package/dist/components/dashboard/RecentActivity.d.ts.map +1 -0
- package/dist/components/dashboard/RecentActivity.js +58 -0
- package/dist/components/dialog.d.ts +53 -0
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/dialog.js +56 -0
- package/dist/components/dialogs/BlockPropertiesDialog.d.ts +12 -0
- package/dist/components/dialogs/BlockPropertiesDialog.d.ts.map +1 -0
- package/dist/components/dialogs/BlockPropertiesDialog.js +42 -0
- package/dist/components/dialogs/ConflictDialog.d.ts +10 -0
- package/dist/components/dialogs/ConflictDialog.d.ts.map +1 -0
- package/dist/components/dialogs/ConflictDialog.js +29 -0
- package/dist/components/dialogs/CreateDataDialog.d.ts +9 -0
- package/dist/components/dialogs/CreateDataDialog.d.ts.map +1 -0
- package/dist/components/dialogs/CreateDataDialog.js +20 -0
- package/dist/components/dialogs/CreateFolderDialog.d.ts +9 -0
- package/dist/components/dialogs/CreateFolderDialog.d.ts.map +1 -0
- package/dist/components/dialogs/CreateFolderDialog.js +33 -0
- package/dist/components/dialogs/CreatePageDialog.d.ts +10 -0
- package/dist/components/dialogs/CreatePageDialog.d.ts.map +1 -0
- package/dist/components/dialogs/CreatePageDialog.js +155 -0
- package/dist/components/dialogs/DataPropertiesDialog.d.ts +10 -0
- package/dist/components/dialogs/DataPropertiesDialog.d.ts.map +1 -0
- package/dist/components/dialogs/DataPropertiesDialog.js +38 -0
- package/dist/components/dialogs/DeleteConfirmDialog.d.ts +12 -0
- package/dist/components/dialogs/DeleteConfirmDialog.d.ts.map +1 -0
- package/dist/components/dialogs/DeleteConfirmDialog.js +7 -0
- package/dist/components/dialogs/ErrorModal.d.ts +14 -0
- package/dist/components/dialogs/ErrorModal.d.ts.map +1 -0
- package/dist/components/dialogs/ErrorModal.js +38 -0
- package/dist/components/dialogs/MoveFolderDialog.d.ts +11 -0
- package/dist/components/dialogs/MoveFolderDialog.d.ts.map +1 -0
- package/dist/components/dialogs/MoveFolderDialog.js +45 -0
- package/dist/components/dialogs/PageMetadataDialog.d.ts +10 -0
- package/dist/components/dialogs/PageMetadataDialog.d.ts.map +1 -0
- package/dist/components/dialogs/PageMetadataDialog.js +85 -0
- package/dist/components/dialogs/UnsavedChangesDialog.d.ts +8 -0
- package/dist/components/dialogs/UnsavedChangesDialog.d.ts.map +1 -0
- package/dist/components/dialogs/UnsavedChangesDialog.js +6 -0
- package/dist/components/dialogs/index.d.ts +9 -0
- package/dist/components/dialogs/index.d.ts.map +1 -0
- package/dist/components/dialogs/index.js +8 -0
- package/dist/components/editor/BlockEditor.d.ts +8 -0
- package/dist/components/editor/BlockEditor.d.ts.map +1 -0
- package/dist/components/editor/BlockEditor.js +262 -0
- package/dist/components/editor/BlockWrappers.d.ts +15 -0
- package/dist/components/editor/BlockWrappers.d.ts.map +1 -0
- package/dist/components/editor/BlockWrappers.js +29 -0
- package/dist/components/editor/CMSMDXEditor.d.ts +13 -0
- package/dist/components/editor/CMSMDXEditor.d.ts.map +1 -0
- package/dist/components/editor/CMSMDXEditor.js +123 -0
- package/dist/components/editor/ContentDiff.d.ts +10 -0
- package/dist/components/editor/ContentDiff.d.ts.map +1 -0
- package/dist/components/editor/ContentDiff.js +51 -0
- package/dist/components/editor/CreateBlockDialog.d.ts +26 -0
- package/dist/components/editor/CreateBlockDialog.d.ts.map +1 -0
- package/dist/components/editor/CreateBlockDialog.js +131 -0
- package/dist/components/editor/DrawerItemOverride.d.ts +8 -0
- package/dist/components/editor/DrawerItemOverride.d.ts.map +1 -0
- package/dist/components/editor/DrawerItemOverride.js +41 -0
- package/dist/components/editor/EditorChromeToggles.d.ts +16 -0
- package/dist/components/editor/EditorChromeToggles.d.ts.map +1 -0
- package/dist/components/editor/EditorChromeToggles.js +16 -0
- package/dist/components/editor/GenericBlock.d.ts +3 -0
- package/dist/components/editor/GenericBlock.d.ts.map +1 -0
- package/dist/components/editor/GenericBlock.js +1067 -0
- package/dist/components/editor/ImagePickerDialog.d.ts +6 -0
- package/dist/components/editor/ImagePickerDialog.d.ts.map +1 -0
- package/dist/components/editor/ImagePickerDialog.js +24 -0
- package/dist/components/editor/JsxPropsPanel.d.ts +16 -0
- package/dist/components/editor/JsxPropsPanel.d.ts.map +1 -0
- package/dist/components/editor/JsxPropsPanel.js +145 -0
- package/dist/components/editor/LocaleSelector.d.ts +9 -0
- package/dist/components/editor/LocaleSelector.d.ts.map +1 -0
- package/dist/components/editor/LocaleSelector.js +13 -0
- package/dist/components/editor/MDXLivePreview.d.ts +14 -0
- package/dist/components/editor/MDXLivePreview.d.ts.map +1 -0
- package/dist/components/editor/MDXLivePreview.js +103 -0
- package/dist/components/editor/MdxPageEditor.d.ts +10 -0
- package/dist/components/editor/MdxPageEditor.d.ts.map +1 -0
- package/dist/components/editor/MdxPageEditor.js +297 -0
- package/dist/components/editor/PageEditor.d.ts +18 -0
- package/dist/components/editor/PageEditor.d.ts.map +1 -0
- package/dist/components/editor/PageEditor.js +288 -0
- package/dist/components/editor/PageEditorHeaderActions.d.ts +16 -0
- package/dist/components/editor/PageEditorHeaderActions.d.ts.map +1 -0
- package/dist/components/editor/PageEditorHeaderActions.js +19 -0
- package/dist/components/editor/PageEditorWrapper.d.ts +7 -0
- package/dist/components/editor/PageEditorWrapper.d.ts.map +1 -0
- package/dist/components/editor/PageEditorWrapper.js +319 -0
- package/dist/components/editor/SearchableSelect.d.ts +34 -0
- package/dist/components/editor/SearchableSelect.d.ts.map +1 -0
- package/dist/components/editor/SearchableSelect.js +116 -0
- package/dist/components/editor/host-wrapper-plugin.d.ts +51 -0
- package/dist/components/editor/host-wrapper-plugin.d.ts.map +1 -0
- package/dist/components/editor/host-wrapper-plugin.js +37 -0
- package/dist/components/editor/index.d.ts +9 -0
- package/dist/components/editor/index.d.ts.map +1 -0
- package/dist/components/editor/index.js +7 -0
- package/dist/components/editor/insert-menu/InsertMdxComponentButton.d.ts +15 -0
- package/dist/components/editor/insert-menu/InsertMdxComponentButton.d.ts.map +1 -0
- package/dist/components/editor/insert-menu/InsertMdxComponentButton.js +90 -0
- package/dist/components/editor/insert-menu/SlashMenuPlugin.d.ts +12 -0
- package/dist/components/editor/insert-menu/SlashMenuPlugin.d.ts.map +1 -0
- package/dist/components/editor/insert-menu/SlashMenuPlugin.js +106 -0
- package/dist/components/editor/insert-menu/insert-payload.d.ts +76 -0
- package/dist/components/editor/insert-menu/insert-payload.d.ts.map +1 -0
- package/dist/components/editor/insert-menu/insert-payload.js +94 -0
- package/dist/components/editor/insert-menu/mdx-components-plugin.d.ts +8 -0
- package/dist/components/editor/insert-menu/mdx-components-plugin.d.ts.map +1 -0
- package/dist/components/editor/insert-menu/mdx-components-plugin.js +13 -0
- package/dist/components/editors/DataEditor.d.ts +19 -0
- package/dist/components/editors/DataEditor.d.ts.map +1 -0
- package/dist/components/editors/DataEditor.js +139 -0
- package/dist/components/fields/ContentBlockSelectorField.d.ts +14 -0
- package/dist/components/fields/ContentBlockSelectorField.d.ts.map +1 -0
- package/dist/components/fields/ContentBlockSelectorField.js +105 -0
- package/dist/components/fields/ImageField.d.ts +16 -0
- package/dist/components/fields/ImageField.d.ts.map +1 -0
- package/dist/components/fields/ImageField.js +39 -0
- package/dist/components/fields/MDXEditField.d.ts +17 -0
- package/dist/components/fields/MDXEditField.d.ts.map +1 -0
- package/dist/components/fields/MDXEditField.js +28 -0
- package/dist/components/forms/ChipArrayField.d.ts +12 -0
- package/dist/components/forms/ChipArrayField.d.ts.map +1 -0
- package/dist/components/forms/ChipArrayField.js +40 -0
- package/dist/components/forms/HintForm.d.ts +22 -0
- package/dist/components/forms/HintForm.d.ts.map +1 -0
- package/dist/components/forms/HintForm.js +162 -0
- package/dist/components/forms/SchemaForm.d.ts +15 -0
- package/dist/components/forms/SchemaForm.d.ts.map +1 -0
- package/dist/components/forms/SchemaForm.js +106 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +13 -0
- package/dist/components/media/AssetCard.d.ts +14 -0
- package/dist/components/media/AssetCard.d.ts.map +1 -0
- package/dist/components/media/AssetCard.js +31 -0
- package/dist/components/media/AssetDetailSidebar.d.ts +11 -0
- package/dist/components/media/AssetDetailSidebar.d.ts.map +1 -0
- package/dist/components/media/AssetDetailSidebar.js +101 -0
- package/dist/components/media/BulkActionBar.d.ts +9 -0
- package/dist/components/media/BulkActionBar.d.ts.map +1 -0
- package/dist/components/media/BulkActionBar.js +8 -0
- package/dist/components/media/FolderNav.d.ts +7 -0
- package/dist/components/media/FolderNav.d.ts.map +1 -0
- package/dist/components/media/FolderNav.js +12 -0
- package/dist/components/media/FolderTreeSidebar.d.ts +9 -0
- package/dist/components/media/FolderTreeSidebar.d.ts.map +1 -0
- package/dist/components/media/FolderTreeSidebar.js +41 -0
- package/dist/components/media/ImagePicker.d.ts +14 -0
- package/dist/components/media/ImagePicker.d.ts.map +1 -0
- package/dist/components/media/ImagePicker.js +45 -0
- package/dist/components/media/MediaLibrary.d.ts +35 -0
- package/dist/components/media/MediaLibrary.d.ts.map +1 -0
- package/dist/components/media/MediaLibrary.js +100 -0
- package/dist/components/media/MediaToolbar.d.ts +21 -0
- package/dist/components/media/MediaToolbar.d.ts.map +1 -0
- package/dist/components/media/MediaToolbar.js +6 -0
- package/dist/components/media/UploadModal.d.ts +9 -0
- package/dist/components/media/UploadModal.d.ts.map +1 -0
- package/dist/components/media/UploadModal.js +42 -0
- package/dist/components/media/UploadZone.d.ts +8 -0
- package/dist/components/media/UploadZone.d.ts.map +1 -0
- package/dist/components/media/UploadZone.js +22 -0
- package/dist/components/media/index.d.ts +11 -0
- package/dist/components/media/index.d.ts.map +1 -0
- package/dist/components/media/index.js +10 -0
- package/dist/components/pages/BlockList.d.ts +2 -0
- package/dist/components/pages/BlockList.d.ts.map +1 -0
- package/dist/components/pages/BlockList.js +280 -0
- package/dist/components/pages/DataList.d.ts +7 -0
- package/dist/components/pages/DataList.d.ts.map +1 -0
- package/dist/components/pages/DataList.js +244 -0
- package/dist/components/pages/MediaPage.d.ts +8 -0
- package/dist/components/pages/MediaPage.d.ts.map +1 -0
- package/dist/components/pages/MediaPage.js +107 -0
- package/dist/components/pages/PageList.d.ts +7 -0
- package/dist/components/pages/PageList.d.ts.map +1 -0
- package/dist/components/pages/PageList.js +308 -0
- package/dist/components/pages/index.d.ts +3 -0
- package/dist/components/pages/index.d.ts.map +1 -0
- package/dist/components/pages/index.js +2 -0
- package/dist/components/puck/MDXContent.d.ts +10 -0
- package/dist/components/puck/MDXContent.d.ts.map +1 -0
- package/dist/components/puck/MDXContent.js +80 -0
- package/dist/components/puck/index.d.ts +2 -0
- package/dist/components/puck/index.d.ts.map +1 -0
- package/dist/components/puck/index.js +1 -0
- package/dist/components/toast.d.ts +44 -0
- package/dist/components/toast.d.ts.map +1 -0
- package/dist/components/toast.js +7 -0
- package/dist/components/ui/Banner.d.ts +76 -0
- package/dist/components/ui/Banner.d.ts.map +1 -0
- package/dist/components/ui/Banner.js +49 -0
- package/dist/components/ui/Button.d.ts +25 -0
- package/dist/components/ui/Button.d.ts.map +1 -0
- package/dist/components/ui/Button.js +33 -0
- package/dist/components/ui/Card.d.ts +72 -0
- package/dist/components/ui/Card.d.ts.map +1 -0
- package/dist/components/ui/Card.js +49 -0
- package/dist/components/ui/FieldError.d.ts +24 -0
- package/dist/components/ui/FieldError.d.ts.map +1 -0
- package/dist/components/ui/FieldError.js +17 -0
- package/dist/components/ui/IconButton.d.ts +13 -0
- package/dist/components/ui/IconButton.d.ts.map +1 -0
- package/dist/components/ui/IconButton.js +10 -0
- package/dist/components/ui/Input.d.ts +37 -0
- package/dist/components/ui/Input.d.ts.map +1 -0
- package/dist/components/ui/Input.js +9 -0
- package/dist/components/ui/SaveIndicator.d.ts +8 -0
- package/dist/components/ui/SaveIndicator.d.ts.map +1 -0
- package/dist/components/ui/SaveIndicator.js +32 -0
- package/dist/components/ui/Select.d.ts +8 -0
- package/dist/components/ui/Select.d.ts.map +1 -0
- package/dist/components/ui/Select.js +9 -0
- package/dist/components/ui/Separator.d.ts +7 -0
- package/dist/components/ui/Separator.d.ts.map +1 -0
- package/dist/components/ui/Separator.js +8 -0
- package/dist/components/ui/Textarea.d.ts +8 -0
- package/dist/components/ui/Textarea.d.ts.map +1 -0
- package/dist/components/ui/Textarea.js +5 -0
- package/dist/components/ui/Tooltip.d.ts +9 -0
- package/dist/components/ui/Tooltip.d.ts.map +1 -0
- package/dist/components/ui/Tooltip.js +7 -0
- package/dist/components/ui/index.d.ts +14 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/components/ui/index.js +17 -0
- package/dist/data-schemas.d.mts +0 -1
- package/dist/data-schemas.d.mts.map +1 -1
- package/dist/data-schemas.d.ts +22 -0
- package/dist/data-schemas.d.ts.map +1 -0
- package/dist/data-schemas.js +51 -0
- package/dist/data-schemas.mjs +3 -4
- package/dist/data-schemas.mjs.map +1 -1
- package/dist/dev-entry.d.ts +2 -0
- package/dist/dev-entry.d.ts.map +1 -0
- package/dist/dev-entry.js +19 -0
- package/dist/dialog.d.mts +56 -0
- package/dist/dialog.d.mts.map +1 -0
- package/dist/dialog.mjs +67 -0
- package/dist/dialog.mjs.map +1 -0
- package/dist/hooks/index.d.ts +10 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +7 -0
- package/dist/hooks/useCanvasTheme.d.ts +12 -0
- package/dist/hooks/useCanvasTheme.d.ts.map +1 -0
- package/dist/hooks/useCanvasTheme.js +33 -0
- package/dist/hooks/useClickOutside.d.ts +7 -0
- package/dist/hooks/useClickOutside.d.ts.map +1 -0
- package/dist/hooks/useClickOutside.js +18 -0
- package/dist/hooks/useDialogState.d.ts +23 -0
- package/dist/hooks/useDialogState.d.ts.map +1 -0
- package/dist/hooks/useDialogState.js +31 -0
- package/dist/hooks/useEditorPref.d.ts +2 -0
- package/dist/hooks/useEditorPref.d.ts.map +1 -0
- package/dist/hooks/useEditorPref.js +49 -0
- package/dist/hooks/useErrorModal.d.ts +15 -0
- package/dist/hooks/useErrorModal.d.ts.map +1 -0
- package/dist/hooks/useErrorModal.js +35 -0
- package/dist/hooks/useSiteBaseUrl.d.ts +10 -0
- package/dist/hooks/useSiteBaseUrl.d.ts.map +1 -0
- package/dist/hooks/useSiteBaseUrl.js +14 -0
- package/dist/hooks/useTheme.d.ts +13 -0
- package/dist/hooks/useTheme.d.ts.map +1 -0
- package/dist/hooks/useTheme.js +69 -0
- package/dist/hooks/useUnsavedChangesGuard.d.ts +16 -0
- package/dist/hooks/useUnsavedChangesGuard.d.ts.map +1 -0
- package/dist/hooks/useUnsavedChangesGuard.js +29 -0
- package/dist/hooks/useUpload.d.ts +10 -0
- package/dist/hooks/useUpload.d.ts.map +1 -0
- package/dist/hooks/useUpload.js +42 -0
- package/dist/hooks/useUploadFlow.d.ts +42 -0
- package/dist/hooks/useUploadFlow.d.ts.map +1 -0
- package/dist/hooks/useUploadFlow.js +148 -0
- package/dist/host-style-probe.d.ts +22 -0
- package/dist/host-style-probe.d.ts.map +1 -0
- package/dist/host-style-probe.js +508 -0
- package/dist/index.d.mts +165 -48
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.mjs +36 -2
- package/dist/index.mjs.map +1 -0
- package/dist/lib/utils.d.ts +13 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +47 -0
- package/dist/main-spa-781YUplS.mjs +46 -0
- package/dist/main-spa-781YUplS.mjs.map +1 -0
- package/dist/main-spa.d.ts +8 -0
- package/dist/main-spa.d.ts.map +1 -0
- package/dist/main-spa.js +61 -0
- package/dist/main.d.mts +1 -1
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +13 -0
- package/dist/main.mjs +11 -4998
- package/dist/main.mjs.map +1 -1
- package/dist/mdx-components.d.mts +207 -0
- package/dist/mdx-components.d.mts.map +1 -0
- package/dist/mdx-components.d.ts +204 -0
- package/dist/mdx-components.d.ts.map +1 -0
- package/dist/mdx-components.js +217 -0
- package/dist/mdx-components.mjs +208 -0
- package/dist/mdx-components.mjs.map +1 -0
- package/dist/media/AssetScopePill.d.ts +30 -0
- package/dist/media/AssetScopePill.d.ts.map +1 -0
- package/dist/media/AssetScopePill.js +30 -0
- package/dist/media/MediaIssueBadge.d.ts +33 -0
- package/dist/media/MediaIssueBadge.d.ts.map +1 -0
- package/dist/media/MediaIssueBadge.js +54 -0
- package/dist/media/types.d.ts +101 -0
- package/dist/media/types.d.ts.map +1 -0
- package/dist/media/types.js +1 -0
- package/dist/media/use-asset-scope.d.ts +25 -0
- package/dist/media/use-asset-scope.d.ts.map +1 -0
- package/dist/media/use-asset-scope.js +54 -0
- package/dist/media/use-media-issue.d.ts +24 -0
- package/dist/media/use-media-issue.d.ts.map +1 -0
- package/dist/media/use-media-issue.js +49 -0
- package/dist/mock-puck-config.d.mts +23 -0
- package/dist/mock-puck-config.d.mts.map +1 -0
- package/dist/mock-puck-config.d.ts +21 -0
- package/dist/mock-puck-config.d.ts.map +1 -0
- package/dist/mock-puck-config.js +73 -0
- package/dist/mock-puck-config.mjs +125 -0
- package/dist/mock-puck-config.mjs.map +1 -0
- package/dist/page-schemas.d.mts +139 -6
- package/dist/page-schemas.d.mts.map +1 -1
- package/dist/page-schemas.d.ts +156 -0
- package/dist/page-schemas.d.ts.map +1 -0
- package/dist/page-schemas.js +118 -0
- package/dist/page-schemas.mjs +74 -6
- package/dist/page-schemas.mjs.map +1 -1
- package/dist/puck-config.d.mts +9 -1
- package/dist/puck-config.d.mts.map +1 -1
- package/dist/puck-config.d.ts +31 -0
- package/dist/puck-config.d.ts.map +1 -0
- package/dist/puck-config.js +50 -0
- package/dist/puck-config.mjs +3 -4
- package/dist/puck-config.mjs.map +1 -1
- package/dist/selected-block.d.ts +61 -0
- package/dist/selected-block.d.ts.map +1 -0
- package/dist/selected-block.js +64 -0
- package/dist/site-styles.d.mts +123 -0
- package/dist/site-styles.d.mts.map +1 -0
- package/dist/site-styles.d.ts +121 -0
- package/dist/site-styles.d.ts.map +1 -0
- package/dist/site-styles.js +253 -0
- package/dist/site-styles.mjs +234 -0
- package/dist/site-styles.mjs.map +1 -0
- package/dist/spa/main.css +5497 -4371
- package/dist/toast.d.mts +7 -0
- package/dist/toast.d.mts.map +1 -0
- package/dist/toast.mjs +16 -0
- package/dist/toast.mjs.map +1 -0
- package/dist/types.d.ts +57 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +1 -0
- package/dist/ui-CIacC6Mv.mjs +318 -0
- package/dist/ui-CIacC6Mv.mjs.map +1 -0
- package/dist/ui-config.d.ts +70 -0
- package/dist/ui-config.d.ts.map +1 -0
- package/dist/ui-config.js +44 -0
- package/dist/ui.d.mts +290 -0
- package/dist/ui.d.mts.map +1 -0
- package/dist/ui.mjs +2 -0
- package/dist/utils/asset-url.d.ts +3 -0
- package/dist/utils/asset-url.d.ts.map +1 -0
- package/dist/utils/asset-url.js +7 -0
- package/dist/utils/cn.d.ts +3 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/cn.js +5 -0
- package/dist/utils/format-date.d.ts +15 -0
- package/dist/utils/format-date.d.ts.map +1 -0
- package/dist/utils/format-date.js +37 -0
- package/dist/utils/mdast-to-html.d.ts +55 -0
- package/dist/utils/mdast-to-html.d.ts.map +1 -0
- package/dist/utils/mdast-to-html.js +206 -0
- package/dist/utils/mdast-tree.d.ts +104 -0
- package/dist/utils/mdast-tree.d.ts.map +1 -0
- package/dist/utils/mdast-tree.js +285 -0
- package/dist/utils/pageMetadata.d.ts +67 -0
- package/dist/utils/pageMetadata.d.ts.map +1 -0
- package/dist/utils/pageMetadata.js +161 -0
- package/dist/utils/slugify.d.ts +12 -0
- package/dist/utils/slugify.d.ts.map +1 -0
- package/dist/utils/slugify.js +17 -0
- package/dist/utils/zodIntrospect.d.ts +24 -0
- package/dist/utils/zodIntrospect.d.ts.map +1 -0
- package/dist/utils/zodIntrospect.js +88 -0
- package/package.json +153 -35
- package/styles/styles.css.d.ts +2 -0
- package/styles/tailwind-theme.css +126 -0
- package/styles/tailwind-theme.css.d.ts +2 -0
- package/dist/puck-CvjeYQRH.mjs +0 -1533
- package/dist/puck-CvjeYQRH.mjs.map +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
export interface FieldInfo {
|
|
3
|
+
type: 'string' | 'number' | 'boolean' | 'date' | 'array' | 'enum';
|
|
4
|
+
format?: 'url' | 'email' | 'date-time';
|
|
5
|
+
description?: string;
|
|
6
|
+
isOptional: boolean;
|
|
7
|
+
isNullable: boolean;
|
|
8
|
+
/** For enum types, the list of allowed values */
|
|
9
|
+
enumValues?: string[];
|
|
10
|
+
/** For string types, the max length constraint if defined */
|
|
11
|
+
maxLength?: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Introspects a Zod field to extract type and validation information.
|
|
15
|
+
* Note: Uses Zod's internal `._def` structure which is stable but not public API.
|
|
16
|
+
* Supports both Zod 3.x (typeName) and Zod 4.x/mini (type) structures.
|
|
17
|
+
*/
|
|
18
|
+
export declare function getZodFieldInfo(field: z.ZodTypeAny): FieldInfo;
|
|
19
|
+
/**
|
|
20
|
+
* Extracts field information from a Zod object schema.
|
|
21
|
+
* Returns a record mapping field names to their FieldInfo.
|
|
22
|
+
*/
|
|
23
|
+
export declare function getZodShape(schema: z.ZodObject<z.ZodRawShape>): Record<string, FieldInfo>;
|
|
24
|
+
//# sourceMappingURL=zodIntrospect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zodIntrospect.d.ts","sourceRoot":"","sources":["../../src/utils/zodIntrospect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAClE,MAAM,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,WAAW,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAaD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,CAAC,CAAC,UAAU,GAAG,SAAS,CAkE9D;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CASzF"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gets the Zod type name from _def, supporting both old (typeName) and new (type) API.
|
|
3
|
+
*/
|
|
4
|
+
function getZodTypeName(def) {
|
|
5
|
+
// Zod 3.x uses typeName, Zod 4.x/mini uses type
|
|
6
|
+
return def.typeName || def.type || '';
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Introspects a Zod field to extract type and validation information.
|
|
10
|
+
* Note: Uses Zod's internal `._def` structure which is stable but not public API.
|
|
11
|
+
* Supports both Zod 3.x (typeName) and Zod 4.x/mini (type) structures.
|
|
12
|
+
*/
|
|
13
|
+
export function getZodFieldInfo(field) {
|
|
14
|
+
let current = field;
|
|
15
|
+
let isOptional = false;
|
|
16
|
+
let isNullable = false;
|
|
17
|
+
let description;
|
|
18
|
+
// Unwrap optional/nullable/default wrappers to get to the inner type
|
|
19
|
+
while (current._def) {
|
|
20
|
+
const typeName = getZodTypeName(current._def);
|
|
21
|
+
if (typeName === 'ZodOptional' || typeName === 'optional') {
|
|
22
|
+
isOptional = true;
|
|
23
|
+
current = current._def.innerType;
|
|
24
|
+
}
|
|
25
|
+
else if (typeName === 'ZodNullable' || typeName === 'nullable') {
|
|
26
|
+
isNullable = true;
|
|
27
|
+
current = current._def.innerType;
|
|
28
|
+
}
|
|
29
|
+
else if (typeName === 'ZodDefault' || typeName === 'default') {
|
|
30
|
+
current = current._def.innerType;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
description = current._def.description;
|
|
37
|
+
const typeName = getZodTypeName(current._def);
|
|
38
|
+
// Detect type and format based on Zod type
|
|
39
|
+
if (typeName === 'ZodEnum' || typeName === 'enum') {
|
|
40
|
+
const enumValues = current._def.values || current.options || [];
|
|
41
|
+
return { type: 'enum', enumValues, description, isOptional, isNullable };
|
|
42
|
+
}
|
|
43
|
+
if (typeName === 'ZodNativeEnum' || typeName === 'nativeEnum') {
|
|
44
|
+
const nativeEnum = current._def.values;
|
|
45
|
+
const enumValues = Object.values(nativeEnum).filter((v) => typeof v === 'string');
|
|
46
|
+
return { type: 'enum', enumValues, description, isOptional, isNullable };
|
|
47
|
+
}
|
|
48
|
+
if (typeName === 'ZodDate' || typeName === 'date') {
|
|
49
|
+
return { type: 'date', format: 'date-time', description, isOptional, isNullable };
|
|
50
|
+
}
|
|
51
|
+
if (typeName === 'ZodBoolean' || typeName === 'boolean') {
|
|
52
|
+
return { type: 'boolean', description, isOptional, isNullable };
|
|
53
|
+
}
|
|
54
|
+
if (typeName === 'ZodNumber' || typeName === 'number') {
|
|
55
|
+
return { type: 'number', description, isOptional, isNullable };
|
|
56
|
+
}
|
|
57
|
+
if (typeName === 'ZodArray' || typeName === 'array') {
|
|
58
|
+
return { type: 'array', description, isOptional, isNullable };
|
|
59
|
+
}
|
|
60
|
+
if (typeName === 'ZodString' || typeName === 'string') {
|
|
61
|
+
const checks = current._def.checks || [];
|
|
62
|
+
for (const check of checks) {
|
|
63
|
+
if (check.kind === 'url') {
|
|
64
|
+
return { type: 'string', format: 'url', description, isOptional, isNullable };
|
|
65
|
+
}
|
|
66
|
+
if (check.kind === 'email') {
|
|
67
|
+
return { type: 'string', format: 'email', description, isOptional, isNullable };
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
const maxCheck = checks.find((c) => c.kind === 'max');
|
|
71
|
+
const maxLength = maxCheck?.value;
|
|
72
|
+
return { type: 'string', description, isOptional, isNullable, maxLength };
|
|
73
|
+
}
|
|
74
|
+
// Default fallback for unknown types
|
|
75
|
+
return { type: 'string', description, isOptional, isNullable };
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Extracts field information from a Zod object schema.
|
|
79
|
+
* Returns a record mapping field names to their FieldInfo.
|
|
80
|
+
*/
|
|
81
|
+
export function getZodShape(schema) {
|
|
82
|
+
const shape = schema.shape;
|
|
83
|
+
const result = {};
|
|
84
|
+
for (const [key, field] of Object.entries(shape)) {
|
|
85
|
+
result[key] = getZodFieldInfo(field);
|
|
86
|
+
}
|
|
87
|
+
return result;
|
|
88
|
+
}
|
package/package.json
CHANGED
|
@@ -1,110 +1,228 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conloca/cms-spa",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/conloca/conloca.git",
|
|
10
|
-
"directory": "cms-spa"
|
|
10
|
+
"directory": "packages/cms-spa"
|
|
11
11
|
},
|
|
12
12
|
"type": "module",
|
|
13
13
|
"main": "./dist/index.mjs",
|
|
14
14
|
"module": "./dist/index.mjs",
|
|
15
|
-
"types": "./dist/index.d.
|
|
15
|
+
"types": "./dist/index.d.mts",
|
|
16
16
|
"exports": {
|
|
17
17
|
"./package.json": "./package.json",
|
|
18
18
|
".": {
|
|
19
|
-
"types": "./dist/index.d.
|
|
19
|
+
"types": "./dist/index.d.mts",
|
|
20
20
|
"import": "./dist/index.mjs",
|
|
21
21
|
"default": "./dist/index.mjs"
|
|
22
22
|
},
|
|
23
23
|
"./data-schemas": {
|
|
24
|
-
"types": "./dist/data-schemas.d.
|
|
24
|
+
"types": "./dist/data-schemas.d.mts",
|
|
25
25
|
"import": "./dist/data-schemas.mjs",
|
|
26
26
|
"default": "./dist/data-schemas.mjs"
|
|
27
27
|
},
|
|
28
|
+
"./mdx-components": {
|
|
29
|
+
"types": "./dist/mdx-components.d.mts",
|
|
30
|
+
"import": "./dist/mdx-components.mjs",
|
|
31
|
+
"default": "./dist/mdx-components.mjs"
|
|
32
|
+
},
|
|
28
33
|
"./page-schemas": {
|
|
29
|
-
"types": "./dist/page-schemas.d.
|
|
34
|
+
"types": "./dist/page-schemas.d.mts",
|
|
30
35
|
"import": "./dist/page-schemas.mjs",
|
|
31
36
|
"default": "./dist/page-schemas.mjs"
|
|
32
37
|
},
|
|
33
38
|
"./puck-config": {
|
|
34
|
-
"types": "./dist/puck-config.d.
|
|
39
|
+
"types": "./dist/puck-config.d.mts",
|
|
35
40
|
"import": "./dist/puck-config.mjs",
|
|
36
41
|
"default": "./dist/puck-config.mjs"
|
|
37
42
|
},
|
|
43
|
+
"./site-styles": {
|
|
44
|
+
"types": "./dist/site-styles.d.mts",
|
|
45
|
+
"import": "./dist/site-styles.mjs",
|
|
46
|
+
"default": "./dist/site-styles.mjs"
|
|
47
|
+
},
|
|
48
|
+
"./mock-puck-config": {
|
|
49
|
+
"types": "./dist/mock-puck-config.d.ts",
|
|
50
|
+
"import": "./dist/mock-puck-config.mjs",
|
|
51
|
+
"default": "./dist/mock-puck-config.mjs"
|
|
52
|
+
},
|
|
53
|
+
"./ui": {
|
|
54
|
+
"types": "./dist/ui.d.mts",
|
|
55
|
+
"import": "./dist/ui.mjs",
|
|
56
|
+
"default": "./dist/ui.mjs"
|
|
57
|
+
},
|
|
58
|
+
"./dialog": {
|
|
59
|
+
"types": "./dist/dialog.d.mts",
|
|
60
|
+
"import": "./dist/dialog.mjs",
|
|
61
|
+
"default": "./dist/dialog.mjs"
|
|
62
|
+
},
|
|
63
|
+
"./toast": {
|
|
64
|
+
"types": "./dist/toast.d.mts",
|
|
65
|
+
"import": "./dist/toast.mjs",
|
|
66
|
+
"default": "./dist/toast.mjs"
|
|
67
|
+
},
|
|
38
68
|
"./main": {
|
|
39
69
|
"import": "./dist/main.mjs",
|
|
40
70
|
"default": "./dist/main.mjs"
|
|
41
71
|
},
|
|
72
|
+
"./tailwind-theme.css": {
|
|
73
|
+
"types": "./styles/tailwind-theme.css.d.ts",
|
|
74
|
+
"default": "./styles/tailwind-theme.css"
|
|
75
|
+
},
|
|
76
|
+
"./styles.css": {
|
|
77
|
+
"types": "./styles/styles.css.d.ts",
|
|
78
|
+
"default": "./dist/spa/main.css"
|
|
79
|
+
},
|
|
42
80
|
"./dist/spa/*": "./dist/spa/*"
|
|
43
81
|
},
|
|
44
82
|
"files": [
|
|
45
83
|
"dist",
|
|
84
|
+
"styles",
|
|
46
85
|
"!**/*.tsbuildinfo"
|
|
47
86
|
],
|
|
48
87
|
"scripts": {
|
|
49
|
-
"build": "bun build-spa.ts",
|
|
50
88
|
"build:dev": "NODE_ENV=development bun build-spa.ts",
|
|
51
|
-
"dev": "
|
|
52
|
-
"test": "
|
|
53
|
-
"test:watch": "bun test --watch"
|
|
89
|
+
"dev": "nx run cms-spa:dev --outputStyle=stream",
|
|
90
|
+
"test": "nx run cms-spa:test --outputStyle=stream"
|
|
54
91
|
},
|
|
55
92
|
"dependencies": {
|
|
56
|
-
"@conloca/content-api-client": "
|
|
57
|
-
"@conloca/mdx": "
|
|
58
|
-
"@
|
|
59
|
-
"@
|
|
93
|
+
"@conloca/content-api-client": "0.1.16",
|
|
94
|
+
"@conloca/mdx": "0.1.16",
|
|
95
|
+
"@lexical/react": "^0.35.0",
|
|
96
|
+
"@mdxeditor/editor": "^3.55.0",
|
|
97
|
+
"@puckeditor/core": "^0.21.2",
|
|
60
98
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
61
99
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
62
100
|
"@radix-ui/react-select": "^2.2.6",
|
|
63
|
-
"@tanstack/react-query": "^5.
|
|
64
|
-
"@tanstack/react-query-devtools": "^5.
|
|
101
|
+
"@tanstack/react-query": "^5.100.6",
|
|
102
|
+
"@tanstack/react-query-devtools": "^5.100.6",
|
|
103
|
+
"@types/mdast": "^4.0.4",
|
|
65
104
|
"clsx": "^2.1.1",
|
|
105
|
+
"lexical": "^0.35.0",
|
|
66
106
|
"lucide-react": "^0.564.0",
|
|
67
|
-
"
|
|
68
|
-
"
|
|
107
|
+
"mdast-util-from-markdown": "^2.0.0",
|
|
108
|
+
"mdast-util-mdx-jsx": "^3.0.0",
|
|
109
|
+
"react-router-dom": "^7.14.2",
|
|
110
|
+
"sonner": "^2.0.7",
|
|
111
|
+
"tailwind-merge": "^3.5.0",
|
|
69
112
|
"tslib": "^2.8.1",
|
|
70
|
-
"zod": "^4.
|
|
113
|
+
"zod": "^4.4.1"
|
|
71
114
|
},
|
|
72
115
|
"peerDependencies": {
|
|
73
|
-
"react": "^19.
|
|
74
|
-
"react-dom": "^19.
|
|
116
|
+
"react": "^19.2.5",
|
|
117
|
+
"react-dom": "^19.2.5"
|
|
75
118
|
},
|
|
76
119
|
"devDependencies": {
|
|
77
|
-
"@happy-dom/global-registrator": "
|
|
78
|
-
"
|
|
79
|
-
"@
|
|
120
|
+
"@happy-dom/global-registrator": "20.6.1",
|
|
121
|
+
"@storybook/addon-vitest": "^10.5.0",
|
|
122
|
+
"@storybook/react-vite": "^10.5.0",
|
|
123
|
+
"@tailwindcss/cli": "4.2.4",
|
|
80
124
|
"@tailwindcss/typography": "^0.5.19",
|
|
81
125
|
"@testing-library/jest-dom": "^6.9.1",
|
|
82
126
|
"@testing-library/react": "^16.3.2",
|
|
127
|
+
"@vitejs/plugin-react": "^5.2.0",
|
|
128
|
+
"@vitest/browser-playwright": "^4.1.7",
|
|
83
129
|
"bun-tailwindcss": "^0.0.9",
|
|
130
|
+
"hono": "^4.12.23",
|
|
131
|
+
"playwright": "^1.61.1",
|
|
84
132
|
"react": "19.2.4",
|
|
85
133
|
"react-dom": "19.2.4",
|
|
86
|
-
"react-refresh-typescript": "^2.0.
|
|
134
|
+
"react-refresh-typescript": "^2.0.12",
|
|
135
|
+
"storybook": "^10.5.0",
|
|
87
136
|
"tailwindcss": "^4.1.16",
|
|
88
|
-
"typescript": "^
|
|
137
|
+
"typescript": "^6.0.3",
|
|
138
|
+
"vitest": "^4.1.7"
|
|
89
139
|
},
|
|
90
140
|
"nx": {
|
|
91
141
|
"targets": {
|
|
92
|
-
"
|
|
142
|
+
"clean": {},
|
|
143
|
+
"dev": {
|
|
144
|
+
"executor": "nx:run-commands",
|
|
145
|
+
"dependsOn": [
|
|
146
|
+
"^build"
|
|
147
|
+
],
|
|
148
|
+
"continuous": true,
|
|
149
|
+
"options": {
|
|
150
|
+
"command": "bun --bun --hot dev-server.tsx",
|
|
151
|
+
"cwd": "{projectRoot}"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"lint": {},
|
|
155
|
+
"tsdown-js": {
|
|
156
|
+
"executor": "nx:run-commands",
|
|
157
|
+
"cache": true,
|
|
93
158
|
"dependsOn": [
|
|
94
159
|
"^build"
|
|
95
|
-
]
|
|
160
|
+
],
|
|
161
|
+
"inputs": [
|
|
162
|
+
"{projectRoot}/src/**/*",
|
|
163
|
+
"{projectRoot}/tsdown.config.ts",
|
|
164
|
+
"{projectRoot}/tsconfig.lib.json",
|
|
165
|
+
"{projectRoot}/package.json"
|
|
166
|
+
],
|
|
167
|
+
"outputs": [
|
|
168
|
+
"{projectRoot}/dist/**/*.mjs",
|
|
169
|
+
"{projectRoot}/dist/**/*.d.mts"
|
|
170
|
+
],
|
|
171
|
+
"options": {
|
|
172
|
+
"command": "tsdown",
|
|
173
|
+
"cwd": "{projectRoot}"
|
|
174
|
+
}
|
|
96
175
|
},
|
|
97
|
-
"
|
|
176
|
+
"bun-web": {
|
|
177
|
+
"executor": "nx:run-commands",
|
|
178
|
+
"cache": true,
|
|
98
179
|
"dependsOn": [
|
|
99
180
|
"^build"
|
|
100
|
-
]
|
|
181
|
+
],
|
|
182
|
+
"inputs": [
|
|
183
|
+
"{projectRoot}/src/**/*",
|
|
184
|
+
"{projectRoot}/build-spa.ts",
|
|
185
|
+
"{projectRoot}/tailwind-config.ts",
|
|
186
|
+
"{projectRoot}/package.json"
|
|
187
|
+
],
|
|
188
|
+
"outputs": [
|
|
189
|
+
"{projectRoot}/dist/spa/**"
|
|
190
|
+
],
|
|
191
|
+
"options": {
|
|
192
|
+
"command": "bun build-spa.ts",
|
|
193
|
+
"cwd": "{projectRoot}"
|
|
194
|
+
}
|
|
101
195
|
},
|
|
102
|
-
"
|
|
196
|
+
"test": {
|
|
197
|
+
"executor": "@smoothbricks/nx-plugin:bounded-exec",
|
|
103
198
|
"dependsOn": [
|
|
199
|
+
"typecheck-tests",
|
|
104
200
|
"^build"
|
|
105
201
|
],
|
|
106
|
-
"
|
|
202
|
+
"options": {
|
|
203
|
+
"command": "bun --conditions=production test",
|
|
204
|
+
"cwd": "{projectRoot}",
|
|
205
|
+
"timeoutMs": 120000,
|
|
206
|
+
"killAfterMs": 1e4
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"test-storybook": {
|
|
210
|
+
"executor": "@smoothbricks/nx-plugin:bounded-exec",
|
|
211
|
+
"dependsOn": [
|
|
212
|
+
"^build"
|
|
213
|
+
],
|
|
214
|
+
"options": {
|
|
215
|
+
"command": "vitest run --config .storybook/vitest.config.ts",
|
|
216
|
+
"cwd": "{projectRoot}",
|
|
217
|
+
"timeoutMs": 300000,
|
|
218
|
+
"killAfterMs": 1e4
|
|
219
|
+
}
|
|
107
220
|
}
|
|
108
|
-
}
|
|
109
|
-
|
|
221
|
+
},
|
|
222
|
+
"tags": [
|
|
223
|
+
"npm:public"
|
|
224
|
+
],
|
|
225
|
+
"name": "cms-spa"
|
|
226
|
+
},
|
|
227
|
+
"license": "FSL-1.1-ALv2"
|
|
110
228
|
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
/* Puck's azure colors */
|
|
3
|
+
--color-azure-01: #00175d;
|
|
4
|
+
--color-azure-02: #002c77;
|
|
5
|
+
--color-azure-03: #014292;
|
|
6
|
+
--color-azure-04: #0158ad;
|
|
7
|
+
--color-azure-05: #3479be;
|
|
8
|
+
--color-azure-06: #6499cf;
|
|
9
|
+
--color-azure-07: #88b0da;
|
|
10
|
+
--color-azure-08: #abc7e5;
|
|
11
|
+
--color-azure-09: #cfdff0;
|
|
12
|
+
--color-azure-10: #e7eef7;
|
|
13
|
+
--color-azure-11: #f3f6fb;
|
|
14
|
+
--color-azure-12: #f7faff;
|
|
15
|
+
|
|
16
|
+
/* Puck's grey colors */
|
|
17
|
+
--color-grey-01: #181818;
|
|
18
|
+
--color-grey-02: #292929;
|
|
19
|
+
--color-grey-03: #404040;
|
|
20
|
+
--color-grey-04: #5a5a5a;
|
|
21
|
+
--color-grey-05: #767676;
|
|
22
|
+
--color-grey-06: #949494;
|
|
23
|
+
--color-grey-07: #ababab;
|
|
24
|
+
--color-grey-08: #c3c3c3;
|
|
25
|
+
--color-grey-09: #dcdcdc;
|
|
26
|
+
--color-grey-10: #efefef;
|
|
27
|
+
--color-grey-11: #f5f5f5;
|
|
28
|
+
--color-grey-12: #fafafa;
|
|
29
|
+
|
|
30
|
+
/* Also add other Puck colors for consistency */
|
|
31
|
+
--color-green-01: #002000;
|
|
32
|
+
--color-green-02: #043604;
|
|
33
|
+
--color-green-03: #084e08;
|
|
34
|
+
--color-green-04: #0c680c;
|
|
35
|
+
--color-green-05: #1d882f;
|
|
36
|
+
--color-green-06: #2faa53;
|
|
37
|
+
--color-green-07: #56c16f;
|
|
38
|
+
--color-green-08: #7dd78b;
|
|
39
|
+
--color-green-09: #b8e8bf;
|
|
40
|
+
--color-green-10: #ddf3e0;
|
|
41
|
+
--color-green-11: #eff8f0;
|
|
42
|
+
--color-green-12: #f3fcf4;
|
|
43
|
+
|
|
44
|
+
--color-red-01: #4c0000;
|
|
45
|
+
--color-red-02: #6a0a10;
|
|
46
|
+
--color-red-03: #8a1422;
|
|
47
|
+
--color-red-04: #ac1f35;
|
|
48
|
+
--color-red-05: #bf5366;
|
|
49
|
+
--color-red-06: #ce7e8e;
|
|
50
|
+
--color-red-07: #d99ca8;
|
|
51
|
+
--color-red-08: #e4b9c2;
|
|
52
|
+
--color-red-09: #efd7db;
|
|
53
|
+
--color-red-10: #f6eaec;
|
|
54
|
+
--color-red-11: #faf4f5;
|
|
55
|
+
--color-red-12: #fff9fa;
|
|
56
|
+
|
|
57
|
+
--color-yellow-01: #211000;
|
|
58
|
+
--color-yellow-02: #362700;
|
|
59
|
+
--color-yellow-03: #4c4000;
|
|
60
|
+
--color-yellow-04: #645a00;
|
|
61
|
+
--color-yellow-05: #877614;
|
|
62
|
+
--color-yellow-06: #ab9429;
|
|
63
|
+
--color-yellow-07: #bfac4e;
|
|
64
|
+
--color-yellow-08: #d4c474;
|
|
65
|
+
--color-yellow-09: #e6deb1;
|
|
66
|
+
--color-yellow-10: #f3efd9;
|
|
67
|
+
--color-yellow-11: #f9f7ed;
|
|
68
|
+
--color-yellow-12: #fcfaf0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Semantic surface tokens — flip in the .dark override below.
|
|
72
|
+
* These are the only colors components should reach for when building
|
|
73
|
+
* dialogs, panels, inputs, borders, and hover states. Raw grey-* palette
|
|
74
|
+
* usage in new components creates dark-mode contrast bugs. */
|
|
75
|
+
:root {
|
|
76
|
+
--color-overlay: #ffffff; /* dialog/modal surface */
|
|
77
|
+
--color-panel: #ffffff; /* input bg, outline-button bg, side panels */
|
|
78
|
+
--color-subtle: #f5f5f5; /* recessed footer wash, info callouts */
|
|
79
|
+
--color-line: #dcdcdc; /* borders and dividers */
|
|
80
|
+
--color-hover: #f5f5f5; /* hover bg for ghost buttons, menu items */
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.dark {
|
|
84
|
+
--color-overlay: var(--color-grey-03); /* #404040 */
|
|
85
|
+
--color-panel: var(--color-grey-02); /* #292929 */
|
|
86
|
+
--color-subtle: var(--color-grey-02); /* #292929 */
|
|
87
|
+
--color-line: var(--color-grey-04); /* #5a5a5a */
|
|
88
|
+
--color-hover: var(--color-grey-04); /* #5a5a5a */
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* Semantic utilities — defined explicitly so they're guaranteed in the
|
|
92
|
+
* generated CSS regardless of JIT scan state. Light/dark flip via the
|
|
93
|
+
* :root vs .dark override of the tokens above. */
|
|
94
|
+
@utility bg-overlay {
|
|
95
|
+
background-color: var(--color-overlay);
|
|
96
|
+
}
|
|
97
|
+
@utility bg-panel {
|
|
98
|
+
background-color: var(--color-panel);
|
|
99
|
+
}
|
|
100
|
+
@utility bg-subtle {
|
|
101
|
+
background-color: var(--color-subtle);
|
|
102
|
+
}
|
|
103
|
+
@utility bg-hover {
|
|
104
|
+
background-color: var(--color-hover);
|
|
105
|
+
}
|
|
106
|
+
@utility border-line {
|
|
107
|
+
border-color: var(--color-line);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* Dark mode: selector strategy for manual toggle + system preference.
|
|
111
|
+
* Uses :is() (not :where()) so dark variants beat the conloca.com
|
|
112
|
+
* website Tailwind that gets injected into /__cms — its plain .bg-white
|
|
113
|
+
* etc. has spec (0,1,0) and would override a :where()-wrapped variant. */
|
|
114
|
+
@variant dark
|
|
115
|
+
(
|
|
116
|
+
&:is(.dark, .dark *));
|
|
117
|
+
|
|
118
|
+
/* Public UI primitive surface. Consumers that import this theme contract
|
|
119
|
+
* get cms-spa's exported UI primitive utility classes generated
|
|
120
|
+
* automatically. Keep these globs tight: cms-spa src has far more than
|
|
121
|
+
* primitives, and scanning everything would bloat consumer CSS with
|
|
122
|
+
* classes only used inside the editor proper. Add @source entries here
|
|
123
|
+
* as new primitive surfaces are exported. */
|
|
124
|
+
@source "../src/components/ui/**/*.{ts,tsx}";
|
|
125
|
+
@source "../src/components/dialog.tsx";
|
|
126
|
+
@source "../src/components/toast.tsx";
|