@strapi/content-manager 0.0.0-experimental.4ddd402c7194d1a969a797313bf007c93148d59a → 0.0.0-experimental.59ce88771272039a9d868fba2f7b503edf715c6a
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-BZIaEffq.js → ComponentConfigurationPage-WRPUXGd6.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-BZIaEffq.js.map → ComponentConfigurationPage-WRPUXGd6.js.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-Cxz51Sve.mjs → ComponentConfigurationPage-gdUj_t-O.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-Cxz51Sve.mjs.map → ComponentConfigurationPage-gdUj_t-O.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-CZLbgfIp.mjs → EditConfigurationPage-BwuIPOJG.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-CZLbgfIp.mjs.map → EditConfigurationPage-BwuIPOJG.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-CM62NN0L.js → EditConfigurationPage-C1vjMBgy.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-CM62NN0L.js.map → EditConfigurationPage-C1vjMBgy.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-CzuJgWWp.mjs → EditViewPage-0MiFkXa8.mjs} +46 -46
- package/dist/_chunks/EditViewPage-0MiFkXa8.mjs.map +1 -0
- package/dist/_chunks/{EditViewPage-CU7724gt.js → EditViewPage-DbcGfyqK.js} +45 -45
- package/dist/_chunks/EditViewPage-DbcGfyqK.js.map +1 -0
- package/dist/_chunks/{Field-QtUSh5mU.mjs → Field-BDMSCcy5.mjs} +104 -116
- package/dist/_chunks/Field-BDMSCcy5.mjs.map +1 -0
- package/dist/_chunks/{Field-Dh1yZyqy.js → Field-BG1xu38N.js} +103 -115
- package/dist/_chunks/Field-BG1xu38N.js.map +1 -0
- package/dist/_chunks/{Form-BOR8NOe1.js → Form-9BnFyUjy.js} +21 -25
- package/dist/_chunks/Form-9BnFyUjy.js.map +1 -0
- package/dist/_chunks/{Form-COLpvlnv.mjs → Form-CPVWavB8.mjs} +23 -27
- package/dist/_chunks/Form-CPVWavB8.mjs.map +1 -0
- package/dist/_chunks/{History-Bu53Yfw-.mjs → History-BVpd8LP3.mjs} +101 -22
- package/dist/_chunks/History-BVpd8LP3.mjs.map +1 -0
- package/dist/_chunks/{History-CW2akQ6h.js → History-BWWxLt2Z.js} +100 -21
- package/dist/_chunks/History-BWWxLt2Z.js.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-jzdhEk_u.js → ListConfigurationPage-6swzjdAZ.js} +42 -43
- package/dist/_chunks/ListConfigurationPage-6swzjdAZ.js.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-TqrmwjPN.mjs → ListConfigurationPage-DozVMKcR.mjs} +43 -45
- package/dist/_chunks/ListConfigurationPage-DozVMKcR.mjs.map +1 -0
- package/dist/_chunks/{ListViewPage-B3bMOrMv.js → ListViewPage-BlzfjS2Q.js} +47 -64
- package/dist/_chunks/ListViewPage-BlzfjS2Q.js.map +1 -0
- package/dist/_chunks/{ListViewPage-BO_mOXIl.mjs → ListViewPage-Ds0ulgfG.mjs} +48 -65
- package/dist/_chunks/ListViewPage-Ds0ulgfG.mjs.map +1 -0
- package/dist/_chunks/{NoContentTypePage-DqB0QV0k.mjs → NoContentTypePage-BH11kaKt.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-DqB0QV0k.mjs.map → NoContentTypePage-BH11kaKt.mjs.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-D77xsNHj.js → NoContentTypePage-D2nCCWEl.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-D77xsNHj.js.map → NoContentTypePage-D2nCCWEl.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-DTXi042N.mjs → NoPermissionsPage-BT2Tn0D_.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-DTXi042N.mjs.map → NoPermissionsPage-BT2Tn0D_.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-C6qTGogm.js → NoPermissionsPage-DN_JlsU2.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-C6qTGogm.js.map → NoPermissionsPage-DN_JlsU2.js.map} +1 -1
- package/dist/_chunks/{Relations-B6fb2POW.js → Relations-CcgFTcWo.js} +3 -3
- package/dist/_chunks/{Relations-B6fb2POW.js.map → Relations-CcgFTcWo.js.map} +1 -1
- package/dist/_chunks/{Relations-CJ4qdkRo.mjs → Relations-Dnag3fhV.mjs} +3 -3
- package/dist/_chunks/{Relations-CJ4qdkRo.mjs.map → Relations-Dnag3fhV.mjs.map} +1 -1
- package/dist/_chunks/{en-9GwRW_ku.mjs → en-Ux26r5pl.mjs} +3 -1
- package/dist/_chunks/{en-9GwRW_ku.mjs.map → en-Ux26r5pl.mjs.map} +1 -1
- package/dist/_chunks/{en-DZXjRiWA.js → en-fbKQxLGn.js} +3 -1
- package/dist/_chunks/{en-DZXjRiWA.js.map → en-fbKQxLGn.js.map} +1 -1
- package/dist/_chunks/{index-DcUu-_72.js → index-CWpLBSt0.js} +87 -265
- package/dist/_chunks/index-CWpLBSt0.js.map +1 -0
- package/dist/_chunks/{index-Dahjdw4h.mjs → index-JNNNKUHs.mjs} +88 -266
- package/dist/_chunks/index-JNNNKUHs.mjs.map +1 -0
- package/dist/_chunks/{layout-jcY4dyUG.js → layout--iHdZzRk.js} +3 -3
- package/dist/_chunks/{layout-jcY4dyUG.js.map → layout--iHdZzRk.js.map} +1 -1
- package/dist/_chunks/{layout-omucV6TV.mjs → layout-DC503LnF.mjs} +3 -3
- package/dist/_chunks/{layout-omucV6TV.mjs.map → layout-DC503LnF.mjs.map} +1 -1
- package/dist/_chunks/{relations-DGzD7ORa.js → relations-BbHizA5K.js} +2 -2
- package/dist/_chunks/{relations-DGzD7ORa.js.map → relations-BbHizA5K.js.map} +1 -1
- package/dist/_chunks/{relations-CN0-aw6p.mjs → relations-CTje5t-a.mjs} +2 -2
- package/dist/_chunks/{relations-CN0-aw6p.mjs.map → relations-CTje5t-a.mjs.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 +7 -3
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +2 -10
- package/dist/admin/src/pages/ListView/components/BulkActions/Actions.d.ts +3 -30
- package/dist/admin/src/pages/ListView/components/BulkActions/ConfirmBulkActionDialog.d.ts +2 -2
- package/dist/server/index.js +3 -0
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +3 -0
- 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-CU7724gt.js.map +0 -1
- package/dist/_chunks/EditViewPage-CzuJgWWp.mjs.map +0 -1
- package/dist/_chunks/Field-Dh1yZyqy.js.map +0 -1
- package/dist/_chunks/Field-QtUSh5mU.mjs.map +0 -1
- package/dist/_chunks/Form-BOR8NOe1.js.map +0 -1
- package/dist/_chunks/Form-COLpvlnv.mjs.map +0 -1
- package/dist/_chunks/History-Bu53Yfw-.mjs.map +0 -1
- package/dist/_chunks/History-CW2akQ6h.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-TqrmwjPN.mjs.map +0 -1
- package/dist/_chunks/ListConfigurationPage-jzdhEk_u.js.map +0 -1
- package/dist/_chunks/ListViewPage-B3bMOrMv.js.map +0 -1
- package/dist/_chunks/ListViewPage-BO_mOXIl.mjs.map +0 -1
- package/dist/_chunks/index-Dahjdw4h.mjs.map +0 -1
- package/dist/_chunks/index-DcUu-_72.js.map +0 -1
@@ -6,7 +6,7 @@ import { useIntl } from "react-intl";
|
|
6
6
|
import { useNavigate, useParams, Navigate, useMatch, useLocation, Link, NavLink } from "react-router-dom";
|
7
7
|
import * as React from "react";
|
8
8
|
import { lazy } from "react";
|
9
|
-
import { Menu, VisuallyHidden, Flex, Typography, Dialog,
|
9
|
+
import { Button, Menu, VisuallyHidden, Flex, Typography, Dialog, Modal, Radio, Status, SingleSelect, SingleSelectOption, Box, Loader, IconButton, Tooltip, LinkButton } from "@strapi/design-system";
|
10
10
|
import { styled } from "styled-components";
|
11
11
|
import * as yup from "yup";
|
12
12
|
import { ValidationError } from "yup";
|
@@ -1265,7 +1265,7 @@ const useDocumentActions = () => {
|
|
1265
1265
|
};
|
1266
1266
|
};
|
1267
1267
|
const ProtectedHistoryPage = lazy(
|
1268
|
-
() => import("./History-
|
1268
|
+
() => import("./History-BVpd8LP3.mjs").then((mod) => ({ default: mod.ProtectedHistoryPage }))
|
1269
1269
|
);
|
1270
1270
|
const routes$1 = [
|
1271
1271
|
{
|
@@ -1278,31 +1278,31 @@ const routes$1 = [
|
|
1278
1278
|
}
|
1279
1279
|
];
|
1280
1280
|
const ProtectedEditViewPage = lazy(
|
1281
|
-
() => import("./EditViewPage-
|
1281
|
+
() => import("./EditViewPage-0MiFkXa8.mjs").then((mod) => ({ default: mod.ProtectedEditViewPage }))
|
1282
1282
|
);
|
1283
1283
|
const ProtectedListViewPage = lazy(
|
1284
|
-
() => import("./ListViewPage-
|
1284
|
+
() => import("./ListViewPage-Ds0ulgfG.mjs").then((mod) => ({ default: mod.ProtectedListViewPage }))
|
1285
1285
|
);
|
1286
1286
|
const ProtectedListConfiguration = lazy(
|
1287
|
-
() => import("./ListConfigurationPage-
|
1287
|
+
() => import("./ListConfigurationPage-DozVMKcR.mjs").then((mod) => ({
|
1288
1288
|
default: mod.ProtectedListConfiguration
|
1289
1289
|
}))
|
1290
1290
|
);
|
1291
1291
|
const ProtectedEditConfigurationPage = lazy(
|
1292
|
-
() => import("./EditConfigurationPage-
|
1292
|
+
() => import("./EditConfigurationPage-BwuIPOJG.mjs").then((mod) => ({
|
1293
1293
|
default: mod.ProtectedEditConfigurationPage
|
1294
1294
|
}))
|
1295
1295
|
);
|
1296
1296
|
const ProtectedComponentConfigurationPage = lazy(
|
1297
|
-
() => import("./ComponentConfigurationPage-
|
1297
|
+
() => import("./ComponentConfigurationPage-gdUj_t-O.mjs").then((mod) => ({
|
1298
1298
|
default: mod.ProtectedComponentConfigurationPage
|
1299
1299
|
}))
|
1300
1300
|
);
|
1301
1301
|
const NoPermissions = lazy(
|
1302
|
-
() => import("./NoPermissionsPage-
|
1302
|
+
() => import("./NoPermissionsPage-BT2Tn0D_.mjs").then((mod) => ({ default: mod.NoPermissions }))
|
1303
1303
|
);
|
1304
1304
|
const NoContentType = lazy(
|
1305
|
-
() => import("./NoContentTypePage-
|
1305
|
+
() => import("./NoContentTypePage-BH11kaKt.mjs").then((mod) => ({ default: mod.NoContentType }))
|
1306
1306
|
);
|
1307
1307
|
const CollectionTypePages = () => {
|
1308
1308
|
const { collectionType } = useParams();
|
@@ -1592,22 +1592,20 @@ const DocumentActionConfirmDialog = ({
|
|
1592
1592
|
}
|
1593
1593
|
onClose();
|
1594
1594
|
};
|
1595
|
-
return /* @__PURE__ */
|
1596
|
-
/* @__PURE__ */ jsx(
|
1597
|
-
/* @__PURE__ */ jsx(
|
1598
|
-
|
1599
|
-
{
|
1600
|
-
|
1601
|
-
|
1602
|
-
|
1603
|
-
|
1604
|
-
|
1605
|
-
|
1606
|
-
|
1607
|
-
|
1608
|
-
|
1609
|
-
)
|
1610
|
-
] });
|
1595
|
+
return /* @__PURE__ */ jsx(Dialog.Root, { open: isOpen, onOpenChange: handleClose, children: /* @__PURE__ */ jsxs(Dialog.Content, { children: [
|
1596
|
+
/* @__PURE__ */ jsx(Dialog.Header, { children: title }),
|
1597
|
+
/* @__PURE__ */ jsx(Dialog.Body, { children: content }),
|
1598
|
+
/* @__PURE__ */ jsxs(Dialog.Footer, { children: [
|
1599
|
+
/* @__PURE__ */ jsx(Dialog.Cancel, { children: /* @__PURE__ */ jsx(Button, { variant: "tertiary", children: formatMessage({
|
1600
|
+
id: "app.components.Button.cancel",
|
1601
|
+
defaultMessage: "Cancel"
|
1602
|
+
}) }) }),
|
1603
|
+
/* @__PURE__ */ jsx(Button, { onClick: handleConfirm, variant, children: formatMessage({
|
1604
|
+
id: "app.components.Button.confirm",
|
1605
|
+
defaultMessage: "Confirm"
|
1606
|
+
}) })
|
1607
|
+
] })
|
1608
|
+
] }) });
|
1611
1609
|
};
|
1612
1610
|
const DocumentActionModal = ({
|
1613
1611
|
isOpen,
|
@@ -1617,34 +1615,17 @@ const DocumentActionModal = ({
|
|
1617
1615
|
content: Content,
|
1618
1616
|
onModalClose
|
1619
1617
|
}) => {
|
1620
|
-
const id = React.useId();
|
1621
|
-
if (!isOpen) {
|
1622
|
-
return null;
|
1623
|
-
}
|
1624
1618
|
const handleClose = () => {
|
1625
1619
|
if (onClose) {
|
1626
1620
|
onClose();
|
1627
1621
|
}
|
1628
1622
|
onModalClose();
|
1629
1623
|
};
|
1630
|
-
return /* @__PURE__ */
|
1631
|
-
/* @__PURE__ */ jsx(
|
1632
|
-
|
1633
|
-
/* @__PURE__ */ jsx(
|
1634
|
-
|
1635
|
-
{
|
1636
|
-
paddingTop: 4,
|
1637
|
-
paddingBottom: 4,
|
1638
|
-
paddingLeft: 5,
|
1639
|
-
paddingRight: 5,
|
1640
|
-
borderWidth: "1px 0 0 0",
|
1641
|
-
borderStyle: "solid",
|
1642
|
-
borderColor: "neutral150",
|
1643
|
-
background: "neutral100",
|
1644
|
-
children: typeof Footer === "function" ? /* @__PURE__ */ jsx(Footer, { onClose: handleClose }) : Footer
|
1645
|
-
}
|
1646
|
-
)
|
1647
|
-
] });
|
1624
|
+
return /* @__PURE__ */ jsx(Modal.Root, { open: isOpen, onOpenChange: handleClose, children: /* @__PURE__ */ jsxs(Modal.Content, { children: [
|
1625
|
+
/* @__PURE__ */ jsx(Modal.Header, { children: /* @__PURE__ */ jsx(Modal.Title, { children: title }) }),
|
1626
|
+
typeof Content === "function" ? /* @__PURE__ */ jsx(Content, { onClose: handleClose }) : /* @__PURE__ */ jsx(Modal.Body, { children: Content }),
|
1627
|
+
typeof Footer === "function" ? /* @__PURE__ */ jsx(Footer, { onClose: handleClose }) : Footer
|
1628
|
+
] }) });
|
1648
1629
|
};
|
1649
1630
|
const PublishAction$1 = ({
|
1650
1631
|
activeTab,
|
@@ -1862,10 +1843,8 @@ const UnpublishAction$1 = ({
|
|
1862
1843
|
const { toggleNotification } = useNotification();
|
1863
1844
|
const [shouldKeepDraft, setShouldKeepDraft] = React.useState(true);
|
1864
1845
|
const isDocumentModified = document?.status === "modified";
|
1865
|
-
const handleChange = (
|
1866
|
-
|
1867
|
-
setShouldKeepDraft(e.target.value === UNPUBLISH_DRAFT_OPTIONS.KEEP);
|
1868
|
-
}
|
1846
|
+
const handleChange = (value) => {
|
1847
|
+
setShouldKeepDraft(value === UNPUBLISH_DRAFT_OPTIONS.KEEP);
|
1869
1848
|
};
|
1870
1849
|
if (!schema?.options?.draftAndPublish) {
|
1871
1850
|
return null;
|
@@ -1915,40 +1894,24 @@ const UnpublishAction$1 = ({
|
|
1915
1894
|
}) })
|
1916
1895
|
] }),
|
1917
1896
|
/* @__PURE__ */ jsxs(
|
1918
|
-
|
1897
|
+
Radio.Group,
|
1919
1898
|
{
|
1920
|
-
|
1921
|
-
|
1922
|
-
|
1923
|
-
|
1924
|
-
|
1925
|
-
|
1899
|
+
defaultValue: UNPUBLISH_DRAFT_OPTIONS.KEEP,
|
1900
|
+
name: "discard-options",
|
1901
|
+
"aria-label": formatMessage({
|
1902
|
+
id: "content-manager.actions.unpublish.dialog.radio-label",
|
1903
|
+
defaultMessage: "Choose an option to unpublish the document."
|
1904
|
+
}),
|
1905
|
+
onValueChange: handleChange,
|
1926
1906
|
children: [
|
1927
|
-
/* @__PURE__ */ jsx(
|
1928
|
-
|
1929
|
-
|
1930
|
-
|
1931
|
-
|
1932
|
-
|
1933
|
-
|
1934
|
-
|
1935
|
-
id: "content-manager.actions.unpublish.dialog.option.keep-draft",
|
1936
|
-
defaultMessage: "Keep draft"
|
1937
|
-
})
|
1938
|
-
}
|
1939
|
-
),
|
1940
|
-
/* @__PURE__ */ jsx(
|
1941
|
-
Radio,
|
1942
|
-
{
|
1943
|
-
checked: !shouldKeepDraft,
|
1944
|
-
value: UNPUBLISH_DRAFT_OPTIONS.DISCARD,
|
1945
|
-
name: "discard-options",
|
1946
|
-
children: formatMessage({
|
1947
|
-
id: "content-manager.actions.unpublish.dialog.option.replace-draft",
|
1948
|
-
defaultMessage: "Replace draft"
|
1949
|
-
})
|
1950
|
-
}
|
1951
|
-
)
|
1907
|
+
/* @__PURE__ */ jsx(Radio.Item, { checked: shouldKeepDraft, value: UNPUBLISH_DRAFT_OPTIONS.KEEP, children: formatMessage({
|
1908
|
+
id: "content-manager.actions.unpublish.dialog.option.keep-draft",
|
1909
|
+
defaultMessage: "Keep draft"
|
1910
|
+
}) }),
|
1911
|
+
/* @__PURE__ */ jsx(Radio.Item, { checked: !shouldKeepDraft, value: UNPUBLISH_DRAFT_OPTIONS.DISCARD, children: formatMessage({
|
1912
|
+
id: "content-manager.actions.unpublish.dialog.option.replace-draft",
|
1913
|
+
defaultMessage: "Replace draft"
|
1914
|
+
}) })
|
1952
1915
|
]
|
1953
1916
|
}
|
1954
1917
|
)
|
@@ -2801,30 +2764,23 @@ const ConfirmBulkActionDialog = ({
|
|
2801
2764
|
endAction
|
2802
2765
|
}) => {
|
2803
2766
|
const { formatMessage } = useIntl();
|
2804
|
-
return /* @__PURE__ */ jsxs(
|
2805
|
-
Dialog,
|
2806
|
-
|
2807
|
-
|
2808
|
-
|
2809
|
-
|
2810
|
-
|
2811
|
-
|
2812
|
-
|
2813
|
-
|
2814
|
-
|
2815
|
-
|
2816
|
-
|
2817
|
-
|
2818
|
-
|
2819
|
-
|
2820
|
-
|
2821
|
-
}) }),
|
2822
|
-
endAction
|
2823
|
-
}
|
2824
|
-
)
|
2825
|
-
]
|
2826
|
-
}
|
2827
|
-
);
|
2767
|
+
return /* @__PURE__ */ jsx(Dialog.Root, { onOpenChange: onToggleDialog, open: isOpen, children: /* @__PURE__ */ jsxs(Dialog.Content, { children: [
|
2768
|
+
/* @__PURE__ */ jsx(Dialog.Header, { children: formatMessage({
|
2769
|
+
id: "app.components.ConfirmDialog.title",
|
2770
|
+
defaultMessage: "Confirmation"
|
2771
|
+
}) }),
|
2772
|
+
/* @__PURE__ */ jsx(Dialog.Body, { children: /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
|
2773
|
+
/* @__PURE__ */ jsx(Flex, { justifyContent: "center", children: /* @__PURE__ */ jsx(WarningCircle, { width: "24px", height: "24px", fill: "danger600" }) }),
|
2774
|
+
dialogBody
|
2775
|
+
] }) }),
|
2776
|
+
/* @__PURE__ */ jsxs(Dialog.Footer, { children: [
|
2777
|
+
/* @__PURE__ */ jsx(Dialog.Cancel, { children: /* @__PURE__ */ jsx(Button, { fullWidth: true, onClick: onToggleDialog, variant: "tertiary", children: formatMessage({
|
2778
|
+
id: "app.components.Button.cancel",
|
2779
|
+
defaultMessage: "Cancel"
|
2780
|
+
}) }) }),
|
2781
|
+
endAction
|
2782
|
+
] })
|
2783
|
+
] }) });
|
2828
2784
|
};
|
2829
2785
|
const BoldChunk$1 = (chunks) => /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: chunks });
|
2830
2786
|
const ConfirmDialogPublishAll = ({
|
@@ -3166,7 +3122,7 @@ const SelectedEntriesModalContent = ({
|
|
3166
3122
|
);
|
3167
3123
|
};
|
3168
3124
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
3169
|
-
/* @__PURE__ */ jsxs(
|
3125
|
+
/* @__PURE__ */ jsxs(Modal.Body, { children: [
|
3170
3126
|
/* @__PURE__ */ jsx(Typography, { children: getFormattedCountMessage() }),
|
3171
3127
|
/* @__PURE__ */ jsx(Box, { marginTop: 5, children: /* @__PURE__ */ jsx(
|
3172
3128
|
SelectedEntriesTableContent,
|
@@ -3178,27 +3134,24 @@ const SelectedEntriesModalContent = ({
|
|
3178
3134
|
}
|
3179
3135
|
) })
|
3180
3136
|
] }),
|
3181
|
-
/* @__PURE__ */
|
3182
|
-
|
3183
|
-
|
3184
|
-
|
3185
|
-
|
3186
|
-
|
3187
|
-
}) }),
|
3188
|
-
|
3189
|
-
|
3190
|
-
|
3191
|
-
|
3192
|
-
|
3193
|
-
|
3194
|
-
|
3195
|
-
|
3196
|
-
|
3197
|
-
|
3198
|
-
|
3199
|
-
] })
|
3200
|
-
}
|
3201
|
-
),
|
3137
|
+
/* @__PURE__ */ jsxs(Modal.Footer, { children: [
|
3138
|
+
/* @__PURE__ */ jsx(Button, { onClick: toggleModal, variant: "tertiary", children: formatMessage({
|
3139
|
+
id: "app.components.Button.cancel",
|
3140
|
+
defaultMessage: "Cancel"
|
3141
|
+
}) }),
|
3142
|
+
/* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
|
3143
|
+
/* @__PURE__ */ jsx(Button, { onClick: refetch, variant: "tertiary", loading: isFetching, children: formatMessage({ id: "app.utils.refresh", defaultMessage: "Refresh" }) }),
|
3144
|
+
/* @__PURE__ */ jsx(
|
3145
|
+
Button,
|
3146
|
+
{
|
3147
|
+
onClick: toggleDialog,
|
3148
|
+
disabled: selectedEntries.length === 0 || selectedEntries.length === selectedEntriesWithErrorsCount || selectedEntriesPublished === selectedEntries.length || isLoading,
|
3149
|
+
loading: isSubmittingForm,
|
3150
|
+
children: formatMessage({ id: "app.utils.publish", defaultMessage: "Publish" })
|
3151
|
+
}
|
3152
|
+
)
|
3153
|
+
] })
|
3154
|
+
] }),
|
3202
3155
|
/* @__PURE__ */ jsx(
|
3203
3156
|
ConfirmDialogPublishAll,
|
3204
3157
|
{
|
@@ -3263,143 +3216,10 @@ const BulkActionsRenderer = () => {
|
|
3263
3216
|
documents: selectedRows
|
3264
3217
|
},
|
3265
3218
|
descriptions: plugins["content-manager"].apis.getBulkActions(),
|
3266
|
-
children: (actions2) => actions2.map((action) => /* @__PURE__ */ jsx(
|
3219
|
+
children: (actions2) => actions2.map((action) => /* @__PURE__ */ jsx(DocumentActionButton, { ...action }, action.id))
|
3267
3220
|
}
|
3268
3221
|
) });
|
3269
3222
|
};
|
3270
|
-
const BulkActionAction = (action) => {
|
3271
|
-
const [dialogId, setDialogId] = React.useState(null);
|
3272
|
-
const { toggleNotification } = useNotification();
|
3273
|
-
const handleClick = (action2) => (e) => {
|
3274
|
-
const { onClick, dialog, id } = action2;
|
3275
|
-
if (onClick) {
|
3276
|
-
onClick(e);
|
3277
|
-
}
|
3278
|
-
if (dialog) {
|
3279
|
-
switch (dialog.type) {
|
3280
|
-
case "notification":
|
3281
|
-
toggleNotification({
|
3282
|
-
title: dialog.title,
|
3283
|
-
message: dialog.content,
|
3284
|
-
type: dialog.status,
|
3285
|
-
timeout: dialog.timeout,
|
3286
|
-
onClose: dialog.onClose
|
3287
|
-
});
|
3288
|
-
break;
|
3289
|
-
case "dialog":
|
3290
|
-
case "modal": {
|
3291
|
-
e.preventDefault();
|
3292
|
-
setDialogId(id);
|
3293
|
-
}
|
3294
|
-
}
|
3295
|
-
}
|
3296
|
-
};
|
3297
|
-
const handleClose = () => {
|
3298
|
-
setDialogId(null);
|
3299
|
-
if (action.dialog?.type === "modal" && action.dialog?.onClose) {
|
3300
|
-
action.dialog.onClose();
|
3301
|
-
}
|
3302
|
-
};
|
3303
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
3304
|
-
/* @__PURE__ */ jsx(
|
3305
|
-
Button,
|
3306
|
-
{
|
3307
|
-
disabled: action.disabled,
|
3308
|
-
startIcon: action.icon,
|
3309
|
-
variant: action.variant,
|
3310
|
-
onClick: handleClick(action),
|
3311
|
-
children: action.label
|
3312
|
-
}
|
3313
|
-
),
|
3314
|
-
action.dialog?.type === "dialog" ? /* @__PURE__ */ jsx(
|
3315
|
-
BulkActionConfirmDialog,
|
3316
|
-
{
|
3317
|
-
...action.dialog,
|
3318
|
-
variant: action.variant,
|
3319
|
-
isOpen: dialogId === action.id,
|
3320
|
-
onClose: handleClose
|
3321
|
-
}
|
3322
|
-
) : null,
|
3323
|
-
action.dialog?.type === "modal" ? /* @__PURE__ */ jsx(
|
3324
|
-
BulkActionModal,
|
3325
|
-
{
|
3326
|
-
...action.dialog,
|
3327
|
-
onModalClose: handleClose,
|
3328
|
-
isOpen: dialogId === action.id
|
3329
|
-
}
|
3330
|
-
) : null
|
3331
|
-
] });
|
3332
|
-
};
|
3333
|
-
const BulkActionConfirmDialog = ({
|
3334
|
-
onClose,
|
3335
|
-
onCancel,
|
3336
|
-
onConfirm,
|
3337
|
-
title,
|
3338
|
-
content,
|
3339
|
-
confirmButton,
|
3340
|
-
isOpen,
|
3341
|
-
variant = "secondary"
|
3342
|
-
}) => {
|
3343
|
-
const { formatMessage } = useIntl();
|
3344
|
-
const handleClose = async () => {
|
3345
|
-
if (onCancel) {
|
3346
|
-
await onCancel();
|
3347
|
-
}
|
3348
|
-
onClose();
|
3349
|
-
};
|
3350
|
-
const handleConfirm = async () => {
|
3351
|
-
if (onConfirm) {
|
3352
|
-
await onConfirm();
|
3353
|
-
}
|
3354
|
-
onClose();
|
3355
|
-
};
|
3356
|
-
return /* @__PURE__ */ jsxs(Dialog, { isOpen, title, onClose: handleClose, children: [
|
3357
|
-
/* @__PURE__ */ jsx(DialogBody, { icon: /* @__PURE__ */ jsx(WarningCircle, {}), children: content }),
|
3358
|
-
/* @__PURE__ */ jsx(
|
3359
|
-
DialogFooter,
|
3360
|
-
{
|
3361
|
-
startAction: /* @__PURE__ */ jsx(Button, { onClick: handleClose, variant: "tertiary", children: formatMessage({
|
3362
|
-
id: "app.components.Button.cancel",
|
3363
|
-
defaultMessage: "Cancel"
|
3364
|
-
}) }),
|
3365
|
-
endAction: /* @__PURE__ */ jsx(
|
3366
|
-
Button,
|
3367
|
-
{
|
3368
|
-
onClick: handleConfirm,
|
3369
|
-
variant: variant === "danger-light" ? variant : "secondary",
|
3370
|
-
startIcon: variant === "danger-light" ? /* @__PURE__ */ jsx(Trash, {}) : /* @__PURE__ */ jsx(Check, {}),
|
3371
|
-
children: confirmButton ? confirmButton : formatMessage({
|
3372
|
-
id: "app.components.Button.confirm",
|
3373
|
-
defaultMessage: "Confirm"
|
3374
|
-
})
|
3375
|
-
}
|
3376
|
-
)
|
3377
|
-
}
|
3378
|
-
)
|
3379
|
-
] });
|
3380
|
-
};
|
3381
|
-
const BulkActionModal = ({
|
3382
|
-
isOpen,
|
3383
|
-
title,
|
3384
|
-
onClose,
|
3385
|
-
content: Content,
|
3386
|
-
onModalClose
|
3387
|
-
}) => {
|
3388
|
-
const id = React.useId();
|
3389
|
-
if (!isOpen) {
|
3390
|
-
return null;
|
3391
|
-
}
|
3392
|
-
const handleClose = () => {
|
3393
|
-
if (onClose) {
|
3394
|
-
onClose();
|
3395
|
-
}
|
3396
|
-
onModalClose();
|
3397
|
-
};
|
3398
|
-
return /* @__PURE__ */ jsxs(ModalLayout, { borderRadius: "4px", overflow: "hidden", onClose: handleClose, labelledBy: id, children: [
|
3399
|
-
/* @__PURE__ */ jsx(ModalHeader, { children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", textColor: "neutral800", tag: "h2", id, children: title }) }),
|
3400
|
-
/* @__PURE__ */ jsx(Content, { onClose: handleClose })
|
3401
|
-
] });
|
3402
|
-
};
|
3403
3223
|
const DeleteAction = ({ documents, model }) => {
|
3404
3224
|
const { formatMessage } = useIntl();
|
3405
3225
|
const { schema: contentType } = useDoc();
|
@@ -3432,6 +3252,7 @@ const DeleteAction = ({ documents, model }) => {
|
|
3432
3252
|
defaultMessage: "Confirmation"
|
3433
3253
|
}),
|
3434
3254
|
content: /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
|
3255
|
+
/* @__PURE__ */ jsx(Flex, { justifyContent: "center", children: /* @__PURE__ */ jsx(WarningCircle, { width: "24px", height: "24px", fill: "danger600" }) }),
|
3435
3256
|
/* @__PURE__ */ jsx(Typography, { id: "confirm-description", textAlign: "center", children: formatMessage({
|
3436
3257
|
id: "popUpWarning.bodyMessage.contentType.delete.all",
|
3437
3258
|
defaultMessage: "Are you sure you want to delete these entries?"
|
@@ -3481,6 +3302,7 @@ const UnpublishAction = ({ documents, model }) => {
|
|
3481
3302
|
defaultMessage: "Confirmation"
|
3482
3303
|
}),
|
3483
3304
|
content: /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
|
3305
|
+
/* @__PURE__ */ jsx(Flex, { justifyContent: "center", children: /* @__PURE__ */ jsx(WarningCircle, { width: "24px", height: "24px", fill: "danger600" }) }),
|
3484
3306
|
/* @__PURE__ */ jsx(Typography, { id: "confirm-description", textAlign: "center", children: formatMessage({
|
3485
3307
|
id: "popUpWarning.bodyMessage.contentType.unpublish.all",
|
3486
3308
|
defaultMessage: "Are you sure you want to unpublish these entries?"
|
@@ -3866,7 +3688,7 @@ const index = {
|
|
3866
3688
|
defaultMessage: "Content Manager"
|
3867
3689
|
},
|
3868
3690
|
permissions: [],
|
3869
|
-
Component: () => import("./layout-
|
3691
|
+
Component: () => import("./layout-DC503LnF.mjs").then((mod) => ({ default: mod.Layout })),
|
3870
3692
|
position: 1
|
3871
3693
|
});
|
3872
3694
|
app.registerPlugin(cm.config);
|
@@ -3874,7 +3696,7 @@ const index = {
|
|
3874
3696
|
async registerTrads({ locales }) {
|
3875
3697
|
const importedTrads = await Promise.all(
|
3876
3698
|
locales.map((locale) => {
|
3877
|
-
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-
|
3699
|
+
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-Ux26r5pl.mjs"), "./translations/es.json": () => import("./es-CeXiYflN.mjs"), "./translations/eu.json": () => import("./eu-CdALomew.mjs"), "./translations/fr.json": () => import("./fr-CD9VFbPM.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-CtsUxOvk.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`).then(({ default: data }) => {
|
3878
3700
|
return {
|
3879
3701
|
data: prefixPluginTranslations(data, PLUGIN_ID),
|
3880
3702
|
locale
|
@@ -3934,4 +3756,4 @@ export {
|
|
3934
3756
|
capitalise as y,
|
3935
3757
|
useUpdateContentTypeConfigurationMutation as z
|
3936
3758
|
};
|
3937
|
-
//# sourceMappingURL=index-
|
3759
|
+
//# sourceMappingURL=index-JNNNKUHs.mjs.map
|