@flozy/editor 3.8.7 → 3.8.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Editor/ChatEditor.js +2 -2
- package/dist/Editor/CommonEditor.js +170 -166
- package/dist/Editor/DialogWrapper.js +4 -3
- package/dist/Editor/Editor.css +4 -7
- package/dist/Editor/Elements/AI/AIInput.js +5 -16
- package/dist/Editor/Elements/AI/PopoverAIInput.js +64 -67
- package/dist/Editor/Elements/AI/Styles.js +1 -2
- package/dist/Editor/Elements/AppHeader/AppHeader.js +40 -49
- package/dist/Editor/Elements/Button/EditorButton.js +33 -38
- package/dist/Editor/Elements/Color Picker/ColorButtons.js +17 -60
- package/dist/Editor/Elements/Color Picker/ColorPicker.css +1 -25
- package/dist/Editor/Elements/Color Picker/ColorPicker.js +4 -4
- package/dist/Editor/Elements/Color Picker/Styles.js +1 -2
- package/dist/Editor/Elements/Embed/Image.js +15 -14
- package/dist/Editor/Elements/Embed/Video.js +12 -8
- package/dist/Editor/Elements/Emoji/EmojiButton.js +11 -7
- package/dist/Editor/Elements/Form/Workflow/FormWorkflow.js +3 -12
- package/dist/Editor/Elements/Form/Workflow/UserInputs.js +1 -2
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +391 -0
- package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +193 -0
- package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +23 -0
- package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +184 -0
- package/dist/Editor/Elements/FreeGrid/Options/AddElement.js +36 -0
- package/dist/Editor/Elements/FreeGrid/Options/More.js +24 -0
- package/dist/Editor/Elements/FreeGrid/Options/SectionSettings.js +47 -0
- package/dist/Editor/Elements/FreeGrid/Options/sectionItemOptions.js +11 -0
- package/dist/Editor/Elements/FreeGrid/breakpointConstants.js +75 -0
- package/dist/Editor/Elements/FreeGrid/styles.js +159 -0
- package/dist/Editor/Elements/Grid/Grid.js +14 -34
- package/dist/Editor/Elements/Grid/GridItem.js +31 -23
- package/dist/Editor/Elements/Link/Link.js +1 -6
- package/dist/Editor/Elements/Link/LinkButton.js +2 -4
- package/dist/Editor/Elements/Link/LinkPopup.js +3 -10
- package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +3 -3
- package/dist/Editor/Elements/Signature/SignaturePopup.js +3 -14
- package/dist/Editor/Elements/SimpleText/index.js +9 -8
- package/dist/Editor/Elements/SimpleText/style.js +37 -0
- package/dist/Editor/Elements/Table/Styles.js +1 -23
- package/dist/Editor/Elements/Table/Table.js +1 -2
- package/dist/Editor/Elements/Table/TableCell.js +7 -69
- package/dist/Editor/Elements/TableContextMenu/TableContextMenu.js +0 -1
- package/dist/Editor/ErrorBoundary.js +30 -0
- package/dist/Editor/MiniEditor.js +1 -3
- package/dist/Editor/Styles/EditorStyles.js +23 -0
- package/dist/Editor/Toolbar/Basic/index.js +2 -4
- package/dist/Editor/Toolbar/FormatTools/Dropdown.js +2 -26
- package/dist/Editor/Toolbar/FormatTools/MarkButton.js +2 -2
- package/dist/Editor/Toolbar/FormatTools/TextSize.js +18 -29
- package/dist/Editor/Toolbar/Mini/MiniToolbar.js +2 -4
- package/dist/Editor/Toolbar/Mini/Options/Options.js +0 -10
- package/dist/Editor/Toolbar/Mini/Styles.js +0 -7
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +11 -4
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +86 -213
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +1 -2
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +13 -20
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +8 -52
- package/dist/Editor/Toolbar/PopupTool/index.js +13 -6
- package/dist/Editor/Toolbar/Toolbar.js +7 -0
- package/dist/Editor/Toolbar/toolbarGroups.js +11 -48
- package/dist/Editor/assets/svg/AIIcons.js +1 -153
- package/dist/Editor/assets/svg/AddTemplateIcon.js +10 -13
- package/dist/Editor/assets/svg/TextIcon.js +5 -8
- package/dist/Editor/common/ColorPickerButton.js +9 -25
- package/dist/Editor/common/DnD/DragHandleButton.js +47 -56
- package/dist/Editor/common/Icon.js +8 -41
- package/dist/Editor/common/LinkSettings/NavComponents.js +2 -5
- package/dist/Editor/common/LinkSettings/index.js +2 -4
- package/dist/Editor/common/LinkSettings/navOptions.js +2 -7
- package/dist/Editor/common/LinkSettings/style.js +8 -11
- package/dist/Editor/common/MentionsPopup/index.js +12 -8
- package/dist/Editor/common/RnD/ContextMenu/CMenus.js +105 -0
- package/dist/Editor/common/RnD/ContextMenu/index.js +38 -0
- package/dist/Editor/common/RnD/ContextMenu/styles.js +21 -0
- package/dist/Editor/common/RnD/DragInfo/index.js +31 -0
- package/dist/Editor/common/RnD/DragInfo/styles.js +15 -0
- package/dist/Editor/common/RnD/DragOver/index.js +46 -0
- package/dist/Editor/common/RnD/DragOver/styles.js +23 -0
- package/dist/Editor/common/RnD/ElementOptions/Actions.js +82 -0
- package/dist/Editor/common/RnD/ElementOptions/Icons/LinkIcon.js +26 -0
- package/dist/Editor/common/RnD/ElementOptions/index.js +93 -0
- package/dist/Editor/common/RnD/ElementOptions/styles.js +41 -0
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Link.js +153 -0
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +58 -0
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/index.js +7 -0
- package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +46 -0
- package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +46 -0
- package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +46 -0
- package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +30 -0
- package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +46 -0
- package/dist/Editor/common/RnD/ElementSettings/Settings/index.js +13 -0
- package/dist/Editor/common/RnD/ElementSettings/index.js +17 -0
- package/dist/Editor/common/RnD/ElementSettings/settingsConstants.js +14 -0
- package/dist/Editor/common/RnD/ElementSettings/styles.js +76 -0
- package/dist/Editor/common/RnD/GuideLines/BoundaryLine.js +52 -0
- package/dist/Editor/common/RnD/GuideLines/index.js +33 -0
- package/dist/Editor/common/RnD/GuideLines/styles.js +60 -0
- package/dist/Editor/common/RnD/OptionsPopup/index.js +50 -0
- package/dist/Editor/common/RnD/OptionsPopup/style.js +36 -0
- package/dist/Editor/common/RnD/RnDCopy.js +23 -0
- package/dist/Editor/common/RnD/ShadowElement.js +34 -0
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +40 -0
- package/dist/Editor/common/RnD/SwitchViewport/styles.js +24 -0
- package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +63 -0
- package/dist/Editor/common/RnD/TransformHandles/CornerHandle.js +19 -0
- package/dist/Editor/common/RnD/TransformHandles/Icons/BottomRightIcon.js +13 -0
- package/dist/Editor/common/RnD/TransformHandles/SizeHandle.js +18 -0
- package/dist/Editor/common/RnD/TransformHandles/index.js +62 -0
- package/dist/Editor/common/RnD/Utils/alignmentDetection.js +26 -0
- package/dist/Editor/common/RnD/Utils/calculateDropItem.js +98 -0
- package/dist/Editor/common/RnD/Utils/collisionDetection.js +52 -0
- package/dist/Editor/common/RnD/Utils/gridDropItem.js +148 -0
- package/dist/Editor/common/RnD/Utils/index.js +251 -0
- package/dist/Editor/common/RnD/VirtualElement/index.js +76 -0
- package/dist/Editor/common/RnD/VirtualElement/styles.js +27 -0
- package/dist/Editor/common/RnD/VirtualElement/updateAutoProps.js +28 -0
- package/dist/Editor/common/RnD/index.js +503 -0
- package/dist/Editor/common/RnD/styles.js +4 -0
- package/dist/Editor/common/Section/index.js +28 -69
- package/dist/Editor/common/Section/styles.js +6 -12
- package/dist/Editor/common/Shorthands/elements.js +12 -54
- package/dist/Editor/common/StyleBuilder/boxStyle.js +30 -0
- package/dist/Editor/common/StyleBuilder/buttonStyle.js +2 -4
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +16 -19
- package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +7 -15
- package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +1 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +7 -31
- package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +4 -13
- package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +4 -14
- package/dist/Editor/common/StyleBuilder/index.js +1 -1
- package/dist/Editor/common/StyleBuilder/sectionStyle.js +13 -2
- package/dist/Editor/common/iconslist.js +31 -0
- package/dist/Editor/helper/RnD/focusOnNewItem.js +39 -0
- package/dist/Editor/helper/RnD/scrollToNewSection.js +24 -0
- package/dist/Editor/helper/breakpoint.js +5 -0
- package/dist/Editor/helper/index.js +139 -0
- package/dist/Editor/helper/theme.js +48 -185
- package/dist/Editor/hooks/useBreakpoints.js +34 -0
- package/dist/Editor/hooks/useMouseMove.js +37 -12
- package/dist/Editor/hooks/useWindowMessage.js +7 -10
- package/dist/Editor/hooks/withCommon.js +2 -1
- package/dist/Editor/hooks/withErrorHandling.js +14 -0
- package/dist/Editor/plugins/withEmbeds.js +1 -1
- package/dist/Editor/plugins/withHTML.js +1 -1
- package/dist/Editor/plugins/withTable.js +1 -1
- package/dist/Editor/theme/ThemeList.js +173 -50
- package/dist/Editor/utils/RnD/RnDCtrlCmds.js +168 -0
- package/dist/Editor/utils/SlateUtilityFunctions.js +47 -163
- package/dist/Editor/utils/button.js +17 -1
- package/dist/Editor/utils/events.js +7 -54
- package/dist/Editor/utils/font.js +37 -40
- package/dist/Editor/utils/freegrid.js +49 -0
- package/dist/Editor/utils/helper.js +31 -31
- package/dist/Editor/utils/table.js +43 -51
- package/package.json +6 -4
- package/dist/Editor/Elements/AI/VoiceToText/AudioWave.js +0 -73
- package/dist/Editor/Elements/AI/VoiceToText/index.js +0 -167
- package/dist/Editor/Elements/AI/VoiceToText/style.js +0 -40
- package/dist/Editor/Elements/Link/LinkPopupStyles.js +0 -28
- package/dist/Editor/Elements/Redo/RedoButton.js +0 -14
- package/dist/Editor/Elements/Undo/UndoButton.js +0 -14
- package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -438
- package/dist/Editor/assets/svg/RedoIcon.js +0 -27
- package/dist/Editor/assets/svg/SettingsIcon.js +0 -28
- package/dist/Editor/assets/svg/ThemeIcons.js +0 -291
- package/dist/Editor/assets/svg/UndoIcon.js +0 -27
- package/dist/Editor/common/CustomColorPicker/index.js +0 -106
- package/dist/Editor/common/CustomColorPicker/style.js +0 -53
- package/dist/Editor/common/CustomDialog/index.js +0 -94
- package/dist/Editor/common/CustomDialog/style.js +0 -67
- package/dist/Editor/common/CustomSelect.js +0 -33
- package/dist/Editor/hooks/useEditorTheme.js +0 -139
- package/dist/Editor/theme/index.js +0 -144
- 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 -21
- package/dist/Editor/themeSettings/colorTheme/index.js +0 -290
- package/dist/Editor/themeSettings/colorTheme/style.js +0 -77
- package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -123
- package/dist/Editor/themeSettings/fonts/index.js +0 -213
- package/dist/Editor/themeSettings/fonts/style.js +0 -44
- package/dist/Editor/themeSettings/icons.js +0 -60
- package/dist/Editor/themeSettings/index.js +0 -320
- package/dist/Editor/themeSettings/style.js +0 -152
- package/dist/Editor/themeSettingsAI/icons.js +0 -96
- package/dist/Editor/themeSettingsAI/index.js +0 -356
- package/dist/Editor/themeSettingsAI/saveTheme.js +0 -190
- package/dist/Editor/themeSettingsAI/style.js +0 -247
@@ -1,247 +0,0 @@
|
|
1
|
-
const style = () => ({
|
2
|
-
".fs-12": {
|
3
|
-
fontSize: "12px"
|
4
|
-
},
|
5
|
-
".fs-14": {
|
6
|
-
fontSize: "14px"
|
7
|
-
},
|
8
|
-
".fw-500": {
|
9
|
-
fontWeight: "500"
|
10
|
-
},
|
11
|
-
".fw-600": {
|
12
|
-
fontWeight: "600"
|
13
|
-
},
|
14
|
-
".pointer": {
|
15
|
-
cursor: "pointer"
|
16
|
-
},
|
17
|
-
".transformNone": {
|
18
|
-
textTransform: "none"
|
19
|
-
},
|
20
|
-
".settingsContainer": {
|
21
|
-
width: "340px",
|
22
|
-
padding: "16px 16px",
|
23
|
-
background: "#fff",
|
24
|
-
".header": {
|
25
|
-
borderBottom: `1px solid #DCE4EC`,
|
26
|
-
paddingBottom: "8px"
|
27
|
-
// marginBottom: "16px",
|
28
|
-
}
|
29
|
-
},
|
30
|
-
|
31
|
-
".title": {
|
32
|
-
fontWeight: "700",
|
33
|
-
fontSize: "14px"
|
34
|
-
},
|
35
|
-
".closeBtn": {
|
36
|
-
width: "26px",
|
37
|
-
height: "26px",
|
38
|
-
BorderRadius: "4px",
|
39
|
-
flexShrik: "0",
|
40
|
-
padding: "4px",
|
41
|
-
background: " #F8FAFC",
|
42
|
-
borderRadius: "4px"
|
43
|
-
},
|
44
|
-
".MuiTabs-scroller": {
|
45
|
-
borderBottom: `1px solid #DCE4EC`
|
46
|
-
},
|
47
|
-
".themeCardWrapper": {
|
48
|
-
borderRadius: "4px",
|
49
|
-
".active": {
|
50
|
-
background: "#ECF2FF"
|
51
|
-
}
|
52
|
-
},
|
53
|
-
".primaryCard, .secondaryCard": {
|
54
|
-
width: "44px",
|
55
|
-
height: "44px",
|
56
|
-
borderRadius: "5px",
|
57
|
-
border: `1px solid #929292`
|
58
|
-
},
|
59
|
-
".flexAlign": {
|
60
|
-
display: "flex",
|
61
|
-
alignItems: "center"
|
62
|
-
},
|
63
|
-
".activeColorBox, .xsColorBox": {
|
64
|
-
width: "24px",
|
65
|
-
height: "24px",
|
66
|
-
borderRadius: "5px",
|
67
|
-
border: `1px solid #929292`
|
68
|
-
},
|
69
|
-
".themeCard": {
|
70
|
-
borderRadius: "7px",
|
71
|
-
padding: "16px",
|
72
|
-
border: "1px solid #F3F3F3",
|
73
|
-
boxShadow: "1px 2px 5px 0px #00000014",
|
74
|
-
position: "relative",
|
75
|
-
flexWrap: "nowrap",
|
76
|
-
".tickIcon": {
|
77
|
-
visibility: "hidden",
|
78
|
-
opacity: "0",
|
79
|
-
position: "absolute",
|
80
|
-
right: "-8px",
|
81
|
-
top: "-8px"
|
82
|
-
},
|
83
|
-
"&.selected": {
|
84
|
-
".tickIcon": {
|
85
|
-
visibility: "visible",
|
86
|
-
opacity: "1"
|
87
|
-
}
|
88
|
-
}
|
89
|
-
},
|
90
|
-
".otherColors": {
|
91
|
-
display: "flex",
|
92
|
-
flexWrap: "wrap",
|
93
|
-
width: "48px",
|
94
|
-
".smallCard": {
|
95
|
-
width: "20px",
|
96
|
-
height: "20px",
|
97
|
-
borderRadius: "5px",
|
98
|
-
border: `1px solid #929292`
|
99
|
-
}
|
100
|
-
},
|
101
|
-
".imageUpload": {
|
102
|
-
background: "#F3F3F3",
|
103
|
-
borderRadius: "12px",
|
104
|
-
padding: "10px",
|
105
|
-
height: "208px",
|
106
|
-
position: "relative",
|
107
|
-
"& .resetIcon": {
|
108
|
-
position: "absolute",
|
109
|
-
right: "10px",
|
110
|
-
top: "10px"
|
111
|
-
},
|
112
|
-
".changeImgText": {
|
113
|
-
position: "absolute",
|
114
|
-
left: "50%",
|
115
|
-
top: "50%",
|
116
|
-
transform: "translate(-50%, -50%)",
|
117
|
-
zIndex: 1,
|
118
|
-
background: "#0000004D",
|
119
|
-
color: "#fff",
|
120
|
-
padding: "6px",
|
121
|
-
borderRadius: "6px",
|
122
|
-
fontSize: "12px",
|
123
|
-
fontWeight: 600,
|
124
|
-
opacity: "0",
|
125
|
-
visibility: "hidden"
|
126
|
-
},
|
127
|
-
"&:hover": {
|
128
|
-
".changeImgText": {
|
129
|
-
opacity: "1",
|
130
|
-
visibility: "visible"
|
131
|
-
}
|
132
|
-
}
|
133
|
-
},
|
134
|
-
".imgUploadInner": {
|
135
|
-
background: "#fff",
|
136
|
-
borderRadius: "10px",
|
137
|
-
border: "0.79px dashed #8360FD",
|
138
|
-
height: "100%"
|
139
|
-
},
|
140
|
-
".outlineBtn": {
|
141
|
-
color: "#2563EB",
|
142
|
-
borderRadius: "8px",
|
143
|
-
boxShadow: "0px 4px 10px 0px #00000026",
|
144
|
-
border: "1px solid #2563EB",
|
145
|
-
background: "#EBF1F9",
|
146
|
-
height: "34px",
|
147
|
-
textTransform: "unset"
|
148
|
-
},
|
149
|
-
".seondaryOutlineBtn": {
|
150
|
-
border: "1px solid #D8DDE1",
|
151
|
-
borderRadius: "8px",
|
152
|
-
// boxShadow: "0px 4px 10px 0px #00000026",
|
153
|
-
height: "34px",
|
154
|
-
textTransform: "unset",
|
155
|
-
background: "#eceef3",
|
156
|
-
color: "#64748B"
|
157
|
-
},
|
158
|
-
".blueBtn": {
|
159
|
-
boxShadow: "0px 4px 10px 0px #00000026",
|
160
|
-
background: "#2563EB",
|
161
|
-
borderRadius: "8px",
|
162
|
-
textTransform: "unset",
|
163
|
-
height: "34px",
|
164
|
-
color: "#fff",
|
165
|
-
"&.disabled": {
|
166
|
-
background: "#D9D9DD !important",
|
167
|
-
color: "#fff !important"
|
168
|
-
}
|
169
|
-
},
|
170
|
-
".generatedItem": {
|
171
|
-
border: "1px solid #E4E6E9",
|
172
|
-
borderRadius: "7px",
|
173
|
-
padding: "14px",
|
174
|
-
display: "flex",
|
175
|
-
gap: "16px",
|
176
|
-
position: "relative",
|
177
|
-
justifyContent: "space-between",
|
178
|
-
marginBottom: "12px",
|
179
|
-
".tickIcon": {
|
180
|
-
visibility: "hidden",
|
181
|
-
opacity: "0",
|
182
|
-
position: "absolute",
|
183
|
-
right: "-8px",
|
184
|
-
top: "-8px"
|
185
|
-
},
|
186
|
-
"&.selected": {
|
187
|
-
border: "1px solid #2563EB",
|
188
|
-
boxShadow: " 3px 3px 8px 0px #2563EB40",
|
189
|
-
".tickIcon": {
|
190
|
-
visibility: "visible",
|
191
|
-
opacity: "1"
|
192
|
-
}
|
193
|
-
},
|
194
|
-
".colorBox": {
|
195
|
-
border: "1px solid #929292",
|
196
|
-
height: "28px",
|
197
|
-
width: "28px",
|
198
|
-
borderRadius: "5px"
|
199
|
-
}
|
200
|
-
},
|
201
|
-
".textArea": {
|
202
|
-
background: "#F3F3F3",
|
203
|
-
borderRadius: "12px",
|
204
|
-
padding: "10px",
|
205
|
-
height: "208px",
|
206
|
-
"& textarea": {
|
207
|
-
width: "100%",
|
208
|
-
height: "100% !important",
|
209
|
-
border: "0.79px solid #8360FD",
|
210
|
-
background: "#FFFFFF",
|
211
|
-
borderRadius: "8px",
|
212
|
-
padding: "10px"
|
213
|
-
}
|
214
|
-
},
|
215
|
-
".imageUrl": {
|
216
|
-
height: "auto !important",
|
217
|
-
".MuiOutlinedInput-root": {
|
218
|
-
border: "0.79px solid #8360FD",
|
219
|
-
background: "#FFFFFF",
|
220
|
-
borderRadius: "8px",
|
221
|
-
".tickIcon": {
|
222
|
-
width: "18px"
|
223
|
-
}
|
224
|
-
},
|
225
|
-
"&.invalidUrl": {
|
226
|
-
".MuiInputAdornment-root": {
|
227
|
-
".tickIcon": {
|
228
|
-
".fillPath": {
|
229
|
-
fill: "#D9D9DD!important"
|
230
|
-
}
|
231
|
-
}
|
232
|
-
}
|
233
|
-
}
|
234
|
-
},
|
235
|
-
".saveThemeContainer": {
|
236
|
-
".MuiOutlinedInput-root": {
|
237
|
-
borderRadius: "8px",
|
238
|
-
boxShadow: "0px 4px 16px 0px #0000000D"
|
239
|
-
}
|
240
|
-
},
|
241
|
-
".uploadedImage": {
|
242
|
-
width: "126px",
|
243
|
-
height: "126px",
|
244
|
-
borderRadius: "126px"
|
245
|
-
}
|
246
|
-
});
|
247
|
-
export default style;
|