@graphcommerce/magento-product 4.1.4 → 4.1.7
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 +39 -0
- package/components/JsonLdProduct/jsonLdProduct.tsx +2 -2
- package/components/ProductAddToCart/ProductAddToCart.tsx +2 -1
- package/components/ProductListFilters/FilterEqualType.tsx +3 -2
- package/components/ProductListFilters/FilterRangeType.tsx +2 -1
- package/components/ProductListItems/filterTypes.tsx +2 -2
- package/components/ProductListItems/filteredProductList.tsx +2 -2
- package/components/ProductListItems/getFilterTypes.ts +3 -2
- package/package.json +12 -11
- package/test/productURL.fixture.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.1.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1399](https://github.com/graphcommerce-org/graphcommerce/pull/1399) [`fb277d8e1`](https://github.com/graphcommerce-org/graphcommerce/commit/fb277d8e1e3612c5e9cf890a30d19cfd1ff70542) Thanks [@paales](https://github.com/paales)! - Now using [@graphql-yoga](https://github.com/dotansimha/graphql-yoga) for GraphQL which has full support for [envelop](https://www.envelop.dev/) plugins.
|
|
8
|
+
|
|
9
|
+
* [#1399](https://github.com/graphcommerce-org/graphcommerce/pull/1399) [`fb277d8e1`](https://github.com/graphcommerce-org/graphcommerce/commit/fb277d8e1e3612c5e9cf890a30d19cfd1ff70542) Thanks [@paales](https://github.com/paales)! - Added a new @graphcommerce/cli package to generate the mesh so it can be generated _inside_ the @graphcommerce/graphql-mesh package to allow for better future extensibility.
|
|
10
|
+
|
|
11
|
+
- [#1399](https://github.com/graphcommerce-org/graphcommerce/pull/1399) [`da0ae7d02`](https://github.com/graphcommerce-org/graphcommerce/commit/da0ae7d0236e4908ba0bf0fa16656be516e841d4) Thanks [@paales](https://github.com/paales)! - Updated dependencies
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`fb277d8e1`](https://github.com/graphcommerce-org/graphcommerce/commit/fb277d8e1e3612c5e9cf890a30d19cfd1ff70542), [`fb277d8e1`](https://github.com/graphcommerce-org/graphcommerce/commit/fb277d8e1e3612c5e9cf890a30d19cfd1ff70542), [`da0ae7d02`](https://github.com/graphcommerce-org/graphcommerce/commit/da0ae7d0236e4908ba0bf0fa16656be516e841d4)]:
|
|
14
|
+
- @graphcommerce/graphql@3.1.0
|
|
15
|
+
- @graphcommerce/graphql-mesh@4.1.0
|
|
16
|
+
- @graphcommerce/magento-cart@4.2.6
|
|
17
|
+
- @graphcommerce/magento-store@4.1.7
|
|
18
|
+
- @graphcommerce/next-ui@4.6.1
|
|
19
|
+
- @graphcommerce/framer-scroller@2.1.6
|
|
20
|
+
- @graphcommerce/image@3.1.5
|
|
21
|
+
|
|
22
|
+
## 4.1.6
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies []:
|
|
27
|
+
- @graphcommerce/magento-cart@4.2.5
|
|
28
|
+
|
|
29
|
+
## 4.1.5
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- [#1381](https://github.com/graphcommerce-org/graphcommerce/pull/1381) [`9b3488c6a`](https://github.com/graphcommerce-org/graphcommerce/commit/9b3488c6a03cc09a647f43f6a8b36d96e97e5bb8) Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Non blocking error handling
|
|
34
|
+
|
|
35
|
+
- Updated dependencies [[`3c801f45c`](https://github.com/graphcommerce-org/graphcommerce/commit/3c801f45c7df55131acf30ae2fe0d2344830d480), [`b8d04130a`](https://github.com/graphcommerce-org/graphcommerce/commit/b8d04130a1b1cb8fc85308939235140288744465), [`3192fab82`](https://github.com/graphcommerce-org/graphcommerce/commit/3192fab82560e2211dfcacadc3b0b305260527d8), [`0e425e85e`](https://github.com/graphcommerce-org/graphcommerce/commit/0e425e85ee8fed280349317ee0440c7bceea5823), [`8a354d1cd`](https://github.com/graphcommerce-org/graphcommerce/commit/8a354d1cd4757497ddfc9b1969a0addbc8ff616b)]:
|
|
36
|
+
- @graphcommerce/next-ui@4.6.0
|
|
37
|
+
- @graphcommerce/magento-cart@4.2.4
|
|
38
|
+
- @graphcommerce/image@3.1.4
|
|
39
|
+
- @graphcommerce/framer-scroller@2.1.5
|
|
40
|
+
- @graphcommerce/magento-store@4.1.6
|
|
41
|
+
|
|
3
42
|
## 4.1.4
|
|
4
43
|
|
|
5
44
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProductImage } from '@graphcommerce/graphql'
|
|
2
|
-
import { Product } from 'schema-dts'
|
|
1
|
+
import type { ProductImage } from '@graphcommerce/graphql-mesh'
|
|
2
|
+
import type { Product } from 'schema-dts'
|
|
3
3
|
import { JsonLdProductFragment } from './JsonLdProduct.gql'
|
|
4
4
|
import { JsonLdProductOfferFragment } from './JsonLdProductOffer.gql'
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProductInterface } from '@graphcommerce/graphql'
|
|
1
|
+
import type { ProductInterface } from '@graphcommerce/graphql-mesh'
|
|
2
2
|
import { ApolloCartErrorAlert, useFormGqlMutationCart } from '@graphcommerce/magento-cart'
|
|
3
3
|
import { Money, MoneyProps } from '@graphcommerce/magento-store'
|
|
4
4
|
import {
|
|
@@ -106,6 +106,7 @@ export function ProductAddToCart(
|
|
|
106
106
|
action={
|
|
107
107
|
<PageLink href='/cart' passHref>
|
|
108
108
|
<Button
|
|
109
|
+
id='view-shopping-cart-button'
|
|
109
110
|
size='medium'
|
|
110
111
|
variant='pill'
|
|
111
112
|
color='secondary'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { cloneDeep
|
|
1
|
+
import { cloneDeep } from '@graphcommerce/graphql'
|
|
2
|
+
import type { FilterEqualTypeInput } from '@graphcommerce/graphql-mesh'
|
|
2
3
|
import { ChipMenu, ChipMenuProps, responsiveVal, extendableComponent } from '@graphcommerce/next-ui'
|
|
3
4
|
import {
|
|
4
5
|
Box,
|
|
@@ -8,7 +9,7 @@ import {
|
|
|
8
9
|
ListItemText,
|
|
9
10
|
listItemTextClasses,
|
|
10
11
|
} from '@mui/material'
|
|
11
|
-
import { SetRequired } from 'type-fest'
|
|
12
|
+
import type { SetRequired } from 'type-fest'
|
|
12
13
|
import { useProductListLinkReplace } from '../../hooks/useProductListLinkReplace'
|
|
13
14
|
import { useProductListParamsContext } from '../../hooks/useProductListParamsContext'
|
|
14
15
|
import { ProductListLink } from '../ProductListLink/ProductListLink'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { cloneDeep
|
|
1
|
+
import { cloneDeep } from '@graphcommerce/graphql'
|
|
2
|
+
import type { FilterRangeTypeInput } from '@graphcommerce/graphql-mesh'
|
|
2
3
|
import { Money } from '@graphcommerce/magento-store'
|
|
3
4
|
import { ChipMenu, ChipMenuProps, extendableComponent } from '@graphcommerce/next-ui'
|
|
4
5
|
import { Trans } from '@lingui/macro'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
Exact,
|
|
3
3
|
Maybe,
|
|
4
4
|
Scalars,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
FilterEqualTypeInput,
|
|
8
8
|
FilterMatchTypeInput,
|
|
9
9
|
FilterRangeTypeInput,
|
|
10
|
-
} from '@graphcommerce/graphql'
|
|
10
|
+
} from '@graphcommerce/graphql-mesh'
|
|
11
11
|
|
|
12
12
|
/** This is mainly based on ProductListQueryVariables */
|
|
13
13
|
export type ProductListParams = Exact<{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
FilterEqualTypeInput,
|
|
3
3
|
FilterMatchTypeInput,
|
|
4
4
|
FilterRangeTypeInput,
|
|
5
5
|
SortEnum,
|
|
6
|
-
} from '@graphcommerce/graphql'
|
|
6
|
+
} from '@graphcommerce/graphql-mesh'
|
|
7
7
|
import { FilterTypes, ProductListParams } from './filterTypes'
|
|
8
8
|
|
|
9
9
|
export function parseParams(
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { gql, ApolloClient, NormalizedCacheObject
|
|
1
|
+
import { gql, ApolloClient, NormalizedCacheObject } from '@graphcommerce/graphql'
|
|
2
|
+
import type { Exact } from '@graphcommerce/graphql-mesh'
|
|
2
3
|
import { AllFilterInputTypes, FilterTypes } from './filterTypes'
|
|
3
4
|
|
|
4
5
|
const allFilterInputTypes: AllFilterInputTypes[] = [
|
|
@@ -42,7 +43,7 @@ export async function getFilterTypes(
|
|
|
42
43
|
|
|
43
44
|
;(await filterInputTypes).data?.__type.inputFields.forEach(({ name, type }) => {
|
|
44
45
|
if (!allFilterInputTypes.includes(type.name))
|
|
45
|
-
|
|
46
|
+
console.warn(`filter ${name} with FilterTypeInput ${type.name} not implemented`)
|
|
46
47
|
typeMap[name] = type.name
|
|
47
48
|
})
|
|
48
49
|
|
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": "4.1.
|
|
5
|
+
"version": "4.1.7",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,19 +12,20 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "^4.1.
|
|
16
|
-
"@graphcommerce/prettier-config-pwa": "^4.0.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^4.1.5",
|
|
16
|
+
"@graphcommerce/prettier-config-pwa": "^4.0.6",
|
|
17
17
|
"@graphcommerce/typescript-config-pwa": "^4.0.2",
|
|
18
|
-
"@playwright/test": "^1.
|
|
19
|
-
"type-fest": "2.12.
|
|
18
|
+
"@playwright/test": "^1.21.1",
|
|
19
|
+
"type-fest": "^2.12.2"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@graphcommerce/framer-scroller": "2.1.
|
|
23
|
-
"@graphcommerce/graphql": "3.0
|
|
24
|
-
"@graphcommerce/
|
|
25
|
-
"@graphcommerce/
|
|
26
|
-
"@graphcommerce/magento-
|
|
27
|
-
"@graphcommerce/
|
|
22
|
+
"@graphcommerce/framer-scroller": "2.1.6",
|
|
23
|
+
"@graphcommerce/graphql": "3.1.0",
|
|
24
|
+
"@graphcommerce/graphql-mesh": "4.1.0",
|
|
25
|
+
"@graphcommerce/image": "3.1.5",
|
|
26
|
+
"@graphcommerce/magento-cart": "4.2.6",
|
|
27
|
+
"@graphcommerce/magento-store": "4.1.7",
|
|
28
|
+
"@graphcommerce/next-ui": "4.6.1",
|
|
28
29
|
"schema-dts": "^1.1.0"
|
|
29
30
|
},
|
|
30
31
|
"peerDependencies": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
2
|
-
import { test as base } from '@graphcommerce/
|
|
2
|
+
import { test as base } from '@graphcommerce/magento-store/test/apolloClientStore.fixture'
|
|
3
3
|
import { ProductStaticPathsDocument } from '../components/ProductStaticPaths/ProductStaticPaths.gql'
|
|
4
4
|
import { ProductTypenames } from '../components/ProductStaticPaths/getProductStaticPaths'
|
|
5
5
|
import { productLink } from '../hooks/useProductLink'
|