@strapi/review-workflows 5.0.0-beta.6 → 5.0.0-beta.7

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.
Files changed (41) hide show
  1. package/dist/_chunks/{Layout-2ZuobDLm.js → Layout-60gjGInX.js} +6 -8
  2. package/dist/_chunks/Layout-60gjGInX.js.map +1 -0
  3. package/dist/_chunks/{Layout-BlUjTO46.mjs → Layout-CJYuYwXO.mjs} +7 -7
  4. package/dist/_chunks/Layout-CJYuYwXO.mjs.map +1 -0
  5. package/dist/_chunks/{_id-yjWLof5q.js → _id-BO7wNLt1.js} +201 -193
  6. package/dist/_chunks/_id-BO7wNLt1.js.map +1 -0
  7. package/dist/_chunks/{_id-BuJ0Ud8T.mjs → _id-UJ-8gken.mjs} +192 -182
  8. package/dist/_chunks/_id-UJ-8gken.mjs.map +1 -0
  9. package/dist/_chunks/{index-qAnk2xH9.js → index-CfiZnfhM.js} +79 -64
  10. package/dist/_chunks/index-CfiZnfhM.js.map +1 -0
  11. package/dist/_chunks/{index-sU2Cg2WW.mjs → index-DhEhUlv9.mjs} +5 -5
  12. package/dist/_chunks/index-DhEhUlv9.mjs.map +1 -0
  13. package/dist/_chunks/{index-D91cCzpN.mjs → index-DmQNXb0P.mjs} +81 -64
  14. package/dist/_chunks/index-DmQNXb0P.mjs.map +1 -0
  15. package/dist/_chunks/{index-CQGgid_7.js → index-DnXnsrOM.js} +6 -8
  16. package/dist/_chunks/index-DnXnsrOM.js.map +1 -0
  17. package/dist/_chunks/{purchase-review-workflows-DyffLpyz.mjs → purchase-review-workflows-BN-5Ube7.mjs} +5 -4
  18. package/dist/_chunks/purchase-review-workflows-BN-5Ube7.mjs.map +1 -0
  19. package/dist/_chunks/{purchase-review-workflows-BaOk5p_m.js → purchase-review-workflows-DlCDg0fD.js} +4 -3
  20. package/dist/_chunks/purchase-review-workflows-DlCDg0fD.js.map +1 -0
  21. package/dist/_chunks/{router-n4oxCWpr.js → router-BiQI7EcM.js} +3 -3
  22. package/dist/_chunks/{router-n4oxCWpr.js.map → router-BiQI7EcM.js.map} +1 -1
  23. package/dist/_chunks/{router-DkLtLJRZ.mjs → router-DFD0S0ey.mjs} +3 -3
  24. package/dist/_chunks/{router-DkLtLJRZ.mjs.map → router-DFD0S0ey.mjs.map} +1 -1
  25. package/dist/admin/index.js +1 -1
  26. package/dist/admin/index.mjs +1 -1
  27. package/dist/admin/src/routes/settings/hooks/useDragAndDrop.d.ts +4 -4
  28. package/dist/admin/src/routes/settings/hooks/useKeyboardDragAndDrop.d.ts +1 -1
  29. package/dist/admin/src/routes/settings/hooks/useReviewWorkflows.d.ts +3 -3
  30. package/dist/admin/src/utils/api.d.ts +8 -9
  31. package/package.json +10 -11
  32. package/dist/_chunks/Layout-2ZuobDLm.js.map +0 -1
  33. package/dist/_chunks/Layout-BlUjTO46.mjs.map +0 -1
  34. package/dist/_chunks/_id-BuJ0Ud8T.mjs.map +0 -1
  35. package/dist/_chunks/_id-yjWLof5q.js.map +0 -1
  36. package/dist/_chunks/index-CQGgid_7.js.map +0 -1
  37. package/dist/_chunks/index-D91cCzpN.mjs.map +0 -1
  38. package/dist/_chunks/index-qAnk2xH9.js.map +0 -1
  39. package/dist/_chunks/index-sU2Cg2WW.mjs.map +0 -1
  40. package/dist/_chunks/purchase-review-workflows-BaOk5p_m.js.map +0 -1
  41. package/dist/_chunks/purchase-review-workflows-DyffLpyz.mjs.map +0 -1
