@flozy/editor 5.4.5 → 5.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 (43) hide show
  1. package/dist/Editor/Elements/AI/PopoverAIInput.js +3 -3
  2. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +15 -4
  3. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +2 -1
  4. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +2 -1
  5. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +17 -5
  6. package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +38 -11
  7. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +55 -15
  8. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +7 -7
  9. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +5 -2
  10. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +4 -2
  11. package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +5 -2
  12. package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +21 -21
  13. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +7 -4
  14. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +49 -21
  15. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +4 -2
  16. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +4 -2
  17. package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +51 -16
  18. package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +22 -3
  19. package/dist/Editor/Elements/DataView/Layouts/TableView.js +19 -5
  20. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +5 -0
  21. package/dist/Editor/Elements/DataView/styles.js +10 -3
  22. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +5 -2
  23. package/dist/Editor/Toolbar/Mini/Styles.js +5 -0
  24. package/dist/Editor/assets/svg/ArrowDownIcon.js +25 -0
  25. package/dist/Editor/assets/svg/ArrowUpIcon.js +25 -0
  26. package/dist/Editor/assets/svg/CalenderIconTick.js +64 -0
  27. package/dist/Editor/assets/svg/DataTableIcon.js +50 -0
  28. package/dist/Editor/assets/svg/DuplicateIcon.js +23 -0
  29. package/dist/Editor/assets/svg/EyeIcon.js +23 -0
  30. package/dist/Editor/assets/svg/EyeSlash.js +43 -0
  31. package/dist/Editor/assets/svg/HashtagIcon.js +33 -0
  32. package/dist/Editor/assets/svg/PlusIcon.js +23 -0
  33. package/dist/Editor/assets/svg/SelectRoundedIcon.js +24 -0
  34. package/dist/Editor/assets/svg/SortByIcon.js +33 -0
  35. package/dist/Editor/assets/svg/TickOutlined.js +23 -0
  36. package/dist/Editor/assets/svg/TrashCanIcon.js +38 -0
  37. package/dist/Editor/common/Icon.js +30 -4
  38. package/dist/Editor/common/RnD/index.js +2 -2
  39. package/dist/Editor/common/Shorthands/elements.js +1 -1
  40. package/dist/Editor/common/iconListV2.js +47 -79
  41. package/dist/Editor/helper/deserialize/index.js +26 -1
  42. package/dist/Editor/hooks/useBreakpoints.js +1 -1
  43. package/package.json +1 -1
