@graphcommerce/magento-compare 9.0.0-canary.59 → 9.0.0-canary.61
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,13 @@
|
|
|
1
1
|
# @graphcommerce/magento-compare
|
|
2
2
|
|
|
3
|
+
## 9.0.0-canary.61
|
|
4
|
+
|
|
5
|
+
## 9.0.0-canary.60
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- [#2331](https://github.com/graphcommerce-org/graphcommerce/pull/2331) [`702bfc9`](https://github.com/graphcommerce-org/graphcommerce/commit/702bfc93566c9745546988e57988431d5d4d8cb0) - Moved plugins to new format ([@paales](https://github.com/paales))
|
|
10
|
+
|
|
3
11
|
## 9.0.0-canary.59
|
|
4
12
|
|
|
5
13
|
## 9.0.0-canary.58
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-compare",
|
|
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.61",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,16 +12,16 @@
|
|
|
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-utils": "^9.0.0-canary.
|
|
19
|
-
"@graphcommerce/graphql": "^9.0.0-canary.
|
|
20
|
-
"@graphcommerce/magento-cart": "^9.0.0-canary.
|
|
21
|
-
"@graphcommerce/magento-product": "^9.0.0-canary.
|
|
22
|
-
"@graphcommerce/next-ui": "^9.0.0-canary.
|
|
23
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
|
24
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
|
15
|
+
"@graphcommerce/ecommerce-ui": "^9.0.0-canary.61",
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.61",
|
|
17
|
+
"@graphcommerce/framer-next-pages": "^9.0.0-canary.61",
|
|
18
|
+
"@graphcommerce/framer-utils": "^9.0.0-canary.61",
|
|
19
|
+
"@graphcommerce/graphql": "^9.0.0-canary.61",
|
|
20
|
+
"@graphcommerce/magento-cart": "^9.0.0-canary.61",
|
|
21
|
+
"@graphcommerce/magento-product": "^9.0.0-canary.61",
|
|
22
|
+
"@graphcommerce/next-ui": "^9.0.0-canary.61",
|
|
23
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.61",
|
|
24
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.61",
|
|
25
25
|
"@lingui/core": "^4.2.1",
|
|
26
26
|
"@lingui/macro": "^4.2.1",
|
|
27
27
|
"@lingui/react": "^4.2.1",
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { CartFabProps } from '@graphcommerce/magento-cart'
|
|
2
|
-
import type {
|
|
2
|
+
import type { PluginConfig, PluginProps } from '@graphcommerce/next-config'
|
|
3
3
|
import { CompareFab } from '../components'
|
|
4
4
|
|
|
5
|
-
export const
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export const config: PluginConfig = {
|
|
6
|
+
type: 'component',
|
|
7
|
+
module: '@graphcommerce/magento-cart',
|
|
8
|
+
ifConfig: 'compare',
|
|
9
|
+
}
|
|
8
10
|
|
|
9
|
-
function
|
|
11
|
+
export function CartFab(props: PluginProps<CartFabProps>) {
|
|
10
12
|
const { Prev, ...rest } = props
|
|
11
13
|
return (
|
|
12
14
|
<>
|
|
@@ -15,5 +17,3 @@ function MagentoCompareListGraphqlProvider(props: PluginProps<CartFabProps>) {
|
|
|
15
17
|
</>
|
|
16
18
|
)
|
|
17
19
|
}
|
|
18
|
-
|
|
19
|
-
export const Plugin = MagentoCompareListGraphqlProvider
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { ProductPageAddToCartRowProps } from '@graphcommerce/magento-product'
|
|
2
|
-
import type {
|
|
2
|
+
import type { PluginConfig, PluginProps } from '@graphcommerce/next-config'
|
|
3
3
|
import { CompareProductToggle } from '../components'
|
|
4
4
|
|
|
5
|
-
export const
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export const config: PluginConfig = {
|
|
6
|
+
type: 'component',
|
|
7
|
+
module: '@graphcommerce/magento-product',
|
|
8
|
+
ifConfig: 'compare',
|
|
9
|
+
}
|
|
8
10
|
|
|
9
|
-
function
|
|
11
|
+
export function ProductPageAddToCartActionsRow(props: PluginProps<ProductPageAddToCartRowProps>) {
|
|
10
12
|
const { Prev, ...rest } = props
|
|
11
13
|
const { children, after, product } = props
|
|
12
14
|
if (import.meta.graphCommerce.compareVariant === 'CHECKBOX')
|
|
@@ -33,4 +35,3 @@ function AddCompareToProductPage(props: PluginProps<ProductPageAddToCartRowProps
|
|
|
33
35
|
</Prev>
|
|
34
36
|
)
|
|
35
37
|
}
|
|
36
|
-
export const Plugin = AddCompareToProductPage
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GraphQLProviderProps } from '@graphcommerce/graphql'
|
|
2
|
-
import type {
|
|
2
|
+
import type { PluginConfig, PluginProps } from '@graphcommerce/next-config'
|
|
3
3
|
import { compareTypePolicies } from '../typePolicies'
|
|
4
4
|
|
|
5
5
|
export const config: PluginConfig = {
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { ProductListItemProps } from '@graphcommerce/magento-product'
|
|
2
|
-
import type {
|
|
2
|
+
import type { PluginConfig, PluginProps } from '@graphcommerce/next-config'
|
|
3
3
|
import { Box } from '@mui/material'
|
|
4
4
|
import { CompareProductToggle } from '../components'
|
|
5
5
|
import { CompareProductIdInternalFragment } from '../graphql'
|
|
6
6
|
|
|
7
|
-
export const
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
export const config: PluginConfig = {
|
|
8
|
+
type: 'component',
|
|
9
|
+
module: '@graphcommerce/magento-product',
|
|
10
|
+
ifConfig: 'compare',
|
|
11
|
+
}
|
|
10
12
|
|
|
11
|
-
function
|
|
13
|
+
export function ProductListItem(props: PluginProps<ProductListItemProps>) {
|
|
12
14
|
const { Prev, ...rest } = props
|
|
13
15
|
const { children, topRight } = props
|
|
14
16
|
if (import.meta.graphCommerce.compareVariant === 'CHECKBOX')
|
|
@@ -39,5 +41,3 @@ function CompareAbleProductListItem(props: PluginProps<ProductListItemProps>) {
|
|
|
39
41
|
</Prev>
|
|
40
42
|
)
|
|
41
43
|
}
|
|
42
|
-
|
|
43
|
-
export const Plugin = CompareAbleProductListItem
|