@jetshop/core 5.17.0-alpha.1fa8c1a3 → 5.17.0-alpha.2384b5c5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (217) hide show
  1. package/ChannelHandler/ChannelHandler.js.map +1 -1
  2. package/ChannelHandler/PreserveRedirectRouteQuery.gql +4 -4
  3. package/ChannelHandler/redirectUtils.d.ts +1 -1
  4. package/ChannelHandler/redirectUtils.js +5 -3
  5. package/ChannelHandler/redirectUtils.js.map +1 -1
  6. package/ChannelHandler/redirectUtils.test.js +5 -5
  7. package/ChannelHandler/redirectUtilsGroupedChannels.test.js +5 -5
  8. package/analytics/webVitals.js +5 -5
  9. package/analytics/webVitals.js.map +1 -1
  10. package/boot/SharedTree.d.ts +1 -1
  11. package/boot/SharedTree.js +1 -1
  12. package/boot/SharedTree.js.map +1 -1
  13. package/boot/apollo.d.ts +1 -2
  14. package/boot/apollo.js +12 -7
  15. package/boot/apollo.js.map +1 -1
  16. package/boot/client/startClient.js +8 -2
  17. package/boot/client/startClient.js.map +1 -1
  18. package/boot/server/IntervalQuery.d.ts +1 -1
  19. package/boot/server/IntervalQuery.js +2 -2
  20. package/boot/server/IntervalQuery.js.map +1 -1
  21. package/boot/server/IntervalQuery.test.js +9 -13
  22. package/boot/server/PersistedApolloClient.test.js +8 -7
  23. package/boot/server/createApolloServer.d.ts +2 -1
  24. package/boot/server/createApolloServer.js +5 -5
  25. package/boot/server/createApolloServer.js.map +1 -1
  26. package/boot/server/createRenderer.js +4 -2
  27. package/boot/server/createRenderer.js.map +1 -1
  28. package/boot/server/entrypoint.js +7 -4
  29. package/boot/server/entrypoint.js.map +1 -1
  30. package/boot/server/persistedQueries/__tests__/getPersistedQueriesForRequest.test.js +1 -1
  31. package/boot/utils/queryLoggingMiddleware.d.ts +1 -1
  32. package/boot/utils/queryLoggingMiddleware.js +2 -2
  33. package/boot/utils/queryLoggingMiddleware.js.map +1 -1
  34. package/cart/AddToCartFormik.d.ts +1 -1
  35. package/cart/AddToCartFormik.js +1 -1
  36. package/cart/AddToCartFormik.js.map +1 -1
  37. package/cart/useAddToCart.d.ts +1 -1
  38. package/components/Auth/ForgotPasswordProvider.d.ts +2 -2
  39. package/components/Auth/ForgotPasswordProvider.js +1 -1
  40. package/components/Auth/ForgotPasswordProvider.js.map +1 -1
  41. package/components/Auth/ResetPasswordProvider.d.ts +4 -2
  42. package/components/Auth/ResetPasswordProvider.js +1 -1
  43. package/components/Auth/ResetPasswordProvider.js.map +1 -1
  44. package/components/Auth/SSN.js +4 -4
  45. package/components/Auth/SSN.js.map +1 -1
  46. package/components/Auth/UpdatePasswordForm.js +6 -6
  47. package/components/Auth/UpdatePasswordForm.js.map +1 -1
  48. package/components/Auth/signup-context.d.ts +2 -2
  49. package/components/Auth/signup-context.js +2 -3
  50. package/components/Auth/signup-context.js.map +1 -1
  51. package/components/Auth/signupSubmit.js +4 -4
  52. package/components/Auth/signupSubmit.js.map +1 -1
  53. package/components/Auth/useAddressFields.js +3 -3
  54. package/components/Auth/useAddressFields.js.map +1 -1
  55. package/components/Auth/useAddressFields.test.js +10 -8
  56. package/components/Auth/useCustomer.d.ts +2 -2
  57. package/components/Auth/useCustomer.js +1 -1
  58. package/components/Auth/useCustomer.js.map +1 -1
  59. package/components/AuthContext/AuthProvider.js +2 -2
  60. package/components/AuthContext/AuthProvider.js.map +1 -1
  61. package/components/AuthContext/AuthProvider.test.js +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 +1 -1
  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 +1 -1
  71. package/components/DynamicRoute/PreviewRoute.js +1 -1
  72. package/components/DynamicRoute/PreviewRoute.js.map +1 -1
  73. package/components/DynamicRoute/ProductByArticlenumber.js +2 -2
  74. package/components/DynamicRoute/ProductByArticlenumber.js.map +1 -1
  75. package/components/DynamicRoute/ProductRoute.d.ts +1 -1
  76. package/components/DynamicRoute/RouteResolver.d.ts +1 -1
  77. package/components/DynamicRoute/RouteResolver.js +1 -0
  78. package/components/DynamicRoute/RouteResolver.js.map +1 -1
  79. package/components/DynamicRoute/Status.d.ts +1 -1
  80. package/components/DynamicRoute/index.js +14 -13
  81. package/components/DynamicRoute/index.js.map +1 -1
  82. package/components/Mutation/AddToCartFormik.js +1 -1
  83. package/components/Mutation/AddToCartFormik.js.map +1 -1
  84. package/components/Mutation/DecrementQuantity.js +1 -1
  85. package/components/Mutation/DecrementQuantity.js.map +1 -1
  86. package/components/Mutation/IncrementQuantity.js +1 -1
  87. package/components/Mutation/IncrementQuantity.js.map +1 -1
  88. package/components/Mutation/RemoveFromCart.js +1 -1
  89. package/components/Mutation/RemoveFromCart.js.map +1 -1
  90. package/components/Mutation/SetQuantity.js +1 -1
  91. package/components/Mutation/SetQuantity.js.map +1 -1
  92. package/components/Mutation/SubscribeToNewsletter.d.ts +1 -1
  93. package/components/Mutation/SubscribeToNewsletter.js +1 -1
  94. package/components/Mutation/SubscribeToNewsletter.js.map +1 -1
  95. package/components/Mutation/SubscribeToStockNotifications.d.ts +1 -1
  96. package/components/Mutation/SubscribeToStockNotifications.js +6 -2
  97. package/components/Mutation/SubscribeToStockNotifications.js.map +1 -1
  98. package/components/Mutation/cartMutationUtils.d.ts +1 -2
  99. package/components/Mutation/cartMutationUtils.js.map +1 -1
  100. package/components/Mutation/useDecrementQuantity.d.ts +1 -1
  101. package/components/Mutation/useDecrementQuantity.js +1 -1
  102. package/components/Mutation/useDecrementQuantity.js.map +1 -1
  103. package/components/Mutation/useIncrementQuantity.d.ts +1 -1
  104. package/components/Mutation/useIncrementQuantity.js +1 -1
  105. package/components/Mutation/useIncrementQuantity.js.map +1 -1
  106. package/components/Mutation/useRemoveFromCart.d.ts +1 -1
  107. package/components/Mutation/useRemoveFromCart.js +1 -1
  108. package/components/Mutation/useRemoveFromCart.js.map +1 -1
  109. package/components/Mutation/useSetQuantity.d.ts +1 -1
  110. package/components/Mutation/useSetQuantity.js +1 -1
  111. package/components/Mutation/useSetQuantity.js.map +1 -1
  112. package/components/ProductConfigurationProvider/ProductConfigurationProvider.js +1 -1
  113. package/components/ProductConfigurationProvider/ProductConfigurationProvider.js.map +1 -1
  114. package/components/Query/CartProvider.d.ts +1 -1
  115. package/components/Query/CartProvider.js +1 -1
  116. package/components/Query/CartProvider.js.map +1 -1
  117. package/data/cache.d.ts +1 -1
  118. package/data/cache.js +62 -12
  119. package/data/cache.js.map +1 -1
  120. package/data/fragments/ProductListsFragments.gql +8 -8
  121. package/data/fragments/StockStatusFragment.gql +1 -0
  122. package/global.d.ts +6 -0
  123. package/helpers/getErrorDetail.d.ts +1 -1
  124. package/helpers/getErrorDetail.js +2 -2
  125. package/helpers/getErrorDetail.js.map +1 -1
  126. package/hooks/Filters/useBooleanFilter.d.ts +1 -1
  127. package/hooks/Filters/useBooleanFilter.js +1 -2
  128. package/hooks/Filters/useBooleanFilter.js.map +1 -1
  129. package/hooks/Filters/useFilters.d.ts +1 -1
  130. package/hooks/Filters/useFilters.js +1 -2
  131. package/hooks/Filters/useFilters.js.map +1 -1
  132. package/hooks/Filters/useListFilter.d.ts +2 -2
  133. package/hooks/Filters/useListFilter.js +1 -2
  134. package/hooks/Filters/useListFilter.js.map +1 -1
  135. package/hooks/Filters/useMultiFilter.d.ts +3 -3
  136. package/hooks/Filters/useMultiFilter.js +1 -2
  137. package/hooks/Filters/useMultiFilter.js.map +1 -1
  138. package/hooks/Filters/useRangeFilter.d.ts +2 -2
  139. package/hooks/Filters/useRangeFilter.js +1 -2
  140. package/hooks/Filters/useRangeFilter.js.map +1 -1
  141. package/hooks/PackageProducts/usePackageProducts.js +1 -1
  142. package/hooks/PackageProducts/usePackageProducts.js.map +1 -1
  143. package/hooks/PackageProducts/usePackageProducts.test.js +1 -1
  144. package/hooks/ProductList/ProductListContext.js +1 -1
  145. package/hooks/ProductList/ProductListContext.js.map +1 -1
  146. package/hooks/ProductList/action-creators.d.ts +1 -1
  147. package/hooks/ProductList/index.d.ts +1 -1
  148. package/hooks/ProductList/useProductList.js +1 -1
  149. package/hooks/ProductList/useProductList.js.map +1 -1
  150. package/hooks/ProductList/useProductListItems.js +1 -1
  151. package/hooks/ProductList/useProductListItems.js.map +1 -1
  152. package/hooks/Subscriptions/useNewsletterSubscription.js +3 -3
  153. package/hooks/Subscriptions/useNewsletterSubscription.js.map +1 -1
  154. package/hooks/Subscriptions/useStockNotifications.d.ts +1 -1
  155. package/hooks/Subscriptions/useStockNotifications.js +3 -3
  156. package/hooks/Subscriptions/useStockNotifications.js.map +1 -1
  157. package/hooks/Subscriptions/useStoreSubscriptions.d.ts +1 -1
  158. package/hooks/Subscriptions/useStoreSubscriptions.js +3 -6
  159. package/hooks/Subscriptions/useStoreSubscriptions.js.map +1 -1
  160. package/hooks/Subscriptions/useStoresubscriptions.test.js +5 -7
  161. package/hooks/useAddMultipleToCart.d.ts +1 -1
  162. package/hooks/useAddMultipleToCart.js +1 -1
  163. package/hooks/useAddMultipleToCart.js.map +1 -1
  164. package/hooks/useAddMultipleToCart.test.js +1 -1
  165. package/hooks/useCustomerOrders.test.js +7 -5
  166. package/hooks/useCustomerOrdersQuery.d.ts +2 -2
  167. package/hooks/useCustomerOrdersQuery.js +1 -1
  168. package/hooks/useCustomerOrdersQuery.js.map +1 -1
  169. package/hooks/useDeleteAccountMutation.js +3 -3
  170. package/hooks/useDeleteAccountMutation.js.map +1 -1
  171. package/hooks/useInfinitePagination.d.ts +1 -1
  172. package/hooks/useInfinitePagination.js +4 -1
  173. package/hooks/useInfinitePagination.js.map +1 -1
  174. package/hooks/useLoginMutation.d.ts +3 -3
  175. package/hooks/useLoginMutation.js +2 -2
  176. package/hooks/useLoginMutation.js.map +1 -1
  177. package/hooks/useLoginRedirect.js +2 -2
  178. package/hooks/useLoginRedirect.js.map +1 -1
  179. package/hooks/useOrderDetailQuery.d.ts +3 -3
  180. package/hooks/useOrderDetailQuery.js +1 -1
  181. package/hooks/useOrderDetailQuery.js.map +1 -1
  182. package/hooks/useRoutePreload.js +1 -1
  183. package/hooks/useRoutePreload.js.map +1 -1
  184. package/integrations/sluggishSchemaExtension.js +1 -1
  185. package/integrations/sluggishSchemaExtension.js.map +1 -1
  186. package/package.json +18 -36
  187. package/resolvers/filters/boolFilter.js +19 -23
  188. package/resolvers/filters/boolFilter.js.map +1 -1
  189. package/resolvers/filters/filterParams.js +8 -8
  190. package/resolvers/filters/filterParams.js.map +1 -1
  191. package/resolvers/filters/filters.js +5 -5
  192. package/resolvers/filters/filters.js.map +1 -1
  193. package/resolvers/filters/index.d.ts +0 -4
  194. package/resolvers/filters/listFilter.js +19 -24
  195. package/resolvers/filters/listFilter.js.map +1 -1
  196. package/resolvers/filters/listFilterItem.js +20 -26
  197. package/resolvers/filters/listFilterItem.js.map +1 -1
  198. package/resolvers/filters/multiListFilter.js +21 -24
  199. package/resolvers/filters/multiListFilter.js.map +1 -1
  200. package/resolvers/filters/multiListFilterList.js +1 -1
  201. package/resolvers/filters/multiListFilterList.js.map +1 -1
  202. package/resolvers/filters/rangeFilter.js +18 -34
  203. package/resolvers/filters/rangeFilter.js.map +1 -1
  204. package/test-utils/ProviderPyramid.js +1 -1
  205. package/types.d.ts +1820 -1955
  206. package/components/Fonts/GoogleFont.d.ts +0 -10
  207. package/components/Fonts/GoogleFont.js +0 -35
  208. package/components/Fonts/GoogleFont.js.map +0 -1
  209. package/components/Fonts/TypekitFont.d.ts +0 -16
  210. package/components/Fonts/TypekitFont.js +0 -25
  211. package/components/Fonts/TypekitFont.js.map +0 -1
  212. package/integrations/addwishSchemaExtension.d.ts +0 -35
  213. package/integrations/addwishSchemaExtension.js +0 -141
  214. package/integrations/addwishSchemaExtension.js.map +0 -1
  215. package/integrations/nostoSchemaExtension.d.ts +0 -5
  216. package/integrations/nostoSchemaExtension.js +0 -77
  217. package/integrations/nostoSchemaExtension.js.map +0 -1