@@ -0,0 +1,50 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { jsxs as _jsxs } from "react/jsx-runtime";
3
+ const DataTableIcon = () => {
4
+ return /*#__PURE__*/_jsxs("svg", {
5
+ width: "16",
6
+ height: "16",
7
+ viewBox: "0 0 16 16",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [/*#__PURE__*/_jsx("path", {
11
+ d: "M14.6668 7.33398V6.00065C14.6668 2.66732 13.3335 1.33398 10.0002 1.33398H6.00016C2.66683 1.33398 1.3335 2.66732 1.3335 6.00065V10.0007C1.3335 13.334 2.66683 14.6673 6.00016 14.6673H6.66683",
12
+ stroke: "#64748B",
13
+ strokeLinecap: "round",
14
+ strokeLinejoin: "round"
15
+ }), /*#__PURE__*/_jsx("path", {
16
+ d: "M1.35352 5.66797H14.6668",
17
+ stroke: "#64748B",
18
+ strokeLinecap: "round",
19
+ strokeLinejoin: "round"
20
+ }), /*#__PURE__*/_jsx("path", {
21
+ d: "M1.35352 10.334H8.00016",
22
+ stroke: "#64748B",
23
+ strokeLinecap: "round",
24
+ strokeLinejoin: "round"
25
+ }), /*#__PURE__*/_jsx("path", {
26
+ d: "M5.67334 14.6598V1.33984",
27
+ stroke: "#64748B",
28
+ strokeLinecap: "round",
29
+ strokeLinejoin: "round"
30
+ }), /*#__PURE__*/_jsx("path", {
31
+ d: "M10.3398 7.99316V1.33984",
32
+ stroke: "#64748B",
33
+ strokeLinecap: "round",
34
+ strokeLinejoin: "round"
35
+ }), /*#__PURE__*/_jsx("path", {
36
+ d: "M12.4868 9.7794L9.72013 12.546C9.61346 12.6527 9.51344 12.8594 9.48677 13.006L9.33345 14.066C9.28012 14.446 9.54679 14.7194 9.92679 14.6594L10.9868 14.506C11.1334 14.486 11.3401 14.3794 11.4468 14.2727L14.2135 11.506C14.6868 11.0327 14.9135 10.4727 14.2135 9.77273C13.5201 9.0794 12.9668 9.2994 12.4868 9.7794Z",
37
+ stroke: "#64748B",
38
+ strokeMiterlimit: "10",
39
+ strokeLinecap: "round",
40
+ strokeLinejoin: "round"
41
+ }), /*#__PURE__*/_jsx("path", {
42
+ d: "M12.0933 10.1719C12.3266 11.0119 12.9866 11.6652 13.8266 11.9052",
43
+ stroke: "#64748B",
44
+ strokeMiterlimit: "10",
45
+ strokeLinecap: "round",
46
+ strokeLinejoin: "round"
47
+ })]
48
+ });
49
+ };
50
+ export default DataTableIcon;
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { jsxs as _jsxs } from "react/jsx-runtime";
3
+ const DuplicateIcon = () => {
4
+ return /*#__PURE__*/_jsxs("svg", {
5
+ width: "16",
6
+ height: "16",
7
+ viewBox: "0 0 16 16",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [/*#__PURE__*/_jsx("path", {
11
+ d: "M10.6654 8.60016V11.4002C10.6654 13.7335 9.73203 14.6668 7.3987 14.6668H4.5987C2.26536 14.6668 1.33203 13.7335 1.33203 11.4002V8.60016C1.33203 6.26683 2.26536 5.3335 4.5987 5.3335H7.3987C9.73203 5.3335 10.6654 6.26683 10.6654 8.60016Z",
12
+ stroke: "#64748B",
13
+ strokeLinecap: "round",
14
+ strokeLinejoin: "round"
15
+ }), /*#__PURE__*/_jsx("path", {
16
+ d: "M14.6654 4.60016V7.40016C14.6654 9.7335 13.732 10.6668 11.3987 10.6668H10.6654V8.60016C10.6654 6.26683 9.73203 5.3335 7.3987 5.3335H5.33203V4.60016C5.33203 2.26683 6.26536 1.3335 8.5987 1.3335H11.3987C13.732 1.3335 14.6654 2.26683 14.6654 4.60016Z",
17
+ stroke: "#64748B",
18
+ strokeLinecap: "round",
19
+ strokeLinejoin: "round"
20
+ })]
21
+ });
22
+ };
23
+ export default DuplicateIcon;
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { jsxs as _jsxs } from "react/jsx-runtime";
3
+ const EyeIcon = () => {
4
+ return /*#__PURE__*/_jsxs("svg", {
5
+ width: "16",
6
+ height: "16",
7
+ viewBox: "0 0 16 16",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [/*#__PURE__*/_jsx("path", {
11
+ d: "M10.3866 7.99995C10.3866 9.31995 9.31995 10.3866 7.99995 10.3866C6.67995 10.3866 5.61328 9.31995 5.61328 7.99995C5.61328 6.67995 6.67995 5.61328 7.99995 5.61328C9.31995 5.61328 10.3866 6.67995 10.3866 7.99995Z",
12
+ stroke: "#64748B",
13
+ strokeLinecap: "round",
14
+ strokeLinejoin: "round"
15
+ }), /*#__PURE__*/_jsx("path", {
16
+ d: "M7.9999 13.5133C10.3532 13.5133 12.5466 12.1266 14.0732 9.72665C14.6732 8.78665 14.6732 7.20665 14.0732 6.26665C12.5466 3.86665 10.3532 2.47998 7.9999 2.47998C5.64656 2.47998 3.45323 3.86665 1.92656 6.26665C1.32656 7.20665 1.32656 8.78665 1.92656 9.72665C3.45323 12.1266 5.64656 13.5133 7.9999 13.5133Z",
17
+ stroke: "#64748B",
18
+ strokeLinecap: "round",
19
+ strokeLinejoin: "round"
20
+ })]
21
+ });
22
+ };
23
+ export default EyeIcon;
@@ -0,0 +1,43 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { jsxs as _jsxs } from "react/jsx-runtime";
3
+ const EyeSlash = () => {
4
+ return /*#__PURE__*/_jsxs("svg", {
5
+ width: "16",
6
+ height: "16",
7
+ viewBox: "0 0 16 16",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [/*#__PURE__*/_jsx("path", {
11
+ d: "M9.68661 6.31328L6.31328 9.68661C5.87995 9.25328 5.61328 8.65995 5.61328 7.99995C5.61328 6.67995 6.67995 5.61328 7.99995 5.61328C8.65995 5.61328 9.25328 5.87995 9.68661 6.31328Z",
12
+ stroke: "#64748B",
13
+ strokeLinecap: "round",
14
+ strokeLinejoin: "round"
15
+ }), /*#__PURE__*/_jsx("path", {
16
+ d: "M11.8799 3.84682C10.7132 2.96682 9.3799 2.48682 7.9999 2.48682C5.64656 2.48682 3.45323 3.87348 1.92656 6.27348C1.32656 7.21348 1.32656 8.79348 1.92656 9.73348C2.45323 10.5602 3.06656 11.2735 3.73323 11.8468",
17
+ stroke: "#64748B",
18
+ strokeLinecap: "round",
19
+ strokeLinejoin: "round"
20
+ }), /*#__PURE__*/_jsx("path", {
21
+ d: "M5.61328 13.02C6.37328 13.34 7.17995 13.5133 7.99995 13.5133C10.3533 13.5133 12.5466 12.1266 14.0733 9.72662C14.6733 8.78662 14.6733 7.20662 14.0733 6.26662C13.8533 5.91995 13.6133 5.59329 13.3666 5.28662",
22
+ stroke: "#64748B",
23
+ strokeLinecap: "round",
24
+ strokeLinejoin: "round"
25
+ }), /*#__PURE__*/_jsx("path", {
26
+ d: "M10.3409 8.4668C10.1676 9.4068 9.40094 10.1735 8.46094 10.3468",
27
+ stroke: "#64748B",
28
+ strokeLinecap: "round",
29
+ strokeLinejoin: "round"
30
+ }), /*#__PURE__*/_jsx("path", {
31
+ d: "M6.31203 9.68652L1.33203 14.6665",
32
+ stroke: "#64748B",
33
+ strokeLinecap: "round",
34
+ strokeLinejoin: "round"
35
+ }), /*#__PURE__*/_jsx("path", {
36
+ d: "M14.6675 1.3335L9.6875 6.3135",
37
+ stroke: "#64748B",
38
+ strokeLinecap: "round",
39
+ strokeLinejoin: "round"
40
+ })]
41
+ });
42
+ };
43
+ export default EyeSlash;
@@ -0,0 +1,33 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { jsxs as _jsxs } from "react/jsx-runtime";
3
+ const HashtagIcon = () => {
4
+ return /*#__PURE__*/_jsxs("svg", {
5
+ width: "12",
6
+ height: "12",
7
+ viewBox: "0 0 12 12",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [/*#__PURE__*/_jsx("path", {
11
+ d: "M5 1.5L4 10.5",
12
+ stroke: "#64748B",
13
+ strokeLinecap: "round",
14
+ strokeLinejoin: "round"
15
+ }), /*#__PURE__*/_jsx("path", {
16
+ d: "M8 1.5L7 10.5",
17
+ stroke: "#64748B",
18
+ strokeLinecap: "round",
19
+ strokeLinejoin: "round"
20
+ }), /*#__PURE__*/_jsx("path", {
21
+ d: "M1.75 4.5H10.75",
22
+ stroke: "#64748B",
23
+ strokeLinecap: "round",
24
+ strokeLinejoin: "round"
25
+ }), /*#__PURE__*/_jsx("path", {
26
+ d: "M1.25 7.5H10.25",
27
+ stroke: "#64748B",
28
+ strokeLinecap: "round",
29
+ strokeLinejoin: "round"
30
+ })]
31
+ });
32
+ };
33
+ export default HashtagIcon;
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { jsxs as _jsxs } from "react/jsx-runtime";
3
+ const PlusIcon = () => {
4
+ return /*#__PURE__*/_jsxs("svg", {
5
+ width: "18",
6
+ height: "18",
7
+ viewBox: "0 0 18 18",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [/*#__PURE__*/_jsx("path", {
11
+ d: "M4.5 9H13.5",
12
+ stroke: "#64748B",
13
+ strokeLinecap: "round",
14
+ strokeLinejoin: "round"
15
+ }), /*#__PURE__*/_jsx("path", {
16
+ d: "M9 13.5V4.5",
17
+ stroke: "#64748B",
18
+ strokeLinecap: "round",
19
+ strokeLinejoin: "round"
20
+ })]
21
+ });
22
+ };
23
+ export default PlusIcon;
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { jsxs as _jsxs } from "react/jsx-runtime";
3
+ const SelectRoundedIcon = () => {
4
+ return /*#__PURE__*/_jsxs("svg", {
5
+ width: "14",
6
+ height: "14",
7
+ viewBox: "0 0 14 14",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [/*#__PURE__*/_jsx("path", {
11
+ d: "M7.0013 12.8334C10.223 12.8334 12.8346 10.2217 12.8346 7.00008C12.8346 3.77842 10.223 1.16675 7.0013 1.16675C3.77964 1.16675 1.16797 3.77842 1.16797 7.00008C1.16797 10.2217 3.77964 12.8334 7.0013 12.8334Z",
12
+ stroke: "#64748B",
13
+ strokeMiterlimit: "10",
14
+ strokeLinecap: "round",
15
+ strokeLinejoin: "round"
16
+ }), /*#__PURE__*/_jsx("path", {
17
+ d: "M4.94141 6.26489L7.00057 8.31823L9.05974 6.26489",
18
+ stroke: "#64748B",
19
+ strokeLinecap: "round",
20
+ strokeLinejoin: "round"
21
+ })]
22
+ });
23
+ };
24
+ export default SelectRoundedIcon;
@@ -0,0 +1,33 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { jsxs as _jsxs } from "react/jsx-runtime";
3
+ const SortByIcon = () => {
4
+ return /*#__PURE__*/_jsxs("svg", {
5
+ width: "16",
6
+ height: "16",
7
+ viewBox: "0 0 16 16",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [/*#__PURE__*/_jsx("path", {
11
+ d: "M6.96781 4.47998L4.48779 2L2.00781 4.47998",
12
+ stroke: "#64748B",
13
+ strokeLinecap: "round",
14
+ strokeLinejoin: "round"
15
+ }), /*#__PURE__*/_jsx("path", {
16
+ d: "M4.48828 14V2",
17
+ stroke: "#64748B",
18
+ strokeLinecap: "round",
19
+ strokeLinejoin: "round"
20
+ }), /*#__PURE__*/_jsx("path", {
21
+ d: "M9.03516 11.52L11.5152 14L13.9952 11.52",
22
+ stroke: "#64748B",
23
+ strokeLinecap: "round",
24
+ strokeLinejoin: "round"
25
+ }), /*#__PURE__*/_jsx("path", {
26
+ d: "M11.5156 2V14",
27
+ stroke: "#64748B",
28
+ strokeLinecap: "round",
29
+ strokeLinejoin: "round"
30
+ })]
31
+ });
32
+ };
33
+ export default SortByIcon;
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { jsxs as _jsxs } from "react/jsx-runtime";
3
+ const TickOutlined = () => {
4
+ return /*#__PURE__*/_jsxs("svg", {
5
+ width: "14",
6
+ height: "14",
7
+ viewBox: "0 0 14 14",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [/*#__PURE__*/_jsx("path", {
11
+ d: "M7.00008 12.8327C10.2084 12.8327 12.8334 10.2077 12.8334 6.99935C12.8334 3.79102 10.2084 1.16602 7.00008 1.16602C3.79175 1.16602 1.16675 3.79102 1.16675 6.99935C1.16675 10.2077 3.79175 12.8327 7.00008 12.8327Z",
12
+ stroke: "#64748B",
13
+ strokeLinecap: "round",
14
+ strokeLinejoin: "round"
15
+ }), /*#__PURE__*/_jsx("path", {
16
+ d: "M4.52075 7.00044L6.17159 8.65128L9.47909 5.34961",
17
+ stroke: "#64748B",
18
+ strokeLinecap: "round",
19
+ strokeLinejoin: "round"
20
+ })]
21
+ });
22
+ };
23
+ export default TickOutlined;
@@ -0,0 +1,38 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { jsxs as _jsxs } from "react/jsx-runtime";
3
+ const TrashIcon = () => {
4
+ return /*#__PURE__*/_jsxs("svg", {
5
+ width: "16",
6
+ height: "16",
7
+ viewBox: "0 0 16 16",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [/*#__PURE__*/_jsx("path", {
11
+ d: "M2 3.98617C4.22 3.76617 6.45333 3.65283 8.68 3.65283C10 3.65283 11.32 3.7195 12.64 3.85283L14 3.98617",
12
+ stroke: "#64748B",
13
+ strokeLinecap: "round",
14
+ strokeLinejoin: "round"
15
+ }), /*#__PURE__*/_jsx("path", {
16
+ d: "M10.332 3.3135L10.1854 2.44016C10.0787 1.80683 9.9987 1.3335 8.87203 1.3335H7.12536C5.9987 1.3335 5.91203 1.8335 5.81203 2.44683L5.66537 3.3135",
17
+ stroke: "#64748B",
18
+ strokeLinecap: "round",
19
+ strokeLinejoin: "round"
20
+ }), /*#__PURE__*/_jsx("path", {
21
+ d: "M3.43307 6.09375L3.86641 12.8071C3.93974 13.8537 3.99974 14.6671 5.85974 14.6671H10.1397C11.9997 14.6671 12.0597 13.8537 12.1331 12.8071L12.5664 6.09375",
22
+ stroke: "#64748B",
23
+ strokeLinecap: "round",
24
+ strokeLinejoin: "round"
25
+ }), /*#__PURE__*/_jsx("path", {
26
+ d: "M9.11328 11H6.89328",
27
+ stroke: "#64748B",
28
+ strokeLinecap: "round",
29
+ strokeLinejoin: "round"
30
+ }), /*#__PURE__*/_jsx("path", {
31
+ d: "M9.66797 8.3335H6.33464",
32
+ stroke: "#64748B",
33
+ strokeLinecap: "round",
34
+ strokeLinejoin: "round"
35
+ })]
36
+ });
37
+ };
38
+ export default TrashIcon;
@@ -6,14 +6,14 @@ import { FcAddRow, FcAddColumn } from "react-icons/fc";
6
6
  import { AiFillEdit, AiOutlineInsertRowBelow, AiOutlineInsertRowRight, AiOutlineDelete, AiFillTag, AiOutlineUpload, AiOutlineArrowsAlt, AiOutlineInsertRowAbove, AiOutlineInsertRowLeft, AiFillHtml5 } from "react-icons/ai";
