@strapi/content-manager 0.0.0-experimental.25e22c6cc9bc6b35392bb55d09f641a0a65e7403 → 0.0.0-experimental.4ddd402c7194d1a969a797313bf007c93148d59a
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-WRPUXGd6.js → ComponentConfigurationPage-BZIaEffq.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-WRPUXGd6.js.map → ComponentConfigurationPage-BZIaEffq.js.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-gdUj_t-O.mjs → ComponentConfigurationPage-Cxz51Sve.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-gdUj_t-O.mjs.map → ComponentConfigurationPage-Cxz51Sve.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-C1vjMBgy.js → EditConfigurationPage-CM62NN0L.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-C1vjMBgy.js.map → EditConfigurationPage-CM62NN0L.js.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-BwuIPOJG.mjs → EditConfigurationPage-CZLbgfIp.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-BwuIPOJG.mjs.map → EditConfigurationPage-CZLbgfIp.mjs.map} +1 -1
- package/dist/_chunks/{EditViewPage-DbcGfyqK.js → EditViewPage-CU7724gt.js} +45 -45
- package/dist/_chunks/EditViewPage-CU7724gt.js.map +1 -0
- package/dist/_chunks/{EditViewPage-0MiFkXa8.mjs → EditViewPage-CzuJgWWp.mjs} +46 -46
- package/dist/_chunks/EditViewPage-CzuJgWWp.mjs.map +1 -0
- package/dist/_chunks/{Field-BG1xu38N.js → Field-Dh1yZyqy.js} +115 -103
- package/dist/_chunks/Field-Dh1yZyqy.js.map +1 -0
- package/dist/_chunks/{Field-BDMSCcy5.mjs → Field-QtUSh5mU.mjs} +116 -104
- package/dist/_chunks/Field-QtUSh5mU.mjs.map +1 -0
- package/dist/_chunks/{Form-9BnFyUjy.js → Form-BOR8NOe1.js} +25 -21
- package/dist/_chunks/Form-BOR8NOe1.js.map +1 -0
- package/dist/_chunks/{Form-CPVWavB8.mjs → Form-COLpvlnv.mjs} +27 -23
- package/dist/_chunks/Form-COLpvlnv.mjs.map +1 -0
- package/dist/_chunks/{History-BVpd8LP3.mjs → History-Bu53Yfw-.mjs} +22 -101
- package/dist/_chunks/History-Bu53Yfw-.mjs.map +1 -0
- package/dist/_chunks/{History-BWWxLt2Z.js → History-CW2akQ6h.js} +21 -100
- package/dist/_chunks/History-CW2akQ6h.js.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-DozVMKcR.mjs → ListConfigurationPage-TqrmwjPN.mjs} +45 -43
- package/dist/_chunks/ListConfigurationPage-TqrmwjPN.mjs.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-6swzjdAZ.js → ListConfigurationPage-jzdhEk_u.js} +43 -42
- package/dist/_chunks/ListConfigurationPage-jzdhEk_u.js.map +1 -0
- package/dist/_chunks/{ListViewPage-BlzfjS2Q.js → ListViewPage-B3bMOrMv.js} +64 -47
- package/dist/_chunks/ListViewPage-B3bMOrMv.js.map +1 -0
- package/dist/_chunks/{ListViewPage-Ds0ulgfG.mjs → ListViewPage-BO_mOXIl.mjs} +65 -48
- package/dist/_chunks/ListViewPage-BO_mOXIl.mjs.map +1 -0
- package/dist/_chunks/{NoContentTypePage-D2nCCWEl.js → NoContentTypePage-D77xsNHj.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-D2nCCWEl.js.map → NoContentTypePage-D77xsNHj.js.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-BH11kaKt.mjs → NoContentTypePage-DqB0QV0k.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-BH11kaKt.mjs.map → NoContentTypePage-DqB0QV0k.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-DN_JlsU2.js → NoPermissionsPage-C6qTGogm.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-DN_JlsU2.js.map → NoPermissionsPage-C6qTGogm.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-BT2Tn0D_.mjs → NoPermissionsPage-DTXi042N.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-BT2Tn0D_.mjs.map → NoPermissionsPage-DTXi042N.mjs.map} +1 -1
- package/dist/_chunks/{Relations-CcgFTcWo.js → Relations-B6fb2POW.js} +3 -3
- package/dist/_chunks/{Relations-CcgFTcWo.js.map → Relations-B6fb2POW.js.map} +1 -1
- package/dist/_chunks/{Relations-Dnag3fhV.mjs → Relations-CJ4qdkRo.mjs} +3 -3
- package/dist/_chunks/{Relations-Dnag3fhV.mjs.map → Relations-CJ4qdkRo.mjs.map} +1 -1
- package/dist/_chunks/{en-Ux26r5pl.mjs → en-9GwRW_ku.mjs} +1 -3
- package/dist/_chunks/{en-Ux26r5pl.mjs.map → en-9GwRW_ku.mjs.map} +1 -1
- package/dist/_chunks/{en-fbKQxLGn.js → en-DZXjRiWA.js} +1 -3
- package/dist/_chunks/{en-fbKQxLGn.js.map → en-DZXjRiWA.js.map} +1 -1
- package/dist/_chunks/{index-JNNNKUHs.mjs → index-Dahjdw4h.mjs} +266 -88
- package/dist/_chunks/index-Dahjdw4h.mjs.map +1 -0
- package/dist/_chunks/{index-CWpLBSt0.js → index-DcUu-_72.js} +265 -87
- package/dist/_chunks/index-DcUu-_72.js.map +1 -0
- package/dist/_chunks/{layout--iHdZzRk.js → layout-jcY4dyUG.js} +3 -3
- package/dist/_chunks/{layout--iHdZzRk.js.map → layout-jcY4dyUG.js.map} +1 -1
- package/dist/_chunks/{layout-DC503LnF.mjs → layout-omucV6TV.mjs} +3 -3
- package/dist/_chunks/{layout-DC503LnF.mjs.map → layout-omucV6TV.mjs.map} +1 -1
- package/dist/_chunks/{relations-CTje5t-a.mjs → relations-CN0-aw6p.mjs} +2 -2
- package/dist/_chunks/{relations-CTje5t-a.mjs.map → relations-CN0-aw6p.mjs.map} +1 -1
- package/dist/_chunks/{relations-BbHizA5K.js → relations-DGzD7ORa.js} +2 -2
- package/dist/_chunks/{relations-BbHizA5K.js.map → relations-DGzD7ORa.js.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/history/components/VersionInputRenderer.d.ts +1 -1
- package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +3 -7
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +10 -2
- package/dist/admin/src/pages/ListView/components/BulkActions/Actions.d.ts +30 -3
- package/dist/admin/src/pages/ListView/components/BulkActions/ConfirmBulkActionDialog.d.ts +2 -2
- package/dist/server/index.js +0 -3
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +0 -3
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/_chunks/EditViewPage-0MiFkXa8.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-DbcGfyqK.js.map +0 -1
- package/dist/_chunks/Field-BDMSCcy5.mjs.map +0 -1
- package/dist/_chunks/Field-BG1xu38N.js.map +0 -1
- package/dist/_chunks/Form-9BnFyUjy.js.map +0 -1
- package/dist/_chunks/Form-CPVWavB8.mjs.map +0 -1
- package/dist/_chunks/History-BVpd8LP3.mjs.map +0 -1
- package/dist/_chunks/History-BWWxLt2Z.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-6swzjdAZ.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-DozVMKcR.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-BlzfjS2Q.js.map +0 -1
- package/dist/_chunks/ListViewPage-Ds0ulgfG.mjs.map +0 -1
- package/dist/_chunks/index-CWpLBSt0.js.map +0 -1
- package/dist/_chunks/index-JNNNKUHs.mjs.map +0 -1
@@ -1286,7 +1286,7 @@ const useDocumentActions = () => {
|
|
1286
1286
|
};
|
1287
1287
|
};
|
1288
1288
|
const ProtectedHistoryPage = React.lazy(
|
1289
|
-
() => Promise.resolve().then(() => require("./History-
|
1289
|
+
() => Promise.resolve().then(() => require("./History-CW2akQ6h.js")).then((mod) => ({ default: mod.ProtectedHistoryPage }))
|
1290
1290
|
);
|
1291
1291
|
const routes$1 = [
|
1292
1292
|
{
|
@@ -1299,31 +1299,31 @@ const routes$1 = [
|
|
1299
1299
|
}
|
1300
1300
|
];
|
1301
1301
|
const ProtectedEditViewPage = React.lazy(
|
1302
|
-
() => Promise.resolve().then(() => require("./EditViewPage-
|
1302
|
+
() => Promise.resolve().then(() => require("./EditViewPage-CU7724gt.js")).then((mod) => ({ default: mod.ProtectedEditViewPage }))
|
1303
1303
|
);
|
1304
1304
|
const ProtectedListViewPage = React.lazy(
|
1305
|
-
() => Promise.resolve().then(() => require("./ListViewPage-
|
1305
|
+
() => Promise.resolve().then(() => require("./ListViewPage-B3bMOrMv.js")).then((mod) => ({ default: mod.ProtectedListViewPage }))
|
1306
1306
|
);
|
1307
1307
|
const ProtectedListConfiguration = React.lazy(
|
1308
|
-
() => Promise.resolve().then(() => require("./ListConfigurationPage-
|
1308
|
+
() => Promise.resolve().then(() => require("./ListConfigurationPage-jzdhEk_u.js")).then((mod) => ({
|
1309
1309
|
default: mod.ProtectedListConfiguration
|
1310
1310
|
}))
|
1311
1311
|
);
|
1312
1312
|
const ProtectedEditConfigurationPage = React.lazy(
|
1313
|
-
() => Promise.resolve().then(() => require("./EditConfigurationPage-
|
1313
|
+
() => Promise.resolve().then(() => require("./EditConfigurationPage-CM62NN0L.js")).then((mod) => ({
|
1314
1314
|
default: mod.ProtectedEditConfigurationPage
|
1315
1315
|
}))
|
1316
1316
|
);
|
1317
1317
|
const ProtectedComponentConfigurationPage = React.lazy(
|
1318
|
-
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-
|
1318
|
+
() => Promise.resolve().then(() => require("./ComponentConfigurationPage-BZIaEffq.js")).then((mod) => ({
|
1319
1319
|
default: mod.ProtectedComponentConfigurationPage
|
1320
1320
|
}))
|
1321
1321
|
);
|
1322
1322
|
const NoPermissions = React.lazy(
|
1323
|
-
() => Promise.resolve().then(() => require("./NoPermissionsPage-
|
1323
|
+
() => Promise.resolve().then(() => require("./NoPermissionsPage-C6qTGogm.js")).then((mod) => ({ default: mod.NoPermissions }))
|
1324
1324
|
);
|
1325
1325
|
const NoContentType = React.lazy(
|
1326
|
-
() => Promise.resolve().then(() => require("./NoContentTypePage-
|
1326
|
+
() => Promise.resolve().then(() => require("./NoContentTypePage-D77xsNHj.js")).then((mod) => ({ default: mod.NoContentType }))
|
1327
1327
|
);
|
1328
1328
|
const CollectionTypePages = () => {
|
1329
1329
|
const { collectionType } = reactRouterDom.useParams();
|
@@ -1613,20 +1613,22 @@ const DocumentActionConfirmDialog = ({
|
|
1613
1613
|
}
|
1614
1614
|
onClose();
|
1615
1615
|
};
|
1616
|
-
return /* @__PURE__ */ jsxRuntime.
|
1617
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.
|
1618
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
1619
|
-
|
1620
|
-
|
1621
|
-
|
1622
|
-
|
1623
|
-
|
1624
|
-
|
1625
|
-
|
1626
|
-
|
1627
|
-
|
1628
|
-
|
1629
|
-
|
1616
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Dialog, { isOpen, title, onClose: handleClose, children: [
|
1617
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.DialogBody, { children: content }),
|
1618
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
1619
|
+
designSystem.DialogFooter,
|
1620
|
+
{
|
1621
|
+
startAction: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: handleClose, variant: "tertiary", children: formatMessage({
|
1622
|
+
id: "app.components.Button.cancel",
|
1623
|
+
defaultMessage: "Cancel"
|
1624
|
+
}) }),
|
1625
|
+
endAction: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: handleConfirm, variant, children: formatMessage({
|
1626
|
+
id: "app.components.Button.confirm",
|
1627
|
+
defaultMessage: "Confirm"
|
1628
|
+
}) })
|
1629
|
+
}
|
1630
|
+
)
|
1631
|
+
] });
|
1630
1632
|
};
|
1631
1633
|
const DocumentActionModal = ({
|
1632
1634
|
isOpen,
|
@@ -1636,17 +1638,34 @@ const DocumentActionModal = ({
|
|
1636
1638
|
content: Content,
|
1637
1639
|
onModalClose
|
1638
1640
|
}) => {
|
1641
|
+
const id = React__namespace.useId();
|
1642
|
+
if (!isOpen) {
|
1643
|
+
return null;
|
1644
|
+
}
|
1639
1645
|
const handleClose = () => {
|
1640
1646
|
if (onClose) {
|
1641
1647
|
onClose();
|
1642
1648
|
}
|
1643
1649
|
onModalClose();
|
1644
1650
|
};
|
1645
|
-
return /* @__PURE__ */ jsxRuntime.
|
1646
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.
|
1647
|
-
typeof Content === "function" ? /* @__PURE__ */ jsxRuntime.jsx(Content, { onClose: handleClose }) :
|
1648
|
-
|
1649
|
-
|
1651
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.ModalLayout, { borderRadius: "4px", overflow: "hidden", onClose: handleClose, labelledBy: id, children: [
|
1652
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", textColor: "neutral800", tag: "h2", id, children: title }) }),
|
1653
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.ModalBody, { children: typeof Content === "function" ? /* @__PURE__ */ jsxRuntime.jsx(Content, { onClose: handleClose }) : Content }),
|
1654
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
1655
|
+
designSystem.Box,
|
1656
|
+
{
|
1657
|
+
paddingTop: 4,
|
1658
|
+
paddingBottom: 4,
|
1659
|
+
paddingLeft: 5,
|
1660
|
+
paddingRight: 5,
|
1661
|
+
borderWidth: "1px 0 0 0",
|
1662
|
+
borderStyle: "solid",
|
1663
|
+
borderColor: "neutral150",
|
1664
|
+
background: "neutral100",
|
1665
|
+
children: typeof Footer === "function" ? /* @__PURE__ */ jsxRuntime.jsx(Footer, { onClose: handleClose }) : Footer
|
1666
|
+
}
|
1667
|
+
)
|
1668
|
+
] });
|
1650
1669
|
};
|
1651
1670
|
const PublishAction$1 = ({
|
1652
1671
|
activeTab,
|
@@ -1864,8 +1883,10 @@ const UnpublishAction$1 = ({
|
|
1864
1883
|
const { toggleNotification } = strapiAdmin.useNotification();
|
1865
1884
|
const [shouldKeepDraft, setShouldKeepDraft] = React__namespace.useState(true);
|
1866
1885
|
const isDocumentModified = document?.status === "modified";
|
1867
|
-
const handleChange = (
|
1868
|
-
|
1886
|
+
const handleChange = (e) => {
|
1887
|
+
if ("value" in e.target) {
|
1888
|
+
setShouldKeepDraft(e.target.value === UNPUBLISH_DRAFT_OPTIONS.KEEP);
|
1889
|
+
}
|
1869
1890
|
};
|
1870
1891
|
if (!schema?.options?.draftAndPublish) {
|
1871
1892
|
return null;
|
@@ -1915,24 +1936,40 @@ const UnpublishAction$1 = ({
|
|
1915
1936
|
}) })
|
1916
1937
|
] }),
|
1917
1938
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
1918
|
-
designSystem.
|
1939
|
+
designSystem.Flex,
|
1919
1940
|
{
|
1920
|
-
|
1921
|
-
|
1922
|
-
"
|
1923
|
-
|
1924
|
-
|
1925
|
-
|
1926
|
-
onValueChange: handleChange,
|
1941
|
+
onChange: handleChange,
|
1942
|
+
direction: "column",
|
1943
|
+
alignItems: "flex-start",
|
1944
|
+
tag: "fieldset",
|
1945
|
+
borderWidth: 0,
|
1946
|
+
gap: 3,
|
1927
1947
|
children: [
|
1928
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.
|
1929
|
-
|
1930
|
-
|
1931
|
-
|
1932
|
-
|
1933
|
-
|
1934
|
-
|
1935
|
-
|
1948
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { tag: "legend" }),
|
1949
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
1950
|
+
designSystem.Radio,
|
1951
|
+
{
|
1952
|
+
checked: shouldKeepDraft,
|
1953
|
+
value: UNPUBLISH_DRAFT_OPTIONS.KEEP,
|
1954
|
+
name: "discard-options",
|
1955
|
+
children: formatMessage({
|
1956
|
+
id: "content-manager.actions.unpublish.dialog.option.keep-draft",
|
1957
|
+
defaultMessage: "Keep draft"
|
1958
|
+
})
|
1959
|
+
}
|
1960
|
+
),
|
1961
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
1962
|
+
designSystem.Radio,
|
1963
|
+
{
|
1964
|
+
checked: !shouldKeepDraft,
|
1965
|
+
value: UNPUBLISH_DRAFT_OPTIONS.DISCARD,
|
1966
|
+
name: "discard-options",
|
1967
|
+
children: formatMessage({
|
1968
|
+
id: "content-manager.actions.unpublish.dialog.option.replace-draft",
|
1969
|
+
defaultMessage: "Replace draft"
|
1970
|
+
})
|
1971
|
+
}
|
1972
|
+
)
|
1936
1973
|
]
|
1937
1974
|
}
|
1938
1975
|
)
|
@@ -2785,23 +2822,30 @@ const ConfirmBulkActionDialog = ({
|
|
2785
2822
|
endAction
|
2786
2823
|
}) => {
|
2787
2824
|
const { formatMessage } = reactIntl.useIntl();
|
2788
|
-
return /* @__PURE__ */ jsxRuntime.
|
2789
|
-
|
2790
|
-
|
2791
|
-
|
2792
|
-
|
2793
|
-
|
2794
|
-
|
2795
|
-
|
2796
|
-
|
2797
|
-
|
2798
|
-
|
2799
|
-
|
2800
|
-
|
2801
|
-
|
2802
|
-
|
2803
|
-
|
2804
|
-
|
2825
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
2826
|
+
designSystem.Dialog,
|
2827
|
+
{
|
2828
|
+
onClose: onToggleDialog,
|
2829
|
+
title: formatMessage({
|
2830
|
+
id: "app.components.ConfirmDialog.title",
|
2831
|
+
defaultMessage: "Confirmation"
|
2832
|
+
}),
|
2833
|
+
isOpen,
|
2834
|
+
children: [
|
2835
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.DialogBody, { icon: /* @__PURE__ */ jsxRuntime.jsx(Icons.WarningCircle, {}), children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 2, children: dialogBody }) }),
|
2836
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
2837
|
+
designSystem.DialogFooter,
|
2838
|
+
{
|
2839
|
+
startAction: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: onToggleDialog, variant: "tertiary", children: formatMessage({
|
2840
|
+
id: "app.components.Button.cancel",
|
2841
|
+
defaultMessage: "Cancel"
|
2842
|
+
}) }),
|
2843
|
+
endAction
|
2844
|
+
}
|
2845
|
+
)
|
2846
|
+
]
|
2847
|
+
}
|
2848
|
+
);
|
2805
2849
|
};
|
2806
2850
|
const BoldChunk$1 = (chunks) => /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", children: chunks });
|
2807
2851
|
const ConfirmDialogPublishAll = ({
|
@@ -3143,7 +3187,7 @@ const SelectedEntriesModalContent = ({
|
|
3143
3187
|
);
|
3144
3188
|
};
|
3145
3189
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
3146
|
-
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.
|
3190
|
+
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.ModalBody, { children: [
|
3147
3191
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: getFormattedCountMessage() }),
|
3148
3192
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { marginTop: 5, children: /* @__PURE__ */ jsxRuntime.jsx(
|
3149
3193
|
SelectedEntriesTableContent,
|
@@ -3155,24 +3199,27 @@ const SelectedEntriesModalContent = ({
|
|
3155
3199
|
}
|
3156
3200
|
) })
|
3157
3201
|
] }),
|
3158
|
-
/* @__PURE__ */ jsxRuntime.
|
3159
|
-
|
3160
|
-
|
3161
|
-
|
3162
|
-
|
3163
|
-
|
3164
|
-
|
3165
|
-
/* @__PURE__ */ jsxRuntime.
|
3166
|
-
designSystem.Button,
|
3167
|
-
|
3168
|
-
|
3169
|
-
|
3170
|
-
|
3171
|
-
|
3172
|
-
|
3173
|
-
|
3174
|
-
|
3175
|
-
|
3202
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
3203
|
+
designSystem.ModalFooter,
|
3204
|
+
{
|
3205
|
+
startActions: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: toggleModal, variant: "tertiary", children: formatMessage({
|
3206
|
+
id: "app.components.Button.cancel",
|
3207
|
+
defaultMessage: "Cancel"
|
3208
|
+
}) }),
|
3209
|
+
endActions: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 2, children: [
|
3210
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: refetch, variant: "tertiary", loading: isFetching, children: formatMessage({ id: "app.utils.refresh", defaultMessage: "Refresh" }) }),
|
3211
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
3212
|
+
designSystem.Button,
|
3213
|
+
{
|
3214
|
+
onClick: toggleDialog,
|
3215
|
+
disabled: selectedEntries.length === 0 || selectedEntries.length === selectedEntriesWithErrorsCount || selectedEntriesPublished === selectedEntries.length || isLoading,
|
3216
|
+
loading: isSubmittingForm,
|
3217
|
+
children: formatMessage({ id: "app.utils.publish", defaultMessage: "Publish" })
|
3218
|
+
}
|
3219
|
+
)
|
3220
|
+
] })
|
3221
|
+
}
|
3222
|
+
),
|
3176
3223
|
/* @__PURE__ */ jsxRuntime.jsx(
|
3177
3224
|
ConfirmDialogPublishAll,
|
3178
3225
|
{
|
@@ -3237,10 +3284,143 @@ const BulkActionsRenderer = () => {
|
|
3237
3284
|
documents: selectedRows
|
3238
3285
|
},
|
3239
3286
|
descriptions: plugins["content-manager"].apis.getBulkActions(),
|
3240
|
-
children: (actions2) => actions2.map((action) => /* @__PURE__ */ jsxRuntime.jsx(
|
3287
|
+
children: (actions2) => actions2.map((action) => /* @__PURE__ */ jsxRuntime.jsx(BulkActionAction, { ...action }, action.id))
|
3241
3288
|
}
|
3242
3289
|
) });
|
3243
3290
|
};
|
3291
|
+
const BulkActionAction = (action) => {
|
3292
|
+
const [dialogId, setDialogId] = React__namespace.useState(null);
|
3293
|
+
const { toggleNotification } = strapiAdmin.useNotification();
|
3294
|
+
const handleClick = (action2) => (e) => {
|
3295
|
+
const { onClick, dialog, id } = action2;
|
3296
|
+
if (onClick) {
|
3297
|
+
onClick(e);
|
3298
|
+
}
|
3299
|
+
if (dialog) {
|
3300
|
+
switch (dialog.type) {
|
3301
|
+
case "notification":
|
3302
|
+
toggleNotification({
|
3303
|
+
title: dialog.title,
|
3304
|
+
message: dialog.content,
|
3305
|
+
type: dialog.status,
|
3306
|
+
timeout: dialog.timeout,
|
3307
|
+
onClose: dialog.onClose
|
3308
|
+
});
|
3309
|
+
break;
|
3310
|
+
case "dialog":
|
3311
|
+
case "modal": {
|
3312
|
+
e.preventDefault();
|
3313
|
+
setDialogId(id);
|
3314
|
+
}
|
3315
|
+
}
|
3316
|
+
}
|
3317
|
+
};
|
3318
|
+
const handleClose = () => {
|
3319
|
+
setDialogId(null);
|
3320
|
+
if (action.dialog?.type === "modal" && action.dialog?.onClose) {
|
3321
|
+
action.dialog.onClose();
|
3322
|
+
}
|
3323
|
+
};
|
3324
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
3325
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
3326
|
+
designSystem.Button,
|
3327
|
+
{
|
3328
|
+
disabled: action.disabled,
|
3329
|
+
startIcon: action.icon,
|
3330
|
+
variant: action.variant,
|
3331
|
+
onClick: handleClick(action),
|
3332
|
+
children: action.label
|
3333
|
+
}
|
3334
|
+
),
|
3335
|
+
action.dialog?.type === "dialog" ? /* @__PURE__ */ jsxRuntime.jsx(
|
3336
|
+
BulkActionConfirmDialog,
|
3337
|
+
{
|
3338
|
+
...action.dialog,
|
3339
|
+
variant: action.variant,
|
3340
|
+
isOpen: dialogId === action.id,
|
3341
|
+
onClose: handleClose
|
3342
|
+
}
|
3343
|
+
) : null,
|
3344
|
+
action.dialog?.type === "modal" ? /* @__PURE__ */ jsxRuntime.jsx(
|
3345
|
+
BulkActionModal,
|
3346
|
+
{
|
3347
|
+
...action.dialog,
|
3348
|
+
onModalClose: handleClose,
|
3349
|
+
isOpen: dialogId === action.id
|
3350
|
+
}
|
3351
|
+
) : null
|
3352
|
+
] });
|
3353
|
+
};
|
3354
|
+
const BulkActionConfirmDialog = ({
|
3355
|
+
onClose,
|
3356
|
+
onCancel,
|
3357
|
+
onConfirm,
|
3358
|
+
title,
|
3359
|
+
content,
|
3360
|
+
confirmButton,
|
3361
|
+
isOpen,
|
3362
|
+
variant = "secondary"
|
3363
|
+
}) => {
|
3364
|
+
const { formatMessage } = reactIntl.useIntl();
|
3365
|
+
const handleClose = async () => {
|
3366
|
+
if (onCancel) {
|
3367
|
+
await onCancel();
|
3368
|
+
}
|
3369
|
+
onClose();
|
3370
|
+
};
|
3371
|
+
const handleConfirm = async () => {
|
3372
|
+
if (onConfirm) {
|
3373
|
+
await onConfirm();
|
3374
|
+
}
|
3375
|
+
onClose();
|
3376
|
+
};
|
3377
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Dialog, { isOpen, title, onClose: handleClose, children: [
|
3378
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.DialogBody, { icon: /* @__PURE__ */ jsxRuntime.jsx(Icons.WarningCircle, {}), children: content }),
|
3379
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
3380
|
+
designSystem.DialogFooter,
|
3381
|
+
{
|
3382
|
+
startAction: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: handleClose, variant: "tertiary", children: formatMessage({
|
3383
|
+
id: "app.components.Button.cancel",
|
3384
|
+
defaultMessage: "Cancel"
|
3385
|
+
}) }),
|
3386
|
+
endAction: /* @__PURE__ */ jsxRuntime.jsx(
|
3387
|
+
designSystem.Button,
|
3388
|
+
{
|
3389
|
+
onClick: handleConfirm,
|
3390
|
+
variant: variant === "danger-light" ? variant : "secondary",
|
3391
|
+
startIcon: variant === "danger-light" ? /* @__PURE__ */ jsxRuntime.jsx(Icons.Trash, {}) : /* @__PURE__ */ jsxRuntime.jsx(Icons.Check, {}),
|
3392
|
+
children: confirmButton ? confirmButton : formatMessage({
|
3393
|
+
id: "app.components.Button.confirm",
|
3394
|
+
defaultMessage: "Confirm"
|
3395
|
+
})
|
3396
|
+
}
|
3397
|
+
)
|
3398
|
+
}
|
3399
|
+
)
|
3400
|
+
] });
|
3401
|
+
};
|
3402
|
+
const BulkActionModal = ({
|
3403
|
+
isOpen,
|
3404
|
+
title,
|
3405
|
+
onClose,
|
3406
|
+
content: Content,
|
3407
|
+
onModalClose
|
3408
|
+
}) => {
|
3409
|
+
const id = React__namespace.useId();
|
3410
|
+
if (!isOpen) {
|
3411
|
+
return null;
|
3412
|
+
}
|
3413
|
+
const handleClose = () => {
|
3414
|
+
if (onClose) {
|
3415
|
+
onClose();
|
3416
|
+
}
|
3417
|
+
onModalClose();
|
3418
|
+
};
|
3419
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.ModalLayout, { borderRadius: "4px", overflow: "hidden", onClose: handleClose, labelledBy: id, children: [
|
3420
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", textColor: "neutral800", tag: "h2", id, children: title }) }),
|
3421
|
+
/* @__PURE__ */ jsxRuntime.jsx(Content, { onClose: handleClose })
|
3422
|
+
] });
|
3423
|
+
};
|
3244
3424
|
const DeleteAction = ({ documents, model }) => {
|
3245
3425
|
const { formatMessage } = reactIntl.useIntl();
|
3246
3426
|
const { schema: contentType } = useDoc();
|
@@ -3273,7 +3453,6 @@ const DeleteAction = ({ documents, model }) => {
|
|
3273
3453
|
defaultMessage: "Confirmation"
|
3274
3454
|
}),
|
3275
3455
|
content: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
|
3276
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.WarningCircle, { width: "24px", height: "24px", fill: "danger600" }) }),
|
3277
3456
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { id: "confirm-description", textAlign: "center", children: formatMessage({
|
3278
3457
|
id: "popUpWarning.bodyMessage.contentType.delete.all",
|
3279
3458
|
defaultMessage: "Are you sure you want to delete these entries?"
|
@@ -3323,7 +3502,6 @@ const UnpublishAction = ({ documents, model }) => {
|
|
3323
3502
|
defaultMessage: "Confirmation"
|
3324
3503
|
}),
|
3325
3504
|
content: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
|
3326
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.WarningCircle, { width: "24px", height: "24px", fill: "danger600" }) }),
|
3327
3505
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { id: "confirm-description", textAlign: "center", children: formatMessage({
|
3328
3506
|
id: "popUpWarning.bodyMessage.contentType.unpublish.all",
|
3329
3507
|
defaultMessage: "Are you sure you want to unpublish these entries?"
|
@@ -3709,7 +3887,7 @@ const index = {
|
|
3709
3887
|
defaultMessage: "Content Manager"
|
3710
3888
|
},
|
3711
3889
|
permissions: [],
|
3712
|
-
Component: () => Promise.resolve().then(() => require("./layout
|
3890
|
+
Component: () => Promise.resolve().then(() => require("./layout-jcY4dyUG.js")).then((mod) => ({ default: mod.Layout })),
|
3713
3891
|
position: 1
|
3714
3892
|
});
|
3715
3893
|
app.registerPlugin(cm.config);
|
@@ -3717,7 +3895,7 @@ const index = {
|
|
3717
3895
|
async registerTrads({ locales }) {
|
3718
3896
|
const importedTrads = await Promise.all(
|
3719
3897
|
locales.map((locale) => {
|
3720
|
-
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-
|
3898
|
+
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-DZXjRiWA.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 }) => {
|
3721
3899
|
return {
|
3722
3900
|
data: prefixPluginTranslations(data, PLUGIN_ID),
|
3723
3901
|
locale
|
@@ -3775,4 +3953,4 @@ exports.useGetAllDocumentsQuery = useGetAllDocumentsQuery;
|
|
3775
3953
|
exports.useGetContentTypeConfigurationQuery = useGetContentTypeConfigurationQuery;
|
3776
3954
|
exports.useGetInitialDataQuery = useGetInitialDataQuery;
|
3777
3955
|
exports.useUpdateContentTypeConfigurationMutation = useUpdateContentTypeConfigurationMutation;
|
3778
|
-
//# sourceMappingURL=index-
|
3956
|
+
//# sourceMappingURL=index-DcUu-_72.js.map
|