@graphcommerce/magento-store 4.1.2 → 4.1.5
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 +31 -0
- package/PageMeta.tsx +2 -8
- package/StoreConfig.graphql +1 -27
- package/StoreConfigFragment.graphql +29 -0
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1378](https://github.com/graphcommerce-org/graphcommerce/pull/1378) [`b610a6e40`](https://github.com/graphcommerce-org/graphcommerce/commit/b610a6e4049e8c9e8b5d2aeff31b8e1bfc24abe5) Thanks [@paales](https://github.com/paales)! - Pin all versions internally so we can’t end up in an unfixable state for the user
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`b610a6e40`](https://github.com/graphcommerce-org/graphcommerce/commit/b610a6e4049e8c9e8b5d2aeff31b8e1bfc24abe5)]:
|
|
10
|
+
- @graphcommerce/graphql@3.0.7
|
|
11
|
+
- @graphcommerce/image@3.1.3
|
|
12
|
+
- @graphcommerce/next-ui@4.5.1
|
|
13
|
+
|
|
14
|
+
## 4.1.4
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [#1369](https://github.com/graphcommerce-org/graphcommerce/pull/1369) [`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9) Thanks [@paales](https://github.com/paales)! - Upgraded dependencies
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [[`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a)]:
|
|
21
|
+
- @graphcommerce/graphql@3.0.6
|
|
22
|
+
- @graphcommerce/next-ui@4.5.0
|
|
23
|
+
- @graphcommerce/image@3.1.2
|
|
24
|
+
|
|
25
|
+
## 4.1.3
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- [#1322](https://github.com/graphcommerce-org/graphcommerce/pull/1322) [`815132ea4`](https://github.com/graphcommerce-org/graphcommerce/commit/815132ea43937b4b84b59ec9974ac593cb4eb456) Thanks [@paales](https://github.com/paales)! - Make sure canonicals don’t report about double slashes and add warning when incorrect URL is passed
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [[`5266388ea`](https://github.com/graphcommerce-org/graphcommerce/commit/5266388eaffda41592623ef7a3ddbbe03c8e0dad), [`9b35403d9`](https://github.com/graphcommerce-org/graphcommerce/commit/9b35403d9dbb2606ac7cf3bb641a0f9cc3d8a2ba), [`0298a0de1`](https://github.com/graphcommerce-org/graphcommerce/commit/0298a0de1d13e543c4124a6a099297b4e27e2b05), [`815132ea4`](https://github.com/graphcommerce-org/graphcommerce/commit/815132ea43937b4b84b59ec9974ac593cb4eb456), [`3326742a0`](https://github.com/graphcommerce-org/graphcommerce/commit/3326742a0dceb45f0cac4741ca09dc4d4f09ad90), [`7a3799bfc`](https://github.com/graphcommerce-org/graphcommerce/commit/7a3799bfc107f26aa9991a91db5f228e3476f4aa), [`9a77f88ed`](https://github.com/graphcommerce-org/graphcommerce/commit/9a77f88ed26cbecdae9a135c3cb234a5b7ecf4df), [`0eeaad304`](https://github.com/graphcommerce-org/graphcommerce/commit/0eeaad30461b1d5b486438f0287fa76d49429044), [`bc5213547`](https://github.com/graphcommerce-org/graphcommerce/commit/bc52135471479c83d989449dad24798112e898f4), [`3f1912f55`](https://github.com/graphcommerce-org/graphcommerce/commit/3f1912f553318d5888f8af2b841918ef4ae96a84), [`b6c68cda8`](https://github.com/graphcommerce-org/graphcommerce/commit/b6c68cda8836a1d0c78ef351899cec9ec1037385)]:
|
|
32
|
+
- @graphcommerce/next-ui@4.3.0
|
|
33
|
+
|
|
3
34
|
## 4.1.2
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
package/PageMeta.tsx
CHANGED
|
@@ -10,7 +10,7 @@ type PageMetaProps = Pick<NextPageMetaProps, 'title' | 'metaDescription' | 'meta
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export function PageMeta(props: PageMetaProps) {
|
|
13
|
-
const { title,
|
|
13
|
+
const { title, ...pageMetaProps } = props
|
|
14
14
|
const config = useQuery(StoreConfigDocument)
|
|
15
15
|
|
|
16
16
|
const prefix = config.data?.storeConfig?.title_prefix ?? ''
|
|
@@ -23,11 +23,5 @@ export function PageMeta(props: PageMetaProps) {
|
|
|
23
23
|
if (separator && suffix) pageTitle += ` ${separator}`
|
|
24
24
|
if (suffix) pageTitle += ` ${suffix}`
|
|
25
25
|
|
|
26
|
-
return
|
|
27
|
-
<NextPageMeta
|
|
28
|
-
title={pageTitle ?? ''}
|
|
29
|
-
canonical={canonical ? `/${canonical}` : canonical}
|
|
30
|
-
{...pageMetaProps}
|
|
31
|
-
/>
|
|
32
|
-
)
|
|
26
|
+
return <NextPageMeta title={pageTitle ?? ''} {...pageMetaProps} />
|
|
33
27
|
}
|
package/StoreConfig.graphql
CHANGED
|
@@ -1,31 +1,5 @@
|
|
|
1
1
|
query StoreConfig {
|
|
2
2
|
storeConfig {
|
|
3
|
-
|
|
4
|
-
store_code
|
|
5
|
-
store_name
|
|
6
|
-
|
|
7
|
-
locale
|
|
8
|
-
base_currency_code
|
|
9
|
-
default_display_currency_code
|
|
10
|
-
|
|
11
|
-
title_suffix
|
|
12
|
-
title_prefix
|
|
13
|
-
title_separator
|
|
14
|
-
default_title
|
|
15
|
-
|
|
16
|
-
cms_home_page
|
|
17
|
-
|
|
18
|
-
catalog_default_sort_by
|
|
19
|
-
category_url_suffix
|
|
20
|
-
product_url_suffix
|
|
21
|
-
secure_base_link_url
|
|
22
|
-
secure_base_url
|
|
23
|
-
|
|
24
|
-
root_category_uid
|
|
25
|
-
|
|
26
|
-
weight_unit
|
|
27
|
-
|
|
28
|
-
product_reviews_enabled
|
|
29
|
-
allow_guests_to_write_product_reviews
|
|
3
|
+
...StoreConfigFragment
|
|
30
4
|
}
|
|
31
5
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
fragment StoreConfigFragment on StoreConfig @injectable {
|
|
2
|
+
website_name
|
|
3
|
+
store_code
|
|
4
|
+
store_name
|
|
5
|
+
|
|
6
|
+
locale
|
|
7
|
+
base_currency_code
|
|
8
|
+
default_display_currency_code
|
|
9
|
+
|
|
10
|
+
title_suffix
|
|
11
|
+
title_prefix
|
|
12
|
+
title_separator
|
|
13
|
+
default_title
|
|
14
|
+
|
|
15
|
+
cms_home_page
|
|
16
|
+
|
|
17
|
+
catalog_default_sort_by
|
|
18
|
+
category_url_suffix
|
|
19
|
+
product_url_suffix
|
|
20
|
+
secure_base_link_url
|
|
21
|
+
secure_base_url
|
|
22
|
+
|
|
23
|
+
root_category_uid
|
|
24
|
+
|
|
25
|
+
weight_unit
|
|
26
|
+
|
|
27
|
+
product_reviews_enabled
|
|
28
|
+
allow_guests_to_write_product_reviews
|
|
29
|
+
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-store",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "4.1.
|
|
5
|
+
"version": "4.1.5",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,21 +12,21 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "^4.
|
|
16
|
-
"@graphcommerce/prettier-config-pwa": "^4.0.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^4.1.4",
|
|
16
|
+
"@graphcommerce/prettier-config-pwa": "^4.0.5",
|
|
17
17
|
"@graphcommerce/typescript-config-pwa": "^4.0.2",
|
|
18
|
-
"@playwright/test": "^1.
|
|
18
|
+
"@playwright/test": "^1.20.1",
|
|
19
|
+
"type-fest": "2.12.1"
|
|
19
20
|
},
|
|
20
21
|
"dependencies": {
|
|
21
|
-
"@graphcommerce/graphql": "
|
|
22
|
-
"@graphcommerce/image": "
|
|
23
|
-
"@graphcommerce/next-ui": "
|
|
24
|
-
"type-fest": "^2.12.0"
|
|
22
|
+
"@graphcommerce/graphql": "3.0.7",
|
|
23
|
+
"@graphcommerce/image": "3.1.3",
|
|
24
|
+
"@graphcommerce/next-ui": "4.5.1"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@lingui/macro": "^3.13.2",
|
|
28
|
-
"@mui/material": "
|
|
29
|
-
"next": "
|
|
28
|
+
"@mui/material": "5.5.3",
|
|
29
|
+
"next": "12.1.2",
|
|
30
30
|
"react": "^17.0.2",
|
|
31
31
|
"react-dom": "^17.0.2"
|
|
32
32
|
}
|