@graphcommerce/magento-cart 9.0.0-canary.100 → 9.0.0-canary.101

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.101
4
+
3
5
  ## 9.0.0-canary.100
4
6
 
5
7
  ## 9.0.0-canary.99
@@ -25,7 +25,7 @@ type CartFabContentProps = CartFabProps & CartTotalQuantityFragment
25
25
 
26
26
  const MotionDiv = styled(m.div)({})
27
27
 
28
- const MotionFab = m(
28
+ const MotionFab = m.create(
29
29
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
30
30
  React.forwardRef<any, Omit<FabProps, 'style' | 'onDrag'>>((props, ref) => (
31
31
  <Fab {...props} ref={ref} />
package/link/cartLink.ts CHANGED
@@ -4,7 +4,7 @@ import { CustomerTokenDocument, getCustomerAccountCanSignIn } from '@graphcommer
4
4
  import { PushRouter, pushWithPromise } from '@graphcommerce/magento-customer/link/customerLink'
5
5
  import { ErrorCategory } from '@graphcommerce/magento-graphql'
6
6
  import { t } from '@lingui/macro'
7
- import { GraphQLError } from 'graphql'
7
+ import { GraphQLError, GraphQLFormattedError } from 'graphql'
8
8
  import { writeCartId } from '../hooks'
9
9
  import { CreateEmptyCartDocument } from '../hooks/CreateEmptyCart.gql'
10
10
  import { getCartEnabledForUser } from '../utils'
@@ -28,10 +28,10 @@ const cartErrorLink = onError(({ graphQLErrors, operation, forward }) => {
28
28
 
29
29
  if (!isCartOperation(operation) || !graphQLErrors) return undefined
30
30
 
31
- const isErrorCategory = (err: GraphQLError, category: ErrorCategory) =>
31
+ const isErrorCategory = (err: GraphQLFormattedError, category: ErrorCategory) =>
32
32
  err.extensions?.category === category
33
33
 
34
- const isNoSuchEntityError = (err: GraphQLError) =>
34
+ const isNoSuchEntityError = (err: GraphQLFormattedError) =>
35
35
  isErrorCategory(err, 'graphql-no-such-entity') &&
36
36
  errorIsIncluded(err.path, [
37
37
  'cart',
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-cart",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.0-canary.100",
5
+ "version": "9.0.0-canary.101",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,20 +12,20 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^9.0.0-canary.100",
16
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.100",
17
- "@graphcommerce/framer-next-pages": "^9.0.0-canary.100",
18
- "@graphcommerce/framer-scroller": "^9.0.0-canary.100",
19
- "@graphcommerce/framer-utils": "^9.0.0-canary.100",
20
- "@graphcommerce/graphql": "^9.0.0-canary.100",
21
- "@graphcommerce/image": "^9.0.0-canary.100",
22
- "@graphcommerce/magento-customer": "^9.0.0-canary.100",
23
- "@graphcommerce/magento-graphql": "^9.0.0-canary.100",
24
- "@graphcommerce/magento-store": "^9.0.0-canary.100",
25
- "@graphcommerce/next-ui": "^9.0.0-canary.100",
26
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.100",
27
- "@graphcommerce/react-hook-form": "^9.0.0-canary.100",
28
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.100",
15
+ "@graphcommerce/ecommerce-ui": "^9.0.0-canary.101",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.101",
17
+ "@graphcommerce/framer-next-pages": "^9.0.0-canary.101",
18
+ "@graphcommerce/framer-scroller": "^9.0.0-canary.101",
19
+ "@graphcommerce/framer-utils": "^9.0.0-canary.101",
20
+ "@graphcommerce/graphql": "^9.0.0-canary.101",
21
+ "@graphcommerce/image": "^9.0.0-canary.101",
22
+ "@graphcommerce/magento-customer": "^9.0.0-canary.101",
23
+ "@graphcommerce/magento-graphql": "^9.0.0-canary.101",
24
+ "@graphcommerce/magento-store": "^9.0.0-canary.101",
25
+ "@graphcommerce/next-ui": "^9.0.0-canary.101",
26
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.101",
27
+ "@graphcommerce/react-hook-form": "^9.0.0-canary.101",
28
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.101",
29
29
  "@lingui/core": "^4.2.1",
30
30
  "@lingui/macro": "^4.2.1",
31
31
  "@lingui/react": "^4.2.1",