@kardalum/plugin-sdk 0.18.0 → 0.20.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 +253 -0
- package/README.md +20 -1
- package/dist/admin-section-registry.d.ts +16 -1
- package/dist/admin-section-registry.js +23 -0
- package/dist/assets/asset-picker.js +3 -3
- package/dist/built-in-editor-ids.d.ts +1 -1
- package/dist/built-in-editor-ids.js +2 -20
- package/dist/built-in-serializers.js +1 -1
- package/dist/built-in-settings-schemas.d.ts +10 -0
- package/dist/built-in-settings-schemas.js +90 -4
- package/dist/built-in-value-schemas.js +35 -0
- package/dist/built-ins.js +48 -17
- package/dist/capabilities.d.ts +11 -1
- package/dist/capabilities.js +55 -3
- package/dist/cli.d.ts +66 -0
- package/dist/cli.js +22 -0
- package/dist/content-library.d.ts +85 -0
- package/dist/content-library.js +15 -0
- package/dist/content-picker/page-picker-sheet.d.ts +13 -0
- package/dist/content-picker/page-picker-sheet.js +105 -0
- package/dist/content-picker/page-tree.d.ts +25 -0
- package/dist/content-picker/page-tree.js +132 -0
- package/dist/data-type-plugin.d.ts +9 -3
- package/dist/datatype-validation.d.ts +6 -11
- package/dist/datatype-validation.js +141 -3
- package/dist/define-plugin.d.ts +4 -4
- package/dist/define-plugin.js +5 -5
- package/dist/entitlement-entry.d.ts +1 -1
- package/dist/entitlement-entry.js +1 -1
- package/dist/entitlement-gate.d.ts +14 -0
- package/dist/entitlement-gate.js +64 -7
- package/dist/entitlement-plan.d.ts +6 -0
- package/dist/entitlement-plan.js +10 -0
- package/dist/entitlement-types.d.ts +36 -12
- package/dist/entitlement.d.ts +31 -4
- package/dist/entitlement.js +58 -17
- package/dist/hook-entry.d.ts +5 -0
- package/dist/hook-entry.js +30 -0
- package/dist/host-entry.d.ts +1 -1
- package/dist/host-entry.js +1 -1
- package/dist/index.d.ts +38 -4
- package/dist/index.js +54 -3
- package/dist/mail.d.ts +30 -0
- package/dist/mail.js +1 -0
- package/dist/manifest-entry.d.ts +29 -4
- package/dist/manifest-entry.js +39 -2
- package/dist/manifest-schema.d.ts +443 -29
- package/dist/manifest-schema.js +292 -24
- package/dist/manifest.d.ts +450 -51
- package/dist/manifest.js +1 -1
- package/dist/media/media-picker.js +33 -20
- package/dist/media/upload-error.d.ts +5 -1
- package/dist/media/upload-error.js +14 -2
- package/dist/media-library.d.ts +32 -0
- package/dist/media-library.js +15 -0
- package/dist/nested-field-host.d.ts +76 -0
- package/dist/nested-field-host.js +90 -0
- package/dist/notify.d.ts +12 -4
- package/dist/notify.js +1 -1
- package/dist/outbound.d.ts +47 -0
- package/dist/outbound.js +1 -0
- package/dist/plugin-context.d.ts +5 -0
- package/dist/plugin-context.js +3 -3
- package/dist/plugin-screen-context.d.ts +112 -0
- package/dist/plugin-screen-context.js +26 -0
- package/dist/providers.d.ts +268 -0
- package/dist/providers.js +74 -0
- package/dist/read-all-pages.d.ts +5 -0
- package/dist/read-all-pages.js +3 -2
- package/dist/register-built-ins.js +6 -6
- package/dist/registry.js +1 -1
- package/dist/richtext/block-panel.js +12 -7
- package/dist/richtext/extensions.js +7 -7
- package/dist/richtext/insert-menu.js +12 -9
- package/dist/richtext/style-listbox.js +7 -5
- package/dist/richtext/text-style-class.js +1 -1
- package/dist/sdk-strings.d.ts +285 -0
- package/dist/sdk-strings.js +347 -0
- package/dist/sealing.d.ts +14 -0
- package/dist/sealing.js +1 -0
- package/dist/simple-storage-value-provider.js +27 -27
- package/dist/structured-storage-types.d.ts +309 -9
- package/dist/structured-storage-types.js +2 -2
- package/dist/text-entry.d.ts +1 -0
- package/dist/text-entry.js +6 -0
- package/dist/tokens/tailwind-theme.css +5 -0
- package/dist/tokens/tokens.css +15 -3
- package/dist/tokens/tokens.json +8 -3
- package/dist/ui-entry.js +3 -3
- package/dist/views/asset-view.js +6 -3
- package/dist/views/content-list-preview.js +3 -1
- package/dist/views/content-list-settings-view.js +11 -7
- package/dist/views/content-list-view.d.ts +5 -3
- package/dist/views/content-list-view.js +38 -34
- package/dist/views/content-picker-view.d.ts +3 -0
- package/dist/views/content-picker-view.js +143 -0
- package/dist/views/crop-view.d.ts +4 -6
- package/dist/views/crop-view.js +22 -13
- package/dist/views/date-range-view.js +9 -6
- package/dist/views/file-upload-view.d.ts +5 -7
- package/dist/views/file-upload-view.js +16 -7
- package/dist/views/group-view.d.ts +8 -0
- package/dist/views/group-view.js +123 -0
- package/dist/views/html-code-editor.js +2 -2
- package/dist/views/html-view.js +12 -11
- package/dist/views/image-view.js +40 -22
- package/dist/views/link-view.d.ts +3 -0
- package/dist/views/link-view.js +150 -0
- package/dist/views/options-list-view.d.ts +3 -0
- package/dist/views/options-list-view.js +104 -0
- package/dist/views/repeatable-list-view.d.ts +3 -0
- package/dist/views/repeatable-list-view.js +113 -0
- package/dist/views/rich-text-view.js +32 -16
- package/dist/views/suggest-key.d.ts +17 -0
- package/dist/views/suggest-key.js +55 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.d.ts +215 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.js +179 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-context.schema.d.ts +12 -0
- package/node_modules/@kardalum/api-schemas/dist/ai-context.schema.js +10 -0
- package/node_modules/@kardalum/api-schemas/dist/api-error.schema.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.d.ts +10 -0
- package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.js +5 -0
- package/node_modules/@kardalum/api-schemas/dist/asset-api.schema.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.d.ts +7 -1
- package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.js +4 -2
- package/node_modules/@kardalum/api-schemas/dist/auth.schema.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.d.ts +1 -0
- package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.js +27 -0
- package/node_modules/@kardalum/api-schemas/dist/capability-detail.d.ts +65 -0
- package/node_modules/@kardalum/api-schemas/dist/capability-detail.js +126 -0
- package/node_modules/@kardalum/api-schemas/dist/content-api.schema.d.ts +116 -3
- package/node_modules/@kardalum/api-schemas/dist/content-api.schema.js +71 -18
- package/node_modules/@kardalum/api-schemas/dist/content-list.schema.d.ts +57 -2
- package/node_modules/@kardalum/api-schemas/dist/content-list.schema.js +137 -0
- package/node_modules/@kardalum/api-schemas/dist/content-path.d.ts +1 -1
- package/node_modules/@kardalum/api-schemas/dist/content-path.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/content-search.schema.d.ts +50 -0
- package/node_modules/@kardalum/api-schemas/dist/content-search.schema.js +42 -0
- package/node_modules/@kardalum/api-schemas/dist/content-summary.schema.d.ts +37 -0
- package/node_modules/@kardalum/api-schemas/dist/content-summary.schema.js +19 -0
- package/node_modules/@kardalum/api-schemas/dist/content-trash-api.schema.js +3 -3
- package/node_modules/@kardalum/api-schemas/dist/content-trash.schema.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/content-unpublish.schema.d.ts +23 -0
- package/node_modules/@kardalum/api-schemas/dist/content-unpublish.schema.js +13 -0
- package/node_modules/@kardalum/api-schemas/dist/content.schema.d.ts +3 -0
- package/node_modules/@kardalum/api-schemas/dist/content.schema.js +10 -0
- package/node_modules/@kardalum/api-schemas/dist/contract-cancel.schema.d.ts +41 -0
- package/node_modules/@kardalum/api-schemas/dist/contract-cancel.schema.js +86 -0
- package/node_modules/@kardalum/api-schemas/dist/core-actions.d.ts +10 -5
- package/node_modules/@kardalum/api-schemas/dist/core-actions.js +7 -4
- package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.d.ts +25 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.js +9 -1
- package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.js +4 -4
- package/node_modules/@kardalum/api-schemas/dist/data-type-issue.d.ts +35 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-issue.js +60 -0
- package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.d.ts +267 -12
- package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.js +54 -8
- package/node_modules/@kardalum/api-schemas/dist/document-type.schema.d.ts +24 -6
- package/node_modules/@kardalum/api-schemas/dist/document-type.schema.js +98 -13
- package/node_modules/@kardalum/api-schemas/dist/form-protection.d.ts +23 -0
- package/node_modules/@kardalum/api-schemas/dist/form-protection.js +12 -0
- package/node_modules/@kardalum/api-schemas/dist/graphql-limits.d.ts +12 -0
- package/node_modules/@kardalum/api-schemas/dist/graphql-limits.js +14 -0
- package/node_modules/@kardalum/api-schemas/dist/held-embed-words.d.ts +23 -0
- package/node_modules/@kardalum/api-schemas/dist/held-embed-words.js +70 -0
- package/node_modules/@kardalum/api-schemas/dist/index.d.ts +122 -43
- package/node_modules/@kardalum/api-schemas/dist/index.js +92 -27
- package/node_modules/@kardalum/api-schemas/dist/install-sign-in-switched-off.schema.d.ts +9 -0
- package/node_modules/@kardalum/api-schemas/dist/install-sign-in-switched-off.schema.js +9 -0
- package/node_modules/@kardalum/api-schemas/dist/legal-anchors.d.ts +8 -0
- package/node_modules/@kardalum/api-schemas/dist/legal-anchors.js +9 -0
- package/node_modules/@kardalum/api-schemas/dist/licensing.schema.d.ts +63 -0
- package/node_modules/@kardalum/api-schemas/dist/licensing.schema.js +54 -0
- package/node_modules/@kardalum/api-schemas/dist/listing-categories.schema.d.ts +46 -0
- package/node_modules/@kardalum/api-schemas/dist/listing-categories.schema.js +52 -0
- package/node_modules/@kardalum/api-schemas/dist/mail-rules.d.ts +224 -0
- package/node_modules/@kardalum/api-schemas/dist/mail-rules.js +404 -0
- package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.d.ts +8 -0
- package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.js +4 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-leaks.schema.d.ts +145 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-leaks.schema.js +154 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.d.ts +359 -8
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +85 -11
- package/node_modules/@kardalum/api-schemas/dist/marketplace-package-api.schema.d.ts +15 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-package-api.schema.js +14 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-payouts.schema.d.ts +131 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-payouts.schema.js +272 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-profile.schema.d.ts +84 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-profile.schema.js +138 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-revocation.schema.d.ts +20 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-revocation.schema.js +49 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-sites.schema.d.ts +211 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-sites.schema.js +424 -0
- package/node_modules/@kardalum/api-schemas/dist/mcp-plugins.schema.d.ts +78 -0
- package/node_modules/@kardalum/api-schemas/dist/mcp-plugins.schema.js +27 -0
- package/node_modules/@kardalum/api-schemas/dist/mcp-tool-inputs.schema.d.ts +70 -0
- package/node_modules/@kardalum/api-schemas/dist/mcp-tool-inputs.schema.js +43 -0
- package/node_modules/@kardalum/api-schemas/dist/media-api.schema.d.ts +22 -0
- package/node_modules/@kardalum/api-schemas/dist/media-api.schema.js +22 -10
- package/node_modules/@kardalum/api-schemas/dist/media-move.schema.d.ts +75 -0
- package/node_modules/@kardalum/api-schemas/dist/media-move.schema.js +53 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference-api.schema.d.ts +2 -2
- package/node_modules/@kardalum/api-schemas/dist/media-reference.d.ts +2 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference.js +55 -0
- package/node_modules/@kardalum/api-schemas/dist/media.schema.d.ts +1 -0
- package/node_modules/@kardalum/api-schemas/dist/media.schema.js +9 -5
- package/node_modules/@kardalum/api-schemas/dist/nested-fields.schema.d.ts +204 -0
- package/node_modules/@kardalum/api-schemas/dist/nested-fields.schema.js +370 -0
- package/node_modules/@kardalum/api-schemas/dist/nested-validation.d.ts +53 -0
- package/node_modules/@kardalum/api-schemas/dist/nested-validation.js +284 -0
- package/node_modules/@kardalum/api-schemas/dist/news.schema.d.ts +5 -5
- package/node_modules/@kardalum/api-schemas/dist/node-access.schema.d.ts +1 -2
- package/node_modules/@kardalum/api-schemas/dist/node-access.schema.js +1 -2
- package/node_modules/@kardalum/api-schemas/dist/notification-kinds.d.ts +145 -0
- package/node_modules/@kardalum/api-schemas/dist/notification-kinds.js +177 -0
- package/node_modules/@kardalum/api-schemas/dist/notification.schema.d.ts +258 -7
- package/node_modules/@kardalum/api-schemas/dist/notification.schema.js +96 -5
- package/node_modules/@kardalum/api-schemas/dist/page-address.d.ts +10 -0
- package/node_modules/@kardalum/api-schemas/dist/page-address.js +7 -0
- package/node_modules/@kardalum/api-schemas/dist/password-reset.schema.d.ts +34 -0
- package/node_modules/@kardalum/api-schemas/dist/password-reset.schema.js +60 -0
- package/node_modules/@kardalum/api-schemas/dist/plan-editor.schema.d.ts +28 -3
- package/node_modules/@kardalum/api-schemas/dist/plan-editor.schema.js +55 -8
- package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.d.ts +12 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.js +13 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-caller.d.ts +23 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-caller.js +16 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-cli-commands.d.ts +76 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-cli-commands.js +316 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.d.ts +42 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.js +74 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-data-type-configs.d.ts +31 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-data-type-configs.js +131 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.d.ts +26 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-text.js +1 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.d.ts +26 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +13 -5
- package/node_modules/@kardalum/api-schemas/dist/plugin-document-types.d.ts +228 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-document-types.js +41 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.d.ts +26 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.js +55 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.d.ts +40 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.js +124 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-field-info.d.ts +41 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-field-info.js +51 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-graphql-fields.d.ts +32 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-graphql-fields.js +102 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-held-embeds.d.ts +107 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-held-embeds.js +213 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-https-origin.d.ts +5 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-https-origin.js +21 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.js +3 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.d.ts +44 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.js +38 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.d.ts +237 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.js +205 -6
- package/node_modules/@kardalum/api-schemas/dist/plugin-labels.d.ts +26 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-labels.js +29 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-locales.d.ts +32 -8
- package/node_modules/@kardalum/api-schemas/dist/plugin-locales.js +120 -14
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.d.ts +357 -4
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +279 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +16 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +34 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-ai.d.ts +40 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-ai.js +139 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.d.ts +22 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.js +31 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-media-access.d.ts +25 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-media-access.js +43 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-outbound.d.ts +107 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-outbound.js +150 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-package-build.schema.d.ts +5 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-package-build.schema.js +7 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-providers.d.ts +310 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-providers.js +430 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-read-only.schema.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-read-only.schema.js +2 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-registry-api.schema.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-sealed-values.d.ts +45 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-sealed-values.js +99 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-secrets.d.ts +68 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-secrets.js +114 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-settings.d.ts +342 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-settings.js +400 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.d.ts +180 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.js +612 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.d.ts +7 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.js +50 -7
- package/node_modules/@kardalum/api-schemas/dist/plugin-tasks.d.ts +45 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-tasks.js +197 -0
- package/node_modules/@kardalum/api-schemas/dist/plural-rules.d.ts +9 -0
- package/node_modules/@kardalum/api-schemas/dist/plural-rules.js +41 -0
- package/node_modules/@kardalum/api-schemas/dist/public-api.schema.d.ts +41 -0
- package/node_modules/@kardalum/api-schemas/dist/public-api.schema.js +100 -12
- package/node_modules/@kardalum/api-schemas/dist/refund-request.schema.d.ts +189 -0
- package/node_modules/@kardalum/api-schemas/dist/refund-request.schema.js +164 -0
- package/node_modules/@kardalum/api-schemas/dist/render-editing.d.ts +4 -4
- package/node_modules/@kardalum/api-schemas/dist/render-editing.js +4 -4
- package/node_modules/@kardalum/api-schemas/dist/render-settings-api.schema.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/revenue-view.schema.js +7 -3
- package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.d.ts +6 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.js +82 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-text.d.ts +66 -0
- package/node_modules/@kardalum/api-schemas/dist/rich-text-text.js +497 -0
- package/node_modules/@kardalum/api-schemas/dist/sale-conditions.schema.d.ts +82 -0
- package/node_modules/@kardalum/api-schemas/dist/sale-conditions.schema.js +99 -0
- package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.d.ts +13 -0
- package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.js +28 -0
- package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.d.ts +91 -1
- package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.d.ts +289 -0
- package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.js +205 -0
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +121 -0
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.js +51 -10
- package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.d.ts +384 -0
- package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.js +616 -0
- package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.d.ts +3 -3
- package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.d.ts +1 -1
- package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/structured-duplicate-key.d.ts +13 -0
- package/node_modules/@kardalum/api-schemas/dist/structured-duplicate-key.js +26 -0
- package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.d.ts +66 -0
- package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.js +160 -0
- package/node_modules/@kardalum/api-schemas/dist/template-api.schema.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/template.schema.d.ts +1 -0
- package/node_modules/@kardalum/api-schemas/dist/template.schema.js +3 -0
- package/node_modules/@kardalum/api-schemas/dist/theme-api.schema.d.ts +1 -1
- package/node_modules/@kardalum/api-schemas/dist/theme-api.schema.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/transaction-rolled-back.d.ts +13 -0
- package/node_modules/@kardalum/api-schemas/dist/transaction-rolled-back.js +29 -0
- package/node_modules/@kardalum/api-schemas/dist/trash-purge.schema.d.ts +13 -0
- package/node_modules/@kardalum/api-schemas/dist/trash-purge.schema.js +6 -0
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.d.ts +58 -1
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +35 -4
- package/node_modules/@kardalum/api-schemas/dist/vendor-service.schema.d.ts +5 -1
- package/node_modules/@kardalum/api-schemas/dist/vendor-service.schema.js +4 -3
- package/node_modules/@kardalum/api-schemas/package.json +1 -0
- package/node_modules/@kardalum/design-tokens/dist/build-css.d.ts +1 -1
- package/node_modules/@kardalum/design-tokens/dist/build-css.js +8 -2
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.css +5 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.d.ts +1 -1
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.js +3 -3
- package/node_modules/@kardalum/design-tokens/dist/theme-css.d.ts +2 -2
- package/node_modules/@kardalum/design-tokens/dist/theme-css.js +2 -2
- package/node_modules/@kardalum/design-tokens/dist/theme-types.d.ts +2 -2
- package/node_modules/@kardalum/design-tokens/dist/themes/dark.d.ts +3 -3
- package/node_modules/@kardalum/design-tokens/dist/themes/dark.js +3 -3
- package/node_modules/@kardalum/design-tokens/dist/themes/light.d.ts +1 -1
- package/node_modules/@kardalum/design-tokens/dist/themes/light.js +1 -1
- package/node_modules/@kardalum/design-tokens/dist/tokens.css +15 -3
- package/node_modules/@kardalum/design-tokens/dist/tokens.d.ts +4 -4
- package/node_modules/@kardalum/design-tokens/dist/tokens.js +17 -8
- package/node_modules/@kardalum/design-tokens/dist/tokens.json +8 -3
- package/node_modules/@kardalum/design-tokens/dist/types.d.ts +2 -2
- package/node_modules/@kardalum/design-tokens/dist/types.js +1 -1
- package/node_modules/@kardalum/plugin-package/dist/build-reference.d.ts +21 -2
- package/node_modules/@kardalum/plugin-package/dist/build-reference.js +8 -2
- package/node_modules/@kardalum/plugin-package/dist/capabilities.d.ts +17 -10
- package/node_modules/@kardalum/plugin-package/dist/capabilities.js +355 -22
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.d.ts +1 -1
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.js +2 -0
- package/node_modules/@kardalum/plugin-package/dist/cms-range.d.ts +17 -0
- package/node_modules/@kardalum/plugin-package/dist/cms-range.js +353 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/ai-declarations.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/ai-declarations.js +26 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/archive-names.d.ts +1 -1
- package/node_modules/@kardalum/plugin-package/dist/delivery/archive-names.js +3 -2
- package/node_modules/@kardalum/plugin-package/dist/delivery/content-access.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/content-access.js +34 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/contributions.js +2 -2
- package/node_modules/@kardalum/plugin-package/dist/delivery/editor-extensions.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/editor-extensions.js +27 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/graphql-fields.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/graphql-fields.js +22 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/index.d.ts +1 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/index.js +1 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/label-languages.js +47 -5
- package/node_modules/@kardalum/plugin-package/dist/delivery/licence-check.d.ts +27 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/licence-check.js +95 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/locales.js +9 -4
- package/node_modules/@kardalum/plugin-package/dist/delivery/plugin-settings.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/plugin-settings.js +68 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/providers.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/providers.js +298 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/registry.js +27 -5
- package/node_modules/@kardalum/plugin-package/dist/delivery/sample-content.js +91 -2
- package/node_modules/@kardalum/plugin-package/dist/delivery/server-powers.d.ts +6 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/server-powers.js +140 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/site-extensions.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/site-extensions.js +36 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/templates.d.ts +1 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/templates.js +21 -1
- package/node_modules/@kardalum/plugin-package/dist/delivery/types.d.ts +10 -0
- package/node_modules/@kardalum/plugin-package/dist/envelope.d.ts +2 -2
- package/node_modules/@kardalum/plugin-package/dist/envelope.js +2 -2
- package/node_modules/@kardalum/plugin-package/dist/extract.d.ts +3 -3
- package/node_modules/@kardalum/plugin-package/dist/extract.js +9 -9
- package/node_modules/@kardalum/plugin-package/dist/hash.d.ts +1 -1
- package/node_modules/@kardalum/plugin-package/dist/hash.js +1 -1
- package/node_modules/@kardalum/plugin-package/dist/index.d.ts +4 -2
- package/node_modules/@kardalum/plugin-package/dist/index.js +2 -1
- package/node_modules/@kardalum/plugin-package/dist/license-verdict.d.ts +75 -0
- package/node_modules/@kardalum/plugin-package/dist/license-verdict.js +123 -0
- package/node_modules/@kardalum/plugin-package/dist/package-contract.d.ts +2 -2
- package/node_modules/@kardalum/plugin-package/dist/package-contract.js +5 -5
- package/node_modules/@kardalum/plugin-package/dist/types.d.ts +1 -1
- package/node_modules/@kardalum/ui/dist/components/alert-dialog.d.ts +1 -1
- package/node_modules/@kardalum/ui/dist/components/alert-dialog.js +8 -3
- package/node_modules/@kardalum/ui/dist/components/badge.js +1 -1
- package/node_modules/@kardalum/ui/dist/components/button.js +1 -1
- package/node_modules/@kardalum/ui/dist/components/dialog.d.ts +1 -1
- package/node_modules/@kardalum/ui/dist/components/dialog.js +49 -4
- package/node_modules/@kardalum/ui/dist/components/dropdown-menu.d.ts +5 -1
- package/node_modules/@kardalum/ui/dist/components/dropdown-menu.js +18 -5
- package/node_modules/@kardalum/ui/dist/components/empty-state.d.ts +4 -4
- package/node_modules/@kardalum/ui/dist/components/input.js +6 -1
- package/node_modules/@kardalum/ui/dist/components/property-field.js +3 -3
- package/node_modules/@kardalum/ui/dist/components/sheet.d.ts +1 -1
- package/node_modules/@kardalum/ui/dist/components/sheet.js +12 -7
- package/node_modules/@kardalum/ui/dist/components/skeleton.js +1 -1
- package/node_modules/@kardalum/ui/dist/components/switch.js +1 -1
- package/node_modules/@kardalum/ui/dist/components/tab-strip.d.ts +3 -3
- package/node_modules/@kardalum/ui/dist/components/toast.js +4 -3
- package/node_modules/@kardalum/ui/dist/components/tooltip.d.ts +27 -0
- package/node_modules/@kardalum/ui/dist/components/tooltip.js +81 -0
- package/node_modules/@kardalum/ui/dist/components/truncated-text.d.ts +16 -0
- package/node_modules/@kardalum/ui/dist/components/truncated-text.js +95 -0
- package/node_modules/@kardalum/ui/dist/components/use-toast.js +2 -2
- package/node_modules/@kardalum/ui/dist/index.d.ts +3 -1
- package/node_modules/@kardalum/ui/dist/index.js +3 -1
- package/node_modules/@kardalum/ui/dist/lib/menu-host.d.ts +5 -0
- package/node_modules/@kardalum/ui/dist/lib/menu-host.js +17 -0
- package/node_modules/@kardalum/ui/package.json +8 -6
- package/package.json +18 -7
|
@@ -2,7 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
4
|
import { cn } from '../lib/cn.js';
|
|
5
|
-
|
|
5
|
+
import { IconTooltip } from './tooltip.js';
|
|
6
|
+
import { useMenuHost } from '../lib/menu-host.js';
|
|
7
|
+
import { DropdownMenuContainer } from './dropdown-menu.js';
|
|
8
|
+
// A right-side drawer variant of Dialog, with the same Radix primitive underneath
|
|
6
9
|
// (focus trap, Escape handling, aria wiring: SheetContent is still a
|
|
7
10
|
// DialogPrimitive.Content, so it carries role="dialog", and like
|
|
8
11
|
// DialogContent it sets aria-modal="true" itself as an overridable default,
|
|
@@ -11,10 +14,10 @@ import { cn } from '../lib/cn.js';
|
|
|
11
14
|
// centered card. Ported by hand in the shadcn/ui model (same convention as
|
|
12
15
|
// dialog.tsx/alert-dialog.tsx: retargeted to @kardalum/design-tokens
|
|
13
16
|
// classes, no tailwindcss-animate dependency, no owned strings). First
|
|
14
|
-
// added for S197 Item 5's media picker drawer
|
|
17
|
+
// added for S197 Item 5's media picker drawer, the first place this
|
|
15
18
|
// admin needs a side-sheet through this primitive rather than a centered
|
|
16
19
|
// dialog (block-overlay.tsx's on-page block param panel is its own
|
|
17
|
-
// bespoke non-Radix side panel, not a Dialog at all
|
|
20
|
+
// bespoke non-Radix side panel, not a Dialog at all; see that file's own
|
|
18
21
|
// doc comment for why it needed a manual focus trap instead of this).
|
|
19
22
|
const Sheet = DialogPrimitive.Root;
|
|
20
23
|
const SheetTrigger = DialogPrimitive.Trigger;
|
|
@@ -25,18 +28,20 @@ function SheetOverlay({ className, ...props }) {
|
|
|
25
28
|
}
|
|
26
29
|
// Slides in from the inline end on mount via a plain CSS transition, not
|
|
27
30
|
// Radix's own animation data-attributes (this package takes no
|
|
28
|
-
// tailwindcss-animate dependency
|
|
31
|
+
// tailwindcss-animate dependency; see dialog.tsx's own doc comment).
|
|
29
32
|
// `motion-safe:`/`motion-reduce:` gate the transition itself, same guard
|
|
30
33
|
// overlay-insert.tsx's "+" button already uses for its own color
|
|
31
34
|
// transition: under prefers-reduced-motion the panel still ends up in its
|
|
32
35
|
// final position on the very next frame, just without the slide.
|
|
33
|
-
function SheetContent({ className, children, ...props }) {
|
|
36
|
+
function SheetContent({ className, children, ref, ...props }) {
|
|
37
|
+
const menuHost = useMenuHost(ref);
|
|
38
|
+
const host = menuHost.host;
|
|
34
39
|
const [entered, setEntered] = React.useState(false);
|
|
35
40
|
React.useEffect(() => {
|
|
36
41
|
const frame = requestAnimationFrame(() => setEntered(true));
|
|
37
42
|
return () => cancelAnimationFrame(frame);
|
|
38
43
|
}, []);
|
|
39
|
-
return (_jsxs(SheetPortal, { children: [_jsx(SheetOverlay, {}), _jsx(DialogPrimitive.Content, { "aria-modal": "true", className: cn('fixed inset-y-0 end-0 z-50 flex h-full w-full max-w-md flex-col border-s border-border-default bg-background-elevated shadow-xl', 'motion-safe:transition-transform motion-safe:duration-normal motion-safe:ease-standard motion-reduce:transition-none', entered ? 'translate-x-0' : 'ltr:translate-x-full rtl:-translate-x-full', className), ...props, children: children })] }));
|
|
44
|
+
return (_jsxs(SheetPortal, { children: [_jsx(SheetOverlay, {}), _jsx(DialogPrimitive.Content, { "aria-modal": "true", className: cn('fixed inset-y-0 end-0 z-50 flex h-full w-full max-w-md flex-col border-s border-border-default bg-background-elevated shadow-xl', 'motion-safe:transition-transform motion-safe:duration-normal motion-safe:ease-standard motion-reduce:transition-none', entered ? 'translate-x-0' : 'ltr:translate-x-full rtl:-translate-x-full', className), ...props, ref: menuHost.ref, children: _jsx(DropdownMenuContainer, { container: host, children: children }) })] }));
|
|
40
45
|
}
|
|
41
46
|
function SheetHeader({ className, ...props }) {
|
|
42
47
|
return (_jsx("div", { className: cn('flex shrink-0 items-center gap-2 border-b border-border-default px-4 py-3 text-start', className), ...props }));
|
|
@@ -51,6 +56,6 @@ function SheetDescription({ className, ...props }) {
|
|
|
51
56
|
return (_jsx(DialogPrimitive.Description, { className: cn('text-sm text-text-secondary', className), ...props }));
|
|
52
57
|
}
|
|
53
58
|
function SheetCloseButton({ className, ...props }) {
|
|
54
|
-
return (_jsx(DialogPrimitive.Close, { className: cn('ms-auto shrink-0 rounded-md p-1 text-text-secondary opacity-70 transition-colors duration-fast hover:bg-background-hover hover:opacity-100 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary-600', className), ...props, children: _jsxs("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "h-4 w-4", children: [_jsx("path", { d: "M18 6 6 18" }), _jsx("path", { d: "m6 6 12 12" })] }) }));
|
|
59
|
+
return (_jsx(IconTooltip, { children: _jsx(DialogPrimitive.Close, { className: cn('ms-auto shrink-0 rounded-md p-1 text-text-secondary opacity-70 transition-colors duration-fast hover:bg-background-hover hover:opacity-100 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary-600', className), ...props, children: _jsxs("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "h-4 w-4", children: [_jsx("path", { d: "M18 6 6 18" }), _jsx("path", { d: "m6 6 12 12" })] }) }) }));
|
|
55
60
|
}
|
|
56
61
|
export { Sheet, SheetTrigger, SheetPortal, SheetClose, SheetCloseButton, SheetOverlay, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from '../lib/cn.js';
|
|
3
3
|
// Loading placeholder for async lists. background.hover is deliberately
|
|
4
|
-
// reused as the shimmer base
|
|
4
|
+
// reused as the shimmer base: it's the "subtle wash" token and is
|
|
5
5
|
// theme-remapped, so the skeleton stays subtle in dark mode too.
|
|
6
6
|
function Skeleton({ className, ...props }) {
|
|
7
7
|
return (_jsx("div", { "data-slot": "skeleton", "aria-hidden": "true", className: cn('animate-pulse rounded-md bg-background-hover', className), ...props }));
|
|
@@ -2,6 +2,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
3
3
|
import { cn } from '../lib/cn.js';
|
|
4
4
|
function Switch({ className, ...props }) {
|
|
5
|
-
return (_jsx(SwitchPrimitive.Root, { "data-slot": "switch", className: cn('peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary-600 focus-visible:ring-offset-2 focus-visible:ring-offset-background-base disabled:cursor-not-allowed disabled:opacity-50
|
|
5
|
+
return (_jsx(SwitchPrimitive.Root, { "data-slot": "switch", className: cn('peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary-600 focus-visible:ring-offset-2 focus-visible:ring-offset-background-base disabled:cursor-not-allowed disabled:opacity-50 aria-checked:bg-primary-600 aria-[checked=false]:bg-border-strong', className), ...props, children: _jsx(SwitchPrimitive.Thumb, { "data-slot": "switch-thumb", className: "pointer-events-none block h-5 w-5 rounded-full bg-background-elevated shadow-sm ring-0 transition-transform data-[state=unchecked]:translate-x-0 ltr:data-[state=checked]:translate-x-5 rtl:data-[state=checked]:-translate-x-5" }) }));
|
|
6
6
|
}
|
|
7
7
|
export { Switch };
|
|
@@ -15,15 +15,15 @@ export interface TabStripProps {
|
|
|
15
15
|
tabs: TabStripItem[];
|
|
16
16
|
activeId: string;
|
|
17
17
|
onChange: (id: string) => void;
|
|
18
|
-
/** Accessible name for the tablist
|
|
18
|
+
/** Accessible name for the tablist: pass translated text. */
|
|
19
19
|
label: string;
|
|
20
20
|
/** Appended to a tab's accessible name when that tab's `hasError` is
|
|
21
|
-
* set (e.g. "Has an error")
|
|
21
|
+
* set (e.g. "Has an error"), so pass translated text. Only needed if any
|
|
22
22
|
* tab uses `hasError`. */
|
|
23
23
|
errorLabel?: string;
|
|
24
24
|
/**
|
|
25
25
|
* Prefix for the generated tab/panel DOM ids so aria-controls /
|
|
26
|
-
* aria-labelledby wiring stays consistent
|
|
26
|
+
* aria-labelledby wiring stays consistent: pair with tabStripTabId /
|
|
27
27
|
* tabStripPanelId on the consumer's panel element.
|
|
28
28
|
*/
|
|
29
29
|
idPrefix: string;
|
|
@@ -2,18 +2,19 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
3
3
|
import { cva } from 'class-variance-authority';
|
|
4
4
|
import { cn } from '../lib/cn.js';
|
|
5
|
+
import { IconTooltip } from './tooltip.js';
|
|
5
6
|
// Ported from shadcn/ui's Toast (Radix @radix-ui/react-toast under the
|
|
6
7
|
// hood), retargeted to @kardalum/design-tokens classes and trimmed: no
|
|
7
8
|
// tailwindcss-animate dependency (swipe transforms via arbitrary values
|
|
8
9
|
// only), logical properties for the viewport position, and no owned
|
|
9
|
-
// strings
|
|
10
|
+
// strings: the close button's aria-label comes from the caller
|
|
10
11
|
// (see Toaster).
|
|
11
12
|
const ToastProvider = ToastPrimitives.Provider;
|
|
12
13
|
function ToastViewport({ className, ...props }) {
|
|
13
14
|
return (_jsx(ToastPrimitives.Viewport, { className: cn('fixed bottom-0 end-0 z-50 flex max-h-screen w-full flex-col gap-2 p-4 sm:max-w-sm', className), ...props }));
|
|
14
15
|
}
|
|
15
16
|
const toastVariants = cva(
|
|
16
|
-
// Inverted card (ink on light / light on dark
|
|
17
|
+
// Inverted card (ink on light / light on dark, both come from the same
|
|
17
18
|
// two tokens, so no theme-specific class is needed).
|
|
18
19
|
'group pointer-events-auto relative flex w-full items-center justify-between gap-4 overflow-hidden rounded-lg border bg-text-primary p-4 pe-8 text-background-elevated shadow-lg transition-opacity data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[swipe=cancel]:translate-x-0 data-[swipe=end]:opacity-0 data-[state=closed]:opacity-0', {
|
|
19
20
|
variants: {
|
|
@@ -37,6 +38,6 @@ function ToastDescription({ className, ...props }) {
|
|
|
37
38
|
return (_jsx(ToastPrimitives.Description, { className: cn('text-sm text-background-elevated opacity-80', className), ...props }));
|
|
38
39
|
}
|
|
39
40
|
function ToastClose({ className, ...props }) {
|
|
40
|
-
return (_jsx(ToastPrimitives.Close, { className: cn('absolute end-2 top-2 rounded-md p-1 text-background-elevated opacity-70 transition-colors duration-fast hover:opacity-100 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary-600', className), ...props, children: _jsxs("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "h-4 w-4", children: [_jsx("path", { d: "M18 6 6 18" }), _jsx("path", { d: "m6 6 12 12" })] }) }));
|
|
41
|
+
return (_jsx(IconTooltip, { children: _jsx(ToastPrimitives.Close, { className: cn('absolute end-2 top-2 rounded-md p-1 text-background-elevated opacity-70 transition-colors duration-fast hover:opacity-100 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary-600', className), ...props, children: _jsxs("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "h-4 w-4", children: [_jsx("path", { d: "M18 6 6 18" }), _jsx("path", { d: "m6 6 12 12" })] }) }) }));
|
|
41
42
|
}
|
|
42
43
|
export { ToastProvider, ToastViewport, Toast, ToastTitle, ToastDescription, ToastClose };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
3
|
+
export declare const TOOLTIP_DELAY_MS = 500;
|
|
4
|
+
export declare const TOOLTIP_SKIP_DELAY_MS = 300;
|
|
5
|
+
declare function TooltipProvider({ delayDuration, skipDelayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): React.JSX.Element;
|
|
6
|
+
declare function Tooltip(props: React.ComponentProps<typeof TooltipPrimitive.Root>): React.JSX.Element;
|
|
7
|
+
export declare function isFocusVisible(el: Element): boolean;
|
|
8
|
+
declare function TooltipTrigger({ onFocus, ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): React.JSX.Element;
|
|
9
|
+
type Side = 'top' | 'bottom';
|
|
10
|
+
declare function TooltipContent({ className, side, sideOffset, collisionPadding, ...props }: Omit<React.ComponentProps<typeof TooltipPrimitive.Content>, 'side' | 'align'> & {
|
|
11
|
+
side?: Side;
|
|
12
|
+
}): React.JSX.Element;
|
|
13
|
+
export declare function labelIsHidden(trigger: Element | null): boolean;
|
|
14
|
+
export interface IconTooltipProps extends Omit<React.HTMLAttributes<HTMLElement>, 'children'> {
|
|
15
|
+
/** The icon-only control. Its aria-label is the tooltip's text. */
|
|
16
|
+
children: React.ReactElement<{
|
|
17
|
+
'aria-label'?: string;
|
|
18
|
+
}>;
|
|
19
|
+
side?: Side;
|
|
20
|
+
/** Open only while every [data-icon-label] inside is not rendered. */
|
|
21
|
+
whenLabelHidden?: boolean;
|
|
22
|
+
/** A second line, for a reason the control also exposes via aria-describedby. */
|
|
23
|
+
detail?: string;
|
|
24
|
+
ref?: React.Ref<HTMLElement>;
|
|
25
|
+
}
|
|
26
|
+
declare function IconTooltip({ children, side, whenLabelHidden, detail, ref, ...forwarded }: IconTooltipProps): React.JSX.Element;
|
|
27
|
+
export { IconTooltip, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
4
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
5
|
+
import { cn } from '../lib/cn.js';
|
|
6
|
+
// S357b (spec D2, D3). Shown after a short hover delay, and at once on
|
|
7
|
+
// keyboard focus. Every tooltip this library draws repeats a name or a text
|
|
8
|
+
// the page already exposes, so it never carries information of its own.
|
|
9
|
+
export const TOOLTIP_DELAY_MS = 500;
|
|
10
|
+
export const TOOLTIP_SKIP_DELAY_MS = 300;
|
|
11
|
+
// Set by TooltipProvider, so a Tooltip with no provider above it (a unit
|
|
12
|
+
// test, a plugin's own harness) brings its own instead of throwing.
|
|
13
|
+
const ProviderPresent = React.createContext(false);
|
|
14
|
+
function TooltipProvider({ delayDuration = TOOLTIP_DELAY_MS, skipDelayDuration = TOOLTIP_SKIP_DELAY_MS, ...props }) {
|
|
15
|
+
return (_jsx(ProviderPresent.Provider, { value: true, children: _jsx(TooltipPrimitive.Provider, { delayDuration: delayDuration, skipDelayDuration: skipDelayDuration, ...props }) }));
|
|
16
|
+
}
|
|
17
|
+
function Tooltip(props) {
|
|
18
|
+
const hasProvider = React.useContext(ProviderPresent);
|
|
19
|
+
const root = _jsx(TooltipPrimitive.Root, { ...props });
|
|
20
|
+
return hasProvider ? root : _jsx(TooltipProvider, { children: root });
|
|
21
|
+
}
|
|
22
|
+
// :focus-visible is the browser's own "focus the user should see" signal:
|
|
23
|
+
// keyboard focus, not a mouse click. A selector the engine does not know
|
|
24
|
+
// counts as visible, so a tooltip is never lost to an old engine.
|
|
25
|
+
export function isFocusVisible(el) {
|
|
26
|
+
try {
|
|
27
|
+
return el.matches(':focus-visible');
|
|
28
|
+
}
|
|
29
|
+
catch {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
// aria-describedby is cleared because Radix would point the trigger at a
|
|
34
|
+
// hidden copy of the tooltip, and a screen reader would then read the name
|
|
35
|
+
// twice. A describedby the child sets itself still wins (Slot merges child
|
|
36
|
+
// props last). A focus that is not focus-visible is default-prevented, which
|
|
37
|
+
// Radix's composed handler reads as "do not open".
|
|
38
|
+
function TooltipTrigger({ onFocus, ...props }) {
|
|
39
|
+
return (_jsx(TooltipPrimitive.Trigger, { "aria-describedby": undefined, ...props, onFocus: (event) => {
|
|
40
|
+
onFocus?.(event);
|
|
41
|
+
if (!isFocusVisible(event.currentTarget))
|
|
42
|
+
event.preventDefault();
|
|
43
|
+
} }));
|
|
44
|
+
}
|
|
45
|
+
// Top or bottom, centred: centred reads the same in both directions.
|
|
46
|
+
// z-60 puts it above dialogs, sheets and menus (z-50).
|
|
47
|
+
function TooltipContent({ className, side = 'top', sideOffset = 4, collisionPadding = 8, ...props }) {
|
|
48
|
+
return (_jsx(TooltipPrimitive.Portal, { children: _jsx(TooltipPrimitive.Content, { "data-slot": "tooltip-content", side: side, align: "center", sideOffset: sideOffset, collisionPadding: collisionPadding, className: cn('z-60 max-w-72 rounded-md border border-border-strong bg-background-elevated px-2 py-1 text-xs text-text-primary shadow-lg [overflow-wrap:anywhere]', className), ...props }) }));
|
|
49
|
+
}
|
|
50
|
+
export function labelIsHidden(trigger) {
|
|
51
|
+
if (!trigger)
|
|
52
|
+
return true;
|
|
53
|
+
return Array.from(trigger.querySelectorAll('[data-icon-label]')).every((el) => el.getClientRects().length === 0);
|
|
54
|
+
}
|
|
55
|
+
function assignRef(ref, value) {
|
|
56
|
+
if (typeof ref === 'function')
|
|
57
|
+
ref(value);
|
|
58
|
+
else if (ref)
|
|
59
|
+
ref.current = value;
|
|
60
|
+
}
|
|
61
|
+
// Inside a Radix trigger (<DropdownMenuTrigger asChild><IconTooltip>...),
|
|
62
|
+
// the outer Slot hands this component its props and ref; they are forwarded
|
|
63
|
+
// to the control so the menu's handlers and data-state reach it (P1).
|
|
64
|
+
function IconTooltip({ children, side = 'top', whenLabelHidden = false, detail, ref, ...forwarded }) {
|
|
65
|
+
const label = children.props['aria-label'];
|
|
66
|
+
const triggerRef = React.useRef(null);
|
|
67
|
+
const [open, setOpen] = React.useState(false);
|
|
68
|
+
const composedRef = React.useCallback((node) => {
|
|
69
|
+
triggerRef.current = node;
|
|
70
|
+
assignRef(ref, node);
|
|
71
|
+
}, [ref]);
|
|
72
|
+
React.useEffect(() => {
|
|
73
|
+
if (!label)
|
|
74
|
+
console.error('IconTooltip: the control inside needs an aria-label; it is the tooltip text.');
|
|
75
|
+
}, [label]);
|
|
76
|
+
if (!label) {
|
|
77
|
+
return (_jsx(Slot, { ...forwarded, ref: composedRef, children: children }));
|
|
78
|
+
}
|
|
79
|
+
return (_jsxs(Tooltip, { open: open, onOpenChange: (next) => setOpen(next && (!whenLabelHidden || labelIsHidden(triggerRef.current))), children: [_jsx(TooltipTrigger, { asChild: true, ...forwarded, ref: composedRef, children: children }), _jsxs(TooltipContent, { side: side, children: [label, detail ? _jsx("span", { className: "block text-text-secondary", children: detail }) : null] })] }));
|
|
80
|
+
}
|
|
81
|
+
export { IconTooltip, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare function isTextCut(el: HTMLElement): boolean;
|
|
3
|
+
type TruncatedTag = 'span' | 'p' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'dt' | 'dd' | 'td' | 'th' | 'li' | 'code';
|
|
4
|
+
export interface TruncatedTextProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
|
|
5
|
+
as?: TruncatedTag;
|
|
6
|
+
/** The full text, when the children are not a plain string. */
|
|
7
|
+
text?: string;
|
|
8
|
+
side?: 'top' | 'bottom';
|
|
9
|
+
/**
|
|
10
|
+
* Open the tooltip whatever the text's width. For a row whose `text` says
|
|
11
|
+
* more than is shown (what a badge means), so a short name still tells it.
|
|
12
|
+
*/
|
|
13
|
+
alwaysShowTooltip?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare function TruncatedText({ as, text, side, alwaysShowTooltip, children, ...rest }: TruncatedTextProps): React.JSX.Element;
|
|
16
|
+
export { TruncatedText };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Tooltip, TooltipContent, TooltipTrigger, isFocusVisible } from './tooltip.js';
|
|
4
|
+
// S357b (spec D5): the full text, only when the text is really cut. Width for
|
|
5
|
+
// `truncate`, height for `line-clamp-N`. Read when the tooltip would open,
|
|
6
|
+
// never assumed from the string's length.
|
|
7
|
+
export function isTextCut(el) {
|
|
8
|
+
return el.scrollWidth > el.clientWidth || el.scrollHeight > el.clientHeight;
|
|
9
|
+
}
|
|
10
|
+
// The controls whose keyboard focus shows the tooltip of a text inside them.
|
|
11
|
+
// tabindex -1 is left out on purpose: <main tabIndex={-1}> (the skip link's
|
|
12
|
+
// target) would otherwise count as the host of every text on the page.
|
|
13
|
+
const FOCUSABLE_HOST = [
|
|
14
|
+
'a[href]',
|
|
15
|
+
'button',
|
|
16
|
+
'summary',
|
|
17
|
+
'[tabindex]:not([tabindex="-1"])',
|
|
18
|
+
'[role="button"]',
|
|
19
|
+
'[role="link"]',
|
|
20
|
+
'[role="treeitem"]',
|
|
21
|
+
'[role="tab"]',
|
|
22
|
+
'[role="menuitem"]',
|
|
23
|
+
'[role="option"]',
|
|
24
|
+
].join(', ');
|
|
25
|
+
// One observer for every standalone TruncatedText on the page.
|
|
26
|
+
const watchers = new Map();
|
|
27
|
+
let observer = null;
|
|
28
|
+
function watchSize(el, onResize) {
|
|
29
|
+
if (typeof ResizeObserver === 'undefined')
|
|
30
|
+
return () => { };
|
|
31
|
+
observer ??= new ResizeObserver((entries) => {
|
|
32
|
+
for (const entry of entries)
|
|
33
|
+
watchers.get(entry.target)?.();
|
|
34
|
+
});
|
|
35
|
+
watchers.set(el, onResize);
|
|
36
|
+
observer.observe(el);
|
|
37
|
+
return () => {
|
|
38
|
+
watchers.delete(el);
|
|
39
|
+
observer?.unobserve(el);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function TruncatedText({ as = 'span', text, side = 'top', alwaysShowTooltip = false, children, ...rest }) {
|
|
43
|
+
const plain = typeof children === 'string' || typeof children === 'number';
|
|
44
|
+
const full = text ?? (plain ? String(children) : '');
|
|
45
|
+
const ref = React.useRef(null);
|
|
46
|
+
const worthShowing = (el) => alwaysShowTooltip || isTextCut(el);
|
|
47
|
+
const [open, setOpen] = React.useState(false);
|
|
48
|
+
const [standalone, setStandalone] = React.useState(false);
|
|
49
|
+
const [cut, setCut] = React.useState(false);
|
|
50
|
+
React.useEffect(() => {
|
|
51
|
+
if (text === undefined && !plain) {
|
|
52
|
+
console.error('TruncatedText: pass `text` when the children are not a plain string.');
|
|
53
|
+
}
|
|
54
|
+
}, [text, plain]);
|
|
55
|
+
React.useEffect(() => {
|
|
56
|
+
const el = ref.current;
|
|
57
|
+
if (!el)
|
|
58
|
+
return;
|
|
59
|
+
const host = el.parentElement?.closest(FOCUSABLE_HOST) ?? null;
|
|
60
|
+
if (host === null) {
|
|
61
|
+
// No control holds this text, so it takes focus itself, while cut.
|
|
62
|
+
setStandalone(true);
|
|
63
|
+
const measure = () => setCut(isTextCut(el));
|
|
64
|
+
measure();
|
|
65
|
+
// Text can become cut only once the webfont has swapped in.
|
|
66
|
+
let alive = true;
|
|
67
|
+
if (typeof document !== 'undefined' && document.fonts) {
|
|
68
|
+
void document.fonts.ready.then(() => {
|
|
69
|
+
if (alive)
|
|
70
|
+
measure();
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
const unwatch = watchSize(el, measure);
|
|
74
|
+
return () => {
|
|
75
|
+
alive = false;
|
|
76
|
+
unwatch();
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
setStandalone(false);
|
|
80
|
+
const onFocus = () => {
|
|
81
|
+
if (full !== '' && isFocusVisible(host) && worthShowing(el))
|
|
82
|
+
setOpen(true);
|
|
83
|
+
};
|
|
84
|
+
const onBlur = () => setOpen(false);
|
|
85
|
+
host.addEventListener('focus', onFocus);
|
|
86
|
+
host.addEventListener('blur', onBlur);
|
|
87
|
+
return () => {
|
|
88
|
+
host.removeEventListener('focus', onFocus);
|
|
89
|
+
host.removeEventListener('blur', onBlur);
|
|
90
|
+
};
|
|
91
|
+
}, [full, as, alwaysShowTooltip]);
|
|
92
|
+
const Tag = as;
|
|
93
|
+
return (_jsxs(Tooltip, { open: open, onOpenChange: (next) => setOpen(next && full !== '' && ref.current !== null && worthShowing(ref.current)), children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(Tag, { ref: ref, tabIndex: standalone && cut ? 0 : undefined, ...rest, children: children }) }), _jsx(TooltipContent, { side: side, children: full })] }));
|
|
94
|
+
}
|
|
95
|
+
export { TruncatedText };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
// Module-level toast store (shadcn/ui's use-toast pattern, trimmed):
|
|
3
|
-
// toast() can be called from anywhere
|
|
4
|
-
//
|
|
3
|
+
// toast() can be called from anywhere (event handlers, async completions)
|
|
4
|
+
// and every mounted useToast() subscriber re-renders. The Toaster is
|
|
5
5
|
// the one subscriber in practice.
|
|
6
6
|
const TOAST_LIMIT = 3;
|
|
7
7
|
// How long a dismissed toast stays in state after close, so Radix can
|
|
@@ -6,7 +6,7 @@ export { Panel, type PanelProps } from './components/panel.js';
|
|
|
6
6
|
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, } from './components/alert-dialog.js';
|
|
7
7
|
export { Badge, badgeVariants, type BadgeProps } from './components/badge.js';
|
|
8
8
|
export { Dialog, DialogTrigger, DialogPortal, DialogOverlay, DialogClose, DialogCloseButton, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, } from './components/dialog.js';
|
|
9
|
-
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuPortal, DropdownMenuGroup, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, } from './components/dropdown-menu.js';
|
|
9
|
+
export { DropdownMenu, DropdownMenuContainer, DropdownMenuTrigger, DropdownMenuPortal, DropdownMenuGroup, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, } from './components/dropdown-menu.js';
|
|
10
10
|
export { EmptyState, type EmptyStateProps } from './components/empty-state.js';
|
|
11
11
|
export { PopoverPanel } from './components/popover-panel.js';
|
|
12
12
|
export { Sheet, SheetTrigger, SheetPortal, SheetClose, SheetCloseButton, SheetOverlay, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, } from './components/sheet.js';
|
|
@@ -17,3 +17,5 @@ export { toast, dismiss, useToast, type ToasterToast } from './components/use-to
|
|
|
17
17
|
export { PropertyField, usePropertyFieldControl, type PropertyFieldControlProps, type PropertyFieldProps, } from './components/property-field.js';
|
|
18
18
|
export { TabStrip, tabStripPanelId, tabStripTabId, type TabStripItem, type TabStripProps, } from './components/tab-strip.js';
|
|
19
19
|
export { cn } from './lib/cn.js';
|
|
20
|
+
export { IconTooltip, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type IconTooltipProps, } from './components/tooltip.js';
|
|
21
|
+
export { TruncatedText, isTextCut, type TruncatedTextProps } from './components/truncated-text.js';
|
|
@@ -6,7 +6,7 @@ export { Panel } from './components/panel.js';
|
|
|
6
6
|
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, } from './components/alert-dialog.js';
|
|
7
7
|
export { Badge, badgeVariants } from './components/badge.js';
|
|
8
8
|
export { Dialog, DialogTrigger, DialogPortal, DialogOverlay, DialogClose, DialogCloseButton, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, } from './components/dialog.js';
|
|
9
|
-
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuPortal, DropdownMenuGroup, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, } from './components/dropdown-menu.js';
|
|
9
|
+
export { DropdownMenu, DropdownMenuContainer, DropdownMenuTrigger, DropdownMenuPortal, DropdownMenuGroup, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, } from './components/dropdown-menu.js';
|
|
10
10
|
export { EmptyState } from './components/empty-state.js';
|
|
11
11
|
export { PopoverPanel } from './components/popover-panel.js';
|
|
12
12
|
export { Sheet, SheetTrigger, SheetPortal, SheetClose, SheetCloseButton, SheetOverlay, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, } from './components/sheet.js';
|
|
@@ -17,3 +17,5 @@ export { toast, dismiss, useToast } from './components/use-toast.js';
|
|
|
17
17
|
export { PropertyField, usePropertyFieldControl, } from './components/property-field.js';
|
|
18
18
|
export { TabStrip, tabStripPanelId, tabStripTabId, } from './components/tab-strip.js';
|
|
19
19
|
export { cn } from './lib/cn.js';
|
|
20
|
+
export { IconTooltip, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from './components/tooltip.js';
|
|
21
|
+
export { TruncatedText, isTextCut } from './components/truncated-text.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
// S356: a modal surface (Dialog, AlertDialog, Sheet) hosts the menus opened
|
|
3
|
+
// inside it in its own content element, so its focus trap does not pull focus
|
|
4
|
+
// out of a menu portalled to <body>, and it resets the container context a
|
|
5
|
+
// parent surface may have set (the context crosses portals). Returns the
|
|
6
|
+
// element and a ref to put on the content, composed with a caller's ref.
|
|
7
|
+
export function useMenuHost(outerRef) {
|
|
8
|
+
const [host, setHost] = React.useState(null);
|
|
9
|
+
const ref = React.useCallback((node) => {
|
|
10
|
+
setHost(node);
|
|
11
|
+
if (typeof outerRef === 'function')
|
|
12
|
+
outerRef(node);
|
|
13
|
+
else if (outerRef)
|
|
14
|
+
outerRef.current = node;
|
|
15
|
+
}, [outerRef]);
|
|
16
|
+
return { host, ref };
|
|
17
|
+
}
|
|
@@ -23,13 +23,14 @@
|
|
|
23
23
|
},
|
|
24
24
|
"homepage": "https://kardalum.com",
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@radix-ui/react-alert-dialog": "1.1.
|
|
26
|
+
"@radix-ui/react-alert-dialog": "1.1.23",
|
|
27
27
|
"@radix-ui/react-checkbox": "1.3.6",
|
|
28
|
-
"@radix-ui/react-dialog": "1.1.
|
|
28
|
+
"@radix-ui/react-dialog": "1.1.23",
|
|
29
29
|
"@radix-ui/react-dropdown-menu": "2.1.24",
|
|
30
30
|
"@radix-ui/react-slot": "1.3.0",
|
|
31
31
|
"@radix-ui/react-switch": "1.3.7",
|
|
32
|
-
"@radix-ui/react-toast": "1.2.
|
|
32
|
+
"@radix-ui/react-toast": "1.2.23",
|
|
33
|
+
"@radix-ui/react-tooltip": "1.2.16",
|
|
33
34
|
"class-variance-authority": "0.7.1",
|
|
34
35
|
"clsx": "2.1.1",
|
|
35
36
|
"react": "^19.0.0",
|
|
@@ -37,13 +38,14 @@
|
|
|
37
38
|
"tailwind-merge": "3.6.0"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
|
-
"@radix-ui/react-alert-dialog": "1.1.
|
|
41
|
+
"@radix-ui/react-alert-dialog": "1.1.23",
|
|
41
42
|
"@radix-ui/react-checkbox": "1.3.6",
|
|
42
|
-
"@radix-ui/react-dialog": "1.1.
|
|
43
|
+
"@radix-ui/react-dialog": "1.1.23",
|
|
43
44
|
"@radix-ui/react-dropdown-menu": "2.1.24",
|
|
44
45
|
"@radix-ui/react-slot": "1.3.0",
|
|
45
46
|
"@radix-ui/react-switch": "1.3.7",
|
|
46
|
-
"@radix-ui/react-toast": "1.2.
|
|
47
|
+
"@radix-ui/react-toast": "1.2.23",
|
|
48
|
+
"@radix-ui/react-tooltip": "1.2.16",
|
|
47
49
|
"@testing-library/react": "16.3.2",
|
|
48
50
|
"@types/react": "19.2.17",
|
|
49
51
|
"@types/react-dom": "19.2.3",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kardalum/plugin-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "The SDK for building Kardalum plugins: manifest declaration, data type and admin section registries, storage-value providers, and shared UI components.",
|
|
6
6
|
"engines": {
|
|
@@ -50,6 +50,11 @@
|
|
|
50
50
|
"import": "./dist/richtext-html-entry.js",
|
|
51
51
|
"default": "./dist/richtext-html-entry.js"
|
|
52
52
|
},
|
|
53
|
+
"./text": {
|
|
54
|
+
"types": "./dist/text-entry.d.ts",
|
|
55
|
+
"import": "./dist/text-entry.js",
|
|
56
|
+
"default": "./dist/text-entry.js"
|
|
57
|
+
},
|
|
53
58
|
"./ui": {
|
|
54
59
|
"types": "./dist/ui-entry.d.ts",
|
|
55
60
|
"import": "./dist/ui-entry.js",
|
|
@@ -65,6 +70,11 @@
|
|
|
65
70
|
"import": "./dist/entitlement-entry.js",
|
|
66
71
|
"default": "./dist/entitlement-entry.js"
|
|
67
72
|
},
|
|
73
|
+
"./cli": {
|
|
74
|
+
"types": "./dist/cli.d.ts",
|
|
75
|
+
"import": "./dist/cli.js",
|
|
76
|
+
"default": "./dist/cli.js"
|
|
77
|
+
},
|
|
68
78
|
"./vendor": {
|
|
69
79
|
"types": "./dist/vendor-entry.d.ts",
|
|
70
80
|
"import": "./dist/vendor-entry.js",
|
|
@@ -102,13 +112,14 @@
|
|
|
102
112
|
"@codemirror/language": "6.12.4",
|
|
103
113
|
"@codemirror/state": "6.7.3",
|
|
104
114
|
"@codemirror/view": "6.43.11",
|
|
105
|
-
"@radix-ui/react-alert-dialog": "1.1.
|
|
115
|
+
"@radix-ui/react-alert-dialog": "1.1.23",
|
|
106
116
|
"@radix-ui/react-checkbox": "1.3.6",
|
|
107
|
-
"@radix-ui/react-dialog": "1.1.
|
|
117
|
+
"@radix-ui/react-dialog": "1.1.23",
|
|
108
118
|
"@radix-ui/react-dropdown-menu": "2.1.24",
|
|
109
119
|
"@radix-ui/react-slot": "1.3.0",
|
|
110
120
|
"@radix-ui/react-switch": "1.3.7",
|
|
111
|
-
"@radix-ui/react-toast": "1.2.
|
|
121
|
+
"@radix-ui/react-toast": "1.2.23",
|
|
122
|
+
"@radix-ui/react-tooltip": "1.2.16",
|
|
112
123
|
"@tiptap/core": "3.31.0",
|
|
113
124
|
"@tiptap/extension-bubble-menu": "3.31.0",
|
|
114
125
|
"@tiptap/extension-floating-menu": "3.31.0",
|
|
@@ -127,10 +138,10 @@
|
|
|
127
138
|
"tailwind-merge": "3.6.0",
|
|
128
139
|
"yauzl": "3.4.0",
|
|
129
140
|
"zod": "4.6.6",
|
|
130
|
-
"@kardalum/
|
|
131
|
-
"@kardalum/plugin-package": "0.14.0",
|
|
141
|
+
"@kardalum/api-schemas": "0.14.0",
|
|
132
142
|
"@kardalum/design-tokens": "0.14.0",
|
|
133
|
-
"@kardalum/
|
|
143
|
+
"@kardalum/plugin-package": "0.14.0",
|
|
144
|
+
"@kardalum/ui": "0.14.0"
|
|
134
145
|
},
|
|
135
146
|
"peerDependencies": {
|
|
136
147
|
"react": "^19.0.0",
|