7
7
  import { SiLatex } from "react-icons/si";
8
8
  import { RiDeleteColumn, RiDeleteRow } from "react-icons/ri";
9
- import { FontFamilyIcon, FontSizeIcon, StrikethroughIcon, MoreHorizontal, UploadImage, LeftArrow, RightArrow, CheckListButton, CheckListButtonActive, ExcelIcon, CsvIcon, CloseIcon, SearchIcon, ExpandIcon, Text, TextAreaIcon, Phone, BriefCase, Bank, CalendarTick, DollarSquare, Checkbox, Description, RadioButtonIcon, CheckedIcon, UncheckedIcon, InfinityIcon, ResetIcon } from "./iconslist";
9
+ import { FontFamilyIcon, FontSizeIcon, StrikethroughIcon, MoreHorizontal, UploadImage, LeftArrow, RightArrow, CheckListButton, CheckListButtonActive, ExcelIcon, CsvIcon, CloseIcon, SearchIcon, ExpandIcon, Text, TextAreaIcon, Phone, BriefCase, Bank, CalendarTick, DollarSquare, Checkbox, Description, RadioButtonIcon, CheckedIcon, UncheckedIcon, InfinityIcon, ResetIcon, GridAddSectionIcon } from "./iconslist";
10
10
  import ArrowRightIcon from "@mui/icons-material/ArrowRight";
