@graphcommerce/magento-search 4.1.33 → 4.2.0

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,5 +1,42 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1602](https://github.com/graphcommerce-org/graphcommerce/pull/1602) [`5f781a217`](https://github.com/graphcommerce-org/graphcommerce/commit/5f781a217ce63ed56bc1a9983487b04400a8a315) Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Default styles and layout fixes
8
+
9
+ - Scaled icons and fonts down. Size in typography is now more gradual: https://graphcommerce.vercel.app/test/typography
10
+ - Multiple accessibility fixes. Missing button/input labels, and fixed spacing issues resulting in high % appropriately sized tap targets
11
+ - Replaced responsiveVal usage with better performaning breakpointVal where possible
12
+ - All buttons are now Pill by default.
13
+ - Cleaned up checkout styles
14
+
15
+ ### Patch Changes
16
+
17
+ - [#1590](https://github.com/graphcommerce-org/graphcommerce/pull/1590) [`40983df17`](https://github.com/graphcommerce-org/graphcommerce/commit/40983df170ed0435c47496285dfe30aafeb2eeac) Thanks [@paales](https://github.com/paales)! - Implement search results with a base static page and dynamic pages after paginating/filtering
18
+
19
+ - Updated dependencies [[`04708dacc`](https://github.com/graphcommerce-org/graphcommerce/commit/04708daccc213c6ea927bc67fa3bd0d5b1fad619), [`bb94e7045`](https://github.com/graphcommerce-org/graphcommerce/commit/bb94e7045460cb671c45d612a0833731d7c20c30), [`b0dc4e2e1`](https://github.com/graphcommerce-org/graphcommerce/commit/b0dc4e2e1982d502d38dd50a0f493396360a7a15), [`4a5286dfe`](https://github.com/graphcommerce-org/graphcommerce/commit/4a5286dfeaa1719e594a0078f274fbab53969c4e), [`d46d5ed0c`](https://github.com/graphcommerce-org/graphcommerce/commit/d46d5ed0cc5794391b7527fc17bbb68ec2212e33), [`5f781a217`](https://github.com/graphcommerce-org/graphcommerce/commit/5f781a217ce63ed56bc1a9983487b04400a8a315)]:
20
+ - @graphcommerce/next-ui@4.22.0
21
+ - @graphcommerce/graphql@3.4.7
22
+ - @graphcommerce/image@3.1.9
23
+
24
+ ## 4.1.35
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies [[`1f7ee6f6c`](https://github.com/graphcommerce-org/graphcommerce/commit/1f7ee6f6cfb28544439ed36e10929ac530d1b2b7), [`707dbc73d`](https://github.com/graphcommerce-org/graphcommerce/commit/707dbc73d181204d88fdbbd2e09340e25b2b5f7b)]:
29
+ - @graphcommerce/next-ui@4.21.0
30
+ - @graphcommerce/graphql@3.4.6
31
+ - @graphcommerce/image@3.1.8
32
+
33
+ ## 4.1.34
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [[`43822fd61`](https://github.com/graphcommerce-org/graphcommerce/commit/43822fd61c949215b8ddce9fb37d09f29b638426), [`3a619b70d`](https://github.com/graphcommerce-org/graphcommerce/commit/3a619b70d082804b8de46a8e8232f9431479a8b7)]:
38
+ - @graphcommerce/next-ui@4.20.0
39
+
3
40
  ## 4.1.33
4
41
 
5
42
  ### Patch Changes
@@ -0,0 +1,7 @@
1
+ query CategorySearch($pageSize: Int = 10, $search: String = "") {
2
+ categories(filters: { name: { match: $search } }, pageSize: $pageSize) {
3
+ items {
4
+ ...CategorySearchResult
5
+ }
6
+ }
7
+ }
@@ -20,7 +20,7 @@ export function CategorySearchResult(props: CategorySearchResultProps) {
20
20
  <PageLink href={`/${catProps?.url_path ?? ''}`} passHref>
21
21
  <Button
22
22
  fullWidth
23
- variant='contained'
23
+ variant='pill'
24
24
  className={classes.root}
25
25
  disableElevation
26
26
  endIcon={<IconSvg src={iconChevronRight} size='small' />}
@@ -47,7 +47,7 @@ export function SearchForm(props: SearchFormProps) {
47
47
  }
48
48
 
49
49
  const endAdornment = !watch('search') ? (
50
- <IconButton size='small'>
50
+ <IconButton size='small' aria-label={i18n._(/* i18n */ 'Search')}>
51
51
  <IconSvg src={iconSearch} />
52
52
  </IconButton>
53
53
  ) : (
package/index.ts CHANGED
@@ -3,5 +3,5 @@ export * from './components/NoSearchResults/NoSearchResults'
3
3
  export * from './components/CategorySearchResult/CategorySearchResult'
4
4
  export * from './components/SearchForm/SearchForm'
5
5
  export * from './components/SearchLink/SearchLink'
6
- export * from './Search.gql'
6
+ export * from './CategorySearch.gql'
7
7
  export * from './components/SearchButton/SearchButton'
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": "4.1.33",
5
+ "version": "4.2.0",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,16 +12,16 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^4.1.9",
15
+ "@graphcommerce/eslint-config-pwa": "^4.1.10",
16
16
  "@graphcommerce/prettier-config-pwa": "^4.0.6",
17
17
  "@graphcommerce/typescript-config-pwa": "^4.0.4",
18
18
  "@playwright/test": "^1.21.1",
19
19
  "type-fest": "^2.12.2"
20
20
  },
21
21
  "dependencies": {
22
- "@graphcommerce/graphql": "3.4.5",
23
- "@graphcommerce/image": "3.1.7",
24
- "@graphcommerce/next-ui": "4.19.0",
22
+ "@graphcommerce/graphql": "3.4.7",
23
+ "@graphcommerce/image": "3.1.9",
24
+ "@graphcommerce/next-ui": "4.22.0",
25
25
  "@graphcommerce/react-hook-form": "3.3.2"
26
26
  },
27
27
  "peerDependencies": {
package/Search.graphql DELETED
@@ -1,17 +0,0 @@
1
- query Search(
2
- $pageSize: Int = 24
3
- $currentPage: Int = 1
4
- $filters: ProductAttributeFilterInput = {}
5
- $sort: ProductAttributeSortInput = {}
6
- $search: String = ""
7
- ) {
8
- categories(filters: { name: { match: $search } }, pageSize: $pageSize) {
9
- items {
10
- ...CategorySearchResult
11
- }
12
- }
13
- ...ProductListQueryFragment
14
- filters: products(search: $search, pageSize: $pageSize) {
15
- ...ProductListFilters
16
- }
17
- }