@jetshop/core 6.0.5 → 6.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -168,14 +168,24 @@ export function trackerRegistry({ config, inServer }) {
168
168
  const registry = {
169
169
  on(event, listeners, { name } = {}) {
170
170
  return events.on(event.toString(), (...args) => __awaiter(this, void 0, void 0, function* () {
171
+ var _a;
171
172
  try {
172
- return yield listeners.apply(this, args);
173
+ yield listeners.apply(this, args);
174
+ return;
173
175
  }
174
176
  catch (err) {
175
177
  console.error(`Error triggering ${event}:${name}`, {
176
178
  err
177
179
  });
178
180
  }
181
+ finally {
182
+ for (const arg of args) {
183
+ if (arg === null || arg === void 0 ? void 0 : arg.callback) {
184
+ yield ((_a = arg.callback) === null || _a === void 0 ? void 0 : _a.call(arg));
185
+ return;
186
+ }
187
+ }
188
+ }
179
189
  }));
180
190
  },
181
191
  emit(event, props, context, eventId) {
@@ -1 +1 @@
1
- {"version":3,"file":"trackerRegistry.js","sourceRoot":"","sources":["trackerRegistry.ts"],"names":[],"mappings":";;;;;;;;;AAEA,OAAO,aAAa,MAAM,eAAe,CAAC;AAmJ1C,MAAM,CAAC,MAAM,cAAc,GAAiC;IAC1D,SAAS;IACT,cAAc;IACd,mBAAmB;IACnB,WAAW;IACX,WAAW;IACX,eAAe;IACf,iBAAiB;IACjB,WAAW;IACX,YAAY;IACZ,eAAe;IACf,oBAAoB;CACrB,CAAC;AA6BF,MAAM,UAAU,mBAAmB,CAAC,EAClC,QAAQ,EACR,oBAAoB,EACpB,OAAO,EACP,KAAK,EAMN;IACC,MAAM,QAAQ,GAAG;QACf,oBAAoB;QACpB,QAAQ;QACR,OAAO;QACP,KAAK;KACN,CAAC;IACF,MAAM,aAAa,GAAY;QAC7B,IAAI,EAAE,QAAQ;QACd,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO;YAClC,KAAK,CAAC,4BAA4B,EAAE;gBAClC,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,I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,GAAG;oBACH,IAAI;iBACL,CAAC,CAAC;aACJ;QACH,CAAC;QACD,QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;KAChD,CAAC;IACF,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -26,7 +26,6 @@ import { PreviewHandler } from '../PreviewHandler';
26
26
  import SharedTree from '../SharedTree';
27
27
  import createIntlOptions from '../utils/createIntOptions';
28
28
  import { setUID } from '../utils/uid';
29
- import { webVitals } from '../../analytics/webVitals';
30
29
  import { primaryRouteForPathFetcher } from '../../../core/ChannelHandler/redirectUtils';
31
30
  import ActiveFiltersQuery from '@jetshop/core/components/DynamicRoute/ActiveFiltersQuery.gql';
32
31
  // Instantiate this here, since we need to read cookies outside of React.
@@ -50,12 +49,6 @@ const startClient = (tree, config) => {
50
49
  }
51
50
  // This is used by cypress to get the shopid when running universal cypress test
52
51
  window.shopid = config.apolloConfig.shopid;
53
- if (process.env.REACT_APP_REPORT_WEB_VITALS) {
54
- webVitals({
55
- shopId: config.apolloConfig.shopid,
56
- apiUrl: config.apolloConfig.graphQLURI
57
- });
58
- }
59
52
  if (__USE_SENTRY__) {
60
53
  if (config.sentry && config.sentry.clientDSN) {
61
54
  Sentry.init(config.sentry.clientDSN);
@@ -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,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,aA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MAAM,CAAC,IAAI,CAAC,CAAC;aACnB;iBAAM;gBACL,wCAAwC;gBACxC,IAAI,GAAG,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC;aAC3D;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;SACD,OAAO,CAAC,GAAG,EAAE;QACZ,MAAM,CAAC,qBAAqB,GAAG,KAAK,CAAC;IACvC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,MAAM,IAAI,GAAG,CAAC,IAAkB,EAAE,MAAmB,EAAE,EAAE;IACvD,2HAA2H;IAC3H,IAAK,MAAc,CAAC,eAAe,EAAE;QACnC,OAAO,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;KAClC;SAAM;QACL,2KAA2K;QAC1K,MAAc,CAAC,QAAQ,GAAG,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;KAC5D;AACH,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -4,7 +4,6 @@ import CategoryRoute from './CategoryRoute';
4
4
  import ContentRoute from './ContentRoute';
5
5
  import Status from './Status';
6
6
  import { Redirect } from 'react-router';
7
- import { setPageType } from '../../analytics/webVitals';
8
7
  import { DefaultError } from '@jetshop/core/components/DynamicRoute/GenericError';
9
8
  const isRouteType = (state, result, type) => {
10
9
  var _a, _b, _c;
@@ -31,14 +30,13 @@ const isEmptyRoute = (result) => {
31
30
  };
32
31
  const Loading = (LoadingPage) => LoadingPage ? React.createElement(LoadingPage, null) : React.createElement("div", null, "Loading...");
33
32
  const RouteResolver = ({ productPage, categoryPage, contentPage, notFoundPage: NotFoundPage, ErrorPage, LoadingPage, result, pathname, state, search }) => {
34
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
35
- setPageType((_c = (_b = (_a = result === null || result === void 0 ? void 0 : result.data) === null || _a === void 0 ? void 0 : _a.route) === null || _b === void 0 ? void 0 : _b.object) === null || _c === void 0 ? void 0 : _c.__typename);
33
+ var _a, _b, _c, _d, _e, _f;
36
34
  result.error && console.error(result.error);
37
- if (((_f = (_e = (_d = result === null || result === void 0 ? void 0 : result.data) === null || _d === void 0 ? void 0 : _d.route) === null || _e === void 0 ? void 0 : _e.path) !== null && _f !== void 0 ? _f : pathname) !== pathname) {
35
+ if (((_c = (_b = (_a = result === null || result === void 0 ? void 0 : result.data) === null || _a === void 0 ? void 0 : _a.route) === null || _b === void 0 ? void 0 : _b.path) !== null && _c !== void 0 ? _c : pathname) !== pathname) {
38
36
  return (React.createElement(Status, { code: 301 },
39
37
  React.createElement(Redirect, { to: {
40
38
  pathname: result.data.route.path,
41
- state: Object.assign(Object.assign({}, state), { type: (_j = (_h = (_g = result === null || result === void 0 ? void 0 : result.data) === null || _g === void 0 ? void 0 : _g.route) === null || _h === void 0 ? void 0 : _h.object) === null || _j === void 0 ? void 0 : _j.__typename }),
39
+ state: Object.assign(Object.assign({}, state), { type: (_f = (_e = (_d = result === null || result === void 0 ? void 0 : result.data) === null || _d === void 0 ? void 0 : _d.route) === null || _e === void 0 ? void 0 : _e.object) === null || _f === void 0 ? void 0 : _f.__typename }),
42
40
  search
43
41
  } })));
44
42
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RouteResolver.js","sourceRoot":"","sources":["RouteResolver.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC7C,OAAO,YAA8B,MAAM,gBAAgB,CAAC;AAC5D,OAAO,aAAgC,MAAM,iBAAiB,CAAC;AAC/D,OAAO,YAA8B,MAAM,gBAAgB,CAAC;AAE5D,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAC;AAElF,MAAM,WAAW,GAAG,CAAC,KAAU,EAAE,MA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AC,MAAM,CAAC,EAAE;YACxB,OAAO,CACL,oBAAC,MAAM,IAAC,IAAI,EAAE,GAAG;gBACf,oBAAC,YAAY,OAAG,CACT,CACV,CAAC;SACH;QAED,OAAO,CACL,oBAAC,MAAM,IAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,IACnC,SAAS,CAAC,CAAC,CAAC,CACX,oBAAC,SAAS,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,GAAI,CACnC,CAAC,CAAC,CAAC,CACF,oBAAC,YAAY,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,GAAI,CACtC,CACM,CACV,CAAC;KACH;AACH,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,6 +1,11 @@
1
1
  import React, { Context } from 'react';
2
2
  import { ProductListContextOptions, ProductListQueries, ProductListState } from '.';
3
3
  export declare const ProductListContext: Context<ProductListContextOptions>;
4
+ export declare class ProductListRequestId {
5
+ private id;
6
+ increment(): void;
7
+ get(): string;
8
+ }
4
9
  export declare const ProductListProvider: React.FC<{
5
10
  initialState: ProductListState;
6
11
  queries: ProductListQueries;
@@ -20,11 +20,23 @@ import { useThunkReducer } from '../useThunkReducer';
20
20
  import { createListAction, deleteListAction, loginAction, refreshAction } from './action-creators';
21
21
  import { normalizeServerList } from './list-transforms';
22
22
  import { init, reducer } from './product-list-reducer';
23
+ import uniqueId from '../../helpers/uniqueId';
23
24
  export const ProductListContext = React.createContext(undefined);
24
25
  function useMissingQueryWarning(property, queries) {
25
26
  return useWarningInDev(!(property in queries), `No \`${property}\` query available in \`queries\` for \`ProductListProvider\`. ` +
26
27
  `Check migration guide for 5.11.0 (product lists section) to remove this warning`);
27
28
  }
29
+ export class ProductListRequestId {
30
+ constructor() {
31
+ this.id = null;
32
+ }
33
+ increment() {
34
+ this.id = uniqueId('_product_list_');
35
+ }
36
+ get() {
37
+ return this.id;
38
+ }
39
+ }
28
40
  export const ProductListProvider = function ProductListProvider(_a) {
29
41
  var { queries, initialState = {} } = _a, rest = __rest(_a, ["queries", "initialState"]);
30
42
  // NOTE: Warn about missing queries, should be removed in next major release.
@@ -32,7 +44,7 @@ export const ProductListProvider = function ProductListProvider(_a) {
32
44
  useMissingQueryWarning('createList', queries);
33
45
  useMissingQueryWarning('deleteList', queries);
34
46
  const { loggedIn } = useAuth();
35
- const requestIdRef = React.useRef(null);
47
+ const requestIdRef = React.useRef(new ProductListRequestId());
36
48
  const allQuery = queries.all || productListQueries.ProductLists;
37
49
  const { data: serverList, client } = useQuery(allQuery, {
38
50
  skip: !loggedIn
@@ -46,8 +58,8 @@ export const ProductListProvider = function ProductListProvider(_a) {
46
58
  ]))
47
59
  : emptyProductLists();
48
60
  const defaultInitialState = Object.assign({ loggedIn,
49
- requestIdRef,
50
- lists }, initialState);
61
+ lists,
62
+ requestIdRef }, initialState);
51
63
  const [state, dispatch] = useThunkReducer(reducer, defaultInitialState, (initialState) => init(initialState));
52
64
  const usingLocalList = !state.loggedIn;
53
65
  usePersistLocalList({ lists: state.lists });
@@ -1 +1 @@
1
- {"version":3,"file":"ProductListContext.js","sourceRoot":"","sources":["ProductListContext.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAW,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAEvD,OAAO,eAAe,MAAM,qCAAqC,CAAC;AAClE,OAAO,kBAAkB,MAAM,6CAA6C,CAAC;AAC7E,OAAO,oBAAoB,MAAM,uDAAuD,CAAC;AACzF,OAAO,EAEL,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EAKlB,MAAM,GAAG,CAAC;AACX,OAAO,OAAO,MAAM,sCAAsC,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,aAA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MAAM,QAAQ,GAAG,CAAC,CAAe,EAAE,EAAE;YACnC,IAAI,CAAC,CAAC,WAAW,KAAK,YAAY,IAAI,CAAC,CAAC,GAAG,KAAK,iBAAiB,EAAE;gBACjE,OAAO,EAAE,CAAC;aACX;QACH,CAAC,CAAC;QAEF,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QAE7C,OAAO,GAAG,EAAE;YACV,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QAClD,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import { PRODUCT_LISTS_KEY, productListArrayToMap } from '.';
2
2
  import { flattenList, normalizeServerList } from './list-transforms';
3
- import uniqueId from '../../helpers/uniqueId';
4
3
  export function loginAction({ loginMutation, fetchAll }) {
5
4
  return (dispatch, getState) => {
6
5
  const state = getState();
@@ -124,8 +123,8 @@ export function updateAction({ listId, updateAPI = false, removeMutation, addMut
124
123
  const [remove] = removeMutation;
125
124
  const [add] = addMutation;
126
125
  const previousState = getState();
127
- const requestId = scopedUniqueID();
128
- previousState.requestIdRef.current = requestId;
126
+ previousState.requestIdRef.current.increment();
127
+ const requestId = previousState.requestIdRef.current;
129
128
  remove({
130
129
  // Don't write to the cache. This avoids re-rendering the list.
131
130
  fetchPolicy: 'no-cache',
@@ -165,6 +164,7 @@ export function updateAction({ listId, updateAPI = false, removeMutation, addMut
165
164
  }
166
165
  export function removeAction({ listId, updateAPI = false, articleNumber, variantArticleNumber, removeMutation }) {
167
166
  return (dispatch, getState) => {
167
+ var _a, _b;
168
168
  dispatch({
169
169
  type: 'REMOVE',
170
170
  payload: {
@@ -177,8 +177,8 @@ export function removeAction({ listId, updateAPI = false, articleNumber, variant
177
177
  return;
178
178
  const [remove] = removeMutation;
179
179
  const previousState = getState();
180
- const requestId = scopedUniqueID();
181
- previousState.requestIdRef.current = requestId;
180
+ (_b = (_a = previousState.requestIdRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.increment();
181
+ const requestId = previousState.requestIdRef.current;
182
182
  remove({
183
183
  fetchPolicy: 'no-cache',
184
184
  context: { useApolloNetworkStatus: false },
@@ -212,8 +212,8 @@ export function clearAction({ listId, updateAPI = false, removeMutation }) {
212
212
  const state = getState();
213
213
  const list = state.lists.get(listId);
214
214
  const articleNumbers = flattenList(list).map((listItem) => listItem.articleNumber);
215
- const requestId = scopedUniqueID();
216
- state.requestIdRef.current = requestId;
215
+ state.requestIdRef.current.increment();
216
+ const requestId = state.requestIdRef.current;
217
217
  remove({
218
218
  fetchPolicy: 'no-cache',
219
219
  context: { useApolloNetworkStatus: false },
@@ -231,6 +231,7 @@ export function clearAction({ listId, updateAPI = false, removeMutation }) {
231
231
  }
232
232
  export function addAction({ listId, articleNumber, variantArticleNumber, addMutation, options, updateAPI = false }) {
233
233
  return (dispatch, getState) => {
234
+ var _a, _b;
234
235
  const { quantity, description } = options;
235
236
  dispatch({
236
237
  type: 'ADD',
@@ -245,8 +246,8 @@ export function addAction({ listId, articleNumber, variantArticleNumber, addMuta
245
246
  return;
246
247
  const [add] = addMutation;
247
248
  const previousState = getState();
248
- const requestId = scopedUniqueID();
249
- previousState.requestIdRef.current = requestId;
249
+ (_b = (_a = previousState.requestIdRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.increment();
250
+ const requestId = previousState.requestIdRef.current;
250
251
  add({
251
252
  fetchPolicy: 'no-cache',
252
253
  context: { useApolloNetworkStatus: false },
@@ -272,9 +273,6 @@ export function addAction({ listId, articleNumber, variantArticleNumber, addMuta
272
273
  });
273
274
  };
274
275
  }
275
- function scopedUniqueID() {
276
- return uniqueId('_product_list_');
277
- }
278
276
  function syncListFromServer(dispatch, listId, productList) {
279
277
  const list = normalizeServerList(productList.customerProductList);
280
278
  dispatch({
@@ -1 +1 @@
1
- {"version":3,"file":"action-creators.js","sourceRo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,CAAC,GAAG,EAAE,EAAE;YACb,OAAO,CAAC,KAAK,CAAC,oCAAoC,EAAE,GAAG,CAAC,CAAC;YACzD,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;QAClE,CAAC,CAAC,CAAC;IACP,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,kBAAkB,CACzB,QAAgC,EAChC,MAAqB,EACrB,WAAsC;IAEtC,MAAM,IAAI,GAAG,mBAAmB,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC;IAElE,QAAQ,CAAC;QACP,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACP,MAAM;YACN,IAAI;SACL;KACF,CAAC,CAAC;AACL,CAAC;AAED,SAAS,YAAY,CACnB,QAAgC,EAChC,MAAqB,EACrB,WAAkC;IAElC,QAAQ,CAAC;QACP,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACP,MAAM;YACN,IAAI,EAAE,WAAW;SAClB;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -4,6 +4,7 @@ import { DocumentNode } from 'graphql';
4
4
  import { CustomerProductListResult, MutationCreateCustomerProductListArgs, MutationAddToCustomerProductListArgs, MutationRemoveFromCustomerProductListArgs, MutationUpdateCustomerProductListItemArgs, Product, ProductVariant, QueryCustomerProductListArgs, QueryProductsArgs } from '../../types';
5
5
  import { ThunkAction } from '../useThunkReducer';
6
6
  import { Action } from './product-list-reducer';
7
+ import { ProductListRequestId } from 'packages/core/hooks/ProductList/ProductListContext';
7
8
  export { useProductList } from './useProductList';
8
9
  export { useProductListItems } from './useProductListItems';
9
10
  export interface UpdateListOptions {
@@ -40,7 +41,7 @@ export declare function productListArrayToMap(array: [ProductListId, NormalizedP
40
41
  export interface ProductListState {
41
42
  loggedIn: boolean;
42
43
  lists: ProductListMap;
43
- requestIdRef: React.MutableRefObject<string | null>;
44
+ requestIdRef: React.MutableRefObject<ProductListRequestId>;
44
45
  }
45
46
  export interface ProductListQueries {
46
47
  /** Products query, used for retrieving products from localList */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAgC5D,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAEhD,MAAM,UAAU,iBAAiB;IAC/B,OAAO,IAAI,GAAG,CAAC;QACb;YACE,IAAI;YACJ;gBACE,KAAK,EAAE,EAAE;gBACT,IAAI,EAAE,IAAI;aACX;SACF;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,GAAmB;IACvD,MAAM,CAAC,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC;IACvB,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,qBAAqB,CACnC,KAA+C;IAE/C,OAAO,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;AACxB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAgC5D,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAEhD,MAAM,UAAU,iBAAiB;IAC/B,OAAO,IAAI,GAAG,CAAC;QACb;YACE,IAAI;YACJ;gBACE,KAAK,EAAE,EAAE;gBACT,IAAI,EAAE,IAAI;aACX;SACF;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,GAAmB;IACvD,MAAM,CAAC,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC;IACvB,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,qBAAqB,CACnC,KAA+C;IAE/C,OAAO,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;AACxB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { enableMapSet, produce } from 'immer';
2
+ import { emptyProductLists, PRODUCT_LISTS_KEY, productListArrayToMap } from '.';
2
3
  // The Product lists are stored as a Map so need to enable Map support for Immer
3
4
  enableMapSet();
4
- import { emptyProductLists, PRODUCT_LISTS_KEY, productListArrayToMap } from '.';
5
5
  export function reducer(state, action) {
6
6
  switch (action.type) {
7
7
  case 'LOGIN':
@@ -1 +1 @@
1
- {"version":3,"file":"product-list-reducer.js","sourceRoot":"","sources":["product-list-reducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC9C,gFAAgF;AAChF,YAAY,EAAE,CAAC;AAEf,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EAOjB,qBAAqB,EACtB,MAAM,GAAG,CAAC;AAEX,MAAM,UAAU,OAAO,CACrB,KAAuB,EACvB,MAAc;IAEd,QAAQ,MAAM,CAAC,IAAI,EAAE;QACnB,KAAK,OAAO;YACV,OAAO,OAAO,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE;gBAC9B,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;gBACtB,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC;gBACxC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;YAChC,CAAC,CAAC,CAAC;QACL,KAAK,QAAQ,CAAC,CAAC;YACb,OAAO,OAAO,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE;gBAC9B,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC;gBACvB,KAAK,CAAC,KAAK,GAAG,iBAAiB,EAAE,CAAC;YACpC,CAAC,CAAC,CAAC;SACJ;QACD,KAAK,QAAQ,CAAC,CAAC;YACb,MAAM,EACJ,MAA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MAAA,KAAK,CAAC,aAAa,CAAC,0CAAE,QAAQ,KACjC,CAAC,oBAAoB,CAAC,EAAE;wBACtB,OAAO;wBACP,mBAAmB,EAAE,aAAa;qBACnC,GACF;aACF,CAAC;QACJ,CAAC,CAAC,CAAC;KACJ;AACH,CAAC"}
@@ -8,7 +8,7 @@ function isThunk(action) {
8
8
  */
9
9
  export function useThunkReducer(reducer, initialState, initializer) {
10
10
  const [state, dispatch] = useReducer(reducer, initialState, initializer);
11
- const previousState = useRef();
11
+ const previousState = useRef(null);
12
12
  previousState.current = state;
13
13
  const thunkedDispatch = useCallback(function thunkedDispatch(action) {
14
14
  if (isThunk(action)) {
@@ -18,7 +18,7 @@ export function useThunkReducer(reducer, initialState, initializer) {
18
18
  },
19
19
  // exhaustive-deps doesn't work with recursion
20
20
  // eslint-disable-next-line react-hooks/exhaustive-deps
21
- []);
21
+ [previousState]);
22
22
  return [previousState.current, thunkedDispatch];
23
23
  }
24
24
  //# sourceMappingURL=useThunkReducer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useThunkReducer.js","sourceRoot":"","sources":["useThunkReducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAW,MAAM,OAAO,CAAC;AAOjE,SAAS,OAAO,CACd,MAA2C;IAE3C,OAAO,OAAO,MAAM,KAAK,UAAU,CAAC;AACtC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,eAAe,CAC7B,OAA+B,EAC/B,YAAmB,EACnB,WAAmC;IAEnC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,UAAU,CAAC,OAAO,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC;IAEzE,MAAM,aAAa,GAAG,MAAM,EAAS,CAAC;IACtC,aAAa,CAAC,OAAO,GAAG,KAAK,CAAC;IAE9B,MAAM,eAAe,GAAG,WAAW,CACjC,SAAS,eAAe,CAAC,MAA2C;QAClE,IAAI,OAAO,CAAgB,MAAM,CAAC,EAAE;YAClC,OAAO,MAAM,CAAC,eAAe,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;SAC7D;QAED,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnB,CAAC;IACD,8CAA8C;IAC9C,uDAAuD;IACvD,EAAE,CACH,CAAC;IAEF,OAAO,CAAC,aAAa,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;AAClD,CAAC"}
1
+ {"version":3,"file":"useThunkReducer.js","sourceRoot":"","sources":["useThunkReducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAW,MAAM,OAAO,CAAC;AAOjE,SAAS,OAAO,CACd,MAA2C;IAE3C,OAAO,OAAO,MAAM,KAAK,UAAU,CAAC;AACtC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,eAAe,CAC7B,OAA+B,EAC/B,YAAmB,EACnB,WAAmC;IAEnC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,UAAU,CAAC,OAAO,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC;IAEzE,MAAM,aAAa,GAAG,MAAM,CAAe,IAAI,CAAC,CAAC;IACjD,aAAa,CAAC,OAAO,GAAG,KAAK,CAAC;IAE9B,MAAM,eAAe,GAAG,WAAW,CACjC,SAAS,eAAe,CAAC,MAA2C;QAClE,IAAI,OAAO,CAAgB,MAAM,CAAC,EAAE;YAClC,OAAO,MAAM,CAAC,eAAe,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;SAC7D;QAED,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnB,CAAC;IACD,8CAA8C;IAC9C,uDAAuD;IACvD,CAAC,aAAa,CAAC,CAChB,CAAC;IAEF,OAAO,CAAC,aAAa,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;AAClD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetshop/core",
3
- "version": "6.0.5",
3
+ "version": "6.0.6",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -75,8 +75,6 @@
75
75
  "typed-emitter": "^0.1.0",
76
76
  "universal-cookie-express": "^4.0.3",
77
77
  "uuid": "^8.3.2",
78
- "web-vitals": "^3.4.0",
79
- "web-vitals-reporter": "^1.0.0",
80
78
  "xstate": "^4.13.0"
81
79
  },
82
80
  "devDependencies": {
@@ -1,5 +0,0 @@
1
- export declare function setPageType(type: string): void;
2
- export declare function webVitals({ shopId, apiUrl }: {
3
- shopId: string;
4
- apiUrl: string;
5
- }): void;
@@ -1,39 +0,0 @@
1
- import { onCLS, onLCP, onFID } from 'web-vitals';
2
- import { createApiReporter, getDeviceInfo } from 'web-vitals-reporter';
3
- import { routeList } from '../boot/addMissingConfig';
4
- let globalPageType = undefined;
5
- export function setPageType(type) {
6
- if (!globalPageType) {
7
- globalPageType = type;
8
- }
9
- }
10
- export function webVitals({ shopId, apiUrl }) {
11
- var _a;
12
- // Init report callback with information about the browser.
13
- const deviceInfo = getDeviceInfo();
14
- Object.keys(routeList).forEach((route) => {
15
- var _a;
16
- if ((_a = deviceInfo === null || deviceInfo === void 0 ? void 0 : deviceInfo.url) === null || _a === void 0 ? void 0 : _a.includes(routeList[route])) {
17
- globalPageType = route;
18
- }
19
- });
20
- const sendToAnalytics = createApiReporter(`${apiUrl}/api/v1/webvitals`, {
21
- initial: {
22
- shopId: shopId,
23
- appName: 'flight',
24
- pageType: globalPageType,
25
- userAgent: deviceInfo === null || deviceInfo === void 0 ? void 0 : deviceInfo.userAgent,
26
- memory: deviceInfo === null || deviceInfo === void 0 ? void 0 : deviceInfo.memory,
27
- cpus: deviceInfo === null || deviceInfo === void 0 ? void 0 : deviceInfo.cpus,
28
- connection: (_a = deviceInfo === null || deviceInfo === void 0 ? void 0 : deviceInfo.connection) === null || _a === void 0 ? void 0 : _a.effectiveType
29
- },
30
- beforeSend: () => {
31
- return { pageType: globalPageType };
32
- }
33
- });
34
- // Setup web-vitals
35
- onLCP(sendToAnalytics);
36
- onFID(sendToAnalytics);
37
- onCLS(sendToAnalytics);
38
- }
39
- //# sourceMappingURL=webVitals.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webVitals.js","sourceRoot":"","sources":["webVitals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,IAAI,cAAc,GAAuB,SAAS,CAAC;AAEnD,MAAM,UAAU,WAAW,CAAC,IAAY;IACtC,IAAI,CAAC,cAAc,EAAE;QACnB,cAAc,GAAG,IAAI,CAAC;KACvB;AACH,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,EACxB,MAAM,EACN,MAAM,EAIP;;IACC,2DAA2D;IAC3D,MAAM,UAAU,GAAG,aAAa,EAAE,CAAC;IACnC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;;QACvC,IAAI,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,GAAG,0CAAE,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE;YAC/C,cAAc,GAAG,KAAK,CAAC;SACxB;IACH,CAAC,CAAC,CAAC;IACH,MAAM,eAAe,GAAG,iBAAiB,CAAC,GAAG,MAAM,mBAAmB,EAAE;QACtE,OAAO,EAAE;YACP,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,cAAc;YACxB,SAAS,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,SAAS;YAChC,MAAM,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM;YAC1B,IAAI,EAAE,UAAU,aAAV,U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