11
11
  import ArrowDropDownIcon from "@mui/icons-material/ArrowDropDown";
12
12
  import EmailRoundedIcon from "@mui/icons-material/EmailRounded";
13
13
  import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined";
14
14
  import GridOnIcon from "@mui/icons-material/GridOn";
15
15
  import GppBadOutlinedIcon from "@mui/icons-material/GppBadOutlined";
16
- import { AccordionTextFormatIcon, BoldTextFormatIcon, BulletedListTextFormatIcon, ButtonElementIcon, CarouselElementIcon, CheckListTextFormatIcon, ColorBoxElementIcon, DividerElementIcon, DocUploadElementIcon, EmbedElementIcon, EmojiElementIcon, FormElementIcon, GridElementIcon, H1, H2, H3, ImageElementIcon, ItalicTextFormatIcon, LinkIconV2, OrderedListTextFormatIcon, SignatureElementIcon, TableElementIcon, TopBannerElementIcon, UnderlineTextFormatIcon, VideoElementIcon, CalendlyIcon, LeftAlignTextFormat, CenterAlignTextFormat, RightAlignTextFormat, JustifyTextFormat, FreeGridElement, AppHeaderElement, CodeElementIcon } from "./iconListV2";
16
+ import { AccordionTextFormatIcon, BoldTextFormatIcon, BulletedListTextFormatIcon, ButtonElementIcon, CarouselElementIcon, CheckListTextFormatIcon, ColorBoxElementIcon, DividerElementIcon, DocUploadElementIcon, EmbedElementIcon, EmojiElementIcon, FormElementIcon, GridElementIcon, H1, H2, H3, ImageElementIcon, ItalicTextFormatIcon, LinkIconV2, OrderedListTextFormatIcon, SignatureElementIcon, TableElementIcon, TopBannerElementIcon, UnderlineTextFormatIcon, VideoElementIcon, LeftAlignTextFormat, CenterAlignTextFormat, RightAlignTextFormat, JustifyTextFormat, FreeGridElement, AppHeaderElement, CodeElementIcon } from "./iconListV2";
17
17
  import MoreVertRoundedIcon from "@mui/icons-material/MoreVertRounded";
