@kardalum/plugin-sdk 0.0.0-stage → 0.16.0
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/CHANGELOG.md +118 -0
- package/LICENSE +202 -0
- package/README.md +80 -2
- package/dist/admin-section-registry.d.ts +34 -0
- package/dist/admin-section-registry.js +49 -0
- package/dist/built-in-serializers.d.ts +3 -0
- package/dist/built-in-serializers.js +18 -0
- package/dist/built-in-settings-schemas.d.ts +14 -0
- package/dist/built-in-settings-schemas.js +225 -0
- package/dist/built-in-value-schemas.d.ts +4 -0
- package/dist/built-in-value-schemas.js +47 -0
- package/dist/built-ins.d.ts +1 -0
- package/dist/built-ins.js +257 -0
- package/dist/capabilities.d.ts +29 -0
- package/dist/capabilities.js +67 -0
- package/dist/data-type-plugin.d.ts +28 -0
- package/dist/data-type-plugin.js +1 -0
- package/dist/datatype-validation.d.ts +26 -0
- package/dist/datatype-validation.js +110 -0
- package/dist/datatypes-entry.d.ts +4 -0
- package/dist/datatypes-entry.js +18 -0
- package/dist/define-plugin.d.ts +25 -0
- package/dist/define-plugin.js +51 -0
- package/dist/entitlement-entry.d.ts +5 -0
- package/dist/entitlement-entry.js +24 -0
- package/dist/entitlement-gate.d.ts +36 -0
- package/dist/entitlement-gate.js +201 -0
- package/dist/entitlement-types.d.ts +39 -0
- package/dist/entitlement-types.js +1 -0
- package/dist/entitlement.d.ts +57 -0
- package/dist/entitlement.js +170 -0
- package/dist/host-entry.d.ts +1 -0
- package/dist/host-entry.js +11 -0
- package/dist/icon-name.d.ts +1 -0
- package/dist/icon-name.js +1 -0
- package/dist/icons.d.ts +2 -0
- package/dist/icons.js +10 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +94 -0
- package/dist/license-verdict-keys.d.ts +18 -0
- package/dist/license-verdict-keys.js +26 -0
- package/dist/local-host.d.ts +3 -0
- package/dist/local-host.js +38 -0
- package/dist/manifest-entry.d.ts +8 -0
- package/dist/manifest-entry.js +13 -0
- package/dist/manifest-schema.d.ts +476 -0
- package/dist/manifest-schema.js +823 -0
- package/dist/manifest.d.ts +611 -0
- package/dist/manifest.js +86 -0
- package/dist/media/media-picker.d.ts +39 -0
- package/dist/media/media-picker.js +447 -0
- package/dist/media/upload-error.d.ts +12 -0
- package/dist/media/upload-error.js +30 -0
- package/dist/plugin-context.d.ts +82 -0
- package/dist/plugin-context.js +77 -0
- package/dist/plugin-screen-context.d.ts +71 -0
- package/dist/plugin-screen-context.js +41 -0
- package/dist/read-all-pages.d.ts +23 -0
- package/dist/read-all-pages.js +30 -0
- package/dist/register-built-ins.d.ts +1 -0
- package/dist/register-built-ins.js +41 -0
- package/dist/registry.d.ts +4 -0
- package/dist/registry.js +17 -0
- package/dist/rendition-eligibility.d.ts +24 -0
- package/dist/rendition-eligibility.js +40 -0
- package/dist/richtext/block-panel.d.ts +27 -0
- package/dist/richtext/block-panel.js +232 -0
- package/dist/richtext/extensions.d.ts +19 -0
- package/dist/richtext/extensions.js +56 -0
- package/dist/richtext/insert-menu.d.ts +24 -0
- package/dist/richtext/insert-menu.js +142 -0
- package/dist/richtext/kardalum-block.d.ts +33 -0
- package/dist/richtext/kardalum-block.js +282 -0
- package/dist/richtext/style-listbox.d.ts +10 -0
- package/dist/richtext/style-listbox.js +69 -0
- package/dist/richtext/text-style-class.d.ts +18 -0
- package/dist/richtext/text-style-class.js +36 -0
- package/dist/simple-storage-value-provider.d.ts +9 -0
- package/dist/simple-storage-value-provider.js +96 -0
- package/dist/structured-storage-types.d.ts +61 -0
- package/dist/structured-storage-types.js +11 -0
- package/dist/tailwind.d.ts +1 -0
- package/dist/tailwind.js +5 -0
- package/dist/tokens/system-dark.css +75 -0
- package/dist/tokens/tokens.css +239 -0
- package/dist/tokens/tokens.json +212 -0
- package/dist/tokens.d.ts +1 -0
- package/dist/tokens.js +11 -0
- package/dist/ui-entry.d.ts +5 -0
- package/dist/ui-entry.js +42 -0
- package/dist/views/content-list-preview.d.ts +1 -0
- package/dist/views/content-list-preview.js +14 -0
- package/dist/views/content-list-settings-view.d.ts +1 -0
- package/dist/views/content-list-settings-view.js +97 -0
- package/dist/views/content-list-view.d.ts +19 -0
- package/dist/views/content-list-view.js +248 -0
- package/dist/views/crop-view.d.ts +55 -0
- package/dist/views/crop-view.js +161 -0
- package/dist/views/date-range-view.d.ts +6 -0
- package/dist/views/date-range-view.js +55 -0
- package/dist/views/file-upload-view.d.ts +43 -0
- package/dist/views/file-upload-view.js +104 -0
- package/dist/views/html-code-editor.d.ts +10 -0
- package/dist/views/html-code-editor.js +101 -0
- package/dist/views/html-view.d.ts +3 -0
- package/dist/views/html-view.js +53 -0
- package/dist/views/image-view.d.ts +3 -0
- package/dist/views/image-view.js +372 -0
- package/dist/views/rich-text-view.d.ts +2 -0
- package/dist/views/rich-text-view.js +429 -0
- package/node_modules/@kardalum/api-schemas/LICENSE +202 -0
- package/node_modules/@kardalum/api-schemas/README.md +56 -0
- package/node_modules/@kardalum/api-schemas/dist/action.schema.d.ts +30 -0
- package/node_modules/@kardalum/api-schemas/dist/action.schema.js +88 -0
- package/node_modules/@kardalum/api-schemas/dist/api-error.schema.d.ts +17 -0
- package/node_modules/@kardalum/api-schemas/dist/api-error.schema.js +25 -0
- package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.d.ts +93 -0
- package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.js +88 -0
- package/node_modules/@kardalum/api-schemas/dist/asset-api.schema.d.ts +89 -0
- package/node_modules/@kardalum/api-schemas/dist/asset-api.schema.js +60 -0
- package/node_modules/@kardalum/api-schemas/dist/asset.schema.d.ts +24 -0
- package/node_modules/@kardalum/api-schemas/dist/asset.schema.js +47 -0
- package/node_modules/@kardalum/api-schemas/dist/auth.schema.d.ts +38 -0
- package/node_modules/@kardalum/api-schemas/dist/auth.schema.js +38 -0
- package/node_modules/@kardalum/api-schemas/dist/content-api.schema.d.ts +542 -0
- package/node_modules/@kardalum/api-schemas/dist/content-api.schema.js +357 -0
- package/node_modules/@kardalum/api-schemas/dist/content-list.schema.d.ts +158 -0
- package/node_modules/@kardalum/api-schemas/dist/content-list.schema.js +139 -0
- package/node_modules/@kardalum/api-schemas/dist/content-path.d.ts +125 -0
- package/node_modules/@kardalum/api-schemas/dist/content-path.js +260 -0
- package/node_modules/@kardalum/api-schemas/dist/content-trash-api.schema.d.ts +20 -0
- package/node_modules/@kardalum/api-schemas/dist/content-trash-api.schema.js +23 -0
- package/node_modules/@kardalum/api-schemas/dist/content-trash.schema.d.ts +152 -0
- package/node_modules/@kardalum/api-schemas/dist/content-trash.schema.js +82 -0
- package/node_modules/@kardalum/api-schemas/dist/content-version.schema.d.ts +18 -0
- package/node_modules/@kardalum/api-schemas/dist/content-version.schema.js +22 -0
- package/node_modules/@kardalum/api-schemas/dist/content.schema.d.ts +17 -0
- package/node_modules/@kardalum/api-schemas/dist/content.schema.js +20 -0
- package/node_modules/@kardalum/api-schemas/dist/core-actions.d.ts +352 -0
- package/node_modules/@kardalum/api-schemas/dist/core-actions.js +133 -0
- package/node_modules/@kardalum/api-schemas/dist/culture-direction.d.ts +1 -0
- package/node_modules/@kardalum/api-schemas/dist/culture-direction.js +9 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.d.ts +37 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.js +32 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.d.ts +9 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.js +32 -0
- package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.d.ts +298 -0
- package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.js +138 -0
- package/node_modules/@kardalum/api-schemas/dist/document-type.schema.d.ts +121 -0
- package/node_modules/@kardalum/api-schemas/dist/document-type.schema.js +147 -0
- package/node_modules/@kardalum/api-schemas/dist/health.schema.d.ts +6 -0
- package/node_modules/@kardalum/api-schemas/dist/health.schema.js +5 -0
- package/node_modules/@kardalum/api-schemas/dist/html-entities.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/html-entities.js +250 -0
- package/node_modules/@kardalum/api-schemas/dist/index.d.ts +113 -0
- package/node_modules/@kardalum/api-schemas/dist/index.js +64 -0
- package/node_modules/@kardalum/api-schemas/dist/licensing.schema.d.ts +15 -0
- package/node_modules/@kardalum/api-schemas/dist/licensing.schema.js +14 -0
- package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.d.ts +73 -0
- package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.js +104 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.d.ts +682 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +269 -0
- package/node_modules/@kardalum/api-schemas/dist/media-api.schema.d.ts +177 -0
- package/node_modules/@kardalum/api-schemas/dist/media-api.schema.js +222 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference-api.schema.d.ts +77 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference-api.schema.js +53 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference-use.d.ts +75 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference-use.js +117 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference.d.ts +27 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference.js +279 -0
- package/node_modules/@kardalum/api-schemas/dist/media-rendition.schema.d.ts +74 -0
- package/node_modules/@kardalum/api-schemas/dist/media-rendition.schema.js +157 -0
- package/node_modules/@kardalum/api-schemas/dist/media.schema.d.ts +80 -0
- package/node_modules/@kardalum/api-schemas/dist/media.schema.js +156 -0
- package/node_modules/@kardalum/api-schemas/dist/nav.schema.d.ts +23 -0
- package/node_modules/@kardalum/api-schemas/dist/nav.schema.js +55 -0
- package/node_modules/@kardalum/api-schemas/dist/node-access.schema.d.ts +846 -0
- package/node_modules/@kardalum/api-schemas/dist/node-access.schema.js +356 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.d.ts +20 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.js +27 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.d.ts +249 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.js +84 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-text.d.ts +65 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-text.js +889 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.d.ts +172 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +196 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.d.ts +31 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.js +38 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.d.ts +69 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.js +59 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.d.ts +585 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.js +536 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-locales.d.ts +75 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-locales.js +213 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.d.ts +391 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +413 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +29 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +100 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.d.ts +44 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.js +162 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-registry-api.schema.d.ts +31 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-registry-api.schema.js +25 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.d.ts +15 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.js +24 -0
- package/node_modules/@kardalum/api-schemas/dist/public-api.schema.d.ts +314 -0
- package/node_modules/@kardalum/api-schemas/dist/public-api.schema.js +338 -0
- package/node_modules/@kardalum/api-schemas/dist/render-editing.d.ts +79 -0
- package/node_modules/@kardalum/api-schemas/dist/render-editing.js +50 -0
- package/node_modules/@kardalum/api-schemas/dist/render-settings-api.schema.d.ts +9 -0
- package/node_modules/@kardalum/api-schemas/dist/render-settings-api.schema.js +13 -0
- package/node_modules/@kardalum/api-schemas/dist/reserved-slugs.d.ts +2 -0
- package/node_modules/@kardalum/api-schemas/dist/reserved-slugs.js +16 -0
- package/node_modules/@kardalum/api-schemas/dist/role.schema.d.ts +96 -0
- package/node_modules/@kardalum/api-schemas/dist/role.schema.js +75 -0
- package/node_modules/@kardalum/api-schemas/dist/sample-content-outcome.schema.d.ts +17 -0
- package/node_modules/@kardalum/api-schemas/dist/sample-content-outcome.schema.js +27 -0
- package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.d.ts +35 -0
- package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.js +79 -0
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +138 -0
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.js +105 -0
- package/node_modules/@kardalum/api-schemas/dist/sites.schema.d.ts +243 -0
- package/node_modules/@kardalum/api-schemas/dist/sites.schema.js +296 -0
- package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.d.ts +47 -0
- package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.js +27 -0
- package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.d.ts +30 -0
- package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.js +19 -0
- package/node_modules/@kardalum/api-schemas/dist/template-api.schema.d.ts +112 -0
- package/node_modules/@kardalum/api-schemas/dist/template-api.schema.js +74 -0
- package/node_modules/@kardalum/api-schemas/dist/template.schema.d.ts +41 -0
- package/node_modules/@kardalum/api-schemas/dist/template.schema.js +39 -0
- package/node_modules/@kardalum/api-schemas/dist/theme-api.schema.d.ts +21 -0
- package/node_modules/@kardalum/api-schemas/dist/theme-api.schema.js +14 -0
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.d.ts +97 -0
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +73 -0
- package/node_modules/@kardalum/api-schemas/package.json +35 -0
- package/node_modules/@kardalum/design-tokens/LICENSE +202 -0
- package/node_modules/@kardalum/design-tokens/README.md +29 -0
- package/node_modules/@kardalum/design-tokens/dist/build-css.d.ts +32 -0
- package/node_modules/@kardalum/design-tokens/dist/build-css.js +88 -0
- package/node_modules/@kardalum/design-tokens/dist/generate.d.ts +1 -0
- package/node_modules/@kardalum/design-tokens/dist/generate.js +18 -0
- package/node_modules/@kardalum/design-tokens/dist/index.d.ts +6 -0
- package/node_modules/@kardalum/design-tokens/dist/index.js +4 -0
- package/node_modules/@kardalum/design-tokens/dist/system-dark.css +75 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.d.ts +33 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.js +54 -0
- package/node_modules/@kardalum/design-tokens/dist/theme-css.d.ts +12 -0
- package/node_modules/@kardalum/design-tokens/dist/theme-css.js +42 -0
- package/node_modules/@kardalum/design-tokens/dist/theme-types.d.ts +43 -0
- package/node_modules/@kardalum/design-tokens/dist/theme-types.js +1 -0
- package/node_modules/@kardalum/design-tokens/dist/themes/dark.d.ts +13 -0
- package/node_modules/@kardalum/design-tokens/dist/themes/dark.js +120 -0
- package/node_modules/@kardalum/design-tokens/dist/themes/index.d.ts +5 -0
- package/node_modules/@kardalum/design-tokens/dist/themes/index.js +4 -0
- package/node_modules/@kardalum/design-tokens/dist/themes/light.d.ts +9 -0
- package/node_modules/@kardalum/design-tokens/dist/themes/light.js +13 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.css +239 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.d.ts +25 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.js +276 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.json +212 -0
- package/node_modules/@kardalum/design-tokens/dist/types.d.ts +91 -0
- package/node_modules/@kardalum/design-tokens/dist/types.js +5 -0
- package/node_modules/@kardalum/design-tokens/package.json +42 -0
- package/node_modules/@kardalum/plugin-package/LICENSE +202 -0
- package/node_modules/@kardalum/plugin-package/README.md +71 -0
- package/node_modules/@kardalum/plugin-package/dist/build-reference.d.ts +111 -0
- package/node_modules/@kardalum/plugin-package/dist/build-reference.js +61 -0
- package/node_modules/@kardalum/plugin-package/dist/capabilities.d.ts +103 -0
- package/node_modules/@kardalum/plugin-package/dist/capabilities.js +351 -0
- package/node_modules/@kardalum/plugin-package/dist/docs-contract.d.ts +50 -0
- package/node_modules/@kardalum/plugin-package/dist/docs-contract.js +659 -0
- package/node_modules/@kardalum/plugin-package/dist/envelope.d.ts +19 -0
- package/node_modules/@kardalum/plugin-package/dist/envelope.js +104 -0
- package/node_modules/@kardalum/plugin-package/dist/extract.d.ts +37 -0
- package/node_modules/@kardalum/plugin-package/dist/extract.js +199 -0
- package/node_modules/@kardalum/plugin-package/dist/hash.d.ts +17 -0
- package/node_modules/@kardalum/plugin-package/dist/hash.js +69 -0
- package/node_modules/@kardalum/plugin-package/dist/index.d.ts +13 -0
- package/node_modules/@kardalum/plugin-package/dist/index.js +8 -0
- package/node_modules/@kardalum/plugin-package/dist/license-verdict.d.ts +185 -0
- package/node_modules/@kardalum/plugin-package/dist/license-verdict.js +236 -0
- package/node_modules/@kardalum/plugin-package/dist/package-contract.d.ts +50 -0
- package/node_modules/@kardalum/plugin-package/dist/package-contract.js +115 -0
- package/node_modules/@kardalum/plugin-package/dist/reference-entry.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/reference-entry.js +6 -0
- package/node_modules/@kardalum/plugin-package/dist/sample-content.d.ts +20 -0
- package/node_modules/@kardalum/plugin-package/dist/sample-content.js +57 -0
- package/node_modules/@kardalum/plugin-package/dist/types.d.ts +43 -0
- package/node_modules/@kardalum/plugin-package/dist/types.js +15 -0
- package/node_modules/@kardalum/plugin-package/package.json +54 -0
- package/node_modules/@kardalum/ui/LICENSE +202 -0
- package/node_modules/@kardalum/ui/README.md +35 -0
- package/node_modules/@kardalum/ui/dist/components/alert-dialog.d.ts +14 -0
- package/node_modules/@kardalum/ui/dist/components/alert-dialog.js +38 -0
- package/node_modules/@kardalum/ui/dist/components/badge.d.ts +9 -0
- package/node_modules/@kardalum/ui/dist/components/badge.js +30 -0
- package/node_modules/@kardalum/ui/dist/components/button.d.ts +11 -0
- package/node_modules/@kardalum/ui/dist/components/button.js +37 -0
- package/node_modules/@kardalum/ui/dist/components/checkbox.d.ts +5 -0
- package/node_modules/@kardalum/ui/dist/components/checkbox.js +7 -0
- package/node_modules/@kardalum/ui/dist/components/dialog.d.ts +17 -0
- package/node_modules/@kardalum/ui/dist/components/dialog.js +48 -0
- package/node_modules/@kardalum/ui/dist/components/dropdown-menu.d.ts +18 -0
- package/node_modules/@kardalum/ui/dist/components/dropdown-menu.js +53 -0
- package/node_modules/@kardalum/ui/dist/components/empty-state.d.ts +30 -0
- package/node_modules/@kardalum/ui/dist/components/empty-state.js +9 -0
- package/node_modules/@kardalum/ui/dist/components/input.d.ts +4 -0
- package/node_modules/@kardalum/ui/dist/components/input.js +6 -0
- package/node_modules/@kardalum/ui/dist/components/panel.d.ts +5 -0
- package/node_modules/@kardalum/ui/dist/components/panel.js +6 -0
- package/node_modules/@kardalum/ui/dist/components/property-field.d.ts +19 -0
- package/node_modules/@kardalum/ui/dist/components/property-field.js +89 -0
- package/node_modules/@kardalum/ui/dist/components/sheet.d.ts +17 -0
- package/node_modules/@kardalum/ui/dist/components/sheet.js +55 -0
- package/node_modules/@kardalum/ui/dist/components/skeleton.d.ts +3 -0
- package/node_modules/@kardalum/ui/dist/components/skeleton.js +9 -0
- package/node_modules/@kardalum/ui/dist/components/switch.d.ts +5 -0
- package/node_modules/@kardalum/ui/dist/components/switch.js +7 -0
- package/node_modules/@kardalum/ui/dist/components/tab-strip.d.ts +34 -0
- package/node_modules/@kardalum/ui/dist/components/tab-strip.js +72 -0
- package/node_modules/@kardalum/ui/dist/components/toast.d.ts +18 -0
- package/node_modules/@kardalum/ui/dist/components/toast.js +42 -0
- package/node_modules/@kardalum/ui/dist/components/toaster.d.ts +12 -0
- package/node_modules/@kardalum/ui/dist/components/toaster.js +11 -0
- package/node_modules/@kardalum/ui/dist/components/use-toast.d.ts +17 -0
- package/node_modules/@kardalum/ui/dist/components/use-toast.js +62 -0
- package/node_modules/@kardalum/ui/dist/index.d.ts +18 -0
- package/node_modules/@kardalum/ui/dist/index.js +18 -0
- package/node_modules/@kardalum/ui/dist/lib/cn.d.ts +2 -0
- package/node_modules/@kardalum/ui/dist/lib/cn.js +5 -0
- package/node_modules/@kardalum/ui/package.json +63 -0
- package/package.json +146 -4
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
import type { ComponentType } from "react";
|
|
2
|
+
import type { JSONSchema7 } from "json-schema";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { API_ROUTE_METHODS } from "@kardalum/api-schemas";
|
|
5
|
+
import type { DatabaseDialect, HookHandler, PluginAssertions, PluginContributions, PluginManifest } from "./manifest.js";
|
|
6
|
+
export declare const DATABASE_DIALECTS: readonly ["postgresql", "mysql", "sqlite", "mssql", "mongodb"];
|
|
7
|
+
export declare const STORAGE_TYPES: readonly ["simple", "structured"];
|
|
8
|
+
export { API_ROUTE_METHODS };
|
|
9
|
+
export declare const API_ROUTE_ACCESS_TIERS: readonly ["admin", "apiKey", "public"];
|
|
10
|
+
export declare const TEMPLATE_KINDS: readonly ["page", "layout", "partial"];
|
|
11
|
+
export declare const PLUGIN_TYPES: readonly ["datatype", "section", "template", "theme", "integration", "utility", "bundle"];
|
|
12
|
+
export declare const DATATYPE_ENTRY_TYPES: readonly ["datatype"];
|
|
13
|
+
export declare const AssertionsSchema: z.ZodObject<{
|
|
14
|
+
externalNetwork: z.ZodOptional<z.ZodObject<{
|
|
15
|
+
reason: z.ZodString;
|
|
16
|
+
}, z.core.$strict>>;
|
|
17
|
+
filesystemAccess: z.ZodOptional<z.ZodObject<{
|
|
18
|
+
reason: z.ZodString;
|
|
19
|
+
}, z.core.$strict>>;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
/**
|
|
22
|
+
* Every assertion kind this contract defines, at runtime, derived from
|
|
23
|
+
* the shape above so it cannot drift from it.
|
|
24
|
+
*
|
|
25
|
+
* Exists for the same reason CONTRIBUTION_KEYS does: the marketplace
|
|
26
|
+
* carries a hand-maintained static mirror of AssertionsSchema (its
|
|
27
|
+
* Next.js runtime never imports plugin tooling), that mirror is
|
|
28
|
+
* `.strict()`, and a kind added here but not there turns into a publish
|
|
29
|
+
* refusal for an artifact that built fine. Exporting the kinds and the
|
|
30
|
+
* schema gives the mirror something to be pinned against.
|
|
31
|
+
*/
|
|
32
|
+
export declare const ASSERTION_KINDS: (keyof PluginAssertions)[];
|
|
33
|
+
export declare const HOOK_EVENTS: readonly ["content:beforeSave", "content:afterSave", "content:beforePublish", "content:afterPublish", "content:afterTrash", "content:afterRestore", "content:beforeDelete", "media:afterUpload", "user:afterLogin", "api:beforeResponse"];
|
|
34
|
+
export declare const DataTypePluginSchema: z.ZodObject<{
|
|
35
|
+
id: z.ZodString;
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
icon: z.ZodString;
|
|
38
|
+
version: z.ZodString;
|
|
39
|
+
type: z.ZodLiteral<"datatype">;
|
|
40
|
+
schema: z.ZodCustom<JSONSchema7, JSONSchema7>;
|
|
41
|
+
settingsSchema: z.ZodCustom<JSONSchema7, JSONSchema7>;
|
|
42
|
+
defaultSettings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
43
|
+
views: z.ZodObject<{
|
|
44
|
+
input: z.ZodCustom<ComponentType, ComponentType>;
|
|
45
|
+
readOnly: z.ZodCustom<ComponentType, ComponentType>;
|
|
46
|
+
settings: z.ZodCustom<ComponentType, ComponentType>;
|
|
47
|
+
preview: z.ZodOptional<z.ZodCustom<ComponentType, ComponentType>>;
|
|
48
|
+
}, z.core.$strict>;
|
|
49
|
+
serialize: z.ZodCustom<(value: unknown, settings: Record<string, unknown>) => unknown, (value: unknown, settings: Record<string, unknown>) => unknown>;
|
|
50
|
+
deserialize: z.ZodCustom<(raw: unknown, settings: Record<string, unknown>) => unknown, (raw: unknown, settings: Record<string, unknown>) => unknown>;
|
|
51
|
+
validate: z.ZodOptional<z.ZodCustom<import("./datatype-validation.js").DataTypeValidateHook, import("./datatype-validation.js").DataTypeValidateHook>>;
|
|
52
|
+
isEmpty: z.ZodOptional<z.ZodCustom<(value: unknown) => boolean, (value: unknown) => boolean>>;
|
|
53
|
+
}, z.core.$strict>;
|
|
54
|
+
/**
|
|
55
|
+
* The built-in sections whose rail a plugin may add an entry to. Plugin
|
|
56
|
+
* management is not among them: it is the operator's screen for plugins,
|
|
57
|
+
* not a host for them. A plugin cannot take over any built-in section's
|
|
58
|
+
* landing page (spec D2), only add to its rail.
|
|
59
|
+
*/
|
|
60
|
+
export declare const BUILT_IN_RAIL_SECTIONS: readonly ["content", "media", "settings", "users"];
|
|
61
|
+
/**
|
|
62
|
+
* Every contribution key this contract defines, at runtime, derived from
|
|
63
|
+
* the schema above so it cannot drift from it.
|
|
64
|
+
*
|
|
65
|
+
* Exists for the conformance tests that partition these keys into
|
|
66
|
+
* view-bearing and not (S268 Task 3 review, F3). Splitting a list by hand
|
|
67
|
+
* has a third outcome besides "in the right half" and "in the wrong
|
|
68
|
+
* half": in neither half, and therefore never exercised, which is how a
|
|
69
|
+
* mirror of VIEW_BEARING_CONTRIBUTIONS can diverge and still be green.
|
|
70
|
+
* Counting against this set is what closes that.
|
|
71
|
+
*/
|
|
72
|
+
export declare const CONTRIBUTION_KEYS: (keyof PluginContributions)[];
|
|
73
|
+
export declare const CMSPluginSchema: z.ZodObject<{
|
|
74
|
+
type: z.ZodEnum<{
|
|
75
|
+
datatype: "datatype";
|
|
76
|
+
section: "section";
|
|
77
|
+
template: "template";
|
|
78
|
+
theme: "theme";
|
|
79
|
+
integration: "integration";
|
|
80
|
+
utility: "utility";
|
|
81
|
+
bundle: "bundle";
|
|
82
|
+
}>;
|
|
83
|
+
contributions: z.ZodObject<{
|
|
84
|
+
dataTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
85
|
+
id: z.ZodString;
|
|
86
|
+
name: z.ZodString;
|
|
87
|
+
icon: z.ZodString;
|
|
88
|
+
version: z.ZodString;
|
|
89
|
+
type: z.ZodLiteral<"datatype">;
|
|
90
|
+
schema: z.ZodCustom<JSONSchema7, JSONSchema7>;
|
|
91
|
+
settingsSchema: z.ZodCustom<JSONSchema7, JSONSchema7>;
|
|
92
|
+
defaultSettings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
93
|
+
views: z.ZodObject<{
|
|
94
|
+
input: z.ZodCustom<ComponentType, ComponentType>;
|
|
95
|
+
readOnly: z.ZodCustom<ComponentType, ComponentType>;
|
|
96
|
+
settings: z.ZodCustom<ComponentType, ComponentType>;
|
|
97
|
+
preview: z.ZodOptional<z.ZodCustom<ComponentType, ComponentType>>;
|
|
98
|
+
}, z.core.$strict>;
|
|
99
|
+
serialize: z.ZodCustom<(value: unknown, settings: Record<string, unknown>) => unknown, (value: unknown, settings: Record<string, unknown>) => unknown>;
|
|
100
|
+
deserialize: z.ZodCustom<(raw: unknown, settings: Record<string, unknown>) => unknown, (raw: unknown, settings: Record<string, unknown>) => unknown>;
|
|
101
|
+
validate: z.ZodOptional<z.ZodCustom<import("./datatype-validation.js").DataTypeValidateHook, import("./datatype-validation.js").DataTypeValidateHook>>;
|
|
102
|
+
isEmpty: z.ZodOptional<z.ZodCustom<(value: unknown) => boolean, (value: unknown) => boolean>>;
|
|
103
|
+
}, z.core.$strict>>>;
|
|
104
|
+
adminSections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
label: z.ZodObject<{
|
|
107
|
+
en: z.ZodString;
|
|
108
|
+
}, z.core.$catchall<z.ZodString>>;
|
|
109
|
+
icon: z.ZodString;
|
|
110
|
+
action: z.ZodString;
|
|
111
|
+
view: z.ZodCustom<ComponentType, ComponentType>;
|
|
112
|
+
rail: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
113
|
+
id: z.ZodString;
|
|
114
|
+
label: z.ZodObject<{
|
|
115
|
+
en: z.ZodString;
|
|
116
|
+
}, z.core.$catchall<z.ZodString>>;
|
|
117
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
118
|
+
action: z.ZodString;
|
|
119
|
+
view: z.ZodCustom<ComponentType, ComponentType>;
|
|
120
|
+
}, z.core.$strict>>>;
|
|
121
|
+
name: z.ZodOptional<z.ZodNever>;
|
|
122
|
+
}, z.core.$strict>>>;
|
|
123
|
+
railEntries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
124
|
+
id: z.ZodString;
|
|
125
|
+
section: z.ZodEnum<{
|
|
126
|
+
media: "media";
|
|
127
|
+
content: "content";
|
|
128
|
+
settings: "settings";
|
|
129
|
+
users: "users";
|
|
130
|
+
}>;
|
|
131
|
+
label: z.ZodObject<{
|
|
132
|
+
en: z.ZodString;
|
|
133
|
+
}, z.core.$catchall<z.ZodString>>;
|
|
134
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
135
|
+
action: z.ZodString;
|
|
136
|
+
view: z.ZodCustom<ComponentType, ComponentType>;
|
|
137
|
+
}, z.core.$strict>>>;
|
|
138
|
+
dashboardWidgets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
139
|
+
id: z.ZodString;
|
|
140
|
+
name: z.ZodString;
|
|
141
|
+
view: z.ZodCustom<ComponentType, ComponentType>;
|
|
142
|
+
action: z.ZodString;
|
|
143
|
+
}, z.core.$strict>>>;
|
|
144
|
+
apiRoutes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
145
|
+
method: z.ZodEnum<{
|
|
146
|
+
GET: "GET";
|
|
147
|
+
POST: "POST";
|
|
148
|
+
PUT: "PUT";
|
|
149
|
+
PATCH: "PATCH";
|
|
150
|
+
DELETE: "DELETE";
|
|
151
|
+
}>;
|
|
152
|
+
path: z.ZodString;
|
|
153
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
154
|
+
admin: "admin";
|
|
155
|
+
apiKey: "apiKey";
|
|
156
|
+
public: "public";
|
|
157
|
+
}>>;
|
|
158
|
+
action: z.ZodOptional<z.ZodString>;
|
|
159
|
+
schema: z.ZodOptional<z.ZodObject<{
|
|
160
|
+
body: z.ZodOptional<z.ZodCustom<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
161
|
+
querystring: z.ZodOptional<z.ZodCustom<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
162
|
+
params: z.ZodOptional<z.ZodCustom<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
163
|
+
response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>>;
|
|
164
|
+
}, z.core.$strict>>;
|
|
165
|
+
handler: z.ZodCustom<(request: unknown, reply: unknown, context: import("./structured-storage-types.js").PluginApiRouteContext) => unknown, (request: unknown, reply: unknown, context: import("./structured-storage-types.js").PluginApiRouteContext) => unknown>;
|
|
166
|
+
}, z.core.$strict>>>;
|
|
167
|
+
hooks: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
168
|
+
"content:beforeSave": "content:beforeSave";
|
|
169
|
+
"content:afterSave": "content:afterSave";
|
|
170
|
+
"content:beforePublish": "content:beforePublish";
|
|
171
|
+
"content:afterPublish": "content:afterPublish";
|
|
172
|
+
"content:afterTrash": "content:afterTrash";
|
|
173
|
+
"content:afterRestore": "content:afterRestore";
|
|
174
|
+
"content:beforeDelete": "content:beforeDelete";
|
|
175
|
+
"media:afterUpload": "media:afterUpload";
|
|
176
|
+
"user:afterLogin": "user:afterLogin";
|
|
177
|
+
"api:beforeResponse": "api:beforeResponse";
|
|
178
|
+
}> & z.core.$partial, z.ZodCustom<HookHandler, HookHandler>>>;
|
|
179
|
+
scheduledTasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
180
|
+
id: z.ZodString;
|
|
181
|
+
name: z.ZodString;
|
|
182
|
+
cron: z.ZodString;
|
|
183
|
+
run: z.ZodCustom<(context?: import("./entitlement-types.js").PluginTaskContext) => void | Promise<void>, (context?: import("./entitlement-types.js").PluginTaskContext) => void | Promise<void>>;
|
|
184
|
+
}, z.core.$strict>>>;
|
|
185
|
+
mediaProcessors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
186
|
+
id: z.ZodString;
|
|
187
|
+
name: z.ZodString;
|
|
188
|
+
process: z.ZodCustom<(file: unknown) => unknown | Promise<unknown>, (file: unknown) => unknown | Promise<unknown>>;
|
|
189
|
+
}, z.core.$strict>>>;
|
|
190
|
+
settingsPages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
191
|
+
id: z.ZodString;
|
|
192
|
+
name: z.ZodString;
|
|
193
|
+
view: z.ZodCustom<ComponentType, ComponentType>;
|
|
194
|
+
action: z.ZodString;
|
|
195
|
+
}, z.core.$strict>>>;
|
|
196
|
+
contentTreeActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
197
|
+
id: z.ZodString;
|
|
198
|
+
label: z.ZodString;
|
|
199
|
+
onSelect: z.ZodCustom<(nodeId: string) => void | Promise<void>, (nodeId: string) => void | Promise<void>>;
|
|
200
|
+
action: z.ZodString;
|
|
201
|
+
}, z.core.$strict>>>;
|
|
202
|
+
editorToolbar: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
203
|
+
id: z.ZodString;
|
|
204
|
+
label: z.ZodString;
|
|
205
|
+
icon: z.ZodString;
|
|
206
|
+
onClick: z.ZodCustom<() => void | Promise<void>, () => void | Promise<void>>;
|
|
207
|
+
action: z.ZodString;
|
|
208
|
+
}, z.core.$strict>>>;
|
|
209
|
+
exposedServices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
210
|
+
id: z.ZodString;
|
|
211
|
+
name: z.ZodString;
|
|
212
|
+
service: z.ZodUnknown;
|
|
213
|
+
}, z.core.$strict>>>;
|
|
214
|
+
serializers: z.ZodOptional<z.ZodObject<{
|
|
215
|
+
extendContentResponse: z.ZodOptional<z.ZodCustom<(context: import("./manifest.js").SerializerContext) => Record<string, unknown> | Promise<Record<string, unknown>>, (context: import("./manifest.js").SerializerContext) => Record<string, unknown> | Promise<Record<string, unknown>>>>;
|
|
216
|
+
customFormats: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
217
|
+
name: z.ZodString;
|
|
218
|
+
build: z.ZodCustom<(context: import("./manifest.js").SerializerContext) => unknown | Promise<unknown>, (context: import("./manifest.js").SerializerContext) => unknown | Promise<unknown>>;
|
|
219
|
+
}, z.core.$strict>>>;
|
|
220
|
+
}, z.core.$strict>>;
|
|
221
|
+
documentTypes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
222
|
+
name: z.ZodString;
|
|
223
|
+
icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
224
|
+
kind: z.ZodLiteral<"page">;
|
|
225
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
226
|
+
id: z.ZodString;
|
|
227
|
+
name: z.ZodString;
|
|
228
|
+
datatypeId: z.ZodString;
|
|
229
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
230
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
231
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
232
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
233
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
234
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
236
|
+
}, z.core.$strict>>;
|
|
237
|
+
tabId: z.ZodOptional<z.ZodString>;
|
|
238
|
+
varies: z.ZodOptional<z.ZodBoolean>;
|
|
239
|
+
}, z.core.$strict>>;
|
|
240
|
+
treeRules: z.ZodObject<{
|
|
241
|
+
allowedAtRoot: z.ZodBoolean;
|
|
242
|
+
allowedParentTypes: z.ZodArray<z.ZodString>;
|
|
243
|
+
allowedChildTypes: z.ZodArray<z.ZodString>;
|
|
244
|
+
}, z.core.$strip>;
|
|
245
|
+
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
246
|
+
id: z.ZodString;
|
|
247
|
+
name: z.ZodString;
|
|
248
|
+
}, z.core.$strict>>>;
|
|
249
|
+
translationMandatory: z.ZodOptional<z.ZodBoolean>;
|
|
250
|
+
collection: z.ZodOptional<z.ZodBoolean>;
|
|
251
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
252
|
+
name: z.ZodString;
|
|
253
|
+
icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
254
|
+
kind: z.ZodLiteral<"element">;
|
|
255
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
256
|
+
id: z.ZodString;
|
|
257
|
+
name: z.ZodString;
|
|
258
|
+
datatypeId: z.ZodString;
|
|
259
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
260
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
261
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
262
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
263
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
264
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
265
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
266
|
+
}, z.core.$strict>>;
|
|
267
|
+
tabId: z.ZodOptional<z.ZodString>;
|
|
268
|
+
varies: z.ZodOptional<z.ZodBoolean>;
|
|
269
|
+
}, z.core.$strict>>;
|
|
270
|
+
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
271
|
+
id: z.ZodString;
|
|
272
|
+
name: z.ZodString;
|
|
273
|
+
}, z.core.$strict>>>;
|
|
274
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
275
|
+
name: z.ZodString;
|
|
276
|
+
icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
277
|
+
kind: z.ZodLiteral<"media">;
|
|
278
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
279
|
+
id: z.ZodString;
|
|
280
|
+
name: z.ZodString;
|
|
281
|
+
datatypeId: z.ZodString;
|
|
282
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
283
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
284
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
285
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
286
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
287
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
288
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
289
|
+
}, z.core.$strict>>;
|
|
290
|
+
tabId: z.ZodOptional<z.ZodString>;
|
|
291
|
+
varies: z.ZodOptional<z.ZodBoolean>;
|
|
292
|
+
}, z.core.$strict>>;
|
|
293
|
+
tabs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
294
|
+
id: z.ZodString;
|
|
295
|
+
name: z.ZodString;
|
|
296
|
+
}, z.core.$strict>>>;
|
|
297
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
298
|
+
catchAll: z.ZodOptional<z.ZodBoolean>;
|
|
299
|
+
}, z.core.$strict>], "kind">>>;
|
|
300
|
+
themeTokens: z.ZodOptional<z.ZodObject<{
|
|
301
|
+
color: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
302
|
+
radius: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
303
|
+
}, z.core.$strict>>;
|
|
304
|
+
templates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
305
|
+
file: z.ZodString;
|
|
306
|
+
name: z.ZodString;
|
|
307
|
+
alias: z.ZodString;
|
|
308
|
+
kind: z.ZodEnum<{
|
|
309
|
+
page: "page";
|
|
310
|
+
layout: "layout";
|
|
311
|
+
partial: "partial";
|
|
312
|
+
}>;
|
|
313
|
+
documentType: z.ZodOptional<z.ZodString>;
|
|
314
|
+
}, z.core.$strict>>>;
|
|
315
|
+
assets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
316
|
+
bundledPlugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
317
|
+
bundledTemplate: z.ZodOptional<z.ZodObject<{
|
|
318
|
+
name: z.ZodString;
|
|
319
|
+
description: z.ZodOptional<z.ZodString>;
|
|
320
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
321
|
+
}, z.core.$strict>>;
|
|
322
|
+
}, z.core.$strict>;
|
|
323
|
+
id: z.ZodString;
|
|
324
|
+
name: z.ZodString;
|
|
325
|
+
version: z.ZodString;
|
|
326
|
+
description: z.ZodString;
|
|
327
|
+
author: z.ZodString;
|
|
328
|
+
license: z.ZodString;
|
|
329
|
+
price: z.ZodOptional<z.ZodNumber>;
|
|
330
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
331
|
+
cmsVersion: z.ZodString;
|
|
332
|
+
pluginDependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
333
|
+
databaseCompatibility: z.ZodObject<{
|
|
334
|
+
storageType: z.ZodEnum<{
|
|
335
|
+
simple: "simple";
|
|
336
|
+
structured: "structured";
|
|
337
|
+
}>;
|
|
338
|
+
supported: z.ZodArray<z.ZodEnum<{
|
|
339
|
+
postgresql: "postgresql";
|
|
340
|
+
mysql: "mysql";
|
|
341
|
+
sqlite: "sqlite";
|
|
342
|
+
mssql: "mssql";
|
|
343
|
+
mongodb: "mongodb";
|
|
344
|
+
}>>;
|
|
345
|
+
unsupportedReason: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
346
|
+
postgresql: "postgresql";
|
|
347
|
+
mysql: "mysql";
|
|
348
|
+
sqlite: "sqlite";
|
|
349
|
+
mssql: "mssql";
|
|
350
|
+
mongodb: "mongodb";
|
|
351
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
352
|
+
}, z.core.$strict>;
|
|
353
|
+
assertions: z.ZodOptional<z.ZodObject<{
|
|
354
|
+
externalNetwork: z.ZodOptional<z.ZodObject<{
|
|
355
|
+
reason: z.ZodString;
|
|
356
|
+
}, z.core.$strict>>;
|
|
357
|
+
filesystemAccess: z.ZodOptional<z.ZodObject<{
|
|
358
|
+
reason: z.ZodString;
|
|
359
|
+
}, z.core.$strict>>;
|
|
360
|
+
}, z.core.$strict>>;
|
|
361
|
+
migrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
362
|
+
id: z.ZodString;
|
|
363
|
+
name: z.ZodString;
|
|
364
|
+
up: z.ZodCustom<(ctx: import("./manifest.js").PluginMigrationContext) => void | Promise<void>, (ctx: import("./manifest.js").PluginMigrationContext) => void | Promise<void>>;
|
|
365
|
+
down: z.ZodCustom<(ctx: import("./manifest.js").PluginMigrationContext) => void | Promise<void>, (ctx: import("./manifest.js").PluginMigrationContext) => void | Promise<void>>;
|
|
366
|
+
}, z.core.$strict>>>;
|
|
367
|
+
onInstall: z.ZodOptional<z.ZodCustom<(ctx: import("./manifest.js").PluginInstallContext) => void | Promise<void>, (ctx: import("./manifest.js").PluginInstallContext) => void | Promise<void>>>;
|
|
368
|
+
onUninstall: z.ZodOptional<z.ZodCustom<() => void | Promise<void>, () => void | Promise<void>>>;
|
|
369
|
+
onActivate: z.ZodOptional<z.ZodCustom<() => void | Promise<void>, () => void | Promise<void>>>;
|
|
370
|
+
onDeactivate: z.ZodOptional<z.ZodCustom<() => void | Promise<void>, () => void | Promise<void>>>;
|
|
371
|
+
onUpdate: z.ZodOptional<z.ZodCustom<(ctx: import("./manifest.js").PluginUpdateContext) => void | Promise<void>, (ctx: import("./manifest.js").PluginUpdateContext) => void | Promise<void>>>;
|
|
372
|
+
migrationHooks: z.ZodOptional<z.ZodObject<{
|
|
373
|
+
beforeMigration: z.ZodOptional<z.ZodCustom<(from: DatabaseDialect, to: DatabaseDialect) => void | Promise<void>, (from: DatabaseDialect, to: DatabaseDialect) => void | Promise<void>>>;
|
|
374
|
+
transformRow: z.ZodOptional<z.ZodCustom<(table: string, row: Record<string, unknown>, from: DatabaseDialect, to: DatabaseDialect) => Record<string, unknown> | Promise<Record<string, unknown>>, (table: string, row: Record<string, unknown>, from: DatabaseDialect, to: DatabaseDialect) => Record<string, unknown> | Promise<Record<string, unknown>>>>;
|
|
375
|
+
afterMigration: z.ZodOptional<z.ZodCustom<(from: DatabaseDialect, to: DatabaseDialect) => void | Promise<void>, (from: DatabaseDialect, to: DatabaseDialect) => void | Promise<void>>>;
|
|
376
|
+
validateMigration: z.ZodOptional<z.ZodCustom<(from: DatabaseDialect, to: DatabaseDialect) => import("./manifest.js").PluginMigrationValidation | Promise<import("./manifest.js").PluginMigrationValidation>, (from: DatabaseDialect, to: DatabaseDialect) => import("./manifest.js").PluginMigrationValidation | Promise<import("./manifest.js").PluginMigrationValidation>>>;
|
|
377
|
+
}, z.core.$strict>>;
|
|
378
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
379
|
+
id: z.ZodString;
|
|
380
|
+
label: z.ZodString;
|
|
381
|
+
}, z.core.$strip>>>;
|
|
382
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
383
|
+
id: z.ZodString;
|
|
384
|
+
label: z.ZodString;
|
|
385
|
+
actions: z.ZodArray<z.ZodString>;
|
|
386
|
+
}, z.core.$strip>>>;
|
|
387
|
+
docs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
388
|
+
role: z.ZodEnum<{
|
|
389
|
+
overview: "overview";
|
|
390
|
+
setup: "setup";
|
|
391
|
+
configuration: "configuration";
|
|
392
|
+
guide: "guide";
|
|
393
|
+
troubleshooting: "troubleshooting";
|
|
394
|
+
}>;
|
|
395
|
+
path: z.ZodString;
|
|
396
|
+
title: z.ZodString;
|
|
397
|
+
}, z.core.$strict>>>;
|
|
398
|
+
docsLanguage: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodString>>;
|
|
399
|
+
install: z.ZodOptional<z.ZodObject<{
|
|
400
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
401
|
+
id: z.ZodString;
|
|
402
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
403
|
+
en: z.ZodString;
|
|
404
|
+
}, z.core.$catchall<z.ZodString>>>;
|
|
405
|
+
description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
|
|
406
|
+
en: z.ZodString;
|
|
407
|
+
}, z.core.$catchall<z.ZodString>>>>;
|
|
408
|
+
options: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
409
|
+
kind: z.ZodLiteral<"boolean">;
|
|
410
|
+
default: z.ZodBoolean;
|
|
411
|
+
id: z.ZodString;
|
|
412
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
413
|
+
en: z.ZodString;
|
|
414
|
+
}, z.core.$catchall<z.ZodString>>>;
|
|
415
|
+
description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
|
|
416
|
+
en: z.ZodString;
|
|
417
|
+
}, z.core.$catchall<z.ZodString>>>>;
|
|
418
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
419
|
+
kind: z.ZodLiteral<"select">;
|
|
420
|
+
choices: z.ZodArray<z.ZodObject<{
|
|
421
|
+
id: z.ZodString;
|
|
422
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
423
|
+
en: z.ZodString;
|
|
424
|
+
}, z.core.$catchall<z.ZodString>>>;
|
|
425
|
+
description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
|
|
426
|
+
en: z.ZodString;
|
|
427
|
+
}, z.core.$catchall<z.ZodString>>>>;
|
|
428
|
+
}, z.core.$strict>>;
|
|
429
|
+
default: z.ZodOptional<z.ZodString>;
|
|
430
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
431
|
+
id: z.ZodString;
|
|
432
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
433
|
+
en: z.ZodString;
|
|
434
|
+
}, z.core.$catchall<z.ZodString>>>;
|
|
435
|
+
description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
|
|
436
|
+
en: z.ZodString;
|
|
437
|
+
}, z.core.$catchall<z.ZodString>>>>;
|
|
438
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
439
|
+
kind: z.ZodLiteral<"multiSelect">;
|
|
440
|
+
choices: z.ZodArray<z.ZodObject<{
|
|
441
|
+
id: z.ZodString;
|
|
442
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
443
|
+
en: z.ZodString;
|
|
444
|
+
}, z.core.$catchall<z.ZodString>>>;
|
|
445
|
+
description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
|
|
446
|
+
en: z.ZodString;
|
|
447
|
+
}, z.core.$catchall<z.ZodString>>>>;
|
|
448
|
+
}, z.core.$strict>>;
|
|
449
|
+
default: z.ZodArray<z.ZodString>;
|
|
450
|
+
id: z.ZodString;
|
|
451
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
452
|
+
en: z.ZodString;
|
|
453
|
+
}, z.core.$catchall<z.ZodString>>>;
|
|
454
|
+
description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
|
|
455
|
+
en: z.ZodString;
|
|
456
|
+
}, z.core.$catchall<z.ZodString>>>>;
|
|
457
|
+
}, z.core.$strict>], "kind">>;
|
|
458
|
+
}, z.core.$strict>>;
|
|
459
|
+
}, z.core.$strict>>;
|
|
460
|
+
}, z.core.$strict>;
|
|
461
|
+
export declare function formatIssues(issues: z.core.$ZodIssue[]): string[];
|
|
462
|
+
export type ValidatePluginManifestResult = {
|
|
463
|
+
ok: true;
|
|
464
|
+
manifest: PluginManifest;
|
|
465
|
+
} | {
|
|
466
|
+
ok: false;
|
|
467
|
+
errors: string[];
|
|
468
|
+
};
|
|
469
|
+
/**
|
|
470
|
+
* Validate an untrusted value as a plugin manifest. The registry's
|
|
471
|
+
* install() (Session 62) and `kardalum plugin validate` (Month 7) both go
|
|
472
|
+
* through this: errors come back as readable `path: message` strings
|
|
473
|
+
* (e.g. `contributions.adminSection: Unrecognized key ...` for a key this
|
|
474
|
+
* contract does not define).
|
|
475
|
+
*/
|
|
476
|
+
export declare function validatePluginManifest(value: unknown): ValidatePluginManifestResult;
|