@@ -2,17 +2,17 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import { useTracking, useForm, useField, InputRenderer as InputRenderer$1, useNotification, ConfirmDialog, Page, useAPIErrorHandler, useRBAC, Form, BackButton } from "@strapi/admin/strapi-admin";
4
4
  import { useLicenseLimits } from "@strapi/admin/strapi-admin/ee";
5
- import { Box, Typography, Flex, MenuItem, Menu, IconButton, MultiSelectOption, useComposedRefs, VisuallyHidden, Accordion, AccordionToggle, AccordionContent, Grid, GridItem, SingleSelect, SingleSelectOption, TextInput, MultiSelect, MultiSelectGroup, useCollator, Button } from "@strapi/design-system";
5
+ import { Box, Typography, Flex, MenuItem, Menu, IconButton, MultiSelectOption, useComposedRefs, VisuallyHidden, Accordion, AccordionToggle, AccordionContent, Grid, GridItem, Field, SingleSelect, SingleSelectOption, TextInput, MultiSelect, MultiSelectGroup, useCollator, Button } from "@strapi/design-system";
6
6
  import { PlusCircle, EyeStriked, More, Drag, Duplicate, Check } from "@strapi/icons";
7
7
  import { generateNKeysBetween } from "fractional-indexing";
8
8
  import { useIntl } from "react-intl";
9
9
  import { useDispatch } from "react-redux";
10
10
  import { useParams, useNavigate } from "react-router-dom";
11
11
  import * as yup from "yup";
12
- import { r as reviewWorkflowsApi, A as AVAILABLE_COLORS, g as getStageColorByHex, u as useGetContentTypesQuery, a as useTypedSelector, C as CHARGEBEE_WORKFLOW_ENTITLEMENT_NAME, b as CHARGEBEE_STAGES_PER_WORKFLOW_ENTITLEMENT_NAME, L as LimitsModal, i as isBaseQueryError } from "./index-D91cCzpN.mjs";
13
- import { D as DRAG_DROP_TYPES, u as useReviewWorkflows, a as DragLayerRendered, H as Header, R as Root } from "./Layout-BlUjTO46.mjs";
12
+ import { r as reviewWorkflowsApi, A as AVAILABLE_COLORS, g as getStageColorByHex, u as useGetContentTypesQuery, a as useTypedSelector, C as CHARGEBEE_WORKFLOW_ENTITLEMENT_NAME, b as CHARGEBEE_STAGES_PER_WORKFLOW_ENTITLEMENT_NAME, L as LimitsModal, i as isBaseQueryError } from "./index-DmQNXb0P.mjs";
13
+ import { D as DRAG_DROP_TYPES, u as useReviewWorkflows, a as DragLayerRendered, H as Header, R as Root } from "./Layout-CJYuYwXO.mjs";
14
14
  import { getEmptyImage } from "react-dnd-html5-backend";
15
- import styled from "styled-components";
15
+ import { styled } from "styled-components";
16
16
  import { useDrop, useDrag } from "react-dnd";
