@flozy/editor 10.4.5 → 10.4.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 (190) hide show
  1. package/dist/Editor/ChatEditor.js +17 -16
  2. package/dist/Editor/CommonEditor.js +134 -18
  3. package/dist/Editor/DialogWrapper.js +31 -25
  4. package/dist/Editor/Editor.css +46 -8
  5. package/dist/Editor/Elements/AI/PopoverAIInput.js +11 -3
  6. package/dist/Editor/Elements/Accordion/Accordion.js +46 -9
  7. package/dist/Editor/Elements/Accordion/AccordionSummary.js +1 -23
  8. package/dist/Editor/Elements/AppHeader/AppHeader.js +10 -5
  9. package/dist/Editor/Elements/Button/EditorButton.js +26 -10
  10. package/dist/Editor/Elements/Carousel/CarouselItem.js +2 -1
  11. package/dist/Editor/Elements/Color Picker/ColorButtons.js +61 -14
  12. package/dist/Editor/Elements/Color Picker/ColorPicker.css +25 -1
  13. package/dist/Editor/Elements/Color Picker/ColorPicker.js +10 -7
  14. package/dist/Editor/Elements/Color Picker/Styles.js +15 -13
  15. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +4 -2
  16. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +455 -0
  17. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +23 -8
  18. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +15 -5
  19. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +3 -2
  20. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +11 -0
  21. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +8 -4
  22. package/dist/Editor/Elements/Embed/Image.js +3 -2
  23. package/dist/Editor/Elements/Embed/Video.js +1 -1
  24. package/dist/Editor/Elements/EmbedScript/Code.js +14 -2
  25. package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +57 -28
  26. package/dist/Editor/Elements/EmbedScript/styles.js +89 -0
  27. package/dist/Editor/Elements/Form/Form.js +184 -171
  28. package/dist/Editor/Elements/Form/FormElements/FormText.js +23 -6
  29. package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +2 -2
  30. package/dist/Editor/Elements/Form/FormField.js +13 -6
  31. package/dist/Editor/Elements/Form/Workflow/Styles.js +24 -22
  32. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +40 -32
  33. package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +7 -4
  34. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +1 -0
  35. package/dist/Editor/Elements/FreeGrid/Options/More.js +8 -8
  36. package/dist/Editor/Elements/FreeGrid/helper.js +115 -0
  37. package/dist/Editor/Elements/FreeGrid/styles.js +75 -7
  38. package/dist/Editor/Elements/Grid/Grid.js +14 -2
  39. package/dist/Editor/Elements/Grid/GridItem.js +1 -1
  40. package/dist/Editor/Elements/List/CheckList.js +3 -2
  41. package/dist/Editor/Elements/Search/SearchAttachment.js +40 -9
  42. package/dist/Editor/Elements/Search/SearchButton.js +9 -8
  43. package/dist/Editor/Elements/Search/SearchList.js +9 -7
  44. package/dist/Editor/Elements/Signature/Signature.css +2 -1
  45. package/dist/Editor/Elements/Signature/SignatureOptions/DrawSignature.js +18 -5
  46. package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +16 -3
  47. package/dist/Editor/Elements/SimpleText/index.js +6 -1
  48. package/dist/Editor/Elements/SimpleText/style.js +2 -2
  49. package/dist/Editor/Elements/Table/DragButton.js +0 -1
  50. package/dist/Editor/Elements/Table/Draggable.js +6 -2
  51. package/dist/Editor/Elements/Table/Styles.js +7 -0
  52. package/dist/Editor/Elements/Table/Table.js +3 -3
  53. package/dist/Editor/Elements/Table/TableCell.js +31 -8
  54. package/dist/Editor/Elements/Title/title.js +6 -6
  55. package/dist/Editor/Elements/Variables/VariableButton.js +10 -1
  56. package/dist/Editor/MiniEditor.js +2 -1
  57. package/dist/Editor/Styles/EditorStyles.js +5 -5
  58. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +27 -3
  59. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +4 -3
  60. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +2 -2
  61. package/dist/Editor/Toolbar/FormatTools/TextSize.js +10 -13
  62. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +2 -1
  63. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +4 -2
  64. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +6 -13
  65. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +167 -42
  66. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +7 -4
  67. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +2 -1
  68. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +72 -12
  69. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +100 -27
  70. package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +439 -0
  71. package/dist/Editor/Toolbar/PopupTool/index.js +1 -1
  72. package/dist/Editor/Toolbar/toolbarGroups.js +48 -6
  73. package/dist/Editor/assets/svg/BackIcon.js +18 -0
  74. package/dist/Editor/assets/svg/ClearAllRounded.js +31 -0
  75. package/dist/Editor/assets/svg/ResetIconNew.js +23 -0
  76. package/dist/Editor/assets/svg/SettingsIcon.js +1 -0
  77. package/dist/Editor/assets/svg/ThemeIcons.js +293 -0
  78. package/dist/Editor/common/Checkbox/index.js +46 -0
  79. package/dist/Editor/common/Checkbox/styles.js +45 -0
  80. package/dist/Editor/common/ColorPickerButton.js +41 -16
  81. package/dist/Editor/common/CustomColorPicker/index.js +130 -0
  82. package/dist/Editor/common/CustomColorPicker/style.js +53 -0
  83. package/dist/Editor/common/CustomDialog2/index.js +94 -0
  84. package/dist/Editor/common/CustomDialog2/style.js +67 -0
  85. package/dist/Editor/common/CustomSelect.js +43 -0
  86. package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
  87. package/dist/Editor/common/FontLoader/FontLoader.js +3 -0
  88. package/dist/Editor/common/Icon.js +31 -1
  89. package/dist/Editor/common/ImageSelector/ImageSelector.js +2 -2
  90. package/dist/Editor/common/ImageSelector/Styles.js +3 -9
  91. package/dist/Editor/common/LinkSettings/NavComponents.js +61 -55
  92. package/dist/Editor/common/LinkSettings/index.js +82 -80
  93. package/dist/Editor/common/LinkSettings/navOptions.js +2 -2
  94. package/dist/Editor/common/LinkSettings/style.js +209 -74
  95. package/dist/Editor/common/MentionsPopup/index.js +4 -1
  96. package/dist/Editor/common/RadioGroup/index.js +48 -0
  97. package/dist/Editor/common/RadioGroup/styles.js +29 -0
  98. package/dist/Editor/common/RnD/ElementOptions/Actions.js +13 -15
  99. package/dist/Editor/common/RnD/ElementOptions/Icons/LinkIcon.js +1 -0
  100. package/dist/Editor/common/RnD/ElementOptions/index.js +2 -2
  101. package/dist/Editor/common/RnD/ElementOptions/styles.js +28 -1
  102. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +6 -5
  103. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Signature.js +4 -3
  104. package/dist/Editor/common/RnD/ElementSettings/Settings/AppHeaderSettings.js +3 -2
  105. package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +3 -2
  106. package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +3 -2
  107. package/dist/Editor/common/RnD/ElementSettings/Settings/CodeSettings.js +3 -2
  108. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +4 -2
  109. package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +3 -2
  110. package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +3 -2
  111. package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +3 -1
  112. package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +3 -2
  113. package/dist/Editor/common/RnD/ElementSettings/styles.js +146 -12
  114. package/dist/Editor/common/RnD/OptionsPopup/index.js +8 -5
  115. package/dist/Editor/common/RnD/OptionsPopup/style.js +120 -19
  116. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +8 -5
  117. package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +17 -0
  118. package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +6 -3
  119. package/dist/Editor/common/RnD/Utils/gridDropItem.js +28 -19
  120. package/dist/Editor/common/RnD/Utils/index.js +3 -1
  121. package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +42 -58
  122. package/dist/Editor/common/RnD/VirtualElement/helper.js +323 -132
  123. package/dist/Editor/common/RnD/VirtualElement/styles.js +16 -0
  124. package/dist/Editor/common/RnD/index.js +67 -38
  125. package/dist/Editor/common/Select/index.js +44 -5
  126. package/dist/Editor/common/Select/styles.js +30 -2
  127. package/dist/Editor/common/Shorthands/elements.js +65 -11
  128. package/dist/Editor/common/SnackBar/index.js +43 -0
  129. package/dist/Editor/common/StyleBuilder/accordionTitleBtnStyle.js +2 -2
  130. package/dist/Editor/common/StyleBuilder/accordionTitleStyle.js +12 -9
  131. package/dist/Editor/common/StyleBuilder/buttonStyle.js +4 -2
  132. package/dist/Editor/common/StyleBuilder/embedVideoStyle.js +4 -0
  133. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +5 -0
  134. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +12 -2
  135. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +15 -7
  136. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +16 -8
  137. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +36 -10
  138. package/dist/Editor/common/StyleBuilder/fieldTypes/embedUpload.js +115 -0
  139. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +16 -7
  140. package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +3 -1
  141. package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +7 -6
  142. package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +13 -6
  143. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +15 -7
  144. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +5 -7
  145. package/dist/Editor/common/SwipeableDrawer/style.js +14 -12
  146. package/dist/Editor/common/Uploader.js +16 -0
  147. package/dist/Editor/common/iconListV2.js +177 -6
  148. package/dist/Editor/common/iconslist.js +24 -0
  149. package/dist/Editor/commonStyle.js +186 -62
  150. package/dist/Editor/helper/index.js +5 -1
  151. package/dist/Editor/helper/textIndeces.js +58 -0
  152. package/dist/Editor/helper/theme.js +203 -2
  153. package/dist/Editor/hooks/useEditorTheme.js +153 -0
  154. package/dist/Editor/hooks/useMouseMove.js +8 -5
  155. package/dist/Editor/hooks/useTable.js +5 -4
  156. package/dist/Editor/hooks/useThemeValues.js +63 -0
  157. package/dist/Editor/plugins/withEmbeds.js +1 -1
  158. package/dist/Editor/plugins/withHTML.js +3 -1
  159. package/dist/Editor/plugins/withTable.js +1 -1
  160. package/dist/Editor/theme/ThemeList.js +50 -173
  161. package/dist/Editor/theme/index.js +149 -0
  162. package/dist/Editor/themeSettings/ActiveTheme.js +82 -0
  163. package/dist/Editor/themeSettings/buttons/index.js +300 -0
  164. package/dist/Editor/themeSettings/buttons/style.js +23 -0
  165. package/dist/Editor/themeSettings/colorTheme/index.js +310 -0
  166. package/dist/Editor/themeSettings/colorTheme/style.js +81 -0
  167. package/dist/Editor/themeSettings/fonts/PreviewElement.js +121 -0
  168. package/dist/Editor/themeSettings/fonts/index.js +240 -0
  169. package/dist/Editor/themeSettings/fonts/style.js +62 -0
  170. package/dist/Editor/themeSettings/icons.js +60 -0
  171. package/dist/Editor/themeSettings/index.js +380 -0
  172. package/dist/Editor/themeSettings/style.js +299 -0
  173. package/dist/Editor/themeSettingsAI/icons.js +96 -0
  174. package/dist/Editor/themeSettingsAI/index.js +355 -0
  175. package/dist/Editor/themeSettingsAI/saveTheme.js +202 -0
  176. package/dist/Editor/themeSettingsAI/style.js +332 -0
  177. package/dist/Editor/utils/SlateUtilityFunctions.js +172 -46
  178. package/dist/Editor/utils/accordion.js +14 -4
  179. package/dist/Editor/utils/button.js +1 -17
  180. package/dist/Editor/utils/customHooks/useTableResize.js +49 -9
  181. package/dist/Editor/utils/draftToSlate.js +3 -2
  182. package/dist/Editor/utils/events.js +50 -6
  183. package/dist/Editor/utils/font.js +40 -37
  184. package/dist/Editor/utils/form.js +4 -4
  185. package/dist/Editor/utils/formfield.js +9 -2
  186. package/dist/Editor/utils/helper.js +210 -26
  187. package/dist/Editor/utils/insertAppHeader.js +1 -1
  188. package/dist/Editor/utils/signature.js +2 -9
  189. package/dist/Editor/utils/updateFormName.js +22 -0
  190. package/package.json +4 -4
