@graphcommerce/magento-search 3.2.1 → 3.3.2

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
@@ -3,6 +3,34 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.3.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-search@3.3.0...@graphcommerce/magento-search@3.3.1) (2021-10-28)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * External SVG's can't have alt tags ([1b1414a](https://github.com/ho-nl/m2-pwa/commit/1b1414a782d55d3acf7b0e6bcaa50f2ad5f18f39))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.3.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-search@3.2.2...@graphcommerce/magento-search@3.3.0) (2021-10-28)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * update SvgImage to SvgImageSimple ([f116543](https://github.com/ho-nl/m2-pwa/commit/f116543730853fa9782abff0ccacee7032e85789))
23
+
24
+
25
+ ### Features
26
+
27
+ * dynamic icons, update SvgImage uses to SvgImageSimple ([3d3cc0e](https://github.com/ho-nl/m2-pwa/commit/3d3cc0e0336fcde1cce6ba19705f82c1edf9bfc6))
28
+ * mobile menu styling ([3cc3085](https://github.com/ho-nl/m2-pwa/commit/3cc308585d4ded68d2ac8ebf97f96288424ee914))
29
+
30
+
31
+
32
+
33
+
6
34
  # [3.2.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-search@3.1.12...@graphcommerce/magento-search@3.2.0) (2021-10-27)
7
35
 
8
36
 
@@ -1,4 +1,11 @@
1
- import { Button, Highlight, iconChevronRight, SvgImage, UseStyles } from '@graphcommerce/next-ui'
1
+ import {
2
+ Button,
3
+ Highlight,
4
+ iconChevronRight,
5
+ SvgImage,
6
+ SvgImageSimple,
7
+ UseStyles,
8
+ } from '@graphcommerce/next-ui'
2
9
  import { makeStyles, Theme } from '@material-ui/core'
3
10
  import PageLink from 'next/link'
4
11
  import React from 'react'
@@ -47,9 +54,7 @@ export default function CategorySearchResult(props: CategorySearchResultProps) {
47
54
  variant='contained'
48
55
  className={classes.categoryButton}
49
56
  disableElevation
50
- endIcon={
51
- <SvgImage src={iconChevronRight} alt='chevron right' size='small' loading='eager' />
52
- }
57
+ endIcon={<SvgImageSimple src={iconChevronRight} size='small' />}
53
58
  >
54
59
  <div>
55
60
  {catProps?.breadcrumbs?.map((breadcrumb) => (
package/Search.graphql CHANGED
@@ -1,5 +1,5 @@
1
1
  query Search(
2
- $pageSize: Int = 23
2
+ $pageSize: Int = 24
3
3
  $currentPage: Int = 1
4
4
  $filters: ProductAttributeFilterInput = {}
5
5
  $sort: ProductAttributeSortInput = {}
@@ -7,7 +7,7 @@ const useStyles = makeStyles(
7
7
  root: {
8
8
  width: '100%',
9
9
  '& fieldset': {
10
- border: `2px solid rgba(0,0,0,0.1)`,
10
+ border: `1px solid ${theme.palette.divider}`,
11
11
  },
12
12
  },
13
13
  inputRoot: {
@@ -30,7 +30,7 @@ export default function SearchButton(props: SearchButtonProps) {
30
30
  classes={{ root: classes.root }}
31
31
  InputProps={{
32
32
  readOnly: true,
33
- endAdornment: <SvgImageSimple src={iconSearch} alt='Search' size='small' />,
33
+ endAdornment: <SvgImageSimple src={iconSearch} size='medium' />,
34
34
  classes: { root: classes.inputRoot },
35
35
  ...InputProps,
36
36
  }}
@@ -1,4 +1,11 @@
1
- import { FormRow, UseStyles, SvgImage, iconClose, iconSearch } from '@graphcommerce/next-ui'
1
+ import {
2
+ FormRow,
3
+ UseStyles,
4
+ SvgImage,
5
+ iconClose,
6
+ iconSearch,
7
+ SvgImageSimple,
8
+ } from '@graphcommerce/next-ui'
2
9
  import { useForm, useFormAutoSubmit, useFormMuiRegister } from '@graphcommerce/react-hook-form'
3
10
  import { IconButton, makeStyles, TextField, Theme } from '@material-ui/core'
4
11
  import { useRouter } from 'next/router'
@@ -49,7 +56,7 @@ export default function SearchForm(props: SearchFormProps) {
49
56
 
50
57
  const endAdornment = !watch('search') ? (
51
58
  <IconButton size='small'>
52
- <SvgImage src={iconSearch} alt='search' size='small' />
59
+ <SvgImageSimple src={iconSearch} />
53
60
  </IconButton>
54
61
  ) : (
55
62
  <>
@@ -59,7 +66,7 @@ export default function SearchForm(props: SearchFormProps) {
59
66
  </div>
60
67
  )}
61
68
  <IconButton onClick={handleReset} size='small'>
62
- <SvgImage src={iconClose} alt='close' size='small' />
69
+ <SvgImageSimple src={iconClose} />
63
70
  </IconButton>
64
71
  </>
65
72
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-search",
3
- "version": "3.2.1",
3
+ "version": "3.3.2",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -14,21 +14,21 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@graphcommerce/browserslist-config-pwa": "^3.0.2",
17
- "@graphcommerce/eslint-config-pwa": "^3.1.1",
17
+ "@graphcommerce/eslint-config-pwa": "^3.1.2",
18
18
  "@graphcommerce/prettier-config-pwa": "^3.0.3",
19
19
  "@graphcommerce/typescript-config-pwa": "^3.1.1",
20
- "@playwright/test": "^1.15.2"
20
+ "@playwright/test": "^1.16.2"
21
21
  },
22
22
  "dependencies": {
23
- "@graphcommerce/graphql": "^2.105.0",
24
- "@graphcommerce/image": "^2.105.0",
25
- "@graphcommerce/next-ui": "^3.10.1",
26
- "@graphcommerce/react-hook-form": "^2.102.12",
23
+ "@graphcommerce/graphql": "^2.105.1",
24
+ "@graphcommerce/image": "^2.105.1",
25
+ "@graphcommerce/next-ui": "^3.11.2",
26
+ "@graphcommerce/react-hook-form": "^2.102.13",
27
27
  "@graphql-typed-document-node/core": "^3.1.0",
28
28
  "@material-ui/core": "^4.12.3",
29
- "next": "^12.0.0",
29
+ "next": "^12.0.1",
30
30
  "react": "^17.0.2",
31
31
  "react-dom": "^17.0.2"
32
32
  },
33
- "gitHead": "b90c6285a14368a76de8ad1d104f3d535bc3cafb"
33
+ "gitHead": "ed70123f0b4c4552ca413deff6fe786156d0772f"
34
34
  }