@flozy/editor 9.8.1 → 9.8.3
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 +19 -26
- package/dist/Editor/CommonEditor.js +25 -139
- package/dist/Editor/DialogWrapper.js +25 -31
- package/dist/Editor/Editor.css +7 -11
- package/dist/Editor/Elements/AI/AIInput.js +3 -5
- package/dist/Editor/Elements/AI/CustomSelect.js +5 -9
- package/dist/Editor/Elements/AI/PopoverAIInput.js +5 -15
- package/dist/Editor/Elements/Accordion/Accordion.js +3 -4
- package/dist/Editor/Elements/Accordion/AccordionBtnPopup.js +1 -4
- package/dist/Editor/Elements/Accordion/AccordionButton.js +2 -6
- package/dist/Editor/Elements/Accordion/AccordionTitlePopup.js +1 -4
- package/dist/Editor/Elements/AppHeader/AppHeader.js +3 -3
- package/dist/Editor/Elements/AppHeader/AppHeaderButton.js +2 -6
- package/dist/Editor/Elements/AppHeader/AppHeaderPopup.js +1 -4
- package/dist/Editor/Elements/Attachments/AttachmentsButton.js +1 -4
- package/dist/Editor/Elements/Button/ButtonPopup.js +1 -4
- package/dist/Editor/Elements/Button/ButtonToolIcon.js +2 -6
- package/dist/Editor/Elements/Button/EditorButton.js +30 -43
- package/dist/Editor/Elements/Carousel/Carousel.js +4 -5
- package/dist/Editor/Elements/Carousel/CarouselButton.js +2 -6
- package/dist/Editor/Elements/Carousel/CarouselItem.js +2 -3
- package/dist/Editor/Elements/ChipText/ChipTextPopup.js +1 -4
- package/dist/Editor/Elements/CodeToText/CodeToText.js +4 -5
- package/dist/Editor/Elements/CodeToText/HtmlContextMenu.js +2 -6
- package/dist/Editor/Elements/Color Picker/ColorButtons.js +14 -60
- package/dist/Editor/Elements/Color Picker/ColorPicker.css +1 -25
- package/dist/Editor/Elements/Color Picker/ColorPicker.js +7 -10
- package/dist/Editor/Elements/Color Picker/Styles.js +13 -15
- package/dist/Editor/Elements/Colorbox/ColorboxButton.js +2 -6
- package/dist/Editor/Elements/DataView/DataView.js +2 -5
- package/dist/Editor/Elements/DataView/DataViewButton.js +2 -6
- package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +2 -4
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +6 -21
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +12 -13
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +4 -7
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +5 -7
- package/dist/Editor/Elements/DataView/Layouts/FilterView.js +7 -9
- package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +3 -8
- package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +3 -5
- package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +5 -6
- package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +3 -5
- package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +7 -9
- package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +12 -15
- package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +2 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +2 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/index.js +6 -23
- package/dist/Editor/Elements/DataView/Layouts/TableView.js +4 -6
- package/dist/Editor/Elements/DataView/Layouts/ViewData.js +4 -8
- package/dist/Editor/Elements/DataView/Layouts/index.js +1 -3
- package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +2 -5
- package/dist/Editor/Elements/Divider/Divider.js +3 -5
- package/dist/Editor/Elements/Divider/DividerButton.js +2 -6
- package/dist/Editor/Elements/Divider/DividerPopup.js +2 -3
- package/dist/Editor/Elements/Embed/Embed.js +1 -4
- package/dist/Editor/Elements/Embed/EmbedPopup.js +1 -4
- package/dist/Editor/Elements/Embed/Image.js +11 -16
- package/dist/Editor/Elements/Embed/Video.js +6 -9
- package/dist/Editor/Elements/EmbedScript/Code.js +4 -7
- package/dist/Editor/Elements/EmbedScript/EmbedScript.js +2 -6
- package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +5 -8
- package/dist/Editor/Elements/Emoji/EmojiButton.js +2 -6
- package/dist/Editor/Elements/Form/FieldPopup.js +1 -4
- package/dist/Editor/Elements/Form/Form.js +9 -12
- package/dist/Editor/Elements/Form/FormButton.js +2 -6
- package/dist/Editor/Elements/Form/FormPopup.js +2 -3
- package/dist/Editor/Elements/Form/Workflow/FormWorkflow.js +12 -18
- package/dist/Editor/Elements/Form/Workflow/ListWorkflow.js +8 -13
- package/dist/Editor/Elements/Form/Workflow/MoreOptions.js +2 -3
- package/dist/Editor/Elements/Form/Workflow/Styles.js +22 -24
- package/dist/Editor/Elements/Form/Workflow/UserInputs.js +2 -4
- package/dist/Editor/Elements/Form/Workflow/index.js +9 -15
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +23 -67
- package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +6 -31
- package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +2 -6
- package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +6 -54
- package/dist/Editor/Elements/FreeGrid/Options/AddElement.js +2 -3
- package/dist/Editor/Elements/FreeGrid/Options/More.js +4 -10
- package/dist/Editor/Elements/FreeGrid/styles.js +0 -3
- package/dist/Editor/Elements/Grid/Grid.js +10 -13
- package/dist/Editor/Elements/Grid/GridButton.js +5 -9
- package/dist/Editor/Elements/Grid/GridItem.js +8 -14
- package/dist/Editor/Elements/Grid/GridItemPopup.js +1 -4
- package/dist/Editor/Elements/Grid/GridPopup.js +1 -4
- package/dist/Editor/Elements/Grid/SectionPopup.js +1 -4
- package/dist/Editor/Elements/Link/Link.js +5 -8
- package/dist/Editor/Elements/Link/LinkButton.js +1 -4
- package/dist/Editor/Elements/List/CheckList.js +9 -14
- package/dist/Editor/Elements/NewLine/NewLineButton.js +2 -6
- package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +1 -4
- package/dist/Editor/Elements/PageSettings/PageSettingsPopup.js +1 -4
- package/dist/Editor/Elements/Search/SearchButton.js +4 -7
- package/dist/Editor/Elements/Search/SearchList.js +5 -10
- package/dist/Editor/Elements/Signature/SignatureButton.js +2 -6
- package/dist/Editor/Elements/Signature/SignatureOptions/DrawSignature.js +8 -2
- package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -6
- package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +1 -4
- package/dist/Editor/Elements/Signature/SignaturePopup.js +16 -17
- package/dist/Editor/Elements/SimpleText/index.js +4 -5
- package/dist/Editor/Elements/SimpleText/style.js +2 -2
- package/dist/Editor/Elements/Table/DragButton.js +2 -4
- package/dist/Editor/Elements/Table/Table.js +12 -24
- package/dist/Editor/Elements/Table/TablePopup.js +1 -4
- package/dist/Editor/Elements/Table/TableSelector.js +6 -10
- package/dist/Editor/Elements/Table/TableTool.js +4 -8
- package/dist/Editor/Elements/Title/title.js +8 -9
- package/dist/Editor/Elements/TopBanner/TopBannerButton.js +1 -4
- package/dist/Editor/Elements/Variables/VariableButton.js +1 -10
- package/dist/Editor/MiniEditor.js +3 -10
- package/dist/Editor/Styles/EditorStyles.js +5 -5
- package/dist/Editor/Toolbar/Basic/index.js +1 -2
- package/dist/Editor/Toolbar/FormatTools/BlockButton.js +2 -6
- package/dist/Editor/Toolbar/FormatTools/Dropdown.js +3 -27
- package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +3 -4
- package/dist/Editor/Toolbar/FormatTools/MarkButton.js +4 -8
- package/dist/Editor/Toolbar/FormatTools/TextSize.js +13 -10
- package/dist/Editor/Toolbar/Mini/MiniToolbar.js +5 -17
- package/dist/Editor/Toolbar/PopupTool/AddTemplates.js +5 -10
- package/dist/Editor/Toolbar/PopupTool/ButtonTemplatesCard.js +4 -10
- package/dist/Editor/Toolbar/PopupTool/FullViewCard.js +4 -10
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +3 -9
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectAlignment.js +35 -42
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +13 -6
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectList.js +51 -58
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectSuperSubscript.js +22 -29
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +87 -226
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +10 -20
- package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +5 -10
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +11 -71
- package/dist/Editor/Toolbar/PopupTool/TemplateCard.js +5 -11
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +42 -122
- package/dist/Editor/Toolbar/PopupTool/index.js +2 -18
- package/dist/Editor/Toolbar/Toolbar.js +10 -20
- package/dist/Editor/Toolbar/toolbarGroups.js +6 -48
- package/dist/Editor/common/ColorPickerButton.js +14 -39
- package/dist/Editor/common/CustomDialog/index.js +10 -8
- package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
- package/dist/Editor/common/FontLoader/FontLoader.js +0 -3
- package/dist/Editor/common/Icon.js +1 -31
- package/dist/Editor/common/ImageSelector/ImageSelector.js +8 -10
- package/dist/Editor/common/ImageSelector/Options/AddLink.js +4 -6
- package/dist/Editor/common/ImageSelector/Styles.js +9 -3
- package/dist/Editor/common/LinkSettings/NavComponents.js +10 -14
- package/dist/Editor/common/LinkSettings/index.js +14 -20
- package/dist/Editor/common/LinkSettings/navOptions.js +1 -1
- package/dist/Editor/common/MUIIcon/index.js +3 -0
- package/dist/Editor/common/MentionsPopup/index.js +2 -6
- package/dist/Editor/common/RnD/ContextMenu/CMenus.js +22 -46
- package/dist/Editor/common/RnD/ContextMenu/index.js +2 -3
- package/dist/Editor/common/RnD/ElementOptions/index.js +2 -7
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/SaveAsTemplate.js +3 -8
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +3 -7
- package/dist/Editor/common/RnD/ElementSettings/Settings/AppHeaderSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/CodeSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +4 -7
- package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +2 -6
- package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +2 -3
- package/dist/Editor/common/RnD/OptionsPopup/index.js +3 -4
- package/dist/Editor/common/RnD/ShadowElement.js +1 -2
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +4 -11
- package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +3 -6
- package/dist/Editor/common/RnD/Utils/gridDropItem.js +8 -55
- package/dist/Editor/common/RnD/Utils/index.js +0 -3
- package/dist/Editor/common/RnD/VirtualElement/index.js +103 -187
- package/dist/Editor/common/RnD/VirtualElement/styles.js +7 -155
- package/dist/Editor/common/RnD/VirtualElement/updateAutoProps.js +3 -5
- package/dist/Editor/common/RnD/index.js +13 -69
- package/dist/Editor/common/Section/index.js +4 -7
- package/dist/Editor/common/Shorthands/elements.js +3 -74
- 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 +4 -6
- 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 +9 -13
- package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -11
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +5 -19
- package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +10 -22
- package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +3 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +13 -27
- package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +14 -43
- package/dist/Editor/common/StyleBuilder/fieldTypes/elementSize.js +6 -10
- package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +6 -19
- package/dist/Editor/common/StyleBuilder/fieldTypes/gridSize.js +2 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +2 -5
- package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +6 -9
- package/dist/Editor/common/StyleBuilder/fieldTypes/metaDataMapping.js +2 -8
- package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +11 -12
- package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -8
- package/dist/Editor/common/StyleBuilder/fieldTypes/textAlign.js +2 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +12 -21
- 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 +5 -8
- package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +7 -5
- package/dist/Editor/common/SwipeableDrawer/index.js +1 -1
- package/dist/Editor/common/Uploader.js +5 -16
- package/dist/Editor/commonStyle.js +57 -68
- package/dist/Editor/helper/index.js +3 -27
- package/dist/Editor/helper/theme.js +2 -202
- package/dist/Editor/hooks/useMouseMove.js +3 -9
- package/dist/Editor/plugins/withEmbeds.js +1 -1
- package/dist/Editor/plugins/withHTML.js +9 -11
- package/dist/Editor/plugins/withLayout.js +2 -3
- package/dist/Editor/plugins/withLinks.js +0 -10
- package/dist/Editor/plugins/withTable.js +1 -1
- package/dist/Editor/theme/ThemeList.js +173 -50
- package/dist/Editor/utils/SlateUtilityFunctions.js +50 -178
- package/dist/Editor/utils/draftToSlate.js +2 -3
- package/dist/Editor/utils/font.js +37 -40
- package/dist/Editor/utils/freegrid.js +3 -3
- package/dist/Editor/utils/helper.js +21 -92
- package/package.json +4 -4
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +0 -444
- package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -436
- package/dist/Editor/assets/svg/ClearAllRounded.js +0 -31
- package/dist/Editor/assets/svg/ResetIconNew.js +0 -23
- package/dist/Editor/assets/svg/ThemeIcons.js +0 -291
- package/dist/Editor/common/CustomColorPicker/index.js +0 -131
- package/dist/Editor/common/CustomColorPicker/style.js +0 -53
- package/dist/Editor/common/CustomDialog2/index.js +0 -94
- package/dist/Editor/common/CustomDialog2/style.js +0 -67
- package/dist/Editor/common/CustomSelect.js +0 -43
- package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +0 -17
- package/dist/Editor/common/RnD/VirtualElement/BoxHeaderAutoAlignment.js +0 -43
- package/dist/Editor/common/RnD/VirtualElement/ForceAutoAlignment.js +0 -44
- package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +0 -134
- package/dist/Editor/common/RnD/VirtualElement/helper.js +0 -381
- package/dist/Editor/common/SnackBar/index.js +0 -43
- package/dist/Editor/helper/textIndeces.js +0 -58
- package/dist/Editor/hooks/useAutoScroll.js +0 -38
- package/dist/Editor/hooks/useEditorTheme.js +0 -153
- package/dist/Editor/hooks/useThemeValues.js +0 -63
- package/dist/Editor/theme/index.js +0 -149
- package/dist/Editor/themeSettings/ActiveTheme.js +0 -72
- package/dist/Editor/themeSettings/buttons/index.js +0 -290
- package/dist/Editor/themeSettings/buttons/style.js +0 -23
- package/dist/Editor/themeSettings/colorTheme/index.js +0 -310
- package/dist/Editor/themeSettings/colorTheme/style.js +0 -81
- package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -121
- package/dist/Editor/themeSettings/fonts/index.js +0 -240
- package/dist/Editor/themeSettings/fonts/style.js +0 -61
- package/dist/Editor/themeSettings/icons.js +0 -60
- package/dist/Editor/themeSettings/index.js +0 -351
- package/dist/Editor/themeSettings/style.js +0 -220
- package/dist/Editor/themeSettingsAI/icons.js +0 -96
- package/dist/Editor/themeSettingsAI/index.js +0 -355
- package/dist/Editor/themeSettingsAI/saveTheme.js +0 -205
- package/dist/Editor/themeSettingsAI/style.js +0 -259
@@ -11,8 +11,7 @@ const AllProperties = props => {
|
|
11
11
|
const {
|
12
12
|
classes,
|
13
13
|
onClose,
|
14
|
-
onEvent
|
15
|
-
translation
|
14
|
+
onEvent
|
16
15
|
} = props;
|
17
16
|
const {
|
18
17
|
properties,
|
@@ -41,7 +40,7 @@ const AllProperties = props => {
|
|
41
40
|
sx: classes.addProperty,
|
42
41
|
children: [/*#__PURE__*/_jsxs(Box, {
|
43
42
|
className: "fe-dv-ap-title",
|
44
|
-
children: [
|
43
|
+
children: ["Properties", /*#__PURE__*/_jsx(IconButton, {
|
45
44
|
className: "tv-act-ico bg br1",
|
46
45
|
size: "small",
|
47
46
|
onClick: onClose,
|
@@ -56,7 +55,7 @@ const AllProperties = props => {
|
|
56
55
|
})]
|
57
56
|
}), /*#__PURE__*/_jsx(Box, {
|
58
57
|
className: "fe-dv-ap-desc",
|
59
|
-
children:
|
58
|
+
children: "Displayed Properties"
|
60
59
|
}), /*#__PURE__*/_jsxs(Box, {
|
61
60
|
className: "fe-dv-ap-opt-content",
|
62
61
|
children: [/*#__PURE__*/_jsx(List, {
|
@@ -93,7 +92,7 @@ const AllProperties = props => {
|
|
93
92
|
}), hiddenProperties?.length > 0 ? /*#__PURE__*/_jsxs(_Fragment, {
|
94
93
|
children: [/*#__PURE__*/_jsx(Box, {
|
95
94
|
className: "fe-dv-ap-desc",
|
96
|
-
children:
|
95
|
+
children: "Hidden Properties"
|
97
96
|
}), /*#__PURE__*/_jsx(List, {
|
98
97
|
className: "fe-dv-opt-list",
|
99
98
|
children: hiddenProperties?.map((m, i) => {
|
@@ -136,7 +135,7 @@ const AllProperties = props => {
|
|
136
135
|
icon: 'plusIcon'
|
137
136
|
})
|
138
137
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
139
|
-
children:
|
138
|
+
children: "Add New Property"
|
140
139
|
})]
|
141
140
|
})
|
142
141
|
})]
|
@@ -10,8 +10,7 @@ const ChangeProperty = props => {
|
|
10
10
|
classes,
|
11
11
|
onClose,
|
12
12
|
onEvent,
|
13
|
-
mode
|
14
|
-
translation
|
13
|
+
mode
|
15
14
|
} = props;
|
16
15
|
const onSelect = property => () => {
|
17
16
|
onEvent("updateProperty", {
|
@@ -48,7 +47,7 @@ const ChangeProperty = props => {
|
|
48
47
|
children: /*#__PURE__*/_jsx(Icon, {
|
49
48
|
icon: 'leftArrow'
|
50
49
|
})
|
51
|
-
}),
|
50
|
+
}), "Change Property"]
|
52
51
|
}), /*#__PURE__*/_jsx(IconButton, {
|
53
52
|
className: "tv-act-ico bg br1",
|
54
53
|
size: "small",
|
@@ -69,8 +68,7 @@ const ChangeProperty = props => {
|
|
69
68
|
className: "fe-dv-ap-opt-content mt",
|
70
69
|
children: /*#__PURE__*/_jsx(PropertyList, {
|
71
70
|
onSelect: onSelect,
|
72
|
-
selected: mode?.edit
|
73
|
-
translation: translation
|
71
|
+
selected: mode?.edit
|
74
72
|
})
|
75
73
|
})]
|
76
74
|
});
|
@@ -13,8 +13,7 @@ const EditOption = props => {
|
|
13
13
|
classes,
|
14
14
|
onClose,
|
15
15
|
mode,
|
16
|
-
onEvent
|
17
|
-
translation
|
16
|
+
onEvent
|
18
17
|
} = props;
|
19
18
|
const [edit, setEdit] = useState({
|
20
19
|
...(mode?.edit || {})
|
@@ -30,7 +29,6 @@ const EditOption = props => {
|
|
30
29
|
} = edit;
|
31
30
|
const selectedOption = edit?.options[optionIndex] || {};
|
32
31
|
const pickerStyles = ColorPickerStyles(theme);
|
33
|
-
const hideBackButton = edit?.hideBackButton || false;
|
34
32
|
useEffect(() => {
|
35
33
|
return () => {
|
36
34
|
// on un-mount update the option change
|
@@ -105,14 +103,14 @@ const EditOption = props => {
|
|
105
103
|
children: [/*#__PURE__*/_jsxs(Box, {
|
106
104
|
className: "fe-dv-ap-title",
|
107
105
|
children: [/*#__PURE__*/_jsxs("span", {
|
108
|
-
children: [
|
106
|
+
children: [/*#__PURE__*/_jsx(IconButton, {
|
109
107
|
className: "tv-act-ico",
|
110
108
|
size: "small",
|
111
109
|
onClick: onBack,
|
112
110
|
children: /*#__PURE__*/_jsx(Icon, {
|
113
111
|
icon: 'leftArrow'
|
114
112
|
})
|
115
|
-
})
|
113
|
+
}), "Edit Option"]
|
116
114
|
}), /*#__PURE__*/_jsx(IconButton, {
|
117
115
|
className: "tv-act-ico bg br1",
|
118
116
|
size: "small",
|
@@ -130,14 +128,14 @@ const EditOption = props => {
|
|
130
128
|
className: "fe-dv-ap-opt-content mt-1 mb",
|
131
129
|
children: /*#__PURE__*/_jsx(FormControlLabel, {
|
132
130
|
className: "ml-0",
|
133
|
-
label:
|
131
|
+
label: "Option Name",
|
134
132
|
control: /*#__PURE__*/_jsx(TextField, {
|
135
133
|
size: "small",
|
136
134
|
name: "value",
|
137
135
|
value: selectedOption?.value,
|
138
136
|
onChange: onChange,
|
139
137
|
fullWidth: true,
|
140
|
-
placeholder:
|
138
|
+
placeholder: "Option Name"
|
141
139
|
}),
|
142
140
|
labelPlacement: "top"
|
143
141
|
})
|
@@ -145,7 +143,7 @@ const EditOption = props => {
|
|
145
143
|
className: "label-desc mt-1",
|
146
144
|
children: [/*#__PURE__*/_jsx(Box, {
|
147
145
|
className: "label-tp mb",
|
148
|
-
children:
|
146
|
+
children: "Choose Color"
|
149
147
|
}), /*#__PURE__*/_jsx(Box, {
|
150
148
|
className: "ml",
|
151
149
|
children: /*#__PURE__*/_jsx(ColorButtons, {
|
@@ -164,7 +162,7 @@ const EditOption = props => {
|
|
164
162
|
icon: 'trashIcon'
|
165
163
|
})
|
166
164
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
167
|
-
children:
|
165
|
+
children: "Delete Option"
|
168
166
|
})]
|
169
167
|
})
|
170
168
|
})]
|
@@ -13,8 +13,7 @@ const EditProperty = props => {
|
|
13
13
|
classes,
|
14
14
|
onClose,
|
15
15
|
mode,
|
16
|
-
onEvent
|
17
|
-
translation
|
16
|
+
onEvent
|
18
17
|
} = props;
|
19
18
|
const [edit, setEdit] = useState({
|
20
19
|
...(mode?.edit || {})
|
@@ -130,7 +129,7 @@ const EditProperty = props => {
|
|
130
129
|
children: /*#__PURE__*/_jsx(Icon, {
|
131
130
|
icon: "leftArrow"
|
132
131
|
})
|
133
|
-
}),
|
132
|
+
}), "Edit Property"]
|
134
133
|
}), /*#__PURE__*/_jsx(IconButton, {
|
135
134
|
className: "tv-act-ico bg br1",
|
136
135
|
size: "small",
|
@@ -147,7 +146,7 @@ const EditProperty = props => {
|
|
147
146
|
}), /*#__PURE__*/_jsxs(Box, {
|
148
147
|
className: "fe-dv-ap-opt-content",
|
149
148
|
children: [/*#__PURE__*/_jsx(FormControlLabel, {
|
150
|
-
label:
|
149
|
+
label: "Field Name",
|
151
150
|
labelPlacement: "top",
|
152
151
|
sx: {
|
153
152
|
"& .MuiFormControl-root": {
|
@@ -159,7 +158,7 @@ const EditProperty = props => {
|
|
159
158
|
value: edit?.label,
|
160
159
|
onChange: onChange("label"),
|
161
160
|
fullWidth: true,
|
162
|
-
placeholder:
|
161
|
+
placeholder: "Field Name"
|
163
162
|
})
|
164
163
|
}), needWrap ? /*#__PURE__*/_jsx(List, {
|
165
164
|
className: "fe-dv-opt-list",
|
@@ -183,7 +182,7 @@ const EditProperty = props => {
|
|
183
182
|
},
|
184
183
|
onClick: onChangeProperty,
|
185
184
|
children: [/*#__PURE__*/_jsx(ListItemText, {
|
186
|
-
children:
|
185
|
+
children: "Type"
|
187
186
|
}), /*#__PURE__*/_jsxs(ListItemIcon, {
|
188
187
|
sx: {
|
189
188
|
display: "flex",
|
@@ -207,7 +206,7 @@ const EditProperty = props => {
|
|
207
206
|
})
|
208
207
|
}), /*#__PURE__*/_jsx("span", {
|
209
208
|
className: "label-tp",
|
210
|
-
children:
|
209
|
+
children: TYPE_LABELS[edit?.type]
|
211
210
|
}), /*#__PURE__*/_jsx(Icon, {
|
212
211
|
icon: "rightArrow"
|
213
212
|
})]
|
@@ -218,13 +217,11 @@ const EditProperty = props => {
|
|
218
217
|
}), /*#__PURE__*/_jsx(AddOptions, {
|
219
218
|
edit: edit,
|
220
219
|
onUpdate: onUpdate,
|
221
|
-
onEvent: onEvent
|
222
|
-
translation: translation
|
220
|
+
onEvent: onEvent
|
223
221
|
}), /*#__PURE__*/_jsx(FilterProperty, {
|
224
222
|
edit: edit,
|
225
223
|
onUpdate: onUpdate,
|
226
|
-
onEvent: onEvent
|
227
|
-
translation: translation
|
224
|
+
onEvent: onEvent
|
228
225
|
}), /*#__PURE__*/_jsxs(List, {
|
229
226
|
className: "fe-dv-opt-list",
|
230
227
|
children: [/*#__PURE__*/_jsxs(ListItemButton, {
|
@@ -235,8 +232,8 @@ const EditProperty = props => {
|
|
235
232
|
}) : /*#__PURE__*/_jsx(Icon, {
|
236
233
|
icon: "eyeIcon"
|
237
234
|
})
|
238
|
-
}), /*#__PURE__*/
|
239
|
-
children:
|
235
|
+
}), /*#__PURE__*/_jsxs(ListItemText, {
|
236
|
+
children: [edit?.visible ? "Hide" : "Show", " in View"]
|
240
237
|
})]
|
241
238
|
}), /*#__PURE__*/_jsxs(ListItemButton, {
|
242
239
|
onClick: onAction("Duplicate"),
|
@@ -245,7 +242,7 @@ const EditProperty = props => {
|
|
245
242
|
icon: "duplicateIcon"
|
246
243
|
})
|
247
244
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
248
|
-
children:
|
245
|
+
children: "Duplicate Property"
|
249
246
|
})]
|
250
247
|
}), /*#__PURE__*/_jsxs(ListItemButton, {
|
251
248
|
onClick: onAction("Delete"),
|
@@ -254,7 +251,7 @@ const EditProperty = props => {
|
|
254
251
|
icon: "trashIcon"
|
255
252
|
})
|
256
253
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
257
|
-
children:
|
254
|
+
children: "Delete Property"
|
258
255
|
})]
|
259
256
|
})]
|
260
257
|
})]
|
@@ -11,8 +11,7 @@ const FilterProperty = props => {
|
|
11
11
|
} = useDataView();
|
12
12
|
const {
|
13
13
|
edit,
|
14
|
-
onEvent
|
15
|
-
translation
|
14
|
+
onEvent
|
16
15
|
} = props;
|
17
16
|
const handleChangeOption = m => () => {
|
18
17
|
onEvent("addSort", {
|
@@ -34,7 +33,7 @@ const FilterProperty = props => {
|
|
34
33
|
icon: m?.Icon
|
35
34
|
})
|
36
35
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
37
|
-
primary:
|
36
|
+
primary: m.label
|
38
37
|
})]
|
39
38
|
}, i);
|
40
39
|
})
|
@@ -7,8 +7,7 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
7
|
const PropertyList = props => {
|
8
8
|
const {
|
9
9
|
onSelect,
|
10
|
-
selected
|
11
|
-
translation
|
10
|
+
selected
|
12
11
|
} = props;
|
13
12
|
return /*#__PURE__*/_jsx(List, {
|
14
13
|
children: PROPERTY_TYPES?.map(({
|
@@ -23,7 +22,7 @@ const PropertyList = props => {
|
|
23
22
|
icon: rest?.Icon
|
24
23
|
})
|
25
24
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
26
|
-
primary:
|
25
|
+
primary: rest?.label
|
27
26
|
})]
|
28
27
|
}, i);
|
29
28
|
})
|
@@ -29,16 +29,6 @@ const POSITIONS = {
|
|
29
29
|
vertical: "top",
|
30
30
|
horizontal: "right"
|
31
31
|
}
|
32
|
-
},
|
33
|
-
editOptionMulti: {
|
34
|
-
anchorOrigin: {
|
35
|
-
vertical: "top",
|
36
|
-
horizontal: "left"
|
37
|
-
},
|
38
|
-
transformOrigin: {
|
39
|
-
vertical: "top",
|
40
|
-
horizontal: "left"
|
41
|
-
}
|
42
32
|
}
|
43
33
|
};
|
44
34
|
const PropertySettings = props => {
|
@@ -51,8 +41,7 @@ const PropertySettings = props => {
|
|
51
41
|
anchorEl,
|
52
42
|
mode,
|
53
43
|
onClose,
|
54
|
-
onEvent
|
55
|
-
translation
|
44
|
+
onEvent
|
56
45
|
} = props;
|
57
46
|
const classes = useOptionsStyles(theme, appTheme);
|
58
47
|
const isMobile = window.matchMedia("(max-width: 899px)")?.matches || false;
|
@@ -64,41 +53,35 @@ const PropertySettings = props => {
|
|
64
53
|
classes: classes,
|
65
54
|
onClose: onClose,
|
66
55
|
onEvent: onEvent,
|
67
|
-
mode: mode
|
68
|
-
translation: translation
|
56
|
+
mode: mode
|
69
57
|
});
|
70
58
|
case "editProperty":
|
71
59
|
return /*#__PURE__*/_jsx(EditProperty, {
|
72
60
|
classes: classes,
|
73
61
|
onClose: onClose,
|
74
62
|
onEvent: onEvent,
|
75
|
-
mode: mode
|
76
|
-
translation: translation
|
63
|
+
mode: mode
|
77
64
|
});
|
78
65
|
case "changeProperty":
|
79
66
|
return /*#__PURE__*/_jsx(ChangeProperty, {
|
80
67
|
classes: classes,
|
81
68
|
onClose: onClose,
|
82
69
|
onEvent: onEvent,
|
83
|
-
mode: mode
|
84
|
-
translation: translation
|
70
|
+
mode: mode
|
85
71
|
});
|
86
72
|
case "allProperties":
|
87
73
|
return /*#__PURE__*/_jsx(AllProperties, {
|
88
74
|
classes: classes,
|
89
75
|
onClose: onClose,
|
90
76
|
onEvent: onEvent,
|
91
|
-
mode: mode
|
92
|
-
translation: translation
|
77
|
+
mode: mode
|
93
78
|
});
|
94
79
|
case "editOption":
|
95
|
-
case "editOptionMulti":
|
96
80
|
return /*#__PURE__*/_jsx(EditOption, {
|
97
81
|
classes: classes,
|
98
82
|
onClose: onClose,
|
99
83
|
onEvent: onEvent,
|
100
|
-
mode: mode
|
101
|
-
translation: translation
|
84
|
+
mode: mode
|
102
85
|
});
|
103
86
|
default:
|
104
87
|
return null;
|
@@ -134,8 +134,7 @@ const TableView = props => {
|
|
134
134
|
} = useEditorContext();
|
135
135
|
const {
|
136
136
|
children,
|
137
|
-
readOnly
|
138
|
-
translation
|
137
|
+
readOnly
|
139
138
|
} = props;
|
140
139
|
const theme = useTheme();
|
141
140
|
const classes = useTableStyles(theme, appTheme);
|
@@ -167,7 +166,7 @@ const TableView = props => {
|
|
167
166
|
case "addProperty":
|
168
167
|
const np = onAddProperty({
|
169
168
|
type: data?.type
|
170
|
-
}, data?.overrides || {}
|
169
|
+
}, data?.overrides || {});
|
171
170
|
if (navToEdit) {
|
172
171
|
setMode({
|
173
172
|
type: "editProperty",
|
@@ -337,15 +336,14 @@ const TableView = props => {
|
|
337
336
|
startIcon: /*#__PURE__*/_jsx(Icon, {
|
338
337
|
icon: "addRounded"
|
339
338
|
}),
|
340
|
-
children:
|
339
|
+
children: "Add new row"
|
341
340
|
}) : null, open && !readOnly ? /*#__PURE__*/_jsx(PropertySettings, {
|
342
341
|
open: open,
|
343
342
|
anchorEl: anchorEl,
|
344
343
|
mode: mode,
|
345
344
|
properties: properties,
|
346
345
|
onClose: onClose,
|
347
|
-
onEvent: onEvent
|
348
|
-
translation: translation
|
346
|
+
onEvent: onEvent
|
349
347
|
}) : null]
|
350
348
|
});
|
351
349
|
};
|
@@ -11,8 +11,7 @@ const RenderRow = props => {
|
|
11
11
|
properties,
|
12
12
|
onSelect,
|
13
13
|
selected,
|
14
|
-
readOnly
|
15
|
-
translation
|
14
|
+
readOnly
|
16
15
|
} = props;
|
17
16
|
const showProperties = properties?.filter(f => f.visible);
|
18
17
|
return showProperties?.map((property, i) => {
|
@@ -23,8 +22,7 @@ const RenderRow = props => {
|
|
23
22
|
property: property,
|
24
23
|
onSelect: onSelect,
|
25
24
|
selected: selected,
|
26
|
-
readOnly: readOnly
|
27
|
-
translation: translation
|
25
|
+
readOnly: readOnly
|
28
26
|
}, `${property.key}_${i}`);
|
29
27
|
});
|
30
28
|
};
|
@@ -35,8 +33,7 @@ const ViewData = props => {
|
|
35
33
|
customProps
|
36
34
|
} = props;
|
37
35
|
const {
|
38
|
-
readOnly
|
39
|
-
translation
|
36
|
+
readOnly
|
40
37
|
} = customProps || {};
|
41
38
|
const {
|
42
39
|
properties,
|
@@ -70,8 +67,7 @@ const ViewData = props => {
|
|
70
67
|
properties: properties,
|
71
68
|
onSelect: onSelect,
|
72
69
|
selected: selectedRows?.includes(row?.id),
|
73
|
-
readOnly: readOnly
|
74
|
-
translation: translation
|
70
|
+
readOnly: readOnly
|
75
71
|
}), /*#__PURE__*/_jsx("td", {}), /*#__PURE__*/_jsx("td", {})]
|
76
72
|
}, i);
|
77
73
|
}), /*#__PURE__*/_jsx("tr", {
|
@@ -9,8 +9,7 @@ const LAYOUT_COMPONENT = {
|
|
9
9
|
const LayoutView = props => {
|
10
10
|
const {
|
11
11
|
readOnly,
|
12
|
-
children
|
13
|
-
translation
|
12
|
+
children
|
14
13
|
} = props;
|
15
14
|
const {
|
16
15
|
layoutType
|
@@ -19,7 +18,6 @@ const LayoutView = props => {
|
|
19
18
|
return /*#__PURE__*/_jsx(_Fragment, {
|
20
19
|
children: /*#__PURE__*/_jsx(Layout, {
|
21
20
|
readOnly: readOnly,
|
22
|
-
translation: translation,
|
23
21
|
children: children
|
24
22
|
})
|
25
23
|
});
|
@@ -67,18 +67,15 @@ export const DataViewProvider = ({
|
|
67
67
|
setRows(globalSearch(initialData?.rows || [], search));
|
68
68
|
}
|
69
69
|
}, [sort, search]);
|
70
|
-
const onAddProperty = (data, overrides = {}
|
70
|
+
const onAddProperty = (data, overrides = {}) => {
|
71
71
|
try {
|
72
72
|
const {
|
73
73
|
type
|
74
74
|
} = data;
|
75
75
|
const key = `col_${new Date().getTime()}`;
|
76
|
-
const defaultProperty = PROPERTY_DEFAULTS[type] || {};
|
77
|
-
const translatedLabel = translation ? translation(defaultProperty.label) : defaultProperty.label;
|
78
76
|
const newProperty = {
|
79
|
-
...
|
77
|
+
...(PROPERTY_DEFAULTS[type] || {}),
|
80
78
|
...overrides,
|
81
|
-
label: translatedLabel,
|
82
79
|
key: key,
|
83
80
|
type
|
84
81
|
};
|
@@ -25,8 +25,7 @@ const Divider = props => {
|
|
25
25
|
borderStyle = "solid"
|
26
26
|
} = element;
|
27
27
|
const {
|
28
|
-
readOnly
|
29
|
-
translation
|
28
|
+
readOnly
|
30
29
|
} = customProps;
|
31
30
|
const editor = useSlateStatic();
|
32
31
|
const path = ReactEditor.findPath(editor, element);
|
@@ -64,7 +63,7 @@ const Divider = props => {
|
|
64
63
|
left: 0
|
65
64
|
},
|
66
65
|
children: /*#__PURE__*/_jsx(Tooltip, {
|
67
|
-
title:
|
66
|
+
title: "Divider Settings",
|
68
67
|
arrow: true,
|
69
68
|
children: /*#__PURE__*/_jsx(IconButton, {
|
70
69
|
size: "small",
|
@@ -155,8 +154,7 @@ const Divider = props => {
|
|
155
154
|
onSave: onSave,
|
156
155
|
onClose: onClose,
|
157
156
|
onDelete: onDelete,
|
158
|
-
customProps: customProps
|
159
|
-
translation: translation
|
157
|
+
customProps: customProps
|
160
158
|
}) : null]
|
161
159
|
});
|
162
160
|
};
|
@@ -6,17 +6,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
const DividerButton = props => {
|
7
7
|
const {
|
8
8
|
editor,
|
9
|
-
icoBtnType
|
10
|
-
customProps
|
9
|
+
icoBtnType
|
11
10
|
} = props;
|
12
|
-
const {
|
13
|
-
translation
|
14
|
-
} = customProps;
|
15
11
|
const handleClick = () => {
|
16
12
|
insertDivider(editor);
|
17
13
|
};
|
18
14
|
return /*#__PURE__*/_jsx(ToolbarIcon, {
|
19
|
-
title:
|
15
|
+
title: "Divider",
|
20
16
|
onClick: handleClick,
|
21
17
|
icon: /*#__PURE__*/_jsx(Icon, {
|
22
18
|
icon: "divider"
|
@@ -8,11 +8,10 @@ const DividerPopup = props => {
|
|
8
8
|
onSave,
|
9
9
|
onClose,
|
10
10
|
onDelete,
|
11
|
-
customProps
|
12
|
-
translation
|
11
|
+
customProps
|
13
12
|
} = props;
|
14
13
|
return /*#__PURE__*/_jsx(StyleBuilder, {
|
15
|
-
title:
|
14
|
+
title: "Divider",
|
16
15
|
type: "dividerStyle",
|
17
16
|
element: element,
|
18
17
|
onSave: onSave,
|
@@ -29,9 +29,6 @@ const Embed = ({
|
|
29
29
|
images: []
|
30
30
|
});
|
31
31
|
const [selection, setSelection] = useState();
|
32
|
-
const {
|
33
|
-
translation
|
34
|
-
} = customProps;
|
35
32
|
const handleFormSubmit = fd => {
|
36
33
|
if (fd?.url || fd?.images.length > 0) {
|
37
34
|
selection && Transforms.select(editor, selection);
|
@@ -75,7 +72,7 @@ const Embed = ({
|
|
75
72
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
76
73
|
children: [/*#__PURE__*/_jsx(ToolbarIcon, {
|
77
74
|
className: isBlockActive(editor, format) ? "active" : "",
|
78
|
-
title:
|
75
|
+
title: EMBED_LABEL[lbT || format],
|
79
76
|
onClick: onToggle,
|
80
77
|
icon: /*#__PURE__*/_jsx(Icon, {
|
81
78
|
icon: lbT || format
|
@@ -18,11 +18,8 @@ const EmbedPopup = props => {
|
|
18
18
|
}
|
19
19
|
return true;
|
20
20
|
});
|
21
|
-
const {
|
22
|
-
translation
|
23
|
-
} = customProps;
|
24
21
|
return /*#__PURE__*/_jsx(StyleBuilder, {
|
25
|
-
title: format === "image" ?
|
22
|
+
title: format === "image" ? "Image" : format === "video" ? "video" : format === "calendly" ? "calendly" : "Embed",
|
26
23
|
type: format === "image" ? "embedImageStyle" : "embedVideoStyle",
|
27
24
|
element: element,
|
28
25
|
onSave: onSave,
|
@@ -5,7 +5,7 @@ import AspectRatioIcon from "@mui/icons-material/AspectRatio";
|
|
5
5
|
import useResize from "../../utils/customHooks/useResize";
|
6
6
|
import EmbedPopup from "./EmbedPopup";
|
7
7
|
import { IconButton, Tooltip, Box, useTheme } from "@mui/material";
|
8
|
-
import { LinkIcon } from "../../common/iconslist";
|
8
|
+
import { GridSettingsIcon, LinkIcon } from "../../common/iconslist";
|
9
9
|
import { useEditorContext } from "../../hooks/useMouseMove";
|
10
10
|
import { getTRBLBreakPoints, getBreakPointsValue, groupByBreakpoint } from "../../helper/theme";
|
11
11
|
import Icon from "../../common/Icon";
|
@@ -23,8 +23,7 @@ const ToolBar = ({
|
|
23
23
|
onSettings,
|
24
24
|
setOpenNav,
|
25
25
|
topM,
|
26
|
-
classes
|
27
|
-
translation
|
26
|
+
classes
|
28
27
|
}) => {
|
29
28
|
return !isEmpty ? /*#__PURE__*/_jsxs("div", {
|
30
29
|
className: "element-toolbar visible-on-hover",
|
@@ -33,10 +32,10 @@ const ToolBar = ({
|
|
33
32
|
top: "-4px",
|
34
33
|
left: topM ? "35px" : "0px",
|
35
34
|
margin: "0px",
|
36
|
-
gap:
|
35
|
+
gap: '3px'
|
37
36
|
},
|
38
37
|
children: [/*#__PURE__*/_jsx(Tooltip, {
|
39
|
-
title:
|
38
|
+
title: "Image Settings",
|
40
39
|
arrow: true,
|
41
40
|
children: /*#__PURE__*/_jsx(IconButton, {
|
42
41
|
onClick: onSettings,
|
@@ -44,7 +43,7 @@ const ToolBar = ({
|
|
44
43
|
children: /*#__PURE__*/_jsx(SettingsIcon, {})
|
45
44
|
})
|
46
45
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
47
|
-
title:
|
46
|
+
title: "Link Settings",
|
48
47
|
arrow: true,
|
49
48
|
children: /*#__PURE__*/_jsx(IconButton, {
|
50
49
|
className: "last-btn",
|
@@ -72,8 +71,7 @@ const ImageContent = props => {
|
|
72
71
|
onTouchEnd,
|
73
72
|
path,
|
74
73
|
theme,
|
75
|
-
classes
|
76
|
-
translation
|
74
|
+
classes
|
77
75
|
} = props;
|
78
76
|
return !url ? !readOnly ? /*#__PURE__*/_jsxs(Box, {
|
79
77
|
component: "button",
|
@@ -87,7 +85,7 @@ const ImageContent = props => {
|
|
87
85
|
},
|
88
86
|
children: [/*#__PURE__*/_jsx(Icon, {
|
89
87
|
icon: "image"
|
90
|
-
}),
|
88
|
+
}), "Add Image"]
|
91
89
|
}) : /*#__PURE__*/_jsxs(Box, {
|
92
90
|
sx: {
|
93
91
|
color: "#64748B !important",
|
@@ -99,7 +97,7 @@ const ImageContent = props => {
|
|
99
97
|
className: "element-empty-btn",
|
100
98
|
children: [/*#__PURE__*/_jsx(Icon, {
|
101
99
|
icon: "shieldNoAccess"
|
102
|
-
}),
|
100
|
+
}), "The Content is no longer available."]
|
103
101
|
}) : /*#__PURE__*/_jsx(Box, {
|
104
102
|
component: "img",
|
105
103
|
className: "emb-img",
|
@@ -146,8 +144,7 @@ const Image = props => {
|
|
146
144
|
framePos
|
147
145
|
} = element;
|
148
146
|
const {
|
149
|
-
readOnly
|
150
|
-
translation
|
147
|
+
readOnly
|
151
148
|
} = customProps;
|
152
149
|
const {
|
153
150
|
vertical,
|
@@ -312,8 +309,7 @@ const Image = props => {
|
|
312
309
|
onSettings: onSettings,
|
313
310
|
setOpenNav: setOpenNav,
|
314
311
|
topM: size.width < 100,
|
315
|
-
classes: classes
|
316
|
-
translation: translation
|
312
|
+
classes: classes
|
317
313
|
}), /*#__PURE__*/_jsx(ImageContent, {
|
318
314
|
...element,
|
319
315
|
readOnly: readOnly,
|
@@ -322,8 +318,7 @@ const Image = props => {
|
|
322
318
|
onTouchEnd: onTouchEnd,
|
323
319
|
path: path,
|
324
320
|
theme: theme,
|
325
|
-
classes: classes
|
326
|
-
translation: translation
|
321
|
+
classes: classes
|
327
322
|
}), url && frames[frame] ? /*#__PURE__*/_jsx(Box, {
|
328
323
|
component: "div",
|
329
324
|
className: "image-frame",
|