@graphcommerce/magento-category 9.1.0-canary.49 → 9.1.0-canary.51

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.1.0-canary.51
4
+
5
+ ## 9.1.0-canary.50
6
+
7
+ ### Patch Changes
8
+
9
+ - [#2535](https://github.com/graphcommerce-org/graphcommerce/pull/2535) [`bb728e9`](https://github.com/graphcommerce-org/graphcommerce/commit/bb728e960d8beedc35aad0ab7f1f8ce214467bc1) - Fix bug where allName would not be translated when switching stores ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
10
+
3
11
  ## 9.1.0-canary.49
4
12
 
5
13
  ### Patch Changes
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.1.0-canary.49",
5
+ "version": "9.1.0-canary.51",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,15 +12,15 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.49",
16
- "@graphcommerce/framer-scroller": "^9.1.0-canary.49",
17
- "@graphcommerce/graphql": "^9.1.0-canary.49",
18
- "@graphcommerce/image": "^9.1.0-canary.49",
19
- "@graphcommerce/magento-product": "^9.1.0-canary.49",
20
- "@graphcommerce/magento-store": "^9.1.0-canary.49",
21
- "@graphcommerce/next-ui": "^9.1.0-canary.49",
22
- "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.49",
23
- "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.49",
15
+ "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.51",
16
+ "@graphcommerce/framer-scroller": "^9.1.0-canary.51",
17
+ "@graphcommerce/graphql": "^9.1.0-canary.51",
18
+ "@graphcommerce/image": "^9.1.0-canary.51",
19
+ "@graphcommerce/magento-product": "^9.1.0-canary.51",
20
+ "@graphcommerce/magento-store": "^9.1.0-canary.51",
21
+ "@graphcommerce/next-ui": "^9.1.0-canary.51",
22
+ "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.51",
23
+ "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.51",
24
24
  "@lingui/core": "^4.2.1",
25
25
  "@lingui/macro": "^4.2.1",
26
26
  "@lingui/react": "^4.2.1",
@@ -4,13 +4,15 @@ import type {
4
4
  NavigationNodeHref,
5
5
  } from '@graphcommerce/next-ui'
6
6
  import { NavigationNodeType, nonNullable } from '@graphcommerce/next-ui'
7
- import { i18n } from '@lingui/core'
7
+ import { Trans } from '@lingui/macro'
8
8
  import type { MenuQueryFragment } from '../queries/MenuQueryFragment.gql'
9
9
  import type { NavigationItemFragment } from '../queries/NavigationItem.gql'
10
10
 
11
11
  type Item = NonNullable<NonNullable<NonNullable<MenuQueryFragment['menu']>['items']>[0]>
12
12
 
13
- export type MagentoNavigationItemProps = NavigationItemFragment
13
+ export type MagentoNavigationItemProps = Omit<NavigationItemFragment, 'name'> & {
14
+ name?: React.ReactNode
15
+ }
14
16
 
15
17
  function categoryToNav(
16
18
  props: Item | null | undefined,
@@ -21,7 +23,7 @@ function categoryToNav(
21
23
 
22
24
  if (!uid || include_in_menu !== 1 || !name) return undefined
23
25
 
24
- const allName = i18n._(/* i18n */ 'All {name}', { name })
26
+ const allName = <Trans>All {name}</Trans>
25
27
  // If we've got children we make a button that navigates to childitems.
26
28
  if (children && children.length > 0) {
27
29
  const button: NavigationNodeButton = {