@graphcommerce/next-ui 6.0.0-canary.26 → 6.0.0-canary.28

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.
@@ -1,13 +1,10 @@
1
- import { SxProps, Theme } from '@mui/material'
1
+ import { ContainerProps } from '@mui/material'
2
2
  import { Row } from '../../Row/Row'
3
3
 
4
- type BlogItemGridProps = {
5
- children: React.ReactNode
6
- sx?: SxProps<Theme>
7
- }
4
+ type BlogItemGridProps = ContainerProps
8
5
 
9
6
  export function BlogItemGrid(props: BlogItemGridProps) {
10
- const { children, sx = [] } = props
7
+ const { sx = [], ...containerProps } = props
11
8
 
12
9
  return (
13
10
  <Row
@@ -19,8 +16,7 @@ export function BlogItemGrid(props: BlogItemGridProps) {
19
16
  }),
20
17
  ...(Array.isArray(sx) ? sx : [sx]),
21
18
  ]}
22
- >
23
- {children}
24
- </Row>
19
+ {...containerProps}
20
+ />
25
21
  )
26
22
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 6.0.0-canary.28
4
+
5
+ ## 6.0.0-canary.27
6
+
3
7
  ## 6.0.0-canary.26
4
8
 
5
9
  ## 6.0.0-canary.25
@@ -23,7 +23,6 @@ export function MenuFabSecondaryItem(props: FabMenuSecondaryItemProps) {
23
23
  href={href}
24
24
  className={classes.root}
25
25
  sx={[{}, ...(Array.isArray(sx) ? sx : [sx])]}
26
- component='a'
27
26
  dense
28
27
  selected={router.asPath.startsWith(href)}
29
28
  >
@@ -2,10 +2,12 @@ import { usePageContext } from '@graphcommerce/framer-next-pages'
2
2
  import { addBasePath } from 'next/dist/client/add-base-path'
3
3
  import { addLocale } from 'next/dist/client/add-locale'
4
4
  import { getDomainLocale } from 'next/dist/client/get-domain-locale'
5
- import { NextRouter, resolveHref } from 'next/dist/shared/lib/router/router'
5
+ import { NextRouter } from 'next/dist/shared/lib/router/router'
6
+ import { resolveHref } from 'next/dist/shared/lib/router/utils/resolve-href'
6
7
  import Head from 'next/head'
7
8
  import { useRouter } from 'next/router'
8
9
  import type {} from '@graphcommerce/next-config'
10
+ import { i18nConfig } from '../hooks'
9
11
 
10
12
  // https://developers.google.com/search/docs/advanced/robots/robots_meta_tag#directives
11
13
  export type MetaRobots =
@@ -60,7 +62,8 @@ export function canonicalize(router: PartialNextRouter, incoming?: Canonical) {
60
62
 
61
63
  href = localeDomain || addBasePath(addLocale(as, curLocale, router.defaultLocale))
62
64
 
63
- let siteUrl = import.meta.graphCommerce.canonicalBaseUrl
65
+ let siteUrl =
66
+ i18nConfig(router.locale)?.canonicalBaseUrl || import.meta.graphCommerce.canonicalBaseUrl
64
67
  if (siteUrl.endsWith('/')) siteUrl = siteUrl.slice(0, -1)
65
68
 
66
69
  canonical = `${siteUrl}${href}`
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/ban-ts-comment */
1
2
  import { Box, ToggleButtonGroupProps as ToggleButtonGroupPropsBase } from '@mui/material'
2
3
  import React from 'react'
3
4
  import { isFragment } from 'react-is'
@@ -103,15 +104,15 @@ const ToggleButtonGroup = React.forwardRef<HTMLDivElement, ToggleButtonGroupProp
103
104
  }
104
105
 
105
106
  return React.cloneElement(child, {
106
- // @ts-expect-error TODO: fix TS error
107
+ // @ts-ignore
107
108
  className: `${classes.button} ${child.props.className ?? ''}`,
108
109
  onChange: exclusive ? handleExclusiveChange : handleChange,
109
110
  selected:
110
- // @ts-expect-error TODO: fix TS error
111
+ // @ts-ignore
111
112
  child.props.selected === undefined
112
- ? // @ts-expect-error TODO: fix TS error
113
+ ? // @ts-ignore
113
114
  isValueSelected(child.props.value as string, value as string | string[])
114
- : // @ts-expect-error TODO: fix TS error
115
+ : // @ts-ignore
115
116
  child.props.selected,
116
117
  })
117
118
  })}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/next-ui",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "6.0.0-canary.26",
5
+ "version": "6.0.0-canary.28",
6
6
  "author": "",
7
7
  "license": "MIT",
8
8
  "sideEffects": false,
@@ -15,32 +15,32 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@emotion/cache": "^11.10.5",
18
- "@emotion/react": "^11.10.5",
18
+ "@emotion/react": "^11.10.6",
19
19
  "@emotion/server": "^11.4.0",
20
- "@emotion/styled": "^11.10.5",
21
- "@graphcommerce/framer-next-pages": "6.0.0-canary.26",
22
- "@graphcommerce/framer-scroller": "6.0.0-canary.26",
23
- "@graphcommerce/framer-utils": "6.0.0-canary.26",
24
- "@graphcommerce/image": "6.0.0-canary.26",
20
+ "@emotion/styled": "^11.10.6",
21
+ "@graphcommerce/framer-next-pages": "6.0.0-canary.28",
22
+ "@graphcommerce/framer-scroller": "6.0.0-canary.28",
23
+ "@graphcommerce/framer-utils": "6.0.0-canary.28",
24
+ "@graphcommerce/image": "6.0.0-canary.28",
25
25
  "cookie": "^0.5.0",
26
26
  "react-is": "^18.2.0",
27
27
  "schema-dts": "^1.1.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@graphcommerce/eslint-config-pwa": "6.0.0-canary.26",
31
- "@graphcommerce/prettier-config-pwa": "6.0.0-canary.26",
32
- "@graphcommerce/typescript-config-pwa": "6.0.0-canary.26",
30
+ "@graphcommerce/eslint-config-pwa": "6.0.0-canary.28",
31
+ "@graphcommerce/prettier-config-pwa": "6.0.0-canary.28",
32
+ "@graphcommerce/typescript-config-pwa": "6.0.0-canary.28",
33
33
  "@types/cookie": "^0.5.1",
34
34
  "@types/react-is": "^17.0.3",
35
- "typescript": "4.9.4"
35
+ "typescript": "4.9.5"
36
36
  },
37
37
  "peerDependencies": {
38
- "@lingui/react": "^3.13.2",
39
38
  "@lingui/core": "^3.13.2",
39
+ "@lingui/react": "^3.13.2",
40
40
  "@mui/lab": "^5.0.0-alpha.68",
41
41
  "@mui/material": "^5.10.16",
42
42
  "framer-motion": "^7.0.0",
43
- "next": "^13.1.1",
43
+ "next": "^13.2.0",
44
44
  "react": "^18.2.0",
45
45
  "react-dom": "^18.2.0"
46
46
  }