@jetshop/core 5.17.0-alpha.c701d997 → 5.17.0-alpha.d3f57df3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (257) 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/startClient.js +18 -5
  20. package/boot/client/startClient.js.map +1 -1
  21. package/boot/server/IntervalQuery.d.ts +1 -1
  22. package/boot/server/IntervalQuery.js +2 -2
  23. package/boot/server/IntervalQuery.js.map +1 -1
  24. package/boot/server/IntervalQuery.test.js +9 -13
  25. package/boot/server/PersistedApolloClient.test.js +8 -7
  26. package/boot/server/createApolloServer.d.ts +2 -1
  27. package/boot/server/createApolloServer.js +5 -5
  28. package/boot/server/createApolloServer.js.map +1 -1
  29. package/boot/server/createRenderer.js +4 -2
  30. package/boot/server/createRenderer.js.map +1 -1
  31. package/boot/server/entrypoint.js +7 -4
  32. package/boot/server/entrypoint.js.map +1 -1
  33. package/boot/server/persistedQueries/__tests__/getPersistedQueriesForRequest.test.js +1 -1
  34. package/boot/utils/queryLoggingMiddleware.d.ts +1 -1
  35. package/boot/utils/queryLoggingMiddleware.js +2 -2
  36. package/boot/utils/queryLoggingMiddleware.js.map +1 -1
  37. package/cart/AddToCartFormik.d.ts +2 -2
  38. package/cart/AddToCartFormik.js +2 -2
  39. package/cart/AddToCartFormik.js.map +1 -1
  40. package/cart/useAddToCart.d.ts +1 -1
  41. package/components/Auth/ForgotPasswordProvider.d.ts +4 -6
  42. package/components/Auth/ForgotPasswordProvider.js +18 -18
  43. package/components/Auth/ForgotPasswordProvider.js.map +1 -1
  44. package/components/Auth/ResetPasswordProvider.d.ts +5 -3
  45. package/components/Auth/ResetPasswordProvider.js +1 -1
  46. package/components/Auth/ResetPasswordProvider.js.map +1 -1
  47. package/components/Auth/SSN.js +4 -4
  48. package/components/Auth/SSN.js.map +1 -1
  49. package/components/Auth/SignupFormContainer.d.ts +2 -5
  50. package/components/Auth/SignupFormContainer.js.map +1 -1
  51. package/components/Auth/UpdatePasswordForm.js +6 -6
  52. package/components/Auth/UpdatePasswordForm.js.map +1 -1
  53. package/components/Auth/signup-context.d.ts +2 -2
  54. package/components/Auth/signup-context.js +2 -3
  55. package/components/Auth/signup-context.js.map +1 -1
  56. package/components/Auth/signupSubmit.js +4 -4
  57. package/components/Auth/signupSubmit.js.map +1 -1
  58. package/components/Auth/useAddressFields.js +3 -3
  59. package/components/Auth/useAddressFields.js.map +1 -1
  60. package/components/Auth/useAddressFields.test.js +10 -8
  61. package/components/Auth/useCustomer.d.ts +2 -2
  62. package/components/Auth/useCustomer.js +1 -1
  63. package/components/Auth/useCustomer.js.map +1 -1
  64. package/components/AuthContext/AuthProvider.js +2 -2
  65. package/components/AuthContext/AuthProvider.js.map +1 -1
  66. package/components/AuthContext/AuthProvider.test.js +1 -1
  67. package/components/AuthContext/LogOut.d.ts +2 -2
  68. package/components/ChannelContext/ChannelProvider.d.ts +1 -1
  69. package/components/ChannelContext/useCountrySettings.d.ts +1 -1
  70. package/components/ChannelContext/useCountrySettings.js +1 -1
  71. package/components/ChannelContext/useCountrySettings.js.map +1 -1
  72. package/components/DynamicRoute/ActiveFiltersQuery.gql +4 -4
  73. package/components/DynamicRoute/CategoryRoute.d.ts +3 -3
  74. package/components/DynamicRoute/CategoryRoute.js +6 -3
  75. package/components/DynamicRoute/CategoryRoute.js.map +1 -1
  76. package/components/DynamicRoute/ContentRoute.d.ts +1 -1
  77. package/components/DynamicRoute/GenericError.d.ts +18 -0
  78. package/components/DynamicRoute/GenericError.js +61 -0
  79. package/components/DynamicRoute/GenericError.js.map +1 -0
  80. package/components/DynamicRoute/PreviewRoute.d.ts +1 -1
  81. package/components/DynamicRoute/PreviewRoute.js +1 -1
  82. package/components/DynamicRoute/PreviewRoute.js.map +1 -1
  83. package/components/DynamicRoute/ProductByArticlenumber.d.ts +2 -2
  84. package/components/DynamicRoute/ProductByArticlenumber.js +2 -2
  85. package/components/DynamicRoute/ProductByArticlenumber.js.map +1 -1
  86. package/components/DynamicRoute/ProductRoute.d.ts +3 -3
  87. package/components/DynamicRoute/RouteResolver.d.ts +2 -2
  88. package/components/DynamicRoute/RouteResolver.js +2 -1
  89. package/components/DynamicRoute/RouteResolver.js.map +1 -1
  90. package/components/DynamicRoute/Status.d.ts +4 -3
  91. package/components/DynamicRoute/Status.js.map +1 -1
  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/Fonts/injectFont.js +2 -2
  98. package/components/Fonts/injectFont.js.map +1 -1
  99. package/components/Mutation/AddToCartFormik.d.ts +1 -1
  100. package/components/Mutation/AddToCartFormik.js +2 -2
  101. package/components/Mutation/AddToCartFormik.js.map +1 -1
  102. package/components/Mutation/DecrementQuantity.d.ts +2 -2
  103. package/components/Mutation/DecrementQuantity.js +1 -1
  104. package/components/Mutation/DecrementQuantity.js.map +1 -1
  105. package/components/Mutation/IncrementQuantity.d.ts +2 -2
  106. package/components/Mutation/IncrementQuantity.js +1 -1
  107. package/components/Mutation/IncrementQuantity.js.map +1 -1
  108. package/components/Mutation/RemoveFromCart.d.ts +2 -2
  109. package/components/Mutation/RemoveFromCart.js +1 -1
  110. package/components/Mutation/RemoveFromCart.js.map +1 -1
  111. package/components/Mutation/SetQuantity.d.ts +2 -2
  112. package/components/Mutation/SetQuantity.js +1 -1
  113. package/components/Mutation/SetQuantity.js.map +1 -1
  114. package/components/Mutation/SubscribeToNewsletter.d.ts +1 -1
  115. package/components/Mutation/SubscribeToNewsletter.js +1 -1
  116. package/components/Mutation/SubscribeToNewsletter.js.map +1 -1
  117. package/components/Mutation/SubscribeToStockNotifications.d.ts +1 -1
  118. package/components/Mutation/SubscribeToStockNotifications.js +6 -2
  119. package/components/Mutation/SubscribeToStockNotifications.js.map +1 -1
  120. package/components/Mutation/cartMutationUtils.d.ts +1 -2
  121. package/components/Mutation/cartMutationUtils.js.map +1 -1
  122. package/components/Mutation/useDecrementQuantity.d.ts +1 -1
  123. package/components/Mutation/useDecrementQuantity.js +1 -1
  124. package/components/Mutation/useDecrementQuantity.js.map +1 -1
  125. package/components/Mutation/useIncrementQuantity.d.ts +1 -1
  126. package/components/Mutation/useIncrementQuantity.js +1 -1
  127. package/components/Mutation/useIncrementQuantity.js.map +1 -1
  128. package/components/Mutation/useRemoveFromCart.d.ts +1 -1
  129. package/components/Mutation/useRemoveFromCart.js +1 -1
  130. package/components/Mutation/useRemoveFromCart.js.map +1 -1
  131. package/components/Mutation/useSetQuantity.d.ts +1 -1
  132. package/components/Mutation/useSetQuantity.js +1 -1
  133. package/components/Mutation/useSetQuantity.js.map +1 -1
  134. package/components/Notifications/Notifications.d.ts +3 -3
  135. package/components/Notifications/Notifications.js +2 -3
  136. package/components/Notifications/Notifications.js.map +1 -1
  137. package/components/ProductConfigurationProvider/ProductConfigurationProvider.js +6 -6
  138. package/components/ProductConfigurationProvider/ProductConfigurationProvider.js.map +1 -1
  139. package/components/Query/CartProvider.d.ts +1 -1
  140. package/components/Query/CartProvider.js +1 -1
  141. package/components/Query/CartProvider.js.map +1 -1
  142. package/components/SortOrder/SortOrderContainer.d.ts +1 -1
  143. package/components/StructuredData/StructuredBreadcrumbData.d.ts +2 -2
  144. package/data/cache.d.ts +1 -1
  145. package/data/cache.js +62 -12
  146. package/data/cache.js.map +1 -1
  147. package/global.d.ts +55 -1
  148. package/helpers/getErrorDetail.d.ts +1 -1
  149. package/helpers/getErrorDetail.js +2 -2
  150. package/helpers/getErrorDetail.js.map +1 -1
  151. package/hooks/Filters/useBooleanFilter.d.ts +1 -1
  152. package/hooks/Filters/useBooleanFilter.js +1 -2
  153. package/hooks/Filters/useBooleanFilter.js.map +1 -1
  154. package/hooks/Filters/useFilters.d.ts +1 -1
  155. package/hooks/Filters/useFilters.js +1 -2
  156. package/hooks/Filters/useFilters.js.map +1 -1
  157. package/hooks/Filters/useListFilter.d.ts +2 -2
  158. package/hooks/Filters/useListFilter.js +1 -2
  159. package/hooks/Filters/useListFilter.js.map +1 -1
  160. package/hooks/Filters/useMultiFilter.d.ts +3 -3
  161. package/hooks/Filters/useMultiFilter.js +1 -2
  162. package/hooks/Filters/useMultiFilter.js.map +1 -1
  163. package/hooks/Filters/useRangeFilter.d.ts +2 -2
  164. package/hooks/Filters/useRangeFilter.js +1 -2
  165. package/hooks/Filters/useRangeFilter.js.map +1 -1
  166. package/hooks/Filters/useSortOrder.d.ts +6 -1
  167. package/hooks/Filters/useSortOrder.js +4 -3
  168. package/hooks/Filters/useSortOrder.js.map +1 -1
  169. package/hooks/PackageProducts/usePackageProductItem.d.ts +1 -1
  170. package/hooks/PackageProducts/usePackageProductItem.js +1 -1
  171. package/hooks/PackageProducts/usePackageProductItem.js.map +1 -1
  172. package/hooks/PackageProducts/usePackageProducts.js +17 -17
  173. package/hooks/PackageProducts/usePackageProducts.js.map +1 -1
  174. package/hooks/PackageProducts/usePackageProducts.test.js +1 -1
  175. package/hooks/ProductList/ProductListContext.js +1 -1
  176. package/hooks/ProductList/ProductListContext.js.map +1 -1
  177. package/hooks/ProductList/action-creators.d.ts +1 -1
  178. package/hooks/ProductList/index.d.ts +1 -1
  179. package/hooks/ProductList/list-transforms.js +1 -1
  180. package/hooks/ProductList/list-transforms.js.map +1 -1
  181. package/hooks/ProductList/product-list-reducer.js +1 -1
  182. package/hooks/ProductList/product-list-reducer.js.map +1 -1
  183. package/hooks/ProductList/useProductList.js +1 -1
  184. package/hooks/ProductList/useProductList.js.map +1 -1
  185. package/hooks/ProductList/useProductListItems.js +1 -1
  186. package/hooks/ProductList/useProductListItems.js.map +1 -1
  187. package/hooks/Subscriptions/useNewsletterSubscription.js +3 -3
  188. package/hooks/Subscriptions/useNewsletterSubscription.js.map +1 -1
  189. package/hooks/Subscriptions/useStockNotifications.d.ts +1 -1
  190. package/hooks/Subscriptions/useStockNotifications.js +3 -3
  191. package/hooks/Subscriptions/useStockNotifications.js.map +1 -1
  192. package/hooks/Subscriptions/useStoreSubscriptions.d.ts +1 -1
  193. package/hooks/Subscriptions/useStoreSubscriptions.js +3 -6
  194. package/hooks/Subscriptions/useStoreSubscriptions.js.map +1 -1
  195. package/hooks/Subscriptions/useStoresubscriptions.test.js +5 -7
  196. package/hooks/useAddMultipleToCart.d.ts +1 -1
  197. package/hooks/useAddMultipleToCart.js +1 -1
  198. package/hooks/useAddMultipleToCart.js.map +1 -1
  199. package/hooks/useAddMultipleToCart.test.js +1 -1
  200. package/hooks/useCustomerOrders.test.js +7 -5
  201. package/hooks/useCustomerOrdersQuery.d.ts +2 -2
  202. package/hooks/useCustomerOrdersQuery.js +1 -1
  203. package/hooks/useCustomerOrdersQuery.js.map +1 -1
  204. package/hooks/useDeleteAccountMutation.js +3 -3
  205. package/hooks/useDeleteAccountMutation.js.map +1 -1
  206. package/hooks/useInfinitePagination.d.ts +1 -1
  207. package/hooks/useInfinitePagination.js +4 -1
  208. package/hooks/useInfinitePagination.js.map +1 -1
  209. package/hooks/useLoginMutation.d.ts +3 -3
  210. package/hooks/useLoginMutation.js +2 -2
  211. package/hooks/useLoginMutation.js.map +1 -1
  212. package/hooks/useLoginRedirect.js +2 -2
  213. package/hooks/useLoginRedirect.js.map +1 -1
  214. package/hooks/useOrderDetailQuery.d.ts +3 -3
  215. package/hooks/useOrderDetailQuery.js +1 -1
  216. package/hooks/useOrderDetailQuery.js.map +1 -1
  217. package/hooks/useRoutePreload.js +1 -1
  218. package/hooks/useRoutePreload.js.map +1 -1
  219. package/hooks/useStockStatus.d.ts +8 -0
  220. package/hooks/useStockStatus.js +26 -0
  221. package/hooks/useStockStatus.js.map +1 -0
  222. package/integrations/sluggishSchemaExtension.js +1 -1
  223. package/integrations/sluggishSchemaExtension.js.map +1 -1
  224. package/package.json +19 -36
  225. package/polyfills.js +0 -2
  226. package/polyfills.js.map +1 -1
  227. package/resolvers/filters/boolFilter.js +24 -27
  228. package/resolvers/filters/boolFilter.js.map +1 -1
  229. package/resolvers/filters/filterParams.js +8 -8
  230. package/resolvers/filters/filterParams.js.map +1 -1
  231. package/resolvers/filters/filters.js +5 -5
  232. package/resolvers/filters/filters.js.map +1 -1
  233. package/resolvers/filters/index.d.ts +0 -4
  234. package/resolvers/filters/listFilter.js +24 -29
  235. package/resolvers/filters/listFilter.js.map +1 -1
  236. package/resolvers/filters/listFilterItem.js +31 -36
  237. package/resolvers/filters/listFilterItem.js.map +1 -1
  238. package/resolvers/filters/multiListFilter.js +41 -42
  239. package/resolvers/filters/multiListFilter.js.map +1 -1
  240. package/resolvers/filters/multiListFilterList.js +1 -1
  241. package/resolvers/filters/multiListFilterList.js.map +1 -1
  242. package/resolvers/filters/rangeFilter.js +27 -43
  243. package/resolvers/filters/rangeFilter.js.map +1 -1
  244. package/test-utils/ProviderPyramid.js +1 -1
  245. package/types.d.ts +1820 -1955
  246. package/components/Fonts/GoogleFont.d.ts +0 -10
  247. package/components/Fonts/GoogleFont.js +0 -35
  248. package/components/Fonts/GoogleFont.js.map +0 -1
  249. package/components/Fonts/TypekitFont.d.ts +0 -16
  250. package/components/Fonts/TypekitFont.js +0 -25
  251. package/components/Fonts/TypekitFont.js.map +0 -1
  252. package/integrations/addwishSchemaExtension.d.ts +0 -35
  253. package/integrations/addwishSchemaExtension.js +0 -141
  254. package/integrations/addwishSchemaExtension.js.map +0 -1
  255. package/integrations/nostoSchemaExtension.d.ts +0 -5
  256. package/integrations/nostoSchemaExtension.js +0 -77
  257. package/integrations/nostoSchemaExtension.js.map +0 -1
