@jetshop/core 5.17.0-minor.21477356 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (290) hide show
  1. package/ChannelHandler/ChannelHandler.js.map +1 -1
  2. package/ChannelHandler/PreserveRedirectRouteQuery.gql +4 -4
  3. package/ChannelHandler/redirectUtils.d.ts +2 -2
  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/Analytics.d.ts +3 -3
  9. package/analytics/Analytics.js.map +1 -1
  10. package/analytics/AnalyticsProvider.d.ts +2 -2
  11. package/analytics/trackerRegistry.d.ts +2 -2
  12. package/analytics/utils/script.d.ts +1 -1
  13. package/analytics/webVitals.js +5 -5
  14. package/analytics/webVitals.js.map +1 -1
  15. package/boot/NetworkStatusNotifier.d.ts +2 -0
  16. package/boot/NetworkStatusNotifier.js +4 -0
  17. package/boot/NetworkStatusNotifier.js.map +1 -0
  18. package/boot/SharedTree.d.ts +1 -1
  19. package/boot/SharedTree.js +1 -1
  20. package/boot/SharedTree.js.map +1 -1
  21. package/boot/apollo.d.ts +1 -2
  22. package/boot/apollo.js +13 -8
  23. package/boot/apollo.js.map +1 -1
  24. package/boot/client/startClient.js +18 -5
  25. package/boot/client/startClient.js.map +1 -1
  26. package/boot/server/IntervalQuery.d.ts +2 -2
  27. package/boot/server/IntervalQuery.js +2 -2
  28. package/boot/server/IntervalQuery.js.map +1 -1
  29. package/boot/server/IntervalQuery.test.js +9 -13
  30. package/boot/server/PersistedApolloClient.test.js +8 -7
  31. package/boot/server/breakpointMiddleware.d.ts +1 -1
  32. package/boot/server/createApolloServer.d.ts +4 -3
  33. package/boot/server/createApolloServer.js +5 -5
  34. package/boot/server/createApolloServer.js.map +1 -1
  35. package/boot/server/createRenderer.js +4 -2
  36. package/boot/server/createRenderer.js.map +1 -1
  37. package/boot/server/entrypoint.js +7 -4
  38. package/boot/server/entrypoint.js.map +1 -1
  39. package/boot/server/persistedQueries/PersistedClient.d.ts +3 -3
  40. package/boot/server/persistedQueries/__tests__/getPersistedQueriesForRequest.test.js +1 -1
  41. package/boot/utils/queryLoggingMiddleware.d.ts +1 -1
  42. package/boot/utils/queryLoggingMiddleware.js +2 -2
  43. package/boot/utils/queryLoggingMiddleware.js.map +1 -1
  44. package/cart/AddToCartFormik.d.ts +4 -4
  45. package/cart/AddToCartFormik.js +2 -2
  46. package/cart/AddToCartFormik.js.map +1 -1
  47. package/cart/useAddToCart.d.ts +4 -4
  48. package/components/Auth/CustomerUpdateForm.d.ts +1 -1
  49. package/components/Auth/ForgotPasswordProvider.d.ts +6 -8
  50. package/components/Auth/ForgotPasswordProvider.js +18 -18
  51. package/components/Auth/ForgotPasswordProvider.js.map +1 -1
  52. package/components/Auth/ResetPasswordProvider.d.ts +6 -4
  53. package/components/Auth/ResetPasswordProvider.js +1 -1
  54. package/components/Auth/ResetPasswordProvider.js.map +1 -1
  55. package/components/Auth/SSN.js +4 -4
  56. package/components/Auth/SSN.js.map +1 -1
  57. package/components/Auth/SSNLookupContainer.d.ts +1 -1
  58. package/components/Auth/SignupFormContainer.d.ts +3 -6
  59. package/components/Auth/SignupFormContainer.js.map +1 -1
  60. package/components/Auth/UpdatePasswordForm.d.ts +1 -1
  61. package/components/Auth/UpdatePasswordForm.js +6 -6
  62. package/components/Auth/UpdatePasswordForm.js.map +1 -1
  63. package/components/Auth/formatSignupInput.d.ts +1 -1
  64. package/components/Auth/signup-context.d.ts +2 -2
  65. package/components/Auth/signup-context.js +2 -3
  66. package/components/Auth/signup-context.js.map +1 -1
  67. package/components/Auth/signupSubmit.js +4 -4
  68. package/components/Auth/signupSubmit.js.map +1 -1
  69. package/components/Auth/useAddressFields.js +3 -3
  70. package/components/Auth/useAddressFields.js.map +1 -1
  71. package/components/Auth/useAddressFields.test.js +10 -8
  72. package/components/Auth/useCustomer.d.ts +3 -3
  73. package/components/Auth/useCustomer.js +1 -1
  74. package/components/Auth/useCustomer.js.map +1 -1
  75. package/components/AuthContext/AuthProvider.js +2 -2
  76. package/components/AuthContext/AuthProvider.js.map +1 -1
  77. package/components/AuthContext/AuthProvider.test.js +1 -1
  78. package/components/AuthContext/LogOut.d.ts +2 -2
  79. package/components/ChannelContext/ChannelProvider.d.ts +1 -1
  80. package/components/ChannelContext/useCountrySettings.d.ts +1 -1
  81. package/components/ChannelContext/useCountrySettings.js +1 -1
  82. package/components/ChannelContext/useCountrySettings.js.map +1 -1
  83. package/components/DynamicRoute/ActiveFiltersQuery.gql +4 -4
  84. package/components/DynamicRoute/CategoryRoute.d.ts +3 -3
  85. package/components/DynamicRoute/CategoryRoute.js +6 -3
  86. package/components/DynamicRoute/CategoryRoute.js.map +1 -1
  87. package/components/DynamicRoute/ContentRoute.d.ts +1 -1
  88. package/components/DynamicRoute/GenericError.d.ts +18 -0
  89. package/components/DynamicRoute/GenericError.js +61 -0
  90. package/components/DynamicRoute/GenericError.js.map +1 -0
  91. package/components/DynamicRoute/PreviewRoute.d.ts +1 -1
  92. package/components/DynamicRoute/PreviewRoute.js +1 -1
  93. package/components/DynamicRoute/PreviewRoute.js.map +1 -1
  94. package/components/DynamicRoute/ProductByArticlenumber.d.ts +2 -2
  95. package/components/DynamicRoute/ProductByArticlenumber.js +2 -2
  96. package/components/DynamicRoute/ProductByArticlenumber.js.map +1 -1
  97. package/components/DynamicRoute/ProductRoute.d.ts +3 -3
  98. package/components/DynamicRoute/ProductRoute.js.map +1 -1
  99. package/components/DynamicRoute/RouteResolver.d.ts +3 -3
  100. package/components/DynamicRoute/RouteResolver.js +2 -1
  101. package/components/DynamicRoute/RouteResolver.js.map +1 -1
  102. package/components/DynamicRoute/Status.d.ts +4 -3
  103. package/components/DynamicRoute/Status.js.map +1 -1
  104. package/components/DynamicRoute/index.d.ts +5 -5
  105. package/components/DynamicRoute/index.js +47 -42
  106. package/components/DynamicRoute/index.js.map +1 -1
  107. package/components/Filters/utils/replaceInSearch.d.ts +1 -1
  108. package/components/Filters/utils/replaceInSearch.js.map +1 -1
  109. package/components/Fonts/CustomFont.d.ts +1 -1
  110. package/components/Fonts/injectFont.d.ts +2 -2
  111. package/components/Fonts/injectFont.js +2 -2
  112. package/components/Fonts/injectFont.js.map +1 -1
  113. package/components/Mutation/AddToCartFormik.d.ts +1 -1
  114. package/components/Mutation/AddToCartFormik.js +2 -2
  115. package/components/Mutation/AddToCartFormik.js.map +1 -1
  116. package/components/Mutation/DecrementQuantity.d.ts +2 -2
  117. package/components/Mutation/DecrementQuantity.js +1 -1
  118. package/components/Mutation/DecrementQuantity.js.map +1 -1
  119. package/components/Mutation/IncrementQuantity.d.ts +2 -2
  120. package/components/Mutation/IncrementQuantity.js +1 -1
  121. package/components/Mutation/IncrementQuantity.js.map +1 -1
  122. package/components/Mutation/RemoveFromCart.d.ts +3 -3
  123. package/components/Mutation/RemoveFromCart.js +1 -1
  124. package/components/Mutation/RemoveFromCart.js.map +1 -1
  125. package/components/Mutation/SetQuantity.d.ts +2 -2
  126. package/components/Mutation/SetQuantity.js +1 -1
  127. package/components/Mutation/SetQuantity.js.map +1 -1
  128. package/components/Mutation/SubscribeToNewsletter.d.ts +1 -1
  129. package/components/Mutation/SubscribeToNewsletter.js +1 -1
  130. package/components/Mutation/SubscribeToNewsletter.js.map +1 -1
  131. package/components/Mutation/SubscribeToStockNotifications.d.ts +1 -1
  132. package/components/Mutation/SubscribeToStockNotifications.js +6 -2
  133. package/components/Mutation/SubscribeToStockNotifications.js.map +1 -1
  134. package/components/Mutation/cartMutationUtils.d.ts +1 -2
  135. package/components/Mutation/cartMutationUtils.js.map +1 -1
  136. package/components/Mutation/useDecrementQuantity.d.ts +1 -1
  137. package/components/Mutation/useDecrementQuantity.js +1 -1
  138. package/components/Mutation/useDecrementQuantity.js.map +1 -1
  139. package/components/Mutation/useIncrementQuantity.d.ts +1 -1
  140. package/components/Mutation/useIncrementQuantity.js +1 -1
  141. package/components/Mutation/useIncrementQuantity.js.map +1 -1
  142. package/components/Mutation/useRemoveFromCart.d.ts +1 -1
  143. package/components/Mutation/useRemoveFromCart.js +1 -1
  144. package/components/Mutation/useRemoveFromCart.js.map +1 -1
  145. package/components/Mutation/useSetQuantity.d.ts +1 -1
  146. package/components/Mutation/useSetQuantity.js +1 -1
  147. package/components/Mutation/useSetQuantity.js.map +1 -1
  148. package/components/Notifications/Notifications.d.ts +3 -3
  149. package/components/Notifications/Notifications.js +2 -3
  150. package/components/Notifications/Notifications.js.map +1 -1
  151. package/components/Notifications/notificationMachine.d.ts +1 -1
  152. package/components/Notifications/notificationsMachine.d.ts +3 -3
  153. package/components/Notifications/useNotification.d.ts +1 -1
  154. package/components/OpenGraph/OpenGraphGeneralPageData.d.ts +1 -1
  155. package/components/Pagination/PaginationProvider.d.ts +1 -1
  156. package/components/ProductConfigurationProvider/ProductConfigurationProvider.js +6 -6
  157. package/components/ProductConfigurationProvider/ProductConfigurationProvider.js.map +1 -1
  158. package/components/Query/CartProvider.d.ts +1 -1
  159. package/components/Query/CartProvider.js +1 -1
  160. package/components/Query/CartProvider.js.map +1 -1
  161. package/components/SortOrder/SortOrderContainer.d.ts +1 -1
  162. package/components/SortOrder/SortOrderContext.d.ts +1 -1
  163. package/components/StructuredData/StructuredBreadcrumbData.d.ts +2 -2
  164. package/data/cache.d.ts +1 -1
  165. package/data/cache.js +62 -12
  166. package/data/cache.js.map +1 -1
  167. package/data/fragments/ProductListsFragments.gql +8 -8
  168. package/errorReporting.shared.d.ts +1 -1
  169. package/global.d.ts +80 -2
  170. package/helpers/getErrorDetail.d.ts +1 -1
  171. package/helpers/getErrorDetail.js +2 -2
  172. package/helpers/getErrorDetail.js.map +1 -1
  173. package/helpers/getHeaders.d.ts +1 -1
  174. package/hooks/Filters/useBooleanFilter.d.ts +1 -1
  175. package/hooks/Filters/useBooleanFilter.js +1 -2
  176. package/hooks/Filters/useBooleanFilter.js.map +1 -1
  177. package/hooks/Filters/useFilters.d.ts +1 -1
  178. package/hooks/Filters/useFilters.js +1 -2
  179. package/hooks/Filters/useFilters.js.map +1 -1
  180. package/hooks/Filters/useListFilter.d.ts +2 -2
  181. package/hooks/Filters/useListFilter.js +1 -2
  182. package/hooks/Filters/useListFilter.js.map +1 -1
  183. package/hooks/Filters/useMultiFilter.d.ts +3 -3
  184. package/hooks/Filters/useMultiFilter.js +1 -2
  185. package/hooks/Filters/useMultiFilter.js.map +1 -1
  186. package/hooks/Filters/useRangeFilter.d.ts +2 -2
  187. package/hooks/Filters/useRangeFilter.js +1 -2
  188. package/hooks/Filters/useRangeFilter.js.map +1 -1
  189. package/hooks/Filters/useSortOrder.d.ts +6 -1
  190. package/hooks/Filters/useSortOrder.js +4 -3
  191. package/hooks/Filters/useSortOrder.js.map +1 -1
  192. package/hooks/PackageProducts/usePackageProductItem.d.ts +2 -2
  193. package/hooks/PackageProducts/usePackageProductItem.js +1 -1
  194. package/hooks/PackageProducts/usePackageProductItem.js.map +1 -1
  195. package/hooks/PackageProducts/usePackageProducts.js +17 -17
  196. package/hooks/PackageProducts/usePackageProducts.js.map +1 -1
  197. package/hooks/PackageProducts/usePackageProducts.test.js +1 -1
  198. package/hooks/ProductList/ProductListContext.js +1 -1
  199. package/hooks/ProductList/ProductListContext.js.map +1 -1
  200. package/hooks/ProductList/action-creators.d.ts +1 -1
  201. package/hooks/ProductList/index.d.ts +11 -11
  202. package/hooks/ProductList/list-transforms.js +1 -1
  203. package/hooks/ProductList/list-transforms.js.map +1 -1
  204. package/hooks/ProductList/product-list-reducer.d.ts +1 -1
  205. package/hooks/ProductList/product-list-reducer.js +1 -1
  206. package/hooks/ProductList/product-list-reducer.js.map +1 -1
  207. package/hooks/ProductList/useProductList.js +1 -1
  208. package/hooks/ProductList/useProductList.js.map +1 -1
  209. package/hooks/ProductList/useProductListItems.js +1 -1
  210. package/hooks/ProductList/useProductListItems.js.map +1 -1
  211. package/hooks/Subscriptions/useNewsletterSubscription.js +3 -3
  212. package/hooks/Subscriptions/useNewsletterSubscription.js.map +1 -1
  213. package/hooks/Subscriptions/useStockNotifications.d.ts +1 -1
  214. package/hooks/Subscriptions/useStockNotifications.js +3 -3
  215. package/hooks/Subscriptions/useStockNotifications.js.map +1 -1
  216. package/hooks/Subscriptions/useStoreSubscriptions.d.ts +1 -1
  217. package/hooks/Subscriptions/useStoreSubscriptions.js +3 -6
  218. package/hooks/Subscriptions/useStoreSubscriptions.js.map +1 -1
  219. package/hooks/Subscriptions/useStoresubscriptions.test.js +5 -7
  220. package/hooks/useAddMultipleToCart.d.ts +4 -4
  221. package/hooks/useAddMultipleToCart.js +1 -1
  222. package/hooks/useAddMultipleToCart.js.map +1 -1
  223. package/hooks/useAddMultipleToCart.test.js +1 -1
  224. package/hooks/useCustomerOrders.test.js +7 -5
  225. package/hooks/useCustomerOrdersQuery.d.ts +2 -2
  226. package/hooks/useCustomerOrdersQuery.js +1 -1
  227. package/hooks/useCustomerOrdersQuery.js.map +1 -1
  228. package/hooks/useDeleteAccountMutation.d.ts +1 -1
  229. package/hooks/useDeleteAccountMutation.js +3 -3
  230. package/hooks/useDeleteAccountMutation.js.map +1 -1
  231. package/hooks/useInfinitePagination.d.ts +1 -1
  232. package/hooks/useInfinitePagination.js +4 -1
  233. package/hooks/useInfinitePagination.js.map +1 -1
  234. package/hooks/useLoginMutation.d.ts +3 -3
  235. package/hooks/useLoginMutation.js +2 -2
  236. package/hooks/useLoginMutation.js.map +1 -1
  237. package/hooks/useLoginRedirect.js +2 -2
  238. package/hooks/useLoginRedirect.js.map +1 -1
  239. package/hooks/useOrderDetailQuery.d.ts +3 -3
  240. package/hooks/useOrderDetailQuery.js +1 -1
  241. package/hooks/useOrderDetailQuery.js.map +1 -1
  242. package/hooks/usePreconnectLinks.d.ts +1 -1
  243. package/hooks/usePreconnectLinks.js +1 -1
  244. package/hooks/usePreconnectLinks.js.map +1 -1
  245. package/hooks/useProductVariants/useProductVariants.d.ts +1 -1
  246. package/hooks/useRoutePreload.js +1 -1
  247. package/hooks/useRoutePreload.js.map +1 -1
  248. package/hooks/useStockStatus.d.ts +8 -0
  249. package/hooks/useStockStatus.js +26 -0
  250. package/hooks/useStockStatus.js.map +1 -0
  251. package/hooks/useThunkReducer.d.ts +1 -1
  252. package/integrations/sluggishSchemaExtension.js +1 -1
  253. package/integrations/sluggishSchemaExtension.js.map +1 -1
  254. package/package.json +24 -42
  255. package/polyfills.js +0 -2
  256. package/polyfills.js.map +1 -1
  257. package/resolvers/filters/boolFilter.js +24 -27
  258. package/resolvers/filters/boolFilter.js.map +1 -1
  259. package/resolvers/filters/filterParams.js +8 -8
  260. package/resolvers/filters/filterParams.js.map +1 -1
  261. package/resolvers/filters/filters.js +5 -5
  262. package/resolvers/filters/filters.js.map +1 -1
  263. package/resolvers/filters/index.d.ts +0 -4
  264. package/resolvers/filters/listFilter.js +24 -29
  265. package/resolvers/filters/listFilter.js.map +1 -1
  266. package/resolvers/filters/listFilterItem.js +31 -36
  267. package/resolvers/filters/listFilterItem.js.map +1 -1
  268. package/resolvers/filters/multiListFilter.js +41 -42
  269. package/resolvers/filters/multiListFilter.js.map +1 -1
  270. package/resolvers/filters/multiListFilterList.js +1 -1
  271. package/resolvers/filters/multiListFilterList.js.map +1 -1
  272. package/resolvers/filters/rangeFilter.js +27 -43
  273. package/resolvers/filters/rangeFilter.js.map +1 -1
  274. package/resolvers/index.d.ts +1 -1
  275. package/server/graphql.js +6 -7
  276. package/server/graphql.js.map +1 -1
  277. package/test-utils/ProviderPyramid.js +1 -1
  278. package/types.d.ts +1820 -1955
  279. package/components/Fonts/GoogleFont.d.ts +0 -10
  280. package/components/Fonts/GoogleFont.js +0 -35
  281. package/components/Fonts/GoogleFont.js.map +0 -1
  282. package/components/Fonts/TypekitFont.d.ts +0 -16
  283. package/components/Fonts/TypekitFont.js +0 -25
  284. package/components/Fonts/TypekitFont.js.map +0 -1
  285. package/integrations/addwishSchemaExtension.d.ts +0 -35
  286. package/integrations/addwishSchemaExtension.js +0 -141
  287. package/integrations/addwishSchemaExtension.js.map +0 -1
  288. package/integrations/nostoSchemaExtension.d.ts +0 -5
  289. package/integrations/nostoSchemaExtension.js +0 -77
  290. package/integrations/nostoSchemaExtension.js.map +0 -1
