@jetshop/core 5.17.0-alpha.240a6034 → 5.17.0-alpha.240f9d97

Sign up to get free protection for your applications and to get access to all the features.
Files changed (253) 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/boot/NetworkStatusNotifier.d.ts +2 -0
  9. package/boot/NetworkStatusNotifier.js +4 -0
  10. package/boot/NetworkStatusNotifier.js.map +1 -0
  11. package/boot/SharedTree.d.ts +1 -1
  12. package/boot/SharedTree.js +1 -1
  13. package/boot/SharedTree.js.map +1 -1
  14. package/boot/apollo.d.ts +1 -2
  15. package/boot/apollo.js +13 -8
  16. package/boot/apollo.js.map +1 -1
  17. package/boot/client/startClient.js +18 -5
  18. package/boot/client/startClient.js.map +1 -1
  19. package/boot/server/IntervalQuery.d.ts +1 -1
  20. package/boot/server/IntervalQuery.js +2 -2
  21. package/boot/server/IntervalQuery.js.map +1 -1
  22. package/boot/server/IntervalQuery.test.js +9 -13
  23. package/boot/server/PersistedApolloClient.test.js +8 -7
  24. package/boot/server/createApolloServer.d.ts +2 -1
  25. package/boot/server/createApolloServer.js +5 -5
  26. package/boot/server/createApolloServer.js.map +1 -1
  27. package/boot/server/createRenderer.js +4 -2
  28. package/boot/server/createRenderer.js.map +1 -1
  29. package/boot/server/entrypoint.js +7 -4
  30. package/boot/server/entrypoint.js.map +1 -1
  31. package/boot/server/persistedQueries/__tests__/getPersistedQueriesForRequest.test.js +1 -1
  32. package/boot/utils/queryLoggingMiddleware.d.ts +1 -1
  33. package/boot/utils/queryLoggingMiddleware.js +2 -2
  34. package/boot/utils/queryLoggingMiddleware.js.map +1 -1
  35. package/cart/AddToCartFormik.d.ts +2 -2
  36. package/cart/AddToCartFormik.js +2 -2
  37. package/cart/AddToCartFormik.js.map +1 -1
  38. package/cart/useAddToCart.d.ts +1 -1
  39. package/components/Auth/ForgotPasswordProvider.d.ts +4 -6
  40. package/components/Auth/ForgotPasswordProvider.js +18 -18
  41. package/components/Auth/ForgotPasswordProvider.js.map +1 -1
  42. package/components/Auth/ResetPasswordProvider.d.ts +5 -3
  43. package/components/Auth/ResetPasswordProvider.js +1 -1
  44. package/components/Auth/ResetPasswordProvider.js.map +1 -1
  45. package/components/Auth/SSN.js +4 -4
  46. package/components/Auth/SSN.js.map +1 -1
  47. package/components/Auth/SignupFormContainer.d.ts +2 -5
  48. package/components/Auth/SignupFormContainer.js.map +1 -1
  49. package/components/Auth/UpdatePasswordForm.js +6 -6
  50. package/components/Auth/UpdatePasswordForm.js.map +1 -1
  51. package/components/Auth/signup-context.d.ts +2 -2
  52. package/components/Auth/signup-context.js +2 -3
  53. package/components/Auth/signup-context.js.map +1 -1
  54. package/components/Auth/signupSubmit.js +4 -4
  55. package/components/Auth/signupSubmit.js.map +1 -1
  56. package/components/Auth/useAddressFields.js +3 -3
  57. package/components/Auth/useAddressFields.js.map +1 -1
  58. package/components/Auth/useAddressFields.test.js +10 -8
  59. package/components/Auth/useCustomer.d.ts +2 -2
  60. package/components/Auth/useCustomer.js +1 -1
  61. package/components/Auth/useCustomer.js.map +1 -1
  62. package/components/AuthContext/AuthProvider.js +2 -2
  63. package/components/AuthContext/AuthProvider.js.map +1 -1
  64. package/components/AuthContext/AuthProvider.test.js +1 -1
  65. package/components/AuthContext/LogOut.d.ts +2 -2
  66. package/components/ChannelContext/ChannelProvider.d.ts +1 -1
  67. package/components/ChannelContext/useCountrySettings.d.ts +1 -1
  68. package/components/ChannelContext/useCountrySettings.js +1 -1
  69. package/components/ChannelContext/useCountrySettings.js.map +1 -1
  70. package/components/DynamicRoute/ActiveFiltersQuery.gql +4 -4
  71. package/components/DynamicRoute/CategoryRoute.d.ts +3 -3
  72. package/components/DynamicRoute/CategoryRoute.js +6 -3
  73. package/components/DynamicRoute/CategoryRoute.js.map +1 -1
  74. package/components/DynamicRoute/ContentRoute.d.ts +1 -1
  75. package/components/DynamicRoute/GenericError.d.ts +18 -0
  76. package/components/DynamicRoute/GenericError.js +61 -0
  77. package/components/DynamicRoute/GenericError.js.map +1 -0
  78. package/components/DynamicRoute/PreviewRoute.d.ts +1 -1
  79. package/components/DynamicRoute/PreviewRoute.js +1 -1
  80. package/components/DynamicRoute/PreviewRoute.js.map +1 -1
  81. package/components/DynamicRoute/ProductByArticlenumber.d.ts +2 -2
  82. package/components/DynamicRoute/ProductByArticlenumber.js +2 -2
  83. package/components/DynamicRoute/ProductByArticlenumber.js.map +1 -1
  84. package/components/DynamicRoute/ProductRoute.d.ts +3 -3
  85. package/components/DynamicRoute/RouteResolver.d.ts +2 -2
  86. package/components/DynamicRoute/RouteResolver.js +1 -1
  87. package/components/DynamicRoute/RouteResolver.js.map +1 -1
  88. package/components/DynamicRoute/Status.d.ts +4 -3
  89. package/components/DynamicRoute/Status.js.map +1 -1
  90. package/components/DynamicRoute/index.d.ts +4 -4
  91. package/components/DynamicRoute/index.js +47 -42
  92. package/components/DynamicRoute/index.js.map +1 -1
  93. package/components/Filters/utils/replaceInSearch.d.ts +1 -1
  94. package/components/Filters/utils/replaceInSearch.js.map +1 -1
  95. package/components/Fonts/injectFont.js +2 -2
  96. package/components/Fonts/injectFont.js.map +1 -1
  97. package/components/Mutation/AddToCartFormik.d.ts +1 -1
  98. package/components/Mutation/AddToCartFormik.js +2 -2
  99. package/components/Mutation/AddToCartFormik.js.map +1 -1
  100. package/components/Mutation/DecrementQuantity.d.ts +2 -2
  101. package/components/Mutation/DecrementQuantity.js +1 -1
  102. package/components/Mutation/DecrementQuantity.js.map +1 -1
  103. package/components/Mutation/IncrementQuantity.d.ts +2 -2
  104. package/components/Mutation/IncrementQuantity.js +1 -1
  105. package/components/Mutation/IncrementQuantity.js.map +1 -1
  106. package/components/Mutation/RemoveFromCart.d.ts +2 -2
  107. package/components/Mutation/RemoveFromCart.js +1 -1
  108. package/components/Mutation/RemoveFromCart.js.map +1 -1
  109. package/components/Mutation/SetQuantity.d.ts +2 -2
  110. package/components/Mutation/SetQuantity.js +1 -1
  111. package/components/Mutation/SetQuantity.js.map +1 -1
  112. package/components/Mutation/SubscribeToNewsletter.d.ts +1 -1
  113. package/components/Mutation/SubscribeToNewsletter.js +1 -1
  114. package/components/Mutation/SubscribeToNewsletter.js.map +1 -1
  115. package/components/Mutation/SubscribeToStockNotifications.d.ts +1 -1
  116. package/components/Mutation/SubscribeToStockNotifications.js +6 -2
  117. package/components/Mutation/SubscribeToStockNotifications.js.map +1 -1
  118. package/components/Mutation/cartMutationUtils.d.ts +1 -2
  119. package/components/Mutation/cartMutationUtils.js.map +1 -1
  120. package/components/Mutation/useDecrementQuantity.d.ts +1 -1
  121. package/components/Mutation/useDecrementQuantity.js +1 -1
  122. package/components/Mutation/useDecrementQuantity.js.map +1 -1
  123. package/components/Mutation/useIncrementQuantity.d.ts +1 -1
  124. package/components/Mutation/useIncrementQuantity.js +1 -1
  125. package/components/Mutation/useIncrementQuantity.js.map +1 -1
  126. package/components/Mutation/useRemoveFromCart.d.ts +1 -1
  127. package/components/Mutation/useRemoveFromCart.js +1 -1
  128. package/components/Mutation/useRemoveFromCart.js.map +1 -1
  129. package/components/Mutation/useSetQuantity.d.ts +1 -1
  130. package/components/Mutation/useSetQuantity.js +1 -1
  131. package/components/Mutation/useSetQuantity.js.map +1 -1
  132. package/components/Notifications/Notifications.d.ts +3 -3
  133. package/components/Notifications/Notifications.js +2 -3
  134. package/components/Notifications/Notifications.js.map +1 -1
  135. package/components/ProductConfigurationProvider/ProductConfigurationProvider.js +6 -6
  136. package/components/ProductConfigurationProvider/ProductConfigurationProvider.js.map +1 -1
  137. package/components/Query/CartProvider.d.ts +1 -1
  138. package/components/Query/CartProvider.js +1 -1
  139. package/components/Query/CartProvider.js.map +1 -1
  140. package/components/SortOrder/SortOrderContainer.d.ts +1 -1
  141. package/components/StructuredData/StructuredBreadcrumbData.d.ts +2 -2
  142. package/data/cache.d.ts +1 -1
  143. package/data/cache.js +62 -12
  144. package/data/cache.js.map +1 -1
  145. package/global.d.ts +55 -1
  146. package/helpers/getErrorDetail.d.ts +1 -1
  147. package/helpers/getErrorDetail.js +2 -2
  148. package/helpers/getErrorDetail.js.map +1 -1
  149. package/hooks/Filters/useBooleanFilter.d.ts +1 -1
  150. package/hooks/Filters/useBooleanFilter.js +1 -2
  151. package/hooks/Filters/useBooleanFilter.js.map +1 -1
  152. package/hooks/Filters/useFilters.d.ts +1 -1
  153. package/hooks/Filters/useFilters.js +1 -2
  154. package/hooks/Filters/useFilters.js.map +1 -1
  155. package/hooks/Filters/useListFilter.d.ts +2 -2
  156. package/hooks/Filters/useListFilter.js +1 -2
  157. package/hooks/Filters/useListFilter.js.map +1 -1
  158. package/hooks/Filters/useMultiFilter.d.ts +3 -3
  159. package/hooks/Filters/useMultiFilter.js +1 -2
  160. package/hooks/Filters/useMultiFilter.js.map +1 -1
  161. package/hooks/Filters/useRangeFilter.d.ts +2 -2
  162. package/hooks/Filters/useRangeFilter.js +1 -2
  163. package/hooks/Filters/useRangeFilter.js.map +1 -1
  164. package/hooks/Filters/useSortOrder.d.ts +6 -1
  165. package/hooks/Filters/useSortOrder.js +4 -3
  166. package/hooks/Filters/useSortOrder.js.map +1 -1
  167. package/hooks/PackageProducts/usePackageProductItem.d.ts +1 -1
  168. package/hooks/PackageProducts/usePackageProductItem.js +1 -1
  169. package/hooks/PackageProducts/usePackageProductItem.js.map +1 -1
  170. package/hooks/PackageProducts/usePackageProducts.js +17 -17
  171. package/hooks/PackageProducts/usePackageProducts.js.map +1 -1
  172. package/hooks/PackageProducts/usePackageProducts.test.js +1 -1
  173. package/hooks/ProductList/ProductListContext.js +1 -1
  174. package/hooks/ProductList/ProductListContext.js.map +1 -1
  175. package/hooks/ProductList/action-creators.d.ts +1 -1
  176. package/hooks/ProductList/index.d.ts +1 -1
  177. package/hooks/ProductList/list-transforms.js +1 -1
  178. package/hooks/ProductList/list-transforms.js.map +1 -1
  179. package/hooks/ProductList/product-list-reducer.js +1 -1
  180. package/hooks/ProductList/product-list-reducer.js.map +1 -1
  181. package/hooks/ProductList/useProductList.js +1 -1
  182. package/hooks/ProductList/useProductList.js.map +1 -1
  183. package/hooks/ProductList/useProductListItems.js +1 -1
  184. package/hooks/ProductList/useProductListItems.js.map +1 -1
  185. package/hooks/Subscriptions/useNewsletterSubscription.js +3 -3
  186. package/hooks/Subscriptions/useNewsletterSubscription.js.map +1 -1
  187. package/hooks/Subscriptions/useStockNotifications.d.ts +1 -1
  188. package/hooks/Subscriptions/useStockNotifications.js +3 -3
  189. package/hooks/Subscriptions/useStockNotifications.js.map +1 -1
  190. package/hooks/Subscriptions/useStoreSubscriptions.d.ts +1 -1
  191. package/hooks/Subscriptions/useStoreSubscriptions.js +3 -6
  192. package/hooks/Subscriptions/useStoreSubscriptions.js.map +1 -1
  193. package/hooks/Subscriptions/useStoresubscriptions.test.js +5 -7
  194. package/hooks/useAddMultipleToCart.d.ts +1 -1
  195. package/hooks/useAddMultipleToCart.js +1 -1
  196. package/hooks/useAddMultipleToCart.js.map +1 -1
  197. package/hooks/useAddMultipleToCart.test.js +1 -1
  198. package/hooks/useCustomerOrders.test.js +7 -5
  199. package/hooks/useCustomerOrdersQuery.d.ts +2 -2
  200. package/hooks/useCustomerOrdersQuery.js +1 -1
  201. package/hooks/useCustomerOrdersQuery.js.map +1 -1
  202. package/hooks/useDeleteAccountMutation.js +3 -3
  203. package/hooks/useDeleteAccountMutation.js.map +1 -1
  204. package/hooks/useInfinitePagination.d.ts +1 -1
  205. package/hooks/useInfinitePagination.js +4 -1
  206. package/hooks/useInfinitePagination.js.map +1 -1
  207. package/hooks/useLoginMutation.d.ts +3 -3
  208. package/hooks/useLoginMutation.js +2 -2
  209. package/hooks/useLoginMutation.js.map +1 -1
  210. package/hooks/useLoginRedirect.js +2 -2
  211. package/hooks/useLoginRedirect.js.map +1 -1
  212. package/hooks/useOrderDetailQuery.d.ts +3 -3
  213. package/hooks/useOrderDetailQuery.js +1 -1
  214. package/hooks/useOrderDetailQuery.js.map +1 -1
  215. package/hooks/useRoutePreload.js +1 -1
  216. package/hooks/useRoutePreload.js.map +1 -1
  217. package/hooks/useStockStatus.d.ts +8 -0
  218. package/hooks/useStockStatus.js +26 -0
  219. package/hooks/useStockStatus.js.map +1 -0
  220. package/integrations/addwishSchemaExtension.js +3 -3
  221. package/integrations/addwishSchemaExtension.js.map +1 -1
  222. package/integrations/nostoSchemaExtension.js +2 -2
  223. package/integrations/nostoSchemaExtension.js.map +1 -1
  224. package/integrations/sluggishSchemaExtension.js +1 -1
  225. package/integrations/sluggishSchemaExtension.js.map +1 -1
  226. package/package.json +13 -29
  227. package/polyfills.js +0 -2
  228. package/polyfills.js.map +1 -1
  229. package/resolvers/filters/boolFilter.js +24 -27
  230. package/resolvers/filters/boolFilter.js.map +1 -1
  231. package/resolvers/filters/filterParams.js +8 -8
  232. package/resolvers/filters/filterParams.js.map +1 -1
  233. package/resolvers/filters/filters.js +5 -5
  234. package/resolvers/filters/filters.js.map +1 -1
  235. package/resolvers/filters/index.d.ts +0 -4
  236. package/resolvers/filters/listFilter.js +24 -29
  237. package/resolvers/filters/listFilter.js.map +1 -1
  238. package/resolvers/filters/listFilterItem.js +31 -36
  239. package/resolvers/filters/listFilterItem.js.map +1 -1
  240. package/resolvers/filters/multiListFilter.js +41 -42
  241. package/resolvers/filters/multiListFilter.js.map +1 -1
  242. package/resolvers/filters/multiListFilterList.js +1 -1
  243. package/resolvers/filters/multiListFilterList.js.map +1 -1
  244. package/resolvers/filters/rangeFilter.js +27 -43
  245. package/resolvers/filters/rangeFilter.js.map +1 -1
  246. package/test-utils/ProviderPyramid.js +1 -1
  247. package/types.d.ts +1820 -1955
  248. package/components/Fonts/GoogleFont.d.ts +0 -10
  249. package/components/Fonts/GoogleFont.js +0 -35
  250. package/components/Fonts/GoogleFont.js.map +0 -1
  251. package/components/Fonts/TypekitFont.d.ts +0 -16
  252. package/components/Fonts/TypekitFont.js +0 -25
  253. package/components/Fonts/TypekitFont.js.map +0 -1
