@react-stately/list 3.10.5-nightly.4624 → 3.10.5

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.
@@ -56,7 +56,7 @@ $parcel$export(module.exports, "ListCollection", () => $c9aa5a224613c979$export$
56
56
  this.iterable = nodes;
57
57
  let visit = (node)=>{
58
58
  this.keyMap.set(node.key, node);
59
- if (node.childNodes && node.type === "section") for (let child of node.childNodes)visit(child);
59
+ if (node.childNodes && node.type === 'section') for (let child of node.childNodes)visit(child);
60
60
  };
61
61
  for (let node of nodes)visit(node);
62
62
  let last;
@@ -69,7 +69,7 @@ $parcel$export(module.exports, "ListCollection", () => $c9aa5a224613c979$export$
69
69
  this.firstKey = key;
70
70
  node.prevKey = undefined;
71
71
  }
72
- if (node.type === "item") node.index = index++;
72
+ if (node.type === 'item') node.index = index++;
73
73
  last = node;
74
74
  // Set nextKey as undefined since this might be the last node
75
75
  // If it isn't the last node, last.nextKey will properly set at start of new loop
@@ -50,7 +50,7 @@
50
50
  this.iterable = nodes;
51
51
  let visit = (node)=>{
52
52
  this.keyMap.set(node.key, node);
53
- if (node.childNodes && node.type === "section") for (let child of node.childNodes)visit(child);
53
+ if (node.childNodes && node.type === 'section') for (let child of node.childNodes)visit(child);
54
54
  };
55
55
  for (let node of nodes)visit(node);
56
56
  let last;
@@ -63,7 +63,7 @@
63
63
  this.firstKey = key;
64
64
  node.prevKey = undefined;
65
65
  }
66
- if (node.type === "item") node.index = index++;
66
+ if (node.type === 'item') node.index = index++;
67
67
  last = node;
68
68
  // Set nextKey as undefined since this might be the last node
69
69
  // If it isn't the last node, last.nextKey will properly set at start of new loop
@@ -50,7 +50,7 @@
50
50
  this.iterable = nodes;
51
51
  let visit = (node)=>{
52
52
  this.keyMap.set(node.key, node);
53
- if (node.childNodes && node.type === "section") for (let child of node.childNodes)visit(child);
53
+ if (node.childNodes && node.type === 'section') for (let child of node.childNodes)visit(child);
54
54
  };
55
55
  for (let node of nodes)visit(node);
56
56
  let last;
@@ -63,7 +63,7 @@
63
63
  this.firstKey = key;
64
64
  node.prevKey = undefined;
65
65
  }
66
- if (node.type === "item") node.index = index++;
66
+ if (node.type === 'item') node.index = index++;
67
67
  last = node;
68
68
  // Set nextKey as undefined since this might be the last node
69
69
  // If it isn't the last node, last.nextKey will properly set at start of new loop
@@ -51,13 +51,13 @@ function $5450691d3629f6ea$export$2f645645f7bca764(props) {
51
51
  ...cachedCollection.current.getKeys()
52
52
  ].map((key)=>{
53
53
  const itemNode = cachedCollection.current.getItem(key);
54
- return itemNode.type === "item" ? itemNode : null;
54
+ return itemNode.type === 'item' ? itemNode : null;
55
55
  }).filter((node)=>node !== null);
56
56
  const itemNodes = [
57
57
  ...collection.getKeys()
58
58
  ].map((key)=>{
59
59
  const itemNode = collection.getItem(key);
60
- return itemNode.type === "item" ? itemNode : null;
60
+ return itemNode.type === 'item' ? itemNode : null;
61
61
  }).filter((node)=>node !== null);
62
62
  const diff = cachedItemNodes.length - itemNodes.length;
63
63
  let index = Math.min(diff > 1 ? Math.max(startItem.index - diff + 1, 0) : startItem.index, itemNodes.length - 1);
@@ -45,13 +45,13 @@ function $e72dd72e1c76a225$export$2f645645f7bca764(props) {
45
45
  ...cachedCollection.current.getKeys()
46
46
  ].map((key)=>{
47
47
  const itemNode = cachedCollection.current.getItem(key);
48
- return itemNode.type === "item" ? itemNode : null;
48
+ return itemNode.type === 'item' ? itemNode : null;
49
49
  }).filter((node)=>node !== null);
