@skeletonlabs/skeleton-svelte 4.2.4 → 4.3.1

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.
@@ -0,0 +1,20 @@
1
+ <script lang="ts" module>
2
+ import type { NodeProps } from '@zag-js/tree-view';
3
+ import type { Snippet } from 'svelte';
4
+
5
+ export interface TreeViewNodeContextProps {
6
+ children: Snippet<[() => NodeProps]>;
7
+ }
8
+ </script>
9
+
10
+ <script lang="ts">
11
+ import { NodeContext } from '../modules/node-context.js';
12
+
13
+ const props: TreeViewNodeContextProps = $props();
14
+
15
+ const nodeProps = NodeContext.consume();
16
+
17
+ const { children } = $derived(props);
18
+ </script>
19
+
20
+ {@render children(nodeProps)}
@@ -0,0 +1,10 @@
1
+ import type { NodeProps } from '@zag-js/tree-view';
2
+ import type { Snippet } from 'svelte';
3
+ export interface TreeViewNodeContextProps {
4
+ children: Snippet<[() => NodeProps]>;
5
+ }
6
+ import { NodeContext } from '../modules/node-context.js';
7
+ declare const NodeContext: import("svelte").Component<TreeViewNodeContextProps, {}, "">;
8
+ type NodeContext = ReturnType<typeof NodeContext>;
9
+ export default NodeContext;
10
+ //# sourceMappingURL=node-context.svelte.d.ts.map
@@ -12,6 +12,7 @@ export type { TreeViewBranchTextProps } from './anatomy/branch-text.svelte';
12
12
  export type { TreeViewBranchIndicatorProps } from './anatomy/branch-indicator.svelte';
13
13
  export type { TreeViewBranchContentProps } from './anatomy/branch-content.svelte';
14
14
  export type { TreeViewBranchIndentGuideProps } from './anatomy/branch-indent-guide.svelte';
15
+ export type { TreeViewNodeContextProps } from './anatomy/node-context.svelte';
15
16
  export type { TreeViewNodeProviderProps } from './anatomy/node-provider.svelte';
16
17
  export type { TreeViewLabelProps } from './anatomy/label.svelte';
17
18
  //# sourceMappingURL=index.d.ts.map
@@ -6,6 +6,7 @@ import BranchText from '../anatomy/branch-text.svelte';
6
6
  import Branch from '../anatomy/branch.svelte';
7
7
  import Item from '../anatomy/item.svelte';
8
8
  import Label from '../anatomy/label.svelte';
9
+ import NodeContext from '../anatomy/node-context.svelte';
9
10
  import NodeProvider from '../anatomy/node-provider.svelte';
10
11
  import RootContext from '../anatomy/root-context.svelte';
11
12
  import RootProvider from '../anatomy/root-provider.svelte';
@@ -17,6 +18,7 @@ export const TreeView = Object.assign(Root, {
17
18
  Tree: Tree,
18
19
  Label: Label,
19
20
  NodeProvider: NodeProvider,
21
+ NodeContext: NodeContext,
20
22
  Branch: Branch,
21
23
  BranchControl: BranchControl,
22
24
  BranchText: BranchText,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton-svelte",
3
- "version": "4.2.4",
3
+ "version": "4.3.1",
4
4
  "description": "The Svelte package for Skeleton.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "repository": {
@@ -23,30 +23,30 @@
23
23
  "sideEffects": false,
24
24
  "dependencies": {
25
25
  "@internationalized/date": "3.10.0",
26
- "@zag-js/accordion": "1.27.0",
27
- "@zag-js/avatar": "1.27.0",
28
- "@zag-js/collapsible": "1.27.0",
29
- "@zag-js/collection": "1.27.0",
30
- "@zag-js/combobox": "1.27.0",
31
- "@zag-js/date-picker": "1.27.0",
32
- "@zag-js/dialog": "1.27.0",
33
- "@zag-js/file-upload": "1.27.0",
34
- "@zag-js/listbox": "1.27.0",
35
- "@zag-js/pagination": "1.27.0",
36
- "@zag-js/popover": "1.27.0",
37
- "@zag-js/progress": "1.27.0",
38
- "@zag-js/radio-group": "1.27.0",
39
- "@zag-js/rating-group": "1.27.0",
40
- "@zag-js/slider": "1.27.0",
41
- "@zag-js/svelte": "1.27.0",
42
- "@zag-js/switch": "1.27.0",
43
- "@zag-js/tabs": "1.27.0",
44
- "@zag-js/tags-input": "1.27.0",
45
- "@zag-js/toast": "1.27.0",
46
- "@zag-js/toggle-group": "1.27.0",
47
- "@zag-js/tooltip": "1.27.0",
48
- "@zag-js/tree-view": "1.27.0",
49
- "@skeletonlabs/skeleton-common": "4.2.4"
26
+ "@zag-js/accordion": "1.27.1",
27
+ "@zag-js/avatar": "1.27.1",
28
+ "@zag-js/collapsible": "1.27.1",
29
+ "@zag-js/collection": "1.27.1",
30
+ "@zag-js/combobox": "1.27.1",
31
+ "@zag-js/date-picker": "1.27.1",
32
+ "@zag-js/dialog": "1.27.1",
33
+ "@zag-js/file-upload": "1.27.1",
34
+ "@zag-js/listbox": "1.27.1",
35
+ "@zag-js/pagination": "1.27.1",
36
+ "@zag-js/popover": "1.27.1",
37
+ "@zag-js/progress": "1.27.1",
38
+ "@zag-js/radio-group": "1.27.1",
39
+ "@zag-js/rating-group": "1.27.1",
40
+ "@zag-js/slider": "1.27.1",
41
+ "@zag-js/svelte": "1.27.1",
42
+ "@zag-js/switch": "1.27.1",
43
+ "@zag-js/tabs": "1.27.1",
44
+ "@zag-js/tags-input": "1.27.1",
45
+ "@zag-js/toast": "1.27.1",
46
+ "@zag-js/toggle-group": "1.27.1",
47
+ "@zag-js/tooltip": "1.27.1",
48
+ "@zag-js/tree-view": "1.27.1",
49
+ "@skeletonlabs/skeleton-common": "4.3.1"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "svelte": "^5.29.0"
@@ -58,12 +58,12 @@
58
58
  "@testing-library/jest-dom": "6.9.1",
59
59
  "@testing-library/svelte": "5.2.8",
60
60
  "jsdom": "27.1.0",
61
- "svelte": "5.43.2",
61
+ "svelte": "5.43.5",
62
62
  "svelte-check": "4.3.3",
63
63
  "typescript": "5.9.3",
64
- "vite": "7.1.12",
64
+ "vite": "7.2.2",
65
65
  "vitest": "3.2.4",
66
- "@skeletonlabs/skeleton": "4.2.4"
66
+ "@skeletonlabs/skeleton": "4.3.1"
67
67
  },
68
68
  "license": "MIT",
69
69
  "type": "module",