@salla.sa/ui-address-autocomplete-widget 1.1.1 → 1.1.3
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/dist/index.js +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -932,7 +932,7 @@ let d = class extends C {
|
|
|
932
932
|
const e = this.abortController.signal;
|
|
933
933
|
this.isLoading = !0, this.error = null;
|
|
934
934
|
try {
|
|
935
|
-
const i = { input: t };
|
|
935
|
+
const i = { input: t, language: this.language };
|
|
936
936
|
this.sessionToken && (i.sessiontoken = this.sessionToken), this.country && this.country.length > 0 && (i.country = this.country.join(",")), this.types && this.types.length > 0 && (i.types = this.types.join("|")), this.locationBias && this.locationBias.radius && this.locationBias.center && (i.location = `${this.locationBias.center.lat},${this.locationBias.center.lng}`, i.radius = this.locationBias.radius.toString()), this.strictBounds && (i.strictbounds = "true");
|
|
937
937
|
const r = new URLSearchParams(i), o = `${this.proxyUrl || ""}/store/v1/checkout/address/autocomplete/query?${r.toString()}`, a = {};
|
|
938
938
|
this.authToken && (a.Authorization = `Bearer ${this.authToken}`);
|
|
@@ -965,7 +965,7 @@ let d = class extends C {
|
|
|
965
965
|
async fetchPlaceDetails(t) {
|
|
966
966
|
this.isLoading = !0, this.error = null;
|
|
967
967
|
try {
|
|
968
|
-
const e = { place_id: t };
|
|
968
|
+
const e = { place_id: t, language: this.language };
|
|
969
969
|
this.fields && this.fields.length > 0 && (e.fields = this.fields.join(",")), this.sessionToken && (e.sessiontoken = this.sessionToken), this.country && this.country.length > 0 && (e.country = this.country.join(",")), this.resolve && (e.resolve = "true");
|
|
970
970
|
const i = new URLSearchParams(e), s = `${this.proxyUrl || ""}/store/v1/checkout/address/autocomplete/details?${i.toString()}`, o = {};
|
|
971
971
|
this.authToken && (o.Authorization = `Bearer ${this.authToken}`);
|
|
@@ -1474,7 +1474,8 @@ d.styles = ve`
|
|
|
1474
1474
|
outline: none;
|
|
1475
1475
|
transition: all 0.2s;
|
|
1476
1476
|
box-sizing: border-box;
|
|
1477
|
-
|
|
1477
|
+
height: var(--salla-autocomplete-input-height, auto);
|
|
1478
|
+
min-height: var(--salla-autocomplete-input-height, 44px);
|
|
1478
1479
|
-webkit-appearance: none;
|
|
1479
1480
|
appearance: none;
|
|
1480
1481
|
}
|