@graphcommerce/magento-cart-pickup 7.0.0-canary.21 → 7.0.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,6 +1,170 @@
1
1
  # Change Log
2
2
 
3
- ## 7.0.0-canary.21
3
+ ## 7.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1931](https://github.com/graphcommerce-org/graphcommerce/pull/1931) [`3b01c2bd7`](https://github.com/graphcommerce-org/graphcommerce/commit/3b01c2bd71ba62cc75f152aae627f610e15ab2b4) - Add explicit types to ActionCardListForm in PickupLocationForm to the `control` type is properly recognized ([@mikekeehnen](https://github.com/mikekeehnen))
8
+
9
+ ## 6.2.0-canary.98
10
+
11
+ ## 6.2.0-canary.97
12
+
13
+ ## 6.2.0-canary.96
14
+
15
+ ## 6.2.0-canary.95
16
+
17
+ ## 6.2.0-canary.94
18
+
19
+ ## 6.2.0-canary.93
20
+
21
+ ## 6.2.0-canary.92
22
+
23
+ ## 6.2.0-canary.91
24
+
25
+ ## 6.2.0-canary.90
26
+
27
+ ## 6.2.0-canary.89
28
+
29
+ ## 6.2.0-canary.88
30
+
31
+ ## 6.2.0-canary.87
32
+
33
+ ## 6.2.0-canary.86
34
+
35
+ ## 6.2.0-canary.85
36
+
37
+ ## 6.2.0-canary.84
38
+
39
+ ## 6.2.0-canary.83
40
+
41
+ ## 6.2.0-canary.82
42
+
43
+ ## 6.2.0-canary.81
44
+
45
+ ## 6.2.0-canary.80
46
+
47
+ ## 6.2.0-canary.79
48
+
49
+ ## 6.2.0-canary.78
50
+
51
+ ## 6.2.0-canary.77
52
+
53
+ ## 6.2.0-canary.76
54
+
55
+ ## 6.2.0-canary.75
56
+
57
+ ## 6.2.0-canary.74
58
+
59
+ ## 6.2.0-canary.73
60
+
61
+ ## 6.2.0-canary.72
62
+
63
+ ## 6.2.0-canary.71
64
+
65
+ ## 6.2.0-canary.70
66
+
67
+ ## 6.2.0-canary.69
68
+
69
+ ## 6.2.0-canary.68
70
+
71
+ ## 6.2.0-canary.67
72
+
73
+ ## 6.2.0-canary.66
74
+
75
+ ## 6.2.0-canary.65
76
+
77
+ ## 6.2.0-canary.64
78
+
79
+ ## 6.2.0-canary.63
80
+
81
+ ## 6.2.0-canary.62
82
+
83
+ ## 6.2.0-canary.61
84
+
85
+ ## 6.2.0-canary.60
86
+
87
+ ## 6.2.0-canary.59
88
+
89
+ ## 6.2.0-canary.58
90
+
91
+ ## 6.2.0-canary.57
92
+
93
+ ## 6.2.0-canary.56
94
+
95
+ ## 6.2.0-canary.55
96
+
97
+ ## 6.2.0-canary.54
98
+
99
+ ## 6.2.0-canary.53
100
+
101
+ ## 6.2.0-canary.52
102
+
103
+ ## 6.2.0-canary.51
104
+
105
+ ## 6.2.0-canary.50
106
+
107
+ ## 6.2.0-canary.49
108
+
109
+ ## 6.2.0-canary.48
110
+
111
+ ## 6.2.0-canary.47
112
+
113
+ ## 6.2.0-canary.46
114
+
115
+ ## 6.2.0-canary.45
116
+
117
+ ## 6.2.0-canary.44
118
+
119
+ ## 6.2.0-canary.43
120
+
121
+ ## 6.2.0-canary.42
122
+
123
+ ## 6.2.0-canary.41
124
+
125
+ ## 6.2.0-canary.40
126
+
127
+ ## 6.2.0-canary.39
128
+
129
+ ## 6.2.0-canary.38
130
+
131
+ ## 6.2.0-canary.37
132
+
133
+ ## 6.2.0-canary.36
134
+
135
+ ## 6.2.0-canary.35
136
+
137
+ ## 6.2.0-canary.34
138
+
139
+ ## 6.2.0-canary.33
140
+
141
+ ### Patch Changes
142
+
143
+ - [#1931](https://github.com/graphcommerce-org/graphcommerce/pull/1931) [`3b01c2bd7`](https://github.com/graphcommerce-org/graphcommerce/commit/3b01c2bd71ba62cc75f152aae627f610e15ab2b4) - Add explicit types to ActionCardListForm in PickupLocationForm to the `control` type is properly recognized ([@mikekeehnen](https://github.com/mikekeehnen))
144
+
145
+ ## 6.2.0-canary.32
146
+
147
+ ## 6.2.0-canary.31
148
+
149
+ ## 6.2.0-canary.30
150
+
151
+ ## 6.2.0-canary.29
152
+
153
+ ## 6.2.0-canary.28
154
+
155
+ ## 6.2.0-canary.27
156
+
157
+ ## 6.2.0-canary.26
158
+
159
+ ## 6.2.0-canary.25
160
+
161
+ ## 6.2.0-canary.24
162
+
163
+ ## 6.2.0-canary.23
164
+
165
+ ## 6.2.0-canary.22
166
+
167
+ ## 6.2.0-canary.21
4
168
 
5
169
  ## 6.2.0-canary.20
6
170
 
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  ApolloErrorAlert,
3
+ TextFieldElement,
3
4
  useFormCompose,
4
5
  UseFormComposeOptions,
5
6
  } from '@graphcommerce/ecommerce-ui'
