@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
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/compact-list/index.js"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport DownloadableBlockIcon from '../downloadable-block-icon';\n\nexport default function CompactList( { items } ) {\n\tif ( ! items.length ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<ul className=\"block-directory-compact-list\">\n\t\t\t{ items.map( ( { icon, id, title, author } ) => (\n\t\t\t\t<li key={ id } className=\"block-directory-compact-list__item\">\n\t\t\t\t\t<DownloadableBlockIcon icon={ icon } title={ title } />\n\n\t\t\t\t\t<div className=\"block-directory-compact-list__item-details\">\n\t\t\t\t\t\t<div className=\"block-directory-compact-list__item-title\">\n\t\t\t\t\t\t\t{ title }\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div className=\"block-directory-compact-list__item-author\">\n\t\t\t\t\t\t\t{ sprintf(\n\t\t\t\t\t\t\t\t/* translators: %s: Name of the block author. */\n\t\t\t\t\t\t\t\t__( 'By %s' ),\n\t\t\t\t\t\t\t\tauthor\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t) ) }\n\t\t</ul>\n\t);\n}\n"],
|
|
5
|
+
"mappings": "AAmBK,cAEA,YAFA;AAhBL,SAAS,IAAI,eAAe;AAK5B,OAAO,2BAA2B;AAEnB,SAAR,YAA8B,EAAE,MAAM,GAAI;AAChD,MAAK,CAAE,MAAM,QAAS;AACrB,WAAO;AAAA,EACR;AAEA,SACC,oBAAC,QAAG,WAAU,gCACX,gBAAM,IAAK,CAAE,EAAE,MAAM,IAAI,OAAO,OAAO,MACxC,qBAAC,QAAc,WAAU,sCACxB;AAAA,wBAAC,yBAAsB,MAAc,OAAgB;AAAA,IAErD,qBAAC,SAAI,WAAU,8CACd;AAAA,0BAAC,SAAI,WAAU,4CACZ,iBACH;AAAA,MACA,oBAAC,SAAI,WAAU,6CACZ;AAAA;AAAA,QAED,GAAI,OAAQ;AAAA,QACZ;AAAA,MACD,GACD;AAAA,OACD;AAAA,OAdS,EAeV,CACC,GACH;AAEF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,21 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function DownloadableBlockIcon({
|
|
7
|
-
icon
|
|
8
|
-
}) {
|
|
9
|
-
const className = 'block-directory-downloadable-block-icon';
|
|
10
|
-
return icon.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/) !== null ? /*#__PURE__*/_jsx("img", {
|
|
11
|
-
className: className,
|
|
12
|
-
src: icon,
|
|
13
|
-
alt: ""
|
|
14
|
-
}) : /*#__PURE__*/_jsx(BlockIcon, {
|
|
15
|
-
className: className,
|
|
16
|
-
icon: icon,
|
|
17
|
-
showColors: true
|
|
18
|
-
});
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { BlockIcon } from "@wordpress/block-editor";
|
|
3
|
+
function DownloadableBlockIcon({ icon }) {
|
|
4
|
+
const className = "block-directory-downloadable-block-icon";
|
|
5
|
+
return icon.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/) !== null ? /* @__PURE__ */ jsx("img", { className, src: icon, alt: "" }) : /* @__PURE__ */ jsx(BlockIcon, { className, icon, showColors: true });
|
|
19
6
|
}
|
|
20
|
-
|
|
21
|
-
|
|
7
|
+
var downloadable_block_icon_default = DownloadableBlockIcon;
|
|
8
|
+
export {
|
|
9
|
+
downloadable_block_icon_default as default
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/downloadable-block-icon/index.js"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { BlockIcon } from '@wordpress/block-editor';\n\nfunction DownloadableBlockIcon( { icon } ) {\n\tconst className = 'block-directory-downloadable-block-icon';\n\treturn icon.match( /\\.(jpeg|jpg|gif|png|svg)(?:\\?.*)?$/ ) !== null ? (\n\t\t<img className={ className } src={ icon } alt=\"\" />\n\t) : (\n\t\t<BlockIcon className={ className } icon={ icon } showColors />\n\t);\n}\n\nexport default DownloadableBlockIcon;\n"],
|
|
5
|
+
"mappings": "AAQE;AALF,SAAS,iBAAiB;AAE1B,SAAS,sBAAuB,EAAE,KAAK,GAAI;AAC1C,QAAM,YAAY;AAClB,SAAO,KAAK,MAAO,oCAAqC,MAAM,OAC7D,oBAAC,SAAI,WAAwB,KAAM,MAAO,KAAI,IAAG,IAEjD,oBAAC,aAAU,WAAwB,MAAc,YAAU,MAAC;AAE9D;AAEA,IAAO,kCAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,148 +1,117 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
import BlockRatings from '../block-ratings';
|
|
20
|
-
import DownloadableBlockIcon from '../downloadable-block-icon';
|
|
21
|
-
import DownloadableBlockNotice from '../downloadable-block-notice';
|
|
22
|
-
import { store as blockDirectoryStore } from '../../store';
|
|
23
|
-
|
|
24
|
-
// Return the appropriate block item label, given the block data and status.
|
|
25
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
26
|
-
function getDownloadableBlockLabel({
|
|
27
|
-
title,
|
|
28
|
-
rating,
|
|
29
|
-
ratingCount
|
|
30
|
-
}, {
|
|
31
|
-
hasNotice,
|
|
32
|
-
isInstalled,
|
|
33
|
-
isInstalling
|
|
34
|
-
}) {
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { __, _n, sprintf } from "@wordpress/i18n";
|
|
4
|
+
import {
|
|
5
|
+
Tooltip,
|
|
6
|
+
Spinner,
|
|
7
|
+
VisuallyHidden,
|
|
8
|
+
Composite
|
|
9
|
+
} from "@wordpress/components";
|
|
10
|
+
import { createInterpolateElement } from "@wordpress/element";
|
|
11
|
+
import { decodeEntities } from "@wordpress/html-entities";
|
|
12
|
+
import { getBlockType } from "@wordpress/blocks";
|
|
13
|
+
import { useSelect } from "@wordpress/data";
|
|
14
|
+
import BlockRatings from "../block-ratings";
|
|
15
|
+
import DownloadableBlockIcon from "../downloadable-block-icon";
|
|
16
|
+
import DownloadableBlockNotice from "../downloadable-block-notice";
|
|
17
|
+
import { store as blockDirectoryStore } from "../../store";
|
|
18
|
+
function getDownloadableBlockLabel({ title, rating, ratingCount }, { hasNotice, isInstalled, isInstalling }) {
|
|
35
19
|
const stars = Math.round(rating / 0.5) * 0.5;
|
|
36
20
|
if (!isInstalled && hasNotice) {
|
|
37
|
-
|
|
38
|
-
return sprintf('Retry installing %s.', decodeEntities(title));
|
|
21
|
+
return sprintf("Retry installing %s.", decodeEntities(title));
|
|
39
22
|
}
|
|
40
23
|
if (isInstalled) {
|
|
41
|
-
|
|
42
|
-
return sprintf('Add %s.', decodeEntities(title));
|
|
24
|
+
return sprintf("Add %s.", decodeEntities(title));
|
|
43
25
|
}
|
|
44
26
|
if (isInstalling) {
|
|
45
|
-
|
|
46
|
-
return sprintf('Installing %s.', decodeEntities(title));
|
|
27
|
+
return sprintf("Installing %s.", decodeEntities(title));
|
|
47
28
|
}
|
|
48
|
-
|
|
49
|
-
// No ratings yet, just use the title.
|
|
50
29
|
if (ratingCount < 1) {
|
|
51
|
-
|
|
52
|
-
return sprintf('Install %s.', decodeEntities(title));
|
|
30
|
+
return sprintf("Install %s.", decodeEntities(title));
|
|
53
31
|
}
|
|
54
|
-
return sprintf(
|
|
55
|
-
|
|
32
|
+
return sprintf(
|
|
33
|
+
/* translators: 1: block title, 2: average rating, 3: total ratings count. */
|
|
34
|
+
_n(
|
|
35
|
+
"Install %1$s. %2$s stars with %3$s review.",
|
|
36
|
+
"Install %1$s. %2$s stars with %3$s reviews.",
|
|
37
|
+
ratingCount
|
|
38
|
+
),
|
|
39
|
+
decodeEntities(title),
|
|
40
|
+
stars,
|
|
41
|
+
ratingCount
|
|
42
|
+
);
|
|
56
43
|
}
|
|
57
|
-
function DownloadableBlockListItem({
|
|
58
|
-
item
|
|
59
|
-
onClick
|
|
60
|
-
}) {
|
|
61
|
-
const {
|
|
62
|
-
author,
|
|
63
|
-
description,
|
|
64
|
-
icon,
|
|
65
|
-
rating,
|
|
66
|
-
title
|
|
67
|
-
} = item;
|
|
68
|
-
// getBlockType returns a block object if this block exists, or null if not.
|
|
44
|
+
function DownloadableBlockListItem({ item, onClick }) {
|
|
45
|
+
const { author, description, icon, rating, title } = item;
|
|
69
46
|
const isInstalled = !!getBlockType(item.name);
|
|
70
|
-
const {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
isInstallable: !hasFatal
|
|
85
|
-
};
|
|
86
|
-
}, [item]);
|
|
87
|
-
let statusText = '';
|
|
47
|
+
const { hasNotice, isInstalling, isInstallable } = useSelect(
|
|
48
|
+
(select) => {
|
|
49
|
+
const { getErrorNoticeForBlock, isInstalling: isBlockInstalling } = select(blockDirectoryStore);
|
|
50
|
+
const notice = getErrorNoticeForBlock(item.id);
|
|
51
|
+
const hasFatal = notice && notice.isFatal;
|
|
52
|
+
return {
|
|
53
|
+
hasNotice: !!notice,
|
|
54
|
+
isInstalling: isBlockInstalling(item.id),
|
|
55
|
+
isInstallable: !hasFatal
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
[item]
|
|
59
|
+
);
|
|
60
|
+
let statusText = "";
|
|
88
61
|
if (isInstalled) {
|
|
89
|
-
statusText = __(
|
|
62
|
+
statusText = __("Installed!");
|
|
90
63
|
} else if (isInstalling) {
|
|
91
|
-
statusText = __(
|
|
64
|
+
statusText = __("Installing\u2026");
|
|
92
65
|
}
|
|
93
66
|
const itemLabel = getDownloadableBlockLabel(item, {
|
|
94
67
|
hasNotice,
|
|
95
68
|
isInstalled,
|
|
96
69
|
isInstalling
|
|
97
70
|
});
|
|
98
|
-
return
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
71
|
+
return /* @__PURE__ */ jsx(Tooltip, { placement: "top", text: itemLabel, children: /* @__PURE__ */ jsxs(
|
|
72
|
+
Composite.Item,
|
|
73
|
+
{
|
|
74
|
+
className: clsx(
|
|
75
|
+
"block-directory-downloadable-block-list-item",
|
|
76
|
+
isInstalling && "is-installing"
|
|
77
|
+
),
|
|
103
78
|
accessibleWhenDisabled: true,
|
|
104
79
|
disabled: isInstalling || !isInstallable,
|
|
105
|
-
onClick: event => {
|
|
80
|
+
onClick: (event) => {
|
|
106
81
|
event.preventDefault();
|
|
107
82
|
onClick();
|
|
108
83
|
},
|
|
109
84
|
"aria-label": itemLabel,
|
|
110
85
|
type: "button",
|
|
111
86
|
role: "option",
|
|
112
|
-
children: [
|
|
113
|
-
className: "block-directory-downloadable-block-list-item__icon",
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
className: "block-directory-downloadable-block-list-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
})
|
|
132
|
-
})
|
|
133
|
-
})
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
className: "block-directory-downloadable-block-list-item__desc",
|
|
138
|
-
children: !!statusText ? statusText : decodeEntities(description)
|
|
139
|
-
}), isInstallable && !(isInstalled || isInstalling) && /*#__PURE__*/_jsx(VisuallyHidden, {
|
|
140
|
-
children: __('Install block')
|
|
141
|
-
})]
|
|
142
|
-
})]
|
|
143
|
-
})]
|
|
144
|
-
})
|
|
145
|
-
});
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ jsxs("div", { className: "block-directory-downloadable-block-list-item__icon", children: [
|
|
89
|
+
/* @__PURE__ */ jsx(DownloadableBlockIcon, { icon, title }),
|
|
90
|
+
isInstalling ? /* @__PURE__ */ jsx("span", { className: "block-directory-downloadable-block-list-item__spinner", children: /* @__PURE__ */ jsx(Spinner, {}) }) : /* @__PURE__ */ jsx(BlockRatings, { rating })
|
|
91
|
+
] }),
|
|
92
|
+
/* @__PURE__ */ jsxs("span", { className: "block-directory-downloadable-block-list-item__details", children: [
|
|
93
|
+
/* @__PURE__ */ jsx("span", { className: "block-directory-downloadable-block-list-item__title", children: createInterpolateElement(
|
|
94
|
+
sprintf(
|
|
95
|
+
/* translators: 1: block title. 2: author name. */
|
|
96
|
+
__("%1$s <span>by %2$s</span>"),
|
|
97
|
+
decodeEntities(title),
|
|
98
|
+
author
|
|
99
|
+
),
|
|
100
|
+
{
|
|
101
|
+
span: /* @__PURE__ */ jsx("span", { className: "block-directory-downloadable-block-list-item__author" })
|
|
102
|
+
}
|
|
103
|
+
) }),
|
|
104
|
+
hasNotice ? /* @__PURE__ */ jsx(DownloadableBlockNotice, { block: item }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
105
|
+
/* @__PURE__ */ jsx("span", { className: "block-directory-downloadable-block-list-item__desc", children: !!statusText ? statusText : decodeEntities(description) }),
|
|
106
|
+
isInstallable && !(isInstalled || isInstalling) && /* @__PURE__ */ jsx(VisuallyHidden, { children: __("Install block") })
|
|
107
|
+
] })
|
|
108
|
+
] })
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
) });
|
|
146
112
|
}
|
|
147
|
-
|
|
148
|
-
|
|
113
|
+
var downloadable_block_list_item_default = DownloadableBlockListItem;
|
|
114
|
+
export {
|
|
115
|
+
downloadable_block_list_item_default as default
|
|
116
|
+
};
|
|
117
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/downloadable-block-list-item/index.js"],
|
|
4
|
+
"sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { __, _n, sprintf } from '@wordpress/i18n';\nimport {\n\tTooltip,\n\tSpinner,\n\tVisuallyHidden,\n\tComposite,\n} from '@wordpress/components';\nimport { createInterpolateElement } from '@wordpress/element';\nimport { decodeEntities } from '@wordpress/html-entities';\nimport { getBlockType } from '@wordpress/blocks';\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport BlockRatings from '../block-ratings';\nimport DownloadableBlockIcon from '../downloadable-block-icon';\nimport DownloadableBlockNotice from '../downloadable-block-notice';\nimport { store as blockDirectoryStore } from '../../store';\n\n// Return the appropriate block item label, given the block data and status.\nfunction getDownloadableBlockLabel(\n\t{ title, rating, ratingCount },\n\t{ hasNotice, isInstalled, isInstalling }\n) {\n\tconst stars = Math.round( rating / 0.5 ) * 0.5;\n\n\tif ( ! isInstalled && hasNotice ) {\n\t\t/* translators: %s: block title */\n\t\treturn sprintf( 'Retry installing %s.', decodeEntities( title ) );\n\t}\n\n\tif ( isInstalled ) {\n\t\t/* translators: %s: block title */\n\t\treturn sprintf( 'Add %s.', decodeEntities( title ) );\n\t}\n\n\tif ( isInstalling ) {\n\t\t/* translators: %s: block title */\n\t\treturn sprintf( 'Installing %s.', decodeEntities( title ) );\n\t}\n\n\t// No ratings yet, just use the title.\n\tif ( ratingCount < 1 ) {\n\t\t/* translators: %s: block title */\n\t\treturn sprintf( 'Install %s.', decodeEntities( title ) );\n\t}\n\n\treturn sprintf(\n\t\t/* translators: 1: block title, 2: average rating, 3: total ratings count. */\n\t\t_n(\n\t\t\t'Install %1$s. %2$s stars with %3$s review.',\n\t\t\t'Install %1$s. %2$s stars with %3$s reviews.',\n\t\t\tratingCount\n\t\t),\n\t\tdecodeEntities( title ),\n\t\tstars,\n\t\tratingCount\n\t);\n}\n\nfunction DownloadableBlockListItem( { item, onClick } ) {\n\tconst { author, description, icon, rating, title } = item;\n\t// getBlockType returns a block object if this block exists, or null if not.\n\tconst isInstalled = !! getBlockType( item.name );\n\n\tconst { hasNotice, isInstalling, isInstallable } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getErrorNoticeForBlock, isInstalling: isBlockInstalling } =\n\t\t\t\tselect( blockDirectoryStore );\n\t\t\tconst notice = getErrorNoticeForBlock( item.id );\n\t\t\tconst hasFatal = notice && notice.isFatal;\n\t\t\treturn {\n\t\t\t\thasNotice: !! notice,\n\t\t\t\tisInstalling: isBlockInstalling( item.id ),\n\t\t\t\tisInstallable: ! hasFatal,\n\t\t\t};\n\t\t},\n\t\t[ item ]\n\t);\n\n\tlet statusText = '';\n\tif ( isInstalled ) {\n\t\tstatusText = __( 'Installed!' );\n\t} else if ( isInstalling ) {\n\t\tstatusText = __( 'Installing\u2026' );\n\t}\n\n\tconst itemLabel = getDownloadableBlockLabel( item, {\n\t\thasNotice,\n\t\tisInstalled,\n\t\tisInstalling,\n\t} );\n\n\treturn (\n\t\t<Tooltip placement=\"top\" text={ itemLabel }>\n\t\t\t<Composite.Item\n\t\t\t\tclassName={ clsx(\n\t\t\t\t\t'block-directory-downloadable-block-list-item',\n\t\t\t\t\tisInstalling && 'is-installing'\n\t\t\t\t) }\n\t\t\t\taccessibleWhenDisabled\n\t\t\t\tdisabled={ isInstalling || ! isInstallable }\n\t\t\t\tonClick={ ( event ) => {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\tonClick();\n\t\t\t\t} }\n\t\t\t\taria-label={ itemLabel }\n\t\t\t\ttype=\"button\"\n\t\t\t\trole=\"option\"\n\t\t\t>\n\t\t\t\t<div className=\"block-directory-downloadable-block-list-item__icon\">\n\t\t\t\t\t<DownloadableBlockIcon icon={ icon } title={ title } />\n\t\t\t\t\t{ isInstalling ? (\n\t\t\t\t\t\t<span className=\"block-directory-downloadable-block-list-item__spinner\">\n\t\t\t\t\t\t\t<Spinner />\n\t\t\t\t\t\t</span>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<BlockRatings rating={ rating } />\n\t\t\t\t\t) }\n\t\t\t\t</div>\n\t\t\t\t<span className=\"block-directory-downloadable-block-list-item__details\">\n\t\t\t\t\t<span className=\"block-directory-downloadable-block-list-item__title\">\n\t\t\t\t\t\t{ createInterpolateElement(\n\t\t\t\t\t\t\tsprintf(\n\t\t\t\t\t\t\t\t/* translators: 1: block title. 2: author name. */\n\t\t\t\t\t\t\t\t__( '%1$s <span>by %2$s</span>' ),\n\t\t\t\t\t\t\t\tdecodeEntities( title ),\n\t\t\t\t\t\t\t\tauthor\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tspan: (\n\t\t\t\t\t\t\t\t\t<span className=\"block-directory-downloadable-block-list-item__author\" />\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t) }\n\t\t\t\t\t</span>\n\t\t\t\t\t{ hasNotice ? (\n\t\t\t\t\t\t<DownloadableBlockNotice block={ item } />\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<span className=\"block-directory-downloadable-block-list-item__desc\">\n\t\t\t\t\t\t\t\t{ !! statusText\n\t\t\t\t\t\t\t\t\t? statusText\n\t\t\t\t\t\t\t\t\t: decodeEntities( description ) }\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t{ isInstallable &&\n\t\t\t\t\t\t\t\t! ( isInstalled || isInstalling ) && (\n\t\t\t\t\t\t\t\t\t<VisuallyHidden>\n\t\t\t\t\t\t\t\t\t\t{ __( 'Install block' ) }\n\t\t\t\t\t\t\t\t\t</VisuallyHidden>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t</>\n\t\t\t\t\t) }\n\t\t\t\t</span>\n\t\t\t</Composite.Item>\n\t\t</Tooltip>\n\t);\n}\n\nexport default DownloadableBlockListItem;\n"],
|
|
5
|
+
"mappings": "AAuHI,SA6BE,UA5BD,KADD;AApHJ,OAAO,UAAU;AAKjB,SAAS,IAAI,IAAI,eAAe;AAChC;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACM;AACP,SAAS,gCAAgC;AACzC,SAAS,sBAAsB;AAC/B,SAAS,oBAAoB;AAC7B,SAAS,iBAAiB;AAK1B,OAAO,kBAAkB;AACzB,OAAO,2BAA2B;AAClC,OAAO,6BAA6B;AACpC,SAAS,SAAS,2BAA2B;AAG7C,SAAS,0BACR,EAAE,OAAO,QAAQ,YAAY,GAC7B,EAAE,WAAW,aAAa,aAAa,GACtC;AACD,QAAM,QAAQ,KAAK,MAAO,SAAS,GAAI,IAAI;AAE3C,MAAK,CAAE,eAAe,WAAY;AAEjC,WAAO,QAAS,wBAAwB,eAAgB,KAAM,CAAE;AAAA,EACjE;AAEA,MAAK,aAAc;AAElB,WAAO,QAAS,WAAW,eAAgB,KAAM,CAAE;AAAA,EACpD;AAEA,MAAK,cAAe;AAEnB,WAAO,QAAS,kBAAkB,eAAgB,KAAM,CAAE;AAAA,EAC3D;AAGA,MAAK,cAAc,GAAI;AAEtB,WAAO,QAAS,eAAe,eAAgB,KAAM,CAAE;AAAA,EACxD;AAEA,SAAO;AAAA;AAAA,IAEN;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,IACD;AAAA,IACA,eAAgB,KAAM;AAAA,IACtB;AAAA,IACA;AAAA,EACD;AACD;AAEA,SAAS,0BAA2B,EAAE,MAAM,QAAQ,GAAI;AACvD,QAAM,EAAE,QAAQ,aAAa,MAAM,QAAQ,MAAM,IAAI;AAErD,QAAM,cAAc,CAAC,CAAE,aAAc,KAAK,IAAK;AAE/C,QAAM,EAAE,WAAW,cAAc,cAAc,IAAI;AAAA,IAClD,CAAE,WAAY;AACb,YAAM,EAAE,wBAAwB,cAAc,kBAAkB,IAC/D,OAAQ,mBAAoB;AAC7B,YAAM,SAAS,uBAAwB,KAAK,EAAG;AAC/C,YAAM,WAAW,UAAU,OAAO;AAClC,aAAO;AAAA,QACN,WAAW,CAAC,CAAE;AAAA,QACd,cAAc,kBAAmB,KAAK,EAAG;AAAA,QACzC,eAAe,CAAE;AAAA,MAClB;AAAA,IACD;AAAA,IACA,CAAE,IAAK;AAAA,EACR;AAEA,MAAI,aAAa;AACjB,MAAK,aAAc;AAClB,iBAAa,GAAI,YAAa;AAAA,EAC/B,WAAY,cAAe;AAC1B,iBAAa,GAAI,kBAAc;AAAA,EAChC;AAEA,QAAM,YAAY,0BAA2B,MAAM;AAAA,IAClD;AAAA,IACA;AAAA,IACA;AAAA,EACD,CAAE;AAEF,SACC,oBAAC,WAAQ,WAAU,OAAM,MAAO,WAC/B;AAAA,IAAC,UAAU;AAAA,IAAV;AAAA,MACA,WAAY;AAAA,QACX;AAAA,QACA,gBAAgB;AAAA,MACjB;AAAA,MACA,wBAAsB;AAAA,MACtB,UAAW,gBAAgB,CAAE;AAAA,MAC7B,SAAU,CAAE,UAAW;AACtB,cAAM,eAAe;AACrB,gBAAQ;AAAA,MACT;AAAA,MACA,cAAa;AAAA,MACb,MAAK;AAAA,MACL,MAAK;AAAA,MAEL;AAAA,6BAAC,SAAI,WAAU,sDACd;AAAA,8BAAC,yBAAsB,MAAc,OAAgB;AAAA,UACnD,eACD,oBAAC,UAAK,WAAU,yDACf,8BAAC,WAAQ,GACV,IAEA,oBAAC,gBAAa,QAAkB;AAAA,WAElC;AAAA,QACA,qBAAC,UAAK,WAAU,yDACf;AAAA,8BAAC,UAAK,WAAU,uDACb;AAAA,YACD;AAAA;AAAA,cAEC,GAAI,2BAA4B;AAAA,cAChC,eAAgB,KAAM;AAAA,cACtB;AAAA,YACD;AAAA,YACA;AAAA,cACC,MACC,oBAAC,UAAK,WAAU,wDAAuD;AAAA,YAEzE;AAAA,UACD,GACD;AAAA,UACE,YACD,oBAAC,2BAAwB,OAAQ,MAAO,IAExC,iCACC;AAAA,gCAAC,UAAK,WAAU,sDACb,WAAC,CAAE,aACF,aACA,eAAgB,WAAY,GAChC;AAAA,YACE,iBACD,EAAI,eAAe,iBAClB,oBAAC,kBACE,aAAI,eAAgB,GACvB;AAAA,aAEH;AAAA,WAEF;AAAA;AAAA;AAAA,EACD,GACD;AAEF;AAEA,IAAO,uCAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,28 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import { store as blockDirectoryStore } from '../../store';
|
|
11
|
-
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
export const DownloadableBlockNotice = ({
|
|
13
|
-
block
|
|
14
|
-
}) => {
|
|
15
|
-
const errorNotice = useSelect(select => select(blockDirectoryStore).getErrorNoticeForBlock(block.id), [block]);
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { __ } from "@wordpress/i18n";
|
|
3
|
+
import { useSelect } from "@wordpress/data";
|
|
4
|
+
import { store as blockDirectoryStore } from "../../store";
|
|
5
|
+
const DownloadableBlockNotice = ({ block }) => {
|
|
6
|
+
const errorNotice = useSelect(
|
|
7
|
+
(select) => select(blockDirectoryStore).getErrorNoticeForBlock(block.id),
|
|
8
|
+
[block]
|
|
9
|
+
);
|
|
16
10
|
if (!errorNotice) {
|
|
17
11
|
return null;
|
|
18
12
|
}
|
|
19
|
-
return
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
children: [errorNotice.message, errorNotice.isFatal ? ' ' + __('Try reloading the page.') : null]
|
|
24
|
-
})
|
|
25
|
-
});
|
|
13
|
+
return /* @__PURE__ */ jsx("div", { className: "block-directory-downloadable-block-notice", children: /* @__PURE__ */ jsxs("div", { className: "block-directory-downloadable-block-notice__content", children: [
|
|
14
|
+
errorNotice.message,
|
|
15
|
+
errorNotice.isFatal ? " " + __("Try reloading the page.") : null
|
|
16
|
+
] }) });
|
|
26
17
|
};
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
var downloadable_block_notice_default = DownloadableBlockNotice;
|
|
19
|
+
export {
|
|
20
|
+
DownloadableBlockNotice,
|
|
21
|
+
downloadable_block_notice_default as default
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/downloadable-block-notice/index.js"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport { store as blockDirectoryStore } from '../../store';\n\nexport const DownloadableBlockNotice = ( { block } ) => {\n\tconst errorNotice = useSelect(\n\t\t( select ) =>\n\t\t\tselect( blockDirectoryStore ).getErrorNoticeForBlock( block.id ),\n\t\t[ block ]\n\t);\n\n\tif ( ! errorNotice ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<div className=\"block-directory-downloadable-block-notice\">\n\t\t\t<div className=\"block-directory-downloadable-block-notice__content\">\n\t\t\t\t{ errorNotice.message }\n\t\t\t\t{ errorNotice.isFatal\n\t\t\t\t\t? ' ' + __( 'Try reloading the page.' )\n\t\t\t\t\t: null }\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default DownloadableBlockNotice;\n"],
|
|
5
|
+
"mappings": "AAuBE,cACC,YADD;AApBF,SAAS,UAAU;AACnB,SAAS,iBAAiB;AAK1B,SAAS,SAAS,2BAA2B;AAEtC,MAAM,0BAA0B,CAAE,EAAE,MAAM,MAAO;AACvD,QAAM,cAAc;AAAA,IACnB,CAAE,WACD,OAAQ,mBAAoB,EAAE,uBAAwB,MAAM,EAAG;AAAA,IAChE,CAAE,KAAM;AAAA,EACT;AAEA,MAAK,CAAE,aAAc;AACpB,WAAO;AAAA,EACR;AAEA,SACC,oBAAC,SAAI,WAAU,6CACd,+BAAC,SAAI,WAAU,sDACZ;AAAA,gBAAY;AAAA,IACZ,YAAY,UACX,MAAM,GAAI,yBAA0B,IACpC;AAAA,KACJ,GACD;AAEF;AAEA,IAAO,oCAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,55 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import DownloadableBlockListItem from '../downloadable-block-list-item';
|
|
13
|
-
import { store as blockDirectoryStore } from '../../store';
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
const noop = () => {};
|
|
16
|
-
function DownloadableBlocksList({
|
|
17
|
-
items,
|
|
18
|
-
onHover = noop,
|
|
19
|
-
onSelect
|
|
20
|
-
}) {
|
|
21
|
-
const {
|
|
22
|
-
installBlockType
|
|
23
|
-
} = useDispatch(blockDirectoryStore);
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { __ } from "@wordpress/i18n";
|
|
3
|
+
import { Composite } from "@wordpress/components";
|
|
4
|
+
import { getBlockType } from "@wordpress/blocks";
|
|
5
|
+
import { useDispatch } from "@wordpress/data";
|
|
6
|
+
import DownloadableBlockListItem from "../downloadable-block-list-item";
|
|
7
|
+
import { store as blockDirectoryStore } from "../../store";
|
|
8
|
+
const noop = () => {
|
|
9
|
+
};
|
|
10
|
+
function DownloadableBlocksList({ items, onHover = noop, onSelect }) {
|
|
11
|
+
const { installBlockType } = useDispatch(blockDirectoryStore);
|
|
24
12
|
if (!items.length) {
|
|
25
13
|
return null;
|
|
26
14
|
}
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} else {
|
|
40
|
-
installBlockType(item).then(success => {
|
|
41
|
-
if (success) {
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
Composite,
|
|
17
|
+
{
|
|
18
|
+
role: "listbox",
|
|
19
|
+
className: "block-directory-downloadable-blocks-list",
|
|
20
|
+
"aria-label": __("Blocks available for install"),
|
|
21
|
+
children: items.map((item) => {
|
|
22
|
+
return /* @__PURE__ */ jsx(
|
|
23
|
+
DownloadableBlockListItem,
|
|
24
|
+
{
|
|
25
|
+
onClick: () => {
|
|
26
|
+
if (getBlockType(item.name)) {
|
|
42
27
|
onSelect(item);
|
|
28
|
+
} else {
|
|
29
|
+
installBlockType(item).then((success) => {
|
|
30
|
+
if (success) {
|
|
31
|
+
onSelect(item);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
43
34
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
35
|
+
onHover(null);
|
|
36
|
+
},
|
|
37
|
+
onHover,
|
|
38
|
+
item
|
|
39
|
+
},
|
|
40
|
+
item.id
|
|
41
|
+
);
|
|
42
|
+
})
|
|
43
|
+
}
|
|
44
|
+
);
|
|
53
45
|
}
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
var downloadable_blocks_list_default = DownloadableBlocksList;
|
|
47
|
+
export {
|
|
48
|
+
downloadable_blocks_list_default as default
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/downloadable-blocks-list/index.js"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { Composite } from '@wordpress/components';\nimport { getBlockType } from '@wordpress/blocks';\nimport { useDispatch } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport DownloadableBlockListItem from '../downloadable-block-list-item';\nimport { store as blockDirectoryStore } from '../../store';\n\nconst noop = () => {};\n\nfunction DownloadableBlocksList( { items, onHover = noop, onSelect } ) {\n\tconst { installBlockType } = useDispatch( blockDirectoryStore );\n\n\tif ( ! items.length ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<Composite\n\t\t\trole=\"listbox\"\n\t\t\tclassName=\"block-directory-downloadable-blocks-list\"\n\t\t\taria-label={ __( 'Blocks available for install' ) }\n\t\t>\n\t\t\t{ items.map( ( item ) => {\n\t\t\t\treturn (\n\t\t\t\t\t<DownloadableBlockListItem\n\t\t\t\t\t\tkey={ item.id }\n\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t// Check if the block is registered (`getBlockType`\n\t\t\t\t\t\t\t// will return an object). If so, insert the block.\n\t\t\t\t\t\t\t// This prevents installing existing plugins.\n\t\t\t\t\t\t\tif ( getBlockType( item.name ) ) {\n\t\t\t\t\t\t\t\tonSelect( item );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tinstallBlockType( item ).then( ( success ) => {\n\t\t\t\t\t\t\t\t\tif ( success ) {\n\t\t\t\t\t\t\t\t\t\tonSelect( item );\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tonHover( null );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tonHover={ onHover }\n\t\t\t\t\t\titem={ item }\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\t} ) }\n\t\t</Composite>\n\t);\n}\n\nexport default DownloadableBlocksList;\n"],
|
|
5
|
+
"mappings": "AA+BK;AA5BL,SAAS,UAAU;AACnB,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAC7B,SAAS,mBAAmB;AAK5B,OAAO,+BAA+B;AACtC,SAAS,SAAS,2BAA2B;AAE7C,MAAM,OAAO,MAAM;AAAC;AAEpB,SAAS,uBAAwB,EAAE,OAAO,UAAU,MAAM,SAAS,GAAI;AACtE,QAAM,EAAE,iBAAiB,IAAI,YAAa,mBAAoB;AAE9D,MAAK,CAAE,MAAM,QAAS;AACrB,WAAO;AAAA,EACR;AAEA,SACC;AAAA,IAAC;AAAA;AAAA,MACA,MAAK;AAAA,MACL,WAAU;AAAA,MACV,cAAa,GAAI,8BAA+B;AAAA,MAE9C,gBAAM,IAAK,CAAE,SAAU;AACxB,eACC;AAAA,UAAC;AAAA;AAAA,YAEA,SAAU,MAAM;AAIf,kBAAK,aAAc,KAAK,IAAK,GAAI;AAChC,yBAAU,IAAK;AAAA,cAChB,OAAO;AACN,iCAAkB,IAAK,EAAE,KAAM,CAAE,YAAa;AAC7C,sBAAK,SAAU;AACd,6BAAU,IAAK;AAAA,kBAChB;AAAA,gBACD,CAAE;AAAA,cACH;AACA,sBAAS,IAAK;AAAA,YACf;AAAA,YACA;AAAA,YACA;AAAA;AAAA,UAjBM,KAAK;AAAA,QAkBZ;AAAA,MAEF,CAAE;AAAA;AAAA,EACH;AAEF;AAEA,IAAO,mCAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|