@strapi/content-manager 0.0.0-experimental.25e22c6cc9bc6b35392bb55d09f641a0a65e7403 → 0.0.0-experimental.3c73a4c6f6073abdf1608121a200c3d4d87b1aa8

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 (87) hide show
  1. package/dist/_chunks/{ComponentConfigurationPage-WRPUXGd6.js → ComponentConfigurationPage-BZIaEffq.js} +3 -3
  2. package/dist/_chunks/{ComponentConfigurationPage-WRPUXGd6.js.map → ComponentConfigurationPage-BZIaEffq.js.map} +1 -1
  3. package/dist/_chunks/{ComponentConfigurationPage-gdUj_t-O.mjs → ComponentConfigurationPage-Cxz51Sve.mjs} +3 -3
  4. package/dist/_chunks/{ComponentConfigurationPage-gdUj_t-O.mjs.map → ComponentConfigurationPage-Cxz51Sve.mjs.map} +1 -1
  5. package/dist/_chunks/{EditConfigurationPage-C1vjMBgy.js → EditConfigurationPage-CM62NN0L.js} +3 -3
  6. package/dist/_chunks/{EditConfigurationPage-C1vjMBgy.js.map → EditConfigurationPage-CM62NN0L.js.map} +1 -1
  7. package/dist/_chunks/{EditConfigurationPage-BwuIPOJG.mjs → EditConfigurationPage-CZLbgfIp.mjs} +3 -3
  8. package/dist/_chunks/{EditConfigurationPage-BwuIPOJG.mjs.map → EditConfigurationPage-CZLbgfIp.mjs.map} +1 -1
  9. package/dist/_chunks/{EditViewPage-DbcGfyqK.js → EditViewPage-CU7724gt.js} +45 -45
  10. package/dist/_chunks/EditViewPage-CU7724gt.js.map +1 -0
  11. package/dist/_chunks/{EditViewPage-0MiFkXa8.mjs → EditViewPage-CzuJgWWp.mjs} +46 -46
  12. package/dist/_chunks/EditViewPage-CzuJgWWp.mjs.map +1 -0
  13. package/dist/_chunks/{Field-BG1xu38N.js → Field-Dh1yZyqy.js} +115 -103
  14. package/dist/_chunks/Field-Dh1yZyqy.js.map +1 -0
  15. package/dist/_chunks/{Field-BDMSCcy5.mjs → Field-QtUSh5mU.mjs} +116 -104
  16. package/dist/_chunks/Field-QtUSh5mU.mjs.map +1 -0
  17. package/dist/_chunks/{Form-9BnFyUjy.js → Form-BOR8NOe1.js} +25 -21
  18. package/dist/_chunks/Form-BOR8NOe1.js.map +1 -0
  19. package/dist/_chunks/{Form-CPVWavB8.mjs → Form-COLpvlnv.mjs} +27 -23
  20. package/dist/_chunks/Form-COLpvlnv.mjs.map +1 -0
  21. package/dist/_chunks/{History-BVpd8LP3.mjs → History-Bu53Yfw-.mjs} +22 -101
  22. package/dist/_chunks/History-Bu53Yfw-.mjs.map +1 -0
  23. package/dist/_chunks/{History-BWWxLt2Z.js → History-CW2akQ6h.js} +21 -100
  24. package/dist/_chunks/History-CW2akQ6h.js.map +1 -0
  25. package/dist/_chunks/{ListConfigurationPage-DozVMKcR.mjs → ListConfigurationPage-TqrmwjPN.mjs} +45 -43
  26. package/dist/_chunks/ListConfigurationPage-TqrmwjPN.mjs.map +1 -0
  27. package/dist/_chunks/{ListConfigurationPage-6swzjdAZ.js → ListConfigurationPage-jzdhEk_u.js} +43 -42
  28. package/dist/_chunks/ListConfigurationPage-jzdhEk_u.js.map +1 -0
  29. package/dist/_chunks/{ListViewPage-BlzfjS2Q.js → ListViewPage-B3bMOrMv.js} +64 -47
  30. package/dist/_chunks/ListViewPage-B3bMOrMv.js.map +1 -0
  31. package/dist/_chunks/{ListViewPage-Ds0ulgfG.mjs → ListViewPage-BO_mOXIl.mjs} +65 -48
  32. package/dist/_chunks/ListViewPage-BO_mOXIl.mjs.map +1 -0
  33. package/dist/_chunks/{NoContentTypePage-D2nCCWEl.js → NoContentTypePage-D77xsNHj.js} +2 -2
  34. package/dist/_chunks/{NoContentTypePage-D2nCCWEl.js.map → NoContentTypePage-D77xsNHj.js.map} +1 -1
  35. package/dist/_chunks/{NoContentTypePage-BH11kaKt.mjs → NoContentTypePage-DqB0QV0k.mjs} +2 -2
  36. package/dist/_chunks/{NoContentTypePage-BH11kaKt.mjs.map → NoContentTypePage-DqB0QV0k.mjs.map} +1 -1
  37. package/dist/_chunks/{NoPermissionsPage-DN_JlsU2.js → NoPermissionsPage-C6qTGogm.js} +2 -2
  38. package/dist/_chunks/{NoPermissionsPage-DN_JlsU2.js.map → NoPermissionsPage-C6qTGogm.js.map} +1 -1
  39. package/dist/_chunks/{NoPermissionsPage-BT2Tn0D_.mjs → NoPermissionsPage-DTXi042N.mjs} +2 -2
  40. package/dist/_chunks/{NoPermissionsPage-BT2Tn0D_.mjs.map → NoPermissionsPage-DTXi042N.mjs.map} +1 -1
  41. package/dist/_chunks/{Relations-CcgFTcWo.js → Relations-B6fb2POW.js} +3 -3
  42. package/dist/_chunks/{Relations-CcgFTcWo.js.map → Relations-B6fb2POW.js.map} +1 -1
  43. package/dist/_chunks/{Relations-Dnag3fhV.mjs → Relations-CJ4qdkRo.mjs} +3 -3
  44. package/dist/_chunks/{Relations-Dnag3fhV.mjs.map → Relations-CJ4qdkRo.mjs.map} +1 -1
  45. package/dist/_chunks/{en-Ux26r5pl.mjs → en-9GwRW_ku.mjs} +1 -3
  46. package/dist/_chunks/{en-Ux26r5pl.mjs.map → en-9GwRW_ku.mjs.map} +1 -1
  47. package/dist/_chunks/{en-fbKQxLGn.js → en-DZXjRiWA.js} +1 -3
  48. package/dist/_chunks/{en-fbKQxLGn.js.map → en-DZXjRiWA.js.map} +1 -1
  49. package/dist/_chunks/{index-JNNNKUHs.mjs → index-Dahjdw4h.mjs} +266 -88
  50. package/dist/_chunks/index-Dahjdw4h.mjs.map +1 -0
  51. package/dist/_chunks/{index-CWpLBSt0.js → index-DcUu-_72.js} +265 -87
  52. package/dist/_chunks/index-DcUu-_72.js.map +1 -0
  53. package/dist/_chunks/{layout--iHdZzRk.js → layout-jcY4dyUG.js} +3 -3
  54. package/dist/_chunks/{layout--iHdZzRk.js.map → layout-jcY4dyUG.js.map} +1 -1
  55. package/dist/_chunks/{layout-DC503LnF.mjs → layout-omucV6TV.mjs} +3 -3
  56. package/dist/_chunks/{layout-DC503LnF.mjs.map → layout-omucV6TV.mjs.map} +1 -1
  57. package/dist/_chunks/{relations-CTje5t-a.mjs → relations-CN0-aw6p.mjs} +2 -2
  58. package/dist/_chunks/{relations-CTje5t-a.mjs.map → relations-CN0-aw6p.mjs.map} +1 -1
  59. package/dist/_chunks/{relations-BbHizA5K.js → relations-DGzD7ORa.js} +2 -2
  60. package/dist/_chunks/{relations-BbHizA5K.js.map → relations-DGzD7ORa.js.map} +1 -1
  61. package/dist/admin/index.js +1 -1
  62. package/dist/admin/index.mjs +1 -1
  63. package/dist/admin/src/history/components/VersionInputRenderer.d.ts +1 -1
  64. package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +3 -7
  65. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +10 -2
  66. package/dist/admin/src/pages/ListView/components/BulkActions/Actions.d.ts +30 -3
  67. package/dist/admin/src/pages/ListView/components/BulkActions/ConfirmBulkActionDialog.d.ts +2 -2
  68. package/dist/server/index.js +0 -3
  69. package/dist/server/index.js.map +1 -1
  70. package/dist/server/index.mjs +0 -3
  71. package/dist/server/index.mjs.map +1 -1
  72. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  73. package/package.json +8 -8
  74. package/dist/_chunks/EditViewPage-0MiFkXa8.mjs.map +0 -1
  75. package/dist/_chunks/EditViewPage-DbcGfyqK.js.map +0 -1
  76. package/dist/_chunks/Field-BDMSCcy5.mjs.map +0 -1
  77. package/dist/_chunks/Field-BG1xu38N.js.map +0 -1
  78. package/dist/_chunks/Form-9BnFyUjy.js.map +0 -1
  79. package/dist/_chunks/Form-CPVWavB8.mjs.map +0 -1
  80. package/dist/_chunks/History-BVpd8LP3.mjs.map +0 -1
  81. package/dist/_chunks/History-BWWxLt2Z.js.map +0 -1
  82. package/dist/_chunks/ListConfigurationPage-6swzjdAZ.js.map +0 -1
  83. package/dist/_chunks/ListConfigurationPage-DozVMKcR.mjs.map +0 -1
  84. package/dist/_chunks/ListViewPage-BlzfjS2Q.js.map +0 -1
  85. package/dist/_chunks/ListViewPage-Ds0ulgfG.mjs.map +0 -1
  86. package/dist/_chunks/index-CWpLBSt0.js.map +0 -1
  87. package/dist/_chunks/index-JNNNKUHs.mjs.map +0 -1
