@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
@@ -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;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AAMpG,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,sBAAsB,EACtB,SAAS,EACW;IACpB,eAAe,CACb,CAAC,SAAS,EACV,qDAAqD,CACtD,CAAC;IAEF,MAAM,EAAE,MAAM,EAAE,S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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,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,gCAAgC,EAAE,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,GA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C,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"}
@@ -1,6 +1,6 @@
1
1
  import React, { useCallback, useState, useMemo } from 'react';
2
2
  import ProductConfigurationContext from './ProductConfigurationContext';
3
- import { useQuery } from '@apollo/react-hooks';
3
+ import { useQuery } from '@apollo/client';
4
4
  import ConfigPrice from './ConfigPrice.gql';
5
5
  import { produce } from 'immer';
6
6
  const ProductConfigurationProvider = ({ product, children }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"ProductConfigurationProvider.js","sourceRoot":"","sources":["ProductConfigurationProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,2BAA2B,MAAM,+BAA+B,CAAC;AAQxE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,MAAM,4BAA4B,GAAG,CAAC,EACpC,OAAO,EACP,QAAQ,EAIT,EAAE,EAAE;IACH,MAAM,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC;IAEnC,MAAM,CAAC,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GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC;IAC1E,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC;IAEtB,MAAM,UAAU,GAAG,QAAQ,CAGzB,WAAW,EAAE;QACb,SAAS,EAAE,cAAc;QACzB,cAAc,EAAE,IAAI;KACrB,CAAC,CAAC;IAEH,MAAM,KAAK,GAAG,OAAO,CACnB,GAAG,EAAE;;QAAC,OAAA,CAAC;YACL,cAAc;YACd,kBAAkB,EAAE,MAAA,UAAU,CAAC,IAAI,0CAAE,OAAO,CAAC,kBAAkB;YAC/D,OAAO,EAAE,UAAU,CAAC,OAAO;YAC3B,YAAY;YACZ,gBAAgB;YAChB,GAAG;SACJ,CAAC,CAAA;KAAA,EACF;QACE,cAAc;QACd,UAAU,CAAC,IAAI;QACf,UAAU,CAAC,OAAO;QAClB,YAAY;QACZ,gBAAgB;QAChB,GAAG;KACJ,CACF,CAAC;IAEF,OAAO,CACL,oBAAC,2BAA2B,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,IAC/C,QAAQ,CAC4B,CACxC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAmC,CAAC,EAC3D,OAAO,EACP,QAAQ,EACT,EAAE,EAAE,CACH,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,EAAC,CAAC,CAAC,CAC3B,oBAAC,4BAA4B,IAAC,OAAO,EAAE,OAAO,IAC3C,QAAQ,CACoB,CAChC,CAAC,CAAC,CAAC,CACF,0CAAG,QAAQ,CAAI,CAChB,CAAC;AAEJ,eAAe,mBAAmB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { DocumentNode } from 'graphql';
2
- import { QueryResult } from 'react-apollo';
2
+ import { QueryResult } from '@apollo/client';
3
3
  import { Cart } from '../../types';
4
4
  interface Data {
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { useQuery } from '@apollo/react-hooks';
1
+ import { useQuery } from '@apollo/client';
2
2
  import { useContext, useEffect, useRef } from 'react';
3
3
  import throwErrorInDev from '../../helpers/throwErrorInDev';
4
4
  import { CartIdContext } from '../Cart/CartIdContext';
@@ -1 +1 @@
1
- {"version":3,"file":"CartProvider.js","sourceRoot":"","sources":["CartProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAiB1D,sGAAsG;AACtG,IAAI,eAAe,GAAG,KAAK,CAAC;AAC5B,SAAS,oBAAoB,CAAC,MAAyB;;IACrD,MAAM,KAAK,GAAG,UAAU,EAAE,CAAC;IAE3B,SAAS,CAAC,GAAG,EAAE;;QACb,IAAI,CAAC,eAAe,EAAE;YACpB,eAAe,GAAG,IAAI,CAAC;YAEvB,IAAI,MAAM,CAAC,OAAO,EAAE;aACnB;iBAAM,IAAI,MAAA,MAAM,CAAC,IAAI,0CAAE,IAAI,EAAE;gBAC5B,IAAK,MAAM,CAAC,IAAI,CAAC,IAAY,CAAC,YAAY,EAAE;iBAC3C;qBAAM;oBACL,KAAK,CAAC,cAAc,CAAC,EAAE,IAAI,EAAE,MAAA,MAAM,CAAC,IAAI,0CAAE,IAAI,EAAE,CAAC,CAAC,CAAC;iBACpD;aACF;YAED,OAAO,GAAG,EAAE;gBACV,eAAe,GAAG,KAAK,CAAC;YAC1B,CAAC,CAAC;SACH;IAC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AAQ,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,CAAC;gBAC1D,eAAe,CAAC,OAAO,EAAE,CAAC;gBAC1B,YAAY,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;aACvC;QACH,CAAC,CAAC;QAEF,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QAE7C,OAAO,GAAG,EAAE;YACV,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QAClD,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAqB;IACzE,eAAe,CAAC,CAAC,KAAK,EAAE,4CAA4C,CAAC,CAAC;IAEtE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAClC,mBAAmB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAEpC,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC;AAC1B,CAAC"}
package/data/cache.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { InMemoryCache } from 'apollo-cache-inmemory';
1
+ import { InMemoryCache } from '@apollo/client';
2
2
  declare const createCache: () => InMemoryCache;
3
3
  export default createCache;
package/data/cache.js CHANGED
@@ -1,19 +1,69 @@
1
- import { InMemoryCache, IntrospectionFragmentMatcher } from 'apollo-cache-inmemory';
2
- import { toIdValue } from 'apollo-utilities';
1
+ import { InMemoryCache } from '@apollo/client';
3
2
  import fragmentTypes from './fragmentTypes';
4
3
  const createCache = () => new InMemoryCache({
5
- freezeResults: true,
6
- fragmentMatcher: new IntrospectionFragmentMatcher({
7
- introspectionQueryResultData: {
8
- __schema: {
9
- types: fragmentTypes
10
- }
4
+ possibleTypes: Object.assign({}, fragmentTypes.reduce((acc, type) => {
5
+ if (!acc[type.name]) {
6
+ acc[type.name] = type.possibleTypes.map((t) => t.name);
11
7
  }
12
- }),
13
- cacheRedirects: {
8
+ return acc;
9
+ }, {})),
10
+ typePolicies: {
11
+ Channel: {
12
+ fields: {
13
+ settings: {
14
+ merge(existing, incoming, { mergeObjects }) {
15
+ // custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects
16
+ // we do this to fix hydration mismatch on signup page
17
+ // where we query for more settings in the already queried settings (tracking)
18
+ return existing !== null && existing !== void 0 ? existing : mergeObjects(existing, incoming);
19
+ }
20
+ }
21
+ }
22
+ },
23
+ Product: {
24
+ fields: {
25
+ // Images don't have an id, so we need to merge them manually.
26
+ images: {
27
+ merge(existing, incoming, { readField, mergeObjects }) {
28
+ const merged = existing ? existing.slice(0) : [];
29
+ const imageToIndex = Object.create(null);
30
+ if (existing) {
31
+ existing.forEach((image, index) => {
32
+ imageToIndex[readField('url', image)] = index;
33
+ });
34
+ }
35
+ incoming.forEach((image) => {
36
+ const url = readField('url', image);
37
+ const index = imageToIndex[url];
38
+ if (typeof index === 'number') {
39
+ // Merge the new image data with the existing image data.
40
+ merged[index] = mergeObjects(merged[index], image);
41
+ }
42
+ else {
43
+ // First time we've seen this image in this array.
44
+ imageToIndex[url] = merged.length;
45
+ merged.push(image);
46
+ }
47
+ });
48
+ return merged;
49
+ }
50
+ }
51
+ }
52
+ },
53
+ // https://www.apollographql.com/docs/react/caching/advanced-topics/#cache-redirects
14
54
  Query: {
15
- product: (_, args) => toIdValue(`Product:${args.id}`),
16
- category: (_, args) => toIdValue(`Category:${args.id}`)
55
+ fields: {
56
+ product: {
57
+ read(existing, { args, toReference }) {
58
+ return (existing !== null && existing !== void 0 ? existing : toReference({ __typename: 'Product', id: args === null || args === void 0 ? void 0 : args.id }));
59
+ }
60
+ },
61
+ category: {
62
+ read(existing, { args, toReference }) {
63
+ return (existing !== null && existing !== void 0 ? existing : toReference({ __typename: 'Category', id: args === null || args === void 0 ? void 0 : args.id }));
64
+ }
65
+ }
66
+ }
17
67
  }
18
68
  }
19
69
  });
package/data/cache.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cache.js","sourceRoot":"","sources":["cache.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,4BAA4B,EAC7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,MAAM,WAAW,GAAG,GAAG,EAAE,CACvB,IAAI,aAAa,CAAC;IAChB,aAAa,EAAE,IAAI;IACnB,eAAe,EAAE,IAAI,4BAA4B,CAAC;QAChD,4BAA4B,EAAE;YAC5B,QAAQ,EAAE;gBACR,KAAK,EAAE,aAAa;aACrB;SACF;KACF,CAAC;IACF,cAAc,EAAE;QACd,KAAK,EAAE;YACL,OAAO,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,WAAW,IAAI,CAAC,EAAE,EAAE,CAAC;YACrD,QAAQ,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,YAAY,IAAI,CAAC,EAAE,EAAE,CAAC;SACxD;KACF;CACF,CAAC,CAAC;AAEL,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"cache.js","sourceRoot":"","sources":["cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,MAAM,WAAW,GAAG,GAAG,EAAE,CACvB,IAAI,aAAa,CAAC;IAChB,aAAa,oBACR,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;QACpC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YACnB,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,C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,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC;6BACpD;iCAAM;gCACL,kDAAkD;gCAClD,YAAY,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC;gCAClC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;6BACpB;wBACH,CAAC,CAAC,CAAC;wBACH,OAAO,MAAM,CAAC;oBAChB,CAAC;iBACF;aACF;SACF;QACD,oFAAoF;QACpF,KAAK,EAAE;YACL,MAAM,EAAE;gBACN,OAAO,EAAE;oBACP,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;wBAClC,OAAO,CACL,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,WAAW,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,EAAE,CAAC,CACjE,CAAC;oBACJ,CAAC;iBACF;gBACD,QAAQ,EAAE;oBACR,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;wBAClC,OAAO,CACL,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GACR,WAAW,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,EAAE,CAAC,CACtD,CAAC;oBACJ,CAAC;iBACF;aACF;SACF;KACF;CACF,CAAC,CAAC;AAEL,eAAe,WAAW,CAAC"}
@@ -17,7 +17,7 @@ fragment MinimalProductListDetail on CustomerProductList {
17
17
  }
18
18
  }
19
19
 
20
- fragment VariantDetail on ProductVariant {
20
+ fragment ProductListsVariantDetail on ProductVariant {
21
21
  id
22
22
  articleNumber
23
23
  values
@@ -33,17 +33,17 @@ fragment VariantDetail on ProductVariant {
33
33
  }
34
34
  }
35
35
 
36
- fragment VariantsDetail on ProductVariants {
36
+ fragment ProductListsVariantsDetail on ProductVariants {
37
37
  options {
38
38
  name
39
39
  values
40
40
  }
41
41
  values {
42
- ...VariantDetail
42
+ ...ProductListsVariantDetail
43
43
  }
44
44
  }
45
45
 
46
- fragment ProductDetail on Product {
46
+ fragment ProductListsProductDetail on Product {
47
47
  id
48
48
  articleNumber
49
49
  name
@@ -72,11 +72,11 @@ fragment ProductDetail on Product {
72
72
  url
73
73
  }
74
74
  variants {
75
- ...VariantsDetail
75
+ ...ProductListsVariantsDetail
76
76
  }
77
77
  }
78
78
 
79
- fragment ProductListFragment on CustomerProductList {
79
+ fragment ProductListsListFragment on CustomerProductList {
80
80
  id
81
81
  description
82
82
  name
@@ -85,10 +85,10 @@ fragment ProductListFragment on CustomerProductList {
85
85
  quantity
86
86
  description
87
87
  product {
88
- ...ProductDetail
88
+ ...ProductListsProductDetail
89
89
  }
90
90
  variant {
91
- ...VariantDetail
91
+ ...ProductListsVariantDetail
92
92
  }
93
93
  }
94
94
  }
@@ -1,4 +1,5 @@
1
1
  fragment StockStatus on StockStatus {
2
+ id
2
3
  buyable
3
4
  maxOrderQuantity
4
5
  stockDate
package/global.d.ts CHANGED
@@ -5,6 +5,12 @@ import * as ChunkExtractor from '@loadable/server';
5
5
 
6
6
  declare module 'format-message-generate-id';
7
7
 
8
+ declare module 'apollo-link' {
9
+ import { ApolloLink } from '@apollo/client';
10
+ // Fix usage of graphql-tools using older apollo-link
11
+ type ApolloLink = ApolloLink;
12
+ }
13
+
8
14
  declare global {
9
15
  let __IN_SERVER__: boolean;
10
16
  }
@@ -1,4 +1,4 @@
1
- import { ApolloError } from 'apollo-client';
1
+ import { ApolloError } from '@apollo/client';
2
2
  export interface ErrorDetail {
3
3
  /** Contains an array of graphQL error codes */
4
4
  codes: string[];
@@ -2,10 +2,10 @@ export default function getErrorDetail(error) {
2
2
  var _a;
3
3
  const graphQLErrors = (_a = error === null || error === void 0 ? void 0 : error.graphQLErrors) !== null && _a !== void 0 ? _a : [];
4
4
  const codes = graphQLErrors
5
- .map(error => { var _a; return (_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a.code; })
5
+ .map((error) => { var _a; return (_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a.code; })
6
6
  .filter(Boolean);
7
7
  const data = graphQLErrors
8
- .map(error => { var _a; return (_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a.data; })
8
+ .map((error) => { var _a; return (_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a.data; })
9
9
  .filter(Boolean);
10
10
  return { codes, data };
11
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"getErrorDetail.js","sourceRoot":"","sources":["getErrorDetail.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAkB;;IACvD,MAAM,aAAa,GAAG,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,aAAa,mCAAI,EAAE,CAAC;IAEjD,MAAM,KAAK,GAAG,aAAa;SACxB,GAAG,CAAC,KAAK,CAAC,EAAE,WAAC,OAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAE,IAAI,CAAA,EAAA,CAAC;SACrC,MAAM,CAAC,OAAO,CAAC,CAAC;IAEnB,MAAM,IAAI,GAAG,aAAa;SACvB,GAAG,CAAC,KAAK,CAAC,EAAE,WAAC,OAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAE,IAAI,CAAA,EAAA,CAAC;SACrC,MAAM,CAAC,OAAO,CAAC,CAAC;IAEnB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AACzB,CAAC"}
1
+ {"version":3,"file":"getErrorDetail.js","sourceRoot":"","sources":["getErrorDetail.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAkB;;IACvD,MAAM,aAAa,GAAG,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,aAAa,mCAAI,EAAE,CAAC;IAEjD,MAAM,KAAK,GAAG,aAAa;SACxB,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,WAAC,OAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAE,IAAI,CAAA,EAAA,CAAC;SACvC,MAAM,CAAC,OAAO,CAAC,CAAC;IAEnB,MAAM,IAAI,GAAG,aAAa;SACvB,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,WAAC,OAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAE,IAAI,CAAA,EAAA,CAAC;SACvC,MAAM,CAAC,OAAO,CAAC,CAAC;IAEnB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AACzB,CAAC"}
@@ -4,5 +4,5 @@ export declare function useBooleanFilter(args: {
4
4
  }): {
5
5
  apply: ({ value }: {
6
6
  value: boolean;
7
- }) => Promise<import("react-apollo").ExecutionResult<BooleanFilter>>;
7
+ }) => Promise<import("@apollo/client").FetchResult<BooleanFilter, Record<string, any>, Record<string, any>>>;
8
8
  };
@@ -1,5 +1,4 @@
1
- import { useMutation } from '@apollo/react-hooks';
2
- import gql from 'graphql-tag';
1
+ import { useMutation, gql } from '@apollo/client';
3
2
  export function useBooleanFilter(args) {
4
3
  const [setBoolFilterMutation] = useMutation(gql `
5
4
  mutation SetBool {
@@ -1 +1 @@
1
- {"version":3,"file":"useBooleanFilter.js","sourceRoot":"","sources":["useBooleanFilter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,GAAG,MAAM,aAAa,CAAC;AAO9B,MAAM,UAAU,gBAAgB,CAAC,IAA+B;IAC9D,MAAM,CAAC,qBAAqB,CAAC,GAAG,WAAW,CAGzC,GAAG,CAAA;;;;;;GAMJ,CAAC,CAAC;IAEH,SAAS,KAAK,CAAC,EAAE,KAAK,EAAsB;QAC1C,OAAO,qBAAqB,CAAC;YAC3B,SAAS,EAAE;gBACT,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE;gBAClB,KAAK;aACN;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,CAAC;AACnB,CAAC"}
1
+ {"version":3,"file":"useBooleanFilter.js","sourceRoot":"","sources":["useBooleanFilter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAOlD,MAAM,UAAU,gBAAgB,CAAC,IAA+B;IAC9D,MAAM,CAAC,qBAAqB,CAAC,GAAG,WAAW,CAGzC,GAAG,CAAA;;;;;;GAMJ,CAAC,CAAC;IAEH,SAAS,KAAK,CAAC,EAAE,KAAK,EAAsB;QAC1C,OAAO,qBAAqB,CAAC;YAC3B,SAAS,EAAE;gBACT,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE;gBAClB,KAAK;aACN;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,CAAC;AACnB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  export declare function useFilters(): {
2
- clearAllFilters: () => Promise<import("react-apollo").ExecutionResult<boolean>>;
2
+ clearAllFilters: () => Promise<import("@apollo/client").FetchResult<boolean, Record<string, any>, Record<string, any>>>;
3
3
  };
@@ -1,5 +1,4 @@
1
- import { useMutation } from '@apollo/react-hooks';
2
- import gql from 'graphql-tag';
1
+ import { useMutation, gql } from '@apollo/client';
3
2
  export function useFilters() {
4
3
  const [clearFiltersMutation] = useMutation(gql `
5
4
  mutation ClearFilters {
@@ -1 +1 @@
1
- {"version":3,"file":"useFilters.js","sourceRoot":"","sources":["useFilters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,GAAG,MAAM,aAAa,CAAC;AAG9B,MAAM,UAAU,UAAU;IACxB,MAAM,CAAC,oBAAoB,CAAC,GAAG,WAAW,CAA8B,GAAG,CAAA;;;;GAI1E,CAAC,CAAC;IACH,SAAS,eAAe;QACtB,OAAO,oBAAoB,EAAE,CAAC;IAChC,CAAC;IAED,OAAO;QACL,eAAe;KAChB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"useFilters.js","sourceRoot":"","sources":["useFilters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAGlD,MAAM,UAAU,UAAU;IACxB,MAAM,CAAC,oBAAoB,CAAC,GAAG,WAAW,CAA8B,GAAG,CAAA;;;;GAI1E,CAAC,CAAC;IACH,SAAS,eAAe;QACtB,OAAO,oBAAoB,EAAE,CAAC;IAChC,CAAC;IAED,OAAO;QACL,eAAe;KAChB,CAAC;AACJ,CAAC"}
@@ -5,6 +5,6 @@ export declare function useListFilter(args: {
5
5
  apply: ({ value, set }: {
6
6
  value: string;
7
7
  set?: boolean;
8
- }) => Promise<import("react-apollo").ExecutionResult<ListFilter>>;
9
- clear: () => Promise<import("react-apollo").ExecutionResult<any>>;
8
+ }) => Promise<import("@apollo/client").FetchResult<ListFilter, Record<string, any>, Record<string, any>>>;
9
+ clear: () => Promise<import("@apollo/client").FetchResult<any, Record<string, any>, Record<string, any>>>;
10
10
  };
@@ -1,5 +1,4 @@
1
- import { useMutation } from 'react-apollo';
2
- import gql from 'graphql-tag';
1
+ import { useMutation, gql } from '@apollo/client';
3
2
  export function useListFilter(args) {
4
3
  const [toggleActiveMutation] = useMutation(gql `
5
4
  mutation toggleActiveListItem(
@@ -1 +1 @@
1
- {"version":3,"file":"useListFilter.js","sourceRoot":"","sources":["useListFilter.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,GAAG,MAAM,aAAa,CAAC;AAE9B,MAAM,UAAU,aAAa,CAAC,IAA4B;IACxD,MAAM,CAAC,oBAAoB,CAAC,GAAG,WAAW,CAGxC,GAA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AM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC3B,qCAAqC;QACrC,OAAO,oBAAoB,CAAC;YAC1B,SAAS,EAAE;gBACT,QAAQ,EAAE,MAAM,CAAC,EAAE;gBACnB,KAAK;gBACL,GAAG;aACJ;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;AAC1B,CAAC"}
@@ -5,9 +5,9 @@ export declare function useMultiFilter(args: {
5
5
  apply: ({ value, listIndex }: {
6
6
  value: string;
7
7
  listIndex: number;
8
- }) => Promise<import("react-apollo").ExecutionResult<MultiListFilter>>;
8
+ }) => Promise<import("@apollo/client").FetchResult<MultiListFilter, Record<string, any>, Record<string, any>>>;
9
9
  clearList: ({ listIndex }: {
10
10
  listIndex: number;
11
- }) => Promise<import("react-apollo").ExecutionResult<MultiListFilter>>;
12
- clearFilter: () => Promise<import("react-apollo").ExecutionResult<MultiListFilter>>;
11
+ }) => Promise<import("@apollo/client").FetchResult<MultiListFilter, Record<string, any>, Record<string, any>>>;
12
+ clearFilter: () => Promise<import("@apollo/client").FetchResult<MultiListFilter, Record<string, any>, Record<string, any>>>;
13
13
  };
@@ -1,5 +1,4 @@
1
- import { useMutation } from '@apollo/react-hooks';
2
- import gql from 'graphql-tag';
1
+ import { useMutation, gql } from '@apollo/client';
3
2
  export function useMultiFilter(args) {
4
3
  const [toggleMultiListFilterItemMutation] = useMutation(gql `
5
4
  mutation toggleMultiListItem {
@@ -1 +1 @@
1
- {"version":3,"file":"useMultiFilter.js","sourceRoot":"","sources":["useMultiFilter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,GAAG,MAAM,aAAa,CAAC;AAS9B,MAAM,UAAU,cAAc,CAAC,IAAiC;IAC9D,MAAM,CAAC,iCAAiC,CAAC,GAAG,WAAW,CAGrD,GAAG,CAAA;;;;;;;;;;GAUJ,CAAC,CAAC;IAEH,6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AC;YACvC,SAAS,EAAE;gBACT,MAAM;gBACN,SAAS;gBACT,KAAK;aACN;SACF,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,gCAAgC,CAAC,GAAG,WAAW,CAGpD,GAAG,CAAA;;;;GAIJ,CAAC,CAAC;IAEH,2CAA2C;IAC3C,SAAS,SAAS,CAAC,EAAE,SAAS,EAAyB;QACrD,OAAO,gCAAgC,CAAC;YACtC,SAAS,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;SAC9C,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,4BAA4B,CAAC,GAAG,WAAW,CAGhD,GAAG,CAAA;;;;GAIJ,CAAC,CAAC;IAEH,kDAAkD;IAClD,SAAS,WAAW;QAClB,OAAO,4BAA4B,CAAC;YAClC,SAAS,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE;SAClC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;AAC3C,CAAC"}
@@ -5,6 +5,6 @@ export declare function useRangeFilter(args: {
5
5
  apply: ({ min, max }: {
6
6
  min: number;
7
7
  max: number;
8
- }) => Promise<import("react-apollo").ExecutionResult<NumericRangeFilter>>;
9
- clear: () => Promise<import("react-apollo").ExecutionResult<NumericRangeFilter>>;
8
+ }) => Promise<import("@apollo/client").FetchResult<NumericRangeFilter, Record<string, any>, Record<string, any>>>;
9
+ clear: () => Promise<import("@apollo/client").FetchResult<NumericRangeFilter, Record<string, any>, Record<string, any>>>;
10
10
  };
@@ -1,5 +1,4 @@
1
- import { useMutation } from 'react-apollo';
2
- import gql from 'graphql-tag';
1
+ import { useMutation, gql } from '@apollo/client';
3
2
  import throwErrorInDev from '../../helpers/throwErrorInDev';
4
3
  export function useRangeFilter(args) {
5
4
  const [applyRangeFilterMutation] = useMutation(gql `
@@ -1 +1 @@
1
- {"version":3,"file":"useRangeFilter.js","sourceRoot":"","sources":["useRangeFilter.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,GAAG,MAAM,aAAa,CAAC;AAC9B,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAE5D,MAAM,UAAU,cAAc,CAAC,IAAoC;IACjE,MAAM,CAAC,wBAAwB,CAAC,GAAG,WAAW,CAG5C,GAAG,CAAA;;;;;;GAMJ,CAAC,CAAC;IAEH,MAAM,CAAC,wBAAwB,CAAC,GAAG,WAAW,CAG5C,GAAG,CAAA;;;;GAIJ,CAAC,CAAC;IAEH,SAAS,KAAK,CAAC,EAAE,GAAG,EAAE,GAAG,EAAgC;QACvD,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG;YACd,eAAe,CACb,IAAI,EACJ,oDAAoD,CACrD,CAAC;QACJ,OAAO,wBAAwB,CAAC;YAC9B,SAAS,EAAE;gBACT,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE;gBAClB,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;aAClB;SACF,CAAC,CAAC;IACL,CAAC;IAED,SAAS,KAAK;QACZ,OAAO,wBAAwB,CAAC;YAC9B,SAAS,EAAE;gBACT,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE;aACnB;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;AAC1B,CAAC"}
1
+ {"version":3,"file":"useRangeFilter.js","sourceRoot":"","sources":["useRangeFilter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAMlD,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAE5D,MAAM,UAAU,cAAc,CAAC,IAAoC;IACjE,MAAM,CAAC,wBAAwB,CAAC,GAAG,WAAW,CAG5C,GAAG,CAAA;;;;;;GAMJ,CAAC,CAAC;IAEH,MAAM,CAAC,wBAAwB,CAAC,GAAG,WAAW,CAG5C,GAAG,CAAA;;;;GAIJ,CAAC,CAAC;IAEH,SAAS,KAAK,CAAC,EAAE,GAAG,EAAE,GAAG,EAAgC;QACvD,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG;YACd,eAAe,CACb,IAAI,EACJ,oDAAoD,CACrD,CAAC;QACJ,OAAO,wBAAwB,CAAC;YAC9B,SAAS,EAAE;gBACT,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE;gBAClB,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;aAClB;SACF,CAAC,CAAC;IACL,CAAC;IAED,SAAS,KAAK;QACZ,OAAO,wBAAwB,CAAC;YAC9B,SAAS,EAAE;gBACT,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE;aACnB;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;AAC1B,CAAC"}
@@ -1,5 +1,5 @@
1
- import { useApolloClient, useQuery } from '@apollo/react-hooks';
2
1
  import { useMachine } from '@xstate/react';
2
+ import { useApolloClient, useQuery } from '@apollo/client';
3
3
  import { produce } from 'immer';
4
4
  import { useCallback, useEffect, useMemo, useRef } from 'react';
5
5
  import { assign, Machine } from 'xstate';
@@ -1 +1 @@
1
- {"version":3,"file":"usePackageProducts.js","sourceRoot":"","sources":["usePackageProducts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEzC,OAAO,EAGL,oBAAoB,EACrB,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C;gBACtC,OAAO,OAAO,CAAC;YACjB,KAAK,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;gBAC7B,OAAO,SAAS,CAAC;YACnB;gBACE,OAAO,SAAS,CAAC;SACpB;IACH,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,MAAM,KAAK,GAAG,WAAW,CACvB,SAAS,KAAK;QACZ,IAAI,MAAM,KAAK,OAAO,EAAE;YACtB,IAAI,CAAC;gBACH,IAAI,EAAE,OAAO;aACd,CAAC,CAAC;SACJ;IACH,CAAC,EACD,CAAC,IAAI,EAAE,MAAM,CAAC,CACf,CAAC;IAEF,OAAO;QACL,MAAM;QACN,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK;QAC5B,gBAAgB;QAChB,iBAAiB;QACjB,cAAc,EAAE,OAAO,CAAC,OAAO,CAAC,cAAc;QAC9C,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK;QAC5B,KAAK;KACN,CAAC;AACJ,CAAC"}
@@ -1,8 +1,8 @@
1
+ import { gql } from '@apollo/client';
1
2
  import React from 'react';
2
3
  import { usePackageProduct } from './';
3
4
  import { renderHook, act } from '@testing-library/react-hooks';
4
5
  import { ProviderPyramid } from '../../test-utils/ProviderPyramid';
5
- import gql from 'graphql-tag';
6
6
 
7
7
  //////////////////////////////////////////////////////////////////////////////
8
8
  // MOCKS
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import React, { useEffect, useMemo } from 'react';
13
- import { useMutation, useQuery } from 'react-apollo';
13
+ import { useMutation, useQuery } from '@apollo/client';
14
14
  import useWarningInDev from '@jetshop/core/hooks/useWarningInDev';
15
15
  import productListQueries from '@jetshop/core/data/queries/ProductLists.gql';
16
16
  import productListMutations from '@jetshop/core/data/mutations/productListMutations.gql';
@@ -1 +1 @@
1
- {"version":3,"file":"ProductListContext.js","sourceRoot":"","sources":["ProductListContext.tsx"],"names":[],"mappings":";;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C,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAC5E,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AACd,CAAC;AAED,SAAS,uBAAuB,CAAC,EAAE,OAAO,EAA2B;IACnE,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,QAAQ,GAAG,CAAC,CAAe,EAAE,EAAE;YACnC,IAAI,CAAC,CAAC,WAAW,KAAK,YAAY,IAAI,CAAC,CAAC,GAAG,KAAK,iBAAiB,EAAE;gBACjE,OAAO,EAAE,CAAC;aACX;QACH,CAAC,CAAC;QAEF,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QAE7C,OAAO,GAAG,EAAE;YACV,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QAClD,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC"}
@@ -1,5 +1,5 @@
1
+ import { MutationFunction } from '@apollo/client';
1
2
  import React from 'react';
2
- import { MutationFunction } from 'react-apollo';
3
3
  import { AddToListMutation, ProductListItemOptions, ProductListState, ProductListId, RemoveFromListMutation, UpdateListInput, UpdateListOptions } from '.';
4
4
  import { Mutation } from '../../types';
5
5
  import { Action } from './product-list-reducer';
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
+ import { MutationTuple, QueryResult } from '@apollo/client';
2
3
  import { DocumentNode } from 'graphql';
3
- import { MutationTuple, QueryResult } from 'react-apollo';
4
4
  import { CustomerProductListResult, MutationCreateCustomerProductListArgs, MutationAddToCustomerProductListArgs, MutationRemoveFromCustomerProductListArgs, MutationUpdateCustomerProductListItemArgs, Product, ProductVariant, QueryCustomerProductListArgs, QueryProductsArgs } from '../../types';
5
5
  import { ThunkAction } from '../useThunkReducer';
6
6
  import { Action } from './product-list-reducer';
@@ -1,5 +1,5 @@
1
+ import { useMutation } from '@apollo/client';
1
2
  import React, { useEffect, useMemo, useState } from 'react';
2
- import { useMutation } from 'react-apollo';
3
3
  import { addAction, clearAction, removeAction, updateAction } from './action-creators';
4
4
  import { flattenList } from './list-transforms';
5
5
  import { ProductListContext } from './ProductListContext';
@@ -1 +1 @@
1
- {"version":3,"file":"useProductList.js","sourceRoot":"","sources":["useProductList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAO3C,OAAO,EACL,SAAS,EACT,WAAW,EACX,YAAY,EACZ,YAAY,EACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,MAAM,UAAU,cAAc,CAAC,SAAwB,IAAI;IACzD,MAAM;IACJ,MAAM;IACN,uBAAuB;IACvB,KAAK,EACL,QAAQ,EACR,OAAO,EACP,cAAc,EACf,GAAG,KAAK,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAEzC,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAErC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,CAAC,cAAc,CAAC,CAAC;IAE1D,MAAM,SAAS,GAAG,CAAC,cAAc,CAAC;IAElC,MAAM,cAAc,GAA2B,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3E,MAAM,WAAW,GAAsB,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAEhE,MAAM,KAAK,GAAG,UAAU,EAAE,CAAC;IAE3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AG,oBAAoB,CAAC,CAAA,CAAC;YAE/D,OAAO,aAAa,CAAC;SACtB;aAAM;YACL,OAAO,KAAK,CAAC;SACd;IACH,CAAC;IAED,0EAA0E;IAC1E,4EAA4E;IAC5E,SAAS,CAAC,GAAG,EAAE;QACb,WAAW,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,EAAE;QACzB,OAAO,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IACjD,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;IAErB,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AACrE,CAAC"}
@@ -1,5 +1,5 @@
1
+ import { useQuery } from '@apollo/client';
1
2
  import { useContext, useMemo, useState, useEffect } from 'react';
2
- import { useQuery } from 'react-apollo';
3
3
  import { flattenList, getProductDetailForFlattenedProductList } from './list-transforms';
4
4
  import { ProductListContext } from './ProductListContext';
5
5
  import getErrorDetail from '../../helpers/getErrorDetail';