@jetshop/core 5.14.1 → 5.14.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,yBAAyB,CAAC;AAC1D,OAAO,EACL,mBAAmB,EACnB,eAAe,EAEhB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AA8BhD,SAAS,YAAY,CAAC,QAAkB;IACtC,OAAO,6BAA6B,IAAI,QAAQ,CAAC;AACnD,CAAC;AAED,MAAM,sBAAsB,GAAoB;IAC9C,IAAI,EAAE;QACJ,UAAU,EAAE,IAAI;QAChB,oBAAoB,EAAE,KAAK;QAC3B,yBAAyB,EAAE,IAAI;KAChC;IACD,GAAG,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE;IAC1B,QAAQ,EAAE;QACR,OAAO,EAAE,KAAK;QACd,OAAO,EAAE,IAAI;QACb,GAAG,EAAE,IAAI;KACV;IACD,eAAe,EAAE,KAAK;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAC3B,aAAa,CAAC;IACZ,MAAM,EAAE,sBAAsB;IAC9B,eAAe,E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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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AAQ,EAAE,OAAO;YAChD,IAAI,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE;gBAC3B,WAAW,EAAE,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;gBAC9B,OAAO;aACR,CAAC,CAAC;QACL,CAAC;QACD,SAAS,CAAC,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,OAAO;YACrC,IAAI,EAAE,CAAC,OAAO,EAAE,gBAAgB,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,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,MAAM,CAAC,SAAS,EAAE;QACpB,IAAI,KAAK,CAAC,SAAS,EAAE;YACnB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;SAC5C;QAED,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC9B;AACH,CAAC;AAED,SAAS,cAAc,CAAC,EACtB,OAAO,EACP,iBAAiB,EACj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AC5B,QAAQ,EAAE,CAAC,EACX,IAAI,EAAE,QAAQ,IACd,CAAA;SAAA,CAAC,CAAC;QACJ,IAAI,CAAC;YACH,KAAK,EAAE,aAAa;YACpB,SAAS,EAAE;gBACT,YAAY,EAAE,QAAQ;gBACtB,WAAW,EAAE,WAAW;aACzB;YACD,OAAO;SACR,CAAC,CAAC;IACL,CAAC;IACD,eAAe,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,OAAO;QACzC,IAAI,CAAC;YACH,UAAU,EAAE,GAAG,EAAE,IAAI,OAAO,EAAE;YAC9B,OAAO;SACR,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"}
package/boot/apollo.js CHANGED
@@ -115,7 +115,7 @@ export const createClient = ({ apolloConfig: { token, shopid, enableGateway, gra
115
115
  return forward ? forward(operation) : null;
116
116
  });
117
117
  const errorMiddleware = onError((_a) => {
118
- var _b, _c;
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 = (_c = (_b = networkError) === null || _b === void 0 ? void 0 : _b.result) === null || _c === void 0 ? void 0 : _c.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') {
@@ -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,gCAAgC,CAAC;AAGlE,OAAO,EAAE,IAAI,IAAI,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAiBtF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAC3B,YAAY,EAAE,EACZ,KAAK,EACL,MAAM,EACN,aAAa,EACb,UAAU,EACV,qBAAqB,EACtB,EACD,MAAM,EACN,WAAW,EACX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P,CAAC,CAAC,KAAK,CAAC,OAAO,CAAE,MAAc,CAAC,gBAAgB,CAAC;QACnD,OAAO,EAAE,CAAC,CAAC,aAAa;QACxB,SAAS,EAAE,SAAS,CAClB,EAAE,CAAC,SAAS,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC,CACnE;QACD,QAAQ;KACT,CAAC,CAAC;IAEH,OAAO,EAAE,MAAM,EAAE,CAAC;AACpB,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?: 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;AAoBtC,MAAM,cAAc,GAAG,aAAa,CAClC,SAAS,CACV,CAAC;AAEF,eAAe,cAAc,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
- }, [location.state, product, track, props.result.data]);
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,8DAA8D,CAAC;AACxG,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,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A,CACxD;gBACD,SAAS,CAAC,MAAA,MAAA,OAAO,CAAC,iBAAiB,0CAAE,YAAY,0CAAE,IAAI,CAAC;gBACxD,EAAE,CAAC;YACL,KAAK,CACH,iBAAiB,CAAC;gBAChB,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI,EAAE,MAAA,QAAQ,CAAC,KAAK,0CAAE,IAAI;gBAC1B,QAAQ;aACT,CAAC,CACH,CAAC;SACH;IACH,CAAC,EAAE;QACD,MAAA,QAAQ,CAAC,KAAK,0CAAE,IAAI;QACpB,OAAO;QACP,MAAA,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: NotFoundPage, ErrorPage, LoadingPage, result, pathname, state, search }: {
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>;
@@ -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.14.1",
3
+ "version": "5.14.2",
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.2",
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: Scalars['String'];
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
 
package/ci/.gitlab-ci.yml DELETED
@@ -1,3 +0,0 @@
1
- include:
2
- project: 'jetshop/flight-ci'
3
- file: 'pipelines/pipeline-kaniko.yaml'