@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
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
// M35 P1 (core stability D4): the extension points a plugin may use before they come under the
|
|
2
|
+
// version 1 promise that the plugin interface only grows. A point leaves this list once a real plugin
|
|
3
|
+
// has used it and the operator says so; the close of month 35 writes the list into the plugin
|
|
4
|
+
// reference. Every month 35 session that adds a point appends its lines here, in session order.
|
|
5
|
+
import { parsePluginEventKey } from "./plugin-services.js";
|
|
6
|
+
import { readSiteRoutePath } from "./plugin-site-extensions.js";
|
|
7
|
+
/** M35 B1a (design 4.14): the experimental point of a hook on another plugin's event, `<plugin id>:<name>`. */
|
|
8
|
+
export const PLUGIN_EVENT_HOOK_POINT = "contributions.hooks.<plugin id>:<name>";
|
|
9
|
+
/** M35 P3 (W18): the experimental point of a site route that answers after the pages (a parameter, a "*" or a dotless GET). */
|
|
10
|
+
export const SITE_ROUTE_PATTERN_POINT = "contributions.siteRoutes.<pattern>";
|
|
11
|
+
export const EXPERIMENTAL_POINTS = Object.freeze([
|
|
12
|
+
Object.freeze({ id: "contributions.pageOutput", session: "35-P1" }),
|
|
13
|
+
Object.freeze({ id: "contributions.pageHead.inlineSnippets", session: "35-P1" }),
|
|
14
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/text#rewriteStartTags", session: "35-P1" }),
|
|
15
|
+
Object.freeze({ id: "contributions.contentAccess.allContent", session: "35-C1" }),
|
|
16
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginServerContextBase.listPublished", session: "35-C1" }),
|
|
17
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginServerContextBase.searchPublished", session: "35-C1" }),
|
|
18
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginContentLibrary.walk", session: "35-C1" }),
|
|
19
|
+
Object.freeze({ id: "liquid:list#under-where-_tree", session: "35-C1" }),
|
|
20
|
+
Object.freeze({ id: "GET /api/manage/v1/content/walk", session: "35-C1" }),
|
|
21
|
+
Object.freeze({ id: "contributions.guards", session: "35-B2" }),
|
|
22
|
+
Object.freeze({ id: "contributions.hooks.content:afterSort", session: "35-B2" }),
|
|
23
|
+
Object.freeze({ id: "contributions.hooks.content:afterAccessChange", session: "35-B2" }),
|
|
24
|
+
Object.freeze({ id: "contributions.hooks.documentType:afterChange", session: "35-B2" }),
|
|
25
|
+
Object.freeze({ id: "contributions.hooks.dataType:afterChange", session: "35-B2" }),
|
|
26
|
+
Object.freeze({ id: "contributions.hooks.role:afterChange", session: "35-B2" }),
|
|
27
|
+
Object.freeze({ id: "contributions.hooks.user:afterChange", session: "35-B2" }),
|
|
28
|
+
Object.freeze({ id: "contributions.hooks.site:afterAddressChange", session: "35-B2" }),
|
|
29
|
+
Object.freeze({ id: "contributions.hooks.site:afterPageViews", session: "35-B2" }),
|
|
30
|
+
Object.freeze({ id: "contributions.hooks.system:afterStart", session: "35-B2" }),
|
|
31
|
+
Object.freeze({ id: "contributions.hooks.system:beforeShutdown", session: "35-B2" }),
|
|
32
|
+
Object.freeze({ id: "contributions.hooks.system:afterError", session: "35-B2" }),
|
|
33
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#ContentMoveHookPayload.previousAddresses", session: "35-B2" }),
|
|
34
|
+
Object.freeze({ id: "contributions.userAccess", session: "35-U1" }),
|
|
35
|
+
Object.freeze({ id: "contributions.userFields", session: "35-U1" }),
|
|
36
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginApiRouteContext.can", session: "35-U1" }),
|
|
37
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginApiRouteContext.canAccessPage", session: "35-U1" }),
|
|
38
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#usePluginCan", session: "35-U1" }),
|
|
39
|
+
Object.freeze({ id: "liquid:form_protection#caller", session: "35-U1" }),
|
|
40
|
+
Object.freeze({ id: "contributions.requestGuard", session: "35-P2" }),
|
|
41
|
+
Object.freeze({ id: "contributions.responseHeaders", session: "35-P2" }),
|
|
42
|
+
Object.freeze({ id: "contributions.siteRoutes.rawBody", session: "35-P2" }),
|
|
43
|
+
Object.freeze({ id: "contributions.contentColumns", session: "35-C2" }),
|
|
44
|
+
Object.freeze({ id: "contributions.treeBadges", session: "35-C2" }),
|
|
45
|
+
Object.freeze({ id: "contributions.listFilters", session: "35-C2" }),
|
|
46
|
+
Object.freeze({ id: "contributions.bulkActions", session: "35-C2" }),
|
|
47
|
+
Object.freeze({ id: "GET /api/manage/v1/content/slot-values", session: "35-C2" }),
|
|
48
|
+
// The list's filter, filterValue and scanCapped: new fields on a route that is not experimental,
|
|
49
|
+
// so they get a point of their own and may still change shape before they bind.
|
|
50
|
+
Object.freeze({ id: "GET /api/manage/v1/content/:id/list#filter", session: "35-C2" }),
|
|
51
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#usePluginBulkAction", session: "35-C2" }),
|
|
52
|
+
Object.freeze({ id: "contributions.adminSlots", session: "35-C2" }),
|
|
53
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#usePluginAdminSlot", session: "35-C2" }),
|
|
54
|
+
Object.freeze({ id: "contributions.serviceContracts", session: "35-B1a" }),
|
|
55
|
+
Object.freeze({ id: "contributions.exposedServices", session: "35-B1a" }),
|
|
56
|
+
Object.freeze({ id: "contributions.usedServices", session: "35-B1a" }),
|
|
57
|
+
Object.freeze({ id: "contributions.events", session: "35-B1a" }),
|
|
58
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginServices", session: "35-B1a" }),
|
|
59
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginEvents", session: "35-B1a" }),
|
|
60
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginEventHookPayload", session: "35-B1a" }),
|
|
61
|
+
// Design 4.14: the plugin event hook names. A pattern, not one name: `experimentalPointsDeclared` reports
|
|
62
|
+
// it for any hooks key that reads as a plugin event key (below).
|
|
63
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginEventKey", session: "35-B1a" }),
|
|
64
|
+
Object.freeze({ id: PLUGIN_EVENT_HOOK_POINT, session: "35-B1a" }),
|
|
65
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#contractMethod", session: "35-B1a" }),
|
|
66
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#pageIdSchema", session: "35-B1a" }),
|
|
67
|
+
Object.freeze({ id: "POST /api/manage/v1/plugins/connections/preview", session: "35-B1a" }),
|
|
68
|
+
Object.freeze({ id: "GET /api/manage/v1/plugins/:pluginId/connections", session: "35-B1a" }),
|
|
69
|
+
Object.freeze({ id: "PUT /api/manage/v1/plugins/:pluginId/connections", session: "35-B1a" }),
|
|
70
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#personal", session: "35-B1a" }),
|
|
71
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#toContractSchema", session: "35-B1a" }),
|
|
72
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginServiceContext", session: "35-B1a" }),
|
|
73
|
+
// The rest of the session's public SDK exports: services.ts's types (ExposedServiceContribution took its
|
|
74
|
+
// working shape here) and the limits the SDK re-exports from this package.
|
|
75
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#ServiceProviderInfo", session: "35-B1a" }),
|
|
76
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#ServiceResult", session: "35-B1a" }),
|
|
77
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#ServiceTarget", session: "35-B1a" }),
|
|
78
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginEventRaised", session: "35-B1a" }),
|
|
79
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginServiceCaller", session: "35-B1a" }),
|
|
80
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#ServiceImplementation", session: "35-B1a" }),
|
|
81
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#ServiceMethodContribution", session: "35-B1a" }),
|
|
82
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#ServiceContractContribution", session: "35-B1a" }),
|
|
83
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#ExposedServiceContribution", session: "35-B1a" }),
|
|
84
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#UsedServiceContribution", session: "35-B1a" }),
|
|
85
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginEventContribution", session: "35-B1a" }),
|
|
86
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#SERVICE_CALL_TIME_MS_DEFAULT", session: "35-B1a" }),
|
|
87
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#SERVICE_CALL_TIME_MS_MAX", session: "35-B1a" }),
|
|
88
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#SERVICE_PAYLOAD_BYTES_MAX", session: "35-B1a" }),
|
|
89
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PLUGIN_EVENT_PAYLOAD_BYTES_MAX", session: "35-B1a" }),
|
|
90
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#SERVICE_FAILURE_REASONS", session: "35-B1a" }),
|
|
91
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PLUGIN_EVENT_REFUSALS", session: "35-B1a" }),
|
|
92
|
+
Object.freeze({ id: "contributions.serviceContracts.providersUse", session: "35-B1c" }),
|
|
93
|
+
// manifest.json's exposedServices[].fingerprint, written by kardalum plugin build and read by the door.
|
|
94
|
+
Object.freeze({ id: "contributions.exposedServices.fingerprint", session: "35-B1c" }),
|
|
95
|
+
Object.freeze({ id: "POST /api/manage/v1/sandbox/companions", session: "35-B1c" }),
|
|
96
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/testing#serviceHarness", session: "35-B1c" }),
|
|
97
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/testing#fakeProvider", session: "35-B1c" }),
|
|
98
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/testing#sampleInput", session: "35-B1c" }),
|
|
99
|
+
Object.freeze({ id: "GET /api/v1/contracts/:ownerId", session: "35-B1c" }),
|
|
100
|
+
Object.freeze({ id: "GET /api/v1/contracts/:ownerId/:name", session: "35-B1c" }),
|
|
101
|
+
Object.freeze({ id: "GET /api/v1/visitor/me", session: "35-U2a" }),
|
|
102
|
+
Object.freeze({ id: "GET /api/v1/visitor/form", session: "35-U2a" }),
|
|
103
|
+
Object.freeze({ id: "POST /api/v1/visitor/sign-in", session: "35-U2a" }),
|
|
104
|
+
Object.freeze({ id: "POST /api/v1/visitor/sign-out", session: "35-U2a" }),
|
|
105
|
+
Object.freeze({ id: "POST /api/v1/visitor/register", session: "35-U2a" }),
|
|
106
|
+
Object.freeze({ id: "POST /api/v1/visitor/confirm", session: "35-U2a" }),
|
|
107
|
+
Object.freeze({ id: "POST /api/v1/visitor/password-reset", session: "35-U2a" }),
|
|
108
|
+
Object.freeze({ id: "POST /api/v1/visitor/password-reset/confirm", session: "35-U2a" }),
|
|
109
|
+
Object.freeze({ id: "liquid:kardalum.visitor", session: "35-U2a" }),
|
|
110
|
+
Object.freeze({ id: "liquid:kardalum.account", session: "35-U2a" }),
|
|
111
|
+
Object.freeze({ id: SITE_ROUTE_PATTERN_POINT, session: "35-P3" }),
|
|
112
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginApiRouteContext.address", session: "35-P3" }),
|
|
113
|
+
Object.freeze({ id: "contributions.templateTags.block", session: "35-P3" }),
|
|
114
|
+
Object.freeze({ id: "contributions.templateTags.onFailure", session: "35-P3" }),
|
|
115
|
+
Object.freeze({ id: "contributions.templateFilters.onFailure", session: "35-P3" }),
|
|
116
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#TemplateCallContext.getPublishedContent", session: "35-P3" }),
|
|
117
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#TemplateCallContext.listPublished", session: "35-P3" }),
|
|
118
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#TemplateCallContext.searchPublished", session: "35-P3" }),
|
|
119
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#TemplateCallContext.pageAddresses", session: "35-P3" }),
|
|
120
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#TemplateCallContext.publicMediaUrl", session: "35-P3" }),
|
|
121
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#TemplateReadRefusedError", session: "35-P3" }),
|
|
122
|
+
Object.freeze({ id: "liquid:plugin_tag#name", session: "35-P3" }),
|
|
123
|
+
Object.freeze({ id: "liquid:plugin_filter#name", session: "35-P3" }),
|
|
124
|
+
Object.freeze({ id: "contributions.settings.inViews", session: "35-C3" }),
|
|
125
|
+
Object.freeze({ id: "GET /api/manage/v1/plugins/:pluginId/view-settings", session: "35-C3" }),
|
|
126
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#usePluginViewSettings", session: "35-C3" }),
|
|
127
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#usePluginFieldContext", session: "35-C3" }),
|
|
128
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#EditorPanelContext.readOnlyFields", session: "35-C3" }),
|
|
129
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#EditorPanelContext.inheritedFields", session: "35-C3" }),
|
|
130
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#PluginNavigateTarget", session: "35-C3" }),
|
|
131
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#PluginScreenContext.hrefFor", session: "35-C3" }),
|
|
132
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#PagePicker", session: "35-C3" }),
|
|
133
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#Select", session: "35-C3" }),
|
|
134
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#Textarea", session: "35-C3" }),
|
|
135
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#useCopyText", session: "35-C3" }),
|
|
136
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#downloadFile", session: "35-C3" }),
|
|
137
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#useAdminFormat", session: "35-C3" }),
|
|
138
|
+
Object.freeze({ id: "contributions.pageCache", session: "35-P4" }),
|
|
139
|
+
Object.freeze({ id: "contributions.pageGate", session: "35-P4" }),
|
|
140
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginRenderPage", session: "35-P4" }),
|
|
141
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginRenderCache", session: "35-P4" }),
|
|
142
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#RenderPageRefusedError", session: "35-P4" }),
|
|
143
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PublishedContent.rendered", session: "35-P4" }),
|
|
144
|
+
Object.freeze({ id: "liquid:page._name", session: "35-P4" }),
|
|
145
|
+
Object.freeze({ id: "liquid:kardalum.request.query", session: "35-P4" }),
|
|
146
|
+
Object.freeze({ id: "contributions.richTextExtensions", session: "35-C4a" }),
|
|
147
|
+
Object.freeze({ id: "GET /api/manage/v1/render/rich-items", session: "35-C4a" }),
|
|
148
|
+
Object.freeze({ id: "POST /api/manage/v1/render/rich-item", session: "35-C4a" }),
|
|
149
|
+
Object.freeze({ id: "contributions.richTextExtensions.nodes[].view", session: "35-C4b" }),
|
|
150
|
+
Object.freeze({ id: "contributions.richTextExtensions.marks[].view", session: "35-C4b" }),
|
|
151
|
+
Object.freeze({ id: "contributions.richTextExtensions.buttons[].does.view", session: "35-C4b" }),
|
|
152
|
+
Object.freeze({ id: "contributions.richTextExtensions.nodes[].fromUrl", session: "35-C4b" }),
|
|
153
|
+
Object.freeze({ id: "contributions.richTextExtensions.nodes[].editorial", session: "35-C4b" }),
|
|
154
|
+
Object.freeze({ id: "contributions.richTextExtensions.marks[].editorial", session: "35-C4b" }),
|
|
155
|
+
Object.freeze({ id: "contributions.richTextExtensions.nodes[].textFromView", session: "35-C4b" }),
|
|
156
|
+
Object.freeze({ id: "contributions.richTextExtensions.nodes[].attrs[].type json", session: "35-C4b" }),
|
|
157
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#useRichTextItem", session: "35-C4b" }),
|
|
158
|
+
Object.freeze({ id: "@kardalum/plugin-sdk#useRichTextEditorHandle", session: "35-C4b" }),
|
|
159
|
+
Object.freeze({ id: "contributions.visitorIdentity", session: "35-U2b" }),
|
|
160
|
+
Object.freeze({ id: "contributions.visitorGroups", session: "35-U2b" }),
|
|
161
|
+
Object.freeze({ id: "contributions.visitorAccountSections", session: "35-U2b" }),
|
|
162
|
+
Object.freeze({ id: "contributions.visitorData", session: "35-U2b" }),
|
|
163
|
+
Object.freeze({ id: "contributions.hooks.visitor:afterRegister", session: "35-U2b" }),
|
|
164
|
+
Object.freeze({ id: "contributions.hooks.visitor:afterConfirm", session: "35-U2b" }),
|
|
165
|
+
Object.freeze({ id: "contributions.hooks.visitor:afterSignIn", session: "35-U2b" }),
|
|
166
|
+
Object.freeze({ id: "contributions.hooks.visitor:afterGroupChange", session: "35-U2b" }),
|
|
167
|
+
Object.freeze({ id: "contributions.hooks.visitor:afterDelete", session: "35-U2b" }),
|
|
168
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginApiRouteContext.visitor", session: "35-U2b" }),
|
|
169
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#TemplateCallContext.visitor", session: "35-U2b" }),
|
|
170
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PageHeadContext.visitor", session: "35-U2b" }),
|
|
171
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginHookContext.visitors", session: "35-U2b" }),
|
|
172
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/mail#PluginMailInput.to.visitorId", session: "35-U2b" }),
|
|
173
|
+
Object.freeze({ id: "liquid:kardalum.visitor.groups", session: "35-U2b" }),
|
|
174
|
+
Object.freeze({ id: "liquid:account-refused", session: "35-U2b" }),
|
|
175
|
+
Object.freeze({ id: "contributions.consentTools", session: "35-P5" }),
|
|
176
|
+
Object.freeze({ id: "contributions.heldEmbeds.consent", session: "35-P5" }),
|
|
177
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PageHeadEntry.consent", session: "35-P5" }),
|
|
178
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PageHeadContext.consent", session: "35-P5" }),
|
|
179
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#TemplateCallContext.consent", session: "35-P5" }),
|
|
180
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/consent#readConsent", session: "35-P5" }),
|
|
181
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/consent#KardalumConsentApi", session: "35-P5" }),
|
|
182
|
+
Object.freeze({ id: "contributions.apiRoutes.uploads", session: "35-B3" }),
|
|
183
|
+
Object.freeze({ id: "contributions.siteRoutes.uploads", session: "35-B3" }),
|
|
184
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginRequestView.files", session: "35-B3" }),
|
|
185
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#PluginApiRouteContext.uploads", session: "35-B3" }),
|
|
186
|
+
Object.freeze({ id: "GET /api/manage/v1/media/:id#visitorUpload", session: "35-B3" }),
|
|
187
|
+
Object.freeze({ id: "GET /account/export#uploads", session: "35-B3" }),
|
|
188
|
+
Object.freeze({ id: "contributions.signInSteps", session: "35-U3a" }),
|
|
189
|
+
Object.freeze({ id: "@kardalum/plugin-sdk/manifest#UserLoginHookPayload.steps", session: "35-U3a" }),
|
|
190
|
+
]);
|
|
191
|
+
const PREFIX = "contributions.";
|
|
192
|
+
/** manifest.json writes a keyed contribution as a list (`hooks: ["system:afterStart", { event, durable: true }]`):
|
|
193
|
+
* an entry names the field as that string or as its own `event`. A list whose entries carry the field
|
|
194
|
+
* (`contentAccess: [{ allContent: true, ... }]`) names it in any entry where it is set. */
|
|
195
|
+
function namesEntry(entry, field) {
|
|
196
|
+
if (entry === field)
|
|
197
|
+
return true;
|
|
198
|
+
if (entry === null || typeof entry !== "object")
|
|
199
|
+
return false;
|
|
200
|
+
if (Object.hasOwn(entry, "event") && entry.event === field)
|
|
201
|
+
return true;
|
|
202
|
+
return Object.hasOwn(entry, field) && entry[field] !== undefined;
|
|
203
|
+
}
|
|
204
|
+
/** The experimental manifest points a manifest (live or manifest.json) declares, in list order, each as
|
|
205
|
+
* `<key>` or `<key>.<field>`. The ids are this file's own constants, so splitting them is safe. */
|
|
206
|
+
export function experimentalPointsDeclared(manifest) {
|
|
207
|
+
const contributions = manifest?.contributions;
|
|
208
|
+
if (contributions === null || typeof contributions !== "object" || Array.isArray(contributions))
|
|
209
|
+
return [];
|
|
210
|
+
const out = [];
|
|
211
|
+
for (const point of EXPERIMENTAL_POINTS) {
|
|
212
|
+
if (!point.id.startsWith(PREFIX))
|
|
213
|
+
continue;
|
|
214
|
+
if (point.id === PLUGIN_EVENT_HOOK_POINT) {
|
|
215
|
+
const hooks = contributions.hooks;
|
|
216
|
+
const keys = Array.isArray(hooks)
|
|
217
|
+
? hooks.map((entry) => (typeof entry === "string" ? entry : entry !== null && typeof entry === "object" ? entry.event : undefined))
|
|
218
|
+
: hooks !== null && typeof hooks === "object" ? Object.keys(hooks) : [];
|
|
219
|
+
if (keys.some((name) => typeof name === "string" && parsePluginEventKey(name) !== null))
|
|
220
|
+
out.push(point.id.slice(PREFIX.length));
|
|
221
|
+
continue;
|
|
222
|
+
}
|
|
223
|
+
if (point.id === SITE_ROUTE_PATTERN_POINT) {
|
|
224
|
+
const routes = contributions.siteRoutes;
|
|
225
|
+
const patterned = Array.isArray(routes) && routes.some((route) => {
|
|
226
|
+
if (route === null || typeof route !== "object")
|
|
227
|
+
return false;
|
|
228
|
+
const { method, path } = route;
|
|
229
|
+
if (typeof method !== "string" || typeof path !== "string")
|
|
230
|
+
return false;
|
|
231
|
+
const read = readSiteRoutePath(method, path);
|
|
232
|
+
return read.ok && read.pattern.phase === "afterPages";
|
|
233
|
+
});
|
|
234
|
+
if (patterned)
|
|
235
|
+
out.push(point.id.slice(PREFIX.length));
|
|
236
|
+
continue;
|
|
237
|
+
}
|
|
238
|
+
const [key, field] = point.id.slice(PREFIX.length).split(".");
|
|
239
|
+
const value = contributions[key];
|
|
240
|
+
if (value === undefined)
|
|
241
|
+
continue;
|
|
242
|
+
if (field === undefined) {
|
|
243
|
+
out.push(key);
|
|
244
|
+
}
|
|
245
|
+
else if (Array.isArray(value) ? value.some((entry) => namesEntry(entry, field)) : value !== null && typeof value === "object" && value[field] !== undefined) {
|
|
246
|
+
out.push(`${key}.${field}`);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
return out;
|
|
250
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const FORM_PROTECTION_CALLERS_KEY = "formProtection.callers";
|
|
3
|
+
export declare const FORM_PROTECTION_CALLERS_MAX = 200;
|
|
4
|
+
export declare const FormProtectionCallerChoicesSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5
|
+
/** The stored map, or null when the row is missing or damaged (the caller then logs it and the site choice serves). */
|
|
6
|
+
export declare function readFormProtectionCallerChoices(value: unknown): Record<string, string> | null;
|
|
7
|
+
export declare const FormProtectionCallerSchema: z.ZodObject<{
|
|
8
|
+
pluginId: z.ZodString;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
choice: z.ZodNullable<z.ZodString>;
|
|
11
|
+
active: z.ZodString;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
export type FormProtectionCaller = z.infer<typeof FormProtectionCallerSchema>;
|
|
14
|
+
export declare const FormProtectionCallersResponseSchema: z.ZodObject<{
|
|
15
|
+
callers: z.ZodArray<z.ZodObject<{
|
|
16
|
+
pluginId: z.ZodString;
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
choice: z.ZodNullable<z.ZodString>;
|
|
19
|
+
active: z.ZodString;
|
|
20
|
+
}, z.core.$strict>>;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
export type FormProtectionCallersResponse = z.infer<typeof FormProtectionCallersResponseSchema>;
|
|
23
|
+
export declare const FormProtectionCallerParamsSchema: z.ZodObject<{
|
|
24
|
+
pluginId: z.ZodString;
|
|
25
|
+
}, z.core.$strict>;
|
|
26
|
+
export declare const SetFormProtectionCallerRequestSchema: z.ZodObject<{
|
|
27
|
+
choice: z.ZodNullable<z.ZodString>;
|
|
28
|
+
}, z.core.$strict>;
|
|
29
|
+
export type SetFormProtectionCallerRequest = z.infer<typeof SetFormProtectionCallerRequestSchema>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { PLUGIN_ID_MAX, isPluginManifestId } from "./plugin-id-rules.js";
|
|
3
|
+
import { ProviderChoiceSchema } from "./plugin-providers.js";
|
|
4
|
+
// M35 U1 (W51), experimental: the form protection choice for one calling plugin, set by the site
|
|
5
|
+
// owner. One Setting row, FORM_PROTECTION_CALLERS_KEY, holds { [callerPluginId]: "core" | providerKey }.
|
|
6
|
+
// A caller without an entry follows the site choice (`formProtectionProvider`). A plugin never names
|
|
7
|
+
// a provider itself, so a plugin cannot choose a weaker check than the owner did.
|
|
8
|
+
export const FORM_PROTECTION_CALLERS_KEY = "formProtection.callers";
|
|
9
|
+
export const FORM_PROTECTION_CALLERS_MAX = 200;
|
|
10
|
+
const CallerIdSchema = z.string().max(PLUGIN_ID_MAX).refine((value) => isPluginManifestId(value), { message: "is not a plugin id" });
|
|
11
|
+
export const FormProtectionCallerChoicesSchema = z
|
|
12
|
+
.record(CallerIdSchema, ProviderChoiceSchema)
|
|
13
|
+
.refine((value) => Object.keys(value).length <= FORM_PROTECTION_CALLERS_MAX, { message: `at most ${FORM_PROTECTION_CALLERS_MAX} plugins` });
|
|
14
|
+
/** The stored map, or null when the row is missing or damaged (the caller then logs it and the site choice serves). */
|
|
15
|
+
export function readFormProtectionCallerChoices(value) {
|
|
16
|
+
const parsed = FormProtectionCallerChoicesSchema.safeParse(value);
|
|
17
|
+
return parsed.success ? { ...parsed.data } : null;
|
|
18
|
+
}
|
|
19
|
+
export const FormProtectionCallerSchema = z
|
|
20
|
+
.object({
|
|
21
|
+
pluginId: z.string(),
|
|
22
|
+
name: z.string(),
|
|
23
|
+
/** The owner's entry for this plugin, or null when it follows the site choice. */
|
|
24
|
+
choice: ProviderChoiceSchema.nullable(),
|
|
25
|
+
/** The key serving its sends now: `core` while the built-in check serves alone. */
|
|
26
|
+
active: z.string(),
|
|
27
|
+
})
|
|
28
|
+
.strict();
|
|
29
|
+
export const FormProtectionCallersResponseSchema = z.object({ callers: z.array(FormProtectionCallerSchema) }).strict();
|
|
30
|
+
export const FormProtectionCallerParamsSchema = z.object({ pluginId: CallerIdSchema }).strict();
|
|
31
|
+
export const SetFormProtectionCallerRequestSchema = z.object({ choice: ProviderChoiceSchema.nullable() }).strict();
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare function isSpace(code: number): boolean;
|
|
2
|
+
export declare function isAsciiLetter(code: number): boolean;
|
|
3
|
+
export declare function isDecimalDigit(code: number): boolean;
|
|
4
|
+
export declare function isHexDigit(code: number): boolean;
|
|
5
|
+
export declare function isAsciiAlphanumeric(code: number): boolean;
|
|
6
|
+
/** Whether `<` at `index` starts a tag: only before an ASCII letter, `/`, `!` or `?`. */
|
|
7
|
+
export declare function startsTag(html: string, index: number, end: number): boolean;
|
|
8
|
+
/** The index just past the `>` that ends the tag opening at `start`, skipping a quoted
|
|
9
|
+
* attribute value (a quote right after `=`, spaces allowed between); `end` when the tag is
|
|
10
|
+
* never closed. */
|
|
11
|
+
export declare function tagEnd(html: string, start: number, end: number): number;
|
|
12
|
+
/** The lower-cased tag name read from `start` (just past `<` or `</`). */
|
|
13
|
+
export declare function tagNameAt(html: string, start: number, end: number): string;
|
|
14
|
+
/** Whether a tag named `name` (lower case) starts at `start` (just past `<` or `</`):
|
|
15
|
+
* the name, then a space, `/`, `>` or the end. */
|
|
16
|
+
export declare function namedTagAt(html: string, start: number, end: number, name: string): boolean;
|
|
17
|
+
/** Reads a character reference at `amp` (an `&`): its text and the index after it, or null
|
|
18
|
+
* when it is not one this reader decodes (the `&` is then text). */
|
|
19
|
+
export declare function referenceAt(html: string, amp: number, end: number): {
|
|
20
|
+
text: string;
|
|
21
|
+
next: number;
|
|
22
|
+
} | null;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
// M35 P1: the HTML scanning steps `htmlToText` (rich-text-text.ts) and `rewriteStartTags`
|
|
2
|
+
// (html-start-tags.ts) share, moved here unchanged from rich-text-text.ts. Each moves the read
|
|
3
|
+
// position forward only and never reads past the `end` it is given. Not exported from index.ts:
|
|
4
|
+
// these are building blocks, not a public reader.
|
|
5
|
+
export function isSpace(code) {
|
|
6
|
+
return code === 0x20 || code === 0x09 || code === 0x0a || code === 0x0c || code === 0x0d;
|
|
7
|
+
}
|
|
8
|
+
/** The named references `htmlToText` decodes; any other stays as written. */
|
|
9
|
+
const NAMED_REFERENCES = new Map([
|
|
10
|
+
["amp", "&"],
|
|
11
|
+
["lt", "<"],
|
|
12
|
+
["gt", ">"],
|
|
13
|
+
["quot", '"'],
|
|
14
|
+
["apos", "'"],
|
|
15
|
+
["nbsp", " "],
|
|
16
|
+
]);
|
|
17
|
+
/** The longest name in the table above. */
|
|
18
|
+
const NAMED_REFERENCE_LENGTH_MAX = 4;
|
|
19
|
+
const DECIMAL_DIGITS_MAX = 7;
|
|
20
|
+
const HEX_DIGITS_MAX = 6;
|
|
21
|
+
export function isAsciiLetter(code) {
|
|
22
|
+
return (code >= 0x41 && code <= 0x5a) || (code >= 0x61 && code <= 0x7a);
|
|
23
|
+
}
|
|
24
|
+
export function isDecimalDigit(code) {
|
|
25
|
+
return code >= 0x30 && code <= 0x39;
|
|
26
|
+
}
|
|
27
|
+
export function isHexDigit(code) {
|
|
28
|
+
return isDecimalDigit(code) || (code >= 0x41 && code <= 0x46) || (code >= 0x61 && code <= 0x66);
|
|
29
|
+
}
|
|
30
|
+
export function isAsciiAlphanumeric(code) {
|
|
31
|
+
return isAsciiLetter(code) || isDecimalDigit(code);
|
|
32
|
+
}
|
|
33
|
+
/** Whether `<` at `index` starts a tag: only before an ASCII letter, `/`, `!` or `?`. */
|
|
34
|
+
export function startsTag(html, index, end) {
|
|
35
|
+
if (index + 1 >= end)
|
|
36
|
+
return false;
|
|
37
|
+
const next = html.charCodeAt(index + 1);
|
|
38
|
+
return isAsciiLetter(next) || next === 0x2f || next === 0x21 || next === 0x3f;
|
|
39
|
+
}
|
|
40
|
+
/** The index just past the `>` that ends the tag opening at `start`, skipping a quoted
|
|
41
|
+
* attribute value (a quote right after `=`, spaces allowed between); `end` when the tag is
|
|
42
|
+
* never closed. */
|
|
43
|
+
export function tagEnd(html, start, end) {
|
|
44
|
+
let quote = 0;
|
|
45
|
+
let afterEquals = false;
|
|
46
|
+
for (let index = start + 1; index < end; index++) {
|
|
47
|
+
const code = html.charCodeAt(index);
|
|
48
|
+
if (quote !== 0) {
|
|
49
|
+
if (code === quote)
|
|
50
|
+
quote = 0;
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
if (code === 0x3e)
|
|
54
|
+
return index + 1;
|
|
55
|
+
if (afterEquals && (code === 0x22 || code === 0x27)) {
|
|
56
|
+
quote = code;
|
|
57
|
+
afterEquals = false;
|
|
58
|
+
}
|
|
59
|
+
else if (code === 0x3d) {
|
|
60
|
+
afterEquals = true;
|
|
61
|
+
}
|
|
62
|
+
else if (!isSpace(code)) {
|
|
63
|
+
afterEquals = false;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return end;
|
|
67
|
+
}
|
|
68
|
+
/** The lower-cased tag name read from `start` (just past `<` or `</`). */
|
|
69
|
+
export function tagNameAt(html, start, end) {
|
|
70
|
+
let index = start;
|
|
71
|
+
while (index < end && (isAsciiAlphanumeric(html.charCodeAt(index)) || html.charCodeAt(index) === 0x2d))
|
|
72
|
+
index++;
|
|
73
|
+
return html.slice(start, index).toLowerCase();
|
|
74
|
+
}
|
|
75
|
+
/** Whether a tag named `name` (lower case) starts at `start` (just past `<` or `</`):
|
|
76
|
+
* the name, then a space, `/`, `>` or the end. */
|
|
77
|
+
export function namedTagAt(html, start, end, name) {
|
|
78
|
+
if (start + name.length > end)
|
|
79
|
+
return false;
|
|
80
|
+
for (let offset = 0; offset < name.length; offset++) {
|
|
81
|
+
const code = html.charCodeAt(start + offset);
|
|
82
|
+
const lower = code >= 0x41 && code <= 0x5a ? code + 0x20 : code;
|
|
83
|
+
if (lower !== name.charCodeAt(offset))
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
const after = start + name.length;
|
|
87
|
+
if (after === end)
|
|
88
|
+
return true;
|
|
89
|
+
const code = html.charCodeAt(after);
|
|
90
|
+
return isSpace(code) || code === 0x2f || code === 0x3e;
|
|
91
|
+
}
|
|
92
|
+
/** Reads a character reference at `amp` (an `&`): its text and the index after it, or null
|
|
93
|
+
* when it is not one this reader decodes (the `&` is then text). */
|
|
94
|
+
export function referenceAt(html, amp, end) {
|
|
95
|
+
let index = amp + 1;
|
|
96
|
+
if (index < end && html.charCodeAt(index) === 0x23) {
|
|
97
|
+
index += 1;
|
|
98
|
+
let hex = false;
|
|
99
|
+
if (index < end && (html.charCodeAt(index) === 0x78 || html.charCodeAt(index) === 0x58)) {
|
|
100
|
+
hex = true;
|
|
101
|
+
index += 1;
|
|
102
|
+
}
|
|
103
|
+
const digitsStart = index;
|
|
104
|
+
const limit = hex ? HEX_DIGITS_MAX : DECIMAL_DIGITS_MAX;
|
|
105
|
+
// Reads one digit past the limit at most, so a long run costs nothing extra.
|
|
106
|
+
while (index < end && index - digitsStart <= limit && (hex ? isHexDigit(html.charCodeAt(index)) : isDecimalDigit(html.charCodeAt(index))))
|
|
107
|
+
index++;
|
|
108
|
+
const digits = index - digitsStart;
|
|
109
|
+
if (digits === 0 || digits > limit || index >= end || html.charCodeAt(index) !== 0x3b)
|
|
110
|
+
return null;
|
|
111
|
+
const code = Number.parseInt(html.slice(digitsStart, index), hex ? 16 : 10);
|
|
112
|
+
const valid = code !== 0 && code <= 0x10ffff && !(code >= 0xd800 && code <= 0xdfff);
|
|
113
|
+
return { text: valid ? String.fromCodePoint(code) : "�", next: index + 1 };
|
|
114
|
+
}
|
|
115
|
+
const nameStart = index;
|
|
116
|
+
while (index < end && index - nameStart <= NAMED_REFERENCE_LENGTH_MAX && isAsciiAlphanumeric(html.charCodeAt(index)))
|
|
117
|
+
index++;
|
|
118
|
+
if (index >= end || html.charCodeAt(index) !== 0x3b)
|
|
119
|
+
return null;
|
|
120
|
+
const decoded = NAMED_REFERENCES.get(html.slice(nameStart, index));
|
|
121
|
+
return decoded === undefined ? null : { text: decoded, next: index + 1 };
|
|
122
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/** How many characters of HTML one call reads (2 MiB); a longer input is returned unchanged. */
|
|
2
|
+
export declare const HTML_REWRITE_INPUT_MAX: number;
|
|
3
|
+
/** How many start tags one call reads; the rest of the input is copied unchanged. */
|
|
4
|
+
export declare const HTML_REWRITE_TAGS_MAX = 100000;
|
|
5
|
+
/** The most attributes a tag may hold to be handed over, and a change may give. */
|
|
6
|
+
export declare const HTML_TAG_ATTRIBUTES_MAX = 64;
|
|
7
|
+
/** The longest attribute name a tag is handed over with, and a change may give. */
|
|
8
|
+
export declare const HTML_ATTRIBUTE_NAME_MAX = 64;
|
|
9
|
+
/** One attribute: its name in lower case, and its value (null for a bare attribute) with the numeric
|
|
10
|
+
* character references and the six named ones `&`, `<`, `>`, `"`, `'` and
|
|
11
|
+
* ` ` decoded. Any other named reference (`é`, `:`) stays as written, so compare
|
|
12
|
+
* with care. Handed back as given (the same object), it is written exactly as it was found; a new
|
|
13
|
+
* or changed one is written from its value, escaped. A copy (`{ ...attribute }`) is a new one. */
|
|
14
|
+
export interface HtmlAttribute {
|
|
15
|
+
readonly name: string;
|
|
16
|
+
readonly value: string | null;
|
|
17
|
+
}
|
|
18
|
+
/** A start tag as handed over: its name in lower case, its attributes in order, and whether it ends with "/". */
|
|
19
|
+
export interface HtmlStartTag {
|
|
20
|
+
readonly name: string;
|
|
21
|
+
readonly attributes: readonly HtmlAttribute[];
|
|
22
|
+
readonly selfClosing: boolean;
|
|
23
|
+
}
|
|
24
|
+
/** The new attributes of a tag, or null (or undefined) to keep the tag exactly as written. */
|
|
25
|
+
export type HtmlStartTagChange = {
|
|
26
|
+
readonly attributes: readonly HtmlAttribute[];
|
|
27
|
+
} | null | undefined;
|
|
28
|
+
export interface RewriteStartTagsOptions {
|
|
29
|
+
/** Only start tags with one of these names (any case) are handed over; every tag when absent. */
|
|
30
|
+
names?: readonly string[];
|
|
31
|
+
/** Called once when the input is longer than HTML_REWRITE_INPUT_MAX or holds more than HTML_REWRITE_TAGS_MAX start tags. */
|
|
32
|
+
onCut?: () => void;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The HTML with each start tag `visit` changes written back from its new attributes: one handed back
|
|
36
|
+
* as it was given is written as it was found, a new or changed one from its value, escaped; every
|
|
37
|
+
* other byte as it was. `visit` is handed each start tag (only those named in
|
|
38
|
+
* `options.names`, when given) outside comments, declarations and the text of script, style,
|
|
39
|
+
* textarea, title, noscript, iframe, noembed, noframes, xmp and plaintext elements; a tag with more
|
|
40
|
+
* than HTML_TAG_ATTRIBUTES_MAX attributes, an attribute name that cannot be written back or a tag name
|
|
41
|
+
* holding a character other than a letter, a digit or "-" is copied unvisited. Values are decoded as
|
|
42
|
+
* HtmlAttribute says (numeric references and six named ones). Reads at most HTML_REWRITE_INPUT_MAX characters (a
|
|
43
|
+
* longer input is returned unchanged) and HTML_REWRITE_TAGS_MAX start tags (the rest is copied), and
|
|
44
|
+
* calls `options.onCut` once when either cut. Answers the same string when nothing changed. Throws a
|
|
45
|
+
* TypeError for a change it cannot write safely; a throw from `visit` passes through.
|
|
46
|
+
* @experimental
|
|
47
|
+
*/
|
|
48
|
+
export declare function rewriteStartTags(html: string, visit: (tag: HtmlStartTag) => HtmlStartTagChange, options?: RewriteStartTagsOptions): string;
|