@flozy/editor 9.8.5 → 9.8.6

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.
Files changed (142) hide show
  1. package/dist/Editor/ChatEditor.js +17 -16
  2. package/dist/Editor/CommonEditor.js +119 -18
  3. package/dist/Editor/DialogWrapper.js +31 -25
  4. package/dist/Editor/Editor.css +16 -8
  5. package/dist/Editor/Elements/AI/PopoverAIInput.js +11 -3
  6. package/dist/Editor/Elements/AppHeader/AppHeader.js +3 -3
  7. package/dist/Editor/Elements/Button/EditorButton.js +37 -25
  8. package/dist/Editor/Elements/Color Picker/ColorButtons.js +61 -14
  9. package/dist/Editor/Elements/Color Picker/ColorPicker.css +25 -1
  10. package/dist/Editor/Elements/Color Picker/ColorPicker.js +10 -7
  11. package/dist/Editor/Elements/Color Picker/Styles.js +15 -13
  12. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +4 -2
  13. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +448 -0
  14. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +21 -6
  15. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +5 -1
  16. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +3 -2
  17. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +11 -0
  18. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +8 -4
  19. package/dist/Editor/Elements/Embed/Image.js +2 -2
  20. package/dist/Editor/Elements/Embed/Video.js +1 -1
  21. package/dist/Editor/Elements/Form/Workflow/Styles.js +24 -22
  22. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +48 -22
  23. package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +25 -4
  24. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +46 -3
  25. package/dist/Editor/Elements/FreeGrid/Options/More.js +7 -2
  26. package/dist/Editor/Elements/FreeGrid/styles.js +3 -0
  27. package/dist/Editor/Elements/Grid/GridItem.js +1 -1
  28. package/dist/Editor/Elements/List/CheckList.js +4 -1
  29. package/dist/Editor/Elements/Search/SearchButton.js +1 -1
  30. package/dist/Editor/Elements/Search/SearchList.js +3 -2
  31. package/dist/Editor/Elements/Signature/SignatureOptions/DrawSignature.js +2 -8
  32. package/dist/Editor/Elements/SimpleText/index.js +9 -1
  33. package/dist/Editor/Elements/SimpleText/style.js +2 -2
  34. package/dist/Editor/Elements/Table/Table.js +3 -3
  35. package/dist/Editor/Elements/Title/title.js +9 -8
  36. package/dist/Editor/Elements/Variables/VariableButton.js +10 -1
  37. package/dist/Editor/MiniEditor.js +2 -1
  38. package/dist/Editor/Styles/EditorStyles.js +5 -5
  39. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +27 -3
  40. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +4 -3
  41. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +2 -2
  42. package/dist/Editor/Toolbar/FormatTools/TextSize.js +10 -13
  43. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +4 -2
  44. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +6 -13
  45. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +167 -42
  46. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +7 -4
  47. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +2 -1
  48. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +72 -12
  49. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +95 -23
  50. package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +439 -0
  51. package/dist/Editor/Toolbar/PopupTool/index.js +1 -1
  52. package/dist/Editor/Toolbar/toolbarGroups.js +48 -6
  53. package/dist/Editor/assets/svg/BackIcon.js +18 -0
  54. package/dist/Editor/assets/svg/ClearAllRounded.js +31 -0
  55. package/dist/Editor/assets/svg/ResetIconNew.js +23 -0
  56. package/dist/Editor/assets/svg/ThemeIcons.js +293 -0
  57. package/dist/Editor/common/ColorPickerButton.js +38 -16
  58. package/dist/Editor/common/CustomColorPicker/index.js +131 -0
  59. package/dist/Editor/common/CustomColorPicker/style.js +53 -0
  60. package/dist/Editor/common/CustomDialog2/index.js +94 -0
  61. package/dist/Editor/common/CustomDialog2/style.js +67 -0
  62. package/dist/Editor/common/CustomSelect.js +43 -0
  63. package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
  64. package/dist/Editor/common/FontLoader/FontLoader.js +3 -0
  65. package/dist/Editor/common/Icon.js +31 -1
  66. package/dist/Editor/common/ImageSelector/Styles.js +3 -9
  67. package/dist/Editor/common/MUIIcon/index.js +0 -3
  68. package/dist/Editor/common/RnD/ContextMenu/CMenus.js +24 -0
  69. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +2 -1
  70. package/dist/Editor/common/RnD/ElementSettings/Settings/AppHeaderSettings.js +3 -2
  71. package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +3 -2
  72. package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +3 -2
  73. package/dist/Editor/common/RnD/ElementSettings/Settings/CodeSettings.js +3 -2
  74. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +4 -2
  75. package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +3 -2
  76. package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +3 -2
  77. package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +3 -1
  78. package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +3 -2
  79. package/dist/Editor/common/RnD/ShadowElement.js +2 -1
  80. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +8 -2
  81. package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +17 -0
  82. package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +6 -3
  83. package/dist/Editor/common/RnD/Utils/gridDropItem.js +73 -9
  84. package/dist/Editor/common/RnD/Utils/index.js +3 -0
  85. package/dist/Editor/common/RnD/VirtualElement/BoxHeaderAutoAlignment.js +43 -0
  86. package/dist/Editor/common/RnD/VirtualElement/ForceAutoAlignment.js +44 -0
  87. package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +134 -0
  88. package/dist/Editor/common/RnD/VirtualElement/helper.js +382 -0
  89. package/dist/Editor/common/RnD/VirtualElement/index.js +187 -103
  90. package/dist/Editor/common/RnD/VirtualElement/styles.js +155 -7
  91. package/dist/Editor/common/RnD/VirtualElement/updateAutoProps.js +5 -3
  92. package/dist/Editor/common/RnD/index.js +59 -10
  93. package/dist/Editor/common/Shorthands/elements.js +54 -0
  94. package/dist/Editor/common/SnackBar/index.js +43 -0
  95. package/dist/Editor/common/StyleBuilder/buttonStyle.js +4 -2
  96. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +5 -0
  97. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +12 -2
  98. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +15 -7
  99. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +16 -8
  100. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +36 -10
  101. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +16 -7
  102. package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +7 -6
  103. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +15 -7
  104. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +5 -7
  105. package/dist/Editor/common/SwipeableDrawer/index.js +1 -1
  106. package/dist/Editor/common/Uploader.js +8 -0
  107. package/dist/Editor/common/iconslist.js +7 -8
  108. package/dist/Editor/commonStyle.js +95 -60
  109. package/dist/Editor/helper/textIndeces.js +58 -0
  110. package/dist/Editor/helper/theme.js +202 -2
  111. package/dist/Editor/hooks/useAutoScroll.js +38 -0
  112. package/dist/Editor/hooks/useEditorTheme.js +153 -0
  113. package/dist/Editor/hooks/useMouseMove.js +9 -3
  114. package/dist/Editor/hooks/useThemeValues.js +63 -0
  115. package/dist/Editor/plugins/withEmbeds.js +1 -1
  116. package/dist/Editor/plugins/withHTML.js +11 -9
  117. package/dist/Editor/plugins/withLinks.js +9 -10
  118. package/dist/Editor/plugins/withTable.js +1 -1
  119. package/dist/Editor/theme/ThemeList.js +50 -173
  120. package/dist/Editor/theme/index.js +149 -0
  121. package/dist/Editor/themeSettings/ActiveTheme.js +72 -0
  122. package/dist/Editor/themeSettings/buttons/index.js +290 -0
  123. package/dist/Editor/themeSettings/buttons/style.js +23 -0
  124. package/dist/Editor/themeSettings/colorTheme/index.js +309 -0
  125. package/dist/Editor/themeSettings/colorTheme/style.js +81 -0
  126. package/dist/Editor/themeSettings/fonts/PreviewElement.js +121 -0
  127. package/dist/Editor/themeSettings/fonts/index.js +240 -0
  128. package/dist/Editor/themeSettings/fonts/style.js +62 -0
  129. package/dist/Editor/themeSettings/icons.js +60 -0
  130. package/dist/Editor/themeSettings/index.js +361 -0
  131. package/dist/Editor/themeSettings/style.js +292 -0
  132. package/dist/Editor/themeSettingsAI/icons.js +96 -0
  133. package/dist/Editor/themeSettingsAI/index.js +355 -0
  134. package/dist/Editor/themeSettingsAI/saveTheme.js +202 -0
  135. package/dist/Editor/themeSettingsAI/style.js +324 -0
  136. package/dist/Editor/utils/SlateUtilityFunctions.js +171 -45
  137. package/dist/Editor/utils/button.js +1 -17
  138. package/dist/Editor/utils/draftToSlate.js +3 -2
  139. package/dist/Editor/utils/font.js +40 -37
  140. package/dist/Editor/utils/freegrid.js +2 -3
  141. package/dist/Editor/utils/helper.js +90 -19
  142. package/package.json +4 -4
