From 921ed385d72305952f9ee0cc01dea0bfc13963b7 Mon Sep 17 00:00:00 2001 From: Nikolay Kostyurin Date: Tue, 16 Jul 2024 02:08:49 +0200 Subject: [PATCH 1/2] fix: svelte example --- examples/svelte-vite/.gitignore | 24 ++ examples/svelte-vite/.vscode/extensions.json | 3 + examples/svelte-vite/README.md | 47 +++ examples/svelte-vite/index.html | 13 + examples/svelte-vite/package.json | 26 ++ examples/svelte-vite/public/vite.svg | 1 + examples/svelte-vite/src/App.svelte | 59 +++ examples/svelte-vite/src/app.css | 79 ++++ examples/svelte-vite/src/assets/svelte.svg | 1 + examples/svelte-vite/src/lib/Avatar.svelte | 28 ++ examples/svelte-vite/src/main.ts | 8 + examples/svelte-vite/src/vite-env.d.ts | 2 + examples/svelte-vite/svelte.config.js | 10 + examples/svelte-vite/tsconfig.json | 21 ++ examples/svelte-vite/tsconfig.node.json | 12 + examples/svelte-vite/vite.config.ts | 7 + pnpm-lock.yaml | 376 +++++++++++++++++-- 17 files changed, 692 insertions(+), 25 deletions(-) create mode 100644 examples/svelte-vite/.gitignore create mode 100644 examples/svelte-vite/.vscode/extensions.json create mode 100644 examples/svelte-vite/README.md create mode 100644 examples/svelte-vite/index.html create mode 100644 examples/svelte-vite/package.json create mode 100644 examples/svelte-vite/public/vite.svg create mode 100644 examples/svelte-vite/src/App.svelte create mode 100644 examples/svelte-vite/src/app.css create mode 100644 examples/svelte-vite/src/assets/svelte.svg create mode 100644 examples/svelte-vite/src/lib/Avatar.svelte create mode 100644 examples/svelte-vite/src/main.ts create mode 100644 examples/svelte-vite/src/vite-env.d.ts create mode 100644 examples/svelte-vite/svelte.config.js create mode 100644 examples/svelte-vite/tsconfig.json create mode 100644 examples/svelte-vite/tsconfig.node.json create mode 100644 examples/svelte-vite/vite.config.ts diff --git a/examples/svelte-vite/.gitignore b/examples/svelte-vite/.gitignore new file mode 100644 index 00000000..a547bf36 --- /dev/null +++ b/examples/svelte-vite/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/examples/svelte-vite/.vscode/extensions.json b/examples/svelte-vite/.vscode/extensions.json new file mode 100644 index 00000000..bdef8201 --- /dev/null +++ b/examples/svelte-vite/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["svelte.svelte-vscode"] +} diff --git a/examples/svelte-vite/README.md b/examples/svelte-vite/README.md new file mode 100644 index 00000000..e6cd94fc --- /dev/null +++ b/examples/svelte-vite/README.md @@ -0,0 +1,47 @@ +# Svelte + TS + Vite + +This template should help get you started developing with Svelte and TypeScript in Vite. + +## Recommended IDE Setup + +[VS Code](https://code.visualstudio.com/) + [Svelte](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode). + +## Need an official Svelte framework? + +Check out [SvelteKit](https://github.com/sveltejs/kit#readme), which is also powered by Vite. Deploy anywhere with its serverless-first approach and adapt to various platforms, with out of the box support for TypeScript, SCSS, and Less, and easily-added support for mdsvex, GraphQL, PostCSS, Tailwind CSS, and more. + +## Technical considerations + +**Why use this over SvelteKit?** + +- It brings its own routing solution which might not be preferable for some users. +- It is first and foremost a framework that just happens to use Vite under the hood, not a Vite app. + +This template contains as little as possible to get started with Vite + TypeScript + Svelte, while taking into account the developer experience with regards to HMR and intellisense. It demonstrates capabilities on par with the other `create-vite` templates and is a good starting point for beginners dipping their toes into a Vite + Svelte project. + +Should you later need the extended capabilities and extensibility provided by SvelteKit, the template has been structured similarly to SvelteKit so that it is easy to migrate. + +**Why `global.d.ts` instead of `compilerOptions.types` inside `jsconfig.json` or `tsconfig.json`?** + +Setting `compilerOptions.types` shuts out all other types not explicitly listed in the configuration. Using triple-slash references keeps the default TypeScript setting of accepting type information from the entire workspace, while also adding `svelte` and `vite/client` type information. + +**Why include `.vscode/extensions.json`?** + +Other templates indirectly recommend extensions via the README, but this file allows VS Code to prompt the user to install the recommended extension upon opening the project. + +**Why enable `allowJs` in the TS template?** + +While `allowJs: false` would indeed prevent the use of `.js` files in the project, it does not prevent the use of JavaScript syntax in `.svelte` files. In addition, it would force `checkJs: false`, bringing the worst of both worlds: not being able to guarantee the entire codebase is TypeScript, and also having worse typechecking for the existing JavaScript. In addition, there are valid use cases in which a mixed codebase may be relevant. + +**Why is HMR not preserving my local component state?** + +HMR state preservation comes with a number of gotchas! It has been disabled by default in both `svelte-hmr` and `@sveltejs/vite-plugin-svelte` due to its often surprising behavior. You can read the details [here](https://github.com/rixo/svelte-hmr#svelte-hmr). + +If you have state that's important to retain within a component, consider creating an external store which would not be replaced by HMR. + +```ts +// store.ts +// An extremely simple external store +import { writable } from 'svelte/store' +export default writable(0) +``` diff --git a/examples/svelte-vite/index.html b/examples/svelte-vite/index.html new file mode 100644 index 00000000..b6c5f0af --- /dev/null +++ b/examples/svelte-vite/index.html @@ -0,0 +1,13 @@ + + + + + + + Vite + Svelte + TS + + +
+ + + diff --git a/examples/svelte-vite/package.json b/examples/svelte-vite/package.json new file mode 100644 index 00000000..74e824cd --- /dev/null +++ b/examples/svelte-vite/package.json @@ -0,0 +1,26 @@ +{ + "name": "svelte-vite", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "preview": "vite preview", + "check": "svelte-check --tsconfig ./tsconfig.json && tsc -p tsconfig.node.json" + }, + "dependencies": { + "@bbob/preset-html5": "*", + "@bbob/html": "*", + "@bbob/types": "*" + }, + "devDependencies": { + "@sveltejs/vite-plugin-svelte": "^3.1.1", + "@tsconfig/svelte": "^5.0.4", + "svelte": "^4.2.18", + "svelte-check": "^3.8.1", + "tslib": "^2.6.3", + "typescript": "^5.2.2", + "vite": "^5.3.1" + } +} diff --git a/examples/svelte-vite/public/vite.svg b/examples/svelte-vite/public/vite.svg new file mode 100644 index 00000000..e7b8dfb1 --- /dev/null +++ b/examples/svelte-vite/public/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/examples/svelte-vite/src/App.svelte b/examples/svelte-vite/src/App.svelte new file mode 100644 index 00000000..083d94b9 --- /dev/null +++ b/examples/svelte-vite/src/App.svelte @@ -0,0 +1,59 @@ + + +
+
+ + + + + + +
+
+
+