@@ -2,12 +2,12 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import { useState, useEffect, useCallback, memo } from "react";
4
4
  import { useStrapiApp, createContext, useField, useNotification, useForm, useAPIErrorHandler, useQueryParams, useFocusInputField, InputRenderer as InputRenderer$1 } from "@strapi/admin/strapi-admin";
5
- import { Typography, Flex, Box, BaseLink, Button, Popover, Field, Tooltip, SingleSelect, SingleSelectOption, IconButton, useComposedRefs, Portal, FocusTrap, Divider, VisuallyHidden, Grid as Grid$1, Accordion, TextButton, BaseButton, TextInput, IconButtonGroup, Menu, MenuItem } from "@strapi/design-system";
5
+ import { Typography, Flex, Box, BaseLink, Button, useComposedRefs, Popover, Field, Tooltip, SingleSelect, SingleSelectOption, IconButton, Portal, FocusTrap, Divider, VisuallyHidden, Grid as Grid$1, GridItem, Accordion, TextButton, BaseButton, 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, d as buildValidParams, f as useDocumentRBAC, n as useDocLayout } from "./index-JNNNKUHs.mjs";
8
+ import { m as DOCUMENT_META_FIELDS, g as getTranslation, c as useDoc, e as contentManagerApi, d as buildValidParams, f as useDocumentRBAC, n as useDocLayout } from "./index-Dahjdw4h.mjs";
9
9
  import { generateNKeysBetween } from "fractional-indexing";