@@ -1,9 +1,9 @@
1
1
  import PaginationProvider, { usePagination } from '@jetshop/core/components/Pagination/PaginationProvider';
2
2
  import SortOrderContainer from '@jetshop/core/components/SortOrder/SortOrderContainer';
3
- import GenericError from '@jetshop/ui/ErrorBoundary/Generic';
3
+ import GenericError from '@jetshop/core/components/DynamicRoute/GenericError';
4
4
  import { default as React, useEffect } from 'react';
5
- import { useQuery, useApolloClient } from 'react-apollo';
6
- import { useHistory, useLocation } from 'react-router';
5
+ import { useQuery, useApolloClient } from '@apollo/client';
6
+ import { useLocation } from 'react-router';
7
7
  import throwErrorInDev from '../../helpers/throwErrorInDev';
8
8
  import Head from '../Head';
9
9
  import ActiveFiltersQuery from './ActiveFiltersQuery.gql';
@@ -13,16 +13,57 @@ import { getActiveFiltersFromSearch } from '../../resolvers/filters/filterParams
13
13
  import ProductByArticlenumber from './ProductByArticlenumber';
14
14
  // Make sure filters get applied or cleared when navigating to a new category page.
15
15
  function useFiltersOnRouteChange() {
16
- const history = useHistory();
17
16
  const client = useApolloClient();
18
17
  useEffect(() => {
19
- client.writeData({
18
+ client.writeQuery({
19
+ query: ActiveFiltersQuery,
20
20
  data: {
21
21
  activeFilters: getActiveFiltersFromSearch(window.location.search)
22
22
  }
23
23
  });
24
- }, [client, history]);
24
+ }, [client]);
25
25
  }
