@flozy/editor 3.8.7 → 3.8.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. package/dist/Editor/ChatEditor.js +55 -29
  2. package/dist/Editor/CommonEditor.js +109 -166
  3. package/dist/Editor/Editor.css +12 -8
  4. package/dist/Editor/Elements/AI/AIInput.js +5 -16
  5. package/dist/Editor/Elements/AI/PopoverAIInput.js +17 -31
  6. package/dist/Editor/Elements/AI/Styles.js +1 -2
  7. package/dist/Editor/Elements/Accordion/Accordion.js +1 -1
  8. package/dist/Editor/Elements/Accordion/AccordionSummary.js +20 -6
  9. package/dist/Editor/Elements/AppHeader/AppHeader.js +4 -26
  10. package/dist/Editor/Elements/Button/EditorButton.js +16 -28
  11. package/dist/Editor/Elements/Color Picker/ColorButtons.js +17 -60
  12. package/dist/Editor/Elements/Color Picker/ColorPicker.css +1 -25
  13. package/dist/Editor/Elements/Color Picker/ColorPicker.js +4 -4
  14. package/dist/Editor/Elements/Color Picker/Styles.js +1 -2
  15. package/dist/Editor/Elements/Emoji/EmojiPicker.js +4 -2
  16. package/dist/Editor/Elements/Form/Form.js +1 -1
  17. package/dist/Editor/Elements/Form/Workflow/FormWorkflow.js +3 -12
  18. package/dist/Editor/Elements/Form/Workflow/UserInputs.js +1 -2
  19. package/dist/Editor/Elements/Grid/Grid.js +3 -27
  20. package/dist/Editor/Elements/Grid/GridItem.js +1 -3
  21. package/dist/Editor/Elements/Link/Link.js +1 -6
  22. package/dist/Editor/Elements/Link/LinkButton.js +2 -4
  23. package/dist/Editor/Elements/Link/LinkPopup.js +3 -10
  24. package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +8 -4
  25. package/dist/Editor/Elements/Signature/SignaturePopup.js +3 -14
  26. package/dist/Editor/Elements/Table/Styles.js +1 -23
  27. package/dist/Editor/Elements/Table/Table.js +1 -2
  28. package/dist/Editor/Elements/Table/TableCell.js +7 -69
  29. package/dist/Editor/Elements/TableContextMenu/TableContextMenu.js +0 -1
  30. package/dist/Editor/MiniEditor.js +1 -3
  31. package/dist/Editor/Toolbar/Basic/index.js +2 -4
  32. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +2 -26
  33. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +2 -2
  34. package/dist/Editor/Toolbar/FormatTools/TextSize.js +18 -29
  35. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +27 -5
  36. package/dist/Editor/Toolbar/Mini/Options/Options.js +0 -10
  37. package/dist/Editor/Toolbar/Mini/Styles.js +0 -7
  38. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +11 -4
  39. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +86 -213
  40. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +1 -2
  41. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +13 -20
  42. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +7 -52
  43. package/dist/Editor/Toolbar/PopupTool/index.js +5 -6
  44. package/dist/Editor/Toolbar/toolbarGroups.js +6 -48
  45. package/dist/Editor/assets/svg/AIIcons.js +1 -153
  46. package/dist/Editor/assets/svg/AddTemplateIcon.js +10 -13
  47. package/dist/Editor/assets/svg/TextIcon.js +5 -8
  48. package/dist/Editor/common/ColorPickerButton.js +9 -25
  49. package/dist/Editor/common/DnD/DragHandleButton.js +47 -56
  50. package/dist/Editor/common/Icon.js +3 -43
  51. package/dist/Editor/common/LinkSettings/NavComponents.js +2 -5
  52. package/dist/Editor/common/LinkSettings/index.js +2 -4
  53. package/dist/Editor/common/LinkSettings/navOptions.js +2 -7
  54. package/dist/Editor/common/LinkSettings/style.js +8 -11
  55. package/dist/Editor/common/MentionsPopup/MentionsListCard.js +6 -1
  56. package/dist/Editor/common/Section/index.js +7 -57
  57. package/dist/Editor/common/Section/styles.js +0 -11
  58. package/dist/Editor/common/Shorthands/elements.js +0 -54
  59. package/dist/Editor/common/StyleBuilder/buttonStyle.js +2 -4
  60. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +29 -33
  61. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +25 -31
  62. package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +1 -1
  63. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +7 -31
  64. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +4 -13
  65. package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +14 -3
  66. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +4 -14
  67. package/dist/Editor/common/StyleBuilder/index.js +1 -1
  68. package/dist/Editor/common/iconslist.js +31 -0
  69. package/dist/Editor/helper/index.js +22 -0
  70. package/dist/Editor/helper/theme.js +4 -189
  71. package/dist/Editor/hooks/useMouseMove.js +1 -4
  72. package/dist/Editor/hooks/useWindowMessage.js +7 -10
  73. package/dist/Editor/plugins/withEmbeds.js +1 -1
  74. package/dist/Editor/plugins/withHTML.js +1 -1
  75. package/dist/Editor/plugins/withTable.js +1 -1
  76. package/dist/Editor/theme/ThemeList.js +173 -50
  77. package/dist/Editor/utils/SlateUtilityFunctions.js +27 -169
  78. package/dist/Editor/utils/button.js +17 -1
  79. package/dist/Editor/utils/draftToSlate.js +1 -1
  80. package/dist/Editor/utils/events.js +2 -54
  81. package/dist/Editor/utils/font.js +37 -40
  82. package/dist/Editor/utils/helper.js +2 -31
  83. package/dist/Editor/utils/table.js +43 -51
  84. package/package.json +2 -3
  85. package/dist/Editor/Elements/AI/VoiceToText/AudioWave.js +0 -73
  86. package/dist/Editor/Elements/AI/VoiceToText/index.js +0 -167
  87. package/dist/Editor/Elements/AI/VoiceToText/style.js +0 -40
  88. package/dist/Editor/Elements/Link/LinkPopupStyles.js +0 -28
  89. package/dist/Editor/Elements/Redo/RedoButton.js +0 -14
  90. package/dist/Editor/Elements/Undo/UndoButton.js +0 -14
  91. package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -438
  92. package/dist/Editor/assets/svg/RedoIcon.js +0 -27
  93. package/dist/Editor/assets/svg/SettingsIcon.js +0 -28
  94. package/dist/Editor/assets/svg/ThemeIcons.js +0 -291
  95. package/dist/Editor/assets/svg/UndoIcon.js +0 -27
  96. package/dist/Editor/common/CustomColorPicker/index.js +0 -106
  97. package/dist/Editor/common/CustomColorPicker/style.js +0 -53
  98. package/dist/Editor/common/CustomDialog/index.js +0 -94
  99. package/dist/Editor/common/CustomDialog/style.js +0 -67
  100. package/dist/Editor/common/CustomSelect.js +0 -33
  101. package/dist/Editor/hooks/useEditorTheme.js +0 -139
  102. package/dist/Editor/theme/index.js +0 -144
  103. package/dist/Editor/themeSettings/ActiveTheme.js +0 -72
  104. package/dist/Editor/themeSettings/buttons/index.js +0 -290
  105. package/dist/Editor/themeSettings/buttons/style.js +0 -21
  106. package/dist/Editor/themeSettings/colorTheme/index.js +0 -290
  107. package/dist/Editor/themeSettings/colorTheme/style.js +0 -77
  108. package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -123
  109. package/dist/Editor/themeSettings/fonts/index.js +0 -213
  110. package/dist/Editor/themeSettings/fonts/style.js +0 -44
  111. package/dist/Editor/themeSettings/icons.js +0 -60
  112. package/dist/Editor/themeSettings/index.js +0 -320
  113. package/dist/Editor/themeSettings/style.js +0 -152
  114. package/dist/Editor/themeSettingsAI/icons.js +0 -96
  115. package/dist/Editor/themeSettingsAI/index.js +0 -356
  116. package/dist/Editor/themeSettingsAI/saveTheme.js +0 -190
  117. 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;