@strapi/content-manager 5.2.0 → 5.3.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-Br8hp2Xt.js → ComponentConfigurationPage-Cr0ttPAZ.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-Br8hp2Xt.js.map → ComponentConfigurationPage-Cr0ttPAZ.js.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-DhwMhiRn.mjs → ComponentConfigurationPage-UGIFDkPO.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-DhwMhiRn.mjs.map → ComponentConfigurationPage-UGIFDkPO.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-CWao3CZ3.mjs → EditConfigurationPage-7hF4_8yK.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-CWao3CZ3.mjs.map → EditConfigurationPage-7hF4_8yK.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-BG7rpPjL.js → EditConfigurationPage-Ds3BOL2z.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-BG7rpPjL.js.map → EditConfigurationPage-Ds3BOL2z.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-hiwZg61J.mjs → EditViewPage-CA98g5_g.mjs} +29 -5
- package/dist/_chunks/EditViewPage-CA98g5_g.mjs.map +1 -0
- package/dist/_chunks/{EditViewPage-BUtpHsMz.js → EditViewPage-DoQm9llG.js} +29 -5
- package/dist/_chunks/EditViewPage-DoQm9llG.js.map +1 -0
- package/dist/_chunks/{Field-BQQLwyUs.mjs → Field-B2C1tq9_.mjs} +26 -6
- package/dist/_chunks/Field-B2C1tq9_.mjs.map +1 -0
- package/dist/_chunks/{Field-DEdug-Ll.js → Field-CQtLQzHl.js} +26 -6
- package/dist/_chunks/Field-CQtLQzHl.js.map +1 -0
- package/dist/_chunks/{Form-DwJovCha.mjs → Form-CxQ2pPjq.mjs} +2 -2
- package/dist/_chunks/{Form-DwJovCha.mjs.map → Form-CxQ2pPjq.mjs.map} +1 -1
- package/dist/_chunks/{Form-v5pkY-X_.js → Form-YQaS3_NH.js} +2 -2
- package/dist/_chunks/{Form-v5pkY-X_.js.map → Form-YQaS3_NH.js.map} +1 -1
- package/dist/_chunks/{History-B9uJsxZl.mjs → History-DTYKr2Cg.mjs} +4 -4
- package/dist/_chunks/{History-B9uJsxZl.mjs.map → History-DTYKr2Cg.mjs.map} +1 -1
- package/dist/_chunks/{History-40apIShV.js → History-DbdpigyF.js} +4 -4
- package/dist/_chunks/{History-40apIShV.js.map → History-DbdpigyF.js.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-CA4oi4Hj.mjs → ListConfigurationPage-DQG-j52q.mjs} +2 -2
- package/dist/_chunks/{ListConfigurationPage-CA4oi4Hj.mjs.map → ListConfigurationPage-DQG-j52q.mjs.map} +1 -1
- package/dist/_chunks/{ListConfigurationPage-DAGbWDIL.js → ListConfigurationPage-DRGhXnUA.js} +2 -2
- package/dist/_chunks/{ListConfigurationPage-DAGbWDIL.js.map → ListConfigurationPage-DRGhXnUA.js.map} +1 -1
- package/dist/_chunks/{ListViewPage-CjaHQ2_V.js → ListViewPage-CVIEfYWN.js} +16 -5
- package/dist/_chunks/{ListViewPage-CjaHQ2_V.js.map → ListViewPage-CVIEfYWN.js.map} +1 -1
- package/dist/_chunks/{ListViewPage-Ca8F1NL-.mjs → ListViewPage-DAekmnvp.mjs} +16 -5
- package/dist/_chunks/{ListViewPage-Ca8F1NL-.mjs.map → ListViewPage-DAekmnvp.mjs.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-CwfnU-aN.mjs → NoContentTypePage-5kwUPeFg.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-CwfnU-aN.mjs.map → NoContentTypePage-5kwUPeFg.mjs.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-CGxqLI8j.js → NoContentTypePage-CTcfA2-Q.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-CGxqLI8j.js.map → NoContentTypePage-CTcfA2-Q.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-iPk2lFR6.mjs → NoPermissionsPage-d-JtEVAw.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-iPk2lFR6.mjs.map → NoPermissionsPage-d-JtEVAw.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-CY3_QduF.js → NoPermissionsPage-pVeCVj9a.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-CY3_QduF.js.map → NoPermissionsPage-pVeCVj9a.js.map} +1 -1
- package/dist/_chunks/{Preview-V8XOfrQf.js → Preview-COsm52rZ.js} +25 -4
- package/dist/_chunks/Preview-COsm52rZ.js.map +1 -0
- package/dist/_chunks/{Preview-DRJhcaIO.mjs → Preview-gkmvcwhu.mjs} +27 -6
- package/dist/_chunks/Preview-gkmvcwhu.mjs.map +1 -0
- package/dist/_chunks/{Relations-DGWa9W2j.mjs → Relations-7ItTFWp7.mjs} +3 -3
- package/dist/_chunks/{Relations-DGWa9W2j.mjs.map → Relations-7ItTFWp7.mjs.map} +1 -1
- package/dist/_chunks/{Relations-CGerEwji.js → Relations-Beo_uDz1.js} +3 -3
- package/dist/_chunks/{Relations-CGerEwji.js.map → Relations-Beo_uDz1.js.map} +1 -1
- package/dist/_chunks/{index-tN1hpOMN.js → index-CJX65DLa.js} +32 -50
- package/dist/_chunks/index-CJX65DLa.js.map +1 -0
- package/dist/_chunks/{index-V8MWkDSd.mjs → index-D3IiO0X8.mjs} +33 -51
- package/dist/_chunks/index-D3IiO0X8.mjs.map +1 -0
- package/dist/_chunks/{layout-BzX903CL.js → layout-9fI2_QJt.js} +3 -3
- package/dist/_chunks/{layout-BzX903CL.js.map → layout-9fI2_QJt.js.map} +1 -1
- package/dist/_chunks/{layout-Bue_C6ui.mjs → layout-OhrmoJVB.mjs} +3 -3
- package/dist/_chunks/{layout-Bue_C6ui.mjs.map → layout-OhrmoJVB.mjs.map} +1 -1
- package/dist/_chunks/{relations-C4HcWYYJ.js → relations-DIT8sP52.js} +2 -2
- package/dist/_chunks/{relations-C4HcWYYJ.js.map → relations-DIT8sP52.js.map} +1 -1
- package/dist/_chunks/{relations-C8eyDiIO.mjs → relations-sRERvWmr.mjs} +2 -2
- package/dist/_chunks/{relations-C8eyDiIO.mjs.map → relations-sRERvWmr.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 +1 -1
- package/dist/admin/src/preview/components/PreviewContent.d.ts +2 -0
- package/dist/admin/src/router.d.ts +1 -1
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/services/document-manager.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/_chunks/EditViewPage-BUtpHsMz.js.map +0 -1
- package/dist/_chunks/EditViewPage-hiwZg61J.mjs.map +0 -1
- package/dist/_chunks/Field-BQQLwyUs.mjs.map +0 -1
- package/dist/_chunks/Field-DEdug-Ll.js.map +0 -1
- package/dist/_chunks/Preview-DRJhcaIO.mjs.map +0 -1
- package/dist/_chunks/Preview-V8XOfrQf.js.map +0 -1
- package/dist/_chunks/index-V8MWkDSd.mjs.map +0 -1
- package/dist/_chunks/index-tN1hpOMN.js.map +0 -1
@@ -5,9 +5,9 @@ import { useStrapiApp, createContext, useField, useNotification, useForm, useAPI
|
|
5
5
|
import { Box, SingleSelect, SingleSelectOption, Typography, Flex, BaseLink, Button, Popover, Field, Tooltip, IconButton, useComposedRefs, Portal, FocusTrap, Divider, VisuallyHidden, Grid as Grid$1, Accordion, TextButton, TextInput, IconButtonGroup, Menu, MenuItem } from "@strapi/design-system";
|
6
6
|
import pipe$1 from "lodash/fp/pipe";
|
7
7
|
import { useIntl } from "react-intl";
|
8
|
-
import { m as DOCUMENT_META_FIELDS, g as getTranslation, c as useDoc, e as contentManagerApi, n as CLONE_PATH, d as buildValidParams, f as useDocumentRBAC, S as SINGLE_TYPES, o as useDocLayout } from "./index-
|
8
|
+
import { m as DOCUMENT_META_FIELDS, g as getTranslation, c as useDoc, e as contentManagerApi, n as CLONE_PATH, d as buildValidParams, f as useDocumentRBAC, S as SINGLE_TYPES, o as useDocLayout } from "./index-D3IiO0X8.mjs";
|
9
9
|
import { generateNKeysBetween } from "fractional-indexing";
|
10
|
-
import { u as useComponent, C as ComponentProvider, M as MemoizedRelationsField } from "./Relations-
|
10
|
+
import { u as useComponent, C as ComponentProvider, M as MemoizedRelationsField } from "./Relations-7ItTFWp7.mjs";
|
11
11
|
import { Code, HeadingOne, HeadingTwo, HeadingThree, HeadingFour, HeadingFive, HeadingSix, Image as Image$1, NumberList, BulletList, Paragraph, Quotes, Link as Link$1, Drag, Collapse, Bold, Italic, Underline, StrikeThrough, Expand, PlusCircle, Plus, Trash, EyeStriked, CheckCircle, WarningCircle, Loader, ArrowClockwise, More } from "@strapi/icons";
|
12
12
|
import { styled, css, keyframes } from "styled-components";
|
13
13
|
import { C as ComponentIcon, a as COMPONENT_ICONS } from "./ComponentIcon-u4bIXTFY.mjs";
|
@@ -2658,6 +2658,7 @@ const NonRepeatableComponent = ({
|
|
2658
2658
|
children,
|
2659
2659
|
layout
|
2660
2660
|
}) => {
|
2661
|
+
const { formatMessage } = useIntl();
|
2661
2662
|
const { value } = useField(name2);
|
2662
2663
|
const level = useComponent("NonRepeatableComponent", (state) => state.level);
|
2663
2664
|
const isNested = level > 0;
|
@@ -2674,6 +2675,10 @@ const NonRepeatableComponent = ({
|
|
2674
2675
|
children: /* @__PURE__ */ jsx(Flex, { direction: "column", alignItems: "stretch", gap: 6, children: layout.map((row, index) => {
|
2675
2676
|
return /* @__PURE__ */ jsx(Grid$1.Root, { gap: 4, children: row.map(({ size, ...field }) => {
|
2676
2677
|
const completeFieldName = `${name2}.${field.name}`;
|
2678
|
+
const translatedLabel = formatMessage({
|
2679
|
+
id: `content-manager.components.${attribute.component}.${field.name}`,
|
2680
|
+
defaultMessage: field.label
|
2681
|
+
});
|
2677
2682
|
return /* @__PURE__ */ jsx(
|
2678
2683
|
Grid$1.Item,
|
2679
2684
|
{
|
@@ -2682,7 +2687,7 @@ const NonRepeatableComponent = ({
|
|
2682
2687
|
xs: 12,
|
2683
2688
|
direction: "column",
|
2684
2689
|
alignItems: "stretch",
|
2685
|
-
children: children({ ...field, name: completeFieldName })
|
2690
|
+
children: children({ ...field, label: translatedLabel, name: completeFieldName })
|
2686
2691
|
},
|
2687
2692
|
completeFieldName
|
2688
2693
|
);
|
@@ -2884,6 +2889,10 @@ const RepeatableComponent = ({
|
|
2884
2889
|
children: layout.map((row, index2) => {
|
2885
2890
|
return /* @__PURE__ */ jsx(Grid$1.Root, { gap: 4, children: row.map(({ size, ...field }) => {
|
2886
2891
|
const completeFieldName = `${nameWithIndex}.${field.name}`;
|
2892
|
+
const translatedLabel = formatMessage({
|
2893
|
+
id: `content-manager.components.${attribute.component}.${field.name}`,
|
2894
|
+
defaultMessage: field.label
|
2895
|
+
});
|
2887
2896
|
return /* @__PURE__ */ jsx(
|
2888
2897
|
Grid$1.Item,
|
2889
2898
|
{
|
@@ -2892,7 +2901,11 @@ const RepeatableComponent = ({
|
|
2892
2901
|
xs: 12,
|
2893
2902
|
direction: "column",
|
2894
2903
|
alignItems: "stretch",
|
2895
|
-
children: children({
|
2904
|
+
children: children({
|
2905
|
+
...field,
|
2906
|
+
label: translatedLabel,
|
2907
|
+
name: completeFieldName
|
2908
|
+
})
|
2896
2909
|
},
|
2897
2910
|
completeFieldName
|
2898
2911
|
);
|
@@ -5237,6 +5250,13 @@ const DynamicComponent = ({
|
|
5237
5250
|
alignItems: "stretch",
|
5238
5251
|
children: /* @__PURE__ */ jsx(Grid$1.Root, { gap: 4, children: row.map(({ size, ...field }) => {
|
5239
5252
|
const fieldName = `${name2}.${index}.${field.name}`;
|
5253
|
+
const fieldWithTranslatedLabel = {
|
5254
|
+
...field,
|
5255
|
+
label: formatMessage({
|
5256
|
+
id: `content-manager.components.${componentUid}.${field.name}`,
|
5257
|
+
defaultMessage: field.label
|
5258
|
+
})
|
5259
|
+
};
|
5240
5260
|
return /* @__PURE__ */ jsx(
|
5241
5261
|
Grid$1.Item,
|
5242
5262
|
{
|
@@ -5245,7 +5265,7 @@ const DynamicComponent = ({
|
|
5245
5265
|
xs: 12,
|
5246
5266
|
direction: "column",
|
5247
5267
|
alignItems: "stretch",
|
5248
|
-
children: /* @__PURE__ */ jsx(MemoizedInputRenderer, { ...
|
5268
|
+
children: /* @__PURE__ */ jsx(MemoizedInputRenderer, { ...fieldWithTranslatedLabel, name: fieldName })
|
5249
5269
|
},
|
5250
5270
|
fieldName
|
5251
5271
|
);
|
@@ -5560,4 +5580,4 @@ export {
|
|
5560
5580
|
transformDocument as t,
|
5561
5581
|
useLazyComponents as u
|
5562
5582
|
};
|
5563
|
-
//# sourceMappingURL=Field-
|
5583
|
+
//# sourceMappingURL=Field-B2C1tq9_.mjs.map
|