Raw BB Code here

+ +
+
+

Generated HTML here

+
{@html bbcode}
+
+
+
+ + diff --git a/examples/svelte-vite/src/app.css b/examples/svelte-vite/src/app.css new file mode 100644 index 00000000..617f5e93 --- /dev/null +++ b/examples/svelte-vite/src/app.css @@ -0,0 +1,79 @@ +:root { + font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; + line-height: 1.5; + font-weight: 400; + + color-scheme: light dark; + color: rgba(255, 255, 255, 0.87); + background-color: #242424; + + font-synthesis: none; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +a { + font-weight: 500; + color: #646cff; + text-decoration: inherit; +} +a:hover { + color: #535bf2; +} + +body { + margin: 0; + display: flex; + place-items: center; + min-width: 320px; + min-height: 100vh; +} + +h1 { + font-size: 3.2em; + line-height: 1.1; +} + +.card { + padding: 2em; +} + +#app { + max-width: 1280px; + margin: 0 auto; + padding: 2rem; + text-align: center; +} + +button { + border-radius: 8px; + border: 1px solid transparent; + padding: 0.6em 1.2em; + font-size: 1em; + font-weight: 500; + font-family: inherit; + background-color: #1a1a1a; + cursor: pointer; + transition: border-color 0.25s; +} +button:hover { + border-color: #646cff; +} +button:focus, +button:focus-visible { + outline: 4px auto -webkit-focus-ring-color; +} + +@media (prefers-color-scheme: light) { + :root { + color: #213547; + background-color: #ffffff; + } + a:hover { + color: #747bff; + } + button { + background-color: #f9f9f9; + } +} diff --git a/examples/svelte-vite/src/assets/svelte.svg b/examples/svelte-vite/src/assets/svelte.svg new file mode 100644 index 00000000..c5e08481 --- /dev/null +++ b/examples/svelte-vite/src/assets/svelte.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/examples/svelte-vite/src/lib/Avatar.svelte b/examples/svelte-vite/src/lib/Avatar.svelte new file mode 100644 index 00000000..fb3fa712 --- /dev/null +++ b/examples/svelte-vite/src/lib/Avatar.svelte @@ -0,0 +1,28 @@ + + + + + + + diff --git a/examples/svelte-vite/src/main.ts b/examples/svelte-vite/src/main.ts new file mode 100644 index 00000000..4d67e2ac --- /dev/null +++ b/examples/svelte-vite/src/main.ts @@ -0,0 +1,8 @@ +import './app.css' +import App from './App.svelte' + +const app = new App({ + target: document.getElementById('app')!, +}) + +export default app diff --git a/examples/svelte-vite/src/vite-env.d.ts b/examples/svelte-vite/src/vite-env.d.ts new file mode 100644 index 00000000..4078e747 --- /dev/null +++ b/examples/svelte-vite/src/vite-env.d.ts @@ -0,0 +1,2 @@ +/// +/// diff --git a/examples/svelte-vite/svelte.config.js b/examples/svelte-vite/svelte.config.js new file mode 100644 index 00000000..f087ba28 --- /dev/null +++ b/examples/svelte-vite/svelte.config.js @@ -0,0 +1,10 @@ +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte' + +export default { + // Consult https://svelte.dev/docs#compile-time-svelte-preprocess + // for more information about preprocessors + preprocess: vitePreprocess(), + compilerOptions: { + customElement: true, + }, +}; diff --git a/examples/svelte-vite/tsconfig.json b/examples/svelte-vite/tsconfig.json new file mode 100644 index 00000000..df56300c --- /dev/null +++ b/examples/svelte-vite/tsconfig.json @@ -0,0 +1,21 @@ +{ + "extends": "@tsconfig/svelte/tsconfig.json", + "compilerOptions": { + "target": "ESNext", + "useDefineForClassFields": true, + "module": "ESNext", + "resolveJsonModule": true, + /** + * Typecheck JS in `.svelte` and `.js` files by default. + * Disable checkJs if you'd like to use dynamic types in JS. + * Note that setting allowJs false does not prevent the use + * of JS in `.svelte` files. + */ + "allowJs": true, + "checkJs": true, + "isolatedModules": true, + "moduleDetection": "force" + }, + "include": ["src/**/*.ts", "src/**/*.js", "src/**/*.svelte"], + "references": [{ "path": "./tsconfig.node.json" }] +} diff --git a/examples/svelte-vite/tsconfig.node.json b/examples/svelte-vite/tsconfig.node.json new file mode 100644 index 00000000..6c2d8703 --- /dev/null +++ b/examples/svelte-vite/tsconfig.node.json @@ -0,0 +1,12 @@ +{ + "compilerOptions": { + "composite": true, + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", + "skipLibCheck": true, + "module": "ESNext", + "moduleResolution": "bundler", + "strict": true, + "noEmit": true + }, + "include": ["vite.config.ts"] +} diff --git a/examples/svelte-vite/vite.config.ts b/examples/svelte-vite/vite.config.ts new file mode 100644 index 00000000..d7019694 --- /dev/null +++ b/examples/svelte-vite/vite.config.ts @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite' +import { svelte } from '@sveltejs/vite-plugin-svelte' + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [svelte()], +}) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3077d598..373841fa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -223,6 +223,40 @@ importers: specifier: ^5.3.1 version: 5.3.3(@types/node@20.11.30)(terser@5.22.0) + examples/svelte-vite: + dependencies: + '@bbob/html': + specifier: '*' + version: link:../../packages/bbob-html + '@bbob/preset-html5': + specifier: '*' + version: link:../../packages/bbob-preset-html5 + '@bbob/types': + specifier: '*' + version: link:../../packages/bbob-types + devDependencies: + '@sveltejs/vite-plugin-svelte': + specifier: ^3.1.1 + version: 3.1.1(svelte@4.2.18)(vite@5.3.3(@types/node@20.11.30)(terser@5.22.0)) + '@tsconfig/svelte': + specifier: ^5.0.4 + version: 5.0.4 + svelte: + specifier: ^4.2.18 + version: 4.2.18 + svelte-check: + specifier: ^3.8.1 + version: 3.8.4(@babel/core@7.24.7)(postcss-load-config@3.1.4(postcss@8.4.39)(ts-node@10.9.1(@swc/core@1.3.107)(@types/node@20.4.5)(typescript@5.1.6)))(postcss@8.4.39)(svelte@4.2.18) + tslib: + specifier: ^2.6.3 + version: 2.6.3 + typescript: + specifier: ^5.2.2 + version: 5.4.5 + vite: + specifier: ^5.3.1 + version: 5.3.3(@types/node@20.11.30)(terser@5.22.0) + examples/vite: dependencies: '@bbob/html': @@ -2542,6 +2576,21 @@ packages: '@soda/get-current-script@1.0.2': resolution: {integrity: sha512-T7VNNlYVM1SgQ+VsMYhnDkcGmWhQdL0bDyGm5TlQ3GBXnJscEClUUOKduWTmm2zCnvNLC1hc3JpuXjs/nFOc5w==} + '@sveltejs/vite-plugin-svelte-inspector@2.1.0': + resolution: {integrity: sha512-9QX28IymvBlSCqsCll5t0kQVxipsfhFFL+L2t3nTWfXnddYwxBuAEtTtlaVQpRz9c37BhJjltSeY4AJSC03SSg==} + engines: {node: ^18.0.0 || >=20} + peerDependencies: + '@sveltejs/vite-plugin-svelte': ^3.0.0 + svelte: ^4.0.0 || ^5.0.0-next.0 + vite: ^5.0.0 + + '@sveltejs/vite-plugin-svelte@3.1.1': + resolution: {integrity: sha512-rimpFEAboBBHIlzISibg94iP09k/KYdHgVhJlcsTfn7KMBhc70jFX/GRWkRdFCc2fdnk+4+Bdfej23cMDnJS6A==} + engines: {node: ^18.0.0 || >=20} + peerDependencies: + svelte: ^4.0.0 || ^5.0.0-next.0 + vite: ^5.0.0 + '@swc/cli@0.3.10': resolution: {integrity: sha512-YWfYo9kXdbmIuGwIPth9geKgb0KssCMTdZa44zAN5KoqcuCP2rTW9s60heQDSRNpbtCmUr7BKF1VivsoHXrvrQ==} engines: {node: '>= 16.14.0'} @@ -2712,6 +2761,9 @@ packages: '@tsconfig/node16@1.0.4': resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} + '@tsconfig/svelte@5.0.4': + resolution: {integrity: sha512-BV9NplVgLmSi4mwKzD8BD/NQ8erOY/nUE/GpgWe2ckx+wIQF5RyRirn/QsSSCPeulVpc3RA/iJt6DpfTIZps0Q==} + '@tufjs/canonical-json@1.0.0': resolution: {integrity: sha512-QTnf++uxunWvG2z3UFNzAoQPHxnSXOwtaI3iJ+AohhV+5vONuArPjJE7aPXPVXfXJsqrVbZBu9b81AJoSd09IQ==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} @@ -2855,6 +2907,9 @@ packages: '@types/prop-types@15.7.12': resolution: {integrity: sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==} + '@types/pug@2.0.10': + resolution: {integrity: sha512-Sk/uYFOBAB7mb74XcpizmH0KOR2Pv3D2Hmrh1Dmy5BmK3MpdSa5kqZcg6EKBdklU0bFXX9gCfzvpnyUehrPIuA==} + '@types/qs@6.9.14': resolution: {integrity: sha512-5khscbd3SwWMhFqylJBLQ0zIu7c1K6Vz0uBIt915BI3zV0q1nfjRQD3RqSBcPaO6PHEF4ov/t9y89fSiyThlPA==} @@ -3524,6 +3579,9 @@ packages: axobject-query@2.2.0: resolution: {integrity: sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA==} + axobject-query@4.0.0: + resolution: {integrity: sha512-+60uv1hiVFhHZeO+Lz0RYzsVHy5Wr1ayX0mwda9KPDVLNJgZ1T9Ny7VmFbLDzxsH0D87I86vgj3gFrjTJUYznw==} + babel-jest@29.7.0: resolution: {integrity: sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -3674,6 +3732,10 @@ packages: bser@2.1.1: resolution: {integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==} + buffer-crc32@1.0.0: + resolution: {integrity: sha512-Db1SbgBS/fg/392AblrMJk97KggmvYhr4pB5ZIMTWtaivCPMWLkmb7m21cJvpvgK+J3nsU2CmmixNBZx4vFj/w==} + engines: {node: '>=8.0.0'} + buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} @@ -3888,6 +3950,9 @@ packages: resolution: {integrity: sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==} engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'} + code-red@1.0.4: + resolution: {integrity: sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==} + collect-v8-coverage@1.0.2: resolution: {integrity: sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==} @@ -4325,6 +4390,10 @@ packages: resolution: {integrity: sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==} engines: {node: '>=8.0.0'} + css-tree@2.3.1: + resolution: {integrity: sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==} + engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0} + css-what@6.1.0: resolution: {integrity: sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==} engines: {node: '>= 6'} @@ -4729,6 +4798,9 @@ packages: resolution: {integrity: sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==} engines: {node: '>= 0.4'} + es6-promise@3.3.1: + resolution: {integrity: sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==} + esbuild@0.19.12: resolution: {integrity: sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==} engines: {node: '>=12'} @@ -4935,6 +5007,9 @@ packages: estree-walker@2.0.2: resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + esutils@2.0.3: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} @@ -5809,6 +5884,9 @@ packages: is-reference@1.2.1: resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} + is-reference@3.0.2: + resolution: {integrity: sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==} + is-regex@1.1.4: resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} engines: {node: '>= 0.4'} @@ -6283,6 +6361,9 @@ packages: resolution: {integrity: sha512-ZvFw1KWS3GVyYBYb7qkmRM/WwL2TQQBxgCK62rlvm4WpVQ23Nb4tYjApUlfjrEGvOs7KHEsmyUn75OHZrJMWPw==} engines: {node: '>= 12.13.0'} + locate-character@3.0.0: + resolution: {integrity: sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==} + locate-path@2.0.0: resolution: {integrity: sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==} engines: {node: '>=4'} @@ -6422,6 +6503,9 @@ packages: mdn-data@2.0.14: resolution: {integrity: sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==} + mdn-data@2.0.30: + resolution: {integrity: sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==} + media-typer@0.3.0: resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==} engines: {node: '>= 0.6'} @@ -6605,6 +6689,10 @@ packages: module-alias@2.2.3: resolution: {integrity: sha512-23g5BFj4zdQL/b6tor7Ji+QY4pEfNH784BMslY9Qb0UnJWRAt+lQGLYmRaM0KDBwIG23ffEBELhZDP2rhi9f/Q==} + mri@1.2.0: + resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} + engines: {node: '>=4'} + mrmime@2.0.0: resolution: {integrity: sha512-eu38+hdgojoyq63s+yTpN4XMBdt5l8HhMhc4VKLO9KM5caLIBvUm4thi7fFaxyTmCKeNnXZ5pAlBwCUnhA09uw==} engines: {node: '>=10'} @@ -7116,6 +7204,9 @@ packages: resolution: {integrity: sha512-YtCKvLUOvwtMGmrniQPdO7MwPjgkFBtFIrmfSbYmYuq3tKDV/mcfAhBth1+C3ru7uXIZasc/pHnb+YDYNkkj4A==} engines: {node: '>=14.16'} + periscopic@3.1.0: + resolution: {integrity: sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==} + picocolors@1.0.0: resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} @@ -7745,6 +7836,11 @@ packages: resolution: {integrity: sha512-bYBjgxmkvTAfgIYy328fmkwhp39v8lwVgWhhrzxPV3yHtcSqyYKe9/XOhvW48UFjATg3VuJbpsp5822ACNvkmw==} engines: {node: '>= 0.10'} + rimraf@2.7.1: + resolution: {integrity: sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==} + deprecated: Rimraf versions prior to v4 are no longer supported + hasBin: true + rimraf@3.0.2: resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} hasBin: true @@ -7826,6 +7922,10 @@ packages: rxjs@7.8.1: resolution: {integrity: sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==} + sade@1.8.1: + resolution: {integrity: sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==} + engines: {node: '>=6'} + safe-array-concat@1.0.1: resolution: {integrity: sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==} engines: {node: '>=0.4'} @@ -7845,6 +7945,9 @@ packages: safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + sander@0.5.1: + resolution: {integrity: sha512-3lVqBir7WuKDHGrKRDn/1Ye3kwpXaDOMsiRP1wd6wpZW56gJhsbp5RqQpA6JG/P+pkXizygnr1dKR8vzWaVsfA==} + saxes@6.0.0: resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==} engines: {node: '>=v12.22.7'} @@ -8026,6 +8129,10 @@ packages: resolution: {integrity: sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==} engines: {node: '>= 10.13.0', npm: '>= 3.0.0'} + sorcery@0.11.1: + resolution: {integrity: sha512-o7npfeJE6wi6J9l0/5LKshFzZ2rMatRiCDwYeDQaOzqdzRJwALhX7mk/A/ecg6wjMu7wdZbmXfD2S/vpOg0bdQ==} + hasBin: true + sort-keys-length@1.0.1: resolution: {integrity: sha512-GRbEOUqCxemTAk/b32F2xa8wDTs+Z1QHOkbhJDQTvv/6G3ZkbJ+frYWsTcc7cBB3Fu4wy4XlLCuNtJuMn7Gsvw==} engines: {node: '>=0.10.0'} @@ -8252,6 +8359,59 @@ packages: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} + svelte-check@3.8.4: + resolution: {integrity: sha512-61aHMkdinWyH8BkkTX9jPLYxYzaAAz/FK/VQqdr2FiCQQ/q04WCwDlpGbHff1GdrMYTmW8chlTFvRWL9k0A8vg==} + hasBin: true + peerDependencies: + svelte: ^3.55.0 || ^4.0.0-next.0 || ^4.0.0 || ^5.0.0-next.0 + + svelte-hmr@0.16.0: + resolution: {integrity: sha512-Gyc7cOS3VJzLlfj7wKS0ZnzDVdv3Pn2IuVeJPk9m2skfhcu5bq3wtIZyQGggr7/Iim5rH5cncyQft/kRLupcnA==} + engines: {node: ^12.20 || ^14.13.1 || >= 16} + peerDependencies: + svelte: ^3.19.0 || ^4.0.0 + + svelte-preprocess@5.1.4: + resolution: {integrity: sha512-IvnbQ6D6Ao3Gg6ftiM5tdbR6aAETwjhHV+UKGf5bHGYR69RQvF1ho0JKPcbUON4vy4R7zom13jPjgdOWCQ5hDA==} + engines: {node: '>= 16.0.0'} + peerDependencies: + '@babel/core': ^7.10.2 + coffeescript: ^2.5.1 + less: ^3.11.3 || ^4.0.0 + postcss: '>=8.4.31' + postcss-load-config: ^2.1.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 + pug: ^3.0.0 + sass: ^1.26.8 + stylus: ^0.55.0 + sugarss: ^2.0.0 || ^3.0.0 || ^4.0.0 + svelte: ^3.23.0 || ^4.0.0-next.0 || ^4.0.0 || ^5.0.0-next.0 + typescript: '>=3.9.5 || ^4.0.0 || ^5.0.0' + peerDependenciesMeta: + '@babel/core': + optional: true + coffeescript: + optional: true + less: + optional: true + postcss: + optional: true + postcss-load-config: + optional: true + pug: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + typescript: + optional: true + + svelte@4.2.18: + resolution: {integrity: sha512-d0FdzYIiAePqRJEb90WlJDkjUEx42xhivxN8muUBmfZnP+tzUgz12DJ2hRJi8sIHCME7jeK1PTMgKPSfTd8JrA==} + engines: {node: '>=16'} + svg-tags@1.0.0: resolution: {integrity: sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==} @@ -8435,8 +8595,8 @@ packages: tslib@1.14.1: resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} - tslib@2.6.2: - resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} + tslib@2.6.3: + resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==} tsutils@3.21.0: resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} @@ -8676,6 +8836,14 @@ packages: terser: optional: true + vitefu@0.2.5: + resolution: {integrity: sha512-SgHtMLoqaeeGnd2evZ849ZbACbnwQCIwRH57t18FxcXoZop0uQu0uzlIhJBlF/eWVzuce0sHeqPcDo+evVcg8Q==} + peerDependencies: + vite: ^3.0.0 || ^4.0.0 || ^5.0.0 + peerDependenciesMeta: + vite: + optional: true + vscode-uri@3.0.8: resolution: {integrity: sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==} @@ -10315,7 +10483,7 @@ snapshots: lodash.get: 4.4.2 make-error: 1.3.6 ts-node: 9.1.1(typescript@4.9.5) - tslib: 2.6.2 + tslib: 2.6.3 transitivePeerDependencies: - typescript @@ -10997,7 +11165,7 @@ snapshots: '@nrwl/tao@16.10.0(@swc/core@1.3.107)': dependencies: nx: 16.10.0(@swc/core@1.3.107) - tslib: 2.6.2 + tslib: 2.6.3 transitivePeerDependencies: - '@swc-node/register' - '@swc/core' @@ -11006,7 +11174,7 @@ snapshots: '@nrwl/tao@18.3.3(@swc/core@1.3.107)': dependencies: nx: 18.3.3(@swc/core@1.3.107) - tslib: 2.6.2 + tslib: 2.6.3 transitivePeerDependencies: - '@swc-node/register' - '@swc/core' @@ -11029,7 +11197,7 @@ snapshots: nx: 16.10.0(@swc/core@1.3.107) semver: 7.5.3 tmp: 0.2.1 - tslib: 2.6.2 + tslib: 2.6.3 '@nx/devkit@18.3.3(nx@18.3.3(@swc/core@1.3.107))': dependencies: @@ -11040,7 +11208,7 @@ snapshots: nx: 18.3.3(@swc/core@1.3.107) semver: 7.5.4 tmp: 0.2.1 - tslib: 2.6.2 + tslib: 2.6.3 yargs-parser: 21.1.1 '@nx/eslint@18.3.3(@babel/traverse@7.24.7)(@swc/core@1.3.107)(@types/node@20.4.5)(js-yaml@4.1.0)(nx@18.3.3(@swc/core@1.3.107))': @@ -11049,7 +11217,7 @@ snapshots: '@nx/js': 18.3.3(@babel/traverse@7.24.7)(@swc/core@1.3.107)(@types/node@20.4.5)(nx@18.3.3(@swc/core@1.3.107))(typescript@5.4.5) '@nx/linter': 18.3.3(@babel/traverse@7.24.7)(@swc/core@1.3.107)(@types/node@20.4.5)(js-yaml@4.1.0)(nx@18.3.3(@swc/core@1.3.107)) eslint: 8.57.0 - tslib: 2.6.2 + tslib: 2.6.3 typescript: 5.4.5 optionalDependencies: js-yaml: 4.1.0 @@ -11079,7 +11247,7 @@ snapshots: jest-util: 29.7.0 minimatch: 9.0.3 resolve.exports: 1.1.0 - tslib: 2.6.2 + tslib: 2.6.3 yargs-parser: 21.1.1 transitivePeerDependencies: - '@babel/traverse' @@ -11127,7 +11295,7 @@ snapshots: source-map-support: 0.5.19 ts-node: 10.9.1(@swc/core@1.3.107)(@types/node@20.4.5)(typescript@5.1.6) tsconfig-paths: 4.2.0 - tslib: 2.6.2 + tslib: 2.6.3 transitivePeerDependencies: - '@babel/traverse' - '@swc-node/register' @@ -11170,7 +11338,7 @@ snapshots: source-map-support: 0.5.19 ts-node: 10.9.1(@swc/core@1.3.107)(@types/node@20.4.5)(typescript@5.4.5) tsconfig-paths: 4.2.0 - tslib: 2.6.2 + tslib: 2.6.3 transitivePeerDependencies: - '@babel/traverse' - '@swc-node/register' @@ -11276,7 +11444,7 @@ snapshots: rollup-plugin-peer-deps-external: 2.2.4(rollup@2.79.1) rollup-plugin-postcss: 4.0.2(postcss@8.4.38)(ts-node@10.9.1(@swc/core@1.3.107)(@types/node@20.4.5)(typescript@5.1.6)) rollup-plugin-typescript2: 0.36.0(rollup@2.79.1)(typescript@5.1.6) - tslib: 2.6.2 + tslib: 2.6.3 transitivePeerDependencies: - '@babel/core' - '@babel/traverse' @@ -11299,7 +11467,7 @@ snapshots: chalk: 4.1.2 enquirer: 2.3.6 nx: 18.3.3(@swc/core@1.3.107) - tslib: 2.6.2 + tslib: 2.6.3 yargs-parser: 21.1.1 transitivePeerDependencies: - '@swc-node/register' @@ -11662,6 +11830,29 @@ snapshots: '@soda/get-current-script@1.0.2': {} + '@sveltejs/vite-plugin-svelte-inspector@2.1.0(@sveltejs/vite-plugin-svelte@3.1.1(svelte@4.2.18)(vite@5.3.3(@types/node@20.11.30)(terser@5.22.0)))(svelte@4.2.18)(vite@5.3.3(@types/node@20.11.30)(terser@5.22.0))': + dependencies: + '@sveltejs/vite-plugin-svelte': 3.1.1(svelte@4.2.18)(vite@5.3.3(@types/node@20.11.30)(terser@5.22.0)) + debug: 4.3.4(supports-color@8.1.1) + svelte: 4.2.18 + vite: 5.3.3(@types/node@20.11.30)(terser@5.22.0) + transitivePeerDependencies: + - supports-color + + '@sveltejs/vite-plugin-svelte@3.1.1(svelte@4.2.18)(vite@5.3.3(@types/node@20.11.30)(terser@5.22.0))': + dependencies: + '@sveltejs/vite-plugin-svelte-inspector': 2.1.0(@sveltejs/vite-plugin-svelte@3.1.1(svelte@4.2.18)(vite@5.3.3(@types/node@20.11.30)(terser@5.22.0)))(svelte@4.2.18)(vite@5.3.3(@types/node@20.11.30)(terser@5.22.0)) + debug: 4.3.4(supports-color@8.1.1) + deepmerge: 4.3.1 + kleur: 4.1.5 + magic-string: 0.30.10 + svelte: 4.2.18 + svelte-hmr: 0.16.0(svelte@4.2.18) + vite: 5.3.3(@types/node@20.11.30)(terser@5.22.0) + vitefu: 0.2.5(vite@5.3.3(@types/node@20.11.30)(terser@5.22.0)) + transitivePeerDependencies: + - supports-color + '@swc/cli@0.3.10(@swc/core@1.3.107)(chokidar@3.5.3)': dependencies: '@mole-inc/bin-wrapper': 8.0.1 @@ -11829,6 +12020,8 @@ snapshots: '@tsconfig/node16@1.0.4': {} + '@tsconfig/svelte@5.0.4': {} + '@tufjs/canonical-json@1.0.0': {} '@tufjs/models@1.0.4': @@ -12004,6 +12197,8 @@ snapshots: '@types/prop-types@15.7.12': {} + '@types/pug@2.0.10': {} + '@types/qs@6.9.14': {} '@types/range-parser@1.2.7': {} @@ -12765,7 +12960,7 @@ snapshots: '@yarnpkg/parsers@3.0.0-rc.46': dependencies: js-yaml: 3.14.1 - tslib: 2.6.2 + tslib: 2.6.3 '@zkochan/js-yaml@0.0.6': dependencies: @@ -13018,6 +13213,10 @@ snapshots: axobject-query@2.2.0: {} + axobject-query@4.0.0: + dependencies: + dequal: 2.0.3 + babel-jest@29.7.0(@babel/core@7.23.2): dependencies: '@babel/core': 7.23.2 @@ -13235,6 +13434,8 @@ snapshots: dependencies: node-int64: 0.4.0 + buffer-crc32@1.0.0: {} + buffer-from@1.1.2: {} buffer@5.7.1: @@ -13322,7 +13523,7 @@ snapshots: camel-case@4.1.2: dependencies: pascal-case: 3.1.2 - tslib: 2.6.2 + tslib: 2.6.3 camelcase-keys@6.2.2: dependencies: @@ -13472,6 +13673,14 @@ snapshots: co@4.6.0: {} + code-red@1.0.4: + dependencies: + '@jridgewell/sourcemap-codec': 1.4.15 + '@types/estree': 1.0.5 + acorn: 8.10.0 + estree-walker: 3.0.3 + periscopic: 3.1.0 + collect-v8-coverage@1.0.2: {} color-convert@1.9.3: @@ -13805,6 +14014,11 @@ snapshots: mdn-data: 2.0.14 source-map: 0.6.1 + css-tree@2.3.1: + dependencies: + mdn-data: 2.0.30 + source-map-js: 1.2.0 + css-what@6.1.0: {} css.escape@1.5.1: {} @@ -14108,7 +14322,7 @@ snapshots: dot-case@3.0.4: dependencies: no-case: 3.0.4 - tslib: 2.6.2 + tslib: 2.6.3 dot-prop@5.3.0: dependencies: @@ -14270,6 +14484,8 @@ snapshots: is-date-object: 1.0.5 is-symbol: 1.0.4 + es6-promise@3.3.1: {} + esbuild@0.19.12: optionalDependencies: '@esbuild/aix-ppc64': 0.19.12 @@ -14599,6 +14815,10 @@ snapshots: estree-walker@2.0.2: {} + estree-walker@3.0.3: + dependencies: + '@types/estree': 1.0.5 + esutils@2.0.3: {} etag@1.8.1: {} @@ -15576,6 +15796,10 @@ snapshots: dependencies: '@types/estree': 1.0.3 + is-reference@3.0.2: + dependencies: + '@types/estree': 1.0.5 + is-regex@1.1.4: dependencies: call-bind: 1.0.5 @@ -16394,6 +16618,8 @@ snapshots: loader-utils@3.2.1: {} + locate-character@3.0.0: {} + locate-path@2.0.0: dependencies: p-locate: 2.0.0 @@ -16457,7 +16683,7 @@ snapshots: lower-case@2.0.2: dependencies: - tslib: 2.6.2 + tslib: 2.6.3 lowercase-keys@2.0.0: {} @@ -16537,6 +16763,8 @@ snapshots: mdn-data@2.0.14: {} + mdn-data@2.0.30: {} + media-typer@0.3.0: {} memfs@3.5.3: @@ -16713,6 +16941,8 @@ snapshots: module-alias@2.2.3: {} + mri@1.2.0: {} + mrmime@2.0.0: {} ms@2.0.0: {} @@ -16775,7 +17005,7 @@ snapshots: no-case@3.0.4: dependencies: lower-case: 2.0.2 - tslib: 2.6.2 + tslib: 2.6.3 node-addon-api@1.7.2: {} @@ -16979,7 +17209,7 @@ snapshots: tar-stream: 2.2.0 tmp: 0.2.1 tsconfig-paths: 4.2.0 - tslib: 2.6.2 + tslib: 2.6.3 v8-compile-cache: 2.3.0 yargs: 17.7.2 yargs-parser: 21.1.1 @@ -17031,7 +17261,7 @@ snapshots: tar-stream: 2.2.0 tmp: 0.2.1 tsconfig-paths: 4.2.0 - tslib: 2.6.2 + tslib: 2.6.3 yargs: 17.7.2 yargs-parser: 21.1.1 optionalDependencies: @@ -17251,7 +17481,7 @@ snapshots: param-case@3.0.4: dependencies: dot-case: 3.0.4 - tslib: 2.6.2 + tslib: 2.6.3 parent-module@1.0.1: dependencies: @@ -17294,7 +17524,7 @@ snapshots: pascal-case@3.1.2: dependencies: no-case: 3.0.4 - tslib: 2.6.2 + tslib: 2.6.3 path-browserify@1.0.1: {} @@ -17327,6 +17557,12 @@ snapshots: peek-readable@5.0.0: {} + periscopic@3.1.0: + dependencies: + '@types/estree': 1.0.5 + estree-walker: 3.0.3 + is-reference: 3.0.2 + picocolors@1.0.0: {} picocolors@1.0.1: {} @@ -17453,6 +17689,15 @@ snapshots: postcss: 8.4.38 ts-node: 10.9.1(@swc/core@1.3.107)(@types/node@20.4.5)(typescript@5.1.6) + postcss-load-config@3.1.4(postcss@8.4.39)(ts-node@10.9.1(@swc/core@1.3.107)(@types/node@20.4.5)(typescript@5.1.6)): + dependencies: + lilconfig: 2.1.0 + yaml: 1.10.2 + optionalDependencies: + postcss: 8.4.39 + ts-node: 10.9.1(@swc/core@1.3.107)(@types/node@20.4.5)(typescript@5.1.6) + optional: true + postcss-loader@6.2.1(postcss@8.4.31)(webpack@5.89.0(@swc/core@1.3.107)): dependencies: cosmiconfig: 7.1.0 @@ -18084,6 +18329,10 @@ snapshots: right-pad@1.0.1: {} + rimraf@2.7.1: + dependencies: + glob: 7.2.3 + rimraf@3.0.2: dependencies: glob: 7.2.3 @@ -18147,7 +18396,7 @@ snapshots: fs-extra: 10.1.0 rollup: 2.79.1 semver: 7.5.4 - tslib: 2.6.2 + tslib: 2.6.3 typescript: 5.1.6 rollup-pluginutils@2.8.2: @@ -18209,7 +18458,11 @@ snapshots: rxjs@7.8.1: dependencies: - tslib: 2.6.2 + tslib: 2.6.3 + + sade@1.8.1: + dependencies: + mri: 1.2.0 safe-array-concat@1.0.1: dependencies: @@ -18232,6 +18485,13 @@ snapshots: safer-buffer@2.1.2: {} + sander@0.5.1: + dependencies: + es6-promise: 3.3.1 + graceful-fs: 4.2.11 + mkdirp: 0.5.6 + rimraf: 2.7.1 + saxes@6.0.0: dependencies: xmlchars: 2.2.0 @@ -18455,6 +18715,13 @@ snapshots: ip: 2.0.1 smart-buffer: 4.2.0 + sorcery@0.11.1: + dependencies: + '@jridgewell/sourcemap-codec': 1.4.15 + buffer-crc32: 1.0.0 + minimist: 1.2.8 + sander: 0.5.1 + sort-keys-length@1.0.1: dependencies: sort-keys: 1.1.2 @@ -18709,6 +18976,61 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} + svelte-check@3.8.4(@babel/core@7.24.7)(postcss-load-config@3.1.4(postcss@8.4.39)(ts-node@10.9.1(@swc/core@1.3.107)(@types/node@20.4.5)(typescript@5.1.6)))(postcss@8.4.39)(svelte@4.2.18): + dependencies: + '@jridgewell/trace-mapping': 0.3.25 + chokidar: 3.5.3 + picocolors: 1.0.0 + sade: 1.8.1 + svelte: 4.2.18 + svelte-preprocess: 5.1.4(@babel/core@7.24.7)(postcss-load-config@3.1.4(postcss@8.4.39)(ts-node@10.9.1(@swc/core@1.3.107)(@types/node@20.4.5)(typescript@5.1.6)))(postcss@8.4.39)(svelte@4.2.18)(typescript@5.4.5) + typescript: 5.4.5 + transitivePeerDependencies: + - '@babel/core' + - coffeescript + - less + - postcss + - postcss-load-config + - pug + - sass + - stylus + - sugarss + + svelte-hmr@0.16.0(svelte@4.2.18): + dependencies: + svelte: 4.2.18 + + svelte-preprocess@5.1.4(@babel/core@7.24.7)(postcss-load-config@3.1.4(postcss@8.4.39)(ts-node@10.9.1(@swc/core@1.3.107)(@types/node@20.4.5)(typescript@5.1.6)))(postcss@8.4.39)(svelte@4.2.18)(typescript@5.4.5): + dependencies: + '@types/pug': 2.0.10 + detect-indent: 6.1.0 + magic-string: 0.30.10 + sorcery: 0.11.1 + strip-indent: 3.0.0 + svelte: 4.2.18 + optionalDependencies: + '@babel/core': 7.24.7 + postcss: 8.4.39 + postcss-load-config: 3.1.4(postcss@8.4.39)(ts-node@10.9.1(@swc/core@1.3.107)(@types/node@20.4.5)(typescript@5.1.6)) + typescript: 5.4.5 + + svelte@4.2.18: + dependencies: + '@ampproject/remapping': 2.2.1 + '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/trace-mapping': 0.3.25 + '@types/estree': 1.0.5 + acorn: 8.10.0 + aria-query: 5.3.0 + axobject-query: 4.0.0 + code-red: 1.0.4 + css-tree: 2.3.1 + estree-walker: 3.0.3 + is-reference: 3.0.2 + locate-character: 3.0.0 + magic-string: 0.30.10 + periscopic: 3.1.0 + svg-tags@1.0.0: {} svgo@2.8.0: @@ -18934,7 +19256,7 @@ snapshots: tslib@1.14.1: {} - tslib@2.6.2: {} + tslib@2.6.3: {} tsutils@3.21.0(typescript@5.1.6): dependencies: @@ -19136,6 +19458,10 @@ snapshots: fsevents: 2.3.3 terser: 5.22.0 + vitefu@0.2.5(vite@5.3.3(@types/node@20.11.30)(terser@5.22.0)): + optionalDependencies: + vite: 5.3.3(@types/node@20.11.30)(terser@5.22.0) + vscode-uri@3.0.8: {} vue-component-type-helpers@2.0.7: {} From 9019433bcd3a77b4617fdf756d3cb79f16331f45 Mon Sep 17 00:00:00 2001 From: Nikolay Kostyurin Date: Tue, 16 Jul 2024 02:28:01 +0200 Subject: [PATCH 2/2] fix: reactivity --- examples/svelte-vite/src/App.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/svelte-vite/src/App.svelte b/examples/svelte-vite/src/App.svelte index 083d94b9..09c31285 100644 --- a/examples/svelte-vite/src/App.svelte +++ b/examples/svelte-vite/src/App.svelte @@ -19,7 +19,7 @@ }); let input = 'Text [b]bolded[/b] and [avatar]Some Name[/avatar]' - let bbcode = html(input, myPreset()) + $: bbcode = html(input, myPreset())