18
18
  import SettingsIcon from "../assets/svg/SettingsIcon";
19
19
  import UndoIcon from "../assets/svg/UndoIcon";
@@ -27,6 +27,19 @@ import DeleteIcon from "@mui/icons-material/Delete";
27
27
  import { BrainIcon } from "../assets/svg/BrainIcon";
28
28
  import DocsIcon from "../assets/svg/DocsIcon";
29
29
  import UserIcon from "../assets/svg/UserIcon";
30
+ import HashtagIcon from "../assets/svg/HashtagIcon";
31
+ import SelectRoundedIcon from "../assets/svg/SelectRoundedIcon";
32
+ import SortByIcon from "../assets/svg/SortByIcon";
33
+ import TickOutlined from "../assets/svg/TickOutlined";
34
+ import CalenderIconTick from "../assets/svg/CalenderIconTick";
35
+ import PlusIcon from "../assets/svg/PlusIcon";
36
+ import EyeSlash from "../assets/svg/EyeSlash";
37
+ import ArrowUpIcon from "../assets/svg/ArrowUpIcon";
38
+ import ArrowDownIcon from "../assets/svg/ArrowDownIcon";
39
+ import DuplicateIcon from "../assets/svg/DuplicateIcon";
40
+ import EyeIcon from "../assets/svg/EyeIcon";
41
+ import TrashIcon from "../assets/svg/TrashCanIcon";
42
+ import DataTableIcon from "../assets/svg/DataTableIcon";
30
43
  import { jsx as _jsx } from "react/jsx-runtime";