50
50
  const itemNodes = [
51
51
  ...collection.getKeys()
52
52
  ].map((key)=>{
53
53
  const itemNode = collection.getItem(key);
54
- return itemNode.type === "item" ? itemNode : null;
54
+ return itemNode.type === 'item' ? itemNode : null;
55
55
  }).filter((node)=>node !== null);
56
56
  const diff = cachedItemNodes.length - itemNodes.length;
57
57
  let index = Math.min(diff > 1 ? Math.max(startItem.index - diff + 1, 0) : startItem.index, itemNodes.length - 1);
@@ -45,13 +45,13 @@ function $e72dd72e1c76a225$export$2f645645f7bca764(props) {
45
45
  ...cachedCollection.current.getKeys()
46
46
  ].map((key)=>{
47
47
  const itemNode = cachedCollection.current.getItem(key);
48
- return itemNode.type === "item" ? itemNode : null;
48
+ return itemNode.type === 'item' ? itemNode : null;
49
49
  }).filter((node)=>node !== null);
50
50
  const itemNodes = [
51
51
  ...collection.getKeys()
52
52
  ].map((key)=>{
53
53
  const itemNode = collection.getItem(key);
54
- return itemNode.type === "item" ? itemNode : null;
54
+ return itemNode.type === 'item' ? itemNode : null;
55
55
  }).filter((node)=>node !== null);
56
56
  const diff = cachedItemNodes.length - itemNodes.length;
57
57
  let index = Math.min(diff > 1 ? Math.max(startItem.index - diff + 1, 0) : startItem.index, itemNodes.length - 1);
@@ -31,7 +31,7 @@ function $b9e99587a092d199$export$e7f05e985daf4b5f(props) {
31
31
  ]);
32
32
  let { collection: collection, disabledKeys: disabledKeys, selectionManager: selectionManager } = (0, $5450691d3629f6ea$exports.useListState)({
33
33
  ...props,
34
- selectionMode: "single",
34
+ selectionMode: 'single',
35
35
  disallowEmptySelection: true,
36
36
  allowDuplicateSelectionEvents: true,
37
37
  selectedKeys: selectedKeys,
@@ -25,7 +25,7 @@ function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
25
25
  ]);
26
26
  let { collection: collection, disabledKeys: disabledKeys, selectionManager: selectionManager } = (0, $e72dd72e1c76a225$export$2f645645f7bca764)({
27
27
  ...props,
28
- selectionMode: "single",
28
+ selectionMode: 'single',
29
29
  disallowEmptySelection: true,
30
30
  allowDuplicateSelectionEvents: true,
31
31
  selectedKeys: selectedKeys,
@@ -25,7 +25,7 @@ function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
25
25
  ]);
26
26
  let { collection: collection, disabledKeys: disabledKeys, selectionManager: selectionManager } = (0, $e72dd72e1c76a225$export$2f645645f7bca764)({
27
27
  ...props,
28
- selectionMode: "single",
28
+ selectionMode: 'single',
29
29
  disallowEmptySelection: true,
30
30
  allowDuplicateSelectionEvents: true,
31
31
  selectedKeys: selectedKeys,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-stately/list",
3
- "version": "3.10.5-nightly.4624+d80999e89",
3
+ "version": "3.10.5",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -22,10 +22,10 @@
22
22
  "url": "https://github.com/adobe/react-spectrum"
23
23
  },
24
24
  "dependencies": {
25
- "@react-stately/collections": "3.0.0-nightly.2912+d80999e89",
26
- "@react-stately/selection": "3.0.0-nightly.2912+d80999e89",
27
- "@react-stately/utils": "3.0.0-nightly.2912+d80999e89",
28
- "@react-types/shared": "3.0.0-nightly.2912+d80999e89",
25
+ "@react-stately/collections": "^3.10.7",
26
+ "@react-stately/selection": "^3.15.1",
27
+ "@react-stately/utils": "^3.10.1",
28
+ "@react-types/shared": "^3.23.1",
29
29
  "@swc/helpers": "^0.5.0"
30
30
  },
31
31
  "peerDependencies": {
@@ -34,5 +34,5 @@
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "d80999e897b4d4db9fcfb4e9b8fcdc9fdd700882"
37
+ "gitHead": "b77d7d594dff4dcfb5359bffbcfd18142b146433"
38
38
  }