@@ -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,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,6BAA6B,EAAE,MA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,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"}
@@ -13,12 +13,12 @@ import http from 'http';
13
13
  const server = http.createServer(app);
14
14
  let currentApp = app;
15
15
  server.listen(process.env.PORT || 3000, () => {
16
- console.log('🚀 started');
16
+ console.log('🚀 Started');
17
17
  });
18
18
  if (module.hot) {
19
- console.log('Server-side HMR Enabled!');
19
+ console.log('🟢 HMR Server-side enabled!');
20
20
  const reload = () => __awaiter(void 0, void 0, void 0, function* () {
21
- console.log('🔁 HMR Reloading `./server`...');
21
+ console.log('📦 HMR Server-side reloaded');
22
22
  try {
23
23
  app = yield require('src/server').default;
24
24
  server.removeListener('request', currentApp);
@@ -26,11 +26,14 @@ import http from 'http';
26
26
  currentApp = app;
27
27
  }
28
28
  catch (error) {
29
+ console.log('🔥 HMR Error: ', (error === null || error === void 0 ? void 0 : error.stack) || error);
29
30
  console.error(error);
30
31
  }
31
32
  });
32
33
  // Reload on HMR
33
- module.hot.accept('src/server', reload);
34
+ module.hot.accept('src/server', reload, (err) => {
35
+ console.log('🔥 HMR Error: ', err);
36
+ });
34
37
  }