@@ -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,CA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,EAAE;IACnD,eAAe,CACb,CAAC,SAAS,EACV,oEAAoE,CACrE,CAAC;IAEF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,SAAS,CAAC;QAChC,KAAK,EAAE,SAAS;QAChB,SAAS,EAAE,EAAE,MAAM,EAAE;KACtB,CAAC,CAAC;IACH,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAc,EAAE,EAAE,CAC9C,IAAI,CAAC,EAAE,KAAK,MAAM,CAAC,CAAC,iCAAM,IAAI,KAAE,QAAQ,IAAG,CAAC,CAAC,IAAI,CAClD,CAAC;IACF,MAAM,cAAc,mCACf,IAAI,KACP,KAAK,EACL,YAAY,EAAE,IAAI,GACnB,CAAC;IACF,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC"}
@@ -6,6 +6,6 @@ interface DecrementQuantityProps {
6
6
  export default function useDecrementQuantity({ decrementQuantityMutation, cartQuery }: DecrementQuantityProps): {
7
7
  decrementQuantity: ({ itemId }: {
8
8
  itemId: string;
9
- }) => Promise<import("react-apollo").ExecutionResult<any>>;
9
+ }) => Promise<import("@apollo/client").FetchResult<any, Record<string, any>, Record<string, any>>>;
10
10
  };
