@jetshop/core 5.15.0-alpha.e06a819a → 5.15.0-minor.207cf934
Sign up to get free protection for your applications and to get access to all the features.
- package/ChannelHandler/channelUtils.js +0 -4
- package/ChannelHandler/channelUtils.js.map +1 -1
- package/analytics/AnalyticsProvider.js +10 -1
- package/analytics/AnalyticsProvider.js.map +1 -1
- package/analytics/integrations/ga4.js +27 -19
- package/analytics/integrations/ga4.js.map +1 -1
- package/analytics/integrations/gtm/index.js +33 -21
- package/analytics/integrations/gtm/index.js.map +1 -1
- package/analytics/trackerRegistry.d.ts +1 -0
- package/analytics/trackerRegistry.js +2 -1
- package/analytics/trackerRegistry.js.map +1 -1
- package/boot/apollo.js +2 -2
- package/boot/apollo.js.map +1 -1
- package/boot/client/startClient.js +0 -5
- package/boot/client/startClient.js.map +1 -1
- package/boot/server/createRenderer.js +0 -1
- package/boot/server/createRenderer.js.map +1 -1
- package/components/ChannelContext/ChannelContext.d.ts +1 -1
- package/components/ChannelContext/ChannelContext.js.map +1 -1
- package/components/DynamicRoute/ProductRoute.js +9 -2
- package/components/DynamicRoute/ProductRoute.js.map +1 -1
- package/components/DynamicRoute/RouteResolver.d.ts +1 -1
- package/hooks/ProductList/list-transforms.d.ts +2 -0
- package/hooks/useChannels.d.ts +1 -0
- package/hooks/useChannels.js +10 -0
- package/hooks/useChannels.js.map +1 -0
- package/hooks/useCustomerOrders.test.js +5 -5
- package/package.json +2 -2
- package/types.d.ts +29 -3
@@ -259,10 +259,6 @@ export function getSelectedAndRecommendedChannel({ url, singleDomainMode, channe
|
|
259
259
|
redirect = true;
|
260
260
|
pureRecommendedChannel = pureChannel;
|
261
261
|
}
|
262
|
-
console.log({ chosenChannel });
|
263
|
-
console.log(getSelectedAndRecommendedChannel, {
|
264
|
-
redirect: !disableGeoRedirect && !chosenChannel
|
265
|
-
});
|
266
262
|
// disable all redirects if either redirectDisabled or articlenumber (product previews) is in the query string
|
267
263
|
const { redirectDisabled, articlenumber } = getQueryObject(url);
|
268
264
|
if (redirectDisabled || articlen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SACnB;QACH,CAAC,CAAC,EAAE,CAAC;AACT,CAAC"}
|
@@ -109,7 +109,7 @@ const AnalyticsProvider = function AnalyticsProvider(props) {
|
|
109
109
|
useArticleNumberAsId: gtag.useArticleNumberAsId
|
110
110
|
}));
|
111
111
|
}
|
112
|
-
else {
|
112
|
+
else if (gtag === null || gtag === void 0 ? void 0 : gtag.trackingId) {
|
113
113
|
registry.add(gtagTracker({
|
114
114
|
currency: selectedChannel.currency.format.code,
|
115
115
|
trackingId: gtag.trackingId,
|
@@ -130,6 +130,15 @@ const AnalyticsProvider = function AnalyticsProvider(props) {
|
|
130
130
|
brandCustomField: shopConfig.brandCustomField,
|
131
131
|
useArticleNumberAsId
|
132
132
|
}));
|
133
|
+
if (!registry.trackers().some((tracker) => tracker.name === 'gtag')) {
|
134
|
+
registry.add(gtagTracker({
|
135
|
+
currency: selectedChannel.currency.format.code,
|
136
|
+
trackingId: gtm.containerId,
|
137
|
+
additionalGtagTrackingIds: [],
|
138
|
+
brandCustomField: shopConfig.brandCustomField,
|
139
|
+
useArticleNumberAsId
|
140
|
+
}));
|
141
|
+
}
|
133
142
|
}
|
134
143
|
if (shopConfig.trackers) {
|
135
144
|
shopConfig.trackers.forEach((tracker) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AnalyticsProvider.js","sourceRoot":"","sources":["AnalyticsProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAW,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAG1D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,yB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AAW,EAAE,EAAE,EAAE,CAAC,CAC9C,4CACE,GAAG,EAAC,YAAY,EAChB,IAAI,EAAE,IAAI,IACN,CAAC,WAAW,IAAI,EAAE,WAAW,EAAE,CAAC,IACpC,GAAG,EAAE,IAAI,IACT,CACH,CAAC,CACK;QACR,KAAK,CAAC,QAAQ,CACW,CAC7B,CAAC;AACJ,CAAC,CAAC;AAEJ,SAAS,qBAAqB;IAC5B,IAAI,OAAO,MAAM,KAAK,WAAW;QAAE,OAAO,KAAK,CAAC;IAEhD,MAAM,GAAG,GACN,MAAc,CAAC,UAAU;QAC1B,SAAS,CAAC,UAAU;QACpB,8BAA8B;QAC7B,SAAyB,CAAC,YAAY,CAAC;IAE1C,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,KAAK,EAAE;QAChC,OAAO,KAAK,CAAC;KACd;IAED,qBAAqB;IACrB,IAAI,MAAM,CAAC,QAAQ,IAAI,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE;QACpD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,2BAA2B,EAAE,CAAC;KACvD;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,eAAe,iBAAiB,CAAC"}
|
@@ -48,7 +48,7 @@ export function ga4Tracker({ trackingId, additionalGtagTrackingIds = [], currenc
|
|
48
48
|
injectScript({ src: script });
|
49
49
|
gtag();
|
50
50
|
},
|
51
|
-
trackProduct({ quantity, action, product, selectedVariation, list, listName, index, category }, context) {
|
51
|
+
trackProduct({ quantity, action, product, selectedVariation, list, listName, index, category }, context, eventId) {
|
52
52
|
const productItem = Object.assign(Object.assign({}, productToItem(product, selectedVariation, useArticleNumberAsId, brandCustomField, category)), { quantity, item_list_name: list || listName || context.list, index: index });
|
53
53
|
switch (action) {
|
54
54
|
case 'click':
|
@@ -56,28 +56,32 @@ export function ga4Tracker({ trackingId, additionalGtagTrackingIds = [], currenc
|
|
56
56
|
content_type: 'product',
|
57
57
|
currency,
|
58
58
|
value: product.price.incVat,
|
59
|
-
items: [productItem]
|
59
|
+
items: [productItem],
|
60
|
+
eventId
|
60
61
|
});
|
61
62
|
break;
|
62
63
|
case 'view':
|
63
64
|
gtag()('event', 'view_item', {
|
64
65
|
currency,
|
65
66
|
value: product.price.incVat,
|
66
|
-
items: [productItem]
|
67
|
+
items: [productItem],
|
68
|
+
eventId
|
67
69
|
});
|
68
70
|
break;
|
69
71
|
case 'add':
|
70
72
|
gtag()('event', 'add_to_cart', {
|
71
73
|
currency,
|
72
74
|
value: product.price.incVat,
|
73
|
-
items: [productItem]
|
75
|
+
items: [productItem],
|
76
|
+
eventId
|
74
77
|
});
|
75
78
|
break;
|
76
79
|
case 'remove':
|
77
80
|
gtag()('event', 'remove_from_cart', {
|
78
81
|
currency,
|
79
82
|
value: product.price.incVat,
|
80
|
-
items: [productItem]
|
83
|
+
items: [productItem],
|
84
|
+
eventId
|
81
85
|
});
|
82
86
|
break;
|
83
87
|
default:
|
@@ -102,14 +106,15 @@ export function ga4Tracker({ trackingId, additionalGtagTrackingIds = [], currenc
|
|
102
106
|
// items
|
103
107
|
// });
|
104
108
|
// },
|
105
|
-
trackPageView({ pathname, title }, _context) {
|
109
|
+
trackPageView({ pathname, title }, _context, eventId) {
|
106
110
|
gtag()('event', 'page_view', {
|
107
111
|
currency,
|
108
112
|
page_path: pathname,
|
109
|
-
page_title: title
|
113
|
+
page_title: title,
|
114
|
+
eventId
|
110
115
|
});
|
111
116
|
},
|
112
|
-
trackList({ listName, products, category }, _context) {
|
117
|
+
trackList({ listName, products, category }, _context, eventId) {
|
113
118
|
const items = products.map((product, i) => {
|
114
119
|
var _a;
|
115
120
|
return (Object.assign(Object.assign({}, productToItem(product, null, useArticleNumberAsId, brandCustomField)), { price: (_a = product.price) === null || _a === void 0 ? void 0 : _a.incVat, item_list_name: listName, index: i }));
|
@@ -117,27 +122,30 @@ export function ga4Tracker({ trackingId, additionalGtagTrackingIds = [], currenc
|
|
117
122
|
gtag()('event', 'view_item_list', {
|
118
123
|
item_list_id: category,
|
119
124
|
item_list_name: listName,
|
120
|
-
items
|
125
|
+
items,
|
126
|
+
eventId
|
121
127
|
});
|
122
128
|
},
|
123
|
-
trackExperiment({ id, variant }, _context) {
|
129
|
+
trackExperiment({ id, variant }, _context, eventId) {
|
124
130
|
gtag()('config', trackingId, {
|
125
|
-
experiments: [{ id, variant }]
|
131
|
+
experiments: [{ id, variant }],
|
132
|
+
eventId
|
126
133
|
});
|
127
134
|
},
|
128
|
-
trackUser({ userId }, _context) {
|
129
|
-
gtag()('event', 'authentication', { user_id: userId });
|
135
|
+
trackUser({ userId }, _context, eventId) {
|
136
|
+
gtag()('event', 'authentication', { user_id: userId, eventId });
|
130
137
|
},
|
131
|
-
trackLogin(_props, _context) {
|
132
|
-
gtag()('event', 'login', { trackingId });
|
138
|
+
trackLogin(_props, _context, eventId) {
|
139
|
+
gtag()('event', 'login', { trackingId, eventId });
|
133
140
|
},
|
134
|
-
trackRegister(_props, _context) {
|
135
|
-
gtag()('event', 'sign_up', { trackingId });
|
141
|
+
trackRegister(_props, _context, eventId) {
|
142
|
+
gtag()('event', 'sign_up', { trackingId, eventId });
|
136
143
|
},
|
137
|
-
trackAddToWishList({ articleNumber, productName }, _context) {
|
144
|
+
trackAddToWishList({ articleNumber, productName }, _context, eventId) {
|
138
145
|
gtag()('event', 'add_to_wishlist', {
|
139
146
|
articleNumber,
|
140
|
-
productName
|
147
|
+
productName,
|
148
|
+
eventId
|
141
149
|
});
|
142
150
|
}
|
143
151
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ga4.js","sourceRoot":"","sources":["ga4.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,MAAM,yDAAyD,CAAC;AAEnF,MAAM,IAAI,GAAG,GAAG,EAAE,CAAE,MAAc,CAAC,IAAI,CAAC;AAkBxC,SAAS,aAAa,CACpB,OAAgB,EAChB,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O,EAAE,CAAC,CAAC;QAClE,CAAC;QACD,UAAU,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO;YAClC,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;QACpD,CAAC;QACD,aAAa,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO;YACrC,IAAI,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;QACtD,CAAC;QACD,kBAAkB,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,QAAQ,EAAE,OAAO;YAClE,IAAI,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE;gBACjC,aAAa;gBACb,WAAW;gBACX,OAAO;aACR,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
|
@@ -56,7 +56,7 @@ export const gtmTracker = ({ containerId, currency, useArticleNumberAsId = false
|
|
56
56
|
});
|
57
57
|
injectScript({ src: script });
|
58
58
|
},
|
59
|
-
trackProduct({ quantity, action, product, selectedVariation, list, listName, index, category }, context) {
|
59
|
+
trackProduct({ quantity, action, product, selectedVariation, list, listName, index, category }, context, eventId) {
|
60
60
|
const productData = Object.assign(Object.assign({}, getProductData({
|
61
61
|
product,
|
62
62
|
selectedVariation,
|
@@ -75,7 +75,8 @@ export const gtmTracker = ({ containerId, currency, useArticleNumberAsId = false
|
|
75
75
|
actionField: { list: list || listName || context.list },
|
76
76
|
products: [productData]
|
77
77
|
}
|
78
|
-
}
|
78
|
+
},
|
79
|
+
eventId
|
79
80
|
});
|
80
81
|
break;
|
81
82
|
case 'view':
|
@@ -86,7 +87,8 @@ export const gtmTracker = ({ containerId, currency, useArticleNumberAsId = false
|
|
86
87
|
detail: {
|
87
88
|
products: [productData]
|
88
89
|
}
|
89
|
-
}
|
90
|
+
},
|
91
|
+
eventId
|
90
92
|
});
|
91
93
|
break;
|
92
94
|
case 'add':
|
@@ -101,7 +103,8 @@ export const gtmTracker = ({ containerId, currency, useArticleNumberAsId = false
|
|
101
103
|
add: {
|
102
104
|
products: [productData]
|
103
105
|
}
|
104
|
-
}
|
106
|
+
},
|
107
|
+
eventId
|
105
108
|
});
|
106
109
|
break;
|
107
110
|
case 'remove':
|
@@ -114,7 +117,8 @@ export const gtmTracker = ({ containerId, currency, useArticleNumberAsId = false
|
|
114
117
|
remove: {
|
115
118
|
products: [productData]
|
116
119
|
}
|
117
|
-
}
|
120
|
+
},
|
121
|
+
eventId
|
118
122
|
});
|
119
123
|
break;
|
120
124
|
default:
|
@@ -122,7 +126,7 @@ export const gtmTracker = ({ containerId, currency, useArticleNumberAsId = false
|
|
122
126
|
break;
|
123
127
|
}
|
124
128
|
},
|
125
|
-
trackCartCheckout({ cart }) {
|
129
|
+
trackCartCheckout({ cart }, _, eventId) {
|
126
130
|
const items = cart.items.map((item) => {
|
127
131
|
var _a, _b, _c;
|
128
132
|
return (Object.assign(Object.assign({}, getProductData({
|
@@ -139,17 +143,19 @@ export const gtmTracker = ({ containerId, currency, useArticleNumberAsId = false
|
|
139
143
|
event: 'checkout',
|
140
144
|
ecommerce: {
|
141
145
|
products: items
|
142
|
-
}
|
146
|
+
},
|
147
|
+
eventId
|
143
148
|
});
|
144
149
|
},
|
145
|
-
trackPageView({ pathname, title }) {
|
150
|
+
trackPageView({ pathname, title }, _, eventId) {
|
146
151
|
push({
|
147
152
|
event: 'pageView',
|
148
153
|
pagePath: pathname,
|
149
|
-
pageTitle: title
|
154
|
+
pageTitle: title,
|
155
|
+
eventId
|
150
156
|
});
|
151
157
|
},
|
152
|
-
trackList({ listName, products, category }) {
|
158
|
+
trackList({ listName, products, category }, _, eventId) {
|
153
159
|
const productData = products.map((product, i) => {
|
154
160
|
var _a, _b, _c, _d;
|
155
161
|
return (Object.assign(Object.assign({}, getProductData({
|
@@ -167,34 +173,40 @@ export const gtmTracker = ({ containerId, currency, useArticleNumberAsId = false
|
|
167
173
|
ecommerce: {
|
168
174
|
currencyCode: currency,
|
169
175
|
impressions: productData
|
170
|
-
}
|
176
|
+
},
|
177
|
+
eventId
|
171
178
|
});
|
172
179
|
},
|
173
|
-
trackExperiment({ id, variant }) {
|
180
|
+
trackExperiment({ id, variant }, _, eventId) {
|
174
181
|
push({
|
175
|
-
experiment: `${id}.${variant}
|
182
|
+
experiment: `${id}.${variant}`,
|
183
|
+
eventId
|
176
184
|
});
|
177
185
|
},
|
178
|
-
trackUser({ userId }) {
|
186
|
+
trackUser({ userId }, _, eventId) {
|
179
187
|
push({
|
180
|
-
userId
|
188
|
+
userId,
|
189
|
+
eventId
|
181
190
|
});
|
182
191
|
},
|
183
|
-
trackLogin() {
|
192
|
+
trackLogin(_, __, eventId) {
|
184
193
|
push({
|
185
|
-
event: 'login'
|
194
|
+
event: 'login',
|
195
|
+
eventId
|
186
196
|
});
|
187
197
|
},
|
188
|
-
trackRegister() {
|
198
|
+
trackRegister(_, __, eventId) {
|
189
199
|
push({
|
190
|
-
event: 'register'
|
200
|
+
event: 'register',
|
201
|
+
eventId
|
191
202
|
});
|
192
203
|
},
|
193
|
-
trackAddToWishList({ articleNumber, productName }) {
|
204
|
+
trackAddToWishList({ articleNumber, productName }, _, eventId) {
|
194
205
|
push({
|
195
206
|
event: 'addToWishlist',
|
196
207
|
articleNumber,
|
197
|
-
productName
|
208
|
+
productName,
|
209
|
+
eventId
|
198
210
|
});
|
199
211
|
}
|
200
212
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,QAAQ,EAAE,MAAM,yDAAyD,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAOlF,SAAS,IAAI,CAAC,KAA0B;IACtC,IAAI,MAA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,CAAC,CAAC;IACL,CAAC;IACD,SAAS,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,OAAO;QAC9B,IAAI,CAAC;YACH,MAAM;YACN,OAAO;SACR,CAAC,CAAC;IACL,CAAC;IACD,UAAU,CAAC,CAAC,EAAE,EAAE,EAAE,OAAO;QACvB,IAAI,CAAC;YACH,KAAK,EAAE,OAAO;YACd,OAAO;SACR,CAAC,CAAC;IACL,CAAC;IACD,aAAa,CAAC,CAAC,EAAE,EAAE,EAAE,OAAO;QAC1B,IAAI,CAAC;YACH,KAAK,EAAE,UAAU;YACjB,OAAO;SACR,CAAC,CAAC;IACL,CAAC;IACD,kBAAkB,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,CAAC,EAAE,OAAO;QAC3D,IAAI,CAAC;YACH,KAAK,EAAE,eAAe;YACtB,aAAa;YACb,WAAW;YACX,OAAO;SACR,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"trackerRegistry.js","sourceRoot":"","sources":["trackerRegistry.ts"],"names":[],"mappings":";;;;;;;;;AAEA,OAAO,aAAa,MAAM,eAAe,CAAC;AAmI1C,MAAM,CAAC,MAAM,cAAc,GAAiC;IAC1D,cAAc;IACd,mBAAmB;IACnB,WAAW;IACX,WAAW;IACX,eAAe;IACf,iBAAiB;IACjB,WAAW;IACX,YAAY;IACZ,eAAe;IACf,oBAAoB;CACrB,CAAC;
|
1
|
+
{"version":3,"file":"trackerRegistry.js","sourceRoot":"","sources":["trackerRegistry.ts"],"names":[],"mappings":";;;;;;;;;AAEA,OAAO,aAAa,MAAM,eAAe,CAAC;AAmI1C,MAAM,CAAC,MAAM,cAAc,GAAiC;IAC1D,cAAc;IACd,mBAAmB;IACnB,WAAW;IACX,WAAW;IACX,eAAe;IACf,iBAAiB;IACjB,WAAW;IACX,YAAY;IACZ,eAAe;IACf,oBAAoB;CACrB,CAAC;AA6BF,MAAM,UAA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ient = ({ apolloConfig: { token, shopid, enableGateway, gra
|
|
115
115
|
return forward ? forward(operation) : null;
|
116
116
|
});
|
117
117
|
const errorMiddleware = onError((_a) => {
|
118
|
-
var _b
|
118
|
+
var _b;
|
119
119
|
var { graphQLErrors, networkError, operation } = _a, rest = __rest(_a, ["graphQLErrors", "networkError", "operation"]);
|
120
120
|
if (graphQLErrors) {
|
121
121
|
graphQLErrors.forEach((error) => {
|
@@ -151,7 +151,7 @@ export const createClient = ({ apolloConfig: { token, shopid, enableGateway, gra
|
|
151
151
|
}
|
152
152
|
// 503
|
153
153
|
if (networkError) {
|
154
|
-
const errors = (
|
154
|
+
const errors = (_b = networkError === null || networkError === void 0 ? void 0 : networkError.result) === null || _b === void 0 ? void 0 : _b.Errors;
|
155
155
|
if (errors) {
|
156
156
|
errors.forEach((error) => {
|
157
157
|
if ((error === null || error === void 0 ? void 0 : error.Message) === 'Token has expired') {
|
package/boot/apollo.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"apollo.js","sourceRoot":"","sources":["apollo.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAE3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,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AAC,CAAC"}
|
@@ -90,11 +90,6 @@ const startClient = (tree, config) => {
|
|
90
90
|
geoipCountry,
|
91
91
|
acceptedLanguages
|
92
92
|
});
|
93
|
-
console.log({
|
94
|
-
geoipCountry,
|
95
|
-
recommendedChannel,
|
96
|
-
locationHref: window.location.href
|
97
|
-
});
|
98
93
|
channelHandler.setSelectedChannel(selectedChannel);
|
99
94
|
channelHandler.setRecommendedChannel(recommendedChannel);
|
100
95
|
channelHandler.setChannels(channels);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"startClient.js","sourceRoot":"","sources":["startClient.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,KAAuB,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,gCAAgC,EAAE,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAErE,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,aAAa,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,iBAAi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C,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;KAC5D;AACH,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
@@ -151,7 +151,6 @@ const createRenderer = (template, tree, options) => {
|
|
151
151
|
preserveRedirect: true,
|
152
152
|
routes: options.routes
|
153
153
|
});
|
154
|
-
console.log({ redirect, redirectUrl, url: fullUrl });
|
155
154
|
return res.redirect(302, redirectUrl);
|
156
155
|
}
|
157
156
|
const persistedQueries = yield ((_a = getPersistedQueriesForRequest(persistedQueryClients, createClientOpts)) === null || _a === void 0 ? void 0 : _a.extractCache());
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createRenderer.js","sourceRoot":"","sources":["createRenderer.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAIhD,OAAO,KAAuB,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,iBAAiB,MAAM,2BAA2B,CAAC;AAE1D,OAAO,uBAAuB,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM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C,QAAQ,EAAE;SAC1C,CAAC;QAEF,MAAM,IAAI,GAAG,mBAAmB,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QACjD,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;QAEvD,aAAa,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;QACzC,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC;QACvC,WAAW,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7B,CAAC,CAAA,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
@@ -10,7 +10,7 @@ export interface ChannelContextValues {
|
|
10
10
|
updateChannel(newChannel: SelectedChannel): void;
|
11
11
|
restoreCultureForPreview: () => void;
|
12
12
|
setCultureForPreview: (culture: string) => void;
|
13
|
-
selectedChannel
|
13
|
+
selectedChannel: SelectedChannel;
|
14
14
|
basename?: string;
|
15
15
|
channelsById?: {
|
16
16
|
[key: string]: Channel;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ChannelContext.js","sourceRoot":"","sources":["ChannelContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"ChannelContext.js","sourceRoot":"","sources":["ChannelContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAqBtC,MAAM,cAAc,GAAG,aAAa,CAClC,SAAS,CACV,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
@@ -20,7 +20,7 @@ import { OpenGraphProductData } from '../OpenGraph';
|
|
20
20
|
import { unSlugify } from '@jetshop/core/analytics/integrations/unslugify';
|
21
21
|
import { breadcrumbsWithoutProduct } from '@jetshop/core/analytics/utils/breadcrumbsWithoutProduct';
|
22
22
|
const ProductRoute = (props) => {
|
23
|
-
var _a, _b, _c;
|
23
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
24
24
|
const { component: ProductPage, partialProduct } = props, rest = __rest(props, ["component", "partialProduct"]);
|
25
25
|
const product = ((_b = (_a = props.result.data) === null || _a === void 0 ? void 0 : _a.route) === null || _b === void 0 ? void 0 : _b.object) || ((_c = props.result.data) === null || _c === void 0 ? void 0 : _c.product);
|
26
26
|
const { structuredData, openGraph } = useShopConfig();
|
@@ -46,7 +46,14 @@ const ProductRoute = (props) => {
|
|
46
46
|
category
|
47
47
|
}));
|
48
48
|
}
|
49
|
-
}, [
|
49
|
+
}, [
|
50
|
+
(_d = location.state) === null || _d === void 0 ? void 0 : _d.list,
|
51
|
+
product,
|
52
|
+
(_e = props.result.data) === null || _e === void 0 ? void 0 : _e.product,
|
53
|
+
(_g = (_f = props.result.data) === null || _f === void 0 ? void 0 : _f.route) === null || _g === void 0 ? void 0 : _g.breadcrumbs,
|
54
|
+
(_j = (_h = props.result.data) === null || _h === void 0 ? void 0 : _h.route) === null || _j === void 0 ? void 0 : _j.object,
|
55
|
+
track
|
56
|
+
]);
|
50
57
|
return (React.createElement(React.Fragment, null,
|
51
58
|
product && (React.createElement(React.Fragment, null,
|
52
59
|
!disableStructuredProductData && (React.createElement(StructuredProductData, { product: product })),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ProductRoute.js","sourceRoot":"","sources":["ProductRoute.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,OAAO,KAAK,EAAE,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,4BAA4B,MAAM,8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AA,KAAK,CAAC,MAAM,CAAC,IAAI,0CAAE,OAAO;QAC1B,MAAA,MAAA,KAAK,CAAC,MAAM,CAAC,IAAI,0CAAE,KAAK,0CAAE,WAAW;QACrC,MAAA,MAAA,KAAK,CAAC,MAAM,CAAC,IAAI,0CAAE,KAAK,0CAAE,MAAM;QAChC,KAAK;KACN,CAAC,CAAC;IAEH,OAAO,CACL;QACG,OAAO,IAAI,CACV;YACG,CAAC,4BAA4B,IAAI,CAChC,oBAAC,qBAAqB,IAAC,OAAO,EAAE,OAAO,GAAI,CAC5C;YACA,CAAC,2BAA2B,IAAI,CAC/B,oBAAC,oBAAoB,IAAC,OAAO,EAAE,OAAO,GAAI,CAC3C,CACA,CACJ;QACD,oBAAC,4BAA4B,IAAC,OAAO,EAAE,OAAO;YAC5C,oBAAC,WAAW,oBACN,IAAI,IACR,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,IAC9B,CAC2B,CAC9B,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -4,7 +4,7 @@ import { CategoryProps } from './CategoryRoute';
|
|
4
4
|
import { ContentProps } from './ContentRoute';
|
5
5
|
import { QueryResult } from 'react-apollo';
|
6
6
|
import { Route } from '../../types';
|
7
|
-
declare const RouteResolver: ({ productPage, categoryPage, contentPage, notFoundPage
|
7
|
+
declare const RouteResolver: ({ productPage, categoryPage, contentPage, notFoundPage, ErrorPage, LoadingPage, result, pathname, state, search }: {
|
8
8
|
productPage: ComponentType<ProductProps>;
|
9
9
|
categoryPage: ComponentType<CategoryProps>;
|
10
10
|
contentPage: ComponentType<ContentProps>;
|
@@ -47,6 +47,8 @@ productQueryResult: ProductsQuery): {
|
|
47
47
|
defaultPreviousPrice?: import("../../types").Price;
|
48
48
|
recommendedPrice?: import("../../types").Price;
|
49
49
|
priceDateSpan?: import("../../types").ProductPriceDateSpan;
|
50
|
+
hasMemberPrice?: boolean;
|
51
|
+
memberPrice?: import("../../types").Price;
|
50
52
|
customerComments?: import("../../types").ProductComment[];
|
51
53
|
stockStatus?: import("../../types").StockStatus;
|
52
54
|
customFields?: import("../../types").CustomField[];
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function useChannels(): import("../components/ChannelContext/ChannelContext").ChannelContextValues;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { useContext } from 'react';
|
2
|
+
import ChannelContext from '../components/ChannelContext';
|
3
|
+
export function useChannels() {
|
4
|
+
const context = useContext(ChannelContext);
|
5
|
+
if (context === undefined) {
|
6
|
+
throw new Error('useChannels must be used within a ChannelProvider');
|
7
|
+
}
|
8
|
+
return context;
|
9
|
+
}
|
10
|
+
//# sourceMappingURL=useChannels.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useChannels.js","sourceRoot":"","sources":["useChannels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAE1D,MAAM,UAAU,WAAW;IACzB,MAAM,OAAO,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAC3C,IAAI,OAAO,KAAK,SAAS,EAAE;QACzB,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;KACtE;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
@@ -82,7 +82,7 @@ describe('useCustomerOrders', () => {
|
|
82
82
|
const utils = render(
|
83
83
|
<ApolloProvider client={client}>
|
84
84
|
<TestHarness query={query}>
|
85
|
-
{resp => {
|
85
|
+
{(resp) => {
|
86
86
|
collect && collect(resp);
|
87
87
|
return null;
|
88
88
|
}}
|
@@ -97,7 +97,7 @@ describe('useCustomerOrders', () => {
|
|
97
97
|
let loading;
|
98
98
|
|
99
99
|
setup({
|
100
|
-
collect: resp => {
|
100
|
+
collect: (resp) => {
|
101
101
|
loading = resp.loading;
|
102
102
|
}
|
103
103
|
});
|
@@ -113,7 +113,7 @@ describe('useCustomerOrders', () => {
|
|
113
113
|
let orders;
|
114
114
|
|
115
115
|
setup({
|
116
|
-
collect: resp => {
|
116
|
+
collect: (resp) => {
|
117
117
|
orders = resp.orders;
|
118
118
|
}
|
119
119
|
});
|
@@ -131,7 +131,7 @@ describe('useCustomerOrders', () => {
|
|
131
131
|
let total;
|
132
132
|
|
133
133
|
setup({
|
134
|
-
collect: resp => {
|
134
|
+
collect: (resp) => {
|
135
135
|
total = resp.totalOrders;
|
136
136
|
}
|
137
137
|
});
|
@@ -147,7 +147,7 @@ describe('useCustomerOrders', () => {
|
|
147
147
|
let response;
|
148
148
|
|
149
149
|
setup({
|
150
|
-
collect: resp => {
|
150
|
+
collect: (resp) => {
|
151
151
|
response = resp.result;
|
152
152
|
}
|
153
153
|
});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jetshop/core",
|
3
|
-
"version": "5.15.0-
|
3
|
+
"version": "5.15.0-minor.207cf934",
|
4
4
|
"license": "MIT",
|
5
5
|
"files": [
|
6
6
|
"**/*.js",
|
@@ -94,7 +94,7 @@
|
|
94
94
|
"svg-react-loader": "^0.4.5",
|
95
95
|
"ts-node": "^7.0.1",
|
96
96
|
"typed-emitter": "^0.1.0",
|
97
|
-
"typescript": "^4.3
|
97
|
+
"typescript": "^4.8.3",
|
98
98
|
"universal-cookie-express": "^4.0.3",
|
99
99
|
"uuid": "^8.3.2",
|
100
100
|
"web-vitals": "^0.2.3",
|
package/types.d.ts
CHANGED
@@ -1219,11 +1219,13 @@ export type MutationLoginExternalCustomerArgs = {
|
|
1219
1219
|
|
1220
1220
|
|
1221
1221
|
export type MutationLoginArgs = {
|
1222
|
-
password
|
1222
|
+
password?: Maybe<Scalars['String']>;
|
1223
1223
|
email?: Maybe<Scalars['String']>;
|
1224
1224
|
pid?: Maybe<Scalars['String']>;
|
1225
1225
|
externalId?: Maybe<Scalars['String']>;
|
1226
1226
|
memberNumber?: Maybe<Scalars['String']>;
|
1227
|
+
externalHashId?: Maybe<Scalars['String']>;
|
1228
|
+
timeStamp?: Maybe<Scalars['String']>;
|
1227
1229
|
};
|
1228
1230
|
|
1229
1231
|
|
@@ -1705,7 +1707,12 @@ export type Product = Document & {
|
|
1705
1707
|
relatedProducts?: Maybe<Array<Maybe<Product>>>;
|
1706
1708
|
/** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
|
1707
1709
|
badges?: Maybe<Array<Maybe<ProductBadge>>>;
|
1708
|
-
/**
|
1710
|
+
/**
|
1711
|
+
* The current price.
|
1712
|
+
* - Will be a Customer specific price if that Customer has a separate price list.
|
1713
|
+
* - Will be the member price if Customer is logged in and `Product.hasMemberPrice` is true.
|
1714
|
+
* - Will be the non-member price if Customer is not logged in and `Product.hasMemberPrice` is true.
|
1715
|
+
*/
|
1709
1716
|
price?: Maybe<Price>;
|
1710
1717
|
hidePrice?: Maybe<Scalars['Boolean']>;
|
1711
1718
|
/**
|
@@ -1725,6 +1732,14 @@ export type Product = Document & {
|
|
1725
1732
|
* time interval will be that of the variant which price is shown on the product.
|
1726
1733
|
*/
|
1727
1734
|
priceDateSpan?: Maybe<ProductPriceDateSpan>;
|
1735
|
+
/** Indicates if this product and its variants has member prices. */
|
1736
|
+
hasMemberPrice?: Maybe<Scalars['Boolean']>;
|
1737
|
+
/**
|
1738
|
+
* The price a Customer would get if member prices are active and the Customer is logged in.
|
1739
|
+
* - Will be null if `Product.hasMemberPrice` is false.
|
1740
|
+
* - Will be set if `Product.hasMemberPrice` is true.
|
1741
|
+
*/
|
1742
|
+
memberPrice?: Maybe<Price>;
|
1728
1743
|
/**
|
1729
1744
|
* Specifies input field(s) for the Customer to populate on the Product that will then carry through to the Order.
|
1730
1745
|
* If 'required' is true the Product should not be purchasable until the field is populated.
|
@@ -1986,7 +2001,12 @@ export type ProductVariant = {
|
|
1986
2001
|
articleNumber: Scalars['String'];
|
1987
2002
|
/** Variant values (combination of option values) */
|
1988
2003
|
values: Array<Maybe<Scalars['String']>>;
|
1989
|
-
/**
|
2004
|
+
/**
|
2005
|
+
* The current price.
|
2006
|
+
* - Will be a Customer specific price if that Customer has a separate price list.
|
2007
|
+
* - Will be the member price if Customer is logged in and `Product.hasMemberPrice` is true.
|
2008
|
+
* - Will be the non-member price if Customer is not logged in and `Product.hasMemberPrice` is true.
|
2009
|
+
*/
|
1990
2010
|
price?: Maybe<Price>;
|
1991
2011
|
/**
|
1992
2012
|
* The previous price (i.e. this will be higher than `price` if the product is
|
@@ -2002,6 +2022,12 @@ export type ProductVariant = {
|
|
2002
2022
|
recommendedPrice?: Maybe<Price>;
|
2003
2023
|
/** The time interval of the discounted price. */
|
2004
2024
|
priceDateSpan?: Maybe<ProductPriceDateSpan>;
|
2025
|
+
/**
|
2026
|
+
* The price a Customer would get if member prices are active and the Customer is logged in.
|
2027
|
+
* - Will be null if `Product.hasMemberPrice` is false.
|
2028
|
+
* - Will be set if `Product.hasMemberPrice` is true.
|
2029
|
+
*/
|
2030
|
+
memberPrice?: Maybe<Price>;
|
2005
2031
|
/** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
|
2006
2032
|
stockStatus?: Maybe<StockStatus>;
|
2007
2033
|
/** NB: Carries a performance cost, as asking for this will result in a separate API call in the backend. */
|