@kardalum/plugin-sdk 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +105 -0
- package/README.md +4 -3
- package/dist/admin-section-registry.d.ts +14 -5
- package/dist/admin-section-registry.js +14 -4
- package/dist/assets/asset-picker.d.ts +11 -0
- package/dist/assets/asset-picker.js +109 -0
- package/dist/assets/asset-tree.d.ts +30 -0
- package/dist/assets/asset-tree.js +150 -0
- package/dist/built-in-editor-ids.d.ts +1 -0
- package/dist/built-in-editor-ids.js +20 -0
- package/dist/built-in-settings-schemas.d.ts +2 -0
- package/dist/built-in-settings-schemas.js +27 -0
- package/dist/built-in-value-schemas.js +3 -0
- package/dist/built-ins.js +10 -1
- package/dist/capabilities.js +5 -3
- package/dist/datatype-validation.js +18 -4
- package/dist/datatypes-entry.d.ts +1 -0
- package/dist/datatypes-entry.js +1 -0
- package/dist/entitlement-entry.d.ts +3 -2
- package/dist/entitlement-entry.js +13 -1
- package/dist/entitlement-gate.d.ts +18 -0
- package/dist/entitlement-gate.js +95 -21
- package/dist/entitlement-plan.d.ts +21 -0
- package/dist/entitlement-plan.js +26 -0
- package/dist/entitlement-types.d.ts +21 -4
- package/dist/entitlement.d.ts +29 -1
- package/dist/entitlement.js +39 -0
- package/dist/grid-arrow-step.d.ts +7 -0
- package/dist/grid-arrow-step.js +20 -0
- package/dist/host-entry.d.ts +1 -1
- package/dist/host-entry.js +1 -1
- package/dist/index.d.ts +8 -3
- package/dist/index.js +13 -18
- package/dist/license-verdict-keys.d.ts +4 -3
- package/dist/license-verdict-keys.js +4 -7
- package/dist/manifest-entry.d.ts +6 -2
- package/dist/manifest-entry.js +5 -1
- package/dist/manifest-schema.d.ts +56 -63
- package/dist/manifest-schema.js +103 -249
- package/dist/manifest.d.ts +61 -73
- package/dist/manifest.js +13 -36
- package/dist/media/media-picker.js +32 -32
- package/dist/notify.d.ts +17 -0
- package/dist/notify.js +17 -0
- package/dist/plugin-screen-context.d.ts +11 -1
- package/dist/richtext/block-panel.js +19 -20
- package/dist/richtext/extensions.js +10 -1
- package/dist/richtext/insert-menu.js +1 -1
- package/dist/richtext/kardalum-block.js +17 -17
- package/dist/richtext/style-listbox.js +4 -4
- package/dist/richtext-html-entry.d.ts +35 -0
- package/dist/richtext-html-entry.js +73 -0
- package/dist/structured-storage-types.d.ts +11 -0
- package/dist/tailwind.js +10 -3
- package/dist/tokens/tailwind-theme.css +176 -0
- package/dist/tokens/tokens.css +2 -0
- package/dist/tokens/tokens.json +4 -2
- package/dist/type-equality.d.ts +2 -0
- package/dist/type-equality.js +1 -0
- package/dist/vendor-check.d.ts +39 -0
- package/dist/vendor-check.js +79 -0
- package/dist/vendor-entry.d.ts +3 -0
- package/dist/vendor-entry.js +9 -0
- package/dist/vendor-service.d.ts +20 -0
- package/dist/vendor-service.js +20 -0
- package/dist/views/asset-view.d.ts +6 -0
- package/dist/views/asset-view.js +55 -0
- package/dist/views/content-list-settings-view.js +1 -1
- package/dist/views/content-list-view.js +1 -1
- package/dist/views/html-code-editor.js +0 -1
- package/dist/views/html-view.js +1 -1
- package/dist/views/image-view.js +1 -1
- package/dist/views/rich-text-view.js +30 -30
- package/node_modules/@kardalum/api-schemas/README.md +1 -1
- package/node_modules/@kardalum/api-schemas/dist/asset-api.schema.d.ts +90 -0
- package/node_modules/@kardalum/api-schemas/dist/asset-api.schema.js +43 -10
- package/node_modules/@kardalum/api-schemas/dist/asset-field.schema.d.ts +21 -0
- package/node_modules/@kardalum/api-schemas/dist/asset-field.schema.js +42 -0
- package/node_modules/@kardalum/api-schemas/dist/asset.schema.d.ts +23 -1
- package/node_modules/@kardalum/api-schemas/dist/asset.schema.js +60 -18
- package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.d.ts +204 -0
- package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.js +134 -0
- package/node_modules/@kardalum/api-schemas/dist/checkout-shown.schema.d.ts +36 -0
- package/node_modules/@kardalum/api-schemas/dist/checkout-shown.schema.js +46 -0
- package/node_modules/@kardalum/api-schemas/dist/content-api.schema.d.ts +12 -0
- package/node_modules/@kardalum/api-schemas/dist/content-api.schema.js +22 -6
- package/node_modules/@kardalum/api-schemas/dist/content-list.schema.d.ts +2 -2
- package/node_modules/@kardalum/api-schemas/dist/content-trash-api.schema.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/content-trash-api.schema.js +3 -0
- package/node_modules/@kardalum/api-schemas/dist/content-trash.schema.js +2 -1
- package/node_modules/@kardalum/api-schemas/dist/core-actions.d.ts +52 -10
- package/node_modules/@kardalum/api-schemas/dist/core-actions.js +33 -14
- package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.d.ts +50 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.js +25 -5
- package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.d.ts +1 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.js +3 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-cursor.d.ts +11 -0
- package/node_modules/@kardalum/api-schemas/dist/data-type-cursor.js +28 -0
- package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.js +42 -2
- package/node_modules/@kardalum/api-schemas/dist/home.schema.d.ts +130 -0
- package/node_modules/@kardalum/api-schemas/dist/home.schema.js +87 -0
- package/node_modules/@kardalum/api-schemas/dist/index.d.ts +73 -31
- package/node_modules/@kardalum/api-schemas/dist/index.js +47 -17
- package/node_modules/@kardalum/api-schemas/dist/install-warnings.schema.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/install-warnings.schema.js +8 -0
- package/node_modules/@kardalum/api-schemas/dist/issue-list.d.ts +6 -0
- package/node_modules/@kardalum/api-schemas/dist/issue-list.js +6 -0
- package/node_modules/@kardalum/api-schemas/dist/kardalum-latest.schema.d.ts +7 -0
- package/node_modules/@kardalum/api-schemas/dist/kardalum-latest.schema.js +9 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.d.ts +216 -63
- package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +117 -5
- package/node_modules/@kardalum/api-schemas/dist/marketplace-package-api.schema.d.ts +17 -0
- package/node_modules/@kardalum/api-schemas/dist/marketplace-package-api.schema.js +16 -0
- package/node_modules/@kardalum/api-schemas/dist/media-api.schema.d.ts +26 -0
- package/node_modules/@kardalum/api-schemas/dist/media-api.schema.js +6 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference-use.d.ts +10 -0
- package/node_modules/@kardalum/api-schemas/dist/media-reference-use.js +4 -4
- package/node_modules/@kardalum/api-schemas/dist/news.schema.d.ts +93 -0
- package/node_modules/@kardalum/api-schemas/dist/news.schema.js +86 -0
- package/node_modules/@kardalum/api-schemas/dist/node-access.schema.js +13 -0
- package/node_modules/@kardalum/api-schemas/dist/notification.schema.d.ts +410 -0
- package/node_modules/@kardalum/api-schemas/dist/notification.schema.js +193 -0
- package/node_modules/@kardalum/api-schemas/dist/plan-editor.schema.d.ts +86 -0
- package/node_modules/@kardalum/api-schemas/dist/plan-editor.schema.js +92 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.d.ts +6 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.js +8 -6
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.d.ts +8 -18
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.js +7 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.d.ts +3 -19
- package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +13 -15
- package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.d.ts +17 -7
- package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.js +18 -8
- package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.d.ts +1 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.d.ts +97 -85
- package/node_modules/@kardalum/api-schemas/dist/plugin-install.js +35 -68
- package/node_modules/@kardalum/api-schemas/dist/plugin-labels.d.ts +60 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-labels.js +116 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-locales.d.ts +9 -2
- package/node_modules/@kardalum/api-schemas/dist/plugin-locales.js +22 -7
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.d.ts +240 -6
- package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +164 -32
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +4 -3
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +1 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.d.ts +14 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.js +37 -1
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-fields.d.ts +64 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-fields.js +134 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-read-only.schema.d.ts +19 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-read-only.schema.js +33 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-registry-api.schema.d.ts +2 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-registry-api.schema.js +4 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-template-payload.d.ts +83 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-template-payload.js +152 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-vocabulary.d.ts +13 -0
- package/node_modules/@kardalum/api-schemas/dist/plugin-vocabulary.js +15 -0
- package/node_modules/@kardalum/api-schemas/dist/public-api.schema.d.ts +5 -0
- package/node_modules/@kardalum/api-schemas/dist/public-api.schema.js +35 -23
- package/node_modules/@kardalum/api-schemas/dist/revenue-view.schema.d.ts +83 -0
- package/node_modules/@kardalum/api-schemas/dist/revenue-view.schema.js +73 -0
- package/node_modules/@kardalum/api-schemas/dist/role.schema.d.ts +11 -0
- package/node_modules/@kardalum/api-schemas/dist/role.schema.js +7 -0
- package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.d.ts +11 -2
- package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.js +21 -3
- package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.d.ts +126 -0
- package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.js +70 -0
- package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +6 -6
- package/node_modules/@kardalum/api-schemas/dist/sites.schema.d.ts +58 -25
- package/node_modules/@kardalum/api-schemas/dist/sites.schema.js +194 -48
- package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.d.ts +18 -6
- package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.js +14 -0
- package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.d.ts +2 -2
- package/node_modules/@kardalum/api-schemas/dist/strict-url.d.ts +12 -0
- package/node_modules/@kardalum/api-schemas/dist/strict-url.js +31 -0
- package/node_modules/@kardalum/api-schemas/dist/template-api.schema.d.ts +115 -1
- package/node_modules/@kardalum/api-schemas/dist/template-api.schema.js +65 -10
- package/node_modules/@kardalum/api-schemas/dist/template.schema.d.ts +37 -2
- package/node_modules/@kardalum/api-schemas/dist/template.schema.js +34 -8
- package/node_modules/@kardalum/api-schemas/dist/trash-cursor.schema.d.ts +4 -0
- package/node_modules/@kardalum/api-schemas/dist/trash-cursor.schema.js +29 -0
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.d.ts +16 -0
- package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +8 -0
- package/node_modules/@kardalum/api-schemas/dist/uuid.schema.d.ts +2 -0
- package/node_modules/@kardalum/api-schemas/dist/uuid.schema.js +4 -0
- package/node_modules/@kardalum/api-schemas/dist/vendor-service.schema.d.ts +88 -0
- package/node_modules/@kardalum/api-schemas/dist/vendor-service.schema.js +100 -0
- package/node_modules/@kardalum/api-schemas/dist/whoami-api.schema.d.ts +32 -0
- package/node_modules/@kardalum/api-schemas/dist/whoami-api.schema.js +27 -0
- package/node_modules/@kardalum/api-schemas/package.json +2 -2
- package/node_modules/@kardalum/design-tokens/README.md +1 -1
- package/node_modules/@kardalum/design-tokens/dist/build-theme-css.d.ts +16 -0
- package/node_modules/@kardalum/design-tokens/dist/build-theme-css.js +76 -0
- package/node_modules/@kardalum/design-tokens/dist/generate.js +4 -1
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.css +176 -0
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.d.ts +2 -1
- package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.js +2 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.css +2 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.js +4 -0
- package/node_modules/@kardalum/design-tokens/dist/tokens.json +4 -2
- package/node_modules/@kardalum/design-tokens/dist/types.d.ts +2 -0
- package/node_modules/@kardalum/design-tokens/package.json +6 -3
- package/node_modules/@kardalum/plugin-package/README.md +5 -2
- package/node_modules/@kardalum/plugin-package/dist/build-reference.d.ts +6 -21
- package/node_modules/@kardalum/plugin-package/dist/build-reference.js +13 -8
- package/node_modules/@kardalum/plugin-package/dist/capabilities.d.ts +4 -4
- package/node_modules/@kardalum/plugin-package/dist/capabilities.js +59 -16
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.d.ts +4 -0
- package/node_modules/@kardalum/plugin-package/dist/client-bundle.js +25 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/archive-names.d.ts +25 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/archive-names.js +203 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/bundle.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/bundle.js +73 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/contributions.d.ts +8 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/contributions.js +77 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/icon-names.generated.d.ts +1 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/icon-names.generated.js +2052 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/icons.d.ts +2 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/icons.js +51 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/index.d.ts +8 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/index.js +7 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/label-languages.d.ts +17 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/label-languages.js +119 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/limits.d.ts +14 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/limits.js +21 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/locales.d.ts +5 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/locales.js +148 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/package-files.d.ts +5 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/package-files.js +76 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/registry.d.ts +22 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/registry.js +137 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/sample-content.d.ts +3 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/sample-content.js +90 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/support.d.ts +24 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/support.js +55 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/templates.d.ts +7 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/templates.js +215 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/types.d.ts +53 -0
- package/node_modules/@kardalum/plugin-package/dist/delivery/types.js +1 -0
- package/node_modules/@kardalum/plugin-package/dist/docs-contract.d.ts +3 -2
- package/node_modules/@kardalum/plugin-package/dist/docs-contract.js +4 -2
- package/node_modules/@kardalum/plugin-package/dist/extract.d.ts +92 -3
- package/node_modules/@kardalum/plugin-package/dist/extract.js +251 -41
- package/node_modules/@kardalum/plugin-package/dist/index.d.ts +13 -4
- package/node_modules/@kardalum/plugin-package/dist/index.js +10 -3
- package/node_modules/@kardalum/plugin-package/dist/license-verdict.d.ts +56 -19
- package/node_modules/@kardalum/plugin-package/dist/license-verdict.js +119 -25
- package/node_modules/@kardalum/plugin-package/dist/manifest-entry.d.ts +5 -0
- package/node_modules/@kardalum/plugin-package/dist/manifest-entry.js +20 -0
- package/node_modules/@kardalum/plugin-package/dist/reference-entry.d.ts +1 -0
- package/node_modules/@kardalum/plugin-package/dist/reference-entry.js +1 -0
- package/node_modules/@kardalum/plugin-package/dist/sample-content.d.ts +21 -3
- package/node_modules/@kardalum/plugin-package/dist/sample-content.js +37 -9
- package/node_modules/@kardalum/plugin-package/dist/shipped-files.d.ts +39 -0
- package/node_modules/@kardalum/plugin-package/dist/shipped-files.js +133 -0
- package/node_modules/@kardalum/plugin-package/dist/shipped-locales.d.ts +7 -0
- package/node_modules/@kardalum/plugin-package/dist/shipped-locales.js +27 -0
- package/node_modules/@kardalum/plugin-package/dist/vendor-token.d.ts +24 -0
- package/node_modules/@kardalum/plugin-package/dist/vendor-token.js +118 -0
- package/node_modules/@kardalum/plugin-package/package.json +4 -2
- package/node_modules/@kardalum/ui/README.md +1 -1
- package/node_modules/@kardalum/ui/dist/components/button.js +1 -1
- package/node_modules/@kardalum/ui/dist/components/checkbox.js +1 -1
- package/node_modules/@kardalum/ui/dist/components/dialog.js +5 -2
- package/node_modules/@kardalum/ui/dist/components/dropdown-menu.js +3 -3
- package/node_modules/@kardalum/ui/dist/components/input.js +1 -1
- package/node_modules/@kardalum/ui/dist/components/popover-panel.d.ts +4 -0
- package/node_modules/@kardalum/ui/dist/components/popover-panel.js +13 -0
- package/node_modules/@kardalum/ui/dist/components/sheet.js +5 -4
- package/node_modules/@kardalum/ui/dist/components/switch.js +1 -1
- package/node_modules/@kardalum/ui/dist/components/tab-strip.js +1 -1
- package/node_modules/@kardalum/ui/dist/components/toast.js +1 -1
- package/node_modules/@kardalum/ui/dist/index.d.ts +1 -0
- package/node_modules/@kardalum/ui/dist/index.js +1 -0
- package/node_modules/@kardalum/ui/package.json +1 -1
- package/package.json +19 -6
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { lstatSync, readdirSync } from "node:fs";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
// S311 fix wave (W1): what a plugin's own folders put into its package, defined
|
|
4
|
+
// once. The CLI's build copies templates/, public/ and media/ through
|
|
5
|
+
// walkShipped, and every check that asks whether a declared file is there (a
|
|
6
|
+
// template, an asset, a sample's media file) asks whyNotShipped, at both gates.
|
|
7
|
+
// Before this the copy left out links and the folders below while the checks
|
|
8
|
+
// asked existsSync, which follows a link and sees those folders: a declared
|
|
9
|
+
// `dist/theme.css` passed `validate`, `build` and `pack`, and the marketplace
|
|
10
|
+
// then refused the package because the file was not in it.
|
|
11
|
+
/** Names a package never carries, at any depth, a folder with everything under
|
|
12
|
+
* it: vendored and build folders, and env files (they can hold live secrets),
|
|
13
|
+
* `.env.example` excepted (placeholder values a reader copies). A bare file
|
|
14
|
+
* of one of these names is left out too. */
|
|
15
|
+
export const EXCLUDED_NAMES = ["node_modules", "dist", ".git", ".next", ".astro"];
|
|
16
|
+
const EXCLUDED = new Set(EXCLUDED_NAMES);
|
|
17
|
+
const ENV_FILE = /^\.env(\..*)?$/;
|
|
18
|
+
/** How the rule reads in a message. */
|
|
19
|
+
const EXCLUDED_RULE = "node_modules, dist, .git, .next, .astro and env files are left out of the build";
|
|
20
|
+
const LINK_RULE = "the build copies files and folders, never links";
|
|
21
|
+
export function isExcludedSegment(segment) {
|
|
22
|
+
return EXCLUDED.has(segment) || (ENV_FILE.test(segment) && segment !== ".env.example");
|
|
23
|
+
}
|
|
24
|
+
function lstatOrNull(path) {
|
|
25
|
+
try {
|
|
26
|
+
return lstatSync(path);
|
|
27
|
+
}
|
|
28
|
+
catch {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
/** Every file and folder under `folder` that ships, parents before children,
|
|
33
|
+
* each folder's entries in name order. A link is never followed and never
|
|
34
|
+
* listed, a left-out name is skipped with everything under it, and a folder
|
|
35
|
+
* that is absent, a file or a link ships nothing. Iterative, so a deep tree
|
|
36
|
+
* costs no stack. */
|
|
37
|
+
export function walkShipped(folder) {
|
|
38
|
+
if (!lstatOrNull(folder)?.isDirectory())
|
|
39
|
+
return [];
|
|
40
|
+
const shipped = [];
|
|
41
|
+
// A queue read by index: every folder is read once, in the order it was found.
|
|
42
|
+
const pending = [""];
|
|
43
|
+
for (let next = 0; next < pending.length; next++) {
|
|
44
|
+
const relative = pending[next];
|
|
45
|
+
const children = readdirSync(relative === "" ? folder : join(folder, ...relative.split("/")), { withFileTypes: true })
|
|
46
|
+
.filter((entry) => !entry.isSymbolicLink() && !isExcludedSegment(entry.name) && (entry.isDirectory() || entry.isFile()))
|
|
47
|
+
.sort((a, b) => (a.name < b.name ? -1 : a.name > b.name ? 1 : 0));
|
|
48
|
+
if (relative !== "")
|
|
49
|
+
shipped.push({ path: relative, isDirectory: true, empty: children.length === 0 });
|
|
50
|
+
for (const child of children) {
|
|
51
|
+
const path = relative === "" ? child.name : `${relative}/${child.name}`;
|
|
52
|
+
if (child.isDirectory())
|
|
53
|
+
pending.push(path);
|
|
54
|
+
else
|
|
55
|
+
shipped.push({ path, isDirectory: false, empty: false });
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return shipped;
|
|
59
|
+
}
|
|
60
|
+
const CASE_RULE = "names are matched exactly, as the marketplace and a Linux install read them";
|
|
61
|
+
/** Why a file is not one the build carries into the package, for any number
|
|
62
|
+
* of paths under one package root, each folder read once (S311 second code
|
|
63
|
+
* fix). A path is relative to `root`, with "/"; the answer is null for a
|
|
64
|
+
* regular file reached through real folders only, none of them a left-out
|
|
65
|
+
* name, or the reason, which reads after the path: "public/dist/theme.css is
|
|
66
|
+
* inside public/dist/, which ...".
|
|
67
|
+
*
|
|
68
|
+
* The first segment is the folder the build opens by its own name
|
|
69
|
+
* (templates, public or media), which a case-insensitive host resolves in any
|
|
70
|
+
* case, as the build's copy does, and writes into the package under that
|
|
71
|
+
* name. Every segment below it must be spelled as its folder lists it: the
|
|
72
|
+
* build copies the names it reads, so on Windows or macOS a declared
|
|
73
|
+
* `Styles/Site.css` the file system would find as `styles/site.css` is not in
|
|
74
|
+
* the package under the declared name, and the marketplace (and any Linux
|
|
75
|
+
* install) reads names exactly. */
|
|
76
|
+
export function createShippedLookup(root) {
|
|
77
|
+
const listings = new Map();
|
|
78
|
+
const namesIn = (folder) => {
|
|
79
|
+
if (listings.has(folder))
|
|
80
|
+
return listings.get(folder);
|
|
81
|
+
let names = null;
|
|
82
|
+
try {
|
|
83
|
+
const listed = readdirSync(folder);
|
|
84
|
+
names = { exact: new Set(listed), folded: new Map(listed.map((name) => [name.toLowerCase(), name])) };
|
|
85
|
+
}
|
|
86
|
+
catch {
|
|
87
|
+
// Not a folder that can be read: the lstat below says what it is.
|
|
88
|
+
}
|
|
89
|
+
listings.set(folder, names);
|
|
90
|
+
return names;
|
|
91
|
+
};
|
|
92
|
+
return (path) => {
|
|
93
|
+
const segments = path.split("/");
|
|
94
|
+
if (segments.some((segment) => segment === "" || segment === "." || segment === ".."))
|
|
95
|
+
return "is not a path inside the package";
|
|
96
|
+
let current = root;
|
|
97
|
+
for (let i = 0; i < segments.length; i++) {
|
|
98
|
+
const segment = segments[i];
|
|
99
|
+
const last = i === segments.length - 1;
|
|
100
|
+
const folder = `${segments.slice(0, i + 1).join("/")}/`;
|
|
101
|
+
if (isExcludedSegment(segment)) {
|
|
102
|
+
return last ? `is a name a package never carries: ${EXCLUDED_RULE}` : `is inside ${folder}, which a package never carries: ${EXCLUDED_RULE}`;
|
|
103
|
+
}
|
|
104
|
+
if (i > 0) {
|
|
105
|
+
const names = namesIn(current);
|
|
106
|
+
if (names !== null && !names.exact.has(segment)) {
|
|
107
|
+
const held = names.folded.get(segment.toLowerCase());
|
|
108
|
+
if (held === undefined)
|
|
109
|
+
return "does not exist";
|
|
110
|
+
return `differs in case from ${[...segments.slice(0, i), held].join("/")}, the name the folder holds: ${CASE_RULE}`;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
current = join(current, segment);
|
|
114
|
+
const stats = lstatOrNull(current);
|
|
115
|
+
if (stats === null)
|
|
116
|
+
return "does not exist";
|
|
117
|
+
if (stats.isSymbolicLink())
|
|
118
|
+
return last ? `is a link: ${LINK_RULE}` : `is inside ${folder}, a link: ${LINK_RULE}`;
|
|
119
|
+
if (!last && !stats.isDirectory())
|
|
120
|
+
return "does not exist";
|
|
121
|
+
if (last && stats.isDirectory())
|
|
122
|
+
return "is a folder, not a file";
|
|
123
|
+
if (last && !stats.isFile())
|
|
124
|
+
return "is not a regular file";
|
|
125
|
+
}
|
|
126
|
+
return null;
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
/** createShippedLookup's answer for one path. A caller with many paths under
|
|
130
|
+
* one root makes one lookup and asks it each. */
|
|
131
|
+
export function whyNotShipped(root, path) {
|
|
132
|
+
return createShippedLookup(root)(path);
|
|
133
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** At most this many codes are read from one package's locales/ folder. */
|
|
2
|
+
export declare const MAX_SHIPPED_LOCALES = 100;
|
|
3
|
+
/** S314c2 (D9): the language codes of the locale files a package (or a plugin project) ships,
|
|
4
|
+
* locales/<code>.json, by file name alone (the admin parses each file when it loads it), sorted
|
|
5
|
+
* and at most MAX_SHIPPED_LOCALES. Never throws: no folder ships none. The registry row keeps
|
|
6
|
+
* them, so the admin asks only for files that exist. */
|
|
7
|
+
export declare function readShippedLocales(dir: string): string[];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { readdirSync } from "node:fs";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
import { pluginLocaleFileLanguage } from "@kardalum/api-schemas";
|
|
4
|
+
/** At most this many codes are read from one package's locales/ folder. */
|
|
5
|
+
export const MAX_SHIPPED_LOCALES = 100;
|
|
6
|
+
/** S314c2 (D9): the language codes of the locale files a package (or a plugin project) ships,
|
|
7
|
+
* locales/<code>.json, by file name alone (the admin parses each file when it loads it), sorted
|
|
8
|
+
* and at most MAX_SHIPPED_LOCALES. Never throws: no folder ships none. The registry row keeps
|
|
9
|
+
* them, so the admin asks only for files that exist. */
|
|
10
|
+
export function readShippedLocales(dir) {
|
|
11
|
+
let names;
|
|
12
|
+
try {
|
|
13
|
+
names = readdirSync(join(dir, "locales"));
|
|
14
|
+
}
|
|
15
|
+
catch {
|
|
16
|
+
return [];
|
|
17
|
+
}
|
|
18
|
+
const codes = [];
|
|
19
|
+
for (const name of names.sort()) {
|
|
20
|
+
const code = pluginLocaleFileLanguage(name);
|
|
21
|
+
if (code !== null && !codes.includes(code))
|
|
22
|
+
codes.push(code);
|
|
23
|
+
if (codes.length >= MAX_SHIPPED_LOCALES)
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
return codes;
|
|
27
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type VendorTokenPayload } from "@kardalum/api-schemas";
|
|
2
|
+
import type { TrustedKey } from "./types.js";
|
|
3
|
+
export declare const VENDOR_TOKEN_SIGNING_PREFIX: string;
|
|
4
|
+
/** Spec 3e: clock leeway either side. */
|
|
5
|
+
export declare const VENDOR_TOKEN_LEEWAY_SECONDS = 60;
|
|
6
|
+
export type VendorTokenFailure = "missing" | "malformed" | "bad_signature" | "expired";
|
|
7
|
+
export type VendorTokenVerifyResult = {
|
|
8
|
+
ok: true;
|
|
9
|
+
payload: VendorTokenPayload;
|
|
10
|
+
} | {
|
|
11
|
+
ok: false;
|
|
12
|
+
reason: VendorTokenFailure;
|
|
13
|
+
};
|
|
14
|
+
/** The marketplace's signer. Throws RangeError for a payload the schema refuses or past the caps. */
|
|
15
|
+
export declare function signVendorToken(payload: VendorTokenPayload, privateKeyBase64: string): string;
|
|
16
|
+
/**
|
|
17
|
+
* The author's server's check of the signature and the clock (spec 3e). It
|
|
18
|
+
* does not check the plugin, the audience or `live`: createVendorLicenceCheck
|
|
19
|
+
* (@kardalum/plugin-sdk/vendor) does, because only it knows what it expects.
|
|
20
|
+
*/
|
|
21
|
+
export declare function verifyVendorToken(token: unknown, trustedKeys: TrustedKey[], opts?: {
|
|
22
|
+
now?: Date;
|
|
23
|
+
leewaySeconds?: number;
|
|
24
|
+
}): VendorTokenVerifyResult;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { createPrivateKey, createPublicKey, sign, verify } from "node:crypto";
|
|
2
|
+
import { VENDOR_TOKEN_MAX_LENGTH, VENDOR_TOKEN_PAYLOAD_MAX_BYTES, VENDOR_TOKEN_TYPE, VendorTokenPayloadSchema, } from "@kardalum/api-schemas";
|
|
3
|
+
import { deriveKeyId } from "./envelope.js";
|
|
4
|
+
// S320 (spec 3a, D4, D5): the vendor token. `<payload>.<signature>`, both
|
|
5
|
+
// base64url without padding. The signature is Ed25519, by the licence verdict
|
|
6
|
+
// key, over the purpose string and the payload segment as it travels (plan
|
|
7
|
+
// P1), so a token's bytes can never be a verdict's canonical JSON (which
|
|
8
|
+
// starts with "{") and the reverse. Parsed without a regex: split on the last
|
|
9
|
+
// ".", linear checks, length caps, then the schema.
|
|
10
|
+
export const VENDOR_TOKEN_SIGNING_PREFIX = `${VENDOR_TOKEN_TYPE}.`;
|
|
11
|
+
/** Spec 3e: clock leeway either side. */
|
|
12
|
+
export const VENDOR_TOKEN_LEEWAY_SECONDS = 60;
|
|
13
|
+
const SIGNATURE_BYTES = 64;
|
|
14
|
+
const termStatesMatch = true;
|
|
15
|
+
void termStatesMatch;
|
|
16
|
+
function signedBytes(payloadSegment) {
|
|
17
|
+
return Buffer.from(VENDOR_TOKEN_SIGNING_PREFIX + payloadSegment, "ascii");
|
|
18
|
+
}
|
|
19
|
+
/** The payload's JSON in the schema's field order, so one payload has one spelling. */
|
|
20
|
+
function payloadText(p) {
|
|
21
|
+
return JSON.stringify({
|
|
22
|
+
typ: p.typ, kid: p.kid, pluginId: p.pluginId, aud: p.aud, domain: p.domain, live: p.live,
|
|
23
|
+
plan: { id: p.plan.id, key: p.plan.key, name: p.plan.name },
|
|
24
|
+
term: { state: p.term.state, endsAt: p.term.endsAt },
|
|
25
|
+
iat: p.iat, exp: p.exp, jti: p.jti,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/** The marketplace's signer. Throws RangeError for a payload the schema refuses or past the caps. */
|
|
29
|
+
export function signVendorToken(payload, privateKeyBase64) {
|
|
30
|
+
const parsed = VendorTokenPayloadSchema.safeParse(payload);
|
|
31
|
+
if (!parsed.success)
|
|
32
|
+
throw new RangeError("signVendorToken: the payload is malformed");
|
|
33
|
+
const text = Buffer.from(payloadText(parsed.data), "utf8");
|
|
34
|
+
if (text.length > VENDOR_TOKEN_PAYLOAD_MAX_BYTES)
|
|
35
|
+
throw new RangeError("signVendorToken: the payload is over 4 KiB");
|
|
36
|
+
const segment = text.toString("base64url");
|
|
37
|
+
const key = createPrivateKey({ key: Buffer.from(privateKeyBase64, "base64"), format: "der", type: "pkcs8" });
|
|
38
|
+
const token = `${segment}.${sign(null, signedBytes(segment), key).toString("base64url")}`;
|
|
39
|
+
if (token.length > VENDOR_TOKEN_MAX_LENGTH)
|
|
40
|
+
throw new RangeError("signVendorToken: the token is too long");
|
|
41
|
+
return token;
|
|
42
|
+
}
|
|
43
|
+
/** Plan P2: a segment counts only in its one canonical base64url spelling. */
|
|
44
|
+
function decodeSegment(segment) {
|
|
45
|
+
if (segment.length === 0)
|
|
46
|
+
return null;
|
|
47
|
+
const bytes = Buffer.from(segment, "base64url");
|
|
48
|
+
return bytes.toString("base64url") === segment ? bytes : null;
|
|
49
|
+
}
|
|
50
|
+
function keyFor(kid, trustedKeys) {
|
|
51
|
+
return trustedKeys.find((k) => {
|
|
52
|
+
try {
|
|
53
|
+
return deriveKeyId(k.publicKey) === kid;
|
|
54
|
+
}
|
|
55
|
+
catch {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The author's server's check of the signature and the clock (spec 3e). It
|
|
62
|
+
* does not check the plugin, the audience or `live`: createVendorLicenceCheck
|
|
63
|
+
* (@kardalum/plugin-sdk/vendor) does, because only it knows what it expects.
|
|
64
|
+
*/
|
|
65
|
+
export function verifyVendorToken(token, trustedKeys, opts = {}) {
|
|
66
|
+
if (token === undefined || token === null || token === "")
|
|
67
|
+
return { ok: false, reason: "missing" };
|
|
68
|
+
if (typeof token !== "string" || token.length > VENDOR_TOKEN_MAX_LENGTH)
|
|
69
|
+
return { ok: false, reason: "malformed" };
|
|
70
|
+
const dot = token.lastIndexOf(".");
|
|
71
|
+
if (dot <= 0 || dot === token.length - 1)
|
|
72
|
+
return { ok: false, reason: "malformed" };
|
|
73
|
+
const payloadSegment = token.slice(0, dot);
|
|
74
|
+
if (payloadSegment.includes("."))
|
|
75
|
+
return { ok: false, reason: "malformed" };
|
|
76
|
+
// Cheap bound before decoding: 4 KiB of bytes is at most 5462 base64url characters.
|
|
77
|
+
if (payloadSegment.length > Math.ceil((VENDOR_TOKEN_PAYLOAD_MAX_BYTES * 4) / 3))
|
|
78
|
+
return { ok: false, reason: "malformed" };
|
|
79
|
+
const payloadBytes = decodeSegment(payloadSegment);
|
|
80
|
+
const signature = decodeSegment(token.slice(dot + 1));
|
|
81
|
+
if (!payloadBytes || !signature || signature.length !== SIGNATURE_BYTES || payloadBytes.length > VENDOR_TOKEN_PAYLOAD_MAX_BYTES) {
|
|
82
|
+
return { ok: false, reason: "malformed" };
|
|
83
|
+
}
|
|
84
|
+
let json;
|
|
85
|
+
try {
|
|
86
|
+
json = JSON.parse(payloadBytes.toString("utf8"));
|
|
87
|
+
}
|
|
88
|
+
catch {
|
|
89
|
+
return { ok: false, reason: "malformed" };
|
|
90
|
+
}
|
|
91
|
+
const parsed = VendorTokenPayloadSchema.safeParse(json);
|
|
92
|
+
if (!parsed.success)
|
|
93
|
+
return { ok: false, reason: "malformed" };
|
|
94
|
+
const match = keyFor(parsed.data.kid, trustedKeys);
|
|
95
|
+
if (!match)
|
|
96
|
+
return { ok: false, reason: "bad_signature" };
|
|
97
|
+
let authentic = false;
|
|
98
|
+
try {
|
|
99
|
+
authentic = verify(null, signedBytes(payloadSegment), createPublicKey({ key: Buffer.from(match.publicKey, "base64"), format: "der", type: "spki" }), signature);
|
|
100
|
+
}
|
|
101
|
+
catch {
|
|
102
|
+
authentic = false;
|
|
103
|
+
}
|
|
104
|
+
if (!authentic)
|
|
105
|
+
return { ok: false, reason: "bad_signature" };
|
|
106
|
+
const nowSeconds = Math.floor((opts.now ?? new Date()).getTime() / 1000);
|
|
107
|
+
const leeway = opts.leewaySeconds ?? VENDOR_TOKEN_LEEWAY_SECONDS;
|
|
108
|
+
// An invalid clock would make every comparison below false and pass any token: a caller bug, refused loudly.
|
|
109
|
+
if (!Number.isFinite(nowSeconds))
|
|
110
|
+
throw new RangeError("verifyVendorToken: opts.now is not a valid date");
|
|
111
|
+
if (!Number.isFinite(leeway) || leeway < 0)
|
|
112
|
+
throw new RangeError("verifyVendorToken: opts.leewaySeconds must be a finite number of seconds, zero or more");
|
|
113
|
+
if (parsed.data.iat > nowSeconds + leeway)
|
|
114
|
+
return { ok: false, reason: "malformed" };
|
|
115
|
+
if (nowSeconds > parsed.data.exp + leeway)
|
|
116
|
+
return { ok: false, reason: "expired" };
|
|
117
|
+
return { ok: true, payload: parsed.data };
|
|
118
|
+
}
|
|
@@ -41,14 +41,16 @@
|
|
|
41
41
|
"@types/node": "22.20.1",
|
|
42
42
|
"@types/yauzl": "^3.4.0",
|
|
43
43
|
"@types/yazl": "^3.3.1",
|
|
44
|
+
"lucide-react": "1.38.0",
|
|
44
45
|
"typescript": "6.0.3",
|
|
45
|
-
"vitest": "
|
|
46
|
+
"vitest": "4.1.12",
|
|
46
47
|
"yauzl": "3.4.0",
|
|
47
48
|
"yazl": "^3.3.1",
|
|
48
49
|
"@kardalum/api-schemas": "0.14.0"
|
|
49
50
|
},
|
|
50
51
|
"scripts": {
|
|
51
52
|
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p .",
|
|
52
|
-
"test": "vitest run"
|
|
53
|
+
"test": "vitest run",
|
|
54
|
+
"generate:icon-names": "node scripts/generate-icon-names.mjs"
|
|
53
55
|
}
|
|
54
56
|
}
|
|
@@ -6,7 +6,7 @@ import { cn } from '../lib/cn.js';
|
|
|
6
6
|
// @kardalum/design-tokens Tailwind theme: all of these classes resolve
|
|
7
7
|
// to var(--...) references, never baked values (host-provided
|
|
8
8
|
// components constraint).
|
|
9
|
-
const buttonVariants = cva('inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors duration-fast focus-visible:outline-
|
|
9
|
+
const buttonVariants = cva('inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors duration-fast 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:pointer-events-none disabled:opacity-50 aria-disabled:cursor-not-allowed aria-disabled:opacity-50', {
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
12
12
|
// Action = primary-600 (S177): cerulean in light, the light blue
|
|
@@ -2,6 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
3
|
import { cn } from '../lib/cn.js';
|
|
4
4
|
function Checkbox({ className, ...props }) {
|
|
5
|
-
return (_jsx(CheckboxPrimitive.Root, { "data-slot": "checkbox", className: cn('peer h-4 w-4 shrink-0 rounded-sm border border-neutral-500 bg-background-elevated focus-visible:outline-
|
|
5
|
+
return (_jsx(CheckboxPrimitive.Root, { "data-slot": "checkbox", className: cn('peer h-4 w-4 shrink-0 rounded-sm border border-neutral-500 bg-background-elevated 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 data-[state=checked]:border-primary-600 data-[state=checked]:bg-primary-600 data-[state=checked]:text-text-inverse data-[state=indeterminate]:border-primary-600 data-[state=indeterminate]:text-primary-600', className), ...props, children: _jsxs(CheckboxPrimitive.Indicator, { className: "group flex items-center justify-center text-current", children: [_jsx("svg", { viewBox: "0 0 16 16", fill: "none", className: "h-3 w-3 group-data-[state=indeterminate]:hidden", "aria-hidden": "true", children: _jsx("path", { d: "M3.5 8.5L6.5 11.5L12.5 4.5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), _jsx("svg", { viewBox: "0 0 16 16", fill: "none", className: "hidden h-3 w-3 group-data-[state=indeterminate]:block", "aria-hidden": "true", children: _jsx("path", { d: "M4 8h8", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) })] }) }));
|
|
6
6
|
}
|
|
7
7
|
export { Checkbox };
|
|
@@ -7,6 +7,9 @@ import { cn } from '../lib/cn.js';
|
|
|
7
7
|
// caller, same convention as AlertDialog. Radix supplies the focus trap,
|
|
8
8
|
// Escape handling, and aria wiring; `onCloseAutoFocus` on DialogContent is
|
|
9
9
|
// how a caller returns focus to its trigger (see the admin UI conventions).
|
|
10
|
+
// Radix hides the page behind with aria-hidden but never marks the dialog
|
|
11
|
+
// itself modal, so DialogContent sets aria-modal="true" as a default the
|
|
12
|
+
// caller can override (S314c4).
|
|
10
13
|
const Dialog = DialogPrimitive.Root;
|
|
11
14
|
const DialogTrigger = DialogPrimitive.Trigger;
|
|
12
15
|
const DialogPortal = DialogPrimitive.Portal;
|
|
@@ -28,7 +31,7 @@ function DialogOverlay({ className, ...props }) {
|
|
|
28
31
|
// gets a reachable footer. 460px, the height a 920px screen gives at 200%
|
|
29
32
|
// browser zoom, is the case this is measured against (WCAG 1.4.4).
|
|
30
33
|
function DialogContent({ className, ...props }) {
|
|
31
|
-
return (_jsxs(DialogPortal, { children: [_jsx(DialogOverlay, {}), _jsx(DialogPrimitive.Content, { className: cn('fixed start-1/2 top-1/2 z-50 max-h-[calc(100dvh_-_var(--spacing-8))] w-full max-w-lg -translate-y-1/2 overflow-y-auto ltr:-translate-x-1/2 rtl:translate-x-1/2 rounded-xl border border-border-default bg-background-elevated p-6 shadow-xl', className), ...props })] }));
|
|
34
|
+
return (_jsxs(DialogPortal, { children: [_jsx(DialogOverlay, {}), _jsx(DialogPrimitive.Content, { "aria-modal": "true", className: cn('fixed start-1/2 top-1/2 z-50 max-h-[calc(100dvh_-_var(--spacing-8))] w-full max-w-lg -translate-y-1/2 overflow-y-auto ltr:-translate-x-1/2 rtl:translate-x-1/2 rounded-xl border border-border-default bg-background-elevated p-6 shadow-xl', className), ...props })] }));
|
|
32
35
|
}
|
|
33
36
|
function DialogHeader({ className, ...props }) {
|
|
34
37
|
return (_jsx("div", { className: cn('flex items-center gap-2 text-start', className), ...props }));
|
|
@@ -43,6 +46,6 @@ function DialogDescription({ className, ...props }) {
|
|
|
43
46
|
return (_jsx(DialogPrimitive.Description, { className: cn('text-sm text-text-secondary', className), ...props }));
|
|
44
47
|
}
|
|
45
48
|
function DialogCloseButton({ className, ...props }) {
|
|
46
|
-
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-
|
|
49
|
+
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" })] }) }));
|
|
47
50
|
}
|
|
48
51
|
export { Dialog, DialogTrigger, DialogPortal, DialogOverlay, DialogClose, DialogCloseButton, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
|
|
@@ -34,18 +34,18 @@ const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
|
34
34
|
// Radio item with a check indicator at the inline start — the shape a
|
|
35
35
|
// "pick one" preference (theme mode, language) takes inside a menu.
|
|
36
36
|
function DropdownMenuRadioItem({ className, children, ...props }) {
|
|
37
|
-
return (_jsxs(DropdownMenuPrimitive.RadioItem, { className: cn('relative flex cursor-pointer select-none items-center gap-2 rounded-sm py-2 pe-2 ps-8 text-sm text-text-primary outline-
|
|
37
|
+
return (_jsxs(DropdownMenuPrimitive.RadioItem, { className: cn('relative flex cursor-pointer select-none items-center gap-2 rounded-sm py-2 pe-2 ps-8 text-sm text-text-primary outline-hidden transition-colors data-[highlighted]:bg-background-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className), ...props, children: [_jsx("span", { className: "absolute start-2 flex size-4 items-center justify-center", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "size-4 text-primary-600", children: _jsx("path", { d: "M20 6 9 17l-5-5" }) }) }) }), children] }));
|
|
38
38
|
}
|
|
39
39
|
function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
|
|
40
40
|
return (_jsx(DropdownMenuPrimitive.Portal, { children: _jsx(DropdownMenuPrimitive.Content, { sideOffset: sideOffset, className: cn('z-50 min-w-[10rem] overflow-hidden rounded-lg border border-border-default bg-background-elevated p-1 text-text-primary shadow-lg', className), ...props }) }));
|
|
41
41
|
}
|
|
42
42
|
function DropdownMenuItem({ className, inset, variant = 'default', ...props }) {
|
|
43
|
-
return (_jsx(DropdownMenuPrimitive.Item, { className: cn('relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1
|
|
43
|
+
return (_jsx(DropdownMenuPrimitive.Item, { className: cn('relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1 text-sm outline-hidden transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50', variant === 'destructive'
|
|
44
44
|
? 'text-danger-600 data-[highlighted]:bg-danger-100 data-[highlighted]:text-danger-700'
|
|
45
45
|
: 'text-text-primary data-[highlighted]:bg-background-hover', inset && 'ps-8', className), ...props }));
|
|
46
46
|
}
|
|
47
47
|
function DropdownMenuLabel({ className, inset, ...props }) {
|
|
48
|
-
return (_jsx(DropdownMenuPrimitive.Label, { className: cn('px-2 py-1
|
|
48
|
+
return (_jsx(DropdownMenuPrimitive.Label, { className: cn('px-2 py-1 text-xs font-semibold text-text-secondary', inset && 'ps-8', className), ...props }));
|
|
49
49
|
}
|
|
50
50
|
function DropdownMenuSeparator({ className, ...props }) {
|
|
51
51
|
return (_jsx(DropdownMenuPrimitive.Separator, { className: cn('-mx-1 my-1 h-px bg-border-default', className), ...props }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from '../lib/cn.js';
|
|
3
3
|
function Input({ className, type, ...props }) {
|
|
4
|
-
return (_jsx("input", { type: type, "data-slot": "input", className: cn('flex h-10 w-full rounded-md border border-border-strong bg-background-elevated px-3 py-2 text-sm text-text-primary placeholder:text-text-disabled file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-text-primary transition-colors duration-fast focus-visible:border-primary-600 focus-visible:outline-
|
|
4
|
+
return (_jsx("input", { type: type, "data-slot": "input", className: cn('flex h-10 w-full rounded-md border border-border-strong bg-background-elevated px-3 py-2 text-sm text-text-primary placeholder:text-text-disabled file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-text-primary transition-colors duration-fast focus-visible:border-primary-600 focus-visible:outline-hidden focus-visible:ring-4 focus-visible:ring-primary-50 disabled:cursor-not-allowed disabled:opacity-50', className), ...props }));
|
|
5
5
|
}
|
|
6
6
|
export { Input };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
|
+
import { cn } from '../lib/cn.js';
|
|
4
|
+
// S314n2: a small panel pinned under the app bar at the inline end, the content of a
|
|
5
|
+
// non-modal Dialog (`<Dialog modal={false}>`): the bell's notifications. Radix supplies
|
|
6
|
+
// Escape, the outside click that closes it and the return of focus to its trigger; being
|
|
7
|
+
// non-modal, the page behind stays live and gets no overlay. Never wider than the viewport
|
|
8
|
+
// less a gutter, so at a phone's width it spans the screen. No owned strings: the caller
|
|
9
|
+
// gives it a DialogTitle.
|
|
10
|
+
function PopoverPanel({ className, ...props }) {
|
|
11
|
+
return (_jsx(DialogPrimitive.Portal, { children: _jsx(DialogPrimitive.Content, { className: cn('fixed end-4 top-14 z-50 flex max-h-[calc(100dvh_-_var(--spacing-16))] w-[calc(100vw_-_var(--spacing-8))] max-w-md flex-col overflow-hidden rounded-lg border border-border-default bg-background-elevated shadow-xl', className), ...props }) }));
|
|
12
|
+
}
|
|
13
|
+
export { PopoverPanel };
|
|
@@ -4,8 +4,9 @@ import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
|
4
4
|
import { cn } from '../lib/cn.js';
|
|
5
5
|
// A right-side drawer variant of Dialog — same Radix primitive underneath
|
|
6
6
|
// (focus trap, Escape handling, aria wiring: SheetContent is still a
|
|
7
|
-
// DialogPrimitive.Content, so it
|
|
8
|
-
//
|
|
7
|
+
// DialogPrimitive.Content, so it carries role="dialog", and like
|
|
8
|
+
// DialogContent it sets aria-modal="true" itself as an overridable default,
|
|
9
|
+
// because Radix does not), just a different Content shell: a
|
|
9
10
|
// fixed-width panel pinned to the inline end of the viewport instead of a
|
|
10
11
|
// centered card. Ported by hand in the shadcn/ui model (same convention as
|
|
11
12
|
// dialog.tsx/alert-dialog.tsx: retargeted to @kardalum/design-tokens
|
|
@@ -35,7 +36,7 @@ function SheetContent({ className, children, ...props }) {
|
|
|
35
36
|
const frame = requestAnimationFrame(() => setEntered(true));
|
|
36
37
|
return () => cancelAnimationFrame(frame);
|
|
37
38
|
}, []);
|
|
38
|
-
return (_jsxs(SheetPortal, { children: [_jsx(SheetOverlay, {}), _jsx(DialogPrimitive.Content, { 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 })] }));
|
|
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 })] }));
|
|
39
40
|
}
|
|
40
41
|
function SheetHeader({ className, ...props }) {
|
|
41
42
|
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 }));
|
|
@@ -50,6 +51,6 @@ function SheetDescription({ className, ...props }) {
|
|
|
50
51
|
return (_jsx(DialogPrimitive.Description, { className: cn('text-sm text-text-secondary', className), ...props }));
|
|
51
52
|
}
|
|
52
53
|
function SheetCloseButton({ className, ...props }) {
|
|
53
|
-
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-
|
|
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" })] }) }));
|
|
54
55
|
}
|
|
55
56
|
export { Sheet, SheetTrigger, SheetPortal, SheetClose, SheetCloseButton, SheetOverlay, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
|
|
@@ -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-
|
|
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 data-[state=checked]:bg-primary-600 data-[state=unchecked]: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 };
|
|
@@ -65,7 +65,7 @@ export function TabStrip({ tabs, activeId, onChange, label, errorLabel, idPrefix
|
|
|
65
65
|
const active = tab.id === activeId;
|
|
66
66
|
return (_jsxs("button", { type: "button", role: "tab", id: tabStripTabId(idPrefix, tab.id), "aria-selected": active, "aria-controls": tabStripPanelId(idPrefix, tab.id), "aria-label": tab.hasError && errorLabel
|
|
67
67
|
? `${tab.label}${tab.detail ? `, ${tab.detail}` : ''}: ${errorLabel}`
|
|
68
|
-
: undefined, tabIndex: active ? 0 : -1, onClick: () => onChange(tab.id), className: cn('-mb-px inline-flex items-center gap-1 whitespace-nowrap rounded-t-md border-b-2 px-3 py-2 text-sm transition-colors duration-fast focus-visible:outline-
|
|
68
|
+
: undefined, tabIndex: active ? 0 : -1, onClick: () => onChange(tab.id), className: cn('-mb-px inline-flex items-center gap-1 whitespace-nowrap rounded-t-md border-b-2 px-3 py-2 text-sm transition-colors duration-fast focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary-600 focus-visible:ring-offset-2 focus-visible:ring-offset-background-base', active
|
|
69
69
|
? 'border-primary-300 font-medium text-text-primary'
|
|
70
70
|
: 'border-transparent text-text-secondary hover:text-text-primary'), children: [tab.label, tab.detail && _jsx("span", { className: "text-xs text-text-tertiary", children: tab.detail }), tab.hasError && (_jsx("span", { "aria-hidden": "true", className: "size-1 shrink-0 rounded-full bg-danger-500" }))] }, tab.id));
|
|
71
71
|
}) }));
|
|
@@ -37,6 +37,6 @@ function ToastDescription({ className, ...props }) {
|
|
|
37
37
|
return (_jsx(ToastPrimitives.Description, { className: cn('text-sm text-background-elevated opacity-80', className), ...props }));
|
|
38
38
|
}
|
|
39
39
|
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-
|
|
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
41
|
}
|
|
42
42
|
export { ToastProvider, ToastViewport, Toast, ToastTitle, ToastDescription, ToastClose };
|
|
@@ -8,6 +8,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
9
|
export { DropdownMenu, 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
|
+
export { PopoverPanel } from './components/popover-panel.js';
|
|
11
12
|
export { Sheet, SheetTrigger, SheetPortal, SheetClose, SheetCloseButton, SheetOverlay, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, } from './components/sheet.js';
|
|
12
13
|
export { Skeleton } from './components/skeleton.js';
|
|
13
14
|
export { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, type ToastProps, } from './components/toast.js';
|
|
@@ -8,6 +8,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
9
|
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuPortal, DropdownMenuGroup, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, } from './components/dropdown-menu.js';
|
|
10
10
|
export { EmptyState } from './components/empty-state.js';
|
|
11
|
+
export { PopoverPanel } from './components/popover-panel.js';
|
|
11
12
|
export { Sheet, SheetTrigger, SheetPortal, SheetClose, SheetCloseButton, SheetOverlay, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, } from './components/sheet.js';
|
|
12
13
|
export { Skeleton } from './components/skeleton.js';
|
|
13
14
|
export { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, } from './components/toast.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kardalum/plugin-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.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": {
|
|
@@ -45,6 +45,11 @@
|
|
|
45
45
|
"import": "./dist/datatypes-entry.js",
|
|
46
46
|
"default": "./dist/datatypes-entry.js"
|
|
47
47
|
},
|
|
48
|
+
"./richtext-html": {
|
|
49
|
+
"types": "./dist/richtext-html-entry.d.ts",
|
|
50
|
+
"import": "./dist/richtext-html-entry.js",
|
|
51
|
+
"default": "./dist/richtext-html-entry.js"
|
|
52
|
+
},
|
|
48
53
|
"./ui": {
|
|
49
54
|
"types": "./dist/ui-entry.d.ts",
|
|
50
55
|
"import": "./dist/ui-entry.js",
|
|
@@ -60,6 +65,11 @@
|
|
|
60
65
|
"import": "./dist/entitlement-entry.js",
|
|
61
66
|
"default": "./dist/entitlement-entry.js"
|
|
62
67
|
},
|
|
68
|
+
"./vendor": {
|
|
69
|
+
"types": "./dist/vendor-entry.d.ts",
|
|
70
|
+
"import": "./dist/vendor-entry.js",
|
|
71
|
+
"default": "./dist/vendor-entry.js"
|
|
72
|
+
},
|
|
63
73
|
"./register-built-ins": {
|
|
64
74
|
"types": "./dist/register-built-ins.d.ts",
|
|
65
75
|
"import": "./dist/register-built-ins.js",
|
|
@@ -78,6 +88,7 @@
|
|
|
78
88
|
"import": "./dist/tailwind.js",
|
|
79
89
|
"default": "./dist/tailwind.js"
|
|
80
90
|
},
|
|
91
|
+
"./tailwind/theme.css": "./dist/tokens/tailwind-theme.css",
|
|
81
92
|
"./icons": {
|
|
82
93
|
"types": "./dist/icons.d.ts",
|
|
83
94
|
"import": "./dist/icons.js",
|
|
@@ -104,20 +115,22 @@
|
|
|
104
115
|
"@tiptap/extension-image": "3.31.0",
|
|
105
116
|
"@tiptap/extension-link": "3.31.0",
|
|
106
117
|
"@tiptap/extension-table": "3.31.0",
|
|
118
|
+
"@tiptap/html": "3.31.0",
|
|
107
119
|
"@tiptap/pm": "3.31.0",
|
|
108
120
|
"@tiptap/react": "3.31.0",
|
|
109
121
|
"@tiptap/starter-kit": "3.31.0",
|
|
110
122
|
"@types/json-schema": "7.0.15",
|
|
111
123
|
"class-variance-authority": "0.7.1",
|
|
112
124
|
"clsx": "2.1.1",
|
|
125
|
+
"happy-dom": "21.0.4",
|
|
113
126
|
"lucide-react": "1.38.0",
|
|
114
127
|
"tailwind-merge": "3.6.0",
|
|
115
128
|
"yauzl": "3.4.0",
|
|
116
|
-
"zod": "4.
|
|
117
|
-
"@kardalum/
|
|
118
|
-
"@kardalum/design-tokens": "0.14.0",
|
|
129
|
+
"zod": "4.6.6",
|
|
130
|
+
"@kardalum/ui": "0.14.0",
|
|
119
131
|
"@kardalum/plugin-package": "0.14.0",
|
|
120
|
-
"@kardalum/
|
|
132
|
+
"@kardalum/design-tokens": "0.14.0",
|
|
133
|
+
"@kardalum/api-schemas": "0.14.0"
|
|
121
134
|
},
|
|
122
135
|
"peerDependencies": {
|
|
123
136
|
"react": "^19.0.0",
|
|
@@ -131,7 +144,7 @@
|
|
|
131
144
|
"react": "19.2.7",
|
|
132
145
|
"react-dom": "19.2.7",
|
|
133
146
|
"typescript": "6.0.3",
|
|
134
|
-
"vitest": "
|
|
147
|
+
"vitest": "4.1.12",
|
|
135
148
|
"@kardalum/test-utils": "0.0.0"
|
|
136
149
|
},
|
|
137
150
|
"scripts": {
|