@jetshop/core 5.17.0-alpha.ed1f0f67 → 5.17.0-alpha.f52d63bc

Sign up to get free protection for your applications and to get access to all the features.
Files changed (255) hide show
  1. package/ChannelHandler/ChannelHandler.js.map +1 -1
  2. package/ChannelHandler/PreserveRedirectRouteQuery.gql +4 -4
  3. package/ChannelHandler/redirectUtils.d.ts +1 -1
  4. package/ChannelHandler/redirectUtils.js +5 -3
  5. package/ChannelHandler/redirectUtils.js.map +1 -1
  6. package/ChannelHandler/redirectUtils.test.js +5 -5
  7. package/ChannelHandler/redirectUtilsGroupedChannels.test.js +5 -5
  8. package/analytics/webVitals.js +5 -5
  9. package/analytics/webVitals.js.map +1 -1
  10. package/boot/NetworkStatusNotifier.d.ts +2 -0
  11. package/boot/NetworkStatusNotifier.js +4 -0
  12. package/boot/NetworkStatusNotifier.js.map +1 -0
  13. package/boot/SharedTree.d.ts +1 -1
  14. package/boot/SharedTree.js +1 -1
  15. package/boot/SharedTree.js.map +1 -1
  16. package/boot/apollo.d.ts +1 -2
  17. package/boot/apollo.js +13 -8
  18. package/boot/apollo.js.map +1 -1
  19. package/boot/client/entrypoint.js +0 -2
  20. package/boot/client/entrypoint.js.map +1 -1
  21. package/boot/client/startClient.js +9 -3
  22. package/boot/client/startClient.js.map +1 -1
  23. package/boot/server/IntervalQuery.d.ts +1 -1
  24. package/boot/server/IntervalQuery.js +2 -2
  25. package/boot/server/IntervalQuery.js.map +1 -1
  26. package/boot/server/IntervalQuery.test.js +9 -13
  27. package/boot/server/PersistedApolloClient.test.js +8 -7
  28. package/boot/server/createApolloServer.d.ts +2 -1
  29. package/boot/server/createApolloServer.js +5 -5
  30. package/boot/server/createApolloServer.js.map +1 -1
  31. package/boot/server/createRenderer.js +4 -2
  32. package/boot/server/createRenderer.js.map +1 -1
  33. package/boot/server/entrypoint.js +7 -4
  34. package/boot/server/entrypoint.js.map +1 -1
  35. package/boot/server/persistedQueries/__tests__/getPersistedQueriesForRequest.test.js +1 -1
  36. package/boot/utils/queryLoggingMiddleware.d.ts +1 -1
  37. package/boot/utils/queryLoggingMiddleware.js +2 -2
  38. package/boot/utils/queryLoggingMiddleware.js.map +1 -1
  39. package/cart/AddToCartFormik.d.ts +2 -2
  40. package/cart/AddToCartFormik.js +2 -2
  41. package/cart/AddToCartFormik.js.map +1 -1
  42. package/cart/useAddToCart.d.ts +1 -1
  43. package/components/Auth/ForgotPasswordProvider.d.ts +3 -3
  44. package/components/Auth/ForgotPasswordProvider.js +15 -15
  45. package/components/Auth/ForgotPasswordProvider.js.map +1 -1
  46. package/components/Auth/ResetPasswordProvider.d.ts +5 -3
  47. package/components/Auth/ResetPasswordProvider.js +1 -1
  48. package/components/Auth/ResetPasswordProvider.js.map +1 -1
  49. package/components/Auth/SSN.js +4 -4
  50. package/components/Auth/SSN.js.map +1 -1
  51. package/components/Auth/SignupFormContainer.d.ts +2 -2
  52. package/components/Auth/UpdatePasswordForm.js +6 -6
  53. package/components/Auth/UpdatePasswordForm.js.map +1 -1
  54. package/components/Auth/signup-context.d.ts +2 -2
  55. package/components/Auth/signup-context.js +2 -3
  56. package/components/Auth/signup-context.js.map +1 -1
  57. package/components/Auth/signupSubmit.js +4 -4
  58. package/components/Auth/signupSubmit.js.map +1 -1
  59. package/components/Auth/useAddressFields.js +3 -3
  60. package/components/Auth/useAddressFields.js.map +1 -1
  61. package/components/Auth/useAddressFields.test.js +10 -8
  62. package/components/Auth/useCustomer.d.ts +2 -2
  63. package/components/Auth/useCustomer.js +1 -1
  64. package/components/Auth/useCustomer.js.map +1 -1
  65. package/components/AuthContext/AuthProvider.js +2 -2
  66. package/components/AuthContext/AuthProvider.js.map +1 -1
  67. package/components/AuthContext/AuthProvider.test.js +1 -1
  68. package/components/AuthContext/LogOut.d.ts +2 -2
  69. package/components/ChannelContext/ChannelProvider.d.ts +1 -1
  70. package/components/ChannelContext/useCountrySettings.d.ts +1 -1
  71. package/components/ChannelContext/useCountrySettings.js +1 -1
  72. package/components/ChannelContext/useCountrySettings.js.map +1 -1
  73. package/components/DynamicRoute/ActiveFiltersQuery.gql +4 -4
  74. package/components/DynamicRoute/CategoryRoute.d.ts +3 -3
  75. package/components/DynamicRoute/CategoryRoute.js +6 -3
  76. package/components/DynamicRoute/CategoryRoute.js.map +1 -1
  77. package/components/DynamicRoute/ContentRoute.d.ts +1 -1
  78. package/components/DynamicRoute/GenericError.d.ts +18 -0
  79. package/components/DynamicRoute/GenericError.js +61 -0
  80. package/components/DynamicRoute/GenericError.js.map +1 -0
  81. package/components/DynamicRoute/PreviewRoute.d.ts +1 -1
  82. package/components/DynamicRoute/PreviewRoute.js +1 -1
  83. package/components/DynamicRoute/PreviewRoute.js.map +1 -1
  84. package/components/DynamicRoute/ProductByArticlenumber.d.ts +2 -2
  85. package/components/DynamicRoute/ProductByArticlenumber.js +2 -2
  86. package/components/DynamicRoute/ProductByArticlenumber.js.map +1 -1
  87. package/components/DynamicRoute/ProductRoute.d.ts +3 -3
  88. package/components/DynamicRoute/RouteResolver.d.ts +2 -2
  89. package/components/DynamicRoute/RouteResolver.js +2 -1
  90. package/components/DynamicRoute/RouteResolver.js.map +1 -1
  91. package/components/DynamicRoute/Status.d.ts +4 -4
  92. package/components/DynamicRoute/index.d.ts +4 -4
  93. package/components/DynamicRoute/index.js +47 -42
  94. package/components/DynamicRoute/index.js.map +1 -1
  95. package/components/Filters/utils/replaceInSearch.d.ts +1 -1
  96. package/components/Filters/utils/replaceInSearch.js.map +1 -1
  97. package/components/Mutation/AddToCartFormik.d.ts +1 -1
  98. package/components/Mutation/AddToCartFormik.js +2 -2
  99. package/components/Mutation/AddToCartFormik.js.map +1 -1
  100. package/components/Mutation/DecrementQuantity.d.ts +2 -2
  101. package/components/Mutation/DecrementQuantity.js +1 -1
  102. package/components/Mutation/DecrementQuantity.js.map +1 -1
  103. package/components/Mutation/IncrementQuantity.d.ts +2 -2
  104. package/components/Mutation/IncrementQuantity.js +1 -1
  105. package/components/Mutation/IncrementQuantity.js.map +1 -1
  106. package/components/Mutation/RemoveFromCart.d.ts +2 -2
  107. package/components/Mutation/RemoveFromCart.js +1 -1
  108. package/components/Mutation/RemoveFromCart.js.map +1 -1
  109. package/components/Mutation/SetQuantity.d.ts +2 -2
  110. package/components/Mutation/SetQuantity.js +1 -1
  111. package/components/Mutation/SetQuantity.js.map +1 -1
  112. package/components/Mutation/SubscribeToNewsletter.d.ts +1 -1
  113. package/components/Mutation/SubscribeToNewsletter.js +1 -1
  114. package/components/Mutation/SubscribeToNewsletter.js.map +1 -1
  115. package/components/Mutation/SubscribeToStockNotifications.d.ts +1 -1
  116. package/components/Mutation/SubscribeToStockNotifications.js +6 -2
  117. package/components/Mutation/SubscribeToStockNotifications.js.map +1 -1
  118. package/components/Mutation/cartMutationUtils.d.ts +1 -2
  119. package/components/Mutation/cartMutationUtils.js.map +1 -1
  120. package/components/Mutation/useDecrementQuantity.d.ts +1 -1
  121. package/components/Mutation/useDecrementQuantity.js +1 -1
  122. package/components/Mutation/useDecrementQuantity.js.map +1 -1
  123. package/components/Mutation/useIncrementQuantity.d.ts +1 -1
  124. package/components/Mutation/useIncrementQuantity.js +1 -1
  125. package/components/Mutation/useIncrementQuantity.js.map +1 -1
  126. package/components/Mutation/useRemoveFromCart.d.ts +1 -1
  127. package/components/Mutation/useRemoveFromCart.js +1 -1
  128. package/components/Mutation/useRemoveFromCart.js.map +1 -1
  129. package/components/Mutation/useSetQuantity.d.ts +1 -1
  130. package/components/Mutation/useSetQuantity.js +1 -1
  131. package/components/Mutation/useSetQuantity.js.map +1 -1
  132. package/components/Notifications/Notifications.d.ts +3 -3
  133. package/components/Notifications/Notifications.js +2 -3
  134. package/components/Notifications/Notifications.js.map +1 -1
  135. package/components/ProductConfigurationProvider/ProductConfigurationProvider.js +6 -6
  136. package/components/ProductConfigurationProvider/ProductConfigurationProvider.js.map +1 -1
  137. package/components/Query/CartProvider.d.ts +1 -1
  138. package/components/Query/CartProvider.js +1 -1
  139. package/components/Query/CartProvider.js.map +1 -1
  140. package/components/SortOrder/SortOrderContainer.d.ts +1 -1
  141. package/components/StructuredData/StructuredBreadcrumbData.d.ts +2 -2
  142. package/data/cache.d.ts +1 -1
  143. package/data/cache.js +62 -12
  144. package/data/cache.js.map +1 -1
  145. package/data/fragments/ProductListsFragments.gql +8 -8
  146. package/global.d.ts +29 -6
  147. package/helpers/getErrorDetail.d.ts +1 -1
  148. package/helpers/getErrorDetail.js +2 -2
  149. package/helpers/getErrorDetail.js.map +1 -1
  150. package/hooks/Filters/useBooleanFilter.d.ts +1 -1
  151. package/hooks/Filters/useBooleanFilter.js +1 -2
  152. package/hooks/Filters/useBooleanFilter.js.map +1 -1
  153. package/hooks/Filters/useFilters.d.ts +1 -1
  154. package/hooks/Filters/useFilters.js +1 -2
  155. package/hooks/Filters/useFilters.js.map +1 -1
  156. package/hooks/Filters/useListFilter.d.ts +2 -2
  157. package/hooks/Filters/useListFilter.js +1 -2
  158. package/hooks/Filters/useListFilter.js.map +1 -1
  159. package/hooks/Filters/useMultiFilter.d.ts +3 -3
  160. package/hooks/Filters/useMultiFilter.js +1 -2
  161. package/hooks/Filters/useMultiFilter.js.map +1 -1
  162. package/hooks/Filters/useRangeFilter.d.ts +2 -2
  163. package/hooks/Filters/useRangeFilter.js +1 -2
  164. package/hooks/Filters/useRangeFilter.js.map +1 -1
  165. package/hooks/Filters/useSortOrder.d.ts +6 -1
  166. package/hooks/Filters/useSortOrder.js.map +1 -1
  167. package/hooks/PackageProducts/usePackageProductItem.d.ts +1 -1
  168. package/hooks/PackageProducts/usePackageProductItem.js +1 -1
  169. package/hooks/PackageProducts/usePackageProductItem.js.map +1 -1
  170. package/hooks/PackageProducts/usePackageProducts.js +17 -17
  171. package/hooks/PackageProducts/usePackageProducts.js.map +1 -1
  172. package/hooks/PackageProducts/usePackageProducts.test.js +1 -1
  173. package/hooks/ProductList/ProductListContext.js +1 -1
  174. package/hooks/ProductList/ProductListContext.js.map +1 -1
  175. package/hooks/ProductList/action-creators.d.ts +1 -1
  176. package/hooks/ProductList/index.d.ts +1 -1
  177. package/hooks/ProductList/list-transforms.js +1 -1
  178. package/hooks/ProductList/list-transforms.js.map +1 -1
  179. package/hooks/ProductList/product-list-reducer.js +1 -1
  180. package/hooks/ProductList/product-list-reducer.js.map +1 -1
  181. package/hooks/ProductList/useProductList.js +1 -1
  182. package/hooks/ProductList/useProductList.js.map +1 -1
  183. package/hooks/ProductList/useProductListItems.js +1 -1
  184. package/hooks/ProductList/useProductListItems.js.map +1 -1
  185. package/hooks/Subscriptions/useNewsletterSubscription.js +3 -3
  186. package/hooks/Subscriptions/useNewsletterSubscription.js.map +1 -1
  187. package/hooks/Subscriptions/useStockNotifications.d.ts +1 -1
  188. package/hooks/Subscriptions/useStockNotifications.js +3 -3
  189. package/hooks/Subscriptions/useStockNotifications.js.map +1 -1
  190. package/hooks/Subscriptions/useStoreSubscriptions.d.ts +1 -1
  191. package/hooks/Subscriptions/useStoreSubscriptions.js +3 -6
  192. package/hooks/Subscriptions/useStoreSubscriptions.js.map +1 -1
  193. package/hooks/Subscriptions/useStoresubscriptions.test.js +5 -7
  194. package/hooks/useAddMultipleToCart.d.ts +1 -1
  195. package/hooks/useAddMultipleToCart.js +1 -1
  196. package/hooks/useAddMultipleToCart.js.map +1 -1
  197. package/hooks/useAddMultipleToCart.test.js +1 -1
  198. package/hooks/useCustomerOrders.test.js +7 -5
  199. package/hooks/useCustomerOrdersQuery.d.ts +2 -2
  200. package/hooks/useCustomerOrdersQuery.js +1 -1
  201. package/hooks/useCustomerOrdersQuery.js.map +1 -1
  202. package/hooks/useDeleteAccountMutation.js +3 -3
  203. package/hooks/useDeleteAccountMutation.js.map +1 -1
  204. package/hooks/useInfinitePagination.d.ts +1 -1
  205. package/hooks/useInfinitePagination.js +4 -1
  206. package/hooks/useInfinitePagination.js.map +1 -1
  207. package/hooks/useLoginMutation.d.ts +3 -3
  208. package/hooks/useLoginMutation.js +2 -2
  209. package/hooks/useLoginMutation.js.map +1 -1
  210. package/hooks/useLoginRedirect.js +2 -2
  211. package/hooks/useLoginRedirect.js.map +1 -1
  212. package/hooks/useOrderDetailQuery.d.ts +3 -3
  213. package/hooks/useOrderDetailQuery.js +1 -1
  214. package/hooks/useOrderDetailQuery.js.map +1 -1
  215. package/hooks/useRoutePreload.js +1 -1
  216. package/hooks/useRoutePreload.js.map +1 -1
  217. package/hooks/useStockStatus.d.ts +8 -0
  218. package/hooks/useStockStatus.js +26 -0
  219. package/hooks/useStockStatus.js.map +1 -0
  220. package/integrations/sluggishSchemaExtension.js +1 -1
  221. package/integrations/sluggishSchemaExtension.js.map +1 -1
  222. package/package.json +19 -37
  223. package/polyfills.js +0 -2
  224. package/polyfills.js.map +1 -1
  225. package/resolvers/filters/boolFilter.js +24 -27
  226. package/resolvers/filters/boolFilter.js.map +1 -1
  227. package/resolvers/filters/filterParams.js +8 -8
  228. package/resolvers/filters/filterParams.js.map +1 -1
  229. package/resolvers/filters/filters.js +5 -5
  230. package/resolvers/filters/filters.js.map +1 -1
  231. package/resolvers/filters/index.d.ts +0 -4
  232. package/resolvers/filters/listFilter.js +24 -29
  233. package/resolvers/filters/listFilter.js.map +1 -1
  234. package/resolvers/filters/listFilterItem.js +31 -36
  235. package/resolvers/filters/listFilterItem.js.map +1 -1
  236. package/resolvers/filters/multiListFilter.js +41 -42
  237. package/resolvers/filters/multiListFilter.js.map +1 -1
  238. package/resolvers/filters/multiListFilterList.js +1 -1
  239. package/resolvers/filters/multiListFilterList.js.map +1 -1
  240. package/resolvers/filters/rangeFilter.js +27 -43
  241. package/resolvers/filters/rangeFilter.js.map +1 -1
  242. package/test-utils/ProviderPyramid.js +1 -1
  243. package/types.d.ts +1820 -1955
  244. package/components/Fonts/GoogleFont.d.ts +0 -10
  245. package/components/Fonts/GoogleFont.js +0 -35
  246. package/components/Fonts/GoogleFont.js.map +0 -1
  247. package/components/Fonts/TypekitFont.d.ts +0 -16
  248. package/components/Fonts/TypekitFont.js +0 -25
  249. package/components/Fonts/TypekitFont.js.map +0 -1
  250. package/integrations/addwishSchemaExtension.d.ts +0 -35
  251. package/integrations/addwishSchemaExtension.js +0 -141
  252. package/integrations/addwishSchemaExtension.js.map +0 -1
  253. package/integrations/nostoSchemaExtension.d.ts +0 -5
  254. package/integrations/nostoSchemaExtension.js +0 -77
  255. package/integrations/nostoSchemaExtension.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import { useApolloClient, useQuery } from '@apollo/react-hooks';
