@wordpress/list-reusable-blocks 5.36.0 → 5.36.1-next.738bb1424.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.
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(import_dropdown_exports);
35
35
  var import_compose = require("@wordpress/compose");
36
36
  var import_i18n = require("@wordpress/i18n");
37
37
  var import_components = require("@wordpress/components");
38
- var import_import_form = __toESM(require("../import-form"));
38
+ var import_import_form = __toESM(require("../import-form/index.cjs"), 1);
39
39
  var import_jsx_runtime = require("react/jsx-runtime");
40
40
  function ImportDropdown({ onUpload }) {
41
41
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -59,4 +59,4 @@ function ImportDropdown({ onUpload }) {
59
59
  );
60
60
  }
61
61
  var import_dropdown_default = ImportDropdown;
62
- //# sourceMappingURL=index.js.map
62
+ //# sourceMappingURL=index.cjs.map
@@ -36,7 +36,7 @@ var import_element = require("@wordpress/element");
36
36
  var import_compose = require("@wordpress/compose");
37
37
  var import_i18n = require("@wordpress/i18n");
38
38
  var import_components = require("@wordpress/components");
39
- var import_import = __toESM(require("../../utils/import"));
39
+ var import_import = __toESM(require("../../utils/import.cjs"), 1);
40
40
  var import_jsx_runtime = require("react/jsx-runtime");
41
41
  function ImportForm({ instanceId, onUpload }) {
42
42
  const inputId = "list-reusable-blocks-import-form-" + instanceId;
@@ -117,4 +117,4 @@ function ImportForm({ instanceId, onUpload }) {
117
117
  );
118
118
  }
119
119
  var import_form_default = (0, import_compose.withInstanceId)(ImportForm);
120
- //# sourceMappingURL=index.js.map
120
+ //# sourceMappingURL=index.cjs.map
@@ -24,8 +24,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  // packages/list-reusable-blocks/src/index.js
25
25
  var import_element = require("@wordpress/element");
26
26
  var import_i18n = require("@wordpress/i18n");
27
- var import_export = __toESM(require("./utils/export"));
28
- var import_import_dropdown = __toESM(require("./components/import-dropdown"));
27
+ var import_export = __toESM(require("./utils/export.cjs"), 1);
28
+ var import_import_dropdown = __toESM(require("./components/import-dropdown/index.cjs"), 1);
29
29
  var import_jsx_runtime = require("react/jsx-runtime");
30
30
  document.body.addEventListener("click", (event) => {
31
31
  if (!event.target.classList.contains("wp-list-reusable-blocks__export")) {
@@ -56,4 +56,4 @@ document.addEventListener("DOMContentLoaded", () => {
56
56
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_element.StrictMode, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_import_dropdown.default, { onUpload: showNotice }) })
57
57
  );
58
58
  });
