@graphcommerce/magento-search-overlay 9.0.4-canary.9 → 9.0.4
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,26 +1,22 @@
|
|
|
1
1
|
# @graphcommerce/magento-search-overlay
|
|
2
2
|
|
|
3
|
-
## 9.0.4
|
|
3
|
+
## 9.0.4
|
|
4
4
|
|
|
5
|
-
## 9.0.
|
|
5
|
+
## 9.0.3
|
|
6
6
|
|
|
7
|
-
## 9.0.
|
|
7
|
+
## 9.0.3-canary.0
|
|
8
8
|
|
|
9
|
-
## 9.0.
|
|
9
|
+
## 9.0.2
|
|
10
10
|
|
|
11
|
-
## 9.0.
|
|
11
|
+
## 9.0.2-canary.0
|
|
12
12
|
|
|
13
|
-
## 9.0.
|
|
14
|
-
|
|
15
|
-
## 9.0.4-canary.3
|
|
16
|
-
|
|
17
|
-
## 9.0.4-canary.2
|
|
13
|
+
## 9.0.1
|
|
18
14
|
|
|
19
|
-
|
|
15
|
+
### Patch Changes
|
|
20
16
|
|
|
21
|
-
|
|
17
|
+
- [#2461](https://github.com/graphcommerce-org/graphcommerce/pull/2461) [`24c68c1`](https://github.com/graphcommerce-org/graphcommerce/commit/24c68c1903d5396efee7f571a1380ffa234338fd) - Solve issue with the SearchField throwing an error in production. ([@paales](https://github.com/paales))
|
|
22
18
|
|
|
23
|
-
## 9.0.1
|
|
19
|
+
## 9.0.1-canary.1
|
|
24
20
|
|
|
25
21
|
### Patch Changes
|
|
26
22
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMotionValueValue } from '@graphcommerce/framer-utils'
|
|
2
2
|
import type { ProductListItemRenderer } from '@graphcommerce/magento-product'
|
|
3
|
-
import { Overlay } from '@graphcommerce/next-ui'
|
|
4
|
-
import { useTheme } from '@mui/material'
|
|
3
|
+
import { MediaQuery, Overlay } from '@graphcommerce/next-ui'
|
|
4
|
+
import { Box, useTheme } from '@mui/material'
|
|
5
5
|
import { SearchOverlayBodyBase } from './SearchOverlayBodyBase'
|
|
6
6
|
import { SearchOverlayCategories } from './SearchOverlayCategories'
|
|
7
7
|
import { SearchOverlayHeader } from './SearchOverlayHeader'
|
|
@@ -42,7 +42,7 @@ export function SearchOverlay(props: SearchOverlayProps) {
|
|
|
42
42
|
className='SearchOverlay-root'
|
|
43
43
|
{...slotProps?.overlay}
|
|
44
44
|
>
|
|
45
|
-
<SearchOverlayProvider>
|
|
45
|
+
<SearchOverlayProvider open={open}>
|
|
46
46
|
<SearchOverlayHeader {...slotProps?.header} />
|
|
47
47
|
<SearchOverlayBodyBase {...slotProps?.body}>
|
|
48
48
|
<SearchOverlaySuggestions {...slotProps?.suggestions} />
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useMotionSelector } from '@graphcommerce/framer-utils'
|
|
2
|
+
import { SearchFab } from '@graphcommerce/magento-search/components/SearchFab/SearchFab.interceptor'
|
|
2
3
|
import { motionValue } from 'framer-motion'
|
|
3
4
|
import dynamic from 'next/dynamic'
|
|
4
5
|
import type { SearchOverlayProps } from './SearchOverlay'
|
|
@@ -39,10 +39,11 @@ export function useSearchOverlay() {
|
|
|
39
39
|
|
|
40
40
|
type SearchOverlayProviderProps = {
|
|
41
41
|
children: ReactNode
|
|
42
|
+
open: boolean
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
export function SearchOverlayProvider(props: SearchOverlayProviderProps) {
|
|
45
|
-
const { children } = props
|
|
46
|
+
const { children, open, ...overlayProps } = props
|
|
46
47
|
const router = useRouter()
|
|
47
48
|
const [params, setParams] = useState<ProductListParams>({
|
|
48
49
|
filters: {},
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-search-overlay",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.0.4
|
|
5
|
+
"version": "9.0.4",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,18 +12,18 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/ecommerce-ui": "^9.0.4
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.4
|
|
17
|
-
"@graphcommerce/framer-utils": "^9.0.4
|
|
18
|
-
"@graphcommerce/graphql": "^9.0.4
|
|
19
|
-
"@graphcommerce/image": "^9.0.4
|
|
20
|
-
"@graphcommerce/magento-product": "^9.0.4
|
|
21
|
-
"@graphcommerce/magento-search": "^9.0.4
|
|
22
|
-
"@graphcommerce/magento-store": "^9.0.4
|
|
23
|
-
"@graphcommerce/next-ui": "^9.0.4
|
|
24
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.4
|
|
25
|
-
"@graphcommerce/react-hook-form": "^9.0.4
|
|
26
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.4
|
|
15
|
+
"@graphcommerce/ecommerce-ui": "^9.0.4",
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.4",
|
|
17
|
+
"@graphcommerce/framer-utils": "^9.0.4",
|
|
18
|
+
"@graphcommerce/graphql": "^9.0.4",
|
|
19
|
+
"@graphcommerce/image": "^9.0.4",
|
|
20
|
+
"@graphcommerce/magento-product": "^9.0.4",
|
|
21
|
+
"@graphcommerce/magento-search": "^9.0.4",
|
|
22
|
+
"@graphcommerce/magento-store": "^9.0.4",
|
|
23
|
+
"@graphcommerce/next-ui": "^9.0.4",
|
|
24
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.4",
|
|
25
|
+
"@graphcommerce/react-hook-form": "^9.0.4",
|
|
26
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.4",
|
|
27
27
|
"@lingui/core": "^4.2.1",
|
|
28
28
|
"@lingui/macro": "^4.2.1",
|
|
29
29
|
"@lingui/react": "^4.2.1",
|