@velocity-astro/cms-admin 0.0.0-stage → 0.1.0-beta.11
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/LICENSE +21 -0
- package/README.md +12 -2
- package/app-directory.d.mts +2 -0
- package/app-directory.mjs +8 -0
- package/app-dist/assets/RichTextEditor-UA2kIIOw.js +135 -0
- package/app-dist/assets/index-DkDHhCG6.css +2 -0
- package/app-dist/assets/index-DovlPZTn.js +80 -0
- package/app-dist/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/app-dist/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/app-dist/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/app-dist/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/app-dist/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/app-dist/assets/manrope-cyrillic-wght-normal-Dvxsihut.woff2 +0 -0
- package/app-dist/assets/manrope-greek-wght-normal-DL7QRZyv.woff2 +0 -0
- package/app-dist/assets/manrope-latin-ext-wght-normal-Ch3YOpNY.woff2 +0 -0
- package/app-dist/assets/manrope-latin-wght-normal-DHIcAJRg.woff2 +0 -0
- package/app-dist/assets/manrope-vietnamese-wght-normal-usUDDRr7.woff2 +0 -0
- package/app-dist/assets/outfit-latin-ext-wght-normal-DdQaqQDo.woff2 +0 -0
- package/app-dist/assets/outfit-latin-wght-normal-Bc-8i84L.woff2 +0 -0
- package/app-dist/index.html +29 -0
- package/dist/app/AdminApp.d.ts +34 -0
- package/dist/app/AdminApp.d.ts.map +1 -0
- package/dist/app/AdminApp.js +29 -0
- package/dist/app/AdminApp.js.map +1 -0
- package/dist/app/AdminLayout.d.ts +7 -0
- package/dist/app/AdminLayout.d.ts.map +1 -0
- package/dist/app/AdminLayout.js +183 -0
- package/dist/app/AdminLayout.js.map +1 -0
- package/dist/app/NavigationBridge.d.ts +6 -0
- package/dist/app/NavigationBridge.d.ts.map +1 -0
- package/dist/app/NavigationBridge.js +15 -0
- package/dist/app/NavigationBridge.js.map +1 -0
- package/dist/app/PasskeysDialog.d.ts +5 -0
- package/dist/app/PasskeysDialog.d.ts.map +1 -0
- package/dist/app/PasskeysDialog.js +51 -0
- package/dist/app/PasskeysDialog.js.map +1 -0
- package/dist/app/RequestState.d.ts +20 -0
- package/dist/app/RequestState.d.ts.map +1 -0
- package/dist/app/RequestState.js +37 -0
- package/dist/app/RequestState.js.map +1 -0
- package/dist/app/RouteError.d.ts +9 -0
- package/dist/app/RouteError.d.ts.map +1 -0
- package/dist/app/RouteError.js +16 -0
- package/dist/app/RouteError.js.map +1 -0
- package/dist/app/paths.d.ts +38 -0
- package/dist/app/paths.d.ts.map +1 -0
- package/dist/app/paths.js +37 -0
- package/dist/app/paths.js.map +1 -0
- package/dist/app/routes.d.ts +4 -0
- package/dist/app/routes.d.ts.map +1 -0
- package/dist/app/routes.js +68 -0
- package/dist/app/routes.js.map +1 -0
- package/dist/app/use-go.d.ts +7 -0
- package/dist/app/use-go.d.ts.map +1 -0
- package/dist/app/use-go.js +11 -0
- package/dist/app/use-go.js.map +1 -0
- package/dist/client/admin-client.d.ts +338 -0
- package/dist/client/admin-client.d.ts.map +1 -0
- package/dist/client/admin-client.js +2 -0
- package/dist/client/admin-client.js.map +1 -0
- package/dist/client/client-context.d.ts +10 -0
- package/dist/client/client-context.d.ts.map +1 -0
- package/dist/client/client-context.js +14 -0
- package/dist/client/client-context.js.map +1 -0
- package/dist/client/errors.d.ts +22 -0
- package/dist/client/errors.d.ts.map +1 -0
- package/dist/client/errors.js +17 -0
- package/dist/client/errors.js.map +1 -0
- package/dist/client/http-client.d.ts +133 -0
- package/dist/client/http-client.d.ts.map +1 -0
- package/dist/client/http-client.js +399 -0
- package/dist/client/http-client.js.map +1 -0
- package/dist/client/queries.d.ts +232 -0
- package/dist/client/queries.d.ts.map +1 -0
- package/dist/client/queries.js +780 -0
- package/dist/client/queries.js.map +1 -0
- package/dist/fields/BlocksControl.d.ts +14 -0
- package/dist/fields/BlocksControl.d.ts.map +1 -0
- package/dist/fields/BlocksControl.js +476 -0
- package/dist/fields/BlocksControl.js.map +1 -0
- package/dist/fields/CustomFieldsDialog.d.ts +7 -0
- package/dist/fields/CustomFieldsDialog.d.ts.map +1 -0
- package/dist/fields/CustomFieldsDialog.js +29 -0
- package/dist/fields/CustomFieldsDialog.js.map +1 -0
- package/dist/fields/FieldEditor.d.ts +17 -0
- package/dist/fields/FieldEditor.d.ts.map +1 -0
- package/dist/fields/FieldEditor.js +25 -0
- package/dist/fields/FieldEditor.js.map +1 -0
- package/dist/fields/FieldGrid.d.ts +31 -0
- package/dist/fields/FieldGrid.d.ts.map +1 -0
- package/dist/fields/FieldGrid.js +42 -0
- package/dist/fields/FieldGrid.js.map +1 -0
- package/dist/fields/FieldSetDialog.d.ts +11 -0
- package/dist/fields/FieldSetDialog.d.ts.map +1 -0
- package/dist/fields/FieldSetDialog.js +73 -0
- package/dist/fields/FieldSetDialog.js.map +1 -0
- package/dist/fields/FieldSetEditor.d.ts +9 -0
- package/dist/fields/FieldSetEditor.d.ts.map +1 -0
- package/dist/fields/FieldSetEditor.js +49 -0
- package/dist/fields/FieldSetEditor.js.map +1 -0
- package/dist/fields/FieldSummary.d.ts +9 -0
- package/dist/fields/FieldSummary.d.ts.map +1 -0
- package/dist/fields/FieldSummary.js +28 -0
- package/dist/fields/FieldSummary.js.map +1 -0
- package/dist/fields/LinkControl.d.ts +8 -0
- package/dist/fields/LinkControl.d.ts.map +1 -0
- package/dist/fields/LinkControl.js +54 -0
- package/dist/fields/LinkControl.js.map +1 -0
- package/dist/fields/SiteImagePicker.d.ts +22 -0
- package/dist/fields/SiteImagePicker.d.ts.map +1 -0
- package/dist/fields/SiteImagePicker.js +42 -0
- package/dist/fields/SiteImagePicker.js.map +1 -0
- package/dist/fields/block-icons.d.ts +4 -0
- package/dist/fields/block-icons.d.ts.map +1 -0
- package/dist/fields/block-icons.js +53 -0
- package/dist/fields/block-icons.js.map +1 -0
- package/dist/fields/carry.d.ts +19 -0
- package/dist/fields/carry.d.ts.map +1 -0
- package/dist/fields/carry.js +61 -0
- package/dist/fields/carry.js.map +1 -0
- package/dist/fields/controls.d.ts +4 -0
- package/dist/fields/controls.d.ts.map +1 -0
- package/dist/fields/controls.js +363 -0
- package/dist/fields/controls.js.map +1 -0
- package/dist/fields/custom-values.d.ts +23 -0
- package/dist/fields/custom-values.d.ts.map +1 -0
- package/dist/fields/custom-values.js +30 -0
- package/dist/fields/custom-values.js.map +1 -0
- package/dist/fields/field-control.d.ts +170 -0
- package/dist/fields/field-control.d.ts.map +1 -0
- package/dist/fields/field-control.js +19 -0
- package/dist/fields/field-control.js.map +1 -0
- package/dist/fields/field-set.d.ts +39 -0
- package/dist/fields/field-set.d.ts.map +1 -0
- package/dist/fields/field-set.js +24 -0
- package/dist/fields/field-set.js.map +1 -0
- package/dist/fields/index.d.ts +7 -0
- package/dist/fields/index.d.ts.map +1 -0
- package/dist/fields/index.js +7 -0
- package/dist/fields/index.js.map +1 -0
- package/dist/fields/page-focus.d.ts +82 -0
- package/dist/fields/page-focus.d.ts.map +1 -0
- package/dist/fields/page-focus.js +104 -0
- package/dist/fields/page-focus.js.map +1 -0
- package/dist/fields/settings.d.ts +40 -0
- package/dist/fields/settings.d.ts.map +1 -0
- package/dist/fields/settings.js +99 -0
- package/dist/fields/settings.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/arrangement.d.ts +20 -0
- package/dist/lib/arrangement.d.ts.map +1 -0
- package/dist/lib/arrangement.js +52 -0
- package/dist/lib/arrangement.js.map +1 -0
- package/dist/lib/boot.d.ts +25 -0
- package/dist/lib/boot.d.ts.map +1 -0
- package/dist/lib/boot.js +87 -0
- package/dist/lib/boot.js.map +1 -0
- package/dist/lib/content.d.ts +45 -0
- package/dist/lib/content.d.ts.map +1 -0
- package/dist/lib/content.js +99 -0
- package/dist/lib/content.js.map +1 -0
- package/dist/lib/csv.d.ts +10 -0
- package/dist/lib/csv.d.ts.map +1 -0
- package/dist/lib/csv.js +54 -0
- package/dist/lib/csv.js.map +1 -0
- package/dist/lib/day-part.d.ts +5 -0
- package/dist/lib/day-part.d.ts.map +1 -0
- package/dist/lib/day-part.js +10 -0
- package/dist/lib/day-part.js.map +1 -0
- package/dist/lib/download.d.ts +6 -0
- package/dist/lib/download.d.ts.map +1 -0
- package/dist/lib/download.js +13 -0
- package/dist/lib/download.js.map +1 -0
- package/dist/lib/keys.d.ts +5 -0
- package/dist/lib/keys.d.ts.map +1 -0
- package/dist/lib/keys.js +26 -0
- package/dist/lib/keys.js.map +1 -0
- package/dist/lib/load-fresh.d.ts +8 -0
- package/dist/lib/load-fresh.d.ts.map +1 -0
- package/dist/lib/load-fresh.js +51 -0
- package/dist/lib/load-fresh.js.map +1 -0
- package/dist/lib/open-site.d.ts +6 -0
- package/dist/lib/open-site.d.ts.map +1 -0
- package/dist/lib/open-site.js +8 -0
- package/dist/lib/open-site.js.map +1 -0
- package/dist/lib/prepare-image.d.ts +11 -0
- package/dist/lib/prepare-image.d.ts.map +1 -0
- package/dist/lib/prepare-image.js +50 -0
- package/dist/lib/prepare-image.js.map +1 -0
- package/dist/lib/preview-tab.d.ts +14 -0
- package/dist/lib/preview-tab.d.ts.map +1 -0
- package/dist/lib/preview-tab.js +24 -0
- package/dist/lib/preview-tab.js.map +1 -0
- package/dist/lib/relative-time.d.ts +3 -0
- package/dist/lib/relative-time.d.ts.map +1 -0
- package/dist/lib/relative-time.js +18 -0
- package/dist/lib/relative-time.js.map +1 -0
- package/dist/lib/rich-from-html.d.ts +9 -0
- package/dist/lib/rich-from-html.d.ts.map +1 -0
- package/dist/lib/rich-from-html.js +129 -0
- package/dist/lib/rich-from-html.js.map +1 -0
- package/dist/lib/sittings.d.ts +16 -0
- package/dist/lib/sittings.d.ts.map +1 -0
- package/dist/lib/sittings.js +29 -0
- package/dist/lib/sittings.js.map +1 -0
- package/dist/lib/slug.d.ts +3 -0
- package/dist/lib/slug.d.ts.map +1 -0
- package/dist/lib/slug.js +10 -0
- package/dist/lib/slug.js.map +1 -0
- package/dist/lib/small-image.d.ts +7 -0
- package/dist/lib/small-image.d.ts.map +1 -0
- package/dist/lib/small-image.js +6 -0
- package/dist/lib/small-image.js.map +1 -0
- package/dist/lib/type-icon.d.ts +3 -0
- package/dist/lib/type-icon.d.ts.map +1 -0
- package/dist/lib/type-icon.js +27 -0
- package/dist/lib/type-icon.js.map +1 -0
- package/dist/lib/use-closing.d.ts +19 -0
- package/dist/lib/use-closing.d.ts.map +1 -0
- package/dist/lib/use-closing.js +24 -0
- package/dist/lib/use-closing.js.map +1 -0
- package/dist/lib/use-command-key.d.ts +16 -0
- package/dist/lib/use-command-key.d.ts.map +1 -0
- package/dist/lib/use-command-key.js +30 -0
- package/dist/lib/use-command-key.js.map +1 -0
- package/dist/lib/use-escapes.d.ts +7 -0
- package/dist/lib/use-escapes.d.ts.map +1 -0
- package/dist/lib/use-escapes.js +19 -0
- package/dist/lib/use-escapes.js.map +1 -0
- package/dist/lib/use-history.d.ts +24 -0
- package/dist/lib/use-history.d.ts.map +1 -0
- package/dist/lib/use-history.js +48 -0
- package/dist/lib/use-history.js.map +1 -0
- package/dist/lib/use-leave-guard.d.ts +16 -0
- package/dist/lib/use-leave-guard.d.ts.map +1 -0
- package/dist/lib/use-leave-guard.js +29 -0
- package/dist/lib/use-leave-guard.js.map +1 -0
- package/dist/lib/use-narrow.d.ts +5 -0
- package/dist/lib/use-narrow.d.ts.map +1 -0
- package/dist/lib/use-narrow.js +19 -0
- package/dist/lib/use-narrow.js.map +1 -0
- package/dist/lib/use-panel-sizes.d.ts +7 -0
- package/dist/lib/use-panel-sizes.d.ts.map +1 -0
- package/dist/lib/use-panel-sizes.js +33 -0
- package/dist/lib/use-panel-sizes.js.map +1 -0
- package/dist/lib/use-save-key.d.ts +15 -0
- package/dist/lib/use-save-key.d.ts.map +1 -0
- package/dist/lib/use-save-key.js +27 -0
- package/dist/lib/use-save-key.js.map +1 -0
- package/dist/lib/use-undo-keys.d.ts +14 -0
- package/dist/lib/use-undo-keys.d.ts.map +1 -0
- package/dist/lib/use-undo-keys.js +46 -0
- package/dist/lib/use-undo-keys.js.map +1 -0
- package/dist/messages/en.d.ts +1334 -0
- package/dist/messages/en.d.ts.map +1 -0
- package/dist/messages/en.js +1280 -0
- package/dist/messages/en.js.map +1 -0
- package/dist/messages/messages-context.d.ts +17 -0
- package/dist/messages/messages-context.d.ts.map +1 -0
- package/dist/messages/messages-context.js +16 -0
- package/dist/messages/messages-context.js.map +1 -0
- package/dist/page-bridge/index.d.ts +7 -0
- package/dist/page-bridge/index.d.ts.map +1 -0
- package/dist/page-bridge/index.js +7 -0
- package/dist/page-bridge/index.js.map +1 -0
- package/dist/page-bridge/preview-bridge.d.ts +35 -0
- package/dist/page-bridge/preview-bridge.d.ts.map +1 -0
- package/dist/page-bridge/preview-bridge.js +1821 -0
- package/dist/page-bridge/preview-bridge.js.map +1 -0
- package/dist/plugins/PluginBoundary.d.ts +21 -0
- package/dist/plugins/PluginBoundary.d.ts.map +1 -0
- package/dist/plugins/PluginBoundary.js +20 -0
- package/dist/plugins/PluginBoundary.js.map +1 -0
- package/dist/plugins/plugin-editor.d.ts +114 -0
- package/dist/plugins/plugin-editor.d.ts.map +1 -0
- package/dist/plugins/plugin-editor.js +142 -0
- package/dist/plugins/plugin-editor.js.map +1 -0
- package/dist/plugins/plugin-ui.d.ts +45 -0
- package/dist/plugins/plugin-ui.d.ts.map +1 -0
- package/dist/plugins/plugin-ui.js +44 -0
- package/dist/plugins/plugin-ui.js.map +1 -0
- package/dist/screens/Contact/ContactDeals.d.ts +6 -0
- package/dist/screens/Contact/ContactDeals.d.ts.map +1 -0
- package/dist/screens/Contact/ContactDeals.js +41 -0
- package/dist/screens/Contact/ContactDeals.js.map +1 -0
- package/dist/screens/Contact/ContactScreen.d.ts +3 -0
- package/dist/screens/Contact/ContactScreen.d.ts.map +1 -0
- package/dist/screens/Contact/ContactScreen.js +165 -0
- package/dist/screens/Contact/ContactScreen.js.map +1 -0
- package/dist/screens/Contact/ContactWork.d.ts +6 -0
- package/dist/screens/Contact/ContactWork.d.ts.map +1 -0
- package/dist/screens/Contact/ContactWork.js +50 -0
- package/dist/screens/Contact/ContactWork.js.map +1 -0
- package/dist/screens/Contacts/ContactsScreen.d.ts +3 -0
- package/dist/screens/Contacts/ContactsScreen.d.ts.map +1 -0
- package/dist/screens/Contacts/ContactsScreen.js +133 -0
- package/dist/screens/Contacts/ContactsScreen.js.map +1 -0
- package/dist/screens/Contacts/ImportDialog.d.ts +5 -0
- package/dist/screens/Contacts/ImportDialog.d.ts.map +1 -0
- package/dist/screens/Contacts/ImportDialog.js +90 -0
- package/dist/screens/Contacts/ImportDialog.js.map +1 -0
- package/dist/screens/Contacts/PipelineBoard.d.ts +11 -0
- package/dist/screens/Contacts/PipelineBoard.d.ts.map +1 -0
- package/dist/screens/Contacts/PipelineBoard.js +74 -0
- package/dist/screens/Contacts/PipelineBoard.js.map +1 -0
- package/dist/screens/Contacts/StagesDialog.d.ts +8 -0
- package/dist/screens/Contacts/StagesDialog.d.ts.map +1 -0
- package/dist/screens/Contacts/StagesDialog.js +61 -0
- package/dist/screens/Contacts/StagesDialog.js.map +1 -0
- package/dist/screens/Contacts/contact-source.d.ts +4 -0
- package/dist/screens/Contacts/contact-source.d.ts.map +1 -0
- package/dist/screens/Contacts/contact-source.js +18 -0
- package/dist/screens/Contacts/contact-source.js.map +1 -0
- package/dist/screens/Contacts/pipeline.d.ts +23 -0
- package/dist/screens/Contacts/pipeline.d.ts.map +1 -0
- package/dist/screens/Contacts/pipeline.js +57 -0
- package/dist/screens/Contacts/pipeline.js.map +1 -0
- package/dist/screens/ContentList/ContentListScreen.d.ts +3 -0
- package/dist/screens/ContentList/ContentListScreen.d.ts.map +1 -0
- package/dist/screens/ContentList/ContentListScreen.js +112 -0
- package/dist/screens/ContentList/ContentListScreen.js.map +1 -0
- package/dist/screens/ContentType/ContentTypeScreen.d.ts +3 -0
- package/dist/screens/ContentType/ContentTypeScreen.d.ts.map +1 -0
- package/dist/screens/ContentType/ContentTypeScreen.js +140 -0
- package/dist/screens/ContentType/ContentTypeScreen.js.map +1 -0
- package/dist/screens/ContentType/FieldDialog.d.ts +12 -0
- package/dist/screens/ContentType/FieldDialog.d.ts.map +1 -0
- package/dist/screens/ContentType/FieldDialog.js +110 -0
- package/dist/screens/ContentType/FieldDialog.js.map +1 -0
- package/dist/screens/ContentType/SectionsDialog.d.ts +7 -0
- package/dist/screens/ContentType/SectionsDialog.d.ts.map +1 -0
- package/dist/screens/ContentType/SectionsDialog.js +67 -0
- package/dist/screens/ContentType/SectionsDialog.js.map +1 -0
- package/dist/screens/ContentType/SettingsDialog.d.ts +7 -0
- package/dist/screens/ContentType/SettingsDialog.d.ts.map +1 -0
- package/dist/screens/ContentType/SettingsDialog.js +75 -0
- package/dist/screens/ContentType/SettingsDialog.js.map +1 -0
- package/dist/screens/ContentTypes/ContentTypesScreen.d.ts +3 -0
- package/dist/screens/ContentTypes/ContentTypesScreen.d.ts.map +1 -0
- package/dist/screens/ContentTypes/ContentTypesScreen.js +103 -0
- package/dist/screens/ContentTypes/ContentTypesScreen.js.map +1 -0
- package/dist/screens/Deals/DealDialog.d.ts +16 -0
- package/dist/screens/Deals/DealDialog.d.ts.map +1 -0
- package/dist/screens/Deals/DealDialog.js +84 -0
- package/dist/screens/Deals/DealDialog.js.map +1 -0
- package/dist/screens/Deals/DealsScreen.d.ts +3 -0
- package/dist/screens/Deals/DealsScreen.d.ts.map +1 -0
- package/dist/screens/Deals/DealsScreen.js +117 -0
- package/dist/screens/Deals/DealsScreen.js.map +1 -0
- package/dist/screens/Deals/deal-subject.d.ts +30 -0
- package/dist/screens/Deals/deal-subject.d.ts.map +1 -0
- package/dist/screens/Deals/deal-subject.js +57 -0
- package/dist/screens/Deals/deal-subject.js.map +1 -0
- package/dist/screens/EntryEditor/EntryDeals.d.ts +11 -0
- package/dist/screens/EntryEditor/EntryDeals.d.ts.map +1 -0
- package/dist/screens/EntryEditor/EntryDeals.js +45 -0
- package/dist/screens/EntryEditor/EntryDeals.js.map +1 -0
- package/dist/screens/EntryEditor/EntryEditorScreen.d.ts +3 -0
- package/dist/screens/EntryEditor/EntryEditorScreen.d.ts.map +1 -0
- package/dist/screens/EntryEditor/EntryEditorScreen.js +70 -0
- package/dist/screens/EntryEditor/EntryEditorScreen.js.map +1 -0
- package/dist/screens/EntryEditor/EntryForm.d.ts +26 -0
- package/dist/screens/EntryEditor/EntryForm.d.ts.map +1 -0
- package/dist/screens/EntryEditor/EntryForm.js +480 -0
- package/dist/screens/EntryEditor/EntryForm.js.map +1 -0
- package/dist/screens/EntryEditor/HistoryDialog.d.ts +17 -0
- package/dist/screens/EntryEditor/HistoryDialog.d.ts.map +1 -0
- package/dist/screens/EntryEditor/HistoryDialog.js +71 -0
- package/dist/screens/EntryEditor/HistoryDialog.js.map +1 -0
- package/dist/screens/EntryEditor/PagePane.d.ts +45 -0
- package/dist/screens/EntryEditor/PagePane.d.ts.map +1 -0
- package/dist/screens/EntryEditor/PagePane.js +82 -0
- package/dist/screens/EntryEditor/PagePane.js.map +1 -0
- package/dist/screens/EntryEditor/ScheduleDialog.d.ts +15 -0
- package/dist/screens/EntryEditor/ScheduleDialog.d.ts.map +1 -0
- package/dist/screens/EntryEditor/ScheduleDialog.js +70 -0
- package/dist/screens/EntryEditor/ScheduleDialog.js.map +1 -0
- package/dist/screens/EntryEditor/SectionOutline.d.ts +11 -0
- package/dist/screens/EntryEditor/SectionOutline.d.ts.map +1 -0
- package/dist/screens/EntryEditor/SectionOutline.js +46 -0
- package/dist/screens/EntryEditor/SectionOutline.js.map +1 -0
- package/dist/screens/EntryEditor/ThemeCard.d.ts +32 -0
- package/dist/screens/EntryEditor/ThemeCard.d.ts.map +1 -0
- package/dist/screens/EntryEditor/ThemeCard.js +71 -0
- package/dist/screens/EntryEditor/ThemeCard.js.map +1 -0
- package/dist/screens/Form/FormFields.d.ts +9 -0
- package/dist/screens/Form/FormFields.d.ts.map +1 -0
- package/dist/screens/Form/FormFields.js +26 -0
- package/dist/screens/Form/FormFields.js.map +1 -0
- package/dist/screens/Form/FormScreen.d.ts +3 -0
- package/dist/screens/Form/FormScreen.d.ts.map +1 -0
- package/dist/screens/Form/FormScreen.js +66 -0
- package/dist/screens/Form/FormScreen.js.map +1 -0
- package/dist/screens/Form/FormSettingsDialog.d.ts +8 -0
- package/dist/screens/Form/FormSettingsDialog.d.ts.map +1 -0
- package/dist/screens/Form/FormSettingsDialog.js +78 -0
- package/dist/screens/Form/FormSettingsDialog.js.map +1 -0
- package/dist/screens/Form/Submissions.d.ts +6 -0
- package/dist/screens/Form/Submissions.d.ts.map +1 -0
- package/dist/screens/Form/Submissions.js +98 -0
- package/dist/screens/Form/Submissions.js.map +1 -0
- package/dist/screens/Form/form-fields.d.ts +3 -0
- package/dist/screens/Form/form-fields.d.ts.map +1 -0
- package/dist/screens/Form/form-fields.js +9 -0
- package/dist/screens/Form/form-fields.js.map +1 -0
- package/dist/screens/Forms/FormsScreen.d.ts +3 -0
- package/dist/screens/Forms/FormsScreen.d.ts.map +1 -0
- package/dist/screens/Forms/FormsScreen.js +142 -0
- package/dist/screens/Forms/FormsScreen.js.map +1 -0
- package/dist/screens/Home/FollowUps.d.ts +8 -0
- package/dist/screens/Home/FollowUps.d.ts.map +1 -0
- package/dist/screens/Home/FollowUps.js +43 -0
- package/dist/screens/Home/FollowUps.js.map +1 -0
- package/dist/screens/Home/HomeScreen.d.ts +6 -0
- package/dist/screens/Home/HomeScreen.d.ts.map +1 -0
- package/dist/screens/Home/HomeScreen.js +156 -0
- package/dist/screens/Home/HomeScreen.js.map +1 -0
- package/dist/screens/Media/MediaScreen.d.ts +3 -0
- package/dist/screens/Media/MediaScreen.d.ts.map +1 -0
- package/dist/screens/Media/MediaScreen.js +72 -0
- package/dist/screens/Media/MediaScreen.js.map +1 -0
- package/dist/screens/People/PeopleScreen.d.ts +3 -0
- package/dist/screens/People/PeopleScreen.d.ts.map +1 -0
- package/dist/screens/People/PeopleScreen.js +78 -0
- package/dist/screens/People/PeopleScreen.js.map +1 -0
- package/dist/screens/PluginScreen/PluginScreenScreen.d.ts +3 -0
- package/dist/screens/PluginScreen/PluginScreenScreen.d.ts.map +1 -0
- package/dist/screens/PluginScreen/PluginScreenScreen.js +16 -0
- package/dist/screens/PluginScreen/PluginScreenScreen.js.map +1 -0
- package/dist/screens/Plugins/PluginActivityDialog.d.ts +7 -0
- package/dist/screens/Plugins/PluginActivityDialog.d.ts.map +1 -0
- package/dist/screens/Plugins/PluginActivityDialog.js +49 -0
- package/dist/screens/Plugins/PluginActivityDialog.js.map +1 -0
- package/dist/screens/Plugins/PluginSecrets.d.ts +7 -0
- package/dist/screens/Plugins/PluginSecrets.d.ts.map +1 -0
- package/dist/screens/Plugins/PluginSecrets.js +44 -0
- package/dist/screens/Plugins/PluginSecrets.js.map +1 -0
- package/dist/screens/Plugins/PluginSettingsDialog.d.ts +7 -0
- package/dist/screens/Plugins/PluginSettingsDialog.d.ts.map +1 -0
- package/dist/screens/Plugins/PluginSettingsDialog.js +46 -0
- package/dist/screens/Plugins/PluginSettingsDialog.js.map +1 -0
- package/dist/screens/Plugins/PluginsScreen.d.ts +3 -0
- package/dist/screens/Plugins/PluginsScreen.d.ts.map +1 -0
- package/dist/screens/Plugins/PluginsScreen.js +68 -0
- package/dist/screens/Plugins/PluginsScreen.js.map +1 -0
- package/dist/screens/Settings/EmailSettings.d.ts +3 -0
- package/dist/screens/Settings/EmailSettings.d.ts.map +1 -0
- package/dist/screens/Settings/EmailSettings.js +76 -0
- package/dist/screens/Settings/EmailSettings.js.map +1 -0
- package/dist/screens/Settings/FormsSettings.d.ts +3 -0
- package/dist/screens/Settings/FormsSettings.d.ts.map +1 -0
- package/dist/screens/Settings/FormsSettings.js +91 -0
- package/dist/screens/Settings/FormsSettings.js.map +1 -0
- package/dist/screens/Settings/GeneralSettings.d.ts +3 -0
- package/dist/screens/Settings/GeneralSettings.d.ts.map +1 -0
- package/dist/screens/Settings/GeneralSettings.js +42 -0
- package/dist/screens/Settings/GeneralSettings.js.map +1 -0
- package/dist/screens/Settings/SettingsPage.d.ts +9 -0
- package/dist/screens/Settings/SettingsPage.d.ts.map +1 -0
- package/dist/screens/Settings/SettingsPage.js +42 -0
- package/dist/screens/Settings/SettingsPage.js.map +1 -0
- package/dist/screens/Settings/SettingsScreen.d.ts +7 -0
- package/dist/screens/Settings/SettingsScreen.d.ts.map +1 -0
- package/dist/screens/Settings/SettingsScreen.js +53 -0
- package/dist/screens/Settings/SettingsScreen.js.map +1 -0
- package/dist/screens/Settings/StorageSettings.d.ts +3 -0
- package/dist/screens/Settings/StorageSettings.d.ts.map +1 -0
- package/dist/screens/Settings/StorageSettings.js +82 -0
- package/dist/screens/Settings/StorageSettings.js.map +1 -0
- package/dist/screens/SignIn/SignInScreen.d.ts +6 -0
- package/dist/screens/SignIn/SignInScreen.d.ts.map +1 -0
- package/dist/screens/SignIn/SignInScreen.js +52 -0
- package/dist/screens/SignIn/SignInScreen.js.map +1 -0
- package/dist/screens/Trash/TrashScreen.d.ts +3 -0
- package/dist/screens/Trash/TrashScreen.d.ts.map +1 -0
- package/dist/screens/Trash/TrashScreen.js +73 -0
- package/dist/screens/Trash/TrashScreen.js.map +1 -0
- package/dist/standalone/config.d.ts +19 -0
- package/dist/standalone/config.d.ts.map +1 -0
- package/dist/standalone/config.js +20 -0
- package/dist/standalone/config.js.map +1 -0
- package/dist/standalone/main.d.ts +7 -0
- package/dist/standalone/main.d.ts.map +1 -0
- package/dist/standalone/main.js +26 -0
- package/dist/standalone/main.js.map +1 -0
- package/dist/testing/admin-client-contract.d.ts +24 -0
- package/dist/testing/admin-client-contract.d.ts.map +1 -0
- package/dist/testing/admin-client-contract.js +615 -0
- package/dist/testing/admin-client-contract.js.map +1 -0
- package/dist/testing/http-server.d.ts +18 -0
- package/dist/testing/http-server.d.ts.map +1 -0
- package/dist/testing/http-server.js +56 -0
- package/dist/testing/http-server.js.map +1 -0
- package/dist/testing/index.d.ts +3 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +3 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/memory-client.d.ts +166 -0
- package/dist/testing/memory-client.d.ts.map +1 -0
- package/dist/testing/memory-client.js +449 -0
- package/dist/testing/memory-client.js.map +1 -0
- package/dist/testing/memory-mail.d.ts +48 -0
- package/dist/testing/memory-mail.d.ts.map +1 -0
- package/dist/testing/memory-mail.js +74 -0
- package/dist/testing/memory-mail.js.map +1 -0
- package/dist/testing/memory-people.d.ts +18 -0
- package/dist/testing/memory-people.d.ts.map +1 -0
- package/dist/testing/memory-people.js +70 -0
- package/dist/testing/memory-people.js.map +1 -0
- package/dist/testing/render-app.d.ts +8 -0
- package/dist/testing/render-app.d.ts.map +1 -0
- package/dist/testing/render-app.js +10 -0
- package/dist/testing/render-app.js.map +1 -0
- package/dist/testing/sample-content.d.ts +29 -0
- package/dist/testing/sample-content.d.ts.map +1 -0
- package/dist/testing/sample-content.js +258 -0
- package/dist/testing/sample-content.js.map +1 -0
- package/package.json +74 -3
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { AccessControl, ConflictError, NotFoundError, ROLES, ValidationError } from '@velocity-astro/cms-core';
|
|
2
|
+
const EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
3
|
+
/**
|
|
4
|
+
* Who can sign in, kept in memory, with the rules a real site's sign-in applies: only owners
|
|
5
|
+
* manage people, an address is here once, nobody removes themselves and one owner always stays.
|
|
6
|
+
* It stands in for `cms-auth` behind both test clients.
|
|
7
|
+
*/
|
|
8
|
+
export class MemoryPeople {
|
|
9
|
+
#people;
|
|
10
|
+
#access = new AccessControl();
|
|
11
|
+
constructor(people = []) {
|
|
12
|
+
this.#people = [...people];
|
|
13
|
+
}
|
|
14
|
+
/** The team as the CMS sees it: ids, names and roles. */
|
|
15
|
+
async members() {
|
|
16
|
+
return this.#people.map(({ id, name, role }) => ({ id, name, role })).sort((a, b) => a.name.localeCompare(b.name));
|
|
17
|
+
}
|
|
18
|
+
async listUsers(actor) {
|
|
19
|
+
this.#access.require(actor, 'user:manage');
|
|
20
|
+
return [...this.#people].sort((a, b) => a.name.localeCompare(b.name));
|
|
21
|
+
}
|
|
22
|
+
async invite(actor, person) {
|
|
23
|
+
this.#access.require(actor, 'user:manage');
|
|
24
|
+
const email = person.email.trim().toLowerCase();
|
|
25
|
+
const issues = [
|
|
26
|
+
...(EMAIL.test(email) ? [] : [{ path: ['email'], message: 'Enter an email address, such as name@example.com.' }]),
|
|
27
|
+
...(person.name.trim() === '' ? [{ path: ['name'], message: "Enter the person's name." }] : []),
|
|
28
|
+
...(ROLES.includes(person.role) ? [] : [{ path: ['role'], message: `Choose a role: ${ROLES.join(', ')}.` }]),
|
|
29
|
+
];
|
|
30
|
+
const [first] = issues;
|
|
31
|
+
if (first)
|
|
32
|
+
throw new ValidationError(first.message, issues);
|
|
33
|
+
if (this.#people.some((other) => other.email === email))
|
|
34
|
+
throw new ConflictError(`${email} can already sign in.`);
|
|
35
|
+
const added = { id: `person-${this.#people.length + 1}`, email, name: person.name.trim(), role: person.role, hasSignedIn: false };
|
|
36
|
+
this.#people.push(added);
|
|
37
|
+
return added;
|
|
38
|
+
}
|
|
39
|
+
async changeRole(actor, id, role) {
|
|
40
|
+
this.#access.require(actor, 'user:manage');
|
|
41
|
+
const index = this.#indexOf(id);
|
|
42
|
+
const person = this.#people[index];
|
|
43
|
+
if (person.role === 'owner' && role !== 'owner')
|
|
44
|
+
this.#requireAnotherOwner(id);
|
|
45
|
+
const changed = { ...person, role };
|
|
46
|
+
this.#people[index] = changed;
|
|
47
|
+
return changed;
|
|
48
|
+
}
|
|
49
|
+
async remove(actor, id) {
|
|
50
|
+
this.#access.require(actor, 'user:manage');
|
|
51
|
+
const index = this.#indexOf(id);
|
|
52
|
+
if (actor.id === id)
|
|
53
|
+
throw new ConflictError('You cannot remove yourself. Ask another owner to do it.');
|
|
54
|
+
if (this.#people[index]?.role === 'owner')
|
|
55
|
+
this.#requireAnotherOwner(id);
|
|
56
|
+
this.#people.splice(index, 1);
|
|
57
|
+
}
|
|
58
|
+
#indexOf(id) {
|
|
59
|
+
const index = this.#people.findIndex((person) => person.id === id);
|
|
60
|
+
if (index < 0)
|
|
61
|
+
throw new NotFoundError('Person', id);
|
|
62
|
+
return index;
|
|
63
|
+
}
|
|
64
|
+
#requireAnotherOwner(id) {
|
|
65
|
+
if (!this.#people.some((person) => person.role === 'owner' && person.id !== id)) {
|
|
66
|
+
throw new ConflictError("This is the site's only owner, and a site needs one. Make someone else an owner first.");
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=memory-people.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-people.js","sourceRoot":"","sources":["../../src/testing/memory-people.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,eAAe,EAAqD,MAAM,0BAA0B,CAAC;AAGlK,MAAM,KAAK,GAAG,4BAA4B,CAAC;AAE3C;;;;GAIG;AACH,MAAM,OAAO,YAAY;IACd,OAAO,CAAW;IAClB,OAAO,GAAG,IAAI,aAAa,EAAE,CAAC;IAEvC,YAAY,SAA4B,EAAE;QACxC,IAAI,CAAC,OAAO,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;IAC7B,CAAC;IAED,yDAAyD;IACzD,KAAK,CAAC,OAAO;QACX,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IA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AC,GAAG,OAAO,CAAC;QAC9B,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,KAAY,EAAE,EAAU;QACnC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;QAC3C,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAChC,IAAI,KAAK,CAAC,EAAE,KAAK,EAAE;YAAE,MAAM,IAAI,aAAa,CAAC,yDAAyD,CAAC,CAAC;QACxG,IAAI,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,IAAI,KAAK,OAAO;YAAE,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;QACzE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC;IAED,QAAQ,CAAC,EAAU;QACjB,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QACnE,IAAI,KAAK,GAAG,CAAC;YAAE,MAAM,IAAI,aAAa,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QACrD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,oBAAoB,CAAC,EAAU;QAC7B,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,OAAO,IAAI,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;YAChF,MAAM,IAAI,aAAa,CAAC,wFAAwF,CAAC,CAAC;QACpH,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type RenderResult } from '@testing-library/react';
|
|
2
|
+
import type { PluginEditorLoader } from '../plugins/plugin-editor.js';
|
|
3
|
+
import { MemoryAdminClient, type MemoryAdminClientOptions } from './memory-client.js';
|
|
4
|
+
/** Renders the whole editor at an address, against an in-memory server. */
|
|
5
|
+
export declare function renderApp(path: string, options?: MemoryAdminClientOptions, pluginEditors?: PluginEditorLoader): RenderResult & {
|
|
6
|
+
client: MemoryAdminClient;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=render-app.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-app.d.ts","sourceRoot":"","sources":["../../src/testing/render-app.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,KAAK,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAEtF,2EAA2E;AAC3E,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,wBAA6B,EAAE,aAAa,CAAC,EAAE,kBAAkB,GAAG,YAAY,GAAG;IAAE,MAAM,EAAE,iBAAiB,CAAA;CAAE,CAGhK"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
import { AdminApp } from '../app/AdminApp.js';
|
|
4
|
+
import { MemoryAdminClient } from './memory-client.js';
|
|
5
|
+
/** Renders the whole editor at an address, against an in-memory server. */
|
|
6
|
+
export function renderApp(path, options = {}, pluginEditors) {
|
|
7
|
+
const client = new MemoryAdminClient(options);
|
|
8
|
+
return { client, ...render(_jsx(AdminApp, { client: client, siteName: "Lakeshore Realty", initialPath: path, ...(pluginEditors && { pluginEditors }) })) };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=render-app.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-app.js","sourceRoot":"","sources":["../../src/testing/render-app.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAqB,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,OAAO,EAAE,iBAAiB,EAAiC,MAAM,oBAAoB,CAAC;AAEtF,2EAA2E;AAC3E,MAAM,UAAU,SAAS,CAAC,IAAY,EAAE,UAAoC,EAAE,EAAE,aAAkC;IAChH,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAC9C,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,KAAC,QAAQ,IAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAC,kBAAkB,EAAC,WAAW,EAAE,IAAI,KAAM,CAAC,aAAa,IAAI,EAAE,aAAa,EAAE,CAAC,GAAI,CAAC,EAAE,CAAC;AACtJ,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { NewForm } from '@velocity-astro/cms-core';
|
|
2
|
+
import type { SeedSubmission } from './memory-client.js';
|
|
3
|
+
import type { ContentTypeDef, Entry } from '@velocity-astro/cms-core';
|
|
4
|
+
import type { SessionUser } from '../client/admin-client.js';
|
|
5
|
+
/** A small real-estate site, for tests and the development preview. */
|
|
6
|
+
export declare const sampleUser: SessionUser;
|
|
7
|
+
export declare const sampleContentTypes: readonly ContentTypeDef[];
|
|
8
|
+
/**
|
|
9
|
+
* A type whose entries are pages built from sections, and one page of it. Kept apart from the
|
|
10
|
+
* types above, so a test or the preview adds them when it is about pages.
|
|
11
|
+
*/
|
|
12
|
+
export declare const samplePagesType: ContentTypeDef;
|
|
13
|
+
export declare function samplePage(now?: Date): Entry;
|
|
14
|
+
/** The site's menus: one entry, whose links go to pages by name or to an address typed by hand. */
|
|
15
|
+
export declare const sampleNavigationType: ContentTypeDef;
|
|
16
|
+
export declare function sampleNavigation(now?: Date): Entry;
|
|
17
|
+
/**
|
|
18
|
+
* A single page a template keeps in the settings, with the field that names the site. Kept apart
|
|
19
|
+
* like the pages above.
|
|
20
|
+
*/
|
|
21
|
+
export declare const sampleBusinessType: ContentTypeDef;
|
|
22
|
+
export declare function sampleBusiness(now?: Date): Entry;
|
|
23
|
+
/** Listings in each state the list can show. Times are relative to `now`, so the list always reads the same. */
|
|
24
|
+
export declare function sampleEntries(now?: Date): readonly Entry[];
|
|
25
|
+
/** Two forms a site might have: a contact form with people to tell, and a tour request. */
|
|
26
|
+
export declare const sampleForms: readonly NewForm[];
|
|
27
|
+
/** What visitors sent through them, oldest first. */
|
|
28
|
+
export declare const sampleSubmissions: readonly SeedSubmission[];
|
|
29
|
+
//# sourceMappingURL=sample-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sample-content.d.ts","sourceRoot":"","sources":["../../src/testing/sample-content.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,KAAK,EAAY,MAAM,0BAA0B,CAAC;AAChF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,uEAAuE;AACvE,eAAO,MAAM,UAAU,EAAE,WAAkF,CAAC;AAa5G,eAAO,MAAM,kBAAkB,EAAE,SAAS,cAAc,EAgCvD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,cAoD7B,CAAC;AAEF,wBAAgB,UAAU,CAAC,GAAG,GAAE,IAAiB,GAAG,KAAK,CAoBxD;AAED,mGAAmG;AACnG,eAAO,MAAM,oBAAoB,EAAE,cAelC,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,GAAG,GAAE,IAAiB,GAAG,KAAK,CAkB9D;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,cAYhC,CAAC;AAEF,wBAAgB,cAAc,CAAC,GAAG,GAAE,IAAiB,GAAG,KAAK,CAe5D;AAID,gHAAgH;AAChH,wBAAgB,aAAa,CAAC,GAAG,GAAE,IAAiB,GAAG,SAAS,KAAK,EAAE,CA+BtE;AAED,2FAA2F;AAC3F,eAAO,MAAM,WAAW,EAAE,SAAS,OAAO,EAsBzC,CAAC;AAEF,qDAAqD;AACrD,eAAO,MAAM,iBAAiB,EAAE,SAAS,cAAc,EAKtD,CAAC"}
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
/** A small real-estate site, for tests and the development preview. */
|
|
2
|
+
export const sampleUser = { id: 'u1', email: 'dana@example.com', name: 'Dana', role: 'owner' };
|
|
3
|
+
const field = (id, key, type, label, changes = {}) => ({
|
|
4
|
+
id,
|
|
5
|
+
key,
|
|
6
|
+
type,
|
|
7
|
+
label: { en: label },
|
|
8
|
+
translated: type === 'text',
|
|
9
|
+
required: false,
|
|
10
|
+
options: {},
|
|
11
|
+
...changes,
|
|
12
|
+
});
|
|
13
|
+
export const sampleContentTypes = [
|
|
14
|
+
{
|
|
15
|
+
id: 'type-listings',
|
|
16
|
+
key: 'listings',
|
|
17
|
+
kind: 'collection',
|
|
18
|
+
label: { en: 'Listings', es: 'Propiedades' },
|
|
19
|
+
urlPattern: '/listings/[slug]',
|
|
20
|
+
// One field of every built-in type, so the editor shows every control.
|
|
21
|
+
fields: [
|
|
22
|
+
field('f-title', 'title', 'text', 'Title', { required: true }),
|
|
23
|
+
field('f-description', 'description', 'text', 'Description', { options: { multiline: true } }),
|
|
24
|
+
field('f-price', 'price', 'number', 'Price', { required: true, options: { min: 0, integer: true } }),
|
|
25
|
+
field('f-stage', 'stage', 'select', 'Stage', { options: { choices: ['For sale', 'Under contract', 'Sold'] } }),
|
|
26
|
+
field('f-listed', 'listedOn', 'date', 'Listed on'),
|
|
27
|
+
field('f-featured', 'featured', 'boolean', 'Show on the homepage'),
|
|
28
|
+
field('f-tour', 'virtualTour', 'url', 'Virtual tour'),
|
|
29
|
+
field('f-address', 'address', 'group', 'Address', {
|
|
30
|
+
options: {
|
|
31
|
+
fields: [field('f-street', 'street', 'text', 'Street'), field('f-city', 'city', 'text', 'City', { required: true })],
|
|
32
|
+
},
|
|
33
|
+
}),
|
|
34
|
+
field('f-photos', 'photos', 'list', 'Photos', { options: { of: { type: 'url' } } }),
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: 'type-agents',
|
|
39
|
+
key: 'agents',
|
|
40
|
+
kind: 'collection',
|
|
41
|
+
label: { en: 'Agents', es: 'Agentes' },
|
|
42
|
+
urlPattern: '/agents/[slug]',
|
|
43
|
+
fields: [field('f-name', 'name', 'text', 'Name', { required: true })],
|
|
44
|
+
},
|
|
45
|
+
];
|
|
46
|
+
/**
|
|
47
|
+
* A type whose entries are pages built from sections, and one page of it. Kept apart from the
|
|
48
|
+
* types above, so a test or the preview adds them when it is about pages.
|
|
49
|
+
*/
|
|
50
|
+
export const samplePagesType = {
|
|
51
|
+
id: 'type-pages',
|
|
52
|
+
key: 'pages',
|
|
53
|
+
kind: 'collection',
|
|
54
|
+
label: { en: 'Pages' },
|
|
55
|
+
urlPattern: '/[slug]',
|
|
56
|
+
fields: [
|
|
57
|
+
field('f-page-title', 'title', 'text', 'Title', { required: true }),
|
|
58
|
+
field('f-body', 'body', 'blocks', 'Sections', {
|
|
59
|
+
options: {
|
|
60
|
+
blocks: [
|
|
61
|
+
{
|
|
62
|
+
id: 'b-hero',
|
|
63
|
+
key: 'page-hero',
|
|
64
|
+
label: { en: 'Page opening' },
|
|
65
|
+
description: { en: 'The page\'s heading and a line under it.' },
|
|
66
|
+
icon: 'layout-template',
|
|
67
|
+
group: 'Opening',
|
|
68
|
+
fields: [field('bf-hero-title', 'title', 'text', 'Heading', { required: true }), field('bf-hero-text', 'text', 'text', 'Line under it', { options: { multiline: true } })],
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: 'b-text',
|
|
72
|
+
key: 'text',
|
|
73
|
+
label: { en: 'Text' },
|
|
74
|
+
description: { en: 'A heading with paragraphs under it.' },
|
|
75
|
+
icon: 'text',
|
|
76
|
+
group: 'Content',
|
|
77
|
+
fields: [field('bf-text-title', 'title', 'text', 'Heading'), field('bf-text-body', 'body', 'text', 'Words', { options: { multiline: true } })],
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
id: 'b-cta',
|
|
81
|
+
key: 'call-to-action',
|
|
82
|
+
label: { en: 'Call to action' },
|
|
83
|
+
description: { en: 'A closing line with a button.' },
|
|
84
|
+
icon: 'megaphone',
|
|
85
|
+
group: 'Action',
|
|
86
|
+
fields: [
|
|
87
|
+
field('bf-cta-title', 'title', 'text', 'Line', { required: true }),
|
|
88
|
+
field('bf-cta-look', 'look', 'select', 'Look', { options: { choices: ['Plain', 'Bold'] } }),
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: 'b-map',
|
|
93
|
+
key: 'map',
|
|
94
|
+
label: { en: 'Map' },
|
|
95
|
+
fields: [field('bf-map-place', 'place', 'text', 'Place')],
|
|
96
|
+
retiredAt: '2026-11-01T00:00:00.000Z',
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
}),
|
|
101
|
+
],
|
|
102
|
+
};
|
|
103
|
+
export function samplePage(now = new Date()) {
|
|
104
|
+
return {
|
|
105
|
+
id: 'p1',
|
|
106
|
+
typeId: 'type-pages',
|
|
107
|
+
locale: 'en',
|
|
108
|
+
translationGroup: 'p1',
|
|
109
|
+
slug: 'why-list-with-us',
|
|
110
|
+
status: 'draft',
|
|
111
|
+
data: {
|
|
112
|
+
'f-page-title': 'Why list with us',
|
|
113
|
+
'f-body': [
|
|
114
|
+
{ id: 's1', block: 'b-hero', data: { 'bf-hero-title': 'Sell for more, with less to do', 'bf-hero-text': 'One agent from the first photo to the closing table.' } },
|
|
115
|
+
{ id: 's2', block: 'b-text', data: { 'bf-text-title': 'How we work' } },
|
|
116
|
+
{ id: 's3', block: 'b-map', data: { 'bf-map-place': 'Austin' } },
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
revision: 1,
|
|
120
|
+
createdAt: hoursAgo(30, now),
|
|
121
|
+
updatedAt: hoursAgo(3, now),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
/** The site's menus: one entry, whose links go to pages by name or to an address typed by hand. */
|
|
125
|
+
export const sampleNavigationType = {
|
|
126
|
+
id: 'type-navigation',
|
|
127
|
+
key: 'navigation',
|
|
128
|
+
kind: 'single',
|
|
129
|
+
label: { en: 'Navigation' },
|
|
130
|
+
fields: [
|
|
131
|
+
field('f-header', 'header', 'list', 'Header links', {
|
|
132
|
+
options: {
|
|
133
|
+
of: {
|
|
134
|
+
type: 'group',
|
|
135
|
+
options: { fields: [field('f-link-label', 'label', 'text', 'Label', { required: true }), field('f-link-link', 'link', 'link', 'Goes to', { required: true })] },
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
}),
|
|
139
|
+
],
|
|
140
|
+
};
|
|
141
|
+
export function sampleNavigation(now = new Date()) {
|
|
142
|
+
return {
|
|
143
|
+
id: 'n1',
|
|
144
|
+
typeId: 'type-navigation',
|
|
145
|
+
locale: 'en',
|
|
146
|
+
translationGroup: 'n1',
|
|
147
|
+
slug: 'navigation',
|
|
148
|
+
status: 'draft',
|
|
149
|
+
data: {
|
|
150
|
+
'f-header': [
|
|
151
|
+
{ 'f-link-label': 'Why list with us', 'f-link-link': { kind: 'entry', type: 'pages', entry: 'p1' } },
|
|
152
|
+
{ 'f-link-label': 'Instagram', 'f-link-link': { kind: 'address', href: 'https://instagram.com/example' } },
|
|
153
|
+
],
|
|
154
|
+
},
|
|
155
|
+
revision: 1,
|
|
156
|
+
createdAt: hoursAgo(30, now),
|
|
157
|
+
updatedAt: hoursAgo(3, now),
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* A single page a template keeps in the settings, with the field that names the site. Kept apart
|
|
162
|
+
* like the pages above.
|
|
163
|
+
*/
|
|
164
|
+
export const sampleBusinessType = {
|
|
165
|
+
id: 'type-business',
|
|
166
|
+
key: 'business',
|
|
167
|
+
kind: 'single',
|
|
168
|
+
label: { en: 'Business details' },
|
|
169
|
+
inSettings: true,
|
|
170
|
+
siteNamePath: ['f-business-name'],
|
|
171
|
+
fields: [
|
|
172
|
+
field('f-business-name', 'name', 'text', 'Business name', { required: true, translated: false }),
|
|
173
|
+
field('f-business-phone', 'phone', 'text', 'Phone', { translated: false }),
|
|
174
|
+
field('f-business-email', 'email', 'text', 'Email', { translated: false }),
|
|
175
|
+
],
|
|
176
|
+
};
|
|
177
|
+
export function sampleBusiness(now = new Date()) {
|
|
178
|
+
const data = { 'f-business-name': 'Lakeshore Realty', 'f-business-phone': '512 555 0142', 'f-business-email': 'hello@lakeshore.example' };
|
|
179
|
+
return {
|
|
180
|
+
id: 'b1',
|
|
181
|
+
typeId: 'type-business',
|
|
182
|
+
locale: 'en',
|
|
183
|
+
translationGroup: 'b1',
|
|
184
|
+
slug: 'business',
|
|
185
|
+
status: 'published',
|
|
186
|
+
data,
|
|
187
|
+
revision: 2,
|
|
188
|
+
published: { slug: 'business', data, revision: 2, at: new Date(now.getTime() - 60 * 60 * 1000).toISOString() },
|
|
189
|
+
createdAt: new Date(now.getTime() - 48 * 60 * 60 * 1000).toISOString(),
|
|
190
|
+
updatedAt: new Date(now.getTime() - 60 * 60 * 1000).toISOString(),
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
const hoursAgo = (hours, now) => new Date(now.getTime() - hours * 60 * 60 * 1000).toISOString();
|
|
194
|
+
/** Listings in each state the list can show. Times are relative to `now`, so the list always reads the same. */
|
|
195
|
+
export function sampleEntries(now = new Date()) {
|
|
196
|
+
const listing = (id, title, hours, city) => ({
|
|
197
|
+
id,
|
|
198
|
+
typeId: 'type-listings',
|
|
199
|
+
locale: 'en',
|
|
200
|
+
translationGroup: id,
|
|
201
|
+
slug: title === '' ? id : title.toLowerCase().replaceAll(' ', '-'),
|
|
202
|
+
status: 'draft',
|
|
203
|
+
data: {
|
|
204
|
+
...(title !== '' && { 'f-title': title }),
|
|
205
|
+
'f-price': 500000,
|
|
206
|
+
'f-stage': 'For sale',
|
|
207
|
+
...(city !== undefined && { 'f-address': { 'f-street': title, 'f-city': city } }),
|
|
208
|
+
},
|
|
209
|
+
revision: 1,
|
|
210
|
+
createdAt: hoursAgo(hours + 24, now),
|
|
211
|
+
updatedAt: hoursAgo(hours, now),
|
|
212
|
+
});
|
|
213
|
+
/** The entry as it is after publishing, `savesSince` saves ago. */
|
|
214
|
+
const published = (entry, publishedHoursAgo, savesSince = 0) => ({
|
|
215
|
+
...entry,
|
|
216
|
+
status: 'published',
|
|
217
|
+
revision: 3 + savesSince,
|
|
218
|
+
published: { slug: entry.slug, data: entry.data, revision: 3, at: hoursAgo(publishedHoursAgo, now) },
|
|
219
|
+
});
|
|
220
|
+
return [
|
|
221
|
+
published(listing('e1', '6214 Lakeshore Drive', 2, 'Austin'), 2),
|
|
222
|
+
listing('e2', '18 Alder Court', 26),
|
|
223
|
+
published(listing('e3', '907 Mesa Verde Lane', 72, 'Santa Fe'), 96, 2),
|
|
224
|
+
listing('e4', '', 200),
|
|
225
|
+
];
|
|
226
|
+
}
|
|
227
|
+
/** Two forms a site might have: a contact form with people to tell, and a tour request. */
|
|
228
|
+
export const sampleForms = [
|
|
229
|
+
{
|
|
230
|
+
key: 'contact',
|
|
231
|
+
label: { en: 'Contact us' },
|
|
232
|
+
fields: [
|
|
233
|
+
{ key: 'name', type: 'text', label: { en: 'Your name' }, required: true },
|
|
234
|
+
{ key: 'email', type: 'email', label: { en: 'Email' }, required: true },
|
|
235
|
+
{ key: 'message', type: 'text', label: { en: 'Message' }, required: true, options: { multiline: true } },
|
|
236
|
+
],
|
|
237
|
+
notify: ['office@example.com'],
|
|
238
|
+
contact: { name: 'name', email: 'email' },
|
|
239
|
+
success: { en: 'Thank you. We will be in touch.' },
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
key: 'tour',
|
|
243
|
+
label: { en: 'Book a tour' },
|
|
244
|
+
fields: [
|
|
245
|
+
{ key: 'email', type: 'email', label: { en: 'Email' }, required: true },
|
|
246
|
+
{ key: 'day', type: 'date', label: { en: 'Preferred day' } },
|
|
247
|
+
],
|
|
248
|
+
contact: { email: 'email' },
|
|
249
|
+
},
|
|
250
|
+
];
|
|
251
|
+
/** What visitors sent through them, oldest first. */
|
|
252
|
+
export const sampleSubmissions = [
|
|
253
|
+
{ form: 'contact', sent: { name: 'Ana Ruiz', email: 'Ana@Example.com', message: 'Is the house on Alder still for sale?' }, page: '/contact/' },
|
|
254
|
+
{ form: 'contact', sent: { name: 'Cheap Loans', email: 'win@spam.example', message: 'Click here now' }, suspected: true },
|
|
255
|
+
{ form: 'contact', sent: { name: 'Tom Okafor', email: 'tom@example.com', message: 'We would like to list our home.\nCall any time.' }, page: '/sell/' },
|
|
256
|
+
{ form: 'tour', sent: { email: 'ana@example.com', day: '2026-12-01' }, page: '/listings/18-alder-court/' },
|
|
257
|
+
];
|
|
258
|
+
//# sourceMappingURL=sample-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sample-content.js","sourceRoot":"","sources":["../../src/testing/sample-content.ts"],"names":[],"mappings":"AAKA,uEAAuE;AACvE,MAAM,CAAC,MAAM,UAAU,GAAgB,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AAE5G,MAAM,KAAK,GAAG,CAAC,EAAU,EAAE,GAAW,EAAE,IAAY,EAAE,KAAa,EAAE,UAA6B,EAAE,EAAY,EAAE,CAAC,CAAC;IAClH,EAAE;IACF,GAAG;IACH,IAAI;IACJ,KAAK,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE;IACpB,UAAU,EAAE,IAAI,KAAK,MAAM;IAC3B,QAAQ,EAAE,KAAK;IACf,OAA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,iBAAiB,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,2BAA2B,EAAE;CAC3G,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,77 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velocity-astro/cms-admin",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0-beta.11",
|
|
4
|
+
"description": "The Velocity CMS editor: the screens people use to manage content. Built only from cms-ui parts.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Velocity-Astro/velocity-cms.git",
|
|
10
|
+
"directory": "packages/cms-admin"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://docs.deployvelocity.com/cms/",
|
|
13
|
+
"bugs": "https://github.com/Velocity-Astro/velocity-cms/issues",
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=22.23.4"
|
|
16
|
+
},
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"default": "./dist/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./testing": {
|
|
27
|
+
"types": "./dist/testing/index.d.ts",
|
|
28
|
+
"default": "./dist/testing/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./page-bridge": {
|
|
31
|
+
"types": "./dist/page-bridge/index.d.ts",
|
|
32
|
+
"default": "./dist/page-bridge/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./package.json": "./package.json",
|
|
35
|
+
"./app-directory": {
|
|
36
|
+
"types": "./app-directory.d.mts",
|
|
37
|
+
"default": "./app-directory.mjs"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
"dist",
|
|
42
|
+
"app-dist",
|
|
43
|
+
"app-directory.mjs",
|
|
44
|
+
"app-directory.d.mts",
|
|
45
|
+
"!dist/**/*.test.*"
|
|
46
|
+
],
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@tanstack/react-query": "^5.108.0",
|
|
49
|
+
"lucide-react": "^1.74.0",
|
|
50
|
+
"react-router": "^8.5.1",
|
|
51
|
+
"@velocity-astro/cms-core": "0.1.0-beta.11",
|
|
52
|
+
"@velocity-astro/cms-ui": "0.1.0-beta.11"
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"react": "^19.0.0",
|
|
56
|
+
"react-dom": "^19.0.0"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@tailwindcss/vite": "^4.3.5",
|
|
60
|
+
"@testing-library/react": "^16.3.3",
|
|
61
|
+
"@testing-library/user-event": "^14.6.1",
|
|
62
|
+
"@types/react": "^19.2.0",
|
|
63
|
+
"@types/react-dom": "^19.2.0",
|
|
64
|
+
"@vitejs/plugin-react": "^6.0.0",
|
|
65
|
+
"jsdom": "^31.0.1",
|
|
66
|
+
"react": "^19.3.1",
|
|
67
|
+
"react-dom": "^19.3.1",
|
|
68
|
+
"tailwindcss": "^4.3.5",
|
|
69
|
+
"vite": "^8.0.0",
|
|
70
|
+
"@velocity-astro/cms-auth": "0.1.0-beta.11",
|
|
71
|
+
"@velocity-astro/cms-api": "0.1.0-beta.11"
|
|
72
|
+
},
|
|
73
|
+
"scripts": {
|
|
74
|
+
"dev": "vite dev",
|
|
75
|
+
"build:app": "vite build --config vite.app.config.ts --logLevel warn"
|
|
76
|
+
}
|
|
6
77
|
}
|