@wordpress/reusable-blocks 5.32.0 → 5.32.1-next.47f435fc9.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.
Files changed (53) hide show
  1. package/build/components/index.js +36 -12
  2. package/build/components/index.js.map +7 -1
  3. package/build/components/reusable-blocks-menu-items/index.js +51 -34
  4. package/build/components/reusable-blocks-menu-items/index.js.map +7 -1
  5. package/build/components/reusable-blocks-menu-items/reusable-block-convert-button.js +189 -150
  6. package/build/components/reusable-blocks-menu-items/reusable-block-convert-button.js.map +7 -1
  7. package/build/components/reusable-blocks-menu-items/reusable-blocks-manage-button.js +65 -72
  8. package/build/components/reusable-blocks-menu-items/reusable-blocks-manage-button.js.map +7 -1
  9. package/build/index.js +27 -24
  10. package/build/index.js.map +7 -1
  11. package/build/lock-unlock.js +30 -14
  12. package/build/lock-unlock.js.map +7 -1
  13. package/build/store/actions.js +74 -81
  14. package/build/store/actions.js.map +7 -1
  15. package/build/store/index.js +44 -33
  16. package/build/store/index.js.map +7 -1
  17. package/build/store/reducer.js +30 -14
  18. package/build/store/reducer.js.map +7 -1
  19. package/build/store/selectors.js +26 -13
  20. package/build/store/selectors.js.map +7 -1
  21. package/build-module/components/index.js +5 -2
  22. package/build-module/components/index.js.map +7 -1
  23. package/build-module/components/reusable-blocks-menu-items/index.js +23 -27
  24. package/build-module/components/reusable-blocks-menu-items/index.js.map +7 -1
  25. package/build-module/components/reusable-blocks-menu-items/reusable-block-convert-button.js +178 -145
  26. package/build-module/components/reusable-blocks-menu-items/reusable-block-convert-button.js.map +7 -1
  27. package/build-module/components/reusable-blocks-menu-items/reusable-blocks-manage-button.js +47 -66
  28. package/build-module/components/reusable-blocks-menu-items/reusable-blocks-manage-button.js.map +7 -1
  29. package/build-module/index.js +6 -3
  30. package/build-module/index.js.map +7 -1
  31. package/build-module/lock-unlock.js +8 -7
  32. package/build-module/lock-unlock.js.map +7 -1
  33. package/build-module/store/actions.js +50 -68
  34. package/build-module/store/actions.js.map +7 -1
  35. package/build-module/store/index.js +10 -22
  36. package/build-module/store/index.js.map +7 -1
  37. package/build-module/store/reducer.js +9 -8
  38. package/build-module/store/reducer.js.map +7 -1
  39. package/build-module/store/selectors.js +5 -9
  40. package/build-module/store/selectors.js.map +7 -1
  41. package/build-style/style-rtl.css +3 -138
  42. package/build-style/style.css +3 -138
  43. package/package.json +21 -14
  44. package/src/components/reusable-blocks-menu-items/style.scss +2 -0
  45. package/src/style.scss +2 -1
  46. package/build/components/reusable-blocks-menu-items/index.native.js +0 -9
  47. package/build/components/reusable-blocks-menu-items/index.native.js.map +0 -1
  48. package/build/index.native.js +0 -29
  49. package/build/index.native.js.map +0 -1
  50. package/build-module/components/reusable-blocks-menu-items/index.native.js +0 -2
  51. package/build-module/components/reusable-blocks-menu-items/index.native.js.map +0 -1
  52. package/build-module/index.native.js +0 -7
  53. package/build-module/index.native.js.map +0 -1
@@ -1,57 +1,6 @@
1
- /**
2
- * Colors
3
- */
4
- /**
5
- * Breakpoints & Media Queries
6
- */
7
- /**
8
- * Colors
9
- */
10
- /**
11
- * SCSS Variables.
12
- *
13
- * Please use variables from this sheet to ensure consistency across the UI.
14
- * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
15
- * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
16
- */
17
- /**
18
- * Fonts & basic variables.
19
- */
20
1
  /**
21
2
  * Typography
22
3
  */
23
- /**
24
- * Grid System.
25
- * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
26
- */
27
- /**
28
- * Radius scale.
29
- */
30
- /**
31
- * Elevation scale.
32
- */
33
- /**
34
- * Dimensions.
35
- */
36
- /**
37
- * Mobile specific styles
38
- */
39
- /**
40
- * Editor styles.
41
- */
42
- /**
43
- * Block & Editor UI.
44
- */
45
- /**
46
- * Block paddings.
47
- */
48
- /**
49
- * React Native specific.
50
- * These variables do not appear to be used anywhere else.
51
- */
52
- /**
53
- * Colors
54
- */
55
4
  /**
56
5
  * SCSS Variables.
57
6
  *
@@ -59,91 +8,9 @@
59
8
  * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
60
9
  * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
61
10
  */