26
+ const RouteQuery = ({ pagination, sortOrder, direction, routeQuery, productPage, categoryPage, contentPage, notFoundPage, LoadingPage, ErrorPage }) => {
27
+ var _a, _b, _c, _d;
28
+ const location = useLocation();
29
+ const { perPage, offset } = pagination;
30
+ useFiltersOnRouteChange();
31
+ const activeFilterQuery = useQuery(ActiveFiltersQuery, {
32
+ fetchPolicy: 'cache-only'
33
+ });
34
+ const variables = {
35
+ path: location.pathname,
36
+ first: perPage,
37
+ offset,
38
+ orderBy: sortOrder,
39
+ orderByDirection: direction,
40
+ filters: Object.assign({}, (_a = activeFilterQuery.data) === null || _a === void 0 ? void 0 : _a.activeFilters) || Object.assign({}, defaultActiveFilters)
41
+ };
42
+ // defaultActiveFilters includes a __typename key,
43
+ // but we don't want it for the variable input
44
+ delete variables.filters.__typename;
45
+ const result = useQuery(routeQuery, {
46
+ variables,
47
+ errorPolicy: 'all',
48
+ initialFetchPolicy: 'cache-and-network',
49
+ partialRefetch: true
50
+ });
51
+ const route = (_b = (result.previousData || result.data)) === null || _b === void 0 ? void 0 : _b.route;
52
+ const data = (_d = (_c = (result.previousData || result.data)) === null || _c === void 0 ? void 0 : _c.route) === null || _d === void 0 ? void 0 : _d.object;
53
+ const resultWithFallbackData = Object.assign(Object.assign({}, result), {
54
+ // We want to show the previous data to avoid unnecessary loading states
55
+ data: result.data || result.previousData });
56
+ return (React.createElement(GenericError
57
+ // Catch routing exceptions and log the graphql result
58
+ , {
59
+ // Catch routing exceptions and log the graphql result
60
+ extraInfo: {
61
+ variables: result.variables,
62
+ data: result.data
63
+ } },
64
+ data && React.createElement(Head, { data: data, route: route }),
65
+ React.createElement(RouteResolver, { productPage: productPage, categoryPage: categoryPage, contentPage: contentPage, notFoundPage: notFoundPage, LoadingPage: LoadingPage, ErrorPage: ErrorPage, result: resultWithFallbackData, pathname: location.pathname, state: location.state, search: location.search })));
66
+ };
26
67
  const DynamicRoute = (props) => {
27
68
  throwErrorInDev(!props.routeQuery, `You forgot to pass 'routeQuery' to DynamicRoute`);
28
69
  const pagination = usePagination();
@@ -56,41 +97,5 @@ const DynamicRoute = (props) => {
56
97
  })))));
57
98
  }
58
99
  };