11
11
  export {};
@@ -1,4 +1,4 @@
1
- import { useMutation, useApolloClient } from '@apollo/react-hooks';
1
+ import { useMutation, useApolloClient } from '@apollo/client';
2
2
  import { CartIdContext } from '../Cart/CartIdContext';
3
3
  import { getDecrementQuantityOptimisticResponse } from './cartMutationUtils';
4
4
  import { useContext } from 'react';
@@ -1 +1 @@
1
- {"version":3,"file":"useDecrementQuantity.js","sourceRoot":"","sources":["useDecrementQuantity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,sCAAsC,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAAE,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ACF,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,SA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AE,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,KAAK;YACb,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"}
@@ -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,SAAS,EAAE,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IACxD,MAAM,KAAK,GAAG,UAAU,EAAE,CAAC;IAC3B,MAAM,MAAM,GAAG,eAAe,EAAE,CAAC;IACjC,MAAM,CAAC,wBAAwB,CAAC,GAAG,WAAW,CAAC,sBAAsB,EAAE;QACrE,WAAW,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,YAAY,EAAE,GAAG,CAAC;KAC3D,CAAC,CAAC;IACH,SAAS,cAAc,CAAC,EACtB,MAAM,EACN,OAAO,EAIR;;QACC,KAAK,CACH,iBAAiB,CAAC;YAChB,MAAM,EAAE,QAAQ;YAChB,OAAO;YACP,QAAQ,EACN,yBAAyB,CAAC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,EAAE,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IACxD,MAAM,KAAK,GAAG,UAAU,EAAE,CAAC;IAC3B,MAAM,MAAM,GAAG,eAAe,EAAE,CAAC;IACjC,MAAM,CAAC,wBAAwB,CAAC,GAAG,WAAW,CAAC,sBAAsB,EAAE;QACrE,WAAW,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,YAAY,EAAE,GAAG,CAAC;KAC3D,CAAC,CAAC;IACH,SAAS,cAAc,CAAC,EACtB,MAAM,EACN,OAAO,EAIR;;QACC,KAAK,CACH,iBAAiB,CAAC;YAChB,MAAM,EAAE,QAAQ;YAChB,OAAO;YACP,QAAQ,EACN,yBAAyB,CAAC,MAAA,OAAO,CAAC,YAAY,0CAAE,WAAW,CAAC;gBAC5D,SAAS,CAAC,MAAA,MAAA,OAAO,CAAC,iBAAiB,0CAAE,YAAY,0CAAE,IAAI,CAAC;gBACxD,EAAE;SACL,CAAC,CACH,CAAC;QACF,OAAO,wBAAwB,CAAC;YAC9B,SAAS,EAAE;gBACT,KAAK,EAAE;oBACL,MAAM;oBACN,MAAM;iBACP;aACF;YACD,kBAAkB,EAAE;gBAClB,cAAc,EAAE;oBACd,IAAI,EAAE,mCAAmC,CAAC;wBACxC,MAAM;wBACN,MAAM;wBACN,MAAM;wBACN,SAAS;wBACT,SAAS;qBACV,CAAC;oBACF,UAAU,EAAE,cAAc;iBAC3B;aACF;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,EAAE,cAAc,EAAE,CAAC;AAC5B,CAAC"}
@@ -7,6 +7,6 @@ export default function useSetQuantity({ setQuantityMutation: setItemQuantity, c
7
7
  setQuantity: ({ itemId, quantity }: {
8
8
  itemId: string;
9
9
  quantity: number;
10
- }) => Promise<import("react-apollo").ExecutionResult<any>>;
10
+ }) => Promise<import("@apollo/client").FetchResult<any, Record<string, any>, Record<string, any>>>;
11
11
  };
