@strapi/review-workflows 0.0.0-next.d65d44102fd32871728c0d74ec4f2519b7cc0a16 → 0.0.0-next.d6ed4fcf2c833656b8c91a90909c1e77c79379e5
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/dist/_chunks/{Layout-DU1Rt4Mu.mjs → Layout-BGC42hTJ.mjs} +2 -2
- package/dist/_chunks/{Layout-DU1Rt4Mu.mjs.map → Layout-BGC42hTJ.mjs.map} +1 -1
- package/dist/_chunks/{Layout-ywt0cSLq.js → Layout-DcZnQxp9.js} +3 -4
- package/dist/_chunks/{Layout-ywt0cSLq.js.map → Layout-DcZnQxp9.js.map} +1 -1
- package/dist/_chunks/{id-StiN3nkI.js → id-BI6AAFQF.js} +7 -11
- package/dist/_chunks/{id-StiN3nkI.js.map → id-BI6AAFQF.js.map} +1 -1
- package/dist/_chunks/{id-MDQVDdXD.mjs → id-FuGqdNs8.mjs} +6 -9
- package/dist/_chunks/{id-MDQVDdXD.mjs.map → id-FuGqdNs8.mjs.map} +1 -1
- package/dist/_chunks/{index-dc2WfugK.js → index-B05ot-RJ.js} +5 -7
- package/dist/_chunks/{index-dc2WfugK.js.map → index-B05ot-RJ.js.map} +1 -1
- package/dist/_chunks/{index-BRmc4tbQ.mjs → index-C_-s412E.mjs} +13 -7
- package/dist/_chunks/{index-BRmc4tbQ.mjs.map → index-C_-s412E.mjs.map} +1 -1
- package/dist/_chunks/{index-CsOMMJ--.mjs → index-D0D7uQQv.mjs} +4 -5
- package/dist/_chunks/{index-CsOMMJ--.mjs.map → index-D0D7uQQv.mjs.map} +1 -1
- package/dist/_chunks/{index-BSsDJNiQ.js → index-Nf1qO5tM.js} +14 -9
- package/dist/_chunks/{index-BSsDJNiQ.js.map → index-Nf1qO5tM.js.map} +1 -1
- package/dist/_chunks/purchase-review-workflows-BN-5Ube7.mjs.map +1 -1
- package/dist/_chunks/purchase-review-workflows-DlCDg0fD.js.map +1 -1
- package/dist/_chunks/{router-CZH4yq9s.mjs → router-BslCQGgZ.mjs} +3 -3
- package/dist/_chunks/{router-CZH4yq9s.mjs.map → router-BslCQGgZ.mjs.map} +1 -1
- package/dist/_chunks/{router-C5QvEzrI.js → router-DXipg2gI.js} +3 -3
- package/dist/_chunks/{router-C5QvEzrI.js.map → router-DXipg2gI.js.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +275 -520
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +275 -520
- package/dist/server/index.mjs.map +1 -1
- package/package.json +7 -7
|
@@ -9,13 +9,20 @@ import { useSelector } from "react-redux";
|
|
|
9
9
|
import { useLicenseLimits } from "@strapi/admin/strapi-admin/ee";
|
|
10
10
|
import { Cross } from "@strapi/icons";
|
|
11
11
|
import { styled } from "styled-components";
|
|
12
|
-
const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
|
12
|
+
const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
13
13
|
const v = glob[path];
|
|
14
14
|
if (v) {
|
|
15
15
|
return typeof v === "function" ? v() : Promise.resolve(v);
|
|
16
16
|
}
|
|
17
17
|
return new Promise((_, reject) => {
|
|
18
|
-
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
|
18
|
+
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
|
19
|
+
reject.bind(
|
|
20
|
+
null,
|
|
21
|
+
new Error(
|
|
22
|
+
"Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
|
|
23
|
+
)
|
|
24
|
+
)
|
|
25
|
+
);
|
|
19
26
|
});
|
|
20
27
|
};
|
|
21
28
|
const PLUGIN_ID = "review-workflows";
|
|
@@ -120,8 +127,7 @@ const isBaseQueryError = (error) => {
|
|
|
120
127
|
return error.name !== void 0;
|
|
121
128
|
};
|
|
122
129
|
const buildValidParams = (query) => {
|
|
123
|
-
if (!query)
|
|
124
|
-
return query;
|
|
130
|
+
if (!query) return query;
|
|
125
131
|
const { plugins: _, ...validQueryParams } = {
|
|
126
132
|
...query,
|
|
127
133
|
...Object.values(query?.plugins ?? {}).reduce(
|
|
@@ -750,7 +756,7 @@ const admin = {
|
|
|
750
756
|
},
|
|
751
757
|
permissions: [],
|
|
752
758
|
async Component() {
|
|
753
|
-
const { Router } = await import("./router-
|
|
759
|
+
const { Router } = await import("./router-BslCQGgZ.mjs");
|
|
754
760
|
return { default: Router };
|
|
755
761
|
}
|
|
756
762
|
});
|
|
@@ -774,7 +780,7 @@ const admin = {
|
|
|
774
780
|
async registerTrads({ locales }) {
|
|
775
781
|
const importedTrads = await Promise.all(
|
|
776
782
|
locales.map((locale) => {
|
|
777
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => import("./en-D9dxziEb.mjs") }), `./translations/${locale}.json
|
|
783
|
+
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => import("./en-D9dxziEb.mjs") }), `./translations/${locale}.json`, 3).then(({ default: data }) => {
|
|
778
784
|
return {
|
|
779
785
|
data: prefixPluginTranslations(data, PLUGIN_ID),
|
|
780
786
|
locale
|
|
@@ -806,4 +812,4 @@ export {
|
|
|
806
812
|
reviewWorkflowsApi as r,
|
|
807
813
|
useGetContentTypesQuery as u
|
|
808
814
|
};
|
|
809
|
-
//# sourceMappingURL=index-
|
|
815
|
+
//# sourceMappingURL=index-C_-s412E.mjs.map
|