35
38
  }))();
36
39
  //# sourceMappingURL=entrypoint.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"entrypoint.js","sourceRoot":"","sources":["entrypoint.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,CAAC,GAAS,EAAE;IACV,IAAI,GAAG,GAAG,MAAM,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAA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ErB,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,EAAE,GAAG,EAAE;QAC3C,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAC5B,CAAC,CAAC,CAAC;IAEH,IAAK,MAAc,CAAC,GAAG,EAAE;QACvB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;QAE3C,MAAM,MAAM,GAAG,GAAS,EAAE;YACxB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;YAE3C,IAAI;gBACF,GAAG,GAAG,MAAM,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC;gBAC1C,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;gBAC7C,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;gBAC1B,UAAU,GAAG,GAAG,CAAC;aAClB;YAAC,OAAO,KAAK,EAAE;gBACd,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,KAAI,KAAK,CAAC,CAAC;gBACrD,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;aACtB;QACH,CAAC,CAAA,CAAC;QAEF,gBAAgB;QACf,MAAc,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE;YACvD,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;KACJ;AACH,CAAC,CAAA,CAAC,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { getPersistedQueriesForRequest } from '../getPersistedQueriesForRequest';
2
2
  import aQuery from './mockQuery.gql';
3
3
  import nock from 'nock';
4
- import { ApolloError } from 'apollo-client';
4
+ import { ApolloError } from '@apollo/client';
5
5
  import { ChannelHandler } from '../../../../ChannelHandler/ChannelHandler';
6
6
 
