From 62ebb950f7f31781268a1faae5d496b91fca19c8 Mon Sep 17 00:00:00 2001 From: Mateusz Kadlubowski Date: Wed, 13 Nov 2024 12:47:16 +0800 Subject: [PATCH 01/16] replace `jsdom` with `happy-dom` --- package.json | 2 +- pnpm-lock.yaml | 108 ++++++++++++++++++++++++++++++++++++------------- vite.config.ts | 6 +-- 3 files changed, 82 insertions(+), 34 deletions(-) diff --git a/package.json b/package.json index 30ae14db..7b136b62 100644 --- a/package.json +++ b/package.json @@ -93,7 +93,7 @@ "concurrently": "^8.2.2", "eslint": "^7.32.0", "eslint-plugin-storybook": "^0.8.0", - "jsdom": "^24.1.0", + "happy-dom": "^15.11.4", "prettier": "^3.3.2", "prettier-plugin-svelte": "^3.2.5", "rimraf": "^5.0.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4529480a..00264d26 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -37,7 +37,7 @@ importers: version: 0.30.12 svelte-ast-print: specifier: ^0.4.0 - version: 0.4.0(@types/node@20.14.9)(jsdom@24.1.0)(svelte@5.1.4)(typescript@5.5.2) + version: 0.4.0(@types/node@20.14.9)(happy-dom@15.11.4)(jsdom@24.1.0)(svelte@5.1.4)(typescript@5.5.2) zimmerframe: specifier: ^1.1.2 version: 1.1.2 @@ -105,9 +105,9 @@ importers: eslint-plugin-storybook: specifier: ^0.8.0 version: 0.8.0(eslint@7.32.0)(typescript@5.5.2) - jsdom: - specifier: ^24.1.0 - version: 24.1.0 + happy-dom: + specifier: ^15.11.4 + version: 15.11.4 prettier: specifier: ^3.3.2 version: 3.3.2 @@ -152,7 +152,7 @@ importers: version: 0.3.0(vite@5.3.2(@types/node@20.14.9)) vitest: specifier: ^1.6.0 - version: 1.6.0(@types/node@20.14.9)(@vitest/ui@1.6.0)(jsdom@24.1.0) + version: 1.6.0(@types/node@20.14.9)(@vitest/ui@1.6.0)(happy-dom@15.11.4)(jsdom@24.1.0) packages: @@ -2803,6 +2803,10 @@ packages: engines: {node: '>=0.4.7'} hasBin: true + happy-dom@15.11.4: + resolution: {integrity: sha512-AU6tzh3ADd28vSmXahgLsGyGGihXPGeKH0owDn9lhHolB6vIwEhag//T+TBzDoAcHhmVEwlxwSgtW1KZep+1MA==} + engines: {node: '>=18.0.0'} + hard-rejection@2.1.0: resolution: {integrity: sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==} engines: {node: '>=6'} @@ -5475,6 +5479,10 @@ packages: resolution: {integrity: sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==} engines: {node: '>=18'} + whatwg-mimetype@3.0.0: + resolution: {integrity: sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==} + engines: {node: '>=12'} + whatwg-mimetype@4.0.0: resolution: {integrity: sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==} engines: {node: '>=18'} @@ -7235,7 +7243,7 @@ snapshots: std-env: 3.7.0 test-exclude: 7.0.1 tinyrainbow: 1.2.0 - vitest: 2.1.4(@types/node@20.14.9)(@vitest/ui@2.1.4)(jsdom@24.1.0) + vitest: 2.1.4(@types/node@20.14.9)(@vitest/ui@2.1.4)(happy-dom@15.11.4)(jsdom@24.1.0) transitivePeerDependencies: - supports-color optional: true @@ -7325,7 +7333,7 @@ snapshots: pathe: 1.1.2 picocolors: 1.0.1 sirv: 2.0.4 - vitest: 1.6.0(@types/node@20.14.9)(@vitest/ui@1.6.0)(jsdom@24.1.0) + vitest: 1.6.0(@types/node@20.14.9)(@vitest/ui@1.6.0)(happy-dom@15.11.4)(jsdom@24.1.0) '@vitest/ui@2.1.4(vitest@2.1.4)': dependencies: @@ -7336,7 +7344,7 @@ snapshots: sirv: 3.0.0 tinyglobby: 0.2.10 tinyrainbow: 1.2.0 - vitest: 2.1.4(@types/node@20.14.9)(@vitest/ui@2.1.4)(jsdom@24.1.0) + vitest: 2.1.4(@types/node@20.14.9)(@vitest/ui@2.1.4)(happy-dom@15.11.4)(jsdom@24.1.0) optional: true '@vitest/utils@1.6.0': @@ -7413,6 +7421,7 @@ snapshots: debug: 4.3.5 transitivePeerDependencies: - supports-color + optional: true ajv@6.12.6: dependencies: @@ -7626,7 +7635,8 @@ snapshots: async@3.2.6: optional: true - asynckit@0.4.0: {} + asynckit@0.4.0: + optional: true author-regex@1.0.0: {} @@ -7952,6 +7962,7 @@ snapshots: combined-stream@1.0.8: dependencies: delayed-stream: 1.0.0 + optional: true comma-separated-tokens@2.0.3: {} @@ -8115,6 +8126,7 @@ snapshots: cssstyle@4.0.1: dependencies: rrweb-cssom: 0.6.0 + optional: true csstype@3.1.3: {} @@ -8127,6 +8139,7 @@ snapshots: dependencies: whatwg-mimetype: 4.0.0 whatwg-url: 14.0.0 + optional: true data-view-buffer@1.0.1: dependencies: @@ -8182,7 +8195,8 @@ snapshots: decamelize@1.2.0: optional: true - decimal.js@10.4.3: {} + decimal.js@10.4.3: + optional: true decode-named-character-reference@1.0.2: dependencies: @@ -8233,7 +8247,8 @@ snapshots: has-property-descriptors: 1.0.2 object-keys: 1.1.1 - delayed-stream@1.0.0: {} + delayed-stream@1.0.0: + optional: true depd@2.0.0: {} @@ -9001,6 +9016,7 @@ snapshots: asynckit: 0.4.0 combined-stream: 1.0.8 mime-types: 2.1.35 + optional: true forwarded@0.2.0: {} @@ -9213,6 +9229,12 @@ snapshots: uglify-js: 3.19.3 optional: true + happy-dom@15.11.4: + dependencies: + entities: 4.5.0 + webidl-conversions: 7.0.0 + whatwg-mimetype: 3.0.0 + hard-rejection@2.1.0: optional: true @@ -9265,6 +9287,7 @@ snapshots: html-encoding-sniffer@4.0.0: dependencies: whatwg-encoding: 3.1.1 + optional: true html-escaper@2.0.2: optional: true @@ -9297,6 +9320,7 @@ snapshots: debug: 4.3.5 transitivePeerDependencies: - supports-color + optional: true https-proxy-agent@5.0.1: dependencies: @@ -9311,6 +9335,7 @@ snapshots: debug: 4.3.5 transitivePeerDependencies: - supports-color + optional: true human-signals@2.1.0: {} @@ -9323,6 +9348,7 @@ snapshots: iconv-lite@0.6.3: dependencies: safer-buffer: 2.1.2 + optional: true ieee754@1.2.1: {} @@ -9490,7 +9516,8 @@ snapshots: is-port-reachable@4.0.0: optional: true - is-potential-custom-element-name@1.0.1: {} + is-potential-custom-element-name@1.0.1: + optional: true is-reference@3.0.2: dependencies: @@ -9648,6 +9675,7 @@ snapshots: - bufferutil - supports-color - utf-8-validate + optional: true jsesc@3.0.2: optional: true @@ -10455,7 +10483,8 @@ snapshots: dependencies: path-key: 4.0.0 - nwsapi@2.2.10: {} + nwsapi@2.2.10: + optional: true object-assign@4.1.1: {} @@ -10623,6 +10652,7 @@ snapshots: parse5@7.1.2: dependencies: entities: 4.5.0 + optional: true parseurl@1.3.3: {} @@ -10790,7 +10820,8 @@ snapshots: forwarded: 0.2.0 ipaddr.js: 1.9.1 - psl@1.9.0: {} + psl@1.9.0: + optional: true punycode.js@2.3.1: optional: true @@ -10804,7 +10835,8 @@ snapshots: dependencies: side-channel: 1.0.6 - querystringify@2.2.0: {} + querystringify@2.2.0: + optional: true queue-microtask@1.2.3: {} @@ -11193,7 +11225,8 @@ snapshots: requireindex@1.2.0: {} - requires-port@1.0.0: {} + requires-port@1.0.0: + optional: true resolve-from@4.0.0: {} @@ -11254,9 +11287,11 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.18.0 fsevents: 2.3.3 - rrweb-cssom@0.6.0: {} + rrweb-cssom@0.6.0: + optional: true - rrweb-cssom@0.7.0: {} + rrweb-cssom@0.7.0: + optional: true run-applescript@7.0.0: {} @@ -11303,6 +11338,7 @@ snapshots: saxes@6.0.0: dependencies: xmlchars: 2.2.0 + optional: true scheduler@0.23.2: dependencies: @@ -11628,7 +11664,7 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} - svelte-ast-print@0.4.0(@types/node@20.14.9)(jsdom@24.1.0)(svelte@5.1.4)(typescript@5.5.2): + svelte-ast-print@0.4.0(@types/node@20.14.9)(happy-dom@15.11.4)(jsdom@24.1.0)(svelte@5.1.4)(typescript@5.5.2): dependencies: esrap: 1.2.2 svelte: 5.1.4 @@ -11649,7 +11685,7 @@ snapshots: typedoc: 0.26.10(typescript@5.5.2) typedoc-plugin-coverage: 3.3.0(typedoc@0.26.10(typescript@5.5.2)) typedoc-plugin-mdn-links: 3.3.5(typedoc@0.26.10(typescript@5.5.2)) - vitest: 2.1.4(@types/node@20.14.9)(@vitest/ui@2.1.4)(jsdom@24.1.0) + vitest: 2.1.4(@types/node@20.14.9)(@vitest/ui@2.1.4)(happy-dom@15.11.4)(jsdom@24.1.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@swc/core' @@ -11720,7 +11756,8 @@ snapshots: transitivePeerDependencies: - supports-color - symbol-tree@3.2.4: {} + symbol-tree@3.2.4: + optional: true synckit@0.8.8: dependencies: @@ -11830,12 +11867,14 @@ snapshots: punycode: 2.3.1 universalify: 0.2.0 url-parse: 1.5.10 + optional: true tr46@0.0.3: {} tr46@5.0.0: dependencies: punycode: 2.3.1 + optional: true tree-kill@1.2.2: {} @@ -12157,7 +12196,8 @@ snapshots: universal-user-agent@6.0.1: {} - universalify@0.2.0: {} + universalify@0.2.0: + optional: true universalify@2.0.1: {} @@ -12193,6 +12233,7 @@ snapshots: dependencies: querystringify: 2.2.0 requires-port: 1.0.0 + optional: true user-home@2.0.0: dependencies: @@ -12348,7 +12389,7 @@ snapshots: optionalDependencies: vite: 5.3.2(@types/node@20.14.9) - vitest@1.6.0(@types/node@20.14.9)(@vitest/ui@1.6.0)(jsdom@24.1.0): + vitest@1.6.0(@types/node@20.14.9)(@vitest/ui@1.6.0)(happy-dom@15.11.4)(jsdom@24.1.0): dependencies: '@vitest/expect': 1.6.0 '@vitest/runner': 1.6.0 @@ -12373,6 +12414,7 @@ snapshots: optionalDependencies: '@types/node': 20.14.9 '@vitest/ui': 1.6.0(vitest@1.6.0) + happy-dom: 15.11.4 jsdom: 24.1.0 transitivePeerDependencies: - less @@ -12383,7 +12425,7 @@ snapshots: - supports-color - terser - vitest@2.1.4(@types/node@20.14.9)(@vitest/ui@2.1.4)(jsdom@24.1.0): + vitest@2.1.4(@types/node@20.14.9)(@vitest/ui@2.1.4)(happy-dom@15.11.4)(jsdom@24.1.0): dependencies: '@vitest/expect': 2.1.4 '@vitest/mocker': 2.1.4(vite@5.3.2(@types/node@20.14.9)) @@ -12408,6 +12450,7 @@ snapshots: optionalDependencies: '@types/node': 20.14.9 '@vitest/ui': 2.1.4(vitest@2.1.4) + happy-dom: 15.11.4 jsdom: 24.1.0 transitivePeerDependencies: - less @@ -12439,6 +12482,7 @@ snapshots: w3c-xmlserializer@5.0.0: dependencies: xml-name-validator: 5.0.0 + optional: true walk-up-path@3.0.1: {} @@ -12458,13 +12502,18 @@ snapshots: whatwg-encoding@3.1.1: dependencies: iconv-lite: 0.6.3 + optional: true + + whatwg-mimetype@3.0.0: {} - whatwg-mimetype@4.0.0: {} + whatwg-mimetype@4.0.0: + optional: true whatwg-url@14.0.0: dependencies: tr46: 5.0.0 webidl-conversions: 7.0.0 + optional: true whatwg-url@5.0.0: dependencies: @@ -12567,13 +12616,16 @@ snapshots: wrappy@1.0.2: {} - ws@8.17.0: {} + ws@8.17.0: + optional: true ws@8.17.1: {} - xml-name-validator@5.0.0: {} + xml-name-validator@5.0.0: + optional: true - xmlchars@2.2.0: {} + xmlchars@2.2.0: + optional: true xtend@4.0.2: optional: true diff --git a/vite.config.ts b/vite.config.ts index 38cf26cc..dee661c5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,9 +5,6 @@ import { svelte } from '@sveltejs/vite-plugin-svelte'; import inspect from 'vite-plugin-inspect'; export default defineConfig({ - // define: { - // 'import.meta.vitest': 'undefined', - // }, plugins: [ svelte(), inspect({ @@ -17,8 +14,7 @@ export default defineConfig({ ], test: { dir: './src/', - environment: 'jsdom', + environment: 'happy-dom', globals: true, - // includeSource: ['**/*.ts'], }, }); From d8b47ebae649ab5e9a8773db5a837c07997ad930 Mon Sep 17 00:00:00 2001 From: Mateusz Kadlubowski Date: Wed, 13 Nov 2024 12:48:26 +0800 Subject: [PATCH 02/16] update `vitest` dependencies --- package.json | 4 +- pnpm-lock.yaml | 599 +++++++++---------------------------------------- 2 files changed, 105 insertions(+), 498 deletions(-) diff --git a/package.json b/package.json index 7b136b62..3dd63b5b 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,7 @@ "@tsconfig/svelte": "^5.0.4", "@types/estree": "^1.0.6", "@types/node": "^20.14.9", - "@vitest/ui": "^1.6.0", + "@vitest/ui": "^2.1.4", "auto": "^11.1.6", "chromatic": "^11.16.1", "concurrently": "^8.2.2", @@ -108,7 +108,7 @@ "vite": "^5.3.2", "vite-plugin-inspect": "^0.8.4", "vite-plugin-virtual": "^0.3.0", - "vitest": "^1.6.0" + "vitest": "^2.1.4" }, "peerDependencies": { "@storybook/svelte": "^8.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 00264d26..7a3d260d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -88,8 +88,8 @@ importers: specifier: ^20.14.9 version: 20.14.9 '@vitest/ui': - specifier: ^1.6.0 - version: 1.6.0(vitest@1.6.0) + specifier: ^2.1.4 + version: 2.1.4(vitest@2.1.4) auto: specifier: ^11.1.6 version: 11.1.6(@types/node@20.14.9)(typescript@5.5.2) @@ -151,8 +151,8 @@ importers: specifier: ^0.3.0 version: 0.3.0(vite@5.3.2(@types/node@20.14.9)) vitest: - specifier: ^1.6.0 - version: 1.6.0(@types/node@20.14.9)(@vitest/ui@1.6.0)(happy-dom@15.11.4)(jsdom@24.1.0) + specifier: ^2.1.4 + version: 2.1.4(@types/node@20.14.9)(@vitest/ui@2.1.4)(happy-dom@15.11.4)(jsdom@24.1.0) packages: @@ -238,16 +238,20 @@ packages: resolution: {integrity: sha512-INCKxTtbXtcNbUZ3YXutwMpEleqttcswhAdee7dhuoVrD2cnuc3PqtERBtxkX5nziX9vnBL8WXmSGwv8CuPV6g==} engines: {node: '>=6.9.0'} - '@babel/compat-data@7.26.0': - resolution: {integrity: sha512-qETICbZSLe7uXv9VE8T/RWOdIE5qqyTucOt4zLYMafj2MRO271VGgLd4RACJMeBO37UPWhXiKMBk7YlJ0fOzQA==} + '@babel/code-frame@7.26.2': + resolution: {integrity: sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==} + engines: {node: '>=6.9.0'} + + '@babel/compat-data@7.26.2': + resolution: {integrity: sha512-Z0WgzSEa+aUcdiJuCIqgujCshpMWgUpgOxXotrYPSA53hA3qopNaqcJpyr0hVb1FeWdnqFA35/fUtXgBK8srQg==} engines: {node: '>=6.9.0'} '@babel/core@7.26.0': resolution: {integrity: sha512-i1SLeK+DzNnQ3LL/CswPCa/E5u4lh1k6IAEphON8F+cXt0t9euTshDru0q7/IqMa1PMPz5RnHuHscF8/ZJsStg==} engines: {node: '>=6.9.0'} - '@babel/generator@7.26.0': - resolution: {integrity: sha512-/AIkAmInnWwgEAJGQr9vY0c66Mj6kjkE2ZPB1PurTRaRAh3U+J45sAQMjQDJdh4WbR3l0x5xkimXBKyBXXAu2w==} + '@babel/generator@7.26.2': + resolution: {integrity: sha512-zevQbhbau95nkoxSq3f/DC/SC+EEOUZd3DYqfSkMhY2/wfSeaHV1Ew4vk8e+x8lja31IbyuUa2uQ3JONqKbysw==} engines: {node: '>=6.9.0'} '@babel/helper-compilation-targets@7.25.9': @@ -301,8 +305,8 @@ packages: engines: {node: '>=6.0.0'} hasBin: true - '@babel/parser@7.26.1': - resolution: {integrity: sha512-reoQYNiAJreZNsJzyrDNzFQ+IQ5JFiIzAHJg9bn94S3l+4++J7RsIhNMoB+lgP/9tpmiAQqspv+xfdxTSzREOw==} + '@babel/parser@7.26.2': + resolution: {integrity: sha512-DWMCZH9WA4Maitz2q21SRKHo9QXZxkDsbNZoVD62gusNtNBBqDg9i7uOhASfTfIGNzW+O+r7+jAlM8dwphcJKQ==} engines: {node: '>=6.0.0'} hasBin: true @@ -582,10 +586,6 @@ packages: resolution: {integrity: sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==} engines: {node: '>=8'} - '@jest/schemas@29.6.3': - resolution: {integrity: sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - '@jridgewell/gen-mapping@0.3.5': resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==} engines: {node: '>=6.0.0'} @@ -716,6 +716,9 @@ packages: '@polka/url@1.0.0-next.25': resolution: {integrity: sha512-j7P6Rgr3mmtdkeDGTe0E/aYyWEWVtc5yFXtHCRHs28/jptDEWfaVOc5T7cblqy1XKPPfCxJc/8DwQ5YgLOZOVQ==} + '@polka/url@1.0.0-next.28': + resolution: {integrity: sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw==} + '@rollup/pluginutils@5.1.0': resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==} engines: {node: '>=14.0.0'} @@ -811,9 +814,6 @@ packages: '@shikijs/vscode-textmate@9.2.0': resolution: {integrity: sha512-5FinaOp6Vdh/dl4/yaOTh0ZeKch+rYS8DUb38V3GMKYVkdqzxw53lViRKUYkVILRiVQT7dcPC7VvAKOR73zVtQ==} - '@sinclair/typebox@0.27.8': - resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} - '@sindresorhus/merge-streams@2.3.0': resolution: {integrity: sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==} engines: {node: '>=18'} @@ -1283,9 +1283,6 @@ packages: '@vitest/browser': optional: true - '@vitest/expect@1.6.0': - resolution: {integrity: sha512-ixEvFVQjycy/oNgHjqsL6AZCDduC+tflRluaHIzKIsdbzkLn2U/iBnVeJwB6HsIjQBdfMR8Z0tRxKUsvFJEeWQ==} - '@vitest/expect@2.0.5': resolution: {integrity: sha512-yHZtwuP7JZivj65Gxoi8upUN2OzHTi3zVfjwdpu2WrvCZPLwsJ2Ey5ILIPccoW23dd/zQBlJ4/dhi7DWNyXCpA==} @@ -1309,40 +1306,23 @@ packages: '@vitest/pretty-format@2.1.4': resolution: {integrity: sha512-L95zIAkEuTDbUX1IsjRl+vyBSLh3PwLLgKpghl37aCK9Jvw0iP+wKwIFhfjdUtA2myLgjrG6VU6JCFLv8q/3Ww==} - '@vitest/runner@1.6.0': - resolution: {integrity: sha512-P4xgwPjwesuBiHisAVz/LSSZtDjOTPYZVmNAnpHHSR6ONrf8eCJOFRvUwdHn30F5M1fxhqtl7QZQUk2dprIXAg==} - '@vitest/runner@2.1.4': resolution: {integrity: sha512-sKRautINI9XICAMl2bjxQM8VfCMTB0EbsBc/EDFA57V6UQevEKY/TOPOF5nzcvCALltiLfXWbq4MaAwWx/YxIA==} - '@vitest/snapshot@1.6.0': - resolution: {integrity: sha512-+Hx43f8Chus+DCmygqqfetcAZrDJwvTj0ymqjQq4CvmpKFSTVteEOBzCusu1x2tt4OJcvBflyHUE0DZSLgEMtQ==} - '@vitest/snapshot@2.1.4': resolution: {integrity: sha512-3Kab14fn/5QZRog5BPj6Rs8dc4B+mim27XaKWFWHWA87R56AKjHTGcBFKpvZKDzC4u5Wd0w/qKsUIio3KzWW4Q==} - '@vitest/spy@1.6.0': - resolution: {integrity: sha512-leUTap6B/cqi/bQkXUu6bQV5TZPx7pmMBKBQiI0rJA8c3pB56ZsaTbREnF7CJfmvAS4V2cXIBAh/3rVwrrCYgw==} - '@vitest/spy@2.0.5': resolution: {integrity: sha512-c/jdthAhvJdpfVuaexSrnawxZz6pywlTPe84LUB2m/4t3rl2fTo9NFGBG4oWgaD+FTgDDV8hJ/nibT7IfH3JfA==} '@vitest/spy@2.1.4': resolution: {integrity: sha512-4JOxa+UAizJgpZfaCPKK2smq9d8mmjZVPMt2kOsg/R8QkoRzydHH1qHxIYNvr1zlEaFj4SXiaaJWxq/LPLKaLg==} - '@vitest/ui@1.6.0': - resolution: {integrity: sha512-k3Lyo+ONLOgylctiGovRKy7V4+dIN2yxstX3eY5cWFXH6WP+ooVX79YSyi0GagdTQzLmT43BF27T0s6dOIPBXA==} - peerDependencies: - vitest: 1.6.0 - '@vitest/ui@2.1.4': resolution: {integrity: sha512-Zd9e5oU063c+j9N9XzGJagCLNvG71x/2tOme3Js4JEZKX55zsgxhJwUgLI8hkN6NjMLpdJO8d7nVUUuPGAA58Q==} peerDependencies: vitest: 2.1.4 - '@vitest/utils@1.6.0': - resolution: {integrity: sha512-21cPiuGMoMZwiOHa2i4LXkMkMkCGzA+MVFV70jRwHo95dL4x/ts5GZhML1QWuy7yfp3WzK3lRvZi3JnXTYqrBw==} - '@vitest/utils@2.0.5': resolution: {integrity: sha512-d8HKbqIcya+GR67mkZbrzhS5kKhtp8dQLcmRZLGTscGVg7yImT82cIrhtn2L8+VujWcy6KZweApgNmPsTAO/UQ==} @@ -1374,10 +1354,6 @@ packages: peerDependencies: acorn: '>=8.9.0' - acorn-walk@8.3.2: - resolution: {integrity: sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==} - engines: {node: '>=0.4.0'} - acorn-walk@8.3.3: resolution: {integrity: sha512-MxXdReSRhGO7VlFe1bRG/oI7/mdLV9B9JJT0N8vZOhF7gFRR5l3M8W9G8JxmKV+JC5mGqJ0QvqfSOLsCPa4nUw==} engines: {node: '>=0.4.0'} @@ -1549,9 +1525,6 @@ packages: resolution: {integrity: sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==} engines: {node: '>=0.10.0'} - assertion-error@1.1.0: - resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} - assertion-error@2.0.1: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} @@ -1710,12 +1683,8 @@ packages: resolution: {integrity: sha512-xlx1yCK2Oc1APsPXDL2LdlNP6+uu8OCDdhOBSVT279M/S+y75O30C2VuD8T2ogdePBBl7PfPF4504tnLgX3zfw==} engines: {node: '>=14.16'} - caniuse-lite@1.0.30001674: - resolution: {integrity: sha512-jOsKlZVRnzfhLojb+Ykb+gyUSp9Xb57So+fAiFlLzzTKpqg8xxSav0e40c8/4F/v9N8QSvrRRaLeVzQbLqomYw==} - - chai@4.4.1: - resolution: {integrity: sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==} - engines: {node: '>=4'} + caniuse-lite@1.0.30001680: + resolution: {integrity: sha512-rPQy70G6AGUMnbwS1z6Xg+RkHYPAi18ihs47GH0jcxIG7wArmPgY3XbS2sRdBbxJljp3thdT8BIqv9ccCypiPA==} chai@5.1.2: resolution: {integrity: sha512-aGtmf24DW6MLHHG5gCx4zaI3uBq3KRtxeVs0DjFH6Z0rDNbsvTxFASFvdj79pxjxZ8/5u3PIiN3IwEIQkiiuPw==} @@ -1751,9 +1720,6 @@ packages: chardet@0.7.0: resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==} - check-error@1.0.3: - resolution: {integrity: sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==} - check-error@2.1.1: resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==} engines: {node: '>= 16'} @@ -1870,9 +1836,6 @@ packages: engines: {node: ^14.13.0 || >=16.0.0} hasBin: true - confbox@0.1.7: - resolution: {integrity: sha512-uJcB/FKZtBMCJpK8MQji6bJHgu1tixKPxRLeGkNzBoOZzpnZUJm0jm2/sBDWcuBx1dYgxV4JU+g5hmNxCyAmdA==} - confusing-browser-globals@1.0.11: resolution: {integrity: sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==} @@ -1937,8 +1900,8 @@ packages: css.escape@1.5.1: resolution: {integrity: sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==} - cssstyle@4.0.1: - resolution: {integrity: sha512-8ZYiJ3A/3OkDd093CBT/0UKDWry7ak4BdPTFP2+QEP7cmhouyq/Up709ASSj2cK02BbZiMgk7kYjZNS4QP5qrQ==} + cssstyle@4.1.0: + resolution: {integrity: sha512-h66W1URKpBS5YMI/V8PyXvTMFT8SupJ1IzoIV8IeBC/ji8WVmrO8dGlTi+2dh6whmdk6BiKJLD/ZBkhWbcg6nA==} engines: {node: '>=18'} csstype@3.1.3: @@ -2045,10 +2008,6 @@ packages: babel-plugin-macros: optional: true - deep-eql@4.1.4: - resolution: {integrity: sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==} - engines: {node: '>=6'} - deep-eql@5.0.2: resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==} engines: {node: '>=6'} @@ -2124,10 +2083,6 @@ packages: didyoumean@1.2.2: resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==} - diff-sequences@29.6.3: - resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - diff@4.0.2: resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} engines: {node: '>=0.3.1'} @@ -2185,8 +2140,8 @@ packages: ee-first@1.1.1: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} - electron-to-chromium@1.5.49: - resolution: {integrity: sha512-ZXfs1Of8fDb6z7WEYZjXpgIRF6MEu8JdeGA0A40aZq6OQbS+eJpnnV49epZRna2DU/YsEjSQuGtQPPtvt6J65A==} + electron-to-chromium@1.5.57: + resolution: {integrity: sha512-xS65H/tqgOwUBa5UmOuNSLuslDo7zho0y/lgQw35pnrqiZh7UOWHCeL/Bt6noJATbA6tpQJGCifsFsIRZj1Fqg==} emoji-regex@10.3.0: resolution: {integrity: sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw==} @@ -2521,10 +2476,6 @@ packages: resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} engines: {node: '>=10'} - execa@8.0.1: - resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==} - engines: {node: '>=16.17'} - expect-type@1.1.0: resolution: {integrity: sha512-bFi65yM+xZgk+u/KRIpekdSYkTB5W1pEf0Lt8Q8Msh7b+eQ7LXVtIB1Bkm4fvclDEL1b2CZkMhv2mOeF8tMdkA==} engines: {node: '>=12.0.0'} @@ -2635,8 +2586,8 @@ packages: resolution: {integrity: sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==} engines: {node: '>=14'} - form-data@4.0.0: - resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==} + form-data@4.0.1: + resolution: {integrity: sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==} engines: {node: '>= 6'} forwarded@0.2.0: @@ -2705,10 +2656,6 @@ packages: resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==} engines: {node: '>=10'} - get-stream@8.0.1: - resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==} - engines: {node: '>=16'} - get-symbol-description@1.0.2: resolution: {integrity: sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==} engines: {node: '>= 0.4'} @@ -2886,18 +2833,14 @@ packages: resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==} engines: {node: '>= 6'} - https-proxy-agent@7.0.4: - resolution: {integrity: sha512-wlwpilI7YdjSkWaQ/7omYBMTliDcmCN8OLihO6I9B86g06lMyAoqgoDpV0XqoaPOKj+0DIdAvnsWfyAAhmimcg==} + https-proxy-agent@7.0.5: + resolution: {integrity: sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==} engines: {node: '>= 14'} human-signals@2.1.0: resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==} engines: {node: '>=10.17.0'} - human-signals@5.0.0: - resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==} - engines: {node: '>=16.17.0'} - iconv-lite@0.4.24: resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} engines: {node: '>=0.10.0'} @@ -3125,10 +3068,6 @@ packages: resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} engines: {node: '>=8'} - is-stream@3.0.0: - resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - is-string@1.0.7: resolution: {integrity: sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==} engines: {node: '>= 0.4'} @@ -3214,9 +3153,6 @@ packages: js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} - js-tokens@9.0.0: - resolution: {integrity: sha512-WriZw1luRMlmV3LGJaR6QOJjWwgLUTf89OwT2lUOyjX2dJGBwgmIkbcz+7WFZjrZM635JOIR517++e/67CP9dQ==} - js-yaml@3.14.1: resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} hasBin: true @@ -3345,10 +3281,6 @@ packages: load-plugin@6.0.3: resolution: {integrity: sha512-kc0X2FEUZr145odl68frm+lMJuQ23+rTXYmR6TImqPtbpmXC4vVXbWKDQ9IzndA0HfyQamWfKLhzsqGSTxE63w==} - local-pkg@0.5.0: - resolution: {integrity: sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==} - engines: {node: '>=14'} - locate-character@3.0.0: resolution: {integrity: sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==} @@ -3392,9 +3324,6 @@ packages: resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} hasBin: true - loupe@2.3.7: - resolution: {integrity: sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==} - loupe@3.1.1: resolution: {integrity: sha512-edNu/8D5MKVfGVFRhFf8aAxiTM6Wumfz5XsaatSxlD3w4R1d/WEKUTydCdPGbl9K7QG/Ca3GnDV2sIKIpXRQcw==} @@ -3705,10 +3634,6 @@ packages: resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==} engines: {node: '>=6'} - mimic-fn@4.0.0: - resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==} - engines: {node: '>=12'} - min-indent@1.0.1: resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} engines: {node: '>=4'} @@ -3743,9 +3668,6 @@ packages: resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} engines: {node: '>=16 || 14 >=14.17'} - mlly@1.7.1: - resolution: {integrity: sha512-rrVRZRELyQzrIUAVMHxP97kv+G786pHmOKzuFII8zDYahFBS7qnHh2AlYSl1GAHhaMPCz6/oHjVMcfFYgFYHgA==} - modify-values@1.0.1: resolution: {integrity: sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==} engines: {node: '>=0.10.0'} @@ -3846,12 +3768,8 @@ packages: resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==} engines: {node: '>=8'} - npm-run-path@5.3.0: - resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - - nwsapi@2.2.10: - resolution: {integrity: sha512-QK0sRs7MKv0tKe1+5uZIQk/C8XGza4DAnztJG8iD+TpJIORARrCxczA738awHrZoHeTjSSoHqao2teO0dC/gFQ==} + nwsapi@2.2.13: + resolution: {integrity: sha512-cTGB9ptp9dY9A5VbMSe7fQBcl/tt22Vcqdq8+eN93rblOuE0aCFu4aZ2vMwct/2t+lFnosm8RkQW1I0Omb1UtQ==} object-assign@4.1.1: resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} @@ -3906,10 +3824,6 @@ packages: resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==} engines: {node: '>=6'} - onetime@6.0.0: - resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==} - engines: {node: '>=12'} - open@10.1.0: resolution: {integrity: sha512-mnkeQ1qP5Ue2wd+aivTD3NHd/lZ96Lu0jgf0pwktLPtx6cTZiH7tyeGRRHs0zX0rbrahXPnXlUnbeXyaBBuIaw==} engines: {node: '>=18'} @@ -3942,10 +3856,6 @@ packages: resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} engines: {node: '>=6'} - p-limit@5.0.0: - resolution: {integrity: sha512-/Eaoq+QyLSiXQ4lyYV23f14mZRQcXnxfHrN0vCai+ak9G0pp9iEQukIIZq5NccEvwRB8PUnZT0KsOoDCINS1qQ==} - engines: {node: '>=18'} - p-locate@2.0.0: resolution: {integrity: sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==} engines: {node: '>=4'} @@ -3994,8 +3904,8 @@ packages: resolution: {integrity: sha512-kHt7kzLoS9VBZfUsiKjv43mr91ea+U05EyKkEtqp7vNbHxmaVuEqN7XxeEVnGrMtYOAxGrDElSi96K7EgO1zCA==} engines: {node: '>=6'} - parse5@7.1.2: - resolution: {integrity: sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==} + parse5@7.2.1: + resolution: {integrity: sha512-BuBYQYlv1ckiPdQi/ohiivi9Sagc9JG+Ozs0r7b/0iK3sKmrb0b9FdWdBbOdx6hBCM/F9Ir82ofnBhtZOjCRPQ==} parseurl@1.3.3: resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} @@ -4023,10 +3933,6 @@ packages: resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} engines: {node: '>=8'} - path-key@4.0.0: - resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} - engines: {node: '>=12'} - path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} @@ -4055,9 +3961,6 @@ packages: pathe@1.1.2: resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} - pathval@1.1.1: - resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} - pathval@2.0.0: resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==} engines: {node: '>= 14.16'} @@ -4107,9 +4010,6 @@ packages: resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==} engines: {node: '>=8'} - pkg-types@1.1.1: - resolution: {integrity: sha512-ko14TjmDuQJ14zsotODv7dBlwxKhUKQEhuhmbqo1uCi9BB0Z2alo/wAXg6q1dTR5TyuqYyWhjtfe/Tsh+X28jQ==} - pluralize@8.0.0: resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==} engines: {node: '>=4'} @@ -4158,10 +4058,6 @@ packages: resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==} engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - pretty-format@29.7.0: - resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - pretty-ms@7.0.1: resolution: {integrity: sha512-973driJZvxiGOQ5ONsFhOF/DtzPMOMtgC11kCpUrPGMTgqp2q/1gwzCquocrN33is0VZ5GFHXZYMM9l6h67v2Q==} engines: {node: '>=10'} @@ -4200,8 +4096,8 @@ packages: resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==} engines: {node: '>= 0.10'} - psl@1.9.0: - resolution: {integrity: sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==} + psl@1.10.0: + resolution: {integrity: sha512-KSKHEbjAnpUuAUserOq0FxGXCUrzC3WniuSJhvdbs102rL55266ZcHBqLWOsG30spQMlPdpy7icATiAQehg/iA==} punycode.js@2.3.1: resolution: {integrity: sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==} @@ -4265,9 +4161,6 @@ packages: react-is@17.0.2: resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==} - react-is@18.3.1: - resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==} - react@18.3.1: resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==} engines: {node: '>=0.10.0'} @@ -4486,11 +4379,8 @@ packages: engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true - rrweb-cssom@0.6.0: - resolution: {integrity: sha512-APM0Gt1KoXBz0iIkkdB/kfvGOwC4UuJFeG/c+yV7wSc7q96cG/kJ0HiYCnzivD9SB53cLV1MlHFNfOuPaadYSw==} - - rrweb-cssom@0.7.0: - resolution: {integrity: sha512-KlSv0pm9kgQSRxXEMgtivPJ4h826YHsuob8pSHcfSZsSXGtvpEAie8S0AnXuObEJ7nhikOb4ahwxDm0H2yW17g==} + rrweb-cssom@0.7.1: + resolution: {integrity: sha512-TrEMa7JGdVm0UThDJSx7ddw5nVm3UJS9o9CCIZ72B1vSyEZoziDqBYP3XIoi/12lKrJR8rE3jeFHMok2F/Mnsg==} run-applescript@7.0.0: resolution: {integrity: sha512-9by4Ij99JUr/MCFBUkDKLWK3G9HVXmabKz9U5MlIAIuvuzkiOicRYs8XJLxX+xahD+mLiiCYDqF9dKAgtzKP1A==} @@ -4701,6 +4591,9 @@ packages: std-env@3.7.0: resolution: {integrity: sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==} + std-env@3.8.0: + resolution: {integrity: sha512-Bc3YwwCB+OzldMxOXJIIvC6cPRWr/LxOp48CdQTOkPyk/t4JWWJbrilwBd7RJzKV8QW7tJkcgAmeuLLJugl5/w==} + storybook@8.3.5: resolution: {integrity: sha512-hYQVtP2l+3kO8oKDn4fjXXQYxgTRsj/LaV6lUMJH0zt+OhVmDXKJLxmdUP4ieTm0T8wEbSYosFavgPcQZlxRfw==} hasBin: true @@ -4754,10 +4647,6 @@ packages: resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==} engines: {node: '>=6'} - strip-final-newline@3.0.0: - resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==} - engines: {node: '>=12'} - strip-indent@3.0.0: resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} engines: {node: '>=8'} @@ -4770,9 +4659,6 @@ packages: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} - strip-literal@2.1.0: - resolution: {integrity: sha512-Op+UycaUt/8FbN/Z2TWPBLge3jWrP3xj10f3fnYxf052bKuS3EKs1ZQcVGjnEMdsNVAM+plXRdmjrZ/KgG3Skw==} - supports-color@5.5.0: resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} engines: {node: '>=4'} @@ -4911,9 +4797,6 @@ packages: tiny-invariant@1.3.3: resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==} - tinybench@2.8.0: - resolution: {integrity: sha512-1/eK7zUnIklz4JUUlL+658n58XO2hHLQfSk1Zf2LKieUjxidN16eKFEoDEfjHc3ohofSSqK3X5yO6VGb6iW8Lw==} - tinybench@2.9.0: resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} @@ -4927,10 +4810,6 @@ packages: resolution: {integrity: sha512-Zc+8eJlFMvgatPZTl6A9L/yht8QqdmUNtURHaKZLmKBE12hNPSrqNkUp2cs3M/UKmNVVAMFQYSjYIVHDjW5zew==} engines: {node: '>=12.0.0'} - tinypool@0.8.4: - resolution: {integrity: sha512-i11VH5gS6IFeLY3gMBQ00/MmLncVP7JLXOw1vlgkytLmJK7QnEr7NXf0LBdxfmNPAeyetukOk0bOYrJrFGjYJQ==} - engines: {node: '>=14.0.0'} - tinypool@1.0.1: resolution: {integrity: sha512-URZYihUbRPcGv95En+sz6MfghfIc2OJ1sv/RmhWZLouPY0/8Vo80viwPvg3dlaS9fuq7fQMEfgRRK7BBZThBEA==} engines: {node: ^18.0.0 || >=20.0.0} @@ -4939,10 +4818,6 @@ packages: resolution: {integrity: sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==} engines: {node: '>=14.0.0'} - tinyspy@2.2.1: - resolution: {integrity: sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==} - engines: {node: '>=14.0.0'} - tinyspy@3.0.2: resolution: {integrity: sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==} engines: {node: '>=14.0.0'} @@ -5045,10 +4920,6 @@ packages: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} - type-detect@4.0.8: - resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==} - engines: {node: '>=4'} - type-fest@0.18.1: resolution: {integrity: sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==} engines: {node: '>=10'} @@ -5144,9 +5015,6 @@ packages: uc.micro@2.1.0: resolution: {integrity: sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==} - ufo@1.5.3: - resolution: {integrity: sha512-Y7HYmWaFwPUmkoQCUIAYpKqkOf+SbVj/2fJJZ4RJMCfZp0rTGwRbzQD+HghfnhKOjL9E01okqz+ncJskGYfBNw==} - uglify-js@3.19.3: resolution: {integrity: sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==} engines: {node: '>=0.8.0'} @@ -5325,11 +5193,6 @@ packages: vfile@6.0.1: resolution: {integrity: sha512-1bYqc7pt6NIADBJ98UiG0Bn/CHIVOoZ/IyEkqIruLg0mE1BKzkOXY2D6CSqQIcKqgadppE5lrxgWXJmXd7zZJw==} - vite-node@1.6.0: - resolution: {integrity: sha512-de6HJgzC+TFzOu0NTC4RAIsyf/DY/ibWDYQUcuEA84EMHhcefTUGkjFHKKEJhQN4A+6I0u++kr3l36ZF2d7XRw==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - vite-node@2.1.4: resolution: {integrity: sha512-kqa9v+oi4HwkG6g8ufRnb5AeplcRw8jUF6/7/Qz1qRQOXHImG8YnLbB+LLszENwFnoBl9xIf9nVdCFzNd7GQEg==} engines: {node: ^18.0.0 || >=20.0.0} @@ -5386,31 +5249,6 @@ packages: vite: optional: true - vitest@1.6.0: - resolution: {integrity: sha512-H5r/dN06swuFnzNFhq/dnz37bPXnq8xB2xB5JOVk8K09rUtoeNN+LHWkoQ0A/i3hvbUKKcCei9KpbxqHMLhLLA==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - peerDependencies: - '@edge-runtime/vm': '*' - '@types/node': ^18.0.0 || >=20.0.0 - '@vitest/browser': 1.6.0 - '@vitest/ui': 1.6.0 - happy-dom: '*' - jsdom: '*' - peerDependenciesMeta: - '@edge-runtime/vm': - optional: true - '@types/node': - optional: true - '@vitest/browser': - optional: true - '@vitest/ui': - optional: true - happy-dom: - optional: true - jsdom: - optional: true - vitest@2.1.4: resolution: {integrity: sha512-eDjxbVAJw1UJJCHr5xr/xM86Zx+YxIEXGAR+bmnEID7z9qWfoxpHw0zdobz+TQAFOLT+nEXz3+gx6nUJ7RgmlQ==} engines: {node: ^18.0.0 || >=20.0.0} @@ -5522,11 +5360,6 @@ packages: engines: {node: ^16.13.0 || >=18.0.0} hasBin: true - why-is-node-running@2.2.2: - resolution: {integrity: sha512-6tSwToZxTOcotxHeA+qGCq1mVzKR3CwcJGmVcY+QE8SHy6TnpFnh8PAvPNHYr7EcuVeG0QSMxtYCuO1ta/G/oA==} - engines: {node: '>=8'} - hasBin: true - why-is-node-running@2.3.0: resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} engines: {node: '>=8'} @@ -5562,8 +5395,8 @@ packages: wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} - ws@8.17.0: - resolution: {integrity: sha512-uJq6108EgZMAl20KagGkzCKfMEjxmKvZHG7Tlq0Z6nOky7YF7aq4mOx6xK8TJ/i1LeK4Qus7INktacctDgY8Ow==} + ws@8.17.1: + resolution: {integrity: sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==} engines: {node: '>=10.0.0'} peerDependencies: bufferutil: ^4.0.1 @@ -5574,8 +5407,8 @@ packages: utf-8-validate: optional: true - ws@8.17.1: - resolution: {integrity: sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==} + ws@8.18.0: + resolution: {integrity: sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==} engines: {node: '>=10.0.0'} peerDependencies: bufferutil: ^4.0.1 @@ -5652,10 +5485,6 @@ packages: resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} engines: {node: '>=6'} - yocto-queue@1.0.0: - resolution: {integrity: sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==} - engines: {node: '>=12.20'} - zimmerframe@1.1.2: resolution: {integrity: sha512-rAbqEGa8ovJy4pyBxZM70hg4pE6gDgaQ0Sl9M3enG3I0d6H4XSAM3GeNGLKnsBpuijUow064sf7ww1nutC5/3w==} @@ -5980,18 +5809,25 @@ snapshots: js-tokens: 4.0.0 picocolors: 1.1.1 - '@babel/compat-data@7.26.0': + '@babel/code-frame@7.26.2': + dependencies: + '@babel/helper-validator-identifier': 7.25.9 + js-tokens: 4.0.0 + picocolors: 1.1.1 + optional: true + + '@babel/compat-data@7.26.2': optional: true '@babel/core@7.26.0': dependencies: '@ampproject/remapping': 2.3.0 - '@babel/code-frame': 7.26.0 - '@babel/generator': 7.26.0 + '@babel/code-frame': 7.26.2 + '@babel/generator': 7.26.2 '@babel/helper-compilation-targets': 7.25.9 '@babel/helper-module-transforms': 7.26.0(@babel/core@7.26.0) '@babel/helpers': 7.26.0 - '@babel/parser': 7.26.1 + '@babel/parser': 7.26.2 '@babel/template': 7.25.9 '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 @@ -6004,9 +5840,9 @@ snapshots: - supports-color optional: true - '@babel/generator@7.26.0': + '@babel/generator@7.26.2': dependencies: - '@babel/parser': 7.26.1 + '@babel/parser': 7.26.2 '@babel/types': 7.26.0 '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 @@ -6015,7 +5851,7 @@ snapshots: '@babel/helper-compilation-targets@7.25.9': dependencies: - '@babel/compat-data': 7.26.0 + '@babel/compat-data': 7.26.2 '@babel/helper-validator-option': 7.25.9 browserslist: 4.24.2 lru-cache: 5.1.1 @@ -6074,7 +5910,7 @@ snapshots: '@babel/types': 7.25.8 optional: true - '@babel/parser@7.26.1': + '@babel/parser@7.26.2': dependencies: '@babel/types': 7.26.0 optional: true @@ -6089,16 +5925,16 @@ snapshots: '@babel/template@7.25.9': dependencies: - '@babel/code-frame': 7.26.0 - '@babel/parser': 7.26.1 + '@babel/code-frame': 7.26.2 + '@babel/parser': 7.26.2 '@babel/types': 7.26.0 optional: true '@babel/traverse@7.25.9': dependencies: - '@babel/code-frame': 7.26.0 - '@babel/generator': 7.26.0 - '@babel/parser': 7.26.1 + '@babel/code-frame': 7.26.2 + '@babel/generator': 7.26.2 + '@babel/parser': 7.26.2 '@babel/template': 7.25.9 '@babel/types': 7.26.0 debug: 4.3.7 @@ -6312,10 +6148,6 @@ snapshots: '@istanbuljs/schema@0.1.3': optional: true - '@jest/schemas@29.6.3': - dependencies: - '@sinclair/typebox': 0.27.8 - '@jridgewell/gen-mapping@0.3.5': dependencies: '@jridgewell/set-array': 1.2.1 @@ -6510,6 +6342,8 @@ snapshots: '@polka/url@1.0.0-next.25': {} + '@polka/url@1.0.0-next.28': {} + '@rollup/pluginutils@5.1.0(rollup@4.18.0)': dependencies: '@types/estree': 1.0.6 @@ -6575,8 +6409,6 @@ snapshots: '@shikijs/vscode-textmate@9.2.0': optional: true - '@sinclair/typebox@0.27.8': {} - '@sindresorhus/merge-streams@2.3.0': optional: true @@ -7248,12 +7080,6 @@ snapshots: - supports-color optional: true - '@vitest/expect@1.6.0': - dependencies: - '@vitest/spy': 1.6.0 - '@vitest/utils': 1.6.0 - chai: 4.4.1 - '@vitest/expect@2.0.5': dependencies: '@vitest/spy': 2.0.5 @@ -7267,7 +7093,6 @@ snapshots: '@vitest/utils': 2.1.4 chai: 5.1.2 tinyrainbow: 1.2.0 - optional: true '@vitest/mocker@2.1.4(vite@5.3.2(@types/node@20.14.9))': dependencies: @@ -7276,7 +7101,6 @@ snapshots: magic-string: 0.30.12 optionalDependencies: vite: 5.3.2(@types/node@20.14.9) - optional: true '@vitest/pretty-format@2.0.5': dependencies: @@ -7286,34 +7110,16 @@ snapshots: dependencies: tinyrainbow: 1.2.0 - '@vitest/runner@1.6.0': - dependencies: - '@vitest/utils': 1.6.0 - p-limit: 5.0.0 - pathe: 1.1.2 - '@vitest/runner@2.1.4': dependencies: '@vitest/utils': 2.1.4 pathe: 1.1.2 - optional: true - - '@vitest/snapshot@1.6.0': - dependencies: - magic-string: 0.30.12 - pathe: 1.1.2 - pretty-format: 29.7.0 '@vitest/snapshot@2.1.4': dependencies: '@vitest/pretty-format': 2.1.4 magic-string: 0.30.12 pathe: 1.1.2 - optional: true - - '@vitest/spy@1.6.0': - dependencies: - tinyspy: 2.2.1 '@vitest/spy@2.0.5': dependencies: @@ -7322,18 +7128,6 @@ snapshots: '@vitest/spy@2.1.4': dependencies: tinyspy: 3.0.2 - optional: true - - '@vitest/ui@1.6.0(vitest@1.6.0)': - dependencies: - '@vitest/utils': 1.6.0 - fast-glob: 3.3.2 - fflate: 0.8.2 - flatted: 3.3.1 - pathe: 1.1.2 - picocolors: 1.0.1 - sirv: 2.0.4 - vitest: 1.6.0(@types/node@20.14.9)(@vitest/ui@1.6.0)(happy-dom@15.11.4)(jsdom@24.1.0) '@vitest/ui@2.1.4(vitest@2.1.4)': dependencies: @@ -7345,14 +7139,6 @@ snapshots: tinyglobby: 0.2.10 tinyrainbow: 1.2.0 vitest: 2.1.4(@types/node@20.14.9)(@vitest/ui@2.1.4)(happy-dom@15.11.4)(jsdom@24.1.0) - optional: true - - '@vitest/utils@1.6.0': - dependencies: - diff-sequences: 29.6.3 - estree-walker: 3.0.3 - loupe: 2.3.7 - pretty-format: 29.7.0 '@vitest/utils@2.0.5': dependencies: @@ -7395,8 +7181,6 @@ snapshots: dependencies: acorn: 8.12.1 - acorn-walk@8.3.2: {} - acorn-walk@8.3.3: dependencies: acorn: 8.12.1 @@ -7418,7 +7202,7 @@ snapshots: agent-base@7.1.1: dependencies: - debug: 4.3.5 + debug: 4.3.7 transitivePeerDependencies: - supports-color optional: true @@ -7620,8 +7404,6 @@ snapshots: arrify@1.0.1: optional: true - assertion-error@1.1.0: {} - assertion-error@2.0.1: {} ast-types-flow@0.0.8: {} @@ -7781,8 +7563,8 @@ snapshots: browserslist@4.24.2: dependencies: - caniuse-lite: 1.0.30001674 - electron-to-chromium: 1.5.49 + caniuse-lite: 1.0.30001680 + electron-to-chromium: 1.5.57 node-releases: 2.0.18 update-browserslist-db: 1.1.1(browserslist@4.24.2) optional: true @@ -7828,19 +7610,9 @@ snapshots: camelcase@7.0.1: optional: true - caniuse-lite@1.0.30001674: + caniuse-lite@1.0.30001680: optional: true - chai@4.4.1: - dependencies: - assertion-error: 1.1.0 - check-error: 1.0.3 - deep-eql: 4.1.4 - get-func-name: 2.0.2 - loupe: 2.3.7 - pathval: 1.1.1 - type-detect: 4.0.8 - chai@5.1.2: dependencies: assertion-error: 2.0.1 @@ -7880,10 +7652,6 @@ snapshots: chardet@0.7.0: optional: true - check-error@1.0.3: - dependencies: - get-func-name: 2.0.2 - check-error@2.1.1: {} chokidar@3.6.0: @@ -8032,8 +7800,6 @@ snapshots: tree-kill: 1.2.2 yargs: 17.7.2 - confbox@0.1.7: {} - confusing-browser-globals@1.0.11: {} content-disposition@0.5.2: @@ -8123,9 +7889,9 @@ snapshots: css.escape@1.5.1: {} - cssstyle@4.0.1: + cssstyle@4.1.0: dependencies: - rrweb-cssom: 0.6.0 + rrweb-cssom: 0.7.1 optional: true csstype@3.1.3: {} @@ -8208,10 +7974,6 @@ snapshots: dedent@1.5.3: {} - deep-eql@4.1.4: - dependencies: - type-detect: 4.0.8 - deep-eql@5.0.2: {} deep-extend@0.6.0: {} @@ -8269,8 +8031,6 @@ snapshots: didyoumean@1.2.2: optional: true - diff-sequences@29.6.3: {} - diff@4.0.2: {} diff@5.2.0: {} @@ -8323,7 +8083,7 @@ snapshots: ee-first@1.1.1: {} - electron-to-chromium@1.5.49: + electron-to-chromium@1.5.57: optional: true emoji-regex@10.3.0: {} @@ -8848,20 +8608,7 @@ snapshots: signal-exit: 3.0.7 strip-final-newline: 2.0.0 - execa@8.0.1: - dependencies: - cross-spawn: 7.0.3 - get-stream: 8.0.1 - human-signals: 5.0.0 - is-stream: 3.0.0 - merge-stream: 2.0.0 - npm-run-path: 5.3.0 - onetime: 6.0.0 - signal-exit: 4.1.0 - strip-final-newline: 3.0.0 - - expect-type@1.1.0: - optional: true + expect-type@1.1.0: {} express@4.21.1: dependencies: @@ -8937,7 +8684,6 @@ snapshots: fdir@6.4.2(picomatch@4.0.2): optionalDependencies: picomatch: 4.0.2 - optional: true fflate@0.8.2: {} @@ -9011,7 +8757,7 @@ snapshots: cross-spawn: 7.0.3 signal-exit: 4.1.0 - form-data@4.0.0: + form-data@4.0.1: dependencies: asynckit: 0.4.0 combined-stream: 1.0.8 @@ -9080,8 +8826,6 @@ snapshots: get-stream@6.0.1: {} - get-stream@8.0.1: {} - get-symbol-description@1.0.2: dependencies: call-bind: 1.0.7 @@ -9317,7 +9061,7 @@ snapshots: http-proxy-agent@7.0.2: dependencies: agent-base: 7.1.1 - debug: 4.3.5 + debug: 4.3.7 transitivePeerDependencies: - supports-color optional: true @@ -9329,18 +9073,16 @@ snapshots: transitivePeerDependencies: - supports-color - https-proxy-agent@7.0.4: + https-proxy-agent@7.0.5: dependencies: agent-base: 7.1.1 - debug: 4.3.5 + debug: 4.3.7 transitivePeerDependencies: - supports-color optional: true human-signals@2.1.0: {} - human-signals@5.0.0: {} - iconv-lite@0.4.24: dependencies: safer-buffer: 2.1.2 @@ -9536,8 +9278,6 @@ snapshots: is-stream@2.0.1: {} - is-stream@3.0.0: {} - is-string@1.0.7: dependencies: has-tostringtag: 1.0.2 @@ -9635,8 +9375,6 @@ snapshots: js-tokens@4.0.0: {} - js-tokens@9.0.0: {} - js-yaml@3.14.1: dependencies: argparse: 1.0.10 @@ -9650,17 +9388,17 @@ snapshots: jsdom@24.1.0: dependencies: - cssstyle: 4.0.1 + cssstyle: 4.1.0 data-urls: 5.0.0 decimal.js: 10.4.3 - form-data: 4.0.0 + form-data: 4.0.1 html-encoding-sniffer: 4.0.0 http-proxy-agent: 7.0.2 - https-proxy-agent: 7.0.4 + https-proxy-agent: 7.0.5 is-potential-custom-element-name: 1.0.1 - nwsapi: 2.2.10 - parse5: 7.1.2 - rrweb-cssom: 0.7.0 + nwsapi: 2.2.13 + parse5: 7.2.1 + rrweb-cssom: 0.7.1 saxes: 6.0.0 symbol-tree: 3.2.4 tough-cookie: 4.1.4 @@ -9669,7 +9407,7 @@ snapshots: whatwg-encoding: 3.1.1 whatwg-mimetype: 4.0.0 whatwg-url: 14.0.0 - ws: 8.17.0 + ws: 8.18.0 xml-name-validator: 5.0.0 transitivePeerDependencies: - bufferutil @@ -9778,11 +9516,6 @@ snapshots: transitivePeerDependencies: - bluebird - local-pkg@0.5.0: - dependencies: - mlly: 1.7.1 - pkg-types: 1.1.1 - locate-character@3.0.0: {} locate-path@2.0.0: @@ -9820,10 +9553,6 @@ snapshots: dependencies: js-tokens: 4.0.0 - loupe@2.3.7: - dependencies: - get-func-name: 2.0.2 - loupe@3.1.1: dependencies: get-func-name: 2.0.2 @@ -10345,8 +10074,6 @@ snapshots: mimic-fn@2.1.0: {} - mimic-fn@4.0.0: {} - min-indent@1.0.1: {} minimatch@3.1.2: @@ -10379,13 +10106,6 @@ snapshots: minipass@7.1.2: optional: true - mlly@1.7.1: - dependencies: - acorn: 8.12.1 - pathe: 1.1.2 - pkg-types: 1.1.1 - ufo: 1.5.3 - modify-values@1.0.1: optional: true @@ -10479,11 +10199,7 @@ snapshots: dependencies: path-key: 3.1.1 - npm-run-path@5.3.0: - dependencies: - path-key: 4.0.0 - - nwsapi@2.2.10: + nwsapi@2.2.13: optional: true object-assign@4.1.1: {} @@ -10547,10 +10263,6 @@ snapshots: dependencies: mimic-fn: 2.1.0 - onetime@6.0.0: - dependencies: - mimic-fn: 4.0.0 - open@10.1.0: dependencies: default-browser: 5.2.1 @@ -10598,10 +10310,6 @@ snapshots: dependencies: p-try: 2.2.0 - p-limit@5.0.0: - dependencies: - yocto-queue: 1.0.0 - p-locate@2.0.0: dependencies: p-limit: 1.3.0 @@ -10649,7 +10357,7 @@ snapshots: parse-ms@2.1.0: {} - parse5@7.1.2: + parse5@7.2.1: dependencies: entities: 4.5.0 optional: true @@ -10672,8 +10380,6 @@ snapshots: path-key@3.1.1: {} - path-key@4.0.0: {} - path-parse@1.0.7: {} path-scurry@1.11.1: @@ -10697,8 +10403,6 @@ snapshots: pathe@1.1.2: {} - pathval@1.1.1: {} - pathval@2.0.0: {} pegjs@0.10.0: @@ -10714,8 +10418,7 @@ snapshots: picomatch@2.3.1: {} - picomatch@4.0.2: - optional: true + picomatch@4.0.2: {} pify@2.3.0: optional: true @@ -10734,12 +10437,6 @@ snapshots: dependencies: find-up: 4.1.0 - pkg-types@1.1.1: - dependencies: - confbox: 0.1.7 - mlly: 1.7.1 - pathe: 1.1.2 - pluralize@8.0.0: {} polished@4.3.1: @@ -10783,12 +10480,6 @@ snapshots: ansi-styles: 5.2.0 react-is: 17.0.2 - pretty-format@29.7.0: - dependencies: - '@jest/schemas': 29.6.3 - ansi-styles: 5.2.0 - react-is: 18.3.1 - pretty-ms@7.0.1: dependencies: parse-ms: 2.1.0 @@ -10820,7 +10511,9 @@ snapshots: forwarded: 0.2.0 ipaddr.js: 1.9.1 - psl@1.9.0: + psl@1.10.0: + dependencies: + punycode: 2.3.1 optional: true punycode.js@2.3.1: @@ -10877,8 +10570,6 @@ snapshots: react-is@17.0.2: {} - react-is@18.3.1: {} - react@18.3.1: dependencies: loose-envify: 1.4.0 @@ -11287,10 +10978,7 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.18.0 fsevents: 2.3.3 - rrweb-cssom@0.6.0: - optional: true - - rrweb-cssom@0.7.0: + rrweb-cssom@0.7.1: optional: true run-applescript@7.0.0: {} @@ -11471,10 +11159,9 @@ snapshots: sirv@3.0.0: dependencies: - '@polka/url': 1.0.0-next.25 + '@polka/url': 1.0.0-next.28 mrmime: 2.0.0 totalist: 3.0.1 - optional: true slash@1.0.0: {} @@ -11546,7 +11233,10 @@ snapshots: statuses@2.0.1: {} - std-env@3.7.0: {} + std-env@3.7.0: + optional: true + + std-env@3.8.0: {} storybook@8.3.5: dependencies: @@ -11629,8 +11319,6 @@ snapshots: strip-final-newline@2.0.0: {} - strip-final-newline@3.0.0: {} - strip-indent@3.0.0: dependencies: min-indent: 1.0.1 @@ -11639,10 +11327,6 @@ snapshots: strip-json-comments@3.1.1: {} - strip-literal@2.1.0: - dependencies: - js-tokens: 9.0.0 - supports-color@5.5.0: dependencies: has-flag: 3.0.0 @@ -11818,31 +11502,21 @@ snapshots: tiny-invariant@1.3.3: {} - tinybench@2.8.0: {} - - tinybench@2.9.0: - optional: true + tinybench@2.9.0: {} tinycolor2@1.6.0: {} - tinyexec@0.3.1: - optional: true + tinyexec@0.3.1: {} tinyglobby@0.2.10: dependencies: fdir: 6.4.2(picomatch@4.0.2) picomatch: 4.0.2 - optional: true - tinypool@0.8.4: {} - - tinypool@1.0.1: - optional: true + tinypool@1.0.1: {} tinyrainbow@1.2.0: {} - tinyspy@2.2.1: {} - tinyspy@3.0.2: {} tmp@0.0.33: @@ -11863,7 +11537,7 @@ snapshots: tough-cookie@4.1.4: dependencies: - psl: 1.9.0 + psl: 1.10.0 punycode: 2.3.1 universalify: 0.2.0 url-parse: 1.5.10 @@ -11941,8 +11615,6 @@ snapshots: dependencies: prelude-ls: 1.2.1 - type-detect@4.0.8: {} - type-fest@0.18.1: optional: true @@ -12040,8 +11712,6 @@ snapshots: uc.micro@2.1.0: optional: true - ufo@1.5.3: {} - uglify-js@3.19.3: optional: true @@ -12322,23 +11992,6 @@ snapshots: unist-util-stringify-position: 4.0.0 vfile-message: 4.0.2 - vite-node@1.6.0(@types/node@20.14.9): - dependencies: - cac: 6.7.14 - debug: 4.3.5 - pathe: 1.1.2 - picocolors: 1.0.1 - vite: 5.3.2(@types/node@20.14.9) - transitivePeerDependencies: - - '@types/node' - - less - - lightningcss - - sass - - stylus - - sugarss - - supports-color - - terser - vite-node@2.1.4(@types/node@20.14.9): dependencies: cac: 6.7.14 @@ -12354,7 +12007,6 @@ snapshots: - sugarss - supports-color - terser - optional: true vite-plugin-inspect@0.8.4(rollup@4.18.0)(vite@5.3.2(@types/node@20.14.9)): dependencies: @@ -12389,42 +12041,6 @@ snapshots: optionalDependencies: vite: 5.3.2(@types/node@20.14.9) - vitest@1.6.0(@types/node@20.14.9)(@vitest/ui@1.6.0)(happy-dom@15.11.4)(jsdom@24.1.0): - dependencies: - '@vitest/expect': 1.6.0 - '@vitest/runner': 1.6.0 - '@vitest/snapshot': 1.6.0 - '@vitest/spy': 1.6.0 - '@vitest/utils': 1.6.0 - acorn-walk: 8.3.2 - chai: 4.4.1 - debug: 4.3.5 - execa: 8.0.1 - local-pkg: 0.5.0 - magic-string: 0.30.12 - pathe: 1.1.2 - picocolors: 1.0.1 - std-env: 3.7.0 - strip-literal: 2.1.0 - tinybench: 2.8.0 - tinypool: 0.8.4 - vite: 5.3.2(@types/node@20.14.9) - vite-node: 1.6.0(@types/node@20.14.9) - why-is-node-running: 2.2.2 - optionalDependencies: - '@types/node': 20.14.9 - '@vitest/ui': 1.6.0(vitest@1.6.0) - happy-dom: 15.11.4 - jsdom: 24.1.0 - transitivePeerDependencies: - - less - - lightningcss - - sass - - stylus - - sugarss - - supports-color - - terser - vitest@2.1.4(@types/node@20.14.9)(@vitest/ui@2.1.4)(happy-dom@15.11.4)(jsdom@24.1.0): dependencies: '@vitest/expect': 2.1.4 @@ -12439,7 +12055,7 @@ snapshots: expect-type: 1.1.0 magic-string: 0.30.12 pathe: 1.1.2 - std-env: 3.7.0 + std-env: 3.8.0 tinybench: 2.9.0 tinyexec: 0.3.1 tinypool: 1.0.1 @@ -12461,7 +12077,6 @@ snapshots: - sugarss - supports-color - terser - optional: true vscode-json-languageservice@4.2.1: dependencies: @@ -12569,16 +12184,10 @@ snapshots: dependencies: isexe: 3.1.1 - why-is-node-running@2.2.2: - dependencies: - siginfo: 2.0.0 - stackback: 0.0.2 - why-is-node-running@2.3.0: dependencies: siginfo: 2.0.0 stackback: 0.0.2 - optional: true widest-line@4.0.1: dependencies: @@ -12616,11 +12225,11 @@ snapshots: wrappy@1.0.2: {} - ws@8.17.0: - optional: true - ws@8.17.1: {} + ws@8.18.0: + optional: true + xml-name-validator@5.0.0: optional: true @@ -12697,8 +12306,6 @@ snapshots: yn@3.1.1: {} - yocto-queue@1.0.0: {} - zimmerframe@1.1.2: {} zwitch@2.0.4: {} From c8e2b817f25439d840699bbd5a1acfa6dc491956 Mon Sep 17 00:00:00 2001 From: Mateusz Kadlubowski Date: Wed, 13 Nov 2024 12:49:34 +0800 Subject: [PATCH 03/16] update `vite` dependencies --- package.json | 4 +- pnpm-lock.yaml | 342 ++++++++++++++++++++++++++++++++++--------------- 2 files changed, 242 insertions(+), 104 deletions(-) diff --git a/package.json b/package.json index 3dd63b5b..3993649b 100644 --- a/package.json +++ b/package.json @@ -105,8 +105,8 @@ "type-fest": "^4.20.1", "typescript": "^5.5.2", "typescript-svelte-plugin": "^0.3.42", - "vite": "^5.3.2", - "vite-plugin-inspect": "^0.8.4", + "vite": "^5.4.11", + "vite-plugin-inspect": "^0.8.7", "vite-plugin-virtual": "^0.3.0", "vitest": "^2.1.4" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7a3d260d..d0b1ef5b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -68,7 +68,7 @@ importers: version: 8.3.6(storybook@8.3.5)(svelte@5.1.4) '@storybook/svelte-vite': specifier: ^8.0.0 - version: 8.3.6(@babel/core@7.26.0)(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.4)(vite@5.3.2(@types/node@20.14.9)))(postcss@8.4.47)(storybook@8.3.5)(svelte@5.1.4)(typescript@5.5.2)(vite@5.3.2(@types/node@20.14.9))(webpack-sources@3.2.3) + version: 8.3.6(@babel/core@7.26.0)(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.4)(vite@5.4.11(@types/node@20.14.9)))(postcss@8.4.49)(storybook@8.3.5)(svelte@5.1.4)(typescript@5.5.2)(vite@5.4.11(@types/node@20.14.9))(webpack-sources@3.2.3) '@storybook/test': specifier: ^8.0.0 version: 8.3.6(storybook@8.3.5) @@ -77,7 +77,7 @@ importers: version: 2.3.7(svelte@5.1.4)(typescript@5.5.2) '@sveltejs/vite-plugin-svelte': specifier: 4.0.0 - version: 4.0.0(svelte@5.1.4)(vite@5.3.2(@types/node@20.14.9)) + version: 4.0.0(svelte@5.1.4)(vite@5.4.11(@types/node@20.14.9)) '@tsconfig/svelte': specifier: ^5.0.4 version: 5.0.4 @@ -142,14 +142,14 @@ importers: specifier: ^0.3.42 version: 0.3.42(svelte@5.1.4)(typescript@5.5.2) vite: - specifier: ^5.3.2 - version: 5.3.2(@types/node@20.14.9) + specifier: ^5.4.11 + version: 5.4.11(@types/node@20.14.9) vite-plugin-inspect: - specifier: ^0.8.4 - version: 0.8.4(rollup@4.18.0)(vite@5.3.2(@types/node@20.14.9)) + specifier: ^0.8.7 + version: 0.8.7(rollup@4.18.0)(vite@5.4.11(@types/node@20.14.9)) vite-plugin-virtual: specifier: ^0.3.0 - version: 0.3.0(vite@5.3.2(@types/node@20.14.9)) + version: 0.3.0(vite@5.4.11(@types/node@20.14.9)) vitest: specifier: ^2.1.4 version: 2.1.4(@types/node@20.14.9)(@vitest/ui@2.1.4)(happy-dom@15.11.4)(jsdom@24.1.0) @@ -163,8 +163,8 @@ packages: resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} engines: {node: '>=6.0.0'} - '@antfu/utils@0.7.8': - resolution: {integrity: sha512-rWQkqXRESdjXtc+7NRfK9lASQjpXJu1ayp7qi1d23zZorY+wBHVLHHoVcMsEnkqEBWTFqbztO7/QdJFzyEcLTg==} + '@antfu/utils@0.7.10': + resolution: {integrity: sha512-+562v9k4aI80m1+VuMHehNJWLOFjBnXn3tdOitzD0il5b7smkSBal4+a3oKiQTbrwMmN/TBUMDvbdoWDehgOww==} '@auto-it/all-contributors@11.3.0': resolution: {integrity: sha512-2d9y9P5mZoqrqkvIHfQmZ57sLS6vNhLW3bilqPbWW+hzzeJeGIx5cKLIHG+RfuDCeP9d3A3Ahnj7ilIMMUVENA==} @@ -713,14 +713,11 @@ packages: resolution: {integrity: sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==} engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} - '@polka/url@1.0.0-next.25': - resolution: {integrity: sha512-j7P6Rgr3mmtdkeDGTe0E/aYyWEWVtc5yFXtHCRHs28/jptDEWfaVOc5T7cblqy1XKPPfCxJc/8DwQ5YgLOZOVQ==} - '@polka/url@1.0.0-next.28': resolution: {integrity: sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw==} - '@rollup/pluginutils@5.1.0': - resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==} + '@rollup/pluginutils@5.1.3': + resolution: {integrity: sha512-Pnsb6f32CD2W3uCaLZIzDmeFyQ2b8UWMFI7xtwUezpcGBDVDW6y9XgAWIlARiGAo6eNF5FK5aQTr0LFyNyqq5A==} engines: {node: '>=14.0.0'} peerDependencies: rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 @@ -733,81 +730,171 @@ packages: cpu: [arm] os: [android] + '@rollup/rollup-android-arm-eabi@4.25.0': + resolution: {integrity: sha512-CC/ZqFZwlAIbU1wUPisHyV/XRc5RydFrNLtgl3dGYskdwPZdt4HERtKm50a/+DtTlKeCq9IXFEWR+P6blwjqBA==} + cpu: [arm] + os: [android] + '@rollup/rollup-android-arm64@4.18.0': resolution: {integrity: sha512-avCea0RAP03lTsDhEyfy+hpfr85KfyTctMADqHVhLAF3MlIkq83CP8UfAHUssgXTYd+6er6PaAhx/QGv4L1EiA==} cpu: [arm64] os: [android] + '@rollup/rollup-android-arm64@4.25.0': + resolution: {integrity: sha512-/Y76tmLGUJqVBXXCfVS8Q8FJqYGhgH4wl4qTA24E9v/IJM0XvJCGQVSW1QZ4J+VURO9h8YCa28sTFacZXwK7Rg==} + cpu: [arm64] + os: [android] + '@rollup/rollup-darwin-arm64@4.18.0': resolution: {integrity: sha512-IWfdwU7KDSm07Ty0PuA/W2JYoZ4iTj3TUQjkVsO/6U+4I1jN5lcR71ZEvRh52sDOERdnNhhHU57UITXz5jC1/w==} cpu: [arm64] os: [darwin] + '@rollup/rollup-darwin-arm64@4.25.0': + resolution: {integrity: sha512-YVT6L3UrKTlC0FpCZd0MGA7NVdp7YNaEqkENbWQ7AOVOqd/7VzyHpgIpc1mIaxRAo1ZsJRH45fq8j4N63I/vvg==} + cpu: [arm64] + os: [darwin] + '@rollup/rollup-darwin-x64@4.18.0': resolution: {integrity: sha512-n2LMsUz7Ynu7DoQrSQkBf8iNrjOGyPLrdSg802vk6XT3FtsgX6JbE8IHRvposskFm9SNxzkLYGSq9QdpLYpRNA==} cpu: [x64] os: [darwin] + '@rollup/rollup-darwin-x64@4.25.0': + resolution: {integrity: sha512-ZRL+gexs3+ZmmWmGKEU43Bdn67kWnMeWXLFhcVv5Un8FQcx38yulHBA7XR2+KQdYIOtD0yZDWBCudmfj6lQJoA==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-freebsd-arm64@4.25.0': + resolution: {integrity: sha512-xpEIXhiP27EAylEpreCozozsxWQ2TJbOLSivGfXhU4G1TBVEYtUPi2pOZBnvGXHyOdLAUUhPnJzH3ah5cqF01g==} + cpu: [arm64] + os: [freebsd] + + '@rollup/rollup-freebsd-x64@4.25.0': + resolution: {integrity: sha512-sC5FsmZGlJv5dOcURrsnIK7ngc3Kirnx3as2XU9uER+zjfyqIjdcMVgzy4cOawhsssqzoAX19qmxgJ8a14Qrqw==} + cpu: [x64] + os: [freebsd] + '@rollup/rollup-linux-arm-gnueabihf@4.18.0': resolution: {integrity: sha512-C/zbRYRXFjWvz9Z4haRxcTdnkPt1BtCkz+7RtBSuNmKzMzp3ZxdM28Mpccn6pt28/UWUCTXa+b0Mx1k3g6NOMA==} cpu: [arm] os: [linux] + '@rollup/rollup-linux-arm-gnueabihf@4.25.0': + resolution: {integrity: sha512-uD/dbLSs1BEPzg564TpRAQ/YvTnCds2XxyOndAO8nJhaQcqQGFgv/DAVko/ZHap3boCvxnzYMa3mTkV/B/3SWA==} + cpu: [arm] + os: [linux] + '@rollup/rollup-linux-arm-musleabihf@4.18.0': resolution: {integrity: sha512-l3m9ewPgjQSXrUMHg93vt0hYCGnrMOcUpTz6FLtbwljo2HluS4zTXFy2571YQbisTnfTKPZ01u/ukJdQTLGh9A==} cpu: [arm] os: [linux] + '@rollup/rollup-linux-arm-musleabihf@4.25.0': + resolution: {integrity: sha512-ZVt/XkrDlQWegDWrwyC3l0OfAF7yeJUF4fq5RMS07YM72BlSfn2fQQ6lPyBNjt+YbczMguPiJoCfaQC2dnflpQ==} + cpu: [arm] + os: [linux] + '@rollup/rollup-linux-arm64-gnu@4.18.0': resolution: {integrity: sha512-rJ5D47d8WD7J+7STKdCUAgmQk49xuFrRi9pZkWoRD1UeSMakbcepWXPF8ycChBoAqs1pb2wzvbY6Q33WmN2ftw==} cpu: [arm64] os: [linux] + '@rollup/rollup-linux-arm64-gnu@4.25.0': + resolution: {integrity: sha512-qboZ+T0gHAW2kkSDPHxu7quaFaaBlynODXpBVnPxUgvWYaE84xgCKAPEYE+fSMd3Zv5PyFZR+L0tCdYCMAtG0A==} + cpu: [arm64] + os: [linux] + '@rollup/rollup-linux-arm64-musl@4.18.0': resolution: {integrity: sha512-be6Yx37b24ZwxQ+wOQXXLZqpq4jTckJhtGlWGZs68TgdKXJgw54lUUoFYrg6Zs/kjzAQwEwYbp8JxZVzZLRepQ==} cpu: [arm64] os: [linux] + '@rollup/rollup-linux-arm64-musl@4.25.0': + resolution: {integrity: sha512-ndWTSEmAaKr88dBuogGH2NZaxe7u2rDoArsejNslugHZ+r44NfWiwjzizVS1nUOHo+n1Z6qV3X60rqE/HlISgw==} + cpu: [arm64] + os: [linux] + '@rollup/rollup-linux-powerpc64le-gnu@4.18.0': resolution: {integrity: sha512-hNVMQK+qrA9Todu9+wqrXOHxFiD5YmdEi3paj6vP02Kx1hjd2LLYR2eaN7DsEshg09+9uzWi2W18MJDlG0cxJA==} cpu: [ppc64] os: [linux] + '@rollup/rollup-linux-powerpc64le-gnu@4.25.0': + resolution: {integrity: sha512-BVSQvVa2v5hKwJSy6X7W1fjDex6yZnNKy3Kx1JGimccHft6HV0THTwNtC2zawtNXKUu+S5CjXslilYdKBAadzA==} + cpu: [ppc64] + os: [linux] + '@rollup/rollup-linux-riscv64-gnu@4.18.0': resolution: {integrity: sha512-ROCM7i+m1NfdrsmvwSzoxp9HFtmKGHEqu5NNDiZWQtXLA8S5HBCkVvKAxJ8U+CVctHwV2Gb5VUaK7UAkzhDjlg==} cpu: [riscv64] os: [linux] + '@rollup/rollup-linux-riscv64-gnu@4.25.0': + resolution: {integrity: sha512-G4hTREQrIdeV0PE2JruzI+vXdRnaK1pg64hemHq2v5fhv8C7WjVaeXc9P5i4Q5UC06d/L+zA0mszYIKl+wY8oA==} + cpu: [riscv64] + os: [linux] + '@rollup/rollup-linux-s390x-gnu@4.18.0': resolution: {integrity: sha512-0UyyRHyDN42QL+NbqevXIIUnKA47A+45WyasO+y2bGJ1mhQrfrtXUpTxCOrfxCR4esV3/RLYyucGVPiUsO8xjg==} cpu: [s390x] os: [linux] + '@rollup/rollup-linux-s390x-gnu@4.25.0': + resolution: {integrity: sha512-9T/w0kQ+upxdkFL9zPVB6zy9vWW1deA3g8IauJxojN4bnz5FwSsUAD034KpXIVX5j5p/rn6XqumBMxfRkcHapQ==} + cpu: [s390x] + os: [linux] + '@rollup/rollup-linux-x64-gnu@4.18.0': resolution: {integrity: sha512-xuglR2rBVHA5UsI8h8UbX4VJ470PtGCf5Vpswh7p2ukaqBGFTnsfzxUBetoWBWymHMxbIG0Cmx7Y9qDZzr648w==} cpu: [x64] os: [linux] + '@rollup/rollup-linux-x64-gnu@4.25.0': + resolution: {integrity: sha512-ThcnU0EcMDn+J4B9LD++OgBYxZusuA7iemIIiz5yzEcFg04VZFzdFjuwPdlURmYPZw+fgVrFzj4CA64jSTG4Ig==} + cpu: [x64] + os: [linux] + '@rollup/rollup-linux-x64-musl@4.18.0': resolution: {integrity: sha512-LKaqQL9osY/ir2geuLVvRRs+utWUNilzdE90TpyoX0eNqPzWjRm14oMEE+YLve4k/NAqCdPkGYDaDF5Sw+xBfg==} cpu: [x64] os: [linux] + '@rollup/rollup-linux-x64-musl@4.25.0': + resolution: {integrity: sha512-zx71aY2oQxGxAT1JShfhNG79PnjYhMC6voAjzpu/xmMjDnKNf6Nl/xv7YaB/9SIa9jDYf8RBPWEnjcdlhlv1rQ==} + cpu: [x64] + os: [linux] + '@rollup/rollup-win32-arm64-msvc@4.18.0': resolution: {integrity: sha512-7J6TkZQFGo9qBKH0pk2cEVSRhJbL6MtfWxth7Y5YmZs57Pi+4x6c2dStAUvaQkHQLnEQv1jzBUW43GvZW8OFqA==} cpu: [arm64] os: [win32] + '@rollup/rollup-win32-arm64-msvc@4.25.0': + resolution: {integrity: sha512-JT8tcjNocMs4CylWY/CxVLnv8e1lE7ff1fi6kbGocWwxDq9pj30IJ28Peb+Y8yiPNSF28oad42ApJB8oUkwGww==} + cpu: [arm64] + os: [win32] + '@rollup/rollup-win32-ia32-msvc@4.18.0': resolution: {integrity: sha512-Txjh+IxBPbkUB9+SXZMpv+b/vnTEtFyfWZgJ6iyCmt2tdx0OF5WhFowLmnh8ENGNpfUlUZkdI//4IEmhwPieNg==} cpu: [ia32] os: [win32] + '@rollup/rollup-win32-ia32-msvc@4.25.0': + resolution: {integrity: sha512-dRLjLsO3dNOfSN6tjyVlG+Msm4IiZnGkuZ7G5NmpzwF9oOc582FZG05+UdfTbz5Jd4buK/wMb6UeHFhG18+OEg==} + cpu: [ia32] + os: [win32] + '@rollup/rollup-win32-x64-msvc@4.18.0': resolution: {integrity: sha512-UOo5FdvOL0+eIVTgS4tIdbW+TtnBLWg1YBCcU2KWM7nuNwRz9bksDX1bekJJCpu25N1DVWaCwnT39dVQxzqS8g==} cpu: [x64] os: [win32] + '@rollup/rollup-win32-x64-msvc@4.25.0': + resolution: {integrity: sha512-/RqrIFtLB926frMhZD0a5oDa4eFIbyNEwLLloMTEjmqfwZWXywwVVOVmwTsuyhC9HKkVEZcOOi+KV4U9wmOdlg==} + cpu: [x64] + os: [win32] + '@shikijs/core@1.16.2': resolution: {integrity: sha512-XSVH5OZCvE4WLMgdoBqfPMYmGHGmCC3OgZhw0S7KcSi2XKZ+5oHGe71GFnTljgdOxvxx5WrRks6QoTLKrl1eAA==} @@ -1953,15 +2040,6 @@ packages: supports-color: optional: true - debug@4.3.4: - resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - debug@4.3.5: resolution: {integrity: sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==} engines: {node: '>=6.0'} @@ -2188,8 +2266,8 @@ packages: error-ex@1.3.2: resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} - error-stack-parser-es@0.1.4: - resolution: {integrity: sha512-l0uy0kAoo6toCgVOYaAayqtPa2a1L15efxUMEnQebKwLQX2X0OpS6wMMQdc4juJXmxd9i40DuaUHq+mjIya9TQ==} + error-stack-parser-es@0.1.5: + resolution: {integrity: sha512-xHku1X40RO+fO8yJ8Wh2f2rZWVjqyhb1zgq1yZ8aZRQkv6OOKhKWRUaht3eSCUbAOBaKIgM+ykwFLE+QUxgGeg==} es-abstract@1.23.3: resolution: {integrity: sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A==} @@ -3973,9 +4051,6 @@ packages: perfect-debounce@1.0.0: resolution: {integrity: sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==} - picocolors@1.0.1: - resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} - picocolors@1.1.0: resolution: {integrity: sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==} @@ -4022,12 +4097,8 @@ packages: resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==} engines: {node: '>= 0.4'} - postcss@8.4.39: - resolution: {integrity: sha512-0vzE+lAiG7hZl1/9I8yzKLx3aR9Xbof3fBHKunvMfOCYAtMhrsnccJY2iTURb9EZd5+pLuiNV9/c/GZJOHsgIw==} - engines: {node: ^10 || ^12 || >=14} - - postcss@8.4.47: - resolution: {integrity: sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ==} + postcss@8.4.49: + resolution: {integrity: sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==} engines: {node: ^10 || ^12 || >=14} prelude-ls@1.2.1: @@ -4379,6 +4450,11 @@ packages: engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true + rollup@4.25.0: + resolution: {integrity: sha512-uVbClXmR6wvx5R1M3Od4utyLUxrmOcEm3pAtMphn73Apq19PDtHpgZoEvqH2YnnaNUuvKmg2DgRd2Sqv+odyqg==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + rrweb-cssom@0.7.1: resolution: {integrity: sha512-TrEMa7JGdVm0UThDJSx7ddw5nVm3UJS9o9CCIZ72B1vSyEZoziDqBYP3XIoi/12lKrJR8rE3jeFHMok2F/Mnsg==} @@ -4539,10 +4615,6 @@ packages: resolution: {integrity: sha512-FYsjYn2dHTRb41wqnv+uEqCUvBpK3jZcTp9rbz2qDTmel7Pmdtf+i2rLaaPMRZeSVM60V3Se31GyWFpmKs4Q5Q==} hasBin: true - source-map-js@1.2.0: - resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==} - engines: {node: '>=0.10.0'} - source-map-js@1.2.1: resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} engines: {node: '>=0.10.0'} @@ -5198,8 +5270,8 @@ packages: engines: {node: ^18.0.0 || >=20.0.0} hasBin: true - vite-plugin-inspect@0.8.4: - resolution: {integrity: sha512-G0N3rjfw+AiiwnGw50KlObIHYWfulVwaCBUBLh2xTW9G1eM9ocE5olXkEYUbwyTmX+azM8duubi+9w5awdCz+g==} + vite-plugin-inspect@0.8.7: + resolution: {integrity: sha512-/XXou3MVc13A5O9/2Nd6xczjrUwt7ZyI9h8pTnUMkr5SshLcb0PJUOVq2V+XVkdeU4njsqAtmK87THZuO2coGA==} engines: {node: '>=14'} peerDependencies: '@nuxt/kit': '*' @@ -5213,8 +5285,8 @@ packages: peerDependencies: vite: ^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 - vite@5.3.2: - resolution: {integrity: sha512-6lA7OBHBlXUxiJxbO5aAY2fsHHzDr1q7DvXYnyZycRs2Dz+dXBWuhpWHvmljTRTpQC2uvGmUFFkSHF2vGo90MA==} + vite@5.4.11: + resolution: {integrity: sha512-c7jFQRklXua0mTzneGW9QVyxFjUgwcihC4bXEtujIo2ouWCe1Ajt/amn2PCxYnhYfd5k09JX3SB7OYWFKYqj8Q==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -5222,6 +5294,7 @@ packages: less: '*' lightningcss: ^1.21.0 sass: '*' + sass-embedded: '*' stylus: '*' sugarss: '*' terser: ^5.4.0 @@ -5234,6 +5307,8 @@ packages: optional: true sass: optional: true + sass-embedded: + optional: true stylus: optional: true sugarss: @@ -5500,7 +5575,7 @@ snapshots: '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 - '@antfu/utils@0.7.8': {} + '@antfu/utils@0.7.10': {} '@auto-it/all-contributors@11.3.0(@types/node@20.14.9)(typescript@5.5.2)': dependencies: @@ -6340,66 +6415,118 @@ snapshots: '@pkgr/core@0.1.1': {} - '@polka/url@1.0.0-next.25': {} - '@polka/url@1.0.0-next.28': {} - '@rollup/pluginutils@5.1.0(rollup@4.18.0)': + '@rollup/pluginutils@5.1.3(rollup@4.18.0)': dependencies: '@types/estree': 1.0.6 estree-walker: 2.0.2 - picomatch: 2.3.1 + picomatch: 4.0.2 optionalDependencies: rollup: 4.18.0 '@rollup/rollup-android-arm-eabi@4.18.0': optional: true + '@rollup/rollup-android-arm-eabi@4.25.0': + optional: true + '@rollup/rollup-android-arm64@4.18.0': optional: true + '@rollup/rollup-android-arm64@4.25.0': + optional: true + '@rollup/rollup-darwin-arm64@4.18.0': optional: true + '@rollup/rollup-darwin-arm64@4.25.0': + optional: true + '@rollup/rollup-darwin-x64@4.18.0': optional: true + '@rollup/rollup-darwin-x64@4.25.0': + optional: true + + '@rollup/rollup-freebsd-arm64@4.25.0': + optional: true + + '@rollup/rollup-freebsd-x64@4.25.0': + optional: true + '@rollup/rollup-linux-arm-gnueabihf@4.18.0': optional: true + '@rollup/rollup-linux-arm-gnueabihf@4.25.0': + optional: true + '@rollup/rollup-linux-arm-musleabihf@4.18.0': optional: true + '@rollup/rollup-linux-arm-musleabihf@4.25.0': + optional: true + '@rollup/rollup-linux-arm64-gnu@4.18.0': optional: true + '@rollup/rollup-linux-arm64-gnu@4.25.0': + optional: true + '@rollup/rollup-linux-arm64-musl@4.18.0': optional: true + '@rollup/rollup-linux-arm64-musl@4.25.0': + optional: true + '@rollup/rollup-linux-powerpc64le-gnu@4.18.0': optional: true + '@rollup/rollup-linux-powerpc64le-gnu@4.25.0': + optional: true + '@rollup/rollup-linux-riscv64-gnu@4.18.0': optional: true + '@rollup/rollup-linux-riscv64-gnu@4.25.0': + optional: true + '@rollup/rollup-linux-s390x-gnu@4.18.0': optional: true + '@rollup/rollup-linux-s390x-gnu@4.25.0': + optional: true + '@rollup/rollup-linux-x64-gnu@4.18.0': optional: true + '@rollup/rollup-linux-x64-gnu@4.25.0': + optional: true + '@rollup/rollup-linux-x64-musl@4.18.0': optional: true + '@rollup/rollup-linux-x64-musl@4.25.0': + optional: true + '@rollup/rollup-win32-arm64-msvc@4.18.0': optional: true + '@rollup/rollup-win32-arm64-msvc@4.25.0': + optional: true + '@rollup/rollup-win32-ia32-msvc@4.18.0': optional: true + '@rollup/rollup-win32-ia32-msvc@4.25.0': + optional: true + '@rollup/rollup-win32-x64-msvc@4.18.0': optional: true + '@rollup/rollup-win32-x64-msvc@4.25.0': + optional: true + '@shikijs/core@1.16.2': dependencies: '@shikijs/vscode-textmate': 9.2.0 @@ -6526,7 +6653,7 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - '@storybook/builder-vite@8.3.6(storybook@8.3.5)(typescript@5.5.2)(vite@5.3.2(@types/node@20.14.9))(webpack-sources@3.2.3)': + '@storybook/builder-vite@8.3.6(storybook@8.3.5)(typescript@5.5.2)(vite@5.4.11(@types/node@20.14.9))(webpack-sources@3.2.3)': dependencies: '@storybook/csf-plugin': 8.3.6(storybook@8.3.5)(webpack-sources@3.2.3) '@types/find-cache-dir': 3.2.1 @@ -6538,7 +6665,7 @@ snapshots: magic-string: 0.30.12 storybook: 8.3.5 ts-dedent: 2.2.0 - vite: 5.3.2(@types/node@20.14.9) + vite: 5.4.11(@types/node@20.14.9) optionalDependencies: typescript: 5.5.2 transitivePeerDependencies: @@ -6668,18 +6795,18 @@ snapshots: react-dom: 18.3.1(react@18.3.1) storybook: 8.3.5 - '@storybook/svelte-vite@8.3.6(@babel/core@7.26.0)(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.4)(vite@5.3.2(@types/node@20.14.9)))(postcss@8.4.47)(storybook@8.3.5)(svelte@5.1.4)(typescript@5.5.2)(vite@5.3.2(@types/node@20.14.9))(webpack-sources@3.2.3)': + '@storybook/svelte-vite@8.3.6(@babel/core@7.26.0)(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.4)(vite@5.4.11(@types/node@20.14.9)))(postcss@8.4.49)(storybook@8.3.5)(svelte@5.1.4)(typescript@5.5.2)(vite@5.4.11(@types/node@20.14.9))(webpack-sources@3.2.3)': dependencies: - '@storybook/builder-vite': 8.3.6(storybook@8.3.5)(typescript@5.5.2)(vite@5.3.2(@types/node@20.14.9))(webpack-sources@3.2.3) + '@storybook/builder-vite': 8.3.6(storybook@8.3.5)(typescript@5.5.2)(vite@5.4.11(@types/node@20.14.9))(webpack-sources@3.2.3) '@storybook/svelte': 8.3.6(storybook@8.3.5)(svelte@5.1.4) - '@sveltejs/vite-plugin-svelte': 4.0.0(svelte@5.1.4)(vite@5.3.2(@types/node@20.14.9)) + '@sveltejs/vite-plugin-svelte': 4.0.0(svelte@5.1.4)(vite@5.4.11(@types/node@20.14.9)) magic-string: 0.30.12 storybook: 8.3.5 svelte: 5.1.4 - svelte-preprocess: 6.0.3(@babel/core@7.26.0)(postcss@8.4.47)(svelte@5.1.4)(typescript@5.5.2) + svelte-preprocess: 6.0.3(@babel/core@7.26.0)(postcss@8.4.49)(svelte@5.1.4)(typescript@5.5.2) sveltedoc-parser: 4.2.1 ts-dedent: 2.2.0 - vite: 5.3.2(@types/node@20.14.9) + vite: 5.4.11(@types/node@20.14.9) transitivePeerDependencies: - '@babel/core' - '@preact/preset-vite' @@ -6743,25 +6870,25 @@ snapshots: transitivePeerDependencies: - typescript - '@sveltejs/vite-plugin-svelte-inspector@3.0.0-next.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.4)(vite@5.3.2(@types/node@20.14.9)))(svelte@5.1.4)(vite@5.3.2(@types/node@20.14.9))': + '@sveltejs/vite-plugin-svelte-inspector@3.0.0-next.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.4)(vite@5.4.11(@types/node@20.14.9)))(svelte@5.1.4)(vite@5.4.11(@types/node@20.14.9))': dependencies: - '@sveltejs/vite-plugin-svelte': 4.0.0(svelte@5.1.4)(vite@5.3.2(@types/node@20.14.9)) + '@sveltejs/vite-plugin-svelte': 4.0.0(svelte@5.1.4)(vite@5.4.11(@types/node@20.14.9)) debug: 4.3.7 svelte: 5.1.4 - vite: 5.3.2(@types/node@20.14.9) + vite: 5.4.11(@types/node@20.14.9) transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.4)(vite@5.3.2(@types/node@20.14.9))': + '@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.4)(vite@5.4.11(@types/node@20.14.9))': dependencies: - '@sveltejs/vite-plugin-svelte-inspector': 3.0.0-next.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.4)(vite@5.3.2(@types/node@20.14.9)))(svelte@5.1.4)(vite@5.3.2(@types/node@20.14.9)) + '@sveltejs/vite-plugin-svelte-inspector': 3.0.0-next.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.4)(vite@5.4.11(@types/node@20.14.9)))(svelte@5.1.4)(vite@5.4.11(@types/node@20.14.9)) debug: 4.3.7 deepmerge: 4.3.1 kleur: 4.1.5 magic-string: 0.30.12 svelte: 5.1.4 - vite: 5.3.2(@types/node@20.14.9) - vitefu: 1.0.3(vite@5.3.2(@types/node@20.14.9)) + vite: 5.4.11(@types/node@20.14.9) + vitefu: 1.0.3(vite@5.4.11(@types/node@20.14.9)) transitivePeerDependencies: - supports-color @@ -7094,13 +7221,13 @@ snapshots: chai: 5.1.2 tinyrainbow: 1.2.0 - '@vitest/mocker@2.1.4(vite@5.3.2(@types/node@20.14.9))': + '@vitest/mocker@2.1.4(vite@5.4.11(@types/node@20.14.9))': dependencies: '@vitest/spy': 2.1.4 estree-walker: 3.0.3 magic-string: 0.30.12 optionalDependencies: - vite: 5.3.2(@types/node@20.14.9) + vite: 5.4.11(@types/node@20.14.9) '@vitest/pretty-format@2.0.5': dependencies: @@ -7940,10 +8067,6 @@ snapshots: dependencies: ms: 2.1.3 - debug@4.3.4: - dependencies: - ms: 2.1.2 - debug@4.3.5: dependencies: ms: 2.1.2 @@ -8125,7 +8248,7 @@ snapshots: dependencies: is-arrayish: 0.2.1 - error-stack-parser-es@0.1.4: {} + error-stack-parser-es@0.1.5: {} es-abstract@1.23.3: dependencies: @@ -10410,8 +10533,6 @@ snapshots: perfect-debounce@1.0.0: {} - picocolors@1.0.1: {} - picocolors@1.1.0: {} picocolors@1.1.1: {} @@ -10445,18 +10566,11 @@ snapshots: possible-typed-array-names@1.0.0: {} - postcss@8.4.39: - dependencies: - nanoid: 3.3.7 - picocolors: 1.0.1 - source-map-js: 1.2.0 - - postcss@8.4.47: + postcss@8.4.49: dependencies: nanoid: 3.3.7 picocolors: 1.1.1 source-map-js: 1.2.1 - optional: true prelude-ls@1.2.1: {} @@ -10978,6 +11092,30 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.18.0 fsevents: 2.3.3 + rollup@4.25.0: + dependencies: + '@types/estree': 1.0.6 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.25.0 + '@rollup/rollup-android-arm64': 4.25.0 + '@rollup/rollup-darwin-arm64': 4.25.0 + '@rollup/rollup-darwin-x64': 4.25.0 + '@rollup/rollup-freebsd-arm64': 4.25.0 + '@rollup/rollup-freebsd-x64': 4.25.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.25.0 + '@rollup/rollup-linux-arm-musleabihf': 4.25.0 + '@rollup/rollup-linux-arm64-gnu': 4.25.0 + '@rollup/rollup-linux-arm64-musl': 4.25.0 + '@rollup/rollup-linux-powerpc64le-gnu': 4.25.0 + '@rollup/rollup-linux-riscv64-gnu': 4.25.0 + '@rollup/rollup-linux-s390x-gnu': 4.25.0 + '@rollup/rollup-linux-x64-gnu': 4.25.0 + '@rollup/rollup-linux-x64-musl': 4.25.0 + '@rollup/rollup-win32-arm64-msvc': 4.25.0 + '@rollup/rollup-win32-ia32-msvc': 4.25.0 + '@rollup/rollup-win32-x64-msvc': 4.25.0 + fsevents: 2.3.3 + rrweb-cssom@0.7.1: optional: true @@ -11153,7 +11291,7 @@ snapshots: sirv@2.0.4: dependencies: - '@polka/url': 1.0.0-next.25 + '@polka/url': 1.0.0-next.28 mrmime: 2.0.0 totalist: 3.0.1 @@ -11187,10 +11325,7 @@ snapshots: is-plain-obj: 2.1.0 sort-object-keys: 1.1.3 - source-map-js@1.2.0: {} - - source-map-js@1.2.1: - optional: true + source-map-js@1.2.1: {} source-map-support@0.5.21: dependencies: @@ -11383,6 +11518,7 @@ snapshots: - lightningcss - msw - sass + - sass-embedded - stylus - sugarss - supports-color @@ -11401,12 +11537,12 @@ snapshots: transitivePeerDependencies: - picomatch - svelte-preprocess@6.0.3(@babel/core@7.26.0)(postcss@8.4.47)(svelte@5.1.4)(typescript@5.5.2): + svelte-preprocess@6.0.3(@babel/core@7.26.0)(postcss@8.4.49)(svelte@5.1.4)(typescript@5.5.2): dependencies: svelte: 5.1.4 optionalDependencies: '@babel/core': 7.26.0 - postcss: 8.4.47 + postcss: 8.4.49 typescript: 5.5.2 svelte2tsx@0.7.22(svelte@5.1.4)(typescript@5.5.2): @@ -11997,54 +12133,55 @@ snapshots: cac: 6.7.14 debug: 4.3.7 pathe: 1.1.2 - vite: 5.3.2(@types/node@20.14.9) + vite: 5.4.11(@types/node@20.14.9) transitivePeerDependencies: - '@types/node' - less - lightningcss - sass + - sass-embedded - stylus - sugarss - supports-color - terser - vite-plugin-inspect@0.8.4(rollup@4.18.0)(vite@5.3.2(@types/node@20.14.9)): + vite-plugin-inspect@0.8.7(rollup@4.18.0)(vite@5.4.11(@types/node@20.14.9)): dependencies: - '@antfu/utils': 0.7.8 - '@rollup/pluginutils': 5.1.0(rollup@4.18.0) - debug: 4.3.4 - error-stack-parser-es: 0.1.4 + '@antfu/utils': 0.7.10 + '@rollup/pluginutils': 5.1.3(rollup@4.18.0) + debug: 4.3.7 + error-stack-parser-es: 0.1.5 fs-extra: 11.2.0 open: 10.1.0 perfect-debounce: 1.0.0 - picocolors: 1.0.1 + picocolors: 1.1.1 sirv: 2.0.4 - vite: 5.3.2(@types/node@20.14.9) + vite: 5.4.11(@types/node@20.14.9) transitivePeerDependencies: - rollup - supports-color - vite-plugin-virtual@0.3.0(vite@5.3.2(@types/node@20.14.9)): + vite-plugin-virtual@0.3.0(vite@5.4.11(@types/node@20.14.9)): dependencies: - vite: 5.3.2(@types/node@20.14.9) + vite: 5.4.11(@types/node@20.14.9) - vite@5.3.2(@types/node@20.14.9): + vite@5.4.11(@types/node@20.14.9): dependencies: esbuild: 0.21.5 - postcss: 8.4.39 - rollup: 4.18.0 + postcss: 8.4.49 + rollup: 4.25.0 optionalDependencies: '@types/node': 20.14.9 fsevents: 2.3.3 - vitefu@1.0.3(vite@5.3.2(@types/node@20.14.9)): + vitefu@1.0.3(vite@5.4.11(@types/node@20.14.9)): optionalDependencies: - vite: 5.3.2(@types/node@20.14.9) + vite: 5.4.11(@types/node@20.14.9) vitest@2.1.4(@types/node@20.14.9)(@vitest/ui@2.1.4)(happy-dom@15.11.4)(jsdom@24.1.0): dependencies: '@vitest/expect': 2.1.4 - '@vitest/mocker': 2.1.4(vite@5.3.2(@types/node@20.14.9)) + '@vitest/mocker': 2.1.4(vite@5.4.11(@types/node@20.14.9)) '@vitest/pretty-format': 2.1.4 '@vitest/runner': 2.1.4 '@vitest/snapshot': 2.1.4 @@ -12060,7 +12197,7 @@ snapshots: tinyexec: 0.3.1 tinypool: 1.0.1 tinyrainbow: 1.2.0 - vite: 5.3.2(@types/node@20.14.9) + vite: 5.4.11(@types/node@20.14.9) vite-node: 2.1.4(@types/node@20.14.9) why-is-node-running: 2.3.0 optionalDependencies: @@ -12073,6 +12210,7 @@ snapshots: - lightningcss - msw - sass + - sass-embedded - stylus - sugarss - supports-color From ebc087cb94eeff1f22fedbdf1d2600f812d71326 Mon Sep 17 00:00:00 2001 From: Mateusz Kadlubowski Date: Wed, 13 Nov 2024 12:56:42 +0800 Subject: [PATCH 04/16] update `rollup` - solves type-error from `svelte-check` --- package.json | 2 +- pnpm-lock.yaml | 174 ++----------------------------------------------- 2 files changed, 8 insertions(+), 168 deletions(-) diff --git a/package.json b/package.json index 3993649b..24d3b22f 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "prettier": "^3.3.2", "prettier-plugin-svelte": "^3.2.5", "rimraf": "^5.0.7", - "rollup": "^4.18.0", + "rollup": "^4.25.0", "storybook": "^8.0.0", "svelte": "^5.0.0", "svelte-check": "^4.0.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d0b1ef5b..fb42ec36 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -118,8 +118,8 @@ importers: specifier: ^5.0.7 version: 5.0.7 rollup: - specifier: ^4.18.0 - version: 4.18.0 + specifier: ^4.25.0 + version: 4.25.0 storybook: specifier: ^8.0.0 version: 8.3.5 @@ -146,7 +146,7 @@ importers: version: 5.4.11(@types/node@20.14.9) vite-plugin-inspect: specifier: ^0.8.7 - version: 0.8.7(rollup@4.18.0)(vite@5.4.11(@types/node@20.14.9)) + version: 0.8.7(rollup@4.25.0)(vite@5.4.11(@types/node@20.14.9)) vite-plugin-virtual: specifier: ^0.3.0 version: 0.3.0(vite@5.4.11(@types/node@20.14.9)) @@ -725,41 +725,21 @@ packages: rollup: optional: true - '@rollup/rollup-android-arm-eabi@4.18.0': - resolution: {integrity: sha512-Tya6xypR10giZV1XzxmH5wr25VcZSncG0pZIjfePT0OVBvqNEurzValetGNarVrGiq66EBVAFn15iYX4w6FKgQ==} - cpu: [arm] - os: [android] - '@rollup/rollup-android-arm-eabi@4.25.0': resolution: {integrity: sha512-CC/ZqFZwlAIbU1wUPisHyV/XRc5RydFrNLtgl3dGYskdwPZdt4HERtKm50a/+DtTlKeCq9IXFEWR+P6blwjqBA==} cpu: [arm] os: [android] - '@rollup/rollup-android-arm64@4.18.0': - resolution: {integrity: sha512-avCea0RAP03lTsDhEyfy+hpfr85KfyTctMADqHVhLAF3MlIkq83CP8UfAHUssgXTYd+6er6PaAhx/QGv4L1EiA==} - cpu: [arm64] - os: [android] - '@rollup/rollup-android-arm64@4.25.0': resolution: {integrity: sha512-/Y76tmLGUJqVBXXCfVS8Q8FJqYGhgH4wl4qTA24E9v/IJM0XvJCGQVSW1QZ4J+VURO9h8YCa28sTFacZXwK7Rg==} cpu: [arm64] os: [android] - '@rollup/rollup-darwin-arm64@4.18.0': - resolution: {integrity: sha512-IWfdwU7KDSm07Ty0PuA/W2JYoZ4iTj3TUQjkVsO/6U+4I1jN5lcR71ZEvRh52sDOERdnNhhHU57UITXz5jC1/w==} - cpu: [arm64] - os: [darwin] - '@rollup/rollup-darwin-arm64@4.25.0': resolution: {integrity: sha512-YVT6L3UrKTlC0FpCZd0MGA7NVdp7YNaEqkENbWQ7AOVOqd/7VzyHpgIpc1mIaxRAo1ZsJRH45fq8j4N63I/vvg==} cpu: [arm64] os: [darwin] - '@rollup/rollup-darwin-x64@4.18.0': - resolution: {integrity: sha512-n2LMsUz7Ynu7DoQrSQkBf8iNrjOGyPLrdSg802vk6XT3FtsgX6JbE8IHRvposskFm9SNxzkLYGSq9QdpLYpRNA==} - cpu: [x64] - os: [darwin] - '@rollup/rollup-darwin-x64@4.25.0': resolution: {integrity: sha512-ZRL+gexs3+ZmmWmGKEU43Bdn67kWnMeWXLFhcVv5Un8FQcx38yulHBA7XR2+KQdYIOtD0yZDWBCudmfj6lQJoA==} cpu: [x64] @@ -775,121 +755,61 @@ packages: cpu: [x64] os: [freebsd] - '@rollup/rollup-linux-arm-gnueabihf@4.18.0': - resolution: {integrity: sha512-C/zbRYRXFjWvz9Z4haRxcTdnkPt1BtCkz+7RtBSuNmKzMzp3ZxdM28Mpccn6pt28/UWUCTXa+b0Mx1k3g6NOMA==} - cpu: [arm] - os: [linux] - '@rollup/rollup-linux-arm-gnueabihf@4.25.0': resolution: {integrity: sha512-uD/dbLSs1BEPzg564TpRAQ/YvTnCds2XxyOndAO8nJhaQcqQGFgv/DAVko/ZHap3boCvxnzYMa3mTkV/B/3SWA==} cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm-musleabihf@4.18.0': - resolution: {integrity: sha512-l3m9ewPgjQSXrUMHg93vt0hYCGnrMOcUpTz6FLtbwljo2HluS4zTXFy2571YQbisTnfTKPZ01u/ukJdQTLGh9A==} - cpu: [arm] - os: [linux] - '@rollup/rollup-linux-arm-musleabihf@4.25.0': resolution: {integrity: sha512-ZVt/XkrDlQWegDWrwyC3l0OfAF7yeJUF4fq5RMS07YM72BlSfn2fQQ6lPyBNjt+YbczMguPiJoCfaQC2dnflpQ==} cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm64-gnu@4.18.0': - resolution: {integrity: sha512-rJ5D47d8WD7J+7STKdCUAgmQk49xuFrRi9pZkWoRD1UeSMakbcepWXPF8ycChBoAqs1pb2wzvbY6Q33WmN2ftw==} - cpu: [arm64] - os: [linux] - '@rollup/rollup-linux-arm64-gnu@4.25.0': resolution: {integrity: sha512-qboZ+T0gHAW2kkSDPHxu7quaFaaBlynODXpBVnPxUgvWYaE84xgCKAPEYE+fSMd3Zv5PyFZR+L0tCdYCMAtG0A==} cpu: [arm64] os: [linux] - '@rollup/rollup-linux-arm64-musl@4.18.0': - resolution: {integrity: sha512-be6Yx37b24ZwxQ+wOQXXLZqpq4jTckJhtGlWGZs68TgdKXJgw54lUUoFYrg6Zs/kjzAQwEwYbp8JxZVzZLRepQ==} - cpu: [arm64] - os: [linux] - '@rollup/rollup-linux-arm64-musl@4.25.0': resolution: {integrity: sha512-ndWTSEmAaKr88dBuogGH2NZaxe7u2rDoArsejNslugHZ+r44NfWiwjzizVS1nUOHo+n1Z6qV3X60rqE/HlISgw==} cpu: [arm64] os: [linux] - '@rollup/rollup-linux-powerpc64le-gnu@4.18.0': - resolution: {integrity: sha512-hNVMQK+qrA9Todu9+wqrXOHxFiD5YmdEi3paj6vP02Kx1hjd2LLYR2eaN7DsEshg09+9uzWi2W18MJDlG0cxJA==} - cpu: [ppc64] - os: [linux] - '@rollup/rollup-linux-powerpc64le-gnu@4.25.0': resolution: {integrity: sha512-BVSQvVa2v5hKwJSy6X7W1fjDex6yZnNKy3Kx1JGimccHft6HV0THTwNtC2zawtNXKUu+S5CjXslilYdKBAadzA==} cpu: [ppc64] os: [linux] - '@rollup/rollup-linux-riscv64-gnu@4.18.0': - resolution: {integrity: sha512-ROCM7i+m1NfdrsmvwSzoxp9HFtmKGHEqu5NNDiZWQtXLA8S5HBCkVvKAxJ8U+CVctHwV2Gb5VUaK7UAkzhDjlg==} - cpu: [riscv64] - os: [linux] - '@rollup/rollup-linux-riscv64-gnu@4.25.0': resolution: {integrity: sha512-G4hTREQrIdeV0PE2JruzI+vXdRnaK1pg64hemHq2v5fhv8C7WjVaeXc9P5i4Q5UC06d/L+zA0mszYIKl+wY8oA==} cpu: [riscv64] os: [linux] - '@rollup/rollup-linux-s390x-gnu@4.18.0': - resolution: {integrity: sha512-0UyyRHyDN42QL+NbqevXIIUnKA47A+45WyasO+y2bGJ1mhQrfrtXUpTxCOrfxCR4esV3/RLYyucGVPiUsO8xjg==} - cpu: [s390x] - os: [linux] - '@rollup/rollup-linux-s390x-gnu@4.25.0': resolution: {integrity: sha512-9T/w0kQ+upxdkFL9zPVB6zy9vWW1deA3g8IauJxojN4bnz5FwSsUAD034KpXIVX5j5p/rn6XqumBMxfRkcHapQ==} cpu: [s390x] os: [linux] - '@rollup/rollup-linux-x64-gnu@4.18.0': - resolution: {integrity: sha512-xuglR2rBVHA5UsI8h8UbX4VJ470PtGCf5Vpswh7p2ukaqBGFTnsfzxUBetoWBWymHMxbIG0Cmx7Y9qDZzr648w==} - cpu: [x64] - os: [linux] - '@rollup/rollup-linux-x64-gnu@4.25.0': resolution: {integrity: sha512-ThcnU0EcMDn+J4B9LD++OgBYxZusuA7iemIIiz5yzEcFg04VZFzdFjuwPdlURmYPZw+fgVrFzj4CA64jSTG4Ig==} cpu: [x64] os: [linux] - '@rollup/rollup-linux-x64-musl@4.18.0': - resolution: {integrity: sha512-LKaqQL9osY/ir2geuLVvRRs+utWUNilzdE90TpyoX0eNqPzWjRm14oMEE+YLve4k/NAqCdPkGYDaDF5Sw+xBfg==} - cpu: [x64] - os: [linux] - '@rollup/rollup-linux-x64-musl@4.25.0': resolution: {integrity: sha512-zx71aY2oQxGxAT1JShfhNG79PnjYhMC6voAjzpu/xmMjDnKNf6Nl/xv7YaB/9SIa9jDYf8RBPWEnjcdlhlv1rQ==} cpu: [x64] os: [linux] - '@rollup/rollup-win32-arm64-msvc@4.18.0': - resolution: {integrity: sha512-7J6TkZQFGo9qBKH0pk2cEVSRhJbL6MtfWxth7Y5YmZs57Pi+4x6c2dStAUvaQkHQLnEQv1jzBUW43GvZW8OFqA==} - cpu: [arm64] - os: [win32] - '@rollup/rollup-win32-arm64-msvc@4.25.0': resolution: {integrity: sha512-JT8tcjNocMs4CylWY/CxVLnv8e1lE7ff1fi6kbGocWwxDq9pj30IJ28Peb+Y8yiPNSF28oad42ApJB8oUkwGww==} cpu: [arm64] os: [win32] - '@rollup/rollup-win32-ia32-msvc@4.18.0': - resolution: {integrity: sha512-Txjh+IxBPbkUB9+SXZMpv+b/vnTEtFyfWZgJ6iyCmt2tdx0OF5WhFowLmnh8ENGNpfUlUZkdI//4IEmhwPieNg==} - cpu: [ia32] - os: [win32] - '@rollup/rollup-win32-ia32-msvc@4.25.0': resolution: {integrity: sha512-dRLjLsO3dNOfSN6tjyVlG+Msm4IiZnGkuZ7G5NmpzwF9oOc582FZG05+UdfTbz5Jd4buK/wMb6UeHFhG18+OEg==} cpu: [ia32] os: [win32] - '@rollup/rollup-win32-x64-msvc@4.18.0': - resolution: {integrity: sha512-UOo5FdvOL0+eIVTgS4tIdbW+TtnBLWg1YBCcU2KWM7nuNwRz9bksDX1bekJJCpu25N1DVWaCwnT39dVQxzqS8g==} - cpu: [x64] - os: [win32] - '@rollup/rollup-win32-x64-msvc@4.25.0': resolution: {integrity: sha512-/RqrIFtLB926frMhZD0a5oDa4eFIbyNEwLLloMTEjmqfwZWXywwVVOVmwTsuyhC9HKkVEZcOOi+KV4U9wmOdlg==} cpu: [x64] @@ -1168,9 +1088,6 @@ packages: '@types/estree-jsx@1.0.5': resolution: {integrity: sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==} - '@types/estree@1.0.5': - resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} - '@types/estree@1.0.6': resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==} @@ -4445,11 +4362,6 @@ packages: engines: {node: '>=14.18'} hasBin: true - rollup@4.18.0: - resolution: {integrity: sha512-QmJz14PX3rzbJCN1SG4Xe/bAAX2a6NpCP8ab2vfu2GiUr8AQcr2nCV/oEO3yneFarB67zk8ShlIyWb2LGTb3Sg==} - engines: {node: '>=18.0.0', npm: '>=8.0.0'} - hasBin: true - rollup@4.25.0: resolution: {integrity: sha512-uVbClXmR6wvx5R1M3Od4utyLUxrmOcEm3pAtMphn73Apq19PDtHpgZoEvqH2YnnaNUuvKmg2DgRd2Sqv+odyqg==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} @@ -6417,35 +6329,23 @@ snapshots: '@polka/url@1.0.0-next.28': {} - '@rollup/pluginutils@5.1.3(rollup@4.18.0)': + '@rollup/pluginutils@5.1.3(rollup@4.25.0)': dependencies: '@types/estree': 1.0.6 estree-walker: 2.0.2 picomatch: 4.0.2 optionalDependencies: - rollup: 4.18.0 - - '@rollup/rollup-android-arm-eabi@4.18.0': - optional: true + rollup: 4.25.0 '@rollup/rollup-android-arm-eabi@4.25.0': optional: true - '@rollup/rollup-android-arm64@4.18.0': - optional: true - '@rollup/rollup-android-arm64@4.25.0': optional: true - '@rollup/rollup-darwin-arm64@4.18.0': - optional: true - '@rollup/rollup-darwin-arm64@4.25.0': optional: true - '@rollup/rollup-darwin-x64@4.18.0': - optional: true - '@rollup/rollup-darwin-x64@4.25.0': optional: true @@ -6455,75 +6355,39 @@ snapshots: '@rollup/rollup-freebsd-x64@4.25.0': optional: true - '@rollup/rollup-linux-arm-gnueabihf@4.18.0': - optional: true - '@rollup/rollup-linux-arm-gnueabihf@4.25.0': optional: true - '@rollup/rollup-linux-arm-musleabihf@4.18.0': - optional: true - '@rollup/rollup-linux-arm-musleabihf@4.25.0': optional: true - '@rollup/rollup-linux-arm64-gnu@4.18.0': - optional: true - '@rollup/rollup-linux-arm64-gnu@4.25.0': optional: true - '@rollup/rollup-linux-arm64-musl@4.18.0': - optional: true - '@rollup/rollup-linux-arm64-musl@4.25.0': optional: true - '@rollup/rollup-linux-powerpc64le-gnu@4.18.0': - optional: true - '@rollup/rollup-linux-powerpc64le-gnu@4.25.0': optional: true - '@rollup/rollup-linux-riscv64-gnu@4.18.0': - optional: true - '@rollup/rollup-linux-riscv64-gnu@4.25.0': optional: true - '@rollup/rollup-linux-s390x-gnu@4.18.0': - optional: true - '@rollup/rollup-linux-s390x-gnu@4.25.0': optional: true - '@rollup/rollup-linux-x64-gnu@4.18.0': - optional: true - '@rollup/rollup-linux-x64-gnu@4.25.0': optional: true - '@rollup/rollup-linux-x64-musl@4.18.0': - optional: true - '@rollup/rollup-linux-x64-musl@4.25.0': optional: true - '@rollup/rollup-win32-arm64-msvc@4.18.0': - optional: true - '@rollup/rollup-win32-arm64-msvc@4.25.0': optional: true - '@rollup/rollup-win32-ia32-msvc@4.18.0': - optional: true - '@rollup/rollup-win32-ia32-msvc@4.25.0': optional: true - '@rollup/rollup-win32-x64-msvc@4.18.0': - optional: true - '@rollup/rollup-win32-x64-msvc@4.25.0': optional: true @@ -6954,8 +6818,6 @@ snapshots: dependencies: '@types/estree': 1.0.6 - '@types/estree@1.0.5': {} - '@types/estree@1.0.6': {} '@types/express-serve-static-core@4.19.5': @@ -11070,28 +10932,6 @@ snapshots: dependencies: glob: 10.3.15 - rollup@4.18.0: - dependencies: - '@types/estree': 1.0.5 - optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.18.0 - '@rollup/rollup-android-arm64': 4.18.0 - '@rollup/rollup-darwin-arm64': 4.18.0 - '@rollup/rollup-darwin-x64': 4.18.0 - '@rollup/rollup-linux-arm-gnueabihf': 4.18.0 - '@rollup/rollup-linux-arm-musleabihf': 4.18.0 - '@rollup/rollup-linux-arm64-gnu': 4.18.0 - '@rollup/rollup-linux-arm64-musl': 4.18.0 - '@rollup/rollup-linux-powerpc64le-gnu': 4.18.0 - '@rollup/rollup-linux-riscv64-gnu': 4.18.0 - '@rollup/rollup-linux-s390x-gnu': 4.18.0 - '@rollup/rollup-linux-x64-gnu': 4.18.0 - '@rollup/rollup-linux-x64-musl': 4.18.0 - '@rollup/rollup-win32-arm64-msvc': 4.18.0 - '@rollup/rollup-win32-ia32-msvc': 4.18.0 - '@rollup/rollup-win32-x64-msvc': 4.18.0 - fsevents: 2.3.3 - rollup@4.25.0: dependencies: '@types/estree': 1.0.6 @@ -12145,10 +11985,10 @@ snapshots: - supports-color - terser - vite-plugin-inspect@0.8.7(rollup@4.18.0)(vite@5.4.11(@types/node@20.14.9)): + vite-plugin-inspect@0.8.7(rollup@4.25.0)(vite@5.4.11(@types/node@20.14.9)): dependencies: '@antfu/utils': 0.7.10 - '@rollup/pluginutils': 5.1.3(rollup@4.18.0) + '@rollup/pluginutils': 5.1.3(rollup@4.25.0) debug: 4.3.7 error-stack-parser-es: 0.1.5 fs-extra: 11.2.0 From ad652e364a988d4897367df02dc74bf5f8056521 Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Fri, 13 Dec 2024 12:51:26 +0100 Subject: [PATCH 05/16] replace import subpaths with the default $lib alias --- package.json | 12 +-- pnpm-lock.yaml | 75 ++++++++++++++++++- src/{ => lib}/compiler/plugins.ts | 10 +-- .../appendix/create-export-default.test.ts | 2 +- .../appendix/create-export-default.ts | 4 +- .../appendix/create-export-order.test.ts | 0 .../appendix/create-export-order.ts | 4 +- .../appendix/create-import.test.ts | 0 .../post-transform/appendix/create-import.ts | 2 +- .../create-named-export-story.test.ts | 2 +- .../appendix/create-named-export-story.ts | 2 +- ...variable-from-runtime-stories-call.test.ts | 0 ...eate-variable-from-runtime-stories-call.ts | 4 +- .../post-transform/create-appendix.ts | 8 +- .../define-meta/destructure-meta.ts | 4 +- .../post-transform/define-meta/index.test.ts | 6 +- .../post-transform/define-meta/index.ts | 4 +- .../define-meta/insert-description.ts | 10 +-- .../compiler/post-transform/index.test.ts | 6 +- .../compiler/post-transform/index.ts | 6 +- .../remove-export-default.test.ts | 4 +- .../post-transform/remove-export-default.ts | 2 +- .../post-transform/shared/description.ts | 4 +- .../post-transform/story/index.test.ts | 8 +- .../compiler/post-transform/story/index.ts | 4 +- .../story/insert-description.ts | 12 +-- .../post-transform/story/insert-svelte-csf.ts | 12 +-- .../component-meta-to-define-meta.test.ts | 4 +- .../codemods/component-meta-to-define-meta.ts | 2 +- .../export-const-to-define-meta.test.ts | 4 +- .../codemods/export-const-to-define-meta.ts | 2 +- .../codemods/import-declaration.test.ts | 4 +- .../codemods/import-declaration.ts | 4 +- .../codemods/legacy-story.test.ts | 4 +- .../pre-transform/codemods/legacy-story.ts | 4 +- .../codemods/template-to-snippet.test.ts | 4 +- .../codemods/template-to-snippet.ts | 4 +- .../compiler/pre-transform/index.test.ts | 2 +- src/{ => lib}/compiler/pre-transform/index.ts | 14 ++-- src/{ => lib}/estree.d.ts | 0 src/{ => lib}/index.test.ts | 2 +- src/{ => lib}/index.ts | 0 src/{ => lib}/indexer/index.ts | 8 +- src/{ => lib}/indexer/parser.ts | 16 ++-- src/{ => lib}/legacy-types.d.ts | 0 src/{ => lib}/parser/README.md | 0 .../define-meta/component-identifier.ts | 8 +- .../analyse/define-meta/meta-identifier.ts | 6 +- .../parser/analyse/define-meta/properties.ts | 4 +- .../parser/analyse/story/attributes.test.ts | 8 +- .../parser/analyse/story/attributes.ts | 4 +- .../story/attributes/identifiers.test.ts | 8 +- .../analyse/story/attributes/identifiers.ts | 12 +-- .../parser/analyse/story/children.test.ts | 4 +- .../parser/analyse/story/children.ts | 10 +-- src/{ => lib}/parser/ast.ts | 0 .../parser/extract/compiled/nodes.ts | 6 +- .../parser/extract/compiled/stories.ts | 2 +- .../parser/extract/compiled/story.ts | 6 +- .../parser/extract/svelte/define-meta.test.ts | 4 +- .../parser/extract/svelte/define-meta.ts | 10 +-- .../extract/svelte/fragment-nodes.test.ts | 2 +- .../parser/extract/svelte/fragment-nodes.ts | 2 +- .../extract/svelte/instance-nodes.test.ts | 2 +- .../parser/extract/svelte/instance-nodes.ts | 2 +- .../extract/svelte/legacy-export-meta.ts | 8 +- .../extract/svelte/module-nodes.test.ts | 4 +- .../parser/extract/svelte/module-nodes.ts | 4 +- .../parser/extract/svelte/nodes.test.ts | 2 +- src/{ => lib}/parser/extract/svelte/nodes.ts | 2 +- .../parser/extract/svelte/snippet-block.ts | 8 +- .../extract/svelte/story/attributes.test.ts | 4 +- .../parser/extract/svelte/story/attributes.ts | 6 +- .../extract/svelte/story/children.test.ts | 4 +- .../parser/extract/svelte/story/children.ts | 2 +- src/{ => lib}/preset.ts | 4 +- src/{ => lib}/runtime/LegacyMeta.svelte | 0 src/{ => lib}/runtime/LegacyStory.svelte | 0 src/{ => lib}/runtime/LegacyTemplate.svelte | 0 src/{ => lib}/runtime/StoriesExtractor.svelte | 4 +- src/{ => lib}/runtime/Story.svelte | 0 src/{ => lib}/runtime/StoryRenderer.svelte | 0 .../runtime/contexts/extractor.svelte.ts | 0 .../runtime/contexts/renderer.svelte.ts | 0 .../runtime/contexts/template.svelte.ts | 0 .../runtime/create-runtime-stories.ts | 4 +- src/{ => lib}/runtime/emit-code.test.ts | 0 src/{ => lib}/runtime/emit-code.ts | 0 src/{ => lib}/svelte.d.ts | 0 src/{ => lib}/types.test.ts | 2 +- src/{ => lib}/types.ts | 0 src/{ => lib}/utils/error.ts | 2 +- src/{ => lib}/utils/error/legacy-api/index.ts | 4 +- .../utils/error/parser/analyse/define-meta.ts | 2 +- .../utils/error/parser/analyse/story.ts | 6 +- .../utils/error/parser/extract/compiled.ts | 4 +- .../utils/error/parser/extract/svelte.ts | 6 +- src/{ => lib}/utils/identifier-utils.test.ts | 0 src/{ => lib}/utils/identifier-utils.ts | 0 tests/extractor.ts | 2 +- tsconfig.json | 10 ++- 101 files changed, 276 insertions(+), 203 deletions(-) rename src/{ => lib}/compiler/plugins.ts (90%) rename src/{ => lib}/compiler/post-transform/appendix/create-export-default.test.ts (95%) rename src/{ => lib}/compiler/post-transform/appendix/create-export-default.ts (69%) rename src/{ => lib}/compiler/post-transform/appendix/create-export-order.test.ts (100%) rename src/{ => lib}/compiler/post-transform/appendix/create-export-order.ts (86%) rename src/{ => lib}/compiler/post-transform/appendix/create-import.test.ts (100%) rename src/{ => lib}/compiler/post-transform/appendix/create-import.ts (93%) rename src/{ => lib}/compiler/post-transform/appendix/create-named-export-story.test.ts (95%) rename src/{ => lib}/compiler/post-transform/appendix/create-named-export-story.ts (96%) rename src/{ => lib}/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.test.ts (100%) rename src/{ => lib}/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.ts (88%) rename src/{ => lib}/compiler/post-transform/create-appendix.ts (84%) rename src/{ => lib}/compiler/post-transform/define-meta/destructure-meta.ts (87%) rename src/{ => lib}/compiler/post-transform/define-meta/index.test.ts (91%) rename src/{ => lib}/compiler/post-transform/define-meta/index.ts (87%) rename src/{ => lib}/compiler/post-transform/define-meta/insert-description.ts (91%) rename src/{ => lib}/compiler/post-transform/index.test.ts (97%) rename src/{ => lib}/compiler/post-transform/index.ts (88%) rename src/{ => lib}/compiler/post-transform/remove-export-default.test.ts (91%) rename src/{ => lib}/compiler/post-transform/remove-export-default.ts (92%) rename src/{ => lib}/compiler/post-transform/shared/description.ts (97%) rename src/{ => lib}/compiler/post-transform/story/index.test.ts (93%) rename src/{ => lib}/compiler/post-transform/story/index.ts (87%) rename src/{ => lib}/compiler/post-transform/story/insert-description.ts (88%) rename src/{ => lib}/compiler/post-transform/story/insert-svelte-csf.ts (76%) rename src/{ => lib}/compiler/pre-transform/codemods/component-meta-to-define-meta.test.ts (97%) rename src/{ => lib}/compiler/pre-transform/codemods/component-meta-to-define-meta.ts (99%) rename src/{ => lib}/compiler/pre-transform/codemods/export-const-to-define-meta.test.ts (95%) rename src/{ => lib}/compiler/pre-transform/codemods/export-const-to-define-meta.ts (97%) rename src/{ => lib}/compiler/pre-transform/codemods/import-declaration.test.ts (93%) rename src/{ => lib}/compiler/pre-transform/codemods/import-declaration.ts (89%) rename src/{ => lib}/compiler/pre-transform/codemods/legacy-story.test.ts (98%) rename src/{ => lib}/compiler/pre-transform/codemods/legacy-story.ts (98%) rename src/{ => lib}/compiler/pre-transform/codemods/template-to-snippet.test.ts (94%) rename src/{ => lib}/compiler/pre-transform/codemods/template-to-snippet.ts (93%) rename src/{ => lib}/compiler/pre-transform/index.test.ts (99%) rename src/{ => lib}/compiler/pre-transform/index.ts (94%) rename src/{ => lib}/estree.d.ts (100%) rename src/{ => lib}/index.test.ts (99%) rename src/{ => lib}/index.ts (100%) rename src/{ => lib}/indexer/index.ts (82%) rename src/{ => lib}/indexer/parser.ts (94%) rename src/{ => lib}/legacy-types.d.ts (100%) rename src/{ => lib}/parser/README.md (100%) rename src/{ => lib}/parser/analyse/define-meta/component-identifier.ts (64%) rename src/{ => lib}/parser/analyse/define-meta/meta-identifier.ts (83%) rename src/{ => lib}/parser/analyse/define-meta/properties.ts (92%) rename src/{ => lib}/parser/analyse/story/attributes.test.ts (95%) rename src/{ => lib}/parser/analyse/story/attributes.ts (96%) rename src/{ => lib}/parser/analyse/story/attributes/identifiers.test.ts (97%) rename src/{ => lib}/parser/analyse/story/attributes/identifiers.ts (83%) rename src/{ => lib}/parser/analyse/story/children.test.ts (98%) rename src/{ => lib}/parser/analyse/story/children.ts (91%) rename src/{ => lib}/parser/ast.ts (100%) rename src/{ => lib}/parser/extract/compiled/nodes.ts (96%) rename src/{ => lib}/parser/extract/compiled/stories.ts (94%) rename src/{ => lib}/parser/extract/compiled/story.ts (82%) rename src/{ => lib}/parser/extract/svelte/define-meta.test.ts (90%) rename src/{ => lib}/parser/extract/svelte/define-meta.ts (86%) rename src/{ => lib}/parser/extract/svelte/fragment-nodes.test.ts (98%) rename src/{ => lib}/parser/extract/svelte/fragment-nodes.ts (97%) rename src/{ => lib}/parser/extract/svelte/instance-nodes.test.ts (96%) rename src/{ => lib}/parser/extract/svelte/instance-nodes.ts (95%) rename src/{ => lib}/parser/extract/svelte/legacy-export-meta.ts (88%) rename src/{ => lib}/parser/extract/svelte/module-nodes.test.ts (98%) rename src/{ => lib}/parser/extract/svelte/module-nodes.ts (97%) rename src/{ => lib}/parser/extract/svelte/nodes.test.ts (94%) rename src/{ => lib}/parser/extract/svelte/nodes.ts (95%) rename src/{ => lib}/parser/extract/svelte/snippet-block.ts (92%) rename src/{ => lib}/parser/extract/svelte/story/attributes.test.ts (93%) rename src/{ => lib}/parser/extract/svelte/story/attributes.ts (86%) rename src/{ => lib}/parser/extract/svelte/story/children.test.ts (93%) rename src/{ => lib}/parser/extract/svelte/story/children.ts (91%) rename src/{ => lib}/preset.ts (90%) rename src/{ => lib}/runtime/LegacyMeta.svelte (100%) rename src/{ => lib}/runtime/LegacyStory.svelte (100%) rename src/{ => lib}/runtime/LegacyTemplate.svelte (100%) rename src/{ => lib}/runtime/StoriesExtractor.svelte (79%) rename src/{ => lib}/runtime/Story.svelte (100%) rename src/{ => lib}/runtime/StoryRenderer.svelte (100%) rename src/{ => lib}/runtime/contexts/extractor.svelte.ts (100%) rename src/{ => lib}/runtime/contexts/renderer.svelte.ts (100%) rename src/{ => lib}/runtime/contexts/template.svelte.ts (100%) rename src/{ => lib}/runtime/create-runtime-stories.ts (95%) rename src/{ => lib}/runtime/emit-code.test.ts (100%) rename src/{ => lib}/runtime/emit-code.ts (100%) rename src/{ => lib}/svelte.d.ts (100%) rename src/{ => lib}/types.test.ts (99%) rename src/{ => lib}/types.ts (100%) rename src/{ => lib}/utils/error.ts (99%) rename src/{ => lib}/utils/error/legacy-api/index.ts (94%) rename src/{ => lib}/utils/error/parser/analyse/define-meta.ts (98%) rename src/{ => lib}/utils/error/parser/analyse/story.ts (96%) rename src/{ => lib}/utils/error/parser/extract/compiled.ts (95%) rename src/{ => lib}/utils/error/parser/extract/svelte.ts (97%) rename src/{ => lib}/utils/identifier-utils.test.ts (100%) rename src/{ => lib}/utils/identifier-utils.ts (100%) diff --git a/package.json b/package.json index df16965c..fe5335e9 100644 --- a/package.json +++ b/package.json @@ -13,15 +13,6 @@ }, "license": "MIT", "type": "module", - "imports": { - "#tests/*": { - "development": "./tests/*.ts" - }, - "#*": { - "development": "./src/*.ts", - "default": "./dist/*.js" - } - }, "exports": { ".": { "types": "./dist/index.d.ts", @@ -44,7 +35,7 @@ "README.md" ], "scripts": { - "build": "svelte-package --input ./src --types", + "build": "svelte-package --types", "build-storybook": "storybook build", "check": "svelte-check", "chromatic": "chromatic --exit-zero-on-changes", @@ -82,6 +73,7 @@ "@storybook/svelte": "^8.0.0", "@storybook/svelte-vite": "^8.0.0", "@storybook/test": "^8.0.0", + "@sveltejs/kit": "^2.11.1", "@sveltejs/package": "^2.3.7", "@sveltejs/vite-plugin-svelte": "4.0.0", "@tsconfig/svelte": "^5.0.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4529480a..118b90c8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -72,6 +72,9 @@ importers: '@storybook/test': specifier: ^8.0.0 version: 8.3.6(storybook@8.3.5) + '@sveltejs/kit': + specifier: ^2.11.1 + version: 2.11.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.4)(vite@5.3.2(@types/node@20.14.9)))(svelte@5.1.4)(vite@5.3.2(@types/node@20.14.9)) '@sveltejs/package': specifier: ^2.3.7 version: 2.3.7(svelte@5.1.4)(typescript@5.5.2) @@ -1006,6 +1009,15 @@ packages: peerDependencies: storybook: ^8.3.6 + '@sveltejs/kit@2.11.1': + resolution: {integrity: sha512-dAiHDEd+AOm20eYdMPV1a2eKBOc0s/7XsSs7PCoNv2kKS7BAoVRC9uzR+FQmxLtp8xuEo9z8CtrMQoszkThltQ==} + engines: {node: '>=18.13'} + hasBin: true + peerDependencies: + '@sveltejs/vite-plugin-svelte': ^3.0.0 || ^4.0.0-next.1 || ^5.0.0 + svelte: ^4.0.0 || ^5.0.0-next.0 + vite: ^5.0.3 || ^6.0.0 + '@sveltejs/package@2.3.7': resolution: {integrity: sha512-LYgUkde5GUYqOpXbcoCGUpEH4Ctl3Wj4u4CVZBl56dEeLW5fGHE037ZL1qlK0Ky+QD5uUfwONSeGwIOIighFMQ==} engines: {node: ^16.14 || >=18} @@ -1075,6 +1087,9 @@ packages: '@types/connect@3.4.38': resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==} + '@types/cookie@0.6.0': + resolution: {integrity: sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==} + '@types/debug@4.1.12': resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==} @@ -1916,6 +1931,10 @@ packages: cookie-signature@1.0.6: resolution: {integrity: sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==} + cookie@0.6.0: + resolution: {integrity: sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==} + engines: {node: '>= 0.6'} + cookie@0.7.1: resolution: {integrity: sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==} engines: {node: '>= 0.6'} @@ -2118,6 +2137,9 @@ packages: resolution: {integrity: sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==} engines: {node: '>=8'} + devalue@5.1.1: + resolution: {integrity: sha512-maua5KUiapvEwiEAe+XnlZ3Rh0GD+qI1J/nb9vrJc3muPXvcF/8gXYTWF76+5DAqHyDUtOIImEuo0YKE9mshVw==} + devlop@1.1.0: resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==} @@ -2463,6 +2485,9 @@ packages: esm-env@1.0.0: resolution: {integrity: sha512-Cf6VksWPsTuW01vU9Mk/3vRue91Zevka5SjyNf3nEpokFRuqt/KjUQoGAwq9qMmhpLTHmXzSIrFRw8zxWzmFBA==} + esm-env@1.2.1: + resolution: {integrity: sha512-U9JedYYjCnadUlXk7e1Kr+aENQhtUaoaV9+gZm1T8LC/YBAPJx3NSPIAurFOC0U5vrdSevnUJS2/wUVxGwPhng==} + espree@7.3.1: resolution: {integrity: sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==} engines: {node: ^10.12.0 || >=12.0.0} @@ -2773,6 +2798,9 @@ packages: resolution: {integrity: sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==} engines: {node: '>= 0.4'} + globalyzer@0.1.0: + resolution: {integrity: sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==} + globby@10.0.0: resolution: {integrity: sha512-3LifW9M4joGZasyYPz2A1U74zbC/45fvpXUvO/9KbSa+VV0aGZarWkfdgKyR9sExNP0t0x0ss/UMJpNpcaTspw==} engines: {node: '>=8'} @@ -2789,6 +2817,9 @@ packages: resolution: {integrity: sha512-yANWAN2DUcBtuus5Cpd+SKROzXHs2iVXFZt/Ykrfz6SAXqacLX25NZpltE+39ceMexYF4TtEadjuSTw8+3wX4g==} engines: {node: '>=4'} + globrex@0.1.2: + resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==} + gopd@1.0.1: resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} @@ -4571,6 +4602,9 @@ packages: set-blocking@2.0.0: resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} + set-cookie-parser@2.7.1: + resolution: {integrity: sha512-IOc8uWeOZgnb3ptbCURJWNjWUPcO3ZnTTdzsurqERrP6nPyv+paC55vJM0LpOlT2ne+Ix+9+CRG1MNLlyZ4GjQ==} + set-function-length@1.2.2: resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==} engines: {node: '>= 0.4'} @@ -4904,6 +4938,9 @@ packages: through@2.3.8: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} + tiny-glob@0.2.9: + resolution: {integrity: sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==} + tiny-invariant@1.3.3: resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==} @@ -6892,6 +6929,24 @@ snapshots: dependencies: storybook: 8.3.5 + '@sveltejs/kit@2.11.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.4)(vite@5.3.2(@types/node@20.14.9)))(svelte@5.1.4)(vite@5.3.2(@types/node@20.14.9))': + dependencies: + '@sveltejs/vite-plugin-svelte': 4.0.0(svelte@5.1.4)(vite@5.3.2(@types/node@20.14.9)) + '@types/cookie': 0.6.0 + cookie: 0.6.0 + devalue: 5.1.1 + esm-env: 1.2.1 + import-meta-resolve: 4.1.0 + kleur: 4.1.5 + magic-string: 0.30.12 + mrmime: 2.0.0 + sade: 1.8.1 + set-cookie-parser: 2.7.1 + sirv: 3.0.0 + svelte: 5.1.4 + tiny-glob: 0.2.9 + vite: 5.3.2(@types/node@20.14.9) + '@sveltejs/package@2.3.7(svelte@5.1.4)(typescript@5.5.2)': dependencies: chokidar: 4.0.1 @@ -6979,6 +7034,8 @@ snapshots: dependencies: '@types/node': 20.14.9 + '@types/cookie@0.6.0': {} + '@types/debug@4.1.12': dependencies: '@types/ms': 0.7.34 @@ -8089,6 +8146,8 @@ snapshots: cookie-signature@1.0.6: {} + cookie@0.6.0: {} + cookie@0.7.1: {} core-util-is@1.0.3: @@ -8247,6 +8306,8 @@ snapshots: detect-newline@3.1.0: {} + devalue@5.1.1: {} + devlop@1.1.0: dependencies: dequal: 2.0.3 @@ -8770,6 +8831,8 @@ snapshots: esm-env@1.0.0: {} + esm-env@1.2.1: {} + espree@7.3.1: dependencies: acorn: 7.4.1 @@ -9156,6 +9219,8 @@ snapshots: define-properties: 1.2.1 gopd: 1.0.1 + globalyzer@0.1.0: {} + globby@10.0.0: dependencies: '@types/glob': 7.2.0 @@ -9195,6 +9260,8 @@ snapshots: pify: 3.0.0 slash: 1.0.0 + globrex@0.1.2: {} + gopd@1.0.1: dependencies: get-intrinsic: 1.2.4 @@ -11375,6 +11442,8 @@ snapshots: set-blocking@2.0.0: optional: true + set-cookie-parser@2.7.1: {} + set-function-length@1.2.2: dependencies: define-data-property: 1.1.4 @@ -11438,7 +11507,6 @@ snapshots: '@polka/url': 1.0.0-next.25 mrmime: 2.0.0 totalist: 3.0.1 - optional: true slash@1.0.0: {} @@ -11779,6 +11847,11 @@ snapshots: through@2.3.8: optional: true + tiny-glob@0.2.9: + dependencies: + globalyzer: 0.1.0 + globrex: 0.1.2 + tiny-invariant@1.3.3: {} tinybench@2.8.0: {} diff --git a/src/compiler/plugins.ts b/src/lib/compiler/plugins.ts similarity index 90% rename from src/compiler/plugins.ts rename to src/lib/compiler/plugins.ts index 503dd699..3fc3c0d0 100644 --- a/src/compiler/plugins.ts +++ b/src/lib/compiler/plugins.ts @@ -14,11 +14,11 @@ import MagicString from 'magic-string'; import { preprocess } from 'svelte/compiler'; import type { Plugin } from 'vite'; -import { codemodLegacyNodes } from '#compiler/pre-transform/index'; -import { transformStoriesCode } from '#compiler/post-transform/index'; -import { getSvelteAST } from '#parser/ast'; -import { extractCompiledASTNodes } from '#parser/extract/compiled/nodes'; -import { extractSvelteASTNodes } from '#parser/extract/svelte/nodes'; +import { codemodLegacyNodes } from '$lib/compiler/pre-transform/index'; +import { transformStoriesCode } from '$lib/compiler/post-transform/index'; +import { getSvelteAST } from '$lib/parser/ast'; +import { extractCompiledASTNodes } from '$lib/parser/extract/compiled/nodes'; +import { extractSvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; export async function preTransformPlugin(): Promise { const [{ createFilter }, { print }] = await Promise.all([ diff --git a/src/compiler/post-transform/appendix/create-export-default.test.ts b/src/lib/compiler/post-transform/appendix/create-export-default.test.ts similarity index 95% rename from src/compiler/post-transform/appendix/create-export-default.test.ts rename to src/lib/compiler/post-transform/appendix/create-export-default.test.ts index cd1531c1..7a1485af 100644 --- a/src/compiler/post-transform/appendix/create-export-default.test.ts +++ b/src/lib/compiler/post-transform/appendix/create-export-default.test.ts @@ -3,7 +3,7 @@ import { describe, it } from 'vitest'; import { createExportDefaultMeta } from './create-export-default'; -import type { ESTreeAST } from '#parser/ast'; +import type { ESTreeAST } from '$lib/parser/ast'; describe(createExportDefaultMeta.name, () => { it('creates a new export default correctly', ({ expect }) => { diff --git a/src/compiler/post-transform/appendix/create-export-default.ts b/src/lib/compiler/post-transform/appendix/create-export-default.ts similarity index 69% rename from src/compiler/post-transform/appendix/create-export-default.ts rename to src/lib/compiler/post-transform/appendix/create-export-default.ts index c01de2b0..a525cb26 100644 --- a/src/compiler/post-transform/appendix/create-export-default.ts +++ b/src/lib/compiler/post-transform/appendix/create-export-default.ts @@ -1,5 +1,5 @@ -import type { getMetaIdentifier } from '#parser/analyse/define-meta/meta-identifier'; -import type { ESTreeAST } from '#parser/ast'; +import type { getMetaIdentifier } from '$lib/parser/analyse/define-meta/meta-identifier'; +import type { ESTreeAST } from '$lib/parser/ast'; interface Params { metaIdentifier: ReturnType; diff --git a/src/compiler/post-transform/appendix/create-export-order.test.ts b/src/lib/compiler/post-transform/appendix/create-export-order.test.ts similarity index 100% rename from src/compiler/post-transform/appendix/create-export-order.test.ts rename to src/lib/compiler/post-transform/appendix/create-export-order.test.ts diff --git a/src/compiler/post-transform/appendix/create-export-order.ts b/src/lib/compiler/post-transform/appendix/create-export-order.ts similarity index 86% rename from src/compiler/post-transform/appendix/create-export-order.ts rename to src/lib/compiler/post-transform/appendix/create-export-order.ts index 3351311c..9ff021c7 100644 --- a/src/compiler/post-transform/appendix/create-export-order.ts +++ b/src/lib/compiler/post-transform/appendix/create-export-order.ts @@ -1,5 +1,5 @@ -import type { getStoriesIdentifiers } from '#parser/analyse/story/attributes/identifiers'; -import type { ESTreeAST } from '#parser/ast'; +import type { getStoriesIdentifiers } from '$lib/parser/analyse/story/attributes/identifiers'; +import type { ESTreeAST } from '$lib/parser/ast'; interface Params { storyIdentifiers: ReturnType; diff --git a/src/compiler/post-transform/appendix/create-import.test.ts b/src/lib/compiler/post-transform/appendix/create-import.test.ts similarity index 100% rename from src/compiler/post-transform/appendix/create-import.test.ts rename to src/lib/compiler/post-transform/appendix/create-import.test.ts diff --git a/src/compiler/post-transform/appendix/create-import.ts b/src/lib/compiler/post-transform/appendix/create-import.ts similarity index 93% rename from src/compiler/post-transform/appendix/create-import.ts rename to src/lib/compiler/post-transform/appendix/create-import.ts index 736fb1bf..6b3065bb 100644 --- a/src/compiler/post-transform/appendix/create-import.ts +++ b/src/lib/compiler/post-transform/appendix/create-import.ts @@ -1,6 +1,6 @@ import pkg from '@storybook/addon-svelte-csf/package.json' with { type: 'json' }; -import type { ESTreeAST } from '#parser/ast'; +import type { ESTreeAST } from '$lib/parser/ast'; /** * The export is defined in the `package.json` export map diff --git a/src/compiler/post-transform/appendix/create-named-export-story.test.ts b/src/lib/compiler/post-transform/appendix/create-named-export-story.test.ts similarity index 95% rename from src/compiler/post-transform/appendix/create-named-export-story.test.ts rename to src/lib/compiler/post-transform/appendix/create-named-export-story.test.ts index e50cc4bd..ea2ea7e5 100644 --- a/src/compiler/post-transform/appendix/create-named-export-story.test.ts +++ b/src/lib/compiler/post-transform/appendix/create-named-export-story.test.ts @@ -4,7 +4,7 @@ import { describe, it } from 'vitest'; import { createNamedExportStory } from './create-named-export-story'; import { createVariableFromRuntimeStoriesCall } from './create-variable-from-runtime-stories-call'; -import type { ESTreeAST } from '#parser/ast'; +import type { ESTreeAST } from '$lib/parser/ast'; describe(createNamedExportStory.name, () => { it('correctly creates a variable with named exports order', ({ expect }) => { diff --git a/src/compiler/post-transform/appendix/create-named-export-story.ts b/src/lib/compiler/post-transform/appendix/create-named-export-story.ts similarity index 96% rename from src/compiler/post-transform/appendix/create-named-export-story.ts rename to src/lib/compiler/post-transform/appendix/create-named-export-story.ts index 1f794589..96597c50 100644 --- a/src/compiler/post-transform/appendix/create-named-export-story.ts +++ b/src/lib/compiler/post-transform/appendix/create-named-export-story.ts @@ -1,6 +1,6 @@ import type { createVariableFromRuntimeStoriesCall } from './create-variable-from-runtime-stories-call'; -import type { ESTreeAST } from '#parser/ast'; +import type { ESTreeAST } from '$lib/parser/ast'; interface Params { exportName: string; diff --git a/src/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.test.ts b/src/lib/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.test.ts similarity index 100% rename from src/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.test.ts rename to src/lib/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.test.ts diff --git a/src/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.ts b/src/lib/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.ts similarity index 88% rename from src/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.ts rename to src/lib/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.ts index 386518e0..7902271f 100644 --- a/src/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.ts +++ b/src/lib/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.ts @@ -1,5 +1,5 @@ -import type { getMetaIdentifier } from '#parser/analyse/define-meta/meta-identifier'; -import type { ESTreeAST } from '#parser/ast'; +import type { getMetaIdentifier } from '$lib/parser/analyse/define-meta/meta-identifier'; +import type { ESTreeAST } from '$lib/parser/ast'; interface Params { storiesFunctionDeclaration: ESTreeAST.FunctionDeclaration; diff --git a/src/compiler/post-transform/create-appendix.ts b/src/lib/compiler/post-transform/create-appendix.ts similarity index 84% rename from src/compiler/post-transform/create-appendix.ts rename to src/lib/compiler/post-transform/create-appendix.ts index ad5f0f4f..1a1496c9 100644 --- a/src/compiler/post-transform/create-appendix.ts +++ b/src/lib/compiler/post-transform/create-appendix.ts @@ -7,10 +7,10 @@ import { createRuntimeStoriesImport } from './appendix/create-import'; import { createVariableFromRuntimeStoriesCall } from './appendix/create-variable-from-runtime-stories-call'; import { createNamedExportStory } from './appendix/create-named-export-story'; -import { getMetaIdentifier } from '#parser/analyse/define-meta/meta-identifier'; -import type { CompiledASTNodes } from '#parser/extract/compiled/nodes'; -import type { SvelteASTNodes } from '#parser/extract/svelte/nodes'; -import { getStoriesIdentifiers } from '#parser/analyse/story/attributes/identifiers'; +import { getMetaIdentifier } from '$lib/parser/analyse/define-meta/meta-identifier'; +import type { CompiledASTNodes } from '$lib/parser/extract/compiled/nodes'; +import type { SvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; +import { getStoriesIdentifiers } from '$lib/parser/analyse/story/attributes/identifiers'; interface Params { code: MagicString; diff --git a/src/compiler/post-transform/define-meta/destructure-meta.ts b/src/lib/compiler/post-transform/define-meta/destructure-meta.ts similarity index 87% rename from src/compiler/post-transform/define-meta/destructure-meta.ts rename to src/lib/compiler/post-transform/define-meta/destructure-meta.ts index 7fdd0e53..6fd22c46 100644 --- a/src/compiler/post-transform/define-meta/destructure-meta.ts +++ b/src/lib/compiler/post-transform/define-meta/destructure-meta.ts @@ -1,5 +1,5 @@ -import type { CompiledASTNodes } from '#parser/extract/compiled/nodes'; -import { NoDestructuredDefineMetaCallError } from '#utils/error/parser/analyse/define-meta'; +import type { CompiledASTNodes } from '$lib/parser/extract/compiled/nodes'; +import { NoDestructuredDefineMetaCallError } from '$lib/utils/error/parser/analyse/define-meta'; interface Params { nodes: CompiledASTNodes; diff --git a/src/compiler/post-transform/define-meta/index.test.ts b/src/lib/compiler/post-transform/define-meta/index.test.ts similarity index 91% rename from src/compiler/post-transform/define-meta/index.test.ts rename to src/lib/compiler/post-transform/define-meta/index.test.ts index 57b15a43..cbc4dc71 100644 --- a/src/compiler/post-transform/define-meta/index.test.ts +++ b/src/lib/compiler/post-transform/define-meta/index.test.ts @@ -9,9 +9,9 @@ import { describe, it } from 'vitest'; import { transformDefineMeta } from '.'; -import { getSvelteAST } from '#parser/ast'; -import { extractSvelteASTNodes } from '#parser/extract/svelte/nodes'; -import { extractCompiledASTNodes } from '#parser/extract/compiled/nodes'; +import { getSvelteAST } from '$lib/parser/ast'; +import { extractSvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; +import { extractCompiledASTNodes } from '$lib/parser/extract/compiled/nodes'; const __dirname = path.dirname(url.fileURLToPath(import.meta.url)); diff --git a/src/compiler/post-transform/define-meta/index.ts b/src/lib/compiler/post-transform/define-meta/index.ts similarity index 87% rename from src/compiler/post-transform/define-meta/index.ts rename to src/lib/compiler/post-transform/define-meta/index.ts index bc20527e..2b5c22a8 100644 --- a/src/compiler/post-transform/define-meta/index.ts +++ b/src/lib/compiler/post-transform/define-meta/index.ts @@ -4,8 +4,8 @@ import type MagicString from 'magic-string'; import { destructureMetaFromDefineMeta } from './destructure-meta'; import { insertDefineMetaJSDocCommentAsDescription } from './insert-description'; -import type { CompiledASTNodes } from '#parser/extract/compiled/nodes'; -import type { SvelteASTNodes } from '#parser/extract/svelte/nodes'; +import type { CompiledASTNodes } from '$lib/parser/extract/compiled/nodes'; +import type { SvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; interface Params { code: MagicString; diff --git a/src/compiler/post-transform/define-meta/insert-description.ts b/src/lib/compiler/post-transform/define-meta/insert-description.ts similarity index 91% rename from src/compiler/post-transform/define-meta/insert-description.ts rename to src/lib/compiler/post-transform/define-meta/insert-description.ts index 085e7f13..1979e0ba 100644 --- a/src/compiler/post-transform/define-meta/insert-description.ts +++ b/src/lib/compiler/post-transform/define-meta/insert-description.ts @@ -8,11 +8,11 @@ import { getDescriptionPropertyValue, getDocsPropertyValue, getParametersPropertyValue, -} from '#compiler/post-transform/shared/description'; -import { createASTObjectExpression, createASTProperty, type ESTreeAST } from '#parser/ast'; -import type { SvelteASTNodes } from '#parser/extract/svelte/nodes'; -import type { CompiledASTNodes } from '#parser/extract/compiled/nodes'; -import { getDefineMetaFirstArgumentObjectExpression } from '#parser/extract/svelte/define-meta'; +} from '$lib/compiler/post-transform/shared/description'; +import { createASTObjectExpression, createASTProperty, type ESTreeAST } from '$lib/parser/ast'; +import type { SvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; +import type { CompiledASTNodes } from '$lib/parser/extract/compiled/nodes'; +import { getDefineMetaFirstArgumentObjectExpression } from '$lib/parser/extract/svelte/define-meta'; interface Params { nodes: { diff --git a/src/compiler/post-transform/index.test.ts b/src/lib/compiler/post-transform/index.test.ts similarity index 97% rename from src/compiler/post-transform/index.test.ts rename to src/lib/compiler/post-transform/index.test.ts index 1d00c268..ecadcc1d 100644 --- a/src/compiler/post-transform/index.test.ts +++ b/src/lib/compiler/post-transform/index.test.ts @@ -8,9 +8,9 @@ import { describe, it } from 'vitest'; import { transformStoriesCode } from '.'; -import { getSvelteAST } from '#parser/ast'; -import { extractSvelteASTNodes } from '#parser/extract/svelte/nodes'; -import { extractCompiledASTNodes } from '#parser/extract/compiled/nodes'; +import { getSvelteAST } from '$lib/parser/ast'; +import { extractSvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; +import { extractCompiledASTNodes } from '$lib/parser/extract/compiled/nodes'; const __dirname = path.dirname(url.fileURLToPath(import.meta.url)); diff --git a/src/compiler/post-transform/index.ts b/src/lib/compiler/post-transform/index.ts similarity index 88% rename from src/compiler/post-transform/index.ts rename to src/lib/compiler/post-transform/index.ts index d19a7968..2bc09071 100644 --- a/src/compiler/post-transform/index.ts +++ b/src/lib/compiler/post-transform/index.ts @@ -5,9 +5,9 @@ import { transformDefineMeta } from './define-meta'; import { removeExportDefault } from './remove-export-default'; import { createAppendix } from './create-appendix'; -import type { CompiledASTNodes } from '#parser/extract/compiled/nodes'; -import { extractStoriesNodesFromExportDefaultFn } from '#parser/extract/compiled/stories'; -import type { SvelteASTNodes } from '#parser/extract/svelte/nodes'; +import type { CompiledASTNodes } from '$lib/parser/extract/compiled/nodes'; +import { extractStoriesNodesFromExportDefaultFn } from '$lib/parser/extract/compiled/stories'; +import type { SvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; interface Params { code: MagicString; diff --git a/src/compiler/post-transform/remove-export-default.test.ts b/src/lib/compiler/post-transform/remove-export-default.test.ts similarity index 91% rename from src/compiler/post-transform/remove-export-default.test.ts rename to src/lib/compiler/post-transform/remove-export-default.test.ts index 78fd6b8f..56581ff6 100644 --- a/src/compiler/post-transform/remove-export-default.test.ts +++ b/src/lib/compiler/post-transform/remove-export-default.test.ts @@ -8,8 +8,8 @@ import { describe, it } from 'vitest'; import { removeExportDefault } from './remove-export-default'; -import { extractCompiledASTNodes } from '#parser/extract/compiled/nodes'; -import { StorybookSvelteCSFError } from '#utils/error'; +import { extractCompiledASTNodes } from '$lib/parser/extract/compiled/nodes'; +import { StorybookSvelteCSFError } from '$lib/utils/error'; const __dirname = path.dirname(url.fileURLToPath(import.meta.url)); diff --git a/src/compiler/post-transform/remove-export-default.ts b/src/lib/compiler/post-transform/remove-export-default.ts similarity index 92% rename from src/compiler/post-transform/remove-export-default.ts rename to src/lib/compiler/post-transform/remove-export-default.ts index 2eae3733..fce851b6 100644 --- a/src/compiler/post-transform/remove-export-default.ts +++ b/src/lib/compiler/post-transform/remove-export-default.ts @@ -1,7 +1,7 @@ import { print } from 'esrap'; import type MagicString from 'magic-string'; -import type { CompiledASTNodes } from '#parser/extract/compiled/nodes'; +import type { CompiledASTNodes } from '$lib/parser/extract/compiled/nodes'; interface Params { code: MagicString; diff --git a/src/compiler/post-transform/shared/description.ts b/src/lib/compiler/post-transform/shared/description.ts similarity index 97% rename from src/compiler/post-transform/shared/description.ts rename to src/lib/compiler/post-transform/shared/description.ts index dce4ab86..3ed301b4 100644 --- a/src/compiler/post-transform/shared/description.ts +++ b/src/lib/compiler/post-transform/shared/description.ts @@ -1,9 +1,9 @@ import { logger } from '@storybook/node-logger'; import dedent from 'dedent'; -import type { ESTreeAST, SvelteAST } from '#parser/ast'; +import type { ESTreeAST, SvelteAST } from '$lib/parser/ast'; -import { createASTObjectExpression } from '#parser/ast'; +import { createASTObjectExpression } from '$lib/parser/ast'; interface FindPropertyOptions { name: string; diff --git a/src/compiler/post-transform/story/index.test.ts b/src/lib/compiler/post-transform/story/index.test.ts similarity index 93% rename from src/compiler/post-transform/story/index.test.ts rename to src/lib/compiler/post-transform/story/index.test.ts index b279e4f8..6346550a 100644 --- a/src/compiler/post-transform/story/index.test.ts +++ b/src/lib/compiler/post-transform/story/index.test.ts @@ -9,10 +9,10 @@ import { describe, it } from 'vitest'; import { transformStory } from '.'; -import { getSvelteAST } from '#parser/ast'; -import { extractSvelteASTNodes } from '#parser/extract/svelte/nodes'; -import { extractCompiledASTNodes } from '#parser/extract/compiled/nodes'; -import { extractStoriesNodesFromExportDefaultFn } from '#parser/extract/compiled/stories'; +import { getSvelteAST } from '$lib/parser/ast'; +import { extractSvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; +import { extractCompiledASTNodes } from '$lib/parser/extract/compiled/nodes'; +import { extractStoriesNodesFromExportDefaultFn } from '$lib/parser/extract/compiled/stories'; const __dirname = path.dirname(url.fileURLToPath(import.meta.url)); diff --git a/src/compiler/post-transform/story/index.ts b/src/lib/compiler/post-transform/story/index.ts similarity index 87% rename from src/compiler/post-transform/story/index.ts rename to src/lib/compiler/post-transform/story/index.ts index 4b9fb666..721fcbb0 100644 --- a/src/compiler/post-transform/story/index.ts +++ b/src/lib/compiler/post-transform/story/index.ts @@ -4,8 +4,8 @@ import type MagicString from 'magic-string'; import { insertStoryHTMLCommentAsDescription } from './insert-description'; import { insertSvelteCSFToStoryParameters } from './insert-svelte-csf'; -import type { extractStoriesNodesFromExportDefaultFn } from '#parser/extract/compiled/stories'; -import type { SvelteASTNodes } from '#parser/extract/svelte/nodes'; +import type { extractStoriesNodesFromExportDefaultFn } from '$lib/parser/extract/compiled/stories'; +import type { SvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; interface Params { code: MagicString; diff --git a/src/compiler/post-transform/story/insert-description.ts b/src/lib/compiler/post-transform/story/insert-description.ts similarity index 88% rename from src/compiler/post-transform/story/insert-description.ts rename to src/lib/compiler/post-transform/story/insert-description.ts index adc5b945..e71c43a9 100644 --- a/src/compiler/post-transform/story/insert-description.ts +++ b/src/lib/compiler/post-transform/story/insert-description.ts @@ -9,13 +9,13 @@ import { getParametersPropertyValue, getDocsPropertyValue, getDescriptionPropertyValue, -} from '#compiler/post-transform/shared/description'; -import { createASTObjectExpression, createASTProperty } from '#parser/ast'; +} from '$lib/compiler/post-transform/shared/description'; +import { createASTObjectExpression, createASTProperty } from '$lib/parser/ast'; -import type { ESTreeAST } from '#parser/ast'; -import type { extractStoriesNodesFromExportDefaultFn } from '#parser/extract/compiled/stories'; -import { getStoryPropsObjectExpression } from '#parser/extract/compiled/story'; -import type { SvelteASTNodes } from '#parser/extract/svelte/nodes'; +import type { ESTreeAST } from '$lib/parser/ast'; +import type { extractStoriesNodesFromExportDefaultFn } from '$lib/parser/extract/compiled/stories'; +import { getStoryPropsObjectExpression } from '$lib/parser/extract/compiled/story'; +import type { SvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; interface Params { nodes: { diff --git a/src/compiler/post-transform/story/insert-svelte-csf.ts b/src/lib/compiler/post-transform/story/insert-svelte-csf.ts similarity index 76% rename from src/compiler/post-transform/story/insert-svelte-csf.ts rename to src/lib/compiler/post-transform/story/insert-svelte-csf.ts index 6ee2ffeb..91337be8 100644 --- a/src/compiler/post-transform/story/insert-svelte-csf.ts +++ b/src/lib/compiler/post-transform/story/insert-svelte-csf.ts @@ -1,13 +1,13 @@ import { findPropertyParametersIndex, getParametersPropertyValue, -} from '#compiler/post-transform/shared/description'; +} from '$lib/compiler/post-transform/shared/description'; -import type { extractStoriesNodesFromExportDefaultFn } from '#parser/extract/compiled/stories'; -import { getStoryPropsObjectExpression } from '#parser/extract/compiled/story'; -import type { SvelteASTNodes, extractSvelteASTNodes } from '#parser/extract/svelte/nodes'; -import { getStoryChildrenRawCode } from '#parser/analyse/story/children'; -import { createASTObjectExpression, createASTProperty } from '#parser/ast'; +import type { extractStoriesNodesFromExportDefaultFn } from '$lib/parser/extract/compiled/stories'; +import { getStoryPropsObjectExpression } from '$lib/parser/extract/compiled/story'; +import type { SvelteASTNodes, extractSvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; +import { getStoryChildrenRawCode } from '$lib/parser/analyse/story/children'; +import { createASTObjectExpression, createASTProperty } from '$lib/parser/ast'; interface Params { nodes: { diff --git a/src/compiler/pre-transform/codemods/component-meta-to-define-meta.test.ts b/src/lib/compiler/pre-transform/codemods/component-meta-to-define-meta.test.ts similarity index 97% rename from src/compiler/pre-transform/codemods/component-meta-to-define-meta.test.ts rename to src/lib/compiler/pre-transform/codemods/component-meta-to-define-meta.test.ts index a2bb80c0..c0b8c6c8 100644 --- a/src/compiler/pre-transform/codemods/component-meta-to-define-meta.test.ts +++ b/src/lib/compiler/pre-transform/codemods/component-meta-to-define-meta.test.ts @@ -3,8 +3,8 @@ import { describe, it } from 'vitest'; import { transformComponentMetaToDefineMeta } from './component-meta-to-define-meta'; -import type { SvelteAST } from '#parser/ast'; -import { parseAndExtractSvelteNode } from '#tests/extractor'; +import type { SvelteAST } from '$lib/parser/ast'; +import { parseAndExtractSvelteNode } from '$lib/tests/extractor'; describe(transformComponentMetaToDefineMeta.name, () => { it('works with a simple example', async ({ expect }) => { diff --git a/src/compiler/pre-transform/codemods/component-meta-to-define-meta.ts b/src/lib/compiler/pre-transform/codemods/component-meta-to-define-meta.ts similarity index 99% rename from src/compiler/pre-transform/codemods/component-meta-to-define-meta.ts rename to src/lib/compiler/pre-transform/codemods/component-meta-to-define-meta.ts index dfd4f685..e9dc56e9 100644 --- a/src/compiler/pre-transform/codemods/component-meta-to-define-meta.ts +++ b/src/lib/compiler/pre-transform/codemods/component-meta-to-define-meta.ts @@ -3,7 +3,7 @@ import { createASTExpressionTag, type ESTreeAST, type SvelteAST, -} from '#parser/ast'; +} from '$lib/parser/ast'; interface Params { component: SvelteAST.Component; diff --git a/src/compiler/pre-transform/codemods/export-const-to-define-meta.test.ts b/src/lib/compiler/pre-transform/codemods/export-const-to-define-meta.test.ts similarity index 95% rename from src/compiler/pre-transform/codemods/export-const-to-define-meta.test.ts rename to src/lib/compiler/pre-transform/codemods/export-const-to-define-meta.test.ts index 8b308772..c7044173 100644 --- a/src/compiler/pre-transform/codemods/export-const-to-define-meta.test.ts +++ b/src/lib/compiler/pre-transform/codemods/export-const-to-define-meta.test.ts @@ -4,8 +4,8 @@ import { describe, it } from 'vitest'; import { transformExportMetaToDefineMeta } from './export-const-to-define-meta'; -import type { ESTreeAST } from '#parser/ast'; -import { parseAndExtractSvelteNode } from '#tests/extractor'; +import type { ESTreeAST } from '$lib/parser/ast'; +import { parseAndExtractSvelteNode } from '$lib/tests/extractor'; describe(transformExportMetaToDefineMeta.name, () => { it('works with advanced example', async ({ expect }) => { diff --git a/src/compiler/pre-transform/codemods/export-const-to-define-meta.ts b/src/lib/compiler/pre-transform/codemods/export-const-to-define-meta.ts similarity index 97% rename from src/compiler/pre-transform/codemods/export-const-to-define-meta.ts rename to src/lib/compiler/pre-transform/codemods/export-const-to-define-meta.ts index e3c66ccb..b0618d4f 100644 --- a/src/compiler/pre-transform/codemods/export-const-to-define-meta.ts +++ b/src/lib/compiler/pre-transform/codemods/export-const-to-define-meta.ts @@ -1,4 +1,4 @@ -import type { ESTreeAST } from '#parser/ast'; +import type { ESTreeAST } from '$lib/parser/ast'; /** * Codemod to transform AST node of `export const meta` export named declaration to `defineMeta` variable declaration. diff --git a/src/compiler/pre-transform/codemods/import-declaration.test.ts b/src/lib/compiler/pre-transform/codemods/import-declaration.test.ts similarity index 93% rename from src/compiler/pre-transform/codemods/import-declaration.test.ts rename to src/lib/compiler/pre-transform/codemods/import-declaration.test.ts index 3a2fa812..273f143f 100644 --- a/src/compiler/pre-transform/codemods/import-declaration.test.ts +++ b/src/lib/compiler/pre-transform/codemods/import-declaration.test.ts @@ -3,8 +3,8 @@ import { describe, it } from 'vitest'; import { transformImportDeclaration } from './import-declaration'; -import type { ESTreeAST } from '#parser/ast'; -import { parseAndExtractSvelteNode } from '#tests/extractor'; +import type { ESTreeAST } from '$lib/parser/ast'; +import { parseAndExtractSvelteNode } from '$lib/tests/extractor'; describe(transformImportDeclaration.name, () => { it("removes legacy components and add 'defineMeta'", async ({ expect }) => { diff --git a/src/compiler/pre-transform/codemods/import-declaration.ts b/src/lib/compiler/pre-transform/codemods/import-declaration.ts similarity index 89% rename from src/compiler/pre-transform/codemods/import-declaration.ts rename to src/lib/compiler/pre-transform/codemods/import-declaration.ts index d1c85973..e1ccbc67 100644 --- a/src/compiler/pre-transform/codemods/import-declaration.ts +++ b/src/lib/compiler/pre-transform/codemods/import-declaration.ts @@ -1,5 +1,5 @@ -import type { ESTreeAST } from '#parser/ast'; -import { DefaultOrNamespaceImportUsedError } from '#utils/error/parser/extract/svelte'; +import type { ESTreeAST } from '$lib/parser/ast'; +import { DefaultOrNamespaceImportUsedError } from '$lib/utils/error/parser/extract/svelte'; interface Params { node: ESTreeAST.ImportDeclaration; diff --git a/src/compiler/pre-transform/codemods/legacy-story.test.ts b/src/lib/compiler/pre-transform/codemods/legacy-story.test.ts similarity index 98% rename from src/compiler/pre-transform/codemods/legacy-story.test.ts rename to src/lib/compiler/pre-transform/codemods/legacy-story.test.ts index cb140d8e..59be93dc 100644 --- a/src/compiler/pre-transform/codemods/legacy-story.test.ts +++ b/src/lib/compiler/pre-transform/codemods/legacy-story.test.ts @@ -3,8 +3,8 @@ import { describe, it } from 'vitest'; import { transformLegacyStory } from './legacy-story'; -import type { SvelteAST } from '#parser/ast'; -import { parseAndExtractSvelteNode } from '#tests/extractor'; +import type { SvelteAST } from '$lib/parser/ast'; +import { parseAndExtractSvelteNode } from '$lib/tests/extractor'; describe(transformLegacyStory.name, () => { it("it moves 'autodocs' prop to 'tags' correctly", async ({ expect }) => { diff --git a/src/compiler/pre-transform/codemods/legacy-story.ts b/src/lib/compiler/pre-transform/codemods/legacy-story.ts similarity index 98% rename from src/compiler/pre-transform/codemods/legacy-story.ts rename to src/lib/compiler/pre-transform/codemods/legacy-story.ts index 13c2d316..58192817 100644 --- a/src/compiler/pre-transform/codemods/legacy-story.ts +++ b/src/lib/compiler/pre-transform/codemods/legacy-story.ts @@ -8,8 +8,8 @@ import { createASTProperty, type ESTreeAST, type SvelteAST, -} from '#parser/ast'; -import { InvalidTemplateAttribute } from '#utils/error/legacy-api/index'; +} from '$lib/parser/ast'; +import { InvalidTemplateAttribute } from '$lib/utils/error/legacy-api/index'; import type { State } from '..'; diff --git a/src/compiler/pre-transform/codemods/template-to-snippet.test.ts b/src/lib/compiler/pre-transform/codemods/template-to-snippet.test.ts similarity index 94% rename from src/compiler/pre-transform/codemods/template-to-snippet.test.ts rename to src/lib/compiler/pre-transform/codemods/template-to-snippet.test.ts index b100c02f..df03dc96 100644 --- a/src/compiler/pre-transform/codemods/template-to-snippet.test.ts +++ b/src/lib/compiler/pre-transform/codemods/template-to-snippet.test.ts @@ -4,8 +4,8 @@ import { describe, it } from 'vitest'; import { transformTemplateToSnippet } from './template-to-snippet'; -import type { SvelteAST } from '#parser/ast'; -import { parseAndExtractSvelteNode } from '#tests/extractor'; +import type { SvelteAST } from '$lib/parser/ast'; +import { parseAndExtractSvelteNode } from '$lib/tests/extractor'; describe(transformTemplateToSnippet.name, () => { it("covers a case without provided prop 'id'", async ({ expect }) => { diff --git a/src/compiler/pre-transform/codemods/template-to-snippet.ts b/src/lib/compiler/pre-transform/codemods/template-to-snippet.ts similarity index 93% rename from src/compiler/pre-transform/codemods/template-to-snippet.ts rename to src/lib/compiler/pre-transform/codemods/template-to-snippet.ts index 93a5e6dd..af5c5dd9 100644 --- a/src/compiler/pre-transform/codemods/template-to-snippet.ts +++ b/src/lib/compiler/pre-transform/codemods/template-to-snippet.ts @@ -1,5 +1,5 @@ -import { getStringValueFromAttribute } from '#parser/analyse/story/attributes'; -import type { SvelteAST } from '#parser/ast'; +import { getStringValueFromAttribute } from '$lib/parser/analyse/story/attributes'; +import type { SvelteAST } from '$lib/parser/ast'; interface Params { component: SvelteAST.Component; diff --git a/src/compiler/pre-transform/index.test.ts b/src/lib/compiler/pre-transform/index.test.ts similarity index 99% rename from src/compiler/pre-transform/index.test.ts rename to src/lib/compiler/pre-transform/index.test.ts index 592ff114..cb18dc9e 100644 --- a/src/compiler/pre-transform/index.test.ts +++ b/src/lib/compiler/pre-transform/index.test.ts @@ -5,7 +5,7 @@ import { describe, it } from 'vitest'; import { codemodLegacyNodes } from './index'; -import { getSvelteAST } from '#parser/ast'; +import { getSvelteAST } from '$lib/parser/ast'; describe(codemodLegacyNodes.name, () => { it("replaces 'export const meta' with 'defineMeta'", async ({ expect }) => { diff --git a/src/compiler/pre-transform/index.ts b/src/lib/compiler/pre-transform/index.ts similarity index 94% rename from src/compiler/pre-transform/index.ts rename to src/lib/compiler/pre-transform/index.ts index 72216a4e..a09a3147 100644 --- a/src/compiler/pre-transform/index.ts +++ b/src/lib/compiler/pre-transform/index.ts @@ -1,12 +1,12 @@ import pkg from '@storybook/addon-svelte-csf/package.json' with { type: 'json' }; -import { transformComponentMetaToDefineMeta } from '#compiler/pre-transform/codemods/component-meta-to-define-meta'; -import { transformExportMetaToDefineMeta } from '#compiler/pre-transform/codemods/export-const-to-define-meta'; -import { transformImportDeclaration } from '#compiler/pre-transform/codemods/import-declaration'; -import { transformLegacyStory } from '#compiler/pre-transform/codemods/legacy-story'; -import { transformTemplateToSnippet } from '#compiler/pre-transform/codemods/template-to-snippet'; -import { createASTScript, type ESTreeAST, type SvelteAST } from '#parser/ast'; -import { DuplicatedUnidentifiedTemplateError } from '#utils/error/legacy-api/index'; +import { transformComponentMetaToDefineMeta } from '$lib/compiler/pre-transform/codemods/component-meta-to-define-meta'; +import { transformExportMetaToDefineMeta } from '$lib/compiler/pre-transform/codemods/export-const-to-define-meta'; +import { transformImportDeclaration } from '$lib/compiler/pre-transform/codemods/import-declaration'; +import { transformLegacyStory } from '$lib/compiler/pre-transform/codemods/legacy-story'; +import { transformTemplateToSnippet } from '$lib/compiler/pre-transform/codemods/template-to-snippet'; +import { createASTScript, type ESTreeAST, type SvelteAST } from '$lib/parser/ast'; +import { DuplicatedUnidentifiedTemplateError } from '$lib/utils/error/legacy-api/index'; interface Params { ast: SvelteAST.Root; diff --git a/src/estree.d.ts b/src/lib/estree.d.ts similarity index 100% rename from src/estree.d.ts rename to src/lib/estree.d.ts diff --git a/src/index.test.ts b/src/lib/index.test.ts similarity index 99% rename from src/index.test.ts rename to src/lib/index.test.ts index d4be01ea..f20285f0 100644 --- a/src/index.test.ts +++ b/src/lib/index.test.ts @@ -11,7 +11,7 @@ import type { StoryAnnotations, StoryContext as BaseStoryContext, SvelteRenderer, -} from '#types'; +} from '$lib/types'; import Button from '../examples/components/Button.svelte'; diff --git a/src/index.ts b/src/lib/index.ts similarity index 100% rename from src/index.ts rename to src/lib/index.ts diff --git a/src/indexer/index.ts b/src/lib/indexer/index.ts similarity index 82% rename from src/indexer/index.ts rename to src/lib/indexer/index.ts index 60d5f291..8d9fc230 100644 --- a/src/indexer/index.ts +++ b/src/lib/indexer/index.ts @@ -1,14 +1,14 @@ import type { IndexInput, Indexer } from '@storybook/types'; -import { parseForIndexer } from '#indexer/parser'; +import { parseForIndexer } from '$lib/indexer/parser'; import { GetDefineMetaFirstArgumentError, IndexerParseError, MissingModuleTagError, NoStoryComponentDestructuredError, -} from '#utils/error/parser/extract/svelte'; -import { LegacyTemplateNotEnabledError } from '#utils/error/legacy-api/index'; -import { NoDestructuredDefineMetaCallError } from '#utils/error/parser/analyse/define-meta'; +} from '$lib/utils/error/parser/extract/svelte'; +import { LegacyTemplateNotEnabledError } from '$lib/utils/error/legacy-api/index'; +import { NoDestructuredDefineMetaCallError } from '$lib/utils/error/parser/analyse/define-meta'; export const createIndexer = (legacyTemplate: boolean): Indexer => ({ test: /\.svelte$/, diff --git a/src/indexer/parser.ts b/src/lib/indexer/parser.ts similarity index 94% rename from src/indexer/parser.ts rename to src/lib/indexer/parser.ts index c6f1ae79..322c9075 100644 --- a/src/indexer/parser.ts +++ b/src/lib/indexer/parser.ts @@ -4,25 +4,25 @@ import pkg from '@storybook/addon-svelte-csf/package.json' with { type: 'json' } import { preprocess } from 'svelte/compiler'; import type { IndexInput } from '@storybook/types'; -import { getSvelteAST, type ESTreeAST, type SvelteAST } from '#parser/ast'; -import { extractStoryAttributesNodes } from '#parser/extract/svelte/story/attributes'; -import { getStoryIdentifiers } from '#parser/analyse/story/attributes/identifiers'; +import { getSvelteAST, type ESTreeAST, type SvelteAST } from '$lib/parser/ast'; +import { extractStoryAttributesNodes } from '$lib/parser/extract/svelte/story/attributes'; +import { getStoryIdentifiers } from '$lib/parser/analyse/story/attributes/identifiers'; import { getArrayOfStringsValueFromAttribute, getStringValueFromAttribute, -} from '#parser/analyse/story/attributes'; +} from '$lib/parser/analyse/story/attributes'; import { getPropertyArrayOfStringsValue, getPropertyStringValue, -} from '#parser/analyse/define-meta/properties'; -import type { StorybookAddonSvelteCsFOptions } from '#preset'; +} from '$lib/parser/analyse/define-meta/properties'; +import type { StorybookAddonSvelteCsFOptions } from '$lib/preset'; import { DefaultOrNamespaceImportUsedError, GetDefineMetaFirstArgumentError, MissingModuleTagError, NoStoryComponentDestructuredError, -} from '#utils/error/parser/extract/svelte'; -import { NoDestructuredDefineMetaCallError } from '#utils/error/parser/analyse/define-meta'; +} from '$lib/utils/error/parser/extract/svelte'; +import { NoDestructuredDefineMetaCallError } from '$lib/utils/error/parser/analyse/define-meta'; interface Results { meta: Pick; diff --git a/src/legacy-types.d.ts b/src/lib/legacy-types.d.ts similarity index 100% rename from src/legacy-types.d.ts rename to src/lib/legacy-types.d.ts diff --git a/src/parser/README.md b/src/lib/parser/README.md similarity index 100% rename from src/parser/README.md rename to src/lib/parser/README.md diff --git a/src/parser/analyse/define-meta/component-identifier.ts b/src/lib/parser/analyse/define-meta/component-identifier.ts similarity index 64% rename from src/parser/analyse/define-meta/component-identifier.ts rename to src/lib/parser/analyse/define-meta/component-identifier.ts index bd54493c..e5bf1191 100644 --- a/src/parser/analyse/define-meta/component-identifier.ts +++ b/src/lib/parser/analyse/define-meta/component-identifier.ts @@ -1,7 +1,7 @@ -import type { ESTreeAST } from '#parser/ast'; -import { extractDefineMetaPropertiesNodes } from '#parser/extract/svelte/define-meta'; -import type { SvelteASTNodes } from '#parser/extract/svelte/nodes'; -import { InvalidComponentValueError } from '#utils/error/parser/analyse/define-meta'; +import type { ESTreeAST } from '$lib/parser/ast'; +import { extractDefineMetaPropertiesNodes } from '$lib/parser/extract/svelte/define-meta'; +import type { SvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; +import { InvalidComponentValueError } from '$lib/utils/error/parser/analyse/define-meta'; interface Params { nodes: SvelteASTNodes; diff --git a/src/parser/analyse/define-meta/meta-identifier.ts b/src/lib/parser/analyse/define-meta/meta-identifier.ts similarity index 83% rename from src/parser/analyse/define-meta/meta-identifier.ts rename to src/lib/parser/analyse/define-meta/meta-identifier.ts index 7a97c39d..dcade30e 100644 --- a/src/parser/analyse/define-meta/meta-identifier.ts +++ b/src/lib/parser/analyse/define-meta/meta-identifier.ts @@ -1,9 +1,9 @@ -import type { ESTreeAST } from '#parser/ast'; -import type { SvelteASTNodes } from '#parser/extract/svelte/nodes'; +import type { ESTreeAST } from '$lib/parser/ast'; +import type { SvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; import { NoDestructuredDefineMetaCallError, NoMetaIdentifierFoundError, -} from '#utils/error/parser/analyse/define-meta'; +} from '$lib/utils/error/parser/analyse/define-meta'; interface Params { node: SvelteASTNodes['defineMetaVariableDeclaration']; diff --git a/src/parser/analyse/define-meta/properties.ts b/src/lib/parser/analyse/define-meta/properties.ts similarity index 92% rename from src/parser/analyse/define-meta/properties.ts rename to src/lib/parser/analyse/define-meta/properties.ts index 9c780fc2..ef92c299 100644 --- a/src/parser/analyse/define-meta/properties.ts +++ b/src/lib/parser/analyse/define-meta/properties.ts @@ -1,9 +1,9 @@ -import type { ESTreeAST } from '#parser/ast'; +import type { ESTreeAST } from '$lib/parser/ast'; import { ArrayElementNotStringError, NoArrayExpressionError, NoStringLiteralError, -} from '#utils/error/parser/analyse/define-meta'; +} from '$lib/utils/error/parser/analyse/define-meta'; interface GetStringOptions { node: ESTreeAST.Property; diff --git a/src/parser/analyse/story/attributes.test.ts b/src/lib/parser/analyse/story/attributes.test.ts similarity index 95% rename from src/parser/analyse/story/attributes.test.ts rename to src/lib/parser/analyse/story/attributes.test.ts index ac9a5324..7f61e8af 100644 --- a/src/parser/analyse/story/attributes.test.ts +++ b/src/lib/parser/analyse/story/attributes.test.ts @@ -2,10 +2,10 @@ import { describe, it } from 'vitest'; import { getArrayOfStringsValueFromAttribute, getStringValueFromAttribute } from './attributes'; -import { getSvelteAST } from '#parser/ast'; -import { extractSvelteASTNodes } from '#parser/extract/svelte/nodes'; -import { extractStoryAttributesNodes } from '#parser/extract/svelte/story/attributes'; -import { StorybookSvelteCSFError } from '#utils/error'; +import { getSvelteAST } from '$lib/parser/ast'; +import { extractSvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; +import { extractStoryAttributesNodes } from '$lib/parser/extract/svelte/story/attributes'; +import { StorybookSvelteCSFError } from '$lib/utils/error'; describe(getStringValueFromAttribute.name, () => { it("throws error when a `` 'name' attribute value is not a string", async ({ diff --git a/src/parser/analyse/story/attributes.ts b/src/lib/parser/analyse/story/attributes.ts similarity index 96% rename from src/parser/analyse/story/attributes.ts rename to src/lib/parser/analyse/story/attributes.ts index 40c90840..f289e6b7 100644 --- a/src/parser/analyse/story/attributes.ts +++ b/src/lib/parser/analyse/story/attributes.ts @@ -1,9 +1,9 @@ -import type { SvelteAST } from '#parser/ast'; +import type { SvelteAST } from '$lib/parser/ast'; import { AttributeNotArrayError, AttributeNotArrayOfStringsError, AttributeNotStringError, -} from '#utils/error/parser/analyse/story'; +} from '$lib/utils/error/parser/analyse/story'; interface Params { node: SvelteAST.Attribute | undefined; diff --git a/src/parser/analyse/story/attributes/identifiers.test.ts b/src/lib/parser/analyse/story/attributes/identifiers.test.ts similarity index 97% rename from src/parser/analyse/story/attributes/identifiers.test.ts rename to src/lib/parser/analyse/story/attributes/identifiers.test.ts index 88b0e0ab..6095cf58 100644 --- a/src/parser/analyse/story/attributes/identifiers.test.ts +++ b/src/lib/parser/analyse/story/attributes/identifiers.test.ts @@ -2,10 +2,10 @@ import { describe, expect, it } from 'vitest'; import { getStoryIdentifiers, getStoriesIdentifiers } from './identifiers'; -import { getSvelteAST } from '#parser/ast'; -import { extractSvelteASTNodes } from '#parser/extract/svelte/nodes'; -import { extractStoryAttributesNodes } from '#parser/extract/svelte/story/attributes'; -import { StorybookSvelteCSFError } from '#utils/error'; +import { getSvelteAST } from '$lib/parser/ast'; +import { extractSvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; +import { extractStoryAttributesNodes } from '$lib/parser/extract/svelte/story/attributes'; +import { StorybookSvelteCSFError } from '$lib/utils/error'; describe(getStoryIdentifiers.name, () => { it("extracts 'exportName' attribute when is a Text string", async () => { diff --git a/src/parser/analyse/story/attributes/identifiers.ts b/src/lib/parser/analyse/story/attributes/identifiers.ts similarity index 83% rename from src/parser/analyse/story/attributes/identifiers.ts rename to src/lib/parser/analyse/story/attributes/identifiers.ts index ed073354..77e79c71 100644 --- a/src/parser/analyse/story/attributes/identifiers.ts +++ b/src/lib/parser/analyse/story/attributes/identifiers.ts @@ -1,13 +1,13 @@ -import { getStringValueFromAttribute } from '#parser/analyse/story/attributes'; -import type { SvelteAST } from '#parser/ast'; -import type { SvelteASTNodes } from '#parser/extract/svelte/nodes'; -import { extractStoryAttributesNodes } from '#parser/extract/svelte/story/attributes'; -import { isValidVariableName, storyNameToExportName } from '#utils/identifier-utils'; +import { getStringValueFromAttribute } from '$lib/parser/analyse/story/attributes'; +import type { SvelteAST } from '$lib/parser/ast'; +import type { SvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; +import { extractStoryAttributesNodes } from '$lib/parser/extract/svelte/story/attributes'; +import { isValidVariableName, storyNameToExportName } from '$lib/utils/identifier-utils'; import { DuplicateStoryIdentifiersError, InvalidStoryExportNameError, NoStoryIdentifierError, -} from '#utils/error/parser/analyse/story'; +} from '$lib/utils/error/parser/analyse/story'; type StoryIdentifiers = { exportName: string; diff --git a/src/parser/analyse/story/children.test.ts b/src/lib/parser/analyse/story/children.test.ts similarity index 98% rename from src/parser/analyse/story/children.test.ts rename to src/lib/parser/analyse/story/children.test.ts index 16b5f6df..8cab603d 100644 --- a/src/parser/analyse/story/children.test.ts +++ b/src/lib/parser/analyse/story/children.test.ts @@ -2,8 +2,8 @@ import { describe, it } from 'vitest'; import { getStoryChildrenRawCode } from './children'; -import { getSvelteAST } from '#parser/ast'; -import { extractSvelteASTNodes } from '#parser/extract/svelte/nodes'; +import { getSvelteAST } from '$lib/parser/ast'; +import { extractSvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; describe(getStoryChildrenRawCode.name, () => { describe('When a `` is a self-closing tag...', () => { diff --git a/src/parser/analyse/story/children.ts b/src/lib/parser/analyse/story/children.ts similarity index 91% rename from src/parser/analyse/story/children.ts rename to src/lib/parser/analyse/story/children.ts index 1abdbd79..12323906 100644 --- a/src/parser/analyse/story/children.ts +++ b/src/lib/parser/analyse/story/children.ts @@ -1,13 +1,13 @@ import dedent from 'dedent'; -import { getDefineMetaComponentValue } from '#parser/analyse/define-meta/component-identifier'; -import type { SvelteAST } from '#parser/ast'; -import type { extractSvelteASTNodes } from '#parser/extract/svelte/nodes'; -import { extractStoryChildrenSnippetBlock } from '#parser/extract/svelte/story/children'; +import { getDefineMetaComponentValue } from '$lib/parser/analyse/define-meta/component-identifier'; +import type { SvelteAST } from '$lib/parser/ast'; +import type { extractSvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; +import { extractStoryChildrenSnippetBlock } from '$lib/parser/extract/svelte/story/children'; import { findSetTemplateSnippetBlock, findStoryAttributeChildrenSnippetBlock, -} from '#parser/extract/svelte/snippet-block'; +} from '$lib/parser/extract/svelte/snippet-block'; interface Params { nodes: { diff --git a/src/parser/ast.ts b/src/lib/parser/ast.ts similarity index 100% rename from src/parser/ast.ts rename to src/lib/parser/ast.ts diff --git a/src/parser/extract/compiled/nodes.ts b/src/lib/parser/extract/compiled/nodes.ts similarity index 96% rename from src/parser/extract/compiled/nodes.ts rename to src/lib/parser/extract/compiled/nodes.ts index 053bedb8..17214283 100644 --- a/src/parser/extract/compiled/nodes.ts +++ b/src/lib/parser/extract/compiled/nodes.ts @@ -2,15 +2,15 @@ import pkg from '@storybook/addon-svelte-csf/package.json' with { type: 'json' } import type { ProgramNode } from 'rollup'; import type { Visitors } from 'zimmerframe'; -import type { ESTreeAST } from '#parser/ast'; +import type { ESTreeAST } from '$lib/parser/ast'; import { MissingDefineMetaVariableDeclarationError, MissingImportedDefineMetaError, NoExportDefaultError, NoStoriesFunctionDeclarationError, NoStoryIdentifierFoundError, -} from '#utils/error/parser/extract/compiled'; -import { DefaultOrNamespaceImportUsedError } from '#utils/error/parser/extract/svelte'; +} from '$lib/utils/error/parser/extract/compiled'; +import { DefaultOrNamespaceImportUsedError } from '$lib/utils/error/parser/extract/svelte'; /** * Important AST nodes from the compiled output of a single `*.stories.svelte` file. diff --git a/src/parser/extract/compiled/stories.ts b/src/lib/parser/extract/compiled/stories.ts similarity index 94% rename from src/parser/extract/compiled/stories.ts rename to src/lib/parser/extract/compiled/stories.ts index 36d68e0d..9edf746c 100644 --- a/src/parser/extract/compiled/stories.ts +++ b/src/lib/parser/extract/compiled/stories.ts @@ -2,7 +2,7 @@ import type { Visitors } from 'zimmerframe'; import type { CompiledASTNodes } from './nodes'; -import type { ESTreeAST } from '#parser/ast'; +import type { ESTreeAST } from '$lib/parser/ast'; interface Params { nodes: CompiledASTNodes; diff --git a/src/parser/extract/compiled/story.ts b/src/lib/parser/extract/compiled/story.ts similarity index 82% rename from src/parser/extract/compiled/story.ts rename to src/lib/parser/extract/compiled/story.ts index 67ea564c..af58e885 100644 --- a/src/parser/extract/compiled/story.ts +++ b/src/lib/parser/extract/compiled/story.ts @@ -1,6 +1,6 @@ -import type { ESTreeAST } from '#parser/ast'; -import type { extractStoriesNodesFromExportDefaultFn } from '#parser/extract/compiled/stories'; -import { NoCompiledStoryPropsObjectExpression } from '#utils/error/parser/extract/compiled'; +import type { ESTreeAST } from '$lib/parser/ast'; +import type { extractStoriesNodesFromExportDefaultFn } from '$lib/parser/extract/compiled/stories'; +import { NoCompiledStoryPropsObjectExpression } from '$lib/utils/error/parser/extract/compiled'; interface Params { node: Awaited>[number]; diff --git a/src/parser/extract/svelte/define-meta.test.ts b/src/lib/parser/extract/svelte/define-meta.test.ts similarity index 90% rename from src/parser/extract/svelte/define-meta.test.ts rename to src/lib/parser/extract/svelte/define-meta.test.ts index 5c53d045..3f5d869b 100644 --- a/src/parser/extract/svelte/define-meta.test.ts +++ b/src/lib/parser/extract/svelte/define-meta.test.ts @@ -2,8 +2,8 @@ import { describe, it } from 'vitest'; import { extractDefineMetaPropertiesNodes } from './define-meta'; -import { getSvelteAST, type ESTreeAST } from '#parser/ast'; -import { extractSvelteASTNodes } from '#parser/extract/svelte/nodes'; +import { getSvelteAST, type ESTreeAST } from '$lib/parser/ast'; +import { extractSvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; describe(extractDefineMetaPropertiesNodes.name, () => { it('extracts correctly selected properties', async ({ expect }) => { diff --git a/src/parser/extract/svelte/define-meta.ts b/src/lib/parser/extract/svelte/define-meta.ts similarity index 86% rename from src/parser/extract/svelte/define-meta.ts rename to src/lib/parser/extract/svelte/define-meta.ts index 960c92bd..869b7344 100644 --- a/src/parser/extract/svelte/define-meta.ts +++ b/src/lib/parser/extract/svelte/define-meta.ts @@ -1,9 +1,9 @@ -import type { ESTreeAST } from '#parser/ast'; -import type { SvelteASTNodes } from '#parser/extract/svelte/nodes'; -import type { CompiledASTNodes } from '#parser/extract/compiled/nodes'; +import type { ESTreeAST } from '$lib/parser/ast'; +import type { SvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; +import type { CompiledASTNodes } from '$lib/parser/extract/compiled/nodes'; -import { GetDefineMetaFirstArgumentError } from '#utils/error/parser/extract/svelte'; -import type { Cmp, Meta } from '#types'; +import { GetDefineMetaFirstArgumentError } from '$lib/utils/error/parser/extract/svelte'; +import type { Cmp, Meta } from '$lib/types'; interface Options>> { nodes: SvelteASTNodes | CompiledASTNodes; diff --git a/src/parser/extract/svelte/fragment-nodes.test.ts b/src/lib/parser/extract/svelte/fragment-nodes.test.ts similarity index 98% rename from src/parser/extract/svelte/fragment-nodes.test.ts rename to src/lib/parser/extract/svelte/fragment-nodes.test.ts index edddb66c..f08460b5 100644 --- a/src/parser/extract/svelte/fragment-nodes.test.ts +++ b/src/lib/parser/extract/svelte/fragment-nodes.test.ts @@ -4,7 +4,7 @@ import { extractFragmentNodes } from './fragment-nodes'; import { extractInstanceNodes } from './instance-nodes'; import { extractModuleNodes } from './module-nodes'; -import { getSvelteAST } from '#parser/ast'; +import { getSvelteAST } from '$lib/parser/ast'; describe(extractFragmentNodes.name, () => { it("extracts '' AST nodes correctly", async () => { diff --git a/src/parser/extract/svelte/fragment-nodes.ts b/src/lib/parser/extract/svelte/fragment-nodes.ts similarity index 97% rename from src/parser/extract/svelte/fragment-nodes.ts rename to src/lib/parser/extract/svelte/fragment-nodes.ts index 7803cf96..b8ea2efd 100644 --- a/src/parser/extract/svelte/fragment-nodes.ts +++ b/src/lib/parser/extract/svelte/fragment-nodes.ts @@ -3,7 +3,7 @@ import type { Visitors } from 'zimmerframe'; import type { extractModuleNodes } from './module-nodes'; import type { extractInstanceNodes } from './instance-nodes'; -import type { SvelteAST } from '#parser/ast'; +import type { SvelteAST } from '$lib/parser/ast'; interface Result { storyComponents: Array<{ diff --git a/src/parser/extract/svelte/instance-nodes.test.ts b/src/lib/parser/extract/svelte/instance-nodes.test.ts similarity index 96% rename from src/parser/extract/svelte/instance-nodes.test.ts rename to src/lib/parser/extract/svelte/instance-nodes.test.ts index 553bf299..5114eed4 100644 --- a/src/parser/extract/svelte/instance-nodes.test.ts +++ b/src/lib/parser/extract/svelte/instance-nodes.test.ts @@ -3,7 +3,7 @@ import { describe, expect, it } from 'vitest'; import { extractInstanceNodes } from './instance-nodes'; import { extractModuleNodes } from './module-nodes'; -import { getSvelteAST, type ESTreeAST } from '#parser/ast'; +import { getSvelteAST, type ESTreeAST } from '$lib/parser/ast'; describe(extractInstanceNodes.name, () => { it("extract 'setTemplateCall' correctly when used", async () => { diff --git a/src/parser/extract/svelte/instance-nodes.ts b/src/lib/parser/extract/svelte/instance-nodes.ts similarity index 95% rename from src/parser/extract/svelte/instance-nodes.ts rename to src/lib/parser/extract/svelte/instance-nodes.ts index 1bddf531..e92d354b 100644 --- a/src/parser/extract/svelte/instance-nodes.ts +++ b/src/lib/parser/extract/svelte/instance-nodes.ts @@ -2,7 +2,7 @@ import type { Visitors } from 'zimmerframe'; import type { extractModuleNodes } from './module-nodes'; -import type { ESTreeAST, SvelteAST } from '#parser/ast'; +import type { ESTreeAST, SvelteAST } from '$lib/parser/ast'; interface Result { setTemplateCall: ESTreeAST.CallExpression | undefined; diff --git a/src/parser/extract/svelte/legacy-export-meta.ts b/src/lib/parser/extract/svelte/legacy-export-meta.ts similarity index 88% rename from src/parser/extract/svelte/legacy-export-meta.ts rename to src/lib/parser/extract/svelte/legacy-export-meta.ts index 59b98ab1..b4823339 100644 --- a/src/parser/extract/svelte/legacy-export-meta.ts +++ b/src/lib/parser/extract/svelte/legacy-export-meta.ts @@ -1,10 +1,10 @@ import type { ObjectExpression, Property } from 'estree'; -import type { SvelteASTNodes } from '#parser/extract/svelte/nodes'; -import type { CompiledASTNodes } from '#parser/extract/compiled/nodes'; +import type { SvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; +import type { CompiledASTNodes } from '$lib/parser/extract/compiled/nodes'; -import { GetDefineMetaFirstArgumentError } from '#utils/error/parser/extract/svelte'; -import type { Cmp, Meta } from '#types'; +import { GetDefineMetaFirstArgumentError } from '$lib/utils/error/parser/extract/svelte'; +import type { Cmp, Meta } from '$lib/types'; interface Options>> { nodes: SvelteASTNodes | CompiledASTNodes; diff --git a/src/parser/extract/svelte/module-nodes.test.ts b/src/lib/parser/extract/svelte/module-nodes.test.ts similarity index 98% rename from src/parser/extract/svelte/module-nodes.test.ts rename to src/lib/parser/extract/svelte/module-nodes.test.ts index 5da08810..a3f38ba8 100644 --- a/src/parser/extract/svelte/module-nodes.test.ts +++ b/src/lib/parser/extract/svelte/module-nodes.test.ts @@ -2,8 +2,8 @@ import { describe, it } from 'vitest'; import { extractModuleNodes } from './module-nodes'; -import { getSvelteAST } from '#parser/ast'; -import { StorybookSvelteCSFError } from '#utils/error'; +import { getSvelteAST } from '$lib/parser/ast'; +import { StorybookSvelteCSFError } from '$lib/utils/error'; describe(extractModuleNodes.name, () => { it('fails when module tag not found', ({ expect }) => { diff --git a/src/parser/extract/svelte/module-nodes.ts b/src/lib/parser/extract/svelte/module-nodes.ts similarity index 97% rename from src/parser/extract/svelte/module-nodes.ts rename to src/lib/parser/extract/svelte/module-nodes.ts index eb5c57d4..42bb4e7a 100644 --- a/src/parser/extract/svelte/module-nodes.ts +++ b/src/lib/parser/extract/svelte/module-nodes.ts @@ -1,14 +1,14 @@ import pkg from '@storybook/addon-svelte-csf/package.json' with { type: 'json' }; import type { Visitors } from 'zimmerframe'; -import type { ESTreeAST, SvelteAST } from '#parser/ast'; +import type { ESTreeAST, SvelteAST } from '$lib/parser/ast'; import { DefaultOrNamespaceImportUsedError, MissingDefineMetaImportError, MissingDefineMetaVariableDeclarationError, MissingModuleTagError, NoStoryComponentDestructuredError, -} from '#utils/error/parser/extract/svelte'; +} from '$lib/utils/error/parser/extract/svelte'; const AST_NODES_NAMES = { defineMeta: 'defineMeta', diff --git a/src/parser/extract/svelte/nodes.test.ts b/src/lib/parser/extract/svelte/nodes.test.ts similarity index 94% rename from src/parser/extract/svelte/nodes.test.ts rename to src/lib/parser/extract/svelte/nodes.test.ts index 2aef1a4a..6457b1aa 100644 --- a/src/parser/extract/svelte/nodes.test.ts +++ b/src/lib/parser/extract/svelte/nodes.test.ts @@ -2,7 +2,7 @@ import { describe, it } from 'vitest'; import { extractSvelteASTNodes } from './nodes'; -import { getSvelteAST } from '#parser/ast'; +import { getSvelteAST } from '$lib/parser/ast'; describe(extractSvelteASTNodes.name, () => { it('works with a simple example', ({ expect }) => { diff --git a/src/parser/extract/svelte/nodes.ts b/src/lib/parser/extract/svelte/nodes.ts similarity index 95% rename from src/parser/extract/svelte/nodes.ts rename to src/lib/parser/extract/svelte/nodes.ts index f8e0fa40..638bed43 100644 --- a/src/parser/extract/svelte/nodes.ts +++ b/src/lib/parser/extract/svelte/nodes.ts @@ -2,7 +2,7 @@ import { extractModuleNodes } from './module-nodes'; import { extractFragmentNodes } from './fragment-nodes'; import { extractInstanceNodes } from './instance-nodes'; -import type { SvelteAST } from '#parser/ast'; +import type { SvelteAST } from '$lib/parser/ast'; /** * Selected nodes extracted from the Svelte AST via `svelte.compile`, diff --git a/src/parser/extract/svelte/snippet-block.ts b/src/lib/parser/extract/svelte/snippet-block.ts similarity index 92% rename from src/parser/extract/svelte/snippet-block.ts rename to src/lib/parser/extract/svelte/snippet-block.ts index 778bd800..ceb8864d 100644 --- a/src/parser/extract/svelte/snippet-block.ts +++ b/src/lib/parser/extract/svelte/snippet-block.ts @@ -1,11 +1,11 @@ -import type { SvelteAST } from '#parser/ast'; -import type { SvelteASTNodes } from '#parser/extract/svelte/nodes'; -import { extractStoryAttributesNodes } from '#parser/extract/svelte/story/attributes'; +import type { SvelteAST } from '$lib/parser/ast'; +import type { SvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; +import { extractStoryAttributesNodes } from '$lib/parser/extract/svelte/story/attributes'; import { InvalidSetTemplateFirstArgumentError, InvalidStoryChildrenAttributeError, -} from '#utils/error/parser/extract/svelte'; +} from '$lib/utils/error/parser/extract/svelte'; /** * Svelte 5 allows to passing `children` as attribute _(aka prop)_. diff --git a/src/parser/extract/svelte/story/attributes.test.ts b/src/lib/parser/extract/svelte/story/attributes.test.ts similarity index 93% rename from src/parser/extract/svelte/story/attributes.test.ts rename to src/lib/parser/extract/svelte/story/attributes.test.ts index 91fc862c..8832c45b 100644 --- a/src/parser/extract/svelte/story/attributes.test.ts +++ b/src/lib/parser/extract/svelte/story/attributes.test.ts @@ -2,8 +2,8 @@ import { describe, expect, it } from 'vitest'; import { extractStoryAttributesNodes } from './attributes'; -import { getSvelteAST } from '#parser/ast'; -import { extractSvelteASTNodes } from '#parser/extract/svelte/nodes'; +import { getSvelteAST } from '$lib/parser/ast'; +import { extractSvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; describe(extractStoryAttributesNodes.name, () => { it("extracts '' attributes correctly", async () => { diff --git a/src/parser/extract/svelte/story/attributes.ts b/src/lib/parser/extract/svelte/story/attributes.ts similarity index 86% rename from src/parser/extract/svelte/story/attributes.ts rename to src/lib/parser/extract/svelte/story/attributes.ts index dcfdda52..6a398ff6 100644 --- a/src/parser/extract/svelte/story/attributes.ts +++ b/src/lib/parser/extract/svelte/story/attributes.ts @@ -1,8 +1,8 @@ import type { ComponentProps } from 'svelte'; -import type { SvelteAST } from '#parser/ast'; -import type { Cmp } from '#types'; -import type Story from '#runtime/Story.svelte'; +import type { SvelteAST } from '$lib/parser/ast'; +import type { Cmp } from '$lib/types'; +import type Story from '$lib/runtime/Story.svelte'; type StoryAttributes = Array>>; diff --git a/src/parser/extract/svelte/story/children.test.ts b/src/lib/parser/extract/svelte/story/children.test.ts similarity index 93% rename from src/parser/extract/svelte/story/children.test.ts rename to src/lib/parser/extract/svelte/story/children.test.ts index 4aa4bb87..15a97217 100644 --- a/src/parser/extract/svelte/story/children.test.ts +++ b/src/lib/parser/extract/svelte/story/children.test.ts @@ -2,8 +2,8 @@ import { describe, it } from 'vitest'; import { extractStoryChildrenSnippetBlock } from './children'; -import { getSvelteAST } from '#parser/ast'; -import { extractSvelteASTNodes } from '#parser/extract/svelte/nodes'; +import { getSvelteAST } from '$lib/parser/ast'; +import { extractSvelteASTNodes } from '$lib/parser/extract/svelte/nodes'; describe(extractStoryChildrenSnippetBlock.name, () => { it('returns correctly AST node, when a `` compponent has a snippet block `children` inside', async ({ diff --git a/src/parser/extract/svelte/story/children.ts b/src/lib/parser/extract/svelte/story/children.ts similarity index 91% rename from src/parser/extract/svelte/story/children.ts rename to src/lib/parser/extract/svelte/story/children.ts index 27648764..7ecbcc94 100644 --- a/src/parser/extract/svelte/story/children.ts +++ b/src/lib/parser/extract/svelte/story/children.ts @@ -1,4 +1,4 @@ -import type { SvelteAST } from '#parser/ast'; +import type { SvelteAST } from '$lib/parser/ast'; type Result = SvelteAST.SnippetBlock | undefined; diff --git a/src/preset.ts b/src/lib/preset.ts similarity index 90% rename from src/preset.ts rename to src/lib/preset.ts index 6260e9b8..f857c3d9 100644 --- a/src/preset.ts +++ b/src/lib/preset.ts @@ -1,8 +1,8 @@ import type { StorybookConfig } from '@storybook/svelte-vite'; import type { Options } from '@storybook/types'; -import { transformPlugin, preTransformPlugin } from '#compiler/plugins'; -import { createIndexer } from '#indexer/index'; +import { transformPlugin, preTransformPlugin } from '$lib/compiler/plugins'; +import { createIndexer } from '$lib/indexer/index'; export interface StorybookAddonSvelteCsFOptions extends Options { /** diff --git a/src/runtime/LegacyMeta.svelte b/src/lib/runtime/LegacyMeta.svelte similarity index 100% rename from src/runtime/LegacyMeta.svelte rename to src/lib/runtime/LegacyMeta.svelte diff --git a/src/runtime/LegacyStory.svelte b/src/lib/runtime/LegacyStory.svelte similarity index 100% rename from src/runtime/LegacyStory.svelte rename to src/lib/runtime/LegacyStory.svelte diff --git a/src/runtime/LegacyTemplate.svelte b/src/lib/runtime/LegacyTemplate.svelte similarity index 100% rename from src/runtime/LegacyTemplate.svelte rename to src/lib/runtime/LegacyTemplate.svelte diff --git a/src/runtime/StoriesExtractor.svelte b/src/lib/runtime/StoriesExtractor.svelte similarity index 79% rename from src/runtime/StoriesExtractor.svelte rename to src/lib/runtime/StoriesExtractor.svelte index a4189d2a..714fd5fe 100644 --- a/src/runtime/StoriesExtractor.svelte +++ b/src/lib/runtime/StoriesExtractor.svelte @@ -1,12 +1,12 @@ + + + \`} + > +