@@ -962,6 +962,41 @@ export function DragIcon() {
962
962
  })]
963
963
  });
964
964
  }
965
+ export function ResizeIcon() {
966
+ return /*#__PURE__*/_jsxs("svg", {
967
+ width: "16",
968
+ height: "16",
969
+ viewBox: "0 0 16 16",
970
+ fill: "none",
971
+ xmlns: "http://www.w3.org/2000/svg",
972
+ children: [/*#__PURE__*/_jsx("rect", {
973
+ width: "16",
974
+ height: "16",
975
+ rx: "8",
976
+ fill: "#F8FAFC"
977
+ }), /*#__PURE__*/_jsx("rect", {
978
+ x: "0.5",
979
+ y: "0.5",
980
+ width: "15",
981
+ height: "15",
982
+ rx: "7.5",
983
+ stroke: "#2563EB",
984
+ strokeOpacity: "0.32"
985
+ }), /*#__PURE__*/_jsx("path", {
986
+ d: "M5.76758 6.44141L3.99981 8.20917L5.76758 9.97694",
987
+ stroke: "#94A3B8",
988
+ strokeWidth: "0.8",
989
+ strokeLinecap: "round",
990
+ strokeLinejoin: "round"
991
+ }), /*#__PURE__*/_jsx("path", {
992
+ d: "M10.2324 6.44141L12.0002 8.20917L10.2324 9.97694",
993
+ stroke: "#94A3B8",
994
+ strokeWidth: "0.8",
995
+ strokeLinecap: "round",
996
+ strokeLinejoin: "round"
997
+ })]
998
+ });
999
+ }
965
1000
  export function LeftAlignTextFormat() {
966
1001
  return /*#__PURE__*/_jsxs("svg", {
967
1002
  width: "19",
@@ -1236,27 +1271,37 @@ export function ToggleFullScreenIcon() {
1236
1271
  }
1237
1272
  export function CodeElementIcon() {
1238
1273
  return /*#__PURE__*/_jsxs("svg", {
1239
- width: "12",
1240
- height: "9",
1241
- viewBox: "0 0 12 9",
1274
+ width: "24",
1275
+ height: "24",
1276
+ viewBox: "0 0 24 24",
1242
1277
  fill: "none",
1243
1278
  xmlns: "http://www.w3.org/2000/svg",
1244
1279
  className: "commonSvgStyle",
1245
1280
  children: [/*#__PURE__*/_jsx("path", {
1246
- d: "M6.83331 1L4.83331 8",
1281
+ d: "M8 10L6 12L8 14",
1282
+ stroke: "#64748B",
1283
+ strokeWidth: "1.5",
1284
+ strokeMiterlimit: "10",
1285
+ strokeLinecap: "round",
1286
+ strokeLinejoin: "round"
1287
+ }), /*#__PURE__*/_jsx("path", {
1288
+ d: "M16 10L18 12L16 14",
1247
1289
  stroke: "#64748B",
1290
+ strokeWidth: "1.5",
1248
1291
  strokeMiterlimit: "10",
1249
1292
  strokeLinecap: "round",
1250
1293
  strokeLinejoin: "round"
1251
1294
  }), /*#__PURE__*/_jsx("path", {
1252
- d: "M8.83331 2.32983L10.6666 4.32983L8.83331 6.32983",
1295
+ d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",
1253
1296
  stroke: "#64748B",
1297
+ strokeWidth: "1.5",
1254
1298
  strokeMiterlimit: "10",
1255
1299
  strokeLinecap: "round",
1256
1300
  strokeLinejoin: "round"
1257
1301
  }), /*#__PURE__*/_jsx("path", {
1258
- d: "M2.83333 2.32983L1 4.32983L2.83333 6.32983",
1302
+ d: "M13 9.66992L11 14.33",
1259
1303
  stroke: "#64748B",
1304
+ strokeWidth: "1.5",
1260
1305
  strokeMiterlimit: "10",
1261
1306
  strokeLinecap: "round",
1262
1307
  strokeLinejoin: "round"
@@ -1313,6 +1358,27 @@ export function CheckedBoxCheckIcon() {
1313
1358
  })
1314
1359
  });
1315
1360
  }
1361
+ export function CheckedRadioIcon() {
1362
+ return /*#__PURE__*/_jsxs("svg", {
1363
+ width: "17",
1364
+ height: "17",
1365
+ viewBox: "0 0 17 17",
1366
+ fill: "none",
1367
+ xmlns: "http://www.w3.org/2000/svg",
1368
+ children: [/*#__PURE__*/_jsx("path", {
1369
+ d: "M16.5 8.42148C16.5 12.792 12.9227 16.343 8.5 16.343C4.07734 16.343 0.5 12.792 0.5 8.42148C0.5 4.05093 4.07734 0.5 8.5 0.5C12.9227 0.5 16.5 4.05093 16.5 8.42148Z",
1370
+ fill: "#DEE8FC",
1371
+ stroke: "#2563EB",
1372
+ className: "radio-icon-path"
1373
+ }), /*#__PURE__*/_jsx("ellipse", {
1374
+ cx: "8.5",
1375
+ cy: "8.42079",
1376
+ rx: "3.5",
1377
+ ry: "3.46767",
1378
+ fill: "#2563EB"
1379
+ })]
1380
+ });
1381
+ }
1316
1382
  export function SectionSettingIcon() {
1317
1383
  return /*#__PURE__*/_jsxs("svg", {
1318
1384
  width: "13",
@@ -1431,4 +1497,109 @@ export function SectionDragIcon() {
1431
1497
  fill: "#94A3B8"
1432
1498
  })]
1433
1499
  });
1500
+ }
1501
+ export function PenIcon() {
1502
+ return /*#__PURE__*/_jsxs("svg", {
1503
+ width: "17",
1504
+ height: "17",
1505
+ viewBox: "0 0 17 17",
1506
+ fill: "none",
1507
+ xmlns: "http://www.w3.org/2000/svg",
1508
+ className: "commonSvgStyle",
1509
+ children: [/*#__PURE__*/_jsx("path", {
1510
+ d: "M9.74898 3.14435L3.93357 9.29977C3.71398 9.53352 3.50148 9.99393 3.45898 10.3127L3.1969 12.6077C3.10482 13.4364 3.69982 14.0031 4.52148 13.8614L6.80232 13.4719C7.12107 13.4152 7.56732 13.1814 7.7869 12.9406L13.6023 6.78518C14.6081 5.72268 15.0615 4.51143 13.4961 3.03102C11.9377 1.56477 10.7548 2.08185 9.74898 3.14435Z",
1511
+ stroke: "#64748B",
1512
+ strokeWidth: "1.2",
1513
+ strokeMiterlimit: "10",
1514
+ strokeLinecap: "round",
1515
+ strokeLinejoin: "round"
1516
+ }), /*#__PURE__*/_jsx("path", {
1517
+ d: "M8.77734 4.17188C9.08193 6.12688 10.6686 7.62146 12.6378 7.81979",
1518
+ stroke: "#64748B",
1519
+ strokeWidth: "1.2",
1520
+ strokeMiterlimit: "10",
1521
+ strokeLinecap: "round",
1522
+ strokeLinejoin: "round"
1523
+ })]
1524
+ });
1525
+ }
1526
+ export function ResetIcon() {
1527
+ return /*#__PURE__*/_jsxs("svg", {
1528
+ width: "24",
1529
+ height: "24",
1530
+ viewBox: "0 0 24 24",
1531
+ fill: "none",
1532
+ xmlns: "http://www.w3.org/2000/svg",
1533
+ children: [/*#__PURE__*/_jsx("circle", {
1534
+ cx: "11.646",
1535
+ cy: "11.6452",
1536
+ r: "11.5",
1537
+ transform: "rotate(-89.2717 11.646 11.6452)",
1538
+ fill: "#2563EB",
1539
+ fillOpacity: "0.16"
1540
+ }), /*#__PURE__*/_jsx("path", {
1541
+ d: "M18.2814 11.8168V11.8168C18.2813 11.8313 18.2987 11.8387 18.3091 11.8287L19.2379 10.9273C19.6367 10.5404 20.247 10.5482 20.6358 10.9451C21.0245 11.342 21.0168 11.9495 20.6181 12.3364L17.9434 14.9012C17.5478 15.2806 16.9205 15.2708 16.5369 14.8792L13.9636 12.2519C13.7692 12.0534 13.674 11.7974 13.677 11.5622C13.6802 11.3075 13.7819 11.054 13.981 10.8801C14.3797 10.4932 14.9901 10.501 15.3788 10.8979L16.2708 11.8085C16.286 11.824 16.3124 11.8135 16.3126 11.7917V11.7917C16.351 8.77391 13.9017 6.27324 10.8698 6.2347C7.83784 6.19615 5.32577 8.63374 5.28741 11.6516C5.24904 14.6694 7.69833 17.1701 10.7303 17.2086C11.2815 17.2156 11.7092 17.6522 11.7022 18.2009C11.6952 18.7496 11.2566 19.1752 10.7054 19.1682C6.5709 19.1157 3.2663 15.7418 3.31861 11.6265C3.37093 7.51133 6.76023 4.22251 10.8947 4.27507C15.0095 4.32738 18.3338 7.70154 18.2814 11.8168Z",
1542
+ fill: "#2563EB"
1543
+ })]
1544
+ });
1545
+ }
1546
+ export function SaveTemplIcon() {
1547
+ return /*#__PURE__*/_jsxs("svg", {
1548
+ width: "18",
1549
+ height: "18",
1550
+ viewBox: "0 0 18 18",
1551
+ fill: "none",
1552
+ xmlns: "http://www.w3.org/2000/svg",
1553
+ className: "commonSvgStyle",
1554
+ children: [/*#__PURE__*/_jsx("path", {
1555
+ d: "M9 1.5V6.75L10.5 5.25",
1556
+ stroke: "#64748B",
1557
+ strokeWidth: "1.2",
1558
+ strokeLinecap: "round",
1559
+ strokeLinejoin: "round"
1560
+ }), /*#__PURE__*/_jsx("path", {
1561
+ d: "M9 6.75L7.5 5.25",
1562
+ stroke: "#64748B",
1563
+ strokeWidth: "1.2",
1564
+ strokeLinecap: "round",
1565
+ strokeLinejoin: "round"
1566
+ }), /*#__PURE__*/_jsx("path", {
1567
+ d: "M1.48438 9.75H4.79187C5.07687 9.75 5.33188 9.9075 5.45938 10.1625L6.33687 11.9175C6.59187 12.4275 7.10938 12.75 7.67938 12.75H10.3269C10.8969 12.75 11.4144 12.4275 11.6694 11.9175L12.5469 10.1625C12.6744 9.9075 12.9369 9.75 13.2144 9.75H16.4844",
1568
+ stroke: "#64748B",
1569
+ strokeWidth: "1.2",
1570
+ strokeLinecap: "round",
1571
+ strokeLinejoin: "round"
1572
+ }), /*#__PURE__*/_jsx("path", {
1573
+ d: "M5.25 3.09766C2.595 3.48766 1.5 5.04766 1.5 8.25016V11.2502C1.5 15.0002 3 16.5002 6.75 16.5002H11.25C15 16.5002 16.5 15.0002 16.5 11.2502V8.25016C16.5 5.04766 15.405 3.48766 12.75 3.09766",
1574
+ stroke: "#64748B",
1575
+ strokeWidth: "1.2",
1576
+ strokeLinecap: "round",
1577
+ strokeLinejoin: "round"
1578
+ })]
1579
+ });
1580
+ }
1581
+ export function UploadIconCloud() {
1582
+ return /*#__PURE__*/_jsxs("svg", {
1583
+ width: "16",
1584
+ height: "16",
1585
+ viewBox: "0 0 16 16",
1586
+ fill: "none",
1587
+ xmlns: "http://www.w3.org/2000/svg",
1588
+ className: "commonSvgStyle uploadIcon",
1589
+ children: [/*#__PURE__*/_jsx("path", {
1590
+ d: "M6.00065 14.6673H4.66732C2.00065 14.6673 1.33398 14.0007 1.33398 11.334V4.66732C1.33398 2.00065 2.00065 1.33398 4.66732 1.33398H5.66732C6.66732 1.33398 6.88733 1.62733 7.26733 2.13399L8.26733 3.46733C8.52067 3.80066 8.66732 4.00065 9.33398 4.00065H11.334C14.0007 4.00065 14.6673 4.66732 14.6673 7.33398V8.66732",
1591
+ stroke: "#64748B",
1592
+ strokeWidth: "1.2",
1593
+ strokeMiterlimit: "10",
1594
+ strokeLinecap: "round",
1595
+ strokeLinejoin: "round"
1596
+ }), /*#__PURE__*/_jsx("path", {
1597
+ d: "M9.17305 12.2136C7.60638 12.3269 7.60638 14.5936 9.17305 14.7069H12.8797C13.3264 14.7069 13.7664 14.5402 14.093 14.2402C15.193 13.2802 14.6064 11.3602 13.1597 11.1802C12.6397 8.05358 8.11973 9.24024 9.18639 12.2202",
1598
+ stroke: "#64748B",
1599
+ strokeWidth: "1.2",
1600
+ strokeMiterlimit: "10",
1601
+ strokeLinecap: "round",
1602
+ strokeLinejoin: "round"
1603
+ })]
1604
+ });
1434
1605
  }
@@ -1273,6 +1273,7 @@ export const GridSettingsIcon = props => /*#__PURE__*/_jsxs("svg", {
1273
1273
  height: "22",
1274
1274
  viewBox: "0 0 22 22",
1275
1275
  fill: "none",
1276
+ className: "commonSvgStyle",
1276
1277
  children: [/*#__PURE__*/_jsx("path", {
1277
1278
  d: "M11 13.75C12.5188 13.75 13.75 12.5188 13.75 11C13.75 9.48122 12.5188 8.25 11 8.25C9.48122 8.25 8.25 9.48122 8.25 11C8.25 12.5188 9.48122 13.75 11 13.75Z",
1278
1279
  stroke: "#64748B",
@@ -1341,6 +1342,7 @@ export const GridAddSectionIcon = props => /*#__PURE__*/_jsxs("svg", {
1341
1342
  height: "20",
1342
1343
  viewBox: "0 0 20 20",
1343
1344
  fill: "none",
1345
+ className: "addIconCircle",
1344
1346
  children: [/*#__PURE__*/_jsx("path", {
1345
1347
  d: "M10 19C14.9706 19 19 14.9706 19 10C19 5.02944 14.9706 1 10 1C5.02944 1 1 5.02944 1 10C1 14.9706 5.02944 19 10 19Z",
1346
1348
  stroke: "#64748B",
@@ -1675,6 +1677,27 @@ export const CloseIcon = props => /*#__PURE__*/_jsxs("svg", {
1675
1677
  strokeLinejoin: "round"
1676
1678
  })]
1677
1679
  });
1680
+ export const CloseIcon2 = props => /*#__PURE__*/_jsxs("svg", {
1681
+ width: "10",
1682
+ height: "10",
1683
+ viewBox: "0 0 10 10",
1684
+ fill: "none",
1685
+ xmlns: "http://www.w3.org/2000/svg",
1686
+ ...(props || {}),
1687
+ children: [/*#__PURE__*/_jsx("path", {
1688
+ d: "M9.12476 0.875L0.875176 9.12458",
1689
+ stroke: "#8F9CAE",
1690
+ strokeWidth: "1.5",
1691
+ strokeLinecap: "round",
1692
+ strokeLinejoin: "round"
1693
+ }), /*#__PURE__*/_jsx("path", {
1694
+ d: "M0.875183 0.875L9.12476 9.12458",
1695
+ stroke: "#8F9CAE",
1696
+ strokeWidth: "1.5",
1697
+ strokeLinecap: "round",
1698
+ strokeLinejoin: "round"
1699
+ })]
1700
+ });
1678
1701
  export const SearchIcon = () => /*#__PURE__*/_jsxs("svg", {
1679
1702
  width: "18",
1680
1703
  height: "18",
@@ -1786,6 +1809,7 @@ export const Text = props => /*#__PURE__*/_jsxs("svg", {
1786
1809
  viewBox: "0 0 15 14",
1787
1810
  fill: "none",
1788
1811
  xmlns: "http://www.w3.org/2000/svg",
1812
+ className: "commonSvgStyle",
1789
1813
  children: [/*#__PURE__*/_jsx("path", {
1790
1814
  d: "M2.5 4.1825V3.12083C2.5 2.45 3.0425 1.91333 3.7075 1.91333H12.1775C12.8483 1.91333 13.385 2.45583 13.385 3.12083V4.1825",
1791
1815
  stroke: props?.stroke || "#000",
@@ -49,31 +49,28 @@ const useCommonStyle = theme => ({
49
49
  fontWeight: "500",
50
50
  fontFamily: "Inter, sans-serif"
51
51
  },
52
+ "& .MuiPaper-root": {
53
+ border: `unset !important`,
54
+ borderRadius: "0px",
55
+ height: "fit-content",
56
+ padding: "2px"
57
+ },
52
58
  "& p": {
53
59
  marginBottom: "7px",
54
60
  marginTop: "4px"
55
61
  },
56
- "& .MuiPaper-root": {
57
- border: 'unset !important',
58
- borderRadius: '0px',
59
- height: 'fit-content',
60
- padding: '2px'
61
- },
62
62
  "& .muiIconsListParent": {
63
63
  "& svg": {
64
64
  color: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`
65
65
  },
66
66
  "&::-webkit-scrollbar-thumb": {
67
67
  background: `${theme?.palette?.editor?.brainPopupScroll} !important`
68
- },
69
- "&::-webkit-scrollbar-track": {
70
- visibility: "hidden"
71
68
  }
72
69
  },
73
70
  "& .MuiGrid-root>.MuiGrid-item": {
74
71
  paddingRight: "0px !important",
75
72
  fontFamily: "Inter, sans-serif",
76
- height: 'fit-content'
73
+ height: "fit-content"
77
74
  },
78
75
  "& .MuiInputBase-root": {
79
76
  borderRadius: "10px",
@@ -132,16 +129,16 @@ const useCommonStyle = theme => ({
132
129
  background: theme?.palette?.editor?.inputFieldBgColor,
133
130
  border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
134
131
  borderRadius: "10px",
135
- width: "46px !important",
132
+ width: "52px !important",
136
133
  marginLeft: "10px",
137
- height: '36px !important'
134
+ height: "36px !important"
138
135
  },
139
136
  "& .spacingSlider": {
140
137
  width: "calc(100% - 18px)"
141
138
  }
142
139
  },
143
- '& .MuiFormHelperText-root': {
144
- margin: '4px 0px 0px 0px',
140
+ "& .MuiFormHelperText-root": {
141
+ margin: "4px 0px 0px 0px",
145
142
  color: theme?.palette?.editor?.closeButtonSvgStroke,
146
143
  fontFamily: "Inter, sans-serif"
147
144
  }
@@ -211,16 +208,16 @@ const useCommonStyle = theme => ({
211
208
  backgroundColor: theme?.palette?.editor?.miniToolBarBackground
212
209
  },
213
210
  "& .popup_tabs": {
214
- backgroundColor: theme?.palette?.editor?.background,
211
+ backgroundColor: theme?.palette?.editor?.miniToolBarBackground,
215
212
  "@media only screen and (max-width: 899px)": {
216
213
  width: "100% !important"
217
214
  }
218
215
  },
219
216
  "& .popup_tabs-header": {
220
- backgroundColor: theme?.palette?.editor?.background,
217
+ backgroundColor: theme?.palette?.editor?.miniToolBarBackground,
221
218
  "& .popup_tabs-header-label-active": {
222
219
  color: theme?.palette?.editor?.activeColor,
223
- backgroundColor: theme?.palette?.editor?.background
220
+ backgroundColor: theme?.palette?.editor?.miniToolBarBackground
224
221
  }
225
222
  },
226
223
  "& .colorpicker": {
@@ -249,6 +246,40 @@ const useCommonStyle = theme => ({
249
246
  backgroundColor: theme?.palette?.editor?.miniToolBarBackground,
250
247
  color: theme?.palette?.editor?.textColor
251
248
  }
249
+ },
250
+ "& .colorPickerActionBtns": {
251
+ backgroundColor: theme?.palette?.editor?.miniToolBarBackground,
252
+ display: "flex",
253
+ justifyContent: "end",
254
+ padding: "10px",
255
+ position: "sticky",
256
+ bottom: 0,
257
+ right: 0,
258
+ boxShadow: `0px -3px 12px 0px ${theme?.palette?.editor?.cardShadow}`,
259
+ gap: "8px",
260
+ "& button": {
261
+ fontWeight: 600,
262
+ fontSize: "14px",
263
+ opacity: 1,
264
+ borderRadius: "8px",
265
+ textTransform: "math-auto",
266
+ padding: "4px 20px",
267
+ height: "fit-content",
268
+ minWidth: "90px",
269
+ "@media only screen and (max-width: 899px)": {
270
+ width: "50%"
271
+ },
272
+ "&.confirmBtn": {
273
+ backgroundColor: "#2563EB",
274
+ color: "#ffffff",
275
+ border: `1px solid #2563EB`
276
+ },
277
+ "&.cancelBtn": {
278
+ backgroundColor: theme?.palette?.editor?.closeButtonBackground,
279
+ color: theme?.palette?.editor?.customDialogueCloseBtnColor,
280
+ border: `1px solid ${theme?.palette?.editor?.customDialogueCloseBtnBorder}`
281
+ }
282
+ }
252
283
  }
253
284
  },
254
285
  colorPickerBtnBorder: {
@@ -260,6 +291,12 @@ const useCommonStyle = theme => ({
260
291
  "& .signature-canvas": {
261
292
  backgroundColor: `${theme?.palette?.editor?.inputFieldBgColor} !important`
262
293
  },
294
+ "& .clear-canvas": {
295
+ position: "absolute",
296
+ top: 6,
297
+ right: 6,
298
+ color: theme?.palette?.editor?.closeButtonSvgStroke
299
+ },
263
300
  "& label": {
264
301
  color: theme?.palette?.editor?.textColor
265
302
  },
@@ -397,14 +434,14 @@ const useCommonStyle = theme => ({
397
434
  padding: "8px 12px",
398
435
  fontSize: "12px",
399
436
  color: theme?.palette?.editor?.menuOptionTextColor,
400
- fontWeight: '500',
437
+ fontWeight: "500",
401
438
  fontFamily: "Inter, sans-serif",
402
- minHeight: '36px',
439
+ minHeight: "36px",
403
440
  "&:hover": {
404
441
  backgroundColor: theme?.palette?.editor?.menuOptionHoverBackground
405
442
  }
406
443
  },
407
- '& .Mui-selected': {
444
+ "& .Mui-selected": {
408
445
  background: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`
409
446
  },
410
447
  "& .MuiListSubheader-root": {
@@ -413,16 +450,16 @@ const useCommonStyle = theme => ({
413
450
  fontSize: "12px"
414
451
  },
415
452
  "& .MuiPaper-root": {
416
- borderRadius: '8px',
417
- padding: '0px',
453
+ borderRadius: "8px",
454
+ padding: "0px",
418
455
  background: `${theme?.palette?.editor?.textWeightPopUpBackground} !important`
419
456
  },
420
- '& .MuiButtonBase-root': {
421
- margin: '4px',
422
- borderRadius: '6px'
457
+ "& .MuiButtonBase-root": {
458
+ margin: "4px",
459
+ borderRadius: "6px"
423
460
  },
424
- '& .MuiList-root': {
425
- padding: '0px'
461
+ "& .MuiList-root": {
462
+ padding: "0px"
426
463
  }
427
464
  },
428
465
  datePicker: {
@@ -522,27 +559,45 @@ const useCommonStyle = theme => ({
522
559
  }
523
560
  }
524
561
  },
525
- pageSettingPopUpRoot: {
526
- padding: "16px 8px 16px 10px!important",
527
- height: "100%"
528
- },
529
562
  buttonMoreOption: {
530
563
  background: `${theme?.palette?.editor?.aiInputBackground} !important`,
531
564
  border: `1px solid ${theme?.palette?.editor?.buttonBorder1} !important`,
532
- padding: '4px !important',
533
- '& svg': {
534
- width: '18px !important',
535
- height: '18px !important',
536
- '& path': {
565
+ padding: "4px !important",
566
+ "& svg": {
567
+ width: "18px !important",
568
+ height: "18px !important",
569
+ "& path": {
537
570
  stroke: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
538
571
  }
539
572
  }
540
573
  },
574
+ pageSettingPopUpRoot: {
575
+ padding: "16px 8px 16px 10px!important",
576
+ height: "100%"
577
+ },
578
+ buttonMoreIcon: {
579
+ position: "absolute",
580
+ top: "50%",
581
+ right: -40,
582
+ transform: "translateY(-50%)"
583
+ },
584
+ // buttonMoreOption: {
585
+ // background: `${theme?.palette?.editor?.aiInputBackground} !important`,
586
+ // border: `1px solid ${theme?.palette?.editor?.buttonBorder1} !important`,
587
+ // padding: "4px !important",
588
+ // "& svg": {
589
+ // width: "18px !important",
590
+ // height: "18px !important",
591
+ // "& path": {
592
+ // stroke: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`,
593
+ // },
594
+ // },
595
+ // },
541
596
  buttonMoreOption2: {
542
597
  background: `${theme?.palette?.editor?.aiInputBackground} !important`,
543
598
  border: `1px solid ${theme?.palette?.editor?.buttonBorder1} !important`,
544
- '& svg': {
545
- '& path': {
599
+ "& svg": {
600
+ "& path": {
546
601
  fill: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
547
602
  }
548
603
  }
@@ -550,11 +605,11 @@ const useCommonStyle = theme => ({
550
605
  buttonMoreOption3: {
551
606
  background: `${theme?.palette?.editor?.aiInputBackground} !important`,
552
607
  border: `1px solid ${theme?.palette?.editor?.buttonBorder1} !important`,
553
- padding: '5px !important',
554
- '& svg': {
555
- width: '16px !important',
556
- height: '16px !important',
557
- '& path': {
608
+ padding: "5px !important",
609
+ "& svg": {
610
+ width: "16px !important",
611
+ height: "16px !important",
612
+ "& path": {
558
613
  stroke: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
559
614
  }
560
615
  }
@@ -562,40 +617,109 @@ const useCommonStyle = theme => ({
562
617
  resizeButton: {
563
618
  background: theme?.palette?.editor?.aiInputBackground,
564
619
  border: `1px solid ${theme?.palette?.editor?.buttonBorder1}`,
565
- padding: '5px !important',
566
- borderRadius: '50% !important',
567
- '& svg': {
568
- width: '18px',
569
- height: '18px',
570
- '& path': {
620
+ padding: "5px !important",
621
+ borderRadius: "50% !important",
622
+ "& svg": {
623
+ width: "18px",
624
+ height: "18px",
625
+ "& path": {
571
626
  fill: `${theme?.palette?.editor?.closeButtonSvgStroke}`
572
627
  }
573
628
  },
574
- '&:hover': {
629
+ "&:hover": {
575
630
  background: theme?.palette?.editor?.aiInputBackground
576
631
  }
577
632
  },
578
633
  gradientFillBtn: {
579
634
  background: `linear-gradient(112.61deg, #2C63ED 19.3%, #8360FD 88.14%) !important`,
580
- textTransform: 'math-auto !important',
581
- color: '#FFFFFF !important',
582
- padding: '0px 12px !important',
583
- height: '32px',
584
- borderRadius: '8px',
585
- fontWeight: '500',
586
- fontSize: '14px'
635
+ textTransform: "math-auto !important",
636
+ color: "#FFFFFF !important",
637
+ padding: "0px 12px !important",
638
+ height: "32px",
639
+ borderRadius: "8px",
640
+ fontWeight: "500",
641
+ fontSize: "14px"
587
642
  },
588
643
  emptyThumbBtn: {
589
644
  background: `${theme?.palette?.editor?.sectionSettingIconHover} !important`,
590
645
  color: `${theme?.palette?.editor?.textColor} !important`,
591
- fontSize: '14px !important',
592
- '& svg': {
593
- width: '20px !important',
594
- height: '20px !important',
595
- '& path': {
646
+ fontSize: "14px !important",
647
+ "& svg": {
648
+ width: "20px !important",
649
+ height: "20px !important",
650
+ "& path": {
596
651
  stroke: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
597
652
  }
598
653
  }
654
+ },
655
+ formStyles: {
656
+ "& input": {
657
+ background: theme?.palette?.editor?.inputFieldBgColor,
658
+ borderColor: theme?.palette?.editor?.inputFieldBorder,
659
+ height: "44px",
660
+ fontSize: "14px",
661
+ color: theme?.palette?.editor?.textColor
662
+ },
663
+ "& .form-btn-wrpr": {
664
+ "& button": {
665
+ fontWeight: 500,
666
+ height: "44px"
667
+ }
668
+ }
669
+ },
670
+ formMenuStyle: {
671
+ "& .MuiPaper-root": {
672
+ background: "transparent",
673
+ boxShadow: "none"
674
+ },
675
+ "& .MuiList-root": {
676
+ padding: "2px 0px 0px 16px"
677
+ },
678
+ "& .MuiButtonBase-root": {
679
+ padding: "2px"
680
+ },
681
+ "& li": {
682
+ marginLeft: "5px",
683
+ "&:hover": {
684
+ background: "transparent"
685
+ },
686
+ "& button": {
687
+ height: "28px",
688
+ width: "28px",
689
+ borderRadius: "50%",
690
+ background: theme?.palette?.editor?.signatureFontBtnBg,
691
+ border: `1px solid ${theme?.palette?.editor?.buttonBorder1} !important`,
692
+ boxShadow: "0px 0px 4px 0px #00000024",
693
+ "&:hover": {
694
+ background: theme?.palette?.editor?.signatureFontBtnBg
695
+ },
696
+ "& svg": {
697
+ height: "20px",
698
+ width: "20px"
699
+ },
700
+ "& .uploadIcon": {
701
+ height: "17px",
702
+ width: "17px"
703
+ },
704
+ "& .commonSvgStyle path": {
705
+ stroke: theme?.palette?.editor?.closeButtonSvgStroke
706
+ }
707
+ }
708
+ }
709
+ },
710
+ fieldBtnSettings: {
711
+ "& .MuiButtonBase-root": {
712
+ height: "28px",
713
+ width: "28px",
714
+ padding: "4px",
715
+ "& svg": {
716
+ width: "20px",
717
+ height: "20px",
718
+ "& path": {
719
+ stroke: theme?.palette?.editor?.closeButtonSvgStroke
720
+ }
721
+ }
722
+ }
599
723
  }
600
724
  });
601
725
  export default useCommonStyle;
@@ -7,7 +7,7 @@ import { Node } from "slate";
7
7
  const HIDE_PLACHOLDERS = ["grid", "grid-item", "table"];
8
8
  const TEXT_NODES = ["paragraph", "headingOne", "headingTwo", "headingThree"];
9
9
  const PREVIEW_IMAGE_HIDE_CLASS = ["grid-container-toolbar", "grid-item-toolbar", "element-toolbar", "mini-tool-wrpr-ei", "element-selector", "element-selector-ctrl"];
10
- const RND_ITEMS = ["freegridItem", "freegridBox"];
10
+ export const RND_ITEMS = ["freegridItem", "freegridBox"];
11
11
  export const getThumbnailImage = async (dom, options = {}) => {
12
12
  try {
13
13
  const canvas = await html2canvas(dom, {
@@ -401,4 +401,8 @@ export const clearSelectionOnly = editor => {
401
401
  } catch (err) {
402
402
  console.log(err);
403
403
  }
404
+ };
405
+ export const isMobileWindow = () => {
406
+ const isMobile = window.matchMedia("(max-width: 899px)")?.matches || false;
407
+ return isMobile;
404
408
  };