@graphcommerce/magento-store 4.1.0 → 4.1.1

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,20 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1296](https://github.com/ho-nl/m2-pwa/pull/1296)
8
+ [`8473123fa`](https://github.com/ho-nl/m2-pwa/commit/8473123fa7d3f3eb1d282d9b4205c803a88010ea)
9
+ Thanks [@paales](https://github.com/paales)! - implement handling for canonical URLs based on
10
+ NEXT_PUBLIC_SITE_URL
11
+
12
+ - Updated dependencies
13
+ [[`a9cff2ce6`](https://github.com/ho-nl/m2-pwa/commit/a9cff2ce63fce5b86e9fd6bf63c10c782326d50e),
14
+ [`8473123fa`](https://github.com/ho-nl/m2-pwa/commit/8473123fa7d3f3eb1d282d9b4205c803a88010ea),
15
+ [`50e205c51`](https://github.com/ho-nl/m2-pwa/commit/50e205c51f4d0d67d41d22fd70e8ed9a0996489e)]:
16
+ - @graphcommerce/next-ui@4.2.2
17
+
3
18
  ## 4.1.0
4
19
 
5
20
  ### Minor 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, canonical = '', ...pageMetaProps } = props
13
+ const { title, canonical, ...pageMetaProps } = props
14
14
  const config = useQuery(StoreConfigDocument)
15
15
 
16
16
  const prefix = config.data?.storeConfig?.title_prefix ?? ''
@@ -23,14 +23,10 @@ export function PageMeta(props: PageMetaProps) {
23
23
  if (separator && suffix) pageTitle += ` ${separator}`
24
24
  if (suffix) pageTitle += ` ${suffix}`
25
25
 
26
- const urlPath = ((canonical ?? '').startsWith('/') && canonical?.substr(1)) || canonical
27
-
28
26
  return (
29
27
  <NextPageMeta
30
28
  title={pageTitle ?? ''}
31
- canonical={
32
- urlPath ? `${config.data?.storeConfig?.secure_base_link_url ?? ''}${urlPath}` : undefined
33
- }
29
+ canonical={canonical ? `/${canonical}` : canonical}
34
30
  {...pageMetaProps}
35
31
  />
36
32
  )
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.0",
5
+ "version": "4.1.1",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@graphcommerce/graphql": "^3.0.3",
22
22
  "@graphcommerce/image": "^3.1.0",
23
- "@graphcommerce/next-ui": "^4.1.3",
23
+ "@graphcommerce/next-ui": "^4.2.2",
24
24
  "type-fest": "^2.12.0"
25
25
  },
26
26
  "peerDependencies": {