12
12
  export {};
@@ -1,4 +1,4 @@
1
- import { useMutation, useApolloClient } from '@apollo/react-hooks';
1
+ import { useMutation, useApolloClient } from '@apollo/client';
2
2
  import { CartIdContext } from '../Cart/CartIdContext';
3
3
  import { getSetQuantityOptimisticResponse } from './cartMutationUtils';
4
4
  import { useContext } from 'react';
@@ -1 +1 @@
1
- {"version":3,"file":"useSetQuantity.js","sourceRoot":"","sources":["useSetQuantity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEnE,OAAO,EAAE,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,GAAG,WAAW,CAAC,eAAe,EAAE;QAC3D,WAAW,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,YAAY,EAAE,GAAG,CAAC;KAC3D,CAAC,CAAC;IACH,SAAS,WAAW,CAAC,EACnB,MAAM,EACN,QAAQ,EAIT;QACC,OAAO,qBAAqB,CAAC;YAC3B,SAAS,EAAE;gBACT,KAAK,EAAE;oBACL,MAAM;oBACN,MAAM;oBACN,QAAQ;iBACT;aACF;YACD,kBAAkB,EAAE;gBAClB,eAAe,EAAE;oBACf,IAAI,EAAE,gCAAgC,CAAC;wBACrC,MAAM;wBACN,MAAM;wBACN,MAAM;wBACN,QAAQ;wBACR,SAAS;qBACV,CAAC;oBACF,UAA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AO,EAAE,WAAW,EAAE,CAAC;AACzB,CAAC"}
@@ -8,8 +8,8 @@ export declare const NotificationsContext: React.Context<[
8
8
  ]>;
9
9
  export declare function NotificationsProvider({ children }: {
10
10
  children: React.ReactNode;
11
- }): JSX.Element;
12
- export declare function Notifications(props: any): JSX.Element;
11
+ }): React.JSX.Element;
12
+ export declare function Notifications(props: any): React.JSX.Element;
13
13
  export declare function Notification({ actor }: {
14
14
  actor: Interpreter<NotificationContext, NotificationSchema, NotificationEvent>;
15
- }): JSX.Element;
15
+ }): React.JSX.Element;
@@ -1,7 +1,6 @@
1
1
  import { useMachine, useService } from '@xstate/react';
