@shopgate/pwa-tracking 7.30.0 → 7.30.1-beta.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/package.json +5 -5
- package/selectors/index.js +2 -3
- package/selectors/page.js +0 -1
- package/selectors/user.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopgate/pwa-tracking",
|
|
3
|
-
"version": "7.30.
|
|
3
|
+
"version": "7.30.1-beta.2",
|
|
4
4
|
"description": "Tracking library for the Shopgate Connect PWA.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Shopgate <support@shopgate.com>",
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"connect"
|
|
16
16
|
],
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@shopgate/pwa-common": "7.30.
|
|
19
|
-
"@shopgate/pwa-common-commerce": "7.30.
|
|
20
|
-
"@shopgate/pwa-core": "7.30.
|
|
21
|
-
"@shopgate/tracking-core": "7.30.
|
|
18
|
+
"@shopgate/pwa-common": "7.30.1-beta.2",
|
|
19
|
+
"@shopgate/pwa-common-commerce": "7.30.1-beta.2",
|
|
20
|
+
"@shopgate/pwa-core": "7.30.1-beta.2",
|
|
21
|
+
"@shopgate/tracking-core": "7.30.1-beta.2",
|
|
22
22
|
"reselect": "^4.1.8",
|
|
23
23
|
"rxjs": "~5.5.12"
|
|
24
24
|
}
|
package/selectors/index.js
CHANGED
|
@@ -21,14 +21,13 @@ export const makeGetTrackingData = () => {
|
|
|
21
21
|
* @param {Object} state The current state.
|
|
22
22
|
* @returns {Object} The tracking data.
|
|
23
23
|
*/
|
|
24
|
-
return createSelector(getPage, getCart, getFavorites, getSearch, getRouteCategory, getRouteProduct, getRoutePageConfig, (
|
|
24
|
+
return createSelector(getPage, getCart, getFavorites, getSearch, getRouteCategory, getRouteProduct, getRoutePageConfig, (page, cart, favorites, search, category, product, pageConfig) => createPageviewData({
|
|
25
25
|
page,
|
|
26
26
|
cart,
|
|
27
27
|
favorites,
|
|
28
28
|
search,
|
|
29
29
|
category,
|
|
30
30
|
product,
|
|
31
|
-
pageConfig
|
|
32
|
-
pattern
|
|
31
|
+
pageConfig
|
|
33
32
|
}));
|
|
34
33
|
};
|
package/selectors/page.js
CHANGED
|
@@ -44,7 +44,6 @@ const getPageTrackingName = createSelector(getPageName, pageName => pageNameMap[
|
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* Creates a selector that retrieves a page config for the current route from the store.
|
|
47
|
-
* @param {string} name The name of the desired parameter.
|
|
48
47
|
* @returns {Function}
|
|
49
48
|
*/
|
|
50
49
|
export const makeGetRoutePageConfig = () => {
|
package/selectors/user.js
CHANGED
|
@@ -3,7 +3,6 @@ import { DEFAULT_LOGIN_STRATEGY, isUserLoggedIn, getUserData, makeGetLoginStrate
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Creates a selector that retrieves user tracking data from the store.
|
|
6
|
-
* @param {string} name The name of the desired parameter.
|
|
7
6
|
* @returns {Function}
|
|
8
7
|
*/
|
|
9
8
|
export function makeGetUser() {
|