62
- /**
63
- * Fonts & basic variables.
64
- */
65
- /**
66
- * Typography
67
- */
68
- /**
69
- * Grid System.
70
- * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
71
- */
72
- /**
73
- * Radius scale.
74
- */
75
- /**
76
- * Elevation scale.
77
- */
78
- /**
79
- * Dimensions.
80
- */
81
- /**
82
- * Mobile specific styles
83
- */
84
- /**
85
- * Editor styles.
86
- */
87
- /**
88
- * Block & Editor UI.
89
- */
90
- /**
91
- * Block paddings.
92
- */
93
- /**
94
- * React Native specific.
95
- * These variables do not appear to be used anywhere else.
96
- */
97
- /**
98
- * Breakpoints & Media Queries
99
- */
100
- /**
101
- * Converts a hex value into the rgb equivalent.
102
- *
103
- * @param {string} hex - the hexadecimal value to convert
104
- * @return {string} comma separated rgb values
105
- */
106
- /**
107
- * Long content fade mixin
108
- *
109
- * Creates a fading overlay to signify that the content is longer
110
- * than the space allows.
111
- */
112
- /**
113
- * Typography
114
- */
115
- /**
116
- * Breakpoint mixins
117
- */
118
- /**
119
- * Focus styles.
120
- */
121
- /**
122
- * Applies editor left position to the selector passed as argument
123
- */
124
- /**
125
- * Styles that are reused verbatim in a few places
126
- */
127
- /**
128
- * Allows users to opt-out of animations via OS-level preferences.
129
- */
130
- /**
131
- * Reset default styles for JavaScript UI based pages.
132
- * This is a WP-admin agnostic reset
133
- */
134
- /**
135
- * Reset the WP Admin page styles for Gutenberg-like pages.
136
- */
137
11
  /**
138
12
  * Colors
139
13
  */
140
- /**
141
- * SCSS Variables.
142
- *
143
- * Please use variables from this sheet to ensure consistency across the UI.
144
- * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
145
- * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
146
- */
147
14
  /**
148
15
  * Fonts & basic variables.
149
16
  */
@@ -194,9 +61,6 @@
194
61
  * Creates a fading overlay to signify that the content is longer
195
62
  * than the space allows.
196
63
  */
197
- /**
198
- * Typography
199
- */
200
64
  /**
201
65
  * Breakpoint mixins
202
66
  */
@@ -223,10 +87,11 @@
223
87
  --wp-block-synced-color: #7a00df;
224
88
  --wp-block-synced-color--rgb: 122, 0, 223;
225
89
  --wp-bound-block-color: var(--wp-block-synced-color);
90
+ --wp-editor-canvas-background: #ddd;
226
91
  --wp-admin-theme-color: #007cba;
227
92
  --wp-admin-theme-color--rgb: 0, 124, 186;
228
- --wp-admin-theme-color-darker-10: #006ba1;
229
- --wp-admin-theme-color-darker-10--rgb: 0, 107, 161;
93
+ --wp-admin-theme-color-darker-10: rgb(0, 107, 160.5);
94
+ --wp-admin-theme-color-darker-10--rgb: 0, 107, 160.5;
230
95
  --wp-admin-theme-color-darker-20: #005a87;
231
96
  --wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
232
97
  --wp-admin-border-width-focus: 2px;
@@ -1,57 +1,6 @@
1
- /**
2
- * Colors
3
- */
4
- /**
5
- * Breakpoints & Media Queries
6
- */
7
- /**
8
- * Colors
9
- */
10
- /**
11
- * SCSS Variables.
12
- *
13
- * Please use variables from this sheet to ensure consistency across the UI.
14
- * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
15
- * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
16
- */
17
- /**
18
- * Fonts & basic variables.
19
- */
20
1
  /**
21
2
  * Typography
22
3
  */
23
- /**
24
- * Grid System.
25
- * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
26
- */
27
- /**
28
- * Radius scale.
29
- */
30
- /**
31
- * Elevation scale.
32
- */
33
- /**
34
- * Dimensions.
35
- */
36
- /**
37
- * Mobile specific styles
38
- */
39
- /**
40
- * Editor styles.
41
- */
42
- /**
43
- * Block & Editor UI.
44
- */
45
- /**
46
- * Block paddings.
47
- */
48
- /**
49
- * React Native specific.
50
- * These variables do not appear to be used anywhere else.
51
- */
52
- /**
53
- * Colors
54
- */
55
4
  /**
56
5
  * SCSS Variables.
57
6
  *
@@ -59,91 +8,9 @@
59
8
  * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
60
9
  * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
61
10
  */