2
1
  import { useMachine } from '@xstate/react';
3
- import produce from 'immer';
2
+ import { useApolloClient, useQuery } from '@apollo/client';
3
+ import { produce } from 'immer';
4
4
  import { useCallback, useEffect, useMemo, useRef } from 'react';
5
5
  import { assign, Machine } from 'xstate';
6
6
  import { useAddMultipleToCart } from '../useAddMultipleToCart';
@@ -27,7 +27,7 @@ const stateMachine = Machine({
27
27
  UPDATE_ITEM: {
28
28
  actions: 'updateItems',
29
29
  target: 'validating',
30
- cond: context => Object.keys(context.items).length > 0
30
+ cond: (context) => Object.keys(context.items).length > 0
31
31
  }
32
32
  },
33
33
  states: {
@@ -38,14 +38,14 @@ const stateMachine = Machine({
38
38
  {
39
39
  target: 'validating',
40
40
  actions: assign({
41
- items: context => {
41
+ items: (context) => {
42
42
  return getInitialState(context.packageProduct).items;
43
43
  },
44
- price: context => {
44
+ price: (context) => {
45
45
  return getInitialState(context.packageProduct).price;
46
46
  }
47
47
  }),
48
- cond: context => {
48
+ cond: (context) => {
49
49
  return !!context.packageProduct.package;
50
50
  }
51
51
  }
@@ -74,13 +74,13 @@ const stateMachine = Machine({
74
74
  always: [
75
75
  {
76
76
  target: 'valid',
77
- cond: context => {
77
+ cond: (context) => {
78
78
  return deriveStatus(context.items) === 'valid';
79
79
  }
80
80
  },
81
81
  {
82
82
  target: 'invalid',
83
- cond: context => {
83
+ cond: (context) => {
84
84
  return deriveStatus(context.items) !== 'valid';
85
85
  }
86
86
  }
@@ -148,7 +148,7 @@ const stateMachine = Machine({
148
148
  invoke: {
149
149
  id: 'added-refetch',
150
150
  src: () => {
151
- return new Promise(resolve => {
151
+ return new Promise((resolve) => {
152
152
  setTimeout(() => {
153
153
  resolve(400);
154
154
  }, 800);
@@ -183,7 +183,7 @@ const stateMachine = Machine({
183
183
  }
184
184
  }
185
185
  const { articleNumber, valid, variantArticleNumber } = event;
186
- const items = produce(context.items, draft => {
186
+ const items = produce(context.items, (draft) => {
187
187
  draft[articleNumber] = Object.assign(Object.assign({}, draft[articleNumber]), { valid,
188
188
  variantArticleNumber });
189
189
  });
@@ -203,7 +203,7 @@ function getInitialState(packageProduct) {
203
203
  hasVariants: item.product.hasVariants,
204
204
  variantArticleNumber: null,
205
205
  variants: item.product.hasVariants
206
- ? (_a = item.product.variants) === null || _a === void 0 ? void 0 : _a.values.map(variant => variant.articleNumber)
206
+ ? (_a = item.product.variants) === null || _a === void 0 ? void 0 : _a.values.map((variant) => variant.articleNumber)
207
207
  : null,
208
208
  valid: !itemHasVariants(item) && !itemIsOutOfStock(item),
209
209
  quantity: item.minQuantity
@@ -216,13 +216,13 @@ function getInitialState(packageProduct) {
216
216
  function flattenItems(items) {
217
217
  // perhaps we need the rest of the product detail?
218
218
  // Or otherwise the types need to be changed
219
- return Object.entries(items).map(entry => {
219
+ return Object.entries(items).map((entry) => {
220
220
  const { articleNumber, variantArticleNumber, quantity, product } = entry[1];
221
221
  return Object.assign(Object.assign({}, product), { articleNumber: variantArticleNumber || articleNumber, quantity });
222
222
  });
223
223
  }
224
224
  function deriveStatus(packageItems) {
225
- const packageIsValid = Object.values(packageItems).every(item => item.valid);
225
+ const packageIsValid = Object.values(packageItems).every((item) => item.valid);
226
226
  if (packageIsValid) {
227
227
  return 'valid';
228
228
  }
@@ -234,7 +234,7 @@ function fetchPrice(packageArticleNumber, items, opts) {
234
234
  query: opts.query || packagePriceQuery,
235
235
  variables: {
236
236
  articleNumber: packageArticleNumber,
237
- products: Object.entries(items).map(entry => {
237
+ products: Object.entries(items).map((entry) => {
238
238
  // This should be cleaned up - we have to transform to the structure
239
239
  // that the API expects
240
240
  const { articleNumber, variantArticleNumber } = entry[1];
@@ -249,7 +249,7 @@ function fetchPrice(packageArticleNumber, items, opts) {
249
249
  })
250
250
  .then(({ data }) => {
251
251
  return data.product.package;
252
- }, err => {
252
+ }, (err) => {
253
253
  return Promise.reject(err.graphQLErrors);
254
254
  });
255
255
  }
@@ -267,7 +267,7 @@ export function usePackageProduct({ product, packageProductQuery, priceQuery })
267
267
  // it. Otherwise, use the product passed in
268
268
  context: { packageProduct: (data === null || data === void 0 ? void 0 : data.product) || product },
269
269
  services: {
270
- fetchPrice: context => {
270
+ fetchPrice: (context) => {
271
271
  return fetchPrice(product.articleNumber, context.items, {
272
272
  apolloClient: client,
273
273
  query: priceQuery
@@ -275,7 +275,7 @@ export function usePackageProduct({ product, packageProductQuery, priceQuery })
275
275
  },
276
276
  addToCart: (_, event) => {
277
277
  // eslint-disable-next-line
278
- return addToCartMutation(event.queries).then(result => {
278
+ return addToCartMutation(event.queries).then((result) => {
279
279
  if (result.errors) {
280
280
  return Promise.reject(result.errors);
281
281
  }
@@ -1 +1 @@
1
- {"version":3,"file":"usePackageProducts.js","sourceRoot":"","sources":["usePackageProducts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEzC,OAAO,EAGL,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,iBAAiB,MAAM,yBAAyB,CAAC;AAGxD,oDAAoD;AACpD,iEAAiE;AACjE,0CAA0C;AAC1C,2CAA2C;AAC3C,6CAA6C;AAC7C,6CAA6C;AAC7C,0CAA0C;AAC1C,EAAE;AAEF,SAAS,eAAe,C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AAI,EAAE,OAAO;aACd,CAAC,CAAC;SACJ;IACH,CAAC,EACD,CAAC,IAAI,EAAE,MAAM,CAAC,CACf,CAAC;IAEF,OAAO;QACL,MAAM;QACN,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK;QAC5B,gBAAgB;QAChB,iBAAiB;QACjB,cAAc,EAAE,OAAO,CAAC,OAAO,CAAC,cAAc;QAC9C,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK;QAC5B,KAAK;KACN,CAAC;AACJ,CAAC"}
@@ -1,8 +1,8 @@
1
+ import { gql } from '@apollo/client';
1
2
  import React from 'react';
2
3
  import { usePackageProduct } from './';
3
4
  import { renderHook, act } from '@testing-library/react-hooks';
4
5
  import { ProviderPyramid } from '../../test-utils/ProviderPyramid';
5
- import gql from 'graphql-tag';
6
6
 
7
7
  //////////////////////////////////////////////////////////////////////////////
8
8
  // MOCKS
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import React, { useEffect, useMemo } from 'react';
13
- import { useMutation, useQuery } from 'react-apollo';
13
+ import { useMutation, useQuery } from '@apollo/client';
14
14
  import useWarningInDev from '@jetshop/core/hooks/useWarningInDev';
15
15
  import productListQueries from '@jetshop/core/data/queries/ProductLists.gql';
16
16
  import productListMutations from '@jetshop/core/data/mutations/productListMutations.gql';
@@ -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,cAAc,CAAC;AAErD,OAAO,eAAe,MAAM,qCAAqC,CAAC;AAClE,OAAO,kBAAkB,MAAM,6CAA6C,CAAC;AAC7E,OAAO,oBAAoB,MAAM,uDAAuD,CAAC;AACzF,OAAO,EAEL,iBAAiB,E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AK,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,5 +1,5 @@
1
+ import { MutationFunction } from '@apollo/client';
1
2
  import React from 'react';
2
- import { MutationFunction } from 'react-apollo';
3
3
  import { AddToListMutation, ProductListItemOptions, ProductListState, ProductListId, RemoveFromListMutation, UpdateListInput, UpdateListOptions } from '.';
4
4
  import { Mutation } from '../../types';
5
5
  import { Action } from './product-list-reducer';
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
+ import { MutationTuple, QueryResult } from '@apollo/client';
2
3
  import { DocumentNode } from 'graphql';
3
- import { MutationTuple, QueryResult } from 'react-apollo';
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';
@@ -1,4 +1,4 @@
1
- import produce from 'immer';
1
+ import { produce } from 'immer';
2
2
  import { validateProduct } from './validate-product';
3
3
  /**
4
4
  * Converts a product list returned from the API to our normalized structure
@@ -1 +1 @@
1
- {"version":3,"file":"list-transforms.js","sourceRoot":"","sources":["list-transforms.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAW5B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CACjC,WAAgC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O;iBAC/C,CAAC,CAAC;aACJ;SACF;aAAM;YACL,aAAa,CAAC,IAAI,CAAC;gBACjB,aAAa,EAAE,iBAAiB;gBAChC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,OAAO;aAC/C,CAAC,CAAC;SACJ;KACF;IAED,OAAO,aAAa,CAAC;AACvB,CAAC"}
@@ -1,4 +1,4 @@
1
- import produce, { enableMapSet } from 'immer';
1
+ import { enableMapSet, produce } from 'immer';
2
2
  // The Product lists are stored as a Map so need to enable Map support for Immer
3
3
  enableMapSet();
4
4
  import { emptyProductLists, PRODUCT_LISTS_KEY, productListArrayToMap } from '.';
@@ -1 +1 @@
1
- {"version":3,"file":"product-list-reducer.js","sourceRoot":"","sources":["product-list-reducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EAAE,YAAY,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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,KAAK,CAAC;YAC5C,KAAK,CAAC,aAAa,CAAC,GAAG;gBACrB,OAAO,EAAE,IAAI;gBACb,QAAQ,kCACH,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"}
@@ -1,5 +1,5 @@
1
+ import { useMutation } from '@apollo/client';
1
2
  import React, { useEffect, useMemo, useState } from 'react';
2
- import { useMutation } from 'react-apollo';
3
3
  import { addAction, clearAction, removeAction, updateAction } from './action-creators';
4
4
  import { flattenList } from './list-transforms';
5
5
  import { ProductListContext } from './ProductListContext';
@@ -1 +1 @@
1
- {"version":3,"file":"useProductList.js","sourceRoot":"","sources":["useProductList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAO3C,OAAO,EACL,SAAS,EACT,WAAW,EACX,YAAY,EACZ,YAAY,EACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,MAAM,UAAU,cAAc,CAAC,SAAwB,IAAI;IACzD,MAAM;IACJ,MAAM;IACN,uBAAuB;IACvB,KAAK,EACL,QAAQ,EACR,OAAO,EACP,cAAc,EACf,GAAG,KAAK,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAEzC,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,C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;IAED,SAAS,MAAM,CACb,aAAqB,EACrB,EAAE,oBAAoB,EAAmB;;QAEzC,IAAI,CAAC,QAAQ;YAAE,OAAO,KAAK,CAAC;QAE5B,IAAI,IAAI,IAAI,aAAa,IAAI,IAAI,CAAC,KAAK,EAAE;YACvC,IAAI,CAAC,oBAAoB;gBAAE,OAAO,IAAI,CAAC;YAEvC,MAAM,aAAa,GACjB,CAAC,CAAC,CAAA,MAAA,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,QAAQ,0CAAG,oBAAoB,CAAC,CAAA,CAAC;YAE/D,OAAO,aAAa,CAAC;SACtB;aAAM;YACL,OAAO,KAAK,CAAC;SACd;IACH,CAAC;IAED,0EAA0E;IAC1E,4EAA4E;IAC5E,SAAS,CAAC,GAAG,EAAE;QACb,WAAW,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,EAAE;QACzB,OAAO,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IACjD,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;IAErB,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AACrE,CAAC"}
@@ -1,5 +1,5 @@
1
+ import { useQuery } from '@apollo/client';
1
2
  import { useContext, useMemo, useState, useEffect } from 'react';
2
- import { useQuery } from 'react-apollo';
3
3
  import { flattenList, getProductDetailForFlattenedProductList } from './list-transforms';
4
4
  import { ProductListContext } from './ProductListContext';
5
5
  import getErrorDetail from '../../helpers/getErrorDetail';
@@ -1 +1 @@
1
- {"version":3,"file":"useProductListItems.js","sourceRoot":"","sources":["useProductListItems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,E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AE,QAAQ,CAAC,CAAC,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI;KACtD,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
9
9
  }
10
10
  return t;
11
11
  };
12
- import { useMutation } from 'react-apollo';
12
+ import { useMutation } from '@apollo/client';
13
13
  import subscribeToNewsletterMutation from '@jetshop/core/data/mutations/subscribeToNewsletter.gql';
14
14
  import { useStoreSubscriptions } from './useStoreSubscriptions';
15
15
  function useNewsletterSubscription({ enabled }) {
@@ -26,8 +26,8 @@ function useNewsletterSubscription({ enabled }) {
26
26
  email: fields.email
27
27
  }
28
28
  })
29
- .then(data => resolve(data))
30
- .catch(error => reject(error));
29
+ .then((data) => resolve(data))
30
+ .catch((error) => reject(error));
31
31
  });
32
32
  }
33
33
  const errorStates = {
@@ -1 +1 @@
1
- {"version":3,"file":"useNewsletterSubscription.js","sourceRoot":"","sources":["useNewsletterSubscription.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,6BAA6B,MAAM,wDAAwD,CAAC;AACnG,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,SAAS,yBAAyB,CAAC,EAAE,OAAO,EAAyB;;IACnE,MAAM,CAAC,iBAAiB,CAAC,GAAG,WAAW,CAGrC,6BAA6B,CAAC,CAAC;IAEjC,MAAM,KAAoC,qBAAqB,CAAC;QAC9D,QAAQ,EAAE,EAAE,SAAS,EAAE;QACvB,OAAO;KACR,CAAC,EAHI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,OAG1B,EAH+B,IAAI,cAA/B,4BAAiC,CAGrC,CAAC;IAEH,SAAS,SAAS;QAChB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,OAAO,iBAAiB,CAAC;gBACv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AI,cAA/B,4BAAiC,CAGrC,CAAC;IAEH,SAAS,SAAS;QAChB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,OAAO,iBAAiB,CAAC;gBACvB,SAAS,EAAE;oBACT,KAAK,EAAE,MAAM,CAAC,KAAK;iBACpB;aACF,CAAC;iBACC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;iBAC7B,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,WAAW,GAAG;QAClB,YAAY,EACV,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,+BAA+B,CAAC;QACzE,iBAAiB,EACf,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,mBAAmB,CAAC;KAC9D,CAAC;IAEF,MAAM,UAAU,mCACX,KAAK,KACR,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,MAAA,MAAM,CAAC,KAAK,mCAAI,EAAE,GAC1B,CAAC;IAEF,qDACK,MAAM,GACN,IAAI,KACP,UAAU;QACV,WAAW,IACX;AACJ,CAAC;AAED,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
@@ -19,7 +19,7 @@ declare function useStockNotifications({ articleNumber, enabled }: {
19
19
  context: import("./useStoreSubscriptions").SubscribeContext;
20
20
  }>;
21
21
  };
22
- error: string[] | import("apollo-client").ApolloError;
22
+ error: string[] | import("@apollo/client").ApolloError;
23
23
  toggle: () => import("xstate").State<import("./useStoreSubscriptions").SubscribeContext, import("xstate").AnyEventObject, any, {
24
24
  value: any;
25
25
  context: import("./useStoreSubscriptions").SubscribeContext;
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
9
9
  }
10
10
  return t;
11
11
  };
12
- import { useMutation } from 'react-apollo';
12
+ import { useMutation } from '@apollo/client';
13
13
  import subscribeToStockNotificationsMutation from '@jetshop/core/data/mutations/subscribeToStockNotifications.gql';
14
14
  import { useStoreSubscriptions } from './useStoreSubscriptions';
15
15
  function useStockNotifications({ articleNumber, enabled = false }) {
@@ -27,8 +27,8 @@ function useStockNotifications({ articleNumber, enabled = false }) {
27
27
  email: fields.email
28
28
  }
29
29
  })
30
- .then(data => resolve(data))
31
- .catch(error => reject(error));
30
+ .then((data) => resolve(data))
31
+ .catch((error) => reject(error));
32
32
  });
33
33
  }
34
34
  const inputProps = Object.assign(Object.assign({}, input), { name: 'email', value: (_a = fields.email) !== null && _a !== void 0 ? _a : '' });
@@ -1 +1 @@
1
- {"version":3,"file":"useStockNotifications.js","sourceRoot":"","sources":["useStockNotifications.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,qCAAqC,MAAM,gEAAgE,CAAC;AACnH,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAMhE,SAAS,qBAAqB,CAAC,EAC7B,aAAa,EACb,OAAO,GAAG,KAAK,EAIhB;;IACC,MAAM,CAAC,iBAAiB,CAAC,GAAG,WAAW,CAGrC,qCAAqC,CAAC,CAAC;IAEzC,MAAM,KAA6B,qBAAqB,CAAC;QACvD,QAAQ,EAAE,EAAE,SAAS,EAAE;QACvB,OAAO;KACR,CAAC,EAHI,EAAE,MAAM,EAAE,KAAK,OAGnB,EAHwB,IAAI,cAAxB,mBAA0B,CAG9B,CAAC;IAEH,SAAS,SAAS;QAChB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,OAAO,iBAAiB,CAAC;gBACvB,SAAS,EAAE;oBACT,aAAa;oBACb,KAAK,EAAE,MAAM,CAAC,KAAK;iBACpB;aACF,CAAC;iBACC,IAAI,CAAC,IAAI,CAAC,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,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,UAAU,mCACX,KAAK,KACR,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,MAAA,MAAM,CAAC,KAAK,mCAAI,EAAE,GAC1B,CAAC;IAEF,qDACK,MAAM,GACN,IAAI,KACP,UAAU,IACV;AACJ,CAAC;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ApolloError } from 'apollo-client';
1
+ import { ApolloError } from '@apollo/client';
2
2
  import { ChangeEvent } from 'react';
3
3
  import { AnyEventObject, ServiceConfig } from 'xstate';
4
4
  export interface SubscribeContext {
@@ -11,7 +11,7 @@ const setError = assign({
11
11
  error: (_, event) => event.data
12
12
  });
13
13
  const interpretError = assign({
14
- error: context => getErrorDetail(context.error).codes
14
+ error: (context) => getErrorDetail(context.error).codes
15
15
  });
16
16
  const unsetError = assign({ error: null });
17
17
  const unsetFields = assign({ fields: {} });
@@ -117,7 +117,7 @@ function useStoreSubscriptions({ services, enabled }) {
117
117
  key: event.target.name,
118
118
  value: event.target.value
119
119
  }), [send]);
120
- const submit = useCallback(e => {
120
+ const submit = useCallback((e) => {
121
121
  e.preventDefault();
122
122
  send('TRY_SUBMIT');
123
123
  }, [send]);
@@ -132,10 +132,7 @@ function useStoreSubscriptions({ services, enabled }) {
132
132
  failed: current.matches('failed')
133
133
  }), [current]);
134
134
  const { inactive } = states;
135
- const toggle = useCallback(() => send(inactive ? 'ACTIVATE' : 'INACTIVATE'), [
136
- inactive,
137
- send
138
- ]);
135
+ const toggle = useCallback(() => send(inactive ? 'ACTIVATE' : 'INACTIVATE'), [inactive, send]);
139
136
  const input = {
140
137
  onFocus,
141
138
  onBlur,
@@ -1 +1 @@
1
- {"version":3,"file":"useStoreSubscriptions.js","sourceRoot":"","sources":["useStoreSubscriptions.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,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AM;QACN,MAAM;QACN,MAAM,IACN;AACJ,CAAC;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
@@ -1,12 +1,10 @@
1
1
  import { act, renderHook } from '@testing-library/react-hooks';
2
- import { InMemoryCache } from 'apollo-cache-inmemory';
3
- import { ApolloClient } from 'apollo-client';
4
- import { MockLink } from 'apollo-link-mock';
2
+ import { ApolloClient, ApolloProvider, InMemoryCache } from '@apollo/client';
3
+ import { MockLink } from '@apollo/client';
5
4
  import React from 'react';
6
- import { ApolloProvider } from 'react-apollo';
7
5
  import { useStoreSubscriptions } from './useStoreSubscriptions';
8
6
 
9
- const wrapper = props => <WithApolloProvider {...props} />;
7
+ const wrapper = (props) => <WithApolloProvider {...props} />;
10
8
 
11
9
  const event = {
12
10
  preventDefault: () => null
@@ -113,7 +111,7 @@ describe('useStoreSubscriptions', () => {
113
111
  useStoreSubscriptions({
114
112
  ...subscriptionArgs,
115
113
  services: {
116
- trySubmit: data => Promise.resolve(data)
114
+ trySubmit: (data) => Promise.resolve(data)
117
115
  }
118
116
  }),
119
117
  wrapper
@@ -145,7 +143,7 @@ describe('useStoreSubscriptions', () => {
145
143
  useStoreSubscriptions({
146
144
  ...subscriptionArgs,
147
145
  services: {
148
- trySubmit: error => Promise.reject(error)
146
+ trySubmit: (error) => Promise.reject(error)
149
147
  }
150
148
  }),
151
149
  wrapper
@@ -1,4 +1,4 @@
1
- import { FetchResult, DocumentNode } from 'apollo-link';
1
+ import { FetchResult, DocumentNode } from '@apollo/client';
2
2
  import { CartMutation, AddMultipleToCartInput, Product } from '../types';
3
3
  type AddMultipleToCartMutationResponse = FetchResult<{
4
4
  addMultipleToCart: CartMutation;
@@ -1,4 +1,4 @@
1
- import { useApolloClient } from '@apollo/react-hooks';
1
+ import { useApolloClient } from '@apollo/client';
2
2
  import { CartIdContext } from '@jetshop/core/components/Cart/CartIdContext';
3
3
  import { useContext, useState } from 'react';
4
4
  import throwErrorInDev from '../helpers/throwErrorInDev';
@@ -1 +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ACnB,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,OAAO,KAAI,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YAC7C,iEAAiE;YACjE,qBAAqB;YACrB,gGAAgG;QAClG,CAAC,CAA0D,CAAC;IAChE,CAAC;IAED,+EAA+E;IAC/E,6EAA6E;IAC7E,0EAA0E;IAC1E,0CAA0C;IAC1C,MAAM,WAAW,GAA8C,IAAI,GAAG,EAAE,CAAC;IAEzE,IAAI,MAAM,KAAK,gBAAgB,EAAE;QAC/B,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,MAAM,EAAE;YAC/B,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAEhD,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;SAC9C;KACF;IACD,8BAA8B;IAE9B,sDAAsD;IACtD,OAAO;QACL,WAAW;QACX;YACE,OAAO,EAAE,MAAM,KAAK,SAAS;YAC7B,MAAM,EAAE,MAAM,KAAK,MAAM;YACzB,KAAK,EAAE,MAAM,KAAK,OAAO;YACzB,IAAI;YACJ,WAAW;SACZ;KACF,CAAC;AACJ,CAAC"}
@@ -1,5 +1,5 @@
1
+ import { gql } from '@apollo/client';
1
2
  import { act, renderHook } from '@testing-library/react-hooks';
2
- import gql from 'graphql-tag';
3
3
  import { ProviderPyramid } from 'ProviderPyramid';
4
4
  import React from 'react';
5
5
  import { CartIdProvider } from '../components/Cart/CartIdContext';
@@ -1,9 +1,11 @@
1
- import { InMemoryCache } from 'apollo-cache-inmemory';
2
- import { ApolloClient } from 'apollo-client';
3
- import { MockLink } from 'apollo-link-mock';
4
- import gql from 'graphql-tag';
1
+ import {
2
+ ApolloClient,
3
+ ApolloProvider,
4
+ InMemoryCache,
5
+ gql
6
+ } from '@apollo/client';
7
+ import { MockLink } from '@apollo/client';
5
8
  import * as React from 'react';
6
- import { ApolloProvider } from 'react-apollo';
7
9
  import { render, wait, cleanup } from '@testing-library/react';
8
10
  import useCustomerOrders from './useCustomerOrdersQuery';
9
11
  import throwErrorInDev from '../helpers/throwErrorInDev';
@@ -11,11 +11,11 @@ interface UseCustomerOrdersQuery {
11
11
  export default function useCustomerOrdersQuery({ query, variables }: UseCustomerOrdersQuery): {
12
12
  loading: boolean;
13
13
  orders: OrderHeader[];
14
- result: import("react-apollo").QueryResult<{
14
+ result: import("@apollo/client").QueryResult<{
15
15
  customer: {
16
16
  orderHeaders: OrderHeaderResult;
17
17
  };
18
- }, import("react-apollo").OperationVariables>;
18
+ }, import("@apollo/client").OperationVariables>;
19
19
  totalOrders: number;
20
20
  };
21
21
  export {};
@@ -1,4 +1,4 @@
1
- import { useQuery } from '@apollo/react-hooks';
1
+ import { useQuery } from '@apollo/client';
2
2
  import throwErrorInDev from '../helpers/throwErrorInDev';
3
3
  /**
4
4
  * Takes in the orderHeaders query and optional query variables, and returns
@@ -1 +1 @@
1
- {"version":3,"file":"useCustomerOrdersQuery.js","sourceRoot":"","sources":["useCustomerOrdersQuery.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,eAAe,MAAM,4BAA4B,CAAC;AAYzD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,KAAK,EACL,SAAS,EACc;;IACvB,MAAM,MAAM,GAAG,QAAQ,CACrB,KAAK,EACL,EAAE,SAAS,EAAE,CACd,CAAC;IACF,eAAe,CACb,CAAC,MAAM,CAAC,OAAO,IAAI,CAAC,CAAA,MAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,0CAAE,QAAQ,0CAAE,YAAY,CAAA,EACxD,uEAAuE,CACxE,CAAC;IAEF,MAAM,MAAM,GACV,MAAA,MAAA,MAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAA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