59
- //# sourceMappingURL=index.js.map
59
+ //# sourceMappingURL=index.cjs.map
@@ -33,7 +33,7 @@ __export(export_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(export_exports);
35
35
  var import_change_case = require("change-case");
36
- var import_api_fetch = __toESM(require("@wordpress/api-fetch"));
36
+ var import_api_fetch = __toESM(require("@wordpress/api-fetch"), 1);
37
37
  var import_blob = require("@wordpress/blob");
38
38
  async function exportReusableBlock(id) {
39
39
  const postType = await (0, import_api_fetch.default)({ path: `/wp/v2/types/wp_block` });
@@ -57,4 +57,4 @@ async function exportReusableBlock(id) {
57
57
  (0, import_blob.downloadBlob)(fileName, fileContent, "application/json");
58
58
  }
59
59
  var export_default = exportReusableBlock;
60
- //# sourceMappingURL=export.js.map
60
+ //# sourceMappingURL=export.cjs.map
@@ -35,4 +35,4 @@ function readTextFile(file) {
35
35
  0 && (module.exports = {
36
36
  readTextFile
37
37
  });
38
- //# sourceMappingURL=file.js.map
38
+ //# sourceMappingURL=file.cjs.map
@@ -32,8 +32,8 @@ __export(import_exports, {
32
32
  default: () => import_default
33
33
  });
34
34
  module.exports = __toCommonJS(import_exports);
35
- var import_api_fetch = __toESM(require("@wordpress/api-fetch"));
36
- var import_file = require("./file");
35
+ var import_api_fetch = __toESM(require("@wordpress/api-fetch"), 1);
36
+ var import_file = require("./file.cjs");
37
37
  async function importReusableBlock(file) {
38
38
  const fileContent = await (0, import_file.readTextFile)(file);
39
39
  let parsedContent;
@@ -59,4 +59,4 @@ async function importReusableBlock(file) {
59
59
  return reusableBlock;
60
60
  }
61
61
  var import_default = importReusableBlock;
62
- //# sourceMappingURL=import.js.map
62
+ //# sourceMappingURL=import.cjs.map
@@ -2,7 +2,7 @@
2
2
  import { pipe } from "@wordpress/compose";
3
3
  import { __ } from "@wordpress/i18n";
4
4
  import { Dropdown, Button } from "@wordpress/components";
5
- import ImportForm from "../import-form";
5
+ import ImportForm from "../import-form/index.js";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  function ImportDropdown({ onUpload }) {
8
8
  return /* @__PURE__ */ jsx(
@@ -3,7 +3,7 @@ import { useState, useRef } from "@wordpress/element";
3
3
  import { withInstanceId } from "@wordpress/compose";
4
4
  import { __, _x } from "@wordpress/i18n";
5
5
  import { Button, Notice } from "@wordpress/components";
6
- import importReusableBlock from "../../utils/import";
6
+ import importReusableBlock from "../../utils/import.js";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
8
  function ImportForm({ instanceId, onUpload }) {
9
9
  const inputId = "list-reusable-blocks-import-form-" + instanceId;
@@ -1,8 +1,8 @@
1
1
  // packages/list-reusable-blocks/src/index.js
2
2
  import { createRoot, StrictMode } from "@wordpress/element";
3
3
  import { __ } from "@wordpress/i18n";
4
- import exportReusableBlock from "./utils/export";
5
- import ImportDropdown from "./components/import-dropdown";
4
+ import exportReusableBlock from "./utils/export.js";
5
+ import ImportDropdown from "./components/import-dropdown/index.js";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  document.body.addEventListener("click", (event) => {
8
8
  if (!event.target.classList.contains("wp-list-reusable-blocks__export")) {
@@ -1,6 +1,6 @@
1
1
  // packages/list-reusable-blocks/src/utils/import.js
2
2
  import apiFetch from "@wordpress/api-fetch";
3
- import { readTextFile } from "./file";
3
+ import { readTextFile } from "./file.js";
4
4
  async function importReusableBlock(file) {
5
5
  const fileContent = await readTextFile(file);
6
6
  let parsedContent;
@@ -114,124 +114,4 @@
114
114
  align-items: center;
115
115
  position: relative;
116
116
  top: -3px;
117
- }
118
-
119
- body.admin-color-light {
120
- --wp-admin-theme-color: #0085ba;
121
- --wp-admin-theme-color--rgb: 0, 133, 186;
122
- --wp-admin-theme-color-darker-10: rgb(0, 114.7661290323, 160.5);
123
- --wp-admin-theme-color-darker-10--rgb: 0, 114.7661290323, 160.5;
124
- --wp-admin-theme-color-darker-20: rgb(0, 96.5322580645, 135);
125
- --wp-admin-theme-color-darker-20--rgb: 0, 96.5322580645, 135;
126
- --wp-admin-border-width-focus: 2px;
127
- }
128
- @media (min-resolution: 192dpi) {
129
- body.admin-color-light {
130
- --wp-admin-border-width-focus: 1.5px;
131
- }
132
- }
133
-
134
- body.admin-color-modern {
135
- --wp-admin-theme-color: #3858e9;
136
- --wp-admin-theme-color--rgb: 56, 88, 233;
137
- --wp-admin-theme-color-darker-10: rgb(33.0384615385, 68.7307692308, 230.4615384615);
138
- --wp-admin-theme-color-darker-10--rgb: 33.0384615385, 68.7307692308, 230.4615384615;
139
- --wp-admin-theme-color-darker-20: rgb(23.6923076923, 58.1538461538, 214.3076923077);
140
- --wp-admin-theme-color-darker-20--rgb: 23.6923076923, 58.1538461538, 214.3076923077;
141
- --wp-admin-border-width-focus: 2px;
142
- }
143
- @media (min-resolution: 192dpi) {
144
- body.admin-color-modern {
145
- --wp-admin-border-width-focus: 1.5px;
146
- }
147
- }
148
-
149
- body.admin-color-blue {
150
- --wp-admin-theme-color: #096484;
151
- --wp-admin-theme-color--rgb: 9, 100, 132;
152
- --wp-admin-theme-color-darker-10: rgb(7.3723404255, 81.914893617, 108.1276595745);
153
- --wp-admin-theme-color-darker-10--rgb: 7.3723404255, 81.914893617, 108.1276595745;
154
- --wp-admin-theme-color-darker-20: rgb(5.7446808511, 63.829787234, 84.2553191489);
155
- --wp-admin-theme-color-darker-20--rgb: 5.7446808511, 63.829787234, 84.2553191489;
156
- --wp-admin-border-width-focus: 2px;
157
- }
158
- @media (min-resolution: 192dpi) {
159
- body.admin-color-blue {
160
- --wp-admin-border-width-focus: 1.5px;
161
- }
162
- }
163
-
164
- body.admin-color-coffee {
165
- --wp-admin-theme-color: #46403c;
166
- --wp-admin-theme-color--rgb: 70, 64, 60;
167
- --wp-admin-theme-color-darker-10: rgb(56.2692307692, 51.4461538462, 48.2307692308);
168
- --wp-admin-theme-color-darker-10--rgb: 56.2692307692, 51.4461538462, 48.2307692308;
169
- --wp-admin-theme-color-darker-20: rgb(42.5384615385, 38.8923076923, 36.4615384615);
170
- --wp-admin-theme-color-darker-20--rgb: 42.5384615385, 38.8923076923, 36.4615384615;
171
- --wp-admin-border-width-focus: 2px;
172
- }
173
- @media (min-resolution: 192dpi) {
174
- body.admin-color-coffee {
175
- --wp-admin-border-width-focus: 1.5px;
176
- }
177
- }
178
-
179
- body.admin-color-ectoplasm {
180
- --wp-admin-theme-color: #523f6d;
181
- --wp-admin-theme-color--rgb: 82, 63, 109;
182
- --wp-admin-theme-color-darker-10: rgb(69.8430232558, 53.6598837209, 92.8401162791);
183
- --wp-admin-theme-color-darker-10--rgb: 69.8430232558, 53.6598837209, 92.8401162791;
184
- --wp-admin-theme-color-darker-20: rgb(57.6860465116, 44.3197674419, 76.6802325581);
185
- --wp-admin-theme-color-darker-20--rgb: 57.6860465116, 44.3197674419, 76.6802325581;
186
- --wp-admin-border-width-focus: 2px;
187
- }
188
- @media (min-resolution: 192dpi) {
189
- body.admin-color-ectoplasm {
190
- --wp-admin-border-width-focus: 1.5px;
191
- }
192
- }
193
-
194
- body.admin-color-midnight {
195
- --wp-admin-theme-color: #e14d43;
196
- --wp-admin-theme-color--rgb: 225, 77, 67;
197
- --wp-admin-theme-color-darker-10: rgb(221.4908256881, 56.1788990826, 45.0091743119);
198
- --wp-admin-theme-color-darker-10--rgb: 221.4908256881, 56.1788990826, 45.0091743119;
199
- --wp-admin-theme-color-darker-20: rgb(207.8348623853, 44.2201834862, 33.1651376147);
200
- --wp-admin-theme-color-darker-20--rgb: 207.8348623853, 44.2201834862, 33.1651376147;
201
- --wp-admin-border-width-focus: 2px;
202
- }
203
- @media (min-resolution: 192dpi) {
204
- body.admin-color-midnight {
205
- --wp-admin-border-width-focus: 1.5px;
206
- }
207
- }
208
-
209
- body.admin-color-ocean {
210
- --wp-admin-theme-color: #627c83;
211
- --wp-admin-theme-color--rgb: 98, 124, 131;
212
- --wp-admin-theme-color-darker-10: rgb(87.0873362445, 110.192139738, 116.4126637555);
213
- --wp-admin-theme-color-darker-10--rgb: 87.0873362445, 110.192139738, 116.4126637555;
214
- --wp-admin-theme-color-darker-20: rgb(76.1746724891, 96.384279476, 101.8253275109);
215
- --wp-admin-theme-color-darker-20--rgb: 76.1746724891, 96.384279476, 101.8253275109;
216
- --wp-admin-border-width-focus: 2px;
217
- }
218
- @media (min-resolution: 192dpi) {
219
- body.admin-color-ocean {
220
- --wp-admin-border-width-focus: 1.5px;
221
- }
222
- }
223
-
224
- body.admin-color-sunrise {
225
- --wp-admin-theme-color: #dd823b;
226
- --wp-admin-theme-color--rgb: 221, 130, 59;
227
- --wp-admin-theme-color-darker-10: rgb(216.8782608696, 116.1847826087, 37.6217391304);
228
- --wp-admin-theme-color-darker-10--rgb: 216.8782608696, 116.1847826087, 37.6217391304;
229
- --wp-admin-theme-color-darker-20: rgb(195.147826087, 104.5434782609, 33.852173913);
230
- --wp-admin-theme-color-darker-20--rgb: 195.147826087, 104.5434782609, 33.852173913;
231
- --wp-admin-border-width-focus: 2px;
232
- }
233
- @media (min-resolution: 192dpi) {
234
- body.admin-color-sunrise {
235
- --wp-admin-border-width-focus: 1.5px;
236
- }
237
117
  }
@@ -114,124 +114,4 @@
114
114
  align-items: center;
115
115
  position: relative;
116
116
  top: -3px;
117
- }
118
-
119
- body.admin-color-light {
120
- --wp-admin-theme-color: #0085ba;
121
- --wp-admin-theme-color--rgb: 0, 133, 186;
122
- --wp-admin-theme-color-darker-10: rgb(0, 114.7661290323, 160.5);
123
- --wp-admin-theme-color-darker-10--rgb: 0, 114.7661290323, 160.5;
124
- --wp-admin-theme-color-darker-20: rgb(0, 96.5322580645, 135);
125
- --wp-admin-theme-color-darker-20--rgb: 0, 96.5322580645, 135;
126
- --wp-admin-border-width-focus: 2px;
127
- }
128
- @media (min-resolution: 192dpi) {
129
- body.admin-color-light {
130
- --wp-admin-border-width-focus: 1.5px;
131
- }
132
- }
133
-
134
- body.admin-color-modern {
135
- --wp-admin-theme-color: #3858e9;
136
- --wp-admin-theme-color--rgb: 56, 88, 233;
137
- --wp-admin-theme-color-darker-10: rgb(33.0384615385, 68.7307692308, 230.4615384615);
138
- --wp-admin-theme-color-darker-10--rgb: 33.0384615385, 68.7307692308, 230.4615384615;
139
- --wp-admin-theme-color-darker-20: rgb(23.6923076923, 58.1538461538, 214.3076923077);
140
- --wp-admin-theme-color-darker-20--rgb: 23.6923076923, 58.1538461538, 214.3076923077;
141
- --wp-admin-border-width-focus: 2px;
142
- }
143
- @media (min-resolution: 192dpi) {
144
- body.admin-color-modern {
145
- --wp-admin-border-width-focus: 1.5px;
146
- }
147
- }
148
-
149
- body.admin-color-blue {
150
- --wp-admin-theme-color: #096484;
151
- --wp-admin-theme-color--rgb: 9, 100, 132;
152
- --wp-admin-theme-color-darker-10: rgb(7.3723404255, 81.914893617, 108.1276595745);
153
- --wp-admin-theme-color-darker-10--rgb: 7.3723404255, 81.914893617, 108.1276595745;
154
- --wp-admin-theme-color-darker-20: rgb(5.7446808511, 63.829787234, 84.2553191489);
155
- --wp-admin-theme-color-darker-20--rgb: 5.7446808511, 63.829787234, 84.2553191489;
156
- --wp-admin-border-width-focus: 2px;
157
- }
158
- @media (min-resolution: 192dpi) {
159
- body.admin-color-blue {
160
- --wp-admin-border-width-focus: 1.5px;
161
- }
162
- }
163
-
164
- body.admin-color-coffee {
165
- --wp-admin-theme-color: #46403c;
166
- --wp-admin-theme-color--rgb: 70, 64, 60;
167
- --wp-admin-theme-color-darker-10: rgb(56.2692307692, 51.4461538462, 48.2307692308);
168
- --wp-admin-theme-color-darker-10--rgb: 56.2692307692, 51.4461538462, 48.2307692308;
169
- --wp-admin-theme-color-darker-20: rgb(42.5384615385, 38.8923076923, 36.4615384615);
170
- --wp-admin-theme-color-darker-20--rgb: 42.5384615385, 38.8923076923, 36.4615384615;
171
- --wp-admin-border-width-focus: 2px;
172
- }
173
- @media (min-resolution: 192dpi) {
174
- body.admin-color-coffee {
175
- --wp-admin-border-width-focus: 1.5px;
176
- }
177
- }
178
-
179
- body.admin-color-ectoplasm {
180
- --wp-admin-theme-color: #523f6d;
181
- --wp-admin-theme-color--rgb: 82, 63, 109;
182
- --wp-admin-theme-color-darker-10: rgb(69.8430232558, 53.6598837209, 92.8401162791);
183
- --wp-admin-theme-color-darker-10--rgb: 69.8430232558, 53.6598837209, 92.8401162791;
184
- --wp-admin-theme-color-darker-20: rgb(57.6860465116, 44.3197674419, 76.6802325581);
185
- --wp-admin-theme-color-darker-20--rgb: 57.6860465116, 44.3197674419, 76.6802325581;
186
- --wp-admin-border-width-focus: 2px;
187
- }
188
- @media (min-resolution: 192dpi) {
189
- body.admin-color-ectoplasm {
190
- --wp-admin-border-width-focus: 1.5px;
191
- }
192
- }
193
-
194
- body.admin-color-midnight {
195
- --wp-admin-theme-color: #e14d43;
196
- --wp-admin-theme-color--rgb: 225, 77, 67;
197
- --wp-admin-theme-color-darker-10: rgb(221.4908256881, 56.1788990826, 45.0091743119);
198
- --wp-admin-theme-color-darker-10--rgb: 221.4908256881, 56.1788990826, 45.0091743119;
199
- --wp-admin-theme-color-darker-20: rgb(207.8348623853, 44.2201834862, 33.1651376147);
200
- --wp-admin-theme-color-darker-20--rgb: 207.8348623853, 44.2201834862, 33.1651376147;
201
- --wp-admin-border-width-focus: 2px;
202
- }
203
- @media (min-resolution: 192dpi) {
204
- body.admin-color-midnight {
205
- --wp-admin-border-width-focus: 1.5px;
206
- }
207
- }
208
-
209
- body.admin-color-ocean {
210
- --wp-admin-theme-color: #627c83;
211
- --wp-admin-theme-color--rgb: 98, 124, 131;
212
- --wp-admin-theme-color-darker-10: rgb(87.0873362445, 110.192139738, 116.4126637555);
213
- --wp-admin-theme-color-darker-10--rgb: 87.0873362445, 110.192139738, 116.4126637555;
214
- --wp-admin-theme-color-darker-20: rgb(76.1746724891, 96.384279476, 101.8253275109);
215
- --wp-admin-theme-color-darker-20--rgb: 76.1746724891, 96.384279476, 101.8253275109;
216
- --wp-admin-border-width-focus: 2px;
217
- }
218
- @media (min-resolution: 192dpi) {
219
- body.admin-color-ocean {
220
- --wp-admin-border-width-focus: 1.5px;
221
- }
222
- }
223
-
224
- body.admin-color-sunrise {
225
- --wp-admin-theme-color: #dd823b;
226
- --wp-admin-theme-color--rgb: 221, 130, 59;
227
- --wp-admin-theme-color-darker-10: rgb(216.8782608696, 116.1847826087, 37.6217391304);
228
- --wp-admin-theme-color-darker-10--rgb: 216.8782608696, 116.1847826087, 37.6217391304;
229
- --wp-admin-theme-color-darker-20: rgb(195.147826087, 104.5434782609, 33.852173913);
230
- --wp-admin-theme-color-darker-20--rgb: 195.147826087, 104.5434782609, 33.852173913;
231
- --wp-admin-border-width-focus: 2px;
232
- }
233
- @media (min-resolution: 192dpi) {
234
- body.admin-color-sunrise {
235
- --wp-admin-border-width-focus: 1.5px;
236
- }
237
117
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/list-reusable-blocks",
3
- "version": "5.36.0",
3
+ "version": "5.36.1-next.738bb1424.0",
4
4
  "description": "Adding Export/Import support to the reusable blocks listing.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -23,25 +23,34 @@
23
23
  "node": ">=18.12.0",
24
24
  "npm": ">=8.19.2"
25
25
  },
26
- "main": "build/index.js",
26
+ "files": [
27
+ "src",
28
+ "build",
29
+ "build-module",
30
+ "build-style",
31
+ "build-types",
32
+ "*.md"
33
+ ],
34
+ "type": "module",
35
+ "main": "build/index.cjs",
27
36
  "module": "build-module/index.js",
28
37
  "exports": {
29
38
  ".": {
30
39
  "import": "./build-module/index.js",
31
- "require": "./build/index.js"
40
+ "require": "./build/index.cjs"
32
41
  },
33
42
  "./package.json": "./package.json",
34
43
  "./build-style/": "./build-style/"
35
44
  },
36
45
  "wpScript": true,
37
46
  "dependencies": {
38
- "@wordpress/api-fetch": "^7.36.0",
39
- "@wordpress/base-styles": "^6.12.0",
40
- "@wordpress/blob": "^4.36.0",
41
- "@wordpress/components": "^30.9.0",
42
- "@wordpress/compose": "^7.36.0",
43
- "@wordpress/element": "^6.36.0",
44
- "@wordpress/i18n": "^6.9.0",
47
+ "@wordpress/api-fetch": "^7.36.1-next.738bb1424.0",
48
+ "@wordpress/base-styles": "^6.12.1-next.738bb1424.0",
49
+ "@wordpress/blob": "^4.36.1-next.738bb1424.0",
50
+ "@wordpress/components": "^31.0.1-next.738bb1424.0",
51
+ "@wordpress/compose": "^7.36.1-next.738bb1424.0",
52
+ "@wordpress/element": "^6.36.1-next.738bb1424.0",
53
+ "@wordpress/i18n": "^6.9.1-next.738bb1424.0",
45
54
  "change-case": "^4.1.2"
46
55
  },
47
56
  "peerDependencies": {
@@ -51,5 +60,5 @@
51
60
  "publishConfig": {
52
61
  "access": "public"
53
62
  },
54
- "gitHead": "b35cf1a2dce04665e99fd6b9c2891c0b336361b9"
63
+ "gitHead": "ab1b004c0d61c295aa34bc86ea07f979343983ce"
55
64
  }
package/src/style.scss CHANGED
@@ -8,5 +8,3 @@
8
8
  position: relative;
9
9
  top: -3px;
10
10
  }
11
-
12
- @include wordpress-admin-schemes();
File without changes
File without changes
File without changes
File without changes