@wordpress/list-reusable-blocks 5.36.1-next.738bb1424.0 → 5.36.1-next.76cff8c98.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/LICENSE.md +1 -1
- package/build/components/import-dropdown/index.cjs +1 -1
- package/build/components/import-form/index.cjs +1 -1
- package/build/index.cjs +2 -2
- package/build/utils/export.cjs +1 -1
- package/build/utils/import.cjs +1 -1
- package/build-module/components/import-dropdown/{index.js → index.mjs} +2 -2
- package/build-module/components/import-form/{index.js → index.mjs} +2 -2
- package/build-module/{index.js → index.mjs} +3 -3
- package/build-module/utils/{export.js → export.mjs} +1 -1
- package/build-module/utils/{file.js → file.mjs} +1 -1
- package/build-module/utils/{import.js → import.mjs} +2 -2
- package/build-style/style-rtl.css +4 -0
- package/build-style/style.css +4 -0
- package/package.json +11 -12
- /package/build-module/components/import-dropdown/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/import-form/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/utils/{export.js.map → export.mjs.map} +0 -0
- /package/build-module/utils/{file.js.map → file.mjs.map} +0 -0
- /package/build-module/utils/{import.js.map → import.mjs.map} +0 -0
package/LICENSE.md
CHANGED
|
@@ -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/index.cjs")
|
|
38
|
+
var import_import_form = __toESM(require("../import-form/index.cjs"));
|
|
39
39
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
40
40
|
function ImportDropdown({ onUpload }) {
|
|
41
41
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -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.cjs")
|
|
39
|
+
var import_import = __toESM(require("../../utils/import.cjs"));
|
|
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;
|
package/build/index.cjs
CHANGED
|
@@ -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.cjs")
|
|
28
|
-
var import_import_dropdown = __toESM(require("./components/import-dropdown/index.cjs")
|
|
27
|
+
var import_export = __toESM(require("./utils/export.cjs"));
|
|
28
|
+
var import_import_dropdown = __toESM(require("./components/import-dropdown/index.cjs"));
|
|
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")) {
|
package/build/utils/export.cjs
CHANGED
|
@@ -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"));
|
|
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` });
|
package/build/utils/import.cjs
CHANGED
|
@@ -32,7 +32,7 @@ __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")
|
|
35
|
+
var import_api_fetch = __toESM(require("@wordpress/api-fetch"));
|
|
36
36
|
var import_file = require("./file.cjs");
|
|
37
37
|
async function importReusableBlock(file) {
|
|
38
38
|
const fileContent = await (0, import_file.readTextFile)(file);
|
|
@@ -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/index.
|
|
5
|
+
import ImportForm from "../import-form/index.mjs";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
function ImportDropdown({ onUpload }) {
|
|
8
8
|
return /* @__PURE__ */ jsx(
|
|
@@ -29,4 +29,4 @@ var import_dropdown_default = ImportDropdown;
|
|
|
29
29
|
export {
|
|
30
30
|
import_dropdown_default as default
|
|
31
31
|
};
|
|
32
|
-
//# sourceMappingURL=index.
|
|
32
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -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.mjs";
|
|
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;
|
|
@@ -87,4 +87,4 @@ var import_form_default = withInstanceId(ImportForm);
|
|
|
87
87
|
export {
|
|
88
88
|
import_form_default as default
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=index.
|
|
90
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -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/index.
|
|
4
|
+
import exportReusableBlock from "./utils/export.mjs";
|
|
5
|
+
import ImportDropdown from "./components/import-dropdown/index.mjs";
|
|
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")) {
|
|
@@ -33,4 +33,4 @@ document.addEventListener("DOMContentLoaded", () => {
|
|
|
33
33
|
/* @__PURE__ */ jsx(StrictMode, { children: /* @__PURE__ */ jsx(ImportDropdown, { onUpload: showNotice }) })
|
|
34
34
|
);
|
|
35
35
|
});
|
|
36
|
-
//# sourceMappingURL=index.
|
|
36
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -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.mjs";
|
|
4
4
|
async function importReusableBlock(file) {
|
|
5
5
|
const fileContent = await readTextFile(file);
|
|
6
6
|
let parsedContent;
|
|
@@ -29,4 +29,4 @@ var import_default = importReusableBlock;
|
|
|
29
29
|
export {
|
|
30
30
|
import_default as default
|
|
31
31
|
};
|
|
32
|
-
//# sourceMappingURL=import.
|
|
32
|
+
//# sourceMappingURL=import.mjs.map
|
|
@@ -83,6 +83,10 @@
|
|
|
83
83
|
/**
|
|
84
84
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
85
85
|
*/
|
|
86
|
+
/**
|
|
87
|
+
* Creates a checkerboard pattern background to indicate transparency.
|
|
88
|
+
* @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
|
|
89
|
+
*/
|
|
86
90
|
.list-reusable-blocks-import-dropdown__content .components-popover__content {
|
|
87
91
|
padding: 10px;
|
|
88
92
|
}
|
package/build-style/style.css
CHANGED
|
@@ -83,6 +83,10 @@
|
|
|
83
83
|
/**
|
|
84
84
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
85
85
|
*/
|
|
86
|
+
/**
|
|
87
|
+
* Creates a checkerboard pattern background to indicate transparency.
|
|
88
|
+
* @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
|
|
89
|
+
*/
|
|
86
90
|
.list-reusable-blocks-import-dropdown__content .components-popover__content {
|
|
87
91
|
padding: 10px;
|
|
88
92
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/list-reusable-blocks",
|
|
3
|
-
"version": "5.36.1-next.
|
|
3
|
+
"version": "5.36.1-next.76cff8c98.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",
|
|
@@ -31,12 +31,11 @@
|
|
|
31
31
|
"build-types",
|
|
32
32
|
"*.md"
|
|
33
33
|
],
|
|
34
|
-
"type": "module",
|
|
35
34
|
"main": "build/index.cjs",
|
|
36
|
-
"module": "build-module/index.
|
|
35
|
+
"module": "build-module/index.mjs",
|
|
37
36
|
"exports": {
|
|
38
37
|
".": {
|
|
39
|
-
"import": "./build-module/index.
|
|
38
|
+
"import": "./build-module/index.mjs",
|
|
40
39
|
"require": "./build/index.cjs"
|
|
41
40
|
},
|
|
42
41
|
"./package.json": "./package.json",
|
|
@@ -44,13 +43,13 @@
|
|
|
44
43
|
},
|
|
45
44
|
"wpScript": true,
|
|
46
45
|
"dependencies": {
|
|
47
|
-
"@wordpress/api-fetch": "^7.36.1-next.
|
|
48
|
-
"@wordpress/base-styles": "^6.12.
|
|
49
|
-
"@wordpress/blob": "^4.36.1-next.
|
|
50
|
-
"@wordpress/components": "^31.0.1-next.
|
|
51
|
-
"@wordpress/compose": "^7.36.1-next.
|
|
52
|
-
"@wordpress/element": "^6.36.1-next.
|
|
53
|
-
"@wordpress/i18n": "^6.9.1-next.
|
|
46
|
+
"@wordpress/api-fetch": "^7.36.1-next.76cff8c98.0",
|
|
47
|
+
"@wordpress/base-styles": "^6.12.2-next.76cff8c98.0",
|
|
48
|
+
"@wordpress/blob": "^4.36.1-next.76cff8c98.0",
|
|
49
|
+
"@wordpress/components": "^31.0.1-next.76cff8c98.0",
|
|
50
|
+
"@wordpress/compose": "^7.36.1-next.76cff8c98.0",
|
|
51
|
+
"@wordpress/element": "^6.36.1-next.76cff8c98.0",
|
|
52
|
+
"@wordpress/i18n": "^6.9.1-next.76cff8c98.0",
|
|
54
53
|
"change-case": "^4.1.2"
|
|
55
54
|
},
|
|
56
55
|
"peerDependencies": {
|
|
@@ -60,5 +59,5 @@
|
|
|
60
59
|
"publishConfig": {
|
|
61
60
|
"access": "public"
|
|
62
61
|
},
|
|
63
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "368727f14b858e75179e140967c2d9ec965c8790"
|
|
64
63
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|