31
44
  import { jsxs as _jsxs } from "react/jsx-runtime";
32
45
  const iconList = {
@@ -235,7 +248,7 @@ const iconList = {
235
248
  text: /*#__PURE__*/_jsx(Text, {
236
249
  stroke: "#64748B"
237
250
  }),
238
- calenderNewIcon: /*#__PURE__*/_jsx(CalendlyIcon, {}),
251
+ calenderNewIcon: /*#__PURE__*/_jsx(CalenderIconTick, {}),
239
252
  textArea: /*#__PURE__*/_jsx(TextAreaIcon, {}),
240
253
  phone: /*#__PURE__*/_jsx(Phone, {}),
241
254
  briefCase: /*#__PURE__*/_jsx(BriefCase, {}),
@@ -282,7 +295,20 @@ const iconList = {
282
295
  brain: /*#__PURE__*/_jsx(BrainIcon, {}),
283
296
  docsIcon: /*#__PURE__*/_jsx(DocsIcon, {}),
284
297
  userIcon: /*#__PURE__*/_jsx(UserIcon, {}),
285
- shieldNoAccess: /*#__PURE__*/_jsx(GppBadOutlinedIcon, {})
298
+ shieldNoAccess: /*#__PURE__*/_jsx(GppBadOutlinedIcon, {}),
299
+ hashtagIcon: /*#__PURE__*/_jsx(HashtagIcon, {}),
300
+ selectRounded: /*#__PURE__*/_jsx(SelectRoundedIcon, {}),
301
+ sortBy: /*#__PURE__*/_jsx(SortByIcon, {}),
302
+ addRounded: /*#__PURE__*/_jsx(GridAddSectionIcon, {}),
303
+ tickOutline: /*#__PURE__*/_jsx(TickOutlined, {}),
304
+ plusIcon: /*#__PURE__*/_jsx(PlusIcon, {}),
305
+ eyeSlash: /*#__PURE__*/_jsx(EyeSlash, {}),
306
+ eyeIcon: /*#__PURE__*/_jsx(EyeIcon, {}),
307
+ arrowUp: /*#__PURE__*/_jsx(ArrowUpIcon, {}),
308
+ arrowDown: /*#__PURE__*/_jsx(ArrowDownIcon, {}),
309
+ duplicateIcon: /*#__PURE__*/_jsx(DuplicateIcon, {}),
310
+ trashIcon: /*#__PURE__*/_jsx(TrashIcon, {}),
311
+ dataTable: /*#__PURE__*/_jsx(DataTableIcon, {})
286
312
  };
287
313
  export const icons = {
288
314
  ...iconList
@@ -163,7 +163,7 @@ const RnD = props => {
163
163
  }
164
164
  switch (e.detail) {
165
165
  case 1:
166
- clearSelectionOnly(editor); //for selection removal on click outside
166
+ clearSelectionOnly(editor); //for selection removal on click outside
167
167
  if (!enable) {
168
168
  setSelectedElement({
169
169
  path: str_path,
@@ -367,7 +367,7 @@ const RnD = props => {
367
367
  // some cases
368
368
  if (dragOverEle?.dataset?.dragovertype === undefined) {
369
369
  // means check for parent element
370
- dragOverEle = e?.toElement?.parentElement;
370
+ dragOverEle = e?.toElement?.closest(".freegrid-container-parent");
371
371
  }
372
372
  if (dragOverEle?.dataset?.dragovertype !== "child") {
373
373
  const oldPath = dragging.dragOver;
@@ -269,7 +269,7 @@ const ELEMENTS_LIST = [{
269
269
  desc: "",
270
270
  type: "dataView",
271
271
  icon: /*#__PURE__*/_jsx(Icon, {
272
- icon: "dataView"
272
+ icon: "dataTable"
273
273
  }),
274
274
  onInsert: editor => {
275
275
  insertDataView(editor);
@@ -909,35 +909,56 @@ export function H3() {
909
909
  })
910
910
  });
911
911
  }
912
- export function CalendlyIcon() {
912
+ export function DragIcon() {
913
913
  return /*#__PURE__*/_jsxs("svg", {
914
- width: "12",
915
- height: "14",
916
- viewBox: "0 0 12 14",
914
+ width: "16",
915
+ height: "12",
916
+ viewBox: "0 0 10 6",
917
917
  fill: "none",
918
918
  xmlns: "http://www.w3.org/2000/svg",
919
- className: "calederIconSvg",
920
- children: [/*#__PURE__*/_jsx("rect", {
921
- x: "0.5",
922
- y: "2.5",
923
- width: "11",
924
- height: "11",
925
- rx: "1.5",
926
- stroke: "#64748B"
927
- }), /*#__PURE__*/_jsx("path", {
928
- d: "M3 1L3 4",
929
- stroke: "#64748B",
930
- strokeLinecap: "round",
931
- className: "strokePath"
932
- }), /*#__PURE__*/_jsx("path", {
933
- d: "M9 1L9 4",
934
- stroke: "#64748B",
935
- strokeLinecap: "round",
936
- className: "strokePath"
937
- }), /*#__PURE__*/_jsx("path", {
938
- d: "M8.10369 7.0554H7.43892C7.41335 6.91335 7.36577 6.78835 7.29616 6.6804C7.22656 6.57244 7.14134 6.48082 7.04048 6.40554C6.93963 6.33026 6.8267 6.27344 6.7017 6.23509C6.57813 6.19673 6.44673 6.17756 6.30753 6.17756C6.05611 6.17756 5.83097 6.24077 5.6321 6.36719C5.43466 6.49361 5.27841 6.67898 5.16335 6.9233C5.04972 7.16761 4.9929 7.46591 4.9929 7.81818C4.9929 8.1733 5.04972 8.47301 5.16335 8.71733C5.27841 8.96165 5.43537 9.14631 5.63423 9.27131C5.8331 9.39631 6.05682 9.45881 6.3054 9.45881C6.44318 9.45881 6.57386 9.44034 6.69744 9.40341C6.82244 9.36506 6.93537 9.30895 7.03622 9.23509C7.13707 9.16122 7.2223 9.07102 7.2919 8.96449C7.36293 8.85653 7.41193 8.73295 7.43892 8.59375L8.10369 8.59588C8.06818 8.81037 7.99929 9.00781 7.89702 9.18821C7.79616 9.36719 7.66619 9.52202 7.5071 9.6527C7.34943 9.78196 7.16903 9.8821 6.96591 9.95312C6.76278 10.0241 6.54119 10.0597 6.30114 10.0597C5.9233 10.0597 5.58665 9.97017 5.29119 9.79119C4.99574 9.6108 4.76278 9.35298 4.59233 9.01776C4.4233 8.68253 4.33878 8.28267 4.33878 7.81818C4.33878 7.35227 4.42401 6.95241 4.59446 6.61861C4.76491 6.28338 4.99787 6.02628 5.29332 5.8473C5.58878 5.6669 5.92472 5.5767 6.30114 5.5767C6.53267 5.5767 6.74858 5.61009 6.94886 5.67685C7.15057 5.74219 7.33168 5.83878 7.49219 5.96662C7.6527 6.09304 7.78551 6.24787 7.89062 6.43111C7.99574 6.61293 8.06676 6.82102 8.10369 7.0554Z",
939
- fill: "#64748B",
940
- className: "fillPath"
919
+ className: "dragIcon",
920
+ children: [/*#__PURE__*/_jsx("ellipse", {
921
+ cx: "1.49462",
922
+ cy: "4.42384",
923
+ rx: "0.779289",
924
+ ry: "0.779289",
925
+ transform: "rotate(-90 1.49462 4.42384)",
926
+ fill: "#94A3B8"
927
+ }), /*#__PURE__*/_jsx("ellipse", {
928
+ cx: "4.99999",
929
+ cy: "4.42384",
930
+ rx: "0.779289",
931
+ ry: "0.779289",
932
+ transform: "rotate(-90 4.99999 4.42384)",
933
+ fill: "#94A3B8"
934
+ }), /*#__PURE__*/_jsx("ellipse", {
935
+ cx: "8.50732",
936
+ cy: "4.42384",
937
+ rx: "0.779289",
938
+ ry: "0.779289",
939
+ transform: "rotate(-90 8.50732 4.42384)",
940
+ fill: "#94A3B8"
941
+ }), /*#__PURE__*/_jsx("ellipse", {
942
+ cx: "1.49462",
943
+ cy: "0.91993",
944
+ rx: "0.779289",
945
+ ry: "0.779289",
946
+ transform: "rotate(-90 1.49462 0.91993)",
947
+ fill: "#94A3B8"
948
+ }), /*#__PURE__*/_jsx("ellipse", {
949
+ cx: "4.99999",
950
+ cy: "0.91993",
951
+ rx: "0.779289",
952
+ ry: "0.779289",
953
+ transform: "rotate(-90 4.99999 0.91993)",
954
+ fill: "#94A3B8"
955
+ }), /*#__PURE__*/_jsx("ellipse", {
956
+ cx: "8.50732",
957
+ cy: "0.91993",
958
+ rx: "0.779289",
959
+ ry: "0.779289",
960
+ transform: "rotate(-90 8.50732 0.91993)",
961
+ fill: "#94A3B8"
941
962
  })]
942
963
  });
943
964
  }
@@ -1242,59 +1263,6 @@ export function CodeElementIcon() {
1242
1263
  })]
1243
1264
  });
1244
1265
  }
1245
- export function DragIcon() {
1246
- return /*#__PURE__*/_jsxs("svg", {
1247
- width: "16",
1248
- height: "12",
1249
- viewBox: "0 0 10 6",
1250
- fill: "none",
1251
- xmlns: "http://www.w3.org/2000/svg",
1252
- className: "dragIcon",
1253
- children: [/*#__PURE__*/_jsx("ellipse", {
1254
- cx: "1.49462",
1255
- cy: "4.42384",
1256
- rx: "0.779289",
1257
- ry: "0.779289",
1258
- transform: "rotate(-90 1.49462 4.42384)",
1259
- fill: "#94A3B8"
1260
- }), /*#__PURE__*/_jsx("ellipse", {
1261
- cx: "4.99999",
1262
- cy: "4.42384",
1263
- rx: "0.779289",
1264
- ry: "0.779289",
1265
- transform: "rotate(-90 4.99999 4.42384)",
1266
- fill: "#94A3B8"
1267
- }), /*#__PURE__*/_jsx("ellipse", {
1268
- cx: "8.50732",
1269
- cy: "4.42384",
1270
- rx: "0.779289",
1271
- ry: "0.779289",
1272
- transform: "rotate(-90 8.50732 4.42384)",
1273
- fill: "#94A3B8"
1274
- }), /*#__PURE__*/_jsx("ellipse", {
1275
- cx: "1.49462",
1276
- cy: "0.91993",
1277
- rx: "0.779289",
1278
- ry: "0.779289",
1279
- transform: "rotate(-90 1.49462 0.91993)",
1280
- fill: "#94A3B8"
1281
- }), /*#__PURE__*/_jsx("ellipse", {
1282
- cx: "4.99999",
1283
- cy: "0.91993",
1284
- rx: "0.779289",
1285
- ry: "0.779289",
1286
- transform: "rotate(-90 4.99999 0.91993)",
1287
- fill: "#94A3B8"
1288
- }), /*#__PURE__*/_jsx("ellipse", {
1289
- cx: "8.50732",
1290
- cy: "0.91993",
1291
- rx: "0.779289",
1292
- ry: "0.779289",
1293
- transform: "rotate(-90 8.50732 0.91993)",
1294
- fill: "#94A3B8"
1295
- })]
1296
- });
1297
- }
1298
1266
  export function TextSizeUpArrow() {
1299
1267
  return /*#__PURE__*/_jsx("svg", {
1300
1268
  width: "9",
@@ -1,4 +1,26 @@
1
1
  import { jsx } from "slate-hyperscript";
2
+ const inlineStyles = [{
3
+ key: "bold",
4
+ getStyle: styles => styles.fontWeight === "bold" || parseInt(styles.fontWeight, 10) >= 700
5
+ }, {
6
+ key: "italic",
7
+ getStyle: styles => styles.fontStyle === "italic"
8
+ }, {
9
+ key: "underline",
10
+ getStyle: styles => styles.textDecoration.includes("underline")
11
+ }];
12
+ function getInlineTextStyles(element) {
13
+ if (!element || !element.style) return {};
14
+ const styles = element.style;
15
+ const elementStyles = inlineStyles.reduce((total, currVal) => {
16
+ const style = currVal.getStyle(styles);
17
+ if (style) {
18
+ total[currVal.key] = style;
19
+ }
20
+ return total;
21
+ }, {});
22
+ return elementStyles;
23
+ }
2
24
  const handleTableCell = (el, children) => {
3
25
  const wrapChild = children?.map(c => {
4
26
  if (typeof c === "string") {
@@ -140,7 +162,10 @@ const deserialize = el => {
140
162
  if (el.nodeType === 3) {
141
163
  const match = /\r|\n/.exec(el.textContent);
142
164
  const text = el.textContent.replace(/\r|\n/g, "").trim();
143
- return match && !text ? null : el.textContent;
165
+ return match && !text ? null : {
166
+ text: el.textContent,
167
+ ...getInlineTextStyles(el.parentNode)
168
+ };
144
169
  } else if (el.nodeType !== 1) {
145
170
  return null;
146
171
  } else if (el.nodeName === "BR") {
@@ -1,6 +1,6 @@
1
1
  import { useMediaQuery } from "@mui/material";
2
2
  export const STIMULATOR_MOCK = {
3
- xs: "@media (min-width: 1200px) and (max-width: 1980px)"
3
+ xs: "@media (min-width: 1200px) and (max-width: 10000px)"
4
4
  };
5
5
  export const isStimulator = () => {
6
6
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "5.4.5",
3
+ "version": "5.4.6",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"