svelte-common 6.15.30 → 6.15.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-common",
3
- "version": "6.15.30",
3
+ "version": "6.15.31",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -66,14 +66,14 @@
66
66
  "semantic-release": "^24.2.0",
67
67
  "stylelint": "^16.10.0",
68
68
  "stylelint-config-standard": "^36.0.1",
69
- "svelte": "^5.2.2",
69
+ "svelte": "^5.2.3",
70
70
  "testcafe": "^3.7.0",
71
71
  "typescript": "^5.7.1-rc",
72
72
  "vite": "^5.4.11",
73
73
  "vite-plugin-compression2": "^1.3.1"
74
74
  },
75
75
  "peerDependencies": {
76
- "svelte": "^5.2.2"
76
+ "svelte": "^5.2.3"
77
77
  },
78
78
  "optionalDependencies": {
79
79
  "mf-hosting-cloudflare": "^1.0.7",
@@ -1,18 +1,19 @@
1
+ <!-- @migration-task Error while migrating Svelte code: This migration would change the name of a slot making the component unusable -->
1
2
  <script>
2
3
  import { getContext } from "svelte";
3
4
 
4
- export let id;
5
+ let { id, header, children } = $props();
5
6
 
6
- let header, content;
7
+ let content = $state();
7
8
  const tabs = getContext("TABS");
8
9
  tabs.tab[id] = { header, content };
9
10
  </script>
10
11
 
11
12
  <div bind:this={header}>
12
- <slot name="header" />
13
+ {@render header?.()}
13
14
  </div>
14
15
  {#if tabs.current === id}
15
16
  <div bind:this={content}>
16
- <slot />
17
+ {@render children?.()}
17
18
  </div>
18
19
  {/if}