@graphcommerce/magento-category 9.0.4-canary.4 → 9.0.4-canary.6

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
+ ## 9.0.4-canary.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2478](https://github.com/graphcommerce-org/graphcommerce/pull/2478) [`590f064`](https://github.com/graphcommerce-org/graphcommerce/commit/590f06460955aa6435a3a16569805f38d4b7d6d6) - Move the category fragment to the category prop ([@paales](https://github.com/paales))
8
+
9
+ ## 9.0.4-canary.5
10
+
3
11
  ## 9.0.4-canary.4
4
12
 
5
13
  ## 9.0.4-canary.3
@@ -14,19 +14,14 @@ const { withState } = extendableComponent<StateProps, typeof componentName, type
14
14
  parts,
15
15
  )
16
16
 
17
- export type CategoryDescriptionProps = Omit<CategoryDescriptionFragment, 'uid'> &
18
- StateProps & { sx?: SxProps<Theme> }
17
+ export type CategoryDescriptionProps = StateProps & {
18
+ sx?: SxProps<Theme>
19
+ category: Omit<CategoryDescriptionFragment, 'uid'>
20
+ }
19
21
 
20
22
  export function CategoryDescription(props: CategoryDescriptionProps) {
21
- const {
22
- name,
23
- description,
24
- display_mode,
25
- sx = [],
26
- textAlignSm = 'center',
27
- textAlignMd = 'center',
28
- ...divProps
29
- } = props
23
+ const { category, sx = [], textAlignSm = 'center', textAlignMd = 'center', ...divProps } = props
24
+ const { description } = category
30
25
 
31
26
  const classes = withState({ textAlignSm, textAlignMd })
32
27
 
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": "9.0.4-canary.4",
5
+ "version": "9.0.4-canary.6",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,14 +12,14 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^9.0.4-canary.4",
16
- "@graphcommerce/framer-scroller": "^9.0.4-canary.4",
17
- "@graphcommerce/graphql": "^9.0.4-canary.4",
18
- "@graphcommerce/image": "^9.0.4-canary.4",
19
- "@graphcommerce/magento-store": "^9.0.4-canary.4",
20
- "@graphcommerce/next-ui": "^9.0.4-canary.4",
21
- "@graphcommerce/prettier-config-pwa": "^9.0.4-canary.4",
22
- "@graphcommerce/typescript-config-pwa": "^9.0.4-canary.4",
15
+ "@graphcommerce/eslint-config-pwa": "^9.0.4-canary.6",
16
+ "@graphcommerce/framer-scroller": "^9.0.4-canary.6",
17
+ "@graphcommerce/graphql": "^9.0.4-canary.6",
18
+ "@graphcommerce/image": "^9.0.4-canary.6",
19
+ "@graphcommerce/magento-store": "^9.0.4-canary.6",
20
+ "@graphcommerce/next-ui": "^9.0.4-canary.6",
21
+ "@graphcommerce/prettier-config-pwa": "^9.0.4-canary.6",
22
+ "@graphcommerce/typescript-config-pwa": "^9.0.4-canary.6",
23
23
  "@lingui/core": "^4.2.1",
24
24
  "@lingui/macro": "^4.2.1",
25
25
  "@lingui/react": "^4.2.1",