@flozy/editor 9.8.3 → 9.8.4
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/Editor/ChatEditor.js +26 -19
- package/dist/Editor/CommonEditor.js +141 -26
- package/dist/Editor/DialogWrapper.js +31 -25
- package/dist/Editor/Editor.css +11 -7
- package/dist/Editor/Elements/AI/AIInput.js +5 -3
- package/dist/Editor/Elements/AI/CustomSelect.js +9 -5
- package/dist/Editor/Elements/AI/PopoverAIInput.js +15 -5
- package/dist/Editor/Elements/Accordion/Accordion.js +4 -3
- package/dist/Editor/Elements/Accordion/AccordionBtnPopup.js +4 -1
- package/dist/Editor/Elements/Accordion/AccordionButton.js +6 -2
- package/dist/Editor/Elements/Accordion/AccordionTitlePopup.js +4 -1
- package/dist/Editor/Elements/AppHeader/AppHeader.js +3 -3
- package/dist/Editor/Elements/AppHeader/AppHeaderButton.js +6 -2
- package/dist/Editor/Elements/AppHeader/AppHeaderPopup.js +4 -1
- package/dist/Editor/Elements/Attachments/AttachmentsButton.js +4 -1
- package/dist/Editor/Elements/Button/ButtonPopup.js +4 -1
- package/dist/Editor/Elements/Button/ButtonToolIcon.js +6 -2
- package/dist/Editor/Elements/Button/EditorButton.js +43 -30
- package/dist/Editor/Elements/Carousel/Carousel.js +5 -4
- package/dist/Editor/Elements/Carousel/CarouselButton.js +6 -2
- package/dist/Editor/Elements/Carousel/CarouselItem.js +3 -2
- package/dist/Editor/Elements/ChipText/ChipTextPopup.js +4 -1
- package/dist/Editor/Elements/CodeToText/CodeToText.js +5 -4
- package/dist/Editor/Elements/CodeToText/HtmlContextMenu.js +6 -2
- package/dist/Editor/Elements/Color Picker/ColorButtons.js +60 -14
- package/dist/Editor/Elements/Color Picker/ColorPicker.css +25 -1
- package/dist/Editor/Elements/Color Picker/ColorPicker.js +10 -7
- package/dist/Editor/Elements/Color Picker/Styles.js +15 -13
- package/dist/Editor/Elements/Colorbox/ColorboxButton.js +6 -2
- package/dist/Editor/Elements/DataView/DataView.js +5 -2
- package/dist/Editor/Elements/DataView/DataViewButton.js +6 -2
- package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +4 -2
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +448 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +21 -6
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +13 -12
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +7 -4
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +7 -5
- package/dist/Editor/Elements/DataView/Layouts/FilterView.js +9 -7
- package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +8 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +5 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +6 -5
- package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +5 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +9 -7
- package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +15 -12
- package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +3 -2
- package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +3 -2
- package/dist/Editor/Elements/DataView/Layouts/Options/index.js +23 -6
- package/dist/Editor/Elements/DataView/Layouts/TableView.js +6 -4
- package/dist/Editor/Elements/DataView/Layouts/ViewData.js +8 -4
- package/dist/Editor/Elements/DataView/Layouts/index.js +3 -1
- package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +5 -2
- package/dist/Editor/Elements/Divider/Divider.js +5 -3
- package/dist/Editor/Elements/Divider/DividerButton.js +6 -2
- package/dist/Editor/Elements/Divider/DividerPopup.js +3 -2
- package/dist/Editor/Elements/Embed/Embed.js +4 -1
- package/dist/Editor/Elements/Embed/EmbedPopup.js +4 -1
- package/dist/Editor/Elements/Embed/Image.js +16 -11
- package/dist/Editor/Elements/Embed/Video.js +10 -7
- package/dist/Editor/Elements/EmbedScript/Code.js +7 -4
- package/dist/Editor/Elements/EmbedScript/EmbedScript.js +6 -2
- package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +8 -5
- package/dist/Editor/Elements/Emoji/EmojiButton.js +6 -2
- package/dist/Editor/Elements/Form/FieldPopup.js +4 -1
- package/dist/Editor/Elements/Form/Form.js +12 -9
- package/dist/Editor/Elements/Form/FormButton.js +6 -2
- package/dist/Editor/Elements/Form/FormPopup.js +3 -2
- package/dist/Editor/Elements/Form/Workflow/FormWorkflow.js +18 -12
- package/dist/Editor/Elements/Form/Workflow/ListWorkflow.js +13 -8
- package/dist/Editor/Elements/Form/Workflow/MoreOptions.js +3 -2
- package/dist/Editor/Elements/Form/Workflow/Styles.js +24 -22
- package/dist/Editor/Elements/Form/Workflow/UserInputs.js +4 -2
- package/dist/Editor/Elements/Form/Workflow/index.js +15 -9
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +67 -23
- package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +31 -6
- package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +6 -2
- package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +54 -6
- package/dist/Editor/Elements/FreeGrid/Options/AddElement.js +3 -2
- package/dist/Editor/Elements/FreeGrid/Options/More.js +10 -4
- package/dist/Editor/Elements/FreeGrid/styles.js +3 -0
- package/dist/Editor/Elements/Grid/Grid.js +13 -10
- package/dist/Editor/Elements/Grid/GridButton.js +9 -5
- package/dist/Editor/Elements/Grid/GridItem.js +14 -8
- package/dist/Editor/Elements/Grid/GridItemPopup.js +4 -1
- package/dist/Editor/Elements/Grid/GridPopup.js +4 -1
- package/dist/Editor/Elements/Grid/SectionPopup.js +4 -1
- package/dist/Editor/Elements/Link/Link.js +8 -5
- package/dist/Editor/Elements/Link/LinkButton.js +4 -1
- package/dist/Editor/Elements/List/CheckList.js +18 -10
- package/dist/Editor/Elements/NewLine/NewLineButton.js +6 -2
- package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +4 -1
- package/dist/Editor/Elements/PageSettings/PageSettingsPopup.js +4 -1
- package/dist/Editor/Elements/Search/SearchButton.js +7 -4
- package/dist/Editor/Elements/Search/SearchList.js +10 -5
- package/dist/Editor/Elements/Signature/SignatureButton.js +6 -2
- package/dist/Editor/Elements/Signature/SignatureOptions/DrawSignature.js +2 -8
- package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +6 -2
- package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +4 -1
- package/dist/Editor/Elements/Signature/SignaturePopup.js +17 -16
- package/dist/Editor/Elements/SimpleText/index.js +14 -5
- package/dist/Editor/Elements/SimpleText/style.js +2 -2
- package/dist/Editor/Elements/Table/DragButton.js +4 -2
- package/dist/Editor/Elements/Table/Table.js +23 -11
- package/dist/Editor/Elements/Table/TablePopup.js +4 -1
- package/dist/Editor/Elements/Table/TableSelector.js +10 -6
- package/dist/Editor/Elements/Table/TableTool.js +8 -4
- package/dist/Editor/Elements/Title/title.js +9 -8
- package/dist/Editor/Elements/TopBanner/TopBannerButton.js +4 -1
- package/dist/Editor/Elements/Variables/VariableButton.js +10 -1
- package/dist/Editor/MiniEditor.js +10 -3
- package/dist/Editor/Styles/EditorStyles.js +5 -5
- package/dist/Editor/Toolbar/Basic/index.js +2 -1
- package/dist/Editor/Toolbar/FormatTools/BlockButton.js +6 -2
- package/dist/Editor/Toolbar/FormatTools/Dropdown.js +27 -3
- package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +4 -3
- package/dist/Editor/Toolbar/FormatTools/MarkButton.js +8 -4
- package/dist/Editor/Toolbar/FormatTools/TextSize.js +10 -13
- package/dist/Editor/Toolbar/Mini/MiniToolbar.js +17 -5
- package/dist/Editor/Toolbar/PopupTool/AddTemplates.js +10 -5
- package/dist/Editor/Toolbar/PopupTool/ButtonTemplatesCard.js +10 -4
- package/dist/Editor/Toolbar/PopupTool/FullViewCard.js +10 -4
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +9 -3
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectAlignment.js +42 -35
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +6 -13
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectList.js +58 -51
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectSuperSubscript.js +29 -22
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +226 -87
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +20 -10
- package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +10 -5
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +71 -11
- package/dist/Editor/Toolbar/PopupTool/TemplateCard.js +11 -5
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +122 -42
- package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +436 -0
- package/dist/Editor/Toolbar/PopupTool/index.js +18 -2
- package/dist/Editor/Toolbar/Toolbar.js +20 -10
- package/dist/Editor/Toolbar/toolbarGroups.js +48 -6
- package/dist/Editor/assets/svg/ClearAllRounded.js +31 -0
- package/dist/Editor/assets/svg/ResetIconNew.js +23 -0
- package/dist/Editor/assets/svg/ThemeIcons.js +291 -0
- package/dist/Editor/common/ColorPickerButton.js +39 -14
- package/dist/Editor/common/CustomColorPicker/index.js +131 -0
- package/dist/Editor/common/CustomColorPicker/style.js +53 -0
- package/dist/Editor/common/CustomDialog/index.js +8 -10
- package/dist/Editor/common/CustomDialog2/index.js +94 -0
- package/dist/Editor/common/CustomDialog2/style.js +67 -0
- package/dist/Editor/common/CustomSelect.js +43 -0
- package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
- package/dist/Editor/common/FontLoader/FontLoader.js +3 -0
- package/dist/Editor/common/Icon.js +31 -1
- package/dist/Editor/common/ImageSelector/ImageSelector.js +10 -8
- package/dist/Editor/common/ImageSelector/Options/AddLink.js +6 -4
- package/dist/Editor/common/ImageSelector/Styles.js +3 -9
- package/dist/Editor/common/LinkSettings/NavComponents.js +14 -10
- package/dist/Editor/common/LinkSettings/index.js +20 -14
- package/dist/Editor/common/LinkSettings/navOptions.js +1 -1
- package/dist/Editor/common/MUIIcon/index.js +0 -3
- package/dist/Editor/common/MentionsPopup/index.js +6 -2
- package/dist/Editor/common/RnD/ContextMenu/CMenus.js +46 -22
- package/dist/Editor/common/RnD/ContextMenu/index.js +3 -2
- package/dist/Editor/common/RnD/ElementOptions/index.js +7 -2
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/SaveAsTemplate.js +8 -3
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +7 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/AppHeaderSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/CodeSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +7 -4
- package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +6 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +3 -2
- package/dist/Editor/common/RnD/OptionsPopup/index.js +4 -3
- package/dist/Editor/common/RnD/ShadowElement.js +2 -1
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +11 -4
- package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +17 -0
- package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +6 -3
- package/dist/Editor/common/RnD/Utils/gridDropItem.js +73 -9
- package/dist/Editor/common/RnD/Utils/index.js +3 -0
- package/dist/Editor/common/RnD/VirtualElement/BoxHeaderAutoAlignment.js +43 -0
- package/dist/Editor/common/RnD/VirtualElement/ForceAutoAlignment.js +44 -0
- package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +134 -0
- package/dist/Editor/common/RnD/VirtualElement/helper.js +382 -0
- package/dist/Editor/common/RnD/VirtualElement/index.js +187 -103
- package/dist/Editor/common/RnD/VirtualElement/styles.js +155 -7
- package/dist/Editor/common/RnD/VirtualElement/updateAutoProps.js +5 -3
- package/dist/Editor/common/RnD/index.js +69 -13
- package/dist/Editor/common/Section/index.js +7 -4
- package/dist/Editor/common/Shorthands/elements.js +72 -3
- package/dist/Editor/common/SnackBar/index.js +43 -0
- package/dist/Editor/common/StyleBuilder/appHeaderStyle.js +4 -4
- package/dist/Editor/common/StyleBuilder/boxStyle.js +2 -2
- package/dist/Editor/common/StyleBuilder/buttonStyle.js +6 -4
- package/dist/Editor/common/StyleBuilder/dividerStyles.js +2 -2
- package/dist/Editor/common/StyleBuilder/embedVideoStyle.js +6 -6
- package/dist/Editor/common/StyleBuilder/fieldStyle.js +2 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/alignment.js +13 -9
- package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +11 -3
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +19 -5
- package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +22 -10
- package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +6 -3
- package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +27 -13
- package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +43 -14
- package/dist/Editor/common/StyleBuilder/fieldTypes/elementSize.js +10 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +19 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/gridSize.js +6 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +5 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +7 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +9 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/metaDataMapping.js +8 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +12 -11
- package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +6 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +8 -4
- package/dist/Editor/common/StyleBuilder/fieldTypes/textAlign.js +6 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +21 -12
- package/dist/Editor/common/StyleBuilder/formStyle.js +7 -7
- package/dist/Editor/common/StyleBuilder/gridItemStyle.js +6 -6
- package/dist/Editor/common/StyleBuilder/gridStyle.js +5 -5
- package/dist/Editor/common/StyleBuilder/index.js +8 -5
- package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +5 -7
- package/dist/Editor/common/SwipeableDrawer/index.js +1 -1
- package/dist/Editor/common/Uploader.js +16 -5
- package/dist/Editor/commonStyle.js +68 -57
- package/dist/Editor/helper/index.js +27 -3
- package/dist/Editor/helper/textIndeces.js +58 -0
- package/dist/Editor/helper/theme.js +202 -2
- package/dist/Editor/hooks/useAutoScroll.js +38 -0
- package/dist/Editor/hooks/useEditorTheme.js +153 -0
- package/dist/Editor/hooks/useMouseMove.js +9 -3
- package/dist/Editor/hooks/useThemeValues.js +63 -0
- package/dist/Editor/plugins/withEmbeds.js +1 -1
- package/dist/Editor/plugins/withHTML.js +11 -9
- package/dist/Editor/plugins/withLayout.js +3 -2
- package/dist/Editor/plugins/withLinks.js +10 -0
- package/dist/Editor/plugins/withTable.js +1 -1
- package/dist/Editor/theme/ThemeList.js +50 -173
- package/dist/Editor/theme/index.js +149 -0
- package/dist/Editor/themeSettings/ActiveTheme.js +72 -0
- package/dist/Editor/themeSettings/buttons/index.js +290 -0
- package/dist/Editor/themeSettings/buttons/style.js +23 -0
- package/dist/Editor/themeSettings/colorTheme/index.js +310 -0
- package/dist/Editor/themeSettings/colorTheme/style.js +81 -0
- package/dist/Editor/themeSettings/fonts/PreviewElement.js +121 -0
- package/dist/Editor/themeSettings/fonts/index.js +240 -0
- package/dist/Editor/themeSettings/fonts/style.js +61 -0
- package/dist/Editor/themeSettings/icons.js +60 -0
- package/dist/Editor/themeSettings/index.js +351 -0
- package/dist/Editor/themeSettings/style.js +220 -0
- package/dist/Editor/themeSettingsAI/icons.js +96 -0
- package/dist/Editor/themeSettingsAI/index.js +355 -0
- package/dist/Editor/themeSettingsAI/saveTheme.js +205 -0
- package/dist/Editor/themeSettingsAI/style.js +259 -0
- package/dist/Editor/utils/SlateUtilityFunctions.js +186 -54
- package/dist/Editor/utils/brains.js +1 -2
- package/dist/Editor/utils/draftToSlate.js +3 -2
- package/dist/Editor/utils/font.js +40 -37
- package/dist/Editor/utils/freegrid.js +3 -3
- package/dist/Editor/utils/helper.js +92 -21
- package/package.json +4 -4
@@ -7,9 +7,9 @@ const CMenus = {
|
|
7
7
|
name: "bringForward",
|
8
8
|
label: "Move to Front",
|
9
9
|
autoClose: false,
|
10
|
-
render:
|
10
|
+
render: translation => {
|
11
11
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
12
|
-
children: ["Move to Front", " ", /*#__PURE__*/_jsxs("span", {
|
12
|
+
children: [translation("Move to Front"), " ", /*#__PURE__*/_jsxs("span", {
|
13
13
|
className: "shortcut-help-info",
|
14
14
|
children: [/*#__PURE__*/_jsx(CMDIcon, {}), " \u2191"]
|
15
15
|
})]
|
@@ -19,9 +19,9 @@ const CMenus = {
|
|
19
19
|
name: "bringBackward",
|
20
20
|
label: "Move to Back",
|
21
21
|
autoClose: false,
|
22
|
-
render:
|
22
|
+
render: translation => {
|
23
23
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
24
|
-
children: ["Move to Back", " ", /*#__PURE__*/_jsxs("span", {
|
24
|
+
children: [translation("Move to Back"), " ", /*#__PURE__*/_jsxs("span", {
|
25
25
|
className: "shortcut-help-info",
|
26
26
|
children: [/*#__PURE__*/_jsx(CMDIcon, {}), " \u2193"]
|
27
27
|
})]
|
@@ -30,9 +30,9 @@ const CMenus = {
|
|
30
30
|
}, {
|
31
31
|
name: "cut",
|
32
32
|
label: "Cut",
|
33
|
-
render:
|
33
|
+
render: translation => {
|
34
34
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
35
|
-
children: ["Cut", " ", /*#__PURE__*/_jsxs("span", {
|
35
|
+
children: [translation("Cut"), " ", /*#__PURE__*/_jsxs("span", {
|
36
36
|
className: "shortcut-help-info",
|
37
37
|
children: [/*#__PURE__*/_jsx(CMDIcon, {}), " X"]
|
38
38
|
})]
|
@@ -41,9 +41,9 @@ const CMenus = {
|
|
41
41
|
}, {
|
42
42
|
name: "copy",
|
43
43
|
label: "Copy",
|
44
|
-
render:
|
44
|
+
render: translation => {
|
45
45
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
46
|
-
children: ["Copy", " ", /*#__PURE__*/_jsxs("span", {
|
46
|
+
children: [translation("Copy"), " ", /*#__PURE__*/_jsxs("span", {
|
47
47
|
className: "shortcut-help-info",
|
48
48
|
children: [/*#__PURE__*/_jsx(CMDIcon, {}), " C"]
|
49
49
|
})]
|
@@ -52,9 +52,9 @@ const CMenus = {
|
|
52
52
|
}, {
|
53
53
|
name: "paste",
|
54
54
|
label: "Paste",
|
55
|
-
render:
|
55
|
+
render: translation => {
|
56
56
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
57
|
-
children: ["Paste", " ", /*#__PURE__*/_jsxs("span", {
|
57
|
+
children: [translation("Paste"), " ", /*#__PURE__*/_jsxs("span", {
|
58
58
|
className: "shortcut-help-info",
|
59
59
|
children: [/*#__PURE__*/_jsx(CMDIcon, {}), " V"]
|
60
60
|
})]
|
@@ -67,9 +67,9 @@ const CMenus = {
|
|
67
67
|
parent: [{
|
68
68
|
name: "cut",
|
69
69
|
label: "Cut",
|
70
|
-
render:
|
70
|
+
render: translation => {
|
71
71
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
72
|
-
children: ["Cut Section", " ", /*#__PURE__*/_jsxs("span", {
|
72
|
+
children: [translation("Cut Section"), " ", /*#__PURE__*/_jsxs("span", {
|
73
73
|
className: "shortcut-help-info",
|
74
74
|
children: [/*#__PURE__*/_jsx(CMDIcon, {}), " X"]
|
75
75
|
})]
|
@@ -78,9 +78,9 @@ const CMenus = {
|
|
78
78
|
}, {
|
79
79
|
name: "copy",
|
80
80
|
label: "Copy",
|
81
|
-
render:
|
81
|
+
render: translation => {
|
82
82
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
83
|
-
children: ["Copy Section", " ", /*#__PURE__*/_jsxs("span", {
|
83
|
+
children: [translation("Copy Section"), " ", /*#__PURE__*/_jsxs("span", {
|
84
84
|
className: "shortcut-help-info",
|
85
85
|
children: [/*#__PURE__*/_jsx(CMDIcon, {}), " C"]
|
86
86
|
})]
|
@@ -89,9 +89,9 @@ const CMenus = {
|
|
89
89
|
}, {
|
90
90
|
name: "paste",
|
91
91
|
label: "Paste",
|
92
|
-
render:
|
92
|
+
render: translation => {
|
93
93
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
94
|
-
children: ["Paste Section", " ", /*#__PURE__*/_jsxs("span", {
|
94
|
+
children: [translation("Paste Section"), " ", /*#__PURE__*/_jsxs("span", {
|
95
95
|
className: "shortcut-help-info",
|
96
96
|
children: [/*#__PURE__*/_jsx(CMDIcon, {}), " V"]
|
97
97
|
})]
|
@@ -99,11 +99,35 @@ const CMenus = {
|
|
99
99
|
}
|
100
100
|
}],
|
101
101
|
"parent-container": [{
|
102
|
+
name: "bringForward",
|
103
|
+
label: "Move to Front",
|
104
|
+
autoClose: false,
|
105
|
+
render: () => {
|
106
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
107
|
+
children: ["Move to Front", " ", /*#__PURE__*/_jsxs("span", {
|
108
|
+
className: "shortcut-help-info",
|
109
|
+
children: [/*#__PURE__*/_jsx(CMDIcon, {}), " \u2191"]
|
110
|
+
})]
|
111
|
+
});
|
112
|
+
}
|
113
|
+
}, {
|
114
|
+
name: "bringBackward",
|
115
|
+
label: "Move to Back",
|
116
|
+
autoClose: false,
|
117
|
+
render: () => {
|
118
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
119
|
+
children: ["Move to Back", " ", /*#__PURE__*/_jsxs("span", {
|
120
|
+
className: "shortcut-help-info",
|
121
|
+
children: [/*#__PURE__*/_jsx(CMDIcon, {}), " \u2193"]
|
122
|
+
})]
|
123
|
+
});
|
124
|
+
}
|
125
|
+
}, {
|
102
126
|
name: "cut",
|
103
127
|
label: "Cut",
|
104
|
-
render:
|
128
|
+
render: translation => {
|
105
129
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
106
|
-
children: ["Cut", " ", /*#__PURE__*/_jsxs("span", {
|
130
|
+
children: [translation("Cut"), " ", /*#__PURE__*/_jsxs("span", {
|
107
131
|
className: "shortcut-help-info",
|
108
132
|
children: [/*#__PURE__*/_jsx(CMDIcon, {}), " X"]
|
109
133
|
})]
|
@@ -112,9 +136,9 @@ const CMenus = {
|
|
112
136
|
}, {
|
113
137
|
name: "copy",
|
114
138
|
label: "Copy",
|
115
|
-
render:
|
139
|
+
render: translation => {
|
116
140
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
117
|
-
children: ["Copy", " ", /*#__PURE__*/_jsxs("span", {
|
141
|
+
children: [translation("Copy"), " ", /*#__PURE__*/_jsxs("span", {
|
118
142
|
className: "shortcut-help-info",
|
119
143
|
children: [/*#__PURE__*/_jsx(CMDIcon, {}), " C"]
|
120
144
|
})]
|
@@ -123,9 +147,9 @@ const CMenus = {
|
|
123
147
|
}, {
|
124
148
|
name: "paste",
|
125
149
|
label: "Paste",
|
126
|
-
render:
|
150
|
+
render: translation => {
|
127
151
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
128
|
-
children: ["Paste", " ", /*#__PURE__*/_jsxs("span", {
|
152
|
+
children: [translation("Paste"), " ", /*#__PURE__*/_jsxs("span", {
|
129
153
|
className: "shortcut-help-info",
|
130
154
|
children: [/*#__PURE__*/_jsx(CMDIcon, {}), " V"]
|
131
155
|
})]
|
@@ -14,7 +14,8 @@ const ContextMenu = props => {
|
|
14
14
|
open,
|
15
15
|
type,
|
16
16
|
contextMenu,
|
17
|
-
handleClose
|
17
|
+
handleClose,
|
18
|
+
translation
|
18
19
|
} = props;
|
19
20
|
const {
|
20
21
|
path,
|
@@ -35,7 +36,7 @@ const ContextMenu = props => {
|
|
35
36
|
return /*#__PURE__*/_jsx(MenuItem, {
|
36
37
|
className: "cm-menu-item",
|
37
38
|
onClick: handleClose(m),
|
38
|
-
children: m?.render ? m.render() : m.label
|
39
|
+
children: m?.render ? m.render(translation) : translation(m.label)
|
39
40
|
}, `cm_${i}`);
|
40
41
|
})
|
41
42
|
}) : null;
|
@@ -16,7 +16,8 @@ const ElementOptions = props => {
|
|
16
16
|
actionsMap,
|
17
17
|
optionsProps,
|
18
18
|
selectedAction,
|
19
|
-
theme
|
19
|
+
theme,
|
20
|
+
customProps
|
20
21
|
} = props;
|
21
22
|
const classes = useElementOptionsStyle({
|
22
23
|
theme
|
@@ -28,6 +29,9 @@ const ElementOptions = props => {
|
|
28
29
|
menuProps
|
29
30
|
} = menu;
|
30
31
|
const isOpen = Boolean(anchorEl) && open;
|
32
|
+
const {
|
33
|
+
translation
|
34
|
+
} = customProps;
|
31
35
|
const handleOptionClick = type => e => {
|
32
36
|
if (actionsMap[type]) {
|
33
37
|
const {
|
@@ -57,7 +61,7 @@ const ElementOptions = props => {
|
|
57
61
|
title
|
58
62
|
} = Actions[action] || {};
|
59
63
|
return type ? /*#__PURE__*/_jsx(Tooltip, {
|
60
|
-
title: title,
|
64
|
+
title: translation(title),
|
61
65
|
arrow: true,
|
62
66
|
children: /*#__PURE__*/_jsx(Button, {
|
63
67
|
onClick: handleOptionClick(type),
|
@@ -85,6 +89,7 @@ const ElementOptions = props => {
|
|
85
89
|
}), open && MenuComp ? /*#__PURE__*/_jsx(OptionsPopup, {
|
86
90
|
theme: theme,
|
87
91
|
open: openMenu,
|
92
|
+
translation: translation,
|
88
93
|
...menu,
|
89
94
|
handleClose: handleClose,
|
90
95
|
children: /*#__PURE__*/_jsx(MenuComp, {
|
@@ -8,14 +8,18 @@ const SavePopup = props => {
|
|
8
8
|
const {
|
9
9
|
classes,
|
10
10
|
onClose,
|
11
|
-
elementProps
|
11
|
+
elementProps,
|
12
|
+
customProps
|
12
13
|
} = props;
|
14
|
+
const {
|
15
|
+
translation
|
16
|
+
} = customProps;
|
13
17
|
return /*#__PURE__*/_jsxs(Dialog, {
|
14
18
|
open: true,
|
15
19
|
fullWidth: true,
|
16
20
|
sx: classes.dialog,
|
17
21
|
children: [/*#__PURE__*/_jsxs(DialogTitle, {
|
18
|
-
children: ["Save As Template", /*#__PURE__*/_jsx(IconButton, {
|
22
|
+
children: [translation("Save As Template"), /*#__PURE__*/_jsx(IconButton, {
|
19
23
|
onClick: onClose,
|
20
24
|
children: /*#__PURE__*/_jsx(CloseIcon, {})
|
21
25
|
})]
|
@@ -27,7 +31,8 @@ const SavePopup = props => {
|
|
27
31
|
},
|
28
32
|
saveText: "Save",
|
29
33
|
handleClose: onClose,
|
30
|
-
elementProps: elementProps
|
34
|
+
elementProps: elementProps,
|
35
|
+
translation: translation
|
31
36
|
})
|
32
37
|
})]
|
33
38
|
});
|
@@ -19,6 +19,9 @@ const Settings = props => {
|
|
19
19
|
customProps,
|
20
20
|
theme
|
21
21
|
} = props;
|
22
|
+
const {
|
23
|
+
translation
|
24
|
+
} = customProps;
|
22
25
|
const title = settingsLabel[childType] || "Settings";
|
23
26
|
const Settings = SettingsComponents[childType];
|
24
27
|
return /*#__PURE__*/_jsx(_Fragment, {
|
@@ -46,10 +49,10 @@ const Settings = props => {
|
|
46
49
|
children: [/*#__PURE__*/_jsxs(Typography, {
|
47
50
|
variant: "h6",
|
48
51
|
className: "item-wrapper title",
|
49
|
-
children: [title, /*#__PURE__*/_jsx(Box, {
|
52
|
+
children: [translation(title), /*#__PURE__*/_jsx(Box, {
|
50
53
|
component: "div",
|
51
54
|
children: /*#__PURE__*/_jsx(Tooltip, {
|
52
|
-
title: "Close",
|
55
|
+
title: translation("Close"),
|
53
56
|
arrow: true,
|
54
57
|
children: /*#__PURE__*/_jsx(IconButton, {
|
55
58
|
className: "closeBtn",
|
@@ -65,7 +68,8 @@ const Settings = props => {
|
|
65
68
|
editor: editor,
|
66
69
|
path: path,
|
67
70
|
customProps: customProps,
|
68
|
-
theme: theme
|
71
|
+
theme: theme,
|
72
|
+
onClose: onClose
|
69
73
|
}) : null
|
70
74
|
})]
|
71
75
|
})
|
@@ -8,7 +8,8 @@ const AppHeaderSettings = props => {
|
|
8
8
|
const {
|
9
9
|
editor,
|
10
10
|
path,
|
11
|
-
customProps
|
11
|
+
customProps,
|
12
|
+
onClose
|
12
13
|
} = props;
|
13
14
|
const item_path = path?.split("|").map(m => parseInt(m));
|
14
15
|
const element_path = [...item_path, 0];
|
@@ -27,7 +28,7 @@ const AppHeaderSettings = props => {
|
|
27
28
|
});
|
28
29
|
};
|
29
30
|
const handleClose = () => {
|
30
|
-
|
31
|
+
onClose();
|
31
32
|
};
|
32
33
|
return /*#__PURE__*/_jsx(Box, {
|
33
34
|
component: "div",
|
@@ -8,7 +8,8 @@ const BoxSettings = props => {
|
|
8
8
|
const {
|
9
9
|
editor,
|
10
10
|
path,
|
11
|
-
customProps
|
11
|
+
customProps,
|
12
|
+
onClose
|
12
13
|
} = props;
|
13
14
|
const item_path = path?.split("|").map(m => parseInt(m));
|
14
15
|
const element_path = [...item_path];
|
@@ -27,7 +28,7 @@ const BoxSettings = props => {
|
|
27
28
|
});
|
28
29
|
};
|
29
30
|
const handleClose = () => {
|
30
|
-
|
31
|
+
onClose();
|
31
32
|
};
|
32
33
|
return /*#__PURE__*/_jsx(Box, {
|
33
34
|
component: "div",
|
@@ -8,7 +8,8 @@ const ButtonSettings = props => {
|
|
8
8
|
const {
|
9
9
|
editor,
|
10
10
|
path,
|
11
|
-
customProps
|
11
|
+
customProps,
|
12
|
+
onClose
|
12
13
|
} = props;
|
13
14
|
const item_path = path?.split("|").map(m => parseInt(m));
|
14
15
|
const element_path = [...item_path, 0];
|
@@ -28,7 +29,7 @@ const ButtonSettings = props => {
|
|
28
29
|
});
|
29
30
|
};
|
30
31
|
const handleClose = () => {
|
31
|
-
|
32
|
+
onClose();
|
32
33
|
};
|
33
34
|
return /*#__PURE__*/_jsx(Box, {
|
34
35
|
component: "div",
|
@@ -8,7 +8,8 @@ const CodeSettings = props => {
|
|
8
8
|
const {
|
9
9
|
editor,
|
10
10
|
path,
|
11
|
-
customProps
|
11
|
+
customProps,
|
12
|
+
onClose
|
12
13
|
} = props;
|
13
14
|
const item_path = path?.split("|").map(m => parseInt(m));
|
14
15
|
const element_path = [...item_path, 0];
|
@@ -27,7 +28,7 @@ const CodeSettings = props => {
|
|
27
28
|
});
|
28
29
|
};
|
29
30
|
const handleClose = () => {
|
30
|
-
|
31
|
+
onClose();
|
31
32
|
};
|
32
33
|
return /*#__PURE__*/_jsx(Box, {
|
33
34
|
component: "div",
|
@@ -12,14 +12,16 @@ const FormSettings = props => {
|
|
12
12
|
const {
|
13
13
|
editor,
|
14
14
|
path,
|
15
|
-
customProps
|
15
|
+
customProps,
|
16
|
+
onClose
|
16
17
|
} = props;
|
17
18
|
const item_path = path?.split("|").map(m => parseInt(m));
|
18
19
|
const element_path = [...item_path];
|
19
20
|
const element = Node.get(editor, element_path);
|
20
21
|
const styleMaps = formStyle;
|
21
22
|
const {
|
22
|
-
hideTools
|
23
|
+
hideTools,
|
24
|
+
translation
|
23
25
|
} = customProps || {};
|
24
26
|
const {
|
25
27
|
theme
|
@@ -55,13 +57,14 @@ const FormSettings = props => {
|
|
55
57
|
}
|
56
58
|
};
|
57
59
|
const handleClose = () => {
|
58
|
-
|
60
|
+
onClose();
|
59
61
|
};
|
60
62
|
const muiTheme = createTheme({
|
61
63
|
components: {
|
62
64
|
MuiAccordion: {
|
63
65
|
styleOverrides: {
|
64
66
|
root: {
|
67
|
+
background: theme?.palette?.editor?.miniToolBarBackground,
|
65
68
|
"& .MuiAccordionSummary-root": {
|
66
69
|
flexDirection: "row-reverse",
|
67
70
|
"& .MuiSvgIcon-root": {
|
@@ -107,7 +110,7 @@ const FormSettings = props => {
|
|
107
110
|
fontSize: "14px !important",
|
108
111
|
fontWeight: "400"
|
109
112
|
},
|
110
|
-
children: m?.tab
|
113
|
+
children: translation(m?.tab)
|
111
114
|
})
|
112
115
|
}), /*#__PURE__*/_jsx(AccordionDetails, {
|
113
116
|
sx: {
|
@@ -8,7 +8,8 @@ const ImageSettings = props => {
|
|
8
8
|
const {
|
9
9
|
editor,
|
10
10
|
path,
|
11
|
-
customProps
|
11
|
+
customProps,
|
12
|
+
onClose
|
12
13
|
} = props;
|
13
14
|
const item_path = path?.split("|").map(m => parseInt(m));
|
14
15
|
const element_path = [...item_path, 0];
|
@@ -27,7 +28,7 @@ const ImageSettings = props => {
|
|
27
28
|
});
|
28
29
|
};
|
29
30
|
const handleClose = () => {
|
30
|
-
|
31
|
+
onClose();
|
31
32
|
};
|
32
33
|
return /*#__PURE__*/_jsx(Box, {
|
33
34
|
component: "div",
|
@@ -9,7 +9,8 @@ const TableSettings = props => {
|
|
9
9
|
const {
|
10
10
|
editor,
|
11
11
|
path,
|
12
|
-
customProps
|
12
|
+
customProps,
|
13
|
+
onClose
|
13
14
|
} = props;
|
14
15
|
const item_path = path?.split("|").map(m => parseInt(m));
|
15
16
|
const element_path = [...item_path, 0];
|
@@ -57,7 +58,7 @@ const TableSettings = props => {
|
|
57
58
|
}
|
58
59
|
};
|
59
60
|
const handleClose = () => {
|
60
|
-
|
61
|
+
onClose();
|
61
62
|
};
|
62
63
|
return /*#__PURE__*/_jsx(Box, {
|
63
64
|
component: "div",
|
@@ -8,7 +8,9 @@ const TextSettings = props => {
|
|
8
8
|
const {
|
9
9
|
editor,
|
10
10
|
path,
|
11
|
-
theme
|
11
|
+
theme,
|
12
|
+
onClose,
|
13
|
+
customProps
|
12
14
|
} = props;
|
13
15
|
const item_path = path.split("|").map(m => parseInt(m));
|
14
16
|
const element_path = [...item_path, 0];
|
@@ -25,7 +27,9 @@ const TextSettings = props => {
|
|
25
27
|
}, []);
|
26
28
|
return /*#__PURE__*/_jsx(TextFormat, {
|
27
29
|
classes: classes,
|
28
|
-
editor: editor
|
30
|
+
editor: editor,
|
31
|
+
customProps: customProps,
|
32
|
+
closeMainPopup: onClose
|
29
33
|
});
|
30
34
|
};
|
31
35
|
export default TextSettings;
|
@@ -8,7 +8,8 @@ const VideoSettings = props => {
|
|
8
8
|
const {
|
9
9
|
editor,
|
10
10
|
path,
|
11
|
-
customProps
|
11
|
+
customProps,
|
12
|
+
onClose
|
12
13
|
} = props;
|
13
14
|
const item_path = path?.split("|").map(m => parseInt(m));
|
14
15
|
const element_path = [...item_path, 0];
|
@@ -28,7 +29,7 @@ const VideoSettings = props => {
|
|
28
29
|
});
|
29
30
|
};
|
30
31
|
const handleClose = () => {
|
31
|
-
|
32
|
+
onClose();
|
32
33
|
};
|
33
34
|
return /*#__PURE__*/_jsx(Box, {
|
34
35
|
component: "div",
|
@@ -17,7 +17,8 @@ const OptionsPopup = props => {
|
|
17
17
|
open,
|
18
18
|
anchorEl,
|
19
19
|
placement,
|
20
|
-
handleClose
|
20
|
+
handleClose,
|
21
|
+
translation
|
21
22
|
} = props;
|
22
23
|
return anchorEl ? /*#__PURE__*/_jsx(Popper, {
|
23
24
|
sx: classes.root,
|
@@ -30,10 +31,10 @@ const OptionsPopup = props => {
|
|
30
31
|
children: [/*#__PURE__*/_jsxs(Typography, {
|
31
32
|
variant: "div",
|
32
33
|
className: "item-wrapper title",
|
33
|
-
children: [title, /*#__PURE__*/_jsx(Box, {
|
34
|
+
children: [translation(title), /*#__PURE__*/_jsx(Box, {
|
34
35
|
component: "div",
|
35
36
|
children: /*#__PURE__*/_jsx(Tooltip, {
|
36
|
-
title: "Close",
|
37
|
+
title: translation("Close"),
|
37
38
|
arrow: true,
|
38
39
|
children: /*#__PURE__*/_jsx(IconButton, {
|
39
40
|
onClick: handleClose,
|
@@ -9,19 +9,26 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
const SwitchViewport = props => {
|
10
10
|
const {
|
11
11
|
breakpoint,
|
12
|
-
onChange
|
12
|
+
onChange,
|
13
|
+
translation,
|
14
|
+
show
|
13
15
|
} = props;
|
14
16
|
const classes = useSwitchViewport();
|
15
17
|
const {
|
18
|
+
setSelectedElement,
|
16
19
|
setActiveBreakPoint
|
17
20
|
} = useEditorContext();
|
18
21
|
useEffect(() => {
|
19
|
-
|
22
|
+
// to reset selection on viewport changes - FS-6589
|
23
|
+
setSelectedElement({});
|
20
24
|
}, [breakpoint]);
|
21
25
|
return /*#__PURE__*/_jsxs(Box, {
|
22
26
|
sx: classes.root,
|
27
|
+
style: {
|
28
|
+
display: show ? "block" : "none"
|
29
|
+
},
|
23
30
|
children: [/*#__PURE__*/_jsx(Tooltip, {
|
24
|
-
title: "Desktop View",
|
31
|
+
title: translation("Desktop View"),
|
25
32
|
children: /*#__PURE__*/_jsx(IconButton, {
|
26
33
|
className: `${!breakpoint || breakpoint === "lg" ? "active" : ""}`,
|
27
34
|
onClick: () => {
|
@@ -31,7 +38,7 @@ const SwitchViewport = props => {
|
|
31
38
|
children: /*#__PURE__*/_jsx(PersonalVideoIcon, {})
|
32
39
|
})
|
33
40
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
34
|
-
title: "Mobile View",
|
41
|
+
title: translation("Mobile View"),
|
35
42
|
children: /*#__PURE__*/_jsx(IconButton, {
|
36
43
|
className: `${breakpoint === "xs" ? "active" : ""}`,
|
37
44
|
onClick: () => {
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { Experimental_CssVarsProvider as CssVarsProvider, experimental_extendTheme as extendTheme } from "@mui/material/styles";
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
3
|
+
function MainThemeProvider({
|
4
|
+
children,
|
5
|
+
userSelectedTheme,
|
6
|
+
theme = {}
|
7
|
+
}) {
|
8
|
+
const themeVars = extendTheme(userSelectedTheme?.theme?.cssVars || {});
|
9
|
+
return /*#__PURE__*/_jsx(CssVarsProvider, {
|
10
|
+
theme: {
|
11
|
+
...themeVars,
|
12
|
+
...theme
|
13
|
+
},
|
14
|
+
children: children
|
15
|
+
});
|
16
|
+
}
|
17
|
+
export default MainThemeProvider;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import React from "react";
|
2
|
-
import { useTheme,
|
2
|
+
import { useTheme, createTheme, useMediaQuery } from "@mui/material";
|
3
3
|
import { isStimulator, STIMULATOR_MOCK } from "../../../hooks/useBreakpoints";
|
4
|
+
import MainThemeProvider from "./MainThemeProvider";
|
4
5
|
|
5
6
|
// Custom breakpoints functions
|
6
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
@@ -59,13 +60,15 @@ const extendedTheme = (prevTheme, isPrintMode) => createTheme({
|
|
59
60
|
} : getBreakPoints(prevTheme)
|
60
61
|
});
|
61
62
|
const ViewportStimulator = ({
|
62
|
-
children
|
63
|
+
children,
|
64
|
+
selectedTheme
|
63
65
|
}) => {
|
64
66
|
const theme = useTheme();
|
65
67
|
const isPrintMode = useMediaQuery("print");
|
66
68
|
const viewportTheme = extendedTheme(theme, isPrintMode);
|
67
|
-
return /*#__PURE__*/_jsx(
|
69
|
+
return /*#__PURE__*/_jsx(MainThemeProvider, {
|
68
70
|
theme: viewportTheme,
|
71
|
+
userSelectedTheme: selectedTheme,
|
69
72
|
children: children
|
70
73
|
});
|
71
74
|
};
|