@jetshop/core 5.17.0-alpha.313064eb → 5.17.0-alpha.32c42f6d

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. package/ChannelHandler/redirectUtils.d.ts +1 -1
  2. package/ChannelHandler/redirectUtils.test.js +5 -5
  3. package/ChannelHandler/redirectUtilsGroupedChannels.test.js +5 -5
  4. package/boot/NetworkStatusNotifier.d.ts +2 -0
  5. package/boot/NetworkStatusNotifier.js +4 -0
  6. package/boot/NetworkStatusNotifier.js.map +1 -0
  7. package/boot/SharedTree.d.ts +1 -1
  8. package/boot/SharedTree.js +1 -1
  9. package/boot/SharedTree.js.map +1 -1
  10. package/boot/apollo.d.ts +1 -2
  11. package/boot/apollo.js +12 -8
  12. package/boot/apollo.js.map +1 -1
  13. package/boot/client/startClient.js +14 -5
  14. package/boot/client/startClient.js.map +1 -1
  15. package/boot/server/IntervalQuery.d.ts +1 -1
  16. package/boot/server/IntervalQuery.js +2 -2
  17. package/boot/server/IntervalQuery.js.map +1 -1
  18. package/boot/server/IntervalQuery.test.js +9 -13
  19. package/boot/server/PersistedApolloClient.test.js +8 -7
  20. package/boot/server/createApolloServer.d.ts +2 -1
  21. package/boot/server/createApolloServer.js +5 -5
  22. package/boot/server/createApolloServer.js.map +1 -1
  23. package/boot/server/createRenderer.js +4 -2
  24. package/boot/server/createRenderer.js.map +1 -1
  25. package/boot/server/entrypoint.js +4 -2
  26. package/boot/server/entrypoint.js.map +1 -1
  27. package/boot/server/persistedQueries/__tests__/getPersistedQueriesForRequest.test.js +1 -1
  28. package/boot/utils/queryLoggingMiddleware.d.ts +1 -1
  29. package/boot/utils/queryLoggingMiddleware.js +2 -2
  30. package/boot/utils/queryLoggingMiddleware.js.map +1 -1
  31. package/cart/AddToCartFormik.d.ts +2 -2
  32. package/cart/AddToCartFormik.js +2 -2
  33. package/cart/AddToCartFormik.js.map +1 -1
  34. package/components/Auth/ForgotPasswordProvider.d.ts +2 -4
  35. package/components/Auth/ForgotPasswordProvider.js +18 -18
  36. package/components/Auth/ForgotPasswordProvider.js.map +1 -1
  37. package/components/Auth/ResetPasswordProvider.d.ts +1 -1
  38. package/components/Auth/ResetPasswordProvider.js +1 -1
  39. package/components/Auth/ResetPasswordProvider.js.map +1 -1
  40. package/components/Auth/SSN.js +4 -4
  41. package/components/Auth/SSN.js.map +1 -1
  42. package/components/Auth/SignupFormContainer.d.ts +2 -5
  43. package/components/Auth/SignupFormContainer.js.map +1 -1
  44. package/components/Auth/UpdatePasswordForm.js +6 -6
  45. package/components/Auth/UpdatePasswordForm.js.map +1 -1
  46. package/components/Auth/signup-context.d.ts +2 -2
  47. package/components/Auth/signup-context.js +2 -3
  48. package/components/Auth/signup-context.js.map +1 -1
  49. package/components/Auth/signupSubmit.js +4 -4
  50. package/components/Auth/signupSubmit.js.map +1 -1
  51. package/components/Auth/useAddressFields.js +3 -3
  52. package/components/Auth/useAddressFields.js.map +1 -1
  53. package/components/Auth/useAddressFields.test.js +10 -8
  54. package/components/Auth/useCustomer.d.ts +2 -2
  55. package/components/Auth/useCustomer.js +1 -1
  56. package/components/Auth/useCustomer.js.map +1 -1
  57. package/components/AuthContext/AuthProvider.js +2 -2
  58. package/components/AuthContext/AuthProvider.js.map +1 -1
  59. package/components/AuthContext/AuthProvider.test.js +1 -1
  60. package/components/AuthContext/LogOut.d.ts +2 -2
  61. package/components/ChannelContext/ChannelProvider.d.ts +1 -1
  62. package/components/ChannelContext/useCountrySettings.d.ts +1 -1
  63. package/components/ChannelContext/useCountrySettings.js +1 -1
  64. package/components/ChannelContext/useCountrySettings.js.map +1 -1
  65. package/components/DynamicRoute/ActiveFiltersQuery.gql +4 -4
  66. package/components/DynamicRoute/CategoryRoute.d.ts +3 -3
  67. package/components/DynamicRoute/CategoryRoute.js +6 -3
  68. package/components/DynamicRoute/CategoryRoute.js.map +1 -1
  69. package/components/DynamicRoute/ContentRoute.d.ts +1 -1
  70. package/components/DynamicRoute/GenericError.d.ts +18 -0
  71. package/components/DynamicRoute/GenericError.js +61 -0
  72. package/components/DynamicRoute/GenericError.js.map +1 -0
  73. package/components/DynamicRoute/PreviewRoute.d.ts +1 -1
  74. package/components/DynamicRoute/PreviewRoute.js +1 -1
  75. package/components/DynamicRoute/PreviewRoute.js.map +1 -1
  76. package/components/DynamicRoute/ProductByArticlenumber.d.ts +2 -2
  77. package/components/DynamicRoute/ProductByArticlenumber.js +2 -2
  78. package/components/DynamicRoute/ProductByArticlenumber.js.map +1 -1
  79. package/components/DynamicRoute/ProductRoute.d.ts +3 -3
  80. package/components/DynamicRoute/RouteResolver.d.ts +2 -2
  81. package/components/DynamicRoute/RouteResolver.js +1 -1
  82. package/components/DynamicRoute/RouteResolver.js.map +1 -1
  83. package/components/DynamicRoute/Status.d.ts +4 -3
  84. package/components/DynamicRoute/Status.js.map +1 -1
  85. package/components/DynamicRoute/index.d.ts +4 -4
  86. package/components/DynamicRoute/index.js +46 -42
  87. package/components/DynamicRoute/index.js.map +1 -1
  88. package/components/Filters/utils/replaceInSearch.d.ts +1 -1
  89. package/components/Filters/utils/replaceInSearch.js.map +1 -1
  90. package/components/Fonts/injectFont.js +2 -2
  91. package/components/Fonts/injectFont.js.map +1 -1
  92. package/components/Mutation/AddToCartFormik.d.ts +1 -1
  93. package/components/Mutation/AddToCartFormik.js +2 -2
  94. package/components/Mutation/AddToCartFormik.js.map +1 -1
  95. package/components/Mutation/DecrementQuantity.d.ts +2 -2
  96. package/components/Mutation/DecrementQuantity.js +1 -1
  97. package/components/Mutation/DecrementQuantity.js.map +1 -1
  98. package/components/Mutation/IncrementQuantity.d.ts +2 -2
  99. package/components/Mutation/IncrementQuantity.js +1 -1
  100. package/components/Mutation/IncrementQuantity.js.map +1 -1
  101. package/components/Mutation/RemoveFromCart.d.ts +2 -2
  102. package/components/Mutation/RemoveFromCart.js +1 -1
  103. package/components/Mutation/RemoveFromCart.js.map +1 -1
  104. package/components/Mutation/SetQuantity.d.ts +2 -2
  105. package/components/Mutation/SetQuantity.js +1 -1
  106. package/components/Mutation/SetQuantity.js.map +1 -1
  107. package/components/Mutation/SubscribeToNewsletter.d.ts +1 -1
  108. package/components/Mutation/SubscribeToNewsletter.js +1 -1
  109. package/components/Mutation/SubscribeToNewsletter.js.map +1 -1
  110. package/components/Mutation/SubscribeToStockNotifications.d.ts +1 -1
  111. package/components/Mutation/SubscribeToStockNotifications.js +6 -2
  112. package/components/Mutation/SubscribeToStockNotifications.js.map +1 -1
  113. package/components/Mutation/cartMutationUtils.d.ts +1 -2
  114. package/components/Mutation/cartMutationUtils.js.map +1 -1
  115. package/components/Mutation/useDecrementQuantity.d.ts +1 -1
  116. package/components/Mutation/useDecrementQuantity.js +1 -1
  117. package/components/Mutation/useDecrementQuantity.js.map +1 -1
  118. package/components/Mutation/useIncrementQuantity.d.ts +1 -1
  119. package/components/Mutation/useIncrementQuantity.js +1 -1
  120. package/components/Mutation/useIncrementQuantity.js.map +1 -1
  121. package/components/Mutation/useRemoveFromCart.d.ts +1 -1
  122. package/components/Mutation/useRemoveFromCart.js +1 -1
  123. package/components/Mutation/useRemoveFromCart.js.map +1 -1
  124. package/components/Mutation/useSetQuantity.d.ts +1 -1
  125. package/components/Mutation/useSetQuantity.js +1 -1
  126. package/components/Mutation/useSetQuantity.js.map +1 -1
  127. package/components/Notifications/Notifications.d.ts +3 -3
  128. package/components/Notifications/Notifications.js +2 -3
  129. package/components/Notifications/Notifications.js.map +1 -1
  130. package/components/ProductConfigurationProvider/ProductConfigurationProvider.js +6 -6
  131. package/components/ProductConfigurationProvider/ProductConfigurationProvider.js.map +1 -1
  132. package/components/Query/CartProvider.d.ts +1 -1
  133. package/components/Query/CartProvider.js +1 -1
  134. package/components/Query/CartProvider.js.map +1 -1
  135. package/components/SortOrder/SortOrderContainer.d.ts +1 -1
  136. package/components/StructuredData/StructuredBreadcrumbData.d.ts +2 -2
  137. package/data/cache.d.ts +1 -1
  138. package/data/cache.js +43 -13
  139. package/data/cache.js.map +1 -1
  140. package/data/fragments/StockStatusFragment.gql +0 -1
  141. package/global.d.ts +55 -1
  142. package/helpers/getErrorDetail.d.ts +1 -1
  143. package/helpers/getErrorDetail.js +2 -2
  144. package/helpers/getErrorDetail.js.map +1 -1
  145. package/hooks/Filters/useBooleanFilter.d.ts +1 -1
  146. package/hooks/Filters/useBooleanFilter.js +1 -2
  147. package/hooks/Filters/useBooleanFilter.js.map +1 -1
  148. package/hooks/Filters/useFilters.d.ts +1 -1
  149. package/hooks/Filters/useFilters.js +1 -2
  150. package/hooks/Filters/useFilters.js.map +1 -1
  151. package/hooks/Filters/useListFilter.d.ts +2 -2
  152. package/hooks/Filters/useListFilter.js +1 -2
  153. package/hooks/Filters/useListFilter.js.map +1 -1
  154. package/hooks/Filters/useMultiFilter.d.ts +3 -3
  155. package/hooks/Filters/useMultiFilter.js +1 -2
  156. package/hooks/Filters/useMultiFilter.js.map +1 -1
  157. package/hooks/Filters/useRangeFilter.d.ts +2 -2
  158. package/hooks/Filters/useRangeFilter.js +1 -2
  159. package/hooks/Filters/useRangeFilter.js.map +1 -1
  160. package/hooks/Filters/useSortOrder.d.ts +6 -1
  161. package/hooks/Filters/useSortOrder.js +4 -3
  162. package/hooks/Filters/useSortOrder.js.map +1 -1
  163. package/hooks/PackageProducts/usePackageProductItem.d.ts +1 -1
  164. package/hooks/PackageProducts/usePackageProductItem.js +1 -1
  165. package/hooks/PackageProducts/usePackageProductItem.js.map +1 -1
  166. package/hooks/PackageProducts/usePackageProducts.js +17 -17
  167. package/hooks/PackageProducts/usePackageProducts.js.map +1 -1
  168. package/hooks/PackageProducts/usePackageProducts.test.js +1 -1
  169. package/hooks/ProductList/ProductListContext.js +1 -1
  170. package/hooks/ProductList/ProductListContext.js.map +1 -1
  171. package/hooks/ProductList/action-creators.d.ts +1 -1
  172. package/hooks/ProductList/index.d.ts +1 -1
  173. package/hooks/ProductList/list-transforms.js +1 -1
  174. package/hooks/ProductList/list-transforms.js.map +1 -1
  175. package/hooks/ProductList/product-list-reducer.js +1 -1
  176. package/hooks/ProductList/product-list-reducer.js.map +1 -1
  177. package/hooks/ProductList/useProductList.js +1 -1
  178. package/hooks/ProductList/useProductList.js.map +1 -1
  179. package/hooks/ProductList/useProductListItems.js +1 -1
  180. package/hooks/ProductList/useProductListItems.js.map +1 -1
  181. package/hooks/Subscriptions/useNewsletterSubscription.js +3 -3
  182. package/hooks/Subscriptions/useNewsletterSubscription.js.map +1 -1
  183. package/hooks/Subscriptions/useStockNotifications.d.ts +1 -1
  184. package/hooks/Subscriptions/useStockNotifications.js +3 -3
  185. package/hooks/Subscriptions/useStockNotifications.js.map +1 -1
  186. package/hooks/Subscriptions/useStoreSubscriptions.d.ts +1 -1
  187. package/hooks/Subscriptions/useStoreSubscriptions.js +3 -6
  188. package/hooks/Subscriptions/useStoreSubscriptions.js.map +1 -1
  189. package/hooks/Subscriptions/useStoresubscriptions.test.js +5 -7
  190. package/hooks/useAddMultipleToCart.d.ts +1 -1
  191. package/hooks/useAddMultipleToCart.js +1 -1
  192. package/hooks/useAddMultipleToCart.js.map +1 -1
  193. package/hooks/useAddMultipleToCart.test.js +1 -1
  194. package/hooks/useCustomerOrders.test.js +7 -5
  195. package/hooks/useCustomerOrdersQuery.d.ts +2 -2
  196. package/hooks/useCustomerOrdersQuery.js +1 -1
  197. package/hooks/useCustomerOrdersQuery.js.map +1 -1
  198. package/hooks/useDeleteAccountMutation.js +3 -3
  199. package/hooks/useDeleteAccountMutation.js.map +1 -1
  200. package/hooks/useInfinitePagination.d.ts +1 -1
  201. package/hooks/useInfinitePagination.js +4 -1
  202. package/hooks/useInfinitePagination.js.map +1 -1
  203. package/hooks/useLoginMutation.d.ts +3 -3
  204. package/hooks/useLoginMutation.js +2 -2
  205. package/hooks/useLoginMutation.js.map +1 -1
  206. package/hooks/useLoginRedirect.js +2 -2
  207. package/hooks/useLoginRedirect.js.map +1 -1
  208. package/hooks/useOrderDetailQuery.d.ts +3 -3
  209. package/hooks/useOrderDetailQuery.js +1 -1
  210. package/hooks/useOrderDetailQuery.js.map +1 -1
  211. package/hooks/useRoutePreload.js +1 -1
  212. package/hooks/useRoutePreload.js.map +1 -1
  213. package/hooks/useStockStatus.d.ts +8 -0
  214. package/hooks/useStockStatus.js +26 -0
  215. package/hooks/useStockStatus.js.map +1 -0
  216. package/integrations/addwishSchemaExtension.js +3 -3
  217. package/integrations/addwishSchemaExtension.js.map +1 -1
  218. package/integrations/nostoSchemaExtension.js +2 -2
  219. package/integrations/nostoSchemaExtension.js.map +1 -1
  220. package/integrations/sluggishSchemaExtension.js +1 -1
  221. package/integrations/sluggishSchemaExtension.js.map +1 -1
  222. package/package.json +10 -25
  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
