@graphcommerce/magento-store 3.0.5 → 3.0.9
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 +11 -0
- package/hooks/useFindCountry.ts +4 -3
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.0.7](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-store@3.0.6...@graphcommerce/magento-store@3.0.7) (2021-09-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* with the latest version of graphql codegen the preresovled types inlined Maybe, make sure we reflect that ([7cb27b0](https://github.com/ho-nl/m2-pwa/commit/7cb27b04cbe31bee5ef4000d408f08bc9ac505c5))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.0.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-store@3.0.0...@graphcommerce/magento-store@3.0.1) (2021-09-27)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @graphcommerce/magento-store
|
package/hooks/useFindCountry.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { useQuery } from '@apollo/client'
|
|
2
|
-
import {
|
|
3
|
-
import { CountryRegionsDocument } from '../queries/CountryRegions.gql'
|
|
2
|
+
import { CountryRegionsDocument, CountryRegionsQuery } from '../queries/CountryRegions.gql'
|
|
4
3
|
|
|
5
|
-
export function useFindCountry(
|
|
4
|
+
export function useFindCountry(
|
|
5
|
+
countryCode?: string | null,
|
|
6
|
+
): NonNullable<CountryRegionsQuery['countries']>[0] | null | undefined {
|
|
6
7
|
const countryRegions = useQuery(CountryRegionsDocument)
|
|
7
8
|
return countryRegions.data?.countries?.filter(
|
|
8
9
|
(c) => c?.two_letter_abbreviation === countryCode,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-store",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.9",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@graphcommerce/browserslist-config-pwa": "^3.0.1",
|
|
17
|
-
"@graphcommerce/eslint-config-pwa": "^3.0.
|
|
17
|
+
"@graphcommerce/eslint-config-pwa": "^3.0.4",
|
|
18
18
|
"@graphcommerce/prettier-config-pwa": "^3.0.2",
|
|
19
19
|
"@graphcommerce/typescript-config-pwa": "^3.1.0",
|
|
20
20
|
"@playwright/test": "^1.15.0"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@apollo/client": "^3.3.21",
|
|
24
|
-
"@graphcommerce/graphql": "^2.103.
|
|
25
|
-
"@graphcommerce/image": "^2.104.
|
|
26
|
-
"@graphcommerce/next-ui": "^3.
|
|
24
|
+
"@graphcommerce/graphql": "^2.103.4",
|
|
25
|
+
"@graphcommerce/image": "^2.104.5",
|
|
26
|
+
"@graphcommerce/next-ui": "^3.1.1",
|
|
27
27
|
"@graphql-typed-document-node/core": "^3.1.0",
|
|
28
28
|
"@material-ui/core": "^4.12.3",
|
|
29
29
|
"@material-ui/lab": "^4.0.0-alpha.60",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"react-dom": "^17.0.2",
|
|
33
33
|
"type-fest": "^2.3.4"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "d543ebfabe185d01354c9aed619ab83ec816944f"
|
|
36
36
|
}
|