@react-stately/tree 3.8.0 → 3.8.2

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.
@@ -53,7 +53,7 @@ $parcel$export(module.exports, "TreeCollection", () => $fae56b53b03726ff$export$
53
53
  expandedKeys = expandedKeys || new Set();
54
54
  let visit = (node)=>{
55
55
  this.keyMap.set(node.key, node);
56
- if (node.childNodes && (node.type === "section" || expandedKeys.has(node.key))) for (let child of node.childNodes)visit(child);
56
+ if (node.childNodes && (node.type === 'section' || expandedKeys.has(node.key))) for (let child of node.childNodes)visit(child);
57
57
  };
58
58
  for (let node of nodes)visit(node);
59
59
  let last;
@@ -66,7 +66,7 @@ $parcel$export(module.exports, "TreeCollection", () => $fae56b53b03726ff$export$
66
66
  this.firstKey = key;
67
67
  node.prevKey = undefined;
68
68
  }
69
- if (node.type === "item") node.index = index++;
69
+ if (node.type === 'item') node.index = index++;
70
70
  last = node;
71
71
  // Set nextKey as undefined since this might be the last node
72
72
  // If it isn't the last node, last.nextKey will properly set at start of new loop
@@ -47,7 +47,7 @@
47
47
  expandedKeys = expandedKeys || new Set();
48
48
  let visit = (node)=>{
49
49
  this.keyMap.set(node.key, node);
50
- if (node.childNodes && (node.type === "section" || expandedKeys.has(node.key))) for (let child of node.childNodes)visit(child);
50
+ if (node.childNodes && (node.type === 'section' || expandedKeys.has(node.key))) for (let child of node.childNodes)visit(child);
51
51
  };
52
52
  for (let node of nodes)visit(node);
53
53
  let last;
@@ -60,7 +60,7 @@
60
60
  this.firstKey = key;
61
61
  node.prevKey = undefined;
62
62
  }
63
- if (node.type === "item") node.index = index++;
63
+ if (node.type === 'item') node.index = index++;
64
64
  last = node;
65
65
  // Set nextKey as undefined since this might be the last node
66
66
  // If it isn't the last node, last.nextKey will properly set at start of new loop
@@ -72,4 +72,4 @@
72
72
 
73
73
 
74
74
  export {$05ca4cd7c4a5a999$export$863faf230ee2118a as TreeCollection};
75
- //# sourceMappingURL=TreeCollection.mjs.map
75
+ //# sourceMappingURL=TreeCollection.module.js.map
@@ -47,7 +47,7 @@
47
47
  expandedKeys = expandedKeys || new Set();
48
48
  let visit = (node)=>{
49
49
  this.keyMap.set(node.key, node);
50
- if (node.childNodes && (node.type === "section" || expandedKeys.has(node.key))) for (let child of node.childNodes)visit(child);
50
+ if (node.childNodes && (node.type === 'section' || expandedKeys.has(node.key))) for (let child of node.childNodes)visit(child);
51
51
  };
52
52
  for (let node of nodes)visit(node);
53
53
  let last;
@@ -60,7 +60,7 @@
60
60
  this.firstKey = key;
61
61
  node.prevKey = undefined;
62
62
  }
63
- if (node.type === "item") node.index = index++;
63
+ if (node.type === 'item') node.index = index++;
64
64
  last = node;
65
65
  // Set nextKey as undefined since this might be the last node
66
66
  // If it isn't the last node, last.nextKey will properly set at start of new loop
@@ -60,4 +60,4 @@ function $875d6693e12af071$var$toggleKey(set, key) {
60
60
 
61
61
 
62
62
  export {$875d6693e12af071$export$728d6ba534403756 as useTreeState};
63
- //# sourceMappingURL=useTreeState.mjs.map
63
+ //# sourceMappingURL=useTreeState.module.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-stately/tree",
3
- "version": "3.8.0",
3
+ "version": "3.8.2",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -22,17 +22,17 @@
22
22
  "url": "https://github.com/adobe/react-spectrum"
23
23
  },
24
24
  "dependencies": {
25
- "@react-stately/collections": "^3.10.6",
26
- "@react-stately/selection": "^3.15.0",
27
- "@react-stately/utils": "^3.10.0",
28
- "@react-types/shared": "^3.23.0",
25
+ "@react-stately/collections": "^3.10.8",
26
+ "@react-stately/selection": "^3.16.0",
27
+ "@react-stately/utils": "^3.10.2",
28
+ "@react-types/shared": "^3.24.0",
29
29
  "@swc/helpers": "^0.5.0"
30
30
  },
31
31
  "peerDependencies": {
32
- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
32
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "f645f29edc1322153fd60af4640cbcab1d992dbd"
37
+ "gitHead": "86d80e3216bc32e75108831cf3a5a720bc849206"
38
38
  }