@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 +2 -0
- package/components/CartFab/CartFab.tsx +1 -1
- package/link/cartLink.ts +3 -3
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -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:
|
|
31
|
+
const isErrorCategory = (err: GraphQLFormattedError, category: ErrorCategory) =>
|
|
32
32
|
err.extensions?.category === category
|
|
33
33
|
|
|
34
|
-
const isNoSuchEntityError = (err:
|
|
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.
|
|
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.
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.
|
|
17
|
-
"@graphcommerce/framer-next-pages": "^9.0.0-canary.
|
|
18
|
-
"@graphcommerce/framer-scroller": "^9.0.0-canary.
|
|
19
|
-
"@graphcommerce/framer-utils": "^9.0.0-canary.
|
|
20
|
-
"@graphcommerce/graphql": "^9.0.0-canary.
|
|
21
|
-
"@graphcommerce/image": "^9.0.0-canary.
|
|
22
|
-
"@graphcommerce/magento-customer": "^9.0.0-canary.
|
|
23
|
-
"@graphcommerce/magento-graphql": "^9.0.0-canary.
|
|
24
|
-
"@graphcommerce/magento-store": "^9.0.0-canary.
|
|
25
|
-
"@graphcommerce/next-ui": "^9.0.0-canary.
|
|
26
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
|
27
|
-
"@graphcommerce/react-hook-form": "^9.0.0-canary.
|
|
28
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
|
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",
|