diff --git a/jsrepo-build-config.json b/jsrepo-build-config.json index d3db800..12423ac 100644 --- a/jsrepo-build-config.json +++ b/jsrepo-build-config.json @@ -3,6 +3,8 @@ "dirs": ["./src/lib/components", "./src/lib"], "doNotListBlocks": [ "utils", + "ipv4-address", + "types", "is-mobile.svelte", "is-number", "badge", diff --git a/jsrepo-manifest.json b/jsrepo-manifest.json index 1e35113..6816cb6 100644 --- a/jsrepo-manifest.json +++ b/jsrepo-manifest.json @@ -174,12 +174,13 @@ "subdirectory": true, "list": true, "files": ["index.ts", "ipv4address-input-input.svelte", "ipv4address-input.svelte"], - "localDependencies": ["utils/is-number", "utils/utils"], + "localDependencies": ["utils/is-number", "utils/utils", "utils/ipv4-address"], "dependencies": [], "devDependencies": [], "_imports_": { "$lib/utils/is-number": "{{utils/is-number}}", - "$lib/utils/utils": "{{utils/utils}}" + "$lib/utils/utils": "{{utils/utils}}", + "$lib/utils/ipv4-address": "{{utils/ipv4-address}}" } }, { @@ -389,6 +390,22 @@ "dependencies": [], "devDependencies": [] }, + { + "name": "ipv4-address", + "directory": "src/lib/utils", + "category": "utils", + "tests": false, + "subdirectory": false, + "list": false, + "files": ["ipv4-address.ts"], + "localDependencies": ["utils/types", "utils/is-number"], + "_imports_": { + "$lib/utils/types/result": "{{utils/types}}/result", + "$lib/utils/is-number": "{{utils/is-number}}" + }, + "dependencies": [], + "devDependencies": [] + }, { "name": "is-number", "directory": "src/lib/utils", @@ -402,6 +419,19 @@ "dependencies": [], "devDependencies": [] }, + { + "name": "types", + "directory": "src/lib/utils/types", + "category": "utils", + "tests": false, + "subdirectory": true, + "list": false, + "files": ["result.ts"], + "localDependencies": [], + "dependencies": [], + "devDependencies": [], + "_imports_": {} + }, { "name": "utils", "directory": "src/lib/utils", diff --git a/jsrepo.json b/jsrepo.json index 80db64e..70a12f6 100644 --- a/jsrepo.json +++ b/jsrepo.json @@ -6,7 +6,7 @@ "formatter": "prettier", "paths": { "*": "./src/blocks", - "types": "$lib/ts/types", + "types": "$lib/utils/types", "utils": "$lib/utils", "ui": "$lib/components/ui", "hooks": "$lib/hooks" diff --git a/package.json b/package.json index 50abd33..b4bdff7 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "prettier-plugin-tailwindcss": "^0.6.5", "runed": "^0.18.0", "shiki": "^1.24.2", - "svelte": "^5.11.0", + "svelte": "^5.11.2", "svelte-check": "^4.0.0", "svelte-sonner": "^0.3.28", "svelte-tel-input": "^3.5.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index aa613f2..581683c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -19,19 +19,19 @@ importers: version: 5.1.0 '@sveltejs/adapter-vercel': specifier: ^5.5.2 - version: 5.5.2(@sveltejs/kit@2.10.1(@sveltejs/vite-plugin-svelte@5.0.1(svelte@5.11.0)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)))(svelte@5.11.0)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)))(rollup@4.28.0) + version: 5.5.2(@sveltejs/kit@2.10.1(@sveltejs/vite-plugin-svelte@5.0.1(svelte@5.11.2)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)))(svelte@5.11.2)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)))(rollup@4.28.0) '@sveltejs/kit': specifier: ^2.10.1 - version: 2.10.1(@sveltejs/vite-plugin-svelte@5.0.1(svelte@5.11.0)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)))(svelte@5.11.0)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)) + version: 2.10.1(@sveltejs/vite-plugin-svelte@5.0.1(svelte@5.11.2)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)))(svelte@5.11.2)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)) '@sveltejs/vite-plugin-svelte': specifier: ^5.0.0 - version: 5.0.1(svelte@5.11.0)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)) + version: 5.0.1(svelte@5.11.2)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)) autoprefixer: specifier: ^10.4.20 version: 10.4.20(postcss@8.4.49) bits-ui: specifier: 1.0.0-next.71 - version: 1.0.0-next.71(svelte@5.11.0) + version: 1.0.0-next.71(svelte@5.11.2) clsx: specifier: ^2.1.1 version: 2.1.1 @@ -43,7 +43,7 @@ importers: version: 9.1.0(eslint@9.16.0(jiti@1.21.6)) eslint-plugin-svelte: specifier: ^2.45.1 - version: 2.46.1(eslint@9.16.0(jiti@1.21.6))(svelte@5.11.0) + version: 2.46.1(eslint@9.16.0(jiti@1.21.6))(svelte@5.11.2) globals: specifier: ^15.0.0 version: 15.13.0 @@ -52,37 +52,37 @@ importers: version: 1.19.1(typescript@5.7.2) lucide-svelte: specifier: ^0.468.0 - version: 0.468.0(svelte@5.11.0) + version: 0.468.0(svelte@5.11.2) mode-watcher: specifier: ^0.5.0 - version: 0.5.0(svelte@5.11.0) + version: 0.5.0(svelte@5.11.2) prettier: specifier: ^3.3.2 version: 3.4.2 prettier-plugin-svelte: specifier: ^3.2.6 - version: 3.3.2(prettier@3.4.2)(svelte@5.11.0) + version: 3.3.2(prettier@3.4.2)(svelte@5.11.2) prettier-plugin-tailwindcss: specifier: ^0.6.5 - version: 0.6.9(prettier-plugin-svelte@3.3.2(prettier@3.4.2)(svelte@5.11.0))(prettier@3.4.2) + version: 0.6.9(prettier-plugin-svelte@3.3.2(prettier@3.4.2)(svelte@5.11.2))(prettier@3.4.2) runed: specifier: ^0.18.0 - version: 0.18.0(svelte@5.11.0) + version: 0.18.0(svelte@5.11.2) shiki: specifier: ^1.24.2 version: 1.24.2 svelte: - specifier: ^5.11.0 - version: 5.11.0 + specifier: ^5.11.2 + version: 5.11.2 svelte-check: specifier: ^4.0.0 - version: 4.1.1(picomatch@4.0.2)(svelte@5.11.0)(typescript@5.7.2) + version: 4.1.1(picomatch@4.0.2)(svelte@5.11.2)(typescript@5.7.2) svelte-sonner: specifier: ^0.3.28 - version: 0.3.28(svelte@5.11.0) + version: 0.3.28(svelte@5.11.2) svelte-tel-input: specifier: ^3.5.2 - version: 3.5.2(svelte@5.11.0) + version: 3.5.2(svelte@5.11.2) tailwind-merge: specifier: ^2.5.5 version: 2.5.5 @@ -103,7 +103,7 @@ importers: version: 8.18.0(eslint@9.16.0(jiti@1.21.6))(typescript@5.7.2) vaul-svelte: specifier: 1.0.0-next.3 - version: 1.0.0-next.3(svelte@5.11.0) + version: 1.0.0-next.3(svelte@5.11.2) vite: specifier: ^6.0.0 version: 6.0.3(jiti@1.21.6)(yaml@2.6.1) @@ -2023,8 +2023,8 @@ packages: peerDependencies: svelte: ^5.0.0-next.126 - svelte@5.11.0: - resolution: {integrity: sha512-w4FYvEY1eKbgBZo8RY2iegaOe9sZu9yhDa70cAyW9gkPJc87w6/1rrfNI4uu985s/7U+4CggQDE7CPIbrPsnXw==} + svelte@5.11.2: + resolution: {integrity: sha512-kGWswlBaohYxZHML9jp8ZYXkwjKd+WTpyAK1CCDmNzsefZHQjvsa7kbrKUckcFloNmdzwQwaZq+NyunuNOE6lw==} engines: {node: '>=18'} tailwind-merge@2.5.5: @@ -2777,9 +2777,9 @@ snapshots: '@sindresorhus/merge-streams@4.0.0': {} - '@sveltejs/adapter-vercel@5.5.2(@sveltejs/kit@2.10.1(@sveltejs/vite-plugin-svelte@5.0.1(svelte@5.11.0)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)))(svelte@5.11.0)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)))(rollup@4.28.0)': + '@sveltejs/adapter-vercel@5.5.2(@sveltejs/kit@2.10.1(@sveltejs/vite-plugin-svelte@5.0.1(svelte@5.11.2)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)))(svelte@5.11.2)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)))(rollup@4.28.0)': dependencies: - '@sveltejs/kit': 2.10.1(@sveltejs/vite-plugin-svelte@5.0.1(svelte@5.11.0)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)))(svelte@5.11.0)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)) + '@sveltejs/kit': 2.10.1(@sveltejs/vite-plugin-svelte@5.0.1(svelte@5.11.2)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)))(svelte@5.11.2)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)) '@vercel/nft': 0.27.9(rollup@4.28.0) esbuild: 0.24.0 transitivePeerDependencies: @@ -2787,9 +2787,9 @@ snapshots: - rollup - supports-color - '@sveltejs/kit@2.10.1(@sveltejs/vite-plugin-svelte@5.0.1(svelte@5.11.0)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)))(svelte@5.11.0)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1))': + '@sveltejs/kit@2.10.1(@sveltejs/vite-plugin-svelte@5.0.1(svelte@5.11.2)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)))(svelte@5.11.2)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1))': dependencies: - '@sveltejs/vite-plugin-svelte': 5.0.1(svelte@5.11.0)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)) + '@sveltejs/vite-plugin-svelte': 5.0.1(svelte@5.11.2)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)) '@types/cookie': 0.6.0 cookie: 0.6.0 devalue: 5.1.1 @@ -2801,27 +2801,27 @@ snapshots: sade: 1.8.1 set-cookie-parser: 2.7.1 sirv: 3.0.0 - svelte: 5.11.0 + svelte: 5.11.2 tiny-glob: 0.2.9 vite: 6.0.3(jiti@1.21.6)(yaml@2.6.1) - '@sveltejs/vite-plugin-svelte-inspector@4.0.1(@sveltejs/vite-plugin-svelte@5.0.1(svelte@5.11.0)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)))(svelte@5.11.0)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1))': + '@sveltejs/vite-plugin-svelte-inspector@4.0.1(@sveltejs/vite-plugin-svelte@5.0.1(svelte@5.11.2)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)))(svelte@5.11.2)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1))': dependencies: - '@sveltejs/vite-plugin-svelte': 5.0.1(svelte@5.11.0)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)) + '@sveltejs/vite-plugin-svelte': 5.0.1(svelte@5.11.2)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)) debug: 4.3.7 - svelte: 5.11.0 + svelte: 5.11.2 vite: 6.0.3(jiti@1.21.6)(yaml@2.6.1) transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte@5.0.1(svelte@5.11.0)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1))': + '@sveltejs/vite-plugin-svelte@5.0.1(svelte@5.11.2)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1))': dependencies: - '@sveltejs/vite-plugin-svelte-inspector': 4.0.1(@sveltejs/vite-plugin-svelte@5.0.1(svelte@5.11.0)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)))(svelte@5.11.0)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)) + '@sveltejs/vite-plugin-svelte-inspector': 4.0.1(@sveltejs/vite-plugin-svelte@5.0.1(svelte@5.11.2)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)))(svelte@5.11.2)(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)) debug: 4.3.7 deepmerge: 4.3.1 kleur: 4.1.5 magic-string: 0.30.14 - svelte: 5.11.0 + svelte: 5.11.2 vite: 6.0.3(jiti@1.21.6)(yaml@2.6.1) vitefu: 1.0.4(vite@6.0.3(jiti@1.21.6)(yaml@2.6.1)) transitivePeerDependencies: @@ -3073,15 +3073,15 @@ snapshots: dependencies: file-uri-to-path: 1.0.0 - bits-ui@1.0.0-next.71(svelte@5.11.0): + bits-ui@1.0.0-next.71(svelte@5.11.2): dependencies: '@floating-ui/core': 1.6.8 '@floating-ui/dom': 1.6.12 '@internationalized/date': 3.6.0 esm-env: 1.2.1 - runed: 0.15.4(svelte@5.11.0) - svelte: 5.11.0 - svelte-toolbelt: 0.4.6(svelte@5.11.0) + runed: 0.15.4(svelte@5.11.2) + svelte: 5.11.2 + svelte-toolbelt: 0.4.6(svelte@5.11.2) bottleneck@2.19.5: {} @@ -3274,7 +3274,7 @@ snapshots: dependencies: eslint: 9.16.0(jiti@1.21.6) - eslint-plugin-svelte@2.46.1(eslint@9.16.0(jiti@1.21.6))(svelte@5.11.0): + eslint-plugin-svelte@2.46.1(eslint@9.16.0(jiti@1.21.6))(svelte@5.11.2): dependencies: '@eslint-community/eslint-utils': 4.4.1(eslint@9.16.0(jiti@1.21.6)) '@jridgewell/sourcemap-codec': 1.5.0 @@ -3287,9 +3287,9 @@ snapshots: postcss-safe-parser: 6.0.0(postcss@8.4.49) postcss-selector-parser: 6.1.2 semver: 7.6.3 - svelte-eslint-parser: 0.43.0(svelte@5.11.0) + svelte-eslint-parser: 0.43.0(svelte@5.11.2) optionalDependencies: - svelte: 5.11.0 + svelte: 5.11.2 transitivePeerDependencies: - ts-node @@ -3647,7 +3647,7 @@ snapshots: package-manager-detector: 0.2.7 pathe: 1.1.2 prettier: 3.4.2 - svelte: 5.11.0 + svelte: 5.11.2 ts-morph: 24.0.0 valibot: 0.42.1(typescript@5.7.2) validate-npm-package-name: 6.0.0 @@ -3687,9 +3687,9 @@ snapshots: lru-cache@10.4.3: {} - lucide-svelte@0.468.0(svelte@5.11.0): + lucide-svelte@0.468.0(svelte@5.11.2): dependencies: - svelte: 5.11.0 + svelte: 5.11.2 magic-string@0.30.14: dependencies: @@ -3750,9 +3750,9 @@ snapshots: mkdirp@3.0.1: {} - mode-watcher@0.5.0(svelte@5.11.0): + mode-watcher@0.5.0(svelte@5.11.2): dependencies: - svelte: 5.11.0 + svelte: 5.11.2 mri@1.2.0: {} @@ -3936,16 +3936,16 @@ snapshots: prelude-ls@1.2.1: {} - prettier-plugin-svelte@3.3.2(prettier@3.4.2)(svelte@5.11.0): + prettier-plugin-svelte@3.3.2(prettier@3.4.2)(svelte@5.11.2): dependencies: prettier: 3.4.2 - svelte: 5.11.0 + svelte: 5.11.2 - prettier-plugin-tailwindcss@0.6.9(prettier-plugin-svelte@3.3.2(prettier@3.4.2)(svelte@5.11.0))(prettier@3.4.2): + prettier-plugin-tailwindcss@0.6.9(prettier-plugin-svelte@3.3.2(prettier@3.4.2)(svelte@5.11.2))(prettier@3.4.2): dependencies: prettier: 3.4.2 optionalDependencies: - prettier-plugin-svelte: 3.3.2(prettier@3.4.2)(svelte@5.11.0) + prettier-plugin-svelte: 3.3.2(prettier@3.4.2)(svelte@5.11.2) prettier@3.4.2: {} @@ -4027,15 +4027,15 @@ snapshots: dependencies: queue-microtask: 1.2.3 - runed@0.15.4(svelte@5.11.0): + runed@0.15.4(svelte@5.11.2): dependencies: esm-env: 1.2.1 - svelte: 5.11.0 + svelte: 5.11.2 - runed@0.18.0(svelte@5.11.0): + runed@0.18.0(svelte@5.11.2): dependencies: esm-env: 1.2.1 - svelte: 5.11.0 + svelte: 5.11.2 sade@1.8.1: dependencies: @@ -4125,19 +4125,19 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} - svelte-check@4.1.1(picomatch@4.0.2)(svelte@5.11.0)(typescript@5.7.2): + svelte-check@4.1.1(picomatch@4.0.2)(svelte@5.11.2)(typescript@5.7.2): dependencies: '@jridgewell/trace-mapping': 0.3.25 chokidar: 4.0.1 fdir: 6.4.2(picomatch@4.0.2) picocolors: 1.1.1 sade: 1.8.1 - svelte: 5.11.0 + svelte: 5.11.2 typescript: 5.7.2 transitivePeerDependencies: - picomatch - svelte-eslint-parser@0.43.0(svelte@5.11.0): + svelte-eslint-parser@0.43.0(svelte@5.11.2): dependencies: eslint-scope: 7.2.2 eslint-visitor-keys: 3.4.3 @@ -4145,24 +4145,24 @@ snapshots: postcss: 8.4.49 postcss-scss: 4.0.9(postcss@8.4.49) optionalDependencies: - svelte: 5.11.0 + svelte: 5.11.2 - svelte-sonner@0.3.28(svelte@5.11.0): + svelte-sonner@0.3.28(svelte@5.11.2): dependencies: - svelte: 5.11.0 + svelte: 5.11.2 - svelte-tel-input@3.5.2(svelte@5.11.0): + svelte-tel-input@3.5.2(svelte@5.11.2): dependencies: libphonenumber-js: 1.10.43 - svelte: 5.11.0 + svelte: 5.11.2 - svelte-toolbelt@0.4.6(svelte@5.11.0): + svelte-toolbelt@0.4.6(svelte@5.11.2): dependencies: clsx: 2.1.1 style-to-object: 1.0.8 - svelte: 5.11.0 + svelte: 5.11.2 - svelte@5.11.0: + svelte@5.11.2: dependencies: '@ampproject/remapping': 2.3.0 '@jridgewell/sourcemap-codec': 1.5.0 @@ -4335,11 +4335,11 @@ snapshots: validate-npm-package-name@6.0.0: {} - vaul-svelte@1.0.0-next.3(svelte@5.11.0): + vaul-svelte@1.0.0-next.3(svelte@5.11.2): dependencies: - bits-ui: 1.0.0-next.71(svelte@5.11.0) - svelte: 5.11.0 - svelte-toolbelt: 0.4.6(svelte@5.11.0) + bits-ui: 1.0.0-next.71(svelte@5.11.2) + svelte: 5.11.2 + svelte-toolbelt: 0.4.6(svelte@5.11.2) vfile-message@4.0.2: dependencies: diff --git a/src/lib/components/docs/examples/configure-device.svelte b/src/lib/components/docs/examples/configure-device.svelte index ea33bb1..945bedf 100644 --- a/src/lib/components/docs/examples/configure-device.svelte +++ b/src/lib/components/docs/examples/configure-device.svelte @@ -16,11 +16,11 @@