@antscorp/antsomi-ui 2.0.107 → 2.0.109
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/CHANGELOG.md +63 -0
- package/README.md +78 -78
- package/es/__mocks__/1000_city.json +802 -802
- package/es/__mocks__/sql-query.json +56 -56
- package/es/assets/css/main.scss +6 -6
- package/es/assets/images/feedback.svg +3 -3
- package/es/assets/svg/mobile-frame.svg +3 -3
- package/es/assets/svg/warning-icon.svg +5 -5
- package/es/components/atoms/Alert/Alert.js +28 -28
- package/es/components/atoms/ContentEditable/styled.js +16 -16
- package/es/components/atoms/DividerPure/styled.js +35 -35
- package/es/components/atoms/Icon/index.js +19 -19
- package/es/components/atoms/Iframe/Iframe.js +18 -18
- package/es/components/atoms/Input/styled.js +104 -104
- package/es/components/atoms/InputDynamic/styled.js +284 -284
- package/es/components/atoms/MobileBrandingBar/styled.js +21 -21
- package/es/components/atoms/MobileFrame/styled.js +30 -30
- package/es/components/atoms/MobileFrameV2/styled.js +42 -42
- package/es/components/atoms/MobileFrameV3/styled.js +31 -31
- package/es/components/atoms/NotificationStatus/styled.js +10 -10
- package/es/components/atoms/PreviewTabs/styled.js +69 -69
- package/es/components/atoms/Radio/index.js +16 -16
- package/es/components/atoms/ReactIframe/ReactIframe.js +5 -5
- package/es/components/atoms/ReactIframe/styled.js +9 -9
- package/es/components/atoms/RequiredLabel/styled.js +3 -3
- package/es/components/atoms/ScrollBox/index.js +5 -5
- package/es/components/atoms/Scrollbars/styled.js +21 -21
- package/es/components/atoms/SlideBar/styled.js +194 -194
- package/es/components/atoms/Slider/styled.js +31 -31
- package/es/components/atoms/Space/Space.js +4 -4
- package/es/components/atoms/Spin/styled.js +11 -11
- package/es/components/atoms/Steps/styled.js +244 -244
- package/es/components/atoms/Switch/styled.js +56 -56
- package/es/components/atoms/Tag/Tag.js +10 -10
- package/es/components/atoms/Text/styled.js +34 -34
- package/es/components/icons/DomainManagementIcon.js +1 -1
- package/es/components/icons/LoadingIcon.js +33 -33
- package/es/components/icons/document/styled.js +43 -43
- package/es/components/index.scss +1 -1
- package/es/components/molecules/AccessDenied/styled.js +28 -28
- package/es/components/molecules/AccountSelection/styled.js +110 -110
- package/es/components/molecules/AddDynamicContent/styled.js +23 -23
- package/es/components/molecules/AlignSetting/styled.js +4 -4
- package/es/components/molecules/ApplyPopupContent/styled.js +32 -32
- package/es/components/molecules/CalendarSelection/components/AutoUpdateTo/styled.js +8 -8
- package/es/components/molecules/CalendarSelection/components/CustomPicker/styled.js +79 -79
- package/es/components/molecules/CalendarSelection/components/Footer/styled.js +4 -4
- package/es/components/molecules/CalendarSelection/components/RangePicker/styled.js +21 -21
- package/es/components/molecules/CalendarSelection/components/RangeSelectOptions/components/Option/Option.js +26 -26
- package/es/components/molecules/CalendarSelection/components/RangeSelectOptions/styled.js +30 -30
- package/es/components/molecules/CalendarSelection/components/TimeRangeDisplay/styled.js +26 -26
- package/es/components/molecules/CalendarSelection/styled.js +8 -8
- package/es/components/molecules/CaptureScreen/components/CommentBox/styled.js +119 -119
- package/es/components/molecules/CaptureScreen/components/Cursor/styled.js +67 -67
- package/es/components/molecules/CaptureScreen/styled.js +240 -240
- package/es/components/molecules/ChartTab/components/styled.js +24 -24
- package/es/components/molecules/ChartTab/styled.js +20 -20
- package/es/components/molecules/ChatBox/AntsomiAI.js +8 -8
- package/es/components/molecules/ChatBox/ChatBoxInsight/QuestionItem.js +9 -9
- package/es/components/molecules/ChatBox/ChatBoxInsight/styled.js +365 -365
- package/es/components/molecules/ChatBox/styled.js +324 -324
- package/es/components/molecules/CodeStructure/styled.js +5 -5
- package/es/components/molecules/ColorPicker/ChromePicker/styled.js +10 -10
- package/es/components/molecules/ColorPicker/CustomPicker/styled.js +89 -89
- package/es/components/molecules/ColorPicker/SketchPicker/styled.js +5 -5
- package/es/components/molecules/ColorPicker/styled.js +7 -7
- package/es/components/molecules/ColorSetting/styled.js +39 -39
- package/es/components/molecules/DatePicker/components/AdvancedPicker/styled.js +110 -110
- package/es/components/molecules/DatePickerV2/styled.js +6 -6
- package/es/components/molecules/DisplayFormat/styled.js +12 -12
- package/es/components/molecules/DrawerDetail/components/ToggleDrawerSizeButton.js +24 -24
- package/es/components/molecules/DrawerDetail/styled.js +109 -109
- package/es/components/molecules/Dropdown/style.scss +11 -11
- package/es/components/molecules/Dropdown/styled.js +28 -28
- package/es/components/molecules/EdgeSetting/styled.js +10 -10
- package/es/components/molecules/EditableName/styled.js +70 -70
- package/es/components/molecules/EditingList/styled.js +29 -29
- package/es/components/molecules/EditingListV2/components/List/List.d.ts +1 -1
- package/es/components/molecules/EditingListV2/components/List/List.js +16 -7
- package/es/components/molecules/EditorTab/styled.js +156 -156
- package/es/components/molecules/EmojiCollections/styled.js +22 -22
- package/es/components/molecules/EmojiPopover/styled.js +4 -4
- package/es/components/molecules/EmptyData/styled.js +53 -53
- package/es/components/molecules/FontSizeInput/index.scss +15 -15
- package/es/components/molecules/GradientSetting/styled.js +57 -57
- package/es/components/molecules/HeaderV2/styled.js +70 -70
- package/es/components/molecules/IconSelection/styled.js +69 -69
- package/es/components/molecules/ImageEditor/components/ModalShortcut.js +21 -21
- package/es/components/molecules/ImageEditor/styled.js +5 -5
- package/es/components/molecules/ImagePreview/styled.js +3 -3
- package/es/components/molecules/InputNumberWithUnit/styled.js +14 -14
- package/es/components/molecules/InputSearch/styled.js +41 -41
- package/es/components/molecules/ItemNotFound/styled.js +26 -26
- package/es/components/molecules/MatchAnySelect/components/ExtendValuePopup.js +8 -8
- package/es/components/molecules/MatchAnySelect/styled.js +247 -247
- package/es/components/molecules/Modal/styled.js +63 -63
- package/es/components/molecules/ModalSelect/styled.js +152 -152
- package/es/components/molecules/ModalV2/styled.js +27 -27
- package/es/components/molecules/PopupDraggable/styled.js +57 -57
- package/es/components/molecules/PreviewModal/styled.js +26 -26
- package/es/components/molecules/ProcessLoading/styled.js +2 -2
- package/es/components/molecules/QuillEditor/CustomToolbar.js +3165 -3165
- package/es/components/molecules/QuillEditor/EditorToolbar.js +7 -7
- package/es/components/molecules/QuillEditor/styled.js +25 -25
- package/es/components/molecules/RadioGroup/styled.js +9 -9
- package/es/components/molecules/RequestAccess/styled.js +38 -38
- package/es/components/molecules/ResizeGrid/components/Cell/styled.js +77 -77
- package/es/components/molecules/ResizeGrid/styled.js +50 -50
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuCell/styled.js +118 -118
- package/es/components/molecules/RichMenu/RichMenuBlock/styled.js +13 -13
- package/es/components/molecules/RichMenu/RichMenuChatBar/TypingChat/styled.js +40 -40
- package/es/components/molecules/RichMenu/RichMenuChatBar/styled.js +27 -27
- package/es/components/molecules/RichMenu/RichMenuMobileView/RichMenuMobileView.js +2 -2
- package/es/components/molecules/RichMenu/RichMenuMobileView/styled.js +38 -38
- package/es/components/molecules/SearchPopover/components/PopoverSelect/styled.js +36 -36
- package/es/components/molecules/SearchPopover/components/PopoverSelect/styles.scss +7 -7
- package/es/components/molecules/SearchPopover/styled.js +32 -32
- package/es/components/molecules/Select/styled.js +32 -32
- package/es/components/molecules/SelectAccount/styled.js +147 -147
- package/es/components/molecules/SelectEventAttribute/styled.js +8 -8
- package/es/components/molecules/SelectMulti/styled.js +62 -62
- package/es/components/molecules/SelectV2/styled.js +124 -124
- package/es/components/molecules/SettingWrapper/styled.js +12 -12
- package/es/components/molecules/ShareAccess/components/GeneralAccess/styled.js +56 -56
- package/es/components/molecules/ShareAccess/components/LayoutContent/styled.js +5 -5
- package/es/components/molecules/ShareAccess/components/ModalTransferOwnerShip/styled.js +15 -15
- package/es/components/molecules/ShareAccess/components/PeopleAccess/styled.js +63 -63
- package/es/components/molecules/ShareAccess/components/SearchUser/styled.js +31 -31
- package/es/components/molecules/SliderWithInputNumber/styled.js +2 -2
- package/es/components/molecules/Tabs/Tabs.js +11 -11
- package/es/components/molecules/TagifyInput/TagifyInput.js +65 -54
- package/es/components/molecules/TagifyInput/constants.d.ts +7 -3
- package/es/components/molecules/TagifyInput/constants.js +7 -2
- package/es/components/molecules/TagifyInput/patternHandlers.js +34 -1
- package/es/components/molecules/TagifyInput/styled.js +37 -37
- package/es/components/molecules/TagifyInput/types.d.ts +13 -3
- package/es/components/molecules/TagifyInput/utils.d.ts +1 -0
- package/es/components/molecules/TagifyInput/utils.js +15 -14
- package/es/components/molecules/TagifyInput/utils.style.js +218 -218
- package/es/components/molecules/TemplateSaveAs/components/Category/Category.js +5 -5
- package/es/components/molecules/TemplateSaveAs/components/ImageSlider/styled.js +276 -276
- package/es/components/molecules/TemplateSaveAs/styled.js +134 -134
- package/es/components/molecules/ThumbnailCard/styled.js +92 -92
- package/es/components/molecules/Tree/styled.js +38 -38
- package/es/components/molecules/UnsubscribePreferences/constants.d.ts +27 -0
- package/es/components/molecules/UnsubscribePreferences/constants.js +28 -0
- package/es/components/molecules/UnsubscribePreferences/index.d.ts +17 -0
- package/es/components/molecules/UnsubscribePreferences/index.js +203 -0
- package/es/components/molecules/UnsubscribePreferences/styled.d.ts +2 -0
- package/es/components/molecules/UnsubscribePreferences/styled.js +11 -0
- package/es/components/molecules/UnsubscribePreferences/utils.d.ts +15 -0
- package/es/components/molecules/UnsubscribePreferences/utils.js +56 -0
- package/es/components/molecules/UnsubscribePreview/components/PreferencesPage/index.d.ts +12 -0
- package/es/components/molecules/UnsubscribePreview/components/PreferencesPage/index.js +159 -0
- package/es/components/molecules/UnsubscribePreview/components/ResultPage/index.d.ts +13 -0
- package/es/components/molecules/UnsubscribePreview/components/ResultPage/index.js +28 -0
- package/es/components/molecules/UnsubscribePreview/components/TestAlert/index.d.ts +9 -0
- package/es/components/molecules/UnsubscribePreview/components/TestAlert/index.js +18 -0
- package/es/components/molecules/UnsubscribePreview/components/UnsubscribedPage/index.d.ts +13 -0
- package/es/components/molecules/UnsubscribePreview/components/UnsubscribedPage/index.js +85 -0
- package/es/components/molecules/UnsubscribePreview/components/index.d.ts +3 -0
- package/es/components/molecules/UnsubscribePreview/components/index.js +3 -0
- package/es/components/molecules/UnsubscribePreview/components/styled.d.ts +13 -0
- package/es/components/molecules/UnsubscribePreview/components/styled.js +65 -0
- package/es/components/molecules/UnsubscribePreview/index.d.ts +10 -0
- package/es/components/molecules/UnsubscribePreview/index.js +66 -0
- package/es/components/molecules/UnsubscribePreview/styled.d.ts +9 -0
- package/es/components/molecules/UnsubscribePreview/styled.js +51 -0
- package/es/components/molecules/UnsubscribePreview/type.d.ts +5 -0
- package/es/components/molecules/UnsubscribePreview/type.js +1 -0
- package/es/components/molecules/UnsubscribePreview/utils.d.ts +9 -0
- package/es/components/molecules/UnsubscribePreview/utils.js +27 -0
- package/es/components/molecules/UploadImage/index.d.ts +4 -0
- package/es/components/molecules/UploadImage/index.js +2 -2
- package/es/components/molecules/UploadImage/styled.js +114 -114
- package/es/components/molecules/VirtualizedMenu/styled.js +82 -82
- package/es/components/molecules/index.d.ts +4 -0
- package/es/components/molecules/index.js +2 -0
- package/es/components/organism/AccountProfile/components/AccountSetting/components/EditableInput/styles.js +98 -98
- package/es/components/organism/AccountProfile/components/AccountSetting/components/LanguageSelector/styles.js +18 -18
- package/es/components/organism/AccountProfile/components/AccountSetting/styled.js +543 -543
- package/es/components/organism/AccountProfile/components/AccountSetting/styles.scss +39 -39
- package/es/components/organism/AccountSharing/styled.js +336 -336
- package/es/components/organism/ActivityTimeline/__mocks__/event_tracking.json +1290 -1290
- package/es/components/organism/ActivityTimeline/__mocks__/timeline.json +3059 -3059
- package/es/components/organism/ActivityTimeline/components/ActionHistory/styled.js +28 -28
- package/es/components/organism/ActivityTimeline/components/CardMember/styled.js +60 -60
- package/es/components/organism/ActivityTimeline/components/ItemGroupEvent/styled.js +4 -4
- package/es/components/organism/ActivityTimeline/components/List/styled.js +77 -77
- package/es/components/organism/ActivityTimeline/components/ListItem/styled.js +37 -37
- package/es/components/organism/ActivityTimeline/components/ProductCard/styled.js +92 -92
- package/es/components/organism/ActivityTimeline/components/Redeem/styled.js +7 -7
- package/es/components/organism/ActivityTimeline/components/Slide/styled.js +20 -20
- package/es/components/organism/ActivityTimeline/components/TimeLineTitle/styled.js +7 -7
- package/es/components/organism/ActivityTimeline/components/TimelineSection/styled.js +69 -69
- package/es/components/organism/ActivityTimeline/styled.js +39 -39
- package/es/components/organism/AlgorithmsSetting/styled.js +35 -35
- package/es/components/organism/BasicLogin/components/ChooseMethod/styled.js +19 -19
- package/es/components/organism/BasicLogin/components/LoginWithEmail/styled.js +3 -3
- package/es/components/organism/BasicLogin/components/LoginWithGG/styled.js +3 -3
- package/es/components/organism/BasicLogin/components/SignIn/styled.js +8 -8
- package/es/components/organism/BasicLogin/components/WidgetLayout/styled.js +18 -18
- package/es/components/organism/BasicLogin/styled.js +107 -107
- package/es/components/organism/ContentSources/styled.js +50 -50
- package/es/components/organism/DataTable/components/AddButton/index.js +8 -8
- package/es/components/organism/DataTable/components/ModifyColumn/styled.js +18 -18
- package/es/components/organism/DataTable/components/Pagination/styled.js +26 -26
- package/es/components/organism/DataTable/components/Table/styled.js +135 -135
- package/es/components/organism/DataTable/components/Toolbar/SearchPopover.js +17 -17
- package/es/components/organism/DataTable/components/Toolbar/styled.js +70 -70
- package/es/components/organism/DataTable/styled/index.js +84 -84
- package/es/components/organism/Filter/components/FilterCondition/styled.js +34 -34
- package/es/components/organism/Filter/styled.js +109 -109
- package/es/components/organism/FilterSetting/components/common/InputArray/styled.js +5 -5
- package/es/components/organism/FilterSetting/components/common/InputOrSelect/index.js +63 -63
- package/es/components/organism/FilterSetting/components/common/InputSelectMulti/ColumnSuggestion/index.js +31 -31
- package/es/components/organism/FilterSetting/components/common/InputSelectMulti/Tree/index.js +22 -22
- package/es/components/organism/FilterSetting/components/common/InputSelectMulti/index.js +55 -55
- package/es/components/organism/FilterSetting/styled.js +19 -19
- package/es/components/organism/Help/styled.js +267 -267
- package/es/components/organism/LeftMenu/components/HomeMenu/styled.js +39 -39
- package/es/components/organism/LeftMenu/components/common/ChildMenu/components/MenuItemImage/styled.js +16 -16
- package/es/components/organism/LeftMenu/components/common/ChildMenu/styled.js +156 -156
- package/es/components/organism/LeftMenu/styled.js +214 -214
- package/es/components/organism/Login/components/ChooseMethod/styled.js +19 -19
- package/es/components/organism/Login/components/ForgotPassword/styled.js +8 -8
- package/es/components/organism/Login/components/LoginSelectPortal/Item/styled.js +31 -31
- package/es/components/organism/Login/components/LoginSelectPortal/styled.js +3 -3
- package/es/components/organism/Login/components/LoginWithEmail/styled.js +3 -3
- package/es/components/organism/Login/components/LoginWithGG/styled.js +3 -3
- package/es/components/organism/Login/components/SetupGGAuthenticator/styled.js +7 -7
- package/es/components/organism/Login/components/SignIn/styled.js +8 -8
- package/es/components/organism/Login/components/VerifyAccount/styled.js +13 -13
- package/es/components/organism/Login/components/WidgetLayout/styled.js +18 -18
- package/es/components/organism/Login/styled.js +115 -115
- package/es/components/organism/Menu/styled.js +6 -6
- package/es/components/organism/ModifyColumnModal/styled.js +132 -132
- package/es/components/organism/Notification/styled.js +155 -155
- package/es/components/organism/PreviewCollections/Messages/SkeletonMessage/styled.js +14 -14
- package/es/components/organism/PreviewCollections/WhatsappMessage/CarouselMessage/styled.js +63 -63
- package/es/components/organism/PreviewCollections/WhatsappMessage/FooterMessage/index.js +3 -1
- package/es/components/organism/PreviewCollections/constants.js +50 -50
- package/es/components/organism/PreviewCollections/styled.js +16 -16
- package/es/components/organism/PreviewTemplateModal/components/Banner/styled.js +78 -78
- package/es/components/organism/PreviewTemplateModal/components/Information/styled.js +52 -52
- package/es/components/organism/PreviewTemplateModal/components/SimilarTemplate/styled.js +18 -18
- package/es/components/organism/PreviewTemplateModal/components/ThumbnailSlider/styled.js +77 -77
- package/es/components/organism/PreviewTemplateModal/styled.js +21 -21
- package/es/components/organism/SQLGeneration/components/styled.js +354 -354
- package/es/components/organism/SQLGeneration/index.scss +1 -1
- package/es/components/organism/SQLGeneration/integrations/AceEditor/index.scss +4 -4
- package/es/components/organism/Table/CrossTabTable/components/CustomCell/styled.js +11 -11
- package/es/components/organism/Table/CrossTabTable/styled.js +11 -11
- package/es/components/organism/Table/ExplorePivotTable/components/CustomCell/styled.js +17 -17
- package/es/components/organism/Table/ExplorePivotTable/styled.js +11 -11
- package/es/components/organism/TicketEditor/styled.js +850 -850
- package/es/components/organism/TicketEditorV2/styled.js +839 -839
- package/es/components/organism/index.scss +1 -1
- package/es/components/template/Layout/Layout.js +10 -10
- package/es/components/template/Layout/components/RecommendationWorkspace/components/MenuMapping/components/OldLeftMenu/styled.js +73 -73
- package/es/components/template/Layout/components/RecommendationWorkspace/components/MenuMapping/styled.js +39 -39
- package/es/components/template/Layout/components/RecommendationWorkspace/components/RecommendationImage/styled.js +61 -61
- package/es/components/template/Layout/components/RecommendationWorkspace/styled.js +16 -16
- package/es/components/template/Layout/styled.js +84 -84
- package/es/components/template/TemplateListing/components/BlankTemplate/styled.js +21 -21
- package/es/components/template/TemplateListing/components/CategoryListing/styled.js +123 -123
- package/es/components/template/TemplateListing/components/Empty/styled.js +20 -20
- package/es/components/template/TemplateListing/stories/demo/styled.js +4 -4
- package/es/components/template/TemplateListing/styled/index.js +40 -40
- package/es/constants/index.d.ts +1 -0
- package/es/constants/index.js +1 -0
- package/es/constants/queries.d.ts +5 -0
- package/es/constants/queries.js +6 -0
- package/es/constants/unsubscribe.d.ts +56 -0
- package/es/constants/unsubscribe.js +77 -0
- package/es/providers/ConfigProvider/GlobalStyle.js +1249 -1249
- package/es/queries/Unsubscribe/index.d.ts +5 -0
- package/es/queries/Unsubscribe/index.js +5 -0
- package/es/queries/Unsubscribe/useGetUnsubscribeList.d.ts +8 -0
- package/es/queries/Unsubscribe/useGetUnsubscribeList.js +18 -0
- package/es/queries/Unsubscribe/useGetUnsubscribeListByIdentifier.d.ts +8 -0
- package/es/queries/Unsubscribe/useGetUnsubscribeListByIdentifier.js +11 -0
- package/es/queries/Unsubscribe/useGetUnsubscribeListPermission.d.ts +8 -0
- package/es/queries/Unsubscribe/useGetUnsubscribeListPermission.js +17 -0
- package/es/queries/Unsubscribe/useGetUnsubscribePreferences.d.ts +23 -0
- package/es/queries/Unsubscribe/useGetUnsubscribePreferences.js +26 -0
- package/es/services/MediaTemplateDesign/UploadFile/index.js +4 -4
- package/es/services/Unsubscribe/index.d.ts +41 -0
- package/es/services/Unsubscribe/index.js +78 -0
- package/es/styled/common.js +51 -51
- package/es/tests/styled.js +4 -4
- package/es/types/index.d.ts +1 -0
- package/es/types/index.js +1 -0
- package/es/types/unsubscribe.d.ts +25 -0
- package/es/types/unsubscribe.js +1 -0
- package/es/utils/common.d.ts +1 -0
- package/es/utils/common.js +3 -0
- package/es/utils/variables.js +7 -7
- package/package.json +266 -266
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { useGetUnsubscribeListByIdentifier } from './useGetUnsubscribeListByIdentifier';
|
|
2
|
+
import { useGetUnsubscribeList } from './useGetUnsubscribeList';
|
|
3
|
+
import { useGetUnsubscribePreferences } from './useGetUnsubscribePreferences';
|
|
4
|
+
import { useGetUnsubscribeListPermission } from './useGetUnsubscribeListPermission';
|
|
5
|
+
export { useGetUnsubscribeListByIdentifier, useGetUnsubscribePreferences, useGetUnsubscribeList, useGetUnsubscribeListPermission, };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { useGetUnsubscribeListByIdentifier } from './useGetUnsubscribeListByIdentifier';
|
|
2
|
+
import { useGetUnsubscribeList } from './useGetUnsubscribeList';
|
|
3
|
+
import { useGetUnsubscribePreferences } from './useGetUnsubscribePreferences';
|
|
4
|
+
import { useGetUnsubscribeListPermission } from './useGetUnsubscribeListPermission';
|
|
5
|
+
export { useGetUnsubscribeListByIdentifier, useGetUnsubscribePreferences, useGetUnsubscribeList, useGetUnsubscribeListPermission, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import { TGetUnsubscribeListArgs, TUnsubscribePayloadInfo } from '../../services/Unsubscribe';
|
|
3
|
+
interface UseGetUnsubscribeListProps {
|
|
4
|
+
args: TGetUnsubscribeListArgs;
|
|
5
|
+
options?: UseQueryOptions<any, Error, any>;
|
|
6
|
+
}
|
|
7
|
+
export declare const useGetUnsubscribeList: ({ args, options }: UseGetUnsubscribeListProps, infos: TUnsubscribePayloadInfo) => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Libraries
|
|
2
|
+
import { useQuery } from '@tanstack/react-query';
|
|
3
|
+
// Services
|
|
4
|
+
// import { TGetUnsubscribeListArgs, unsubscribeServices } from 'app/services/Unsubscribe';
|
|
5
|
+
import { unsubscribeServices, } from '../../services/Unsubscribe';
|
|
6
|
+
// Constants
|
|
7
|
+
import { QUERY_KEYS } from '../../constants';
|
|
8
|
+
export const useGetUnsubscribeList = ({ args, options }, infos) => useQuery({
|
|
9
|
+
queryKey: [QUERY_KEYS.GET_UNSUBSCRIBE_LIST, args, options, infos],
|
|
10
|
+
queryFn: async () => unsubscribeServices.getUnsubscribeList(args, infos),
|
|
11
|
+
onSuccess: data => {
|
|
12
|
+
if (!data)
|
|
13
|
+
return [];
|
|
14
|
+
const unsubscribedList = data?.entries[0] || [];
|
|
15
|
+
return unsubscribedList.sort((a, b) => Number(a.list_id) - Number(b.list_id));
|
|
16
|
+
},
|
|
17
|
+
...options,
|
|
18
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import { TGetUnsubscribeListByIdentifierArgs, TUnsubscribePayloadInfo } from '../../services/Unsubscribe';
|
|
3
|
+
interface UseGetUnsubscribeListByIdentifierProps {
|
|
4
|
+
args: TGetUnsubscribeListByIdentifierArgs;
|
|
5
|
+
options?: UseQueryOptions<any, Error, any>;
|
|
6
|
+
}
|
|
7
|
+
export declare const useGetUnsubscribeListByIdentifier: ({ args, options }: UseGetUnsubscribeListByIdentifierProps, infos: TUnsubscribePayloadInfo) => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Libraries
|
|
2
|
+
import { useQuery } from '@tanstack/react-query';
|
|
3
|
+
// Services
|
|
4
|
+
import { unsubscribeServices, } from '../../services/Unsubscribe';
|
|
5
|
+
// Constants
|
|
6
|
+
import { QUERY_KEYS } from '../../constants';
|
|
7
|
+
export const useGetUnsubscribeListByIdentifier = ({ args, options }, infos) => useQuery({
|
|
8
|
+
queryKey: [QUERY_KEYS.GET_UNSUBSCRIBE_LIST_BY_IDENTIFIER, args, options, infos],
|
|
9
|
+
queryFn: () => unsubscribeServices.getUnsubscribeListByIdentifier(args, infos),
|
|
10
|
+
...options,
|
|
11
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import { TGetUnsubscribeListPermissionArgs, TUnsubscribePayloadInfo } from '../../services/Unsubscribe';
|
|
3
|
+
interface UseGetUnsubscribeListPermissionProps {
|
|
4
|
+
args: TGetUnsubscribeListPermissionArgs;
|
|
5
|
+
options?: UseQueryOptions<any, Error, any>;
|
|
6
|
+
}
|
|
7
|
+
export declare const useGetUnsubscribeListPermission: ({ args, options }: UseGetUnsubscribeListPermissionProps, infos: TUnsubscribePayloadInfo) => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Libraries
|
|
2
|
+
import { useQuery } from '@tanstack/react-query';
|
|
3
|
+
// Services
|
|
4
|
+
import { unsubscribeServices, } from '../../services/Unsubscribe';
|
|
5
|
+
// Constants
|
|
6
|
+
import { QUERY_KEYS } from '../../constants';
|
|
7
|
+
export const useGetUnsubscribeListPermission = ({ args, options }, infos) => useQuery({
|
|
8
|
+
queryKey: [QUERY_KEYS.GET_UNSUBSCRIBE_LIST_PERMISSION, args, options, infos],
|
|
9
|
+
queryFn: async () => unsubscribeServices.getUnsubscribeListPermission(args, infos),
|
|
10
|
+
onSuccess: data => {
|
|
11
|
+
if (!data)
|
|
12
|
+
return [];
|
|
13
|
+
const unsubscribedList = data?.entries[0] || [];
|
|
14
|
+
return unsubscribedList.sort((a, b) => Number(a.list_id) - Number(b.list_id));
|
|
15
|
+
},
|
|
16
|
+
...options,
|
|
17
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import { GetUnsubscribePreferencesArgs, TUnsubscribePayloadInfo } from '../../services/Unsubscribe';
|
|
3
|
+
interface UseGetUnsubscribePreferencesProps {
|
|
4
|
+
args: GetUnsubscribePreferencesArgs;
|
|
5
|
+
options?: UseQueryOptions<any, Error, any>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* React Query hook to get unsubscribe preferences by given identifier
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* const { data, isLoading } = useGetUnsubscribePreferences({
|
|
12
|
+
* args: {
|
|
13
|
+
* id: '1234567890',
|
|
14
|
+
* },
|
|
15
|
+
* });
|
|
16
|
+
*
|
|
17
|
+
* @param {UseGetUnsubscribePreferencesProps} props
|
|
18
|
+
* @param {GetUnsubscribePreferencesArgs} props.args - Arguments to get unsubscribe preferences
|
|
19
|
+
* @param {UseQueryOptions<any, Error, any>} [props.options] - Options for React Query
|
|
20
|
+
* @returns {UseQueryResult<any, Error>} - Response data and meta data
|
|
21
|
+
*/
|
|
22
|
+
export declare const useGetUnsubscribePreferences: ({ args, options }: UseGetUnsubscribePreferencesProps, infos: TUnsubscribePayloadInfo) => import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Libraries
|
|
2
|
+
import { useQuery } from '@tanstack/react-query';
|
|
3
|
+
// Services
|
|
4
|
+
import { unsubscribeServices, } from '../../services/Unsubscribe';
|
|
5
|
+
// Constants
|
|
6
|
+
import { QUERY_KEYS } from '../../constants';
|
|
7
|
+
/**
|
|
8
|
+
* React Query hook to get unsubscribe preferences by given identifier
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* const { data, isLoading } = useGetUnsubscribePreferences({
|
|
12
|
+
* args: {
|
|
13
|
+
* id: '1234567890',
|
|
14
|
+
* },
|
|
15
|
+
* });
|
|
16
|
+
*
|
|
17
|
+
* @param {UseGetUnsubscribePreferencesProps} props
|
|
18
|
+
* @param {GetUnsubscribePreferencesArgs} props.args - Arguments to get unsubscribe preferences
|
|
19
|
+
* @param {UseQueryOptions<any, Error, any>} [props.options] - Options for React Query
|
|
20
|
+
* @returns {UseQueryResult<any, Error>} - Response data and meta data
|
|
21
|
+
*/
|
|
22
|
+
export const useGetUnsubscribePreferences = ({ args, options }, infos) => useQuery({
|
|
23
|
+
queryKey: [QUERY_KEYS.GET_UNSUBSCRIBE_PREFERENCES],
|
|
24
|
+
queryFn: () => unsubscribeServices.getUnsubscribePreferences(args, infos),
|
|
25
|
+
...options,
|
|
26
|
+
});
|
|
@@ -7,7 +7,7 @@ export const getListingSavedMedia = async (domainUrl, slug, infos, page = 1) =>
|
|
|
7
7
|
try {
|
|
8
8
|
const { type = '', ...restInfos } = infos || {};
|
|
9
9
|
const { data } = await services.mediaTemplateDesign.getList({
|
|
10
|
-
API_HOST: `${domainUrl}
|
|
10
|
+
API_HOST: `${domainUrl}${slug ? `/${slug}` : ''}/saved-media/index?type=${type}&page=${page}&limit=10`,
|
|
11
11
|
}, restInfos);
|
|
12
12
|
let savedImages = data?.data || [];
|
|
13
13
|
savedImages = savedImages.map((savedImage) => new SavedMedia(savedImage));
|
|
@@ -20,7 +20,7 @@ export const getListingSavedMedia = async (domainUrl, slug, infos, page = 1) =>
|
|
|
20
20
|
export const createSavedMedia = (domainUrl, slug, infos, data) => {
|
|
21
21
|
try {
|
|
22
22
|
return services.mediaTemplateDesign.create({
|
|
23
|
-
API_HOST: `${domainUrl}
|
|
23
|
+
API_HOST: `${domainUrl}${slug ? `/${slug}` : ''}/saved-media/index`,
|
|
24
24
|
...data,
|
|
25
25
|
}, infos);
|
|
26
26
|
}
|
|
@@ -31,7 +31,7 @@ export const createSavedMedia = (domainUrl, slug, infos, data) => {
|
|
|
31
31
|
export const deleteSavedMedia = (domainUrl, slug, infos, id) => {
|
|
32
32
|
try {
|
|
33
33
|
return services.mediaTemplateDesign.create({
|
|
34
|
-
API_HOST: `${domainUrl}
|
|
34
|
+
API_HOST: `${domainUrl}${slug ? `/${slug}` : ''}/saved-media/index/update-status`,
|
|
35
35
|
media_id: [id],
|
|
36
36
|
status: 80,
|
|
37
37
|
}, infos);
|
|
@@ -52,7 +52,7 @@ export const uploadFile = async (domainUrl, slug, infos, files) => {
|
|
|
52
52
|
fileType = 'origin-file';
|
|
53
53
|
}
|
|
54
54
|
const result = await services.mediaTemplateDesign.upload({
|
|
55
|
-
API_HOST: `${domainUrl}
|
|
55
|
+
API_HOST: `${domainUrl}${slug ? `/${slug}` : ''}/file-upload/${fileType}`,
|
|
56
56
|
formData,
|
|
57
57
|
}, restInfos);
|
|
58
58
|
const uploadData = result ? result.data?.data : null;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { PayloadInfo } from '../../types';
|
|
2
|
+
export type GetUnsubscribePreferencesArgs = {
|
|
3
|
+
id: string;
|
|
4
|
+
};
|
|
5
|
+
export type TGetUnsubscribeListByIdentifierArgs = {
|
|
6
|
+
data: {
|
|
7
|
+
identifier: string;
|
|
8
|
+
type: 'email' | 'phone';
|
|
9
|
+
portalId: number;
|
|
10
|
+
listId: (number | string)[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export type TUpdateUnsubscribePreferencesListArgs = {
|
|
14
|
+
data: {
|
|
15
|
+
identifier: string;
|
|
16
|
+
type: 'email' | 'phone';
|
|
17
|
+
portalId: number;
|
|
18
|
+
journeyId: number;
|
|
19
|
+
campaignId: number;
|
|
20
|
+
variantId: number;
|
|
21
|
+
config: {
|
|
22
|
+
listId: number;
|
|
23
|
+
status: 'resubscribe' | 'unsubscribe';
|
|
24
|
+
}[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export type TGetUnsubscribeListArgs = {
|
|
28
|
+
data: {
|
|
29
|
+
type: 'email' | 'sms' | 'whatsapp';
|
|
30
|
+
portalId: number;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export type TGetUnsubscribeListPermissionArgs = TGetUnsubscribeListArgs;
|
|
34
|
+
export type TUnsubscribePayloadInfo = Required<PayloadInfo>;
|
|
35
|
+
export declare const unsubscribeServices: {
|
|
36
|
+
getUnsubscribePreferences: ({ id }: GetUnsubscribePreferencesArgs, infos: TUnsubscribePayloadInfo) => Promise<any>;
|
|
37
|
+
getUnsubscribeListByIdentifier: ({ data }: TGetUnsubscribeListByIdentifierArgs, infos: TUnsubscribePayloadInfo) => Promise<any>;
|
|
38
|
+
updateUnsubscribePreferencesList: ({ data }: TUpdateUnsubscribePreferencesListArgs, infos: TUnsubscribePayloadInfo) => Promise<any>;
|
|
39
|
+
getUnsubscribeList: ({ data }: TGetUnsubscribeListArgs, infos: TUnsubscribePayloadInfo) => Promise<any>;
|
|
40
|
+
getUnsubscribeListPermission: ({ data }: TGetUnsubscribeListPermissionArgs, infos: TUnsubscribePayloadInfo) => Promise<any>;
|
|
41
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// Libraries
|
|
2
|
+
import { services } from '..';
|
|
3
|
+
const UNSUBSCRIBE_URL = `/email-template/unsubscribe`;
|
|
4
|
+
export const unsubscribeServices = {
|
|
5
|
+
getUnsubscribePreferences: async ({ id }, infos) => {
|
|
6
|
+
try {
|
|
7
|
+
const response = await services.mediaTemplateDesign.get({
|
|
8
|
+
API_HOST: `${infos.url}${UNSUBSCRIBE_URL}/get-detail`,
|
|
9
|
+
id,
|
|
10
|
+
}, infos);
|
|
11
|
+
if (response) {
|
|
12
|
+
return response.data?.data || {};
|
|
13
|
+
}
|
|
14
|
+
return {};
|
|
15
|
+
}
|
|
16
|
+
catch (error) {
|
|
17
|
+
return new Promise((_, reject) => {
|
|
18
|
+
reject(error);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
getUnsubscribeListByIdentifier: async ({ data }, infos) => {
|
|
23
|
+
try {
|
|
24
|
+
const response = await services.mediaTemplateDesign.create({
|
|
25
|
+
API_HOST: `${infos.url}${UNSUBSCRIBE_URL}/get-by-identifier`,
|
|
26
|
+
...data,
|
|
27
|
+
}, infos);
|
|
28
|
+
return response.data?.data || [];
|
|
29
|
+
}
|
|
30
|
+
catch (error) {
|
|
31
|
+
return new Promise((_, reject) => {
|
|
32
|
+
reject(error);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
updateUnsubscribePreferencesList: async ({ data }, infos) => {
|
|
37
|
+
try {
|
|
38
|
+
const response = await services.mediaTemplateDesign.create({
|
|
39
|
+
API_HOST: `${infos.url}${UNSUBSCRIBE_URL}/save`,
|
|
40
|
+
...data,
|
|
41
|
+
}, infos);
|
|
42
|
+
return response.data?.data || [];
|
|
43
|
+
}
|
|
44
|
+
catch (error) {
|
|
45
|
+
return new Promise((_, reject) => {
|
|
46
|
+
reject(error);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
getUnsubscribeList: async ({ data }, infos) => {
|
|
51
|
+
try {
|
|
52
|
+
const response = await services.mediaTemplateDesign.getList({
|
|
53
|
+
API_HOST: `${infos.url}${UNSUBSCRIBE_URL}/get-unsubscribe-list`,
|
|
54
|
+
...data,
|
|
55
|
+
}, infos);
|
|
56
|
+
return response.data?.data || [];
|
|
57
|
+
}
|
|
58
|
+
catch (error) {
|
|
59
|
+
return new Promise((_, reject) => {
|
|
60
|
+
reject(error);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
getUnsubscribeListPermission: async ({ data }, infos) => {
|
|
65
|
+
try {
|
|
66
|
+
const response = await services.mediaTemplateDesign.getList({
|
|
67
|
+
API_HOST: `${infos.url}${UNSUBSCRIBE_URL}/get-unsubscribe-list-permissions`,
|
|
68
|
+
...data,
|
|
69
|
+
}, infos);
|
|
70
|
+
return response.data?.data || [];
|
|
71
|
+
}
|
|
72
|
+
catch (error) {
|
|
73
|
+
return new Promise((_, reject) => {
|
|
74
|
+
reject(error);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
};
|
package/es/styled/common.js
CHANGED
|
@@ -4,56 +4,56 @@ import styled from 'styled-components';
|
|
|
4
4
|
import { globalToken } from '../constants';
|
|
5
5
|
// Components
|
|
6
6
|
import { Button } from '@antscorp/antsomi-ui/es/components/atoms';
|
|
7
|
-
export const IconButton = styled.div `
|
|
8
|
-
width: 20px;
|
|
9
|
-
height: 20px;
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
transition: all 200ms;
|
|
14
|
-
flex-shrink: 0;
|
|
15
|
-
|
|
16
|
-
i {
|
|
17
|
-
font-size: 14px;
|
|
18
|
-
color: ${globalToken?.bw8};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&:hover {
|
|
22
|
-
i {
|
|
23
|
-
color: ${globalToken?.bw10};
|
|
24
|
-
}
|
|
25
|
-
}
|
|
7
|
+
export const IconButton = styled.div `
|
|
8
|
+
width: 20px;
|
|
9
|
+
height: 20px;
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
transition: all 200ms;
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
|
|
16
|
+
i {
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
color: ${globalToken?.bw8};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&:hover {
|
|
22
|
+
i {
|
|
23
|
+
color: ${globalToken?.bw10};
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
26
|
`;
|
|
27
|
-
export const ActionButton = styled(Button) `
|
|
28
|
-
display: flex !important;
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
align-items: center;
|
|
31
|
-
height: 43px !important;
|
|
32
|
-
width: 50px !important;
|
|
33
|
-
gap: 4px !important;
|
|
34
|
-
padding: 3px 0px !important;
|
|
35
|
-
font-size: 8px !important;
|
|
36
|
-
line-height: 1 !important;
|
|
37
|
-
color: ${globalToken?.bw8} !important;
|
|
38
|
-
|
|
39
|
-
${props => props.$hide && `visibility: hidden !important;`}
|
|
40
|
-
|
|
41
|
-
.action-icon {
|
|
42
|
-
display: flex;
|
|
43
|
-
align-items: center;
|
|
44
|
-
justify-content: center;
|
|
45
|
-
flex-shrink: 0;
|
|
46
|
-
> i {
|
|
47
|
-
font-size: 24px !important;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/* &:hover, */
|
|
52
|
-
&:active {
|
|
53
|
-
color: ${globalToken?.colorPrimary} !important;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&:disabled {
|
|
57
|
-
background-color: ${globalToken?.bw2} !important;
|
|
58
|
-
}
|
|
27
|
+
export const ActionButton = styled(Button) `
|
|
28
|
+
display: flex !important;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
align-items: center;
|
|
31
|
+
height: 43px !important;
|
|
32
|
+
width: 50px !important;
|
|
33
|
+
gap: 4px !important;
|
|
34
|
+
padding: 3px 0px !important;
|
|
35
|
+
font-size: 8px !important;
|
|
36
|
+
line-height: 1 !important;
|
|
37
|
+
color: ${globalToken?.bw8} !important;
|
|
38
|
+
|
|
39
|
+
${props => props.$hide && `visibility: hidden !important;`}
|
|
40
|
+
|
|
41
|
+
.action-icon {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
flex-shrink: 0;
|
|
46
|
+
> i {
|
|
47
|
+
font-size: 24px !important;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* &:hover, */
|
|
52
|
+
&:active {
|
|
53
|
+
color: ${globalToken?.colorPrimary} !important;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:disabled {
|
|
57
|
+
background-color: ${globalToken?.bw2} !important;
|
|
58
|
+
}
|
|
59
59
|
`;
|
package/es/tests/styled.js
CHANGED
package/es/types/index.d.ts
CHANGED
package/es/types/index.js
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type TTab = {
|
|
2
|
+
activePanel?: string;
|
|
3
|
+
onChangeActivePanel?: (panelKey: any) => void;
|
|
4
|
+
};
|
|
5
|
+
export type TUnsubscribeList = {
|
|
6
|
+
status: string;
|
|
7
|
+
list_name: string;
|
|
8
|
+
type: string;
|
|
9
|
+
list_id: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
export type TUnsubscribeType = 'email' | 'sms' | 'whatsapp';
|
|
13
|
+
export type TUnsubscribeSettings = {
|
|
14
|
+
unsubscribePreferences: {
|
|
15
|
+
landingPageType?: string;
|
|
16
|
+
segmentId: number | string | null;
|
|
17
|
+
unsubscribeListId: number | string | null;
|
|
18
|
+
logo: string;
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
customLink: string;
|
|
22
|
+
haveResubscribeButton?: boolean;
|
|
23
|
+
preferenceListIds: string[] | undefined;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/utils/common.d.ts
CHANGED
|
@@ -166,3 +166,4 @@ export declare function numberWithCommas(n: number): string;
|
|
|
166
166
|
export declare const multiPercentageValue: (value?: string) => string;
|
|
167
167
|
export declare const antsomiClsx: (componentName: string) => (className: string) => string;
|
|
168
168
|
export declare function arrayToMapByProperty<T extends object, K extends keyof T>(array: T[], propertyName: K): Map<T[K], T>;
|
|
169
|
+
export declare function compareStrings(a: any, b: any): number;
|
package/es/utils/common.js
CHANGED
|
@@ -757,3 +757,6 @@ export function arrayToMapByProperty(array, propertyName) {
|
|
|
757
757
|
// new Map() có thể nhận mảng này để khởi tạo Map
|
|
758
758
|
return new Map(Object.entries(keyedObject));
|
|
759
759
|
}
|
|
760
|
+
export function compareStrings(a, b) {
|
|
761
|
+
return String(a).localeCompare(String(b));
|
|
762
|
+
}
|
package/es/utils/variables.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { css } from 'styled-components';
|
|
2
|
-
export const breakdownMd = style => css `
|
|
3
|
-
/* @media (max-width: 1600px) {
|
|
4
|
-
${style};
|
|
5
|
-
} */
|
|
6
|
-
${style}/* @media (max-width: 1500px) {
|
|
7
|
-
${style};
|
|
8
|
-
} */
|
|
2
|
+
export const breakdownMd = style => css `
|
|
3
|
+
/* @media (max-width: 1600px) {
|
|
4
|
+
${style};
|
|
5
|
+
} */
|
|
6
|
+
${style}/* @media (max-width: 1500px) {
|
|
7
|
+
${style};
|
|
8
|
+
} */
|
|
9
9
|
`;
|