@strapi/plugin-documentation 5.4.2 → 5.5.1
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/{App-Dlx5Hiu3.js → App-C51t4Zpc.js} +3 -5
- package/dist/_chunks/{App-Bh6ZOYCv.mjs → App-D3sYdNAh.mjs} +2 -3
- package/dist/_chunks/{Settings-CtlcbBE2.js → Settings-DfyHMjZj.js} +3 -5
- package/dist/_chunks/{Settings-B-Qva9QN.mjs → Settings-DiK51xGj.mjs} +2 -3
- package/dist/_chunks/ar-CkqTE6jh.js +0 -1
- package/dist/_chunks/ar-ckp9T43y.mjs +0 -1
- package/dist/_chunks/cs-BbyKo6Hc.js +0 -1
- package/dist/_chunks/cs-ciLYCxgd.mjs +0 -1
- package/dist/_chunks/de-CHwC0A85.js +0 -1
- package/dist/_chunks/de-DqkAUMvP.mjs +0 -1
- package/dist/_chunks/dk-DgCq8mF-.mjs +0 -1
- package/dist/_chunks/dk-qlI2J6S0.js +0 -1
- package/dist/_chunks/en-BQ_E53_2.mjs +0 -1
- package/dist/_chunks/en-DKizRVCY.js +0 -1
- package/dist/_chunks/es-CEiXVnsb.mjs +0 -1
- package/dist/_chunks/es-DH1GVZe7.js +0 -1
- package/dist/_chunks/fr-B1x-Nj5w.js +0 -1
- package/dist/_chunks/fr-BlX-v4UF.mjs +0 -1
- package/dist/_chunks/{getTrad-BzQMnOxD.mjs → getTrad-BCVqzyys.mjs} +1 -2
- package/dist/_chunks/{getTrad-49jiHamt.js → getTrad-DoREjbyy.js} +1 -2
- package/dist/_chunks/id-CPOl6_EU.mjs +0 -1
- package/dist/_chunks/id-D3yFE72d.js +0 -1
- package/dist/_chunks/index-BTFWrNiz.mjs +0 -1
- package/dist/_chunks/{index-Dh0UeWZt.js → index-BlmI1vCi.js} +12 -6
- package/dist/_chunks/index-CYcTK1eg.js +0 -1
- package/dist/_chunks/{index-efJUvXYO.mjs → index-YnqsO7ap.mjs} +12 -6
- package/dist/_chunks/it-DWJI563z.mjs +0 -1
- package/dist/_chunks/it-WuNBIqG8.js +0 -1
- package/dist/_chunks/ko-CFzSHayG.mjs +0 -1
- package/dist/_chunks/ko-De5iYa_O.js +0 -1
- package/dist/_chunks/login-EQSKn2h7.js +0 -1
- package/dist/_chunks/login-KS59cQ6U.mjs +0 -1
- package/dist/_chunks/ms-CUgPFo4U.mjs +0 -1
- package/dist/_chunks/ms-DQfa3FDx.js +0 -1
- package/dist/_chunks/nl-BZHlqphk.js +0 -1
- package/dist/_chunks/nl-B_7CHwVD.mjs +0 -1
- package/dist/_chunks/pl-DDl5i_mP.js +0 -1
- package/dist/_chunks/pl-DwLr8sw9.mjs +0 -1
- package/dist/_chunks/pt-4GQ8ermL.js +0 -1
- package/dist/_chunks/pt-BR-D24CJ0qp.js +0 -1
- package/dist/_chunks/pt-BR-MVXc6V9P.mjs +0 -1
- package/dist/_chunks/pt-C2N9fdeh.mjs +0 -1
- package/dist/_chunks/ru-BddeNlU0.mjs +0 -1
- package/dist/_chunks/ru-QwZYcU6K.js +0 -1
- package/dist/_chunks/sk-BmT4uZTG.mjs +0 -1
- package/dist/_chunks/sk-DgAXilB1.js +0 -1
- package/dist/_chunks/sv-CCLcAo3U.js +0 -1
- package/dist/_chunks/sv-D_-KBtcw.mjs +0 -1
- package/dist/_chunks/th-BhgV1BbW.js +0 -1
- package/dist/_chunks/th-DkuoSGii.mjs +0 -1
- package/dist/_chunks/tr-BysnAErC.js +0 -1
- package/dist/_chunks/tr-l-xxK4Yk.mjs +0 -1
- package/dist/_chunks/uk-CNlbntFx.js +0 -1
- package/dist/_chunks/uk-Cpmsxyku.mjs +0 -1
- package/dist/_chunks/vi-ClWGrFm9.mjs +0 -1
- package/dist/_chunks/vi-_ib0GmNl.js +0 -1
- package/dist/_chunks/zh-Glkg1L2g.mjs +0 -1
- package/dist/_chunks/zh-Hans-L_5U2KqC.js +0 -1
- package/dist/_chunks/zh-Hans-XLMwjASk.mjs +0 -1
- package/dist/_chunks/zh-aEZZdkOu.js +0 -1
- package/dist/admin/index.js +1 -2
- package/dist/admin/index.mjs +1 -2
- package/dist/server/index.js +6 -8
- package/dist/server/index.mjs +5 -6
- package/dist/server/src/bootstrap.d.ts.map +1 -1
- package/package.json +11 -12
- package/dist/_chunks/App-Bh6ZOYCv.mjs.map +0 -1
- package/dist/_chunks/App-Dlx5Hiu3.js.map +0 -1
- package/dist/_chunks/Settings-B-Qva9QN.mjs.map +0 -1
- package/dist/_chunks/Settings-CtlcbBE2.js.map +0 -1
- package/dist/_chunks/ar-CkqTE6jh.js.map +0 -1
- package/dist/_chunks/ar-ckp9T43y.mjs.map +0 -1
- package/dist/_chunks/cs-BbyKo6Hc.js.map +0 -1
- package/dist/_chunks/cs-ciLYCxgd.mjs.map +0 -1
- package/dist/_chunks/de-CHwC0A85.js.map +0 -1
- package/dist/_chunks/de-DqkAUMvP.mjs.map +0 -1
- package/dist/_chunks/dk-DgCq8mF-.mjs.map +0 -1
- package/dist/_chunks/dk-qlI2J6S0.js.map +0 -1
- package/dist/_chunks/en-BQ_E53_2.mjs.map +0 -1
- package/dist/_chunks/en-DKizRVCY.js.map +0 -1
- package/dist/_chunks/es-CEiXVnsb.mjs.map +0 -1
- package/dist/_chunks/es-DH1GVZe7.js.map +0 -1
- package/dist/_chunks/fr-B1x-Nj5w.js.map +0 -1
- package/dist/_chunks/fr-BlX-v4UF.mjs.map +0 -1
- package/dist/_chunks/getTrad-49jiHamt.js.map +0 -1
- package/dist/_chunks/getTrad-BzQMnOxD.mjs.map +0 -1
- package/dist/_chunks/id-CPOl6_EU.mjs.map +0 -1
- package/dist/_chunks/id-D3yFE72d.js.map +0 -1
- package/dist/_chunks/index-BTFWrNiz.mjs.map +0 -1
- package/dist/_chunks/index-CYcTK1eg.js.map +0 -1
- package/dist/_chunks/index-Dh0UeWZt.js.map +0 -1
- package/dist/_chunks/index-efJUvXYO.mjs.map +0 -1
- package/dist/_chunks/it-DWJI563z.mjs.map +0 -1
- package/dist/_chunks/it-WuNBIqG8.js.map +0 -1
- package/dist/_chunks/ko-CFzSHayG.mjs.map +0 -1
- package/dist/_chunks/ko-De5iYa_O.js.map +0 -1
- package/dist/_chunks/login-EQSKn2h7.js.map +0 -1
- package/dist/_chunks/login-KS59cQ6U.mjs.map +0 -1
- package/dist/_chunks/ms-CUgPFo4U.mjs.map +0 -1
- package/dist/_chunks/ms-DQfa3FDx.js.map +0 -1
- package/dist/_chunks/nl-BZHlqphk.js.map +0 -1
- package/dist/_chunks/nl-B_7CHwVD.mjs.map +0 -1
- package/dist/_chunks/pl-DDl5i_mP.js.map +0 -1
- package/dist/_chunks/pl-DwLr8sw9.mjs.map +0 -1
- package/dist/_chunks/pt-4GQ8ermL.js.map +0 -1
- package/dist/_chunks/pt-BR-D24CJ0qp.js.map +0 -1
- package/dist/_chunks/pt-BR-MVXc6V9P.mjs.map +0 -1
- package/dist/_chunks/pt-C2N9fdeh.mjs.map +0 -1
- package/dist/_chunks/ru-BddeNlU0.mjs.map +0 -1
- package/dist/_chunks/ru-QwZYcU6K.js.map +0 -1
- package/dist/_chunks/sk-BmT4uZTG.mjs.map +0 -1
- package/dist/_chunks/sk-DgAXilB1.js.map +0 -1
- package/dist/_chunks/sv-CCLcAo3U.js.map +0 -1
- package/dist/_chunks/sv-D_-KBtcw.mjs.map +0 -1
- package/dist/_chunks/th-BhgV1BbW.js.map +0 -1
- package/dist/_chunks/th-DkuoSGii.mjs.map +0 -1
- package/dist/_chunks/tr-BysnAErC.js.map +0 -1
- package/dist/_chunks/tr-l-xxK4Yk.mjs.map +0 -1
- package/dist/_chunks/uk-CNlbntFx.js.map +0 -1
- package/dist/_chunks/uk-Cpmsxyku.mjs.map +0 -1
- package/dist/_chunks/vi-ClWGrFm9.mjs.map +0 -1
- package/dist/_chunks/vi-_ib0GmNl.js.map +0 -1
- package/dist/_chunks/zh-Glkg1L2g.mjs.map +0 -1
- package/dist/_chunks/zh-Hans-L_5U2KqC.js.map +0 -1
- package/dist/_chunks/zh-Hans-XLMwjASk.mjs.map +0 -1
- package/dist/_chunks/zh-aEZZdkOu.js.map +0 -1
- package/dist/admin/index.js.map +0 -1
- package/dist/admin/index.mjs.map +0 -1
- package/dist/server/index.js.map +0 -1
- package/dist/server/index.mjs.map +0 -1
|
@@ -7,11 +7,10 @@ const icons = require("@strapi/icons");
|
|
|
7
7
|
const admin = require("@strapi/strapi/admin");
|
|
8
8
|
const reactIntl = require("react-intl");
|
|
9
9
|
const styledComponents = require("styled-components");
|
|
10
|
-
const index = require("./index-
|
|
11
|
-
const getTrad = require("./getTrad-
|
|
10
|
+
const index = require("./index-BlmI1vCi.js");
|
|
11
|
+
const getTrad = require("./getTrad-DoREjbyy.js");
|
|
12
12
|
function _interopNamespace(e) {
|
|
13
|
-
if (e && e.__esModule)
|
|
14
|
-
return e;
|
|
13
|
+
if (e && e.__esModule) return e;
|
|
15
14
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
16
15
|
if (e) {
|
|
17
16
|
for (const k in e) {
|
|
@@ -200,4 +199,3 @@ const createDocumentationHref = (path) => {
|
|
|
200
199
|
return `${window.strapi.backendURL}/${path}`;
|
|
201
200
|
};
|
|
202
201
|
exports.App = App;
|
|
203
|
-
//# sourceMappingURL=App-Dlx5Hiu3.js.map
|
|
@@ -5,8 +5,8 @@ import { Eye, ArrowClockwise, Trash } from "@strapi/icons";
|
|
|
5
5
|
import { useNotification, useAPIErrorHandler, useRBAC, Page, Layouts, ConfirmDialog } from "@strapi/strapi/admin";
|
|
6
6
|
import { useIntl } from "react-intl";
|
|
7
7
|
import { styled } from "styled-components";
|
|
8
|
-
import { P as PERMISSIONS } from "./index-
|
|
9
|
-
import { u as useGetInfoQuery, a as useRegenerateDocMutation, b as useDeleteVersionMutation, g as getTrad } from "./getTrad-
|
|
8
|
+
import { P as PERMISSIONS } from "./index-YnqsO7ap.mjs";
|
|
9
|
+
import { u as useGetInfoQuery, a as useRegenerateDocMutation, b as useDeleteVersionMutation, g as getTrad } from "./getTrad-BCVqzyys.mjs";
|
|
10
10
|
const App = () => {
|
|
11
11
|
const { formatMessage } = useIntl();
|
|
12
12
|
const { toggleNotification } = useNotification();
|
|
@@ -181,4 +181,3 @@ const createDocumentationHref = (path) => {
|
|
|
181
181
|
export {
|
|
182
182
|
App
|
|
183
183
|
};
|
|
184
|
-
//# sourceMappingURL=App-Bh6ZOYCv.mjs.map
|
|
@@ -9,11 +9,10 @@ const icons = require("@strapi/icons");
|
|
|
9
9
|
const formik = require("formik");
|
|
10
10
|
const styledComponents = require("styled-components");
|
|
11
11
|
const yup = require("yup");
|
|
12
|
-
const index = require("./index-
|
|
13
|
-
const getTrad = require("./getTrad-
|
|
12
|
+
const index = require("./index-BlmI1vCi.js");
|
|
13
|
+
const getTrad = require("./getTrad-DoREjbyy.js");
|
|
14
14
|
function _interopNamespace(e) {
|
|
15
|
-
if (e && e.__esModule)
|
|
16
|
-
return e;
|
|
15
|
+
if (e && e.__esModule) return e;
|
|
17
16
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
18
17
|
if (e) {
|
|
19
18
|
for (const k in e) {
|
|
@@ -238,4 +237,3 @@ const SettingsPage = () => {
|
|
|
238
237
|
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Main, { children: /* @__PURE__ */ jsxRuntime.jsx(SettingsForm, { data, onSubmit: onUpdateSettings }) });
|
|
239
238
|
};
|
|
240
239
|
exports.SettingsPage = SettingsPage;
|
|
241
|
-
//# sourceMappingURL=Settings-CtlcbBE2.js.map
|
|
@@ -7,8 +7,8 @@ import { Check, Eye, EyeStriked } from "@strapi/icons";
|
|
|
7
7
|
import { Formik, Form } from "formik";
|
|
8
8
|
import { styled } from "styled-components";
|
|
9
9
|
import * as yup from "yup";
|
|
10
|
-
import { P as PERMISSIONS } from "./index-
|
|
11
|
-
import { g as getTrad, u as useGetInfoQuery, c as useUpdateSettingsMutation } from "./getTrad-
|
|
10
|
+
import { P as PERMISSIONS } from "./index-YnqsO7ap.mjs";
|
|
11
|
+
import { g as getTrad, u as useGetInfoQuery, c as useUpdateSettingsMutation } from "./getTrad-BCVqzyys.mjs";
|
|
12
12
|
const isBaseQueryError = (error) => {
|
|
13
13
|
return error.name !== void 0;
|
|
14
14
|
};
|
|
@@ -218,4 +218,3 @@ const SettingsPage = () => {
|
|
|
218
218
|
export {
|
|
219
219
|
SettingsPage
|
|
220
220
|
};
|
|
221
|
-
//# sourceMappingURL=Settings-B-Qva9QN.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { adminApi } from "@strapi/admin/strapi-admin";
|
|
2
|
-
import { p as pluginId } from "./index-
|
|
2
|
+
import { p as pluginId } from "./index-YnqsO7ap.mjs";
|
|
3
3
|
const api = adminApi.enhanceEndpoints({
|
|
4
4
|
addTagTypes: ["DocumentInfo"]
|
|
5
5
|
}).injectEndpoints({
|
|
@@ -48,4 +48,3 @@ export {
|
|
|
48
48
|
getTrad as g,
|
|
49
49
|
useGetInfoQuery as u
|
|
50
50
|
};
|
|
51
|
-
//# sourceMappingURL=getTrad-BzQMnOxD.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const strapiAdmin = require("@strapi/admin/strapi-admin");
|
|
3
|
-
const index = require("./index-
|
|
3
|
+
const index = require("./index-BlmI1vCi.js");
|
|
4
4
|
const api = strapiAdmin.adminApi.enhanceEndpoints({
|
|
5
5
|
addTagTypes: ["DocumentInfo"]
|
|
6
6
|
}).injectEndpoints({
|
|
@@ -47,4 +47,3 @@ exports.useDeleteVersionMutation = useDeleteVersionMutation;
|
|
|
47
47
|
exports.useGetInfoQuery = useGetInfoQuery;
|
|
48
48
|
exports.useRegenerateDocMutation = useRegenerateDocMutation;
|
|
49
49
|
exports.useUpdateSettingsMutation = useUpdateSettingsMutation;
|
|
50
|
-
//# sourceMappingURL=getTrad-49jiHamt.js.map
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const icons = require("@strapi/icons");
|
|
3
|
-
const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
|
3
|
+
const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
4
4
|
const v = glob[path];
|
|
5
5
|
if (v) {
|
|
6
6
|
return typeof v === "function" ? v() : Promise.resolve(v);
|
|
7
7
|
}
|
|
8
8
|
return new Promise((_, reject) => {
|
|
9
|
-
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
|
9
|
+
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
|
10
|
+
reject.bind(
|
|
11
|
+
null,
|
|
12
|
+
new Error(
|
|
13
|
+
"Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
|
|
14
|
+
)
|
|
15
|
+
)
|
|
16
|
+
);
|
|
10
17
|
});
|
|
11
18
|
};
|
|
12
19
|
const PERMISSIONS = {
|
|
@@ -47,7 +54,7 @@ const index = {
|
|
|
47
54
|
},
|
|
48
55
|
permissions: PERMISSIONS.main,
|
|
49
56
|
Component: async () => {
|
|
50
|
-
const { App } = await Promise.resolve().then(() => require("./App-
|
|
57
|
+
const { App } = await Promise.resolve().then(() => require("./App-C51t4Zpc.js"));
|
|
51
58
|
return App;
|
|
52
59
|
},
|
|
53
60
|
position: 9
|
|
@@ -66,7 +73,7 @@ const index = {
|
|
|
66
73
|
id: "documentation",
|
|
67
74
|
to: pluginId,
|
|
68
75
|
Component: async () => {
|
|
69
|
-
const { SettingsPage } = await Promise.resolve().then(() => require("./Settings-
|
|
76
|
+
const { SettingsPage } = await Promise.resolve().then(() => require("./Settings-DfyHMjZj.js"));
|
|
70
77
|
return SettingsPage;
|
|
71
78
|
},
|
|
72
79
|
permissions: PERMISSIONS.main
|
|
@@ -75,7 +82,7 @@ const index = {
|
|
|
75
82
|
async registerTrads({ locales }) {
|
|
76
83
|
const importedTrads = await Promise.all(
|
|
77
84
|
locales.map((locale) => {
|
|
78
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => Promise.resolve().then(() => require("./ar-CkqTE6jh.js")), "./translations/cs.json": () => Promise.resolve().then(() => require("./cs-BbyKo6Hc.js")), "./translations/de.json": () => Promise.resolve().then(() => require("./de-CHwC0A85.js")), "./translations/dk.json": () => Promise.resolve().then(() => require("./dk-qlI2J6S0.js")), "./translations/en.json": () => Promise.resolve().then(() => require("./en-DKizRVCY.js")), "./translations/es.json": () => Promise.resolve().then(() => require("./es-DH1GVZe7.js")), "./translations/fr.json": () => Promise.resolve().then(() => require("./fr-B1x-Nj5w.js")), "./translations/id.json": () => Promise.resolve().then(() => require("./id-D3yFE72d.js")), "./translations/it.json": () => Promise.resolve().then(() => require("./it-WuNBIqG8.js")), "./translations/ko.json": () => Promise.resolve().then(() => require("./ko-De5iYa_O.js")), "./translations/ms.json": () => Promise.resolve().then(() => require("./ms-DQfa3FDx.js")), "./translations/nl.json": () => Promise.resolve().then(() => require("./nl-BZHlqphk.js")), "./translations/pl.json": () => Promise.resolve().then(() => require("./pl-DDl5i_mP.js")), "./translations/pt-BR.json": () => Promise.resolve().then(() => require("./pt-BR-D24CJ0qp.js")), "./translations/pt.json": () => Promise.resolve().then(() => require("./pt-4GQ8ermL.js")), "./translations/ru.json": () => Promise.resolve().then(() => require("./ru-QwZYcU6K.js")), "./translations/sk.json": () => Promise.resolve().then(() => require("./sk-DgAXilB1.js")), "./translations/sv.json": () => Promise.resolve().then(() => require("./sv-CCLcAo3U.js")), "./translations/th.json": () => Promise.resolve().then(() => require("./th-BhgV1BbW.js")), "./translations/tr.json": () => Promise.resolve().then(() => require("./tr-BysnAErC.js")), "./translations/uk.json": () => Promise.resolve().then(() => require("./uk-CNlbntFx.js")), "./translations/vi.json": () => Promise.resolve().then(() => require("./vi-_ib0GmNl.js")), "./translations/zh-Hans.json": () => Promise.resolve().then(() => require("./zh-Hans-L_5U2KqC.js")), "./translations/zh.json": () => Promise.resolve().then(() => require("./zh-aEZZdkOu.js")) }), `./translations/${locale}.json
|
|
85
|
+
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => Promise.resolve().then(() => require("./ar-CkqTE6jh.js")), "./translations/cs.json": () => Promise.resolve().then(() => require("./cs-BbyKo6Hc.js")), "./translations/de.json": () => Promise.resolve().then(() => require("./de-CHwC0A85.js")), "./translations/dk.json": () => Promise.resolve().then(() => require("./dk-qlI2J6S0.js")), "./translations/en.json": () => Promise.resolve().then(() => require("./en-DKizRVCY.js")), "./translations/es.json": () => Promise.resolve().then(() => require("./es-DH1GVZe7.js")), "./translations/fr.json": () => Promise.resolve().then(() => require("./fr-B1x-Nj5w.js")), "./translations/id.json": () => Promise.resolve().then(() => require("./id-D3yFE72d.js")), "./translations/it.json": () => Promise.resolve().then(() => require("./it-WuNBIqG8.js")), "./translations/ko.json": () => Promise.resolve().then(() => require("./ko-De5iYa_O.js")), "./translations/ms.json": () => Promise.resolve().then(() => require("./ms-DQfa3FDx.js")), "./translations/nl.json": () => Promise.resolve().then(() => require("./nl-BZHlqphk.js")), "./translations/pl.json": () => Promise.resolve().then(() => require("./pl-DDl5i_mP.js")), "./translations/pt-BR.json": () => Promise.resolve().then(() => require("./pt-BR-D24CJ0qp.js")), "./translations/pt.json": () => Promise.resolve().then(() => require("./pt-4GQ8ermL.js")), "./translations/ru.json": () => Promise.resolve().then(() => require("./ru-QwZYcU6K.js")), "./translations/sk.json": () => Promise.resolve().then(() => require("./sk-DgAXilB1.js")), "./translations/sv.json": () => Promise.resolve().then(() => require("./sv-CCLcAo3U.js")), "./translations/th.json": () => Promise.resolve().then(() => require("./th-BhgV1BbW.js")), "./translations/tr.json": () => Promise.resolve().then(() => require("./tr-BysnAErC.js")), "./translations/uk.json": () => Promise.resolve().then(() => require("./uk-CNlbntFx.js")), "./translations/vi.json": () => Promise.resolve().then(() => require("./vi-_ib0GmNl.js")), "./translations/zh-Hans.json": () => Promise.resolve().then(() => require("./zh-Hans-L_5U2KqC.js")), "./translations/zh.json": () => Promise.resolve().then(() => require("./zh-aEZZdkOu.js")) }), `./translations/${locale}.json`, 3).then(({ default: data }) => {
|
|
79
86
|
return {
|
|
80
87
|
data: prefixPluginTranslations(data, pluginId),
|
|
81
88
|
locale
|
|
@@ -94,4 +101,3 @@ const index = {
|
|
|
94
101
|
exports.PERMISSIONS = PERMISSIONS;
|
|
95
102
|
exports.index = index;
|
|
96
103
|
exports.pluginId = pluginId;
|
|
97
|
-
//# sourceMappingURL=index-Dh0UeWZt.js.map
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { Information } from "@strapi/icons";
|
|
2
|
-
const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
|
2
|
+
const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
3
3
|
const v = glob[path];
|
|
4
4
|
if (v) {
|
|
5
5
|
return typeof v === "function" ? v() : Promise.resolve(v);
|
|
6
6
|
}
|
|
7
7
|
return new Promise((_, reject) => {
|
|
8
|
-
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
|
8
|
+
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
|
9
|
+
reject.bind(
|
|
10
|
+
null,
|
|
11
|
+
new Error(
|
|
12
|
+
"Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
|
|
13
|
+
)
|
|
14
|
+
)
|
|
15
|
+
);
|
|
9
16
|
});
|
|
10
17
|
};
|
|
11
18
|
const PERMISSIONS = {
|
|
@@ -46,7 +53,7 @@ const index = {
|
|
|
46
53
|
},
|
|
47
54
|
permissions: PERMISSIONS.main,
|
|
48
55
|
Component: async () => {
|
|
49
|
-
const { App } = await import("./App-
|
|
56
|
+
const { App } = await import("./App-D3sYdNAh.mjs");
|
|
50
57
|
return App;
|
|
51
58
|
},
|
|
52
59
|
position: 9
|
|
@@ -65,7 +72,7 @@ const index = {
|
|
|
65
72
|
id: "documentation",
|
|
66
73
|
to: pluginId,
|
|
67
74
|
Component: async () => {
|
|
68
|
-
const { SettingsPage } = await import("./Settings-
|
|
75
|
+
const { SettingsPage } = await import("./Settings-DiK51xGj.mjs");
|
|
69
76
|
return SettingsPage;
|
|
70
77
|
},
|
|
71
78
|
permissions: PERMISSIONS.main
|
|
@@ -74,7 +81,7 @@ const index = {
|
|
|
74
81
|
async registerTrads({ locales }) {
|
|
75
82
|
const importedTrads = await Promise.all(
|
|
76
83
|
locales.map((locale) => {
|
|
77
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => import("./ar-ckp9T43y.mjs"), "./translations/cs.json": () => import("./cs-ciLYCxgd.mjs"), "./translations/de.json": () => import("./de-DqkAUMvP.mjs"), "./translations/dk.json": () => import("./dk-DgCq8mF-.mjs"), "./translations/en.json": () => import("./en-BQ_E53_2.mjs"), "./translations/es.json": () => import("./es-CEiXVnsb.mjs"), "./translations/fr.json": () => import("./fr-BlX-v4UF.mjs"), "./translations/id.json": () => import("./id-CPOl6_EU.mjs"), "./translations/it.json": () => import("./it-DWJI563z.mjs"), "./translations/ko.json": () => import("./ko-CFzSHayG.mjs"), "./translations/ms.json": () => import("./ms-CUgPFo4U.mjs"), "./translations/nl.json": () => import("./nl-B_7CHwVD.mjs"), "./translations/pl.json": () => import("./pl-DwLr8sw9.mjs"), "./translations/pt-BR.json": () => import("./pt-BR-MVXc6V9P.mjs"), "./translations/pt.json": () => import("./pt-C2N9fdeh.mjs"), "./translations/ru.json": () => import("./ru-BddeNlU0.mjs"), "./translations/sk.json": () => import("./sk-BmT4uZTG.mjs"), "./translations/sv.json": () => import("./sv-D_-KBtcw.mjs"), "./translations/th.json": () => import("./th-DkuoSGii.mjs"), "./translations/tr.json": () => import("./tr-l-xxK4Yk.mjs"), "./translations/uk.json": () => import("./uk-Cpmsxyku.mjs"), "./translations/vi.json": () => import("./vi-ClWGrFm9.mjs"), "./translations/zh-Hans.json": () => import("./zh-Hans-XLMwjASk.mjs"), "./translations/zh.json": () => import("./zh-Glkg1L2g.mjs") }), `./translations/${locale}.json
|
|
84
|
+
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => import("./ar-ckp9T43y.mjs"), "./translations/cs.json": () => import("./cs-ciLYCxgd.mjs"), "./translations/de.json": () => import("./de-DqkAUMvP.mjs"), "./translations/dk.json": () => import("./dk-DgCq8mF-.mjs"), "./translations/en.json": () => import("./en-BQ_E53_2.mjs"), "./translations/es.json": () => import("./es-CEiXVnsb.mjs"), "./translations/fr.json": () => import("./fr-BlX-v4UF.mjs"), "./translations/id.json": () => import("./id-CPOl6_EU.mjs"), "./translations/it.json": () => import("./it-DWJI563z.mjs"), "./translations/ko.json": () => import("./ko-CFzSHayG.mjs"), "./translations/ms.json": () => import("./ms-CUgPFo4U.mjs"), "./translations/nl.json": () => import("./nl-B_7CHwVD.mjs"), "./translations/pl.json": () => import("./pl-DwLr8sw9.mjs"), "./translations/pt-BR.json": () => import("./pt-BR-MVXc6V9P.mjs"), "./translations/pt.json": () => import("./pt-C2N9fdeh.mjs"), "./translations/ru.json": () => import("./ru-BddeNlU0.mjs"), "./translations/sk.json": () => import("./sk-BmT4uZTG.mjs"), "./translations/sv.json": () => import("./sv-D_-KBtcw.mjs"), "./translations/th.json": () => import("./th-DkuoSGii.mjs"), "./translations/tr.json": () => import("./tr-l-xxK4Yk.mjs"), "./translations/uk.json": () => import("./uk-Cpmsxyku.mjs"), "./translations/vi.json": () => import("./vi-ClWGrFm9.mjs"), "./translations/zh-Hans.json": () => import("./zh-Hans-XLMwjASk.mjs"), "./translations/zh.json": () => import("./zh-Glkg1L2g.mjs") }), `./translations/${locale}.json`, 3).then(({ default: data }) => {
|
|
78
85
|
return {
|
|
79
86
|
data: prefixPluginTranslations(data, pluginId),
|
|
80
87
|
locale
|
|
@@ -95,4 +102,3 @@ export {
|
|
|
95
102
|
index as i,
|
|
96
103
|
pluginId as p
|
|
97
104
|
};
|
|
98
|
-
//# sourceMappingURL=index-efJUvXYO.mjs.map
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
package/dist/server/index.js
CHANGED
|
@@ -10,8 +10,7 @@ const bcrypt = require("bcryptjs");
|
|
|
10
10
|
const utils = require("@strapi/utils");
|
|
11
11
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
12
12
|
function _interopNamespace(e) {
|
|
13
|
-
if (e && e.__esModule)
|
|
14
|
-
return e;
|
|
13
|
+
if (e && e.__esModule) return e;
|
|
15
14
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
16
15
|
if (e) {
|
|
17
16
|
for (const k in e) {
|
|
@@ -75,7 +74,9 @@ async function bootstrap({ strapi: strapi2 }) {
|
|
|
75
74
|
if (!config2) {
|
|
76
75
|
pluginStore.set({ key: "config", value: { restrictedAccess: false } });
|
|
77
76
|
}
|
|
78
|
-
|
|
77
|
+
if (process.env.NODE_ENV !== "production") {
|
|
78
|
+
await getService("documentation").generateFullDoc();
|
|
79
|
+
}
|
|
79
80
|
}
|
|
80
81
|
const addDocumentMiddlewares = async ({ strapi: strapi2 }) => {
|
|
81
82
|
strapi2.server.routes([
|
|
@@ -639,8 +640,7 @@ const getAllSchemasForContentType = ({ routeInfo, attributes, uniqueName }) => {
|
|
|
639
640
|
const schemas = {};
|
|
640
641
|
const typeName = pascalCase(uniqueName);
|
|
641
642
|
const didAddStrapiComponentsToSchemas = (schemaName, schema) => {
|
|
642
|
-
if (!Object.keys(schema) || !Object.keys(schema.properties))
|
|
643
|
-
return false;
|
|
643
|
+
if (!Object.keys(schema) || !Object.keys(schema.properties)) return false;
|
|
644
644
|
strapiComponentSchemas = {
|
|
645
645
|
...strapiComponentSchemas,
|
|
646
646
|
[schemaName]: schema
|
|
@@ -915,8 +915,7 @@ const createService = ({ strapi: strapi2 }) => {
|
|
|
915
915
|
const pluginsThatNeedDocumentation = getPluginsThatNeedDocumentation(
|
|
916
916
|
strapi2.config.get("plugin::documentation")
|
|
917
917
|
);
|
|
918
|
-
if (pluginOrigin && !pluginsThatNeedDocumentation.includes(pluginOrigin))
|
|
919
|
-
return;
|
|
918
|
+
if (pluginOrigin && !pluginsThatNeedDocumentation.includes(pluginOrigin)) return;
|
|
920
919
|
if (excludeFromGeneration.length) {
|
|
921
920
|
this.excludeFromGeneration(excludeFromGeneration);
|
|
922
921
|
}
|
|
@@ -1282,4 +1281,3 @@ const index = {
|
|
|
1282
1281
|
services
|
|
1283
1282
|
};
|
|
1284
1283
|
module.exports = index;
|
|
1285
|
-
//# sourceMappingURL=index.js.map
|