59
- const RouteQuery = ({ pagination, sortOrder, direction, routeQuery, productPage, categoryPage, contentPage, notFoundPage, LoadingPage, ErrorPage }) => {
60
- var _a, _b, _c, _d;
61
- const location = useLocation();
62
- const { perPage, offset } = pagination;
63
- useFiltersOnRouteChange();
64
- const activeFilterQuery = useQuery(ActiveFiltersQuery);
65
- const variables = {
66
- path: location.pathname,
67
- first: perPage,
68
- offset,
69
- orderBy: sortOrder,
70
- orderByDirection: direction,
71
- filters: ((_a = activeFilterQuery.data) === null || _a === void 0 ? void 0 : _a.activeFilters) || Object.assign({}, defaultActiveFilters)
72
- };
73
- // defaultActiveFilters includes a __typename key,
74
- // but we don't want it for the variable input
75
- delete variables.filters.__typename;
76
- const result = useQuery(routeQuery, {
77
- variables,
78
- errorPolicy: 'all',
79
- fetchPolicy: 'cache-and-network',
80
- partialRefetch: true
81
- });
82
- const route = (_b = result.data) === null || _b === void 0 ? void 0 : _b.route;
83
- const data = (_d = (_c = result.data) === null || _c === void 0 ? void 0 : _c.route) === null || _d === void 0 ? void 0 : _d.object;
84
- return (React.createElement(GenericError
85
- // Catch routing exceptions and log the graphql result
86
- , {
87
- // Catch routing exceptions and log the graphql result
88
- extraInfo: {
89
- variables: result.variables,
90
- data: result.data
91
- } },
92
- data && React.createElement(Head, { data: data, route: route }),
93
- React.createElement(RouteResolver, { productPage: productPage, categoryPage: categoryPage, contentPage: contentPage, notFoundPage: notFoundPage, LoadingPage: LoadingPage, ErrorPage: ErrorPage, result: result, pathname: location.pathname, state: location.state, search: location.search })));
94
- };
95
100
  export default DynamicRoute;
96
101
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,EAAE,EACzB,aAAa,EACd,MAAM,wDAAwD,CAAC;AAChE,OAAO,kBAAkB,MAAM,uDAAuD,CAAC;AACvF,OAAO,YAAY,MAAM,mCAAmC,CAAC;AAE7D,OAAO,EAAiB,OAAO,IAAI,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEvD,OAAO,eAAe,MAAM,+BAA+B,CA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ollRestorationHandler';
2
1
  import { History, Location } from 'history';
2
+ export type routeType = 'sortOrderChange' | 'filterChange' | 'paginationChange' | 'Product' | 'Category' | 'Page';
3
3
  interface ReplaceInSearch {
4
4
  history: History;
5
5
  location: Location;
@@ -1 +1 @@
1
- {"version":3,"file":"replaceInSearch.js","sourceRoot":"","sources":["replaceInSearch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AAGnF,OAAO,EAAE,MAAM,IAAI,CAAC;AAUpB,MAAM,UAAU,eAAe,CAAC,EAC9B,OAAO,EACP,QAAQ,EACR,WAAW,EACX,WAAW,EACX,SAAS,EACO;IAChB,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC;IACpC,MAAM,aAAa,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7E,MAAM,YAAY,GAAG,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAC3C,MAAM,CAAC,UAAU,EAAE,YAAY,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAEnE,MAAM,SAAS,mCACV,aAAa,KAChB,CAAC,UAAU,CAAC,EAAE,WAAW;YACvB,CAAC,CAAC,YAAY;YACd,CAAC,iCAAM,aAAa,CAAC,UAAU,CAAC,GAAM,YAAoB,CAAE,GAC/D,CAAC;IAEF,IAAI,YAAY,KAAK,EAAE,IAAI,WAAW,EAAE;QACtC,OAAO,SAAS,CAAC,UAAU,CAAC,CAAC;KAC9B;IAED,OAAO,WAAW,CAAC;QACjB,OAAO;QACP,QAAQ;QACR,IAAI;QACJ,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,IAAI;QACf,SAAS;KACV,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"replaceInSearch.js","sourceRoot":"","sources":["replaceInSearch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AAEnF,OAAO,EAAE,MAAM,IAAI,CAAC;AAkBpB,MAAM,UAAU,eAAe,CAAC,EAC9B,OAAO,EACP,QAAQ,EACR,WAAW,EACX,WAAW,EACX,SAAS,EACO;IAChB,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC;IACpC,MAAM,aAAa,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7E,MAAM,YAAY,GAAG,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAC3C,MAAM,CAAC,UAAU,EAAE,YAAY,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAEnE,MAAM,SAAS,mCACV,aAAa,KAChB,CAAC,UAAU,CAAC,EAAE,WAAW;YACvB,CAAC,CAAC,YAAY;YACd,CAAC,iCAAM,aAAa,CAAC,UAAU,CAAC,GAAM,YAAoB,CAAE,GAC/D,CAAC;IAEF,IAAI,YAAY,KAAK,EAAE,IAAI,WAAW,EAAE;QACtC,OAAO,SAAS,CAAC,UAAU,CAAC,CAAC;KAC9B;IAED,OAAO,WAAW,CAAC;QACjB,OAAO;QACP,QAAQ;QACR,IAAI;QACJ,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,IAAI;QACf,SAAS;KACV,CAAC,CAAC;AACL,CAAC"}
@@ -10,8 +10,8 @@ export function injectFont(primaryFont, secondaryFonts) {
10
10
  primaryFontObserver.load().then(() => {
11
11
  const fontClass = createFontClass(primaryFont);
12
12
  document && document.documentElement.classList.add(fontClass);
13
- }, (err) => {
14
- console.log(`Font ${primaryFont} not available with reason: \n${err}`);
13
+ }, () => {
14
+ console.log(`Font ${primaryFont} not available`);
15
15
  });
16
16
  }
17
17
  // observe any secondary fon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AAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAC1C,UAAU,CAAC;YACT,CAAC,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,EAAE;gBACjB,MAAM,SAAS,GAAG,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;gBAC9C,QAAQ,IAAI,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YAChE,CAAC,CAAC,CAAC;QACL,CAAC,EACD,GAAG,EAAE;YACH,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;QAC/C,CAAC,CACF,CAAC;KACH;AACH,CAAC"}
@@ -49,5 +49,5 @@ export interface AddToCartFormProps {
49
49
  }) => string;
50
50
  };
51
51
  }
52
- declare const AddToCartFormik: ({ children, onAddToCartInit, onAddToCartError, onAddToCartSuccess, cartQuery, cartMutation, initialValues, variant, product, commentValidators, getMissingOptions, ...props }: AddToCartFormProps & FormikConfig<AddToCartFormikValues>) => JSX.Element;
52
+ declare const AddToCartFormik: ({ children, onAddToCartInit, onAddToCartError, onAddToCartSuccess, cartQuery, cartMutation, initialValues, variant, product, commentValidators, getMissingOptions, ...props }: AddToCartFormProps & FormikConfig<AddToCartFormikValues>) => React.JSX.Element;
53
53
  export default AddToCartFormik;
