From 351b721f95e6dedefdfa6583702904211577099f Mon Sep 17 00:00:00 2001 From: Shinichi Okada <147320+shinokada@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:58:22 +0100 Subject: [PATCH] fix: self-closing tags --- package.json | 4 +- pnpm-lock.yaml | 75 +++++++++++++--------- src/routes/+page.svelte | 2 +- src/routes/docs/components/modal.md | 2 +- src/routes/docs/components/popover.md | 16 ++--- src/routes/docs/components/tabs.md | 8 +-- src/routes/docs/components/timeline.md | 6 +- src/routes/docs/forms/select.md | 2 +- src/routes/docs/pages/quickstart.md | 2 +- src/routes/icons/svelte-4.md | 4 +- src/routes/icons/svelte-5.md | 34 ++-------- src/routes/icons/utils/MetaTag.svelte | 2 +- src/routes/landing/utils/Row.svelte | 2 +- src/routes/layouts/ComponentsLayout.svelte | 2 +- src/routes/layouts/component/Anchor.svelte | 2 +- src/routes/utils/AlgoliaSearch.svelte | 2 +- src/routes/utils/CarbonAds.svelte | 2 +- src/routes/utils/CompoCard.svelte | 4 +- src/routes/utils/MetaTag.svelte | 2 +- src/routes/utils/Newsletter.svelte | 8 +-- src/routes/utils/Paging.svelte | 4 +- 21 files changed, 87 insertions(+), 98 deletions(-) diff --git a/package.json b/package.json index ddb78a992..98a841577 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@sveltejs/adapter-vercel": "^5.4.6", "@sveltejs/kit": "^2.7.3", "@sveltejs/package": "2.3.7", - "@sveltejs/vite-plugin-svelte": "^4.0.0", + "@sveltejs/vite-plugin-svelte": "^3.1.2", "@svitejs/changesets-changelog-github-compact": "^1.2.0", "@types/eslint": "^9.6.1", "autoprefixer": "^10.4.20", @@ -63,7 +63,7 @@ "svelte": "^4.2.19", "svelte-check": "^4.0.5", "svelte-lib-helpers": "^0.4.16", - "svelte-meta-tags": "^4.0.4", + "svelte-meta-tags": "^3.1.4", "svelte-preprocess": "^6.0.3", "svelte2tsx": "^0.7.22", "tailwind-merge": "^1.13.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 947d6888c..735dfc505 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,16 +35,16 @@ importers: version: 1.48.2 '@sveltejs/adapter-vercel': specifier: ^5.4.6 - version: 5.4.6(@sveltejs/kit@2.7.3(@sveltejs/vite-plugin-svelte@4.0.0(svelte@4.2.19)(vite@5.4.10))(svelte@4.2.19)(vite@5.4.10)) + version: 5.4.6(@sveltejs/kit@2.7.3(@sveltejs/vite-plugin-svelte@3.1.2(svelte@4.2.19)(vite@5.4.10))(svelte@4.2.19)(vite@5.4.10)) '@sveltejs/kit': specifier: ^2.7.3 - version: 2.7.3(@sveltejs/vite-plugin-svelte@4.0.0(svelte@4.2.19)(vite@5.4.10))(svelte@4.2.19)(vite@5.4.10) + version: 2.7.3(@sveltejs/vite-plugin-svelte@3.1.2(svelte@4.2.19)(vite@5.4.10))(svelte@4.2.19)(vite@5.4.10) '@sveltejs/package': specifier: 2.3.7 version: 2.3.7(svelte@4.2.19)(typescript@5.6.3) '@sveltejs/vite-plugin-svelte': - specifier: ^4.0.0 - version: 4.0.0(svelte@4.2.19)(vite@5.4.10) + specifier: ^3.1.2 + version: 3.1.2(svelte@4.2.19)(vite@5.4.10) '@svitejs/changesets-changelog-github-compact': specifier: ^1.2.0 version: 1.2.0 @@ -106,8 +106,8 @@ importers: specifier: ^0.4.16 version: 0.4.16 svelte-meta-tags: - specifier: ^4.0.4 - version: 4.0.4(svelte@4.2.19)(typescript@5.6.3) + specifier: ^3.1.4 + version: 3.1.4(svelte@4.2.19)(typescript@5.6.3) svelte-preprocess: specifier: ^6.0.3 version: 6.0.3(postcss-load-config@4.0.2(postcss@8.4.47))(postcss@8.4.47)(svelte@4.2.19)(typescript@5.6.3) @@ -826,19 +826,19 @@ packages: peerDependencies: svelte: ^3.44.0 || ^4.0.0 || ^5.0.0-next.1 - '@sveltejs/vite-plugin-svelte-inspector@3.0.1': - resolution: {integrity: sha512-2CKypmj1sM4GE7HjllT7UKmo4Q6L5xFRd7VMGEWhYnZ+wc6AUVU01IBd7yUi6WnFndEwWoMNOd6e8UjoN0nbvQ==} - engines: {node: ^18.0.0 || ^20.0.0 || >=22} + '@sveltejs/vite-plugin-svelte-inspector@2.1.0': + resolution: {integrity: sha512-9QX28IymvBlSCqsCll5t0kQVxipsfhFFL+L2t3nTWfXnddYwxBuAEtTtlaVQpRz9c37BhJjltSeY4AJSC03SSg==} + engines: {node: ^18.0.0 || >=20} peerDependencies: - '@sveltejs/vite-plugin-svelte': ^4.0.0-next.0||^4.0.0 - svelte: ^5.0.0-next.96 || ^5.0.0 + '@sveltejs/vite-plugin-svelte': ^3.0.0 + svelte: ^4.0.0 || ^5.0.0-next.0 vite: ^5.0.0 - '@sveltejs/vite-plugin-svelte@4.0.0': - resolution: {integrity: sha512-kpVJwF+gNiMEsoHaw+FJL76IYiwBikkxYU83+BpqQLdVMff19KeRKLd2wisS8niNBMJ2omv5gG+iGDDwd8jzag==} - engines: {node: ^18.0.0 || ^20.0.0 || >=22} + '@sveltejs/vite-plugin-svelte@3.1.2': + resolution: {integrity: sha512-Txsm1tJvtiYeLUVRNqxZGKR/mI+CzuIQuc2gn+YCs9rMTowpNZ2Nqt53JdL8KF9bLhAf2ruR/dr9eZCwdTriRA==} + engines: {node: ^18.0.0 || >=20} peerDependencies: - svelte: ^5.0.0-next.96 || ^5.0.0 + svelte: ^4.0.0 || ^5.0.0-next.0 vite: ^5.0.0 '@svitejs/changesets-changelog-github-compact@1.2.0': @@ -2292,14 +2292,20 @@ packages: svelte: optional: true + 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-lib-helpers@0.4.16: resolution: {integrity: sha512-W3VUxqlxMllJoIlIgGAxYAYuSHq57NFhWkzkFh+JAud1Xbtz53VcV+8stdzI5kCeh6LTTDACCZgK4uNaWSRVVg==} hasBin: true - svelte-meta-tags@4.0.4: - resolution: {integrity: sha512-i0vgxGreM3lXTTxLSuPQLE1n56KAFACHWIXRj7fJCTpd/5D16O97Ha/OXDZS4Lsk+D347VEK4LeMoacsftbeKw==} + svelte-meta-tags@3.1.4: + resolution: {integrity: sha512-TUIfhut0iVeTm7f5v/ZuU/tZ9XsNig9bNN8yK0t2x2WL9qw6AxAVRe9i5XddYJE0SuVwkoDCzjoSg5hXv7oWbQ==} peerDependencies: - svelte: ^5.0.0 + svelte: ^3.55.0 || ^4.0.0 svelte-preprocess@6.0.3: resolution: {integrity: sha512-PLG2k05qHdhmRG7zR/dyo5qKvakhm8IJ+hD2eFRQmMLHp7X3eJnjeupUtvuRpbNiF31RjVw45W+abDwHEmP5OA==} @@ -2551,10 +2557,10 @@ packages: terser: optional: true - vitefu@1.0.3: - resolution: {integrity: sha512-iKKfOMBHob2WxEJbqbJjHAkmYgvFDPhuqrO82om83S8RLk+17FtyMBfcyeH8GqD0ihShtkMW/zzJgiA51hCNCQ==} + vitefu@0.2.5: + resolution: {integrity: sha512-SgHtMLoqaeeGnd2evZ849ZbACbnwQCIwRH57t18FxcXoZop0uQu0uzlIhJBlF/eWVzuce0sHeqPcDo+evVcg8Q==} peerDependencies: - vite: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0-beta.0 + vite: ^3.0.0 || ^4.0.0 || ^5.0.0 peerDependenciesMeta: vite: optional: true @@ -3305,18 +3311,18 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.24.2': optional: true - '@sveltejs/adapter-vercel@5.4.6(@sveltejs/kit@2.7.3(@sveltejs/vite-plugin-svelte@4.0.0(svelte@4.2.19)(vite@5.4.10))(svelte@4.2.19)(vite@5.4.10))': + '@sveltejs/adapter-vercel@5.4.6(@sveltejs/kit@2.7.3(@sveltejs/vite-plugin-svelte@3.1.2(svelte@4.2.19)(vite@5.4.10))(svelte@4.2.19)(vite@5.4.10))': dependencies: - '@sveltejs/kit': 2.7.3(@sveltejs/vite-plugin-svelte@4.0.0(svelte@4.2.19)(vite@5.4.10))(svelte@4.2.19)(vite@5.4.10) + '@sveltejs/kit': 2.7.3(@sveltejs/vite-plugin-svelte@3.1.2(svelte@4.2.19)(vite@5.4.10))(svelte@4.2.19)(vite@5.4.10) '@vercel/nft': 0.27.5 esbuild: 0.21.5 transitivePeerDependencies: - encoding - supports-color - '@sveltejs/kit@2.7.3(@sveltejs/vite-plugin-svelte@4.0.0(svelte@4.2.19)(vite@5.4.10))(svelte@4.2.19)(vite@5.4.10)': + '@sveltejs/kit@2.7.3(@sveltejs/vite-plugin-svelte@3.1.2(svelte@4.2.19)(vite@5.4.10))(svelte@4.2.19)(vite@5.4.10)': dependencies: - '@sveltejs/vite-plugin-svelte': 4.0.0(svelte@4.2.19)(vite@5.4.10) + '@sveltejs/vite-plugin-svelte': 3.1.2(svelte@4.2.19)(vite@5.4.10) '@types/cookie': 0.6.0 cookie: 0.6.0 devalue: 5.1.1 @@ -3343,25 +3349,26 @@ snapshots: transitivePeerDependencies: - typescript - '@sveltejs/vite-plugin-svelte-inspector@3.0.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@4.2.19)(vite@5.4.10))(svelte@4.2.19)(vite@5.4.10)': + '@sveltejs/vite-plugin-svelte-inspector@2.1.0(@sveltejs/vite-plugin-svelte@3.1.2(svelte@4.2.19)(vite@5.4.10))(svelte@4.2.19)(vite@5.4.10)': dependencies: - '@sveltejs/vite-plugin-svelte': 4.0.0(svelte@4.2.19)(vite@5.4.10) + '@sveltejs/vite-plugin-svelte': 3.1.2(svelte@4.2.19)(vite@5.4.10) debug: 4.3.7 svelte: 4.2.19 vite: 5.4.10 transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte@4.0.0(svelte@4.2.19)(vite@5.4.10)': + '@sveltejs/vite-plugin-svelte@3.1.2(svelte@4.2.19)(vite@5.4.10)': dependencies: - '@sveltejs/vite-plugin-svelte-inspector': 3.0.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@4.2.19)(vite@5.4.10))(svelte@4.2.19)(vite@5.4.10) + '@sveltejs/vite-plugin-svelte-inspector': 2.1.0(@sveltejs/vite-plugin-svelte@3.1.2(svelte@4.2.19)(vite@5.4.10))(svelte@4.2.19)(vite@5.4.10) debug: 4.3.7 deepmerge: 4.3.1 kleur: 4.1.5 magic-string: 0.30.12 svelte: 4.2.19 + svelte-hmr: 0.16.0(svelte@4.2.19) vite: 5.4.10 - vitefu: 1.0.3(vite@5.4.10) + vitefu: 0.2.5(vite@5.4.10) transitivePeerDependencies: - supports-color @@ -4845,11 +4852,15 @@ snapshots: optionalDependencies: svelte: 4.2.19 + svelte-hmr@0.16.0(svelte@4.2.19): + dependencies: + svelte: 4.2.19 + svelte-lib-helpers@0.4.16: dependencies: yargs: 17.7.2 - svelte-meta-tags@4.0.4(svelte@4.2.19)(typescript@5.6.3): + svelte-meta-tags@3.1.4(svelte@4.2.19)(typescript@5.6.3): dependencies: schema-dts: 1.1.2(typescript@5.6.3) svelte: 4.2.19 @@ -5091,7 +5102,7 @@ snapshots: optionalDependencies: fsevents: 2.3.3 - vitefu@1.0.3(vite@5.4.10): + vitefu@0.2.5(vite@5.4.10): optionalDependencies: vite: 5.4.10 diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index ab042fe9e..ce75810a7 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -33,7 +33,7 @@ siteName: 'Flowbite Svelte' }} twitter={{ - handle: '@shinokada', + creator: '@shinokada', cardType: 'summary_large_image', title: `${title}`, description: `${description}`, diff --git a/src/routes/docs/components/modal.md b/src/routes/docs/components/modal.md index 92cc8a5e9..aa06e6c90 100644 --- a/src/routes/docs/components/modal.md +++ b/src/routes/docs/components/modal.md @@ -30,7 +30,7 @@ Get started with multiple sizes, colors, and styles built with the utility class Modal visibility (open/close) is controlled by the `open` property. You can bind it to a variable that other element (usually button) will toggle. You can also use the `open=true` attribute to show open the modal by default. Opening and closing the modal will trigger the `open` and `close` events. -
+ An option of automatic closing of the modal can be enabled by setting the `autoclose` property. Any `