@@ -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,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;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,19 +1,19 @@
1
1
  query ActiveFilters {
2
2
  activeFilters @client @export {
3
- listFilters @export {
3
+ listFilters @client @export {
4
4
  id
5
5
  values
6
6
  }
7
- rangeFilters @export {
7
+ rangeFilters @client @export {
8
8
  id
9
9
  min
10
10
  max
11
11
  }
12
- booleanFilters @export {
12
+ booleanFilters @client @export {
13
13
  id
14
14
  value
15
15
  }
16
- multiListFilters @export {
16
+ multiListFilters @client @export {
17
17
  id
18
18
  values
19
19
  }
@@ -1,6 +1,6 @@
1
1
  import { Category } from '@jetshop/core/types';
2
2
  import React, { ComponentType } from 'react';
3
- import { QueryResult } from 'react-apollo';
3
+ import { QueryResult } from '@apollo/client';
4
4
  export interface CategoryProps {
5
5
  result: QueryResult;
6
6
  category: Category;
@@ -11,16 +11,18 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  };
12
12
  import { useShopConfig } from '@jetshop/core/hooks/useShopConfig';
13
13
  import React, { useEffect } from 'react';
14
- import { useApolloClient } from 'react-apollo';
14
+ import { useApolloClient } from '@apollo/client';
15
15
  import { useHistory } from 'react-router';
16
16
  import { getActiveFiltersFromSearch } from '../../resolvers/filters/filterParams';
17
17
  import { StructuredCategoryData } from '../StructuredData';
18
+ import ActiveFiltersQuery from '@jetshop/core/components/DynamicRoute/ActiveFiltersQuery.gql';
18
19
  function useFiltersOnHistoryPop() {
19
20
  const client = useApolloClient();
20
21
  useEffect(() => {
21
22
  function getSearchFilters() {
22
23
  // Write the active filters from search
23
- client.writeData({
24
+ client.writeQuery({
25
+ query: ActiveFiltersQuery,
24
26
  data: {
25
27
  activeFilters: getActiveFiltersFromSearch(window.location.search)
26
28
  }
@@ -33,7 +35,8 @@ function useFiltersOnHistoryPop() {
33
35
  const CategoryRoute = (props) => {
34
36
  var _a, _b, _c;
35
37
  const { component: CategoryPage } = props, rest = __rest(props, ["component"]);
36
- const category = ((_b = (_a = props.result.data) === null || _a === void 0 ? void 0 : _a.route) === null || _b === void 0 ? void 0 : _b.object) || ((_c = props.result.data) === null || _c === void 0 ? void 0 : _c.category);
38
+ const category = ((_b = (_a = (props.result.data || props.result.previousData)) === null || _a === void 0 ? void 0 : _a.route) === null || _b === void 0 ? void 0 : _b.object) ||
39
+ ((_c = (props.result.data || props.result.previousData)) === null || _c === void 0 ? void 0 : _c.category);
37
40
  const { structuredData } = useShopConfig();
38
41
  const disableDefaultCategoryData = structuredData
39
42
  ? !!structuredData.disableDefaultCategoryData
@@ -1 +1 @@
1
- {"version":3,"file":"CategoryRoute.js","sourceRoot":"","sources":["CategoryRoute.tsx"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,KAAK,EAAE,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EAAe,eAAe,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAW3D,SAAS,sBAAsB;IAC7B,MAAM,MAAM,GAAG,eAAe,EAAE,CAAC;IAEjC,SAAS,CAAC,GAAG,EAAE;QACb,SAAS,gBAAgB;YACvB,uCAAuC;YACvC,MAAM,CAAC,SAAS,CAAC;gBACf,IAAI,EAAE;oBACJ,aAAa,EAAE,0BAA0B,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;iBAClE;aACF,CAAC,CAAC;QACL,CAAC;QAED,MAAM,CAAC,gBAAgB,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC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,EAAE,QAAQ,GAAI,CAC/C,CACA,CACJ;QACD,oBAAC,YAAY,oBAAK,IAAI,IAAE,QAAQ,EAAE,QAAQ,IAAI,CAC7C,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React, { ComponentType } from 'react';
2
- import { QueryResult } from 'react-apollo';
2
+ import { QueryResult } from '@apollo/client';
3
3
  import { Page } from '@jetshop/core/types';
4
4
  export interface ContentProps {
5
5
  result: QueryResult;
@@ -13,6 +13,6 @@ declare class ErrorBoundary extends React.Component<BoundaryErrorProps, Boundary
13
13
  state: BoundaryErrorState;
14
14
  static defaultProps: Partial<BoundaryErrorProps>;
15
15
  componentDidCatch(error: Error, info: React.ErrorInfo): void;
16
- render(): string | number | boolean | React.JSX.Element | React.ReactFragment;
16
+ render(): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode>;
17
17
  }
18
18
  export default ErrorBoundary;
@@ -1,6 +1,6 @@
1
1
  import qs from 'qs';
2
2
  import React, { useContext } from 'react';
3
- import { Query } from 'react-apollo';
3
+ import { Query } from '@apollo/client/react/components';
4
4
  import SortOrderContainer from '../SortOrder/SortOrderContainer';
5
5
  import CategoryRoute from './CategoryRoute';
6
6
  import ProductRoute from './ProductRoute';
@@ -1 +1 @@
1
- {"version":3,"file":"PreviewRoute.js","sourceRoot":"","sources":["PreviewRoute.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,KAAK,EAAE,EAAiB,UAAU,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,KAAK,EAAe,MAAM,cAAc,CAAC;AAClD,OAAO,kBAAkB,MAAM,iCAAiC,CAAC;AACjE,OAAO,aAAgC,MAAM,iBAAiB,CAAC;AAC/D,OAAO,YAA8B,MAAM,gBAAgB,CAAC;AAC5D,OAAO,YAA8B,MAAM,gBAAgB,CAAC;AAC5D,OAAO,iBAAiB,MAAM,iCAAiC,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E,YAAY,GAAI,CAC3D,CACK,CACT,CACkB,CACtB,CAC0B,CAC9B,CAAC;KACH;SAAM,IAAI,MAAM,EAAE;QACjB,OAAO,CACL,oBAAC,KAAK,IACJ,WAAW,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EACpC,KAAK,EAAE,SAAS,EAChB,SAAS,EAAE;gBACT,EAAE,EAAE,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC;aACzB,IAEA,CAAC,MAAmB,EAAE,EAAE,CAAC,CACxB,oBAAC,YAAY,IAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,GAAI,CACzD,CACK,CACT,CAAC;KACH;SAAM,IAAI,WAAW,EAAE;QACtB,OAAO,CACL,oBAAC,SAAS,IAAC,WAAW,EAAE,QAAQ,CAAC,WAAW,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,GAAI,CAC1E,CAAC;KACH;;QAAM,OAAO,IAAI,CAAC;AACrB,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useQuery } from 'react-apollo';
2
+ import { useQuery } from '@apollo/client';
3
3
  import { Redirect } from 'react-router';
4
4
  import productByArticlenumberQuery from './ProductByArticlenumber.gql';
5
5
  import encodeVariantValues from '@jetshop/core/helpers/encodeVariant';
@@ -14,7 +14,7 @@ const ProductByArticlenumber = ({ articleNumber }) => {
14
14
  }
15
15
  const product = data === null || data === void 0 ? void 0 : data.product;
16
16
  const variant = (product === null || product === void 0 ? void 0 : product.hasVariants) &&
17
- product.variants.values.find(variant => variant.articleNumber === articleNumber);
17
+ product.variants.values.find((variant) => variant.articleNumber === articleNumber);
18
18
  const encoding = variant ? encodeVariantValues(variant) : '';
19
19
  return (data === null || data === void 0 ? void 0 : data.product) ? (React.createElement(Redirect, { to: `${((_b = (_a = data === null || data === void 0 ? void 0 : data.product) === null || _a === void 0 ? void 0 : _a.primaryRoute) === null || _b === void 0 ? void 0 : _b.path) + encoding}` })) : (React.createElement(Redirect, { to: "/" }));
20
20
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ProductByArticlenumber.js","sourceRoot":"","sources":["ProductByArticlenumber.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,2BAA2B,MAAM,8BAA8B,CAAC;AACvE,OAAO,mBAAmB,MAAM,qCAAqC,CAAC;AAGtE,MAAM,sBAAsB,GAAG,CAAC,EAC9B,aAAa,EAGd,EAAE,EAAE;;IACH,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,QAAQ,CAAC,2BAA2B,EAAE;QAC9D,SAAS,EAAE,EAAE,aAAa,EAAE;QAC5B,WAAW,EAAE,KAAK;KACnB,CAAC,CAAC;IAEH,IAAI,OAAO,EAAE;QACX,OAAO,IAAI,CAAC;KACb;IAED,MAAM,OAAO,GAAY,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,CAAC;IAEvC,MAAM,OAAO,GACX,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW;QACpB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAC1B,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,aAAa,KAAK,aAAa,CACnD,CAAC;IAEJ,MAAM,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAE7D,OAAO,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAC,CAAC,CAAC,CACrB,oBAAC,QAAQ,IAAC,EAAE,EAAE,GAAG,CAAA,MAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,0CAAE,YAAY,0CA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AC,EAAE,EAAE,GAAG,CAAA,MAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,0CAAE,YAAY,0CAAE,IAAI,IAAG,QAAQ,EAAE,GAAI,CACpE,CAAC,CAAC,CAAC,CACF,oBAAC,QAAQ,IAAC,EAAE,EAAC,GAAG,GAAG,CACpB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { Product } from '@jetshop/core/types';
2
2
  import React, { ComponentType } from 'react';
3
- import { QueryResult } from 'react-apollo';
3
+ import { QueryResult } from '@apollo/client';
4
4
  export interface ProductProps {
5
5
  result: QueryResult;
6
6
  product: Product;
@@ -2,7 +2,7 @@ import React, { ComponentType } from 'react';
2
2
  import { ProductProps } from './ProductRoute';
3
3
  import { CategoryProps } from './CategoryRoute';
4
4
  import { ContentProps } from './ContentRoute';
5
- import { QueryResult } from 'react-apollo';
5
+ import { QueryResult } from '@apollo/client';
6
6
  import { Route } from '../../types';
7
7
  declare const RouteResolver: ({ productPage, categoryPage, contentPage, notFoundPage: NotFoundPage, ErrorPage, LoadingPage, result, pathname, state, search }: {
8
8
  productPage: ComponentType<ProductProps>;
@@ -33,6 +33,7 @@ const Loading = (LoadingPage) => LoadingPage ? React.createElement(LoadingPage,
33
33
  const RouteResolver = ({ productPage, categoryPage, contentPage, notFoundPage: NotFoundPage, ErrorPage, LoadingPage, result, pathname, state, search }) => {
34
34
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
35
35
  setPageType((_c = (_b = (_a = result === null || result === void 0 ? void 0 : result.data) === null || _a === void 0 ? void 0 : _a.route) === null || _b === void 0 ? void 0 : _b.object) === null || _c === void 0 ? void 0 : _c.__typename);
36
+ result.error && console.error(result.error);
36
37
  if (((_f = (_e = (_d = result === null || result === void 0 ? void 0 : result.data) === null || _d === void 0 ? void 0 : _d.route) === null || _e === void 0 ? void 0 : _e.path) !== null && _f !== void 0 ? _f : pathname) !== pathname) {
37
38
  return (React.createElement(Status, { code: 301 },
38
39
  React.createElement(Redirect, { to: {
@@ -1 +1 @@
1
- {"version":3,"file":"RouteResolver.js","sourceRoot":"","sources":["RouteResolver.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC7C,OAAO,YAA8B,MAAM,gBAAgB,CAAC;AAC5D,OAAO,aAAgC,MAAM,iBAAiB,CAAC;AAC/D,OAAO,YAA8B,MAAM,gBAAgB,CAAC;AAE5D,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAC;AAElF,MAAM,WAAW,GAAG,CAAC,KAAU,EAAE,MAAmB,EAAE,IAAY,EAAE,EAAE;;IACpE,IAAI,MAAM,CAAC,KAAK,EAAE;QAChB,OAAO,KAAK,CAAC;KACd;IACD,MAAM,SAAS,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,CAAC;IAC9B,MAAM,SAAS,GAAG,MAAA,MAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,0CAAE,KAAK,0CAAE,MAAM,0CAAE,UAAU,CAAC;IAC1D,MAAM,UAAU,GAAG,CAAC,MAAM,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC;IACjD,IAAI,UAAU,EAAE;QACd,OAAO,KAAK,CAAC;KACd;SAAM;QACL,OAAO,SAAS,KAAK,IAAI,IAAI,SAAS,KAAK,IAAI,CAAC;KACjD;AACH,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,MAAqC,EAAE,EAAE;;IAC7D,MAAM,SAAS,GACb,MAAA,MAAA,MAAA,MAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,0CAAE,aAAa,0CAAG,CAAC,CAAC,0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AS,CAAC,EAAE;QAChD,OAAO,CACL,oBAAC,YAAY,IACX,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,EAC9B,SAAS,EAAE,WAAW,GACtB,CACH,CAAC;KACH;SAAM,IAAI,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE;QACjD,OAAO,oBAAC,aAAa,IAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,GAAI,CAAC;KACnE;SAAM,IAAI,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAC7C,OAAO,CACL,oBAAC,YAAY,IACX,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,WAAW,GACtB,CACH,CAAC;KACH;SAAM,IAAI,MAAM,CAAC,OAAO,EAAE;QACzB,OAAO,OAAO,CAAC,WAAW,CAAC,CAAC;KAC7B;SAAM;QACL,IAAI,YAAY,CAAC,MAAM,CAAC,EAAE;YACxB,OAAO,CACL,oBAAC,MAAM,IAAC,IAAI,EAAE,GAAG;gBACf,oBAAC,YAAY,OAAG,CACT,CACV,CAAC;SACH;QAED,OAAO,CACL,oBAAC,MAAM,IAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,IACnC,SAAS,CAAC,CAAC,CAAC,CACX,oBAAC,SAAS,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,GAAI,CACnC,CAAC,CAAC,CAAC,CACF,oBAAC,YAAY,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,GAAI,CACtC,CACM,CACV,CAAC;KACH;AACH,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { RouteComponentProps } from 'react-router-dom';
3
- import { ApolloError } from 'apollo-client';
3
+ import { ApolloError } from '@apollo/client';
4
4
  export interface StatusProps extends RouteComponentProps<{}> {
5
5
  code: number;
6
6
  error?: ApolloError;
@@ -2,8 +2,8 @@ import PaginationProvider, { usePagination } from '@jetshop/core/components/Pagi
2
2
  import SortOrderContainer from '@jetshop/core/components/SortOrder/SortOrderContainer';
3
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,33 +13,31 @@ 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
- console.log('run effect');
20
- client.writeData({
18
+ client.writeQuery({
19
+ query: ActiveFiltersQuery,
21
20
  data: {
22
21
  activeFilters: getActiveFiltersFromSearch(window.location.search)
23
22
  }
24
23
  });
25
- }, [client, history]);
24
+ }, [client]);
26
25
  }
27
26
  const RouteQuery = ({ pagination, sortOrder, direction, routeQuery, productPage, categoryPage, contentPage, notFoundPage, LoadingPage, ErrorPage }) => {
28
- var _a, _b, _c, _d, _e;
27
+ var _a, _b, _c, _d;
29
28
  const location = useLocation();
30
29
  const { perPage, offset } = pagination;
31
30
  useFiltersOnRouteChange();
32
31
  const activeFilterQuery = useQuery(ActiveFiltersQuery, {
33
32
  fetchPolicy: 'cache-only'
34
33
  });
35
- console.log((_a = activeFilterQuery.data) === null || _a === void 0 ? void 0 : _a.activeFilters);
36
34
  const variables = {
37
35
  path: location.pathname,
38
36
  first: perPage,
39
37
  offset,
40
38
  orderBy: sortOrder,
41
39
  orderByDirection: direction,
42
- filters: ((_b = activeFilterQuery.data) === null || _b === void 0 ? void 0 : _b.activeFilters) || Object.assign({}, defaultActiveFilters)
40
+ filters: Object.assign({}, (_a = activeFilterQuery.data) === null || _a === void 0 ? void 0 : _a.activeFilters) || Object.assign({}, defaultActiveFilters)
43
41
  };
44
42
  // defaultActiveFilters includes a __typename key,
45
43
  // but we don't want it for the variable input
@@ -47,11 +45,14 @@ const RouteQuery = ({ pagination, sortOrder, direction, routeQuery, productPage,
47
45
  const result = useQuery(routeQuery, {
48
46
  variables,
49
47
  errorPolicy: 'all',
50
- fetchPolicy: 'cache-and-network',
48
+ initialFetchPolicy: 'cache-and-network',
51
49
  partialRefetch: true
52
50
  });
53
- const route = (_c = result.data) === null || _c === void 0 ? void 0 : _c.route;
54
- const data = (_e = (_d = result.data) === null || _d === void 0 ? void 0 : _d.route) === null || _e === void 0 ? void 0 : _e.object;
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 });
55
56
  return (React.createElement(GenericError
56
57
  // Catch routing exceptions and log the graphql result
57
58
  , {
@@ -61,7 +62,7 @@ const RouteQuery = ({ pagination, sortOrder, direction, routeQuery, productPage,
61
62
  data: result.data
62
63
  } },
63
64
  data && React.createElement(Head, { data: data, route: route }),
64
- 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 })));
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 })));
65
66
  };
66
67
  const DynamicRoute = (props) => {
67
68
  throwErrorInDev(!props.routeQuery, `You forgot to pass 'routeQuery' to DynamicRoute`);
@@ -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,oDAAoD,CAAC;AAE9E,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,CAAC;AAC5D,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,kBAAkB,MAAM,0BAA0B,CAAC;AAI1D,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAY9D,mFAAmF;AACnF,SAAS,uBAAuB;IAC9B,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,MAAM,MAAM,GAAG,eAAe,EAAE,CAAC;IAEjC,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAC1B,MAAM,CAAC,SAAS,CAAC;YACf,IAAI,EAAE;gBACJ,aAAa,EAAE,0BAA0B,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;aAClE;SACF,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC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,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,gBAAgB,EAAE;QACxD,MAAM,aAAa,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QACnD,OAAO,oBAAC,sBAAsB,IAAC,aAAa,EAAE,aAAa,GAAI,CAAC;KACjE;IACD,IAAI,QAAQ,CAAC,QAAQ,KAAK,YAAY,EAAE;QACtC,OAAO,IAAI,CAAC;KACb;SAAM;QACL,OAAO,CACL,oBAAC,kBAAkB,QAChB,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAC7B,oBAAC,UAAU,kBACT,GAAG,EAAE,QAAQ,CAAC,QAAQ,IAClB;YACF,UAAU;YACV,SAAS;YACT,SAAS;YACT,UAAU;YACV,WAAW;YACX,YAAY;YACZ,WAAW;YACX,YAAY;YACZ,WAAW;YACX,SAAS;SACV,EACD,CACH,CACkB,CACtB,CAAC;KACH;AACH,CAAC,CAAC;AAkBF,eAAe,YAAY,CAAC"}
@@ -12,7 +12,7 @@ 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';
@@ -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,EAA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,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QAC1C,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;IACnC,CAAC,CAAC,CAAC;IACH,MAAM,qBAAqB,mBACzB,QAAQ,EAAE,CAAC,EACX,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,cAAc,IACpB,aAAa,CACjB,CAAC;IAEF,MAAM,EAAE,QAAQ,EAAE,GAAG,WAAW,CAAC;QAC/B,iBAAiB;QACjB,aAAa;QACb,OAAO;QACP,OAAO;QACP,iBAAiB;KAClB,CAAC,CAAC;IAEH,MAAM,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC;QAChC,aAAa;QACb,YAAY;QACZ,SAAS;QACT,eAAe;QACf,kBAAkB;QAClB,gBAAgB;QAChB,OAAO;QACP,OAAO;KACR,CAAC,CAAC;IAEH,OAAO,CACL,oBAAC,MAAM,kBACL,gBAAgB,EAAE,KAAK,EACvB,aAAa,EAAE,qBAAqB,EACpC,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,IAC1C,KAAK,EACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -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,gDAA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Q,EAAE,MAAM,iCAAiC,CAAC;AAE3D,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;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;AAEF,eAAe,iBAAiB,CAAC"}
@@ -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,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;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
+ {"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,EAAE,MAAM,iCAAiC,CAAC;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAEL,sCAAsC,EACvC,MAAM,qBAAqB,CAAC;AAC7B,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;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"}
@@ -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/throwErrorInDev';
@@ -1 +1 @@
1
- {"version":3,"file":"RemoveFromCart.js","sourceRoot":"","sources":["RemoveFromCart.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAEhF,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAoC,MAAM,cAAc,CAAC;AAC1E,OAAO,EAEL,mCAAmC,EACpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AAIpG,MAAM,cAAc,GAAG,SAAS,cAAc,CAAC,EAC7C,SAAS,EACT,QAAQ,EACY;IACpB,eAAe,CACb,CAAC,SAAS,EACV,kDAAkD,CACnD,CAAC;IAEF,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IACxD,MAAM,KAAK,GAAG,UAAU,EAAE,CAAC;IAE3B,OAAO,CACL,oBAAC,QAAQ,IACP,WAAW,EAAE,CAAC,IAA6C,EAAE,EAAE;YAC7D,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;aAChD;QACH,CAAC,EACD,QAAQ,EAAE,cAAc,IAEvB,CAAC,MAAwB,EAAE,EAAE,MAAM,EAAkB,EAAE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L,CAAC,CAAC,CAAC;IACL,CAAC,CACQ,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -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;gBACZ,SAAS,EAAE;oBACT,KAAK,EAAE;wBACL,MAAM;wBACN,MAAM;wBACN,QAAQ;qBACT;iBACF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AAC;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,CAAC,OAElB,EADD,KAAK,cAJyD,sCAKlE,CADS;IAER,eAAe,CACb,IAAI,EACJ,4KAA4K,CAC7K,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AC;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,oBAAoB,EAAE;YACpB,GAAG,EAAE,CAAC;YACN,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,CAAC;YAC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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,CAAC;AAMpG,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC3C,yBAAyB,EACzB,SAAS,EACc;IACv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AAS,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,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,YAAY,EAAE,GAAG,CAAC;KAC3D,CAAC,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