@@ -12,11 +12,11 @@ var __rest = (this && this.__rest) || function (s, e) {
12
12
  import React, { useContext } from 'react';
13
13
  import { Formik } from 'formik';
14
14
  import { CartIdContext } from '@jetshop/core/components/Cart/CartIdContext';
15
- import { useMutation, useApolloClient } from '@apollo/react-hooks';
15
+ import { useMutation, useApolloClient } from '@apollo/client';
16
16
  import { getAddToCartOptimisticResponse } from '@jetshop/core/components/Mutation/cartMutationUtils';
17
17
  import t from '@jetshop/intl';
18
18
  import uniqueId from '@jetshop/core/helpers/uniqueId';
19
- import { useStockStatus } from '@jetshop/ui/Stock/StockStatusContainer';
19
+ import { useStockStatus } from '@jetshop/core/hooks/useStockStatus';
20
20
  import { useTrackProductAdd, getCommentsFromFormikValues, addToCartSuccess, addToCartError, getArticleNumber } from './AddToCart/addToCartUtils';
21
21
  import throwErrorInDev from '../../helpers/throwErrorInDev';
22
22
  import { useDynamicPrice } from '@jetshop/core/hooks/useDynamicPrice';
@@ -1 +1 @@
1
- {"version":3,"file":"AddToCartFormik.js","sourceRoot":"","sources":["AddToCartFormik.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,MAAM,EAA6B,MAAM,QAAQ,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qDAAqD,CAAC;AACrG,OAAO,CAAC,MAAM,eAAe,CAAC;AAC9B,OAAO,QAAQ,MAAM,gCAAgC,CAAC;AAGtD,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EACL,kBAAkB,EAClB,2BAA2B,EAC3B,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAQ5D,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,2BAA2B,MAAM,6DAA6D,CAAC;AAuDtG,MAAM,YAAY,GAAG,CAAC,EACpB,aAAa,EACb,YAAY,EACZ,SAAS,EACT,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,OAAO,EACP,OAAO,EAAE,eAAe,EAUzB,EAAE,EAAE;IACH,MAAM,CAAC,iBAAiB,CAAC,GAAG,WAAW,CAGrC,YAAY,EAAE;QACd,WAAW,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,C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AAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { CartMutationProps } from './cartMutationUtils';
3
- declare const DecrementQuantity: ({ children, cartQuery }: CartMutationProps) => JSX.Element;
3
+ declare const DecrementQuantity: ({ children, cartQuery }: CartMutationProps) => React.JSX.Element;
4
4
  export default DecrementQuantity;
@@ -1,6 +1,6 @@
1
1
  import { decrementItemQuantity } from '@jetshop/core/data/mutations/cartMutations.gql';
2
2
  import React, { useContext } from 'react';
3
- import { Mutation } from 'react-apollo';
3
+ import { Mutation } from '@apollo/client/react/components';
4
4
  import { getDecrementQuantityOptimisticResponse } from './cartMutationUtils';
5
5
  import { CartIdContext } from '../Cart/CartIdContext';
6
6
  import throwErrorInDev from '../../helpers/throwErrorInDev';
@@ -1 +1 @@
1
- {"version":3,"file":"DecrementQuantity.js","sourceRoot":"","sources":["DecrementQuantity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AACvF,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAoC,MAAM,cAAc,CAAC;AAC1E,OAAO,EAEL,sCAAsC,EACvC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAE5D,MAAM,iBAAiB,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAqB,EAAE,EAAE;IACvE,eAAe,CACb,CAAC,SAAS,EACV,qDAAqD,CACtD,CAAC;IAEF,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IAC7C,OAAO,CACL,oBAAC,QAAQ,IAAC,QAAQ,EAAE,qBAAqB,IACtC,CAAC,MAAwB,EAAE,EAAE,MAAM,EAAkB,EAAE,EAAE;QAC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BACT,KAAK,EAAE;wBACL,MAAM;wBACN,MAAM;qBACP;iBACF;gBACD,kBAAkB,EAAE;oBAClB,qBAAqB,EAAE;wBACrB,IAAI,EAAE,sCAAsC,CAAC;4BAC3C,MAAM;4BACN,MAAM;4BACN,MAAM;4BACN,SAAS;yBACV,CAAC;wBACF,UAAU,EAAE,cAAc;qBAC3B;iBACF;aACF,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CACQ,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { CartMutationProps } from './cartMutationUtils';
3
- declare const IncrementQuantity: ({ children, cartQuery }: CartMutationProps) => JSX.Element;
3
+ declare const IncrementQuantity: ({ children, cartQuery }: CartMutationProps) => React.JSX.Element;
4
4
  export default IncrementQuantity;
@@ -1,6 +1,6 @@
1
1
  import { incrementItemQuantity } from '@jetshop/core/data/mutations/cartMutations.gql';
2
2
  import React, { useContext } from 'react';
3
- import { Mutation } from 'react-apollo';
3
+ import { Mutation } from '@apollo/client/react/components';
4
4
  import { CartIdContext } from '../Cart/CartIdContext';
5
5
  import { getIncrementQuantityOptimisticResponse } from './cartMutationUtils';
6
6
  import throwErrorInDev from '../../helpers/throwErrorInDev';
@@ -1 +1 @@
1
- {"version":3,"file":"IncrementQuantity.js","sourceRoot":"","sources":["IncrementQuantity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AACvF,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAoC,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAEL,sCAAsC,EACvC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAE5D,MA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AAS,EACV,qDAAqD,CACtD,CAAC;IAEF,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IAE7C,OAAO,CACL,oBAAC,QAAQ,IAAC,QAAQ,EAAE,qBAAqB,IACtC,CAAC,MAAwB,EAAE,EAAE,MAAM,EAAkB,EAAE,EAAE;QACxD,OAAO,QAAQ,CAAC,CAAC,MAAc,EAAE,EAAE;YACjC,OAAO,MAAM,CAAC;gBACZ,SAAS,EAAE;oBACT,KAAK,EAAE;wBACL,MAAM;wBACN,MAAM;qBACP;iBACF;gBACD,kBAAkB,EAAE;oBAClB,qBAAqB,EAAE;wBACrB,IAAI,EAAE,sCAAsC,CAAC;4BAC3C,MAAM;4BACN,MAAM;4BACN,MAAM;4BACN,SAAS;yBACV,CAAC;wBACF,UAAU,EAAE,cAAc;qBAC3B;iBACF;aACF,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CACQ,CACZ,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,iBAAiB,CAAC"}
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { CartMutationProps } from './cartMutationUtils';
3
3
  type RemoveFromCartProps = CartMutationProps;
4
- declare const RemoveFromCart: ({ cartQuery, children }: RemoveFromCartProps) => JSX.Element;
4
+ declare const RemoveFromCart: ({ cartQuery, children }: RemoveFromCartProps) => React.JSX.Element;
5
5
  export default RemoveFromCart;
@@ -2,7 +2,7 @@ import { useTracker } from '@jetshop/core/analytics/Analytics';
2
2
  import { trackProductEvent } from '@jetshop/core/analytics/tracking';
3
3
  import { removeFromCart } from '@jetshop/core/data/mutations/cartMutations.gql';
4
4
  import React, { useContext } from 'react';
5
- import { Mutation } from 'react-apollo';
5
+ import { Mutation } from '@apollo/client/react/components';
6
6
  import { getRemoveFromCartOptimisticResponse } from './cartMutationUtils';
7
7
  import { CartIdContext } from '../Cart/CartIdContext';
8
8
  import throwErrorInDev from '../../helpers/throwError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<reference types="react" />
1
+ import React from 'react';
2
2
  import { CartMutationProps } from './cartMutationUtils';
3
- declare const SetQuantity: ({ children, cartQuery }: CartMutationProps) => JSX.Element;
3
+ declare const SetQuantity: ({ children, cartQuery }: CartMutationProps) => React.JSX.Element;
4
4
  export default SetQuantity;
@@ -1,6 +1,6 @@
1
1
  import { setItemQuantity } from '@jetshop/core/data/mutations/cartMutations.gql';
2
2
  import React, { useContext } from 'react';
3
- import { Mutation } from 'react-apollo';
3
+ import { Mutation } from '@apollo/client/react/components';
4
4
  import { CartIdContext } from '../Cart/CartIdContext';
5
5
  import { getSetQuantityOptimisticResponse } from './cartMutationUtils';
6
6
  import throwErrorInDev from '../../helpers/throwErrorInDev';
@@ -1 +1 @@
1
- {"version":3,"file":"SetQuantity.js","sourceRoot":"","sources":["SetQuantity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AACjF,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAoC,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAEL,gCAAgC,EACjC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAE5D,MAAM,WAAW,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAqB,EAAE,EAAE;IACjE,eAAe,CAAC,CAAC,SAAS,EAAE,+CAA+C,CAAC,CAAC;IAE7E,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IAE7C,OAAO,CACL,oBAAC,QAAQ,IAAC,QAAQ,EAAE,eAAe,IAChC,CAAC,MAAwB,EAAE,EAAE,MAAM,EAAkB,EAAE,EAAE;QACxD,OAAO,QAAQ,CAAC,CAAC,MAAc,EAAE,QAAgB,EAAE,EAAE;YACnD,OAAO,MAAM,CAAC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QAAQ;qBACT;iBACF;gBACD,kBAAkB,EAAE;oBAClB,eAAe,EAAE;wBACf,IAAI,EAAE,gCAAgC,CAAC;4BACrC,MAAM;4BACN,QAAQ;4BACR,MAAM;4BACN,MAAM;4BACN,SAAS;yBACV,CAAC;wBACF,UAAU,EAAE,cAAc;qBAC3B;iBACF;aACF,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CACQ,CACZ,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,WAAW,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { MutationComponentOptions } from 'react-apollo';
2
+ import { MutationComponentOptions } from '@apollo/client/react/components';
3
3
  declare const SubscribeToNewsletter: React.FC<MutationComponentOptions>;
4
4
  export default SubscribeToNewsletter;
@@ -11,7 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  };
12
12
  import subscribeToNewsletterMutation from '@jetshop/core/data/mutations/subscribeToNewsletter.gql';
13
13
  import React from 'react';
14
- import { Mutation } from 'react-apollo';
14
+ import { Mutation } from '@apollo/client/react/components';
15
15
  import useWarningInDev from '../../hooks/useWarningInDev';
16
16
  const SubscribeToNewsletter = (_a) => {
17
17
  var { children, onError = () => { }, onCompleted = () => { } } = _a, props = __rest(_a, ["children", "onError", "onCompleted"]);
@@ -1 +1 @@
1
- {"version":3,"file":"SubscribeToNewsletter.js","sourceRoot":"","sources":["SubscribeToNewsletter.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,6BAA6B,MAAM,wDAAwD,CAAC;AACnG,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,QAAQ,EAIT,MAAM,cAAc,CAAC;AACtB,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAE1D,MAAM,qBAAqB,GAAuC,CAAC,EAK7D,EAAE,EAAE;QALyD,EACjE,QAAQ,EACR,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,EAClB,WAAW,GAAG,GAAG,EAAE,GAAE,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;gBACZ,SAAS,EAAE;oBACT,KAAK;iBACN;aACF,CAAC,CAAC;QACL,CAAC,EAAE,MAAM,CAAC,CAAC;IACb,CAAC,CACQ,CACZ,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,qBAAqB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { MutationComponentOptions } from 'react-apollo';
2
+ import { MutationComponentOptions } from '@apollo/client/react/components';
3
3
  declare const SubscribeToStockNotifications: React.FC<MutationComponentOptions>;
4
4
  export default SubscribeToStockNotifications;
@@ -11,10 +11,14 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  };
12
12
  import subscribeToStockNotificationsMutation from '@jetshop/core/data/mutations/subscribeToStockNotifications.gql';
13
13
  import React from 'react';
14
- import { Mutation } from 'react-apollo';
14
+ import { Mutation } from '@apollo/client/react/components';
15
15
  import useWarningInDev from '../../hooks/useWarningInDev';
16
16
  const SubscribeToStockNotifications = (_a) => {
17
- var { children, onError = () => { }, onCompleted = () => { } } = _a, props = __rest(_a, ["children", "onError", "onCompleted"]);
17
+ var { children,
18
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
19
+ onError = () => { },
20
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
21
+ onCompleted = () => { } } = _a, props = __rest(_a, ["children", "onError", "onCompleted"]);
18
22
  useWarningInDev(true, `SubscribeToStockNotifications component has been deprecated and will be removed in the next major release of Flight. \n Change this to use useNewsletterSubscription hook instead.`);
19
23
  return (React.createElement(Mutation, Object.assign({ onError: onError, onCompleted: onCompleted, mutation: subscribeToStockNotificationsMutation }, props), (mutate, result) => {
20
24
  return children((email, articleNumber) => {
@@ -1 +1 @@
1
- {"version":3,"file":"SubscribeToStockNotifications.js","sourceRoot":"","sources":["SubscribeToStockNotifications.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,qCAAqC,MAAM,gEAAgE,CAAC;AACnH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,QAAQ,EAIT,MAAM,cAAc,CAAC;AACtB,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAE1D,MAAM,6BAA6B,GAAuC,CAAC,EAKrE,EAAE,EAAE;QALiE,EACzE,QAAQ,EACR,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,EAClB,WAAW,GAAG,GAAG,EAAE,GAAE,CAAC,OAElB,EADD,KAAK,cAJiE,sCAK1E,CADS;IAER,eAAe,CACb,IAAI,EACJ,oLAAoL,CACrL,CAAC;IAEF,OAAO,CACL,oBAAC,QAAQ,kBACP,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,qCAAqC,IAC3C,KAAK,GAER,CAAC,MAAwB,EAAE,MAAsB,EAAE,EAAE;QACpD,OAAO,QAAQ,CAAC,CAAC,KAAa,EAAE,aAAqB,EAAE,EAAE;YACvD,OAAO,MAAM,CAAC;gBACZ,SAAS,EAAE;oBACT,KAAK;oBACL,aAAa;iBACd;aACF,CAAC,CAAC;QACL,CAAC,EAAE,MAAM,CAAC,CAAC;IACb,CAAC,CACQ,CACZ,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,6BAA6B,CAAC"}
1
+ {"version":3,"file":"SubscribeToStockNotifications.js","sourceRoot":"","sources":["SubscribeToStockNotifications.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,qCAAqC,MAAM,gEAAgE,CAAC;AACnH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,QAAQ,EAET,MAAM,iCAAiC,CAAC;AAEzC,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAE1D,MAAM,6BAA6B,GAAuC,CAAC,EAOrE,EAAE,EAAE;QAPiE,EACzE,QAAQ;IACR,gEAAgE;IAChE,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC;IAClB,gEAAgE;IAChE,WAAW,GAAG,GAAG,EAAE,GAAE,CAAC,OAElB,EADD,KAAK,cANiE,sCAO1E,CADS;IAER,eAAe,CACb,IAAI,EACJ,oLAAoL,CACrL,CAAC;IAEF,OAAO,CACL,oBAAC,QAAQ,kBACP,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,qCAAqC,IAC3C,KAAK,GAER,CAAC,MAAwB,EAAE,MAAsB,EAAE,EAAE;QACpD,OAAO,QAAQ,CAAC,CAAC,KAAa,EAAE,aAAqB,EAAE,EAAE;YACvD,OAAO,MAAM,CAAC;gBACZ,SAAS,EAAE;oBACT,KAAK;oBACL,aAAa;iBACd;aACF,CAAC,CAAC;QACL,CAAC,EAAE,MAAM,CAAC,CAAC;IACb,CAAC,CACQ,CACZ,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,6BAA6B,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
- import { ApolloClient } from 'apollo-client';
3
- import { MutationFunction } from 'react-apollo';
2
+ import { ApolloClient, MutationFunction } from '@apollo/client';
4
3
  import { Product } from '../../types';
5
4
  import { DocumentNode } from 'graphql';
6
5
  export interface CartMutationProps {
@@ -1 +1 @@
1
- {"version":3,"file":"cartMutationUtils.js","sourceRoot":"","sources":["cartMutationUtils.ts"],"names":[],"mappings":"AAKA,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAS5D,MAAM,CAAC,MAAM,YAAY,GAAG,cAAc,CAAC;AAE3C,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAC5C,OAAgB,EAChB,QAAQ,GAAG,CAAC,EACZ,MAAc,EACd,MAAyB,EACzB,SAAuB,EACvB,EAAE;IACF,MAAM,qBAAqB,GAAQ;QACjC,YAAY,EAAE,IAAI;QAClB,EAAE,EAAE,YAAY;QAChB,aAAa,EAAE,QAAQ;QACvB,UAAU,EAAE,MAAM;QAClB,mBAAmB,EAAE,EAAE;QACvB,YAAY,EAAE;YACZ,GAAG,EAAE,CAAC;YACN,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,CAAC;YACT,UAAU,EAAE,OAAO;SACpB;QACD,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,CAAC,iCAAM,IAAI,KAAE,QAAQ,IAAG,CAAC,CAAC,IAAI,CAClD,CAAC;IACF,MAAM,cAAc,mCACf,IAAI,KACP,KAAK,EACL,YAAY,EAAE,IAAI,GACnB,CAAC;IACF,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC"}
@@ -6,6 +6,6 @@ interface DecrementQuantityProps {
6
6
  export default function useDecrementQuantity({ decrementQuantityMutation, cartQuery }: DecrementQuantityProps): {
7
7
  decrementQuantity: ({ itemId }: {
8
8
  itemId: string;
9
- }) => Promise<import("react-apollo").ExecutionResult<any>>;
9
+ }) => Promise<import("@apollo/client").FetchResult<any, Record<string, any>, Record<string, any>>>;
10
10
  };
11
11
  export {};
@@ -1,4 +1,4 @@
1
- import { useMutation, useApolloClient } from '@apollo/react-hooks';
1
+ import { useMutation, useApolloClient } from '@apollo/client';
2
2
  import { CartIdContext } from '../Cart/CartIdContext';
3
3
  import { getDecrementQuantityOptimisticResponse } from './cartMutationUtils';
4
4
  import { useContext } from 'react';
@@ -1 +1 @@
1
- {"version":3,"file":"useDecrementQuantity.js","sourceRoot":"","sources":["useDecrementQuantity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,sCAAsC,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,C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,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,YAAY,EAAE,GAAG,CAAC;KAC3D,CAAC,CAAC;IACH,SAAS,iBAAiB,CAAC,EAAE,MAAM,EAAsB;;QACvD,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,GAAG,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,0CAAE,IAAI,CAC/D,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,MAAM,CAC7B,CAAC;QACF,KAAK,CACH,iBAAiB,CAAC;YAChB,MAAM,EAAE,QAAQ;YAChB,OAAO;YACP,QAAQ,EAAE,CAAC;YACX,iBAAiB;YACjB,QAAQ,EACN,yBAAyB,CAAC,MAAA,OAAO,CAAC,YAAY,0CAAE,WAAW,CAAC;gBAC5D,SAAS,CAAC,MAAA,MAAA,OAAO,CAAC,iBAAiB,0CAAE,YAAY,0CAAE,IAAI,CAAC;gBACxD,EAAE;SACL,CAAC,CACH,CAAC;QACF,OAAO,2BAA2B,CAAC;YACjC,SAAS,EAAE;gBACT,KAAK,EAAE;oBACL,MAAM;oBACN,MAAM;iBACP;aACF;YACD,kBAAkB,EAAE;gBAClB,qBAAqB,EAAE;oBACrB,IAAI,EAAE,sCAAsC,CAAC;wBAC3C,MAAM;wBACN,MAAM;wBACN,MAAM;wBACN,SAAS;qBACV,CAAC;oBACF,UAAU,EAAE,cAAc;iBAC3B;aACF;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC/B,CAAC"}
@@ -6,6 +6,6 @@ interface IncrementQuantityProps {
6
6
  export default function useIncrementQuantity({ incrementQuantityMutation, cartQuery }: IncrementQuantityProps): {
7
7
  incrementQuantity: ({ itemId }: {
8
8
  itemId: string;
9
- }) => Promise<import("react-apollo").ExecutionResult<any>>;
9
+ }) => Promise<import("@apollo/client").FetchResult<any, Record<string, any>, Record<string, any>>>;
10
10
  };
11
11
  export {};
@@ -1,4 +1,4 @@
1
- import { useMutation, useApolloClient } from '@apollo/react-hooks';
1
+ import { useMutation, useApolloClient } from '@apollo/client';
2
2
  import { CartIdContext } from '../Cart/CartIdContext';
3
3
  import { getIncrementQuantityOptimisticResponse } from './cartMutationUtils';
4
4
  import { useContext } from 'react';
@@ -1 +1 @@
1
- {"version":3,"file":"useIncrementQuantity.js","sourceRoot":"","sources":["useIncrementQuantity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,sCAAsC,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AAKpG,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC3C,yBAAyB,EACzB,SAAS,EACc;IACvB,eAAe,CACb,CAAC,SAAS,EACV,wDAAwD,CACzD,CAAC;IACF,MAAM,KAAK,GAAG,UAAU,EAAE,CAAC;IAC3B,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAEpC,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IAC7C,MAAM,MAAM,GAAG,eAAe,EAAE,CAAC;IACjC,MAAM,CAAC,2BAA2B,CAAC,GAAG,WAAW,CAAC,yBAAyB,EAAE;QAC3E,WAAW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iB;YACjB,QAAQ,EACN,yBAAyB,CAAC,MAAA,OAAO,CAAC,YAAY,0CAAE,WAAW,CAAC;gBAC5D,SAAS,CAAC,MAAA,MAAA,OAAO,CAAC,iBAAiB,0CAAE,YAAY,0CAAE,IAAI,CAAC;gBACxD,EAAE;SACL,CAAC,CACH,CAAC;QACF,OAAO,2BAA2B,CAAC;YACjC,SAAS,EAAE;gBACT,KAAK,EAAE;oBACL,MAAM;oBACN,MAAM;iBACP;aACF;YACD,kBAAkB,EAAE;gBAClB,qBAAqB,EAAE;oBACrB,IAAI,EAAE,sCAAsC,CAAC;wBAC3C,MAAM;wBACN,MAAM;wBACN,MAAM;wBACN,SAAS;qBACV,CAAC;oBACF,UAAU,EAAE,cAAc;iBAC3B;aACF;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC/B,CAAC"}
@@ -8,6 +8,6 @@ export default function useRemoveFromCart({ removeFromCartMutation, cartQuery }:
8
8
  removeFromCart: ({ itemId, product }: {
9
9
  itemId: string;
10
10
  product: Product;
11
- }) => Promise<import("react-apollo").ExecutionResult<any>>;
11
+ }) => Promise<import("@apollo/client").FetchResult<any, Record<string, any>, Record<string, any>>>;
12
12
  };
13
13
  export {};
@@ -1,4 +1,4 @@
1
- import { useMutation, useApolloClient } from '@apollo/react-hooks';
1
+ import { useMutation, useApolloClient } from '@apollo/client';
2
2
  import { CartIdContext } from '../Cart/CartIdContext';
3
3
  import { getRemoveFromCartOptimisticResponse } from './cartMutationUtils';
4
4
  import { useContext } from 'react';
@@ -1 +1 @@
1
- {"version":3,"file":"useRemoveFromCart.js","sourceRoot":"","sources":["useRemoveFromCart.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,mCAAmC,EAAE,MAAM,qBAAqB,CAAC;AAC1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,MAAM,EACN,OAAO,EAIR;;QACC,KAAK,CACH,iBAAiB,CAAC;YAChB,MAAM,EAAE,QAAQ;YAChB,OAAO;YACP,QAAQ,EACN,yBAAyB,CAAC,MAAA,OAAO,CAAC,YAAY,0CAAE,WAAW,CAAC;gBAC5D,SAAS,CAAC,MAAA,MAAA,OAAO,CAAC,iBAAiB,0CAAE,YAAY,0CAAE,IAAI,CAAC;gBACxD,EAAE;SACL,CAAC,CACH,CAAC;QACF,OAAO,wBAAwB,CAAC;YAC9B,SAAS,EAAE;gBACT,KAAK,EAAE;oBACL,MAAM;oBACN,MAAM;iBACP;aACF;YACD,kBAAkB,EAAE;gBAClB,cAAc,EAAE;oBACd,IAAI,EAAE,mCAAmC,CAAC;wBACxC,MAAM;wBACN,MAAM;wBACN,MAAM;wBACN,SAAS;wBACT,SAAS;qBACV,CAAC;oBACF,UAAU,EAAE,cAAc;iBAC3B;aACF;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,EAAE,cAAc,EAAE,CAAC;AAC5B,CAAC"}
@@ -7,6 +7,6 @@ export default function useSetQuantity({ setQuantityMutation: setItemQuantity, c
7
7
  setQuantity: ({ itemId, quantity }: {
8
8
  itemId: string;
9
9
  quantity: number;
10
- }) => Promise<import("react-apollo").ExecutionResult<any>>;
10
+ }) => Promise<import("@apollo/client").FetchResult<any, Record<string, any>, Record<string, any>>>;
11
11
  };
12
12
  export {};
@@ -1,4 +1,4 @@
1
- import { useMutation, useApolloClient } from '@apollo/react-hooks';
1
+ import { useMutation, useApolloClient } from '@apollo/client';
2
2
  import { CartIdContext } from '../Cart/CartIdContext';
3
3
  import { getSetQuantityOptimisticResponse } from './cartMutationUtils';
4
4
  import { useContext } from 'react';
@@ -1 +1 @@
1
- {"version":3,"file":"useSetQuantity.js","sourceRoot":"","sources":["useSetQuantity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEnE,OAAO,EAAE,aA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MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAM5D,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,mBAAmB,EAAE,eAAe,EACpC,SAAS,EACQ;IACjB,eAAe,CACb,CAAC,SAAS,EACV,kDAAkD,CACnD,CAAC;IAEF,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IAC7C,MAAM,MAAM,GAAG,eAAe,EAAE,CAAC;IACjC,MAAM,CAAC,qBAAqB,CAAC,GAAG,WAAW,CAAC,eAAe,EAAE;QAC3D,WAAW,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,YAAY,EAAE,GAAG,CAAC;KAC3D,CAAC,CAAC;IACH,SAAS,WAAW,CAAC,EACnB,MAAM,EACN,QAAQ,EAIT;QACC,OAAO,qBAAqB,CAAC;YAC3B,SAAS,EAAE;gBACT,KAAK,EAAE;oBACL,MAAM;oBACN,MAAM;oBACN,QAAQ;iBACT;aACF;YACD,kBAAkB,EAAE;gBAClB,eAAe,EAAE;oBACf,IAAI,EAAE,gCAAgC,CAAC;wBACrC,MAAM;wBACN,MAAM;wBACN,MAAM;wBACN,QAAQ;wBACR,SAAS;qBACV,CAAC;oBACF,UAAU,EAAE,cAAc;iBAC3B;aACF;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,EAAE,WAAW,EAAE,CAAC;AACzB,CAAC"}
@@ -8,8 +8,8 @@ export declare const NotificationsContext: React.Context<[
8
8
  ]>;
9
9
  export declare function NotificationsProvider({ children }: {
10
10
  children: React.ReactNode;
11
- }): JSX.Element;
12
- export declare function Notifications(props: any): JSX.Element;
11
+ }): React.JSX.Element;
12
+ export declare function Notifications(props: any): React.JSX.Element;
13
13
  export declare function Notification({ actor }: {
14
14
  actor: Interpreter<NotificationContext, NotificationSchema, NotificationEvent>;
15
- }): JSX.Element;
15
+ }): React.JSX.Element;
@@ -1,7 +1,6 @@
1
1
  import { useMachine, useService } from '@xstate/react';
2
2
  import React, { createContext, useContext, useCallback } from 'react';
3
3
  import { notificationsMachine } from './notificationsMachine';
4
- import { ReactComponent as Cross } from '@jetshop/ui/svg/Cross.svg';
5
4
  export const NotificationsContext = createContext(undefined);
6
5
  export function NotificationsProvider({ children }) {
7
6
  const [state, send] = useMachine(notificationsMachine);
@@ -10,7 +9,7 @@ export function NotificationsProvider({ children }) {
10
9
  export function Notifications(props) {
11
10
  const [current] = useContext(NotificationsContext);
12
11
  const { context, matches } = current;
13
- return (React.createElement(React.Fragment, null, matches('active') && (React.createElement("div", Object.assign({}, props, { "data-flight-notifications": "" }), context.notifications.map(notification => (React.createElement(Notification, { actor: notification.ref, key: notification.id })))))));
12
+ return (React.createElement(React.Fragment, null, matches('active') && (React.createElement("div", Object.assign({}, props, { "data-flight-notifications": "" }), context.notifications.map((notification) => (React.createElement(Notification, { actor: notification.ref, key: notification.id })))))));
14
13
  }
15
14
  export function Notification({ actor }) {
16
15
  const [{ context, toStrings }, send] = useService(actor);
@@ -21,7 +20,7 @@ export function Notification({ actor }) {
21
20
  return (React.createElement("div", { "data-flight-notification": toStrings(), "data-flight-notification-type": type },
22
21
  React.createElement("div", { "data-flight-notification-inner": "" },
23
22
  React.createElement("button", { onClick: dismiss, "data-flight-notification-dismiss": "" },
24
- React.createElement(Cross, { "aria-label": "Close" })),
23
+ React.createElement("span", { "aria-label": "Close", className: "dismiss-button" }, "\u00D7")),
25
24
  content)));
26
25
  }
27
26
  //# sourceMappingURL=Notifications.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Notifications.js","sourceRoot":"","sources":["Notifications.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAOtE,OAAO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