@flozy/editor 5.3.6 → 5.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. package/dist/Editor/CommonEditor.js +14 -8
  2. package/dist/Editor/Editor.css +58 -22
  3. package/dist/Editor/Elements/Accordion/Accordion.js +8 -1
  4. package/dist/Editor/Elements/AppHeader/AppHeader.js +6 -6
  5. package/dist/Editor/Elements/Button/EditorButton.js +9 -2
  6. package/dist/Editor/Elements/Color Picker/ColorButtons.js +4 -2
  7. package/dist/Editor/Elements/DataView/DataView.js +124 -0
  8. package/dist/Editor/Elements/DataView/DataViewButton.js +23 -0
  9. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +67 -0
  10. package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +33 -0
  11. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +162 -0
  12. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +40 -0
  13. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +67 -0
  14. package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +35 -0
  15. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +39 -0
  16. package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +30 -0
  17. package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +30 -0
  18. package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +35 -0
  19. package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +36 -0
  20. package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +17 -0
  21. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +29 -0
  22. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +38 -0
  23. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +74 -0
  24. package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +64 -0
  25. package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +106 -0
  26. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +174 -0
  27. package/dist/Editor/Elements/DataView/Layouts/Formula.js +29 -0
  28. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +113 -0
  29. package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +37 -0
  30. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +111 -0
  31. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +60 -0
  32. package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +36 -0
  33. package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +101 -0
  34. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +160 -0
  35. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +190 -0
  36. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +42 -0
  37. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +30 -0
  38. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +110 -0
  39. package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +179 -0
  40. package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +112 -0
  41. package/dist/Editor/Elements/DataView/Layouts/TableView.js +227 -0
  42. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +80 -0
  43. package/dist/Editor/Elements/DataView/Layouts/colStyles.js +10 -0
  44. package/dist/Editor/Elements/DataView/Layouts/index.js +25 -0
  45. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +281 -0
  46. package/dist/Editor/Elements/DataView/Utils/globalSearch.js +15 -0
  47. package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +74 -0
  48. package/dist/Editor/Elements/DataView/styles.js +154 -0
  49. package/dist/Editor/Elements/Divider/Divider.js +24 -9
  50. package/dist/Editor/Elements/Embed/Image.js +31 -12
  51. package/dist/Editor/Elements/Embed/Video.js +13 -2
  52. package/dist/Editor/Elements/Form/Form.js +1 -0
  53. package/dist/Editor/Elements/FreeGrid/breakpointConstants.js +4 -4
  54. package/dist/Editor/Elements/FreeGrid/styles.js +2 -1
  55. package/dist/Editor/Elements/Grid/GridItem.js +2 -0
  56. package/dist/Editor/Elements/Grid/Styles.js +44 -0
  57. package/dist/Editor/Elements/List/CheckList.js +2 -1
  58. package/dist/Editor/Elements/Search/SearchAttachment.js +1 -0
  59. package/dist/Editor/Elements/Signature/SignaturePopup.js +4 -4
  60. package/dist/Editor/Elements/SimpleText/index.js +8 -1
  61. package/dist/Editor/Elements/SimpleText/style.js +10 -1
  62. package/dist/Editor/Elements/Table/Table.js +2 -4
  63. package/dist/Editor/Elements/Table/TableCell.js +5 -10
  64. package/dist/Editor/Elements/TopBanner/TopBanner.js +2 -1
  65. package/dist/Editor/MiniEditor.js +15 -1
  66. package/dist/Editor/Styles/EditorStyles.js +5 -3
  67. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +17 -1
  68. package/dist/Editor/Toolbar/FormatTools/TextSize.js +5 -3
  69. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +210 -72
  70. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +56 -8
  71. package/dist/Editor/Toolbar/Toolbar.js +6 -0
  72. package/dist/Editor/Toolbar/toolbarGroups.js +4 -0
  73. package/dist/Editor/assets/svg/SettingsIcon.js +4 -4
  74. package/dist/Editor/common/ColorPickerButton.js +5 -3
  75. package/dist/Editor/common/DnD/Draggable.js +2 -1
  76. package/dist/Editor/common/FontLoader/FontLoader.js +4 -4
  77. package/dist/Editor/common/Icon.js +6 -0
  78. package/dist/Editor/common/ImageSelector/Options/Upload.js +2 -1
  79. package/dist/Editor/common/ImageSelector/Styles.js +47 -6
  80. package/dist/Editor/common/ImageSelector/UploadStyles.js +18 -6
  81. package/dist/Editor/common/MentionsPopup/Styles.js +109 -122
  82. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +1 -0
  83. package/dist/Editor/common/RnD/GuideLines/styles.js +3 -3
  84. package/dist/Editor/common/RnD/ShadowElement.js +1 -1
  85. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +14 -2
  86. package/dist/Editor/common/RnD/Utils/gridDropItem.js +9 -6
  87. package/dist/Editor/common/RnD/index.js +2 -1
  88. package/dist/Editor/common/Section/index.js +3 -3
  89. package/dist/Editor/common/Section/styles.js +5 -1
  90. package/dist/Editor/common/Shorthands/elements.js +13 -1
  91. package/dist/Editor/common/StyleBuilder/fieldStyle.js +2 -1
  92. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +9 -3
  93. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +27 -3
  94. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +15 -2
  95. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +10 -2
  96. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +2 -1
  97. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +1 -1
  98. package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +2 -0
  99. package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +3 -1
  100. package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +79 -0
  101. package/dist/Editor/common/StyleBuilder/fieldTypes/radiusStyle.js +4 -4
  102. package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +22 -6
  103. package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +21 -2
  104. package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +15 -4
  105. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +7 -0
  106. package/dist/Editor/common/StyleBuilder/index.js +17 -9
  107. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +4 -0
  108. package/dist/Editor/common/ToolbarIcon.js +1 -1
  109. package/dist/Editor/common/Uploader.js +46 -36
  110. package/dist/Editor/common/iconListV2.js +348 -130
  111. package/dist/Editor/common/iconslist.js +6 -3
  112. package/dist/Editor/commonStyle.js +290 -4
  113. package/dist/Editor/helper/deserialize/index.js +19 -23
  114. package/dist/Editor/helper/enforceDateFormat.js +41 -0
  115. package/dist/Editor/helper/index.js +16 -3
  116. package/dist/Editor/helper/theme.js +24 -1
  117. package/dist/Editor/hooks/useMouseMove.js +5 -2
  118. package/dist/Editor/hooks/useTable.js +22 -19
  119. package/dist/Editor/plugins/withCustomDeleteBackward.js +33 -2
  120. package/dist/Editor/plugins/withEmbeds.js +30 -26
  121. package/dist/Editor/utils/SlateUtilityFunctions.js +27 -4
  122. package/dist/Editor/utils/button.js +4 -4
  123. package/dist/Editor/utils/dataView.js +43 -0
  124. package/dist/Editor/utils/helper.js +50 -10
  125. package/dist/Editor/utils/pageSettings.js +14 -2
  126. package/package.json +2 -2
