@strapi/content-manager 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/CardDragPreview-C0QyJgRA.js.map +1 -1
- package/dist/_chunks/CardDragPreview-DOxamsuj.mjs.map +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-DhWA-JzT.mjs → ComponentConfigurationPage-BgCLcjXO.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-DhWA-JzT.mjs.map → ComponentConfigurationPage-BgCLcjXO.mjs.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-UduDBv3m.js → ComponentConfigurationPage-DywpTZeV.js} +4 -5
- package/dist/_chunks/{ComponentConfigurationPage-UduDBv3m.js.map → ComponentConfigurationPage-DywpTZeV.js.map} +1 -1
- package/dist/_chunks/{ComponentIcon-BXdiCGQp.js → ComponentIcon-CRbtQEUV.js} +2 -3
- package/dist/_chunks/{ComponentIcon-BXdiCGQp.js.map → ComponentIcon-CRbtQEUV.js.map} +1 -1
- package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs.map +1 -1
- package/dist/_chunks/{EditConfigurationPage-5tmx_7Hp.mjs → EditConfigurationPage-BNjOAHNS.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-5tmx_7Hp.mjs.map → EditConfigurationPage-BNjOAHNS.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-Cp9UzUfs.js → EditConfigurationPage-CxRlP5if.js} +4 -5
- package/dist/_chunks/{EditConfigurationPage-Cp9UzUfs.js.map → EditConfigurationPage-CxRlP5if.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-C7l2Emuj.js → EditViewPage-BRewdTqE.js} +4 -5
- package/dist/_chunks/{EditViewPage-C7l2Emuj.js.map → EditViewPage-BRewdTqE.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-BKoISUOu.mjs → EditViewPage-CD_hqc1J.mjs} +3 -3
- package/dist/_chunks/{EditViewPage-BKoISUOu.mjs.map → EditViewPage-CD_hqc1J.mjs.map} +1 -1
- package/dist/_chunks/{Field-BZxzYf1x.mjs → Field-BPkQ-3Ku.mjs} +23 -42
- package/dist/_chunks/{Field-BZxzYf1x.mjs.map → Field-BPkQ-3Ku.mjs.map} +1 -1
- package/dist/_chunks/{Field-BPSJpDfE.js → Field-DwvmENVf.js} +25 -45
- package/dist/_chunks/{Field-BPSJpDfE.js.map → Field-DwvmENVf.js.map} +1 -1
- package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs.map +1 -1
- package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js.map +1 -1
- package/dist/_chunks/{Form-DLkqDd2G.js → Form-C_Gwv8P_.js} +5 -6
- package/dist/_chunks/{Form-DLkqDd2G.js.map → Form-C_Gwv8P_.js.map} +1 -1
- package/dist/_chunks/{Form-8qyOU6YG.mjs → Form-Czi0cf_2.mjs} +3 -3
- package/dist/_chunks/{Form-8qyOU6YG.mjs.map → Form-Czi0cf_2.mjs.map} +1 -1
- package/dist/_chunks/{History-DYMicybF.js → History-C1TKAig-.js} +5 -6
- package/dist/_chunks/{History-DYMicybF.js.map → History-C1TKAig-.js.map} +1 -1
- package/dist/_chunks/{History-N_kRb1Yr.mjs → History-CIQHyi4T.mjs} +4 -4
- package/dist/_chunks/{History-N_kRb1Yr.mjs.map → History-CIQHyi4T.mjs.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-rUF9iGWq.js → ListConfigurationPage-D-NGRLYu.js} +4 -5
- package/dist/_chunks/{ListConfigurationPage-rUF9iGWq.js.map → ListConfigurationPage-D-NGRLYu.js.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-BM3qVxug.mjs → ListConfigurationPage-DcZsfyEL.mjs} +3 -3
- package/dist/_chunks/{ListConfigurationPage-BM3qVxug.mjs.map → ListConfigurationPage-DcZsfyEL.mjs.map} +1 -1
- package/dist/_chunks/{ListViewPage-CWilGbZb.mjs → ListViewPage-C10McTK1.mjs} +3 -3
- package/dist/_chunks/{ListViewPage-CWilGbZb.mjs.map → ListViewPage-C10McTK1.mjs.map} +1 -1
- package/dist/_chunks/{ListViewPage-BSLzd7cZ.js → ListViewPage-xv5IQoZp.js} +4 -5
- package/dist/_chunks/{ListViewPage-BSLzd7cZ.js.map → ListViewPage-xv5IQoZp.js.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-VWYlePwI.mjs → NoContentTypePage-CPc0Cd3S.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-VWYlePwI.mjs.map → NoContentTypePage-CPc0Cd3S.mjs.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-CQccVhIX.js → NoContentTypePage-Dzw5Yj5u.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-CQccVhIX.js.map → NoContentTypePage-Dzw5Yj5u.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-Af32Gg2m.js → NoPermissionsPage-DAe5CDCC.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-Af32Gg2m.js.map → NoPermissionsPage-DAe5CDCC.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-CS2tCmfr.mjs → NoPermissionsPage-wfPBh2_0.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-CS2tCmfr.mjs.map → NoPermissionsPage-wfPBh2_0.mjs.map} +1 -1
- package/dist/_chunks/{Preview-D4KzuJFL.js → Preview-B7LyGT_b.js} +4 -5
- package/dist/_chunks/{Preview-D4KzuJFL.js.map → Preview-B7LyGT_b.js.map} +1 -1
- package/dist/_chunks/{Preview-kPkuZbBJ.mjs → Preview-BVFFm7uB.mjs} +3 -3
- package/dist/_chunks/{Preview-kPkuZbBJ.mjs.map → Preview-BVFFm7uB.mjs.map} +1 -1
- package/dist/_chunks/{Relations-D_Ki5aVM.js → Relations-BmYR1AjY.js} +7 -10
- package/dist/_chunks/{Relations-D_Ki5aVM.js.map → Relations-BmYR1AjY.js.map} +1 -1
- package/dist/_chunks/{Relations-5k27Rh54.mjs → Relations-JPhWxk-s.mjs} +6 -8
- package/dist/_chunks/{Relations-5k27Rh54.mjs.map → Relations-JPhWxk-s.mjs.map} +1 -1
- package/dist/_chunks/hooks-BAaaKPS_.js.map +1 -1
- package/dist/_chunks/{index-DwOsF7wF.js → index-C2Q_PLWj.js} +28 -28
- package/dist/_chunks/{index-DwOsF7wF.js.map → index-C2Q_PLWj.js.map} +1 -1
- package/dist/_chunks/{index-BLPa8Dq-.mjs → index-DLIkNVnQ.mjs} +27 -26
- package/dist/_chunks/{index-BLPa8Dq-.mjs.map → index-DLIkNVnQ.mjs.map} +1 -1
- package/dist/_chunks/{layout-CN2bFL9V.js → layout-7AsWJzZJ.js} +5 -6
- package/dist/_chunks/{layout-CN2bFL9V.js.map → layout-7AsWJzZJ.js.map} +1 -1
- package/dist/_chunks/{layout-2Si0j0jO.mjs → layout-qE8qkNH_.mjs} +4 -4
- package/dist/_chunks/{layout-2Si0j0jO.mjs.map → layout-qE8qkNH_.mjs.map} +1 -1
- package/dist/_chunks/objects-BcXOv6_9.js.map +1 -1
- package/dist/_chunks/objects-D6yBsdmx.mjs.map +1 -1
- package/dist/_chunks/{relations-CAxDjUJF.mjs → relations-BjHH_1Am.mjs} +2 -2
- package/dist/_chunks/{relations-CAxDjUJF.mjs.map → relations-BjHH_1Am.mjs.map} +1 -1
- package/dist/_chunks/{relations-B0E0XUY7.js → relations-EifVzf_2.js} +2 -2
- package/dist/_chunks/{relations-B0E0XUY7.js.map → relations-EifVzf_2.js.map} +1 -1
- package/dist/_chunks/useDebounce-CtcjDB3L.js.map +1 -1
- package/dist/_chunks/useDebounce-DmuSJIF3.mjs.map +1 -1
- package/dist/_chunks/{useDragAndDrop-J0TUUbR6.js → useDragAndDrop-BMtgCYzL.js} +5 -9
- package/dist/_chunks/{useDragAndDrop-J0TUUbR6.js.map → useDragAndDrop-BMtgCYzL.js.map} +1 -1
- package/dist/_chunks/{useDragAndDrop-DdHgKsqq.mjs → useDragAndDrop-DJ6jqvZN.mjs} +4 -7
- package/dist/_chunks/{useDragAndDrop-DdHgKsqq.mjs.map → useDragAndDrop-DJ6jqvZN.mjs.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +18 -36
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +17 -34
- package/dist/server/index.mjs.map +1 -1
- package/package.json +7 -7
@@ -14,13 +14,20 @@ import { stringify } from "qs";
|
|
14
14
|
import pipe from "lodash/fp/pipe";
|
15
15
|
import { intervalToDuration, isPast } from "date-fns";
|
16
16
|
import { createSlice, combineReducers } from "@reduxjs/toolkit";
|
17
|
-
const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
17
|
+
const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
18
18
|
const v = glob[path];
|
19
19
|
if (v) {
|
20
20
|
return typeof v === "function" ? v() : Promise.resolve(v);
|
21
21
|
}
|
22
22
|
return new Promise((_, reject) => {
|
23
|
-
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
23
|
+
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
24
|
+
reject.bind(
|
25
|
+
null,
|
26
|
+
new Error(
|
27
|
+
"Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
|
28
|
+
)
|
29
|
+
)
|
30
|
+
);
|
24
31
|
});
|
25
32
|
};
|
26
33
|
const PLUGIN_ID = "content-manager";
|
@@ -453,8 +460,7 @@ const {
|
|
453
460
|
useUnpublishManyDocumentsMutation
|
454
461
|
} = documentApi;
|
455
462
|
const buildValidParams = (query) => {
|
456
|
-
if (!query)
|
457
|
-
return query;
|
463
|
+
if (!query) return query;
|
458
464
|
const { plugins: _, ...validQueryParams } = {
|
459
465
|
...query,
|
460
466
|
...Object.values(query?.plugins ?? {}).reduce(
|
@@ -1661,7 +1667,7 @@ const useDocumentActions = () => {
|
|
1661
1667
|
};
|
1662
1668
|
};
|
1663
1669
|
const ProtectedHistoryPage = React.lazy(
|
1664
|
-
() => import("./History-
|
1670
|
+
() => import("./History-CIQHyi4T.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
|
1665
1671
|
);
|
1666
1672
|
const routes$2 = [
|
1667
1673
|
{
|
@@ -1674,7 +1680,7 @@ const routes$2 = [
|
|
1674
1680
|
}
|
1675
1681
|
];
|
1676
1682
|
const ProtectedPreviewPage = React.lazy(
|
1677
|
-
() => import("./Preview-
|
1683
|
+
() => import("./Preview-BVFFm7uB.mjs").then((mod) => ({ default: mod.ProtectedPreviewPage }))
|
1678
1684
|
);
|
1679
1685
|
const routes$1 = [
|
1680
1686
|
{
|
@@ -1687,31 +1693,31 @@ const routes$1 = [
|
|
1687
1693
|
}
|
1688
1694
|
];
|
1689
1695
|
const ProtectedEditViewPage = lazy(
|
1690
|
-
() => import("./EditViewPage-
|
1696
|
+
() => import("./EditViewPage-CD_hqc1J.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
|
1691
1697
|
);
|
1692
1698
|
const ProtectedListViewPage = lazy(
|
1693
|
-
() => import("./ListViewPage-
|
1699
|
+
() => import("./ListViewPage-C10McTK1.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
|
1694
1700
|
);
|
1695
1701
|
const ProtectedListConfiguration = lazy(
|
1696
|
-
() => import("./ListConfigurationPage-
|
1702
|
+
() => import("./ListConfigurationPage-DcZsfyEL.mjs").then((mod) => ({
|
1697
1703
|
default: mod.ProtectedListConfiguration
|
1698
1704
|
}))
|
1699
1705
|
);
|
1700
1706
|
const ProtectedEditConfigurationPage = lazy(
|
1701
|
-
() => import("./EditConfigurationPage-
|
1707
|
+
() => import("./EditConfigurationPage-BNjOAHNS.mjs").then((mod) => ({
|
1702
1708
|
default: mod.ProtectedEditConfigurationPage
|
1703
1709
|
}))
|
1704
1710
|
);
|
1705
1711
|
const ProtectedComponentConfigurationPage = lazy(
|
1706
|
-
() => import("./ComponentConfigurationPage-
|
1712
|
+
() => import("./ComponentConfigurationPage-BgCLcjXO.mjs").then((mod) => ({
|
1707
1713
|
default: mod.ProtectedComponentConfigurationPage
|
1708
1714
|
}))
|
1709
1715
|
);
|
1710
1716
|
const NoPermissions = lazy(
|
1711
|
-
() => import("./NoPermissionsPage-
|
1717
|
+
() => import("./NoPermissionsPage-wfPBh2_0.mjs").then((mod) => ({ default: mod.NoPermissions }))
|
1712
1718
|
);
|
1713
1719
|
const NoContentType = lazy(
|
1714
|
-
() => import("./NoContentTypePage-
|
1720
|
+
() => import("./NoContentTypePage-CPc0Cd3S.mjs").then((mod) => ({ default: mod.NoContentType }))
|
1715
1721
|
);
|
1716
1722
|
const CollectionTypePages = () => {
|
1717
1723
|
const { collectionType } = useParams();
|
@@ -3458,8 +3464,7 @@ const PublishAction = ({ documents, model }) => {
|
|
3458
3464
|
const refetchList = () => {
|
3459
3465
|
contentManagerApi.util.invalidateTags([{ type: "Document", id: `${model}_LIST` }]);
|
3460
3466
|
};
|
3461
|
-
if (!showPublishButton)
|
3462
|
-
return null;
|
3467
|
+
if (!showPublishButton) return null;
|
3463
3468
|
return {
|
3464
3469
|
actionType: "publish",
|
3465
3470
|
variant: "tertiary",
|
@@ -3527,8 +3532,7 @@ const DeleteAction = ({ documents, model }) => {
|
|
3527
3532
|
selectRow([]);
|
3528
3533
|
}
|
3529
3534
|
};
|
3530
|
-
if (!hasDeletePermission)
|
3531
|
-
return null;
|
3535
|
+
if (!hasDeletePermission) return null;
|
3532
3536
|
return {
|
3533
3537
|
variant: "danger-light",
|
3534
3538
|
label: formatMessage({ id: "global.delete", defaultMessage: "Delete" }),
|
@@ -3577,8 +3581,7 @@ const UnpublishAction = ({ documents, model }) => {
|
|
3577
3581
|
}
|
3578
3582
|
};
|
3579
3583
|
const showUnpublishButton = hasDraftAndPublishEnabled && hasPublishPermission && documents.some((entry) => entry.status === "published" || entry.status === "modified");
|
3580
|
-
if (!showUnpublishButton)
|
3581
|
-
return null;
|
3584
|
+
if (!showUnpublishButton) return null;
|
3582
3585
|
return {
|
3583
3586
|
variant: "tertiary",
|
3584
3587
|
label: formatMessage({ id: "app.utils.unpublish", defaultMessage: "Unpublish" }),
|
@@ -3914,10 +3917,8 @@ class ContentManagerPlugin {
|
|
3914
3917
|
const getPrintableType = (value) => {
|
3915
3918
|
const nativeType = typeof value;
|
3916
3919
|
if (nativeType === "object") {
|
3917
|
-
if (value === null)
|
3918
|
-
|
3919
|
-
if (Array.isArray(value))
|
3920
|
-
return "array";
|
3920
|
+
if (value === null) return "null";
|
3921
|
+
if (Array.isArray(value)) return "array";
|
3921
3922
|
if (value instanceof Object && value.constructor.name !== "Object") {
|
3922
3923
|
return value.constructor.name;
|
3923
3924
|
}
|
@@ -4119,7 +4120,7 @@ const index = {
|
|
4119
4120
|
app.router.addRoute({
|
4120
4121
|
path: "content-manager/*",
|
4121
4122
|
lazy: async () => {
|
4122
|
-
const { Layout } = await import("./layout-
|
4123
|
+
const { Layout } = await import("./layout-qE8qkNH_.mjs");
|
4123
4124
|
return {
|
4124
4125
|
Component: Layout
|
4125
4126
|
};
|
@@ -4139,7 +4140,7 @@ const index = {
|
|
4139
4140
|
async registerTrads({ locales }) {
|
4140
4141
|
const importedTrads = await Promise.all(
|
4141
4142
|
locales.map((locale) => {
|
4142
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => import("./ar-CCEVvqGG.mjs"), "./translations/ca.json": () => import("./ca-5U32ON2v.mjs"), "./translations/cs.json": () => import("./cs-CM2aBUar.mjs"), "./translations/de.json": () => import("./de-C72KDNOl.mjs"), "./translations/en.json": () => import("./en-Dtk_ot79.mjs"), "./translations/es.json": () => import("./es-D34tqjMw.mjs"), "./translations/eu.json": () => import("./eu-CdALomew.mjs"), "./translations/fr.json": () => import("./fr--pg5jUbt.mjs"), "./translations/gu.json": () => import("./gu-CNpaMDpH.mjs"), "./translations/hi.json": () => import("./hi-Dwvd04m3.mjs"), "./translations/hu.json": () => import("./hu-CeYvaaO0.mjs"), "./translations/id.json": () => import("./id-BtwA9WJT.mjs"), "./translations/it.json": () => import("./it-BrVPqaf1.mjs"), "./translations/ja.json": () => import("./ja-BHqhDq4V.mjs"), "./translations/ko.json": () => import("./ko-HVQRlfUI.mjs"), "./translations/ml.json": () => import("./ml-BihZwQit.mjs"), "./translations/ms.json": () => import("./ms-m_WjyWx7.mjs"), "./translations/nl.json": () => import("./nl-D4R9gHx5.mjs"), "./translations/pl.json": () => import("./pl-sbx9mSt_.mjs"), "./translations/pt-BR.json": () => import("./pt-BR-C71iDxnh.mjs"), "./translations/pt.json": () => import("./pt-BsaFvS8-.mjs"), "./translations/ru.json": () => import("./ru-BE6A4Exp.mjs"), "./translations/sa.json": () => import("./sa-Dag0k-Z8.mjs"), "./translations/sk.json": () => import("./sk-BFg-R8qJ.mjs"), "./translations/sv.json": () => import("./sv-CUnfWGsh.mjs"), "./translations/th.json": () => import("./th-BqbI8lIT.mjs"), "./translations/tr.json": () => import("./tr-CgeK3wJM.mjs"), "./translations/uk.json": () => import("./uk-CR-zDhAY.mjs"), "./translations/vi.json": () => import("./vi-DUXIk_fw.mjs"), "./translations/zh-Hans.json": () => import("./zh-Hans-BPQcRIyH.mjs"), "./translations/zh.json": () => import("./zh-BWZspA60.mjs") }), `./translations/${locale}.json
|
4143
|
+
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => import("./ar-CCEVvqGG.mjs"), "./translations/ca.json": () => import("./ca-5U32ON2v.mjs"), "./translations/cs.json": () => import("./cs-CM2aBUar.mjs"), "./translations/de.json": () => import("./de-C72KDNOl.mjs"), "./translations/en.json": () => import("./en-Dtk_ot79.mjs"), "./translations/es.json": () => import("./es-D34tqjMw.mjs"), "./translations/eu.json": () => import("./eu-CdALomew.mjs"), "./translations/fr.json": () => import("./fr--pg5jUbt.mjs"), "./translations/gu.json": () => import("./gu-CNpaMDpH.mjs"), "./translations/hi.json": () => import("./hi-Dwvd04m3.mjs"), "./translations/hu.json": () => import("./hu-CeYvaaO0.mjs"), "./translations/id.json": () => import("./id-BtwA9WJT.mjs"), "./translations/it.json": () => import("./it-BrVPqaf1.mjs"), "./translations/ja.json": () => import("./ja-BHqhDq4V.mjs"), "./translations/ko.json": () => import("./ko-HVQRlfUI.mjs"), "./translations/ml.json": () => import("./ml-BihZwQit.mjs"), "./translations/ms.json": () => import("./ms-m_WjyWx7.mjs"), "./translations/nl.json": () => import("./nl-D4R9gHx5.mjs"), "./translations/pl.json": () => import("./pl-sbx9mSt_.mjs"), "./translations/pt-BR.json": () => import("./pt-BR-C71iDxnh.mjs"), "./translations/pt.json": () => import("./pt-BsaFvS8-.mjs"), "./translations/ru.json": () => import("./ru-BE6A4Exp.mjs"), "./translations/sa.json": () => import("./sa-Dag0k-Z8.mjs"), "./translations/sk.json": () => import("./sk-BFg-R8qJ.mjs"), "./translations/sv.json": () => import("./sv-CUnfWGsh.mjs"), "./translations/th.json": () => import("./th-BqbI8lIT.mjs"), "./translations/tr.json": () => import("./tr-CgeK3wJM.mjs"), "./translations/uk.json": () => import("./uk-CR-zDhAY.mjs"), "./translations/vi.json": () => import("./vi-DUXIk_fw.mjs"), "./translations/zh-Hans.json": () => import("./zh-Hans-BPQcRIyH.mjs"), "./translations/zh.json": () => import("./zh-BWZspA60.mjs") }), `./translations/${locale}.json`, 3).then(({ default: data }) => {
|
4143
4144
|
return {
|
4144
4145
|
data: prefixPluginTranslations(data, PLUGIN_ID),
|
4145
4146
|
locale
|
@@ -4201,4 +4202,4 @@ export {
|
|
4201
4202
|
capitalise as y,
|
4202
4203
|
useUpdateContentTypeConfigurationMutation as z
|
4203
4204
|
};
|
4204
|
-
//# sourceMappingURL=index-
|
4205
|
+
//# sourceMappingURL=index-DLIkNVnQ.mjs.map
|