@shopgate/pwa-common 7.30.0-alpha.7 → 7.30.0-alpha.9
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/App.js +48 -6
- package/action-creators/app/index.js +75 -12
- package/action-creators/app/spec.js +96 -1
- package/action-creators/client/index.js +27 -5
- package/action-creators/client/spec.js +44 -1
- package/action-creators/error/index.js +15 -3
- package/action-creators/index.js +9 -1
- package/action-creators/menu/index.js +23 -4
- package/action-creators/menu/spec.js +37 -1
- package/action-creators/modal/index.js +15 -3
- package/action-creators/modal/spec.js +26 -1
- package/action-creators/page/index.js +24 -4
- package/action-creators/page/spec.js +38 -1
- package/action-creators/router/index.js +48 -7
- package/action-creators/url/index.js +24 -4
- package/action-creators/url/spec.js +45 -1
- package/action-creators/user/index.js +90 -13
- package/action-creators/user/spec.js +186 -2
- package/actions/app/handleDeepLink.js +11 -2
- package/actions/app/handleLink.js +62 -6
- package/actions/app/handlePushNotification.js +32 -4
- package/actions/app/handleUniversalLink.js +11 -2
- package/actions/app/registerLinkEvents.js +24 -3
- package/actions/client/fetchClientInformation.js +26 -2
- package/actions/menu/fetchMenu.js +23 -2
- package/actions/modal/closeModal.js +18 -2
- package/actions/modal/promiseMap.js +3 -1
- package/actions/modal/showModal.js +54 -8
- package/actions/page/fetchPageConfig.js +69 -2
- package/actions/page/getPageConfig.js +6 -2
- package/actions/page/index.js +1 -1
- package/actions/router/historyPop.js +12 -2
- package/actions/router/historyPopToRoute.js +27 -2
- package/actions/router/historyPush.js +12 -2
- package/actions/router/historyRedirect.js +21 -2
- package/actions/router/historyReplace.js +20 -3
- package/actions/router/historyReset.js +11 -2
- package/actions/router/historyResetTo.js +12 -2
- package/actions/router/index.js +17 -1
- package/actions/router/routeDidPop.js +11 -2
- package/actions/router/routeDidPush.js +13 -2
- package/actions/router/routeDidReplace.js +11 -2
- package/actions/router/routeDidReset.js +11 -2
- package/actions/router/routeDidUpdate.js +10 -2
- package/actions/router/routeWillPop.js +11 -2
- package/actions/router/routeWillPush.js +13 -2
- package/actions/router/routeWillReplace.js +11 -2
- package/actions/router/routeWillReset.js +11 -2
- package/actions/router/windowOpenOverride.js +10 -2
- package/actions/user/fetchRegisterUrl.js +36 -2
- package/actions/user/fetchUser.js +29 -3
- package/actions/user/getUser.js +6 -2
- package/actions/user/index.js +1 -1
- package/actions/user/login.js +76 -9
- package/actions/user/logout.js +30 -2
- package/collections/AuthRoutes.js +73 -14
- package/collections/Configuration.js +54 -7
- package/collections/EmbeddedMedia.js +84 -11
- package/collections/PersistedReducers.js +41 -6
- package/collections/Redirects.js +103 -17
- package/collections/index.js +5 -1
- package/collections/media-providers/MediaProvider.js +151 -26
- package/collections/media-providers/Vimeo.js +113 -19
- package/collections/media-providers/YouTube.js +74 -14
- package/collections/media-providers/index.js +3 -1
- package/collections/media-providers/style.js +52 -2
- package/components/Backdrop/index.js +95 -6
- package/components/Backdrop/spec.js +23 -1
- package/components/Backdrop/style.js +11 -2
- package/components/Button/index.js +47 -5
- package/components/Button/spec.js +36 -1
- package/components/Button/style.js +6 -1
- package/components/Checkbox/index.js +126 -32
- package/components/Checkbox/spec.js +94 -3
- package/components/Consume/helpers/buildParams.js +13 -2
- package/components/Consume/index.js +14 -2
- package/components/CountdownTimer/index.js +115 -17
- package/components/CountdownTimer/spec.js +126 -12
- package/components/Drawer/index.js +131 -16
- package/components/Drawer/spec.js +76 -1
- package/components/Drawer/style.js +37 -1
- package/components/Dropdown/index.js +65 -6
- package/components/Dropdown/style.js +4 -1
- package/components/Dropdown/transitions.js +34 -1
- package/components/Ellipsis/index.js +16 -2
- package/components/Ellipsis/spec.js +13 -1
- package/components/EmbeddedMedia/index.js +56 -6
- package/components/EmbeddedMedia/spec.js +52 -3
- package/components/ErrorBoundary/connector.js +9 -2
- package/components/ErrorBoundary/index.js +43 -7
- package/components/Grid/components/Item/index.js +40 -4
- package/components/Grid/components/Item/spec.js +23 -1
- package/components/Grid/components/Item/style.js +17 -3
- package/components/Grid/index.js +36 -4
- package/components/Grid/spec.js +23 -1
- package/components/Grid/style.js +11 -2
- package/components/HtmlSanitizer/connector.js +24 -3
- package/components/HtmlSanitizer/index.js +104 -12
- package/components/HtmlSanitizer/spec.js +214 -7
- package/components/I18n/components/FormatDate/index.js +26 -2
- package/components/I18n/components/FormatDate/spec.js +46 -1
- package/components/I18n/components/FormatNumber/index.js +34 -2
- package/components/I18n/components/FormatNumber/spec.js +41 -2
- package/components/I18n/components/FormatPrice/index.js +32 -2
- package/components/I18n/components/FormatPrice/spec.js +46 -1
- package/components/I18n/components/FormatTime/index.js +26 -2
- package/components/I18n/components/FormatTime/spec.js +43 -2
- package/components/I18n/components/I18nProvider/index.js +52 -9
- package/components/I18n/components/I18nProvider/spec.js +39 -1
- package/components/I18n/components/Placeholder/index.js +8 -2
- package/components/I18n/components/Placeholder/spec.js +30 -1
- package/components/I18n/components/Translate/index.js +68 -7
- package/components/I18n/components/Translate/spec.js +30 -1
- package/components/I18n/index.js +16 -1
- package/components/Icon/index.js +25 -2
- package/components/Icon/style.js +6 -1
- package/components/Image/Image.js +176 -19
- package/components/Image/ImageInner.js +48 -2
- package/components/Image/index.js +1 -1
- package/components/Image/style.js +29 -2
- package/components/InfiniteContainer/index.js +381 -49
- package/components/InfiniteContainer/spec.js +199 -10
- package/components/Input/components/DateInput.js +262 -6
- package/components/Input/components/MultiLineInput.js +98 -12
- package/components/Input/components/SimpleInput.js +207 -31
- package/components/Input/index.js +32 -3
- package/components/Input/spec.js +122 -1
- package/components/KeyboardConsumer/index.js +48 -7
- package/components/Link/connector.js +7 -1
- package/components/Link/index.js +96 -11
- package/components/Link/spec.js +56 -1
- package/components/Link/style.js +10 -1
- package/components/List/components/Item/index.js +35 -3
- package/components/List/components/Item/style.js +16 -1
- package/components/List/index.js +20 -2
- package/components/List/spec.js +31 -1
- package/components/Loading/index.js +6 -2
- package/components/Modal/index.js +38 -3
- package/components/Modal/style.js +36 -1
- package/components/ModalContainer/connector.js +17 -3
- package/components/ModalContainer/index.js +36 -3
- package/components/ModalContainer/spec.js +105 -5
- package/components/Picker/components/Button/index.js +34 -2
- package/components/Picker/components/Button/style.js +19 -1
- package/components/Picker/components/List/index.js +33 -2
- package/components/Picker/components/List/style.js +17 -1
- package/components/Picker/components/Modal/index.js +60 -7
- package/components/Picker/components/Modal/style.js +78 -1
- package/components/Picker/index.js +167 -21
- package/components/Picker/spec.js +83 -2
- package/components/Portal/index.js +130 -19
- package/components/ProductCharacteristics/connector.js +33 -4
- package/components/ProductCharacteristics/context.js +2 -1
- package/components/ProductCharacteristics/helpers/index.js +135 -21
- package/components/ProductCharacteristics/index.js +266 -31
- package/components/RangeSlider/components/Handle/index.js +25 -2
- package/components/RangeSlider/components/Handle/style.js +14 -1
- package/components/RangeSlider/helper.js +43 -8
- package/components/RangeSlider/index.js +228 -38
- package/components/RangeSlider/style.js +14 -1
- package/components/Route/RouteNotFound.js +46 -3
- package/components/Route/index.js +78 -10
- package/components/Router/connector.js +9 -2
- package/components/Router/index.js +237 -31
- package/components/ScannerContainer/connector.js +9 -2
- package/components/ScannerContainer/index.js +42 -6
- package/components/Select/components/Item/index.js +20 -4
- package/components/Select/components/Item/style.js +4 -1
- package/components/Select/index.js +149 -28
- package/components/Select/spec.js +86 -2
- package/components/Select/style.js +17 -1
- package/components/SelectBox/components/Item/index.js +47 -5
- package/components/SelectBox/components/Item/style.js +7 -1
- package/components/SelectBox/index.js +173 -17
- package/components/SelectBox/spec.js +59 -3
- package/components/SelectBox/style.js +18 -1
- package/components/Slider/index.js +6 -2
- package/components/SurroundPortals/index.js +26 -2
- package/components/Swiper/components/SwiperItem/index.js +28 -4
- package/components/Swiper/components/SwiperItem/spec.js +21 -1
- package/components/Swiper/components/SwiperItem/styles.js +5 -1
- package/components/Swiper/index.js +210 -18
- package/components/Swiper/styles.js +75 -7
- package/components/Toaster/index.js +10 -2
- package/components/Transition/index.js +89 -13
- package/components/Widgets/components/Widget/index.js +52 -4
- package/components/Widgets/components/Widget/spec.js +68 -3
- package/components/Widgets/components/Widget/style.js +21 -3
- package/components/Widgets/components/WidgetGrid/index.js +52 -7
- package/components/Widgets/components/WidgetGrid/spec.js +46 -2
- package/components/Widgets/components/WidgetGrid/style.js +8 -1
- package/components/Widgets/helpers/shouldShowWidget.js +44 -7
- package/components/Widgets/index.js +127 -15
- package/components/Widgets/spec.js +228 -6
- package/components/index.js +9 -1
- package/constants/ActionTypes.js +97 -19
- package/constants/Configuration.js +12 -2
- package/constants/Device.js +29 -2
- package/constants/DisplayOptions.js +8 -1
- package/constants/MenuIDs.js +2 -1
- package/constants/ModalTypes.js +1 -1
- package/constants/PageIDs.js +1 -1
- package/constants/Pipelines.js +7 -1
- package/constants/Portals.js +136 -3
- package/constants/Registration.js +3 -1
- package/constants/RoutePaths.js +13 -2
- package/constants/Tracking.js +3 -1
- package/constants/client.js +6 -1
- package/constants/ui.js +2 -1
- package/constants/user.js +6 -2
- package/context/index.js +33 -3
- package/helpers/config/index.js +139 -21
- package/helpers/config/mock.js +200 -8
- package/helpers/config/theme.js +50 -4
- package/helpers/data/index.js +204 -29
- package/helpers/data/spec.js +187 -7
- package/helpers/date/index.js +58 -6
- package/helpers/date/spec.js +92 -1
- package/helpers/dom/index.js +48 -11
- package/helpers/environment/index.js +14 -2
- package/helpers/html/decodeHTML.js +7 -1
- package/helpers/html/handleDOM.js +172 -21
- package/helpers/html/parseHTML.js +67 -12
- package/helpers/i18n/getDateFormatter.js +23 -4
- package/helpers/i18n/getNumberFormatter.js +32 -4
- package/helpers/i18n/getPriceFormatter.js +38 -4
- package/helpers/i18n/getTimeFormatter.js +23 -4
- package/helpers/i18n/getTranslator.js +62 -8
- package/helpers/i18n/index.js +5 -1
- package/helpers/i18n/mergeTranslations.js +36 -9
- package/helpers/i18n/messageCache.js +3 -1
- package/helpers/legacy/index.js +47 -9
- package/helpers/modal/withShowModal.js +13 -2
- package/helpers/portals/portalCollection.js +28 -6
- package/helpers/portals/routePortals.js +12 -1
- package/helpers/redux/compareObjects.js +7 -2
- package/helpers/redux/generateResultHash.js +36 -3
- package/helpers/redux/generateSortedHash.js +7 -2
- package/helpers/redux/hasExpired.js +10 -2
- package/helpers/redux/index.js +7 -1
- package/helpers/redux/mutable.js +143 -24
- package/helpers/redux/shouldFetchData.js +46 -10
- package/helpers/redux/shouldFetchFilters.js +17 -4
- package/helpers/router/index.js +49 -5
- package/helpers/style/index.js +43 -4
- package/helpers/style/spec.js +108 -2
- package/helpers/tracking/index.js +52 -9
- package/helpers/validation/index.js +39 -12
- package/helpers/validation/spec.js +10 -1
- package/package.json +3 -4
- package/providers/index.js +4 -1
- package/providers/loading/context.js +2 -1
- package/providers/loading/index.js +137 -22
- package/providers/toast/context.js +2 -1
- package/providers/toast/index.js +105 -11
- package/reducers/client/connectivity.js +22 -2
- package/reducers/client/index.js +7 -1
- package/reducers/client/info.js +27 -2
- package/reducers/index.js +23 -4
- package/reducers/menu/index.js +5 -1
- package/reducers/menu/menusById.js +41 -2
- package/reducers/modal/index.js +14 -2
- package/reducers/page/index.js +68 -5
- package/reducers/router/index.js +48 -2
- package/reducers/url/index.js +42 -3
- package/reducers/user/data.js +27 -2
- package/reducers/user/index.js +7 -1
- package/reducers/user/login.js +65 -2
- package/selectors/client.js +138 -21
- package/selectors/history.js +49 -11
- package/selectors/menu.js +34 -6
- package/selectors/modal.js +15 -4
- package/selectors/page.js +25 -4
- package/selectors/router.js +154 -30
- package/selectors/url.js +25 -4
- package/selectors/user.js +90 -13
- package/store/index.js +60 -6
- package/store/middelwares/logger.js +7 -1
- package/store/middelwares/streams.js +19 -2
- package/streams/app.js +60 -8
- package/streams/client.js +8 -2
- package/streams/error.js +14 -3
- package/streams/index.js +6 -1
- package/streams/interval.js +6 -2
- package/streams/main.js +27 -2
- package/streams/router.js +45 -8
- package/streams/user.js +89 -15
- package/streams/view.js +97 -25
- package/styles/reset/form.js +57 -5
- package/styles/reset/index.js +6 -1
- package/styles/reset/media.js +22 -1
- package/styles/reset/root.js +33 -1
- package/styles/reset/table.js +10 -1
- package/styles/reset/typography.js +26 -1
- package/subscriptions/app.js +148 -17
- package/subscriptions/error.js +292 -13
- package/subscriptions/helpers/buildRegisterUrl.js +25 -6
- package/subscriptions/helpers/clearUpInAppBrowser.js +14 -3
- package/subscriptions/helpers/handleLinks.js +267 -25
- package/subscriptions/helpers/pipeline.js +12 -1
- package/subscriptions/history.js +34 -6
- package/subscriptions/index.js +25 -4
- package/subscriptions/menu.js +22 -5
- package/subscriptions/mock.js +39 -7
- package/subscriptions/router.js +336 -23
- package/subscriptions/user.js +93 -3
package/constants/ActionTypes.js
CHANGED
|
@@ -1,32 +1,110 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ------- CLIENT INFORMATION -------
|
|
3
|
-
*/
|
|
3
|
+
*/
|
|
4
|
+
export const REQUEST_CLIENT_INFORMATION = 'REQUEST_CLIENT_INFORMATION';
|
|
5
|
+
export const RECEIVE_CLIENT_INFORMATION = 'RECEIVE_CLIENT_INFORMATION';
|
|
6
|
+
export const ERROR_CLIENT_INFORMATION = 'ERROR_CLIENT_INFORMATION';
|
|
7
|
+
|
|
8
|
+
/**
|
|
4
9
|
* ------- CLIENT CONNECTIVITY -------
|
|
5
|
-
*/
|
|
10
|
+
*/
|
|
11
|
+
export const RECEIVE_CLIENT_CONNECTIVITY = 'RECEIVE_CLIENT_CONNECTIVITY';
|
|
12
|
+
|
|
13
|
+
/**
|
|
6
14
|
* ------- APP -------
|
|
7
|
-
*/
|
|
15
|
+
*/
|
|
16
|
+
export const APP_DID_START = 'APP_DID_START';
|
|
17
|
+
export const APP_WILL_START = 'APP_WILL_START';
|
|
18
|
+
export const APP_WILL_INIT = 'APP_WILL_INIT';
|
|
19
|
+
export const WILL_REGISTER_LINK_EVENTS = 'WILL_REGISTER_LINK_EVENTS';
|
|
20
|
+
export const DID_REGISTER_LINK_EVENTS = 'DID_REGISTER_LINK_EVENTS';
|
|
21
|
+
export const RESET_APP = 'RESET_APP';
|
|
22
|
+
export const PWA_DID_APPEAR = 'PWA_DID_APPEAR';
|
|
23
|
+
export const PWA_DID_DISAPPEAR = 'PWA_DID_DISAPPEAR';
|
|
24
|
+
|
|
25
|
+
/**
|
|
8
26
|
* ------- MENU -------
|
|
9
|
-
*/
|
|
27
|
+
*/
|
|
28
|
+
export const REQUEST_MENU = 'REQUEST_MENU';
|
|
29
|
+
export const RECEIVE_MENU = 'RECEIVE_MENU';
|
|
30
|
+
export const ERROR_MENU = 'ERROR_MENU';
|
|
31
|
+
|
|
32
|
+
/**
|
|
10
33
|
* ------- VIEW -------
|
|
11
|
-
*/
|
|
34
|
+
*/
|
|
35
|
+
export const SET_VIEW_LOADING = 'SET_VIEW_LOADING';
|
|
36
|
+
export const UNSET_VIEW_LOADING = 'UNSET_VIEW_LOADING';
|
|
37
|
+
export const INCREMENT_VIEW_LOADING = 'INCREMENT_VIEW_LOADING';
|
|
38
|
+
export const DECREMENT_VIEW_LOADING = 'DECREMENT_VIEW_LOADING';
|
|
39
|
+
|
|
40
|
+
/**
|
|
12
41
|
* ------- PAGE -------
|
|
13
|
-
*/
|
|
42
|
+
*/
|
|
43
|
+
export const REQUEST_PAGE_CONFIG = 'REQUEST_PAGE_CONFIG';
|
|
44
|
+
export const RECEIVE_PAGE_CONFIG = 'RECEIVE_PAGE_CONFIG';
|
|
45
|
+
export const ERROR_PAGE_CONFIG = 'ERROR_PAGE_CONFIG';
|
|
46
|
+
|
|
47
|
+
/**
|
|
14
48
|
* ------- HISTORY --------
|
|
15
|
-
*/
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
49
|
+
*/
|
|
50
|
+
export const HISTORY_PUSH_ACTION = 'PUSH';
|
|
51
|
+
export const HISTORY_POP_ACTION = 'POP';
|
|
52
|
+
export const HISTORY_REPLACE_ACTION = 'REPLACE';
|
|
53
|
+
export const HISTORY_RESET_TO = 'HISTORY_RESET_TO';
|
|
54
|
+
// PUSH NOTIFICATION
|
|
55
|
+
export const OPEN_PUSH_NOTIFICATION = 'OPEN_PUSH_NOTIFICATION';
|
|
56
|
+
// DEEP LINK
|
|
57
|
+
export const OPEN_DEEP_LINK = 'OPEN_DEEP_LINK';
|
|
58
|
+
// UNIVERSAL LINK
|
|
59
|
+
export const OPEN_UNIVERSAL_LINK = 'OPEN_UNIVERSAL_LINK';
|
|
60
|
+
|
|
61
|
+
/**
|
|
19
62
|
* ------- MODALS -------
|
|
20
|
-
*/
|
|
63
|
+
*/
|
|
64
|
+
export const CREATE_MODAL = 'CREATE_MODAL';
|
|
65
|
+
export const REMOVE_MODAL = 'REMOVE_MODAL';
|
|
66
|
+
|
|
67
|
+
/**
|
|
21
68
|
* ------- USER -------
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
69
|
+
*/
|
|
70
|
+
// LOGIN
|
|
71
|
+
export const REQUEST_LOGIN = 'REQUEST_LOGIN';
|
|
72
|
+
export const SUCCESS_LOGIN = 'SUCCESS_LOGIN';
|
|
73
|
+
export const ERROR_LOGIN = 'ERROR_LOGIN';
|
|
74
|
+
export const ERROR_LEGACY_CONNECT_REGISTER = 'ERROR_LEGACY_CONNECT_REGISTER';
|
|
75
|
+
export const TOGGLE_LOGGED_IN = 'TOGGLE_LOGGED_IN';
|
|
76
|
+
export const DISABLE_LOGIN = 'DISABLE_LOGIN';
|
|
77
|
+
// LOGOUT
|
|
78
|
+
export const REQUEST_LOGOUT = 'REQUEST_LOGOUT';
|
|
79
|
+
export const SUCCESS_LOGOUT = 'SUCCESS_LOGOUT';
|
|
80
|
+
export const ERROR_LOGOUT = 'ERROR_LOGOUT';
|
|
81
|
+
// USER
|
|
82
|
+
export const REQUEST_USER = 'REQUEST_USER';
|
|
83
|
+
export const RECEIVE_USER = 'RECEIVE_USER';
|
|
84
|
+
export const ERROR_USER = 'ERROR_USER';
|
|
85
|
+
// LOCATION
|
|
86
|
+
export const SELECT_GLOBAL_LOCATION = 'SELECT_GLOBAL_LOCATION';
|
|
87
|
+
|
|
88
|
+
/**
|
|
27
89
|
* --------- URL ------------
|
|
28
|
-
*/
|
|
90
|
+
*/
|
|
91
|
+
export const REQUEST_URL = 'REQUEST_URL';
|
|
92
|
+
export const RECEIVE_URL = 'RECEIVE_URL';
|
|
93
|
+
export const ERROR_URL = 'ERROR_URL';
|
|
94
|
+
|
|
95
|
+
/**
|
|
29
96
|
* ------- ERROR -------
|
|
30
|
-
*/
|
|
97
|
+
*/
|
|
98
|
+
export const APP_ERROR = 'APP_ERROR';
|
|
99
|
+
export const PIPELINE_ERROR = 'PIPELINE_ERROR';
|
|
100
|
+
|
|
101
|
+
/**
|
|
31
102
|
* --------- ROUTER ------------
|
|
32
|
-
*/
|
|
103
|
+
*/
|
|
104
|
+
export const NAVIGATE = 'NAVIGATE';
|
|
105
|
+
export const ROUTE_WILL_ENTER = 'ROUTE_WILL_ENTER';
|
|
106
|
+
export const ROUTE_DID_ENTER = 'ROUTE_DID_ENTER';
|
|
107
|
+
export const ROUTE_WILL_LEAVE = 'ROUTE_WILL_LEAVE';
|
|
108
|
+
export const ROUTE_DID_LEAVE = 'ROUTE_DID_LEAVE';
|
|
109
|
+
export const ROUTE_DID_UPDATE = 'ROUTE_DID_UPDATE';
|
|
110
|
+
export const WINDOW_OPEN_OVERRIDE = 'WINDOW_OPEN_OVERRIDE';
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
export
|
|
1
|
+
export const APP_PLATFORM = 'APP_PLATFORM';
|
|
2
|
+
export const RESET_APP_REDUCERS = 'RESET_APP_REDUCERS';
|
|
3
|
+
export const DEFAULT_PRODUCTS_FETCH_PARAMS = 'DEFAULT_PRODUCTS_FETCH_PARAMS';
|
|
4
|
+
export const TAB_BAR_PATTERNS_BLACK_LIST = 'TAB_BAR_PATTERNS_BLACK_LIST';
|
|
5
|
+
export const CONFIGURATION_COLLECTION_KEY_BASE_URL = 'CONFIGURATION_COLLECTION_KEY_BASE_URL';
|
|
6
|
+
export const PIPELINES = 'PIPELINES';
|
|
7
|
+
export const IS_CONNECT_EXTENSION_ATTACHED = 'IS_CONNECT_EXTENSION_ATTACHED';
|
|
8
|
+
|
|
9
|
+
/**
|
|
2
10
|
* This configuration collection key can be used to register a helper function to modify external
|
|
3
11
|
* image urls that are not delivered via the Shopgate CDN. The handler allows to add additional
|
|
4
12
|
* parameters to the image url to e.g. set resolution, format or quality.
|
|
@@ -23,4 +31,6 @@ export var APP_PLATFORM='APP_PLATFORM';export var RESET_APP_REDUCERS='RESET_APP_
|
|
|
23
31
|
* return `${baseUrl}?width=${width}`;
|
|
24
32
|
* }
|
|
25
33
|
* );
|
|
26
|
-
*/
|
|
34
|
+
*/
|
|
35
|
+
export const CONFIGURATION_COLLECTION_CREATE_EXTERNAL_IMAGE_URL = 'CONFIGURATION_COLLECTION_CREATE_EXTERNAL_IMAGE_URL';
|
|
36
|
+
export const CONFIGURATION_COLLECTION_KEY_THEME_TYPOGRAPHY = 'CONFIGURATION_COLLECTION_KEY_THEME_TYPOGRAPHY';
|
package/constants/Device.js
CHANGED
|
@@ -1,4 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
export const OS_ALL = 'all';
|
|
2
|
+
export const OS_ANDROID = 'android';
|
|
3
|
+
export const OS_IOS = 'ios';
|
|
4
|
+
export const TYPE_PHONE = 'phone';
|
|
5
|
+
export const TYPE_TABLET = 'tablet';
|
|
6
|
+
export const MODEL_NAMES_IPHONE_X = ['iPhone10,3', 'iPhone10,6', 'iPhone11,2', 'iPhone11,4', 'iPhone11,6', 'iPhone11,8'];
|
|
7
|
+
|
|
8
|
+
/**
|
|
2
9
|
* Page insets are device screen areas which can't be used to display content. Those come especially
|
|
3
10
|
* relevant on iOS devices with their status bar ot the iPhone notch at the top of the screen.
|
|
4
|
-
*/
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export const PAGE_INSET_NAME_TOP = 'safeAreaInsetTop';
|
|
14
|
+
export const PAGE_INSET_NAME_BOTTOM = 'safeAreaInsetBottom';
|
|
15
|
+
export const PAGE_INSET_NAME_LEFT = 'safeAreaInsetLeft';
|
|
16
|
+
export const PAGE_INSET_NAME_RIGHT = 'safeAreaInsetRight';
|
|
17
|
+
export const PAGE_INSETS_ANDROID = {
|
|
18
|
+
[PAGE_INSET_NAME_TOP]: 0,
|
|
19
|
+
[PAGE_INSET_NAME_BOTTOM]: 0,
|
|
20
|
+
[PAGE_INSET_NAME_LEFT]: 0,
|
|
21
|
+
[PAGE_INSET_NAME_RIGHT]: 0
|
|
22
|
+
};
|
|
23
|
+
export const PAGE_INSETS_IOS = {
|
|
24
|
+
...PAGE_INSETS_ANDROID,
|
|
25
|
+
[PAGE_INSET_NAME_TOP]: 20
|
|
26
|
+
};
|
|
27
|
+
export const PAGE_INSETS_IPHONE_X = {
|
|
28
|
+
...PAGE_INSETS_IOS,
|
|
29
|
+
[PAGE_INSET_NAME_TOP]: 44,
|
|
30
|
+
[PAGE_INSET_NAME_BOTTOM]: 30
|
|
31
|
+
};
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export const SORT_RELEVANCE = 'relevance';
|
|
2
|
+
export const SORT_PRICE_ASC = 'priceAsc';
|
|
3
|
+
export const SORT_PRICE_DESC = 'priceDesc';
|
|
4
|
+
export const SORT_DATE_ASC = 'dateAsc';
|
|
5
|
+
export const SORT_DATE_DESC = 'dateDesc';
|
|
6
|
+
export const SORT_RANDOM = 'random';
|
|
7
|
+
export const DEFAULT_SORT = SORT_RELEVANCE;
|
|
8
|
+
export const ITEMS_PER_LOAD = 32;
|
package/constants/MenuIDs.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export const QUICKLINKS_MENU = 'quicklinks';
|
|
2
|
+
export const LEGAL_MENU = 'legal';
|
package/constants/ModalTypes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export const MODAL_PIPELINE_ERROR = 'MODAL_PIPELINE_ERROR';
|
package/constants/PageIDs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export const PAGE_ID_INDEX = 'index';
|
package/constants/Pipelines.js
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export const SHOPGATE_CMS_GET_MENU = 'shopgate.cms.getMenu';
|
|
2
|
+
export const SHOPGATE_CMS_GET_PAGE_CONFIG = 'shopgate.cms.getPageConfig';
|
|
3
|
+
export const SHOPGATE_USER_GET_REGISTRATION_URL = 'shopgate.user.getRegistrationUrl';
|
|
4
|
+
export const SHOPGATE_USER_GET_USER = 'shopgate.user.getUser';
|
|
5
|
+
export const SHOPGATE_USER_LOGIN_USER = 'shopgate.user.loginUser';
|
|
6
|
+
export const SHOPGATE_USER_LOGOUT_USER = 'shopgate.user.logoutUser';
|
|
7
|
+
export const SHOPGATE_CATALOG_GET_PRODUCTS = 'shopgate.catalog.getProducts';
|
package/constants/Portals.js
CHANGED
|
@@ -1,4 +1,137 @@
|
|
|
1
1
|
// FEATURES
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
const APP = 'app';
|
|
3
|
+
const APP_BAR = 'app-bar';
|
|
4
|
+
const VIEW = 'view';
|
|
5
|
+
const PAGE = 'page';
|
|
6
|
+
const NAV_MENU = 'nav-menu';
|
|
7
|
+
const NO_RESULTS = 'no-results';
|
|
8
|
+
const USER_MENU = 'user-menu';
|
|
9
|
+
const FORM = 'form';
|
|
10
|
+
|
|
11
|
+
// CONTENTS
|
|
12
|
+
const GLOBALS = 'globals';
|
|
13
|
+
const ROUTES = 'routes';
|
|
14
|
+
const CONTENT = 'content';
|
|
15
|
+
const QUICK_LINKS = 'quick-links';
|
|
16
|
+
const HOME = 'home';
|
|
17
|
+
const LOGIN = 'login';
|
|
18
|
+
const SCANNER = 'scanner';
|
|
19
|
+
const REGISTER_LINK = 'register-link';
|
|
20
|
+
const TERMS = 'terms';
|
|
21
|
+
const PRIVACY = 'privacy';
|
|
22
|
+
const PRIVACY_SETTINGS = 'privacy-settings';
|
|
23
|
+
const IMPRINT = 'imprint';
|
|
24
|
+
const STORE_INFORMATION = 'store-information';
|
|
25
|
+
const STORE_INFORMATION_MORE = 'store-information-more';
|
|
26
|
+
const STORE_INFORMATION_ABOUT = 'store-information-about';
|
|
27
|
+
const MY_ACCOUNT = 'my-account';
|
|
28
|
+
const LOGOUT = 'logout';
|
|
29
|
+
const CONTAINER = 'container';
|
|
30
|
+
const DEFAULT = 'default';
|
|
31
|
+
const BACK = 'back';
|
|
32
|
+
const CLOSE = 'close';
|
|
33
|
+
const SIMPLE = 'simple';
|
|
34
|
+
const CART_BUTTON = 'cart-button';
|
|
35
|
+
const ITEMS = 'items';
|
|
36
|
+
|
|
37
|
+
// POSITIONS
|
|
38
|
+
export const BEFORE = 'before';
|
|
39
|
+
export const AFTER = 'after';
|
|
40
|
+
export const LEFT = 'left';
|
|
41
|
+
export const CENTER = 'center';
|
|
42
|
+
export const RIGHT = 'right';
|
|
43
|
+
export const BELOW = 'below';
|
|
44
|
+
export const APP_GLOBALS = `${APP}.${GLOBALS}`;
|
|
45
|
+
export const APP_ROUTES = `${APP}.${ROUTES}`;
|
|
46
|
+
export const VIEW_CONTENT_BEFORE = `${VIEW}.${CONTENT}.${BEFORE}`;
|
|
47
|
+
export const VIEW_CONTENT = `${VIEW}.${CONTENT}`;
|
|
48
|
+
export const VIEW_CONTENT_AFTER = `${VIEW}.${CONTENT}.${AFTER}`;
|
|
49
|
+
export const PAGE_CONTENT_BEFORE = `${PAGE}.${CONTENT}.${BEFORE}`;
|
|
50
|
+
export const PAGE_CONTENT = `${PAGE}.${CONTENT}`;
|
|
51
|
+
export const PAGE_CONTENT_AFTER = `${PAGE}.${CONTENT}.${AFTER}`;
|
|
52
|
+
export const PAGE_LOGIN_BEFORE = `${PAGE}.${LOGIN}.${BEFORE}`;
|
|
53
|
+
export const PAGE_LOGIN = `${PAGE}.${LOGIN}`;
|
|
54
|
+
export const PAGE_LOGIN_AFTER = `${PAGE}.${LOGIN}.${AFTER}`;
|
|
55
|
+
export const PAGE_LOGIN_FORM_BEFORE = `${PAGE}.${LOGIN}.${FORM}.${BEFORE}`;
|
|
56
|
+
export const PAGE_LOGIN_FORM = `${PAGE}.${LOGIN}.${FORM}`;
|
|
57
|
+
export const PAGE_LOGIN_FORM_AFTER = `${PAGE}.${LOGIN}.${FORM}.${AFTER}`;
|
|
58
|
+
export const PAGE_LOGIN_REGISTER_LINK_BEFORE = `${PAGE}.${LOGIN}.${REGISTER_LINK}.${BEFORE}`;
|
|
59
|
+
export const PAGE_LOGIN_REGISTER_LINK = `${PAGE}.${LOGIN}.${REGISTER_LINK}`;
|
|
60
|
+
export const PAGE_LOGIN_REGISTER_LINK_AFTER = `${PAGE}.${LOGIN}.${REGISTER_LINK}.${AFTER}`;
|
|
61
|
+
export const NAV_MENU_CONTENT_BEFORE = `${NAV_MENU}.${CONTENT}.${BEFORE}`;
|
|
62
|
+
export const NAV_MENU_CONTENT_AFTER = `${NAV_MENU}.${CONTENT}.${AFTER}`;
|
|
63
|
+
export const NAV_MENU_QUICK_LINKS = `${NAV_MENU}.${QUICK_LINKS}`;
|
|
64
|
+
export const NAV_MENU_QUICK_LINKS_BEFORE = `${NAV_MENU}.${QUICK_LINKS}.${BEFORE}`;
|
|
65
|
+
export const NAV_MENU_QUICK_LINKS_AFTER = `${NAV_MENU}.${QUICK_LINKS}.${AFTER}`;
|
|
66
|
+
export const NAV_MENU_QUICK_LINKS_ITEMS = `${NAV_MENU}.${QUICK_LINKS}.${ITEMS}`;
|
|
67
|
+
export const NAV_MENU_QUICK_LINKS_ITEMS_BEFORE = `${NAV_MENU}.${QUICK_LINKS}.${ITEMS}.${BEFORE}`;
|
|
68
|
+
export const NAV_MENU_QUICK_LINKS_ITEMS_AFTER = `${NAV_MENU}.${QUICK_LINKS}.${ITEMS}.${AFTER}`;
|
|
69
|
+
export const NAV_MENU_HOME_BEFORE = `${NAV_MENU}.${HOME}.${BEFORE}`;
|
|
70
|
+
export const NAV_MENU_HOME = `${NAV_MENU}.${HOME}`;
|
|
71
|
+
export const NAV_MENU_HOME_AFTER = `${NAV_MENU}.${HOME}.${AFTER}`;
|
|
72
|
+
export const NAV_MENU_SCANNER_BEFORE = `${NAV_MENU}.${SCANNER}.${BEFORE}`;
|
|
73
|
+
export const NAV_MENU_SCANNER = `${NAV_MENU}.${SCANNER}`;
|
|
74
|
+
export const NAV_MENU_SCANNER_AFTER = `${NAV_MENU}.${SCANNER}.${AFTER}`;
|
|
75
|
+
export const NAV_MENU_TERMS_BEFORE = `${NAV_MENU}.${TERMS}.${BEFORE}`;
|
|
76
|
+
export const NAV_MENU_TERMS = `${NAV_MENU}.${TERMS}`;
|
|
77
|
+
export const NAV_MENU_TERMS_AFTER = `${NAV_MENU}.${TERMS}.${AFTER}`;
|
|
78
|
+
export const NAV_MENU_PRIVACY_BEFORE = `${NAV_MENU}.${PRIVACY}.${BEFORE}`;
|
|
79
|
+
export const NAV_MENU_PRIVACY = `${NAV_MENU}.${PRIVACY}`;
|
|
80
|
+
export const NAV_MENU_PRIVACY_AFTER = `${NAV_MENU}.${PRIVACY}.${AFTER}`;
|
|
81
|
+
export const NAV_MENU_PRIVACY_SETTINGS_BEFORE = `${NAV_MENU}.${PRIVACY_SETTINGS}.${BEFORE}`;
|
|
82
|
+
export const NAV_MENU_PRIVACY_SETTINGS = `${NAV_MENU}.${PRIVACY_SETTINGS}`;
|
|
83
|
+
export const NAV_MENU_PRIVACY_SETTINGS_AFTER = `${NAV_MENU}.${PRIVACY_SETTINGS}.${AFTER}`;
|
|
84
|
+
export const NAV_MENU_IMPRINT_BEFORE = `${NAV_MENU}.${IMPRINT}.${BEFORE}`;
|
|
85
|
+
export const NAV_MENU_IMPRINT = `${NAV_MENU}.${IMPRINT}`;
|
|
86
|
+
export const NAV_MENU_IMPRINT_AFTER = `${NAV_MENU}.${IMPRINT}.${AFTER}`;
|
|
87
|
+
export const NAV_MENU_STORE_INFORMATION_BEFORE = `${NAV_MENU}.${STORE_INFORMATION}.${BEFORE}`;
|
|
88
|
+
export const NAV_MENU_STORE_INFORMATION = `${NAV_MENU}.${STORE_INFORMATION}`;
|
|
89
|
+
export const NAV_MENU_STORE_INFORMATION_AFTER = `${NAV_MENU}.${STORE_INFORMATION}.${AFTER}`;
|
|
90
|
+
export const NAV_MENU_STORE_INFORMATION_MORE_BEFORE = `${NAV_MENU}.${STORE_INFORMATION_MORE}.${BEFORE}`;
|
|
91
|
+
export const NAV_MENU_STORE_INFORMATION_MORE = `${NAV_MENU}.${STORE_INFORMATION_MORE}`;
|
|
92
|
+
export const NAV_MENU_STORE_INFORMATION_MORE_AFTER = `${NAV_MENU}.${STORE_INFORMATION_MORE}.${AFTER}`;
|
|
93
|
+
export const NAV_MENU_STORE_INFORMATION_ABOUT_BEFORE = `${NAV_MENU}.${STORE_INFORMATION_ABOUT}.${BEFORE}`;
|
|
94
|
+
export const NAV_MENU_STORE_INFORMATION_ABOUT = `${NAV_MENU}.${STORE_INFORMATION_ABOUT}`;
|
|
95
|
+
export const NAV_MENU_STORE_INFORMATION_ABOUT_AFTER = `${NAV_MENU}.${STORE_INFORMATION_ABOUT}.${AFTER}`;
|
|
96
|
+
export const NAV_MENU_MY_ACCOUNT_BEFORE = `${NAV_MENU}.${MY_ACCOUNT}.${BEFORE}`;
|
|
97
|
+
export const NAV_MENU_MY_ACCOUNT = `${NAV_MENU}.${MY_ACCOUNT}`;
|
|
98
|
+
export const NAV_MENU_MY_ACCOUNT_AFTER = `${NAV_MENU}.${MY_ACCOUNT}.${AFTER}`;
|
|
99
|
+
export const NAV_MENU_LOGOUT_BEFORE = `${NAV_MENU}.${LOGOUT}.${BEFORE}`;
|
|
100
|
+
export const NAV_MENU_LOGOUT = `${NAV_MENU}.${LOGOUT}`;
|
|
101
|
+
export const NAV_MENU_LOGOUT_AFTER = `${NAV_MENU}.${LOGOUT}.${AFTER}`;
|
|
102
|
+
export const NO_RESULTS_CONTENT_BEFORE = `${NO_RESULTS}.${CONTENT}.${BEFORE}`;
|
|
103
|
+
export const NO_RESULTS_CONTENT = `${NO_RESULTS}.${CONTENT}`;
|
|
104
|
+
export const NO_RESULTS_CONTENT_AFTER = `${NO_RESULTS}.${CONTENT}.${AFTER}`;
|
|
105
|
+
export const USER_MENU_CONTAINER_BEFORE = `${USER_MENU}.${CONTAINER}.${BEFORE}`;
|
|
106
|
+
export const USER_MENU_CONTAINER = `${USER_MENU}.${CONTAINER}`;
|
|
107
|
+
export const USER_MENU_CONTAINER_AFTER = `${USER_MENU}.${CONTAINER}.${AFTER}`;
|
|
108
|
+
export const APP_BAR_DEFAULT_BEFORE = `${APP_BAR}.${DEFAULT}.${BEFORE}`;
|
|
109
|
+
export const APP_BAR_DEFAULT = `${APP_BAR}.${DEFAULT}`;
|
|
110
|
+
export const APP_BAR_DEFAULT_AFTER = `${APP_BAR}.${DEFAULT}.${AFTER}`;
|
|
111
|
+
export const APP_BAR_BACK_BEFORE = `${APP_BAR}.${BACK}.${BEFORE}`;
|
|
112
|
+
export const APP_BAR_BACK = `${APP_BAR}.${BACK}`;
|
|
113
|
+
export const APP_BAR_BACK_AFTER = `${APP_BAR}.${BACK}.${AFTER}`;
|
|
114
|
+
export const APP_BAR_CLOSE_BEFORE = `${APP_BAR}.${CLOSE}.${BEFORE}`;
|
|
115
|
+
export const APP_BAR_CLOSE = `${APP_BAR}.${CLOSE}`;
|
|
116
|
+
export const APP_BAR_CLOSE_AFTER = `${APP_BAR}.${CLOSE}.${AFTER}`;
|
|
117
|
+
export const APP_BAR_SIMPLE_BEFORE = `${APP_BAR}.${SIMPLE}.${BEFORE}`;
|
|
118
|
+
export const APP_BAR_SIMPLE = `${APP_BAR}.${SIMPLE}`;
|
|
119
|
+
export const APP_BAR_SIMPLE_AFTER = `${APP_BAR}.${SIMPLE}.${AFTER}`;
|
|
120
|
+
export const APP_BAR_LEFT = `${APP_BAR}.${LEFT}`;
|
|
121
|
+
export const APP_BAR_LEFT_BEFORE = `${APP_BAR}.${LEFT}.${BEFORE}`;
|
|
122
|
+
export const APP_BAR_LEFT_AFTER = `${APP_BAR}.${LEFT}.${AFTER}`;
|
|
123
|
+
export const APP_BAR_CENTER = `${APP_BAR}.${CENTER}`;
|
|
124
|
+
export const APP_BAR_CENTER_BEFORE = `${APP_BAR}.${CENTER}.${BEFORE}`;
|
|
125
|
+
export const APP_BAR_CENTER_AFTER = `${APP_BAR}.${CENTER}.${AFTER}`;
|
|
126
|
+
export const APP_BAR_RIGHT = `${APP_BAR}.${RIGHT}`;
|
|
127
|
+
export const APP_BAR_RIGHT_BEFORE = `${APP_BAR}.${RIGHT}.${BEFORE}`;
|
|
128
|
+
export const APP_BAR_RIGHT_AFTER = `${APP_BAR}.${RIGHT}.${AFTER}`;
|
|
129
|
+
export const APP_BAR_BELOW = `${APP_BAR}.${BELOW}`;
|
|
130
|
+
export const APP_BAR_BELOW_BEFORE = `${APP_BAR}.${BELOW}.${BEFORE}`;
|
|
131
|
+
export const APP_BAR_BELOW_AFTER = `${APP_BAR}.${BELOW}.${AFTER}`;
|
|
132
|
+
export const APP_BAR_CART_BUTTON = `${APP_BAR}.${CART_BUTTON}`;
|
|
133
|
+
export const APP_BAR_CART_BUTTON_BEFORE = `${APP_BAR}.${CART_BUTTON}.${BEFORE}`;
|
|
134
|
+
export const APP_BAR_CART_BUTTON_AFTER = `${APP_BAR}.${CART_BUTTON}.${AFTER}`;
|
|
135
|
+
export const APP_BAR_CONTENT = `${APP_BAR}.${CONTENT}`;
|
|
136
|
+
export const APP_BAR_CONTENT_BEFORE = `${APP_BAR_CONTENT}.${BEFORE}`;
|
|
137
|
+
export const APP_BAR_CONTENT_AFTER = `${APP_BAR_CONTENT}.${AFTER}`;
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export
|
|
1
|
+
export const LEGACY_URL = '/register_legacy';
|
|
2
|
+
export const LEGACY_URL_CONNECT_REGISTER = '/connect_register';
|
|
3
|
+
export const URL_TYPE_REGISTER = 'register';
|
package/constants/RoutePaths.js
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
export
|
|
1
|
+
export const INDEX_PATH = '/';
|
|
2
|
+
export const PAGE_PATH = '/page';
|
|
3
|
+
export const LOGIN_PATH = '/login';
|
|
4
|
+
export const REGISTER_PATH = '/register';
|
|
5
|
+
export const CHECKOUT_PATH = '/checkout';
|
|
6
|
+
export const ORDERS_PATH = '/orders';
|
|
7
|
+
export const ACCOUNT_PATH = '/account';
|
|
8
|
+
export const ACCOUNT_PATTERN = '/account/:tab';
|
|
9
|
+
export const PAGE_PATTERN = `${PAGE_PATH}/:pageId`;
|
|
10
|
+
|
|
11
|
+
/**
|
|
2
12
|
* Our current existing Deeplinks and Push Messages use '/index' for the homepage
|
|
3
13
|
* @type {string}
|
|
4
|
-
*/
|
|
14
|
+
*/
|
|
15
|
+
export const INDEX_PATH_DEEPLINK = '/index';
|
package/constants/Tracking.js
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export
|
|
1
|
+
export const TRACKING_TARGET_ALL = 'all';
|
|
2
|
+
export const TRACKING_TARGET_APPS = 'apps';
|
|
3
|
+
export const TRACKING_TARGET_APPS_SMARTPHONE = 'apps_smartphone';
|
package/constants/client.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
export
|
|
1
|
+
export const CONNECTIVITY_NETWORK_UNKNOWN = 'UNKNOWN';
|
|
2
|
+
export const CONNECTIVITY_TYPE_UNKNOWN = 'UNKNOWN';
|
|
3
|
+
export const CONNECTIVITY_TYPE_WIFI = 'WIFI';
|
|
4
|
+
export const CONNECTIVITY_TYPE_4G = '4G';
|
|
5
|
+
export const CONNECTIVITY_TYPE_3G = '3G';
|
|
6
|
+
export const CONNECTIVITY_TYPE_2G = '2G';
|
package/constants/ui.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export const UI_TOGGLE_NAVDRAWER = 'UI_TOGGLE_NAVDRAWER';
|
|
2
|
+
export const UI_VISIBILITY_CHANGE = 'UI_VISIBILITY_CHANGE';
|
package/constants/user.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export const DEFAULT_LOGIN_STRATEGY = 'basic';
|
|
2
|
+
export const REGISTRATION_FORM_LOGIN_STRATEGY = 'registrationForm';
|
|
3
|
+
export const EVENT_USER_INITIALIZED = 'EVENT_USER_INITIALIZED';
|
|
4
|
+
/**
|
|
2
5
|
* Defines the interval to check if an expirable session is expired
|
|
3
|
-
*/
|
|
6
|
+
*/
|
|
7
|
+
export const SESSION_EXPIRY_CHECK_INTERVAL = 20 * 1000;
|
package/context/index.js
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import React from'react';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RouterContext, RouteContext } from '@virtuous/react-conductor';
|
|
3
|
+
export { RouterContext };
|
|
4
|
+
export { RouteContext };
|
|
5
|
+
|
|
6
|
+
/**
|
|
2
7
|
* @deprecated
|
|
3
8
|
* Use `ThemeResourcesContext` instead.
|
|
4
9
|
*
|
|
@@ -54,7 +59,31 @@ import React from'react';import{RouterContext,RouteContext}from'@virtuous/react-
|
|
|
54
59
|
* // Deprecated: { contexts: { ProductContext }} → use ProductContext
|
|
55
60
|
* import { ProductContext } from '@shopgate/engage/product/contexts';
|
|
56
61
|
* ```
|
|
57
|
-
*/
|
|
62
|
+
*/
|
|
63
|
+
export const ThemeContext = /*#__PURE__*/React.createContext({
|
|
64
|
+
/** @deprecated */
|
|
65
|
+
Drawer: null,
|
|
66
|
+
/** @deprecated */
|
|
67
|
+
ProductSlider: null,
|
|
68
|
+
/** @deprecated */
|
|
69
|
+
View: null,
|
|
70
|
+
/** @deprecated */
|
|
71
|
+
TextOption: null,
|
|
72
|
+
/** @deprecated */
|
|
73
|
+
SelectOption: null,
|
|
74
|
+
/** @deprecated */
|
|
75
|
+
PriceDifference: null,
|
|
76
|
+
AppBar: null,
|
|
77
|
+
ProductCard: null,
|
|
78
|
+
ProductGrid: null,
|
|
79
|
+
ProductHeader: null,
|
|
80
|
+
contexts: {
|
|
81
|
+
/** @deprecated */
|
|
82
|
+
ProductContext: null
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
/**
|
|
58
87
|
* @deprecated
|
|
59
88
|
* Use `useThemeComponents()` or `withThemeComponents()` instead.
|
|
60
89
|
*
|
|
@@ -103,4 +132,5 @@ import React from'react';import{RouterContext,RouteContext}from'@virtuous/react-
|
|
|
103
132
|
* // Deprecated: { contexts: { ProductContext }} → use ProductContext
|
|
104
133
|
* import { ProductContext } from '@shopgate/engage/product/contexts';
|
|
105
134
|
* ```
|
|
106
|
-
*/
|
|
135
|
+
*/
|
|
136
|
+
export const Theme = ThemeContext.Consumer;
|