@flozy/editor 5.5.9 → 5.6.0
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.
- package/dist/Editor/ChatEditor.js +25 -34
- package/dist/Editor/CommonEditor.js +26 -13
- package/dist/Editor/Editor.css +106 -20
- package/dist/Editor/Elements/AI/AIInput.js +0 -1
- package/dist/Editor/Elements/AI/CustomSelect.js +17 -10
- package/dist/Editor/Elements/AI/PopoverAIInput.js +59 -53
- package/dist/Editor/Elements/AI/Styles.js +24 -6
- package/dist/Editor/Elements/Accordion/Accordion.js +8 -1
- package/dist/Editor/Elements/AppHeader/AppHeader.js +6 -6
- package/dist/Editor/Elements/Button/EditorButton.js +6 -1
- package/dist/Editor/Elements/Carousel/CarouselItem.js +11 -3
- package/dist/Editor/Elements/Color Picker/ColorButtons.js +7 -5
- package/dist/Editor/Elements/Color Picker/Styles.js +8 -3
- package/dist/Editor/Elements/Color Picker/defaultColors.js +2 -2
- package/dist/Editor/Elements/DataView/DataView.js +124 -0
- package/dist/Editor/Elements/DataView/DataViewButton.js +23 -0
- package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +83 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +33 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +180 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +62 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +68 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +35 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +39 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +30 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +30 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +35 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +36 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +17 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +29 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +38 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +86 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +71 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +138 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterView.js +213 -0
- package/dist/Editor/Elements/DataView/Layouts/Formula.js +29 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +113 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +44 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +146 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +79 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +57 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +101 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +174 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +241 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +45 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +32 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/index.js +110 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +217 -0
- package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +131 -0
- package/dist/Editor/Elements/DataView/Layouts/TableView.js +253 -0
- package/dist/Editor/Elements/DataView/Layouts/ViewData.js +85 -0
- package/dist/Editor/Elements/DataView/Layouts/colStyles.js +10 -0
- package/dist/Editor/Elements/DataView/Layouts/index.js +25 -0
- package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +277 -0
- package/dist/Editor/Elements/DataView/Utils/globalSearch.js +15 -0
- package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +88 -0
- package/dist/Editor/Elements/DataView/styles.js +169 -0
- package/dist/Editor/Elements/Divider/Divider.js +36 -20
- package/dist/Editor/Elements/Embed/Image.js +51 -16
- package/dist/Editor/Elements/Embed/Video.js +26 -3
- package/dist/Editor/Elements/Form/Form.js +38 -2
- package/dist/Editor/Elements/Form/FormElements/FormCheckbox.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormDate.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormEmail.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormNumbers.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormRadioButton.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormText.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +6 -1
- package/dist/Editor/Elements/Form/FormPopup.js +12 -9
- package/dist/Editor/Elements/Form/Workflow/Styles.js +2 -0
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +1 -1
- package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +4 -2
- package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +20 -1
- package/dist/Editor/Elements/FreeGrid/breakpointConstants.js +4 -4
- package/dist/Editor/Elements/FreeGrid/styles.js +1 -1
- package/dist/Editor/Elements/Grid/GridButton.js +2 -2
- package/dist/Editor/Elements/Grid/GridItem.js +47 -36
- package/dist/Editor/Elements/Grid/Styles.js +50 -0
- package/dist/Editor/Elements/Link/LinkButton.js +1 -1
- package/dist/Editor/Elements/Search/SearchButton.js +1 -0
- package/dist/Editor/Elements/Signature/Signature.css +1 -1
- package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -2
- package/dist/Editor/Elements/Signature/SignaturePopup.js +17 -52
- package/dist/Editor/Elements/SimpleText/index.js +3 -2
- package/dist/Editor/Elements/SimpleText/style.js +15 -0
- package/dist/Editor/Elements/Table/AddRowCol.js +77 -0
- package/dist/Editor/Elements/Table/DragButton.js +142 -0
- package/dist/Editor/Elements/Table/DragStyles.js +70 -0
- package/dist/Editor/Elements/Table/Draggable.js +25 -0
- package/dist/Editor/Elements/Table/Droppable.js +53 -0
- package/dist/Editor/Elements/Table/Styles.js +88 -78
- package/dist/Editor/Elements/Table/Table.js +263 -140
- package/dist/Editor/Elements/Table/TableCell.js +365 -111
- package/dist/Editor/Elements/Table/TablePopup.js +9 -3
- package/dist/Editor/Elements/Table/TableRow.js +10 -2
- package/dist/Editor/Elements/Table/TableTool.js +101 -0
- package/dist/Editor/Elements/Table/tableHelper.js +71 -0
- package/dist/Editor/Elements/TopBanner/TopBanner.js +2 -1
- package/dist/Editor/MiniEditor.js +21 -2
- package/dist/Editor/Styles/EditorStyles.js +13 -4
- package/dist/Editor/Toolbar/FormatTools/BlockButton.js +10 -0
- package/dist/Editor/Toolbar/FormatTools/Dropdown.js +7 -12
- package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +26 -4
- package/dist/Editor/Toolbar/FormatTools/MarkButton.js +3 -0
- package/dist/Editor/Toolbar/FormatTools/TextSize.js +5 -5
- package/dist/Editor/Toolbar/Mini/MiniToolbar.js +8 -8
- package/dist/Editor/Toolbar/Mini/Styles.js +9 -1
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/InfinityAITool.js +7 -3
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +6 -4
- package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +19 -15
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +547 -58
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +28 -16
- package/dist/Editor/Toolbar/PopupTool/index.js +3 -5
- package/dist/Editor/Toolbar/Toolbar.js +6 -0
- package/dist/Editor/Toolbar/toolbarGroups.js +4 -0
- package/dist/Editor/assets/svg/ArrowDownIcon.js +25 -0
- package/dist/Editor/assets/svg/ArrowUpIcon.js +25 -0
- package/dist/Editor/assets/svg/BrainIcon.js +2 -2
- package/dist/Editor/assets/svg/CalenderIconTick.js +64 -0
- package/dist/Editor/assets/svg/ChervDown.js +18 -0
- package/dist/Editor/assets/svg/ChervUp.js +18 -0
- package/dist/Editor/assets/svg/DataTableIcon.js +50 -0
- package/dist/Editor/assets/svg/DuplicateIcon.js +23 -0
- package/dist/Editor/assets/svg/EyeIcon.js +23 -0
- package/dist/Editor/assets/svg/EyeSlash.js +43 -0
- package/dist/Editor/assets/svg/HashtagIcon.js +33 -0
- package/dist/Editor/assets/svg/PlusIcon.js +23 -0
- package/dist/Editor/assets/svg/SelectRoundedIcon.js +24 -0
- package/dist/Editor/assets/svg/SettingsIcon.js +4 -4
- package/dist/Editor/assets/svg/SortByIcon.js +33 -0
- package/dist/Editor/assets/svg/TableIcons.js +220 -0
- package/dist/Editor/assets/svg/TickOutlined.js +23 -0
- package/dist/Editor/assets/svg/TrashCanIcon.js +38 -0
- package/dist/Editor/common/ColorPickerButton.js +85 -45
- package/dist/Editor/common/DnD/Draggable.js +2 -1
- package/dist/Editor/common/FontLoader/FontLoader.js +2 -2
- package/dist/Editor/common/Icon.js +54 -21
- package/dist/Editor/common/ImageSelector/Options/Upload.js +2 -1
- package/dist/Editor/common/ImageSelector/Styles.js +47 -6
- package/dist/Editor/common/ImageSelector/UploadStyles.js +18 -6
- package/dist/Editor/common/LinkSettings/NavComponents.js +2 -1
- package/dist/Editor/common/LinkSettings/index.js +2 -1
- package/dist/Editor/common/MentionsPopup/Styles.js +142 -8
- package/dist/Editor/common/MentionsPopup/index.js +1 -1
- package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +107 -12
- package/dist/Editor/common/RnD/GuideLines/styles.js +3 -3
- package/dist/Editor/common/RnD/ShadowElement.js +1 -1
- package/dist/Editor/common/RnD/VirtualElement/index.js +5 -1
- package/dist/Editor/common/RnD/index.js +4 -3
- package/dist/Editor/common/Section/index.js +3 -3
- package/dist/Editor/common/Section/styles.js +5 -1
- package/dist/Editor/common/Select/index.js +20 -0
- package/dist/Editor/common/Select/styles.js +17 -0
- package/dist/Editor/common/Shorthands/elements.js +13 -1
- package/dist/Editor/common/StyleBuilder/fieldStyle.js +2 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +4 -3
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +35 -7
- package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +15 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +2 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +1 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +2 -0
- package/dist/Editor/common/StyleBuilder/fieldTypes/radiusStyle.js +11 -11
- package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +22 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +21 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +20 -4
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +12 -2
- package/dist/Editor/common/StyleBuilder/formStyle.js +268 -149
- package/dist/Editor/common/StyleBuilder/index.js +101 -20
- package/dist/Editor/common/StyleBuilder/tableStyle.js +69 -25
- package/dist/Editor/common/SwipeableDrawer/style.js +15 -4
- package/dist/Editor/common/ToolbarIcon.js +1 -1
- package/dist/Editor/common/Uploader.js +39 -37
- package/dist/Editor/common/iconListV2.js +598 -74
- package/dist/Editor/common/iconslist.js +25 -19
- package/dist/Editor/commonStyle.js +421 -15
- package/dist/Editor/helper/deserialize/index.js +31 -2
- package/dist/Editor/helper/enforceDateFormat.js +41 -0
- package/dist/Editor/helper/index.js +15 -2
- package/dist/Editor/helper/theme.js +15 -1
- package/dist/Editor/hooks/useBreakpoints.js +1 -1
- package/dist/Editor/hooks/useTable.js +210 -0
- package/dist/Editor/plugins/withCustomDeleteBackward.js +34 -3
- package/dist/Editor/plugins/withEmbeds.js +30 -26
- package/dist/Editor/plugins/withHTML.js +100 -12
- package/dist/Editor/plugins/withLayout.js +1 -0
- package/dist/Editor/utils/SlateUtilityFunctions.js +31 -11
- package/dist/Editor/utils/brains.js +1 -1
- package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +75 -6
- package/dist/Editor/utils/customHooks/useResize.js +7 -4
- package/dist/Editor/utils/customHooks/useTableResize.js +6 -2
- package/dist/Editor/utils/dataView.js +43 -0
- package/dist/Editor/utils/embed.js +2 -1
- package/dist/Editor/utils/events.js +0 -1
- package/dist/Editor/utils/font.js +11 -4
- package/dist/Editor/utils/formfield.js +8 -4
- package/dist/Editor/utils/helper.js +100 -2
- package/dist/Editor/utils/insertNewLine.js +19 -1
- package/dist/Editor/utils/serializeToText.js +2 -0
- package/dist/Editor/utils/table.js +228 -24
- package/package.json +2 -2
@@ -2,21 +2,21 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
3
3
|
const SettingsIcon = props => {
|
4
4
|
return /*#__PURE__*/_jsxs("svg", {
|
5
|
-
width: "
|
5
|
+
width: "18",
|
6
6
|
height: "18",
|
7
|
-
viewBox: "0 0
|
7
|
+
viewBox: "0 0 18 18",
|
8
8
|
fill: "none",
|
9
9
|
xmlns: "http://www.w3.org/2000/svg",
|
10
10
|
...props,
|
11
11
|
children: [/*#__PURE__*/_jsx("path", {
|
12
|
-
d: "
|
12
|
+
d: "M9 11.25C10.2426 11.25 11.25 10.2426 11.25 9C11.25 7.75736 10.2426 6.75 9 6.75C7.75736 6.75 6.75 7.75736 6.75 9C6.75 10.2426 7.75736 11.25 9 11.25Z",
|
13
13
|
stroke: "#64748B",
|
14
14
|
strokeWidth: "1.5",
|
15
15
|
strokeMiterlimit: "10",
|
16
16
|
strokeLinecap: "round",
|
17
17
|
strokeLinejoin: "round"
|
18
18
|
}), /*#__PURE__*/_jsx("path", {
|
19
|
-
d: "M1.
|
19
|
+
d: "M1.5 9.6591V8.3391C1.5 7.5591 2.1375 6.9141 2.925 6.9141C4.2825 6.9141 4.8375 5.9541 4.155 4.7766C3.765 4.1016 3.9975 3.2241 4.68 2.8341L5.9775 2.0916C6.57 1.7391 7.335 1.9491 7.6875 2.5416L7.77 2.6841C8.445 3.8616 9.555 3.8616 10.2375 2.6841L10.32 2.5416C10.6725 1.9491 11.4375 1.7391 12.03 2.0916L13.3275 2.8341C14.01 3.2241 14.2425 4.1016 13.8525 4.7766C13.17 5.9541 13.725 6.9141 15.0825 6.9141C15.8625 6.9141 16.5075 7.5516 16.5075 8.3391V9.6591C16.5075 10.4391 15.87 11.0841 15.0825 11.0841C13.725 11.0841 13.17 12.0441 13.8525 13.2216C14.2425 13.9041 14.01 14.7741 13.3275 15.1641L12.03 15.9066C11.4375 16.2591 10.6725 16.0491 10.32 15.4566L10.2375 15.3141C9.5625 14.1366 8.4525 14.1366 7.77 15.3141L7.6875 15.4566C7.335 16.0491 6.57 16.2591 5.9775 15.9066L4.68 15.1641C3.9975 14.7741 3.765 13.8966 4.155 13.2216C4.8375 12.0441 4.2825 11.0841 2.925 11.0841C2.1375 11.0841 1.5 10.4391 1.5 9.6591Z",
|
20
20
|
stroke: "#64748B",
|
21
21
|
strokeWidth: "1.5",
|
22
22
|
strokeMiterlimit: "10",
|
@@ -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,220 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
3
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
4
|
+
export function PaintIcon() {
|
5
|
+
return /*#__PURE__*/_jsxs("svg", {
|
6
|
+
width: "22",
|
7
|
+
height: "22",
|
8
|
+
viewBox: "0 0 22 22",
|
9
|
+
fill: "none",
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
11
|
+
children: [/*#__PURE__*/_jsx("path", {
|
12
|
+
d: "M6.42594 16.4984L2.75011 12.8226C1.52177 11.5943 1.52177 10.3751 2.75011 9.14676L8.87344 3.02344L15.6109 9.76097C15.9501 10.1001 15.9501 10.6501 15.6109 10.9893L10.0926 16.5076C8.88261 17.7176 7.65427 17.7176 6.42594 16.4984Z",
|
13
|
+
stroke: "#64748B",
|
14
|
+
strokeWidth: "1.5",
|
15
|
+
strokeMiterlimit: "10",
|
16
|
+
strokeLinecap: "round",
|
17
|
+
strokeLinejoin: "round"
|
18
|
+
}), /*#__PURE__*/_jsx("path", {
|
19
|
+
d: "M7.65405 1.78906L8.88239 3.01736",
|
20
|
+
stroke: "#64748B",
|
21
|
+
strokeWidth: "1.5",
|
22
|
+
strokeMiterlimit: "10",
|
23
|
+
strokeLinecap: "round",
|
24
|
+
strokeLinejoin: "round"
|
25
|
+
}), /*#__PURE__*/_jsx("path", {
|
26
|
+
d: "M1.89746 10.9253L15.7575 10.3203",
|
27
|
+
stroke: "#64748B",
|
28
|
+
strokeWidth: "1.5",
|
29
|
+
strokeMiterlimit: "10",
|
30
|
+
strokeLinecap: "round",
|
31
|
+
strokeLinejoin: "round"
|
32
|
+
}), /*#__PURE__*/_jsx("path", {
|
33
|
+
d: "M2.75 20.168H14.6667",
|
34
|
+
stroke: "#64748B",
|
35
|
+
strokeWidth: "1.5",
|
36
|
+
strokeMiterlimit: "10",
|
37
|
+
strokeLinecap: "round",
|
38
|
+
strokeLinejoin: "round"
|
39
|
+
}), /*#__PURE__*/_jsx("path", {
|
40
|
+
d: "M17.2791 13.75C17.2791 13.75 15.5833 15.5925 15.5833 16.72C15.5833 17.655 16.3441 18.4158 17.2791 18.4158C18.2141 18.4158 18.9749 17.655 18.9749 16.72C18.9749 15.5925 17.2791 13.75 17.2791 13.75Z",
|
41
|
+
stroke: "#64748B",
|
42
|
+
strokeWidth: "1.5",
|
43
|
+
strokeLinecap: "round",
|
44
|
+
strokeLinejoin: "round"
|
45
|
+
})]
|
46
|
+
});
|
47
|
+
}
|
48
|
+
export function DuplicateIcon() {
|
49
|
+
return /*#__PURE__*/_jsxs("svg", {
|
50
|
+
width: "19",
|
51
|
+
height: "19",
|
52
|
+
viewBox: "0 0 19 19",
|
53
|
+
fill: "none",
|
54
|
+
xmlns: "http://www.w3.org/2000/svg",
|
55
|
+
children: [/*#__PURE__*/_jsx("path", {
|
56
|
+
d: "M12.6666 10.2112V13.5362C12.6666 16.307 11.5583 17.4154 8.78742 17.4154H5.46242C2.69159 17.4154 1.58325 16.307 1.58325 13.5362V10.2112C1.58325 7.44036 2.69159 6.33203 5.46242 6.33203H8.78742C11.5583 6.33203 12.6666 7.44036 12.6666 10.2112Z",
|
57
|
+
stroke: "#64748B",
|
58
|
+
strokeWidth: "1.5",
|
59
|
+
strokeLinecap: "round",
|
60
|
+
strokeLinejoin: "round"
|
61
|
+
}), /*#__PURE__*/_jsx("path", {
|
62
|
+
d: "M17.4166 5.4612V8.7862C17.4166 11.557 16.3083 12.6654 13.5374 12.6654H12.6666V10.2112C12.6666 7.44036 11.5583 6.33203 8.78742 6.33203H6.33325V5.4612C6.33325 2.69036 7.44158 1.58203 10.2124 1.58203H13.5374C16.3083 1.58203 17.4166 2.69036 17.4166 5.4612Z",
|
63
|
+
stroke: "#64748B",
|
64
|
+
strokeWidth: "1.5",
|
65
|
+
strokeLinecap: "round",
|
66
|
+
strokeLinejoin: "round"
|
67
|
+
})]
|
68
|
+
});
|
69
|
+
}
|
70
|
+
export function AboveArrow() {
|
71
|
+
return /*#__PURE__*/_jsxs("svg", {
|
72
|
+
width: "22",
|
73
|
+
height: "22",
|
74
|
+
viewBox: "0 0 22 22",
|
75
|
+
fill: "none",
|
76
|
+
xmlns: "http://www.w3.org/2000/svg",
|
77
|
+
children: [/*#__PURE__*/_jsx("path", {
|
78
|
+
d: "M16.5642 8.77344L11 3.20927L5.43588 8.77344",
|
79
|
+
stroke: "#64748B",
|
80
|
+
strokeWidth: "1.5",
|
81
|
+
strokeMiterlimit: "10",
|
82
|
+
strokeLinecap: "round",
|
83
|
+
strokeLinejoin: "round"
|
84
|
+
}), /*#__PURE__*/_jsx("path", {
|
85
|
+
d: "M11 18.793L11 3.36547",
|
86
|
+
stroke: "#64748B",
|
87
|
+
strokeWidth: "1.5",
|
88
|
+
strokeMiterlimit: "10",
|
89
|
+
strokeLinecap: "round",
|
90
|
+
strokeLinejoin: "round"
|
91
|
+
})]
|
92
|
+
});
|
93
|
+
}
|
94
|
+
export function BelowArrow() {
|
95
|
+
return /*#__PURE__*/_jsxs("svg", {
|
96
|
+
width: "22",
|
97
|
+
height: "22",
|
98
|
+
viewBox: "0 0 22 22",
|
99
|
+
fill: "none",
|
100
|
+
xmlns: "http://www.w3.org/2000/svg",
|
101
|
+
children: [/*#__PURE__*/_jsx("path", {
|
102
|
+
d: "M16.5642 13.2266L11 18.7907L5.43588 13.2266",
|
103
|
+
stroke: "#64748B",
|
104
|
+
strokeWidth: "1.5",
|
105
|
+
strokeMiterlimit: "10",
|
106
|
+
strokeLinecap: "round",
|
107
|
+
strokeLinejoin: "round"
|
108
|
+
}), /*#__PURE__*/_jsx("path", {
|
109
|
+
d: "M11 3.20703L11 18.6345",
|
110
|
+
stroke: "#64748B",
|
111
|
+
strokeWidth: "1.5",
|
112
|
+
strokeMiterlimit: "10",
|
113
|
+
strokeLinecap: "round",
|
114
|
+
strokeLinejoin: "round"
|
115
|
+
})]
|
116
|
+
});
|
117
|
+
}
|
118
|
+
export function RightArrow() {
|
119
|
+
return /*#__PURE__*/_jsxs("svg", {
|
120
|
+
width: "22",
|
121
|
+
height: "22",
|
122
|
+
viewBox: "0 0 22 22",
|
123
|
+
fill: "none",
|
124
|
+
xmlns: "http://www.w3.org/2000/svg",
|
125
|
+
children: [/*#__PURE__*/_jsx("path", {
|
126
|
+
d: "M13.2275 16.5625L18.7917 10.9983L13.2275 5.43417",
|
127
|
+
stroke: "#64748B",
|
128
|
+
strokeWidth: "1.5",
|
129
|
+
strokeMiterlimit: "10",
|
130
|
+
strokeLinecap: "round",
|
131
|
+
strokeLinejoin: "round"
|
132
|
+
}), /*#__PURE__*/_jsx("path", {
|
133
|
+
d: "M3.20825 11H18.6358",
|
134
|
+
stroke: "#64748B",
|
135
|
+
strokeWidth: "1.5",
|
136
|
+
strokeMiterlimit: "10",
|
137
|
+
strokeLinecap: "round",
|
138
|
+
strokeLinejoin: "round"
|
139
|
+
})]
|
140
|
+
});
|
141
|
+
}
|
142
|
+
export function LeftArrow() {
|
143
|
+
return /*#__PURE__*/_jsxs("svg", {
|
144
|
+
width: "22",
|
145
|
+
height: "22",
|
146
|
+
viewBox: "0 0 22 22",
|
147
|
+
fill: "none",
|
148
|
+
xmlns: "http://www.w3.org/2000/svg",
|
149
|
+
children: [/*#__PURE__*/_jsx("path", {
|
150
|
+
d: "M8.77246 16.5625L3.20829 10.9983L8.77246 5.43417",
|
151
|
+
stroke: "#64748B",
|
152
|
+
strokeWidth: "1.5",
|
153
|
+
strokeMiterlimit: "10",
|
154
|
+
strokeLinecap: "round",
|
155
|
+
strokeLinejoin: "round"
|
156
|
+
}), /*#__PURE__*/_jsx("path", {
|
157
|
+
d: "M18.7917 11L3.36425 11",
|
158
|
+
stroke: "#64748B",
|
159
|
+
strokeWidth: "1.5",
|
160
|
+
strokeMiterlimit: "10",
|
161
|
+
strokeLinecap: "round",
|
162
|
+
strokeLinejoin: "round"
|
163
|
+
})]
|
164
|
+
});
|
165
|
+
}
|
166
|
+
export function SettingsIcon() {
|
167
|
+
return /*#__PURE__*/_jsxs("svg", {
|
168
|
+
width: "20",
|
169
|
+
height: "20",
|
170
|
+
viewBox: "0 0 20 20",
|
171
|
+
fill: "none",
|
172
|
+
xmlns: "http://www.w3.org/2000/svg",
|
173
|
+
children: [/*#__PURE__*/_jsx("path", {
|
174
|
+
d: "M10 12.5C11.3807 12.5 12.5 11.3807 12.5 10C12.5 8.61929 11.3807 7.5 10 7.5C8.61929 7.5 7.5 8.61929 7.5 10C7.5 11.3807 8.61929 12.5 10 12.5Z",
|
175
|
+
stroke: "#0F172A",
|
176
|
+
strokeWidth: "1.5",
|
177
|
+
strokeMiterlimit: "10",
|
178
|
+
strokeLinecap: "round",
|
179
|
+
strokeLinejoin: "round"
|
180
|
+
}), /*#__PURE__*/_jsx("path", {
|
181
|
+
d: "M1.66675 10.7339V9.26718C1.66675 8.40052 2.37508 7.68385 3.25008 7.68385C4.75841 7.68385 5.37508 6.61718 4.61675 5.30885C4.18341 4.55885 4.44175 3.58385 5.20008 3.15052L6.64175 2.32552C7.30008 1.93385 8.15008 2.16718 8.54175 2.82552L8.63341 2.98385C9.38341 4.29218 10.6167 4.29218 11.3751 2.98385L11.4667 2.82552C11.8584 2.16718 12.7084 1.93385 13.3667 2.32552L14.8084 3.15052C15.5667 3.58385 15.8251 4.55885 15.3917 5.30885C14.6334 6.61718 15.2501 7.68385 16.7584 7.68385C17.6251 7.68385 18.3417 8.39218 18.3417 9.26718V10.7339C18.3417 11.6005 17.6334 12.3172 16.7584 12.3172C15.2501 12.3172 14.6334 13.3838 15.3917 14.6922C15.8251 15.4505 15.5667 16.4172 14.8084 16.8505L13.3667 17.6755C12.7084 18.0672 11.8584 17.8339 11.4667 17.1755L11.3751 17.0172C10.6251 15.7089 9.39175 15.7089 8.63341 17.0172L8.54175 17.1755C8.15008 17.8339 7.30008 18.0672 6.64175 17.6755L5.20008 16.8505C4.44175 16.4172 4.18341 15.4422 4.61675 14.6922C5.37508 13.3838 4.75841 12.3172 3.25008 12.3172C2.37508 12.3172 1.66675 11.6005 1.66675 10.7339Z",
|
182
|
+
stroke: "#0F172A",
|
183
|
+
strokeWidth: "1.5",
|
184
|
+
strokeMiterlimit: "10",
|
185
|
+
strokeLinecap: "round",
|
186
|
+
strokeLinejoin: "round"
|
187
|
+
})]
|
188
|
+
});
|
189
|
+
}
|
190
|
+
export function MoreIcon() {
|
191
|
+
return /*#__PURE__*/_jsxs("svg", {
|
192
|
+
width: "18",
|
193
|
+
height: "4",
|
194
|
+
viewBox: "0 0 18 4",
|
195
|
+
fill: "none",
|
196
|
+
xmlns: "http://www.w3.org/2000/svg",
|
197
|
+
children: [/*#__PURE__*/_jsx("path", {
|
198
|
+
d: "M9.99846 2.00034C9.99846 1.44825 9.55081 1.00069 8.99862 1.00069C8.44642 1.00069 7.99878 1.44825 7.99878 2.00034C7.99878 2.55244 8.44642 3 8.99862 3C9.55081 3 9.99846 2.55244 9.99846 2.00034Z",
|
199
|
+
fill: "#0F172A",
|
200
|
+
stroke: "#0F172A",
|
201
|
+
strokeWidth: "1.5",
|
202
|
+
strokeLinecap: "round",
|
203
|
+
strokeLinejoin: "round"
|
204
|
+
}), /*#__PURE__*/_jsx("path", {
|
205
|
+
d: "M16.9972 2.00034C16.9972 1.44825 16.5496 1.00069 15.9974 1.00069C15.4452 1.00069 14.9976 1.44825 14.9976 2.00034C14.9976 2.55244 15.4452 3 15.9974 3C16.5496 3 16.9972 2.55244 16.9972 2.00034Z",
|
206
|
+
fill: "#0F172A",
|
207
|
+
stroke: "#0F172A",
|
208
|
+
strokeWidth: "1.5",
|
209
|
+
strokeLinecap: "round",
|
210
|
+
strokeLinejoin: "round"
|
211
|
+
}), /*#__PURE__*/_jsx("path", {
|
212
|
+
d: "M2.99968 2.00034C2.99968 1.44825 2.55203 1.00069 1.99984 1.00069C1.44764 1.00069 1 1.44825 1 2.00034C1 2.55244 1.44764 3 1.99984 3C2.55203 3 2.99968 2.55244 2.99968 2.00034Z",
|
213
|
+
fill: "#0F172A",
|
214
|
+
stroke: "#0F172A",
|
215
|
+
strokeWidth: "1.5",
|
216
|
+
strokeLinecap: "round",
|
217
|
+
strokeLinejoin: "round"
|
218
|
+
})]
|
219
|
+
});
|
220
|
+
}
|
@@ -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;
|
@@ -2,9 +2,61 @@ import React, { useMemo, useState } from "react";
|
|
2
2
|
import { Grid, Button, Popover } from "@mui/material";
|
3
3
|
import ColorPickerTool from "react-gcolor-picker";
|
4
4
|
import { colors } from "../Elements/Color Picker/defaultColors";
|
5
|
+
import SwipeableDrawerComponent from "./SwipeableDrawer";
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
6
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
7
8
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
9
|
+
const ColorPickerToolComponent = ({
|
10
|
+
value,
|
11
|
+
defaultColors = [],
|
12
|
+
onSave = () => {},
|
13
|
+
recentColors = [],
|
14
|
+
hideGradient,
|
15
|
+
handleClose
|
16
|
+
}) => {
|
17
|
+
const [color, setColor] = useState(value);
|
18
|
+
const handleSave = () => {
|
19
|
+
onSave(color);
|
20
|
+
handleClose();
|
21
|
+
};
|
22
|
+
const handleColorChange = color => {
|
23
|
+
setColor(color);
|
24
|
+
};
|
25
|
+
const initialColors = useMemo(() => {
|
26
|
+
let colors = [...recentColors, ...defaultColors];
|
27
|
+
if (hideGradient) {
|
28
|
+
colors = colors.filter(c => c && !c.includes("gradient"));
|
29
|
+
}
|
30
|
+
return colors;
|
31
|
+
}, [recentColors, defaultColors, hideGradient]);
|
32
|
+
return /*#__PURE__*/_jsxs(Grid, {
|
33
|
+
item: true,
|
34
|
+
xs: 12,
|
35
|
+
children: [/*#__PURE__*/_jsx("div", {
|
36
|
+
children: /*#__PURE__*/_jsx(ColorPickerTool, {
|
37
|
+
gradient: hideGradient ? false : true,
|
38
|
+
value: color,
|
39
|
+
onChange: handleColorChange,
|
40
|
+
defaultColors: initialColors
|
41
|
+
})
|
42
|
+
}), /*#__PURE__*/_jsxs("div", {
|
43
|
+
style: {
|
44
|
+
display: "flex",
|
45
|
+
justifyContent: "end",
|
46
|
+
margin: "8px"
|
47
|
+
},
|
48
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
49
|
+
onClick: handleClose,
|
50
|
+
className: "secondaryBtn",
|
51
|
+
children: "Cancel"
|
52
|
+
}), /*#__PURE__*/_jsx(Button, {
|
53
|
+
onClick: handleSave,
|
54
|
+
className: "primaryBtn",
|
55
|
+
children: "Save"
|
56
|
+
})]
|
57
|
+
})]
|
58
|
+
});
|
59
|
+
};
|
8
60
|
const ColorPickerButton = props => {
|
9
61
|
const {
|
10
62
|
value,
|
@@ -15,39 +67,46 @@ const ColorPickerButton = props => {
|
|
15
67
|
hideGradient
|
16
68
|
} = props;
|
17
69
|
const [anchorEl, setAnchorEl] = useState(null);
|
18
|
-
const [color, setColor] = useState(value);
|
19
70
|
const open = Boolean(anchorEl);
|
71
|
+
const isMobile = window.matchMedia("(max-width: 899px)")?.matches || false;
|
20
72
|
const handleColorPicker = e => {
|
21
73
|
setAnchorEl(e.currentTarget);
|
22
74
|
};
|
23
|
-
const handleSave = () => {
|
24
|
-
onSave(color);
|
25
|
-
handleClose();
|
26
|
-
};
|
27
75
|
const handleClose = () => {
|
28
76
|
setAnchorEl(null);
|
29
77
|
};
|
30
|
-
const handleColorChange = color => {
|
31
|
-
setColor(color);
|
32
|
-
};
|
33
|
-
const initialColors = useMemo(() => {
|
34
|
-
let colors = [...recentColors, ...defaultColors];
|
35
|
-
if (hideGradient) {
|
36
|
-
colors = colors.filter(c => c && !c.includes("gradient"));
|
37
|
-
}
|
38
|
-
return colors;
|
39
|
-
}, [recentColors, defaultColors, hideGradient]);
|
40
78
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
41
79
|
children: [/*#__PURE__*/_jsx(Button, {
|
42
80
|
style: {
|
43
81
|
background: value,
|
44
82
|
height: "22px",
|
45
83
|
minWidth: "22px",
|
46
|
-
borderRadius: "26px"
|
47
|
-
border: "2px solid #E7E7E7"
|
84
|
+
borderRadius: "26px"
|
48
85
|
},
|
49
|
-
onClick: handleColorPicker
|
50
|
-
|
86
|
+
onClick: handleColorPicker,
|
87
|
+
className: "colorPickerButton",
|
88
|
+
sx: {
|
89
|
+
...classes.colorPickerBtnBorder
|
90
|
+
}
|
91
|
+
}), isMobile ? /*#__PURE__*/_jsx(SwipeableDrawerComponent, {
|
92
|
+
open: open,
|
93
|
+
onClose: handleClose,
|
94
|
+
swipeableDrawer: false,
|
95
|
+
children: /*#__PURE__*/_jsx(Grid, {
|
96
|
+
container: true,
|
97
|
+
padding: 0,
|
98
|
+
className: "ed-cp-wrpr",
|
99
|
+
sx: classes.colorPickerPopup,
|
100
|
+
children: /*#__PURE__*/_jsx(ColorPickerToolComponent, {
|
101
|
+
value: value,
|
102
|
+
defaultColors: defaultColors,
|
103
|
+
onSave: onSave,
|
104
|
+
recentColors: recentColors,
|
105
|
+
hideGradient: hideGradient,
|
106
|
+
handleClose: handleClose
|
107
|
+
})
|
108
|
+
})
|
109
|
+
}) : /*#__PURE__*/_jsx(Popover, {
|
51
110
|
open: open,
|
52
111
|
anchorEl: anchorEl,
|
53
112
|
anchorOrigin: {
|
@@ -64,32 +123,13 @@ const ColorPickerButton = props => {
|
|
64
123
|
container: true,
|
65
124
|
padding: 0,
|
66
125
|
className: "ed-cp-wrpr",
|
67
|
-
children: /*#__PURE__*/
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
onChange: handleColorChange,
|
75
|
-
defaultColors: initialColors
|
76
|
-
})
|
77
|
-
}), /*#__PURE__*/_jsxs("div", {
|
78
|
-
style: {
|
79
|
-
display: "flex",
|
80
|
-
justifyContent: "end",
|
81
|
-
margin: "8px"
|
82
|
-
},
|
83
|
-
children: [/*#__PURE__*/_jsx(Button, {
|
84
|
-
onClick: handleClose,
|
85
|
-
className: "secondaryBtn",
|
86
|
-
children: "Cancel"
|
87
|
-
}), /*#__PURE__*/_jsx(Button, {
|
88
|
-
onClick: handleSave,
|
89
|
-
className: "primaryBtn",
|
90
|
-
children: "Save"
|
91
|
-
})]
|
92
|
-
})]
|
126
|
+
children: /*#__PURE__*/_jsx(ColorPickerToolComponent, {
|
127
|
+
value: value,
|
128
|
+
defaultColors: defaultColors,
|
129
|
+
onSave: onSave,
|
130
|
+
recentColors: recentColors,
|
131
|
+
hideGradient: hideGradient,
|
132
|
+
handleClose: handleClose
|
93
133
|
})
|
94
134
|
})
|
95
135
|
})]
|
@@ -2,6 +2,7 @@ import React, { useEffect } from "react";
|
|
2
2
|
import { useDraggable } from "@dnd-kit/core";
|
3
3
|
import { Box } from "@mui/material";
|
4
4
|
import DragIndicatorIcon from "@mui/icons-material/DragIndicator";
|
5
|
+
import { SectionDragIcon } from "../iconListV2";
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
6
7
|
const Draggable = props => {
|
7
8
|
const {
|
@@ -35,7 +36,7 @@ const Draggable = props => {
|
|
35
36
|
contentEditable: false,
|
36
37
|
style: dragStyle,
|
37
38
|
sx: classes.dragHandle,
|
38
|
-
children: /*#__PURE__*/_jsx(
|
39
|
+
children: /*#__PURE__*/_jsx(SectionDragIcon, {})
|
39
40
|
});
|
40
41
|
};
|
41
42
|
export default Draggable;
|
@@ -58,7 +58,7 @@ const FontLoader = props => {
|
|
58
58
|
if (!readOnly) {
|
59
59
|
otherProps?.services("listGoogleFont", []).then(data => {
|
60
60
|
families = [...families, ...(data?.data || [])];
|
61
|
-
const filteredfamilies = families?.
|
61
|
+
const filteredfamilies = families?.filter(font => !font?.includes("Material"));
|
62
62
|
setFontFamilies({
|
63
63
|
id: 1,
|
64
64
|
format: "fontFamily",
|
@@ -89,7 +89,7 @@ const FontLoader = props => {
|
|
89
89
|
families = correctFontArray(families.join(", "));
|
90
90
|
families = families?.map(font => font?.replace(/\"/g, ""));
|
91
91
|
families = families?.map(font => font?.replace(", sans-serif", "")); //This is temporary fix for patch
|
92
|
-
families = families
|
92
|
+
families = families.filter(font => googleFontList.includes(font));
|
93
93
|
loadFontsInBatches(families);
|
94
94
|
}
|
95
95
|
}, []);
|