@@ -90,12 +90,16 @@ const usePopupStyle = theme => ({
90
90
  },
91
91
  "& .more-btn-cbs": {
92
92
  color: `${theme?.palette?.editor?.closeButtonSvgStroke}`,
93
- border: `1.5px solid ${theme?.palette?.editor?.closeButtonSvgStroke}`,
94
- paddingTop: "10px"
93
+ border: `1px solid ${theme?.palette?.editor?.closeButtonSvgStroke}`,
94
+ paddingTop: "10px",
95
+ "& svg": {
96
+ width: "20px",
97
+ height: "24px"
98
+ }
95
99
  }
96
100
  },
97
101
  "@media only screen and (max-width: 599px)": {
98
- margin: "10px !important",
102
+ // margin: "10px !important",
99
103
  background: "unset",
100
104
  boxShadow: "unset"
101
105
  // border: "none",
@@ -125,6 +129,9 @@ const usePopupStyle = theme => ({
125
129
  width: "330px"
126
130
  }
127
131
  },
132
+ "& .MuiTypography-root": {
133
+ padding: "0px"
134
+ },
128
135
  "&.templates": {
129
136
  width: "500px",
130
137
  maxWidth: "100%",
@@ -146,6 +153,7 @@ const usePopupStyle = theme => ({
146
153
  },
147
154
  "& .MuiTabScrollButton-horizontal": {
148
155
  borderBottom: "unset !important",
156
+ width: "10px",
149
157
  "& svg": {
150
158
  color: theme?.palette?.editor?.closeButtonSvgStroke
151
159
  }
@@ -177,6 +185,11 @@ const usePopupStyle = theme => ({
177
185
  justifyContent: "start",
178
186
  borderRadius: "10px !important",
179
187
  transition: "background-color 0.3s ease",
188
+ // "& .colorBoxElementIcon": {
189
+ // "& path": {
190
+ // fill: theme?.palette?.type === "dark" ? "none" : "",
191
+ // },
192
+ // },
180
193
  "& .signatureElementIcon": {
181
194
  "& path": {
182
195
  fill: `${theme?.palette?.editor?.closeButtonSvgStroke}`
@@ -210,37 +223,37 @@ const usePopupStyle = theme => ({
210
223
  }
211
224
  },
212
225
  "&:hover": {
213
- backgroundColor: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`,
226
+ backgroundColor: `${theme?.palette?.editor?.menuOptionHoverBackground} !important`,
214
227
  "& .signatureElementIcon": {
215
228
  "& path": {
216
- fill: `${theme?.palette?.editor?.menuOptionTextColor}`
229
+ fill: `${theme?.palette?.editor?.textColor}`
217
230
  }
218
231
  },
219
232
  "& .commonSvgStyle": {
220
233
  "& path": {
221
- stroke: `${theme?.palette?.editor?.menuOptionTextColor}`
234
+ stroke: `${theme?.palette?.editor?.textColor}`
222
235
  }
223
236
  },
224
237
  "& .commonSvgStyle2": {
225
238
  "& path": {
226
- stroke: `${theme?.palette?.editor?.menuOptionTextColor}`
239
+ stroke: `${theme?.palette?.editor?.textColor}`
227
240
  }
228
241
  },
229
242
  "& .colorBoxElementIcon": {
230
243
  "& path": {
231
- stroke: `${theme?.palette?.editor?.menuOptionTextColor}`,
244
+ stroke: `${theme?.palette?.editor?.textColor}`,
232
245
  fill: "none"
233
246
  }
234
247
  },
235
248
  "& .gridElementIcon": {
236
249
  "& path": {
237
- stroke: `${theme?.palette?.editor?.menuOptionTextColor}`,
238
- fill: `${theme?.palette?.editor?.menuOptionTextColor}`
250
+ stroke: `${theme?.palette?.editor?.textColor}`,
251
+ fill: `${theme?.palette?.editor?.textColor}`
239
252
  }
240
253
  },
241
254
  "& .newLineElementIcon": {
242
255
  "& path": {
243
- fill: `${theme?.palette?.editor?.menuOptionTextColor}`
256
+ fill: `${theme?.palette?.editor?.textColor}`
244
257
  }
245
258
  }
246
259
  },
@@ -284,8 +297,11 @@ const usePopupStyle = theme => ({
284
297
  },
285
298
  "& .textFormatMUIIcon": {
286
299
  "& svg": {
287
- color: theme?.palette?.editor?.closeButtonSvgStroke
300
+ color: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
288
301
  }
302
+ },
303
+ "& .npr-0": {
304
+ paddingRight: "0px !important"
289
305
  }
290
306
  },
291
307
  textFormatLabel: {
@@ -319,8 +335,8 @@ const usePopupStyle = theme => ({
319
335
  borderBottom: `1px solid ${theme?.palette?.editor?.deviderBgColor} !important`
320
336
  },
321
337
  textFormatField: {
322
- marginBottom: "16px",
323
- marginTop: "10px"
338
+ marginBottom: "8px",
339
+ marginTop: "8px"
324
340
  },
325
341
  textFormatField1: {
326
342
  marginBottom: "16px",
@@ -334,61 +350,111 @@ const usePopupStyle = theme => ({
334
350
  marginBottom: "16px"
335
351
  },
336
352
  textAlignButtons: {
337
- // "& .justifyIcon": {
338
- // "& path": {
339
- // fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
340
- // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
341
- // },
342
- // },
343
- // "& .textAlignIconSameStyles": {
344
- // "& path": {
345
- // fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
346
- // },
347
- // },
348
- // "& .orderedListIcon": {
349
- // "& path": {
350
- // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
351
- // },
352
- // "& text": {
353
- // fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
354
- // },
355
- // },
356
- // "& .bulletedListTextIcon": {
357
- // "& path": {
358
- // fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
359
- // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
360
- // },
361
- // "& circle": {
362
- // fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
363
- // },
364
- // },
365
- // "& .checkedListTextIcon": {
366
- // "& path": {
367
- // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
368
- // },
369
- // },
370
- // "& .accordianListTextIcon": {
371
- // // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`,
372
- // "& svg": {
373
- // fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
374
- // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
375
- // },
376
- // "& path": {
377
- // fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
378
- // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
379
- // },
380
- // },
353
+ paddingLeft: "0px",
354
+ paddingRight: "12px",
355
+ "&:hover": {
356
+ background: "unset"
357
+ },
358
+ "&:not(.btnActive):hover": {
359
+ background: "unset",
360
+ color: `${theme?.palette?.editor?.textColor} !important`,
361
+ "& .justifyIcon": {
362
+ "& path": {
363
+ fill: `${theme?.palette?.editor?.textColor}`,
364
+ stroke: `${theme?.palette?.editor?.textColor}`
365
+ }
366
+ },
367
+ "& .textAlignIconSameStyles": {
368
+ "& path": {
369
+ fill: `${theme?.palette?.editor?.textColor}`
370
+ }
371
+ },
372
+ "& .orderedListIcon": {
373
+ "& .strokePathList": {
374
+ stroke: `${theme?.palette?.editor?.textColor} !important`
375
+ },
376
+ "& .fillPathList": {
377
+ fill: `${theme?.palette?.editor?.textColor} !important`
378
+ }
379
+ },
380
+ "& .bulletedListTextIcon": {
381
+ "& path": {
382
+ fill: `${theme?.palette?.editor?.textColor}`,
383
+ stroke: `${theme?.palette?.editor?.textColor}`
384
+ },
385
+ "& circle": {
386
+ fill: `${theme?.palette?.editor?.textColor}`
387
+ }
388
+ },
389
+ "& .checkedListTextIcon": {
390
+ "& path": {
391
+ stroke: `${theme?.palette?.editor?.textColor}`
392
+ }
393
+ },
394
+ "& .accordianListTextIcon": {
395
+ // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`,
396
+ "& svg": {
397
+ fill: `${theme?.palette?.editor?.textColor}`,
398
+ stroke: `${theme?.palette?.editor?.textColor}`
399
+ },
400
+ "& path": {
401
+ fill: `${theme?.palette?.editor?.textColor}`,
402
+ stroke: `${theme?.palette?.editor?.textColor}`
403
+ }
404
+ }
405
+ }
381
406
  },
382
407
  autoCompleteaFontFamily: {
383
408
  "& .MuiOutlinedInput-root": {
384
409
  borderRadius: "8px",
385
410
  backgroundColor: `${theme?.palette?.editor?.inputFieldBgColor}`,
386
- fontSize: "14px",
411
+ fontSize: "12px",
412
+ fontWeight: "400",
387
413
  height: "36px",
388
- paddingLeft: "15px !important"
414
+ paddingLeft: "12px !important"
389
415
  },
390
416
  "& .MuiOutlinedInput-notchedOutline": {
391
417
  border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`
418
+ },
419
+ '& .MuiInputBase-root': {
420
+ '& input': {
421
+ border: "none !important"
422
+ }
423
+ },
424
+ "& svg": {
425
+ width: "20px",
426
+ height: "24px"
427
+ }
428
+ },
429
+ fontFamilyListOptions: {
430
+ "& .MuiAutocomplete-listbox": {
431
+ padding: "0px",
432
+ "&::-webkit-scrollbar-thumb": {
433
+ background: `none !important`
434
+ },
435
+ "&::-webkit-scrollbar-track": {
436
+ visibility: "hidden"
437
+ },
438
+ "&::-webkit-scrollbar-thumb": {
439
+ background: `${theme?.palette?.editor?.brainPopupScroll} !important`
440
+ },
441
+ "&::-webkit-scrollbar-track": {
442
+ visibility: "hidden"
443
+ },
444
+ "& li": {
445
+ margin: "5px",
446
+ borderRadius: "8px",
447
+ color: theme?.palette?.editor?.menuOptionTextColor,
448
+ fontSize: '14px',
449
+ padding: '8px 12px',
450
+ '&[aria-selected="true"]': {
451
+ backgroundColor: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`
452
+ }
453
+ }
454
+ },
455
+ "& .MuiPaper-root": {
456
+ borderRadius: "8px",
457
+ background: theme?.palette?.editor?.textWeightPopUpBackground
392
458
  }
393
459
  },
394
460
  textFormatSelect: {
@@ -400,6 +466,10 @@ const usePopupStyle = theme => ({
400
466
  fontFamily: "Inter, sans-serif",
401
467
  "& .MuiOutlinedInput-notchedOutline": {
402
468
  border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`
469
+ },
470
+ "& svg": {
471
+ width: "20px",
472
+ height: "24px"
403
473
  }
404
474
  },
405
475
  textFormatSelectOptions: {
@@ -421,15 +491,32 @@ const usePopupStyle = theme => ({
421
491
  boxShadow: "0px 4px 18px 0px rgba(0, 0, 0, 0.05)"
422
492
  },
423
493
  dividerGrid: {
424
- margin: "5px 0px 10px 0px",
425
- background: `${theme?.palette?.editor?.deviderBgColor} !important`
494
+ margin: "5px 0px 10px 0px"
495
+ // background: `${theme?.palette?.editor?.deviderBgColor} !important`,
426
496
  },
497
+
427
498
  textFormatColorWrpr: {
428
499
  display: "flex",
429
500
  alignItems: "center",
430
501
  marginBottom: "8px"
431
502
  },
432
- textFormatCG: {},
503
+ textFormatCG: {
504
+ alignItems: "flexStart",
505
+ justifyContent: "center",
506
+ flexDirection: "row",
507
+ "& .accordionIcon": {
508
+ paddingLeft: "0px",
509
+ paddingRight: "12px",
510
+ "&:not(.btnActive):hover": {
511
+ background: "unset",
512
+ "& .accordianIconSvgTextFormat": {
513
+ "& path": {
514
+ stroke: theme?.palette?.editor?.textColor
515
+ }
516
+ }
517
+ }
518
+ }
519
+ },
433
520
  evenSpace: {
434
521
  display: "flex",
435
522
  flexDirection: "row",
@@ -441,7 +528,36 @@ const usePopupStyle = theme => ({
441
528
  "&.typo-icons": {
442
529
  "& button": {
443
530
  width: "31px",
444
- height: "36px"
531
+ height: "36px",
532
+ "&:hover": {
533
+ background: "unset"
534
+ },
535
+ "&:not(.btnActive):hover": {
536
+ background: "unset",
537
+ "& svg": {
538
+ color: `${theme?.palette?.editor?.textColor} !important`
539
+ },
540
+ "& .linkIcon": {
541
+ "& path": {
542
+ stroke: theme?.palette?.editor?.textColor
543
+ }
544
+ }
545
+ }
546
+ },
547
+ alignItems: "flexStart",
548
+ justifyContent: "center",
549
+ flexDirection: "row",
550
+ "&:hover": {
551
+ background: "unset"
552
+ },
553
+ "& .customSelectTool": {
554
+ color: theme?.palette?.editor?.closeButtonSvgStroke,
555
+ fontWeight: "510",
556
+ "& svg": {
557
+ marginTop: "8px",
558
+ width: "16px",
559
+ height: "8px"
560
+ }
445
561
  }
446
562
  },
447
563
  "&.text-decorations-wrpr": {
@@ -454,15 +570,24 @@ const usePopupStyle = theme => ({
454
570
  fontSize: "14px",
455
571
  marginBottom: "5px",
456
572
  paddingLeft: "5px",
573
+ marginTop: "4px",
457
574
  fontWeight: 500,
458
575
  color: theme?.palette?.editor?.textColor || "#000"
459
576
  },
460
577
  typoLabel2: {
461
578
  fontSize: "14px",
462
- marginBottom: "5px",
463
- paddingLeft: "10px",
579
+ marginBottom: "2px",
580
+ // paddingLeft: "10px",
464
581
  fontWeight: 500
465
582
  },
583
+ typoLabel3: {
584
+ fontSize: "14px",
585
+ marginBottom: "10px",
586
+ paddingLeft: "5px",
587
+ marginTop: "4px",
588
+ fontWeight: 500,
589
+ color: theme?.palette?.editor?.textColor || "#000"
590
+ },
466
591
  templateCard: {
467
592
  borderRadius: "10px",
468
593
  boxShadow: "none",
@@ -535,6 +660,7 @@ const usePopupStyle = theme => ({
535
660
  border: `1px solid ${theme?.palette?.editor?.borderColor}`,
536
661
  borderRadius: "7px",
537
662
  backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
663
+ height: "36px",
538
664
  "& button": {
539
665
  backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
540
666
  marginRight: "0px",
@@ -566,12 +692,17 @@ const usePopupStyle = theme => ({
566
692
  width: "2px",
567
693
  height: "25px",
568
694
  margin: "5px 0px"
695
+ },
696
+ "& svg": {
697
+ width: "20px",
698
+ height: "24px"
569
699
  }
570
700
  },
571
701
  btnGroup2: {
572
702
  border: `1px solid ${theme?.palette?.editor?.borderColor}`,
573
703
  borderRadius: "7px",
574
704
  backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
705
+ height: "36px",
575
706
  "& button": {
576
707
  backgroundColor: theme?.palette?.editor?.background,
577
708
  marginRight: "0px",
@@ -590,6 +721,10 @@ const usePopupStyle = theme => ({
590
721
  "&.no-hover": {
591
722
  border: `1px solid #ffffff00`,
592
723
  borderRadius: "7px 0px 0px 7px"
724
+ },
725
+ "& svg": {
726
+ width: "20px",
727
+ height: "24px"
593
728
  }
594
729
  },
595
730
  "& .colorBox": {
@@ -649,14 +784,14 @@ const usePopupStyle = theme => ({
649
784
  textTransform: "none",
650
785
  textDecorationLine: "underline",
651
786
  textUnderlineOffset: "2px",
652
- padding: "0px 10px"
787
+ padding: "0px"
653
788
  },
654
789
  defaultBtn2: {
655
790
  color: `${theme?.palette?.editor?.deafultColorOptionTextColor} !important`,
656
791
  textTransform: "none",
657
792
  textDecorationLine: "underline",
658
793
  textUnderlineOffset: "2px",
659
- padding: "0px 10px"
794
+ padding: "0px"
660
795
  },
661
796
  defaultBtn: {
662
797
  color: "#0F172A",
@@ -722,7 +857,10 @@ const usePopupStyle = theme => ({
722
857
  },
723
858
  "& .textFontArrows": {
724
859
  "& svg": {
725
- stroke: theme?.palette?.editor?.textColor
860
+ stroke: theme?.palette?.editor?.closeButtonSvgStroke,
861
+ color: theme?.palette?.editor?.closeButtonSvgStroke,
862
+ width: "10px",
863
+ height: "12px"
726
864
  }
727
865
  }
728
866
  },
@@ -741,7 +879,7 @@ const usePopupStyle = theme => ({
741
879
  "& .popup_tabs": {
742
880
  backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
743
881
  "@media only screen and (max-width: 899px)": {
744
- width: '100% !important'
882
+ width: "100% !important"
745
883
  }
746
884
  },
747
885
  "& .popup_tabs-header": {
@@ -943,10 +1081,10 @@ const usePopupStyle = theme => ({
943
1081
  color: `${theme?.palette?.editor?.menuOptionTextColor} !important`,
944
1082
  background: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`,
945
1083
  "& .orderedListIcon": {
946
- "& path": {
1084
+ "& .strokePathList": {
947
1085
  stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
948
1086
  },
949
- "& text": {
1087
+ "& .fillPathList": {
950
1088
  fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
951
1089
  }
952
1090
  },
@@ -14,6 +14,8 @@ import SelectSuperSubscript from "./MiniTextFormat/SelectSuperSubscript";
14
14
  import { ColorResetIcon, TextDefaultStyleIcon } from "../../common/iconListV2";
15
15
  import FontFamilyAutocomplete from "../FormatTools/FontFamilyAutocomplete";
16
16
  import { useEditorContext } from "../../hooks/useMouseMove";
17
+ import LineSpacing from "../../common/StyleBuilder/fieldTypes/lineSpacing";
18
+ import { getPageSettings } from "../../utils/pageSettings";
17
19
  import { jsx as _jsx } from "react/jsx-runtime";
18
20
  import { jsxs as _jsxs } from "react/jsx-runtime";
19
21
  const allTools = toolbarGroups.flat();
@@ -31,10 +33,18 @@ const TextFormat = props => {
31
33
  const [anchorEl, setAnchorEl] = useState(null);
32
34
  const [type, setType] = useState(null);
33
35
  const open = Boolean(anchorEl);
36
+ const {
37
+ element: pageSt
38
+ } = getPageSettings(editor) || {};
39
+ const pageSettingLine = pageSt?.pageProps?.lineHeight;
34
40
  const {
35
41
  fontFamilies,
36
42
  theme
37
43
  } = useEditorContext();
44
+ const {
45
+ activeBreakPoint
46
+ } = useEditorContext();
47
+ const breakpoint = activeBreakPoint === "" ? "lg" : activeBreakPoint;
38
48
  const fontWeight = allTools.find(f => f.format === "fontWeight");
39
49
  const fontStyle = allTools.filter(f => f.type === "mark" && f.format !== "strikethrough" && f.format !== "superscript" && f.format !== "subscript");
40
50
  const fontAlign = allTools.filter(f => f.format?.indexOf("align") >= 0);
@@ -51,6 +61,8 @@ const TextFormat = props => {
51
61
  color: "",
52
62
  bgColor: ""
53
63
  };
64
+ let lineSpacingValue = activeMark(editor, 'lineHeight');
65
+ lineSpacingValue = lineSpacingValue?.[breakpoint] !== undefined ? lineSpacingValue : pageSettingLine;
54
66
  const handleColorPicker = type => e => {
55
67
  setType(type);
56
68
  setAnchorEl(e.currentTarget);
@@ -73,6 +85,7 @@ const TextFormat = props => {
73
85
  [type]: color
74
86
  };
75
87
  updateBlockQuote(attr);
88
+ setAnchorEl(null);
76
89
  };
77
90
  const handleQuote = attr => () => {
78
91
  updateBlockQuote(attr);
@@ -90,6 +103,13 @@ const TextFormat = props => {
90
103
  value
91
104
  });
92
105
  };
106
+ const handleLineSpacing = data => {
107
+ const [[format, value]] = Object.entries(data);
108
+ addMarkData(editor, {
109
+ format,
110
+ value
111
+ });
112
+ };
93
113
  return /*#__PURE__*/_jsxs(Grid, {
94
114
  container: true,
95
115
  sx: classes.textFormatWrapper,
@@ -118,6 +138,7 @@ const TextFormat = props => {
118
138
  format: "fontFamily",
119
139
  val: Object.values(fontFamilyMap)[0]
120
140
  }),
141
+ className: "npr-0",
121
142
  children: "Default Text"
122
143
  })
123
144
  })]
@@ -142,7 +163,7 @@ const TextFormat = props => {
142
163
  children: [/*#__PURE__*/_jsx(Typography, {
143
164
  variant: "body1",
144
165
  color: "primary",
145
- sx: classes.typoLabel,
166
+ sx: classes.typoLabel3,
146
167
  children: "Font Weight"
147
168
  }), /*#__PURE__*/_jsx(Grid, {
148
169
  item: true,
@@ -159,10 +180,11 @@ const TextFormat = props => {
159
180
  }), /*#__PURE__*/_jsxs(Grid, {
160
181
  item: true,
161
182
  xs: 6,
183
+ className: "npr-0",
162
184
  children: [/*#__PURE__*/_jsx(Typography, {
163
185
  variant: "body1",
164
186
  color: "primary",
165
- sx: classes.typoLabel,
187
+ sx: classes.typoLabel3,
166
188
  children: "Font Size"
167
189
  }), /*#__PURE__*/_jsx(Grid, {
168
190
  item: true,
@@ -342,15 +364,41 @@ const TextFormat = props => {
342
364
  editor: editor,
343
365
  ...m
344
366
  }, `pptool_mark_${i}_${m.id}`);
345
- }), /*#__PURE__*/_jsx(SelectSuperSubscript, {
346
- classes: classes,
347
- editor: editor,
348
- closeMainPopup: closeMainPopup || onClose
349
367
  }), /*#__PURE__*/_jsx(LinkButton, {
350
368
  active: isBlockActive(editor, link.format),
351
369
  editor: editor,
352
370
  customProps: customProps
353
- }, link.id)]
371
+ }, link.id), /*#__PURE__*/_jsx(SelectSuperSubscript, {
372
+ classes: classes,
373
+ editor: editor,
374
+ closeMainPopup: closeMainPopup || onClose
375
+ })]
376
+ })]
377
+ }), /*#__PURE__*/_jsx(Grid, {
378
+ item: true,
379
+ xs: 12,
380
+ sx: classes.dividerGrid,
381
+ children: /*#__PURE__*/_jsx(Divider, {})
382
+ }), /*#__PURE__*/_jsxs(Grid, {
383
+ item: true,
384
+ xs: 12,
385
+ children: [/*#__PURE__*/_jsx(Typography, {
386
+ variant: "body1",
387
+ color: "primary",
388
+ sx: classes.typoLabel,
389
+ children: "Line Spacing"
390
+ }), /*#__PURE__*/_jsx(Grid, {
391
+ item: true,
392
+ xs: 12,
393
+ className: "typo-icons",
394
+ sx: classes.evenSpace,
395
+ children: /*#__PURE__*/_jsx(LineSpacing, {
396
+ value: lineSpacingValue,
397
+ onChange: handleLineSpacing,
398
+ data: {
399
+ key: 'lineHeight'
400
+ }
401
+ })
354
402
  })]
355
403
  }), /*#__PURE__*/_jsx(Grid, {
356
404
  item: true,
@@ -367,7 +415,7 @@ const TextFormat = props => {
367
415
  children: /*#__PURE__*/_jsx(Typography, {
368
416
  variant: "body1",
369
417
  color: "primary",
370
- sx: classes.typoLabel,
418
+ sx: classes.typoLabel3,
371
419
  children: "Decorations"
372
420
  })
373
421
  }), /*#__PURE__*/_jsxs(Grid, {
@@ -32,6 +32,7 @@ import ColorboxButton from "../Elements/Colorbox/ColorboxButton.js";
32
32
  import DividerButton from "../Elements/Divider/DividerButton.js";
33
33
  import EmbedScript from "../Elements/EmbedScript/EmbedScript.js";
34
34
  import FreeGridButton from "../Elements/FreeGrid/FreeGridButton.js";
35
+ import DataViewButton from "../Elements/DataView/DataViewButton.js";
35
36
  import SearchButton from "../Elements/Search/SearchButton.js";
36
37
  import { jsx as _jsx } from "react/jsx-runtime";
37
38
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -118,6 +119,11 @@ export const RenderToolbarIcon = props => {
118
119
  editor: editor,
119
120
  icoBtnType: icoBtnType
120
121
  }, element.id);
122
+ case "dataView":
123
+ return /*#__PURE__*/_jsx(DataViewButton, {
124
+ editor: editor,
125
+ icoBtnType: icoBtnType
126
+ }, element.id);
121
127
  case "id":
122
128
  return /*#__PURE__*/_jsx(Id, {
123
129
  editor: editor
@@ -191,6 +191,10 @@ export const toolbarGroups = [[{
191
191
  id: 42,
192
192
  type: "table",
193
193
  group: "elements"
194
+ }, {
195
+ id: 51,
196
+ type: "dataView",
197
+ group: "elements"
194
198
  }, {
195
199
  id: 48,
196
200
  format: "divider",