17
17
  const adminApi = reviewWorkflowsApi.injectEndpoints({
18
18
  endpoints(builder) {
@@ -248,7 +248,7 @@ const AddStage = ({ children, ...props }) => {
248
248
  return /* @__PURE__ */ jsx(
249
249
  StyledButton,
250
250
  {
251
- as: "button",
251
+ tag: "button",
252
252
  background: "neutral0",
253
253
  border: "neutral150",
254
254
  paddingBottom: 3,
@@ -257,7 +257,7 @@ const AddStage = ({ children, ...props }) => {
257
257
  paddingTop: 3,
258
258
  shadow: "filterShadow",
259
259
  ...props,
260
- children: /* @__PURE__ */ jsx(Typography, { variant: "pi", fontWeight: "bold", textColor: "inherit", children: /* @__PURE__ */ jsxs(Flex, { as: "span", gap: 2, children: [
260
+ children: /* @__PURE__ */ jsx(Typography, { variant: "pi", fontWeight: "bold", children: /* @__PURE__ */ jsxs(Flex, { tag: "span", gap: 2, children: [
261
261
  /* @__PURE__ */ jsx(PlusCircle, { width: "2.4rem", height: "2.4rem", "aria-hidden": true }),
262
262
  children
263
263
  ] }) })
@@ -303,9 +303,9 @@ const Stages = ({ canDelete = true, canUpdate = true, isCreating = false }) => {
303
303
  gap: 6,
304
304
  zIndex: 2,
305
305
  position: "relative",
306
- as: "ol",
306
+ tag: "ol",
307
307
  children: stages.map((stage, index) => {
308
- return /* @__PURE__ */ jsx(Box, { as: "li", children: /* @__PURE__ */ jsx(
308
+ return /* @__PURE__ */ jsx(Box, { tag: "li", children: /* @__PURE__ */ jsx(
309
309
  Stage,
310
310
  {
311
311
  index,
@@ -436,7 +436,7 @@ const Stage = ({
436
436
  const handleCloneClick = () => {
437
437
  addFieldRow("stages", { name, color, permissions });
438
438
  };
439
- return /* @__PURE__ */ jsxs(Box, { ref: (ref) => composedRef(ref), children: [
439
+ return /* @__PURE__ */ jsxs(Box, { ref: composedRef, children: [
440
440
  liveText && /* @__PURE__ */ jsx(VisuallyHidden, { "aria-live": "assertive", children: liveText }),
441
441
  isDragging ? /* @__PURE__ */ jsx(
442
442
  Box,
@@ -475,7 +475,7 @@ const Stage = ({
475
475
  /* @__PURE__ */ jsxs(Menu.Root, { children: [
476
476
  /* @__PURE__ */ jsxs(ContextMenuTrigger, { size: "S", endIcon: null, paddingLeft: 2, paddingRight: 2, children: [
477
477
  /* @__PURE__ */ jsx(More, { "aria-hidden": true, focusable: false }),
478
- /* @__PURE__ */ jsx(VisuallyHidden, { as: "span", children: formatMessage({
478
+ /* @__PURE__ */ jsx(VisuallyHidden, { tag: "span", children: formatMessage({
479
479
  id: "[tbdb].components.DynamicZone.more-actions",
480
480
  defaultMessage: "More actions"
481
481
  }) })
@@ -495,7 +495,7 @@ const Stage = ({
495
495
  DragIconButton,
496
496
  {
497
497
  background: "transparent",
498
- forwardedAs: "div",
498
+ tag: "div",
499
499
  hasRadius: true,
500
500
  role: "button",
501
501
  noBorder: true,
@@ -612,54 +612,55 @@ const ColorSelector = ({ disabled, label, name, required }) => {
612
612
  color: hex
613
613
  }));
614
614
  const { themeColorName } = getStageColorByHex(value) ?? {};
615
- return /* @__PURE__ */ jsx(
616
- SingleSelect,
617
- {
618
- disabled,
619
- error,
620
- required,
621
- label,
622
- onChange: (v) => {
623
- onChange(name, v.toString());
624
- },
625
- value: value?.toUpperCase(),
626
- startIcon: /* @__PURE__ */ jsx(
627
- Flex,
628
- {
629
- as: "span",
630
- height: 2,
631
- background: value,
632
- borderColor: themeColorName === "neutral0" ? "neutral150" : "transparent",
633
- hasRadius: true,
634
- shrink: 0,
635
- width: 2
636
- }
637
- ),
638
- children: colorOptions.map(({ value: value2, label: label2, color }) => {
639
- const { themeColorName: themeColorName2 } = getStageColorByHex(color) || {};
640
- return /* @__PURE__ */ jsx(
641
- SingleSelectOption,
615
+ return /* @__PURE__ */ jsxs(Field.Root, { error, name, required, children: [
616
+ /* @__PURE__ */ jsx(Field.Label, { children: label }),
617
+ /* @__PURE__ */ jsx(
618
+ SingleSelect,
619
+ {
620
+ disabled,
621
+ onChange: (v) => {
622
+ onChange(name, v.toString());
623
+ },
624
+ value: value?.toUpperCase(),
625
+ startIcon: /* @__PURE__ */ jsx(
626
+ Flex,
642
627
  {
643
- value: value2,
644
- startIcon: /* @__PURE__ */ jsx(
645
- Flex,
646
- {
647
- as: "span",
648
- height: 2,
649
- background: color,
650
- borderColor: themeColorName2 === "neutral0" ? "neutral150" : "transparent",
651
- hasRadius: true,
652
- shrink: 0,
653
- width: 2
654
- }
655
- ),
656
- children: label2
657
- },
658
- value2
659
- );
660
- })
661
- }
662
- );
628
+ tag: "span",
629
+ height: 2,
630
+ background: value,
631
+ borderColor: themeColorName === "neutral0" ? "neutral150" : "transparent",
632
+ hasRadius: true,
633
+ shrink: 0,
634
+ width: 2
635
+ }
636
+ ),
637
+ children: colorOptions.map(({ value: value2, label: label2, color }) => {
638
+ const { themeColorName: themeColorName2 } = getStageColorByHex(color) || {};
639
+ return /* @__PURE__ */ jsx(
640
+ SingleSelectOption,
641
+ {
642
+ value: value2,
643
+ startIcon: /* @__PURE__ */ jsx(
644
+ Flex,
645
+ {
646
+ tag: "span",
647
+ height: 2,
648
+ background: color,
649
+ borderColor: themeColorName2 === "neutral0" ? "neutral150" : "transparent",
650
+ hasRadius: true,
651
+ shrink: 0,
652
+ width: 2
653
+ }
654
+ ),
655
+ children: label2
656
+ },
657
+ value2
658
+ );
659
+ })
660
+ }
661
+ ),
662
+ /* @__PURE__ */ jsx(Field.Error, {})
663
+ ] });
663
664
  };
664
665
  const PermissionsField = ({ disabled, name, placeholder, required }) => {
665
666
  const { formatMessage } = useIntl();
@@ -683,68 +684,76 @@ const PermissionsField = ({ disabled, name, placeholder, required }) => {
683
684
  }
684
685
  }, [formatMessage, isLoading, roles, toggleNotification]);
685
686
  if (!isLoading && filteredRoles.length === 0) {
686
- return /* @__PURE__ */ jsx(
687
- TextInput,
687
+ return /* @__PURE__ */ jsxs(
688
+ Field.Root,
688
689
  {
689
- disabled: true,
690
690
  name,
691
691
  hint: formatMessage({
692
692
  id: "Settings.review-workflows.stage.permissions.noPermissions.description",
693
693
  defaultMessage: "You don’t have the permission to see roles"
694
694
  }),
695
- label: formatMessage({
696
- id: "Settings.review-workflows.stage.permissions.label",
697
- defaultMessage: "Roles that can change this stage"
698
- }),
699
- placeholder: formatMessage({
700
- id: "components.NotAllowedInput.text",
701
- defaultMessage: "No permissions to see this field"
702
- }),
703
695
  required,
704
- startAction: /* @__PURE__ */ jsx(StyledIcon, {}),
705
- type: "text",
706
- value: ""
707
- }
708
- );
709
- }
710
- return /* @__PURE__ */ jsxs(Fragment, { children: [
711
- /* @__PURE__ */ jsxs(Flex, { alignItems: "flex-end", gap: 3, children: [
712
- /* @__PURE__ */ jsx(PermissionWrapper, { grow: 1, children: /* @__PURE__ */ jsx(
713
- MultiSelect,
714
- {
715
- disabled,
716
- error,
717
- id: name,
718
- label: formatMessage({
696
+ children: [
697
+ /* @__PURE__ */ jsx(Field.Label, { children: formatMessage({
719
698
  id: "Settings.review-workflows.stage.permissions.label",
720
699
  defaultMessage: "Roles that can change this stage"
721
- }),
722
- onChange: (values) => {
723
- const permissions = values.map((value2) => ({
724
- role: parseInt(value2, 10),
725
- action: "admin::review-workflows.stage.transition"
726
- }));
727
- onChange(name, permissions);
728
- },
729
- placeholder,
730
- required: true,
731
- value: value.map((permission) => `${permission.role}`),
732
- withTags: true,
733
- children: /* @__PURE__ */ jsx(
734
- MultiSelectGroup,
700
+ }) }),
701
+ /* @__PURE__ */ jsx(
702
+ TextInput,
735
703
  {
736
- label: formatMessage({
737
- id: "Settings.review-workflows.stage.permissions.allRoles.label",
738
- defaultMessage: "All roles"
704
+ disabled: true,
705
+ placeholder: formatMessage({
706
+ id: "components.NotAllowedInput.text",
707
+ defaultMessage: "No permissions to see this field"
739
708
  }),
740
- values: filteredRoles.map((r) => `${r.id}`),
741
- children: filteredRoles.map((role) => {
742
- return /* @__PURE__ */ jsx(NestedOption$1, { value: `${role.id}`, children: role.name }, role.id);
743
- })
709
+ startAction: /* @__PURE__ */ jsx(StyledIcon, {}),
710
+ type: "text",
711
+ value: ""
744
712
  }
745
- )
746
- }
747
- ) }),
713
+ ),
714
+ /* @__PURE__ */ jsx(Field.Hint, {})
715
+ ]
716
+ }
717
+ );
718
+ }
719
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
720
+ /* @__PURE__ */ jsxs(Flex, { alignItems: "flex-end", gap: 3, children: [
721
+ /* @__PURE__ */ jsx(PermissionWrapper, { grow: 1, children: /* @__PURE__ */ jsxs(Field.Root, { error, name, required: true, children: [
722
+ /* @__PURE__ */ jsx(Field.Label, { children: formatMessage({
723
+ id: "Settings.review-workflows.stage.permissions.label",
724
+ defaultMessage: "Roles that can change this stage"
725
+ }) }),
726
+ /* @__PURE__ */ jsx(
727
+ MultiSelect,
728
+ {
729
+ disabled,
730
+ onChange: (values) => {
731
+ const permissions = values.map((value2) => ({
732
+ role: parseInt(value2, 10),
733
+ action: "admin::review-workflows.stage.transition"
734
+ }));
735
+ onChange(name, permissions);
736
+ },
737
+ placeholder,
738
+ value: value.map((permission) => `${permission.role}`),
739
+ withTags: true,
740
+ children: /* @__PURE__ */ jsx(
741
+ MultiSelectGroup,
742
+ {
743
+ label: formatMessage({
744
+ id: "Settings.review-workflows.stage.permissions.allRoles.label",
745
+ defaultMessage: "All roles"
746
+ }),
747
+ values: filteredRoles.map((r) => `${r.id}`),
748
+ children: filteredRoles.map((role) => {
749
+ return /* @__PURE__ */ jsx(NestedOption$1, { value: `${role.id}`, children: role.name }, role.id);
750
+ })
751
+ }
752
+ )
753
+ }
754
+ ),
755
+ /* @__PURE__ */ jsx(Field.Error, {})
756
+ ] }) }),
748
757
  /* @__PURE__ */ jsx(
749
758
  IconButton,
750
759
  {
@@ -841,81 +850,82 @@ const ContentTypesSelector = ({ disabled }) => {
841
850
  label: contentType.info.displayName,
842
851
  value: contentType.uid
843
852
  }));
844
- return /* @__PURE__ */ jsx(
845
- MultiSelect,
846
- {
847
- customizeContent: (value2) => formatMessage(
848
- {
849
- id: "Settings.review-workflows.workflow.contentTypes.displayValue",
850
- defaultMessage: "{count} {count, plural, one {content type} other {content types}} selected"
851
- },
852
- { count: value2?.length }
853
- ),
854
- disabled: isDisabled,
855
- error,
856
- label: formatMessage({
857
- id: "Settings.review-workflows.workflow.contentTypes.label",
858
- defaultMessage: "Associated to"
859
- }),
860
- onChange: (values) => {
861
- onChange("contentTypes", values);
862
- },
863
- value,
864
- placeholder: formatMessage({
865
- id: "Settings.review-workflows.workflow.contentTypes.placeholder",
866
- defaultMessage: "Select"
867
- }),
868
- children: [
869
- ...collectionTypes.length > 0 ? [
870
- {
871
- label: formatMessage({
872
- id: "Settings.review-workflows.workflow.contentTypes.collectionTypes.label",
873
- defaultMessage: "Collection Types"
874
- }),
875
- children: collectionTypes
876
- }
877
- ] : [],
878
- ...singleTypes.length > 0 ? [
879
- {
880
- label: formatMessage({
881
- id: "Settings.review-workflows.workflow.contentTypes.singleTypes.label",
882
- defaultMessage: "Single Types"
883
- }),
884
- children: singleTypes
885
- }
886
- ] : []
887
- ].map((opt) => {
888
- return /* @__PURE__ */ jsx(
889
- MultiSelectGroup,
853
+ return /* @__PURE__ */ jsxs(Field.Root, { error, name: "contentTypes", children: [
854
+ /* @__PURE__ */ jsx(Field.Label, { children: formatMessage({
855
+ id: "Settings.review-workflows.workflow.contentTypes.label",
856
+ defaultMessage: "Associated to"
857
+ }) }),
858
+ /* @__PURE__ */ jsx(
859
+ MultiSelect,
860
+ {
861
+ customizeContent: (value2) => formatMessage(
890
862
  {
891
- label: opt.label,
892
- values: opt.children.map((child) => child.value.toString()),
893
- children: opt.children.map((child) => {
894
- const { name: assignedWorkflowName } = workflows?.find(
895
- (workflow) => (currentWorkflow && workflow.id !== currentWorkflow.id || !currentWorkflow) && workflow.contentTypes.includes(child.value)
896
- ) ?? {};
897
- return /* @__PURE__ */ jsx(NestedOption, { value: child.value, children: /* @__PURE__ */ jsx(Typography, {
898
- // @ts-expect-error - formatMessage options doesn't expect to be a React component but that's what we need actually for the <i> and <em> components
899
- children: formatMessage(
900
- {
901
- id: "Settings.review-workflows.workflow.contentTypes.assigned.notice",
902
- defaultMessage: "{label} {name, select, undefined {} other {<i>(assigned to <em>{name}</em> workflow)</i>}}"
903
- },
904
- {
905
- label: child.label,
906
- name: assignedWorkflowName,
907
- em: (...children) => /* @__PURE__ */ jsx(Typography, { as: "em", fontWeight: "bold", children }),
908
- i: (...children) => /* @__PURE__ */ jsx(ContentTypeTakeNotice, { children })
909
- }
910
- )
911
- }) }, child.value);
912
- })
863
+ id: "Settings.review-workflows.workflow.contentTypes.displayValue",
864
+ defaultMessage: "{count} {count, plural, one {content type} other {content types}} selected"
913
865
  },
914
- opt.label
915
- );
916
- })
917
- }
918
- );
866
+ { count: value2?.length }
867
+ ),
868
+ disabled: isDisabled,
869
+ onChange: (values) => {
870
+ onChange("contentTypes", values);
871
+ },
872
+ value,
873
+ placeholder: formatMessage({
874
+ id: "Settings.review-workflows.workflow.contentTypes.placeholder",
875
+ defaultMessage: "Select"
876
+ }),
877
+ children: [
878
+ ...collectionTypes.length > 0 ? [
879
+ {
880
+ label: formatMessage({
881
+ id: "Settings.review-workflows.workflow.contentTypes.collectionTypes.label",
882
+ defaultMessage: "Collection Types"
883
+ }),
884
+ children: collectionTypes
885
+ }
886
+ ] : [],
887
+ ...singleTypes.length > 0 ? [
888
+ {
889
+ label: formatMessage({
890
+ id: "Settings.review-workflows.workflow.contentTypes.singleTypes.label",
891
+ defaultMessage: "Single Types"
892
+ }),
893
+ children: singleTypes
894
+ }
895
+ ] : []
896
+ ].map((opt) => {
897
+ return /* @__PURE__ */ jsx(
898
+ MultiSelectGroup,
899
+ {
900
+ label: opt.label,
901
+ values: opt.children.map((child) => child.value.toString()),
902
+ children: opt.children.map((child) => {
903
+ const { name: assignedWorkflowName } = workflows?.find(
904
+ (workflow) => (currentWorkflow && workflow.id !== currentWorkflow.id || !currentWorkflow) && workflow.contentTypes.includes(child.value)
905
+ ) ?? {};
906
+ return /* @__PURE__ */ jsx(NestedOption, { value: child.value, children: /* @__PURE__ */ jsx(Typography, {
907
+ // @ts-expect-error - formatMessage options doesn't expect to be a React component but that's what we need actually for the <i> and <em> components
908
+ children: formatMessage(
909
+ {
910
+ id: "Settings.review-workflows.workflow.contentTypes.assigned.notice",
911
+ defaultMessage: "{label} {name, select, undefined {} other {<i>(assigned to <em>{name}</em> workflow)</i>}}"
912
+ },
913
+ {
914
+ label: child.label,
915
+ name: assignedWorkflowName,
916
+ em: (...children) => /* @__PURE__ */ jsx(Typography, { tag: "em", fontWeight: "bold", children }),
917
+ i: (...children) => /* @__PURE__ */ jsx(ContentTypeTakeNotice, { children })
918
+ }
919
+ )
920
+ }) }, child.value);
921
+ })
922
+ },
923
+ opt.label
924
+ );
925
+ })
926
+ }
927
+ )
928
+ ] });
919
929
  };
920
930
  const NestedOption = styled(MultiSelectOption)`
921
931
  padding-left: ${({ theme }) => theme.spaces[7]};
@@ -1268,4 +1278,4 @@ const ProtectedEditPage = () => {
1268
1278
  export {
1269
1279
  ProtectedEditPage
1270
1280
  };
1271
- //# sourceMappingURL=_id-BuJ0Ud8T.mjs.map
1281
+ //# sourceMappingURL=_id-UJ-8gken.mjs.map