@graphcommerce/magento-product-configurable 4.1.32 → 4.2.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
@@ -1,5 +1,60 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`755d2cf83`](https://github.com/graphcommerce-org/graphcommerce/commit/755d2cf83343a5ad3d61063eff595d821de360aa), [`dc7f2dda4`](https://github.com/graphcommerce-org/graphcommerce/commit/dc7f2dda40ff8572fc11161de6eb62ca13e720dd)]:
8
+ - @graphcommerce/next-ui@4.23.0
9
+ - @graphcommerce/magento-cart@4.7.2
10
+ - @graphcommerce/magento-cart-items@3.1.2
11
+ - @graphcommerce/magento-category@4.5.2
12
+ - @graphcommerce/magento-customer@4.10.2
13
+ - @graphcommerce/magento-product@4.5.2
14
+ - @graphcommerce/magento-store@4.2.30
15
+ - @graphcommerce/magento-product-simple@4.0.50
16
+
17
+ ## 4.2.1
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [[`448c77681`](https://github.com/graphcommerce-org/graphcommerce/commit/448c77681f9a7794e84ec93139d7e0f16afafbd9)]:
22
+ - @graphcommerce/graphql-mesh@4.1.9
23
+ - @graphcommerce/magento-customer@4.10.1
24
+ - @graphcommerce/magento-product@4.5.1
25
+ - @graphcommerce/magento-store@4.2.29
26
+ - @graphcommerce/magento-cart@4.7.1
27
+ - @graphcommerce/magento-cart-items@3.1.1
28
+ - @graphcommerce/magento-category@4.5.1
29
+ - @graphcommerce/magento-product-simple@4.0.49
30
+
31
+ ## 4.2.0
32
+
33
+ ### Minor Changes
34
+
35
+ - [#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
36
+
37
+ - Scaled icons and fonts down. Size in typography is now more gradual: https://graphcommerce.vercel.app/test/typography
38
+ - Multiple accessibility fixes. Missing button/input labels, and fixed spacing issues resulting in high % appropriately sized tap targets
39
+ - Replaced responsiveVal usage with better performaning breakpointVal where possible
40
+ - All buttons are now Pill by default.
41
+ - Cleaned up checkout styles
42
+
43
+ ### Patch Changes
44
+
45
+ - Updated dependencies [[`b40a352f7`](https://github.com/graphcommerce-org/graphcommerce/commit/b40a352f7bccdb831dce1d45baf98d51b0921d58), [`3ff0e7f2d`](https://github.com/graphcommerce-org/graphcommerce/commit/3ff0e7f2d26edad228848268d24e9aaf56cd2c30), [`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), [`0ad5159eb`](https://github.com/graphcommerce-org/graphcommerce/commit/0ad5159ebef54b4ce7fee6f71b4bf710dba9ef8e), [`40983df17`](https://github.com/graphcommerce-org/graphcommerce/commit/40983df170ed0435c47496285dfe30aafeb2eeac), [`d46d5ed0c`](https://github.com/graphcommerce-org/graphcommerce/commit/d46d5ed0cc5794391b7527fc17bbb68ec2212e33), [`e573278e4`](https://github.com/graphcommerce-org/graphcommerce/commit/e573278e43506a6b17a2981e61d0e9fad41eb2eb), [`5f781a217`](https://github.com/graphcommerce-org/graphcommerce/commit/5f781a217ce63ed56bc1a9983487b04400a8a315), [`ec96a0eb0`](https://github.com/graphcommerce-org/graphcommerce/commit/ec96a0eb049ee2204f32f9c578455cf9c131dbd2), [`ac6eedbb1`](https://github.com/graphcommerce-org/graphcommerce/commit/ac6eedbb14d3abd8cf1231a98dc2a8b7f4659f1f)]:
46
+ - @graphcommerce/magento-product@4.5.0
47
+ - @graphcommerce/graphql-mesh@4.1.8
48
+ - @graphcommerce/magento-category@4.5.0
49
+ - @graphcommerce/next-ui@4.22.0
50
+ - @graphcommerce/magento-customer@4.10.0
51
+ - @graphcommerce/magento-cart@4.7.0
52
+ - @graphcommerce/magento-cart-items@3.1.0
53
+ - @graphcommerce/magento-product-simple@4.0.48
54
+ - @graphcommerce/magento-store@4.2.28
55
+ - @graphcommerce/graphql@3.4.7
56
+ - @graphcommerce/image@3.1.9
57
+
3
58
  ## 4.1.32
4
59
 
5
60
  ### Patch Changes
@@ -1,7 +1,6 @@
1
1
  import { ApolloCartErrorAlert, useFormGqlMutationCart } from '@graphcommerce/magento-cart'
2
2
  import { Money } from '@graphcommerce/magento-store'
3
3
  import {
4
- AnimatedRow,
5
4
  Button,
6
5
  extendableComponent,
7
6
  iconChevronRight,
@@ -10,8 +9,7 @@ import {
10
9
  TextInputNumber,
11
10
  } from '@graphcommerce/next-ui'
12
11
  import { Trans } from '@lingui/react'
13
- import { Divider, Typography, Alert, Box, SxProps, Theme } from '@mui/material'
14
- import { AnimatePresence } from 'framer-motion'
12
+ import { Divider, Typography, Alert, Box, SxProps, Theme, useMediaQuery } from '@mui/material'
15
13
  import PageLink from 'next/link'
16
14
  import React from 'react'
17
15
  import { Selected, useConfigurableContext } from '../ConfigurableContext/ConfigurableContext'
@@ -146,13 +144,11 @@ export function ConfigurableProductAddToCart(props: ConfigurableProductAddToCart
146
144
 
147
145
  <ApolloCartErrorAlert error={error} />
148
146
 
149
- <AnimatePresence initial={false}>
150
- {data?.addProductsToCart?.user_errors.map((e) => (
151
- <AnimatedRow layout key={e?.code}>
152
- <Alert severity='error'>{e?.message}</Alert>
153
- </AnimatedRow>
154
- ))}
155
- </AnimatePresence>
147
+ {data?.addProductsToCart?.user_errors.map((e) => (
148
+ <Box key={e?.code}>
149
+ <Alert severity='error'>{e?.message}</Alert>
150
+ </Box>
151
+ ))}
156
152
 
157
153
  <MessageSnackbar
158
154
  open={
@@ -162,6 +158,7 @@ export function ConfigurableProductAddToCart(props: ConfigurableProductAddToCart
162
158
  !data?.addProductsToCart?.user_errors?.length
163
159
  }
164
160
  variant='pill'
161
+ autoHide
165
162
  action={
166
163
  <PageLink href='/cart' passHref>
167
164
  <Button
@@ -15,6 +15,7 @@ fragment ProductListItemConfigurable on ConfigurableProduct @inject(into: ["Prod
15
15
  }
16
16
  variants {
17
17
  attributes {
18
+ value_index
18
19
  uid
19
20
  code
20
21
  }
@@ -58,7 +58,7 @@ export function ProductListItemConfigurable(props: ProdustListItemConfigurablePr
58
58
  variant?.attributes?.filter(
59
59
  (attribute) =>
60
60
  selected[attribute?.code ?? ''] !== undefined &&
61
- selected[attribute?.code ?? ''].includes(String(attribute?.uid)),
61
+ selected[attribute?.code ?? ''].includes(String(attribute?.value_index)),
62
62
  ).length,
63
63
  )
64
64
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-product-configurable",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "4.1.32",
5
+ "version": "4.2.2",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -19,17 +19,17 @@
19
19
  "type-fest": "^2.12.2"
20
20
  },
21
21
  "dependencies": {
22
- "@graphcommerce/graphql": "3.4.6",
23
- "@graphcommerce/graphql-mesh": "4.1.7",
24
- "@graphcommerce/image": "3.1.8",
25
- "@graphcommerce/magento-cart": "4.6.9",
26
- "@graphcommerce/magento-cart-items": "3.0.48",
27
- "@graphcommerce/magento-category": "4.4.1",
28
- "@graphcommerce/magento-customer": "4.9.5",
29
- "@graphcommerce/magento-product": "4.4.25",
30
- "@graphcommerce/magento-product-simple": "4.0.47",
31
- "@graphcommerce/magento-store": "4.2.27",
32
- "@graphcommerce/next-ui": "4.21.0",
22
+ "@graphcommerce/graphql": "3.4.7",
23
+ "@graphcommerce/graphql-mesh": "4.1.9",
24
+ "@graphcommerce/image": "3.1.9",
25
+ "@graphcommerce/magento-cart": "4.7.2",
26
+ "@graphcommerce/magento-cart-items": "3.1.2",
27
+ "@graphcommerce/magento-category": "4.5.2",
28
+ "@graphcommerce/magento-customer": "4.10.2",
29
+ "@graphcommerce/magento-product": "4.5.2",
30
+ "@graphcommerce/magento-product-simple": "4.0.50",
31
+ "@graphcommerce/magento-store": "4.2.30",
32
+ "@graphcommerce/next-ui": "4.23.0",
33
33
  "@graphcommerce/react-hook-form": "3.3.2"
34
34
  },
35
35
  "peerDependencies": {