7
7
  beforeAll(() => {
@@ -1,2 +1,2 @@
1
- import { ApolloLink } from 'apollo-link';
1
+ import { ApolloLink } from '@apollo/client';
2
2
  export declare const logOperationTime: ApolloLink;
@@ -1,10 +1,10 @@
1
- import { ApolloLink } from 'apollo-link';
1
+ import { ApolloLink } from '@apollo/client';
2
2
  const timeStartLink = new ApolloLink((operation, forward) => {
3
3
  operation.setContext({ start: Date.now() });
4
4
  return forward(operation);
5
5
  });
6
6
  const logTimeLink = new ApolloLink((operation, forward) => {
7
- return forward(operation).map(data => {
7
+ return forward(operation).map((data) => {
8
8
  // data from a previous link
9
9
  const time = Date.now() - operation.getContext().start;
10
10
  console.log(new Date(), `operation ${operation.operationName} took ${time} to complete`);
@@ -1 +1 @@
1
- {"version":3,"file":"queryLoggingMiddleware.js","sourceRoot":"","sources":["queryLoggingMiddleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,aAAa,GAAG,IAAI,UAAU,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE;IAC1D,SAAS,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IAC5C,OAAO,OAAO,CAAC,SAAS,CAAC,CAAC;AAC5B,CAAC,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,IAAI,UAAU,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE;IACxD,OAAO,OAAO,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;QACnC,4BAA4B;QAC5B,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC;QACvD,OAAO,CAAC,GAAG,CACT,IAAI,IAAI,EAAE,EACV,aAAa,SAAS,CAAC,aAAa,SAAS,IAAI,cAAc,CAChE,CAAC;QACF,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"queryLoggingMiddleware.js","sourceRoot":"","sources":["queryLoggingMiddleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,aAAa,GAAG,IAAI,UAAU,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE;IAC1D,SAAS,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IAC5C,OAAO,OAAO,CAAC,SAAS,CAAC,CAAC;AAC5B,CAAC,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,IAAI,UAAU,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE;IACxD,OAAO,OAAO,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACrC,4BAA4B;QAC5B,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC;QACvD,OAAO,CAAC,GAAG,CACT,IAAI,IAAI,EAAE,EACV,aAAa,SAAS,CAAC,aAAa,SAAS,IAAI,cAAc,CAChE,CAAC;QACF,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC"}
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { FormikProps } from 'formik';
3
3
  import { Price, Product, ProductVariant, ProductVariantOption } from '../types';
4
4
  import { DocumentNode } from 'graphql';
5
- import { ApolloError } from 'apollo-client';
5
+ import { ApolloError } from '@apollo/client';
6
6
  type Comments = Record<string, string>;
7
7
  type Options = Record<string, string>;
8
8
  interface AddToCartFormikValues {
@@ -38,5 +38,5 @@ interface AddToCartFormikProps {
38
38
  }) => void;
39
39
  children: (props: FormikProps<AddToCartFormikValues>) => React.ReactNode;
40
40
  }
41
- export declare function AddToCartFormik({ product, variant, commentValidators, getMissingOptions, initialValues, onAddToCartInit, onAddToCartError, onAddToCartSuccess, cartQuery, cartMutation, children }: AddToCartFormikProps): JSX.Element;
41
+ export declare function AddToCartFormik({ product, variant, commentValidators, getMissingOptions, initialValues, onAddToCartInit, onAddToCartError, onAddToCartSuccess, cartQuery, cartMutation, children }: AddToCartFormikProps): React.JSX.Element;
42
42
  export default AddToCartFormik;
@@ -10,9 +10,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import React from 'react';
11
11
  import { useAddToCart } from './useAddToCart';
12
12
  import { FormikProvider } from 'formik';
13
- import { useApolloClient, useMutation } from '@apollo/react-hooks';
13
+ import { useApolloClient, useMutation } from '@apollo/client';
14
14
  import { addToCartError, addToCartSuccess, useTrackProductAdd } from '../components/Mutation/AddToCart/addToCartUtils';
15
- import { uniqueId } from 'lodash';
15
+ import uniqueId from '@jetshop/core/helpers/uniqueId';
16
16
  import { getAddToCartOptimisticResponse } from '../components/Mutation/cartMutationUtils';
17
17
  import { useCartId } from '../components/Cart/CartIdContext';
18
18
  export function AddToCartFormik({ product, variant, commentValidators = {}, getMissingOptions, initialValues,
@@ -1 +1 @@
1
- {"version":3,"file":"AddToCartFormik.js","sourceRoot":"","sources":["AddToCartFormik.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAmB,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAe,MAAM,QAAQ,CAAC;AAWrD,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,k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AAkB;gBAClB,eAAe;gBACf,MAAM;gBACN,SAAS;aACV,CAAC,CACH;iBACA,KAAK,CACJ,cAAc,CAAC;gBACb,gBAAgB;gBAChB,eAAe;aAChB,CAAC,CACH,CAAC;QACN,CAAC;KAAA;IAED,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,CAAC;QAC5B,OAAO;QACP,OAAO;QACP,iBAAiB;QACjB,iBAAiB;QACjB,aAAa;QACb,MAAM;KACP,CAAC,CAAC;IAEH,OAAO,oBAAC,cAAc,IAAC,KAAK,EAAE,IAAI,IAAG,QAAQ,CAAC,IAAI,CAAC,CAAkB,CAAC;AACxE,CAAC;AAED,eAAe,eAAe,CAAC"}
@@ -70,7 +70,7 @@ export declare function useAddToCart({ product, variant, submit, commentValidato
70
70
  dirty: boolean;
71
71
  unregisterField: (name: string) => void;
72
72
  registerField: (name: string, { validate }: any) => void;
73
- getFieldProps: (nameOrOptions: any) => import("formik").FieldInputProps<any>;
73
+ getFieldProps: (nameOrOptions: string | import("formik").FieldConfig<any>) => import("formik").FieldInputProps<any>;
74
74
  getFieldMeta: (name: string) => import("formik").FieldMetaProps<any>;
75
75
  getFieldHelpers: (name: string) => import("formik").FieldHelperProps<any>;
76
76
  validateOnBlur: boolean;
@@ -3,11 +3,8 @@ import { FormikProps } from 'formik';
3
3
  import React from 'react';
4
4
  type ForgotPasswordFormik = FormikProps<MutationRequestPasswordResetArgs>;
5
5
  interface ForgotPasswordProps {
6
- children(args: {
7
- formik: ForgotPasswordFormik;
8
- }): React.ReactChild;
6
+ children: any;
9
7
  }
10
- export declare function ForgotPasswordProvider(props: ForgotPasswordProps): JSX.Element;
11
8
  export declare const ForgotPasswordContext: React.Context<{
12
9
  formik: ForgotPasswordFormik;
13
10
  }>;
@@ -29,7 +26,7 @@ export declare function useForgotPasswordData(): {
29
26
  setSubmitting: (isSubmitting: boolean) => void;
30
27
  setTouched: (touched: import("formik").FormikTouched<MutationRequestPasswordResetArgs>, shouldValidate?: boolean) => void;
31
28
  setValues: (values: React.SetStateAction<MutationRequestPasswordResetArgs>, shouldValidate?: boolean) => void;
32
- setFieldValue: (field: string, value: any, shouldValidate?: boolean) => void;
29
+ setFieldValue: (field: string, value: any, shouldValidate?: boolean) => Promise<void | import("formik").FormikErrors<MutationRequestPasswordResetArgs>>;
33
30
  setFieldError: (field: string, message: string) => void;
34
31
  setFieldTouched: (field: string, isTouched?: boolean, shouldValidate?: boolean) => void;
35
32
  validateForm: (values?: any) => Promise<import("formik").FormikErrors<MutationRequestPasswordResetArgs>>;
@@ -47,7 +44,7 @@ export declare function useForgotPasswordData(): {
47
44
  (e: React.ChangeEvent<any>): void;
48
45
  <T_1 = string | React.ChangeEvent<any>>(field: T_1): T_1 extends React.ChangeEvent<any> ? void : (e: string | React.ChangeEvent<any>) => void;
49
46
  };
50
- getFieldProps: <Value = any>(props: any) => import("formik").FieldInputProps<Value>;
47
+ getFieldProps: <Value = any>(props: string | import("formik").FieldConfig<Value>) => import("formik").FieldInputProps<Value>;
51
48
  getFieldMeta: <Value_1>(name: string) => import("formik").FieldMetaProps<Value_1>;
52
49
  getFieldHelpers: <Value_2 = any>(name: string) => import("formik").FieldHelperProps<Value_2>;
53
50
  dirty: boolean;
@@ -68,4 +65,5 @@ export declare function useForgotPasswordData(): {
68
65
  required: boolean;
69
66
  };
70
67
  };
68
+ export declare function ForgotPasswordProvider(props: ForgotPasswordProps): React.JSX.Element;
71
69
  export {};
@@ -2,9 +2,24 @@ import { resetRequest } from '@jetshop/core/data/mutations/accountMutations.gql'
2
2
  import t from '@jetshop/intl';
3
3
  import { Form, Formik } from 'formik';
4
4
  import React from 'react';
5
- import { useMutation } from '@apollo/react-hooks';
5
+ import { useMutation } from '@apollo/client';
6
+ export const ForgotPasswordContext = React.createContext(undefined);
7
+ export function useForgotPasswordData() {
8
+ var _a, _b;
9
+ const { formik } = React.useContext(ForgotPasswordContext);
10
+ const submitted = (_a = formik === null || formik === void 0 ? void 0 : formik.status) === null || _a === void 0 ? void 0 : _a.success;
11
+ const globalError = (_b = formik === null || formik === void 0 ? void 0 : formik.status) === null || _b === void 0 ? void 0 : _b.globalError;
12
+ const emailInputProps = {
13
+ type: 'email',
14
+ name: 'email',
15
+ required: true
16
+ };
17
+ return Object.assign({ submitted,
18
+ globalError,
19
+ emailInputProps }, formik);
20
+ }
6
21
  function validate(values) {
7
- let errors = {};
22
+ const errors = {};
8
23
  if (!values.email) {
9
24
  errors['email'] = t('This field is required');
10
25
  }
@@ -15,7 +30,7 @@ function validate(values) {
15
30
  }
16
31
  function handleMutationError(actions) {
17
32
  actions.setStatus({
18
- globalError: t('Something went wrong. Please check your input, or try again later.'),
33
+ globalError: t('Something went wrong. Please check your input, or try again later.')
19
34
  });
20
35
  actions.setSubmitting(false);
21
36
  }
@@ -39,19 +54,4 @@ export function ForgotPasswordProvider(props) {
39
54
  } }, (formik) => (React.createElement(Form, null,
40
55
  React.createElement(ForgotPasswordContext.Provider, Object.assign({ value: { formik } }, props))))));
41
56
  }
42
- export const ForgotPasswordContext = React.createContext(undefined);
43
- export function useForgotPasswordData() {
44
- var _a, _b;
45
- const { formik } = React.useContext(ForgotPasswordContext);
46
- const submitted = (_a = formik === null || formik === void 0 ? void 0 : formik.status) === null || _a === void 0 ? void 0 : _a.success;
47
- const globalError = (_b = formik === null || formik === void 0 ? void 0 : formik.status) === null || _b === void 0 ? void 0 : _b.globalError;
48
- const emailInputProps = {
49
- type: 'email',
50
- name: 'email',
51
- required: true,
52
- };
53
- return Object.assign({ submitted,
54
- globalError,
55
- emailInputProps }, formik);
56
- }
57
57
  //# sourceMappingURL=ForgotPasswordProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ForgotPasswordProvider.js","sourceRoot":"","sources":["ForgotPasswordProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAKjF,OAAO,CAAC,MAAM,eAAe,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,EAA8B,M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IAC/D,MAAM,CAAC,MAAM,CAAC,GAAG,WAAW,CAEzB,YAAY,CAAC,CAAC;IAEjB,OAAO,CACL,oBAAC,MAAM,IACL,aAAa,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAC5B,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE;YAC5B,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;YAE5B,MAAM,CAAC,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC;iBAC3C,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;gBACb,IAAI,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAAE;oBAC1C,OAAO,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;oBACrC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;iBAC9B;qBAAM;oBACL,mBAAmB,CAAC,OAAO,CAAC,CAAC;iBAC9B;YACH,CAAC,CAAC;iBACD,KAAK,CAAC,GAAG,EAAE;gBACV,mBAAmB,CAAC,OAAO,CAAC,CAAC;YAC/B,CAAC,CAAC,CAAC;QACP,CAAC,IAEA,CAAC,MAAM,EAAE,EAAE,CAAC,CACX,oBAAC,IAAI;QACH,oBAAC,qBAAqB,CAAC,QAAQ,kBAAC,KAAK,EAAE,EAAE,MAAM,EAAE,IAAM,KAAK,EAAI,CAC3D,CACR,CACM,CACV,CAAC;AACJ,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare const ResetPasswordProvider: React.ComponentClass<Pick<import("react-router").RouteComponentProps<any, import("react-router").StaticContext, H.LocationState>, never>, any> & import("react-router").WithRouterStatics<(props: React.PropsWithChildren<import("react-router").RouteComponentProps<any, import("react-router").StaticContext, H.LocationState>>) => JSX.Element>;
2
+ export declare const ResetPasswordProvider: React.ComponentClass<Pick<any, string | number | symbol>, any> & import("react-router").WithRouterStatics<(props: any) => React.JSX.Element>;
3
3
  export declare function useResetPasswordForm(): {
4
4
  passwordInputProps: {
5
5
  required: boolean;
@@ -38,7 +38,9 @@ export declare function useResetPasswordForm(): {
38
38
  setValues: (values: React.SetStateAction<{
39
39
  newPassword: string;
40
40
  }>, shouldValidate?: boolean) => void;
41
- setFieldValue: (field: string, value: any, shouldValidate?: boolean) => void;
41
+ setFieldValue: (field: string, value: any, shouldValidate?: boolean) => Promise<void | import("formik").FormikErrors<{
42
+ newPassword: string;
43
+ }>>;
42
44
  setFieldError: (field: string, message: string) => void;
43
45
  setFieldTouched: (field: string, isTouched?: boolean, shouldValidate?: boolean) => void;
44
46
  validateForm: (values?: any) => Promise<import("formik").FormikErrors<{
@@ -66,7 +68,7 @@ export declare function useResetPasswordForm(): {
66
68
  (e: React.ChangeEvent<any>): void;
67
69
  <T_1 = string | React.ChangeEvent<any>>(field: T_1): T_1 extends React.ChangeEvent<any> ? void : (e: string | React.ChangeEvent<any>) => void;
68
70
  };
69
- getFieldProps: <Value = any>(props: any) => import("formik").FieldInputProps<Value>;
71
+ getFieldProps: <Value = any>(props: string | import("formik").FieldConfig<Value>) => import("formik").FieldInputProps<Value>;
70
72
  getFieldMeta: <Value_1>(name: string) => import("formik").FieldMetaProps<Value_1>;
71
73
  getFieldHelpers: <Value_2 = any>(name: string) => import("formik").FieldHelperProps<Value_2>;
72
74
  dirty: boolean;
@@ -2,7 +2,7 @@ import { resetPassword } from '@jetshop/core/data/mutations/accountMutations.gql
2
2
  import t from '@jetshop/intl';
3
3
  import { Form, Formik } from 'formik';
4
4
  import React, { useContext } from 'react';
5
- import { useMutation } from '@apollo/react-hooks';
5
+ import { useMutation } from '@apollo/client';
6
6
  import { Redirect, withRouter } from 'react-router';
7
7
  import getErrorDetail from '../../helpers/getErrorDetail';
8
8
  import throwErrorInDev from '../../helpers/throwErrorInDev';
@@ -1 +1 @@
1
- {"version":3,"file":"ResetPasswordProvider.js","source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ACT,kBAAkB,EAClB,SAAS,EAAE,MAAM,CAAC,MAAM,KAAK,WAAW,EACxC,WAAW,EAAE,WAAW,IACxB;AACJ,CAAC;AAED,qEAAqE;AACrE,SAAS,eAAe,CAAC,IAAY;IACnC,MAAM,iBAAiB,GAA8B;QACnD,yBAAyB,EAAE,CAAC,CAC1B,uDAAuD,CACxD;KACF,CAAC;IAEF,IAAI,iBAAiB,CAAC,IAAI,CAAC;QAAE,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAE5D,WAAW;IACX,OAAO,CAAC,CAAC,0DAA0D,CAAC,CAAC;AACvE,CAAC"}
@@ -2,12 +2,12 @@ import getErrorDetail from '@jetshop/core/helpers/getErrorDetail';
2
2
  import t from '@jetshop/intl';
3
3
  import { Formik } from 'formik';
4
4
  import React, { useContext } from 'react';
5
- import { ApolloConsumer } from 'react-apollo';
5
+ import { ApolloConsumer } from '@apollo/client';
6
6
  import { LookupDispatch } from './SSNLookupContainer';
7
7
  import PersonLookupQuery from '@jetshop/core/data/queries/PersonLookupQuery.gql';
8
8
  const SSNField = function SSNField(props) {
9
9
  const dispatch = useContext(LookupDispatch);
10
- return (React.createElement(ApolloConsumer, null, client => {
10
+ return (React.createElement(ApolloConsumer, null, (client) => {
11
11
  return (React.createElement(Formik, { onSubmit: (values, formik) => {
12
12
  client
13
13
  .query({
@@ -20,7 +20,7 @@ const SSNField = function SSNField(props) {
20
20
  formik.setSubmitting(false);
21
21
  props.onSuccess();
22
22
  dispatch({ type: 'set', payload: resp.data.personLookup });
23
- }, error => {
23
+ }, (error) => {
24
24
  const errorMessage = getErrorDetail(error).codes[0].includes('PersonLookupFailed')
25
25
  ? t('Person lookup failed.')
26
26
  : t('Something went wrong, please try again!');
@@ -28,7 +28,7 @@ const SSNField = function SSNField(props) {
28
28
  dispatch({ type: 'reset' });
29
29
  formik.setErrors({ ssn: errorMessage });
30
30
  });
31
- }, initialValues: { ssn: '' } }, formik => props.children({ formik })));
31
+ }, initialValues: { ssn: '' } }, (formik) => props.children({ formik })));
32
32
  }));
33
33
  };
34
34
  export default SSNField;
@@ -1 +1 @@
1
- {"version":3,"file":"SSN.js","sourceRoot":"","sources":["SSN.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,sCAAsC,CAAC;AAClE,OAAO,CAAC,MAAM,eAAe,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAe,MAAM,QAAQ,CAAC;AAC7C,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGtD,OAAO,iBAAiB,MAAM,kDAAkD,CAAC;AAOjF,MAAM,QAAQ,GAA4B,SAAS,QAAQ,CAAC,KAAK;IAC/D,MAAM,QAAQ,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAE5C,OAAO,CACL,oBAAC,cAAc,QACZ,MAAM,CAAC,EAAE;QACR,OAAO,CACL,oBAAC,MAAM,IACL,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE;gBAC3B,MAAM;qBACH,KAAK,CAAC;oBACL,KAAK,EAAE,iBAAiB;oBACxB,SAAS,EAAE;wBACT,GAAG,EAAE,MAAM,CAAC,GAAG;qBAChB;iBACF,CAAC;qBACD,IAAI,CACH,CAAC,IAAuD,EAAE,EAAE;oBAC1D,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;oBAC5B,KAAK,CAAC,SAAS,EAAE,CAAC;oBAClB,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;gBAC7D,CAAC,EACD,KAAK,CAAC,EAAE;oBACN,MAAM,YAAY,GAAG,cAAc,CACjC,KAAK,CACN,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,oBAAoB,CA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L,KAAK,EAAE,iBAAiB;oBACxB,SAAS,EAAE;wBACT,GAAG,EAAE,MAAM,CAAC,GAAG;qBAChB;iBACF,CAAC;qBACD,IAAI,CACH,CAAC,IAAuD,EAAE,EAAE;oBAC1D,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;oBAC5B,KAAK,CAAC,SAAS,EAAE,CAAC;oBAClB,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;gBAC7D,CAAC,EACD,CAAC,KAAK,EAAE,EAAE;oBACR,MAAM,YAAY,GAAG,cAAc,CACjC,KAAK,CACN,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,oBAAoB,CAAC;wBACvC,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC;wBAC5B,CAAC,CAAC,CAAC,CAAC,yCAAyC,CAAC,CAAC;oBAEjD,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;oBAC5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;oBAC5B,MAAM,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC,CAAC;gBAC1C,CAAC,CACF,CAAC;YACN,CAAC,EACD,aAAa,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAEzB,CAAC,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC,CAChC,CACV,CAAC;IACJ,CAAC,CACc,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,19 +1,16 @@
1
1
  import { SignUpInput, MaskedProperty } from '@jetshop/core/types';
2
- import { FormikProps } from 'formik';
3
2
  import React from 'react';
4
3
  import { SignUpFormInput } from './formatSignupInput';
5
4
  type LookupData = {
6
5
  [key: string]: MaskedProperty;
7
6
  };
8
7
  interface SignupFormProps {
9
- children(args: {
10
- formik: FormikProps<SignUpInput>;
11
- }): React.ReactChild;
8
+ children: any;
12
9
  lookupData: LookupData;
13
10
  additionalFormatter?: (values: SignUpFormInput) => SignUpInput;
14
11
  additionalInitialValues?: Partial<SignUpFormInput>;
15
12
  }
16
13
  declare function SignupFormProvider({ LoadingComponent, ...props }: SignupFormProps & {
17
14
  LoadingComponent?: JSX.Element;
18
- }): JSX.Element;
15
+ }): React.JSX.Element;
19
16
  export default SignupFormProvider;
@@ -1 +1 @@
1
- {"version":3,"file":"SignupFormContainer.js","sourceRoot":"","sources":["SignupFormContainer.tsx"],"names":[],"mappings":";;;;;;;;;;;AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAe,MAAM,QAAQ,CAAC;AACnD,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,cAAc,EAAE,EACrB,aAAa,EACb,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAejD,uEAAuE;AACvE,4CAA4C;AAC5C,SAAS,qBAAqB,CAC5B,MAAuB,EACvB,UAAsB;IAEtB,MAAM,MAAM,GAAQ,EAAE,CAAC;IACvB,IAAI,UAAU,EAAE;QACd,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;;YACvB,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAG,KAAK,CAAC,IAAI,CAAC,0CAAE,MAAM,CAAC;QACxD,CAAC,CAAC,CAAC;KACJ;SAAM;QACL,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YACvB,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;QAC1B,CAAC,CAAC,CAAC;KAC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AK,CAAC,UAAU,CACjB;gBACD,OAAO;aACR,CAAC,CAAC;QACL,CAAC,EACD,QAAQ,EAAE,QAAQ,EAClB,aAAa,EAAE,aAAa,IAE3B,CAAC,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC,CAChC,CACV,CAAC;AACJ,CAAC;AAED,2DAA2D;AAC3D,SAAS,kBAAkB,CAAC,EAG2B;QAH3B,EAC1B,gBAAgB,OAEqC,EADlD,KAAK,cAFkB,oBAG3B,CADS;IAER,OAAO,CACL,oBAAC,cAAc,IAAC,gBAAgB,EAAE,gBAAgB;QAChD,oBAAC,UAAU,oBAAK,KAAK,GAClB,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CACf,oBAAC,IAAI;YACH,oBAAC,mBAAmB,CAAC,QAAQ,kBAAC,KAAK,EAAE,EAAE,MAAM,EAAE,IAAM,KAAK,EAAI,CACzD,CACR,CACU,CACE,CAClB,CAAC;AACJ,CAAC;AAED,eAAe,kBAAkB,CAAC"}
@@ -3,7 +3,7 @@ import logError from '@jetshop/core/helpers/logError';
3
3
  import t from '@jetshop/intl';
4
4
  import { Form, Formik } from 'formik';
5
5
  import React from 'react';
6
- import { useMutation } from '@apollo/react-hooks';
6
+ import { useMutation } from '@apollo/client';
7
7
  import { createValidatorForFields } from './formFieldsFromSettings';
8
8
  import { useCustomerQuery } from './useCustomer';
9
9
  import GetCustomerCountryCode from '@jetshop/core/data/queries/GetCustomerCountryCode.gql';
@@ -35,14 +35,14 @@ export const UpdatePasswordProvider = ({ render, onSubmitSuccess }) => {
35
35
  query: GetCustomerCountryCode
36
36
  });
37
37
  const passwordField = countrySettings &&
38
- countrySettings.privateCustomerFields.find(field => field.name === 'password');
38
+ countrySettings.privateCustomerFields.find((field) => field.name === 'password');
39
39
  // Combine validation from the API with our own validation
40
40
  const validator = createValidatorForFields([
41
41
  passwordField,
42
42
  { id: 'oldPassword', name: 'oldPassword', required: true },
43
43
  { id: 'newPasswordRepeat', name: 'newPasswordRepeat', required: true }
44
44
  ], {
45
- getFieldName: name => {
45
+ getFieldName: (name) => {
46
46
  if (name === 'password') {
47
47
  return 'newPassword';
48
48
  }
@@ -68,14 +68,14 @@ export const UpdatePasswordProvider = ({ render, onSubmitSuccess }) => {
68
68
  typeof onSubmitSuccess === 'function' && onSubmitSuccess();
69
69
  actions.setStatus({ success: true });
70
70
  })
71
- .catch(err => {
71
+ .catch((err) => {
72
72
  logError(true, err);
73
73
  actions.setSubmitting(false);
74
74
  actions.setStatus({
75
75
  globalError: t('Something went wrong updating password. Is your old password correct?')
76
76
  });
77
77
  });
78
- }, render: props => {
78
+ }, render: (props) => {
79
79
  var _a, _b;
80
80
  return (React.createElement(Form, null, render(Object.assign(Object.assign({}, props), { inputProps, submitted: (_a = props === null || props === void 0 ? void 0 : props.status) === null || _a === void 0 ? void 0 : _a.success, globalError: (_b = props === null || props === void 0 ? void 0 : props.status) === null || _b === void 0 ? void 0 : _b.globalError }))));
81
81
  } }));
@@ -87,7 +87,7 @@ export function useUpdatePasswordMutation() {
87
87
  .then(() => mutate({
88
88
  variables
89
89
  }))
90
- .then(res => {
90
+ .then((res) => {
91
91
  if (!res.data.updatePassword.success) {
92
92
  // This should never happen as mutation itself fails
93
93
  throw new Error('Something went wrong');
@@ -1 +1 @@
1
- {"version":3,"file":"UpdatePasswordForm.js","sourceRoot":"","sources":["UpdatePasswordForm.tsx"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,iDAAiD,CAAC;AACrF,OAAO,QAAQ,MAAM,gCAAgC,CAAC;AAEtD,OAAO,CAAC,MAAM,eAAe,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,EAAe,MAAM,QAAQ,CAAC;AACnD,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AACp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AM,0CAAE,OAAO,EACjC,WAAW,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,0CAAE,WAAW,IACvC,CACG,CACR,CAAA;SAAA,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,yBAAyB;IACvC,MAAM,CAAC,MAAM,CAAC,GAAG,WAAW,CAG1B,sBAAsB,CAAC,CAAC;IAE1B,OAAO,SAAS,6BAA6B,CAC3C,SAAkC;QAElC,OAAO,OAAO,CAAC,OAAO,EAAE;aACrB,IAAI,CAAC,GAAG,EAAE,CACT,MAAM,CAAC;YACL,SAAS;SACV,CAAC,CACH;aACA,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;YACZ,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE;gBACpC,oDAAoD;gBACpD,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;aACzC;QACH,CAAC,CAAC,CAAC;IACP,CAAC,CAAC;AACJ,CAAC"}
@@ -6,7 +6,7 @@ export interface EnhancedCustomerField extends CustomerField {
6
6
  label: string;
7
7
  placeholder?: string;
8
8
  }
9
- type SignupContext = {
9
+ type ISignupContext = {
10
10
  isUserTypeBusiness: boolean;
11
11
  billingAddressFields: EnhancedCustomerField[];
12
12
  loginFields: EnhancedCustomerField[];
@@ -27,7 +27,7 @@ export declare const SignupContext: React.Context<{
27
27
  loading: boolean;
28
28
  }>;
29
29
  declare const SignupProvider: React.FC<{
30
- value?: SignupContext;
30
+ value?: ISignupContext;
31
31
  LoadingComponent?: JSX.Element;
32
32
  }>;
33
33
  export declare const SignupFormikContext: React.Context<{
@@ -30,7 +30,7 @@ const SignupProvider = function SignupContextProvider(_a) {
30
30
  const [country, setCountry] = React.useState(selectedChannel.country);
31
31
  const { countrySettings, loading } = useCountrySettings();
32
32
  const selectedCountrySettings = countrySettings &&
33
- countrySettings.find(c => c.countryCode === country.code);
33
+ countrySettings.find((c) => c.countryCode === country.code);
34
34
  // Get all the billing address fields from the country settings
35
35
  const { allFields, billingAddressFields, loginFields } = !loading
36
36
  ? formFieldsFromSettings(selectedCountrySettings, isUserTypeBusiness)
@@ -63,8 +63,7 @@ const SignupProvider = function SignupContextProvider(_a) {
63
63
  if (loading) {
64
64
  return LoadingComponent || null;
65
65
  }
66
- else
67
- return React.createElement(SignupContext.Provider, Object.assign({ value: value }, props));
66
+ return React.createElement(SignupContext.Provider, Object.assign({ value: value }, props));
68
67
  };
69
68
  // Holds formik state
70
69
  export const SignupFormikContext = React.createContext(undefined);
@@ -1 +1 @@
1
- {"version":3,"file":"signup-context.js","sourceRoot":"","sources":["signup-context.tsx"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,cAAc,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sDAAsD,CAAC;AAC9F,OAAO,eAAe,MAAM,uCAAuC,CAAC;AAEpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAqB1E,kCAAkC;AAClC,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,aAAa,CAAgB,SAAS,CAAC,CAAC;AAE3E,MAAM,cAAc,GAGf,SAAS,qBAAqB,CAAC,EAA8B;QAA9B,EAAE,gBAAgB,OAAY,EAAP,KAAK,cAA5B,oBAA8B,CAAF;IAC9D,mEAAmE;IACnE,8EAA8E;IAC9E,+BAA+B;IAC/B,MAAM,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IAE7D,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE1E,eAAe,CACb,CAAC,eAAe,EAChB,4CAA4C,CAC7C,CAAC;IAEF,4EAA4E;IAC5E,0EAA0E;IAC1E,wBAAwB;IACxB,MAAM,CAAC,OAAO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C/D,CAAC,CAAC,sBAAsB,CAAC,uBAAuB,EAAE,kBAAkB,CAAC;QACrE,CAAC,CAAC;YACE,SAAS,EAAE,IAAI;YACf,oBAAoB,EAAE,IAAI;YAC1B,WAAW,EAAE,IAAI;SAClB,CAAC;IAEN,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAC/B,OAAO;YACL,oBAAoB;YACpB,WAAW;YACX,SAAS;YACT,eAAe,EAAE,OAAO;YACxB,SAAS,EAAE,eAAe,CAAC,SAAS;YACpC,UAAU;YACV,OAAO;YACP,kBAAkB;YAClB,qBAAqB;SACtB,CAAC;IACJ,CAAC,EAAE;QACD,oBAAoB;QACpB,WAAW;QACX,SAAS;QACT,OAAO;QACP,eAAe,CAAC,SAAS;QACzB,OAAO;QACP,kBAAkB;KACnB,CAAC,CAAC;IAEH,IAAI,OAAO,EAAE;QACX,OAAO,gBAAgB,IAAI,IAAI,CAAC;KACjC;IACD,OAAO,oBAAC,aAAa,CAAC,QAAQ,kBAAC,KAAK,EAAE,KAAK,IAAM,KAAK,EAAI,CAAC;AAC7D,CAAC,CAAC;AAEF,qBAAqB;AACrB,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,CAAC,aAAa,CAEnD,SAAS,CAAC,CAAC;AAEd,eAAe,cAAc,CAAC"}
@@ -2,7 +2,7 @@ import { formatSignupInput } from '@jetshop/core/components/Auth/formatSignupInp
2
2
  import useAuth from '@jetshop/core/components/AuthContext/useAuth';
3
3
  import SignupMutation from '@jetshop/core/data/mutations/signup.gql';
4
4
  import getErrorDetail from '@jetshop/core/helpers/getErrorDetail';
5
- import { useApolloClient, useMutation } from '@apollo/react-hooks';
5
+ import { useApolloClient, useMutation } from '@apollo/client';
6
6
  import { useContext } from 'react';
7
7
  import { SignupContext } from './signup-context';
8
8
  import { trackRegisterEvent } from '../../analytics/tracking';
@@ -23,7 +23,7 @@ export function useSignupSubmit() {
23
23
  })
24
24
  }
25
25
  })
26
- .then(resp => {
26
+ .then((resp) => {
27
27
  // Submitting is done
28
28
  actions.setSubmitting(false);
29
29
  // Track user register in GTAG
@@ -33,7 +33,7 @@ export function useSignupSubmit() {
33
33
  // Log the user in with the token from signup
34
34
  logIn(resp.data.signUp.token.value);
35
35
  });
36
- }, error => {
36
+ }, (error) => {
37
37
  const errorDetail = getErrorDetail(error);
38
38
  const validationDetails = getvalidationDetails(errorDetail);
39
39
  // Submitting is done
@@ -43,7 +43,7 @@ export function useSignupSubmit() {
43
43
  isSignupError: true
44
44
  });
45
45
  })
46
- .catch(err => {
46
+ .catch((err) => {
47
47
  console.log(err);
48
48
  actions.setSubmitting(false);
49
49
  });
@@ -1 +1 @@
1
- {"version":3,"file":"signupSubmit.js","sourceRoot":"","sources":["signupSubmit.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAElB,MAAM,iDAAiD,CAAC;AACzD,OAAO,OAAO,MAAM,8CAA8C,CAAC;AACnE,OAAO,cAAc,MAAM,yCAAyC,CAAC;AACrE,OAAO,cAEN,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,MAAM,UAAU,eAAe;IAC7B,MAAM,CAAC,MAAM,CAAC,GAAG,WAAW,CAG1B,cAAc,CAAC,CAAC;IAClB,MAAM,MAAM,GAAG,eAAe,EAAE,CAAC;IACjC,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC;IAC5B,MAAM,EAAE,kBAAkB,EAAE,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IACzD,MAAM,KAAK,GAAG,UAAU,EAAE,CAAC;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C,CAAC;IAE5C,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AACzB,CAAC"}
@@ -10,7 +10,7 @@ export default function useAddressFields() {
10
10
  // Change the selected country by country code
11
11
  // This will change the fields and validations based on that country's settings
12
12
  const setCountryByCode = React.useCallback((countryCode) => {
13
- const country = countries.find(c => c.code === countryCode);
13
+ const country = countries.find((c) => c.code === countryCode);
14
14
  if (!country)
15
15
  return;
16
16
  setCountry(country);
@@ -18,8 +18,8 @@ export default function useAddressFields() {
18
18
  // Filter out the country field from the billing address fields, as it is handled separately
19
19
  // See: Countries.tsx
20
20
  const fields = billingAddressFields
21
- .filter(f => f.name !== 'country')
22
- .map(field => {
21
+ .filter((f) => f.name !== 'country')
22
+ .map((field) => {
23
23
  return Object.assign(Object.assign({}, field), { inputProps: {
24
24
  key: field.id,
25
25
  type: field.type,