@wordpress/block-directory 5.32.0 → 5.32.1-next.b8c8708f3.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/build/components/auto-block-uninstaller/index.js +37 -31
- package/build/components/auto-block-uninstaller/index.js.map +7 -1
- package/build/components/block-ratings/index.js +40 -22
- package/build/components/block-ratings/index.js.map +7 -1
- package/build/components/block-ratings/stars.js +66 -40
- package/build/components/block-ratings/stars.js.map +7 -1
- package/build/components/compact-list/index.js +47 -46
- package/build/components/compact-list/index.js.map +7 -1
- package/build/components/downloadable-block-icon/index.js +28 -26
- package/build/components/downloadable-block-icon/index.js.map +7 -1
- package/build/components/downloadable-block-list-item/index.js +113 -127
- package/build/components/downloadable-block-list-item/index.js.map +7 -1
- package/build/components/downloadable-block-notice/index.js +41 -31
- package/build/components/downloadable-block-notice/index.js.map +7 -1
- package/build/components/downloadable-blocks-list/index.js +72 -56
- package/build/components/downloadable-blocks-list/index.js.map +7 -1
- package/build/components/downloadable-blocks-panel/index.js +108 -95
- package/build/components/downloadable-blocks-panel/index.js.map +7 -1
- package/build/components/downloadable-blocks-panel/inserter-panel.js +52 -38
- package/build/components/downloadable-blocks-panel/inserter-panel.js.map +7 -1
- package/build/components/downloadable-blocks-panel/no-results.js +37 -30
- package/build/components/downloadable-blocks-panel/no-results.js.map +7 -1
- package/build/index.js +27 -12
- package/build/index.js.map +7 -1
- package/build/lock-unlock.js +31 -15
- package/build/lock-unlock.js.map +7 -1
- package/build/plugins/get-install-missing/index.js +123 -102
- package/build/plugins/get-install-missing/index.js.map +7 -1
- package/build/plugins/get-install-missing/install-button.js +68 -50
- package/build/plugins/get-install-missing/install-button.js.map +7 -1
- package/build/plugins/index.js +46 -29
- package/build/plugins/index.js.map +7 -1
- package/build/plugins/inserter-menu-downloadable-blocks-panel/index.js +55 -42
- package/build/plugins/inserter-menu-downloadable-blocks-panel/index.js.map +7 -1
- package/build/plugins/installed-blocks-pre-publish-panel/index.js +65 -34
- package/build/plugins/installed-blocks-pre-publish-panel/index.js.map +7 -1
- package/build/store/actions.js +142 -188
- package/build/store/actions.js.map +7 -1
- package/build/store/index.js +48 -46
- package/build/store/index.js.map +7 -1
- package/build/store/load-assets.js +48 -55
- package/build/store/load-assets.js.map +7 -1
- package/build/store/reducer.js +48 -54
- package/build/store/reducer.js.map +7 -1
- package/build/store/resolvers.js +52 -31
- package/build/store/resolvers.js.map +7 -1
- package/build/store/selectors.js +100 -127
- package/build/store/selectors.js.map +7 -1
- package/build/store/utils/get-plugin-url.js +23 -14
- package/build/store/utils/get-plugin-url.js.map +7 -1
- package/build-module/components/auto-block-uninstaller/index.js +18 -24
- package/build-module/components/auto-block-uninstaller/index.js.map +7 -1
- package/build-module/components/block-ratings/index.js +9 -15
- package/build-module/components/block-ratings/index.js.map +7 -1
- package/build-module/components/block-ratings/stars.js +48 -34
- package/build-module/components/block-ratings/stars.js.map +7 -1
- package/build-module/components/compact-list/index.js +19 -39
- package/build-module/components/compact-list/index.js.map +7 -1
- package/build-module/components/downloadable-block-icon/index.js +10 -20
- package/build-module/components/downloadable-block-icon/index.js.map +7 -1
- package/build-module/components/downloadable-block-list-item/index.js +89 -120
- package/build-module/components/downloadable-block-list-item/index.js.map +7 -1
- package/build-module/components/downloadable-block-notice/index.js +19 -24
- package/build-module/components/downloadable-block-notice/index.js.map +7 -1
- package/build-module/components/downloadable-blocks-list/index.js +44 -49
- package/build-module/components/downloadable-blocks-list/index.js.map +7 -1
- package/build-module/components/downloadable-blocks-panel/index.js +81 -89
- package/build-module/components/downloadable-blocks-panel/index.js.map +7 -1
- package/build-module/components/downloadable-blocks-panel/inserter-panel.js +33 -31
- package/build-module/components/downloadable-blocks-panel/inserter-panel.js.map +7 -1
- package/build-module/components/downloadable-blocks-panel/no-results.js +19 -24
- package/build-module/components/downloadable-blocks-panel/no-results.js.map +7 -1
- package/build-module/index.js +6 -6
- package/build-module/index.js.map +7 -1
- package/build-module/lock-unlock.js +8 -7
- package/build-module/lock-unlock.js.map +7 -1
- package/build-module/plugins/get-install-missing/index.js +99 -95
- package/build-module/plugins/get-install-missing/index.js.map +7 -1
- package/build-module/plugins/get-install-missing/install-button.js +50 -44
- package/build-module/plugins/get-install-missing/install-button.js.map +7 -1
- package/build-module/plugins/index.js +24 -25
- package/build-module/plugins/index.js.map +7 -1
- package/build-module/plugins/inserter-menu-downloadable-blocks-panel/index.js +26 -34
- package/build-module/plugins/inserter-menu-downloadable-blocks-panel/index.js.map +7 -1
- package/build-module/plugins/installed-blocks-pre-publish-panel/index.js +38 -28
- package/build-module/plugins/installed-blocks-pre-publish-panel/index.js.map +7 -1
- package/build-module/store/actions.js +100 -168
- package/build-module/store/actions.js.map +7 -1
- package/build-module/store/index.js +13 -36
- package/build-module/store/index.js.map +7 -1
- package/build-module/store/load-assets.js +15 -47
- package/build-module/store/load-assets.js.map +7 -1
- package/build-module/store/reducer.js +27 -49
- package/build-module/store/reducer.js.map +7 -1
- package/build-module/store/resolvers.js +16 -19
- package/build-module/store/resolvers.js.map +7 -1
- package/build-module/store/selectors.js +77 -121
- package/build-module/store/selectors.js.map +7 -1
- package/build-module/store/utils/get-plugin-url.js +6 -10
- package/build-module/store/utils/get-plugin-url.js.map +7 -1
- package/build-style/style-rtl.css +9 -142
- package/build-style/style.css +9 -142
- package/package.json +28 -21
- package/src/components/block-ratings/style.scss +2 -0
- package/src/components/compact-list/style.scss +3 -0
- package/src/components/downloadable-block-icon/style.scss +3 -0
- package/src/components/downloadable-block-list-item/style.scss +4 -0
- package/src/components/downloadable-block-notice/style.scss +3 -0
- package/src/components/downloadable-blocks-panel/style.scss +3 -1
- package/src/style.scss +8 -7
package/build/store/index.js
CHANGED
|
@@ -1,51 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
Object.
|
|
5
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var store_exports = {};
|
|
29
|
+
__export(store_exports, {
|
|
30
|
+
store: () => store,
|
|
31
|
+
storeConfig: () => storeConfig
|
|
6
32
|
});
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var selectors =
|
|
11
|
-
var actions =
|
|
12
|
-
var resolvers =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* WordPress dependencies
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Internal dependencies
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Module Constants
|
|
25
|
-
*/
|
|
26
|
-
const STORE_NAME = 'core/block-directory';
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Block editor data store configuration.
|
|
30
|
-
*
|
|
31
|
-
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#registerStore
|
|
32
|
-
*
|
|
33
|
-
* @type {Object}
|
|
34
|
-
*/
|
|
35
|
-
const storeConfig = exports.storeConfig = {
|
|
36
|
-
reducer: _reducer.default,
|
|
33
|
+
module.exports = __toCommonJS(store_exports);
|
|
34
|
+
var import_data = require("@wordpress/data");
|
|
35
|
+
var import_reducer = __toESM(require("./reducer"));
|
|
36
|
+
var selectors = __toESM(require("./selectors"));
|
|
37
|
+
var actions = __toESM(require("./actions"));
|
|
38
|
+
var resolvers = __toESM(require("./resolvers"));
|
|
39
|
+
const STORE_NAME = "core/block-directory";
|
|
40
|
+
const storeConfig = {
|
|
41
|
+
reducer: import_reducer.default,
|
|
37
42
|
selectors,
|
|
38
43
|
actions,
|
|
39
44
|
resolvers
|
|
40
45
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const store = exports.store = (0, _data.createReduxStore)(STORE_NAME, storeConfig);
|
|
50
|
-
(0, _data.register)(store);
|
|
51
|
-
//# sourceMappingURL=index.js.map
|
|
46
|
+
const store = (0, import_data.createReduxStore)(STORE_NAME, storeConfig);
|
|
47
|
+
(0, import_data.register)(store);
|
|
48
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
49
|
+
0 && (module.exports = {
|
|
50
|
+
store,
|
|
51
|
+
storeConfig
|
|
52
|
+
});
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
package/build/store/index.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/store/index.js"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { createReduxStore, register } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport reducer from './reducer';\nimport * as selectors from './selectors';\nimport * as actions from './actions';\nimport * as resolvers from './resolvers';\n\n/**\n * Module Constants\n */\nconst STORE_NAME = 'core/block-directory';\n\n/**\n * Block editor data store configuration.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#registerStore\n *\n * @type {Object}\n */\nexport const storeConfig = {\n\treducer,\n\tselectors,\n\tactions,\n\tresolvers,\n};\n\n/**\n * Store definition for the block directory namespace.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore\n *\n * @type {Object}\n */\nexport const store = createReduxStore( STORE_NAME, storeConfig );\n\nregister( store );\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAA2C;AAK3C,qBAAoB;AACpB,gBAA2B;AAC3B,cAAyB;AACzB,gBAA2B;AAK3B,MAAM,aAAa;AASZ,MAAM,cAAc;AAAA,EAC1B,wBAAAA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AASO,MAAM,YAAQ,8BAAkB,YAAY,WAAY;AAAA,IAE/D,sBAAU,KAAM;",
|
|
6
|
+
"names": ["reducer"]
|
|
7
|
+
}
|
|
@@ -1,80 +1,73 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
Object.
|
|
5
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var load_assets_exports = {};
|
|
29
|
+
__export(load_assets_exports, {
|
|
30
|
+
loadAsset: () => loadAsset,
|
|
31
|
+
loadAssets: () => loadAssets
|
|
6
32
|
});
|
|
7
|
-
exports
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* WordPress dependencies
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Load an asset for a block.
|
|
16
|
-
*
|
|
17
|
-
* This function returns a Promise that will resolve once the asset is loaded,
|
|
18
|
-
* or in the case of Stylesheets and Inline JavaScript, will resolve immediately.
|
|
19
|
-
*
|
|
20
|
-
* @param {HTMLElement} el A HTML Element asset to inject.
|
|
21
|
-
*
|
|
22
|
-
* @return {Promise} Promise which will resolve when the asset is loaded.
|
|
23
|
-
*/
|
|
24
|
-
const loadAsset = el => {
|
|
33
|
+
module.exports = __toCommonJS(load_assets_exports);
|
|
34
|
+
var import_api_fetch = __toESM(require("@wordpress/api-fetch"));
|
|
35
|
+
const loadAsset = (el) => {
|
|
25
36
|
return new Promise((resolve, reject) => {
|
|
26
|
-
/*
|
|
27
|
-
* Reconstruct the passed element, this is required as inserting the Node directly
|
|
28
|
-
* won't always fire the required onload events, even if the asset wasn't already loaded.
|
|
29
|
-
*/
|
|
30
37
|
const newNode = document.createElement(el.nodeName);
|
|
31
|
-
[
|
|
38
|
+
["id", "rel", "src", "href", "type"].forEach((attr) => {
|
|
32
39
|
if (el[attr]) {
|
|
33
40
|
newNode[attr] = el[attr];
|
|
34
41
|
}
|
|
35
42
|
});
|
|
36
|
-
|
|
37
|
-
// Append inline <script> contents.
|
|
38
43
|
if (el.innerHTML) {
|
|
39
44
|
newNode.appendChild(document.createTextNode(el.innerHTML));
|
|
40
45
|
}
|
|
41
46
|
newNode.onload = () => resolve(true);
|
|
42
|
-
newNode.onerror = () => reject(new Error(
|
|
47
|
+
newNode.onerror = () => reject(new Error("Error loading asset."));
|
|
43
48
|
document.body.appendChild(newNode);
|
|
44
|
-
|
|
45
|
-
// Resolve Stylesheets and Inline JavaScript immediately.
|
|
46
|
-
if ('link' === newNode.nodeName.toLowerCase() || 'script' === newNode.nodeName.toLowerCase() && !newNode.src) {
|
|
49
|
+
if ("link" === newNode.nodeName.toLowerCase() || "script" === newNode.nodeName.toLowerCase() && !newNode.src) {
|
|
47
50
|
resolve();
|
|
48
51
|
}
|
|
49
52
|
});
|
|
50
53
|
};
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Load the asset files for a block
|
|
54
|
-
*/
|
|
55
|
-
exports.loadAsset = loadAsset;
|
|
56
54
|
async function loadAssets() {
|
|
57
|
-
|
|
58
|
-
* Fetch the current URL (post-new.php, or post.php?post=1&action=edit) and compare the
|
|
59
|
-
* JavaScript and CSS assets loaded between the pages. This imports the required assets
|
|
60
|
-
* for the block into the current page while not requiring that we know them up-front.
|
|
61
|
-
* In the future this can be improved by reliance upon block.json and/or a script-loader
|
|
62
|
-
* dependency API.
|
|
63
|
-
*/
|
|
64
|
-
const response = await (0, _apiFetch.default)({
|
|
55
|
+
const response = await (0, import_api_fetch.default)({
|
|
65
56
|
url: document.location.href,
|
|
66
57
|
parse: false
|
|
67
58
|
});
|
|
68
59
|
const data = await response.text();
|
|
69
|
-
const doc = new window.DOMParser().parseFromString(data,
|
|
70
|
-
const newAssets = Array.from(
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
* Load each asset in order, as they may depend upon an earlier loaded script.
|
|
74
|
-
* Stylesheets and Inline Scripts will resolve immediately upon insertion.
|
|
75
|
-
*/
|
|
60
|
+
const doc = new window.DOMParser().parseFromString(data, "text/html");
|
|
61
|
+
const newAssets = Array.from(
|
|
62
|
+
doc.querySelectorAll('link[rel="stylesheet"],script')
|
|
63
|
+
).filter((asset) => asset.id && !document.getElementById(asset.id));
|
|
76
64
|
for (const newAsset of newAssets) {
|
|
77
65
|
await loadAsset(newAsset);
|
|
78
66
|
}
|
|
79
67
|
}
|
|
80
|
-
|
|
68
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
69
|
+
0 && (module.exports = {
|
|
70
|
+
loadAsset,
|
|
71
|
+
loadAssets
|
|
72
|
+
});
|
|
73
|
+
//# sourceMappingURL=load-assets.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/store/load-assets.js"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport apiFetch from '@wordpress/api-fetch';\n\n/**\n * Load an asset for a block.\n *\n * This function returns a Promise that will resolve once the asset is loaded,\n * or in the case of Stylesheets and Inline JavaScript, will resolve immediately.\n *\n * @param {HTMLElement} el A HTML Element asset to inject.\n *\n * @return {Promise} Promise which will resolve when the asset is loaded.\n */\nexport const loadAsset = ( el ) => {\n\treturn new Promise( ( resolve, reject ) => {\n\t\t/*\n\t\t * Reconstruct the passed element, this is required as inserting the Node directly\n\t\t * won't always fire the required onload events, even if the asset wasn't already loaded.\n\t\t */\n\t\tconst newNode = document.createElement( el.nodeName );\n\n\t\t[ 'id', 'rel', 'src', 'href', 'type' ].forEach( ( attr ) => {\n\t\t\tif ( el[ attr ] ) {\n\t\t\t\tnewNode[ attr ] = el[ attr ];\n\t\t\t}\n\t\t} );\n\n\t\t// Append inline <script> contents.\n\t\tif ( el.innerHTML ) {\n\t\t\tnewNode.appendChild( document.createTextNode( el.innerHTML ) );\n\t\t}\n\n\t\tnewNode.onload = () => resolve( true );\n\t\tnewNode.onerror = () => reject( new Error( 'Error loading asset.' ) );\n\n\t\tdocument.body.appendChild( newNode );\n\n\t\t// Resolve Stylesheets and Inline JavaScript immediately.\n\t\tif (\n\t\t\t'link' === newNode.nodeName.toLowerCase() ||\n\t\t\t( 'script' === newNode.nodeName.toLowerCase() && ! newNode.src )\n\t\t) {\n\t\t\tresolve();\n\t\t}\n\t} );\n};\n\n/**\n * Load the asset files for a block\n */\nexport async function loadAssets() {\n\t/*\n\t * Fetch the current URL (post-new.php, or post.php?post=1&action=edit) and compare the\n\t * JavaScript and CSS assets loaded between the pages. This imports the required assets\n\t * for the block into the current page while not requiring that we know them up-front.\n\t * In the future this can be improved by reliance upon block.json and/or a script-loader\n\t * dependency API.\n\t */\n\tconst response = await apiFetch( {\n\t\turl: document.location.href,\n\t\tparse: false,\n\t} );\n\n\tconst data = await response.text();\n\n\tconst doc = new window.DOMParser().parseFromString( data, 'text/html' );\n\n\tconst newAssets = Array.from(\n\t\tdoc.querySelectorAll( 'link[rel=\"stylesheet\"],script' )\n\t).filter( ( asset ) => asset.id && ! document.getElementById( asset.id ) );\n\n\t/*\n\t * Load each asset in order, as they may depend upon an earlier loaded script.\n\t * Stylesheets and Inline Scripts will resolve immediately upon insertion.\n\t */\n\tfor ( const newAsset of newAssets ) {\n\t\tawait loadAsset( newAsset );\n\t}\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,uBAAqB;AAYd,MAAM,YAAY,CAAE,OAAQ;AAClC,SAAO,IAAI,QAAS,CAAE,SAAS,WAAY;AAK1C,UAAM,UAAU,SAAS,cAAe,GAAG,QAAS;AAEpD,KAAE,MAAM,OAAO,OAAO,QAAQ,MAAO,EAAE,QAAS,CAAE,SAAU;AAC3D,UAAK,GAAI,IAAK,GAAI;AACjB,gBAAS,IAAK,IAAI,GAAI,IAAK;AAAA,MAC5B;AAAA,IACD,CAAE;AAGF,QAAK,GAAG,WAAY;AACnB,cAAQ,YAAa,SAAS,eAAgB,GAAG,SAAU,CAAE;AAAA,IAC9D;AAEA,YAAQ,SAAS,MAAM,QAAS,IAAK;AACrC,YAAQ,UAAU,MAAM,OAAQ,IAAI,MAAO,sBAAuB,CAAE;AAEpE,aAAS,KAAK,YAAa,OAAQ;AAGnC,QACC,WAAW,QAAQ,SAAS,YAAY,KACtC,aAAa,QAAQ,SAAS,YAAY,KAAK,CAAE,QAAQ,KAC1D;AACD,cAAQ;AAAA,IACT;AAAA,EACD,CAAE;AACH;AAKA,eAAsB,aAAa;AAQlC,QAAM,WAAW,UAAM,iBAAAA,SAAU;AAAA,IAChC,KAAK,SAAS,SAAS;AAAA,IACvB,OAAO;AAAA,EACR,CAAE;AAEF,QAAM,OAAO,MAAM,SAAS,KAAK;AAEjC,QAAM,MAAM,IAAI,OAAO,UAAU,EAAE,gBAAiB,MAAM,WAAY;AAEtE,QAAM,YAAY,MAAM;AAAA,IACvB,IAAI,iBAAkB,+BAAgC;AAAA,EACvD,EAAE,OAAQ,CAAE,UAAW,MAAM,MAAM,CAAE,SAAS,eAAgB,MAAM,EAAG,CAAE;AAMzE,aAAY,YAAY,WAAY;AACnC,UAAM,UAAW,QAAS;AAAA,EAC3B;AACD;",
|
|
6
|
+
"names": ["apiFetch"]
|
|
7
|
+
}
|
package/build/store/reducer.js
CHANGED
|
@@ -1,32 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var reducer_exports = {};
|
|
19
|
+
__export(reducer_exports, {
|
|
20
|
+
blockManagement: () => blockManagement,
|
|
21
|
+
default: () => reducer_default,
|
|
22
|
+
downloadableBlocks: () => downloadableBlocks,
|
|
23
|
+
errorNotices: () => errorNotices
|
|
5
24
|
});
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
/**
|
|
9
|
-
* WordPress dependencies
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Reducer returning an array of downloadable blocks.
|
|
14
|
-
*
|
|
15
|
-
* @param {Object} state Current state.
|
|
16
|
-
* @param {Object} action Dispatched action.
|
|
17
|
-
*
|
|
18
|
-
* @return {Object} Updated state.
|
|
19
|
-
*/
|
|
25
|
+
module.exports = __toCommonJS(reducer_exports);
|
|
26
|
+
var import_data = require("@wordpress/data");
|
|
20
27
|
const downloadableBlocks = (state = {}, action) => {
|
|
21
28
|
switch (action.type) {
|
|
22
|
-
case
|
|
29
|
+
case "FETCH_DOWNLOADABLE_BLOCKS":
|
|
23
30
|
return {
|
|
24
31
|
...state,
|
|
25
32
|
[action.filterValue]: {
|
|
26
33
|
isRequesting: true
|
|
27
34
|
}
|
|
28
35
|
};
|
|
29
|
-
case
|
|
36
|
+
case "RECEIVE_DOWNLOADABLE_BLOCKS":
|
|
30
37
|
return {
|
|
31
38
|
...state,
|
|
32
39
|
[action.filterValue]: {
|
|
@@ -37,32 +44,27 @@ const downloadableBlocks = (state = {}, action) => {
|
|
|
37
44
|
}
|
|
38
45
|
return state;
|
|
39
46
|
};
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Reducer managing the installation and deletion of blocks.
|
|
43
|
-
*
|
|
44
|
-
* @param {Object} state Current state.
|
|
45
|
-
* @param {Object} action Dispatched action.
|
|
46
|
-
*
|
|
47
|
-
* @return {Object} Updated state.
|
|
48
|
-
*/
|
|
49
|
-
exports.downloadableBlocks = downloadableBlocks;
|
|
50
47
|
const blockManagement = (state = {
|
|
51
48
|
installedBlockTypes: [],
|
|
52
49
|
isInstalling: {}
|
|
53
50
|
}, action) => {
|
|
54
51
|
switch (action.type) {
|
|
55
|
-
case
|
|
52
|
+
case "ADD_INSTALLED_BLOCK_TYPE":
|
|
56
53
|
return {
|
|
57
54
|
...state,
|
|
58
|
-
installedBlockTypes: [
|
|
55
|
+
installedBlockTypes: [
|
|
56
|
+
...state.installedBlockTypes,
|
|
57
|
+
action.item
|
|
58
|
+
]
|
|
59
59
|
};
|
|
60
|
-
case
|
|
60
|
+
case "REMOVE_INSTALLED_BLOCK_TYPE":
|
|
61
61
|
return {
|
|
62
62
|
...state,
|
|
63
|
-
installedBlockTypes: state.installedBlockTypes.filter(
|
|
63
|
+
installedBlockTypes: state.installedBlockTypes.filter(
|
|
64
|
+
(blockType) => blockType.name !== action.item.name
|
|
65
|
+
)
|
|
64
66
|
};
|
|
65
|
-
case
|
|
67
|
+
case "SET_INSTALLING_BLOCK":
|
|
66
68
|
return {
|
|
67
69
|
...state,
|
|
68
70
|
isInstalling: {
|
|
@@ -73,19 +75,9 @@ const blockManagement = (state = {
|
|
|
73
75
|
}
|
|
74
76
|
return state;
|
|
75
77
|
};
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Reducer returning an object of error notices.
|
|
79
|
-
*
|
|
80
|
-
* @param {Object} state Current state.
|
|
81
|
-
* @param {Object} action Dispatched action.
|
|
82
|
-
*
|
|
83
|
-
* @return {Object} Updated state.
|
|
84
|
-
*/
|
|
85
|
-
exports.blockManagement = blockManagement;
|
|
86
78
|
const errorNotices = (state = {}, action) => {
|
|
87
79
|
switch (action.type) {
|
|
88
|
-
case
|
|
80
|
+
case "SET_ERROR_NOTICE":
|
|
89
81
|
return {
|
|
90
82
|
...state,
|
|
91
83
|
[action.blockId]: {
|
|
@@ -93,19 +85,21 @@ const errorNotices = (state = {}, action) => {
|
|
|
93
85
|
isFatal: action.isFatal
|
|
94
86
|
}
|
|
95
87
|
};
|
|
96
|
-
case
|
|
97
|
-
const {
|
|
98
|
-
[action.blockId]: blockId,
|
|
99
|
-
...restState
|
|
100
|
-
} = state;
|
|
88
|
+
case "CLEAR_ERROR_NOTICE":
|
|
89
|
+
const { [action.blockId]: blockId, ...restState } = state;
|
|
101
90
|
return restState;
|
|
102
91
|
}
|
|
103
92
|
return state;
|
|
104
93
|
};
|
|
105
|
-
|
|
106
|
-
var _default = exports.default = (0, _data.combineReducers)({
|
|
94
|
+
var reducer_default = (0, import_data.combineReducers)({
|
|
107
95
|
downloadableBlocks,
|
|
108
96
|
blockManagement,
|
|
109
97
|
errorNotices
|
|
110
98
|
});
|
|
111
|
-
|
|
99
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
100
|
+
0 && (module.exports = {
|
|
101
|
+
blockManagement,
|
|
102
|
+
downloadableBlocks,
|
|
103
|
+
errorNotices
|
|
104
|
+
});
|
|
105
|
+
//# sourceMappingURL=reducer.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/store/reducer.js"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { combineReducers } from '@wordpress/data';\n\n/**\n * Reducer returning an array of downloadable blocks.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n *\n * @return {Object} Updated state.\n */\nexport const downloadableBlocks = ( state = {}, action ) => {\n\tswitch ( action.type ) {\n\t\tcase 'FETCH_DOWNLOADABLE_BLOCKS':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.filterValue ]: {\n\t\t\t\t\tisRequesting: true,\n\t\t\t\t},\n\t\t\t};\n\t\tcase 'RECEIVE_DOWNLOADABLE_BLOCKS':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.filterValue ]: {\n\t\t\t\t\tresults: action.downloadableBlocks,\n\t\t\t\t\tisRequesting: false,\n\t\t\t\t},\n\t\t\t};\n\t}\n\treturn state;\n};\n\n/**\n * Reducer managing the installation and deletion of blocks.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n *\n * @return {Object} Updated state.\n */\nexport const blockManagement = (\n\tstate = {\n\t\tinstalledBlockTypes: [],\n\t\tisInstalling: {},\n\t},\n\taction\n) => {\n\tswitch ( action.type ) {\n\t\tcase 'ADD_INSTALLED_BLOCK_TYPE':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tinstalledBlockTypes: [\n\t\t\t\t\t...state.installedBlockTypes,\n\t\t\t\t\taction.item,\n\t\t\t\t],\n\t\t\t};\n\t\tcase 'REMOVE_INSTALLED_BLOCK_TYPE':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tinstalledBlockTypes: state.installedBlockTypes.filter(\n\t\t\t\t\t( blockType ) => blockType.name !== action.item.name\n\t\t\t\t),\n\t\t\t};\n\t\tcase 'SET_INSTALLING_BLOCK':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tisInstalling: {\n\t\t\t\t\t...state.isInstalling,\n\t\t\t\t\t[ action.blockId ]: action.isInstalling,\n\t\t\t\t},\n\t\t\t};\n\t}\n\treturn state;\n};\n\n/**\n * Reducer returning an object of error notices.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n *\n * @return {Object} Updated state.\n */\nexport const errorNotices = ( state = {}, action ) => {\n\tswitch ( action.type ) {\n\t\tcase 'SET_ERROR_NOTICE':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.blockId ]: {\n\t\t\t\t\tmessage: action.message,\n\t\t\t\t\tisFatal: action.isFatal,\n\t\t\t\t},\n\t\t\t};\n\t\tcase 'CLEAR_ERROR_NOTICE':\n\t\t\tconst { [ action.blockId ]: blockId, ...restState } = state;\n\t\t\treturn restState;\n\t}\n\treturn state;\n};\n\nexport default combineReducers( {\n\tdownloadableBlocks,\n\tblockManagement,\n\terrorNotices,\n} );\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAgC;AAUzB,MAAM,qBAAqB,CAAE,QAAQ,CAAC,GAAG,WAAY;AAC3D,UAAS,OAAO,MAAO;AAAA,IACtB,KAAK;AACJ,aAAO;AAAA,QACN,GAAG;AAAA,QACH,CAAE,OAAO,WAAY,GAAG;AAAA,UACvB,cAAc;AAAA,QACf;AAAA,MACD;AAAA,IACD,KAAK;AACJ,aAAO;AAAA,QACN,GAAG;AAAA,QACH,CAAE,OAAO,WAAY,GAAG;AAAA,UACvB,SAAS,OAAO;AAAA,UAChB,cAAc;AAAA,QACf;AAAA,MACD;AAAA,EACF;AACA,SAAO;AACR;AAUO,MAAM,kBAAkB,CAC9B,QAAQ;AAAA,EACP,qBAAqB,CAAC;AAAA,EACtB,cAAc,CAAC;AAChB,GACA,WACI;AACJ,UAAS,OAAO,MAAO;AAAA,IACtB,KAAK;AACJ,aAAO;AAAA,QACN,GAAG;AAAA,QACH,qBAAqB;AAAA,UACpB,GAAG,MAAM;AAAA,UACT,OAAO;AAAA,QACR;AAAA,MACD;AAAA,IACD,KAAK;AACJ,aAAO;AAAA,QACN,GAAG;AAAA,QACH,qBAAqB,MAAM,oBAAoB;AAAA,UAC9C,CAAE,cAAe,UAAU,SAAS,OAAO,KAAK;AAAA,QACjD;AAAA,MACD;AAAA,IACD,KAAK;AACJ,aAAO;AAAA,QACN,GAAG;AAAA,QACH,cAAc;AAAA,UACb,GAAG,MAAM;AAAA,UACT,CAAE,OAAO,OAAQ,GAAG,OAAO;AAAA,QAC5B;AAAA,MACD;AAAA,EACF;AACA,SAAO;AACR;AAUO,MAAM,eAAe,CAAE,QAAQ,CAAC,GAAG,WAAY;AACrD,UAAS,OAAO,MAAO;AAAA,IACtB,KAAK;AACJ,aAAO;AAAA,QACN,GAAG;AAAA,QACH,CAAE,OAAO,OAAQ,GAAG;AAAA,UACnB,SAAS,OAAO;AAAA,UAChB,SAAS,OAAO;AAAA,QACjB;AAAA,MACD;AAAA,IACD,KAAK;AACJ,YAAM,EAAE,CAAE,OAAO,OAAQ,GAAG,SAAS,GAAG,UAAU,IAAI;AACtD,aAAO;AAAA,EACT;AACA,SAAO;AACR;AAEA,IAAO,sBAAQ,6BAAiB;AAAA,EAC/B;AAAA,EACA;AAAA,EACA;AACD,CAAE;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/build/store/resolvers.js
CHANGED
|
@@ -1,41 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
Object.
|
|
5
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var resolvers_exports = {};
|
|
29
|
+
__export(resolvers_exports, {
|
|
30
|
+
getDownloadableBlocks: () => getDownloadableBlocks
|
|
6
31
|
});
|
|
7
|
-
exports
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
* External dependencies
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* WordPress dependencies
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Internal dependencies
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
const getDownloadableBlocks = filterValue => async ({
|
|
24
|
-
dispatch
|
|
25
|
-
}) => {
|
|
32
|
+
module.exports = __toCommonJS(resolvers_exports);
|
|
33
|
+
var import_change_case = require("change-case");
|
|
34
|
+
var import_api_fetch = __toESM(require("@wordpress/api-fetch"));
|
|
35
|
+
var import_actions = require("./actions");
|
|
36
|
+
const getDownloadableBlocks = (filterValue) => async ({ dispatch }) => {
|
|
26
37
|
if (!filterValue) {
|
|
27
38
|
return;
|
|
28
39
|
}
|
|
29
40
|
try {
|
|
30
|
-
dispatch((0,
|
|
31
|
-
const results = await (0,
|
|
41
|
+
dispatch((0, import_actions.fetchDownloadableBlocks)(filterValue));
|
|
42
|
+
const results = await (0, import_api_fetch.default)({
|
|
32
43
|
path: `wp/v2/block-directory/search?term=${filterValue}`
|
|
33
44
|
});
|
|
34
|
-
const blocks = results.map(
|
|
35
|
-
|
|
45
|
+
const blocks = results.map(
|
|
46
|
+
(result) => Object.fromEntries(
|
|
47
|
+
Object.entries(result).map(([key, value]) => [
|
|
48
|
+
(0, import_change_case.camelCase)(key),
|
|
49
|
+
value
|
|
50
|
+
])
|
|
51
|
+
)
|
|
52
|
+
);
|
|
53
|
+
dispatch((0, import_actions.receiveDownloadableBlocks)(blocks, filterValue));
|
|
36
54
|
} catch {
|
|
37
|
-
dispatch((0,
|
|
55
|
+
dispatch((0, import_actions.receiveDownloadableBlocks)([], filterValue));
|
|
38
56
|
}
|
|
39
57
|
};
|
|
40
|
-
|
|
41
|
-
|
|
58
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
59
|
+
0 && (module.exports = {
|
|
60
|
+
getDownloadableBlocks
|
|
61
|
+
});
|
|
62
|
+
//# sourceMappingURL=resolvers.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/store/resolvers.js"],
|
|
4
|
+
"sourcesContent": ["/**\n * External dependencies\n */\nimport { camelCase } from 'change-case';\n\n/**\n * WordPress dependencies\n */\nimport apiFetch from '@wordpress/api-fetch';\n\n/**\n * Internal dependencies\n */\nimport { fetchDownloadableBlocks, receiveDownloadableBlocks } from './actions';\n\nexport const getDownloadableBlocks =\n\t( filterValue ) =>\n\tasync ( { dispatch } ) => {\n\t\tif ( ! filterValue ) {\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tdispatch( fetchDownloadableBlocks( filterValue ) );\n\t\t\tconst results = await apiFetch( {\n\t\t\t\tpath: `wp/v2/block-directory/search?term=${ filterValue }`,\n\t\t\t} );\n\t\t\tconst blocks = results.map( ( result ) =>\n\t\t\t\tObject.fromEntries(\n\t\t\t\t\tObject.entries( result ).map( ( [ key, value ] ) => [\n\t\t\t\t\t\tcamelCase( key ),\n\t\t\t\t\t\tvalue,\n\t\t\t\t\t] )\n\t\t\t\t)\n\t\t\t);\n\n\t\t\tdispatch( receiveDownloadableBlocks( blocks, filterValue ) );\n\t\t} catch {\n\t\t\tdispatch( receiveDownloadableBlocks( [], filterValue ) );\n\t\t}\n\t};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,yBAA0B;AAK1B,uBAAqB;AAKrB,qBAAmE;AAE5D,MAAM,wBACZ,CAAE,gBACF,OAAQ,EAAE,SAAS,MAAO;AACzB,MAAK,CAAE,aAAc;AACpB;AAAA,EACD;AAEA,MAAI;AACH,iBAAU,wCAAyB,WAAY,CAAE;AACjD,UAAM,UAAU,UAAM,iBAAAA,SAAU;AAAA,MAC/B,MAAM,qCAAsC,WAAY;AAAA,IACzD,CAAE;AACF,UAAM,SAAS,QAAQ;AAAA,MAAK,CAAE,WAC7B,OAAO;AAAA,QACN,OAAO,QAAS,MAAO,EAAE,IAAK,CAAE,CAAE,KAAK,KAAM,MAAO;AAAA,cACnD,8BAAW,GAAI;AAAA,UACf;AAAA,QACD,CAAE;AAAA,MACH;AAAA,IACD;AAEA,iBAAU,0CAA2B,QAAQ,WAAY,CAAE;AAAA,EAC5D,QAAQ;AACP,iBAAU,0CAA2B,CAAC,GAAG,WAAY,CAAE;AAAA,EACxD;AACD;",
|
|
6
|
+
"names": ["apiFetch"]
|
|
7
|
+
}
|