@wordpress/dataviews 10.1.5 → 10.1.7
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/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
- Fix: DataViews modal actions in list layout. [#72793](https://github.com/WordPress/gutenberg/pull/72793)
|
|
12
12
|
- Fix: Table layout column spacing. [#72969](https://github.com/WordPress/gutenberg/pull/72969)
|
|
13
|
+
- Fix: ensure primary actions are not wrapped in the list layout. [#73333](https://github.com/WordPress/gutenberg/pull/73333)
|
|
13
14
|
|
|
14
15
|
## 10.2.0 (2025-10-29)
|
|
15
16
|
|
|
@@ -1153,6 +1153,7 @@ div.dataviews-view-list {
|
|
|
1153
1153
|
width: max-content;
|
|
1154
1154
|
flex: 0 0 auto;
|
|
1155
1155
|
gap: 4px;
|
|
1156
|
+
white-space: nowrap;
|
|
1156
1157
|
}
|
|
1157
1158
|
.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button,
|
|
1158
1159
|
.dataviews-view-list div[role=article] .dataviews-view-list__item-actions .components-button {
|
package/build-style/style.css
CHANGED
|
@@ -1153,6 +1153,7 @@ div.dataviews-view-list {
|
|
|
1153
1153
|
width: max-content;
|
|
1154
1154
|
flex: 0 0 auto;
|
|
1155
1155
|
gap: 4px;
|
|
1156
|
+
white-space: nowrap;
|
|
1156
1157
|
}
|
|
1157
1158
|
.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button,
|
|
1158
1159
|
.dataviews-view-list div[role=article] .dataviews-view-list__item-actions .components-button {
|
package/build-wp/index.js
CHANGED
|
@@ -5960,8 +5960,20 @@ var UnforwardedPopover = (props, forwardedRef) => {
|
|
|
5960
5960
|
let onDialogClose;
|
|
5961
5961
|
if (onClose || onFocusOutside) {
|
|
5962
5962
|
onDialogClose = (type, event) => {
|
|
5963
|
-
if (type === "focus-outside"
|
|
5964
|
-
|
|
5963
|
+
if (type === "focus-outside") {
|
|
5964
|
+
const blurTarget = event?.target;
|
|
5965
|
+
const referenceElement = refs.reference.current;
|
|
5966
|
+
const floatingElement = refs.floating.current;
|
|
5967
|
+
const isBlurFromThisPopover = referenceElement && "contains" in referenceElement && referenceElement.contains(blurTarget) || floatingElement?.contains(blurTarget);
|
|
5968
|
+
const ownerDocument = floatingElement?.ownerDocument;
|
|
5969
|
+
if (!isBlurFromThisPopover && !("relatedTarget" in event && event.relatedTarget) && ownerDocument?.activeElement === ownerDocument?.body) {
|
|
5970
|
+
return;
|
|
5971
|
+
}
|
|
5972
|
+
if (onFocusOutside) {
|
|
5973
|
+
onFocusOutside(event);
|
|
5974
|
+
} else if (onClose) {
|
|
5975
|
+
onClose();
|
|
5976
|
+
}
|
|
5965
5977
|
} else if (onClose) {
|
|
5966
5978
|
onClose();
|
|
5967
5979
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/dataviews",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.7",
|
|
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",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@ariakit/react": "^0.4.15",
|
|
47
47
|
"@wordpress/base-styles": "^6.9.1",
|
|
48
|
-
"@wordpress/components": "^30.6.
|
|
48
|
+
"@wordpress/components": "^30.6.5",
|
|
49
49
|
"@wordpress/compose": "^7.33.1",
|
|
50
50
|
"@wordpress/data": "^10.33.1",
|
|
51
51
|
"@wordpress/date": "^5.33.1",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"scripts": {
|
|
75
75
|
"build:wp": "node build"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "ece3841462592f9e9b99cfa7cac0fe98bdce8fd7"
|
|
78
78
|
}
|