10
- import { u as useComponent, C as ComponentProvider, M as MemoizedRelationsField } from "./Relations-Dnag3fhV.mjs";
10
+ import { u as useComponent, C as ComponentProvider, M as MemoizedRelationsField } from "./Relations-CJ4qdkRo.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";
@@ -589,23 +589,17 @@ const LinkContent = React.forwardRef(
589
589
  const [popoverOpen, setPopoverOpen] = React.useState(
590
590
  editor.lastInsertedLinkPath ? Path.equals(path, editor.lastInsertedLinkPath) : false
591
591
  );
592
+ const linkRef = React.useRef(null);
592
593
  const elementText = link.children.map((child) => child.text).join("");
593
594
  const [linkText, setLinkText] = React.useState(elementText);
594
595
  const [linkUrl, setLinkUrl] = React.useState(link.url);
595
596
  const linkInputRef = React.useRef(null);
596
597
  const [showRemoveButton, setShowRemoveButton] = React.useState(false);
597
598
  const [isSaveDisabled, setIsSaveDisabled] = React.useState(false);
598
- const handleOpenChange = (isOpen) => {
599
- if (isOpen) {
600
- setPopoverOpen(isOpen);
601
- setShowRemoveButton(isOpen);
602
- } else {
603
- setPopoverOpen(isOpen);
604
- if (link.url === "") {
605
- removeLink(editor);
606
- }
607
- ReactEditor.focus(editor);
608
- }
599
+ const handleOpenEditPopover = (e) => {
600
+ e.preventDefault();
601
+ setPopoverOpen(true);
602
+ setShowRemoveButton(true);
609
603
  };
610
604
  const onLinkChange = (e) => {
611
605
  setIsSaveDisabled(false);
@@ -628,14 +622,32 @@ const LinkContent = React.forwardRef(
628
622
  setPopoverOpen(false);
629
623
  editor.lastInsertedLinkPath = null;
630
624
  };
625
+ const handleDismiss = () => {
626
+ setPopoverOpen(false);
627
+ if (link.url === "") {
628
+ removeLink(editor);
629
+ }
630
+ ReactEditor.focus(editor);
631
+ };
632
+ const inputNotDirty = !linkText || !linkUrl || link.url && link.url === linkUrl && elementText && elementText === linkText;
633
+ const composedRefs = useComposedRefs(linkRef, forwardedRef);
631
634
  React.useEffect(() => {
632
635
  if (popoverOpen)
633
636
  linkInputRef.current?.focus();
634
637
  }, [popoverOpen]);
635
- const inputNotDirty = !linkText || !linkUrl || link.url && link.url === linkUrl && elementText && elementText === linkText;
636
- return /* @__PURE__ */ jsxs(Popover.Root, { onOpenChange: handleOpenChange, open: popoverOpen, children: [
637
- /* @__PURE__ */ jsx(Popover.Trigger, { children: /* @__PURE__ */ jsx(StyledBaseLink, { ...attributes, ref: forwardedRef, href: link.url, color: "primary600", children }) }),
638
- /* @__PURE__ */ jsx(Popover.Content, { children: /* @__PURE__ */ jsxs(Flex, { padding: 4, tag: "form", onSubmit: handleSave, direction: "column", gap: 4, children: [
638
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
639
+ /* @__PURE__ */ jsx(
640
+ StyledBaseLink,
641
+ {
642
+ ...attributes,
643
+ ref: composedRefs,
644
+ href: link.url,
645
+ onClick: handleOpenEditPopover,
646
+ color: "primary600",
647
+ children
648
+ }
649
+ ),
650
+ popoverOpen && /* @__PURE__ */ jsx(Popover, { source: linkRef, onDismiss: handleDismiss, padding: 4, contentEditable: false, children: /* @__PURE__ */ jsxs(Flex, { tag: "form", onSubmit: handleSave, direction: "column", gap: 4, children: [
639
651
  /* @__PURE__ */ jsx(Field.Root, { width: "368px", children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 1, alignItems: "stretch", children: [
640
652
  /* @__PURE__ */ jsx(Field.Label, { children: formatMessage({
641
653
  id: "components.Blocks.popover.text",
@@ -689,7 +701,7 @@ const LinkContent = React.forwardRef(
689
701
  }
690
702
  ),
691
703
  /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
692
- /* @__PURE__ */ jsx(Button, { variant: "tertiary", onClick: () => handleOpenChange(false), children: formatMessage({
704
+ /* @__PURE__ */ jsx(Button, { variant: "tertiary", onClick: handleDismiss, children: formatMessage({
693
705
  id: "components.Blocks.popover.cancel",
694
706
  defaultMessage: "Cancel"
695
707
  }) }),
@@ -2380,9 +2392,9 @@ const NonRepeatableComponent = ({
2380
2392
  hasRadius: isNested,
2381
2393
  borderColor: isNested ? "neutral200" : void 0,
2382
2394
  children: /* @__PURE__ */ jsx(Flex, { direction: "column", alignItems: "stretch", gap: 6, children: layout.map((row, index) => {
2383
- return /* @__PURE__ */ jsx(Grid$1.Root, { gap: 4, children: row.map(({ size, ...field }) => {
2395
+ return /* @__PURE__ */ jsx(Grid$1, { gap: 4, children: row.map(({ size, ...field }) => {
2384
2396
  const completeFieldName = `${name2}.${field.name}`;
2385
- return /* @__PURE__ */ jsx(Grid$1.Item, { col: size, s: 12, xs: 12, children: children({ ...field, name: completeFieldName }) }, completeFieldName);
2397
+ return /* @__PURE__ */ jsx(GridItem, { col: size, s: 12, xs: 12, children: children({ ...field, name: completeFieldName }) }, completeFieldName);
2386
2398
  }) }, index);
2387
2399
  }) })
2388
2400
  }
@@ -2558,9 +2570,9 @@ const RepeatableComponent = ({
2558
2570
  onGrabItem: handleGrabItem,
2559
2571
  __temp_key__: key,
2560
2572
  children: layout.map((row, index2) => {
2561
- return /* @__PURE__ */ jsx(Grid$1.Root, { gap: 4, children: row.map(({ size, ...field }) => {
2573
+ return /* @__PURE__ */ jsx(Grid$1, { gap: 4, children: row.map(({ size, ...field }) => {
2562
2574
  const completeFieldName = `${nameWithIndex}.${field.name}`;
2563
- return /* @__PURE__ */ jsx(Grid$1.Item, { col: size, s: 12, xs: 12, children: children({ ...field, name: completeFieldName }) }, completeFieldName);
2575
+ return /* @__PURE__ */ jsx(GridItem, { col: size, s: 12, xs: 12, children: children({ ...field, name: completeFieldName }) }, completeFieldName);
2564
2576
  }) }, index2);
2565
2577
  })
2566
2578
  }
@@ -2605,7 +2617,7 @@ const TextButtonCustom = styled(TextButton)`
2605
2617
  }
2606
2618
 
2607
2619
  @media (prefers-reduced-motion: no-preference) {
2608
- transition: background-color 120ms ${(props) => props.theme.motion.easings.easeOutQuad};
2620
+ transition: background-color 120ms ${(props) => props.theme.easings.easeOutQuad};
2609
2621
  }
2610
2622
  `;
2611
2623
  const Component = ({
@@ -2873,7 +2885,7 @@ const ComponentBox = styled(Flex)`
2873
2885
  cursor: pointer;
2874
2886
 
2875
2887
  @media (prefers-reduced-motion: no-preference) {
2876
- transition: color 120ms ${(props) => props.theme.motion.easings.easeOutQuad};
2888
+ transition: color 120ms ${(props) => props.theme.easings.easeOutQuad};
2877
2889
  }
2878
2890
 
2879
2891
  &:focus,
@@ -4260,6 +4272,8 @@ const quoteAndCodeHandler = (editor, markdownType) => {
4260
4272
  };
4261
4273
  const CustomIconButton = styled(IconButton)`
4262
4274
  padding: ${({ theme }) => theme.spaces[2]};
4275
+ /* Trick to prevent the outline from overflowing because of the general outline-offset */
4276
+ outline-offset: -2px !important;
4263
4277
 
4264
4278
  svg {
4265
4279
  width: 1.8rem;
@@ -4326,7 +4340,7 @@ const WysiwygNav = ({
4326
4340
  id: "components.Wysiwyg.selectOptions.title",
4327
4341
  defaultMessage: "Add a title"
4328
4342
  });
4329
- React.useRef(null);
4343
+ const buttonMoreRef = React.useRef(null);
4330
4344
  const handleTogglePopover = () => {
4331
4345
  setVisiblePopover((prev) => !prev);
4332
4346
  };
@@ -4417,81 +4431,79 @@ const WysiwygNav = ({
4417
4431
  }
4418
4432
  )
4419
4433
  ] }),
4420
- /* @__PURE__ */ jsxs(Popover.Root, { children: [
4421
- /* @__PURE__ */ jsx(Popover.Trigger, { children: /* @__PURE__ */ jsx(MoreButton, { label: "More", children: /* @__PURE__ */ jsx(More, {}) }) }),
4422
- /* @__PURE__ */ jsx(Popover.Content, { sideOffset: 12, children: /* @__PURE__ */ jsxs(Flex, { padding: 2, children: [
4423
- /* @__PURE__ */ jsxs(IconButtonGroupMargin, { children: [
4424
- /* @__PURE__ */ jsx(
4425
- CustomIconButton,
4426
- {
4427
- onClick: () => onActionClick("Strikethrough", editorRef, handleTogglePopover),
4428
- label: "Strikethrough",
4429
- name: "Strikethrough",
4430
- children: /* @__PURE__ */ jsx(StrikeThrough, {})
4431
- }
4432
- ),
4433
- /* @__PURE__ */ jsx(
4434
- CustomIconButton,
4435
- {
4436
- onClick: () => onActionClick("BulletList", editorRef, handleTogglePopover),
4437
- label: "BulletList",
4438
- name: "BulletList",
4439
- children: /* @__PURE__ */ jsx(BulletList, {})
4440
- }
4441
- ),
4442
- /* @__PURE__ */ jsx(
4443
- CustomIconButton,
4444
- {
4445
- onClick: () => onActionClick("NumberList", editorRef, handleTogglePopover),
4446
- label: "NumberList",
4447
- name: "NumberList",
4448
- children: /* @__PURE__ */ jsx(NumberList, {})
4449
- }
4450
- )
4451
- ] }),
4452
- /* @__PURE__ */ jsxs(IconButtonGroup, { children: [
4453
- /* @__PURE__ */ jsx(
4454
- CustomIconButton,
4455
- {
4456
- onClick: () => onActionClick("Code", editorRef, handleTogglePopover),
4457
- label: "Code",
4458
- name: "Code",
4459
- children: /* @__PURE__ */ jsx(Code, {})
4460
- }
4461
- ),
4462
- /* @__PURE__ */ jsx(
4463
- CustomIconButton,
4464
- {
4465
- onClick: () => {
4466
- handleTogglePopover();
4467
- onToggleMediaLib();
4468
- },
4469
- label: "Image",
4470
- name: "Image",
4471
- children: /* @__PURE__ */ jsx(Image$1, {})
4472
- }
4473
- ),
4474
- /* @__PURE__ */ jsx(
4475
- CustomLinkIconButton,
4476
- {
4477
- onClick: () => onActionClick("Link", editorRef, handleTogglePopover),
4478
- label: "Link",
4479
- name: "Link",
4480
- children: /* @__PURE__ */ jsx(Link$1, {})
4481
- }
4482
- ),
4483
- /* @__PURE__ */ jsx(
4484
- CustomIconButton,
4485
- {
4486
- onClick: () => onActionClick("Quote", editorRef, handleTogglePopover),
4487
- label: "Quote",
4488
- name: "Quote",
4489
- children: /* @__PURE__ */ jsx(Quotes, {})
4490
- }
4491
- )
4492
- ] })
4493
- ] }) })
4494
- ] })
4434
+ /* @__PURE__ */ jsx(MoreButton, { ref: buttonMoreRef, onClick: handleTogglePopover, label: "More", children: /* @__PURE__ */ jsx(More, {}) }),
4435
+ visiblePopover && /* @__PURE__ */ jsx(Popover, { onDismiss: handleTogglePopover, centered: true, source: buttonMoreRef, spacing: 4, children: /* @__PURE__ */ jsxs(Flex, { children: [
4436
+ /* @__PURE__ */ jsxs(IconButtonGroupMargin, { children: [
4437
+ /* @__PURE__ */ jsx(
4438
+ CustomIconButton,
4439
+ {
4440
+ onClick: () => onActionClick("Strikethrough", editorRef, handleTogglePopover),
4441
+ label: "Strikethrough",
4442
+ name: "Strikethrough",
4443
+ children: /* @__PURE__ */ jsx(StrikeThrough, {})
4444
+ }
4445
+ ),
4446
+ /* @__PURE__ */ jsx(
4447
+ CustomIconButton,
4448
+ {
4449
+ onClick: () => onActionClick("BulletList", editorRef, handleTogglePopover),
4450
+ label: "BulletList",
4451
+ name: "BulletList",
4452
+ children: /* @__PURE__ */ jsx(BulletList, {})
4453
+ }
4454
+ ),
4455
+ /* @__PURE__ */ jsx(
4456
+ CustomIconButton,
4457
+ {
4458
+ onClick: () => onActionClick("NumberList", editorRef, handleTogglePopover),
4459
+ label: "NumberList",
4460
+ name: "NumberList",
4461
+ children: /* @__PURE__ */ jsx(NumberList, {})
4462
+ }
4463
+ )
4464
+ ] }),
4465
+ /* @__PURE__ */ jsxs(IconButtonGroup, { children: [
4466
+ /* @__PURE__ */ jsx(
4467
+ CustomIconButton,
4468
+ {
4469
+ onClick: () => onActionClick("Code", editorRef, handleTogglePopover),
4470
+ label: "Code",
4471
+ name: "Code",
4472
+ children: /* @__PURE__ */ jsx(Code, {})
4473
+ }
4474
+ ),
4475
+ /* @__PURE__ */ jsx(
4476
+ CustomIconButton,
4477
+ {
4478
+ onClick: () => {
4479
+ handleTogglePopover();
4480
+ onToggleMediaLib();
4481
+ },
4482
+ label: "Image",
4483
+ name: "Image",
4484
+ children: /* @__PURE__ */ jsx(Image$1, {})
4485
+ }
4486
+ ),
4487
+ /* @__PURE__ */ jsx(
4488
+ CustomLinkIconButton,
4489
+ {
4490
+ onClick: () => onActionClick("Link", editorRef, handleTogglePopover),
4491
+ label: "Link",
4492
+ name: "Link",
4493
+ children: /* @__PURE__ */ jsx(Link$1, {})
4494
+ }
4495
+ ),
4496
+ /* @__PURE__ */ jsx(
4497
+ CustomIconButton,
4498
+ {
4499
+ onClick: () => onActionClick("Quote", editorRef, handleTogglePopover),
4500
+ label: "Quote",
4501
+ name: "Quote",
4502
+ children: /* @__PURE__ */ jsx(Quotes, {})
4503
+ }
4504
+ )
4505
+ ] })
4506
+ ] }) })
4495
4507
  ] }),
4496
4508
  onTogglePreviewMode && /* @__PURE__ */ jsx(Button, { onClick: onTogglePreviewMode, variant: "tertiary", children: formatMessage({
4497
4509
  id: "components.Wysiwyg.ToggleMode.preview-mode",
@@ -4885,9 +4897,9 @@ const DynamicComponent = ({
4885
4897
  ),
4886
4898
  /* @__PURE__ */ jsx(Accordion.Actions, { children: accordionActions })
4887
4899
  ] }),
4888
- /* @__PURE__ */ jsx(Accordion.Content, { children: /* @__PURE__ */ jsx(AccordionContentRadius, { background: "neutral0", children: /* @__PURE__ */ jsx(Box, { paddingLeft: 6, paddingRight: 6, paddingTop: 6, paddingBottom: 6, children: components[componentUid]?.layout?.map((row, rowInd) => /* @__PURE__ */ jsx(Grid$1.Root, { gap: 4, children: row.map(({ size, ...field }) => {
4900
+ /* @__PURE__ */ jsx(Accordion.Content, { children: /* @__PURE__ */ jsx(AccordionContentRadius, { background: "neutral0", children: /* @__PURE__ */ jsx(Box, { paddingLeft: 6, paddingRight: 6, paddingTop: 6, paddingBottom: 6, children: components[componentUid]?.layout?.map((row, rowInd) => /* @__PURE__ */ jsx(Grid$1, { gap: 4, children: row.map(({ size, ...field }) => {
4889
4901
  const fieldName = `${name2}.${index}.${field.name}`;
4890
- return /* @__PURE__ */ jsx(Grid$1.Item, { col: size, s: 12, xs: 12, children: /* @__PURE__ */ jsx(MemoizedInputRenderer, { ...field, name: fieldName }) }, fieldName);
4902
+ return /* @__PURE__ */ jsx(GridItem, { col: size, s: 12, xs: 12, children: /* @__PURE__ */ jsx(MemoizedInputRenderer, { ...field, name: fieldName }) }, fieldName);
4891
4903
  }) }, rowInd)) }) }) })
4892
4904
  ] }) }) })
4893
4905
  ] });
@@ -5196,4 +5208,4 @@ export {
5196
5208
  transformDocument as t,
5197
5209
  useLazyComponents as u
5198
5210
  };
5199
- //# sourceMappingURL=Field-BDMSCcy5.mjs.map
5211
+ //# sourceMappingURL=Field-QtUSh5mU.mjs.map