@strapi/content-manager 0.0.0-experimental.baa6cf22298e591b4d52d8e59c60406d7a9f137f → 0.0.0-experimental.d954d57341a6623992a0d211daaec8e245c3517d
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-DiigqkCf.js → ComponentConfigurationPage-WRPUXGd6.js} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-DiigqkCf.js.map → ComponentConfigurationPage-WRPUXGd6.js.map} +1 -1
- package/dist/_chunks/{ComponentConfigurationPage-CYqQv0ne.mjs → ComponentConfigurationPage-gdUj_t-O.mjs} +3 -3
- package/dist/_chunks/{ComponentConfigurationPage-CYqQv0ne.mjs.map → ComponentConfigurationPage-gdUj_t-O.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-BArY-b8_.mjs → EditConfigurationPage-BwuIPOJG.mjs} +3 -3
- package/dist/_chunks/{EditConfigurationPage-BArY-b8_.mjs.map → EditConfigurationPage-BwuIPOJG.mjs.map} +1 -1
- package/dist/_chunks/{EditConfigurationPage-BeeGw2RI.js → EditConfigurationPage-C1vjMBgy.js} +3 -3
- package/dist/_chunks/{EditConfigurationPage-BeeGw2RI.js.map → EditConfigurationPage-C1vjMBgy.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-B8ETGsFo.mjs → EditViewPage-0MiFkXa8.mjs} +46 -46
- package/dist/_chunks/EditViewPage-0MiFkXa8.mjs.map +1 -0
- package/dist/_chunks/{EditViewPage-DZPDqo_G.js → EditViewPage-DbcGfyqK.js} +45 -45
- package/dist/_chunks/EditViewPage-DbcGfyqK.js.map +1 -0
- package/dist/_chunks/{Field-Dn4ThnFB.mjs → Field-BDMSCcy5.mjs} +104 -116
- package/dist/_chunks/Field-BDMSCcy5.mjs.map +1 -0
- package/dist/_chunks/{Field-DnJMS8cB.js → Field-BG1xu38N.js} +103 -115
- package/dist/_chunks/Field-BG1xu38N.js.map +1 -0
- package/dist/_chunks/{Form-DiTmWq2k.js → Form-9BnFyUjy.js} +21 -25
- package/dist/_chunks/Form-9BnFyUjy.js.map +1 -0
- package/dist/_chunks/{Form-DY721B6y.mjs → Form-CPVWavB8.mjs} +23 -27
- package/dist/_chunks/Form-CPVWavB8.mjs.map +1 -0
- package/dist/_chunks/{History-CwWN_uNp.mjs → History-BVpd8LP3.mjs} +101 -22
- package/dist/_chunks/History-BVpd8LP3.mjs.map +1 -0
- package/dist/_chunks/{History-DShoVAh0.js → History-BWWxLt2Z.js} +100 -21
- package/dist/_chunks/History-BWWxLt2Z.js.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-COIRGF5b.js → ListConfigurationPage-6swzjdAZ.js} +42 -43
- package/dist/_chunks/ListConfigurationPage-6swzjdAZ.js.map +1 -0
- package/dist/_chunks/{ListConfigurationPage-D062TiTL.mjs → ListConfigurationPage-DozVMKcR.mjs} +43 -45
- package/dist/_chunks/ListConfigurationPage-DozVMKcR.mjs.map +1 -0
- package/dist/_chunks/{ListViewPage-CFuXPZ_r.js → ListViewPage-BlzfjS2Q.js} +60 -65
- package/dist/_chunks/ListViewPage-BlzfjS2Q.js.map +1 -0
- package/dist/_chunks/{ListViewPage-BeHTsIr5.mjs → ListViewPage-Ds0ulgfG.mjs} +62 -67
- package/dist/_chunks/ListViewPage-Ds0ulgfG.mjs.map +1 -0
- package/dist/_chunks/{NoContentTypePage-B_KLijrG.mjs → NoContentTypePage-BH11kaKt.mjs} +2 -2
- package/dist/_chunks/{NoContentTypePage-B_KLijrG.mjs.map → NoContentTypePage-BH11kaKt.mjs.map} +1 -1
- package/dist/_chunks/{NoContentTypePage-rdH0Zp0A.js → NoContentTypePage-D2nCCWEl.js} +2 -2
- package/dist/_chunks/{NoContentTypePage-rdH0Zp0A.js.map → NoContentTypePage-D2nCCWEl.js.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-BPU-v48V.mjs → NoPermissionsPage-BT2Tn0D_.mjs} +2 -2
- package/dist/_chunks/{NoPermissionsPage-BPU-v48V.mjs.map → NoPermissionsPage-BT2Tn0D_.mjs.map} +1 -1
- package/dist/_chunks/{NoPermissionsPage-D8gbX1Y_.js → NoPermissionsPage-DN_JlsU2.js} +2 -2
- package/dist/_chunks/{NoPermissionsPage-D8gbX1Y_.js.map → NoPermissionsPage-DN_JlsU2.js.map} +1 -1
- package/dist/_chunks/{Relations-wHyjWWT5.js → Relations-CcgFTcWo.js} +3 -3
- package/dist/_chunks/{Relations-wHyjWWT5.js.map → Relations-CcgFTcWo.js.map} +1 -1
- package/dist/_chunks/{Relations-Bbz90ZWv.mjs → Relations-Dnag3fhV.mjs} +3 -3
- package/dist/_chunks/{Relations-Bbz90ZWv.mjs.map → Relations-Dnag3fhV.mjs.map} +1 -1
- package/dist/_chunks/{en-Dzv55oQw.mjs → en-Ux26r5pl.mjs} +4 -1
- package/dist/_chunks/{en-Dzv55oQw.mjs.map → en-Ux26r5pl.mjs.map} +1 -1
- package/dist/_chunks/{en-BN1bvFK7.js → en-fbKQxLGn.js} +4 -1
- package/dist/_chunks/{en-BN1bvFK7.js.map → en-fbKQxLGn.js.map} +1 -1
- package/dist/_chunks/{index-BRHpg0az.js → index-CWpLBSt0.js} +120 -283
- package/dist/_chunks/index-CWpLBSt0.js.map +1 -0
- package/dist/_chunks/{index-Dv4oDn11.mjs → index-JNNNKUHs.mjs} +136 -299
- package/dist/_chunks/index-JNNNKUHs.mjs.map +1 -0
- package/dist/_chunks/{layout-pZc2Q3bK.js → layout--iHdZzRk.js} +17 -12
- package/dist/_chunks/layout--iHdZzRk.js.map +1 -0
- package/dist/_chunks/{layout-hInnLBbA.mjs → layout-DC503LnF.mjs} +17 -12
- package/dist/_chunks/layout-DC503LnF.mjs.map +1 -0
- package/dist/_chunks/{relations-CVE30dYt.js → relations-BbHizA5K.js} +2 -2
- package/dist/_chunks/{relations-CVE30dYt.js.map → relations-BbHizA5K.js.map} +1 -1
- package/dist/_chunks/{relations-BcPI8XhI.mjs → relations-CTje5t-a.mjs} +2 -2
- package/dist/_chunks/{relations-BcPI8XhI.mjs.map → relations-CTje5t-a.mjs.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +5 -5
- 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 +18 -11
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +18 -11
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
- package/dist/server/src/controllers/single-types.d.ts.map +1 -1
- package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
- package/dist/server/src/services/utils/populate.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/_chunks/EditViewPage-B8ETGsFo.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-DZPDqo_G.js.map +0 -1
- package/dist/_chunks/Field-Dn4ThnFB.mjs.map +0 -1
- package/dist/_chunks/Field-DnJMS8cB.js.map +0 -1
- package/dist/_chunks/Form-DY721B6y.mjs.map +0 -1
- package/dist/_chunks/Form-DiTmWq2k.js.map +0 -1
- package/dist/_chunks/History-CwWN_uNp.mjs.map +0 -1
- package/dist/_chunks/History-DShoVAh0.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-COIRGF5b.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-D062TiTL.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-BeHTsIr5.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-CFuXPZ_r.js.map +0 -1
- package/dist/_chunks/index-BRHpg0az.js.map +0 -1
- package/dist/_chunks/index-Dv4oDn11.mjs.map +0 -1
- package/dist/_chunks/layout-hInnLBbA.mjs.map +0 -1
- package/dist/_chunks/layout-pZc2Q3bK.js.map +0 -1
@@ -5,9 +5,9 @@ const strapiAdmin = require("@strapi/admin/strapi-admin");
|
|
5
5
|
const designSystem = require("@strapi/design-system");
|
6
6
|
const pipe$1 = require("lodash/fp/pipe");
|
7
7
|
const reactIntl = require("react-intl");
|
8
|
-
const index = require("./index-
|
8
|
+
const index = require("./index-CWpLBSt0.js");
|
9
9
|
const fractionalIndexing = require("fractional-indexing");
|
10
|
-
const Relations = require("./Relations-
|
10
|
+
const Relations = require("./Relations-CcgFTcWo.js");
|
11
11
|
const Icons = require("@strapi/icons");
|
12
12
|
const styledComponents = require("styled-components");
|
13
13
|
const ComponentIcon = require("./ComponentIcon-BXdiCGQp.js");
|
@@ -623,17 +623,23 @@ const LinkContent = React__namespace.forwardRef(
|
|
623
623
|
const [popoverOpen, setPopoverOpen] = React__namespace.useState(
|
624
624
|
editor.lastInsertedLinkPath ? slate.Path.equals(path, editor.lastInsertedLinkPath) : false
|
625
625
|
);
|
626
|
-
const linkRef = React__namespace.useRef(null);
|
627
626
|
const elementText = link.children.map((child) => child.text).join("");
|
628
627
|
const [linkText, setLinkText] = React__namespace.useState(elementText);
|
629
628
|
const [linkUrl, setLinkUrl] = React__namespace.useState(link.url);
|
630
629
|
const linkInputRef = React__namespace.useRef(null);
|
631
630
|
const [showRemoveButton, setShowRemoveButton] = React__namespace.useState(false);
|
632
631
|
const [isSaveDisabled, setIsSaveDisabled] = React__namespace.useState(false);
|
633
|
-
const
|
634
|
-
|
635
|
-
|
636
|
-
|
632
|
+
const handleOpenChange = (isOpen) => {
|
633
|
+
if (isOpen) {
|
634
|
+
setPopoverOpen(isOpen);
|
635
|
+
setShowRemoveButton(isOpen);
|
636
|
+
} else {
|
637
|
+
setPopoverOpen(isOpen);
|
638
|
+
if (link.url === "") {
|
639
|
+
removeLink(editor);
|
640
|
+
}
|
641
|
+
slateReact.ReactEditor.focus(editor);
|
642
|
+
}
|
637
643
|
};
|
638
644
|
const onLinkChange = (e) => {
|
639
645
|
setIsSaveDisabled(false);
|
@@ -656,32 +662,14 @@ const LinkContent = React__namespace.forwardRef(
|
|
656
662
|
setPopoverOpen(false);
|
657
663
|
editor.lastInsertedLinkPath = null;
|
658
664
|
};
|
659
|
-
const handleDismiss = () => {
|
660
|
-
setPopoverOpen(false);
|
661
|
-
if (link.url === "") {
|
662
|
-
removeLink(editor);
|
663
|
-
}
|
664
|
-
slateReact.ReactEditor.focus(editor);
|
665
|
-
};
|
666
|
-
const inputNotDirty = !linkText || !linkUrl || link.url && link.url === linkUrl && elementText && elementText === linkText;
|
667
|
-
const composedRefs = designSystem.useComposedRefs(linkRef, forwardedRef);
|
668
665
|
React__namespace.useEffect(() => {
|
669
666
|
if (popoverOpen)
|
670
667
|
linkInputRef.current?.focus();
|
671
668
|
}, [popoverOpen]);
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
...attributes,
|
677
|
-
ref: composedRefs,
|
678
|
-
href: link.url,
|
679
|
-
onClick: handleOpenEditPopover,
|
680
|
-
color: "primary600",
|
681
|
-
children
|
682
|
-
}
|
683
|
-
),
|
684
|
-
popoverOpen && /* @__PURE__ */ jsxRuntime.jsx(designSystem.Popover, { source: linkRef, onDismiss: handleDismiss, padding: 4, contentEditable: false, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { tag: "form", onSubmit: handleSave, direction: "column", gap: 4, children: [
|
669
|
+
const inputNotDirty = !linkText || !linkUrl || link.url && link.url === linkUrl && elementText && elementText === linkText;
|
670
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Popover.Root, { onOpenChange: handleOpenChange, open: popoverOpen, children: [
|
671
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Popover.Trigger, { children: /* @__PURE__ */ jsxRuntime.jsx(StyledBaseLink, { ...attributes, ref: forwardedRef, href: link.url, color: "primary600", children }) }),
|
672
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Popover.Content, { children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { padding: 4, tag: "form", onSubmit: handleSave, direction: "column", gap: 4, children: [
|
685
673
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Root, { width: "368px", children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 1, alignItems: "stretch", children: [
|
686
674
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: formatMessage({
|
687
675
|
id: "components.Blocks.popover.text",
|
@@ -735,7 +723,7 @@ const LinkContent = React__namespace.forwardRef(
|
|
735
723
|
}
|
736
724
|
),
|
737
725
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 2, children: [
|
738
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { variant: "tertiary", onClick:
|
726
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { variant: "tertiary", onClick: () => handleOpenChange(false), children: formatMessage({
|
739
727
|
id: "components.Blocks.popover.cancel",
|
740
728
|
defaultMessage: "Cancel"
|
741
729
|
}) }),
|
@@ -2426,9 +2414,9 @@ const NonRepeatableComponent = ({
|
|
2426
2414
|
hasRadius: isNested,
|
2427
2415
|
borderColor: isNested ? "neutral200" : void 0,
|
2428
2416
|
children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 6, children: layout.map((row, index2) => {
|
2429
|
-
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid, { gap: 4, children: row.map(({ size, ...field }) => {
|
2417
|
+
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Root, { gap: 4, children: row.map(({ size, ...field }) => {
|
2430
2418
|
const completeFieldName = `${name2}.${field.name}`;
|
2431
|
-
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.
|
2419
|
+
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: size, s: 12, xs: 12, children: children({ ...field, name: completeFieldName }) }, completeFieldName);
|
2432
2420
|
}) }, index2);
|
2433
2421
|
}) })
|
2434
2422
|
}
|
@@ -2604,9 +2592,9 @@ const RepeatableComponent = ({
|
|
2604
2592
|
onGrabItem: handleGrabItem,
|
2605
2593
|
__temp_key__: key,
|
2606
2594
|
children: layout.map((row, index22) => {
|
2607
|
-
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid, { gap: 4, children: row.map(({ size, ...field }) => {
|
2595
|
+
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Root, { gap: 4, children: row.map(({ size, ...field }) => {
|
2608
2596
|
const completeFieldName = `${nameWithIndex}.${field.name}`;
|
2609
|
-
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.
|
2597
|
+
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: size, s: 12, xs: 12, children: children({ ...field, name: completeFieldName }) }, completeFieldName);
|
2610
2598
|
}) }, index22);
|
2611
2599
|
})
|
2612
2600
|
}
|
@@ -2651,7 +2639,7 @@ const TextButtonCustom = styledComponents.styled(designSystem.TextButton)`
|
|
2651
2639
|
}
|
2652
2640
|
|
2653
2641
|
@media (prefers-reduced-motion: no-preference) {
|
2654
|
-
transition: background-color 120ms ${(props) => props.theme.easings.easeOutQuad};
|
2642
|
+
transition: background-color 120ms ${(props) => props.theme.motion.easings.easeOutQuad};
|
2655
2643
|
}
|
2656
2644
|
`;
|
2657
2645
|
const Component = ({
|
@@ -2919,7 +2907,7 @@ const ComponentBox = styledComponents.styled(designSystem.Flex)`
|
|
2919
2907
|
cursor: pointer;
|
2920
2908
|
|
2921
2909
|
@media (prefers-reduced-motion: no-preference) {
|
2922
|
-
transition: color 120ms ${(props) => props.theme.easings.easeOutQuad};
|
2910
|
+
transition: color 120ms ${(props) => props.theme.motion.easings.easeOutQuad};
|
2923
2911
|
}
|
2924
2912
|
|
2925
2913
|
&:focus,
|
@@ -4306,8 +4294,6 @@ const quoteAndCodeHandler = (editor, markdownType) => {
|
|
4306
4294
|
};
|
4307
4295
|
const CustomIconButton = styledComponents.styled(designSystem.IconButton)`
|
4308
4296
|
padding: ${({ theme }) => theme.spaces[2]};
|
4309
|
-
/* Trick to prevent the outline from overflowing because of the general outline-offset */
|
4310
|
-
outline-offset: -2px !important;
|
4311
4297
|
|
4312
4298
|
svg {
|
4313
4299
|
width: 1.8rem;
|
@@ -4374,7 +4360,7 @@ const WysiwygNav = ({
|
|
4374
4360
|
id: "components.Wysiwyg.selectOptions.title",
|
4375
4361
|
defaultMessage: "Add a title"
|
4376
4362
|
});
|
4377
|
-
|
4363
|
+
React__namespace.useRef(null);
|
4378
4364
|
const handleTogglePopover = () => {
|
4379
4365
|
setVisiblePopover((prev) => !prev);
|
4380
4366
|
};
|
@@ -4465,79 +4451,81 @@ const WysiwygNav = ({
|
|
4465
4451
|
}
|
4466
4452
|
)
|
4467
4453
|
] }),
|
4468
|
-
/* @__PURE__ */ jsxRuntime.
|
4469
|
-
|
4470
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
4471
|
-
/* @__PURE__ */ jsxRuntime.
|
4472
|
-
|
4473
|
-
|
4474
|
-
|
4475
|
-
|
4476
|
-
|
4477
|
-
|
4478
|
-
|
4479
|
-
|
4480
|
-
|
4481
|
-
|
4482
|
-
|
4483
|
-
|
4484
|
-
|
4485
|
-
|
4486
|
-
|
4487
|
-
|
4488
|
-
|
4489
|
-
|
4490
|
-
|
4491
|
-
|
4492
|
-
|
4493
|
-
|
4494
|
-
|
4495
|
-
|
4496
|
-
|
4497
|
-
|
4498
|
-
|
4499
|
-
|
4500
|
-
/* @__PURE__ */ jsxRuntime.
|
4501
|
-
|
4502
|
-
|
4503
|
-
|
4504
|
-
|
4505
|
-
|
4506
|
-
|
4507
|
-
|
4508
|
-
|
4509
|
-
|
4510
|
-
|
4511
|
-
|
4512
|
-
|
4513
|
-
|
4514
|
-
|
4515
|
-
|
4516
|
-
|
4517
|
-
|
4518
|
-
|
4519
|
-
|
4520
|
-
|
4521
|
-
|
4522
|
-
|
4523
|
-
|
4524
|
-
|
4525
|
-
|
4526
|
-
|
4527
|
-
|
4528
|
-
|
4529
|
-
|
4530
|
-
|
4531
|
-
|
4532
|
-
|
4533
|
-
|
4534
|
-
|
4535
|
-
|
4536
|
-
|
4537
|
-
|
4538
|
-
|
4539
|
-
|
4540
|
-
|
4454
|
+
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Popover.Root, { children: [
|
4455
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Popover.Trigger, { children: /* @__PURE__ */ jsxRuntime.jsx(MoreButton, { label: "More", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.More, {}) }) }),
|
4456
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Popover.Content, { sideOffset: 12, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { padding: 2, children: [
|
4457
|
+
/* @__PURE__ */ jsxRuntime.jsxs(IconButtonGroupMargin, { children: [
|
4458
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
4459
|
+
CustomIconButton,
|
4460
|
+
{
|
4461
|
+
onClick: () => onActionClick("Strikethrough", editorRef, handleTogglePopover),
|
4462
|
+
label: "Strikethrough",
|
4463
|
+
name: "Strikethrough",
|
4464
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icons.StrikeThrough, {})
|
4465
|
+
}
|
4466
|
+
),
|
4467
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
4468
|
+
CustomIconButton,
|
4469
|
+
{
|
4470
|
+
onClick: () => onActionClick("BulletList", editorRef, handleTogglePopover),
|
4471
|
+
label: "BulletList",
|
4472
|
+
name: "BulletList",
|
4473
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icons.BulletList, {})
|
4474
|
+
}
|
4475
|
+
),
|
4476
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
4477
|
+
CustomIconButton,
|
4478
|
+
{
|
4479
|
+
onClick: () => onActionClick("NumberList", editorRef, handleTogglePopover),
|
4480
|
+
label: "NumberList",
|
4481
|
+
name: "NumberList",
|
4482
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icons.NumberList, {})
|
4483
|
+
}
|
4484
|
+
)
|
4485
|
+
] }),
|
4486
|
+
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.IconButtonGroup, { children: [
|
4487
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
4488
|
+
CustomIconButton,
|
4489
|
+
{
|
4490
|
+
onClick: () => onActionClick("Code", editorRef, handleTogglePopover),
|
4491
|
+
label: "Code",
|
4492
|
+
name: "Code",
|
4493
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Code, {})
|
4494
|
+
}
|
4495
|
+
),
|
4496
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
4497
|
+
CustomIconButton,
|
4498
|
+
{
|
4499
|
+
onClick: () => {
|
4500
|
+
handleTogglePopover();
|
4501
|
+
onToggleMediaLib();
|
4502
|
+
},
|
4503
|
+
label: "Image",
|
4504
|
+
name: "Image",
|
4505
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Image, {})
|
4506
|
+
}
|
4507
|
+
),
|
4508
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
4509
|
+
CustomLinkIconButton,
|
4510
|
+
{
|
4511
|
+
onClick: () => onActionClick("Link", editorRef, handleTogglePopover),
|
4512
|
+
label: "Link",
|
4513
|
+
name: "Link",
|
4514
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Link, {})
|
4515
|
+
}
|
4516
|
+
),
|
4517
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
4518
|
+
CustomIconButton,
|
4519
|
+
{
|
4520
|
+
onClick: () => onActionClick("Quote", editorRef, handleTogglePopover),
|
4521
|
+
label: "Quote",
|
4522
|
+
name: "Quote",
|
4523
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Quotes, {})
|
4524
|
+
}
|
4525
|
+
)
|
4526
|
+
] })
|
4527
|
+
] }) })
|
4528
|
+
] })
|
4541
4529
|
] }),
|
4542
4530
|
onTogglePreviewMode && /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { onClick: onTogglePreviewMode, variant: "tertiary", children: formatMessage({
|
4543
4531
|
id: "components.Wysiwyg.ToggleMode.preview-mode",
|
@@ -4931,9 +4919,9 @@ const DynamicComponent = ({
|
|
4931
4919
|
),
|
4932
4920
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Accordion.Actions, { children: accordionActions })
|
4933
4921
|
] }),
|
4934
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Accordion.Content, { children: /* @__PURE__ */ jsxRuntime.jsx(AccordionContentRadius, { background: "neutral0", children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingLeft: 6, paddingRight: 6, paddingTop: 6, paddingBottom: 6, children: components[componentUid]?.layout?.map((row, rowInd) => /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid, { gap: 4, children: row.map(({ size, ...field }) => {
|
4922
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Accordion.Content, { children: /* @__PURE__ */ jsxRuntime.jsx(AccordionContentRadius, { background: "neutral0", children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingLeft: 6, paddingRight: 6, paddingTop: 6, paddingBottom: 6, children: components[componentUid]?.layout?.map((row, rowInd) => /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Root, { gap: 4, children: row.map(({ size, ...field }) => {
|
4935
4923
|
const fieldName = `${name2}.${index$1}.${field.name}`;
|
4936
|
-
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.
|
4924
|
+
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: size, s: 12, xs: 12, children: /* @__PURE__ */ jsxRuntime.jsx(MemoizedInputRenderer, { ...field, name: fieldName }) }, fieldName);
|
4937
4925
|
}) }, rowInd)) }) }) })
|
4938
4926
|
] }) }) })
|
4939
4927
|
] });
|
@@ -5240,4 +5228,4 @@ exports.transformDocument = transformDocument;
|
|
5240
5228
|
exports.useDynamicZone = useDynamicZone;
|
5241
5229
|
exports.useFieldHint = useFieldHint;
|
5242
5230
|
exports.useLazyComponents = useLazyComponents;
|
5243
|
-
//# sourceMappingURL=Field-
|
5231
|
+
//# sourceMappingURL=Field-BG1xu38N.js.map
|