@wordpress/dataviews 4.20.0 → 4.21.0
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 +2 -0
- package/build-wp/index.js +6 -11
- package/package.json +11 -11
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
package/build-wp/index.js
CHANGED
|
@@ -4264,15 +4264,6 @@ function InputField({
|
|
|
4264
4264
|
}
|
|
4265
4265
|
});
|
|
4266
4266
|
const dragProps = isDragEnabled ? dragGestureProps() : {};
|
|
4267
|
-
let handleOnMouseDown;
|
|
4268
|
-
if (type === "number") {
|
|
4269
|
-
handleOnMouseDown = (event) => {
|
|
4270
|
-
props.onMouseDown?.(event);
|
|
4271
|
-
if (event.currentTarget !== event.currentTarget.ownerDocument.activeElement) {
|
|
4272
|
-
event.currentTarget.focus();
|
|
4273
|
-
}
|
|
4274
|
-
};
|
|
4275
|
-
}
|
|
4276
4267
|
return /* @__PURE__ */ _jsx54(Input, {
|
|
4277
4268
|
...props,
|
|
4278
4269
|
...dragProps,
|
|
@@ -4284,7 +4275,6 @@ function InputField({
|
|
|
4284
4275
|
onBlur: handleOnBlur,
|
|
4285
4276
|
onChange: handleOnChange,
|
|
4286
4277
|
onKeyDown: withIgnoreIMEEvents(handleOnKeyDown),
|
|
4287
|
-
onMouseDown: handleOnMouseDown,
|
|
4288
4278
|
ref,
|
|
4289
4279
|
inputSize: size3,
|
|
4290
4280
|
value: value !== null && value !== void 0 ? value : "",
|
|
@@ -5257,6 +5247,9 @@ var number_control_default = NumberControl;
|
|
|
5257
5247
|
import removeAccents from "remove-accents";
|
|
5258
5248
|
import { paramCase } from "change-case";
|
|
5259
5249
|
var ALL_UNICODE_DASH_CHARACTERS = new RegExp(/[\u007e\u00ad\u2053\u207b\u208b\u2212\p{Pd}]/gu);
|
|
5250
|
+
var normalizeTextString = (value) => {
|
|
5251
|
+
return removeAccents(value).normalize("NFKC").toLocaleLowerCase().replace(ALL_UNICODE_DASH_CHARACTERS, "-");
|
|
5252
|
+
};
|
|
5260
5253
|
function kebabCase2(str) {
|
|
5261
5254
|
var _str$toString;
|
|
5262
5255
|
let input = (_str$toString = str?.toString?.()) !== null && _str$toString !== void 0 ? _str$toString : "";
|
|
@@ -10538,7 +10531,9 @@ lock3(privateApis, {
|
|
|
10538
10531
|
Theme: theme_default,
|
|
10539
10532
|
Menu: Menu2,
|
|
10540
10533
|
kebabCase: kebabCase2,
|
|
10541
|
-
|
|
10534
|
+
withIgnoreIMEEvents,
|
|
10535
|
+
Badge: badge_default,
|
|
10536
|
+
normalizeTextString
|
|
10542
10537
|
});
|
|
10543
10538
|
|
|
10544
10539
|
// src/constants.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/dataviews",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.21.0",
|
|
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,15 +46,15 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@ariakit/react": "^0.4.15",
|
|
48
48
|
"@babel/runtime": "7.25.7",
|
|
49
|
-
"@wordpress/components": "^29.
|
|
50
|
-
"@wordpress/compose": "^7.
|
|
51
|
-
"@wordpress/data": "^10.
|
|
52
|
-
"@wordpress/element": "^6.
|
|
53
|
-
"@wordpress/i18n": "^5.
|
|
54
|
-
"@wordpress/icons": "^10.
|
|
55
|
-
"@wordpress/primitives": "^4.
|
|
56
|
-
"@wordpress/private-apis": "^1.
|
|
57
|
-
"@wordpress/warning": "^3.
|
|
49
|
+
"@wordpress/components": "^29.11.0",
|
|
50
|
+
"@wordpress/compose": "^7.25.0",
|
|
51
|
+
"@wordpress/data": "^10.25.0",
|
|
52
|
+
"@wordpress/element": "^6.25.0",
|
|
53
|
+
"@wordpress/i18n": "^5.25.0",
|
|
54
|
+
"@wordpress/icons": "^10.25.0",
|
|
55
|
+
"@wordpress/primitives": "^4.25.0",
|
|
56
|
+
"@wordpress/private-apis": "^1.25.0",
|
|
57
|
+
"@wordpress/warning": "^3.25.0",
|
|
58
58
|
"clsx": "^2.1.1",
|
|
59
59
|
"remove-accents": "^0.5.0"
|
|
60
60
|
},
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build:wp": "node build"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "d1acd76ffff33ab01f0a948d2f51e5e45c95158d"
|
|
71
71
|
}
|