62
- /**
63
- * Fonts & basic variables.
64
- */
65
- /**
66
- * Typography
67
- */
68
- /**
69
- * Grid System.
70
- * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
71
- */
72
- /**
73
- * Radius scale.
74
- */
75
- /**
76
- * Elevation scale.
77
- */
78
- /**
79
- * Dimensions.
80
- */
81
- /**
82
- * Mobile specific styles
83
- */
84
- /**
85
- * Editor styles.
86
- */
87
- /**
88
- * Block & Editor UI.
89
- */
90
- /**
91
- * Block paddings.
92
- */
93
- /**
94
- * React Native specific.
95
- * These variables do not appear to be used anywhere else.
96
- */
97
- /**
98
- * Breakpoints & Media Queries
99
- */
100
- /**
101
- * Converts a hex value into the rgb equivalent.
102
- *
103
- * @param {string} hex - the hexadecimal value to convert
104
- * @return {string} comma separated rgb values
105
- */
106
- /**
107
- * Long content fade mixin
108
- *
109
- * Creates a fading overlay to signify that the content is longer
110
- * than the space allows.
111
- */
112
- /**
113
- * Typography
114
- */
115
- /**
116
- * Breakpoint mixins
117
- */
118
- /**
119
- * Focus styles.
120
- */
121
- /**
122
- * Applies editor left position to the selector passed as argument
123
- */
124
- /**
125
- * Styles that are reused verbatim in a few places
126
- */
127
- /**
128
- * Allows users to opt-out of animations via OS-level preferences.
129
- */
130
- /**
131
- * Reset default styles for JavaScript UI based pages.
132
- * This is a WP-admin agnostic reset
133
- */
134
- /**
135
- * Reset the WP Admin page styles for Gutenberg-like pages.
136
- */
137
11
  /**
138
12
  * Colors
139
13
  */
140
- /**
141
- * SCSS Variables.
142
- *
143
- * Please use variables from this sheet to ensure consistency across the UI.
144
- * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
145
- * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
146
- */
147
14
  /**
148
15
  * Fonts & basic variables.
149
16
  */
@@ -194,9 +61,6 @@
194
61
  * Creates a fading overlay to signify that the content is longer
195
62
  * than the space allows.
196
63
  */
197
- /**
198
- * Typography
199
- */
200
64
  /**
201
65
  * Breakpoint mixins
202
66
  */
@@ -223,10 +87,11 @@
223
87
  --wp-block-synced-color: #7a00df;
224
88
  --wp-block-synced-color--rgb: 122, 0, 223;
225
89
  --wp-bound-block-color: var(--wp-block-synced-color);
90
+ --wp-editor-canvas-background: #ddd;
226
91
  --wp-admin-theme-color: #007cba;
227
92
  --wp-admin-theme-color--rgb: 0, 124, 186;
228
- --wp-admin-theme-color-darker-10: #006ba1;
229
- --wp-admin-theme-color-darker-10--rgb: 0, 107, 161;
93
+ --wp-admin-theme-color-darker-10: rgb(0, 107, 160.5);
94
+ --wp-admin-theme-color-darker-10--rgb: 0, 107, 160.5;
230
95
  --wp-admin-theme-color-darker-20: #005a87;
231
96
  --wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
232
97
  --wp-admin-border-width-focus: 2px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/reusable-blocks",
3
- "version": "5.32.0",
3
+ "version": "5.32.1-next.47f435fc9.0",
4
4
  "description": "Reusable blocks utilities.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -24,24 +24,31 @@
24
24
  },
25
25
  "main": "build/index.js",
26
26
  "module": "build-module/index.js",
27
+ "exports": {
28
+ ".": {
29
+ "import": "./build-module/index.js",
30
+ "require": "./build/index.js"
31
+ },
32
+ "./package.json": "./package.json"
33
+ },
27
34
  "react-native": "src/index",
28
35
  "wpScript": true,
29
36
  "sideEffects": [
30
37
  "{src,build,build-module}/{index.js,store/index.js}"
31
38
  ],
