@graphcommerce/magento-product 9.1.0-canary.22 → 9.1.0-canary.23

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,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.1.0-canary.23
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2521](https://github.com/graphcommerce-org/graphcommerce/pull/2521) [`78b8640`](https://github.com/graphcommerce-org/graphcommerce/commit/78b86401fc5410ffb3b001bc7c79049496a54ae7) - Solve issue where the category sidebar navigation would show a Clear button while it wasn't clearable. ([@paales](https://github.com/paales))
8
+
9
+ - [#2521](https://github.com/graphcommerce-org/graphcommerce/pull/2521) [`0464fbf`](https://github.com/graphcommerce-org/graphcommerce/commit/0464fbf798723e17c094e264a558ec0ebe73e8b0) - Fix regression issue where the sidebar filter values would be rendered too big and padding was missing on the top when values would be renderd in a bottom sheet. ([@paales](https://github.com/paales))
10
+
3
11
  ## 9.1.0-canary.22
4
12
 
5
13
  ## 9.1.0-canary.21
@@ -65,7 +65,7 @@ export function ProductFilterEqualSection(props: FilterProps) {
65
65
  multiple
66
66
  layout='list'
67
67
  variant='default'
68
- size='responsive'
68
+ size='medium'
69
69
  items={items}
70
70
  showMoreAfter={4}
71
71
  />
@@ -21,10 +21,11 @@ export type ProductFiltersProCategoryAccordionProps = {
21
21
  sx?: SxProps<Theme>
22
22
  categoryTree: CategoryTreeItem[]
23
23
  onChange: (uid: CategoryTreeItem) => void | Promise<void>
24
+ clearable?: boolean
24
25
  } & Pick<ActionCardAccordionProps, 'defaultExpanded'>
25
26
 
26
27
  export function ProductFiltersProCategoryAccordion(props: ProductFiltersProCategoryAccordionProps) {
27
- const { hideTitle, sx, categoryTree, onChange, defaultExpanded } = props
28
+ const { hideTitle, sx, categoryTree, onChange, defaultExpanded, clearable = false } = props
28
29
  const { form } = useProductFiltersPro()
29
30
 
30
31
  const name = 'filters.category_uid.in'
@@ -40,7 +41,7 @@ export function ProductFiltersProCategoryAccordion(props: ProductFiltersProCateg
40
41
  defaultExpanded={defaultExpanded}
41
42
  summary={<Trans id='Categories' />}
42
43
  right={
43
- currentFilter && currentFilter.length > 0 ? (
44
+ clearable && currentFilter && currentFilter.length > 0 ? (
44
45
  <Button
45
46
  color='primary'
46
47
  onClick={(e) => {
@@ -70,7 +71,7 @@ export function ProductFiltersProCategoryAccordion(props: ProductFiltersProCateg
70
71
  <ActionCard
71
72
  key={item.value}
72
73
  {...item}
73
- size='responsive'
74
+ size='medium'
74
75
  title={
75
76
  <Box sx={{ display: 'flex', alignItems: 'center', gap: 1 }}>
76
77
  <Box sx={{ marginRight: 1 }}>
@@ -46,7 +46,7 @@ export function ProductFiltersProLimitSection(props: ProductFiltersProLimitSecti
46
46
  control={control}
47
47
  layout='list'
48
48
  variant='default'
49
- size='responsive'
49
+ size='medium'
50
50
  items={options}
51
51
  />
52
52
  }
@@ -28,7 +28,7 @@ export function ProductFiltersProSortSection(props: ProductFiltersProSortSection
28
28
  name='sort'
29
29
  layout='list'
30
30
  variant='default'
31
- size='responsive'
31
+ size='medium'
32
32
  render={ActionCard}
33
33
  items={options}
34
34
  />
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-product",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.1.0-canary.22",
5
+ "version": "9.1.0-canary.23",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -18,18 +18,18 @@
18
18
  "typescript": "5.7.2"
19
19
  },
20
20
  "peerDependencies": {
21
- "@graphcommerce/ecommerce-ui": "^9.1.0-canary.22",
22
- "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.22",
23
- "@graphcommerce/framer-next-pages": "^9.1.0-canary.22",
24
- "@graphcommerce/framer-scroller": "^9.1.0-canary.22",
25
- "@graphcommerce/graphql": "^9.1.0-canary.22",
26
- "@graphcommerce/graphql-mesh": "^9.1.0-canary.22",
27
- "@graphcommerce/image": "^9.1.0-canary.22",
28
- "@graphcommerce/magento-cart": "^9.1.0-canary.22",
29
- "@graphcommerce/magento-store": "^9.1.0-canary.22",
30
- "@graphcommerce/next-ui": "^9.1.0-canary.22",
31
- "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.22",
32
- "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.22",
21
+ "@graphcommerce/ecommerce-ui": "^9.1.0-canary.23",
22
+ "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.23",
23
+ "@graphcommerce/framer-next-pages": "^9.1.0-canary.23",
24
+ "@graphcommerce/framer-scroller": "^9.1.0-canary.23",
25
+ "@graphcommerce/graphql": "^9.1.0-canary.23",
26
+ "@graphcommerce/graphql-mesh": "^9.1.0-canary.23",
27
+ "@graphcommerce/image": "^9.1.0-canary.23",
28
+ "@graphcommerce/magento-cart": "^9.1.0-canary.23",
29
+ "@graphcommerce/magento-store": "^9.1.0-canary.23",
30
+ "@graphcommerce/next-ui": "^9.1.0-canary.23",
31
+ "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.23",
32
+ "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.23",
33
33
  "@lingui/core": "^4.2.1",
34
34
  "@lingui/macro": "^4.2.1",
35
35
  "@lingui/react": "^4.2.1",