@wordpress/dataviews 10.1.6 → 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/build-wp/index.js +14 -2
- package/package.json +3 -3
- package/tsconfig.tsbuildinfo +1 -1
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
|
}
|