@vtex/faststore-plugin-buyer-portal 1.1.77 → 1.1.78
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 +1 -0
- package/package.json +1 -1
- package/src/features/addresses/clients/AddressesClient.ts +2 -2
- package/src/features/addresses/components/AddressForm/AddressForm.tsx +2 -2
- package/src/features/addresses/components/CreateAddressDrawer/CreateAddressDrawer.tsx +1 -1
- package/src/features/addresses/types/AddressData.ts +2 -2
- package/src/features/credit-cards/components/CreateCreditCardDrawer/CreateCreditCardDrawer.tsx +1 -1
- package/src/features/shared/utils/addresLabelToPropMapping.ts +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -107,7 +107,7 @@ export default class AddressesClient extends Client {
|
|
|
107
107
|
city: data.city,
|
|
108
108
|
state: data.state,
|
|
109
109
|
country: data.countryCode,
|
|
110
|
-
|
|
110
|
+
geoCoordinates: data.geoCoordinates,
|
|
111
111
|
types: data.types,
|
|
112
112
|
userId: customerId,
|
|
113
113
|
isActive: true,
|
|
@@ -140,7 +140,7 @@ export default class AddressesClient extends Client {
|
|
|
140
140
|
city: data.city,
|
|
141
141
|
state: data.state,
|
|
142
142
|
country: data.countryCode,
|
|
143
|
-
|
|
143
|
+
geoCoordinates: data.geoCoordinates,
|
|
144
144
|
types: data.types,
|
|
145
145
|
isActive: true,
|
|
146
146
|
};
|
|
@@ -268,9 +268,9 @@ export const AddressForm = ({
|
|
|
268
268
|
{isEdit && (
|
|
269
269
|
<InputText
|
|
270
270
|
label="Geo coordinates (Optional)"
|
|
271
|
-
value={address.
|
|
271
|
+
value={address.geoCoordinates}
|
|
272
272
|
onChange={(event) =>
|
|
273
|
-
setAddress({ ...address,
|
|
273
|
+
setAddress({ ...address, geoCoordinates: event.target.value })
|
|
274
274
|
}
|
|
275
275
|
/>
|
|
276
276
|
)}
|
|
@@ -20,7 +20,7 @@ export type AddressOption = {
|
|
|
20
20
|
|
|
21
21
|
export type AddressData = AddressSummaryData &
|
|
22
22
|
AddressOption & {
|
|
23
|
-
|
|
23
|
+
geoCoordinates: string;
|
|
24
24
|
locations: string[];
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -93,7 +93,7 @@ export type AddressInput = {
|
|
|
93
93
|
countryCode: string;
|
|
94
94
|
zip: string;
|
|
95
95
|
state: string;
|
|
96
|
-
|
|
96
|
+
geoCoordinates: string;
|
|
97
97
|
locations?: string[];
|
|
98
98
|
city: string;
|
|
99
99
|
types: string[];
|