@flozy/editor 9.1.3 → 9.1.5
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 +14 -7
- package/dist/Editor/CommonEditor.js +20 -9
- 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 +4 -2
- 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/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 +6 -5
- 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/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/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 +3 -2
- 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 +7 -6
- 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 +12 -6
- package/dist/Editor/Elements/DataView/Layouts/TableView.js +6 -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 +14 -9
- 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/UserInputs.js +4 -2
- package/dist/Editor/Elements/Form/Workflow/index.js +15 -9
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +21 -4
- package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +4 -1
- package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +6 -2
- package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +6 -2
- package/dist/Editor/Elements/FreeGrid/Options/AddElement.js +3 -2
- package/dist/Editor/Elements/FreeGrid/Options/More.js +4 -3
- 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 +13 -7
- 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 +14 -9
- 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 +6 -3
- package/dist/Editor/Elements/Search/SearchList.js +7 -3
- package/dist/Editor/Elements/Signature/SignatureButton.js +6 -2
- 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 +5 -4
- package/dist/Editor/Elements/Table/DragButton.js +4 -2
- package/dist/Editor/Elements/Table/Table.js +13 -5
- 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/TopBanner/TopBannerButton.js +4 -1
- package/dist/Editor/MiniEditor.js +9 -3
- package/dist/Editor/Toolbar/Basic/index.js +2 -1
- package/dist/Editor/Toolbar/FormatTools/BlockButton.js +6 -2
- package/dist/Editor/Toolbar/FormatTools/MarkButton.js +6 -2
- package/dist/Editor/Toolbar/Mini/MiniToolbar.js +5 -3
- 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 +6 -2
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectAlignment.js +42 -35
- 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 +28 -14
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +14 -7
- package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +8 -4
- package/dist/Editor/Toolbar/PopupTool/TemplateCard.js +11 -5
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +29 -21
- package/dist/Editor/Toolbar/Toolbar.js +20 -10
- package/dist/Editor/common/CustomDialog/index.js +8 -10
- package/dist/Editor/common/ImageSelector/ImageSelector.js +10 -8
- package/dist/Editor/common/ImageSelector/Options/AddLink.js +6 -4
- 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/MentionsPopup/index.js +6 -2
- package/dist/Editor/common/RnD/ContextMenu/CMenus.js +22 -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 +5 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +4 -2
- package/dist/Editor/common/RnD/OptionsPopup/index.js +4 -3
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +3 -2
- package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +25 -7
- package/dist/Editor/common/RnD/index.js +11 -4
- package/dist/Editor/common/Section/index.js +7 -4
- package/dist/Editor/common/Shorthands/elements.js +21 -4
- 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 +2 -2
- 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 +6 -3
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +7 -3
- package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +7 -3
- package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +6 -3
- package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +19 -13
- package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +7 -4
- package/dist/Editor/common/StyleBuilder/fieldTypes/elementSize.js +10 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +7 -3
- 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/menusArray.js +9 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/metaDataMapping.js +4 -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 +6 -5
- 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 +4 -3
- package/dist/Editor/common/Uploader.js +8 -5
- package/dist/Editor/plugins/withLayout.js +3 -2
- package/dist/Editor/utils/SlateUtilityFunctions.js +12 -8
- package/package.json +1 -1
@@ -15,12 +15,12 @@ const appHeaderStyle = [{
|
|
15
15
|
options: fontOptions,
|
16
16
|
webFont: true,
|
17
17
|
width: 7,
|
18
|
-
renderOption: option => {
|
18
|
+
renderOption: (option, elementProps, translation) => {
|
19
19
|
return /*#__PURE__*/_jsx("span", {
|
20
20
|
style: {
|
21
21
|
fontFamily: option.value
|
22
22
|
},
|
23
|
-
children: "LOGO"
|
23
|
+
children: translation("LOGO")
|
24
24
|
});
|
25
25
|
}
|
26
26
|
}, {
|
@@ -58,12 +58,12 @@ const appHeaderStyle = [{
|
|
58
58
|
webFont: true,
|
59
59
|
width: 7,
|
60
60
|
options: fontOptions,
|
61
|
-
renderOption: option => {
|
61
|
+
renderOption: (option, elementProps, translation) => {
|
62
62
|
return /*#__PURE__*/_jsx("span", {
|
63
63
|
style: {
|
64
64
|
fontFamily: option.value
|
65
65
|
},
|
66
|
-
children: "Home"
|
66
|
+
children: translation("Home")
|
67
67
|
});
|
68
68
|
}
|
69
69
|
}, {
|
@@ -51,9 +51,9 @@ const boxStyle = [{
|
|
51
51
|
text: "Dashed",
|
52
52
|
value: "dashed"
|
53
53
|
}],
|
54
|
-
renderOption: option => {
|
54
|
+
renderOption: (option, elementProps, translation) => {
|
55
55
|
return /*#__PURE__*/_jsx("span", {
|
56
|
-
children: option.text
|
56
|
+
children: translation(option.text)
|
57
57
|
});
|
58
58
|
}
|
59
59
|
}]
|
@@ -106,9 +106,9 @@ const buttonStyle = [{
|
|
106
106
|
text: "Dashed",
|
107
107
|
value: "dashed"
|
108
108
|
}],
|
109
|
-
renderOption: option => {
|
109
|
+
renderOption: (option, elementProps, translation) => {
|
110
110
|
return /*#__PURE__*/_jsx("span", {
|
111
|
-
children: option.text
|
111
|
+
children: translation(option.text)
|
112
112
|
});
|
113
113
|
}
|
114
114
|
}]
|
@@ -46,9 +46,9 @@ const dividerStyle = [{
|
|
46
46
|
text: "Outset",
|
47
47
|
value: "outset"
|
48
48
|
}],
|
49
|
-
renderOption: option => {
|
49
|
+
renderOption: (option, lementProps, translation) => {
|
50
50
|
return /*#__PURE__*/_jsx("span", {
|
51
|
-
children: option.text
|
51
|
+
children: translation(option.text)
|
52
52
|
});
|
53
53
|
}
|
54
54
|
}]
|
@@ -16,18 +16,18 @@ const embedVideoStyle = [{
|
|
16
16
|
key: "aspectRatio",
|
17
17
|
type: "textOptions",
|
18
18
|
options: [{
|
19
|
-
text: "
|
19
|
+
text: "deafultRatio",
|
20
20
|
value: "16 / 9"
|
21
21
|
}, {
|
22
|
-
text: "
|
22
|
+
text: "nineSixteen",
|
23
23
|
value: "9 / 16"
|
24
24
|
}, {
|
25
25
|
text: "Custom",
|
26
26
|
value: "custom"
|
27
27
|
}],
|
28
|
-
renderOption: option => {
|
28
|
+
renderOption: (option, elementProps, translation) => {
|
29
29
|
return /*#__PURE__*/_jsx("span", {
|
30
|
-
children: option.text
|
30
|
+
children: translation(option.text)
|
31
31
|
});
|
32
32
|
}
|
33
33
|
}]
|
@@ -78,9 +78,9 @@ const embedVideoStyle = [{
|
|
78
78
|
text: "Dashed",
|
79
79
|
value: "dashed"
|
80
80
|
}],
|
81
|
-
renderOption: option => {
|
81
|
+
renderOption: (option, elementProps, translation) => {
|
82
82
|
return /*#__PURE__*/_jsx("span", {
|
83
|
-
children: option.text
|
83
|
+
children: translation(option.text)
|
84
84
|
});
|
85
85
|
}
|
86
86
|
}]
|
@@ -57,9 +57,9 @@ const fieldStyle = [{
|
|
57
57
|
text: "Dashed",
|
58
58
|
value: "dashed"
|
59
59
|
}],
|
60
|
-
renderOption: option => {
|
60
|
+
renderOption: (option, elementProps, translation) => {
|
61
61
|
return /*#__PURE__*/_jsx("span", {
|
62
|
-
children: option.text
|
62
|
+
children: translation(option.text)
|
63
63
|
});
|
64
64
|
}
|
65
65
|
}]
|
@@ -8,8 +8,12 @@ const Alignment = props => {
|
|
8
8
|
const {
|
9
9
|
value,
|
10
10
|
data,
|
11
|
-
onChange
|
11
|
+
onChange,
|
12
|
+
customProps
|
12
13
|
} = props;
|
14
|
+
const {
|
15
|
+
translation
|
16
|
+
} = customProps;
|
13
17
|
const {
|
14
18
|
key
|
15
19
|
} = data;
|
@@ -36,7 +40,7 @@ const Alignment = props => {
|
|
36
40
|
fontSize: "14px",
|
37
41
|
fontWeight: 500
|
38
42
|
},
|
39
|
-
children: "Alignment"
|
43
|
+
children: translation("Alignment")
|
40
44
|
})
|
41
45
|
}), /*#__PURE__*/_jsxs("div", {
|
42
46
|
style: {
|
@@ -53,21 +57,21 @@ const Alignment = props => {
|
|
53
57
|
display: "flex"
|
54
58
|
},
|
55
59
|
children: [/*#__PURE__*/_jsx(Tooltip, {
|
56
|
-
title: "Align Left",
|
60
|
+
title: translation("Align Left"),
|
57
61
|
children: /*#__PURE__*/_jsx(FormControlLabel, {
|
58
62
|
value: "start",
|
59
63
|
control: /*#__PURE__*/_jsx(Radio, {}),
|
60
64
|
label: /*#__PURE__*/_jsx(JustifyStartIcon, {})
|
61
65
|
})
|
62
66
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
63
|
-
title: "Align Center",
|
67
|
+
title: translation("Align Center"),
|
64
68
|
children: /*#__PURE__*/_jsx(FormControlLabel, {
|
65
69
|
value: "center",
|
66
70
|
control: /*#__PURE__*/_jsx(Radio, {}),
|
67
71
|
label: /*#__PURE__*/_jsx(JustifyCenterIcon, {})
|
68
72
|
})
|
69
73
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
70
|
-
title: "Align Right",
|
74
|
+
title: translation("Align Right"),
|
71
75
|
children: /*#__PURE__*/_jsx(FormControlLabel, {
|
72
76
|
value: "end",
|
73
77
|
control: /*#__PURE__*/_jsx(Radio, {}),
|
@@ -85,21 +89,21 @@ const Alignment = props => {
|
|
85
89
|
display: "flex"
|
86
90
|
},
|
87
91
|
children: [/*#__PURE__*/_jsx(Tooltip, {
|
88
|
-
title: "Align Top",
|
92
|
+
title: translation("Align Top"),
|
89
93
|
children: /*#__PURE__*/_jsx(FormControlLabel, {
|
90
94
|
value: "start",
|
91
95
|
control: /*#__PURE__*/_jsx(Radio, {}),
|
92
96
|
label: /*#__PURE__*/_jsx(AlignStartIcon, {})
|
93
97
|
})
|
94
98
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
95
|
-
title: "Align Middle",
|
99
|
+
title: translation("Align Middle"),
|
96
100
|
children: /*#__PURE__*/_jsx(FormControlLabel, {
|
97
101
|
value: "center",
|
98
102
|
control: /*#__PURE__*/_jsx(Radio, {}),
|
99
103
|
label: /*#__PURE__*/_jsx(AlignCenterIcon, {})
|
100
104
|
})
|
101
105
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
102
|
-
title: "Align Bottom",
|
106
|
+
title: translation("Align Bottom"),
|
103
107
|
children: /*#__PURE__*/_jsx(FormControlLabel, {
|
104
108
|
value: "end",
|
105
109
|
control: /*#__PURE__*/_jsx(Radio, {}),
|
@@ -122,7 +126,7 @@ const Alignment = props => {
|
|
122
126
|
fontSize: "14px",
|
123
127
|
fontWeight: 500
|
124
128
|
},
|
125
|
-
children: "Direction"
|
129
|
+
children: translation("Direction")
|
126
130
|
})
|
127
131
|
}), /*#__PURE__*/_jsxs(RadioGroup, {
|
128
132
|
row: true,
|
@@ -13,6 +13,9 @@ const BackgroundImage = props => {
|
|
13
13
|
customProps,
|
14
14
|
onChange
|
15
15
|
} = props;
|
16
|
+
const {
|
17
|
+
translation
|
18
|
+
} = customProps;
|
16
19
|
const {
|
17
20
|
key
|
18
21
|
} = data;
|
@@ -52,7 +55,7 @@ const BackgroundImage = props => {
|
|
52
55
|
fontWeight: "500",
|
53
56
|
marginBottom: "8px"
|
54
57
|
},
|
55
|
-
children: "Upload Image"
|
58
|
+
children: translation("Upload Image")
|
56
59
|
}), /*#__PURE__*/_jsx(Grid, {
|
57
60
|
container: true,
|
58
61
|
sx: classes.uploadContainer,
|
@@ -70,7 +73,7 @@ const BackgroundImage = props => {
|
|
70
73
|
children: base64 ? /*#__PURE__*/_jsx(Grid, {
|
71
74
|
className: "removeImageText",
|
72
75
|
onClick: onRemoveBG,
|
73
|
-
children: "REMOVE"
|
76
|
+
children: translation("REMOVE")
|
74
77
|
}) : /*#__PURE__*/_jsx(Grid, {
|
75
78
|
className: "uploadImageText",
|
76
79
|
sx: {
|
@@ -92,7 +95,7 @@ const BackgroundImage = props => {
|
|
92
95
|
style: {
|
93
96
|
paddingLeft: "8px"
|
94
97
|
},
|
95
|
-
children: "Upload a image"
|
98
|
+
children: translation("Upload a image")
|
96
99
|
})]
|
97
100
|
})
|
98
101
|
})
|
@@ -13,8 +13,12 @@ const BannerSpacing = props => {
|
|
13
13
|
data,
|
14
14
|
onChange,
|
15
15
|
elementProps,
|
16
|
-
classes
|
16
|
+
classes,
|
17
|
+
customProps
|
17
18
|
} = props;
|
19
|
+
const {
|
20
|
+
translation
|
21
|
+
} = customProps;
|
18
22
|
const {
|
19
23
|
key
|
20
24
|
} = data;
|
@@ -73,7 +77,7 @@ const BannerSpacing = props => {
|
|
73
77
|
fontSize: "14px",
|
74
78
|
fontWeight: 500
|
75
79
|
},
|
76
|
-
children: data?.label
|
80
|
+
children: translation(data?.label)
|
77
81
|
}), /*#__PURE__*/_jsxs(Grid, {
|
78
82
|
container: true,
|
79
83
|
wrap: "nowrap",
|
@@ -136,7 +140,7 @@ const BannerSpacing = props => {
|
|
136
140
|
sx: {
|
137
141
|
fontSize: "14px"
|
138
142
|
},
|
139
|
-
children: "Customize"
|
143
|
+
children: translation("Customize")
|
140
144
|
})
|
141
145
|
}), !lockSpacing ? /*#__PURE__*/_jsx(Grid, {
|
142
146
|
container: true,
|
@@ -13,8 +13,12 @@ const BorderRadius = props => {
|
|
13
13
|
data,
|
14
14
|
onChange,
|
15
15
|
elementProps,
|
16
|
-
classes
|
16
|
+
classes,
|
17
|
+
customProps
|
17
18
|
} = props;
|
19
|
+
const {
|
20
|
+
translation
|
21
|
+
} = customProps;
|
18
22
|
const {
|
19
23
|
key
|
20
24
|
} = data;
|
@@ -68,7 +72,7 @@ const BorderRadius = props => {
|
|
68
72
|
fontSize: "14px",
|
69
73
|
fontWeight: 500
|
70
74
|
},
|
71
|
-
children: data?.label
|
75
|
+
children: translation(data?.label)
|
72
76
|
}), /*#__PURE__*/_jsxs(Grid, {
|
73
77
|
container: true,
|
74
78
|
wrap: "nowrap",
|
@@ -121,7 +125,7 @@ const BorderRadius = props => {
|
|
121
125
|
sx: {
|
122
126
|
fontSize: "14px"
|
123
127
|
},
|
124
|
-
children: "Customize"
|
128
|
+
children: translation("Customize")
|
125
129
|
})
|
126
130
|
}), !lockRadius ? /*#__PURE__*/_jsx(Grid, {
|
127
131
|
container: true,
|
@@ -14,6 +14,9 @@ const ButtonLink = props => {
|
|
14
14
|
const {
|
15
15
|
key
|
16
16
|
} = data;
|
17
|
+
const {
|
18
|
+
translation
|
19
|
+
} = customProps;
|
17
20
|
const {
|
18
21
|
metadata
|
19
22
|
} = customProps || {
|
@@ -76,7 +79,7 @@ const ButtonLink = props => {
|
|
76
79
|
fontWeight: 500
|
77
80
|
},
|
78
81
|
id: "demo-radio-buttons-group-label",
|
79
|
-
children: "
|
82
|
+
children: translation("whereToLinkText")
|
80
83
|
}), /*#__PURE__*/_jsxs(RadioGroup, {
|
81
84
|
row: true,
|
82
85
|
"aria-labelledby": "demo-radio-buttons-group-label",
|
@@ -93,7 +96,7 @@ const ButtonLink = props => {
|
|
93
96
|
style: {
|
94
97
|
fontSize: "14px"
|
95
98
|
},
|
96
|
-
children: "
|
99
|
+
children: translation("nextStep")
|
97
100
|
})
|
98
101
|
}), /*#__PURE__*/_jsx(FormControlLabel, {
|
99
102
|
value: "webAddress",
|
@@ -104,7 +107,7 @@ const ButtonLink = props => {
|
|
104
107
|
style: {
|
105
108
|
fontSize: "14px"
|
106
109
|
},
|
107
|
-
children: "
|
110
|
+
children: translation("webAddress")
|
108
111
|
})
|
109
112
|
})]
|
110
113
|
})]
|
@@ -11,21 +11,22 @@ const RenderCard = ({
|
|
11
11
|
title,
|
12
12
|
content,
|
13
13
|
infoIcon,
|
14
|
-
classes
|
14
|
+
classes,
|
15
|
+
translation
|
15
16
|
}) => {
|
16
17
|
return /*#__PURE__*/_jsx(Card, {
|
17
18
|
sx: {
|
18
|
-
position:
|
19
|
+
position: "relative",
|
19
20
|
padding: "10px",
|
20
|
-
|
21
|
-
fill:
|
21
|
+
"& .MuiCheckbox-root svg": {
|
22
|
+
fill: "unset !important"
|
22
23
|
}
|
23
24
|
},
|
24
25
|
children: /*#__PURE__*/_jsx(FormControlLabel, {
|
25
26
|
control: /*#__PURE__*/_jsx(Checkbox, {
|
26
27
|
sx: {
|
27
28
|
padding: 0,
|
28
|
-
marginTop:
|
29
|
+
marginTop: "3px"
|
29
30
|
},
|
30
31
|
onChange: handleChange,
|
31
32
|
checked: value,
|
@@ -51,9 +52,9 @@ const RenderCard = ({
|
|
51
52
|
style: {
|
52
53
|
fontWeight: `500 !important`
|
53
54
|
},
|
54
|
-
children: title
|
55
|
+
children: translation(title)
|
55
56
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
56
|
-
title: content,
|
57
|
+
title: translation(content),
|
57
58
|
children: infoIcon && content && /*#__PURE__*/_jsx("span", {
|
58
59
|
children: infoIcon
|
59
60
|
})
|
@@ -61,10 +62,10 @@ const RenderCard = ({
|
|
61
62
|
})
|
62
63
|
}),
|
63
64
|
sx: {
|
64
|
-
width:
|
65
|
-
display:
|
66
|
-
justifyContent:
|
67
|
-
alignItems:
|
65
|
+
width: "100%",
|
66
|
+
display: "flex",
|
67
|
+
justifyContent: "space-between",
|
68
|
+
alignItems: "flex-start",
|
68
69
|
margin: 0
|
69
70
|
},
|
70
71
|
labelPlacement: "start"
|
@@ -76,7 +77,8 @@ const CardsMapping = props => {
|
|
76
77
|
value,
|
77
78
|
data,
|
78
79
|
onChange,
|
79
|
-
classes
|
80
|
+
classes,
|
81
|
+
customProps
|
80
82
|
} = props;
|
81
83
|
const {
|
82
84
|
key,
|
@@ -88,6 +90,9 @@ const CardsMapping = props => {
|
|
88
90
|
const {
|
89
91
|
theme
|
90
92
|
} = useEditorContext();
|
93
|
+
const {
|
94
|
+
translation
|
95
|
+
} = customProps;
|
91
96
|
const activeCard = value === selectedCard;
|
92
97
|
const handleChange = e => {
|
93
98
|
if (selectedCard === data?.value) {
|
@@ -118,7 +123,8 @@ const CardsMapping = props => {
|
|
118
123
|
title: label,
|
119
124
|
content: content,
|
120
125
|
infoIcon: infoIcon,
|
121
|
-
classes: classes
|
126
|
+
classes: classes,
|
127
|
+
translation: translation
|
122
128
|
})
|
123
129
|
});
|
124
130
|
};
|
@@ -24,6 +24,9 @@ const Color = props => {
|
|
24
24
|
label,
|
25
25
|
hideGradient
|
26
26
|
} = data;
|
27
|
+
const {
|
28
|
+
translation
|
29
|
+
} = customProps;
|
27
30
|
const [recentColors, setRecentColors] = useState({});
|
28
31
|
const editor = useSlateStatic();
|
29
32
|
const {
|
@@ -38,7 +41,7 @@ const Color = props => {
|
|
38
41
|
inputValue: inputValue || val
|
39
42
|
};
|
40
43
|
}, [editor, val]);
|
41
|
-
const getLable = label === "Text" ? "
|
44
|
+
const getLable = label === "Text" ? translation("selectTextColor") : label === "Background" ? translation("selectBgColor") : translation(label);
|
42
45
|
useEffect(() => {
|
43
46
|
const storedColors = JSON.parse(localStorage.getItem("recentColors"));
|
44
47
|
if (storedColors) {
|
@@ -83,9 +86,9 @@ const Color = props => {
|
|
83
86
|
height: "20px"
|
84
87
|
}
|
85
88
|
},
|
86
|
-
children: [label, data?.infoIcon ? /*#__PURE__*/_jsx(Tooltip, {
|
89
|
+
children: [translation(label), data?.infoIcon ? /*#__PURE__*/_jsx(Tooltip, {
|
87
90
|
arrow: true,
|
88
|
-
title: "
|
91
|
+
title: translation("noteText"),
|
89
92
|
children: /*#__PURE__*/_jsx("span", {
|
90
93
|
style: {
|
91
94
|
display: "inline-block"
|
@@ -96,7 +99,7 @@ const Color = props => {
|
|
96
99
|
}), /*#__PURE__*/_jsx(TextField, {
|
97
100
|
fullWidth: true,
|
98
101
|
value: inputValue,
|
99
|
-
placeholder: getLable || `${label} color code`,
|
102
|
+
placeholder: getLable || `${label} ${translation("color code")}`,
|
100
103
|
InputLabelProps: {
|
101
104
|
shrink: true
|
102
105
|
},
|
@@ -7,8 +7,12 @@ const ElementSize = props => {
|
|
7
7
|
const {
|
8
8
|
value,
|
9
9
|
data,
|
10
|
-
onChange
|
10
|
+
onChange,
|
11
|
+
customProps
|
11
12
|
} = props;
|
13
|
+
const {
|
14
|
+
translation
|
15
|
+
} = customProps;
|
12
16
|
const {
|
13
17
|
key
|
14
18
|
} = data;
|
@@ -45,13 +49,13 @@ const ElementSize = props => {
|
|
45
49
|
fontWeight: "500",
|
46
50
|
marginBottom: "5px"
|
47
51
|
},
|
48
|
-
children: "Width"
|
52
|
+
children: translation("Width")
|
49
53
|
}), /*#__PURE__*/_jsx(TextField, {
|
50
54
|
fullWidth: true,
|
51
55
|
name: wkey,
|
52
56
|
size: "small",
|
53
57
|
value: value ? value[wkey] : "100",
|
54
|
-
placeholder: "Width",
|
58
|
+
placeholder: translation("Width"),
|
55
59
|
onChange: handleChange,
|
56
60
|
InputProps: {
|
57
61
|
endAdornment: /*#__PURE__*/_jsxs(InputAdornment, {
|
@@ -97,14 +101,14 @@ const ElementSize = props => {
|
|
97
101
|
fontWeight: "500",
|
98
102
|
marginBottom: "5px"
|
99
103
|
},
|
100
|
-
children: "Height"
|
104
|
+
children: translation("Height")
|
101
105
|
}), /*#__PURE__*/_jsx(TextField, {
|
102
106
|
fullWidth: true,
|
103
107
|
name: "height",
|
104
108
|
size: "small",
|
105
109
|
value: value?.height,
|
106
|
-
placeholder: "Height",
|
107
|
-
helperText: "
|
110
|
+
placeholder: translation("Height"),
|
111
|
+
helperText: translation("heightHelperText"),
|
108
112
|
onChange: handleChange,
|
109
113
|
InputProps: {
|
110
114
|
endAdornment: /*#__PURE__*/_jsxs(InputAdornment, {
|
@@ -11,7 +11,8 @@ const FontSize = props => {
|
|
11
11
|
value: val,
|
12
12
|
data,
|
13
13
|
onChange,
|
14
|
-
elementProps
|
14
|
+
elementProps,
|
15
|
+
customProps
|
15
16
|
} = props;
|
16
17
|
const {
|
17
18
|
key,
|
@@ -21,6 +22,9 @@ const FontSize = props => {
|
|
21
22
|
const value = useMemo(() => {
|
22
23
|
return getElementStyle(editor, elementProps, "font-size") || val;
|
23
24
|
}, [editor, val]);
|
25
|
+
const {
|
26
|
+
translation
|
27
|
+
} = customProps;
|
24
28
|
const handleChange = e => {
|
25
29
|
let inc = parseInt(e.target.value) || 16;
|
26
30
|
inc = inc > 200 ? 200 : inc;
|
@@ -67,7 +71,7 @@ const FontSize = props => {
|
|
67
71
|
fontSize: "14px",
|
68
72
|
fontWeight: "500"
|
69
73
|
},
|
70
|
-
children: data?.label
|
74
|
+
children: translation(data?.label)
|
71
75
|
})
|
72
76
|
}), /*#__PURE__*/_jsx(Grid, {
|
73
77
|
item: true,
|
@@ -82,7 +86,7 @@ const FontSize = props => {
|
|
82
86
|
size: "small",
|
83
87
|
inputProps: {
|
84
88
|
style: {
|
85
|
-
// textAlign: "center",
|
89
|
+
// textAlign: "center",
|
86
90
|
padding: "11px"
|
87
91
|
}
|
88
92
|
},
|
@@ -8,8 +8,12 @@ const GridSize = props => {
|
|
8
8
|
const {
|
9
9
|
value: val,
|
10
10
|
data,
|
11
|
-
onChange
|
11
|
+
onChange,
|
12
|
+
customProps
|
12
13
|
} = props;
|
14
|
+
const {
|
15
|
+
translation
|
16
|
+
} = customProps;
|
13
17
|
const {
|
14
18
|
key
|
15
19
|
} = data;
|
@@ -34,7 +38,7 @@ const GridSize = props => {
|
|
34
38
|
fontWeight: 500,
|
35
39
|
marginBottom: "5px"
|
36
40
|
},
|
37
|
-
children: [data?.label || "Grid Size", ": ", value || 12]
|
41
|
+
children: [translation(data?.label) || translation("Grid Size"), ": ", value || 12]
|
38
42
|
}), /*#__PURE__*/_jsx("div", {
|
39
43
|
className: "sld-wrpr",
|
40
44
|
children: /*#__PURE__*/_jsx(Slider, {
|
@@ -12,6 +12,9 @@ const Icons = props => {
|
|
12
12
|
onChange,
|
13
13
|
customProps
|
14
14
|
} = props;
|
15
|
+
const {
|
16
|
+
translation
|
17
|
+
} = customProps;
|
15
18
|
const {
|
16
19
|
key
|
17
20
|
} = data;
|
@@ -58,7 +61,7 @@ const Icons = props => {
|
|
58
61
|
children: /*#__PURE__*/_jsx(TextField, {
|
59
62
|
fullWidth: true,
|
60
63
|
size: "small",
|
61
|
-
placeholder: "
|
64
|
+
placeholder: translation("searchIcons"),
|
62
65
|
value: val,
|
63
66
|
onChange: handleChange
|
64
67
|
})
|
@@ -70,7 +73,7 @@ const Icons = props => {
|
|
70
73
|
padding: "4px"
|
71
74
|
},
|
72
75
|
children: SelectedIcon ? /*#__PURE__*/_jsx(Tooltip, {
|
73
|
-
title: "
|
76
|
+
title: translation("clickToRemove"),
|
74
77
|
arrow: true,
|
75
78
|
children: /*#__PURE__*/_jsx(IconButton, {
|
76
79
|
onClick: onRemoveIcon,
|
@@ -14,6 +14,9 @@ const MenusArray = props => {
|
|
14
14
|
onChange,
|
15
15
|
customProps
|
16
16
|
} = props;
|
17
|
+
const {
|
18
|
+
translation
|
19
|
+
} = customProps;
|
17
20
|
const {
|
18
21
|
key
|
19
22
|
} = data;
|
@@ -79,7 +82,7 @@ const MenusArray = props => {
|
|
79
82
|
fontSize: "14px",
|
80
83
|
fontWeight: "500"
|
81
84
|
},
|
82
|
-
children: "Menu Variant"
|
85
|
+
children: translation("Menu Variant")
|
83
86
|
})
|
84
87
|
}), /*#__PURE__*/_jsxs(RadioGroup, {
|
85
88
|
row: true,
|
@@ -98,7 +101,7 @@ const MenusArray = props => {
|
|
98
101
|
sx: {
|
99
102
|
fontSize: "14px"
|
100
103
|
},
|
101
|
-
children: "Stacked"
|
104
|
+
children: translation("Stacked")
|
102
105
|
})
|
103
106
|
}), /*#__PURE__*/_jsx(FormControlLabel, {
|
104
107
|
value: "drawer",
|
@@ -110,7 +113,7 @@ const MenusArray = props => {
|
|
110
113
|
sx: {
|
111
114
|
fontSize: "14px"
|
112
115
|
},
|
113
|
-
children: "Drawer"
|
116
|
+
children: translation("Drawer")
|
114
117
|
})
|
115
118
|
})]
|
116
119
|
})]
|
@@ -141,7 +144,7 @@ const MenusArray = props => {
|
|
141
144
|
fullWidth: true,
|
142
145
|
disabled: true
|
143
146
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
144
|
-
title: "Link Settings",
|
147
|
+
title: translation("Link Settings"),
|
145
148
|
arrow: true,
|
146
149
|
children: /*#__PURE__*/_jsx(IconButton, {
|
147
150
|
onClick: () => setOpenNav({
|
@@ -151,7 +154,7 @@ const MenusArray = props => {
|
|
151
154
|
children: /*#__PURE__*/_jsx(Settings, {})
|
152
155
|
})
|
153
156
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
154
|
-
title: "Delete Menu",
|
157
|
+
title: translation("Delete Menu"),
|
155
158
|
arrow: true,
|
156
159
|
children: /*#__PURE__*/_jsx(IconButton, {
|
157
160
|
onClick: onDelete(i),
|
@@ -167,7 +170,7 @@ const MenusArray = props => {
|
|
167
170
|
sx: {
|
168
171
|
fontWeight: 700
|
169
172
|
},
|
170
|
-
children: "
|
173
|
+
children: translation("addTextIcon")
|
171
174
|
})
|
172
175
|
}), openNav ? /*#__PURE__*/_jsx(LinkSettings, {
|
173
176
|
handleClose: () => setOpenNav(null),
|
@@ -6,7 +6,8 @@ const MetaDataMapping = props => {
|
|
6
6
|
const {
|
7
7
|
data,
|
8
8
|
onChange,
|
9
|
-
elementProps
|
9
|
+
elementProps,
|
10
|
+
customProps
|
10
11
|
} = props;
|
11
12
|
const {
|
12
13
|
compType
|
@@ -33,7 +34,8 @@ const MetaDataMapping = props => {
|
|
33
34
|
element: elementProps,
|
34
35
|
value: data?.value,
|
35
36
|
data: updatedData,
|
36
|
-
onChange: handleCardSelect
|
37
|
+
onChange: handleCardSelect,
|
38
|
+
customProps: customProps
|
37
39
|
}) : null
|
38
40
|
});
|
39
41
|
};
|