@kardalum/plugin-sdk 0.20.0 → 0.21.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 +70 -0
- package/dist/admin-section-registry.d.ts +33 -1
- package/dist/admin-section-registry.js +67 -0
- package/dist/capabilities.js +46 -1
- package/dist/consent-entry.d.ts +11 -0
- package/dist/consent-entry.js +18 -0
- package/dist/content-library.d.ts +17 -0
- package/dist/content-list-extensions.d.ts +50 -0
- package/dist/content-list-extensions.js +11 -0
- package/dist/content-picker/page-picker-sheet.d.ts +2 -0
- package/dist/content-picker/page-picker-sheet.js +1 -1
- package/dist/content-picker/page-picker.d.ts +18 -0
- package/dist/content-picker/page-picker.js +20 -0
- package/dist/datatype-validation.js +10 -2
- package/dist/datatypes-entry.d.ts +1 -0
- package/dist/datatypes-entry.js +2 -0
- package/dist/entitlement-types.d.ts +18 -1
- package/dist/host-entry.d.ts +7 -1
- package/dist/host-entry.js +14 -1
- package/dist/index.d.ts +35 -7
- package/dist/index.js +46 -5
- package/dist/mail.d.ts +6 -2
- package/dist/manifest-entry.d.ts +22 -4
- package/dist/manifest-entry.js +25 -1
- package/dist/manifest-schema.d.ts +570 -31
- package/dist/manifest-schema.js +240 -12
- package/dist/manifest.d.ts +757 -32
- package/dist/manifest.js +8 -4
- package/dist/plugin-context.d.ts +47 -0
- package/dist/plugin-context.js +27 -0
- package/dist/plugin-permissions.d.ts +18 -0
- package/dist/plugin-permissions.js +25 -0
- package/dist/plugin-screen-context.d.ts +152 -11
- package/dist/plugin-screen-context.js +30 -0
- package/dist/providers.d.ts +47 -2
- package/dist/render-page.d.ts +15 -0
- package/dist/render-page.js +20 -0
- package/dist/richtext/block-panel.d.ts +12 -1
- package/dist/richtext/block-panel.js +27 -21
- package/dist/richtext/button-view.d.ts +11 -0
- package/dist/richtext/button-view.js +45 -0
- package/dist/richtext/content-guard.d.ts +4 -0
- package/dist/richtext/content-guard.js +27 -0
- package/dist/richtext/editor-handle.d.ts +34 -0
- package/dist/richtext/editor-handle.js +225 -0
- package/dist/richtext/extensions.d.ts +6 -0
- package/dist/richtext/extensions.js +16 -0
- package/dist/richtext/insert-menu.d.ts +6 -1
- package/dist/richtext/insert-menu.js +38 -18
- package/dist/richtext/item-attributes.d.ts +6 -0
- package/dist/richtext/item-attributes.js +19 -0
- package/dist/richtext/item-panel.d.ts +25 -0
- package/dist/richtext/item-panel.js +118 -0
- package/dist/richtext/item-view.d.ts +58 -0
- package/dist/richtext/item-view.js +172 -0
- package/dist/richtext/mark-form.d.ts +10 -0
- package/dist/richtext/mark-form.js +38 -0
- package/dist/richtext/paste-choice.d.ts +9 -0
- package/dist/richtext/paste-choice.js +13 -0
- package/dist/richtext/plugin-items.d.ts +72 -0
- package/dist/richtext/plugin-items.js +562 -0
- package/dist/richtext/plugin-mark-tooltips.d.ts +5 -0
- package/dist/richtext/plugin-mark-tooltips.js +44 -0
- package/dist/richtext/plugin-toolbar.d.ts +57 -0
- package/dist/richtext/plugin-toolbar.js +186 -0
- package/dist/richtext/rich-item-icons.d.ts +5 -0
- package/dist/richtext/rich-item-icons.js +42 -0
- package/dist/richtext/rich-items.d.ts +42 -0
- package/dist/richtext/rich-items.js +68 -0
- package/dist/richtext/rich-text-view-host.d.ts +24 -0
- package/dist/richtext/rich-text-view-host.js +11 -0
- package/dist/richtext/toolbar-button.d.ts +16 -0
- package/dist/richtext/toolbar-button.js +9 -0
- package/dist/richtext/url-paste.d.ts +20 -0
- package/dist/richtext/url-paste.js +82 -0
- package/dist/richtext-html-entry.d.ts +5 -0
- package/dist/richtext-html-entry.js +11 -0
- package/dist/sdk-strings.d.ts +59 -0
- package/dist/sdk-strings.js +64 -0
- package/dist/service-contract.d.ts +17 -0
- package/dist/service-contract.js +39 -0
- package/dist/services.d.ts +114 -0
- package/dist/services.js +1 -0
- package/dist/structured-storage-types.d.ts +124 -4
- package/dist/tailwind.js +10 -5
- package/dist/template-reads.d.ts +16 -0
- package/dist/template-reads.js +21 -0
- package/dist/testing-entry.d.ts +38 -0
- package/dist/testing-entry.js +173 -0
- package/dist/text-entry.d.ts +1 -1
- package/dist/text-entry.js +3 -2
- package/dist/tokens/system-dark.css +1 -0
- package/dist/tokens/tailwind-theme.css +2 -0
- package/dist/tokens/tokens.css +4 -0
- package/dist/tokens/tokens.json +5 -1
- package/dist/uploads.d.ts +43 -0
- package/dist/uploads.js +1 -0
- package/dist/user-library.d.ts +51 -0
- package/dist/user-library.js +15 -0
- package/dist/view-helpers.d.ts +18 -0
- package/dist/view-helpers.js +64 -0
- package/dist/views/content-list-view.js +207 -8
- package/dist/views/content-picker-view.js +1 -1
- package/dist/views/rich-text-view.d.ts +2 -0
- package/dist/views/rich-text-view.js +182 -24
- package/dist/views/unreadable-rich-text.d.ts +17 -0
- package/dist/views/unreadable-rich-text.js +40 -0
- package/dist/visitors.d.ts +81 -0
- package/dist/visitors.js +1 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-app-hosts.d.ts +21 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-app-hosts.js +39 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-app-redirects.d.ts +2 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-app-redirects.js +31 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.d.ts +127 -8
- package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.js +82 -7
- package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.d.ts +5 -1
- package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.js +2 -2
- package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.d.ts +7 -0
- package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.js +11 -0
- package/node_modules/@kardalum/api-schemas/dist/capability-detail.d.ts +1 -1
- package/node_modules/@kardalum/api-schemas/dist/capability-detail.js +18 -0
- package/node_modules/@kardalum/api-schemas/dist/content-list.schema.d.ts +80 -0
- package/node_modules/@kardalum/api-schemas/dist/content-list.schema.js +41 -2
- package/node_modules/@kardalum/api-schemas/dist/content-reads.schema.d.ts +213 -0
- package/node_modules/@kardalum/api-schemas/dist/content-reads.schema.js +234 -0
- package/node_modules/@kardalum/api-schemas/dist/contribution-issues.d.ts +11 -0
- package/node_modules/@kardalum/api-schemas/dist/contribution-issues.js +14 -0
- package/node_modules/@kardalum/api-schemas/dist/core-actions.d.ts +50 -13
- package/node_modules/@kardalum/api-schemas/dist/core-actions.js +19 -10
- package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.d.ts +77 -0
- package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.js +37 -0
- package/node_modules/@kardalum/api-schemas/dist/experimental-points.d.ts +19 -0
- package/node_modules/@kardalum/api-schemas/dist/experimental-points.js +250 -0
- package/node_modules/@kardalum/api-schemas/dist/form-protection-callers.d.ts +29 -0
- package/node_modules/@kardalum/api-schemas/dist/form-protection-callers.js +31 -0
- package/node_modules/@kardalum/api-schemas/dist/html-scan.d.ts +22 -0
- package/node_modules/@kardalum/api-schemas/dist/html-scan.js +122 -0
- package/node_modules/@kardalum/api-schemas/dist/html-start-tags.d.ts +48 -0
- package/node_modules/@kardalum/api-schemas/dist/html-start-tags.js +381 -0
- package/node_modules/@kardalum/api-schemas/dist/index.d.ts +52 -14
- package/node_modules/@kardalum/api-schemas/dist/index.js +53 -9
- package/node_modules/@kardalum/api-schemas/dist/json-depth.d.ts +3 -0
- package/node_modules/@kardalum/api-schemas/dist/json-depth.js +20 -0
- package/node_modules/@kardalum/api-schemas/dist/mail-rules.d.ts +4 -2
- package/node_modules/@kardalum/api-schemas/dist/mail-rules.js +6 -1
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.d.ts +178 -2
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +10 -0
- package/node_modules/@kardalum/api-schemas/dist/mcp-plugins.schema.d.ts +3 -3
- package/node_modules/@kardalum/api-schemas/dist/media-api.schema.d.ts +16 -0
- package/node_modules/@kardalum/api-schemas/dist/media.schema.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/media.schema.js +4 -0
- package/node_modules/@kardalum/api-schemas/dist/nested-validation.d.ts +7 -0
- package/node_modules/@kardalum/api-schemas/dist/nested-validation.js +51 -2
- package/node_modules/@kardalum/api-schemas/dist/page-audience.schema.d.ts +87 -0
- package/node_modules/@kardalum/api-schemas/dist/page-audience.schema.js +44 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-admin-slots.d.ts +11 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-admin-slots.js +61 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.d.ts +4 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.js +12 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-content-slots.d.ts +136 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-content-slots.js +254 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-checks.d.ts +22 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-checks.js +66 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-document.d.ts +130 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-document.js +173 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-fetch.d.ts +16 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-fetch.js +112 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-schema.d.ts +70 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-schema.js +380 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-types.d.ts +3 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-contract-types.js +68 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.d.ts +18 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.d.ts +18 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +5 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.d.ts +10 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.js +48 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.d.ts +5 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.js +6 -4
- package/node_modules/@kardalum/api-schemas/dist/plugin-events.d.ts +24 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-events.js +53 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-guards.d.ts +112 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-guards.js +118 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-held-embeds.d.ts +12 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-held-embeds.js +3 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.d.ts +2 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.js +3 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.d.ts +67 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.js +15 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-kept-parts.d.ts +138 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-kept-parts.js +110 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.d.ts +80 -15
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +67 -23
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +10 -3
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +33 -8
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.d.ts +2 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.js +7 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-outbound.d.ts +1 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-providers.d.ts +43 -7
- package/node_modules/@kardalum/api-schemas/dist/plugin-providers.js +36 -5
- package/node_modules/@kardalum/api-schemas/dist/plugin-rich-text.d.ts +638 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-rich-text.js +533 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-service-call.d.ts +36 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-service-call.js +32 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-service-connections.d.ts +193 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-service-connections.js +123 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-service-declarations.d.ts +209 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-service-declarations.js +372 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-services.d.ts +90 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-services.js +204 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-settings.d.ts +10 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-settings.js +10 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.d.ts +171 -4
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.js +406 -42
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-requests.d.ts +69 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-requests.js +149 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-styles.d.ts +5 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-styles.js +13 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-uploads.d.ts +96 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-uploads.js +185 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-user-accounts.d.ts +213 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-user-accounts.js +131 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-view-kit.d.ts +54 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-view-kit.js +154 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-visitor-points.d.ts +37 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-visitor-points.js +124 -0
- package/node_modules/@kardalum/api-schemas/dist/render-cache.d.ts +126 -0
- package/node_modules/@kardalum/api-schemas/dist/render-cache.js +263 -0
- package/node_modules/@kardalum/api-schemas/dist/render-editing.d.ts +303 -0
- package/node_modules/@kardalum/api-schemas/dist/render-editing.js +61 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-paste-hosts.d.ts +14 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-paste-hosts.js +108 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.d.ts +66 -1
- package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.js +465 -7
- package/node_modules/@kardalum/api-schemas/dist/rich-text-text.js +15 -118
- package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.d.ts +110 -0
- package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.js +36 -0
- package/node_modules/@kardalum/api-schemas/dist/security-overview.schema.d.ts +64 -0
- package/node_modules/@kardalum/api-schemas/dist/security-overview.schema.js +38 -0
- package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.d.ts +9 -2
- package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.js +7 -2
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +26 -0
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.js +19 -0
- package/node_modules/@kardalum/api-schemas/dist/sign-in-steps.d.ts +724 -0
- package/node_modules/@kardalum/api-schemas/dist/sign-in-steps.js +408 -0
- package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.d.ts +5 -3
- package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.js +3 -1
- package/node_modules/@kardalum/api-schemas/dist/site-consent.d.ts +77 -0
- package/node_modules/@kardalum/api-schemas/dist/site-consent.js +122 -0
- package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.js +28 -0
- package/node_modules/@kardalum/api-schemas/dist/template-api.schema.d.ts +33 -0
- package/node_modules/@kardalum/api-schemas/dist/template-api.schema.js +26 -1
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.d.ts +14 -0
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +2 -0
- package/node_modules/@kardalum/api-schemas/dist/visitor-accounts.d.ts +482 -0
- package/node_modules/@kardalum/api-schemas/dist/visitor-accounts.js +380 -0
- package/node_modules/@kardalum/api-schemas/dist/visitor-groups.d.ts +109 -0
- package/node_modules/@kardalum/api-schemas/dist/visitor-groups.js +62 -0
- package/node_modules/@kardalum/api-schemas/package.json +1 -0
- package/node_modules/@kardalum/design-tokens/dist/build-css.js +9 -1
- package/node_modules/@kardalum/design-tokens/dist/system-dark.css +1 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.css +2 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.d.ts +1 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.js +2 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.css +4 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.js +6 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.json +5 -1
- package/node_modules/@kardalum/design-tokens/dist/types.d.ts +4 -0
- package/node_modules/@kardalum/plugin-package/dist/build-reference.d.ts +17 -0
- package/node_modules/@kardalum/plugin-package/dist/build-reference.js +9 -0
- package/node_modules/@kardalum/plugin-package/dist/capabilities.d.ts +1 -1
- package/node_modules/@kardalum/plugin-package/dist/capabilities.js +276 -19
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.d.ts +1 -1
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.js +23 -0
- package/node_modules/@kardalum/plugin-package/dist/contract-fingerprint.d.ts +17 -0
- package/node_modules/@kardalum/plugin-package/dist/contract-fingerprint.js +39 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/admin-styles.d.ts +23 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/admin-styles.js +351 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/bundle.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/bundle.js +1 -1
- package/node_modules/@kardalum/plugin-package/dist/delivery/content-access.js +21 -8
- package/node_modules/@kardalum/plugin-package/dist/delivery/contributions.js +1 -1
- package/node_modules/@kardalum/plugin-package/dist/delivery/editor-extensions.js +23 -10
- package/node_modules/@kardalum/plugin-package/dist/delivery/icons.js +3 -2
- package/node_modules/@kardalum/plugin-package/dist/delivery/index.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/index.js +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/label-languages.js +30 -2
- package/node_modules/@kardalum/plugin-package/dist/delivery/licence-check.js +6 -2
- package/node_modules/@kardalum/plugin-package/dist/delivery/limits.d.ts +6 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/limits.js +6 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/providers.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/providers.js +24 -6
- package/node_modules/@kardalum/plugin-package/dist/delivery/registry.js +15 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/rich-text.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/rich-text.js +173 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/sample-content.js +1 -1
- package/node_modules/@kardalum/plugin-package/dist/delivery/server-powers.js +14 -4
- package/node_modules/@kardalum/plugin-package/dist/delivery/services-events.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/services-events.js +35 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/sign-in-steps.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/sign-in-steps.js +71 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/site-extensions.js +44 -11
- package/node_modules/@kardalum/plugin-package/dist/delivery/types.d.ts +7 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/user-accounts.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/user-accounts.js +36 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/visitor-points.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/visitor-points.js +33 -0
- package/node_modules/@kardalum/plugin-package/dist/index.d.ts +4 -0
- package/node_modules/@kardalum/plugin-package/dist/index.js +5 -0
- package/node_modules/@kardalum/plugin-package/dist/public-suffix.d.ts +7 -0
- package/node_modules/@kardalum/plugin-package/dist/public-suffix.js +23 -0
- package/node_modules/@kardalum/plugin-package/dist/rich-text-summary.d.ts +1 -0
- package/node_modules/@kardalum/plugin-package/dist/rich-text-summary.js +27 -0
- package/node_modules/@kardalum/plugin-package/dist/stylesheet-load-hook.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/stylesheet-load-hook.js +28 -0
- package/node_modules/@kardalum/plugin-package/package.json +4 -0
- package/node_modules/@kardalum/ui/dist/components/select.d.ts +6 -0
- package/node_modules/@kardalum/ui/dist/components/select.js +7 -0
- package/node_modules/@kardalum/ui/dist/components/textarea.d.ts +6 -0
- package/node_modules/@kardalum/ui/dist/components/textarea.js +7 -0
- package/node_modules/@kardalum/ui/dist/index.d.ts +2 -0
- package/node_modules/@kardalum/ui/dist/index.js +2 -0
- package/package.json +15 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/** D1: the kinds of provider. F4b adds "signIn", H adds "mail". */
|
|
3
|
-
export declare const PROVIDER_KINDS: readonly ["formProtection", "search", "mediaStore", "mail"];
|
|
2
|
+
/** D1: the kinds of provider. F4b adds "signIn", H adds "mail", M35 P5 adds "consent". */
|
|
3
|
+
export declare const PROVIDER_KINDS: readonly ["formProtection", "search", "mediaStore", "mail", "consent"];
|
|
4
4
|
export type ProviderKind = (typeof PROVIDER_KINDS)[number];
|
|
5
5
|
/** D1: the `contributions` key each kind is declared under. */
|
|
6
|
-
export declare const PROVIDER_CONTRIBUTION_KEYS: Readonly<Record<ProviderKind, "protectionProviders" | "searchProviders" | "mediaStores" | "mailSenders">>;
|
|
6
|
+
export declare const PROVIDER_CONTRIBUTION_KEYS: Readonly<Record<ProviderKind, "protectionProviders" | "searchProviders" | "mediaStores" | "mailSenders" | "consentTools">>;
|
|
7
7
|
/** D1: per kind, the functions a provider entry must have and the ones it may have. */
|
|
8
8
|
export declare const PROVIDER_FUNCTIONS: Readonly<Record<ProviderKind, Readonly<{
|
|
9
9
|
required: readonly string[];
|
|
@@ -15,11 +15,14 @@ export declare const PROVIDER_FUNCTIONS: Readonly<Record<ProviderKind, Readonly<
|
|
|
15
15
|
* table derives every table kind from these lists instead.
|
|
16
16
|
*/
|
|
17
17
|
export declare const SIGN_IN_PROVIDER_KIND: "signIn";
|
|
18
|
-
|
|
18
|
+
/** M35 U3a (D5): a step in the admin sign-in. A table kind too: several steps are switched on at once. */
|
|
19
|
+
export declare const SIGN_IN_STEP_PROVIDER_KIND: "signInStep";
|
|
20
|
+
export declare const PROVIDER_TABLE_KINDS: readonly ["formProtection", "search", "mediaStore", "mail", "consent", "signIn", "signInStep"];
|
|
19
21
|
export type ProviderTableKind = (typeof PROVIDER_TABLE_KINDS)[number];
|
|
20
22
|
/** D43: the `contributions` key each table kind is declared under. */
|
|
21
|
-
export declare const PROVIDER_TABLE_CONTRIBUTION_KEYS: Readonly<Record<ProviderTableKind, "protectionProviders" | "searchProviders" | "mediaStores" | "mailSenders" | "signInProviders">>;
|
|
22
|
-
/** D43: per table kind, the functions an entry must have and may have; a sign-in entry's `profile` is for oauth2 only.
|
|
23
|
+
export declare const PROVIDER_TABLE_CONTRIBUTION_KEYS: Readonly<Record<ProviderTableKind, "protectionProviders" | "searchProviders" | "mediaStores" | "mailSenders" | "consentTools" | "signInProviders" | "signInSteps">>;
|
|
24
|
+
/** D43: per table kind, the functions an entry must have and may have; a sign-in entry's `profile` is for oauth2 only.
|
|
25
|
+
* M35 U3a: which of a step's optional functions its kind needs is signInStepFunctionsProblem's (sign-in-steps.ts). */
|
|
23
26
|
export declare const PROVIDER_TABLE_FUNCTIONS: Readonly<Record<ProviderTableKind, Readonly<{
|
|
24
27
|
required: readonly string[];
|
|
25
28
|
optional: readonly string[];
|
|
@@ -79,6 +82,8 @@ export declare const SEARCH_PROVIDER_CURSOR_MAX = 512;
|
|
|
79
82
|
export declare const SEARCH_CURSOR_PREFIX = "p.";
|
|
80
83
|
/** D24: the longest wrapped cursor: the prefix, a provider key, ".", and the provider's own cursor. */
|
|
81
84
|
export declare const PROVIDER_SEARCH_CURSOR_MAX: number;
|
|
85
|
+
/** M35 U3a (D5, D9): how long the core waits for each sign-in step call. */
|
|
86
|
+
export declare const SIGN_IN_STEP_TIME_MS = 5000;
|
|
82
87
|
/** D6: how long the core waits for each provider call, in milliseconds. */
|
|
83
88
|
export declare const PROVIDER_TIME_MS: Readonly<{
|
|
84
89
|
readonly protection: 3000;
|
|
@@ -94,6 +99,13 @@ export declare const PROVIDER_TIME_MS: Readonly<{
|
|
|
94
99
|
/** M32 H (H1): a mail sender's `send` and `ready`. */
|
|
95
100
|
readonly mailSend: 30000;
|
|
96
101
|
readonly mailReady: 2000;
|
|
102
|
+
/** M35 U3a (D5, D9): each sign-in step call (the documented limit of evidence 9 holds: a late answer is dropped). */
|
|
103
|
+
readonly signInStepStatus: 5000;
|
|
104
|
+
readonly signInStepChallenge: 5000;
|
|
105
|
+
readonly signInStepVerify: 5000;
|
|
106
|
+
readonly signInStepSetupBegin: 5000;
|
|
107
|
+
readonly signInStepSetupFinish: 5000;
|
|
108
|
+
readonly signInStepSetupRemove: 5000;
|
|
97
109
|
}>;
|
|
98
110
|
/** M32 F4e (E1): the longest public base a media store may answer. */
|
|
99
111
|
export declare const STORE_PUBLIC_BASE_MAX = 1024;
|
|
@@ -143,6 +155,9 @@ export declare function isProtectionWidgetFallbackText(text: unknown): text is s
|
|
|
143
155
|
* as `<script src defer>` under the plugin's asset mount, so no origin and no other kind of file.
|
|
144
156
|
*/
|
|
145
157
|
export declare function isProtectionWidgetScript(path: unknown): path is string;
|
|
158
|
+
/** M35 P5 (P5-D5): a consent tool's script (".js") or stylesheet (".css"): a file of the plugin's public/ folder by the
|
|
159
|
+
* one rule, with a name before the extension. */
|
|
160
|
+
export declare function isConsentToolFile(path: unknown, extension: ".js" | ".css"): path is string;
|
|
146
161
|
/** D16: one CSS class name: 1 to PROTECTION_WIDGET_CLASS_MAX of a-z, A-Z, 0-9, "-" and "_". One linear scan, the length first. */
|
|
147
162
|
export declare function isProtectionWidgetClass(name: unknown): name is string;
|
|
148
163
|
/** D16: a widget attribute's name, written as `data-<name>`: a-z first, then a-z, 0-9 and "-", 1 to 40. */
|
|
@@ -198,7 +213,8 @@ export declare const SearchCursorExpiredErrorSchema: z.ZodObject<{
|
|
|
198
213
|
export type SearchCursorExpiredError = z.infer<typeof SearchCursorExpiredErrorSchema>;
|
|
199
214
|
/** D24: whether `value` is a wrapped provider search cursor (`parseProviderSearchCursor`). */
|
|
200
215
|
export declare function isProviderSearchCursor(value: string): boolean;
|
|
201
|
-
/** One attached provider in the providers answer: its key, its plugin, its label
|
|
216
|
+
/** One attached provider in the providers answer: its key, its plugin, its label, whether its plugin is
|
|
217
|
+
* switched on, and (M35 U1) whether it was demoted by a failed trust check, so it cannot be chosen. */
|
|
202
218
|
export declare const ProviderEntrySchema: z.ZodObject<{
|
|
203
219
|
key: z.ZodString;
|
|
204
220
|
pluginId: z.ZodString;
|
|
@@ -206,6 +222,7 @@ export declare const ProviderEntrySchema: z.ZodObject<{
|
|
|
206
222
|
en: z.ZodString;
|
|
207
223
|
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
208
224
|
available: z.ZodBoolean;
|
|
225
|
+
demoted: z.ZodBoolean;
|
|
209
226
|
}, z.core.$strip>;
|
|
210
227
|
/**
|
|
211
228
|
* M32 F4 (D4): one kind's state. `chosen` is the choice as stored (a provider key, or `core`);
|
|
@@ -223,6 +240,7 @@ export declare const ProviderKindStateSchema: z.ZodObject<{
|
|
|
223
240
|
en: z.ZodString;
|
|
224
241
|
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
225
242
|
available: z.ZodBoolean;
|
|
243
|
+
demoted: z.ZodBoolean;
|
|
226
244
|
}, z.core.$strip>>;
|
|
227
245
|
}, z.core.$strip>;
|
|
228
246
|
export declare const ProvidersResponseSchema: z.ZodObject<{
|
|
@@ -238,6 +256,7 @@ export declare const ProvidersResponseSchema: z.ZodObject<{
|
|
|
238
256
|
en: z.ZodString;
|
|
239
257
|
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
240
258
|
available: z.ZodBoolean;
|
|
259
|
+
demoted: z.ZodBoolean;
|
|
241
260
|
}, z.core.$strip>>;
|
|
242
261
|
}, z.core.$strip>;
|
|
243
262
|
search: z.ZodObject<{
|
|
@@ -251,6 +270,7 @@ export declare const ProvidersResponseSchema: z.ZodObject<{
|
|
|
251
270
|
en: z.ZodString;
|
|
252
271
|
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
253
272
|
available: z.ZodBoolean;
|
|
273
|
+
demoted: z.ZodBoolean;
|
|
254
274
|
}, z.core.$strip>>;
|
|
255
275
|
}, z.core.$strip>;
|
|
256
276
|
mediaStore: z.ZodObject<{
|
|
@@ -264,6 +284,7 @@ export declare const ProvidersResponseSchema: z.ZodObject<{
|
|
|
264
284
|
en: z.ZodString;
|
|
265
285
|
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
266
286
|
available: z.ZodBoolean;
|
|
287
|
+
demoted: z.ZodBoolean;
|
|
267
288
|
}, z.core.$strip>>;
|
|
268
289
|
}, z.core.$strip>;
|
|
269
290
|
mail: z.ZodObject<{
|
|
@@ -277,6 +298,21 @@ export declare const ProvidersResponseSchema: z.ZodObject<{
|
|
|
277
298
|
en: z.ZodString;
|
|
278
299
|
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
279
300
|
available: z.ZodBoolean;
|
|
301
|
+
demoted: z.ZodBoolean;
|
|
302
|
+
}, z.core.$strip>>;
|
|
303
|
+
}, z.core.$strip>;
|
|
304
|
+
consent: z.ZodObject<{
|
|
305
|
+
chosen: z.ZodString;
|
|
306
|
+
active: z.ZodString;
|
|
307
|
+
fallsBack: z.ZodBoolean;
|
|
308
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
309
|
+
key: z.ZodString;
|
|
310
|
+
pluginId: z.ZodString;
|
|
311
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
312
|
+
en: z.ZodString;
|
|
313
|
+
}, z.core.$catchall<z.ZodString>>, unknown>]>;
|
|
314
|
+
available: z.ZodBoolean;
|
|
315
|
+
demoted: z.ZodBoolean;
|
|
280
316
|
}, z.core.$strip>>;
|
|
281
317
|
}, z.core.$strip>;
|
|
282
318
|
}, z.core.$strip>;
|
|
@@ -8,14 +8,15 @@ import { isPluginPublicFilePath } from "./plugin-site-extensions.js";
|
|
|
8
8
|
// manifest check, the server's registry and the admin read these rules from one place. Every
|
|
9
9
|
// checker caps the length first and then reads the text in one loop: no pattern meets an author's
|
|
10
10
|
// text, and no message quotes a value.
|
|
11
|
-
/** D1: the kinds of provider. F4b adds "signIn", H adds "mail". */
|
|
12
|
-
export const PROVIDER_KINDS = ["formProtection", "search", "mediaStore", "mail"];
|
|
11
|
+
/** D1: the kinds of provider. F4b adds "signIn", H adds "mail", M35 P5 adds "consent". */
|
|
12
|
+
export const PROVIDER_KINDS = ["formProtection", "search", "mediaStore", "mail", "consent"];
|
|
13
13
|
/** D1: the `contributions` key each kind is declared under. */
|
|
14
14
|
export const PROVIDER_CONTRIBUTION_KEYS = Object.freeze({
|
|
15
15
|
formProtection: "protectionProviders",
|
|
16
16
|
search: "searchProviders",
|
|
17
17
|
mediaStore: "mediaStores",
|
|
18
18
|
mail: "mailSenders",
|
|
19
|
+
consent: "consentTools",
|
|
19
20
|
});
|
|
20
21
|
/** D1: per kind, the functions a provider entry must have and the ones it may have. */
|
|
21
22
|
export const PROVIDER_FUNCTIONS = Object.freeze({
|
|
@@ -23,6 +24,8 @@ export const PROVIDER_FUNCTIONS = Object.freeze({
|
|
|
23
24
|
search: Object.freeze({ required: Object.freeze(["index", "remove", "query"]), optional: Object.freeze(["clear"]) }),
|
|
24
25
|
mediaStore: Object.freeze({ required: Object.freeze(["put", "open", "delete", "exists"]), optional: Object.freeze(["ready", "publicBaseUrl"]) }),
|
|
25
26
|
mail: Object.freeze({ required: Object.freeze(["send"]), optional: Object.freeze(["ready"]) }),
|
|
27
|
+
// M35 P5 (W37): a consent tool runs in the visitor's browser only; the core writes its files and calls nothing.
|
|
28
|
+
consent: Object.freeze({ required: Object.freeze([]), optional: Object.freeze([]) }),
|
|
26
29
|
});
|
|
27
30
|
/**
|
|
28
31
|
* M32 F4b (D43): sign-in is a table kind, not a choice kind: several sign-in providers are switched
|
|
@@ -30,16 +33,24 @@ export const PROVIDER_FUNCTIONS = Object.freeze({
|
|
|
30
33
|
* table derives every table kind from these lists instead.
|
|
31
34
|
*/
|
|
32
35
|
export const SIGN_IN_PROVIDER_KIND = "signIn";
|
|
33
|
-
|
|
36
|
+
/** M35 U3a (D5): a step in the admin sign-in. A table kind too: several steps are switched on at once. */
|
|
37
|
+
export const SIGN_IN_STEP_PROVIDER_KIND = "signInStep";
|
|
38
|
+
export const PROVIDER_TABLE_KINDS = [...PROVIDER_KINDS, SIGN_IN_PROVIDER_KIND, SIGN_IN_STEP_PROVIDER_KIND];
|
|
34
39
|
/** D43: the `contributions` key each table kind is declared under. */
|
|
35
40
|
export const PROVIDER_TABLE_CONTRIBUTION_KEYS = Object.freeze({
|
|
36
41
|
...PROVIDER_CONTRIBUTION_KEYS,
|
|
37
42
|
signIn: "signInProviders",
|
|
43
|
+
signInStep: "signInSteps",
|
|
38
44
|
});
|
|
39
|
-
/** D43: per table kind, the functions an entry must have and may have; a sign-in entry's `profile` is for oauth2 only.
|
|
45
|
+
/** D43: per table kind, the functions an entry must have and may have; a sign-in entry's `profile` is for oauth2 only.
|
|
46
|
+
* M35 U3a: which of a step's optional functions its kind needs is signInStepFunctionsProblem's (sign-in-steps.ts). */
|
|
40
47
|
export const PROVIDER_TABLE_FUNCTIONS = Object.freeze({
|
|
41
48
|
...PROVIDER_FUNCTIONS,
|
|
42
49
|
signIn: Object.freeze({ required: Object.freeze([]), optional: Object.freeze(["profile"]) }),
|
|
50
|
+
signInStep: Object.freeze({
|
|
51
|
+
required: Object.freeze(["status"]),
|
|
52
|
+
optional: Object.freeze(["challenge", "verify", "setupBegin", "setupFinish", "setupRemove"]),
|
|
53
|
+
}),
|
|
43
54
|
});
|
|
44
55
|
/** D2: the built-in provider's key, every kind's default and fallback. */
|
|
45
56
|
export const CORE_PROVIDER_KEY = "core";
|
|
@@ -106,6 +117,8 @@ export const SEARCH_PROVIDER_CURSOR_MAX = 512;
|
|
|
106
117
|
export const SEARCH_CURSOR_PREFIX = "p.";
|
|
107
118
|
/** D24: the longest wrapped cursor: the prefix, a provider key, ".", and the provider's own cursor. */
|
|
108
119
|
export const PROVIDER_SEARCH_CURSOR_MAX = SEARCH_CURSOR_PREFIX.length + PLUGIN_ID_MAX + 1 + PROVIDER_ID_MAX + 1 + SEARCH_PROVIDER_CURSOR_MAX;
|
|
120
|
+
/** M35 U3a (D5, D9): how long the core waits for each sign-in step call. */
|
|
121
|
+
export const SIGN_IN_STEP_TIME_MS = 5000;
|
|
109
122
|
/** D6: how long the core waits for each provider call, in milliseconds. */
|
|
110
123
|
export const PROVIDER_TIME_MS = Object.freeze({
|
|
111
124
|
protection: 3000,
|
|
@@ -121,6 +134,13 @@ export const PROVIDER_TIME_MS = Object.freeze({
|
|
|
121
134
|
/** M32 H (H1): a mail sender's `send` and `ready`. */
|
|
122
135
|
mailSend: 30000,
|
|
123
136
|
mailReady: 2000,
|
|
137
|
+
/** M35 U3a (D5, D9): each sign-in step call (the documented limit of evidence 9 holds: a late answer is dropped). */
|
|
138
|
+
signInStepStatus: SIGN_IN_STEP_TIME_MS,
|
|
139
|
+
signInStepChallenge: SIGN_IN_STEP_TIME_MS,
|
|
140
|
+
signInStepVerify: SIGN_IN_STEP_TIME_MS,
|
|
141
|
+
signInStepSetupBegin: SIGN_IN_STEP_TIME_MS,
|
|
142
|
+
signInStepSetupFinish: SIGN_IN_STEP_TIME_MS,
|
|
143
|
+
signInStepSetupRemove: SIGN_IN_STEP_TIME_MS,
|
|
124
144
|
});
|
|
125
145
|
/** M32 F4e (E1): the longest public base a media store may answer. */
|
|
126
146
|
export const STORE_PUBLIC_BASE_MAX = 1024;
|
|
@@ -249,6 +269,14 @@ export function isProtectionWidgetScript(path) {
|
|
|
249
269
|
const nameStart = path.lastIndexOf("/") + 1;
|
|
250
270
|
return path.length - nameStart > 3;
|
|
251
271
|
}
|
|
272
|
+
/** M35 P5 (P5-D5): a consent tool's script (".js") or stylesheet (".css"): a file of the plugin's public/ folder by the
|
|
273
|
+
* one rule, with a name before the extension. */
|
|
274
|
+
export function isConsentToolFile(path, extension) {
|
|
275
|
+
if (typeof path !== "string" || !isPluginPublicFilePath(path) || !path.endsWith(extension))
|
|
276
|
+
return false;
|
|
277
|
+
const nameStart = path.lastIndexOf("/") + 1;
|
|
278
|
+
return path.length - nameStart > extension.length;
|
|
279
|
+
}
|
|
252
280
|
/** D16: one CSS class name: 1 to PROTECTION_WIDGET_CLASS_MAX of a-z, A-Z, 0-9, "-" and "_". One linear scan, the length first. */
|
|
253
281
|
export function isProtectionWidgetClass(name) {
|
|
254
282
|
if (typeof name !== "string" || name.length === 0 || name.length > PROTECTION_WIDGET_CLASS_MAX)
|
|
@@ -384,12 +412,14 @@ export const SearchCursorExpiredErrorSchema = z.object({
|
|
|
384
412
|
export function isProviderSearchCursor(value) {
|
|
385
413
|
return parseProviderSearchCursor(value) !== null;
|
|
386
414
|
}
|
|
387
|
-
/** One attached provider in the providers answer: its key, its plugin, its label
|
|
415
|
+
/** One attached provider in the providers answer: its key, its plugin, its label, whether its plugin is
|
|
416
|
+
* switched on, and (M35 U1) whether it was demoted by a failed trust check, so it cannot be chosen. */
|
|
388
417
|
export const ProviderEntrySchema = z.object({
|
|
389
418
|
key: z.string(),
|
|
390
419
|
pluginId: z.string(),
|
|
391
420
|
label: PluginLabelSchema,
|
|
392
421
|
available: z.boolean(),
|
|
422
|
+
demoted: z.boolean(),
|
|
393
423
|
});
|
|
394
424
|
/**
|
|
395
425
|
* M32 F4 (D4): one kind's state. `chosen` is the choice as stored (a provider key, or `core`);
|
|
@@ -408,6 +438,7 @@ export const ProvidersResponseSchema = z.object({
|
|
|
408
438
|
search: ProviderKindStateSchema,
|
|
409
439
|
mediaStore: ProviderKindStateSchema,
|
|
410
440
|
mail: ProviderKindStateSchema,
|
|
441
|
+
consent: ProviderKindStateSchema,
|
|
411
442
|
}),
|
|
412
443
|
});
|
|
413
444
|
/**
|