@wordpress/dataviews 4.15.1 → 4.15.3

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/build-wp/index.js CHANGED
@@ -6389,7 +6389,7 @@ function UnconnectedToggleGroupControl(props, forwardedRef) {
6389
6389
  const [selectedElement, setSelectedElement] = useState();
6390
6390
  const [controlElement, setControlElement] = useState();
6391
6391
  const refs = useMergeRefs([setControlElement, forwardedRef]);
6392
- const selectedRect = useTrackElementOffsetRect(value || value === 0 ? selectedElement : void 0);
6392
+ const selectedRect = useTrackElementOffsetRect(value !== null && value !== void 0 ? selectedElement : void 0);
6393
6393
  useAnimatedOffsetRect(controlElement, selectedRect, {
6394
6394
  prefix: "selected",
6395
6395
  dataAttribute: "indicator-animated",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/dataviews",
3
- "version": "4.15.1",
3
+ "version": "4.15.3",
4
4
  "description": "DataViews is a component that provides an API to render datasets using different types of layouts (table, grid, list, etc.).",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -46,7 +46,7 @@
46
46
  "dependencies": {
47
47
  "@ariakit/react": "^0.4.15",
48
48
  "@babel/runtime": "7.25.7",
49
- "@wordpress/components": "^29.5.1",
49
+ "@wordpress/components": "^29.5.3",
50
50
  "@wordpress/compose": "^7.19.1",
51
51
  "@wordpress/data": "^10.19.1",
52
52
  "@wordpress/element": "^6.19.1",
@@ -67,5 +67,5 @@
67
67
  "scripts": {
68
68
  "build:wp": "node build"
69
69
  },
70
- "gitHead": "6f49fee89f840761f7fedf662713cbd4a71723e9"
70
+ "gitHead": "5bd48f228266e2f6557b29eae70b32e17f8c5f01"
71
71
  }