@strapi/content-manager 5.0.0-rc.10 → 5.0.0-rc.12
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-C1B5XNIM.mjs → ComponentConfigurationPage-BNYW9KgT.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-C1B5XNIM.mjs.map → ComponentConfigurationPage-BNYW9KgT.mjs.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-BEJqMzZA.js → ComponentConfigurationPage-DM3Vsp1l.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-BEJqMzZA.js.map → ComponentConfigurationPage-DM3Vsp1l.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-D2DPoQ3j.mjs → EditConfigurationPage-4o3D0nlo.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-D2DPoQ3j.mjs.map → EditConfigurationPage-4o3D0nlo.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-DOyPS5Tv.js → EditConfigurationPage-B6TcA_k2.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-DOyPS5Tv.js.map → EditConfigurationPage-B6TcA_k2.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-fuASFJIx.js → EditViewPage-Ci2MevDY.js} +3 -3
- package/dist/_chunks/{EditViewPage-fuASFJIx.js.map → EditViewPage-Ci2MevDY.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-Ymi21g_V.mjs → EditViewPage-DMNlG9Jo.mjs} +3 -3
- package/dist/_chunks/{EditViewPage-Ymi21g_V.mjs.map → EditViewPage-DMNlG9Jo.mjs.map} +1 -1
- package/dist/_chunks/{Field-Ce4O31Zm.js → Field-DD0cSHT1.js} +17 -45
- package/dist/_chunks/Field-DD0cSHT1.js.map +1 -0
- package/dist/_chunks/{Field-BOo2Rz0Z.mjs → Field-DFMgqDsl.mjs} +17 -45
- package/dist/_chunks/Field-DFMgqDsl.mjs.map +1 -0
- package/dist/_chunks/{Form-D2_h3W-h.mjs → Form-Btnp546K.mjs} +15 -7
- package/dist/_chunks/Form-Btnp546K.mjs.map +1 -0
- package/dist/_chunks/{Form-CCGDm2PL.js → Form-CsuR17sZ.js} +15 -7
- package/dist/_chunks/Form-CsuR17sZ.js.map +1 -0
- package/dist/_chunks/{History-KY23tw1N.mjs → History-D0-C35oC.mjs} +4 -4
- package/dist/_chunks/{History-KY23tw1N.mjs.map → History-D0-C35oC.mjs.map} +1 -1
- package/dist/_chunks/{History-CARFXr5U.js → History-DWPijD_m.js} +4 -4
- package/dist/_chunks/{History-CARFXr5U.js.map → History-DWPijD_m.js.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-fZjkRyi9.js → ListConfigurationPage-CXZulAfo.js} +2 -2
- package/dist/_chunks/{ListConfigurationPage-fZjkRyi9.js.map → ListConfigurationPage-CXZulAfo.js.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-BrwfEo-f.mjs → ListConfigurationPage-DVoaP9lg.mjs} +2 -2
- package/dist/_chunks/{ListConfigurationPage-BrwfEo-f.mjs.map → ListConfigurationPage-DVoaP9lg.mjs.map} +1 -1
- package/dist/_chunks/{ListViewPage-CY6a70Y-.js → ListViewPage-C-o-L6cX.js} +20 -28
- package/dist/_chunks/ListViewPage-C-o-L6cX.js.map +1 -0
- package/dist/_chunks/{ListViewPage-CjkCjT3z.mjs → ListViewPage-Cg674I0s.mjs} +21 -29
- package/dist/_chunks/ListViewPage-Cg674I0s.mjs.map +1 -0
- package/dist/_chunks/{NoContentTypePage-DId86YmW.js → NoContentTypePage-CqAdg_fd.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-DId86YmW.js.map → NoContentTypePage-CqAdg_fd.js.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-C8XPPlCu.mjs → NoContentTypePage-Ee3l4Sli.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-C8XPPlCu.mjs.map → NoContentTypePage-Ee3l4Sli.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-gwaMeI0N.mjs → NoPermissionsPage-B_hXGAO2.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-gwaMeI0N.mjs.map → NoPermissionsPage-B_hXGAO2.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-CT9LmH-v.js → NoPermissionsPage-CNhQjSog.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-CT9LmH-v.js.map → NoPermissionsPage-CNhQjSog.js.map} +1 -1
- package/dist/_chunks/{Relations-Zqwo0Moa.js → Relations-Bfms4h-r.js} +3 -3
- package/dist/_chunks/{Relations-Zqwo0Moa.js.map → Relations-Bfms4h-r.js.map} +1 -1
- package/dist/_chunks/{Relations-BHyHGiTJ.mjs → Relations-CjKTIbxN.mjs} +3 -3
- package/dist/_chunks/{Relations-BHyHGiTJ.mjs.map → Relations-CjKTIbxN.mjs.map} +1 -1
- package/dist/_chunks/{en-uOUIxfcQ.js → en-BVzUkPxZ.js} +6 -5
- package/dist/_chunks/{en-uOUIxfcQ.js.map → en-BVzUkPxZ.js.map} +1 -1
- package/dist/_chunks/{en-BrCTWlZv.mjs → en-CPTj6CjC.mjs} +6 -5
- package/dist/_chunks/{en-BrCTWlZv.mjs.map → en-CPTj6CjC.mjs.map} +1 -1
- package/dist/_chunks/{index-9nr_f9vB.js → index-BI-3Gbhi.js} +45 -52
- package/dist/_chunks/index-BI-3Gbhi.js.map +1 -0
- package/dist/_chunks/{index-CS6TpAQJ.mjs → index-DF5b6TFn.mjs} +47 -54
- package/dist/_chunks/index-DF5b6TFn.mjs.map +1 -0
- package/dist/_chunks/{layout-2aGdWAdb.mjs → layout-CJYFoHje.mjs} +5 -4
- package/dist/_chunks/{layout-2aGdWAdb.mjs.map → layout-CJYFoHje.mjs.map} +1 -1
- package/dist/_chunks/{layout-BssHa4-L.js → layout-DFEVG8Tc.js} +5 -4
- package/dist/_chunks/{layout-BssHa4-L.js.map → layout-DFEVG8Tc.js.map} +1 -1
- package/dist/_chunks/{relations-DBOO7qaP.mjs → relations-B_ASsV1W.mjs} +2 -2
- package/dist/_chunks/{relations-DBOO7qaP.mjs.map → relations-B_ASsV1W.mjs.map} +1 -1
- package/dist/_chunks/{relations-BuxzjpZ_.js → relations-CLicjYsV.js} +2 -2
- package/dist/_chunks/{relations-BuxzjpZ_.js.map → relations-CLicjYsV.js.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +0 -32
- package/dist/admin/src/services/documents.d.ts +3 -1
- package/dist/server/index.js +17 -4
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +17 -4
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
- package/dist/server/src/history/services/history.d.ts.map +1 -1
- package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
- package/dist/server/src/history/services/utils.d.ts +1 -0
- package/dist/server/src/history/services/utils.d.ts.map +1 -1
- package/dist/shared/contracts/collection-types.d.ts +3 -1
- package/dist/shared/contracts/collection-types.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/_chunks/Field-BOo2Rz0Z.mjs.map +0 -1
- package/dist/_chunks/Field-Ce4O31Zm.js.map +0 -1
- package/dist/_chunks/Form-CCGDm2PL.js.map +0 -1
- package/dist/_chunks/Form-D2_h3W-h.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-CY6a70Y-.js.map +0 -1
- package/dist/_chunks/ListViewPage-CjkCjT3z.mjs.map +0 -1
- package/dist/_chunks/index-9nr_f9vB.js.map +0 -1
- package/dist/_chunks/index-CS6TpAQJ.mjs.map +0 -1
@@ -66,6 +66,7 @@ const en = {
|
|
66
66
|
"components.SettingsViewWrapper.pluginHeader.description.list-settings": "Define the settings of the list view.",
|
67
67
|
"components.SettingsViewWrapper.pluginHeader.title": "Configure the view — {name}",
|
68
68
|
"bulk-publish.already-published": "Already Published",
|
69
|
+
"bulk-unpublish.already-unpublished": "Already Unpublished",
|
69
70
|
"bulk-publish.modified": "Ready to publish changes",
|
70
71
|
"components.TableDelete.delete": "Delete all",
|
71
72
|
"components.TableDelete.deleteSelected": "Delete selected",
|
@@ -86,7 +87,7 @@ const en = {
|
|
86
87
|
"containers.edit.tabs.label": "Document status",
|
87
88
|
"containers.edit.tabs.draft": "draft",
|
88
89
|
"containers.edit.tabs.published": "published",
|
89
|
-
"containers.edit.panels.default.title": "
|
90
|
+
"containers.edit.panels.default.title": "Entry",
|
90
91
|
"containers.edit.panels.default.more-actions": "More document actions",
|
91
92
|
"containers.Edit.delete": "Delete",
|
92
93
|
"containers.edit.title.new": "Create an entry",
|
@@ -104,11 +105,11 @@ const en = {
|
|
104
105
|
"containers.Home.pluginHeaderDescription": "Manage your entries through a powerful and beautiful interface.",
|
105
106
|
"containers.Home.pluginHeaderTitle": "Content Manager",
|
106
107
|
"containers.list.displayedFields": "Displayed Fields",
|
107
|
-
"containers.list.items": "{number, plural, =0 {items} one {item} other {items}}",
|
108
|
+
"containers.list.items": "{number} {number, plural, =0 {items} one {item} other {items}}",
|
108
109
|
"containers.list.table.row-actions": "Row actions",
|
109
110
|
"containers.list.selectedEntriesModal.title": "Publish entries",
|
110
|
-
"containers.list.selectedEntriesModal.selectedCount": "<b>{
|
111
|
-
"containers.list.selectedEntriesModal.
|
111
|
+
"containers.list.selectedEntriesModal.selectedCount.publish": "<b>{publishedCount}</b> {publishedCount, plural, =0 {entries} one {entry} other {entries}} already published. <b>{draftCount}</b> {draftCount, plural, =0 {entries} one {entry} other {entries}} ready to publish. <b>{withErrorsCount}</b> {withErrorsCount, plural, =0 {entries} one {entry} other {entries}} waiting for action.",
|
112
|
+
"containers.list.selectedEntriesModal.selectedCount.unpublish": "<b>{draftCount}</b> {draftCount, plural, =0 {entries} one {entry} other {entries}} already unpublished. <b>{publishedCount}</b> {publishedCount, plural, =0 {entries} one {entry} other {entries}} ready to unpublish.",
|
112
113
|
"containers.list.autoCloneModal.header": "Duplicate",
|
113
114
|
"containers.list.autoCloneModal.title": "This entry can't be duplicated directly.",
|
114
115
|
"containers.list.autoCloneModal.description": "A new entry will be created with the same content, but you'll have to change the following fields to save it.",
|
@@ -289,4 +290,4 @@ export {
|
|
289
290
|
models,
|
290
291
|
pageNotFound
|
291
292
|
};
|
292
|
-
//# sourceMappingURL=en-
|
293
|
+
//# sourceMappingURL=en-CPTj6CjC.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"en-
|
1
|
+
{"version":3,"file":"en-CPTj6CjC.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -6,10 +6,10 @@ const React = require("react");
|
|
6
6
|
const designSystem = require("@strapi/design-system");
|
7
7
|
const reactIntl = require("react-intl");
|
8
8
|
const reactRouterDom = require("react-router-dom");
|
9
|
-
const styledComponents = require("styled-components");
|
10
9
|
const yup = require("yup");
|
11
10
|
const pipe = require("lodash/fp/pipe");
|
12
11
|
const dateFns = require("date-fns");
|
12
|
+
const styledComponents = require("styled-components");
|
13
13
|
const qs = require("qs");
|
14
14
|
const toolkit = require("@reduxjs/toolkit");
|
15
15
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
@@ -1324,7 +1324,7 @@ const useDocumentActions = () => {
|
|
1324
1324
|
};
|
1325
1325
|
};
|
1326
1326
|
const ProtectedHistoryPage = React.lazy(
|
1327
|
-
() => Promise.resolve().then(() => require("./History-
|
1327
|
+
() => Promise.resolve().then(() => require("./History-DWPijD_m.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
|
1328
1328
|
);
|
1329
1329
|
const routes$1 = [
|
1330
1330
|
{
|
@@ -1337,31 +1337,31 @@ const routes$1 = [
|
|
1337
1337
|
}
|
1338
1338
|
];
|
1339
1339
|
const ProtectedEditViewPage = React.lazy(
|
1340
|
-
() => Promise.resolve().then(() => require("./EditViewPage-
|
1340
|
+
() => Promise.resolve().then(() => require("./EditViewPage-Ci2MevDY.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
|
1341
1341
|
);
|
1342
1342
|
const ProtectedListViewPage = React.lazy(
|
1343
|
-
() => Promise.resolve().then(() => require("./ListViewPage-
|
1343
|
+
() => Promise.resolve().then(() => require("./ListViewPage-C-o-L6cX.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
|
1344
1344
|
);
|
1345
1345
|
const ProtectedListConfiguration = React.lazy(
|
1346
|
-
() => Promise.resolve().then(() => require("./ListConfigurationPage-
|
1346
|
+
() => Promise.resolve().then(() => require("./ListConfigurationPage-CXZulAfo.js")).then((mod) => ({
|
1347
1347
|
default: mod.ProtectedListConfiguration
|
1348
1348
|
}))
|
1349
1349
|
);
|
1350
1350
|
const ProtectedEditConfigurationPage = React.lazy(
|
1351
|
-
() => Promise.resolve().then(() => require("./EditConfigurationPage-
|
1351
|
+
() => Promise.resolve().then(() => require("./EditConfigurationPage-B6TcA_k2.js")).then((mod) => ({
|
1352
1352
|
default: mod.ProtectedEditConfigurationPage
|
1353
1353
|
}))
|
1354
1354
|
);
|
1355
1355
|
const ProtectedComponentConfigurationPage = React.lazy(
|
1356
|
-
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-
|
1356
|
+
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-DM3Vsp1l.js")).then((mod) => ({
|
1357
1357
|
default: mod.ProtectedComponentConfigurationPage
|
1358
1358
|
}))
|
1359
1359
|
);
|
1360
1360
|
const NoPermissions = React.lazy(
|
1361
|
-
() => Promise.resolve().then(() => require("./NoPermissionsPage-
|
1361
|
+
() => Promise.resolve().then(() => require("./NoPermissionsPage-CNhQjSog.js")).then((mod) => ({ default: mod.NoPermissions }))
|
1362
1362
|
);
|
1363
1363
|
const NoContentType = React.lazy(
|
1364
|
-
() => Promise.resolve().then(() => require("./NoContentTypePage-
|
1364
|
+
() => Promise.resolve().then(() => require("./NoContentTypePage-CqAdg_fd.js")).then((mod) => ({ default: mod.NoContentType }))
|
1365
1365
|
);
|
1366
1366
|
const CollectionTypePages = () => {
|
1367
1367
|
const { collectionType } = reactRouterDom.useParams();
|
@@ -1542,7 +1542,7 @@ const DocumentActionsMenu = ({
|
|
1542
1542
|
};
|
1543
1543
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Menu.Root, { open: isOpen, onOpenChange: setIsOpen, children: [
|
1544
1544
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
1545
|
-
|
1545
|
+
designSystem.Menu.Trigger,
|
1546
1546
|
{
|
1547
1547
|
disabled: isDisabled,
|
1548
1548
|
size: "S",
|
@@ -1658,11 +1658,6 @@ const convertActionVariantToIconColor = (variant = "secondary") => {
|
|
1658
1658
|
return "primary600";
|
1659
1659
|
}
|
1660
1660
|
};
|
1661
|
-
const StyledMoreButton = styledComponents.styled(designSystem.Menu.Trigger)`
|
1662
|
-
& > span {
|
1663
|
-
display: flex;
|
1664
|
-
}
|
1665
|
-
`;
|
1666
1661
|
const DocumentActionConfirmDialog = ({
|
1667
1662
|
onClose,
|
1668
1663
|
onCancel,
|
@@ -1732,6 +1727,7 @@ const PublishAction$1 = ({
|
|
1732
1727
|
const navigate = reactRouterDom.useNavigate();
|
1733
1728
|
const { toggleNotification } = strapiAdmin.useNotification();
|
1734
1729
|
const { _unstableFormatValidationErrors: formatValidationErrors } = strapiAdmin.useAPIErrorHandler();
|
1730
|
+
const isListView = reactRouterDom.useMatch(LIST_PATH) !== null;
|
1735
1731
|
const isCloning = reactRouterDom.useMatch(CLONE_PATH) !== null;
|
1736
1732
|
const { formatMessage } = reactIntl.useIntl();
|
1737
1733
|
const canPublish = useDocumentRBAC("PublishAction", ({ canPublish: canPublish2 }) => canPublish2);
|
@@ -1786,24 +1782,25 @@ const PublishAction$1 = ({
|
|
1786
1782
|
}
|
1787
1783
|
}, [documentId, modified, formValues, setLocalCountOfDraftRelations]);
|
1788
1784
|
React__namespace.useEffect(() => {
|
1789
|
-
if (documentId) {
|
1790
|
-
|
1791
|
-
const { data, error } = await countDraftRelations({
|
1792
|
-
collectionType,
|
1793
|
-
model,
|
1794
|
-
documentId,
|
1795
|
-
params
|
1796
|
-
});
|
1797
|
-
if (error) {
|
1798
|
-
throw error;
|
1799
|
-
}
|
1800
|
-
if (data) {
|
1801
|
-
setServerCountOfDraftRelations(data.data);
|
1802
|
-
}
|
1803
|
-
};
|
1804
|
-
fetchDraftRelationsCount();
|
1785
|
+
if (!document || !document.documentId || isListView) {
|
1786
|
+
return;
|
1805
1787
|
}
|
1806
|
-
|
1788
|
+
const fetchDraftRelationsCount = async () => {
|
1789
|
+
const { data, error } = await countDraftRelations({
|
1790
|
+
collectionType,
|
1791
|
+
model,
|
1792
|
+
documentId,
|
1793
|
+
params
|
1794
|
+
});
|
1795
|
+
if (error) {
|
1796
|
+
throw error;
|
1797
|
+
}
|
1798
|
+
if (data) {
|
1799
|
+
setServerCountOfDraftRelations(data.data);
|
1800
|
+
}
|
1801
|
+
};
|
1802
|
+
fetchDraftRelationsCount();
|
1803
|
+
}, [isListView, document, documentId, countDraftRelations, collectionType, model, params]);
|
1807
1804
|
const isDocumentPublished = (document?.[PUBLISHED_AT_ATTRIBUTE_NAME] || meta?.availableStatus.some((doc) => doc[PUBLISHED_AT_ATTRIBUTE_NAME] !== null)) && document?.status !== "modified";
|
1808
1805
|
if (!schema?.options?.draftAndPublish) {
|
1809
1806
|
return null;
|
@@ -1844,7 +1841,8 @@ const PublishAction$1 = ({
|
|
1844
1841
|
}
|
1845
1842
|
};
|
1846
1843
|
const totalDraftRelations = localCountOfDraftRelations + serverCountOfDraftRelations;
|
1847
|
-
const
|
1844
|
+
const enableDraftRelationsCount = false;
|
1845
|
+
const hasDraftRelations = enableDraftRelationsCount;
|
1848
1846
|
return {
|
1849
1847
|
/**
|
1850
1848
|
* Disabled when:
|
@@ -1861,9 +1859,6 @@ const PublishAction$1 = ({
|
|
1861
1859
|
defaultMessage: "Publish"
|
1862
1860
|
}),
|
1863
1861
|
onClick: async () => {
|
1864
|
-
if (hasDraftRelations) {
|
1865
|
-
return;
|
1866
|
-
}
|
1867
1862
|
await performPublish();
|
1868
1863
|
},
|
1869
1864
|
dialog: hasDraftRelations ? {
|
@@ -2034,7 +2029,7 @@ const UnpublishAction$1 = ({
|
|
2034
2029
|
id: "app.utils.unpublish",
|
2035
2030
|
defaultMessage: "Unpublish"
|
2036
2031
|
}),
|
2037
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
2032
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(Icons.Cross, {}),
|
2038
2033
|
onClick: async () => {
|
2039
2034
|
if (!documentId && collectionType !== SINGLE_TYPES || isDocumentModified) {
|
2040
2035
|
if (!documentId) {
|
@@ -2146,7 +2141,7 @@ const DiscardAction = ({
|
|
2146
2141
|
id: "content-manager.actions.discard.label",
|
2147
2142
|
defaultMessage: "Discard changes"
|
2148
2143
|
}),
|
2149
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
2144
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(Icons.Cross, {}),
|
2150
2145
|
position: ["panel", "table-row"],
|
2151
2146
|
variant: "danger",
|
2152
2147
|
dialog: {
|
@@ -2174,11 +2169,6 @@ const DiscardAction = ({
|
|
2174
2169
|
};
|
2175
2170
|
};
|
2176
2171
|
DiscardAction.type = "discard";
|
2177
|
-
const StyledCrossCircle = styledComponents.styled(Icons.CrossCircle)`
|
2178
|
-
path {
|
2179
|
-
fill: currentColor;
|
2180
|
-
}
|
2181
|
-
`;
|
2182
2172
|
const DEFAULT_ACTIONS = [PublishAction$1, UpdateAction, UnpublishAction$1, DiscardAction];
|
2183
2173
|
const intervals = ["years", "months", "days", "hours", "minutes", "seconds"];
|
2184
2174
|
const RelativeTime = React__namespace.forwardRef(
|
@@ -2563,7 +2553,7 @@ const ActionsPanel = () => {
|
|
2563
2553
|
return {
|
2564
2554
|
title: formatMessage({
|
2565
2555
|
id: "content-manager.containers.edit.panels.default.title",
|
2566
|
-
defaultMessage: "
|
2556
|
+
defaultMessage: "Entry"
|
2567
2557
|
}),
|
2568
2558
|
content: /* @__PURE__ */ jsxRuntime.jsx(ActionsPanelContent, {})
|
2569
2559
|
};
|
@@ -2807,7 +2797,8 @@ const formatEditLayout = (data, {
|
|
2807
2797
|
layout: convertEditLayoutToFieldLayouts(
|
2808
2798
|
configuration.layouts.edit,
|
2809
2799
|
components[uid].attributes,
|
2810
|
-
configuration.metadatas
|
2800
|
+
configuration.metadatas,
|
2801
|
+
{ configurations: data.components, schemas: components }
|
2811
2802
|
),
|
2812
2803
|
settings: {
|
2813
2804
|
...configuration.settings,
|
@@ -2964,6 +2955,7 @@ const ConfirmDialogPublishAll = ({
|
|
2964
2955
|
const { _unstableFormatAPIError: formatAPIError } = strapiAdmin.useAPIErrorHandler(getTranslation);
|
2965
2956
|
const { model, schema } = useDoc();
|
2966
2957
|
const [{ query }] = strapiAdmin.useQueryParams();
|
2958
|
+
const enableDraftRelationsCount = false;
|
2967
2959
|
const {
|
2968
2960
|
data: countDraftRelations = 0,
|
2969
2961
|
isLoading,
|
@@ -2975,7 +2967,7 @@ const ConfirmDialogPublishAll = ({
|
|
2975
2967
|
locale: query?.plugins?.i18n?.locale
|
2976
2968
|
},
|
2977
2969
|
{
|
2978
|
-
skip:
|
2970
|
+
skip: !enableDraftRelationsCount
|
2979
2971
|
}
|
2980
2972
|
);
|
2981
2973
|
React__namespace.useEffect(() => {
|
@@ -3160,7 +3152,7 @@ const SelectedEntriesTableContent = ({
|
|
3160
3152
|
status: row.status
|
3161
3153
|
}
|
3162
3154
|
) }),
|
3163
|
-
/* @__PURE__ */ jsxRuntime.jsx(strapiAdmin.Table.Cell, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
3155
|
+
/* @__PURE__ */ jsxRuntime.jsx(strapiAdmin.Table.Cell, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
3164
3156
|
designSystem.IconButton,
|
3165
3157
|
{
|
3166
3158
|
tag: reactRouterDom.Link,
|
@@ -3183,9 +3175,10 @@ const SelectedEntriesTableContent = ({
|
|
3183
3175
|
),
|
3184
3176
|
target: "_blank",
|
3185
3177
|
marginLeft: "auto",
|
3186
|
-
|
3178
|
+
variant: "ghost",
|
3179
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Pencil, { width: "1.6rem", height: "1.6rem" })
|
3187
3180
|
}
|
3188
|
-
) })
|
3181
|
+
) }) })
|
3189
3182
|
] }, row.id)) })
|
3190
3183
|
] });
|
3191
3184
|
};
|
@@ -3920,7 +3913,7 @@ const index = {
|
|
3920
3913
|
app.router.addRoute({
|
3921
3914
|
path: "content-manager/*",
|
3922
3915
|
lazy: async () => {
|
3923
|
-
const { Layout } = await Promise.resolve().then(() => require("./layout-
|
3916
|
+
const { Layout } = await Promise.resolve().then(() => require("./layout-DFEVG8Tc.js"));
|
3924
3917
|
return {
|
3925
3918
|
Component: Layout
|
3926
3919
|
};
|
@@ -3937,7 +3930,7 @@ const index = {
|
|
3937
3930
|
async registerTrads({ locales }) {
|
3938
3931
|
const importedTrads = await Promise.all(
|
3939
3932
|
locales.map((locale) => {
|
3940
|
-
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-
|
3933
|
+
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-BVzUkPxZ.js")), "./translations/es.json": () => Promise.resolve().then(() => require("./es-EUonQTon.js")), "./translations/eu.json": () => Promise.resolve().then(() => require("./eu-VDH-3ovk.js")), "./translations/fr.json": () => Promise.resolve().then(() => require("./fr-B7kGGg3E.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-CcFe8diO.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 }) => {
|
3941
3934
|
return {
|
3942
3935
|
data: prefixPluginTranslations(data, PLUGIN_ID),
|
3943
3936
|
locale
|
@@ -3995,4 +3988,4 @@ exports.useGetAllDocumentsQuery = useGetAllDocumentsQuery;
|
|
3995
3988
|
exports.useGetContentTypeConfigurationQuery = useGetContentTypeConfigurationQuery;
|
3996
3989
|
exports.useGetInitialDataQuery = useGetInitialDataQuery;
|
3997
3990
|
exports.useUpdateContentTypeConfigurationMutation = useUpdateContentTypeConfigurationMutation;
|
3998
|
-
//# sourceMappingURL=index-
|
3991
|
+
//# sourceMappingURL=index-BI-3Gbhi.js.map
|