@@ -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,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AAM,EACN,MAAM,EACN,SAAS,CACV;wBACD,UAAU,EAAE,cAAc;qBAC3B;iBACF;aACF,CAAC;iBACC,IAAI,CACH,gBAAgB,CAAC;gBACf,kBAAkB;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"}
@@ -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
  }>;
@@ -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,EA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C,CAAC;IACH,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AAC/B,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,KAA0B;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;
@@ -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","sourceRoot":"","sources":["ResetPasswordProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAClF,OAAO,CAAC,MAAM,eAAe,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,EAAe,MAAM,QAAQ,CAAC;AACnD,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAC1D,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAI1E,SAAS,qBAAqB;IAC5B,MAAM,EAAE,uBAAuB,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAEzD,MAAM,kBAAkB,GACtB,CAAC,uBAAuB,IA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FAAmF;AACnF,MAAM,UAAU,oBAAoB;IAClC,MAAM,OAAO,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAC;IAEjD,eAAe,CACb,CAAC,OAAO,EACR,2EAA2E,CAC5E,CAAC;IAEF,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAE3B,uDAAuD;IACvD,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC;QAC9C,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;QACvC,CAAC,CAAC,SAAS,CAAC;IAEd,MAAM,kBAAkB,GAAG;QACzB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,aAAa;QACnB,YAAY,EAAE,cAAc;KAC7B,CAAC;IAEF,uCACK,MAAM,KACT,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,CA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AE,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;AAC1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'@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;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,sBAAsB,MAAM,uDAAuD,CAAC;AAc3F,MAAM,UAAU,GAAG;IACjB,WAAW,EAAE;QACX,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,IAAI;QACd,YAAY,EAAE,kBAAkB;KACjC;IACD,WAAW,EAAE;QACX,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,IAAI;QACd,YAAY,EAAE,cAAc;KAC7B;IACD,cAAc,EAAE;QACd,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,IAAI;QACd,YAAY,EAAE,cAAc;KAC7B;CACF,CAAC;AAeF,MAAM,CAAC,MAAM,sBAAsB,GAAqD,CAAC,EACvF,MAAM,EACN,eAAe,EAChB,EAAE,EAAE;IACH,MAAM,sBAAsB,GAAG,yBAAyB,EAAE,CAAC;IAC3D,0EAA0E;IAC1E,kCAAkC;IAClC,MAAM,EAAE,eAAe,EAAE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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;AAqB1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;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,EAA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AAa,CAAC,KAAK,CAAC,CAAC;YAE7B,OAAO,CAAC,SAAS,CAAC;gBAChB,iBAAiB;gBACjB,aAAa,EAAE,IAAI;aACpB,CAAC,CAAC;QACL,CAAC,CACF;aACA,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;YACb,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACjB,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACP,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,oBAAoB,CAAC,WAAwB;IACpD,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IACjD,MAAM,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,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,
@@ -1 +1 @@
1
- {"version":3,"file":"useAddressFields.js","sourceRoot":"","sources":["useAddressFields.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,uCAAuC,CAAC;AACpE,OAAO,KAAK,MAAM,O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IACJ,CAAC,CAAC,CAAC;IAEL,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;AACjD,CAAC"}
@@ -3,11 +3,13 @@ import { render, fireEvent, waitForElement } from '@testing-library/react';
3
3
  import useAddressFields from './useAddressFields';
4
4
  import ChannelContext from '@jetshop/core/components/ChannelContext';
5
5
  import SignupProvider from './signup-context';
6
- import { ApolloClient } from 'apollo-client';
7
- import { MockLink } from 'apollo-link-mock';
8
- import { ApolloProvider } from 'react-apollo';
9
- import { InMemoryCache } from 'apollo-cache-inmemory';
10
- import gql from 'graphql-tag';
6
+ import {
7
+ ApolloClient,
8
+ ApolloProvider,
9
+ InMemoryCache,
10
+ gql
11
+ } from '@apollo/client';
12
+ import { MockLink } from '@apollo/client';
11
13
 
12
14
  const fields = [
13
15
  {
@@ -69,7 +71,7 @@ describe('useAddressFields', () => {
69
71
  const testFields = await waitForElement(() => getAllByTestId('field'));
70
72
 
71
73
  expect(testFields).toHaveLength(2);
72
- testFields.map(field => expect(field.id).not.toBe('country'));
74
+ testFields.map((field) => expect(field.id).not.toBe('country'));
73
75
  });
74
76
 
75
77
  it('changes the form fields based on selected country', async () => {
@@ -270,7 +272,7 @@ function Wrapper() {
270
272
  return (
271
273
  <>
272
274
  <div>
273
- {fields.map(field => (
275
+ {fields.map((field) => (
274
276
  <span data-testid="field" key={field.name}>
275
277
  {field.name}
276
278
  </span>
@@ -284,7 +286,7 @@ function Wrapper() {
284
286
  Set country from form
285
287
  </button>
286
288
 
287
- {countries.map(country => (
289
+ {countries.map((country) => (
288
290
  <span data-testid="country" key={country.id}>
289
291
  {country.code}
290
292
  </span>
@@ -77,13 +77,13 @@ export declare function useCustomerQuery({ query, deliveryAddressId }: {
77
77
  query: DocumentNode;
78
78
  deliveryAddressId?: number;
79
79
  }): {
80
- refetch: (variables?: import("react-apollo").OperationVariables) => Promise<import("apollo-client").ApolloQueryResult<{
80
+ refetch: (variables?: Partial<import("@apollo/client").OperationVariables>) => Promise<import("@apollo/client").ApolloQueryResult<{
81
81
  customer: Query['customer'] & {
82
82
  __typename: 'BusinessCustomer' | 'PrivateCustomer';
83
83
  };
84
84
  }>>;
85
85
  loading: boolean;
86
- error: import("apollo-client").ApolloError;
86
+ error: import("@apollo/client").ApolloError;
87
87
  customer: Customer & {
88
88
  __typename: 'BusinessCustomer' | 'PrivateCustomer';
89
89
  };
@@ -13,7 +13,7 @@ import ChannelContext from '@jetshop/core/components/ChannelContext';
13
13
  import UpdateCustomerMutation from '@jetshop/core/data/mutations/updateCustomer.gql';
14
14
  import logError from '@jetshop/core/helpers/logError';
15
15
  import { useCallback, useContext, useEffect, useMemo, useState } from 'react';
16
- import { useMutation, useQuery } from '@apollo/react-hooks';
16
+ import { useMutation, useQuery } from '@apollo/client';
17
17
  import { translations } from './signup-field-translations';
18
18
  import { useCountrySettings } from '../ChannelContext/useCountrySettings';
19
19
  export function customerAddressToCustomerUpdateAddressInput({ address, isDeleteId = false, countryCode }) {
@@ -1 +1 @@
1
- {"version":3,"file":"useCustomer.js","sourceRoot":"","sources":["useCustomer.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,cAAc,MAAM,yCAAyC,CAAC;AACrE,OAAO,sBAAsB,MAAM,iDAAiD,CAAC;AACrF,OAAO,QAAQ,MAAM,gCAAgC,CAAC;AAiBtD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAK1E,MAAM,UAAU,2CAA2C,CAAC,EAC1D,OAAO,EACP,UAAU,GAAG,KAAK,EAClB,WAAW,EAKZ;IACC,MAAM,EAAE,OAAO,KAAe,OAAO,EAAjB,KAAK,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IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,QAAQ,CAI/C,KAAK,CAAC,CAAC;IAEV,MAAM,QAAQ,GAAG,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ,mCAAI,IAAI,CAAC;IAExC,MAAM,EACJ,eAAe,EACf,cAAc,EACd,cAAc,EACd,eAAe,EACf,8BAA8B,EAC/B,GAAG,kBAAkB,CAAC,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC,CAAC;IAExD,OAAO;QACL,OAAO;QACP,OAAO,EAAE,OAAO,IAAI,8BAA8B;QAClD,KAAK;QACL,QAAQ;QACR,eAAe;QACf,cAAc;QACd,cAAc;QACd,eAAe;KAChB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,EACxC,aAAa,EAGd;IACC,MAAM,CAAC,MAAM,CAAC,GAAG,WAAW,CAG1B,sBAAsB,CAAC,CAAC;IAC1B,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,GAAG,gBAAgB,CAAC;QACpD,KAAK,EAAE,aAAa;KACrB,CAAC,CAAC;IAEH,OAAO,SAAS,6BAA6B,CAAC,KAA0B;QACtE,OAAO,OAAO,CAAC,OAAO,EAAE;aACrB,IAAI,CAAC,GAAG,EAAE,CACT,MAAM,CAAC;YACL,SAAS,EAAE;gBACT,KAAK;aACN;SACF,CAAC,CACH;aACA,IAAI,CAAC,GAAG,EAAE,CAAC,eAAe,EAAE,CAAC;aAC7B,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC,CAAC;AACJ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { useApolloClient } from 'react-apollo';
1
+ import { useApolloClient } from '@apollo/client';
2
2
  import React, { useContext, useEffect } from 'react';
3
3
  import AuthContext from './AuthContext';
4
4
  import { withCookies } from 'react-cookie';
@@ -7,7 +7,7 @@ import ChannelContext from '@jetshop/core/components/ChannelContext';
7
7
  import { useShopConfig } from '../../hooks/useShopConfig';
8
8
  import { trackUserEvent } from '../../analytics/tracking';
9
9
  import { useTracker } from '../../analytics/Analytics';
10
- import { useQuery } from '@apollo/react-hooks';
10
+ import { useQuery } from '@apollo/client';
11
11
  import googleUserIdQuery from './googleUserIdQuery.gql';
12
12
  const AuthProvider = function AuthProvider(props) {
13
13
  var _a, _b;
@@ -1 +1 @@
1
- {"version":3,"file":"AuthProvider.js","sourceRoot":"","sources":["AuthProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,cAAc,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,iBAAiB,MAAM,yBAAyB,CAAC;AAExD,MAAM,YAAY,GAGb,SAAS,YAAY,CAAC,KAAK;;IAC9B,MAAM,KAAK,GAAG,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,0CAAE,OAAO,0CAAE,SAAS,CAAC;IACjD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,MAAM,GAAG,eAAe,EAAE,CAAC;IACjC,MAAM,EAAE,eAAe,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IACvD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AAC,CAAC;QAE7C,OAAO,GAAG,EAAE;YACV,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QAClD,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC,YAAY,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { MockedProvider } from '@apollo/react-testing';
1
+ import { MockedProvider } from '@apollo/client/testing';
2
2
  import React from 'react';
3
3
  import { ChannelHandler } from '../../ChannelHandler/ChannelHandler';
4
4
  import { createSelectedChannel } from '../../ChannelHandler/channelUtils';
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  declare function LogOut({ logOutRedirectPath }: {
3
3
  logOutRedirectPath: string;
4
- }): JSX.Element;
4
+ }): React.JSX.Element;
5
5
  export default LogOut;
@@ -6,5 +6,5 @@ export interface ChannelProviderProps {
6
6
  children?: React.ReactNode;
7
7
  config: BootOptions;
8
8
  }
9
- declare const ChannelProvider: ({ channelHandler, children, config }: ChannelProviderProps) => JSX.Element;
9
+ declare const ChannelProvider: ({ channelHandler, children, config }: ChannelProviderProps) => React.JSX.Element;
10
10
  export default ChannelProvider;
@@ -1,5 +1,5 @@
1
1
  declare function useCountrySettings({ countrySettingsQuery }?: {
2
- countrySettingsQuery: import("graphql").DocumentNode;
2
+ countrySettingsQuery: import("@apollo/client").DocumentNode;
3
3
  }): {
4
4
  selectedCountrySettings: import("../../types").CountrySettings;
5
5
  countrySettings: import("../../types").CountrySettings[];
@@ -1,6 +1,6 @@
1
+ import { useQuery } from '@apollo/client';
1
2
  import { useContext } from 'react';
2
3
  import ChannelContext from '@jetshop/core/components/ChannelContext';
3
- import { useQuery } from 'react-apollo';
4
4
  import defaultCountrySettingsQuery from './CountrySettingsQuery.gql';
5
5
  function useCountrySettings({ countrySettingsQuery } = {
6
6
  countrySettingsQuery: defaultCountrySettingsQuery
@@ -1 +1 @@
1
- {"version":3,"file":"useCountrySettings.js","sourceRoot":"","sources":["useCountrySettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,cAAc,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,2BAA2B,MAAM,4BAA4B,CAAC;AAGrE,SAAS,kBAAkB,CACzB,EAAE,oBAAoB,EAAE,GAAG;IACzB,oBAAoB,EAAE,2BAA2B;CAClD;;IAED,MAAM,EAAE,eAAe,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IACvD,MAAM,MAAM,GAAG,QAAQ,CAAuB,oBAAoB,EAAE;QAClE,SAAS,EAAE,EAAE,EAAE,EAAE,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,EAAE;KACjD,CAAC,CAAC;IACH,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAEjC,MAAM,uBAAuB,GAAG,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,0CAAE,QAAQ,CAAC,eAAe,CAAC,IAAI,CAC1E,CAAC,cAAc,EAAE,EAAE;QACjB,OAAO,cAAc,CAAC,WAAW,KAAK,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC;IACrE,CAAC,CACF,CAAC;IACF,OAAO;QACL,uBAAuB;QACvB,eAAe,EAAE,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,0CAAE,QAAQ,CAAC,eAAe;QACxD,OAAO;KACR,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"useCountrySettings.js","sourceRoot":"","sources":["useCountrySettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,cAAc,MAAM,y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