@graphcommerce/magento-cart-shipping-method 9.0.0-canary.78 → 9.0.0-canary.80

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.0.0-canary.80
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2341](https://github.com/graphcommerce-org/graphcommerce/pull/2341) [`1d6512d`](https://github.com/graphcommerce-org/graphcommerce/commit/1d6512d4118cfb46602aa1f2432c3566fdb3261d) - Rename experimental_useV2 prop to deprecated_useV1 in useFromGql and enable it by default ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
8
+
9
+ ## 9.0.0-canary.79
10
+
3
11
  ## 9.0.0-canary.78
4
12
 
5
13
  ## 9.0.0-canary.77
@@ -1,6 +1,7 @@
1
+ import { ActionCardItemRenderProps } from '@graphcommerce/ecommerce-ui'
1
2
  import { useDisplayInclTax } from '@graphcommerce/magento-cart/hooks'
2
3
  import { Money } from '@graphcommerce/magento-store'
3
- import { ActionCard, ActionCardItemRenderProps } from '@graphcommerce/next-ui'
4
+ import { ActionCard } from '@graphcommerce/next-ui'
4
5
  import { Trans } from '@lingui/react'
5
6
  import { Button, Chip } from '@mui/material'
6
7
  import { AvailableShippingMethodFragment } from '../../AvailableShippingMethod/AvailableShippingMethod.gql'
@@ -1,15 +1,14 @@
1
+ import {
2
+ ActionCardItemBase,
3
+ ActionCardItemRenderProps,
4
+ ActionCardListForm,
5
+ } from '@graphcommerce/ecommerce-ui'
1
6
  import {
2
7
  ApolloCartErrorAlert,
3
8
  useCartQuery,
4
9
  useFormGqlMutationCart,
5
10
  } from '@graphcommerce/magento-cart'
6
- import {
7
- Form,
8
- FormHeader,
9
- ActionCardItemBase,
10
- ActionCardItemRenderProps,
11
- ActionCardListForm,
12
- } from '@graphcommerce/next-ui'
11
+ import { Form, FormHeader } from '@graphcommerce/next-ui'
13
12
  import {
14
13
  FormAutoSubmit,
15
14
  FormProvider,
@@ -76,8 +75,8 @@ export function ShippingMethodForm(props: ShippingMethodFormProps) {
76
75
  ShippingMethodFormMutation,
77
76
  ShippingMethodFormMutationVariables & { carrierMethod?: string }
78
77
  >(ShippingMethodFormDocument, {
78
+ skipUnchanged: true,
79
79
  defaultValues: { carrierMethod },
80
- experimental_useV2: true,
81
80
  onBeforeSubmit: (variables) => {
82
81
  const [carrier, method] = (variables.carrierMethod ?? '').split('-')
83
82
  return onBeforeSubmit({ ...variables, carrier, method })
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-cart-shipping-method",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.0-canary.78",
5
+ "version": "9.0.0-canary.80",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,17 +12,18 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.78",
16
- "@graphcommerce/framer-scroller": "^9.0.0-canary.78",
17
- "@graphcommerce/graphql": "^9.0.0-canary.78",
18
- "@graphcommerce/image": "^9.0.0-canary.78",
19
- "@graphcommerce/magento-cart": "^9.0.0-canary.78",
20
- "@graphcommerce/magento-cart-shipping-address": "^9.0.0-canary.78",
21
- "@graphcommerce/magento-store": "^9.0.0-canary.78",
22
- "@graphcommerce/next-ui": "^9.0.0-canary.78",
23
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.78",
24
- "@graphcommerce/react-hook-form": "^9.0.0-canary.78",
25
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.78",
15
+ "@graphcommerce/ecommerce-ui": "^9.0.0-canary.80",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.80",
17
+ "@graphcommerce/framer-scroller": "^9.0.0-canary.80",
18
+ "@graphcommerce/graphql": "^9.0.0-canary.80",
19
+ "@graphcommerce/image": "^9.0.0-canary.80",
20
+ "@graphcommerce/magento-cart": "^9.0.0-canary.80",
21
+ "@graphcommerce/magento-cart-shipping-address": "^9.0.0-canary.80",
22
+ "@graphcommerce/magento-store": "^9.0.0-canary.80",
23
+ "@graphcommerce/next-ui": "^9.0.0-canary.80",
24
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.80",
25
+ "@graphcommerce/react-hook-form": "^9.0.0-canary.80",
26
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.80",
26
27
  "@lingui/core": "^4.2.1",
27
28
  "@lingui/macro": "^4.2.1",
28
29
  "@lingui/react": "^4.2.1",