@thryveai/theme-interfaces 1.4.6 → 1.4.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thryveai/theme-interfaces",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "description": "Shared Interfaces for all ThryveAi storefront retailer themes.",
5
5
  "scripts": {
6
6
  "build": "tsc",
@@ -11,4 +11,4 @@
11
11
  "devDependencies": {
12
12
  "typescript": "4.3.5"
13
13
  }
14
- }
14
+ }
@@ -61,6 +61,7 @@ export interface IRetailerSettings {
61
61
  promoTemplateVersion?: number;
62
62
  registrationFields?: IRegistrationField[];
63
63
  restrictMapPlacesResults?: IRestrictMapPlaces;
64
+ googleAutocompleteSettings?: IGoogleAutocompleteSettings;
64
65
  retailerCountry?: IRetailerCountry;
65
66
  retailerName: string;
66
67
  searchPreview?: ISearchPreviewVisibility;
@@ -191,6 +192,7 @@ export interface IDefaultRetailerSettings {
191
192
  promoTemplateVersion: number;
192
193
  registrationFields: IRegistrationField[];
193
194
  restrictMapPlacesResults: IRestrictMapPlaces;
195
+ googleAutocompleteSettings: IGoogleAutocompleteSettings;
194
196
  retailerCountry: IRetailerCountry;
195
197
  retailerName: string;
196
198
  searchPreview: ISearchPreviewVisibility;
@@ -201,6 +203,19 @@ export interface IDefaultRetailerSettings {
201
203
  subHeaderHeight: number;
202
204
  useAddressValidation: boolean;
203
205
  }
206
+ export interface IGoogleAutocompleteSettings {
207
+ types?: IGoogleAutocompleteTypes;
208
+ bounds?: IGoogleAutocompleteBounds;
209
+ strictBounds?: boolean;
210
+ restrictCountries?: string[];
211
+ }
212
+ interface IGoogleAutocompleteBounds {
213
+ south_latitude: number;
214
+ west_longitude: number;
215
+ north_latitude: number;
216
+ east_longitude: number;
217
+ }
218
+ declare type IGoogleAutocompleteTypes = "geocode" | "address" | "establishment" | "(regions)" | "(cities)";
204
219
  export interface ICtaButtons {
205
220
  iconAlignment: "left" | "right" | null;
206
221
  iconName: IconNames;