@strapi/content-manager 5.3.0 → 5.4.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/dist/_chunks/{ComponentConfigurationPage-Cr0ttPAZ.js → ComponentConfigurationPage-Cjr64OS0.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-Cr0ttPAZ.js.map → ComponentConfigurationPage-Cjr64OS0.js.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-UGIFDkPO.mjs → ComponentConfigurationPage-DKuCF_uX.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-UGIFDkPO.mjs.map → ComponentConfigurationPage-DKuCF_uX.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-Ds3BOL2z.js → EditConfigurationPage-BeikGxvq.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-Ds3BOL2z.js.map → EditConfigurationPage-BeikGxvq.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-7hF4_8yK.mjs → EditConfigurationPage-CyqSP6ru.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-7hF4_8yK.mjs.map → EditConfigurationPage-CyqSP6ru.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-CA98g5_g.mjs → EditViewPage-PrPHZN_9.mjs} +3 -3
- package/dist/_chunks/{EditViewPage-CA98g5_g.mjs.map → EditViewPage-PrPHZN_9.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-DoQm9llG.js → EditViewPage-pyqEgLgP.js} +3 -3
- package/dist/_chunks/{EditViewPage-DoQm9llG.js.map → EditViewPage-pyqEgLgP.js.map} +1 -1
- package/dist/_chunks/{Field-B2C1tq9_.mjs → Field-DuAYQka5.mjs} +3 -3
- package/dist/_chunks/{Field-B2C1tq9_.mjs.map → Field-DuAYQka5.mjs.map} +1 -1
- package/dist/_chunks/{Field-CQtLQzHl.js → Field-fKtb7rWK.js} +3 -3
- package/dist/_chunks/{Field-CQtLQzHl.js.map → Field-fKtb7rWK.js.map} +1 -1
- package/dist/_chunks/{Form-YQaS3_NH.js → Form-BPXw-S-J.js} +2 -2
- package/dist/_chunks/{Form-YQaS3_NH.js.map → Form-BPXw-S-J.js.map} +1 -1
- package/dist/_chunks/{Form-CxQ2pPjq.mjs → Form-Dxh71ckp.mjs} +2 -2
- package/dist/_chunks/{Form-CxQ2pPjq.mjs.map → Form-Dxh71ckp.mjs.map} +1 -1
- package/dist/_chunks/{History-DbdpigyF.js → History-BGGn9JGY.js} +5 -54
- package/dist/_chunks/History-BGGn9JGY.js.map +1 -0
- package/dist/_chunks/{History-DTYKr2Cg.mjs → History-CGblSVMc.mjs} +5 -54
- package/dist/_chunks/History-CGblSVMc.mjs.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-DRGhXnUA.js → ListConfigurationPage-D3Avyi4t.js} +2 -2
- package/dist/_chunks/{ListConfigurationPage-DRGhXnUA.js.map → ListConfigurationPage-D3Avyi4t.js.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-DQG-j52q.mjs → ListConfigurationPage-TIM0JveM.mjs} +2 -2
- package/dist/_chunks/{ListConfigurationPage-DQG-j52q.mjs.map → ListConfigurationPage-TIM0JveM.mjs.map} +1 -1
- package/dist/_chunks/{ListViewPage-DAekmnvp.mjs → ListViewPage-C975eW-t.mjs} +3 -3
- package/dist/_chunks/{ListViewPage-DAekmnvp.mjs.map → ListViewPage-C975eW-t.mjs.map} +1 -1
- package/dist/_chunks/{ListViewPage-CVIEfYWN.js → ListViewPage-DtAHWFMV.js} +3 -3
- package/dist/_chunks/{ListViewPage-CVIEfYWN.js.map → ListViewPage-DtAHWFMV.js.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-CTcfA2-Q.js → NoContentTypePage-BFjWZX0i.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-CTcfA2-Q.js.map → NoContentTypePage-BFjWZX0i.js.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-5kwUPeFg.mjs → NoContentTypePage-SgNTVGjF.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-5kwUPeFg.mjs.map → NoContentTypePage-SgNTVGjF.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-d-JtEVAw.mjs → NoPermissionsPage-D4XYRoPf.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-d-JtEVAw.mjs.map → NoPermissionsPage-D4XYRoPf.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-pVeCVj9a.js → NoPermissionsPage-j7oulOpl.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-pVeCVj9a.js.map → NoPermissionsPage-j7oulOpl.js.map} +1 -1
- package/dist/_chunks/{Preview-COsm52rZ.js → Preview-Bx1WfmKJ.js} +7 -58
- package/dist/_chunks/Preview-Bx1WfmKJ.js.map +1 -0
- package/dist/_chunks/{Preview-gkmvcwhu.mjs → Preview-Cy6fuAnd.mjs} +7 -58
- package/dist/_chunks/Preview-Cy6fuAnd.mjs.map +1 -0
- package/dist/_chunks/{Relations-Beo_uDz1.js → Relations-CXQqwRXC.js} +3 -3
- package/dist/_chunks/{Relations-Beo_uDz1.js.map → Relations-CXQqwRXC.js.map} +1 -1
- package/dist/_chunks/{Relations-7ItTFWp7.mjs → Relations-DUrYWw0N.mjs} +3 -3
- package/dist/_chunks/{Relations-7ItTFWp7.mjs.map → Relations-DUrYWw0N.mjs.map} +1 -1
- package/dist/_chunks/{en-D_BMf0hT.mjs → en-69jRDM9j.mjs} +3 -2
- package/dist/_chunks/{en-D_BMf0hT.mjs.map → en-69jRDM9j.mjs.map} +1 -1
- package/dist/_chunks/{en-CHOp_xJv.js → en-DAgtrRoa.js} +3 -2
- package/dist/_chunks/{en-CHOp_xJv.js.map → en-DAgtrRoa.js.map} +1 -1
- package/dist/_chunks/{index-D3IiO0X8.mjs → index-Ta--2bRa.mjs} +19 -27
- package/dist/_chunks/index-Ta--2bRa.mjs.map +1 -0
- package/dist/_chunks/{index-CJX65DLa.js → index-_j7lH3CO.js} +19 -27
- package/dist/_chunks/index-_j7lH3CO.js.map +1 -0
- package/dist/_chunks/{layout-9fI2_QJt.js → layout-BDwU2I_y.js} +3 -3
- package/dist/_chunks/{layout-9fI2_QJt.js.map → layout-BDwU2I_y.js.map} +1 -1
- package/dist/_chunks/{layout-OhrmoJVB.mjs → layout-C8H4oKDo.mjs} +3 -3
- package/dist/_chunks/{layout-OhrmoJVB.mjs.map → layout-C8H4oKDo.mjs.map} +1 -1
- package/dist/_chunks/{relations-DIT8sP52.js → relations-CPfMNzM6.js} +2 -2
- package/dist/_chunks/{relations-DIT8sP52.js.map → relations-CPfMNzM6.js.map} +1 -1
- package/dist/_chunks/{relations-sRERvWmr.mjs → relations-Ch70q86O.mjs} +2 -2
- package/dist/_chunks/{relations-sRERvWmr.mjs.map → relations-Ch70q86O.mjs.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/pages/EditView/components/DocumentStatus.d.ts +2 -2
- package/package.json +7 -7
- package/dist/_chunks/History-DTYKr2Cg.mjs.map +0 -1
- package/dist/_chunks/History-DbdpigyF.js.map +0 -1
- package/dist/_chunks/Preview-COsm52rZ.js.map +0 -1
- package/dist/_chunks/Preview-gkmvcwhu.mjs.map +0 -1
- package/dist/_chunks/index-CJX65DLa.js.map +0 -1
- package/dist/_chunks/index-D3IiO0X8.mjs.map +0 -1
@@ -1686,7 +1686,7 @@ const useDocumentActions = () => {
|
|
1686
1686
|
};
|
1687
1687
|
};
|
1688
1688
|
const ProtectedHistoryPage = React__namespace.lazy(
|
1689
|
-
() => Promise.resolve().then(() => require("./History-
|
1689
|
+
() => Promise.resolve().then(() => require("./History-BGGn9JGY.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
|
1690
1690
|
);
|
1691
1691
|
const routes$2 = [
|
1692
1692
|
{
|
@@ -1699,7 +1699,7 @@ const routes$2 = [
|
|
1699
1699
|
}
|
1700
1700
|
];
|
1701
1701
|
const ProtectedPreviewPage = React__namespace.lazy(
|
1702
|
-
() => Promise.resolve().then(() => require("./Preview-
|
1702
|
+
() => Promise.resolve().then(() => require("./Preview-Bx1WfmKJ.js")).then((mod) => ({ default: mod.ProtectedPreviewPage }))
|
1703
1703
|
);
|
1704
1704
|
const routes$1 = [
|
1705
1705
|
{
|
@@ -1712,31 +1712,31 @@ const routes$1 = [
|
|
1712
1712
|
}
|
1713
1713
|
];
|
1714
1714
|
const ProtectedEditViewPage = React.lazy(
|
1715
|
-
() => Promise.resolve().then(() => require("./EditViewPage-
|
1715
|
+
() => Promise.resolve().then(() => require("./EditViewPage-pyqEgLgP.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
|
1716
1716
|
);
|
1717
1717
|
const ProtectedListViewPage = React.lazy(
|
1718
|
-
() => Promise.resolve().then(() => require("./ListViewPage-
|
1718
|
+
() => Promise.resolve().then(() => require("./ListViewPage-DtAHWFMV.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
|
1719
1719
|
);
|
1720
1720
|
const ProtectedListConfiguration = React.lazy(
|
1721
|
-
() => Promise.resolve().then(() => require("./ListConfigurationPage-
|
1721
|
+
() => Promise.resolve().then(() => require("./ListConfigurationPage-D3Avyi4t.js")).then((mod) => ({
|
1722
1722
|
default: mod.ProtectedListConfiguration
|
1723
1723
|
}))
|
1724
1724
|
);
|
1725
1725
|
const ProtectedEditConfigurationPage = React.lazy(
|
1726
|
-
() => Promise.resolve().then(() => require("./EditConfigurationPage-
|
1726
|
+
() => Promise.resolve().then(() => require("./EditConfigurationPage-BeikGxvq.js")).then((mod) => ({
|
1727
1727
|
default: mod.ProtectedEditConfigurationPage
|
1728
1728
|
}))
|
1729
1729
|
);
|
1730
1730
|
const ProtectedComponentConfigurationPage = React.lazy(
|
1731
|
-
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-
|
1731
|
+
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-Cjr64OS0.js")).then((mod) => ({
|
1732
1732
|
default: mod.ProtectedComponentConfigurationPage
|
1733
1733
|
}))
|
1734
1734
|
);
|
1735
1735
|
const NoPermissions = React.lazy(
|
1736
|
-
() => Promise.resolve().then(() => require("./NoPermissionsPage-
|
1736
|
+
() => Promise.resolve().then(() => require("./NoPermissionsPage-j7oulOpl.js")).then((mod) => ({ default: mod.NoPermissions }))
|
1737
1737
|
);
|
1738
1738
|
const NoContentType = React.lazy(
|
1739
|
-
() => Promise.resolve().then(() => require("./NoContentTypePage-
|
1739
|
+
() => Promise.resolve().then(() => require("./NoContentTypePage-BFjWZX0i.js")).then((mod) => ({ default: mod.NoContentType }))
|
1740
1740
|
);
|
1741
1741
|
const CollectionTypePages = () => {
|
1742
1742
|
const { collectionType } = reactRouterDom.useParams();
|
@@ -2553,7 +2553,7 @@ const RelativeTime = React__namespace.forwardRef(
|
|
2553
2553
|
});
|
2554
2554
|
const unit = intervals.find((intervalUnit) => {
|
2555
2555
|
return interval[intervalUnit] > 0 && Object.keys(interval).includes(intervalUnit);
|
2556
|
-
});
|
2556
|
+
}) ?? "seconds";
|
2557
2557
|
const relativeTime = dateFns.isPast(timestamp) ? -interval[unit] : interval[unit];
|
2558
2558
|
const customInterval = customIntervals.find(
|
2559
2559
|
(custom) => interval[custom.unit] < custom.threshold
|
@@ -2587,10 +2587,10 @@ const getDisplayName = ({
|
|
2587
2587
|
return email ?? "";
|
2588
2588
|
};
|
2589
2589
|
const capitalise = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
2590
|
-
const DocumentStatus = ({ status = "draft", ...restProps }) => {
|
2590
|
+
const DocumentStatus = ({ status = "draft", size = "S", ...restProps }) => {
|
2591
2591
|
const statusVariant = status === "draft" ? "secondary" : status === "published" ? "success" : "alternative";
|
2592
2592
|
const { formatMessage } = reactIntl.useIntl();
|
2593
|
-
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Status, { ...restProps, size
|
2593
|
+
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Status, { ...restProps, size, variant: statusVariant, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "span", variant: "omega", fontWeight: "bold", children: formatMessage({
|
2594
2594
|
id: `content-manager.containers.List.${status}`,
|
2595
2595
|
defaultMessage: capitalise(status)
|
2596
2596
|
}) }) });
|
@@ -3290,18 +3290,10 @@ const SelectedEntriesTableContent = ({
|
|
3290
3290
|
search: row.locale && `?plugins[i18n][locale]=${row.locale}`
|
3291
3291
|
},
|
3292
3292
|
state: { from: pathname },
|
3293
|
-
label: formatMessage(
|
3294
|
-
|
3295
|
-
|
3296
|
-
|
3297
|
-
{
|
3298
|
-
id: "content-manager.components.ListViewHelperPluginTable.row-line",
|
3299
|
-
defaultMessage: "item line {number}"
|
3300
|
-
},
|
3301
|
-
{ number: index2 + 1 }
|
3302
|
-
)
|
3303
|
-
}
|
3304
|
-
),
|
3293
|
+
label: formatMessage({
|
3294
|
+
id: "content-manager.bulk-publish.edit",
|
3295
|
+
defaultMessage: "Edit"
|
3296
|
+
}),
|
3305
3297
|
target: "_blank",
|
3306
3298
|
marginLeft: "auto",
|
3307
3299
|
variant: "ghost",
|
@@ -4106,7 +4098,7 @@ const index = {
|
|
4106
4098
|
app.router.addRoute({
|
4107
4099
|
path: "content-manager/*",
|
4108
4100
|
lazy: async () => {
|
4109
|
-
const { Layout } = await Promise.resolve().then(() => require("./layout-
|
4101
|
+
const { Layout } = await Promise.resolve().then(() => require("./layout-BDwU2I_y.js"));
|
4110
4102
|
return {
|
4111
4103
|
Component: Layout
|
4112
4104
|
};
|
@@ -4126,7 +4118,7 @@ const index = {
|
|
4126
4118
|
async registerTrads({ locales }) {
|
4127
4119
|
const importedTrads = await Promise.all(
|
4128
4120
|
locales.map((locale) => {
|
4129
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => Promise.resolve().then(() => require("./ar-BUUWXIYu.js")), "./translations/ca.json": () => Promise.resolve().then(() => require("./ca-Cmk45QO6.js")), "./translations/cs.json": () => Promise.resolve().then(() => require("./cs-CkJy6B2v.js")), "./translations/de.json": () => Promise.resolve().then(() => require("./de-CCEmbAah.js")), "./translations/en.json": () => Promise.resolve().then(() => require("./en-
|
4121
|
+
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/ar.json": () => Promise.resolve().then(() => require("./ar-BUUWXIYu.js")), "./translations/ca.json": () => Promise.resolve().then(() => require("./ca-Cmk45QO6.js")), "./translations/cs.json": () => Promise.resolve().then(() => require("./cs-CkJy6B2v.js")), "./translations/de.json": () => Promise.resolve().then(() => require("./de-CCEmbAah.js")), "./translations/en.json": () => Promise.resolve().then(() => require("./en-DAgtrRoa.js")), "./translations/es.json": () => Promise.resolve().then(() => require("./es-9K52xZIr.js")), "./translations/eu.json": () => Promise.resolve().then(() => require("./eu-VDH-3ovk.js")), "./translations/fr.json": () => Promise.resolve().then(() => require("./fr-B2Kyv8Z9.js")), "./translations/gu.json": () => Promise.resolve().then(() => require("./gu-BRmF601H.js")), "./translations/hi.json": () => Promise.resolve().then(() => require("./hi-CCJBptSq.js")), "./translations/hu.json": () => Promise.resolve().then(() => require("./hu-sNV_yLYy.js")), "./translations/id.json": () => Promise.resolve().then(() => require("./id-B5Ser98A.js")), "./translations/it.json": () => Promise.resolve().then(() => require("./it-DkBIs7vD.js")), "./translations/ja.json": () => Promise.resolve().then(() => require("./ja-7sfIbjxE.js")), "./translations/ko.json": () => Promise.resolve().then(() => require("./ko-woFZPmLk.js")), "./translations/ml.json": () => Promise.resolve().then(() => require("./ml-C2W8N8k1.js")), "./translations/ms.json": () => Promise.resolve().then(() => require("./ms-BuFotyP_.js")), "./translations/nl.json": () => Promise.resolve().then(() => require("./nl-bbEOHChV.js")), "./translations/pl.json": () => Promise.resolve().then(() => require("./pl-uzwG-hk7.js")), "./translations/pt-BR.json": () => Promise.resolve().then(() => require("./pt-BR-BiOz37D9.js")), "./translations/pt.json": () => Promise.resolve().then(() => require("./pt-CeXQuq50.js")), "./translations/ru.json": () => Promise.resolve().then(() => require("./ru-BT3ybNny.js")), "./translations/sa.json": () => Promise.resolve().then(() => require("./sa-CcvkYInH.js")), "./translations/sk.json": () => Promise.resolve().then(() => require("./sk-CvY09Xjv.js")), "./translations/sv.json": () => Promise.resolve().then(() => require("./sv-MYDuzgvT.js")), "./translations/th.json": () => Promise.resolve().then(() => require("./th-D9_GfAjc.js")), "./translations/tr.json": () => Promise.resolve().then(() => require("./tr-D9UH-O_R.js")), "./translations/uk.json": () => Promise.resolve().then(() => require("./uk-C8EiqJY7.js")), "./translations/vi.json": () => Promise.resolve().then(() => require("./vi-CJlYDheJ.js")), "./translations/zh-Hans.json": () => Promise.resolve().then(() => require("./zh-Hans-9kOncHGw.js")), "./translations/zh.json": () => Promise.resolve().then(() => require("./zh-CQQfszqR.js")) }), `./translations/${locale}.json`).then(({ default: data }) => {
|
4130
4122
|
return {
|
4131
4123
|
data: prefixPluginTranslations(data, PLUGIN_ID),
|
4132
4124
|
locale
|
@@ -4186,4 +4178,4 @@ exports.useGetContentTypeConfigurationQuery = useGetContentTypeConfigurationQuer
|
|
4186
4178
|
exports.useGetInitialDataQuery = useGetInitialDataQuery;
|
4187
4179
|
exports.useGetPreviewUrlQuery = useGetPreviewUrlQuery;
|
4188
4180
|
exports.useUpdateContentTypeConfigurationMutation = useUpdateContentTypeConfigurationMutation;
|
4189
|
-
//# sourceMappingURL=index-
|
4181
|
+
//# sourceMappingURL=index-_j7lH3CO.js.map
|