@graphcommerce/magento-customer 9.0.4-canary.2 → 9.0.4-canary.4
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 +8 -0
- package/components/ReorderItems/ReorderItems.tsx +6 -2
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.0.4-canary.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5ca6fb9`](https://github.com/graphcommerce-org/graphcommerce/commit/5ca6fb94f6f275210c77493d05bad7c1620ff5a3) - When a user reorders their cart without interacting with their cart previously a new cart wouldn't be created. ([@paales](https://github.com/paales))
|
|
8
|
+
|
|
9
|
+
## 9.0.4-canary.3
|
|
10
|
+
|
|
3
11
|
## 9.0.4-canary.2
|
|
4
12
|
|
|
5
13
|
## 9.0.4-canary.1
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
2
|
+
import { useFormGqlMutationCart } from '@graphcommerce/magento-cart'
|
|
2
3
|
import { AddProductsToCartSnackbarMessage } from '@graphcommerce/magento-product/components/AddProductsToCart/AddProductsToCartSnackbarMessage'
|
|
3
4
|
import { iconChevronRight, IconSvg, LinkOrButton, nonNullable } from '@graphcommerce/next-ui'
|
|
4
|
-
import { useFormGqlMutation } from '@graphcommerce/react-hook-form'
|
|
5
5
|
import { Trans } from '@lingui/macro'
|
|
6
6
|
import { Box } from '@mui/material'
|
|
7
7
|
import type { OrderItemsFragment } from '../OrderItems/OrderItems.gql'
|
|
8
|
+
import type { ReorderItemsMutation, ReorderItemsMutationVariables } from './ReorderItems.gql'
|
|
8
9
|
import { ReorderItemsDocument } from './ReorderItems.gql'
|
|
9
10
|
|
|
10
11
|
export type ReorderItemsProps = { order: OrderItemsFragment }
|
|
@@ -12,7 +13,10 @@ export type ReorderItemsProps = { order: OrderItemsFragment }
|
|
|
12
13
|
export function ReorderItems(props: ReorderItemsProps) {
|
|
13
14
|
const { order } = props
|
|
14
15
|
|
|
15
|
-
const form =
|
|
16
|
+
const form = useFormGqlMutationCart<
|
|
17
|
+
ReorderItemsMutation,
|
|
18
|
+
ReorderItemsMutationVariables & { cartId: string }
|
|
19
|
+
>(ReorderItemsDocument, {
|
|
16
20
|
defaultValues: { orderNumber: order.number },
|
|
17
21
|
})
|
|
18
22
|
const { formState, handleSubmit, error, data: cartData } = form
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-customer",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.0.4-canary.
|
|
5
|
+
"version": "9.0.4-canary.4",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/ecommerce-ui": "^9.0.4-canary.
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.4-canary.
|
|
17
|
-
"@graphcommerce/framer-next-pages": "^9.0.4-canary.
|
|
18
|
-
"@graphcommerce/framer-utils": "^9.0.4-canary.
|
|
19
|
-
"@graphcommerce/graphql": "^9.0.4-canary.
|
|
20
|
-
"@graphcommerce/graphql-mesh": "^9.0.4-canary.
|
|
21
|
-
"@graphcommerce/image": "^9.0.4-canary.
|
|
22
|
-
"@graphcommerce/magento-graphql": "^9.0.4-canary.
|
|
23
|
-
"@graphcommerce/magento-store": "^9.0.4-canary.
|
|
24
|
-
"@graphcommerce/next-ui": "^9.0.4-canary.
|
|
25
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.4-canary.
|
|
26
|
-
"@graphcommerce/react-hook-form": "^9.0.4-canary.
|
|
27
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.4-canary.
|
|
15
|
+
"@graphcommerce/ecommerce-ui": "^9.0.4-canary.4",
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.4-canary.4",
|
|
17
|
+
"@graphcommerce/framer-next-pages": "^9.0.4-canary.4",
|
|
18
|
+
"@graphcommerce/framer-utils": "^9.0.4-canary.4",
|
|
19
|
+
"@graphcommerce/graphql": "^9.0.4-canary.4",
|
|
20
|
+
"@graphcommerce/graphql-mesh": "^9.0.4-canary.4",
|
|
21
|
+
"@graphcommerce/image": "^9.0.4-canary.4",
|
|
22
|
+
"@graphcommerce/magento-graphql": "^9.0.4-canary.4",
|
|
23
|
+
"@graphcommerce/magento-store": "^9.0.4-canary.4",
|
|
24
|
+
"@graphcommerce/next-ui": "^9.0.4-canary.4",
|
|
25
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.4-canary.4",
|
|
26
|
+
"@graphcommerce/react-hook-form": "^9.0.4-canary.4",
|
|
27
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.4-canary.4",
|
|
28
28
|
"@lingui/core": "^4.2.1",
|
|
29
29
|
"@lingui/macro": "^4.2.1",
|
|
30
30
|
"@lingui/react": "^4.2.1",
|