{"Test"}

+
+ `; + const component = await parseAndExtractSvelteNode(code, 'Component'); + + expect( + print( + transformLegacyStory({ + component, + state: { componentIdentifierName: {} }, + }) + ) + ).toMatchInlineSnapshot(` + "\\n " } } + }}> +

{"Test"}

+
" + `); + }); }); From 0baf4bcc0ff418d798ccafafebf4b9746e09d055 Mon Sep 17 00:00:00 2001 From: Mateusz Kadlubowski Date: Sat, 14 Dec 2024 17:49:40 +0800 Subject: [PATCH 13/16] Add a story example for visual preview/test --- tests/stories/LegacyStory.stories.svelte | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/stories/LegacyStory.stories.svelte b/tests/stories/LegacyStory.stories.svelte index 866e99e0..4c923f6d 100644 --- a/tests/stories/LegacyStory.stories.svelte +++ b/tests/stories/LegacyStory.stories.svelte @@ -51,3 +51,13 @@ {'Test'} + + + `} + args={{ rounded: false }} +> + {'Test'} + From 96796ad0a3635c900a9f37cdf7755f26a63f57e7 Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Tue, 17 Dec 2024 21:59:57 +0100 Subject: [PATCH 14/16] move back to src (config changes only) --- package.json | 1 - pnpm-lock.yaml | 75 +----------------------------------------------- svelte.config.js | 7 +++++ tsconfig.json | 12 ++++---- vite.config.ts | 4 +-- 5 files changed, 15 insertions(+), 84 deletions(-) create mode 100644 svelte.config.js diff --git a/package.json b/package.json index ce0883bc..77b663fa 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,6 @@ "@storybook/svelte": "^8.0.0", "@storybook/svelte-vite": "^8.0.0", "@storybook/test": "^8.0.0", - "@sveltejs/kit": "^2.11.1", "@sveltejs/package": "^2.3.7", "@sveltejs/vite-plugin-svelte": "4.0.0", "@tsconfig/svelte": "^5.0.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 118b90c8..4529480a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -72,9 +72,6 @@ importers: '@storybook/test': specifier: ^8.0.0 version: 8.3.6(storybook@8.3.5) - '@sveltejs/kit': - specifier: ^2.11.1 - version: 2.11.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.4)(vite@5.3.2(@types/node@20.14.9)))(svelte@5.1.4)(vite@5.3.2(@types/node@20.14.9)) '@sveltejs/package': specifier: ^2.3.7 version: 2.3.7(svelte@5.1.4)(typescript@5.5.2) @@ -1009,15 +1006,6 @@ packages: peerDependencies: storybook: ^8.3.6 - '@sveltejs/kit@2.11.1': - resolution: {integrity: sha512-dAiHDEd+AOm20eYdMPV1a2eKBOc0s/7XsSs7PCoNv2kKS7BAoVRC9uzR+FQmxLtp8xuEo9z8CtrMQoszkThltQ==} - engines: {node: '>=18.13'} - hasBin: true - peerDependencies: - '@sveltejs/vite-plugin-svelte': ^3.0.0 || ^4.0.0-next.1 || ^5.0.0 - svelte: ^4.0.0 || ^5.0.0-next.0 - vite: ^5.0.3 || ^6.0.0 - '@sveltejs/package@2.3.7': resolution: {integrity: sha512-LYgUkde5GUYqOpXbcoCGUpEH4Ctl3Wj4u4CVZBl56dEeLW5fGHE037ZL1qlK0Ky+QD5uUfwONSeGwIOIighFMQ==} engines: {node: ^16.14 || >=18} @@ -1087,9 +1075,6 @@ packages: '@types/connect@3.4.38': resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==} - '@types/cookie@0.6.0': - resolution: {integrity: sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==} - '@types/debug@4.1.12': resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==} @@ -1931,10 +1916,6 @@ packages: cookie-signature@1.0.6: resolution: {integrity: sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==} - cookie@0.6.0: - resolution: {integrity: sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==} - engines: {node: '>= 0.6'} - cookie@0.7.1: resolution: {integrity: sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==} engines: {node: '>= 0.6'} @@ -2137,9 +2118,6 @@ packages: resolution: {integrity: sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==} engines: {node: '>=8'} - devalue@5.1.1: - resolution: {integrity: sha512-maua5KUiapvEwiEAe+XnlZ3Rh0GD+qI1J/nb9vrJc3muPXvcF/8gXYTWF76+5DAqHyDUtOIImEuo0YKE9mshVw==} - devlop@1.1.0: resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==} @@ -2485,9 +2463,6 @@ packages: esm-env@1.0.0: resolution: {integrity: sha512-Cf6VksWPsTuW01vU9Mk/3vRue91Zevka5SjyNf3nEpokFRuqt/KjUQoGAwq9qMmhpLTHmXzSIrFRw8zxWzmFBA==} - esm-env@1.2.1: - resolution: {integrity: sha512-U9JedYYjCnadUlXk7e1Kr+aENQhtUaoaV9+gZm1T8LC/YBAPJx3NSPIAurFOC0U5vrdSevnUJS2/wUVxGwPhng==} - espree@7.3.1: resolution: {integrity: sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==} engines: {node: ^10.12.0 || >=12.0.0} @@ -2798,9 +2773,6 @@ packages: resolution: {integrity: sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==} engines: {node: '>= 0.4'} - globalyzer@0.1.0: - resolution: {integrity: sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==} - globby@10.0.0: resolution: {integrity: sha512-3LifW9M4joGZasyYPz2A1U74zbC/45fvpXUvO/9KbSa+VV0aGZarWkfdgKyR9sExNP0t0x0ss/UMJpNpcaTspw==} engines: {node: '>=8'} @@ -2817,9 +2789,6 @@ packages: resolution: {integrity: sha512-yANWAN2DUcBtuus5Cpd+SKROzXHs2iVXFZt/Ykrfz6SAXqacLX25NZpltE+39ceMexYF4TtEadjuSTw8+3wX4g==} engines: {node: '>=4'} - globrex@0.1.2: - resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==} - gopd@1.0.1: resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} @@ -4602,9 +4571,6 @@ packages: set-blocking@2.0.0: resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} - set-cookie-parser@2.7.1: - resolution: {integrity: sha512-IOc8uWeOZgnb3ptbCURJWNjWUPcO3ZnTTdzsurqERrP6nPyv+paC55vJM0LpOlT2ne+Ix+9+CRG1MNLlyZ4GjQ==} - set-function-length@1.2.2: resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==} engines: {node: '>= 0.4'} @@ -4938,9 +4904,6 @@ packages: through@2.3.8: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} - tiny-glob@0.2.9: - resolution: {integrity: sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==} - tiny-invariant@1.3.3: resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==} @@ -6929,24 +6892,6 @@ snapshots: dependencies: storybook: 8.3.5 - '@sveltejs/kit@2.11.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.4)(vite@5.3.2(@types/node@20.14.9)))(svelte@5.1.4)(vite@5.3.2(@types/node@20.14.9))': - dependencies: - '@sveltejs/vite-plugin-svelte': 4.0.0(svelte@5.1.4)(vite@5.3.2(@types/node@20.14.9)) - '@types/cookie': 0.6.0 - cookie: 0.6.0 - devalue: 5.1.1 - esm-env: 1.2.1 - import-meta-resolve: 4.1.0 - kleur: 4.1.5 - magic-string: 0.30.12 - mrmime: 2.0.0 - sade: 1.8.1 - set-cookie-parser: 2.7.1 - sirv: 3.0.0 - svelte: 5.1.4 - tiny-glob: 0.2.9 - vite: 5.3.2(@types/node@20.14.9) - '@sveltejs/package@2.3.7(svelte@5.1.4)(typescript@5.5.2)': dependencies: chokidar: 4.0.1 @@ -7034,8 +6979,6 @@ snapshots: dependencies: '@types/node': 20.14.9 - '@types/cookie@0.6.0': {} - '@types/debug@4.1.12': dependencies: '@types/ms': 0.7.34 @@ -8146,8 +8089,6 @@ snapshots: cookie-signature@1.0.6: {} - cookie@0.6.0: {} - cookie@0.7.1: {} core-util-is@1.0.3: @@ -8306,8 +8247,6 @@ snapshots: detect-newline@3.1.0: {} - devalue@5.1.1: {} - devlop@1.1.0: dependencies: dequal: 2.0.3 @@ -8831,8 +8770,6 @@ snapshots: esm-env@1.0.0: {} - esm-env@1.2.1: {} - espree@7.3.1: dependencies: acorn: 7.4.1 @@ -9219,8 +9156,6 @@ snapshots: define-properties: 1.2.1 gopd: 1.0.1 - globalyzer@0.1.0: {} - globby@10.0.0: dependencies: '@types/glob': 7.2.0 @@ -9260,8 +9195,6 @@ snapshots: pify: 3.0.0 slash: 1.0.0 - globrex@0.1.2: {} - gopd@1.0.1: dependencies: get-intrinsic: 1.2.4 @@ -11442,8 +11375,6 @@ snapshots: set-blocking@2.0.0: optional: true - set-cookie-parser@2.7.1: {} - set-function-length@1.2.2: dependencies: define-data-property: 1.1.4 @@ -11507,6 +11438,7 @@ snapshots: '@polka/url': 1.0.0-next.25 mrmime: 2.0.0 totalist: 3.0.1 + optional: true slash@1.0.0: {} @@ -11847,11 +11779,6 @@ snapshots: through@2.3.8: optional: true - tiny-glob@0.2.9: - dependencies: - globalyzer: 0.1.0 - globrex: 0.1.2 - tiny-invariant@1.3.3: {} tinybench@2.8.0: {} diff --git a/svelte.config.js b/svelte.config.js new file mode 100644 index 00000000..d2e4bae6 --- /dev/null +++ b/svelte.config.js @@ -0,0 +1,7 @@ +export default { + kit: { + files: { + lib: 'src', + } + } +}; diff --git a/tsconfig.json b/tsconfig.json index 6d9521a0..8c8e3897 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,12 +1,8 @@ { "extends": "@tsconfig/svelte/tsconfig.json", "compilerOptions": { - - "allowSyntheticDefaultImports": true, "baseUrl": ".", - "esModuleInterop": true, - "incremental": false, - "lib": ["esnext", "dom"], + "lib": ["esnext", "DOM", "DOM.Iterable"], "module": "esnext", "moduleResolution": "bundler", "noImplicitAny": false, @@ -16,13 +12,15 @@ "strict": true, "target": "esnext", "verbatimModuleSyntax": true, + "isolatedModules": true, "types": ["vitest/importMeta"], + "forceConsistentCasingInFileNames": true, "paths": { "$lib": [ - "src/lib" + "src" ], "$lib/*": [ - "src/lib/*" + "src/*" ] }, "plugins": [ diff --git a/vite.config.ts b/vite.config.ts index 7b43ee1d..38cf26cc 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,7 +1,7 @@ /// import { defineConfig } from 'vite'; -import { sveltekit } from '@sveltejs/kit/vite'; +import { svelte } from '@sveltejs/vite-plugin-svelte'; import inspect from 'vite-plugin-inspect'; export default defineConfig({ @@ -9,7 +9,7 @@ export default defineConfig({ // 'import.meta.vitest': 'undefined', // }, plugins: [ - sveltekit(), + svelte(), inspect({ dev: true, build: true, From 911c9cb54952ec6df6187e9d2f07d875cac82dad Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Tue, 17 Dec 2024 22:00:11 +0100 Subject: [PATCH 15/16] move back to src (actual files) --- src/{lib => }/compiler/plugins.ts | 0 .../post-transform/appendix/create-export-default.test.ts | 0 .../compiler/post-transform/appendix/create-export-default.ts | 0 .../post-transform/appendix/create-export-order.test.ts | 0 .../compiler/post-transform/appendix/create-export-order.ts | 0 .../compiler/post-transform/appendix/create-import.test.ts | 0 src/{lib => }/compiler/post-transform/appendix/create-import.ts | 0 .../post-transform/appendix/create-named-export-story.test.ts | 0 .../post-transform/appendix/create-named-export-story.ts | 0 .../appendix/create-variable-from-runtime-stories-call.test.ts | 0 .../appendix/create-variable-from-runtime-stories-call.ts | 0 src/{lib => }/compiler/post-transform/create-appendix.ts | 0 .../compiler/post-transform/define-meta/destructure-meta.ts | 0 src/{lib => }/compiler/post-transform/define-meta/index.test.ts | 0 src/{lib => }/compiler/post-transform/define-meta/index.ts | 0 .../compiler/post-transform/define-meta/insert-description.ts | 0 src/{lib => }/compiler/post-transform/index.test.ts | 0 src/{lib => }/compiler/post-transform/index.ts | 0 .../compiler/post-transform/remove-export-default.test.ts | 0 src/{lib => }/compiler/post-transform/remove-export-default.ts | 0 src/{lib => }/compiler/post-transform/shared/description.ts | 0 src/{lib => }/compiler/post-transform/story/index.test.ts | 0 src/{lib => }/compiler/post-transform/story/index.ts | 0 .../compiler/post-transform/story/insert-description.ts | 0 .../compiler/post-transform/story/insert-svelte-csf.ts | 0 .../codemods/component-meta-to-define-meta.test.ts | 2 +- .../pre-transform/codemods/component-meta-to-define-meta.ts | 0 .../pre-transform/codemods/export-const-to-define-meta.test.ts | 2 +- .../pre-transform/codemods/export-const-to-define-meta.ts | 0 .../compiler/pre-transform/codemods/import-declaration.test.ts | 2 +- .../compiler/pre-transform/codemods/import-declaration.ts | 0 .../compiler/pre-transform/codemods/legacy-story.test.ts | 2 +- src/{lib => }/compiler/pre-transform/codemods/legacy-story.ts | 0 .../compiler/pre-transform/codemods/template-to-snippet.test.ts | 2 +- .../compiler/pre-transform/codemods/template-to-snippet.ts | 0 src/{lib => }/compiler/pre-transform/index.test.ts | 0 src/{lib => }/compiler/pre-transform/index.ts | 0 src/{lib => }/estree.d.ts | 0 src/{lib => }/index.test.ts | 2 +- src/{lib => }/index.ts | 0 src/{lib => }/indexer/index.ts | 0 src/{lib => }/indexer/parser.ts | 0 src/{lib => }/legacy-types.d.ts | 0 src/{lib => }/parser/README.md | 0 .../parser/analyse/define-meta/component-identifier.ts | 0 src/{lib => }/parser/analyse/define-meta/meta-identifier.ts | 0 src/{lib => }/parser/analyse/define-meta/properties.ts | 0 src/{lib => }/parser/analyse/story/attributes.test.ts | 0 src/{lib => }/parser/analyse/story/attributes.ts | 0 .../parser/analyse/story/attributes/identifiers.test.ts | 0 src/{lib => }/parser/analyse/story/attributes/identifiers.ts | 0 src/{lib => }/parser/analyse/story/children.test.ts | 0 src/{lib => }/parser/analyse/story/children.ts | 0 src/{lib => }/parser/ast.ts | 0 src/{lib => }/parser/extract/compiled/nodes.ts | 0 src/{lib => }/parser/extract/compiled/stories.ts | 0 src/{lib => }/parser/extract/compiled/story.ts | 0 src/{lib => }/parser/extract/svelte/define-meta.test.ts | 0 src/{lib => }/parser/extract/svelte/define-meta.ts | 0 src/{lib => }/parser/extract/svelte/fragment-nodes.test.ts | 0 src/{lib => }/parser/extract/svelte/fragment-nodes.ts | 0 src/{lib => }/parser/extract/svelte/instance-nodes.test.ts | 0 src/{lib => }/parser/extract/svelte/instance-nodes.ts | 0 src/{lib => }/parser/extract/svelte/legacy-export-meta.ts | 0 src/{lib => }/parser/extract/svelte/module-nodes.test.ts | 0 src/{lib => }/parser/extract/svelte/module-nodes.ts | 0 src/{lib => }/parser/extract/svelte/nodes.test.ts | 0 src/{lib => }/parser/extract/svelte/nodes.ts | 0 src/{lib => }/parser/extract/svelte/snippet-block.ts | 0 src/{lib => }/parser/extract/svelte/story/attributes.test.ts | 0 src/{lib => }/parser/extract/svelte/story/attributes.ts | 0 src/{lib => }/parser/extract/svelte/story/children.test.ts | 0 src/{lib => }/parser/extract/svelte/story/children.ts | 0 src/{lib => }/preset.ts | 0 src/{lib => }/runtime/LegacyMeta.svelte | 0 src/{lib => }/runtime/LegacyStory.svelte | 0 src/{lib => }/runtime/LegacyTemplate.svelte | 0 src/{lib => }/runtime/StoriesExtractor.svelte | 0 src/{lib => }/runtime/Story.svelte | 0 src/{lib => }/runtime/StoryRenderer.svelte | 0 src/{lib => }/runtime/contexts/extractor.svelte.ts | 0 src/{lib => }/runtime/contexts/renderer.svelte.ts | 0 src/{lib => }/runtime/contexts/template.svelte.ts | 0 src/{lib => }/runtime/create-runtime-stories.ts | 0 src/{lib => }/runtime/emit-code.test.ts | 0 src/{lib => }/runtime/emit-code.ts | 0 src/{lib => }/svelte.d.ts | 0 src/{lib => }/types.test.ts | 2 +- src/{lib => }/types.ts | 0 src/{lib => }/utils/error.ts | 0 src/{lib => }/utils/error/legacy-api/index.ts | 0 src/{lib => }/utils/error/parser/analyse/define-meta.ts | 0 src/{lib => }/utils/error/parser/analyse/story.ts | 0 src/{lib => }/utils/error/parser/extract/compiled.ts | 0 src/{lib => }/utils/error/parser/extract/svelte.ts | 0 src/{lib => }/utils/identifier-utils.test.ts | 0 src/{lib => }/utils/identifier-utils.ts | 0 97 files changed, 7 insertions(+), 7 deletions(-) rename src/{lib => }/compiler/plugins.ts (100%) rename src/{lib => }/compiler/post-transform/appendix/create-export-default.test.ts (100%) rename src/{lib => }/compiler/post-transform/appendix/create-export-default.ts (100%) rename src/{lib => }/compiler/post-transform/appendix/create-export-order.test.ts (100%) rename src/{lib => }/compiler/post-transform/appendix/create-export-order.ts (100%) rename src/{lib => }/compiler/post-transform/appendix/create-import.test.ts (100%) rename src/{lib => }/compiler/post-transform/appendix/create-import.ts (100%) rename src/{lib => }/compiler/post-transform/appendix/create-named-export-story.test.ts (100%) rename src/{lib => }/compiler/post-transform/appendix/create-named-export-story.ts (100%) rename src/{lib => }/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.test.ts (100%) rename src/{lib => }/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.ts (100%) rename src/{lib => }/compiler/post-transform/create-appendix.ts (100%) rename src/{lib => }/compiler/post-transform/define-meta/destructure-meta.ts (100%) rename src/{lib => }/compiler/post-transform/define-meta/index.test.ts (100%) rename src/{lib => }/compiler/post-transform/define-meta/index.ts (100%) rename src/{lib => }/compiler/post-transform/define-meta/insert-description.ts (100%) rename src/{lib => }/compiler/post-transform/index.test.ts (100%) rename src/{lib => }/compiler/post-transform/index.ts (100%) rename src/{lib => }/compiler/post-transform/remove-export-default.test.ts (100%) rename src/{lib => }/compiler/post-transform/remove-export-default.ts (100%) rename src/{lib => }/compiler/post-transform/shared/description.ts (100%) rename src/{lib => }/compiler/post-transform/story/index.test.ts (100%) rename src/{lib => }/compiler/post-transform/story/index.ts (100%) rename src/{lib => }/compiler/post-transform/story/insert-description.ts (100%) rename src/{lib => }/compiler/post-transform/story/insert-svelte-csf.ts (100%) rename src/{lib => }/compiler/pre-transform/codemods/component-meta-to-define-meta.test.ts (98%) rename src/{lib => }/compiler/pre-transform/codemods/component-meta-to-define-meta.ts (100%) rename src/{lib => }/compiler/pre-transform/codemods/export-const-to-define-meta.test.ts (96%) rename src/{lib => }/compiler/pre-transform/codemods/export-const-to-define-meta.ts (100%) rename src/{lib => }/compiler/pre-transform/codemods/import-declaration.test.ts (95%) rename src/{lib => }/compiler/pre-transform/codemods/import-declaration.ts (100%) rename src/{lib => }/compiler/pre-transform/codemods/legacy-story.test.ts (99%) rename src/{lib => }/compiler/pre-transform/codemods/legacy-story.ts (100%) rename src/{lib => }/compiler/pre-transform/codemods/template-to-snippet.test.ts (96%) rename src/{lib => }/compiler/pre-transform/codemods/template-to-snippet.ts (100%) rename src/{lib => }/compiler/pre-transform/index.test.ts (100%) rename src/{lib => }/compiler/pre-transform/index.ts (100%) rename src/{lib => }/estree.d.ts (100%) rename src/{lib => }/index.test.ts (98%) rename src/{lib => }/index.ts (100%) rename src/{lib => }/indexer/index.ts (100%) rename src/{lib => }/indexer/parser.ts (100%) rename src/{lib => }/legacy-types.d.ts (100%) rename src/{lib => }/parser/README.md (100%) rename src/{lib => }/parser/analyse/define-meta/component-identifier.ts (100%) rename src/{lib => }/parser/analyse/define-meta/meta-identifier.ts (100%) rename src/{lib => }/parser/analyse/define-meta/properties.ts (100%) rename src/{lib => }/parser/analyse/story/attributes.test.ts (100%) rename src/{lib => }/parser/analyse/story/attributes.ts (100%) rename src/{lib => }/parser/analyse/story/attributes/identifiers.test.ts (100%) rename src/{lib => }/parser/analyse/story/attributes/identifiers.ts (100%) rename src/{lib => }/parser/analyse/story/children.test.ts (100%) rename src/{lib => }/parser/analyse/story/children.ts (100%) rename src/{lib => }/parser/ast.ts (100%) rename src/{lib => }/parser/extract/compiled/nodes.ts (100%) rename src/{lib => }/parser/extract/compiled/stories.ts (100%) rename src/{lib => }/parser/extract/compiled/story.ts (100%) rename src/{lib => }/parser/extract/svelte/define-meta.test.ts (100%) rename src/{lib => }/parser/extract/svelte/define-meta.ts (100%) rename src/{lib => }/parser/extract/svelte/fragment-nodes.test.ts (100%) rename src/{lib => }/parser/extract/svelte/fragment-nodes.ts (100%) rename src/{lib => }/parser/extract/svelte/instance-nodes.test.ts (100%) rename src/{lib => }/parser/extract/svelte/instance-nodes.ts (100%) rename src/{lib => }/parser/extract/svelte/legacy-export-meta.ts (100%) rename src/{lib => }/parser/extract/svelte/module-nodes.test.ts (100%) rename src/{lib => }/parser/extract/svelte/module-nodes.ts (100%) rename src/{lib => }/parser/extract/svelte/nodes.test.ts (100%) rename src/{lib => }/parser/extract/svelte/nodes.ts (100%) rename src/{lib => }/parser/extract/svelte/snippet-block.ts (100%) rename src/{lib => }/parser/extract/svelte/story/attributes.test.ts (100%) rename src/{lib => }/parser/extract/svelte/story/attributes.ts (100%) rename src/{lib => }/parser/extract/svelte/story/children.test.ts (100%) rename src/{lib => }/parser/extract/svelte/story/children.ts (100%) rename src/{lib => }/preset.ts (100%) rename src/{lib => }/runtime/LegacyMeta.svelte (100%) rename src/{lib => }/runtime/LegacyStory.svelte (100%) rename src/{lib => }/runtime/LegacyTemplate.svelte (100%) rename src/{lib => }/runtime/StoriesExtractor.svelte (100%) rename src/{lib => }/runtime/Story.svelte (100%) rename src/{lib => }/runtime/StoryRenderer.svelte (100%) rename src/{lib => }/runtime/contexts/extractor.svelte.ts (100%) rename src/{lib => }/runtime/contexts/renderer.svelte.ts (100%) rename src/{lib => }/runtime/contexts/template.svelte.ts (100%) rename src/{lib => }/runtime/create-runtime-stories.ts (100%) rename src/{lib => }/runtime/emit-code.test.ts (100%) rename src/{lib => }/runtime/emit-code.ts (100%) rename src/{lib => }/svelte.d.ts (100%) rename src/{lib => }/types.test.ts (95%) rename src/{lib => }/types.ts (100%) rename src/{lib => }/utils/error.ts (100%) rename src/{lib => }/utils/error/legacy-api/index.ts (100%) rename src/{lib => }/utils/error/parser/analyse/define-meta.ts (100%) rename src/{lib => }/utils/error/parser/analyse/story.ts (100%) rename src/{lib => }/utils/error/parser/extract/compiled.ts (100%) rename src/{lib => }/utils/error/parser/extract/svelte.ts (100%) rename src/{lib => }/utils/identifier-utils.test.ts (100%) rename src/{lib => }/utils/identifier-utils.ts (100%) diff --git a/src/lib/compiler/plugins.ts b/src/compiler/plugins.ts similarity index 100% rename from src/lib/compiler/plugins.ts rename to src/compiler/plugins.ts diff --git a/src/lib/compiler/post-transform/appendix/create-export-default.test.ts b/src/compiler/post-transform/appendix/create-export-default.test.ts similarity index 100% rename from src/lib/compiler/post-transform/appendix/create-export-default.test.ts rename to src/compiler/post-transform/appendix/create-export-default.test.ts diff --git a/src/lib/compiler/post-transform/appendix/create-export-default.ts b/src/compiler/post-transform/appendix/create-export-default.ts similarity index 100% rename from src/lib/compiler/post-transform/appendix/create-export-default.ts rename to src/compiler/post-transform/appendix/create-export-default.ts diff --git a/src/lib/compiler/post-transform/appendix/create-export-order.test.ts b/src/compiler/post-transform/appendix/create-export-order.test.ts similarity index 100% rename from src/lib/compiler/post-transform/appendix/create-export-order.test.ts rename to src/compiler/post-transform/appendix/create-export-order.test.ts diff --git a/src/lib/compiler/post-transform/appendix/create-export-order.ts b/src/compiler/post-transform/appendix/create-export-order.ts similarity index 100% rename from src/lib/compiler/post-transform/appendix/create-export-order.ts rename to src/compiler/post-transform/appendix/create-export-order.ts diff --git a/src/lib/compiler/post-transform/appendix/create-import.test.ts b/src/compiler/post-transform/appendix/create-import.test.ts similarity index 100% rename from src/lib/compiler/post-transform/appendix/create-import.test.ts rename to src/compiler/post-transform/appendix/create-import.test.ts diff --git a/src/lib/compiler/post-transform/appendix/create-import.ts b/src/compiler/post-transform/appendix/create-import.ts similarity index 100% rename from src/lib/compiler/post-transform/appendix/create-import.ts rename to src/compiler/post-transform/appendix/create-import.ts diff --git a/src/lib/compiler/post-transform/appendix/create-named-export-story.test.ts b/src/compiler/post-transform/appendix/create-named-export-story.test.ts similarity index 100% rename from src/lib/compiler/post-transform/appendix/create-named-export-story.test.ts rename to src/compiler/post-transform/appendix/create-named-export-story.test.ts diff --git a/src/lib/compiler/post-transform/appendix/create-named-export-story.ts b/src/compiler/post-transform/appendix/create-named-export-story.ts similarity index 100% rename from src/lib/compiler/post-transform/appendix/create-named-export-story.ts rename to src/compiler/post-transform/appendix/create-named-export-story.ts diff --git a/src/lib/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.test.ts b/src/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.test.ts similarity index 100% rename from src/lib/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.test.ts rename to src/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.test.ts diff --git a/src/lib/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.ts b/src/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.ts similarity index 100% rename from src/lib/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.ts rename to src/compiler/post-transform/appendix/create-variable-from-runtime-stories-call.ts diff --git a/src/lib/compiler/post-transform/create-appendix.ts b/src/compiler/post-transform/create-appendix.ts similarity index 100% rename from src/lib/compiler/post-transform/create-appendix.ts rename to src/compiler/post-transform/create-appendix.ts diff --git a/src/lib/compiler/post-transform/define-meta/destructure-meta.ts b/src/compiler/post-transform/define-meta/destructure-meta.ts similarity index 100% rename from src/lib/compiler/post-transform/define-meta/destructure-meta.ts rename to src/compiler/post-transform/define-meta/destructure-meta.ts diff --git a/src/lib/compiler/post-transform/define-meta/index.test.ts b/src/compiler/post-transform/define-meta/index.test.ts similarity index 100% rename from src/lib/compiler/post-transform/define-meta/index.test.ts rename to src/compiler/post-transform/define-meta/index.test.ts diff --git a/src/lib/compiler/post-transform/define-meta/index.ts b/src/compiler/post-transform/define-meta/index.ts similarity index 100% rename from src/lib/compiler/post-transform/define-meta/index.ts rename to src/compiler/post-transform/define-meta/index.ts diff --git a/src/lib/compiler/post-transform/define-meta/insert-description.ts b/src/compiler/post-transform/define-meta/insert-description.ts similarity index 100% rename from src/lib/compiler/post-transform/define-meta/insert-description.ts rename to src/compiler/post-transform/define-meta/insert-description.ts diff --git a/src/lib/compiler/post-transform/index.test.ts b/src/compiler/post-transform/index.test.ts similarity index 100% rename from src/lib/compiler/post-transform/index.test.ts rename to src/compiler/post-transform/index.test.ts diff --git a/src/lib/compiler/post-transform/index.ts b/src/compiler/post-transform/index.ts similarity index 100% rename from src/lib/compiler/post-transform/index.ts rename to src/compiler/post-transform/index.ts diff --git a/src/lib/compiler/post-transform/remove-export-default.test.ts b/src/compiler/post-transform/remove-export-default.test.ts similarity index 100% rename from src/lib/compiler/post-transform/remove-export-default.test.ts rename to src/compiler/post-transform/remove-export-default.test.ts diff --git a/src/lib/compiler/post-transform/remove-export-default.ts b/src/compiler/post-transform/remove-export-default.ts similarity index 100% rename from src/lib/compiler/post-transform/remove-export-default.ts rename to src/compiler/post-transform/remove-export-default.ts diff --git a/src/lib/compiler/post-transform/shared/description.ts b/src/compiler/post-transform/shared/description.ts similarity index 100% rename from src/lib/compiler/post-transform/shared/description.ts rename to src/compiler/post-transform/shared/description.ts diff --git a/src/lib/compiler/post-transform/story/index.test.ts b/src/compiler/post-transform/story/index.test.ts similarity index 100% rename from src/lib/compiler/post-transform/story/index.test.ts rename to src/compiler/post-transform/story/index.test.ts diff --git a/src/lib/compiler/post-transform/story/index.ts b/src/compiler/post-transform/story/index.ts similarity index 100% rename from src/lib/compiler/post-transform/story/index.ts rename to src/compiler/post-transform/story/index.ts diff --git a/src/lib/compiler/post-transform/story/insert-description.ts b/src/compiler/post-transform/story/insert-description.ts similarity index 100% rename from src/lib/compiler/post-transform/story/insert-description.ts rename to src/compiler/post-transform/story/insert-description.ts diff --git a/src/lib/compiler/post-transform/story/insert-svelte-csf.ts b/src/compiler/post-transform/story/insert-svelte-csf.ts similarity index 100% rename from src/lib/compiler/post-transform/story/insert-svelte-csf.ts rename to src/compiler/post-transform/story/insert-svelte-csf.ts diff --git a/src/lib/compiler/pre-transform/codemods/component-meta-to-define-meta.test.ts b/src/compiler/pre-transform/codemods/component-meta-to-define-meta.test.ts similarity index 98% rename from src/lib/compiler/pre-transform/codemods/component-meta-to-define-meta.test.ts rename to src/compiler/pre-transform/codemods/component-meta-to-define-meta.test.ts index 0740fb79..493841e3 100644 --- a/src/lib/compiler/pre-transform/codemods/component-meta-to-define-meta.test.ts +++ b/src/compiler/pre-transform/codemods/component-meta-to-define-meta.test.ts @@ -4,7 +4,7 @@ import { describe, it } from 'vitest'; import { transformComponentMetaToDefineMeta } from './component-meta-to-define-meta.js'; import type { SvelteAST } from '$lib/parser/ast.js'; -import { parseAndExtractSvelteNode } from '../../../../../tests/extractor.js'; +import { parseAndExtractSvelteNode } from '../../../../tests/extractor.js'; describe(transformComponentMetaToDefineMeta.name, () => { it('works with a simple example', async ({ expect }) => { diff --git a/src/lib/compiler/pre-transform/codemods/component-meta-to-define-meta.ts b/src/compiler/pre-transform/codemods/component-meta-to-define-meta.ts similarity index 100% rename from src/lib/compiler/pre-transform/codemods/component-meta-to-define-meta.ts rename to src/compiler/pre-transform/codemods/component-meta-to-define-meta.ts diff --git a/src/lib/compiler/pre-transform/codemods/export-const-to-define-meta.test.ts b/src/compiler/pre-transform/codemods/export-const-to-define-meta.test.ts similarity index 96% rename from src/lib/compiler/pre-transform/codemods/export-const-to-define-meta.test.ts rename to src/compiler/pre-transform/codemods/export-const-to-define-meta.test.ts index 376eb25e..f1dafe86 100644 --- a/src/lib/compiler/pre-transform/codemods/export-const-to-define-meta.test.ts +++ b/src/compiler/pre-transform/codemods/export-const-to-define-meta.test.ts @@ -5,7 +5,7 @@ import { describe, it } from 'vitest'; import { transformExportMetaToDefineMeta } from './export-const-to-define-meta.js'; import type { ESTreeAST } from '$lib/parser/ast.js'; -import { parseAndExtractSvelteNode } from '../../../../../tests/extractor.js'; +import { parseAndExtractSvelteNode } from '../../../../tests/extractor.js'; describe(transformExportMetaToDefineMeta.name, () => { it('works with advanced example', async ({ expect }) => { diff --git a/src/lib/compiler/pre-transform/codemods/export-const-to-define-meta.ts b/src/compiler/pre-transform/codemods/export-const-to-define-meta.ts similarity index 100% rename from src/lib/compiler/pre-transform/codemods/export-const-to-define-meta.ts rename to src/compiler/pre-transform/codemods/export-const-to-define-meta.ts diff --git a/src/lib/compiler/pre-transform/codemods/import-declaration.test.ts b/src/compiler/pre-transform/codemods/import-declaration.test.ts similarity index 95% rename from src/lib/compiler/pre-transform/codemods/import-declaration.test.ts rename to src/compiler/pre-transform/codemods/import-declaration.test.ts index 455cd16f..fe73610b 100644 --- a/src/lib/compiler/pre-transform/codemods/import-declaration.test.ts +++ b/src/compiler/pre-transform/codemods/import-declaration.test.ts @@ -4,7 +4,7 @@ import { describe, it } from 'vitest'; import { transformImportDeclaration } from './import-declaration.js'; import type { ESTreeAST } from '$lib/parser/ast.js'; -import { parseAndExtractSvelteNode } from '../../../../../tests/extractor.js'; +import { parseAndExtractSvelteNode } from '../../../../tests/extractor.js'; describe(transformImportDeclaration.name, () => { it("removes legacy components and add 'defineMeta'", async ({ expect }) => { diff --git a/src/lib/compiler/pre-transform/codemods/import-declaration.ts b/src/compiler/pre-transform/codemods/import-declaration.ts similarity index 100% rename from src/lib/compiler/pre-transform/codemods/import-declaration.ts rename to src/compiler/pre-transform/codemods/import-declaration.ts diff --git a/src/lib/compiler/pre-transform/codemods/legacy-story.test.ts b/src/compiler/pre-transform/codemods/legacy-story.test.ts similarity index 99% rename from src/lib/compiler/pre-transform/codemods/legacy-story.test.ts rename to src/compiler/pre-transform/codemods/legacy-story.test.ts index ef7b8570..07b98c11 100644 --- a/src/lib/compiler/pre-transform/codemods/legacy-story.test.ts +++ b/src/compiler/pre-transform/codemods/legacy-story.test.ts @@ -4,7 +4,7 @@ import { describe, it } from 'vitest'; import { transformLegacyStory } from './legacy-story.js'; import type { SvelteAST } from '$lib/parser/ast.js'; -import { parseAndExtractSvelteNode } from '../../../../../tests/extractor.js'; +import { parseAndExtractSvelteNode } from '../../../../tests/extractor.js'; describe(transformLegacyStory.name, () => { it("it moves 'autodocs' prop to 'tags' correctly", async ({ expect }) => { diff --git a/src/lib/compiler/pre-transform/codemods/legacy-story.ts b/src/compiler/pre-transform/codemods/legacy-story.ts similarity index 100% rename from src/lib/compiler/pre-transform/codemods/legacy-story.ts rename to src/compiler/pre-transform/codemods/legacy-story.ts diff --git a/src/lib/compiler/pre-transform/codemods/template-to-snippet.test.ts b/src/compiler/pre-transform/codemods/template-to-snippet.test.ts similarity index 96% rename from src/lib/compiler/pre-transform/codemods/template-to-snippet.test.ts rename to src/compiler/pre-transform/codemods/template-to-snippet.test.ts index 8117ef7f..4955122b 100644 --- a/src/lib/compiler/pre-transform/codemods/template-to-snippet.test.ts +++ b/src/compiler/pre-transform/codemods/template-to-snippet.test.ts @@ -5,7 +5,7 @@ import { describe, it } from 'vitest'; import { transformTemplateToSnippet } from './template-to-snippet.js'; import type { SvelteAST } from '$lib/parser/ast.js'; -import { parseAndExtractSvelteNode } from '../../../../../tests/extractor.js'; +import { parseAndExtractSvelteNode } from '../../../../tests/extractor.js'; describe(transformTemplateToSnippet.name, () => { it("covers a case without provided prop 'id'", async ({ expect }) => { diff --git a/src/lib/compiler/pre-transform/codemods/template-to-snippet.ts b/src/compiler/pre-transform/codemods/template-to-snippet.ts similarity index 100% rename from src/lib/compiler/pre-transform/codemods/template-to-snippet.ts rename to src/compiler/pre-transform/codemods/template-to-snippet.ts diff --git a/src/lib/compiler/pre-transform/index.test.ts b/src/compiler/pre-transform/index.test.ts similarity index 100% rename from src/lib/compiler/pre-transform/index.test.ts rename to src/compiler/pre-transform/index.test.ts diff --git a/src/lib/compiler/pre-transform/index.ts b/src/compiler/pre-transform/index.ts similarity index 100% rename from src/lib/compiler/pre-transform/index.ts rename to src/compiler/pre-transform/index.ts diff --git a/src/lib/estree.d.ts b/src/estree.d.ts similarity index 100% rename from src/lib/estree.d.ts rename to src/estree.d.ts diff --git a/src/lib/index.test.ts b/src/index.test.ts similarity index 98% rename from src/lib/index.test.ts rename to src/index.test.ts index 4a2e2abd..4f91a9a1 100644 --- a/src/lib/index.test.ts +++ b/src/index.test.ts @@ -13,7 +13,7 @@ import type { SvelteRenderer, } from '$lib/types.js'; -import Button from '../../examples/components/Button.svelte'; +import Button from '../examples/components/Button.svelte'; describe(defineMeta.name, () => { it('works with provided meta entry "component" entry', () => { diff --git a/src/lib/index.ts b/src/index.ts similarity index 100% rename from src/lib/index.ts rename to src/index.ts diff --git a/src/lib/indexer/index.ts b/src/indexer/index.ts similarity index 100% rename from src/lib/indexer/index.ts rename to src/indexer/index.ts diff --git a/src/lib/indexer/parser.ts b/src/indexer/parser.ts similarity index 100% rename from src/lib/indexer/parser.ts rename to src/indexer/parser.ts diff --git a/src/lib/legacy-types.d.ts b/src/legacy-types.d.ts similarity index 100% rename from src/lib/legacy-types.d.ts rename to src/legacy-types.d.ts diff --git a/src/lib/parser/README.md b/src/parser/README.md similarity index 100% rename from src/lib/parser/README.md rename to src/parser/README.md diff --git a/src/lib/parser/analyse/define-meta/component-identifier.ts b/src/parser/analyse/define-meta/component-identifier.ts similarity index 100% rename from src/lib/parser/analyse/define-meta/component-identifier.ts rename to src/parser/analyse/define-meta/component-identifier.ts diff --git a/src/lib/parser/analyse/define-meta/meta-identifier.ts b/src/parser/analyse/define-meta/meta-identifier.ts similarity index 100% rename from src/lib/parser/analyse/define-meta/meta-identifier.ts rename to src/parser/analyse/define-meta/meta-identifier.ts diff --git a/src/lib/parser/analyse/define-meta/properties.ts b/src/parser/analyse/define-meta/properties.ts similarity index 100% rename from src/lib/parser/analyse/define-meta/properties.ts rename to src/parser/analyse/define-meta/properties.ts diff --git a/src/lib/parser/analyse/story/attributes.test.ts b/src/parser/analyse/story/attributes.test.ts similarity index 100% rename from src/lib/parser/analyse/story/attributes.test.ts rename to src/parser/analyse/story/attributes.test.ts diff --git a/src/lib/parser/analyse/story/attributes.ts b/src/parser/analyse/story/attributes.ts similarity index 100% rename from src/lib/parser/analyse/story/attributes.ts rename to src/parser/analyse/story/attributes.ts diff --git a/src/lib/parser/analyse/story/attributes/identifiers.test.ts b/src/parser/analyse/story/attributes/identifiers.test.ts similarity index 100% rename from src/lib/parser/analyse/story/attributes/identifiers.test.ts rename to src/parser/analyse/story/attributes/identifiers.test.ts diff --git a/src/lib/parser/analyse/story/attributes/identifiers.ts b/src/parser/analyse/story/attributes/identifiers.ts similarity index 100% rename from src/lib/parser/analyse/story/attributes/identifiers.ts rename to src/parser/analyse/story/attributes/identifiers.ts diff --git a/src/lib/parser/analyse/story/children.test.ts b/src/parser/analyse/story/children.test.ts similarity index 100% rename from src/lib/parser/analyse/story/children.test.ts rename to src/parser/analyse/story/children.test.ts diff --git a/src/lib/parser/analyse/story/children.ts b/src/parser/analyse/story/children.ts similarity index 100% rename from src/lib/parser/analyse/story/children.ts rename to src/parser/analyse/story/children.ts diff --git a/src/lib/parser/ast.ts b/src/parser/ast.ts similarity index 100% rename from src/lib/parser/ast.ts rename to src/parser/ast.ts diff --git a/src/lib/parser/extract/compiled/nodes.ts b/src/parser/extract/compiled/nodes.ts similarity index 100% rename from src/lib/parser/extract/compiled/nodes.ts rename to src/parser/extract/compiled/nodes.ts diff --git a/src/lib/parser/extract/compiled/stories.ts b/src/parser/extract/compiled/stories.ts similarity index 100% rename from src/lib/parser/extract/compiled/stories.ts rename to src/parser/extract/compiled/stories.ts diff --git a/src/lib/parser/extract/compiled/story.ts b/src/parser/extract/compiled/story.ts similarity index 100% rename from src/lib/parser/extract/compiled/story.ts rename to src/parser/extract/compiled/story.ts diff --git a/src/lib/parser/extract/svelte/define-meta.test.ts b/src/parser/extract/svelte/define-meta.test.ts similarity index 100% rename from src/lib/parser/extract/svelte/define-meta.test.ts rename to src/parser/extract/svelte/define-meta.test.ts diff --git a/src/lib/parser/extract/svelte/define-meta.ts b/src/parser/extract/svelte/define-meta.ts similarity index 100% rename from src/lib/parser/extract/svelte/define-meta.ts rename to src/parser/extract/svelte/define-meta.ts diff --git a/src/lib/parser/extract/svelte/fragment-nodes.test.ts b/src/parser/extract/svelte/fragment-nodes.test.ts similarity index 100% rename from src/lib/parser/extract/svelte/fragment-nodes.test.ts rename to src/parser/extract/svelte/fragment-nodes.test.ts diff --git a/src/lib/parser/extract/svelte/fragment-nodes.ts b/src/parser/extract/svelte/fragment-nodes.ts similarity index 100% rename from src/lib/parser/extract/svelte/fragment-nodes.ts rename to src/parser/extract/svelte/fragment-nodes.ts diff --git a/src/lib/parser/extract/svelte/instance-nodes.test.ts b/src/parser/extract/svelte/instance-nodes.test.ts similarity index 100% rename from src/lib/parser/extract/svelte/instance-nodes.test.ts rename to src/parser/extract/svelte/instance-nodes.test.ts diff --git a/src/lib/parser/extract/svelte/instance-nodes.ts b/src/parser/extract/svelte/instance-nodes.ts similarity index 100% rename from src/lib/parser/extract/svelte/instance-nodes.ts rename to src/parser/extract/svelte/instance-nodes.ts diff --git a/src/lib/parser/extract/svelte/legacy-export-meta.ts b/src/parser/extract/svelte/legacy-export-meta.ts similarity index 100% rename from src/lib/parser/extract/svelte/legacy-export-meta.ts rename to src/parser/extract/svelte/legacy-export-meta.ts diff --git a/src/lib/parser/extract/svelte/module-nodes.test.ts b/src/parser/extract/svelte/module-nodes.test.ts similarity index 100% rename from src/lib/parser/extract/svelte/module-nodes.test.ts rename to src/parser/extract/svelte/module-nodes.test.ts diff --git a/src/lib/parser/extract/svelte/module-nodes.ts b/src/parser/extract/svelte/module-nodes.ts similarity index 100% rename from src/lib/parser/extract/svelte/module-nodes.ts rename to src/parser/extract/svelte/module-nodes.ts diff --git a/src/lib/parser/extract/svelte/nodes.test.ts b/src/parser/extract/svelte/nodes.test.ts similarity index 100% rename from src/lib/parser/extract/svelte/nodes.test.ts rename to src/parser/extract/svelte/nodes.test.ts diff --git a/src/lib/parser/extract/svelte/nodes.ts b/src/parser/extract/svelte/nodes.ts similarity index 100% rename from src/lib/parser/extract/svelte/nodes.ts rename to src/parser/extract/svelte/nodes.ts diff --git a/src/lib/parser/extract/svelte/snippet-block.ts b/src/parser/extract/svelte/snippet-block.ts similarity index 100% rename from src/lib/parser/extract/svelte/snippet-block.ts rename to src/parser/extract/svelte/snippet-block.ts diff --git a/src/lib/parser/extract/svelte/story/attributes.test.ts b/src/parser/extract/svelte/story/attributes.test.ts similarity index 100% rename from src/lib/parser/extract/svelte/story/attributes.test.ts rename to src/parser/extract/svelte/story/attributes.test.ts diff --git a/src/lib/parser/extract/svelte/story/attributes.ts b/src/parser/extract/svelte/story/attributes.ts similarity index 100% rename from src/lib/parser/extract/svelte/story/attributes.ts rename to src/parser/extract/svelte/story/attributes.ts diff --git a/src/lib/parser/extract/svelte/story/children.test.ts b/src/parser/extract/svelte/story/children.test.ts similarity index 100% rename from src/lib/parser/extract/svelte/story/children.test.ts rename to src/parser/extract/svelte/story/children.test.ts diff --git a/src/lib/parser/extract/svelte/story/children.ts b/src/parser/extract/svelte/story/children.ts similarity index 100% rename from src/lib/parser/extract/svelte/story/children.ts rename to src/parser/extract/svelte/story/children.ts diff --git a/src/lib/preset.ts b/src/preset.ts similarity index 100% rename from src/lib/preset.ts rename to src/preset.ts diff --git a/src/lib/runtime/LegacyMeta.svelte b/src/runtime/LegacyMeta.svelte similarity index 100% rename from src/lib/runtime/LegacyMeta.svelte rename to src/runtime/LegacyMeta.svelte diff --git a/src/lib/runtime/LegacyStory.svelte b/src/runtime/LegacyStory.svelte similarity index 100% rename from src/lib/runtime/LegacyStory.svelte rename to src/runtime/LegacyStory.svelte diff --git a/src/lib/runtime/LegacyTemplate.svelte b/src/runtime/LegacyTemplate.svelte similarity index 100% rename from src/lib/runtime/LegacyTemplate.svelte rename to src/runtime/LegacyTemplate.svelte diff --git a/src/lib/runtime/StoriesExtractor.svelte b/src/runtime/StoriesExtractor.svelte similarity index 100% rename from src/lib/runtime/StoriesExtractor.svelte rename to src/runtime/StoriesExtractor.svelte diff --git a/src/lib/runtime/Story.svelte b/src/runtime/Story.svelte similarity index 100% rename from src/lib/runtime/Story.svelte rename to src/runtime/Story.svelte diff --git a/src/lib/runtime/StoryRenderer.svelte b/src/runtime/StoryRenderer.svelte similarity index 100% rename from src/lib/runtime/StoryRenderer.svelte rename to src/runtime/StoryRenderer.svelte diff --git a/src/lib/runtime/contexts/extractor.svelte.ts b/src/runtime/contexts/extractor.svelte.ts similarity index 100% rename from src/lib/runtime/contexts/extractor.svelte.ts rename to src/runtime/contexts/extractor.svelte.ts diff --git a/src/lib/runtime/contexts/renderer.svelte.ts b/src/runtime/contexts/renderer.svelte.ts similarity index 100% rename from src/lib/runtime/contexts/renderer.svelte.ts rename to src/runtime/contexts/renderer.svelte.ts diff --git a/src/lib/runtime/contexts/template.svelte.ts b/src/runtime/contexts/template.svelte.ts similarity index 100% rename from src/lib/runtime/contexts/template.svelte.ts rename to src/runtime/contexts/template.svelte.ts diff --git a/src/lib/runtime/create-runtime-stories.ts b/src/runtime/create-runtime-stories.ts similarity index 100% rename from src/lib/runtime/create-runtime-stories.ts rename to src/runtime/create-runtime-stories.ts diff --git a/src/lib/runtime/emit-code.test.ts b/src/runtime/emit-code.test.ts similarity index 100% rename from src/lib/runtime/emit-code.test.ts rename to src/runtime/emit-code.test.ts diff --git a/src/lib/runtime/emit-code.ts b/src/runtime/emit-code.ts similarity index 100% rename from src/lib/runtime/emit-code.ts rename to src/runtime/emit-code.ts diff --git a/src/lib/svelte.d.ts b/src/svelte.d.ts similarity index 100% rename from src/lib/svelte.d.ts rename to src/svelte.d.ts diff --git a/src/lib/types.test.ts b/src/types.test.ts similarity index 95% rename from src/lib/types.test.ts rename to src/types.test.ts index 6d31ee0d..00237b71 100644 --- a/src/lib/types.test.ts +++ b/src/types.test.ts @@ -4,7 +4,7 @@ import { describe, expectTypeOf, it } from 'vitest'; import type { Meta, SvelteRenderer, ComponentAnnotations } from '$lib/types.js'; -import Button from '../../examples/components/Button.svelte'; +import Button from '../examples/components/Button.svelte'; describe('Meta', () => { it(`works correctly when no 'meta.component' entry provided`, () => { diff --git a/src/lib/types.ts b/src/types.ts similarity index 100% rename from src/lib/types.ts rename to src/types.ts diff --git a/src/lib/utils/error.ts b/src/utils/error.ts similarity index 100% rename from src/lib/utils/error.ts rename to src/utils/error.ts diff --git a/src/lib/utils/error/legacy-api/index.ts b/src/utils/error/legacy-api/index.ts similarity index 100% rename from src/lib/utils/error/legacy-api/index.ts rename to src/utils/error/legacy-api/index.ts diff --git a/src/lib/utils/error/parser/analyse/define-meta.ts b/src/utils/error/parser/analyse/define-meta.ts similarity index 100% rename from src/lib/utils/error/parser/analyse/define-meta.ts rename to src/utils/error/parser/analyse/define-meta.ts diff --git a/src/lib/utils/error/parser/analyse/story.ts b/src/utils/error/parser/analyse/story.ts similarity index 100% rename from src/lib/utils/error/parser/analyse/story.ts rename to src/utils/error/parser/analyse/story.ts diff --git a/src/lib/utils/error/parser/extract/compiled.ts b/src/utils/error/parser/extract/compiled.ts similarity index 100% rename from src/lib/utils/error/parser/extract/compiled.ts rename to src/utils/error/parser/extract/compiled.ts diff --git a/src/lib/utils/error/parser/extract/svelte.ts b/src/utils/error/parser/extract/svelte.ts similarity index 100% rename from src/lib/utils/error/parser/extract/svelte.ts rename to src/utils/error/parser/extract/svelte.ts diff --git a/src/lib/utils/identifier-utils.test.ts b/src/utils/identifier-utils.test.ts similarity index 100% rename from src/lib/utils/identifier-utils.test.ts rename to src/utils/identifier-utils.test.ts diff --git a/src/lib/utils/identifier-utils.ts b/src/utils/identifier-utils.ts similarity index 100% rename from src/lib/utils/identifier-utils.ts rename to src/utils/identifier-utils.ts From 4538656f80de1339974edb2a114bfb8538458cb5 Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Tue, 17 Dec 2024 22:08:59 +0100 Subject: [PATCH 16/16] fix tests --- src/compiler/post-transform/define-meta/index.test.ts | 4 ++-- src/compiler/post-transform/index.test.ts | 4 ++-- src/compiler/post-transform/remove-export-default.test.ts | 2 +- src/compiler/post-transform/story/index.test.ts | 4 ++-- vite.config.ts | 7 +++++++ 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/compiler/post-transform/define-meta/index.test.ts b/src/compiler/post-transform/define-meta/index.test.ts index 6d78a173..db4ad254 100644 --- a/src/compiler/post-transform/define-meta/index.test.ts +++ b/src/compiler/post-transform/define-meta/index.test.ts @@ -17,13 +17,13 @@ const __dirname = path.dirname(url.fileURLToPath(import.meta.url)); describe(transformDefineMeta.name, () => { it("transformed 'defineMeta' matches inlined snapshot", async ({ expect }) => { - const filename = path.resolve(__dirname, '../../../../../tests/stories/Example.stories.svelte'); + const filename = path.resolve(__dirname, '../../../../tests/stories/Example.stories.svelte'); const originalCode = fs.readFileSync(filename).toString(); const compiledPreTransformCode = fs .readFileSync( path.resolve( __dirname, - '../../../../../tests/__compiled__/pre-transform/Example.stories.dev.js' + '../../../../tests/__compiled__/pre-transform/Example.stories.dev.js' ) ) .toString(); diff --git a/src/compiler/post-transform/index.test.ts b/src/compiler/post-transform/index.test.ts index d998539a..1d8eb9f2 100644 --- a/src/compiler/post-transform/index.test.ts +++ b/src/compiler/post-transform/index.test.ts @@ -16,11 +16,11 @@ const __dirname = path.dirname(url.fileURLToPath(import.meta.url)); describe(transformStoriesCode.name, () => { it('transformed code matches inlined snapshot', async ({ expect }) => { - const filename = path.resolve(__dirname, '../../../../tests/stories/Example.stories.svelte'); + const filename = path.resolve(__dirname, '../../../tests/stories/Example.stories.svelte'); const originalCode = fs.readFileSync(filename).toString(); const compiledPreTransformCode = fs .readFileSync( - path.resolve(__dirname, '../../../../tests/__compiled__/pre-transform/Example.stories.dev.js') + path.resolve(__dirname, '../../../tests/__compiled__/pre-transform/Example.stories.dev.js') ) .toString(); const svelteAST = getSvelteAST({ code: originalCode, filename }); diff --git a/src/compiler/post-transform/remove-export-default.test.ts b/src/compiler/post-transform/remove-export-default.test.ts index 29a32b88..f35b85b5 100644 --- a/src/compiler/post-transform/remove-export-default.test.ts +++ b/src/compiler/post-transform/remove-export-default.test.ts @@ -17,7 +17,7 @@ describe(removeExportDefault.name, () => { it('removes pre-transformed export default correctly', async ({ expect }) => { const compiledPreTransformCode = fs .readFileSync( - path.resolve(__dirname, '../../../../tests/__compiled__/pre-transform/Example.stories.dev.js') + path.resolve(__dirname, '../../../tests/__compiled__/pre-transform/Example.stories.dev.js') ) .toString(); const compiledASTNodes = await extractCompiledASTNodes({ diff --git a/src/compiler/post-transform/story/index.test.ts b/src/compiler/post-transform/story/index.test.ts index e88278cd..d7894186 100644 --- a/src/compiler/post-transform/story/index.test.ts +++ b/src/compiler/post-transform/story/index.test.ts @@ -20,13 +20,13 @@ describe(transformStory.name, () => { it("each transformed compiled 'Story' component matches inlined snapshots", async ({ expect, }) => { - const filename = path.resolve(__dirname, '../../../../../tests/stories/Example.stories.svelte'); + const filename = path.resolve(__dirname, '../../../../tests/stories/Example.stories.svelte'); const originalCode = fs.readFileSync(filename).toString(); const compiledPreTransformCode = fs .readFileSync( path.resolve( __dirname, - '../../../../../tests/__compiled__/pre-transform/Example.stories.dev.js' + '../../../../tests/__compiled__/pre-transform/Example.stories.dev.js' ) ) .toString(); diff --git a/vite.config.ts b/vite.config.ts index 38cf26cc..51eec95b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,6 +3,7 @@ import { defineConfig } from 'vite'; import { svelte } from '@sveltejs/vite-plugin-svelte'; import inspect from 'vite-plugin-inspect'; +import path from 'path'; export default defineConfig({ // define: { @@ -15,6 +16,12 @@ export default defineConfig({ build: true, }), ], + resolve: { + alias: { + // This is already set up in svelte.config.js, but we need it explicitly here for vitest + '$lib': path.resolve(__dirname, 'src'), + }, + }, test: { dir: './src/', environment: 'jsdom',