@graphcommerce/magento-search 6.2.0-canary.77 → 6.2.0-canary.79
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 +8 -0
- package/components/SearchLink/SearchLink.tsx +4 -3
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 6.2.0-canary.79
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#2013](https://github.com/graphcommerce-org/graphcommerce/pull/2013) [`c57bdf8a4`](https://github.com/graphcommerce-org/graphcommerce/commit/c57bdf8a4ce936c3eedc4dfada3a464a113ac68a) - Updated @mui and framer-motion packages to latest versions ([@paales](https://github.com/paales))
|
8
|
+
|
9
|
+
## 6.2.0-canary.78
|
10
|
+
|
3
11
|
## 6.2.0-canary.77
|
4
12
|
|
5
13
|
## 6.2.0-canary.76
|
@@ -13,7 +13,7 @@ import type { SetRequired } from 'type-fest'
|
|
13
13
|
export type SearchLinkProps = {
|
14
14
|
breakpoint?: Breakpoint
|
15
15
|
fab?: FabProps
|
16
|
-
} & SetRequired<Pick<LinkProps<'
|
16
|
+
} & SetRequired<Pick<LinkProps<'a'>, 'href' | 'sx' | 'children' | 'onClick'>, 'href'>
|
17
17
|
|
18
18
|
const name = 'SearchLink' as const
|
19
19
|
const parts = ['root', 'text', 'svg'] as const
|
@@ -32,7 +32,7 @@ export function SearchLink(props: SearchLinkProps) {
|
|
32
32
|
const fabSize = useFabSize('responsive')
|
33
33
|
const { sx: fabSx = [], size, color, ...fabProps } = fab ?? {}
|
34
34
|
|
35
|
-
const handleClick: MouseEventHandler<
|
35
|
+
const handleClick: MouseEventHandler<HTMLAnchorElement> = (e) => {
|
36
36
|
e.preventDefault()
|
37
37
|
onClick?.(e)
|
38
38
|
return router.push(href)
|
@@ -41,7 +41,7 @@ export function SearchLink(props: SearchLinkProps) {
|
|
41
41
|
return (
|
42
42
|
<>
|
43
43
|
<Link
|
44
|
-
component='
|
44
|
+
component='a'
|
45
45
|
className={classes.root}
|
46
46
|
underline='none'
|
47
47
|
onClick={handleClick}
|
@@ -79,6 +79,7 @@ export function SearchLink(props: SearchLinkProps) {
|
|
79
79
|
</Link>
|
80
80
|
{breakpoint && (
|
81
81
|
<Fab
|
82
|
+
component='a'
|
82
83
|
href={href}
|
83
84
|
size={size ?? 'large'}
|
84
85
|
color={color ?? 'inherit'}
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@graphcommerce/magento-search",
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
5
|
-
"version": "6.2.0-canary.
|
5
|
+
"version": "6.2.0-canary.79",
|
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": "6.2.0-canary.
|
16
|
-
"@graphcommerce/prettier-config-pwa": "6.2.0-canary.
|
17
|
-
"@graphcommerce/typescript-config-pwa": "6.2.0-canary.
|
15
|
+
"@graphcommerce/eslint-config-pwa": "6.2.0-canary.79",
|
16
|
+
"@graphcommerce/prettier-config-pwa": "6.2.0-canary.79",
|
17
|
+
"@graphcommerce/typescript-config-pwa": "6.2.0-canary.79"
|
18
18
|
},
|
19
19
|
"dependencies": {
|
20
|
-
"@graphcommerce/ecommerce-ui": "6.2.0-canary.
|
21
|
-
"@graphcommerce/graphql": "6.2.0-canary.
|
22
|
-
"@graphcommerce/image": "6.2.0-canary.
|
23
|
-
"@graphcommerce/magento-product": "6.2.0-canary.
|
24
|
-
"@graphcommerce/next-ui": "6.2.0-canary.
|
25
|
-
"@graphcommerce/react-hook-form": "6.2.0-canary.
|
20
|
+
"@graphcommerce/ecommerce-ui": "6.2.0-canary.79",
|
21
|
+
"@graphcommerce/graphql": "6.2.0-canary.79",
|
22
|
+
"@graphcommerce/image": "6.2.0-canary.79",
|
23
|
+
"@graphcommerce/magento-product": "6.2.0-canary.79",
|
24
|
+
"@graphcommerce/next-ui": "6.2.0-canary.79",
|
25
|
+
"@graphcommerce/react-hook-form": "6.2.0-canary.79"
|
26
26
|
},
|
27
27
|
"peerDependencies": {
|
28
28
|
"@lingui/react": "^4.2.1",
|