@@ -10,7 +11,6 @@ import { useShippingMethod } from '@graphcommerce/magento-cart-shipping-method'
10
11
  import { GetShippingMethodsDocument } from '@graphcommerce/magento-cart-shipping-method/components/ShippingMethodForm/GetShippingMethods.gql'
11
12
  import { ActionCardItemBase, ActionCardListForm, FormRow } from '@graphcommerce/next-ui'
12
13
  import { Trans } from '@lingui/react'
13
- import { TextField } from '@mui/material'
14
14
  import { useMemo, useDeferredValue } from 'react'
15
15
  import { GetPickupLocationsForProductsDocument } from '../graphql/GetPickupLocationsForProducts.gql'
16
16
  import {
@@ -43,6 +43,7 @@ export function PickupLocationForm(props: PickupLocationFormProps) {
43
43
  const defaultSearchTerm = shippingAddress?.pickup_location_code
44
44
  ? undefined
45
45
  : shippingAddress?.postcode ?? undefined
46
+
46
47
  const form = useFormGqlMutationCart<
47
48
  SetPickupLocationOnCartMutation,
48
49
  SetPickupLocationOnCartMutationVariables & { searchTerm?: string }
@@ -67,7 +68,7 @@ export function PickupLocationForm(props: PickupLocationFormProps) {
67
68
  }),
68
69
  })
69
70
 
70
- const { control, handleSubmit, muiRegister } = form
71
+ const { control, handleSubmit } = form
71
72
  const submit = handleSubmit(() => {})
72
73
 
73
74
  useFormCompose({ form, step, submit, key: 'PickupLocationForm' })
@@ -96,15 +97,17 @@ export function PickupLocationForm(props: PickupLocationFormProps) {
96
97
  <form onSubmit={submit} noValidate>
97
98
  {!selected && (
98
99
  <FormRow>
99
- <TextField
100
+ <TextFieldElement
101
+ name='searchTerm'
102
+ control={control}
103
+ validation={{ required: false, minLength: 4 }}
100
104
  label={<Trans id='Zip code or city' />}
101
105
  type='text'
102
- {...muiRegister('searchTerm', { required: false, minLength: 4 })}
103
106
  />
104
107
  </FormRow>
105
108
  )}
106
109
 
107
- <ActionCardListForm<Location & ActionCardItemBase>
110
+ <ActionCardListForm<Location & ActionCardItemBase, SetPickupLocationOnCartMutationVariables>
108
111
  control={control}
109
112
  name='pickupLocationCode'
110
113
  errorMessage='Please select a pickup location'
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-cart-pickup",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "7.0.0-canary.21",
5
+ "version": "7.0.0",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,24 +12,25 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "7.0.0-canary.21",
16
- "@graphcommerce/prettier-config-pwa": "7.0.0-canary.21",
17
- "@graphcommerce/typescript-config-pwa": "7.0.0-canary.21"
15
+ "@graphcommerce/eslint-config-pwa": "7.0.0",
16
+ "@graphcommerce/prettier-config-pwa": "7.0.0",
17
+ "@graphcommerce/typescript-config-pwa": "7.0.0"
18
18
  },
19
19
  "dependencies": {
20
- "@graphcommerce/ecommerce-ui": "7.0.0-canary.21",
21
- "@graphcommerce/graphql": "7.0.0-canary.21",
22
- "@graphcommerce/graphql-mesh": "7.0.0-canary.21",
23
- "@graphcommerce/image": "7.0.0-canary.21",
24
- "@graphcommerce/magento-cart": "7.0.0-canary.21",
25
- "@graphcommerce/magento-cart-shipping-method": "7.0.0-canary.21",
26
- "@graphcommerce/magento-store": "7.0.0-canary.21",
27
- "@graphcommerce/next-ui": "7.0.0-canary.21",
28
- "@graphcommerce/react-hook-form": "7.0.0-canary.21"
20
+ "@graphcommerce/ecommerce-ui": "7.0.0",
21
+ "@graphcommerce/graphql": "7.0.0",
22
+ "@graphcommerce/graphql-mesh": "7.0.0",
23
+ "@graphcommerce/image": "7.0.0",
24
+ "@graphcommerce/magento-cart": "7.0.0",
25
+ "@graphcommerce/magento-cart-shipping-method": "7.0.0",
26
+ "@graphcommerce/magento-store": "7.0.0",
27
+ "@graphcommerce/next-ui": "7.0.0",
28
+ "@graphcommerce/react-hook-form": "7.0.0"
29
29
  },
30
30
  "peerDependencies": {
31
- "@lingui/react": "^3.13.2",
32
- "@lingui/core": "^3.13.2",
31
+ "@lingui/react": "^4.2.1",
32
+ "@lingui/core": "^4.2.1",
33
+ "@lingui/macro": "^4.2.1",
33
34
  "@mui/material": "^5.10.16",
34
35
  "framer-motion": "^10.0.0",
35
36
  "next": "^13.2.0",