32
39
  "dependencies": {
33
- "@babel/runtime": "7.25.7",
34
- "@wordpress/block-editor": "^15.5.0",
35
- "@wordpress/blocks": "^15.5.0",
36
- "@wordpress/components": "^30.5.0",
37
- "@wordpress/core-data": "^7.32.0",
38
- "@wordpress/data": "^10.32.0",
39
- "@wordpress/element": "^6.32.0",
40
- "@wordpress/i18n": "^6.5.0",
41
- "@wordpress/icons": "^10.32.0",
42
- "@wordpress/notices": "^5.32.0",
43
- "@wordpress/private-apis": "^1.32.0",
44
- "@wordpress/url": "^4.32.0"
40
+ "@wordpress/base-styles": "^6.8.1-next.47f435fc9.0",
41
+ "@wordpress/block-editor": "^15.5.1-next.47f435fc9.0",
42
+ "@wordpress/blocks": "^15.5.1-next.47f435fc9.0",
43
+ "@wordpress/components": "^30.6.1-next.47f435fc9.0",
44
+ "@wordpress/core-data": "^7.32.1-next.47f435fc9.0",
45
+ "@wordpress/data": "^10.32.1-next.47f435fc9.0",
46
+ "@wordpress/element": "^6.32.1-next.47f435fc9.0",
47
+ "@wordpress/i18n": "^6.5.1-next.47f435fc9.0",
48
+ "@wordpress/icons": "^11.0.1-next.47f435fc9.0",
49
+ "@wordpress/notices": "^5.32.1-next.47f435fc9.0",
50
+ "@wordpress/private-apis": "^1.32.1-next.47f435fc9.0",
51
+ "@wordpress/url": "^4.32.1-next.47f435fc9.0"
45
52
  },
46
53
  "peerDependencies": {
47
54
  "react": "^18.0.0",
@@ -50,5 +57,5 @@
50
57
  "publishConfig": {
51
58
  "access": "public"
52
59
  },
53
- "gitHead": "a030b4c0e0695239b942c7dc18511782b64f10ed"
60
+ "gitHead": "9720f22c138771d2ed1a0522725c3cdf1c242953"
54
61
  }
@@ -1,3 +1,5 @@
1
+ @use "@wordpress/base-styles/z-index" as *;
2
+
1
3
  .reusable-blocks-menu-items__convert-modal {
2
4
  z-index: z-index(".reusable-blocks-menu-items__convert-modal");
3
5
  }
package/src/style.scss CHANGED
@@ -1 +1,2 @@
1
- @import "./components/reusable-blocks-menu-items/style.scss"
1
+ @use "@wordpress/base-styles/default-custom-properties";
2
+ @use "./components/reusable-blocks-menu-items/style.scss" as *;
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _default = () => null;
8
- exports.default = _default;
9
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_default","exports","default"],"sources":["@wordpress/reusable-blocks/src/components/reusable-blocks-menu-items/index.native.js"],"sourcesContent":["export default () => null;\n"],"mappings":";;;;;;eAAeA,CAAA,KAAM,IAAI;AAAAC,OAAA,CAAAC,OAAA,GAAAF,QAAA","ignoreList":[]}
@@ -1,29 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _exportNames = {
7
- store: true
8
- };
9
- Object.defineProperty(exports, "store", {
10
- enumerable: true,
11
- get: function () {
12
- return _store.store;
13
- }
14
- });
15
- require("@wordpress/core-data");
16
- var _store = require("./store");
17
- var _components = require("./components");
18
- Object.keys(_components).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
21
- if (key in exports && exports[key] === _components[key]) return;
22
- Object.defineProperty(exports, key, {
23
- enumerable: true,
24
- get: function () {
25
- return _components[key];
26
- }
27
- });
28
- });
29
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["require","_store","_components","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get"],"sources":["@wordpress/reusable-blocks/src/index.native.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport '@wordpress/core-data';\n\nexport { store } from './store';\nexport * from './components';\n"],"mappings":";;;;;;;;;;;;;;AAGAA,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAAAG,MAAA,CAAAC,IAAA,CAAAF,WAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,WAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,WAAA,CAAAI,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export default () => null;
2
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["@wordpress/reusable-blocks/src/components/reusable-blocks-menu-items/index.native.js"],"sourcesContent":["export default () => null;\n"],"mappings":"AAAA,eAAe,MAAM,IAAI","ignoreList":[]}
@@ -1,7 +0,0 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
- import '@wordpress/core-data';
5
- export { store } from './store';
6
- export * from './components';
7
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["store"],"sources":["@wordpress/reusable-blocks/src/index.native.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport '@wordpress/core-data';\n\nexport { store } from './store';\nexport * from './components';\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,sBAAsB;AAE7B,SAASA,KAAK,QAAQ,SAAS;AAC/B,cAAc,cAAc","ignoreList":[]}