@@ -0,0 +1,324 @@
1
+ const style = ({
2
+ appTheme: theme
3
+ }) => ({
4
+ ".fs-12": {
5
+ fontSize: "12px"
6
+ },
7
+ ".fs-14": {
8
+ fontSize: "14px"
9
+ },
10
+ ".fw-500": {
11
+ fontWeight: "500"
12
+ },
13
+ ".fw-600": {
14
+ fontWeight: "600"
15
+ },
16
+ ".pointer": {
17
+ cursor: "pointer"
18
+ },
19
+ ".transformNone": {
20
+ textTransform: "none"
21
+ },
22
+ ".settingsContainer": {
23
+ width: "340px",
24
+ padding: "16px 16px",
25
+ background: "#fff",
26
+ ".header": {
27
+ borderBottom: `1px solid #DCE4EC`,
28
+ paddingBottom: "8px"
29
+ // marginBottom: "16px",
30
+ }
31
+ },
32
+
33
+ ".title": {
34
+ fontWeight: "700",
35
+ fontSize: "14px"
36
+ },
37
+ ".closeBtn": {
38
+ width: "26px",
39
+ height: "26px",
40
+ BorderRadius: "4px",
41
+ flexShrik: "0",
42
+ padding: "4px",
43
+ background: " #F8FAFC",
44
+ borderRadius: "4px"
45
+ },
46
+ ".MuiTabs-scroller": {
47
+ borderBottom: `1px solid #DCE4EC`
48
+ },
49
+ ".themeCardWrapper": {
50
+ borderRadius: "4px",
51
+ ".active": {
52
+ background: "#ECF2FF"
53
+ }
54
+ },
55
+ ".primaryCard, .secondaryCard": {
56
+ width: "44px",
57
+ height: "44px",
58
+ borderRadius: "5px",
59
+ border: `1px solid #929292`
60
+ },
61
+ ".flexAlign": {
62
+ display: "flex",
63
+ alignItems: "center"
64
+ },
65
+ ".activeColorBox, .xsColorBox": {
66
+ width: "24px",
67
+ height: "24px",
68
+ borderRadius: "5px",
69
+ border: `1px solid #929292`
70
+ },
71
+ ".themeCard": {
72
+ borderRadius: "7px",
73
+ padding: "16px",
74
+ border: "1px solid #F3F3F3",
75
+ boxShadow: "1px 2px 5px 0px #00000014",
76
+ position: "relative",
77
+ flexWrap: "nowrap",
78
+ ".tickIcon": {
79
+ visibility: "hidden",
80
+ opacity: "0",
81
+ position: "absolute",
82
+ right: "-8px",
83
+ top: "-8px"
84
+ },
85
+ "&.selected": {
86
+ ".tickIcon": {
87
+ visibility: "visible",
88
+ opacity: "1"
89
+ }
90
+ }
91
+ },
92
+ ".otherColors": {
93
+ display: "flex",
94
+ flexWrap: "wrap",
95
+ width: "48px",
96
+ ".smallCard": {
97
+ width: "20px",
98
+ height: "20px",
99
+ borderRadius: "5px",
100
+ border: `1px solid #929292`
101
+ }
102
+ },
103
+ ".imageUpload": {
104
+ background: "#F3F3F3",
105
+ borderRadius: "12px",
106
+ padding: "10px",
107
+ height: "208px",
108
+ position: "relative",
109
+ "& .resetIcon": {
110
+ position: "absolute",
111
+ right: "10px",
112
+ top: "10px"
113
+ },
114
+ ".changeImgText": {
115
+ position: "absolute",
116
+ left: "50%",
117
+ top: "50%",
118
+ transform: "translate(-50%, -50%)",
119
+ zIndex: 1,
120
+ background: "#0000004D",
121
+ color: "#fff",
122
+ padding: "6px",
123
+ borderRadius: "6px",
124
+ fontSize: "12px",
125
+ fontWeight: 600,
126
+ opacity: "0",
127
+ visibility: "hidden"
128
+ },
129
+ "&:hover": {
130
+ ".changeImgText": {
131
+ opacity: "1",
132
+ visibility: "visible"
133
+ }
134
+ }
135
+ },
136
+ ".imgUploadInner": {
137
+ background: "#fff",
138
+ borderRadius: "10px",
139
+ border: "0.79px dashed #8360FD",
140
+ height: "100%"
141
+ },
142
+ ".outlineBtn": {
143
+ color: "#2563EB",
144
+ borderRadius: "10px",
145
+ boxShadow: "0px 4px 10px 0px #00000026",
146
+ border: "1px solid #2563EB",
147
+ background: "#EBF1F9",
148
+ height: "34px",
149
+ textTransform: "unset",
150
+ fontWeight: "bold",
151
+ "&:hover": {
152
+ background: "#EBF1F9"
153
+ }
154
+ },
155
+ ".seondaryOutlineBtn": {
156
+ border: "1px solid #D8DDE1",
157
+ borderRadius: "8px",
158
+ // boxShadow: "0px 4px 10px 0px #00000026",
159
+ height: "34px",
160
+ textTransform: "unset",
161
+ background: "#f5f6f9 !important",
162
+ color: "#64748B !important",
163
+ "&:hover": {
164
+ border: "1px solid #D8DDE1",
165
+ background: "#f5f6f9 !important"
166
+ }
167
+ },
168
+ ".blueBtn": {
169
+ boxShadow: "0px 4px 10px 0px #00000026",
170
+ background: "#2563EB",
171
+ borderRadius: "8px",
172
+ textTransform: "unset",
173
+ height: "34px",
174
+ color: "#fff",
175
+ fontWeight: "bold",
176
+ "&.disabled": {
177
+ background: "#D9D9DD !important",
178
+ color: "#fff !important"
179
+ }
180
+ },
181
+ ".generatedItem": {
182
+ border: "1px solid #E4E6E9",
183
+ borderRadius: "7px",
184
+ padding: "14px",
185
+ display: "flex",
186
+ gap: "16px",
187
+ position: "relative",
188
+ justifyContent: "space-between",
189
+ marginBottom: "12px",
190
+ ".tickIcon": {
191
+ visibility: "hidden",
192
+ opacity: "0",
193
+ position: "absolute",
194
+ right: "-8px",
195
+ top: "-8px"
196
+ },
197
+ "&.selected": {
198
+ border: "1px solid #2563EB",
199
+ boxShadow: " 3px 3px 8px 0px #2563EB40",
200
+ ".tickIcon": {
201
+ visibility: "visible",
202
+ opacity: "1"
203
+ }
204
+ },
205
+ ".colorBox": {
206
+ border: "1px solid #929292",
207
+ height: "28px",
208
+ width: "28px",
209
+ borderRadius: "5px"
210
+ }
211
+ },
212
+ ".textArea": {
213
+ background: "#F3F3F3",
214
+ borderRadius: "12px",
215
+ padding: "10px",
216
+ height: "208px",
217
+ "& textarea": {
218
+ width: "100%",
219
+ height: "100% !important",
220
+ border: "0.79px solid #8360FD",
221
+ background: "#FFFFFF",
222
+ borderRadius: "8px",
223
+ padding: "10px"
224
+ }
225
+ },
226
+ ".imageUrl": {
227
+ height: "auto !important",
228
+ ".MuiOutlinedInput-root": {
229
+ border: "0.79px solid #8360FD",
230
+ background: "#FFFFFF",
231
+ borderRadius: "8px",
232
+ ".tickIcon": {
233
+ width: "18px"
234
+ }
235
+ },
236
+ "&.invalidUrl": {
237
+ ".MuiInputAdornment-root": {
238
+ ".tickIcon": {
239
+ ".fillPath": {
240
+ fill: "#D9D9DD!important"
241
+ }
242
+ }
243
+ }
244
+ }
245
+ },
246
+ ".saveThemeContainer": {
247
+ ".MuiOutlinedInput-root": {
248
+ borderRadius: "8px",
249
+ boxShadow: "0px 4px 16px 0px #0000000D"
250
+ }
251
+ },
252
+ ".uploadedImage": {
253
+ width: "126px",
254
+ height: "126px",
255
+ borderRadius: "126px"
256
+ },
257
+ ".MuiDialog-paper": {
258
+ borderRadius: "10px",
259
+ background: theme?.palette?.editor?.miniToolBarBackground
260
+ },
261
+ "& .MuiInputBase-root": {
262
+ borderRadius: "8px",
263
+ background: theme?.palette?.editor?.inputFieldBgColor,
264
+ border: `none`,
265
+ height: "40px",
266
+ boxShadow: "0px 4px 16px 0px #0000000D",
267
+ fontFamily: "Inter, sans-serif",
268
+ "&:hover .MuiOutlinedInput-notchedOutline": {
269
+ border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`
270
+ },
271
+ "& input::placeholder": {
272
+ color: "#94A3B8 !important",
273
+ opacity: "unset",
274
+ fontFamily: "Inter, sans-serif"
275
+ },
276
+ "& .colorPickerButton": {
277
+ border: `2px solid ${theme?.palette?.editor?.buttonBorder2} !important`
278
+ }
279
+ },
280
+ "& .MuiInputBase-root:has(.colorPickerButton)": {
281
+ "& .MuiInputBase-input": {
282
+ padding: "8.5px 14px 8.5px 0px",
283
+ fontFamily: "Inter, sans-serif"
284
+ }
285
+ },
286
+ "& .MuiInputBase-input": {
287
+ color: theme?.palette?.editor?.deletePopUpButtonTextColor,
288
+ textTransform: "math-auto",
289
+ fontFamily: "Inter, sans-serif"
290
+ },
291
+ "& .MuiOutlinedInput-notchedOutline": {
292
+ border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`
293
+ },
294
+ "& fieldset": {
295
+ border: `1px solid transparent`,
296
+ borderRadius: "8px"
297
+ },
298
+ "& .saveThemeActionBtns": {
299
+ "& button": {
300
+ fontWeight: 600,
301
+ fontSize: "14px",
302
+ opacity: 1,
303
+ borderRadius: "8px",
304
+ textTransform: "math-auto",
305
+ padding: "4px 20px",
306
+ height: "fit-content",
307
+ minWidth: "90px",
308
+ "@media only screen and (max-width: 899px)": {
309
+ width: "50%"
310
+ },
311
+ "&.confirmBtn": {
312
+ backgroundColor: "#2563EB",
313
+ color: "#ffffff",
314
+ border: `1px solid #2563EB`
315
+ },
316
+ "&.cancelBtn": {
317
+ backgroundColor: theme?.palette?.editor?.closeButtonBackground,
318
+ color: theme?.palette?.editor?.customDialogueCloseBtnColor,
319
+ border: `1px solid ${theme?.palette?.editor?.customDialogueCloseBtnBorder}`
320
+ }
321
+ }
322
+ }
323
+ });
324
+ export default style;