@wordpress/compose 7.24.0 → 7.25.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
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/compose",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.25.0",
|
|
4
4
|
"description": "WordPress higher-order components (HOCs).",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "7.25.7",
|
|
35
35
|
"@types/mousetrap": "^1.6.8",
|
|
36
|
-
"@wordpress/deprecated": "^4.
|
|
37
|
-
"@wordpress/dom": "^4.
|
|
38
|
-
"@wordpress/element": "^6.
|
|
39
|
-
"@wordpress/is-shallow-equal": "^5.
|
|
40
|
-
"@wordpress/keycodes": "^4.
|
|
41
|
-
"@wordpress/priority-queue": "^3.
|
|
42
|
-
"@wordpress/undo-manager": "^1.
|
|
36
|
+
"@wordpress/deprecated": "^4.25.0",
|
|
37
|
+
"@wordpress/dom": "^4.25.0",
|
|
38
|
+
"@wordpress/element": "^6.25.0",
|
|
39
|
+
"@wordpress/is-shallow-equal": "^5.25.0",
|
|
40
|
+
"@wordpress/keycodes": "^4.25.0",
|
|
41
|
+
"@wordpress/priority-queue": "^3.25.0",
|
|
42
|
+
"@wordpress/undo-manager": "^1.25.0",
|
|
43
43
|
"change-case": "^4.1.2",
|
|
44
44
|
"clipboard": "^2.0.11",
|
|
45
45
|
"mousetrap": "^1.6.5",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "d1acd76ffff33ab01f0a948d2f51e5e45c95158d"
|
|
55
55
|
}
|
|
@@ -16,10 +16,10 @@ const WithWrapperDropZoneElement = () => {
|
|
|
16
16
|
const dropZoneRef = useDropZone(
|
|
17
17
|
{
|
|
18
18
|
dropZoneElement,
|
|
19
|
-
onDrop()
|
|
19
|
+
onDrop() {
|
|
20
20
|
console.log( 'Dropped within the drop zone.' );
|
|
21
21
|
},
|
|
22
|
-
onDragEnter()
|
|
22
|
+
onDragEnter() {
|
|
23
23
|
console.log( 'Dragging within the drop zone' );
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -37,10 +37,10 @@ const WithWrapperDropZoneElement = () => {
|
|
|
37
37
|
const WithoutWrapperDropZoneElement = () => {
|
|
38
38
|
const dropZoneRef = useDropZone(
|
|
39
39
|
{
|
|
40
|
-
onDrop()
|
|
40
|
+
onDrop() {
|
|
41
41
|
console.log( 'Dropped within the drop zone.' );
|
|
42
42
|
},
|
|
43
|
-
onDragEnter()
|
|
43
|
+
onDragEnter() {
|
|
44
44
|
console.log( 'Dragging within the drop zone' );
|
|
45
45
|
}
|
|
46
46
|
}
|