@graphcommerce/magento-product 9.1.0-canary.50 → 9.1.0-canary.51
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
|
@@ -2,6 +2,7 @@ import { useCartEnabled } from '@graphcommerce/magento-cart'
|
|
|
2
2
|
import type { ButtonProps } from '@graphcommerce/next-ui'
|
|
3
3
|
import { Button } from '@graphcommerce/next-ui'
|
|
4
4
|
import { Trans } from '@lingui/macro'
|
|
5
|
+
import React from 'react'
|
|
5
6
|
import type { UseAddProductsToCartActionProps } from './useAddProductsToCartAction'
|
|
6
7
|
import { useAddProductsToCartAction } from './useAddProductsToCartAction'
|
|
7
8
|
|
|
@@ -20,7 +21,10 @@ export type AddProductsToCartButtonProps = UseAddProductsToCartActionProps &
|
|
|
20
21
|
| 'type'
|
|
21
22
|
>
|
|
22
23
|
|
|
23
|
-
export
|
|
24
|
+
export const AddProductsToCartButton = React.forwardRef<
|
|
25
|
+
HTMLButtonElement,
|
|
26
|
+
AddProductsToCartButtonProps
|
|
27
|
+
>((props, ref) => {
|
|
24
28
|
const { children, product, disabled, ...rest } = props
|
|
25
29
|
const { showSuccess, ...action } = useAddProductsToCartAction(props)
|
|
26
30
|
const cartEnabled = useCartEnabled()
|
|
@@ -29,6 +33,7 @@ export function AddProductsToCartButton(props: AddProductsToCartButtonProps) {
|
|
|
29
33
|
|
|
30
34
|
return (
|
|
31
35
|
<Button
|
|
36
|
+
ref={ref}
|
|
32
37
|
type='submit'
|
|
33
38
|
color='primary'
|
|
34
39
|
variant='pill'
|
|
@@ -40,4 +45,4 @@ export function AddProductsToCartButton(props: AddProductsToCartButtonProps) {
|
|
|
40
45
|
{children || <Trans>Add to Cart</Trans>}
|
|
41
46
|
</Button>
|
|
42
47
|
)
|
|
43
|
-
}
|
|
48
|
+
})
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-product",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.1.0-canary.
|
|
5
|
+
"version": "9.1.0-canary.51",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
"typescript": "5.7.2"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@graphcommerce/ecommerce-ui": "^9.1.0-canary.
|
|
22
|
-
"@graphcommerce/eslint-config-pwa": "^9.1.0-canary.
|
|
23
|
-
"@graphcommerce/framer-next-pages": "^9.1.0-canary.
|
|
24
|
-
"@graphcommerce/framer-scroller": "^9.1.0-canary.
|
|
25
|
-
"@graphcommerce/graphql": "^9.1.0-canary.
|
|
26
|
-
"@graphcommerce/graphql-mesh": "^9.1.0-canary.
|
|
27
|
-
"@graphcommerce/image": "^9.1.0-canary.
|
|
28
|
-
"@graphcommerce/magento-cart": "^9.1.0-canary.
|
|
29
|
-
"@graphcommerce/magento-store": "^9.1.0-canary.
|
|
30
|
-
"@graphcommerce/next-ui": "^9.1.0-canary.
|
|
31
|
-
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.
|
|
32
|
-
"@graphcommerce/typescript-config-pwa": "^9.1.0-canary.
|
|
21
|
+
"@graphcommerce/ecommerce-ui": "^9.1.0-canary.51",
|
|
22
|
+
"@graphcommerce/eslint-config-pwa": "^9.1.0-canary.51",
|
|
23
|
+
"@graphcommerce/framer-next-pages": "^9.1.0-canary.51",
|
|
24
|
+
"@graphcommerce/framer-scroller": "^9.1.0-canary.51",
|
|
25
|
+
"@graphcommerce/graphql": "^9.1.0-canary.51",
|
|
26
|
+
"@graphcommerce/graphql-mesh": "^9.1.0-canary.51",
|
|
27
|
+
"@graphcommerce/image": "^9.1.0-canary.51",
|
|
28
|
+
"@graphcommerce/magento-cart": "^9.1.0-canary.51",
|
|
29
|
+
"@graphcommerce/magento-store": "^9.1.0-canary.51",
|
|
30
|
+
"@graphcommerce/next-ui": "^9.1.0-canary.51",
|
|
31
|
+
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.51",
|
|
32
|
+
"@graphcommerce/typescript-config-pwa": "^9.1.0-canary.51",
|
|
33
33
|
"@lingui/core": "^4.2.1",
|
|
34
34
|
"@lingui/macro": "^4.2.1",
|
|
35
35
|
"@lingui/react": "^4.2.1",
|