@graphcommerce/magento-category 5.2.0-canary.7 → 5.2.0-canary.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 5.2.0-canary.9
4
+
5
+ ## 5.2.0-canary.8
6
+
7
+ ### Patch Changes
8
+
9
+ - [#1780](https://github.com/graphcommerce-org/graphcommerce/pull/1780) [`667f58856`](https://github.com/graphcommerce-org/graphcommerce/commit/667f58856107c25f6c44561e12083239637e6a09) - Option to not require meta tags for categories ([@StefanAngenent](https://github.com/StefanAngenent))
10
+
3
11
  ## 5.2.0-canary.7
4
12
 
5
13
  ## 5.2.0-canary.6
@@ -9,12 +9,11 @@ export type CategoryMetaProps = CategoryMetaFragment &
9
9
 
10
10
  export function CategoryMeta(props: CategoryMetaProps) {
11
11
  const { meta_title, meta_description, name, params } = props
12
- let {
13
- title = meta_title ?? name ?? '',
14
- metaDescription = meta_description ?? undefined,
15
- metaRobots,
16
- canonical,
17
- } = props
12
+ let { title = '', metaDescription = '', metaRobots, canonical } = props
13
+
14
+ if (!title && meta_title) title = meta_title
15
+ if (!title && name) title = name
16
+ if (!metaDescription && meta_description) metaDescription = meta_description
18
17
 
19
18
  if (params?.url && !canonical) canonical = `/${params.url}`
20
19
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-category",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "5.2.0-canary.7",
5
+ "version": "5.2.0-canary.9",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,17 +12,17 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "5.2.0-canary.7",
16
- "@graphcommerce/prettier-config-pwa": "5.2.0-canary.7",
17
- "@graphcommerce/typescript-config-pwa": "5.2.0-canary.7"
15
+ "@graphcommerce/eslint-config-pwa": "5.2.0-canary.9",
16
+ "@graphcommerce/prettier-config-pwa": "5.2.0-canary.9",
17
+ "@graphcommerce/typescript-config-pwa": "5.2.0-canary.9"
18
18
  },
19
19
  "dependencies": {
20
- "@graphcommerce/framer-scroller": "5.2.0-canary.7",
21
- "@graphcommerce/graphql": "5.2.0-canary.7",
22
- "@graphcommerce/image": "5.2.0-canary.7",
23
- "@graphcommerce/magento-product": "5.2.0-canary.7",
24
- "@graphcommerce/magento-store": "5.2.0-canary.7",
25
- "@graphcommerce/next-ui": "5.2.0-canary.7"
20
+ "@graphcommerce/framer-scroller": "5.2.0-canary.9",
21
+ "@graphcommerce/graphql": "5.2.0-canary.9",
22
+ "@graphcommerce/image": "5.2.0-canary.9",
23
+ "@graphcommerce/magento-product": "5.2.0-canary.9",
24
+ "@graphcommerce/magento-store": "5.2.0-canary.9",
25
+ "@graphcommerce/next-ui": "5.2.0-canary.9"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@lingui/react": "^3.13.2",