@shopgate/pwa-common 7.33.2-alpha.2 → 7.33.2
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/constants/ActionTypes.d.ts +93 -0
- package/constants/ActionTypes.d.ts.map +1 -0
- package/constants/Configuration.d.ts +43 -0
- package/constants/Configuration.d.ts.map +1 -0
- package/constants/Device.d.ts +31 -0
- package/constants/Device.d.ts.map +1 -0
- package/constants/DisplayOptions.d.ts +9 -0
- package/constants/DisplayOptions.d.ts.map +1 -0
- package/constants/MenuIDs.d.ts +3 -0
- package/constants/MenuIDs.d.ts.map +1 -0
- package/constants/ModalTypes.d.ts +2 -0
- package/constants/ModalTypes.d.ts.map +1 -0
- package/constants/PageIDs.d.ts +2 -0
- package/constants/PageIDs.d.ts.map +1 -0
- package/constants/Pipelines.d.ts +8 -0
- package/constants/Pipelines.d.ts.map +1 -0
- package/constants/Registration.d.ts +4 -0
- package/constants/Registration.d.ts.map +1 -0
- package/constants/RoutePaths.d.ts +15 -0
- package/constants/RoutePaths.d.ts.map +1 -0
- package/constants/Tracking.d.ts +4 -0
- package/constants/Tracking.d.ts.map +1 -0
- package/constants/client.d.ts +7 -0
- package/constants/client.d.ts.map +1 -0
- package/constants/ui.d.ts +3 -0
- package/constants/ui.d.ts.map +1 -0
- package/constants/user.d.ts +8 -0
- package/constants/user.d.ts.map +1 -0
- package/helpers/redux/compareObjects.d.ts +8 -0
- package/helpers/redux/compareObjects.d.ts.map +1 -0
- package/helpers/redux/generateResultHash.d.ts +10 -0
- package/helpers/redux/generateResultHash.d.ts.map +1 -0
- package/helpers/redux/generateSortedHash.d.ts +7 -0
- package/helpers/redux/generateSortedHash.d.ts.map +1 -0
- package/helpers/redux/hasExpired.d.ts +7 -0
- package/helpers/redux/hasExpired.d.ts.map +1 -0
- package/helpers/redux/index.d.ts +8 -0
- package/helpers/redux/index.d.ts.map +1 -0
- package/helpers/redux/mutable.d.ts +51 -0
- package/helpers/redux/mutable.d.ts.map +1 -0
- package/helpers/redux/shouldFetchData.d.ts +10 -0
- package/helpers/redux/shouldFetchData.d.ts.map +1 -0
- package/helpers/redux/shouldFetchFilters.d.ts +7 -0
- package/helpers/redux/shouldFetchFilters.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ------- CLIENT INFORMATION -------
|
|
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
|
+
* ------- CLIENT CONNECTIVITY -------
|
|
9
|
+
*/
|
|
10
|
+
export const RECEIVE_CLIENT_CONNECTIVITY: "RECEIVE_CLIENT_CONNECTIVITY";
|
|
11
|
+
/**
|
|
12
|
+
* ------- APP -------
|
|
13
|
+
*/
|
|
14
|
+
export const APP_DID_START: "APP_DID_START";
|
|
15
|
+
export const APP_WILL_START: "APP_WILL_START";
|
|
16
|
+
export const APP_WILL_INIT: "APP_WILL_INIT";
|
|
17
|
+
export const WILL_REGISTER_LINK_EVENTS: "WILL_REGISTER_LINK_EVENTS";
|
|
18
|
+
export const DID_REGISTER_LINK_EVENTS: "DID_REGISTER_LINK_EVENTS";
|
|
19
|
+
export const RESET_APP: "RESET_APP";
|
|
20
|
+
export const PWA_DID_APPEAR: "PWA_DID_APPEAR";
|
|
21
|
+
export const PWA_DID_DISAPPEAR: "PWA_DID_DISAPPEAR";
|
|
22
|
+
/**
|
|
23
|
+
* ------- MENU -------
|
|
24
|
+
*/
|
|
25
|
+
export const REQUEST_MENU: "REQUEST_MENU";
|
|
26
|
+
export const RECEIVE_MENU: "RECEIVE_MENU";
|
|
27
|
+
export const ERROR_MENU: "ERROR_MENU";
|
|
28
|
+
/**
|
|
29
|
+
* ------- VIEW -------
|
|
30
|
+
*/
|
|
31
|
+
export const SET_VIEW_LOADING: "SET_VIEW_LOADING";
|
|
32
|
+
export const UNSET_VIEW_LOADING: "UNSET_VIEW_LOADING";
|
|
33
|
+
export const INCREMENT_VIEW_LOADING: "INCREMENT_VIEW_LOADING";
|
|
34
|
+
export const DECREMENT_VIEW_LOADING: "DECREMENT_VIEW_LOADING";
|
|
35
|
+
/**
|
|
36
|
+
* ------- PAGE -------
|
|
37
|
+
*/
|
|
38
|
+
export const REQUEST_PAGE_CONFIG: "REQUEST_PAGE_CONFIG";
|
|
39
|
+
export const RECEIVE_PAGE_CONFIG: "RECEIVE_PAGE_CONFIG";
|
|
40
|
+
export const ERROR_PAGE_CONFIG: "ERROR_PAGE_CONFIG";
|
|
41
|
+
/**
|
|
42
|
+
* ------- HISTORY --------
|
|
43
|
+
*/
|
|
44
|
+
export const HISTORY_PUSH_ACTION: "PUSH";
|
|
45
|
+
export const HISTORY_POP_ACTION: "POP";
|
|
46
|
+
export const HISTORY_REPLACE_ACTION: "REPLACE";
|
|
47
|
+
export const HISTORY_RESET_TO: "HISTORY_RESET_TO";
|
|
48
|
+
export const OPEN_PUSH_NOTIFICATION: "OPEN_PUSH_NOTIFICATION";
|
|
49
|
+
export const OPEN_DEEP_LINK: "OPEN_DEEP_LINK";
|
|
50
|
+
export const OPEN_UNIVERSAL_LINK: "OPEN_UNIVERSAL_LINK";
|
|
51
|
+
/**
|
|
52
|
+
* ------- MODALS -------
|
|
53
|
+
*/
|
|
54
|
+
export const CREATE_MODAL: "CREATE_MODAL";
|
|
55
|
+
export const REMOVE_MODAL: "REMOVE_MODAL";
|
|
56
|
+
/**
|
|
57
|
+
* ------- USER -------
|
|
58
|
+
*/
|
|
59
|
+
export const REQUEST_LOGIN: "REQUEST_LOGIN";
|
|
60
|
+
export const SUCCESS_LOGIN: "SUCCESS_LOGIN";
|
|
61
|
+
export const ERROR_LOGIN: "ERROR_LOGIN";
|
|
62
|
+
export const ERROR_LEGACY_CONNECT_REGISTER: "ERROR_LEGACY_CONNECT_REGISTER";
|
|
63
|
+
export const TOGGLE_LOGGED_IN: "TOGGLE_LOGGED_IN";
|
|
64
|
+
export const DISABLE_LOGIN: "DISABLE_LOGIN";
|
|
65
|
+
export const REQUEST_LOGOUT: "REQUEST_LOGOUT";
|
|
66
|
+
export const SUCCESS_LOGOUT: "SUCCESS_LOGOUT";
|
|
67
|
+
export const ERROR_LOGOUT: "ERROR_LOGOUT";
|
|
68
|
+
export const REQUEST_USER: "REQUEST_USER";
|
|
69
|
+
export const RECEIVE_USER: "RECEIVE_USER";
|
|
70
|
+
export const ERROR_USER: "ERROR_USER";
|
|
71
|
+
export const SELECT_GLOBAL_LOCATION: "SELECT_GLOBAL_LOCATION";
|
|
72
|
+
/**
|
|
73
|
+
* --------- URL ------------
|
|
74
|
+
*/
|
|
75
|
+
export const REQUEST_URL: "REQUEST_URL";
|
|
76
|
+
export const RECEIVE_URL: "RECEIVE_URL";
|
|
77
|
+
export const ERROR_URL: "ERROR_URL";
|
|
78
|
+
/**
|
|
79
|
+
* ------- ERROR -------
|
|
80
|
+
*/
|
|
81
|
+
export const APP_ERROR: "APP_ERROR";
|
|
82
|
+
export const PIPELINE_ERROR: "PIPELINE_ERROR";
|
|
83
|
+
/**
|
|
84
|
+
* --------- ROUTER ------------
|
|
85
|
+
*/
|
|
86
|
+
export const NAVIGATE: "NAVIGATE";
|
|
87
|
+
export const ROUTE_WILL_ENTER: "ROUTE_WILL_ENTER";
|
|
88
|
+
export const ROUTE_DID_ENTER: "ROUTE_DID_ENTER";
|
|
89
|
+
export const ROUTE_WILL_LEAVE: "ROUTE_WILL_LEAVE";
|
|
90
|
+
export const ROUTE_DID_LEAVE: "ROUTE_DID_LEAVE";
|
|
91
|
+
export const ROUTE_DID_UPDATE: "ROUTE_DID_UPDATE";
|
|
92
|
+
export const WINDOW_OPEN_OVERRIDE: "WINDOW_OPEN_OVERRIDE";
|
|
93
|
+
//# sourceMappingURL=ActionTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionTypes.d.ts","sourceRoot":"","sources":["../../constants/ActionTypes.js"],"names":[],"mappings":"AAAA;;GAEG;AACH,yCAA0C,4BAA4B,CAAC;AACvE,yCAA0C,4BAA4B,CAAC;AACvE,uCAAwC,0BAA0B,CAAC;AAEnE;;GAEG;AACH,0CAA2C,6BAA6B,CAAC;AAEzE;;GAEG;AACH,4BAA6B,eAAe,CAAC;AAC7C,6BAA8B,gBAAgB,CAAC;AAC/C,4BAA6B,eAAe,CAAC;AAC7C,wCAAyC,2BAA2B,CAAC;AACrE,uCAAwC,0BAA0B,CAAC;AACnE,wBAAyB,WAAW,CAAC;AAErC,6BAA8B,gBAAgB,CAAC;AAC/C,gCAAiC,mBAAmB,CAAC;AAErD;;GAEG;AACH,2BAA4B,cAAc,CAAC;AAC3C,2BAA4B,cAAc,CAAC;AAC3C,yBAA0B,YAAY,CAAC;AAEvC;;GAEG;AACH,+BAAgC,kBAAkB,CAAC;AACnD,iCAAkC,oBAAoB,CAAC;AACvD,qCAAsC,wBAAwB,CAAC;AAC/D,qCAAsC,wBAAwB,CAAC;AAE/D;;GAEG;AACH,kCAAmC,qBAAqB,CAAC;AACzD,kCAAmC,qBAAqB,CAAC;AACzD,gCAAiC,mBAAmB,CAAC;AAErD;;GAEG;AACH,kCAAmC,MAAM,CAAC;AAC1C,iCAAkC,KAAK,CAAC;AACxC,qCAAsC,SAAS,CAAC;AAChD,+BAAgC,kBAAkB,CAAC;AAEnD,qCAAsC,wBAAwB,CAAC;AAE/D,6BAA8B,gBAAgB,CAAC;AAE/C,kCAAmC,qBAAqB,CAAC;AAEzD;;GAEG;AACH,2BAA4B,cAAc,CAAC;AAC3C,2BAA4B,cAAc,CAAC;AAE3C;;GAEG;AAEH,4BAA6B,eAAe,CAAC;AAC7C,4BAA6B,eAAe,CAAC;AAC7C,0BAA2B,aAAa,CAAC;AACzC,4CAA6C,+BAA+B,CAAC;AAC7E,+BAAgC,kBAAkB,CAAC;AACnD,4BAA6B,eAAe,CAAC;AAE7C,6BAA8B,gBAAgB,CAAC;AAC/C,6BAA8B,gBAAgB,CAAC;AAC/C,2BAA4B,cAAc,CAAC;AAE3C,2BAA4B,cAAc,CAAC;AAC3C,2BAA4B,cAAc,CAAC;AAC3C,yBAA0B,YAAY,CAAC;AAEvC,qCAAsC,wBAAwB,CAAC;AAE/D;;GAEG;AACH,0BAA2B,aAAa,CAAC;AACzC,0BAA2B,aAAa,CAAC;AACzC,wBAAyB,WAAW,CAAC;AAErC;;GAEG;AACH,wBAAyB,WAAW,CAAC;AACrC,6BAA8B,gBAAgB,CAAC;AAE/C;;GAEG;AACH,uBAAwB,UAAU,CAAC;AACnC,+BAAgC,kBAAkB,CAAC;AACnD,8BAA+B,iBAAiB,CAAC;AACjD,+BAAgC,kBAAkB,CAAC;AACnD,8BAA+B,iBAAiB,CAAC;AACjD,+BAAgC,kBAAkB,CAAC;AACnD,mCAAoC,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
* This configuration collection key can be used to register a helper function to modify external
|
|
10
|
+
* image urls that are not delivered via the Shopgate CDN. The handler allows to add additional
|
|
11
|
+
* parameters to the image url to e.g. set resolution, format or quality.
|
|
12
|
+
*
|
|
13
|
+
* The handler function receives the source url and an object containing the options for the image.
|
|
14
|
+
* @param {string} src - The plain source URL of the image.
|
|
15
|
+
* @param {Object} options - An object containing parameters for the image.
|
|
16
|
+
* @param {number} options.width - The desired width of the image in pixels.
|
|
17
|
+
* @param {number} options.height - The desired height of the image in pixels.
|
|
18
|
+
* @param {string} options.fillColor - A hex color code to use as the background fill color.
|
|
19
|
+
* @param {number} options.quality - The quality of the image (e.g., for compression) as percentage.
|
|
20
|
+
* @param {string} options.format - The desired image format (e.g., 'jpeg', 'png').
|
|
21
|
+
* @returns {string|null|undefined} - The modified image URL.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* configuration.set(
|
|
25
|
+
* CONFIGURATION_COLLECTION_CREATE_EXTERNAL_IMAGE_URL,
|
|
26
|
+
* (baseUrl, { width } = {}) => {
|
|
27
|
+
* if (!baseUrl || !baseUrl.startsWith('https://mycdn.com')) {
|
|
28
|
+
* return null;
|
|
29
|
+
* }
|
|
30
|
+
* return `${baseUrl}?width=${width}`;
|
|
31
|
+
* }
|
|
32
|
+
* );
|
|
33
|
+
*/
|
|
34
|
+
export const CONFIGURATION_COLLECTION_CREATE_EXTERNAL_IMAGE_URL: "CONFIGURATION_COLLECTION_CREATE_EXTERNAL_IMAGE_URL";
|
|
35
|
+
export const CONFIGURATION_COLLECTION_KEY_THEME_TYPOGRAPHY: "CONFIGURATION_COLLECTION_KEY_THEME_TYPOGRAPHY";
|
|
36
|
+
/**
|
|
37
|
+
* Capability flag the PWA sets to signal that base typography is applied on the root (`<html>`)
|
|
38
|
+
* element rather than the legacy `<body>` element. Consumers can read it to adjust behavior
|
|
39
|
+
* accordingly. Absent on older PWAs.
|
|
40
|
+
*/
|
|
41
|
+
export const CONFIGURATION_COLLECTION_KEY_HAS_ROOT_TYPOGRAPHY: "CONFIGURATION_COLLECTION_KEY_HAS_ROOT_TYPOGRAPHY";
|
|
42
|
+
export const CONFIGURATION_COLLECTION_KEY_UNIVERSAL_LINK_HANDLER: "universalLinkHandler";
|
|
43
|
+
//# sourceMappingURL=Configuration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../constants/Configuration.js"],"names":[],"mappings":"AAAA,2BAA4B,cAAc,CAAC;AAC3C,iCAAkC,oBAAoB,CAAC;AACvD,4CAA6C,+BAA+B,CAAC;AAC7E,0CAA2C,6BAA6B,CAAC;AACzE,oDAAqD,uCAAuC,CAAC;AAC7F,wBAAyB,WAAW,CAAC;AACrC,4CAA6C,+BAA+B,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,iEACE,oDAAoD,CAAC;AAEvD,4DAA6D,+CAA+C,CAAC;AAE7G;;;;GAIG;AACH,+DAAgE,kDAAkD,CAAC;AAEnH,kEAAmE,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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: string[];
|
|
7
|
+
/**
|
|
8
|
+
* Page insets are device screen areas which can't be used to display content. Those come especially
|
|
9
|
+
* relevant on iOS devices with their status bar ot the iPhone notch at the top of the screen.
|
|
10
|
+
*/
|
|
11
|
+
export const PAGE_INSET_NAME_TOP: "safeAreaInsetTop";
|
|
12
|
+
export const PAGE_INSET_NAME_BOTTOM: "safeAreaInsetBottom";
|
|
13
|
+
export const PAGE_INSET_NAME_LEFT: "safeAreaInsetLeft";
|
|
14
|
+
export const PAGE_INSET_NAME_RIGHT: "safeAreaInsetRight";
|
|
15
|
+
export namespace PAGE_INSETS_ANDROID {
|
|
16
|
+
let safeAreaInsetTop: number;
|
|
17
|
+
let safeAreaInsetBottom: number;
|
|
18
|
+
let safeAreaInsetLeft: number;
|
|
19
|
+
let safeAreaInsetRight: number;
|
|
20
|
+
}
|
|
21
|
+
export namespace PAGE_INSETS_IOS {
|
|
22
|
+
let safeAreaInsetTop_1: number;
|
|
23
|
+
export { safeAreaInsetTop_1 as safeAreaInsetTop };
|
|
24
|
+
}
|
|
25
|
+
export namespace PAGE_INSETS_IPHONE_X {
|
|
26
|
+
let safeAreaInsetTop_2: number;
|
|
27
|
+
export { safeAreaInsetTop_2 as safeAreaInsetTop };
|
|
28
|
+
let safeAreaInsetBottom_1: number;
|
|
29
|
+
export { safeAreaInsetBottom_1 as safeAreaInsetBottom };
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=Device.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Device.d.ts","sourceRoot":"","sources":["../../constants/Device.js"],"names":[],"mappings":"AAAA,qBAAsB,KAAK,CAAC;AAC5B,yBAA0B,SAAS,CAAC;AACpC,qBAAsB,KAAK,CAAC;AAE5B,yBAA0B,OAAO,CAAC;AAClC,0BAA2B,QAAQ,CAAC;AAEpC,4CAOE;AAEF;;;GAGG;AAEH,kCAAmC,kBAAkB,CAAC;AACtD,qCAAsC,qBAAqB,CAAC;AAC5D,mCAAoC,mBAAmB,CAAC;AACxD,oCAAqC,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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: "relevance";
|
|
8
|
+
export const ITEMS_PER_LOAD: 32;
|
|
9
|
+
//# sourceMappingURL=DisplayOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DisplayOptions.d.ts","sourceRoot":"","sources":["../../constants/DisplayOptions.js"],"names":[],"mappings":"AAAA,6BAA8B,WAAW,CAAC;AAC1C,6BAA8B,UAAU,CAAC;AACzC,8BAA+B,WAAW,CAAC;AAC3C,4BAA6B,SAAS,CAAC;AACvC,6BAA8B,UAAU,CAAC;AACzC,0BAA2B,QAAQ,CAAC;AACpC,uCAA2C;AAC3C,6BAA8B,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuIDs.d.ts","sourceRoot":"","sources":["../../constants/MenuIDs.js"],"names":[],"mappings":"AAAA,8BAA+B,YAAY,CAAC;AAC5C,yBAA0B,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalTypes.d.ts","sourceRoot":"","sources":["../../constants/ModalTypes.js"],"names":[],"mappings":"AAAA,mCAAoC,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageIDs.d.ts","sourceRoot":"","sources":["../../constants/PageIDs.js"],"names":[],"mappings":"AAAA,4BAA6B,OAAO,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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";
|
|
8
|
+
//# sourceMappingURL=Pipelines.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pipelines.d.ts","sourceRoot":"","sources":["../../constants/Pipelines.js"],"names":[],"mappings":"AAAA,oCAAqC,sBAAsB,CAAC;AAC5D,2CAA4C,4BAA4B,CAAC;AACzE,iDAAkD,kCAAkC,CAAC;AACrF,qCAAsC,uBAAuB,CAAC;AAC9D,uCAAwC,yBAAyB,CAAC;AAClE,wCAAyC,0BAA0B,CAAC;AACpE,4CAA6C,8BAA8B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Registration.d.ts","sourceRoot":"","sources":["../../constants/Registration.js"],"names":[],"mappings":"AAAA,yBAA0B,kBAAkB,CAAC;AAC7C,0CAA2C,mBAAmB,CAAC;AAC/D,gCAAiC,UAAU,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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/:pageId";
|
|
10
|
+
/**
|
|
11
|
+
* Our current existing Deeplinks and Push Messages use '/index' for the homepage
|
|
12
|
+
* @type {string}
|
|
13
|
+
*/
|
|
14
|
+
export const INDEX_PATH_DEEPLINK: string;
|
|
15
|
+
//# sourceMappingURL=RoutePaths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RoutePaths.d.ts","sourceRoot":"","sources":["../../constants/RoutePaths.js"],"names":[],"mappings":"AAAA,yBAA0B,GAAG,CAAC;AAC9B,wBAAyB,OAAO,CAAC;AACjC,yBAA0B,QAAQ,CAAC;AACnC,4BAA6B,WAAW,CAAC;AACzC,4BAA6B,WAAW,CAAC;AACzC,0BAA2B,SAAS,CAAC;AACrC,2BAA4B,UAAU,CAAC;AACvC,8BAA+B,eAAe,CAAC;AAE/C,2CAAmD;AAEnD;;;GAGG;AACH,kCAFU,MAAM,CAE4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tracking.d.ts","sourceRoot":"","sources":["../../constants/Tracking.js"],"names":[],"mappings":"AAAA,kCAAmC,KAAK,CAAC;AACzC,mCAAoC,MAAM,CAAC;AAC3C,8CAA+C,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
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";
|
|
7
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../constants/client.js"],"names":[],"mappings":"AAAA,2CAA4C,SAAS,CAAC;AACtD,wCAAyC,SAAS,CAAC;AACnD,qCAAsC,MAAM,CAAC;AAC7C,mCAAoC,IAAI,CAAC;AACzC,mCAAoC,IAAI,CAAC;AACzC,mCAAoC,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../constants/ui.js"],"names":[],"mappings":"AAAA,kCAAmC,qBAAqB,CAAC;AACzD,mCAAoC,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
/**
|
|
5
|
+
* Defines the interval to check if an expirable session is expired
|
|
6
|
+
*/
|
|
7
|
+
export const SESSION_EXPIRY_CHECK_INTERVAL: number;
|
|
8
|
+
//# sourceMappingURL=user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../constants/user.js"],"names":[],"mappings":"AAAA,qCAAsC,OAAO,CAAC;AAC9C,+CAAgD,kBAAkB,CAAC;AACnE,qCAAsC,wBAAwB,CAAC;AAC/D;;GAEG;AACH,mDAAuD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deep compares two objects.
|
|
3
|
+
* @param {Object} input1 The first object.
|
|
4
|
+
* @param {Object} input2 The second object.
|
|
5
|
+
* @return {boolean}
|
|
6
|
+
*/
|
|
7
|
+
export function compareObjects(input1: Object, input2: Object): boolean;
|
|
8
|
+
//# sourceMappingURL=compareObjects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compareObjects.d.ts","sourceRoot":"","sources":["../../../helpers/redux/compareObjects.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,uCAJW,MAAM,UACN,MAAM,GACL,OAAO,CAIlB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generates a hash for product collection results.
|
|
3
|
+
* @param {Object} params The request parameters.
|
|
4
|
+
* @param {boolean} [includeSort=true] Whether to include the sorting in the hash.
|
|
5
|
+
* @param {boolean} [includeFilters=true] Whether to include the filters in the hash.
|
|
6
|
+
* @param {string} [defaultSort=null] A default value for the sort parameter
|
|
7
|
+
* @return {string} The generated hash.
|
|
8
|
+
*/
|
|
9
|
+
export function generateResultHash(params: Object, includeSort?: boolean, includeFilters?: boolean, defaultSort?: string): string;
|
|
10
|
+
//# sourceMappingURL=generateResultHash.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateResultHash.d.ts","sourceRoot":"","sources":["../../../helpers/redux/generateResultHash.js"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,2CANW,MAAM,gBACN,OAAO,mBACP,OAAO,gBACP,MAAM,GACL,MAAM,CAsCjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateSortedHash.d.ts","sourceRoot":"","sources":["../../../helpers/redux/generateSortedHash.js"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,0CAHW,MAAM,GACL,MAAM,CAIjB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Determines if an item has expired and therefore should fetch or re-fetch it's data.
|
|
3
|
+
* @param {Object} item The item to determine if it has expired.
|
|
4
|
+
* @return {boolean}
|
|
5
|
+
*/
|
|
6
|
+
export function hasExpired(item: Object): boolean;
|
|
7
|
+
//# sourceMappingURL=hasExpired.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hasExpired.d.ts","sourceRoot":"","sources":["../../../helpers/redux/hasExpired.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,iCAHW,MAAM,GACL,OAAO,CAWlB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { hasExpired } from "./hasExpired";
|
|
2
|
+
export { shouldFetchData } from "./shouldFetchData";
|
|
3
|
+
export { shouldFetchFilters } from "./shouldFetchFilters";
|
|
4
|
+
export { compareObjects } from "./compareObjects";
|
|
5
|
+
export { generateSortedHash } from "./generateSortedHash";
|
|
6
|
+
export { generateResultHash } from "./generateResultHash";
|
|
7
|
+
export { mutable, mutableActions } from "./mutable";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../helpers/redux/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines parameters to be used by the next step or mutable function.
|
|
3
|
+
* @param {*} args Transforms an argument list to be consumed by the next step or
|
|
4
|
+
* @returns {Object}
|
|
5
|
+
*/
|
|
6
|
+
export function next(...args: any): Object;
|
|
7
|
+
/**
|
|
8
|
+
* Causes the stack to skip forward to processing the mutable using the given arguments.
|
|
9
|
+
* @param {*} [args] A number of arguments to be passed to the mutable. This is optional.
|
|
10
|
+
* @returns {Object}
|
|
11
|
+
*/
|
|
12
|
+
export function skipRest(...args?: any): Object;
|
|
13
|
+
/**
|
|
14
|
+
* Causes the stack to stop processing any further actions. On stop only one return value possible.
|
|
15
|
+
* @param {*} [arg] Optional final result value.
|
|
16
|
+
* @returns {Object}
|
|
17
|
+
*/
|
|
18
|
+
export function stop(arg?: any): Object;
|
|
19
|
+
/**
|
|
20
|
+
* Public api export
|
|
21
|
+
* @type {{next: Function, stop: Function, skipRest: Function}}
|
|
22
|
+
*/
|
|
23
|
+
export const mutableActions: {
|
|
24
|
+
next: Function;
|
|
25
|
+
stop: Function;
|
|
26
|
+
skipRest: Function;
|
|
27
|
+
};
|
|
28
|
+
export function mutable<T extends Function>(func: T): T;
|
|
29
|
+
export type MutableFunction = {
|
|
30
|
+
/**
|
|
31
|
+
* Replaces the original functionality with a custom function.
|
|
32
|
+
*/
|
|
33
|
+
replace: Function;
|
|
34
|
+
/**
|
|
35
|
+
* Restores the original function.
|
|
36
|
+
*/
|
|
37
|
+
restore: Function;
|
|
38
|
+
/**
|
|
39
|
+
* Restores the original function and removes all pre-processes steps.
|
|
40
|
+
*/
|
|
41
|
+
reset: Function;
|
|
42
|
+
/**
|
|
43
|
+
* Adds a pre-processing step func.
|
|
44
|
+
*/
|
|
45
|
+
useBefore: Function;
|
|
46
|
+
/**
|
|
47
|
+
* Original function
|
|
48
|
+
*/
|
|
49
|
+
original: Function;
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=mutable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutable.d.ts","sourceRoot":"","sources":["../../../helpers/redux/mutable.js"],"names":[],"mappings":"AAgBA;;;;GAIG;AACH,8BAHW,GAAC,GACC,MAAM,CAOlB;AAED;;;;GAIG;AACH,mCAHW,GAAC,GACC,MAAM,CAOlB;AAED;;;;GAIG;AACH,2BAHW,GAAC,GACC,MAAM,CAOlB;AAED;;;GAGG;AACH,6BAFU;IAAC,IAAI,WAAW;IAAC,IAAI,WAAW;IAAC,QAAQ,WAAU;CAAC,CAM5D;AAQK,wBAJiB,CAAC,SAAZ,QAAU,QACZ,CAAC,GACC,CAAC,CA+Gb"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if an item can be fetched or (only when the itemKey parameter is set) if there is a
|
|
3
|
+
* certain key inside the item that is filled with data.
|
|
4
|
+
* @param {Object} item The item to check.
|
|
5
|
+
* @param {string} [itemKey=null] A key of a property to check additionally.
|
|
6
|
+
* @param {string} [requiredCount=null] The number of required products that should be in the store.
|
|
7
|
+
* @return {boolean} Whether it can be fetched.
|
|
8
|
+
*/
|
|
9
|
+
export function shouldFetchData(item: Object, itemKey?: string, requiredCount?: string): boolean;
|
|
10
|
+
//# sourceMappingURL=shouldFetchData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shouldFetchData.d.ts","sourceRoot":"","sources":["../../../helpers/redux/shouldFetchData.js"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,sCALW,MAAM,YACN,MAAM,kBACN,MAAM,GACL,OAAO,CA4ClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shouldFetchFilters.d.ts","sourceRoot":"","sources":["../../../helpers/redux/shouldFetchFilters.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,yCAHW,MAAM,GACJ,OAAO,CAcnB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopgate/pwa-common",
|
|
3
|
-
"version": "7.33.2
|
|
3
|
+
"version": "7.33.2",
|
|
4
4
|
"description": "Common library for the Shopgate Connect PWA.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Shopgate <support@shopgate.com>",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"swiper": "12.2.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@shopgate/pwa-core": "7.33.2
|
|
46
|
+
"@shopgate/pwa-core": "7.33.2",
|
|
47
47
|
"@types/lodash": "^4.17.25",
|
|
48
48
|
"@types/react-portal": "^3.0.9",
|
|
49
49
|
"lodash": "^4.18.1",
|