@kardalum/plugin-sdk 0.16.0 → 0.18.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 +105 -0
- package/README.md +4 -3
- package/dist/admin-section-registry.d.ts +14 -5
- package/dist/admin-section-registry.js +14 -4
- package/dist/assets/asset-picker.d.ts +11 -0
- package/dist/assets/asset-picker.js +109 -0
- package/dist/assets/asset-tree.d.ts +30 -0
- package/dist/assets/asset-tree.js +150 -0
- package/dist/built-in-editor-ids.d.ts +1 -0
- package/dist/built-in-editor-ids.js +20 -0
- package/dist/built-in-settings-schemas.d.ts +2 -0
- package/dist/built-in-settings-schemas.js +27 -0
- package/dist/built-in-value-schemas.js +3 -0
- package/dist/built-ins.js +10 -1
- package/dist/capabilities.js +5 -3
- package/dist/datatype-validation.js +18 -4
- package/dist/datatypes-entry.d.ts +1 -0
- package/dist/datatypes-entry.js +1 -0
- package/dist/entitlement-entry.d.ts +3 -2
- package/dist/entitlement-entry.js +13 -1
- package/dist/entitlement-gate.d.ts +18 -0
- package/dist/entitlement-gate.js +95 -21
- package/dist/entitlement-plan.d.ts +21 -0
- package/dist/entitlement-plan.js +26 -0
- package/dist/entitlement-types.d.ts +21 -4
- package/dist/entitlement.d.ts +29 -1
- package/dist/entitlement.js +39 -0
- package/dist/grid-arrow-step.d.ts +7 -0
- package/dist/grid-arrow-step.js +20 -0
- package/dist/host-entry.d.ts +1 -1
- package/dist/host-entry.js +1 -1
- package/dist/index.d.ts +8 -3
- package/dist/index.js +13 -18
- package/dist/license-verdict-keys.d.ts +4 -3
- package/dist/license-verdict-keys.js +4 -7
- package/dist/manifest-entry.d.ts +6 -2
- package/dist/manifest-entry.js +5 -1
- package/dist/manifest-schema.d.ts +56 -63
- package/dist/manifest-schema.js +103 -249
- package/dist/manifest.d.ts +61 -73
- package/dist/manifest.js +13 -36
- package/dist/media/media-picker.js +32 -32
- package/dist/notify.d.ts +17 -0
- package/dist/notify.js +17 -0
- package/dist/plugin-screen-context.d.ts +11 -1
- package/dist/richtext/block-panel.js +19 -20
- package/dist/richtext/extensions.js +10 -1
- package/dist/richtext/insert-menu.js +1 -1
- package/dist/richtext/kardalum-block.js +17 -17
- package/dist/richtext/style-listbox.js +4 -4
- package/dist/richtext-html-entry.d.ts +35 -0
- package/dist/richtext-html-entry.js +73 -0
- package/dist/structured-storage-types.d.ts +11 -0
- package/dist/tailwind.js +10 -3
- package/dist/tokens/tailwind-theme.css +176 -0
- package/dist/tokens/tokens.css +2 -0
- package/dist/tokens/tokens.json +4 -2
- package/dist/type-equality.d.ts +2 -0
- package/dist/type-equality.js +1 -0
- package/dist/vendor-check.d.ts +39 -0
- package/dist/vendor-check.js +79 -0
- package/dist/vendor-entry.d.ts +3 -0
- package/dist/vendor-entry.js +9 -0
- package/dist/vendor-service.d.ts +20 -0
- package/dist/vendor-service.js +20 -0
- package/dist/views/asset-view.d.ts +6 -0
- package/dist/views/asset-view.js +55 -0
- package/dist/views/content-list-settings-view.js +1 -1
- package/dist/views/content-list-view.js +1 -1
- package/dist/views/html-code-editor.js +0 -1
- package/dist/views/html-view.js +1 -1
- package/dist/views/image-view.js +1 -1
- package/dist/views/rich-text-view.js +30 -30
- package/node_modules/@kardalum/api-schemas/README.md +1 -1
- package/node_modules/@kardalum/api-schemas/dist/asset-api.schema.d.ts +90 -0
- package/node_modules/@kardalum/api-schemas/dist/asset-api.schema.js +43 -10
- package/node_modules/@kardalum/api-schemas/dist/asset-field.schema.d.ts +21 -0
- package/node_modules/@kardalum/api-schemas/dist/asset-field.schema.js +42 -0
- package/node_modules/@kardalum/api-schemas/dist/asset.schema.d.ts +23 -1
- package/node_modules/@kardalum/api-schemas/dist/asset.schema.js +60 -18
- package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.d.ts +204 -0
- package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.js +134 -0
- package/node_modules/@kardalum/api-schemas/dist/checkout-shown.schema.d.ts +36 -0
- package/node_modules/@kardalum/api-schemas/dist/checkout-shown.schema.js +46 -0
- package/node_modules/@kardalum/api-schemas/dist/content-api.schema.d.ts +12 -0
- package/node_modules/@kardalum/api-schemas/dist/content-api.schema.js +22 -6
- package/node_modules/@kardalum/api-schemas/dist/content-list.schema.d.ts +2 -2
- package/node_modules/@kardalum/api-schemas/dist/content-trash-api.schema.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/content-trash-api.schema.js +3 -0
- package/node_modules/@kardalum/api-schemas/dist/content-trash.schema.js +2 -1
- package/node_modules/@kardalum/api-schemas/dist/core-actions.d.ts +52 -10
- package/node_modules/@kardalum/api-schemas/dist/core-actions.js +33 -14
- package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.d.ts +50 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.js +25 -5
- package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.d.ts +1 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.js +3 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-cursor.d.ts +11 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-cursor.js +28 -0
- package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.js +42 -2
- package/node_modules/@kardalum/api-schemas/dist/home.schema.d.ts +130 -0
- package/node_modules/@kardalum/api-schemas/dist/home.schema.js +87 -0
- package/node_modules/@kardalum/api-schemas/dist/index.d.ts +73 -31
- package/node_modules/@kardalum/api-schemas/dist/index.js +47 -17
- package/node_modules/@kardalum/api-schemas/dist/install-warnings.schema.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/install-warnings.schema.js +8 -0
- package/node_modules/@kardalum/api-schemas/dist/issue-list.d.ts +6 -0
- package/node_modules/@kardalum/api-schemas/dist/issue-list.js +6 -0
- package/node_modules/@kardalum/api-schemas/dist/kardalum-latest.schema.d.ts +7 -0
- package/node_modules/@kardalum/api-schemas/dist/kardalum-latest.schema.js +9 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.d.ts +216 -63
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +117 -5
- package/node_modules/@kardalum/api-schemas/dist/marketplace-package-api.schema.d.ts +17 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-package-api.schema.js +16 -0
- package/node_modules/@kardalum/api-schemas/dist/media-api.schema.d.ts +26 -0
- package/node_modules/@kardalum/api-schemas/dist/media-api.schema.js +6 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference-use.d.ts +10 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference-use.js +4 -4
- package/node_modules/@kardalum/api-schemas/dist/news.schema.d.ts +93 -0
- package/node_modules/@kardalum/api-schemas/dist/news.schema.js +86 -0
- package/node_modules/@kardalum/api-schemas/dist/node-access.schema.js +13 -0
- package/node_modules/@kardalum/api-schemas/dist/notification.schema.d.ts +410 -0
- package/node_modules/@kardalum/api-schemas/dist/notification.schema.js +193 -0
- package/node_modules/@kardalum/api-schemas/dist/plan-editor.schema.d.ts +86 -0
- package/node_modules/@kardalum/api-schemas/dist/plan-editor.schema.js +92 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.d.ts +6 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.js +8 -6
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.d.ts +8 -18
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.js +7 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.d.ts +3 -19
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +13 -15
- package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.d.ts +17 -7
- package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.js +18 -8
- package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.d.ts +1 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.d.ts +97 -85
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.js +35 -68
- package/node_modules/@kardalum/api-schemas/dist/plugin-labels.d.ts +60 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-labels.js +116 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-locales.d.ts +9 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-locales.js +22 -7
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.d.ts +240 -6
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +164 -32
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +4 -3
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.d.ts +14 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.js +37 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-fields.d.ts +64 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-fields.js +134 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-read-only.schema.d.ts +19 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-read-only.schema.js +33 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-registry-api.schema.d.ts +2 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-registry-api.schema.js +4 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-template-payload.d.ts +83 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-template-payload.js +152 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-vocabulary.d.ts +13 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-vocabulary.js +15 -0
- package/node_modules/@kardalum/api-schemas/dist/public-api.schema.d.ts +5 -0
- package/node_modules/@kardalum/api-schemas/dist/public-api.schema.js +35 -23
- package/node_modules/@kardalum/api-schemas/dist/revenue-view.schema.d.ts +83 -0
- package/node_modules/@kardalum/api-schemas/dist/revenue-view.schema.js +73 -0
- package/node_modules/@kardalum/api-schemas/dist/role.schema.d.ts +11 -0
- package/node_modules/@kardalum/api-schemas/dist/role.schema.js +7 -0
- package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.d.ts +11 -2
- package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.js +21 -3
- package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.d.ts +126 -0
- package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.js +70 -0
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +6 -6
- package/node_modules/@kardalum/api-schemas/dist/sites.schema.d.ts +58 -25
- package/node_modules/@kardalum/api-schemas/dist/sites.schema.js +194 -48
- package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.d.ts +18 -6
- package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.js +14 -0
- package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.d.ts +2 -2
- package/node_modules/@kardalum/api-schemas/dist/strict-url.d.ts +12 -0
- package/node_modules/@kardalum/api-schemas/dist/strict-url.js +31 -0
- package/node_modules/@kardalum/api-schemas/dist/template-api.schema.d.ts +115 -1
- package/node_modules/@kardalum/api-schemas/dist/template-api.schema.js +65 -10
- package/node_modules/@kardalum/api-schemas/dist/template.schema.d.ts +37 -2
- package/node_modules/@kardalum/api-schemas/dist/template.schema.js +34 -8
- package/node_modules/@kardalum/api-schemas/dist/trash-cursor.schema.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/trash-cursor.schema.js +29 -0
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.d.ts +16 -0
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +8 -0
- package/node_modules/@kardalum/api-schemas/dist/uuid.schema.d.ts +2 -0
- package/node_modules/@kardalum/api-schemas/dist/uuid.schema.js +4 -0
- package/node_modules/@kardalum/api-schemas/dist/vendor-service.schema.d.ts +88 -0
- package/node_modules/@kardalum/api-schemas/dist/vendor-service.schema.js +100 -0
- package/node_modules/@kardalum/api-schemas/dist/whoami-api.schema.d.ts +32 -0
- package/node_modules/@kardalum/api-schemas/dist/whoami-api.schema.js +27 -0
- package/node_modules/@kardalum/api-schemas/package.json +2 -2
- package/node_modules/@kardalum/design-tokens/README.md +1 -1
- package/node_modules/@kardalum/design-tokens/dist/build-theme-css.d.ts +16 -0
- package/node_modules/@kardalum/design-tokens/dist/build-theme-css.js +76 -0
- package/node_modules/@kardalum/design-tokens/dist/generate.js +4 -1
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.css +176 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.d.ts +2 -1
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.js +2 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.css +2 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.js +4 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.json +4 -2
- package/node_modules/@kardalum/design-tokens/dist/types.d.ts +2 -0
- package/node_modules/@kardalum/design-tokens/package.json +6 -3
- package/node_modules/@kardalum/plugin-package/README.md +5 -2
- package/node_modules/@kardalum/plugin-package/dist/build-reference.d.ts +6 -21
- package/node_modules/@kardalum/plugin-package/dist/build-reference.js +13 -8
- package/node_modules/@kardalum/plugin-package/dist/capabilities.d.ts +4 -4
- package/node_modules/@kardalum/plugin-package/dist/capabilities.js +59 -16
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.d.ts +4 -0
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.js +25 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/archive-names.d.ts +25 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/archive-names.js +203 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/bundle.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/bundle.js +73 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/contributions.d.ts +8 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/contributions.js +77 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/icon-names.generated.d.ts +1 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/icon-names.generated.js +2052 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/icons.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/icons.js +51 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/index.d.ts +8 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/index.js +7 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/label-languages.d.ts +17 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/label-languages.js +119 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/limits.d.ts +14 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/limits.js +21 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/locales.d.ts +5 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/locales.js +148 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/package-files.d.ts +5 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/package-files.js +76 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/registry.d.ts +22 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/registry.js +137 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/sample-content.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/sample-content.js +90 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/support.d.ts +24 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/support.js +55 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/templates.d.ts +7 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/templates.js +215 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/types.d.ts +53 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/types.js +1 -0
- package/node_modules/@kardalum/plugin-package/dist/docs-contract.d.ts +3 -2
- package/node_modules/@kardalum/plugin-package/dist/docs-contract.js +4 -2
- package/node_modules/@kardalum/plugin-package/dist/extract.d.ts +92 -3
- package/node_modules/@kardalum/plugin-package/dist/extract.js +251 -41
- package/node_modules/@kardalum/plugin-package/dist/index.d.ts +13 -4
- package/node_modules/@kardalum/plugin-package/dist/index.js +10 -3
- package/node_modules/@kardalum/plugin-package/dist/license-verdict.d.ts +56 -19
- package/node_modules/@kardalum/plugin-package/dist/license-verdict.js +119 -25
- package/node_modules/@kardalum/plugin-package/dist/manifest-entry.d.ts +5 -0
- package/node_modules/@kardalum/plugin-package/dist/manifest-entry.js +20 -0
- package/node_modules/@kardalum/plugin-package/dist/reference-entry.d.ts +1 -0
- package/node_modules/@kardalum/plugin-package/dist/reference-entry.js +1 -0
- package/node_modules/@kardalum/plugin-package/dist/sample-content.d.ts +21 -3
- package/node_modules/@kardalum/plugin-package/dist/sample-content.js +37 -9
- package/node_modules/@kardalum/plugin-package/dist/shipped-files.d.ts +39 -0
- package/node_modules/@kardalum/plugin-package/dist/shipped-files.js +133 -0
- package/node_modules/@kardalum/plugin-package/dist/shipped-locales.d.ts +7 -0
- package/node_modules/@kardalum/plugin-package/dist/shipped-locales.js +27 -0
- package/node_modules/@kardalum/plugin-package/dist/vendor-token.d.ts +24 -0
- package/node_modules/@kardalum/plugin-package/dist/vendor-token.js +118 -0
- package/node_modules/@kardalum/plugin-package/package.json +4 -2
- package/node_modules/@kardalum/ui/README.md +1 -1
- package/node_modules/@kardalum/ui/dist/components/button.js +1 -1
- package/node_modules/@kardalum/ui/dist/components/checkbox.js +1 -1
- package/node_modules/@kardalum/ui/dist/components/dialog.js +5 -2
- package/node_modules/@kardalum/ui/dist/components/dropdown-menu.js +3 -3
- package/node_modules/@kardalum/ui/dist/components/input.js +1 -1
- package/node_modules/@kardalum/ui/dist/components/popover-panel.d.ts +4 -0
- package/node_modules/@kardalum/ui/dist/components/popover-panel.js +13 -0
- package/node_modules/@kardalum/ui/dist/components/sheet.js +5 -4
- package/node_modules/@kardalum/ui/dist/components/switch.js +1 -1
- package/node_modules/@kardalum/ui/dist/components/tab-strip.js +1 -1
- package/node_modules/@kardalum/ui/dist/components/toast.js +1 -1
- package/node_modules/@kardalum/ui/dist/index.d.ts +1 -0
- package/node_modules/@kardalum/ui/dist/index.js +1 -0
- package/node_modules/@kardalum/ui/package.json +1 -1
- package/package.json +19 -6
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ export { slotLabel } from "./manifest.js";
|
|
|
6
6
|
// all read one source. Exported from the package index as well as the
|
|
7
7
|
// ./manifest subpath because the admin UI renders it.
|
|
8
8
|
export { CAPABILITY_IDS, CAPABILITY_LABELS, capabilityLabel, PROMISED_CAPABILITY_SENTENCE, deriveCapabilities, isActionGated, } from "./capabilities.js";
|
|
9
|
-
export { BUILT_IN_RAIL_SECTIONS, CMSPluginSchema, DataTypePluginSchema, validatePluginManifest, } from "./manifest-schema.js";
|
|
9
|
+
export { BUILT_IN_RAIL_SECTIONS, DATABASE_DIALECTS, PLUGIN_TYPES, TIER1_DIALECTS, CMSPluginSchema, DataTypePluginSchema, validatePluginManifest, } from "./manifest-schema.js";
|
|
10
10
|
export { definePlugin, PluginDefinitionError } from "./define-plugin.js";
|
|
11
11
|
export { registerDataType, getDataType, listDataTypes } from "./registry.js";
|
|
12
12
|
// The slot registry (spec D8) is not exported here: the host registers a
|
|
@@ -24,10 +24,15 @@ export { SimpleStorageValueProvider } from "./simple-storage-value-provider.js";
|
|
|
24
24
|
// the separate `@kardalum/plugin-sdk/entitlement` subpath (it needs
|
|
25
25
|
// node:crypto); these two verify in the browser and import nothing Node.
|
|
26
26
|
export { EntitlementGate, useEntitlement, } from "./entitlement-gate.js";
|
|
27
|
+
export { highestListingPlan, planFromEnvelope, UNKNOWN_TERM } from "./entitlement-plan.js";
|
|
27
28
|
export { buildRichtextExtensions, TextStyleClass, KardalumBlock, KardalumBlockOnPage, selectedKardalumBlock, findKardalumBlocks, setBlockHtml, unavailableBlockHtml, moveSelectionPastBlock, } from "./richtext/extensions.js";
|
|
28
29
|
// Exported so a later on-page task can reuse the same modal from admin-ui
|
|
29
30
|
// (S197 Task 2) rather than forking it.
|
|
30
31
|
export { MediaPicker } from "./media/media-picker.js";
|
|
32
|
+
// S314c7 (D2): the arrow rule the pickers use (Left and Right follow the page
|
|
33
|
+
// direction, Up and Down keep theirs), for any grid or strip a host or plugin
|
|
34
|
+
// draws.
|
|
35
|
+
export { gridArrowStep } from "./grid-arrow-step.js";
|
|
31
36
|
// S234a: the file upload editor's field stores no value of its own (see
|
|
32
37
|
// file-upload-view.tsx's doc comment), so the host has no `data` key to
|
|
33
38
|
// hand it a current file through. Exported here so the media item screen
|
|
@@ -51,17 +56,17 @@ export { MediaFileProvider, useMediaFile, useMediaFileReplace, } from "./views/f
|
|
|
51
56
|
export { MediaRenditionProvider, useMediaRendition, isRenditionIneligible, RENDITION_INELIGIBLE_TYPES, } from "./views/crop-view.js";
|
|
52
57
|
// The "Aa Style ▾" listbox body, extracted out of rich-text-view.tsx (S197
|
|
53
58
|
// Task 11) so the on-page bubble toolbar (apps/admin-ui) can reuse the
|
|
54
|
-
// exact same widget instead of forking it
|
|
59
|
+
// exact same widget instead of forking it: same reasoning as MediaPicker.
|
|
55
60
|
export { StyleListbox } from "./richtext/style-listbox.js";
|
|
56
|
-
// Block insert menu + param panel (S197 Task 3)
|
|
61
|
+
// Block insert menu + param panel (S197 Task 3), exported for the same
|
|
57
62
|
// reason MediaPicker is: the later on-page mount reuses these rather than
|
|
58
63
|
// forking its own.
|
|
59
64
|
export { BlockInsertMenu, defaultBlockParams, useBlockListings, } from "./richtext/insert-menu.js";
|
|
60
65
|
export { BlockPanel, BlockPreviewPopover, BlockParamFields, } from "./richtext/block-panel.js";
|
|
61
66
|
// The SDK's curated re-export of @kardalum/ui. @kardalum/ui is published
|
|
62
67
|
// (not private) because @kardalum/plugin-sdk has a runtime dependency on
|
|
63
|
-
// it
|
|
64
|
-
// is the first consumer to actually need it
|
|
68
|
+
// it: a registry install of the SDK would be unresolvable otherwise. This
|
|
69
|
+
// is the first consumer to actually need it: built-ins.tsx
|
|
65
70
|
// still imports @kardalum/ui directly, a documented TEMPORARY shortcut valid
|
|
66
71
|
// only because built-ins are compiled into the same admin bundle. Google
|
|
67
72
|
// Maps (Session 74) is a separate package on the real public SDK surface, so
|
|
@@ -73,22 +78,12 @@ export { PropertyField,
|
|
|
73
78
|
// An input view is handed to PropertyField as a COMPONENT, so the
|
|
74
79
|
// field's <label> has no child element to point at. Spreading this hook
|
|
75
80
|
// onto the view's own control is how a third-party data type gets an
|
|
76
|
-
// accessible name (WCAG 4.1.2)
|
|
81
|
+
// accessible name (WCAG 4.1.2), see the datatype plugin contract docs.
|
|
77
82
|
usePropertyFieldControl, } from "@kardalum/ui";
|
|
78
83
|
export { Input } from "@kardalum/ui";
|
|
79
84
|
export { Button } from "@kardalum/ui";
|
|
80
85
|
export { Switch } from "@kardalum/ui";
|
|
81
86
|
export { Badge } from "@kardalum/ui";
|
|
82
87
|
export { cn } from "@kardalum/ui";
|
|
83
|
-
//
|
|
84
|
-
|
|
85
|
-
// package incidentally registered the six built-in datatypes, whether the
|
|
86
|
-
// consumer wanted that or not. That made this entry point permanently
|
|
87
|
-
// heavy (TipTap always, CodeMirror/lezer since S197 Task 8's HTML
|
|
88
|
-
// datatype), which every first-party plugin's Module Federation `shared`
|
|
89
|
-
// config (pointing at this exact bare specifier) then packaged a dead-
|
|
90
|
-
// weight fallback copy of into its own artifact — see
|
|
91
|
-
// `register-built-ins.ts`'s own doc comment for the full story. Built-in
|
|
92
|
-
// registration is now that separate, explicitly-imported subpath
|
|
93
|
-
// (`@kardalum/plugin-sdk/register-built-ins`): apps/admin-ui's
|
|
94
|
-
// bootstrap (main.tsx) and vitest setup are its only two real consumers.
|
|
88
|
+
// S320: context.vendorService and its typed error.
|
|
89
|
+
export { VENDOR_SERVICE_ERROR_CODES, VendorServiceError, isVendorServiceError } from "./vendor-service.js";
|
|
@@ -5,9 +5,10 @@ import type { TrustedKey } from "@kardalum/plugin-package";
|
|
|
5
5
|
* `useEntitlement` (browser) both verify against this list unless a caller
|
|
6
6
|
* passes its own `trustedKeys`, which is how the tests inject a test key.
|
|
7
7
|
*
|
|
8
|
-
* It holds the
|
|
9
|
-
*
|
|
10
|
-
* apps/server/src/plugins/trusted-signing-keys.ts. The
|
|
8
|
+
* It holds the licence verdict key `e72c11dbcdf71e68` (S304b), the same
|
|
9
|
+
* list as the host's SHIPPED_LICENSE_VERDICT_KEYS in
|
|
10
|
+
* apps/server/src/plugins/trusted-signing-keys.ts. The S284b key
|
|
11
|
+
* `a4c4a883bf1392a6` was retired in S314h. The two lists must name the
|
|
11
12
|
* same keys, because the plugin checks the verdict the host stored; the
|
|
12
13
|
* server's trusted-keys.test.ts imports this list and fails if they differ.
|
|
13
14
|
* The package signing key is deliberately not here.
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
* `useEntitlement` (browser) both verify against this list unless a caller
|
|
5
5
|
* passes its own `trustedKeys`, which is how the tests inject a test key.
|
|
6
6
|
*
|
|
7
|
-
* It holds the
|
|
8
|
-
*
|
|
9
|
-
* apps/server/src/plugins/trusted-signing-keys.ts. The
|
|
7
|
+
* It holds the licence verdict key `e72c11dbcdf71e68` (S304b), the same
|
|
8
|
+
* list as the host's SHIPPED_LICENSE_VERDICT_KEYS in
|
|
9
|
+
* apps/server/src/plugins/trusted-signing-keys.ts. The S284b key
|
|
10
|
+
* `a4c4a883bf1392a6` was retired in S314h. The two lists must name the
|
|
10
11
|
* same keys, because the plugin checks the verdict the host stored; the
|
|
11
12
|
* server's trusted-keys.test.ts imports this list and fails if they differ.
|
|
12
13
|
* The package signing key is deliberately not here.
|
|
@@ -15,10 +16,6 @@
|
|
|
15
16
|
* loading @kardalum/plugin-package.
|
|
16
17
|
*/
|
|
17
18
|
export const LICENSE_VERDICT_PUBLIC_KEYS = [
|
|
18
|
-
{
|
|
19
|
-
keyId: "a4c4a883bf1392a6",
|
|
20
|
-
publicKey: "MCowBQYDK2VwAyEA5GCT1TohzY/oOnB0xZ+7pnvCddka2IBFoJNmmYGu9PI=",
|
|
21
|
-
},
|
|
22
19
|
{
|
|
23
20
|
keyId: "e72c11dbcdf71e68",
|
|
24
21
|
publicKey: "MCowBQYDK2VwAyEA5k/u12E1qUYgQRR4+sjtdmBoYieQdXyunB//groWtCo=",
|
package/dist/manifest-entry.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
export type { DataTypePlugin, DataTypePluginViews } from "./data-type-plugin.js";
|
|
2
|
-
export type { PluginType, DatabaseDialect, DatabaseCompatibility, PluginAssertion, PluginAssertions, PluginMigrationContext, PluginMigration, PluginMigrationValidation, PluginMigrationHooks, PluginInstallContext, PluginUpdateContext, PluginInstallDeclaration, InstallStep, InstallOption, InstallChoice, ResolvedInstallAnswers, HookEvent, HookHandler, PluginHooks, ContentLifecycleHookPayload, PluginHookContext, AdminSectionContribution, BuiltInRailEntryContribution, BuiltInRailSection, RailEntryContribution, SlotLabel, DashboardWidgetContribution, ApiRouteContribution, ScheduledTaskContribution, MediaProcessorContribution,
|
|
2
|
+
export type { PluginType, DatabaseDialect, DatabaseCompatibility, PluginAssertion, PluginAssertions, PluginMigrationContext, PluginMigration, PluginMigrationValidation, PluginMigrationHooks, PluginInstallContext, PluginUpdateContext, PluginInstallDeclaration, InstallStep, InstallOption, InstallChoice, ResolvedInstallAnswers, HookEvent, HookHandler, PluginHooks, ContentLifecycleHookPayload, PluginHookContext, AdminSectionContribution, BuiltInRailEntryContribution, BuiltInRailSection, RailEntryContribution, SlotLabel, DashboardWidgetContribution, ApiRouteContribution, ScheduledTaskContribution, MediaProcessorContribution, ExposedServiceContribution, BundledTemplateContribution, SerializerContext, CustomFormatContribution, SerializerContribution, PluginContributions, ViewBearingContribution, PluginManifestBase, PluginManifest, } from "./manifest.js";
|
|
3
3
|
export { VIEW_BEARING_CONTRIBUTIONS, declaresClientBundle, slotLabel } from "./manifest.js";
|
|
4
4
|
export { CAPABILITY_IDS, CAPABILITY_LABELS, capabilityLabel, PROMISED_CAPABILITY_SENTENCE, deriveCapabilities, isActionGated, type Capability, type CapabilityAudience, type CapabilityLabels, type CapabilityMediation, type CapabilityPayload, } from "./capabilities.js";
|
|
5
|
-
export { ASSERTION_KINDS, AssertionsSchema, BUILT_IN_RAIL_SECTIONS, CMSPluginSchema, CONTRIBUTION_KEYS, DataTypePluginSchema, formatIssues, validatePluginManifest, type ValidatePluginManifestResult, } from "./manifest-schema.js";
|
|
5
|
+
export { ASSERTION_KINDS, AssertionsSchema, BUILT_IN_RAIL_SECTIONS, CMSPluginSchema, CONTRIBUTION_KEYS, DATABASE_DIALECTS, DataTypePluginSchema, PLUGIN_TYPES, TIER1_DIALECTS, formatIssues, validatePluginManifest, type ValidatePluginManifestResult, } from "./manifest-schema.js";
|
|
6
6
|
export type { PluginColumnType, PluginColumnSchema, PluginIndexSchema, PluginTableSchema, StructuredQueryBuilder, StructuredStorageTransaction, ScopedStructuredStorage, PublishedContent, PluginApiRouteContext, } from "./structured-storage-types.js";
|
|
7
7
|
export type { Entitlement, EntitlementErrorCode, EntitlementVerdict, PluginTaskContext } from "./entitlement-types.js";
|
|
8
8
|
export { definePlugin, PluginDefinitionError } from "./define-plugin.js";
|
|
9
|
+
export { NOTIFICATION_REFUSAL_REASONS, NotificationRefusedError, isNotificationRefusedError } from "./notify.js";
|
|
10
|
+
export type { NotificationRefusalReason, PluginNotify, PluginNotifyInput, PluginNotifyResult } from "./notify.js";
|
|
11
|
+
export { VENDOR_SERVICE_ERROR_CODES, VendorServiceError, isVendorServiceError } from "./vendor-service.js";
|
|
12
|
+
export type { PluginVendorService, VendorServiceErrorCode, VendorServiceRequestInit } from "./vendor-service.js";
|
package/dist/manifest-entry.js
CHANGED
|
@@ -9,5 +9,9 @@ export { VIEW_BEARING_CONTRIBUTIONS, declaresClientBundle, slotLabel } from "./m
|
|
|
9
9
|
// out: no React, no zod, so every non-browser reader of the manifest
|
|
10
10
|
// contract can compute it.
|
|
11
11
|
export { CAPABILITY_IDS, CAPABILITY_LABELS, capabilityLabel, PROMISED_CAPABILITY_SENTENCE, deriveCapabilities, isActionGated, } from "./capabilities.js";
|
|
12
|
-
export { ASSERTION_KINDS, AssertionsSchema, BUILT_IN_RAIL_SECTIONS, CMSPluginSchema, CONTRIBUTION_KEYS, DataTypePluginSchema, formatIssues, validatePluginManifest, } from "./manifest-schema.js";
|
|
12
|
+
export { ASSERTION_KINDS, AssertionsSchema, BUILT_IN_RAIL_SECTIONS, CMSPluginSchema, CONTRIBUTION_KEYS, DATABASE_DIALECTS, DataTypePluginSchema, PLUGIN_TYPES, TIER1_DIALECTS, formatIssues, validatePluginManifest, } from "./manifest-schema.js";
|
|
13
13
|
export { definePlugin, PluginDefinitionError } from "./define-plugin.js";
|
|
14
|
+
// S314n3: context.notify and its typed refusal.
|
|
15
|
+
export { NOTIFICATION_REFUSAL_REASONS, NotificationRefusedError, isNotificationRefusedError } from "./notify.js";
|
|
16
|
+
// S320: context.vendorService and its typed error.
|
|
17
|
+
export { VENDOR_SERVICE_ERROR_CODES, VendorServiceError, isVendorServiceError } from "./vendor-service.js";
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import type { ComponentType } from "react";
|
|
2
2
|
import type { JSONSchema7 } from "json-schema";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
import { API_ROUTE_METHODS } from "@kardalum/api-schemas";
|
|
4
|
+
import { API_ROUTE_ACCESS_TIERS, API_ROUTE_METHODS, DATABASE_DIALECTS, PLUGIN_TYPES, STORAGE_TYPES, TEMPLATE_KINDS, TIER1_DIALECTS } from "@kardalum/api-schemas";
|
|
5
5
|
import type { DatabaseDialect, HookHandler, PluginAssertions, PluginContributions, PluginManifest } from "./manifest.js";
|
|
6
|
-
export
|
|
7
|
-
export declare const STORAGE_TYPES: readonly ["simple", "structured"];
|
|
6
|
+
export { API_ROUTE_ACCESS_TIERS, DATABASE_DIALECTS, PLUGIN_TYPES, STORAGE_TYPES, TEMPLATE_KINDS, TIER1_DIALECTS };
|
|
8
7
|
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
8
|
export declare const DATATYPE_ENTRY_TYPES: readonly ["datatype"];
|
|
13
9
|
export declare const AssertionsSchema: z.ZodObject<{
|
|
14
10
|
externalNetwork: z.ZodOptional<z.ZodObject<{
|
|
@@ -103,17 +99,17 @@ export declare const CMSPluginSchema: z.ZodObject<{
|
|
|
103
99
|
}, z.core.$strict>>>;
|
|
104
100
|
adminSections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
105
101
|
id: z.ZodString;
|
|
106
|
-
label: z.ZodObject<{
|
|
102
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
107
103
|
en: z.ZodString;
|
|
108
|
-
}, z.core.$catchall<z.ZodString
|
|
104
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
109
105
|
icon: z.ZodString;
|
|
110
106
|
action: z.ZodString;
|
|
111
107
|
view: z.ZodCustom<ComponentType, ComponentType>;
|
|
112
108
|
rail: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
113
109
|
id: z.ZodString;
|
|
114
|
-
label: z.ZodObject<{
|
|
110
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
115
111
|
en: z.ZodString;
|
|
116
|
-
}, z.core.$catchall<z.ZodString
|
|
112
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
117
113
|
icon: z.ZodOptional<z.ZodString>;
|
|
118
114
|
action: z.ZodString;
|
|
119
115
|
view: z.ZodCustom<ComponentType, ComponentType>;
|
|
@@ -123,21 +119,23 @@ export declare const CMSPluginSchema: z.ZodObject<{
|
|
|
123
119
|
railEntries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
124
120
|
id: z.ZodString;
|
|
125
121
|
section: z.ZodEnum<{
|
|
122
|
+
settings: "settings";
|
|
126
123
|
media: "media";
|
|
127
124
|
content: "content";
|
|
128
|
-
settings: "settings";
|
|
129
125
|
users: "users";
|
|
130
126
|
}>;
|
|
131
|
-
label: z.ZodObject<{
|
|
127
|
+
label: z.ZodPreprocess<z.ZodObject<{
|
|
132
128
|
en: z.ZodString;
|
|
133
|
-
}, z.core.$catchall<z.ZodString
|
|
129
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
134
130
|
icon: z.ZodOptional<z.ZodString>;
|
|
135
131
|
action: z.ZodString;
|
|
136
132
|
view: z.ZodCustom<ComponentType, ComponentType>;
|
|
137
133
|
}, z.core.$strict>>>;
|
|
138
134
|
dashboardWidgets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
139
135
|
id: z.ZodString;
|
|
140
|
-
name: z.ZodString
|
|
136
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
137
|
+
en: z.ZodString;
|
|
138
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
141
139
|
view: z.ZodCustom<ComponentType, ComponentType>;
|
|
142
140
|
action: z.ZodString;
|
|
143
141
|
}, z.core.$strict>>>;
|
|
@@ -157,10 +155,10 @@ export declare const CMSPluginSchema: z.ZodObject<{
|
|
|
157
155
|
}>>;
|
|
158
156
|
action: z.ZodOptional<z.ZodString>;
|
|
159
157
|
schema: z.ZodOptional<z.ZodObject<{
|
|
160
|
-
body: z.ZodOptional<z.
|
|
161
|
-
querystring: z.ZodOptional<z.
|
|
162
|
-
params: z.ZodOptional<z.
|
|
163
|
-
response: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
158
|
+
body: z.ZodOptional<z.ZodInstanceOf<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
159
|
+
querystring: z.ZodOptional<z.ZodInstanceOf<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
160
|
+
params: z.ZodOptional<z.ZodInstanceOf<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
161
|
+
response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodInstanceOf<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>>;
|
|
164
162
|
}, z.core.$strict>>;
|
|
165
163
|
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
164
|
}, z.core.$strict>>>;
|
|
@@ -178,37 +176,24 @@ export declare const CMSPluginSchema: z.ZodObject<{
|
|
|
178
176
|
}> & z.core.$partial, z.ZodCustom<HookHandler, HookHandler>>>;
|
|
179
177
|
scheduledTasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
180
178
|
id: z.ZodString;
|
|
181
|
-
name: z.ZodString
|
|
179
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
180
|
+
en: z.ZodString;
|
|
181
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
182
182
|
cron: z.ZodString;
|
|
183
183
|
run: z.ZodCustom<(context?: import("./entitlement-types.js").PluginTaskContext) => void | Promise<void>, (context?: import("./entitlement-types.js").PluginTaskContext) => void | Promise<void>>;
|
|
184
184
|
}, z.core.$strict>>>;
|
|
185
185
|
mediaProcessors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
186
186
|
id: z.ZodString;
|
|
187
|
-
name: z.ZodString
|
|
187
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
188
|
+
en: z.ZodString;
|
|
189
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
188
190
|
process: z.ZodCustom<(file: unknown) => unknown | Promise<unknown>, (file: unknown) => unknown | Promise<unknown>>;
|
|
189
191
|
}, 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
192
|
exposedServices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
210
193
|
id: z.ZodString;
|
|
211
|
-
name: z.ZodString
|
|
194
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
195
|
+
en: z.ZodString;
|
|
196
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
212
197
|
service: z.ZodUnknown;
|
|
213
198
|
}, z.core.$strict>>>;
|
|
214
199
|
serializers: z.ZodOptional<z.ZodObject<{
|
|
@@ -319,16 +304,10 @@ export declare const CMSPluginSchema: z.ZodObject<{
|
|
|
319
304
|
description: z.ZodOptional<z.ZodString>;
|
|
320
305
|
repository: z.ZodOptional<z.ZodString>;
|
|
321
306
|
}, z.core.$strict>>;
|
|
307
|
+
notifications: z.ZodOptional<z.ZodLiteral<true>>;
|
|
322
308
|
}, 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
309
|
price: z.ZodOptional<z.ZodNumber>;
|
|
330
310
|
signature: z.ZodOptional<z.ZodString>;
|
|
331
|
-
cmsVersion: z.ZodString;
|
|
332
311
|
pluginDependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
333
312
|
databaseCompatibility: z.ZodObject<{
|
|
334
313
|
storageType: z.ZodEnum<{
|
|
@@ -377,11 +356,15 @@ export declare const CMSPluginSchema: z.ZodObject<{
|
|
|
377
356
|
}, z.core.$strict>>;
|
|
378
357
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
379
358
|
id: z.ZodString;
|
|
380
|
-
label: z.ZodString
|
|
359
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
360
|
+
en: z.ZodString;
|
|
361
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
381
362
|
}, z.core.$strip>>>;
|
|
382
363
|
roles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
383
364
|
id: z.ZodString;
|
|
384
|
-
label: z.ZodString
|
|
365
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
366
|
+
en: z.ZodString;
|
|
367
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
385
368
|
actions: z.ZodArray<z.ZodString>;
|
|
386
369
|
}, z.core.$strip>>>;
|
|
387
370
|
docs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -401,62 +384,72 @@ export declare const CMSPluginSchema: z.ZodObject<{
|
|
|
401
384
|
id: z.ZodString;
|
|
402
385
|
label: z.ZodPreprocess<z.ZodObject<{
|
|
403
386
|
en: z.ZodString;
|
|
404
|
-
}, z.core.$catchall<z.ZodString
|
|
387
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
405
388
|
description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
|
|
406
389
|
en: z.ZodString;
|
|
407
|
-
}, z.core.$catchall<z.ZodString
|
|
390
|
+
}, z.core.$catchall<z.ZodString>>, unknown>>;
|
|
408
391
|
options: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
409
392
|
kind: z.ZodLiteral<"boolean">;
|
|
410
393
|
default: z.ZodBoolean;
|
|
411
394
|
id: z.ZodString;
|
|
412
395
|
label: z.ZodPreprocess<z.ZodObject<{
|
|
413
396
|
en: z.ZodString;
|
|
414
|
-
}, z.core.$catchall<z.ZodString
|
|
397
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
415
398
|
description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
|
|
416
399
|
en: z.ZodString;
|
|
417
|
-
}, z.core.$catchall<z.ZodString
|
|
400
|
+
}, z.core.$catchall<z.ZodString>>, unknown>>;
|
|
418
401
|
}, z.core.$strict>, z.ZodObject<{
|
|
419
402
|
kind: z.ZodLiteral<"select">;
|
|
420
403
|
choices: z.ZodArray<z.ZodObject<{
|
|
421
404
|
id: z.ZodString;
|
|
422
405
|
label: z.ZodPreprocess<z.ZodObject<{
|
|
423
406
|
en: z.ZodString;
|
|
424
|
-
}, z.core.$catchall<z.ZodString
|
|
407
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
425
408
|
description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
|
|
426
409
|
en: z.ZodString;
|
|
427
|
-
}, z.core.$catchall<z.ZodString
|
|
410
|
+
}, z.core.$catchall<z.ZodString>>, unknown>>;
|
|
428
411
|
}, z.core.$strict>>;
|
|
429
412
|
default: z.ZodOptional<z.ZodString>;
|
|
430
413
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
431
414
|
id: z.ZodString;
|
|
432
415
|
label: z.ZodPreprocess<z.ZodObject<{
|
|
433
416
|
en: z.ZodString;
|
|
434
|
-
}, z.core.$catchall<z.ZodString
|
|
417
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
435
418
|
description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
|
|
436
419
|
en: z.ZodString;
|
|
437
|
-
}, z.core.$catchall<z.ZodString
|
|
420
|
+
}, z.core.$catchall<z.ZodString>>, unknown>>;
|
|
438
421
|
}, z.core.$strict>, z.ZodObject<{
|
|
439
422
|
kind: z.ZodLiteral<"multiSelect">;
|
|
440
423
|
choices: z.ZodArray<z.ZodObject<{
|
|
441
424
|
id: z.ZodString;
|
|
442
425
|
label: z.ZodPreprocess<z.ZodObject<{
|
|
443
426
|
en: z.ZodString;
|
|
444
|
-
}, z.core.$catchall<z.ZodString
|
|
427
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
445
428
|
description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
|
|
446
429
|
en: z.ZodString;
|
|
447
|
-
}, z.core.$catchall<z.ZodString
|
|
430
|
+
}, z.core.$catchall<z.ZodString>>, unknown>>;
|
|
448
431
|
}, z.core.$strict>>;
|
|
449
432
|
default: z.ZodArray<z.ZodString>;
|
|
450
433
|
id: z.ZodString;
|
|
451
434
|
label: z.ZodPreprocess<z.ZodObject<{
|
|
452
435
|
en: z.ZodString;
|
|
453
|
-
}, z.core.$catchall<z.ZodString
|
|
436
|
+
}, z.core.$catchall<z.ZodString>>, unknown>;
|
|
454
437
|
description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
|
|
455
438
|
en: z.ZodString;
|
|
456
|
-
}, z.core.$catchall<z.ZodString
|
|
439
|
+
}, z.core.$catchall<z.ZodString>>, unknown>>;
|
|
457
440
|
}, z.core.$strict>], "kind">>;
|
|
458
441
|
}, z.core.$strict>>;
|
|
459
442
|
}, z.core.$strict>>;
|
|
443
|
+
vendorService: z.ZodOptional<z.ZodObject<{
|
|
444
|
+
origin: z.ZodString;
|
|
445
|
+
}, z.core.$strict>>;
|
|
446
|
+
id: z.ZodString;
|
|
447
|
+
version: z.ZodString;
|
|
448
|
+
name: z.ZodString;
|
|
449
|
+
description: z.ZodString;
|
|
450
|
+
author: z.ZodString;
|
|
451
|
+
license: z.ZodString;
|
|
452
|
+
cmsVersion: z.ZodString;
|
|
460
453
|
}, z.core.$strict>;
|
|
461
454
|
export declare function formatIssues(issues: z.core.$ZodIssue[]): string[];
|
|
462
455
|
export type ValidatePluginManifestResult = {
|
|
@@ -470,7 +463,7 @@ export type ValidatePluginManifestResult = {
|
|
|
470
463
|
* Validate an untrusted value as a plugin manifest. The registry's
|
|
471
464
|
* install() (Session 62) and `kardalum plugin validate` (Month 7) both go
|
|
472
465
|
* through this: errors come back as readable `path: message` strings
|
|
473
|
-
* (e.g. `contributions
|
|
474
|
-
* contract does not define).
|
|
466
|
+
* (e.g. `contributions: Unrecognized key: "adminSection"` for a key this
|
|
467
|
+
* contract does not define, listed before any issue it causes).
|
|
475
468
|
*/
|
|
476
469
|
export declare function validatePluginManifest(value: unknown): ValidatePluginManifestResult;
|