sandcms 0.5.2
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 +57 -0
- package/README.md +84 -0
- package/dist/Image.svelte +53 -0
- package/dist/Image.svelte.d.ts +10 -0
- package/dist/Seo.svelte +29 -0
- package/dist/Seo.svelte.d.ts +10 -0
- package/dist/admin/Access.svelte +129 -0
- package/dist/admin/Access.svelte.d.ts +7 -0
- package/dist/admin/Account.svelte +190 -0
- package/dist/admin/Account.svelte.d.ts +7 -0
- package/dist/admin/Admin.svelte +42 -0
- package/dist/admin/Admin.svelte.d.ts +8 -0
- package/dist/admin/AssetAttachment.svelte +77 -0
- package/dist/admin/AssetAttachment.svelte.d.ts +15 -0
- package/dist/admin/Collection.svelte +52 -0
- package/dist/admin/Collection.svelte.d.ts +7 -0
- package/dist/admin/Dashboard.svelte +105 -0
- package/dist/admin/Dashboard.svelte.d.ts +7 -0
- package/dist/admin/Editor.svelte +192 -0
- package/dist/admin/Editor.svelte.d.ts +7 -0
- package/dist/admin/Fields.svelte +221 -0
- package/dist/admin/Fields.svelte.d.ts +17 -0
- package/dist/admin/Gallery.svelte +130 -0
- package/dist/admin/Gallery.svelte.d.ts +16 -0
- package/dist/admin/Inbox.svelte +154 -0
- package/dist/admin/Inbox.svelte.d.ts +8 -0
- package/dist/admin/Login.svelte +104 -0
- package/dist/admin/Login.svelte.d.ts +7 -0
- package/dist/admin/MediaLibrary.svelte +231 -0
- package/dist/admin/MediaLibrary.svelte.d.ts +7 -0
- package/dist/admin/MediaPicker.svelte +273 -0
- package/dist/admin/MediaPicker.svelte.d.ts +16 -0
- package/dist/admin/Notice.svelte +13 -0
- package/dist/admin/Notice.svelte.d.ts +8 -0
- package/dist/admin/NotificationSettings.svelte +153 -0
- package/dist/admin/NotificationSettings.svelte.d.ts +7 -0
- package/dist/admin/RichText.svelte +103 -0
- package/dist/admin/RichText.svelte.d.ts +9 -0
- package/dist/admin/RichTextLink.svelte +71 -0
- package/dist/admin/RichTextLink.svelte.d.ts +7 -0
- package/dist/admin/SelectField.svelte +39 -0
- package/dist/admin/SelectField.svelte.d.ts +15 -0
- package/dist/admin/Shell.svelte +106 -0
- package/dist/admin/Shell.svelte.d.ts +9 -0
- package/dist/admin/SortableList.svelte +104 -0
- package/dist/admin/SortableList.svelte.d.ts +30 -0
- package/dist/admin/UnsavedChanges.svelte +54 -0
- package/dist/admin/UnsavedChanges.svelte.d.ts +6 -0
- package/dist/admin/UploadButton.svelte +42 -0
- package/dist/admin/UploadButton.svelte.d.ts +10 -0
- package/dist/admin/UploadQueue.svelte +40 -0
- package/dist/admin/UploadQueue.svelte.d.ts +7 -0
- package/dist/admin/Users.svelte +185 -0
- package/dist/admin/Users.svelte.d.ts +7 -0
- package/dist/admin/client.d.ts +720 -0
- package/dist/admin/client.js +29 -0
- package/dist/admin/components/ui/alert/alert-action.svelte +20 -0
- package/dist/admin/components/ui/alert/alert-action.svelte.d.ts +5 -0
- package/dist/admin/components/ui/alert/alert-description.svelte +23 -0
- package/dist/admin/components/ui/alert/alert-description.svelte.d.ts +5 -0
- package/dist/admin/components/ui/alert/alert-title.svelte +23 -0
- package/dist/admin/components/ui/alert/alert-title.svelte.d.ts +5 -0
- package/dist/admin/components/ui/alert/alert.svelte +44 -0
- package/dist/admin/components/ui/alert/alert.svelte.d.ts +26 -0
- package/dist/admin/components/ui/alert/index.d.ts +6 -0
- package/dist/admin/components/ui/alert/index.js +8 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-action.svelte +27 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-action.svelte.d.ts +9 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-cancel.svelte +27 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-cancel.svelte.d.ts +9 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-content.svelte +32 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-content.svelte.d.ts +11 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-description.svelte +20 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-description.svelte.d.ts +4 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-footer.svelte +23 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-footer.svelte.d.ts +5 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-header.svelte +23 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-header.svelte.d.ts +5 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-media.svelte +23 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-media.svelte.d.ts +5 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-overlay.svelte +20 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-overlay.svelte.d.ts +4 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-portal.svelte +7 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-portal.svelte.d.ts +3 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-title.svelte +20 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-title.svelte.d.ts +4 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-trigger.svelte +7 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog-trigger.svelte.d.ts +4 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog.svelte +7 -0
- package/dist/admin/components/ui/alert-dialog/alert-dialog.svelte.d.ts +3 -0
- package/dist/admin/components/ui/alert-dialog/index.d.ts +13 -0
- package/dist/admin/components/ui/alert-dialog/index.js +15 -0
- package/dist/admin/components/ui/attachment/attachment-action.svelte +21 -0
- package/dist/admin/components/ui/attachment/attachment-action.svelte.d.ts +4 -0
- package/dist/admin/components/ui/attachment/attachment-actions.svelte +23 -0
- package/dist/admin/components/ui/attachment/attachment-actions.svelte.d.ts +5 -0
- package/dist/admin/components/ui/attachment/attachment-content.svelte +23 -0
- package/dist/admin/components/ui/attachment/attachment-content.svelte.d.ts +5 -0
- package/dist/admin/components/ui/attachment/attachment-description.svelte +24 -0
- package/dist/admin/components/ui/attachment/attachment-description.svelte.d.ts +5 -0
- package/dist/admin/components/ui/attachment/attachment-group.svelte +23 -0
- package/dist/admin/components/ui/attachment/attachment-group.svelte.d.ts +5 -0
- package/dist/admin/components/ui/attachment/attachment-media.svelte +44 -0
- package/dist/admin/components/ui/attachment/attachment-media.svelte.d.ts +26 -0
- package/dist/admin/components/ui/attachment/attachment-title.svelte +23 -0
- package/dist/admin/components/ui/attachment/attachment-title.svelte.d.ts +5 -0
- package/dist/admin/components/ui/attachment/attachment-trigger.svelte +29 -0
- package/dist/admin/components/ui/attachment/attachment-trigger.svelte.d.ts +11 -0
- package/dist/admin/components/ui/attachment/attachment.svelte +54 -0
- package/dist/admin/components/ui/attachment/attachment.svelte.d.ts +45 -0
- package/dist/admin/components/ui/attachment/index.d.ts +10 -0
- package/dist/admin/components/ui/attachment/index.js +12 -0
- package/dist/admin/components/ui/avatar/avatar-badge.svelte +26 -0
- package/dist/admin/components/ui/avatar/avatar-badge.svelte.d.ts +5 -0
- package/dist/admin/components/ui/avatar/avatar-fallback.svelte +20 -0
- package/dist/admin/components/ui/avatar/avatar-fallback.svelte.d.ts +4 -0
- package/dist/admin/components/ui/avatar/avatar-group-count.svelte +23 -0
- package/dist/admin/components/ui/avatar/avatar-group-count.svelte.d.ts +5 -0
- package/dist/admin/components/ui/avatar/avatar-group.svelte +23 -0
- package/dist/admin/components/ui/avatar/avatar-group.svelte.d.ts +5 -0
- package/dist/admin/components/ui/avatar/avatar-image.svelte +17 -0
- package/dist/admin/components/ui/avatar/avatar-image.svelte.d.ts +4 -0
- package/dist/admin/components/ui/avatar/avatar.svelte +26 -0
- package/dist/admin/components/ui/avatar/avatar.svelte.d.ts +7 -0
- package/dist/admin/components/ui/avatar/index.d.ts +7 -0
- package/dist/admin/components/ui/avatar/index.js +9 -0
- package/dist/admin/components/ui/badge/badge.svelte +50 -0
- package/dist/admin/components/ui/badge/badge.svelte.d.ts +38 -0
- package/dist/admin/components/ui/badge/index.d.ts +2 -0
- package/dist/admin/components/ui/badge/index.js +2 -0
- package/dist/admin/components/ui/button/button.svelte +87 -0
- package/dist/admin/components/ui/button/button.svelte.d.ts +70 -0
- package/dist/admin/components/ui/button/index.d.ts +2 -0
- package/dist/admin/components/ui/button/index.js +4 -0
- package/dist/admin/components/ui/card/card-action.svelte +20 -0
- package/dist/admin/components/ui/card/card-action.svelte.d.ts +5 -0
- package/dist/admin/components/ui/card/card-content.svelte +20 -0
- package/dist/admin/components/ui/card/card-content.svelte.d.ts +5 -0
- package/dist/admin/components/ui/card/card-description.svelte +20 -0
- package/dist/admin/components/ui/card/card-description.svelte.d.ts +5 -0
- package/dist/admin/components/ui/card/card-footer.svelte +20 -0
- package/dist/admin/components/ui/card/card-footer.svelte.d.ts +5 -0
- package/dist/admin/components/ui/card/card-header.svelte +23 -0
- package/dist/admin/components/ui/card/card-header.svelte.d.ts +5 -0
- package/dist/admin/components/ui/card/card-title.svelte +20 -0
- package/dist/admin/components/ui/card/card-title.svelte.d.ts +5 -0
- package/dist/admin/components/ui/card/card.svelte +25 -0
- package/dist/admin/components/ui/card/card.svelte.d.ts +8 -0
- package/dist/admin/components/ui/card/index.d.ts +8 -0
- package/dist/admin/components/ui/card/index.js +10 -0
- package/dist/admin/components/ui/checkbox/checkbox.svelte +39 -0
- package/dist/admin/components/ui/checkbox/checkbox.svelte.d.ts +4 -0
- package/dist/admin/components/ui/checkbox/index.d.ts +2 -0
- package/dist/admin/components/ui/checkbox/index.js +4 -0
- package/dist/admin/components/ui/dialog/dialog-close.svelte +11 -0
- package/dist/admin/components/ui/dialog/dialog-close.svelte.d.ts +4 -0
- package/dist/admin/components/ui/dialog/dialog-content.svelte +48 -0
- package/dist/admin/components/ui/dialog/dialog-content.svelte.d.ts +13 -0
- package/dist/admin/components/ui/dialog/dialog-description.svelte +20 -0
- package/dist/admin/components/ui/dialog/dialog-description.svelte.d.ts +4 -0
- package/dist/admin/components/ui/dialog/dialog-footer.svelte +32 -0
- package/dist/admin/components/ui/dialog/dialog-footer.svelte.d.ts +8 -0
- package/dist/admin/components/ui/dialog/dialog-header.svelte +20 -0
- package/dist/admin/components/ui/dialog/dialog-header.svelte.d.ts +5 -0
- package/dist/admin/components/ui/dialog/dialog-overlay.svelte +20 -0
- package/dist/admin/components/ui/dialog/dialog-overlay.svelte.d.ts +4 -0
- package/dist/admin/components/ui/dialog/dialog-portal.svelte +7 -0
- package/dist/admin/components/ui/dialog/dialog-portal.svelte.d.ts +3 -0
- package/dist/admin/components/ui/dialog/dialog-title.svelte +17 -0
- package/dist/admin/components/ui/dialog/dialog-title.svelte.d.ts +4 -0
- package/dist/admin/components/ui/dialog/dialog-trigger.svelte +11 -0
- package/dist/admin/components/ui/dialog/dialog-trigger.svelte.d.ts +4 -0
- package/dist/admin/components/ui/dialog/dialog.svelte +7 -0
- package/dist/admin/components/ui/dialog/dialog.svelte.d.ts +3 -0
- package/dist/admin/components/ui/dialog/index.d.ts +11 -0
- package/dist/admin/components/ui/dialog/index.js +13 -0
- package/dist/admin/components/ui/input/index.d.ts +2 -0
- package/dist/admin/components/ui/input/index.js +4 -0
- package/dist/admin/components/ui/input/input.svelte +48 -0
- package/dist/admin/components/ui/input/input.svelte.d.ts +13 -0
- package/dist/admin/components/ui/label/index.d.ts +2 -0
- package/dist/admin/components/ui/label/index.js +4 -0
- package/dist/admin/components/ui/label/label.svelte +20 -0
- package/dist/admin/components/ui/label/label.svelte.d.ts +4 -0
- package/dist/admin/components/ui/select/index.d.ts +13 -0
- package/dist/admin/components/ui/select/index.js +15 -0
- package/dist/admin/components/ui/select/select-content.svelte +45 -0
- package/dist/admin/components/ui/select/select-content.svelte.d.ts +11 -0
- package/dist/admin/components/ui/select/select-group-heading.svelte +21 -0
- package/dist/admin/components/ui/select/select-group-heading.svelte.d.ts +10 -0
- package/dist/admin/components/ui/select/select-group.svelte +17 -0
- package/dist/admin/components/ui/select/select-group.svelte.d.ts +4 -0
- package/dist/admin/components/ui/select/select-item.svelte +42 -0
- package/dist/admin/components/ui/select/select-item.svelte.d.ts +4 -0
- package/dist/admin/components/ui/select/select-label.svelte +20 -0
- package/dist/admin/components/ui/select/select-label.svelte.d.ts +6 -0
- package/dist/admin/components/ui/select/select-portal.svelte +7 -0
- package/dist/admin/components/ui/select/select-portal.svelte.d.ts +3 -0
- package/dist/admin/components/ui/select/select-scroll-down-button.svelte +23 -0
- package/dist/admin/components/ui/select/select-scroll-down-button.svelte.d.ts +4 -0
- package/dist/admin/components/ui/select/select-scroll-up-button.svelte +23 -0
- package/dist/admin/components/ui/select/select-scroll-up-button.svelte.d.ts +4 -0
- package/dist/admin/components/ui/select/select-separator.svelte +18 -0
- package/dist/admin/components/ui/select/select-separator.svelte.d.ts +4 -0
- package/dist/admin/components/ui/select/select-trigger.svelte +29 -0
- package/dist/admin/components/ui/select/select-trigger.svelte.d.ts +8 -0
- package/dist/admin/components/ui/select/select-value.svelte +7 -0
- package/dist/admin/components/ui/select/select-value.svelte.d.ts +4 -0
- package/dist/admin/components/ui/select/select.svelte +11 -0
- package/dist/admin/components/ui/select/select.svelte.d.ts +3 -0
- package/dist/admin/components/ui/separator/index.d.ts +2 -0
- package/dist/admin/components/ui/separator/index.js +4 -0
- package/dist/admin/components/ui/separator/separator.svelte +21 -0
- package/dist/admin/components/ui/separator/separator.svelte.d.ts +4 -0
- package/dist/admin/components/ui/switch/index.d.ts +2 -0
- package/dist/admin/components/ui/switch/index.js +4 -0
- package/dist/admin/components/ui/switch/switch.svelte +34 -0
- package/dist/admin/components/ui/switch/switch.svelte.d.ts +8 -0
- package/dist/admin/components/ui/table/index.d.ts +9 -0
- package/dist/admin/components/ui/table/index.js +11 -0
- package/dist/admin/components/ui/table/table-body.svelte +20 -0
- package/dist/admin/components/ui/table/table-body.svelte.d.ts +5 -0
- package/dist/admin/components/ui/table/table-caption.svelte +20 -0
- package/dist/admin/components/ui/table/table-caption.svelte.d.ts +5 -0
- package/dist/admin/components/ui/table/table-cell.svelte +20 -0
- package/dist/admin/components/ui/table/table-cell.svelte.d.ts +5 -0
- package/dist/admin/components/ui/table/table-footer.svelte +20 -0
- package/dist/admin/components/ui/table/table-footer.svelte.d.ts +5 -0
- package/dist/admin/components/ui/table/table-head.svelte +23 -0
- package/dist/admin/components/ui/table/table-head.svelte.d.ts +5 -0
- package/dist/admin/components/ui/table/table-header.svelte +20 -0
- package/dist/admin/components/ui/table/table-header.svelte.d.ts +5 -0
- package/dist/admin/components/ui/table/table-row.svelte +23 -0
- package/dist/admin/components/ui/table/table-row.svelte.d.ts +5 -0
- package/dist/admin/components/ui/table/table.svelte +22 -0
- package/dist/admin/components/ui/table/table.svelte.d.ts +5 -0
- package/dist/admin/components/ui/textarea/index.d.ts +2 -0
- package/dist/admin/components/ui/textarea/index.js +4 -0
- package/dist/admin/components/ui/textarea/textarea.svelte +22 -0
- package/dist/admin/components/ui/textarea/textarea.svelte.d.ts +5 -0
- package/dist/admin/components/ui/toggle/index.d.ts +3 -0
- package/dist/admin/components/ui/toggle/index.js +5 -0
- package/dist/admin/components/ui/toggle/toggle.svelte +52 -0
- package/dist/admin/components/ui/toggle/toggle.svelte.d.ts +43 -0
- package/dist/admin/generated/FONT-LICENSE +93 -0
- package/dist/admin/generated/Geist-LICENSE.txt +93 -0
- package/dist/admin/generated/admin.css +3276 -0
- package/dist/admin/generated/fonts/geist-cyrillic-ext-wght-italic.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-cyrillic-wght-italic.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-cyrillic-wght-normal.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-latin-ext-wght-italic.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-latin-ext-wght-normal.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-latin-wght-italic.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-latin-wght-normal.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-vietnamese-wght-italic.woff2 +0 -0
- package/dist/admin/generated/fonts/geist-vietnamese-wght-normal.woff2 +0 -0
- package/dist/admin/generated/geist-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/admin/generated/geist-cyrillic-wght-normal.woff2 +0 -0
- package/dist/admin/generated/geist-latin-ext-wght-normal.woff2 +0 -0
- package/dist/admin/generated/geist-latin-wght-normal.woff2 +0 -0
- package/dist/admin/generated/geist-vietnamese-wght-normal.woff2 +0 -0
- package/dist/admin/generated/styles.css +2772 -0
- package/dist/admin/index.d.ts +2 -0
- package/dist/admin/index.js +1 -0
- package/dist/admin/types.d.ts +63 -0
- package/dist/admin/types.js +1 -0
- package/dist/admin/uploads.d.ts +12 -0
- package/dist/admin/uploads.js +23 -0
- package/dist/admin/utils.d.ts +11 -0
- package/dist/admin/utils.js +1 -0
- package/dist/blueprints/files.d.ts +7 -0
- package/dist/blueprints/files.js +112 -0
- package/dist/blueprints/gallery.d.ts +3 -0
- package/dist/blueprints/gallery.js +14 -0
- package/dist/blueprints/load.d.ts +6 -0
- package/dist/blueprints/load.js +186 -0
- package/dist/blueprints/merge.d.ts +2 -0
- package/dist/blueprints/merge.js +18 -0
- package/dist/blueprints/types.d.ts +58 -0
- package/dist/blueprints/types.js +1 -0
- package/dist/blueprints/validate.d.ts +8 -0
- package/dist/blueprints/validate.js +133 -0
- package/dist/cli/backup.d.ts +6 -0
- package/dist/cli/backup.js +85 -0
- package/dist/cli/cloudflare.d.ts +8 -0
- package/dist/cli/cloudflare.js +123 -0
- package/dist/cli/doctor.d.ts +1 -0
- package/dist/cli/doctor.js +56 -0
- package/dist/cli/files.d.ts +30 -0
- package/dist/cli/files.js +114 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +182 -0
- package/dist/cli/prompts.d.ts +5 -0
- package/dist/cli/prompts.js +41 -0
- package/dist/cli/scaffold.d.ts +2 -0
- package/dist/cli/scaffold.js +58 -0
- package/dist/cli/setup.d.ts +11 -0
- package/dist/cli/setup.js +116 -0
- package/dist/cli/upgrade.d.ts +1 -0
- package/dist/cli/upgrade.js +47 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +4 -0
- package/dist/media.d.ts +26 -0
- package/dist/media.js +27 -0
- package/dist/notification-fields.d.ts +8 -0
- package/dist/notification-fields.js +26 -0
- package/dist/richtext.d.ts +14 -0
- package/dist/richtext.js +73 -0
- package/dist/server/access.d.ts +16 -0
- package/dist/server/access.js +216 -0
- package/dist/server/admin-load.d.ts +342 -0
- package/dist/server/admin-load.js +135 -0
- package/dist/server/api.d.ts +3 -0
- package/dist/server/api.js +144 -0
- package/dist/server/auth.d.ts +744 -0
- package/dist/server/auth.js +142 -0
- package/dist/server/blueprint-icons.d.ts +4 -0
- package/dist/server/blueprint-icons.js +14 -0
- package/dist/server/cms.d.ts +1054 -0
- package/dist/server/cms.js +58 -0
- package/dist/server/content.d.ts +101 -0
- package/dist/server/content.js +285 -0
- package/dist/server/db/migration-data.d.ts +4 -0
- package/dist/server/db/migration-data.js +7 -0
- package/dist/server/db/migrations/0000_foundation.sql +180 -0
- package/dist/server/db/migrations/meta/0000_snapshot.json +1188 -0
- package/dist/server/db/migrations/meta/_journal.json +13 -0
- package/dist/server/db/schema.d.ts +2212 -0
- package/dist/server/db/schema.js +171 -0
- package/dist/server/db/store.d.ts +33 -0
- package/dist/server/db/store.js +131 -0
- package/dist/server/email/index.d.ts +50 -0
- package/dist/server/email/index.js +175 -0
- package/dist/server/email/template.d.ts +8 -0
- package/dist/server/email/template.js +53 -0
- package/dist/server/forms.d.ts +40 -0
- package/dist/server/forms.js +84 -0
- package/dist/server/hooks.d.ts +3 -0
- package/dist/server/hooks.js +85 -0
- package/dist/server/http.d.ts +3 -0
- package/dist/server/http.js +3 -0
- package/dist/server/index.d.ts +8 -0
- package/dist/server/index.js +7 -0
- package/dist/server/media/delivery.d.ts +3 -0
- package/dist/server/media/delivery.js +42 -0
- package/dist/server/media/presets.d.ts +2 -0
- package/dist/server/media/presets.js +8 -0
- package/dist/server/media/runner.d.ts +2 -0
- package/dist/server/media/runner.js +128 -0
- package/dist/server/media/service.d.ts +144 -0
- package/dist/server/media/service.js +280 -0
- package/dist/server/notifications.d.ts +9 -0
- package/dist/server/notifications.js +161 -0
- package/dist/server/request.d.ts +2 -0
- package/dist/server/request.js +39 -0
- package/dist/server/seo.d.ts +12 -0
- package/dist/server/seo.js +62 -0
- package/dist/worker/index.d.ts +10 -0
- package/dist/worker/index.js +266 -0
- package/dist/worker/source.d.ts +2 -0
- package/dist/worker/source.js +31 -0
- package/dist/worker/svg.d.ts +5 -0
- package/dist/worker/svg.js +142 -0
- package/docs/acceptance.md +58 -0
- package/docs/cloudflare.md +146 -0
- package/docs/content.md +188 -0
- package/docs/deployment.md +89 -0
- package/docs/email.md +124 -0
- package/docs/forms.md +18 -0
- package/docs/media.md +105 -0
- package/docs/package.md +84 -0
- package/docs/releases.md +29 -0
- package/docs/upgrades.md +62 -0
- package/package.json +124 -0
- package/templates/dockerignore +15 -0
- package/templates/hooks.server.ts +4 -0
- package/templates/integration.ts +20 -0
- package/templates/railpack.json +7 -0
- package/templates/routes/admin/+page.server.ts +3 -0
- package/templates/routes/admin/+page.svelte +6 -0
- package/templates/routes/api/+server.ts +4 -0
- package/templates/sandcms/blueprints/collections/photographers.yaml +6 -0
- package/templates/sandcms/blueprints/collections/projects.yaml +26 -0
- package/templates/sandcms/blueprints/files/image.yaml +6 -0
- package/templates/sandcms/blueprints/forms/registration.yaml +15 -0
- package/templates/sandcms/blueprints/pages/home.yaml +9 -0
- package/templates/sandcms/blueprints/site.yaml +13 -0
- package/templates/sandcms/config.yaml +12 -0
- package/templates/sandcms/worker/index.ts +1 -0
- package/templates/sandcms/worker/wrangler.jsonc +7 -0
package/dist/richtext.js
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
const nodes = new Set([
|
|
2
|
+
'doc',
|
|
3
|
+
'paragraph',
|
|
4
|
+
'text',
|
|
5
|
+
'heading',
|
|
6
|
+
'bulletList',
|
|
7
|
+
'orderedList',
|
|
8
|
+
'listItem',
|
|
9
|
+
'blockquote',
|
|
10
|
+
'hardBreak'
|
|
11
|
+
]);
|
|
12
|
+
const marks = new Set(['bold', 'italic', 'link']);
|
|
13
|
+
export function safeHref(href) {
|
|
14
|
+
return (typeof href === 'string' &&
|
|
15
|
+
(/^(https?:\/\/|mailto:)/i.test(href) || /^\/(?!\/)/.test(href)) &&
|
|
16
|
+
!/[\u0000-\u0020]/.test(href));
|
|
17
|
+
}
|
|
18
|
+
export function validateRichText(value) {
|
|
19
|
+
let count = 0;
|
|
20
|
+
function node(v, depth = 0) {
|
|
21
|
+
if (!v || typeof v !== 'object' || Array.isArray(v) || depth > 30 || ++count > 10000)
|
|
22
|
+
throw new Error('Invalid rich text structure');
|
|
23
|
+
const n = v;
|
|
24
|
+
if (!nodes.has(n.type) || (n.text !== undefined && typeof n.text !== 'string'))
|
|
25
|
+
throw new Error('Unsupported rich text node');
|
|
26
|
+
if (n.type === 'heading' && ![2, 3, 4].includes(Number(n.attrs?.level)))
|
|
27
|
+
throw new Error('Use heading levels 2–4');
|
|
28
|
+
if (n.marks !== undefined) {
|
|
29
|
+
if (!Array.isArray(n.marks))
|
|
30
|
+
throw new Error('Invalid text formatting');
|
|
31
|
+
for (const m of n.marks) {
|
|
32
|
+
if (!marks.has(m.type) || (m.type === 'link' && !safeHref(m.attrs?.href)))
|
|
33
|
+
throw new Error('Unsupported formatting or unsafe link');
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
if (n.content !== undefined) {
|
|
37
|
+
if (!Array.isArray(n.content))
|
|
38
|
+
throw new Error('Invalid rich text content');
|
|
39
|
+
n.content.forEach((c) => node(c, depth + 1));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
node(value);
|
|
43
|
+
if (value.type !== 'doc')
|
|
44
|
+
throw new Error('Rich text root must be a document');
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
const escape = (s) => s.replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
|
|
48
|
+
export function renderRichText(value) {
|
|
49
|
+
const root = validateRichText(value);
|
|
50
|
+
const render = (n) => {
|
|
51
|
+
let inner = n.type === 'text' ? escape(n.text ?? '') : (n.content ?? []).map(render).join('');
|
|
52
|
+
for (const m of n.marks ?? [])
|
|
53
|
+
inner =
|
|
54
|
+
m.type === 'link'
|
|
55
|
+
? `<a href="${escape(String(m.attrs?.href))}" rel="noopener noreferrer">${inner}</a>`
|
|
56
|
+
: `<${m.type === 'bold' ? 'strong' : 'em'}>${inner}</${m.type === 'bold' ? 'strong' : 'em'}>`;
|
|
57
|
+
if (n.type === 'text' || n.type === 'doc')
|
|
58
|
+
return inner;
|
|
59
|
+
if (n.type === 'hardBreak')
|
|
60
|
+
return '<br>';
|
|
61
|
+
const tag = n.type === 'heading'
|
|
62
|
+
? `h${n.attrs?.level}`
|
|
63
|
+
: {
|
|
64
|
+
paragraph: 'p',
|
|
65
|
+
bulletList: 'ul',
|
|
66
|
+
orderedList: 'ol',
|
|
67
|
+
listItem: 'li',
|
|
68
|
+
blockquote: 'blockquote'
|
|
69
|
+
}[n.type];
|
|
70
|
+
return `<${tag}>${inner}</${tag}>`;
|
|
71
|
+
};
|
|
72
|
+
return render(root);
|
|
73
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Store } from './db/store.js';
|
|
2
|
+
import { type createEmail } from './email/index.js';
|
|
3
|
+
export declare function createAccess(store: Store, email: ReturnType<typeof createEmail>, origin: string): {
|
|
4
|
+
list: () => {
|
|
5
|
+
id: string;
|
|
6
|
+
email: string;
|
|
7
|
+
role: "admin" | "editor";
|
|
8
|
+
expiresAt: number;
|
|
9
|
+
status: "failed" | "sending" | "accepted";
|
|
10
|
+
}[];
|
|
11
|
+
invite: (recipient: string, role: "admin" | "editor", actor: string) => Promise<void>;
|
|
12
|
+
resend: (id: string, actor: string) => Promise<void>;
|
|
13
|
+
revoke: (id: string, actor: string) => void;
|
|
14
|
+
requestReset(recipient: string): Promise<void>;
|
|
15
|
+
redeem(kind: "invite" | "reset", token: string, password: string, name?: string): Promise<void>;
|
|
16
|
+
};
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { createHash, randomBytes } from 'node:crypto';
|
|
2
|
+
import { and, eq } from 'drizzle-orm';
|
|
3
|
+
import { hashPassword } from 'better-auth/crypto';
|
|
4
|
+
import { accessLinks, account, user, session, audit } from './db/schema.js';
|
|
5
|
+
import { address } from './email/index.js';
|
|
6
|
+
import { emailTemplate } from './email/template.js';
|
|
7
|
+
import { rateLimit } from './forms.js';
|
|
8
|
+
const digest = (value) => createHash('sha256').update(value).digest('hex');
|
|
9
|
+
export function createAccess(store, email, origin) {
|
|
10
|
+
const findUser = (value) => store.db.select().from(user).where(eq(user.email, value)).get();
|
|
11
|
+
const credential = (id) => store.db
|
|
12
|
+
.select()
|
|
13
|
+
.from(account)
|
|
14
|
+
.where(and(eq(account.userId, id), eq(account.providerId, 'credential')))
|
|
15
|
+
.get();
|
|
16
|
+
function auditEvent(action, actor, id) {
|
|
17
|
+
store.db
|
|
18
|
+
.insert(audit)
|
|
19
|
+
.values({ id: crypto.randomUUID(), action, actor, detail: { id }, createdAt: Date.now() })
|
|
20
|
+
.run();
|
|
21
|
+
}
|
|
22
|
+
async function send(kind, recipient, role, actor) {
|
|
23
|
+
if (!email.enabled)
|
|
24
|
+
throw new Error('Email is not configured');
|
|
25
|
+
const normalized = recipient.trim().toLowerCase();
|
|
26
|
+
if (!address(normalized))
|
|
27
|
+
throw new Error('Enter a valid email address');
|
|
28
|
+
if (!['admin', 'editor'].includes(role))
|
|
29
|
+
throw new Error('Invalid role');
|
|
30
|
+
const existing = findUser(normalized);
|
|
31
|
+
if (kind === 'invite' && existing)
|
|
32
|
+
throw new Error('A user with this email already exists');
|
|
33
|
+
const password = existing && credential(existing.id)?.password;
|
|
34
|
+
if (kind === 'reset' && !password)
|
|
35
|
+
return;
|
|
36
|
+
const token = randomBytes(32).toString('base64url'), tokenHash = digest(token), now = Date.now();
|
|
37
|
+
const row = {
|
|
38
|
+
id: crypto.randomUUID(),
|
|
39
|
+
kind,
|
|
40
|
+
email: normalized,
|
|
41
|
+
role,
|
|
42
|
+
tokenHash,
|
|
43
|
+
credentialHash: kind === 'reset' ? digest(password) : null,
|
|
44
|
+
expiresAt: now + (kind === 'invite' ? 7 * 24 : 1) * 60 * 60 * 1000,
|
|
45
|
+
status: 'sending',
|
|
46
|
+
createdAt: now
|
|
47
|
+
};
|
|
48
|
+
store.db.transaction(() => {
|
|
49
|
+
store.db
|
|
50
|
+
.insert(accessLinks)
|
|
51
|
+
.values(row)
|
|
52
|
+
.onConflictDoUpdate({
|
|
53
|
+
target: [accessLinks.kind, accessLinks.email],
|
|
54
|
+
set: row
|
|
55
|
+
})
|
|
56
|
+
.run();
|
|
57
|
+
auditEvent(`${kind}.send`, actor, row.id);
|
|
58
|
+
});
|
|
59
|
+
try {
|
|
60
|
+
await email.send({
|
|
61
|
+
to: normalized,
|
|
62
|
+
subject: kind === 'invite' ? 'Your SandCMS invitation' : 'Reset your SandCMS password',
|
|
63
|
+
html: emailTemplate({
|
|
64
|
+
title: kind === 'invite' ? 'You’re invited to SandCMS' : 'Reset your password',
|
|
65
|
+
intro: kind === 'invite'
|
|
66
|
+
? `You have been invited as ${role}. Choose your name and password to get started.`
|
|
67
|
+
: 'Choose a new password for your SandCMS account.',
|
|
68
|
+
action: kind === 'invite' ? 'Accept invitation' : 'Reset password',
|
|
69
|
+
url: `${origin}/admin/${kind === 'invite' ? 'invite' : 'reset-password'}#${token}`,
|
|
70
|
+
footer: kind === 'invite'
|
|
71
|
+
? 'This link expires in seven days and can be used once.'
|
|
72
|
+
: 'This link expires in one hour and can be used once. If you did not request this, ignore this email.'
|
|
73
|
+
}),
|
|
74
|
+
text: kind === 'invite'
|
|
75
|
+
? `You have been invited as ${role}. Choose your name and password:\n\n${origin}/admin/invite#${token}\n\nThis link expires in seven days and can be used once.`
|
|
76
|
+
: `Choose a new password:\n\n${origin}/admin/reset-password#${token}\n\nThis link expires in one hour and can be used once. If you did not request this, ignore this email.`
|
|
77
|
+
});
|
|
78
|
+
store.db
|
|
79
|
+
.update(accessLinks)
|
|
80
|
+
.set({ status: 'accepted' })
|
|
81
|
+
.where(eq(accessLinks.tokenHash, tokenHash))
|
|
82
|
+
.run();
|
|
83
|
+
}
|
|
84
|
+
catch {
|
|
85
|
+
store.db
|
|
86
|
+
.update(accessLinks)
|
|
87
|
+
.set({ status: 'failed' })
|
|
88
|
+
.where(eq(accessLinks.tokenHash, tokenHash))
|
|
89
|
+
.run();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
list: () => store.db
|
|
94
|
+
.select({
|
|
95
|
+
id: accessLinks.id,
|
|
96
|
+
email: accessLinks.email,
|
|
97
|
+
role: accessLinks.role,
|
|
98
|
+
expiresAt: accessLinks.expiresAt,
|
|
99
|
+
status: accessLinks.status
|
|
100
|
+
})
|
|
101
|
+
.from(accessLinks)
|
|
102
|
+
.where(eq(accessLinks.kind, 'invite'))
|
|
103
|
+
.all(),
|
|
104
|
+
invite: (recipient, role, actor) => {
|
|
105
|
+
rateLimit(store, `invite:${actor}`, 10);
|
|
106
|
+
return send('invite', recipient, role, actor);
|
|
107
|
+
},
|
|
108
|
+
resend: async (id, actor) => {
|
|
109
|
+
const row = store.db
|
|
110
|
+
.select()
|
|
111
|
+
.from(accessLinks)
|
|
112
|
+
.where(and(eq(accessLinks.id, id), eq(accessLinks.kind, 'invite')))
|
|
113
|
+
.get();
|
|
114
|
+
if (!row)
|
|
115
|
+
throw new Error('Invitation not found');
|
|
116
|
+
rateLimit(store, `invite:${actor}`, 10);
|
|
117
|
+
await send('invite', row.email, row.role, actor);
|
|
118
|
+
},
|
|
119
|
+
revoke: (id, actor) => store.db.transaction(() => {
|
|
120
|
+
store.db
|
|
121
|
+
.delete(accessLinks)
|
|
122
|
+
.where(and(eq(accessLinks.id, id), eq(accessLinks.kind, 'invite')))
|
|
123
|
+
.run();
|
|
124
|
+
auditEvent('invite.revoke', actor, id);
|
|
125
|
+
}),
|
|
126
|
+
async requestReset(recipient) {
|
|
127
|
+
// The HTTP response is identical for absent users, invalid addresses and send failures.
|
|
128
|
+
const normalized = recipient.trim().toLowerCase();
|
|
129
|
+
if (!email.enabled || !address(normalized))
|
|
130
|
+
return;
|
|
131
|
+
try {
|
|
132
|
+
rateLimit(store, `reset-email:${digest(normalized)}`, 3, 60 * 60 * 1000);
|
|
133
|
+
await send('reset', normalized, 'editor', 'self-service');
|
|
134
|
+
}
|
|
135
|
+
catch {
|
|
136
|
+
// Link persistence and send-status writes must not reveal account existence either.
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
async redeem(kind, token, password, name = '') {
|
|
141
|
+
if (!email.enabled)
|
|
142
|
+
throw new Error('Email is not configured');
|
|
143
|
+
if (password.length < 12 || password.length > 128)
|
|
144
|
+
throw new Error('Use a password with 12–128 characters');
|
|
145
|
+
if (kind === 'invite' && (!name.trim() || name.length > 200))
|
|
146
|
+
throw new Error('Enter your name (up to 200 characters)');
|
|
147
|
+
const tokenHash = digest(token);
|
|
148
|
+
const lookup = () => store.db
|
|
149
|
+
.select()
|
|
150
|
+
.from(accessLinks)
|
|
151
|
+
.where(and(eq(accessLinks.tokenHash, tokenHash), eq(accessLinks.kind, kind)))
|
|
152
|
+
.get();
|
|
153
|
+
const valid = () => {
|
|
154
|
+
const row = lookup();
|
|
155
|
+
if (!row || row.expiresAt <= Date.now())
|
|
156
|
+
throw new Error('This link is invalid or has expired');
|
|
157
|
+
return row;
|
|
158
|
+
};
|
|
159
|
+
valid();
|
|
160
|
+
const hashed = await hashPassword(password);
|
|
161
|
+
store.db.transaction(() => {
|
|
162
|
+
const row = valid(), now = new Date();
|
|
163
|
+
let existing = findUser(row.email);
|
|
164
|
+
if (kind === 'invite') {
|
|
165
|
+
if (existing)
|
|
166
|
+
throw new Error('A user with this email already exists');
|
|
167
|
+
const id = crypto.randomUUID();
|
|
168
|
+
store.db
|
|
169
|
+
.insert(user)
|
|
170
|
+
.values({
|
|
171
|
+
id,
|
|
172
|
+
email: row.email,
|
|
173
|
+
name: name.trim(),
|
|
174
|
+
role: row.role,
|
|
175
|
+
emailVerified: true,
|
|
176
|
+
mustChangePassword: false,
|
|
177
|
+
createdAt: now,
|
|
178
|
+
updatedAt: now
|
|
179
|
+
})
|
|
180
|
+
.run();
|
|
181
|
+
store.db
|
|
182
|
+
.insert(account)
|
|
183
|
+
.values({
|
|
184
|
+
id: crypto.randomUUID(),
|
|
185
|
+
accountId: id,
|
|
186
|
+
userId: id,
|
|
187
|
+
providerId: 'credential',
|
|
188
|
+
password: hashed,
|
|
189
|
+
createdAt: now,
|
|
190
|
+
updatedAt: now
|
|
191
|
+
})
|
|
192
|
+
.run();
|
|
193
|
+
auditEvent('invite.accept', id, row.id);
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
const old = existing && credential(existing.id);
|
|
197
|
+
if (!existing || !old?.password || digest(old.password) !== row.credentialHash)
|
|
198
|
+
throw new Error('This link is invalid or has expired');
|
|
199
|
+
store.db
|
|
200
|
+
.update(account)
|
|
201
|
+
.set({ password: hashed, updatedAt: now })
|
|
202
|
+
.where(eq(account.id, old.id))
|
|
203
|
+
.run();
|
|
204
|
+
store.db
|
|
205
|
+
.update(user)
|
|
206
|
+
.set({ mustChangePassword: false, updatedAt: now })
|
|
207
|
+
.where(eq(user.id, existing.id))
|
|
208
|
+
.run();
|
|
209
|
+
store.db.delete(session).where(eq(session.userId, existing.id)).run();
|
|
210
|
+
auditEvent('password.reset', existing.id, row.id);
|
|
211
|
+
}
|
|
212
|
+
store.db.delete(accessLinks).where(eq(accessLinks.id, row.id)).run();
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
}
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import { type RequestEvent } from '@sveltejs/kit';
|
|
2
|
+
import type { CMS } from './cms.js';
|
|
3
|
+
export declare function adminLoad(cms: CMS, event: RequestEvent): Promise<{
|
|
4
|
+
screen: string;
|
|
5
|
+
user: {
|
|
6
|
+
id: string;
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
updatedAt: Date;
|
|
9
|
+
email: string;
|
|
10
|
+
emailVerified: boolean;
|
|
11
|
+
name: string;
|
|
12
|
+
image?: string | null | undefined | undefined;
|
|
13
|
+
role: string;
|
|
14
|
+
mustChangePassword: boolean;
|
|
15
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
16
|
+
};
|
|
17
|
+
site: string;
|
|
18
|
+
blueprints: {
|
|
19
|
+
navigationIcon: import("@lucide/svelte").LucideIconData;
|
|
20
|
+
id: string;
|
|
21
|
+
label: string;
|
|
22
|
+
kind: "page" | "site" | "collection" | "form";
|
|
23
|
+
icon?: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
preview?: string;
|
|
26
|
+
fields: Record<string, import("../index.ts").Field>;
|
|
27
|
+
columns?: string[];
|
|
28
|
+
export?: string[];
|
|
29
|
+
}[];
|
|
30
|
+
emailEnabled: boolean;
|
|
31
|
+
workerUrl: string;
|
|
32
|
+
mediaVersion: string;
|
|
33
|
+
fileBlueprints: import("../index.ts").FileBlueprint[];
|
|
34
|
+
defaultFileBlueprint: string;
|
|
35
|
+
} | {
|
|
36
|
+
screen: string;
|
|
37
|
+
user: null;
|
|
38
|
+
emailEnabled: boolean;
|
|
39
|
+
next?: undefined;
|
|
40
|
+
} | {
|
|
41
|
+
screen: string;
|
|
42
|
+
user: null;
|
|
43
|
+
emailEnabled: boolean;
|
|
44
|
+
next: string;
|
|
45
|
+
} | {
|
|
46
|
+
blueprint: import("../index.ts").Blueprint;
|
|
47
|
+
entry: {
|
|
48
|
+
id: string;
|
|
49
|
+
blueprint: string;
|
|
50
|
+
singleton: string | null;
|
|
51
|
+
draft: import("../index.ts").Payload;
|
|
52
|
+
published: import("../index.ts").Payload | null;
|
|
53
|
+
draftSlug: string | null;
|
|
54
|
+
publishedSlug: string | null;
|
|
55
|
+
version: number;
|
|
56
|
+
publishedAt: number | null;
|
|
57
|
+
updatedAt: number;
|
|
58
|
+
createdAt: number;
|
|
59
|
+
} | null | undefined;
|
|
60
|
+
entries: {
|
|
61
|
+
id: string;
|
|
62
|
+
blueprint: string;
|
|
63
|
+
singleton: string | null;
|
|
64
|
+
draft: import("../index.ts").Payload;
|
|
65
|
+
published: import("../index.ts").Payload | null;
|
|
66
|
+
draftSlug: string | null;
|
|
67
|
+
publishedSlug: string | null;
|
|
68
|
+
version: number;
|
|
69
|
+
publishedAt: number | null;
|
|
70
|
+
updatedAt: number;
|
|
71
|
+
createdAt: number;
|
|
72
|
+
}[];
|
|
73
|
+
editing: boolean;
|
|
74
|
+
assets: {
|
|
75
|
+
blueprint: string;
|
|
76
|
+
metadata: import("../index.ts").Payload;
|
|
77
|
+
id: string;
|
|
78
|
+
filename: string;
|
|
79
|
+
mime: string;
|
|
80
|
+
bytes: number;
|
|
81
|
+
status: "processing" | "ready" | "failed";
|
|
82
|
+
activeVersion: string | null;
|
|
83
|
+
targetVersion: string;
|
|
84
|
+
variants: import("./db/schema.js").Variant[];
|
|
85
|
+
error: string | null;
|
|
86
|
+
createdAt: number;
|
|
87
|
+
}[];
|
|
88
|
+
relations: {
|
|
89
|
+
[k: string]: {
|
|
90
|
+
id: string;
|
|
91
|
+
label: string;
|
|
92
|
+
}[];
|
|
93
|
+
};
|
|
94
|
+
screen: string;
|
|
95
|
+
user: {
|
|
96
|
+
id: string;
|
|
97
|
+
createdAt: Date;
|
|
98
|
+
updatedAt: Date;
|
|
99
|
+
email: string;
|
|
100
|
+
emailVerified: boolean;
|
|
101
|
+
name: string;
|
|
102
|
+
image?: string | null | undefined | undefined;
|
|
103
|
+
role: string;
|
|
104
|
+
mustChangePassword: boolean;
|
|
105
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
106
|
+
};
|
|
107
|
+
site: string;
|
|
108
|
+
blueprints: {
|
|
109
|
+
navigationIcon: import("@lucide/svelte").LucideIconData;
|
|
110
|
+
id: string;
|
|
111
|
+
label: string;
|
|
112
|
+
kind: "page" | "site" | "collection" | "form";
|
|
113
|
+
icon?: string;
|
|
114
|
+
description?: string;
|
|
115
|
+
preview?: string;
|
|
116
|
+
fields: Record<string, import("../index.ts").Field>;
|
|
117
|
+
columns?: string[];
|
|
118
|
+
export?: string[];
|
|
119
|
+
}[];
|
|
120
|
+
emailEnabled: boolean;
|
|
121
|
+
workerUrl: string;
|
|
122
|
+
mediaVersion: string;
|
|
123
|
+
fileBlueprints: import("../index.ts").FileBlueprint[];
|
|
124
|
+
defaultFileBlueprint: string;
|
|
125
|
+
next?: undefined;
|
|
126
|
+
} | {
|
|
127
|
+
assets: {
|
|
128
|
+
blueprint: string;
|
|
129
|
+
metadata: import("../index.ts").Payload;
|
|
130
|
+
id: string;
|
|
131
|
+
filename: string;
|
|
132
|
+
mime: string;
|
|
133
|
+
bytes: number;
|
|
134
|
+
status: "processing" | "ready" | "failed";
|
|
135
|
+
activeVersion: string | null;
|
|
136
|
+
targetVersion: string;
|
|
137
|
+
variants: import("./db/schema.js").Variant[];
|
|
138
|
+
error: string | null;
|
|
139
|
+
createdAt: number;
|
|
140
|
+
}[];
|
|
141
|
+
relations: {
|
|
142
|
+
[k: string]: {
|
|
143
|
+
id: string;
|
|
144
|
+
label: string;
|
|
145
|
+
}[];
|
|
146
|
+
};
|
|
147
|
+
photographerCollection: string | undefined;
|
|
148
|
+
uploadLimit: number;
|
|
149
|
+
usages: {
|
|
150
|
+
[k: string]: {
|
|
151
|
+
documentId: string;
|
|
152
|
+
snapshot: "draft" | "published";
|
|
153
|
+
blueprint: string;
|
|
154
|
+
}[];
|
|
155
|
+
};
|
|
156
|
+
screen: string;
|
|
157
|
+
user: {
|
|
158
|
+
id: string;
|
|
159
|
+
createdAt: Date;
|
|
160
|
+
updatedAt: Date;
|
|
161
|
+
email: string;
|
|
162
|
+
emailVerified: boolean;
|
|
163
|
+
name: string;
|
|
164
|
+
image?: string | null | undefined | undefined;
|
|
165
|
+
role: string;
|
|
166
|
+
mustChangePassword: boolean;
|
|
167
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
168
|
+
};
|
|
169
|
+
site: string;
|
|
170
|
+
blueprints: {
|
|
171
|
+
navigationIcon: import("@lucide/svelte").LucideIconData;
|
|
172
|
+
id: string;
|
|
173
|
+
label: string;
|
|
174
|
+
kind: "page" | "site" | "collection" | "form";
|
|
175
|
+
icon?: string;
|
|
176
|
+
description?: string;
|
|
177
|
+
preview?: string;
|
|
178
|
+
fields: Record<string, import("../index.ts").Field>;
|
|
179
|
+
columns?: string[];
|
|
180
|
+
export?: string[];
|
|
181
|
+
}[];
|
|
182
|
+
emailEnabled: boolean;
|
|
183
|
+
workerUrl: string;
|
|
184
|
+
mediaVersion: string;
|
|
185
|
+
fileBlueprints: import("../index.ts").FileBlueprint[];
|
|
186
|
+
defaultFileBlueprint: string;
|
|
187
|
+
next?: undefined;
|
|
188
|
+
} | {
|
|
189
|
+
blueprint: import("../index.ts").Blueprint;
|
|
190
|
+
submissions: {
|
|
191
|
+
id: string;
|
|
192
|
+
formId: string;
|
|
193
|
+
data: import("../index.ts").Payload;
|
|
194
|
+
schema: import("../index.ts").Blueprint;
|
|
195
|
+
read: boolean;
|
|
196
|
+
notification: {
|
|
197
|
+
attemptedAt: number;
|
|
198
|
+
outcomes: import("./db/schema.js").NotificationOutcome[];
|
|
199
|
+
} | null;
|
|
200
|
+
createdAt: number;
|
|
201
|
+
}[];
|
|
202
|
+
selectedSubmission: string | null;
|
|
203
|
+
notificationSettings: import("./db/schema.js").NotificationSettings | undefined;
|
|
204
|
+
notificationsEnabled: boolean;
|
|
205
|
+
notificationUsers: {
|
|
206
|
+
id: string;
|
|
207
|
+
name: string;
|
|
208
|
+
email: string;
|
|
209
|
+
}[] | undefined;
|
|
210
|
+
screen: string;
|
|
211
|
+
user: {
|
|
212
|
+
id: string;
|
|
213
|
+
createdAt: Date;
|
|
214
|
+
updatedAt: Date;
|
|
215
|
+
email: string;
|
|
216
|
+
emailVerified: boolean;
|
|
217
|
+
name: string;
|
|
218
|
+
image?: string | null | undefined | undefined;
|
|
219
|
+
role: string;
|
|
220
|
+
mustChangePassword: boolean;
|
|
221
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
222
|
+
};
|
|
223
|
+
site: string;
|
|
224
|
+
blueprints: {
|
|
225
|
+
navigationIcon: import("@lucide/svelte").LucideIconData;
|
|
226
|
+
id: string;
|
|
227
|
+
label: string;
|
|
228
|
+
kind: "page" | "site" | "collection" | "form";
|
|
229
|
+
icon?: string;
|
|
230
|
+
description?: string;
|
|
231
|
+
preview?: string;
|
|
232
|
+
fields: Record<string, import("../index.ts").Field>;
|
|
233
|
+
columns?: string[];
|
|
234
|
+
export?: string[];
|
|
235
|
+
}[];
|
|
236
|
+
emailEnabled: boolean;
|
|
237
|
+
workerUrl: string;
|
|
238
|
+
mediaVersion: string;
|
|
239
|
+
fileBlueprints: import("../index.ts").FileBlueprint[];
|
|
240
|
+
defaultFileBlueprint: string;
|
|
241
|
+
next?: undefined;
|
|
242
|
+
} | {
|
|
243
|
+
invitations: {
|
|
244
|
+
id: string;
|
|
245
|
+
email: string;
|
|
246
|
+
role: "admin" | "editor";
|
|
247
|
+
expiresAt: number;
|
|
248
|
+
status: "failed" | "sending" | "accepted";
|
|
249
|
+
}[];
|
|
250
|
+
users: {
|
|
251
|
+
id: string;
|
|
252
|
+
name: string;
|
|
253
|
+
email: string;
|
|
254
|
+
role: "admin" | "editor";
|
|
255
|
+
twoFactorEnabled: boolean | null;
|
|
256
|
+
}[];
|
|
257
|
+
screen: string;
|
|
258
|
+
user: {
|
|
259
|
+
id: string;
|
|
260
|
+
createdAt: Date;
|
|
261
|
+
updatedAt: Date;
|
|
262
|
+
email: string;
|
|
263
|
+
emailVerified: boolean;
|
|
264
|
+
name: string;
|
|
265
|
+
image?: string | null | undefined | undefined;
|
|
266
|
+
role: string;
|
|
267
|
+
mustChangePassword: boolean;
|
|
268
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
269
|
+
};
|
|
270
|
+
site: string;
|
|
271
|
+
blueprints: {
|
|
272
|
+
navigationIcon: import("@lucide/svelte").LucideIconData;
|
|
273
|
+
id: string;
|
|
274
|
+
label: string;
|
|
275
|
+
kind: "page" | "site" | "collection" | "form";
|
|
276
|
+
icon?: string;
|
|
277
|
+
description?: string;
|
|
278
|
+
preview?: string;
|
|
279
|
+
fields: Record<string, import("../index.ts").Field>;
|
|
280
|
+
columns?: string[];
|
|
281
|
+
export?: string[];
|
|
282
|
+
}[];
|
|
283
|
+
emailEnabled: boolean;
|
|
284
|
+
workerUrl: string;
|
|
285
|
+
mediaVersion: string;
|
|
286
|
+
fileBlueprints: import("../index.ts").FileBlueprint[];
|
|
287
|
+
defaultFileBlueprint: string;
|
|
288
|
+
next?: undefined;
|
|
289
|
+
} | {
|
|
290
|
+
entries: {
|
|
291
|
+
label: string;
|
|
292
|
+
id: string;
|
|
293
|
+
blueprint: string;
|
|
294
|
+
singleton: string | null;
|
|
295
|
+
draft: import("../index.ts").Payload;
|
|
296
|
+
published: import("../index.ts").Payload | null;
|
|
297
|
+
draftSlug: string | null;
|
|
298
|
+
publishedSlug: string | null;
|
|
299
|
+
version: number;
|
|
300
|
+
publishedAt: number | null;
|
|
301
|
+
updatedAt: number;
|
|
302
|
+
createdAt: number;
|
|
303
|
+
}[];
|
|
304
|
+
stats: {
|
|
305
|
+
entries: number;
|
|
306
|
+
published: number;
|
|
307
|
+
media: number;
|
|
308
|
+
unread: number;
|
|
309
|
+
};
|
|
310
|
+
screen: string;
|
|
311
|
+
user: {
|
|
312
|
+
id: string;
|
|
313
|
+
createdAt: Date;
|
|
314
|
+
updatedAt: Date;
|
|
315
|
+
email: string;
|
|
316
|
+
emailVerified: boolean;
|
|
317
|
+
name: string;
|
|
318
|
+
image?: string | null | undefined | undefined;
|
|
319
|
+
role: string;
|
|
320
|
+
mustChangePassword: boolean;
|
|
321
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
322
|
+
};
|
|
323
|
+
site: string;
|
|
324
|
+
blueprints: {
|
|
325
|
+
navigationIcon: import("@lucide/svelte").LucideIconData;
|
|
326
|
+
id: string;
|
|
327
|
+
label: string;
|
|
328
|
+
kind: "page" | "site" | "collection" | "form";
|
|
329
|
+
icon?: string;
|
|
330
|
+
description?: string;
|
|
331
|
+
preview?: string;
|
|
332
|
+
fields: Record<string, import("../index.ts").Field>;
|
|
333
|
+
columns?: string[];
|
|
334
|
+
export?: string[];
|
|
335
|
+
}[];
|
|
336
|
+
emailEnabled: boolean;
|
|
337
|
+
workerUrl: string;
|
|
338
|
+
mediaVersion: string;
|
|
339
|
+
fileBlueprints: import("../index.ts").FileBlueprint[];
|
|
340
|
+
defaultFileBlueprint: string;
|
|
341
|
+
next?: undefined;
|
|
342
|
+
}>;
|