@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 {
|
|
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 {
|
|
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
|
-
|
|
24
|
-
</Row>
|
|
19
|
+
{...containerProps}
|
|
20
|
+
/>
|
|
25
21
|
)
|
|
26
22
|
}
|
package/CHANGELOG.md
CHANGED
package/PageMeta/PageMeta.tsx
CHANGED
|
@@ -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
|
|
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 =
|
|
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-
|
|
107
|
+
// @ts-ignore
|
|
107
108
|
className: `${classes.button} ${child.props.className ?? ''}`,
|
|
108
109
|
onChange: exclusive ? handleExclusiveChange : handleChange,
|
|
109
110
|
selected:
|
|
110
|
-
// @ts-
|
|
111
|
+
// @ts-ignore
|
|
111
112
|
child.props.selected === undefined
|
|
112
|
-
? // @ts-
|
|
113
|
+
? // @ts-ignore
|
|
113
114
|
isValueSelected(child.props.value as string, value as string | string[])
|
|
114
|
-
: // @ts-
|
|
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.
|
|
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.
|
|
18
|
+
"@emotion/react": "^11.10.6",
|
|
19
19
|
"@emotion/server": "^11.4.0",
|
|
20
|
-
"@emotion/styled": "^11.10.
|
|
21
|
-
"@graphcommerce/framer-next-pages": "6.0.0-canary.
|
|
22
|
-
"@graphcommerce/framer-scroller": "6.0.0-canary.
|
|
23
|
-
"@graphcommerce/framer-utils": "6.0.0-canary.
|
|
24
|
-
"@graphcommerce/image": "6.0.0-canary.
|
|
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.
|
|
31
|
-
"@graphcommerce/prettier-config-pwa": "6.0.0-canary.
|
|
32
|
-
"@graphcommerce/typescript-config-pwa": "6.0.0-canary.
|
|
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.
|
|
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.
|
|
43
|
+
"next": "^13.2.0",
|
|
44
44
|
"react": "^18.2.0",
|
|
45
45
|
"react-dom": "^18.2.0"
|
|
46
46
|
}
|