2
2
  import React, { createContext, useContext, useCallback } from 'react';
3
3
  import { notificationsMachine } from './notificationsMachine';
4
- import { ReactComponent as Cross } from '@jetshop/ui/svg/Cross.svg';
5
4
  export const NotificationsContext = createContext(undefined);
6
5
  export function NotificationsProvider({ children }) {
7
6
  const [state, send] = useMachine(notificationsMachine);
@@ -10,7 +9,7 @@ export function NotificationsProvider({ children }) {
10
9
  export function Notifications(props) {
11
10
  const [current] = useContext(NotificationsContext);
12
11
  const { context, matches } = current;
13
- return (React.createElement(React.Fragment, null, matches('active') && (React.createElement("div", Object.assign({}, props, { "data-flight-notifications": "" }), context.notifications.map(notification => (React.createElement(Notification, { actor: notification.ref, key: notification.id })))))));
12
+ return (React.createElement(React.Fragment, null, matches('active') && (React.createElement("div", Object.assign({}, props, { "data-flight-notifications": "" }), context.notifications.map((notification) => (React.createElement(Notification, { actor: notification.ref, key: notification.id })))))));
14
13
  }
15
14
  export function Notification({ actor }) {
16
15
  const [{ context, toStrings }, send] = useService(actor);
@@ -21,7 +20,7 @@ export function Notification({ actor }) {
21
20
  return (React.createElement("div", { "data-flight-notification": toStrings(), "data-flight-notification-type": type },
22
21
  React.createElement("div", { "data-flight-notification-inner": "" },
23
22
  React.createElement("button", { onClick: dismiss, "data-flight-notification-dismiss": "" },
24
- React.createElement(Cross, { "aria-label": "Close" })),
23
+ React.createElement("span", { "aria-label": "Close", className: "dismiss-button" }, "\u00D7")),
25
24
  content)));
26
25
  }
27
26
  //# sourceMappingURL=Notifications.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Notifications.js","sourceRoot":"","sources":["Notifications.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAOtE,OAAO,EAGL,oBAAoB,EAGrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,cAAc,IAAI,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAEpE,MAAM,CAAC,MAAM,oBAAoB,GAG5B,aAAa,CAAC,SAAS,CAAC,CAAC;AAE9B,MAAM,UAAU,qBAAqB,CAAC,EACpC,QAAQ,EAGT;IACC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAG9B,oBAAoB,CAAC,CAAC;IAExB,OAAO,CACL,oBAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,IAChD,QAAQ,CACqB,CACjC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,KAAU;IACtC,MAAM,CAAC,OAAO,CAAC,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAC;IACnD,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAErC,OAAO,CACL,0CACG,OAAO,CAAC,QAAQ,CAAC,IAAI,CACpB,6CAAS,KAAK,iCAA4B,EAAE,KACzC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC,CACzC,oBAAC,YAAY,IACX,KAAK,EAAE,YAAY,CAAC,GAAU,EAC9B,GAAG,EAAE,YAAY,CAAC,EAAE,GACpB,CACH,CAAC,CACE,CACP,CACA,CACJ,CAAC;AACJ,C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GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAC;IACnD,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAErC,OAAO,CACL,0CACG,OAAO,CAAC,QAAQ,CAAC,IAAI,CACpB,6CAAS,KAAK,iCAA4B,EAAE,KACzC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,CAC3C,oBAAC,YAAY,IACX,KAAK,EAAE,YAAY,CAAC,GAAU,EAC9B,GAAG,EAAE,YAAY,CAAC,EAAE,GACpB,CACH,CAAC,CACE,CACP,CACA,CACJ,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,EAC3B,KAAK,EAON;IACC,MAAM,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;IACzD,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IAElC,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE;QAC/B,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjB,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAEX,OAAO,CACL,yDAC4B,SAAS,EAAE,mCACN,IAAI;QAEnC,+DAAoC,EAAE;YACpC,gCAAQ,OAAO,EAAE,OAAO,sCAAmC,EAAE;gBAC3D,4CAAiB,OAAO,EAAC,SAAS,EAAC,gBAAgB,aAE5C,CACA;YACR,OAAO,CACJ,CACF,CACP,CAAC;AACJ,CAAC"}
@@ -18,7 +18,7 @@ export interface NotificationSchema {
18
18
  exiting: {};
19
19
  };
20
20
  }
21
- export declare type NotificationEvent = {
21
+ export type NotificationEvent = {
22
22
  type: 'REMOVE';
23
23
  } | {
24
24
  type: 'EXITED';
@@ -13,7 +13,7 @@ interface NotificationsSchema {
13
13
  active: {};
14
14
  };
15
15
  }
16
- export declare type NotificationsEvent = {
16
+ export type NotificationsEvent = {
17
17
  type: 'NOTIFICATION.ADD';
18
18
  content: string | React.ReactNode;
19
19
  id?: string;
@@ -28,8 +28,8 @@ export declare type NotificationsEvent = {
28
28
  } | {
29
29
  type: 'NOTIFICATIONS.CLEAR';
30
30
  };
31
- export declare type NotificationsState = State<NotificationsContextType, NotificationsEvent, NotificationsSchema>;
32
- export declare type NotificationsSend = Interpreter<NotificationsContextType, NotificationsSchema, NotificationsEvent>['send'];
31
+ export type NotificationsState = State<NotificationsContextType, NotificationsEvent, NotificationsSchema>;
32
+ export type NotificationsSend = Interpreter<NotificationsContextType, NotificationsSchema, NotificationsEvent>['send'];
33
33
  declare const notificationsMachine: import("xstate").StateMachine<NotificationsContextType, NotificationsSchema, NotificationsEvent, {
34
34
  value: any;
35
35
  context: NotificationsContextType;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type NotificationContent = string | React.ReactNode;
2
+ type NotificationContent = string | React.ReactNode;
3
3
  interface NotificationOptions {
4
4
  id?: string;
5
5
  type?: string;
@@ -18,7 +18,7 @@ export interface OpenGraphGeneralPageDataProps {
18
18
  */
19
19
  optionalFields?: OpenGraphDataTag[];
20
20
  }
21
- export declare type OpenGraphDataTag = {
21
+ export type OpenGraphDataTag = {
22
22
  property: string;
23
23
  content: string;
24
24
  };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ReactCookieProps } from 'react-cookie';
3
- export declare type IPaginationProps = {
3
+ export type IPaginationProps = {
4
4
  children: ((args: {
5
5
  offset: number;
6
6
  perPage: number;
@@ -1,25 +1,25 @@
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
- import produce from 'immer';
5
+ import { produce } from 'immer';
6
6
  const ProductConfigurationProvider = ({ product, children }) => {
7
7
  const { configurations } = product;
8
- const [ids, setIds] = useState(configurations.map(config => config.options[0].id));
8
+ const [ids, setIds] = useState(configurations.map((config) => config.options[0].id));
9
9
  const selectOption = useCallback(function selectOption(option, config) {
10
10
  const idx = configurations.indexOf(config);
11
- setIds(curr => produce(curr, draft => {
11
+ setIds((curr) => produce(curr, (draft) => {
12
12
  draft[idx] = option.id;
13
13
  }));
14
14
  }, [configurations]);
15
15
  const getSelectedValue = useCallback(function getSelectedValue(config) {
16
16
  const idx = configurations.indexOf(config);
17
17
  const id = ids[idx];
18
- return config.options.find(option => option.id === id).name;
18
+ return config.options.find((option) => option.id === id).name;
19
19
  }, [configurations, ids]);
20
20
  // Creating the variables for the product price query (with configs)
21
21
  const priceQueryVars = useMemo(() => {
22
- return { id: product.id, options: ids.map(id => ({ optionId: id })) };
22
+ return { id: product.id, options: ids.map((id) => ({ optionId: id })) };
23
23
  }, [product.id, ids]);
24
24
  const priceQuery = useQuery(ConfigPrice, {
25
25
  variables: priceQueryVars,
@@ -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,OAAO,MAAM,OAAO,CAAC;AAE5B,MAAM,4BAA4B,GAAG,CAAC,EACpC,OAAO,EACP,QAAQ,EAIT,EAAE,EAAE;IACH,MAAM,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC;IAEnC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,QAAQ,CAC5B,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CACnD,C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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/C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,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"}
@@ -32,7 +32,7 @@ declare class SortOrderContainer extends React.Component<SortOrderContainerProps
32
32
  constructor(props: SortOrderContainerProps);
33
33
  componentDidMount(): void;
34
34
  onSelect: (value: string, direction: Direction) => boolean;
35
- render(): JSX.Element;
35
+ render(): React.JSX.Element;
36
36
  }
37
37
  declare const _default: React.ComponentClass<Pick<SortOrderContainerProps, "children"> & {
38
38
  wrappedComponentRef?: React.Ref<SortOrderContainer>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type Direction = 'ASCENDING' | 'DESCENDING';
2
+ export type Direction = 'ASCENDING' | 'DESCENDING';
3
3
  export interface ISortOrderContext {
4
4
  changeSortOrder: (value: string, direction: Direction) => void;
5
5
  direction: Direction;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { Route } from '../../types';
2
+ import React from 'react';
3
3
  interface Crumb {
4
4
  text: string;
5
5
  path: string | null;
@@ -8,5 +8,5 @@ declare function StructuredBreadcrumbData({ parents, breadcrumbText, breadcrumbs
8
8
  breadcrumbs?: Crumb[];
9
9
  parents?: Route[];
10
10
  breadcrumbText?: string;
11
- }): JSX.Element;
11
+ }): React.JSX.Element;
12
12
  export { StructuredBreadcrumbData };
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,S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AAE;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,5 +1,5 @@
1
1
  export interface Extras {
2
2
  [key: string]: any;
3
3
  }
4
- export declare type Report = (error: Error, extra?: Extras) => void;
4
+ export type Report = (error: Error, extra?: Extras) => void;
5
5
  export declare const convertAnyToError: (error: any) => any;
package/global.d.ts CHANGED
@@ -1,2 +1,80 @@
1
- declare var __IN_SERVER__: boolean;
2
- declare module 'format-message-generate-id/underscored_crc32';
1
+ import * as ReactRouter from 'react-router';
2
+ import * as History from 'history';
3
+ import * as React from 'react';
4
+ import * as ChunkExtractor from '@loadable/server';
5
+
6
+ declare module 'format-message-generate-id';
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
+
14
+ declare global {
15
+ let __IN_SERVER__: boolean;
16
+ }
17
+
18
+ declare module 'history' {
19
+ export type Location = {
20
+ state?: {
21
+ type: any;
22
+ list: any;
23
+ };
24
+ };
25
+ }
26
+
27
+ declare module 'react-router' {
28
+ export namespace History {
29
+ export type LocationState = {
30
+ list: any;
31
+ type: any;
32
+ };
33
+ }
34
+ }
35
+
36
+ declare module '@loadable/server' {
37
+ export interface ChunkExtractorManagerProps {
38
+ extractor: ChunkExtractor;
39
+ children: React.ReactNode;
40
+ }
41
+ }
42
+
43
+ declare module 'react' {
44
+ type StatelessComponent<P = unknown> = FunctionComponent<P>;
45
+ type FC<P = unknown> = FunctionComponent<P>;
46
+ type SFC<P = unknown> = FunctionComponent<P>;
47
+
48
+ interface FunctionComponent<P = unknown> {
49
+ (props: PropsWithChildren<P>, context?: any): ReactElement<any, any> | null;
50
+ propTypes?: WeakValidationMap<P>;
51
+ contextTypes?: ValidationMap<any>;
52
+ defaultProps?: Partial<P>;
53
+ displayName?: string;
54
+ }
55
+ }
56
+
57
+ declare module 'history' {
58
+ export type Location = {
59
+ state?: {
60
+ type: any;
61
+ list: any;
62
+ };
63
+ };
64
+ }
65
+
66
+ declare module 'react-router' {
67
+ export interface StaticRouterProps {
68
+ basename?: string | undefined;
69
+ children?: React.ReactNode;
70
+ location?: string | object | undefined;
71
+ context?: StaticRouterContext | undefined;
72
+ }
73
+
74
+ export namespace History {
75
+ export type LocationState = {
76
+ list: any;
77
+ type: any;
78
+ };
79
+ }
80
+ }
@@ -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[];