@swr-data-lab/components 2.3.2 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ChartList/ChartList.svelte +5 -5
- package/package.json +12 -12
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
<script lang="ts">import { dev } from '$app/environment';
|
|
2
|
-
import { resolve } from '$app/paths';
|
|
3
2
|
let { project, charts, baseUrl } = $props();
|
|
4
3
|
</script>
|
|
5
4
|
|
|
@@ -16,14 +15,15 @@ let { project, charts, baseUrl } = $props();
|
|
|
16
15
|
</thead>
|
|
17
16
|
<tbody>
|
|
18
17
|
{#each charts as chart}
|
|
19
|
-
{@const route = `/${chart.slug}
|
|
20
|
-
{@const fullUrl = baseUrl ? `${baseUrl}/${chart.slug}.html` : resolve(route)}
|
|
18
|
+
{@const route = `/${chart.slug}`}
|
|
21
19
|
<tr>
|
|
22
20
|
<td>
|
|
23
|
-
<a href={dev ?
|
|
21
|
+
<a rel="external" href={dev ? route : `./${chart.slug}.html`}>
|
|
22
|
+
{chart.title}
|
|
23
|
+
</a>
|
|
24
24
|
</td>
|
|
25
25
|
<td>
|
|
26
|
-
<input type="text" value={
|
|
26
|
+
<input type="text" value={`${baseUrl ?? ''}${route}.html`} />
|
|
27
27
|
</td>
|
|
28
28
|
</tr>
|
|
29
29
|
{/each}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swr-data-lab/components",
|
|
3
3
|
"description": "SWR Data Lab component library",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.4.0",
|
|
5
5
|
"author": "SWR Data Lab",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -39,16 +39,16 @@
|
|
|
39
39
|
"@semantic-release/changelog": "^6.0.3",
|
|
40
40
|
"@semantic-release/git": "^10.0.1",
|
|
41
41
|
"@semantic-release/npm": "^12.0.2",
|
|
42
|
-
"@storybook/addon-docs": "^9.0
|
|
43
|
-
"@storybook/addon-links": "^9.0
|
|
44
|
-
"@storybook/addon-svelte-csf": "^5.0.
|
|
45
|
-
"@storybook/addon-vitest": "^9.0
|
|
46
|
-
"@storybook/sveltekit": "^9.0
|
|
42
|
+
"@storybook/addon-docs": "^9.1.0",
|
|
43
|
+
"@storybook/addon-links": "^9.1.0",
|
|
44
|
+
"@storybook/addon-svelte-csf": "^5.0.7",
|
|
45
|
+
"@storybook/addon-vitest": "^9.1.0",
|
|
46
|
+
"@storybook/sveltekit": "^9.1.0",
|
|
47
47
|
"@storybook/test-runner": "^0.23.0",
|
|
48
48
|
"@sveltejs/adapter-auto": "^6.0.1",
|
|
49
|
-
"@sveltejs/kit": "^2.
|
|
50
|
-
"@sveltejs/package": "^2.
|
|
51
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
49
|
+
"@sveltejs/kit": "^2.27.0",
|
|
50
|
+
"@sveltejs/package": "^2.4.0",
|
|
51
|
+
"@sveltejs/vite-plugin-svelte": "^6.1.0",
|
|
52
52
|
"@types/geojson": "^7946.0.16",
|
|
53
53
|
"@versatiles/style": "^5.6.0",
|
|
54
54
|
"@vitest/browser": "^3.2.4",
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
"concurrently": "^9.2.0",
|
|
57
57
|
"http-server": "^14.1.1",
|
|
58
58
|
"mdx-mermaid": "^2.0.3",
|
|
59
|
-
"playwright": "^1.
|
|
59
|
+
"playwright": "^1.54.2",
|
|
60
60
|
"publint": "^0.3.12",
|
|
61
61
|
"sass": "^1.89.1",
|
|
62
62
|
"sass-embedded": "^1.89.2",
|
|
63
|
-
"semantic-release": "^24.2.
|
|
64
|
-
"storybook": "^9.0
|
|
63
|
+
"semantic-release": "^24.2.7",
|
|
64
|
+
"storybook": "^9.1.0",
|
|
65
65
|
"svelte": "^5.23.0",
|
|
66
66
|
"svelte-check": "^4.0.0",
|
|
67
67
|
"svelte-preprocess": "^6.0.3",
|