@thryveai/theme-interfaces 1.4.3 → 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.
|
@@ -90,17 +90,32 @@ export interface IDefaultThemeInterface {
|
|
|
90
90
|
borderRadius: string;
|
|
91
91
|
clearBtnColor: string;
|
|
92
92
|
searchButton: {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
desktop: {
|
|
94
|
+
static: {
|
|
95
|
+
color: string;
|
|
96
|
+
backgroundColor: string;
|
|
97
|
+
};
|
|
98
|
+
hover: {
|
|
99
|
+
color: string;
|
|
100
|
+
backgroundColor: string;
|
|
101
|
+
};
|
|
102
|
+
clicked: {
|
|
103
|
+
color: string;
|
|
104
|
+
backgroundColor: string;
|
|
105
|
+
};
|
|
96
106
|
};
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
107
|
+
tablet: {
|
|
108
|
+
static: {
|
|
109
|
+
color: string;
|
|
110
|
+
};
|
|
111
|
+
clicked: {
|
|
112
|
+
color: string;
|
|
113
|
+
};
|
|
100
114
|
};
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
115
|
+
mobile: {
|
|
116
|
+
static: {
|
|
117
|
+
color: string;
|
|
118
|
+
};
|
|
104
119
|
};
|
|
105
120
|
};
|
|
106
121
|
suggestions: {
|
|
@@ -122,15 +137,6 @@ export interface IDefaultThemeInterface {
|
|
|
122
137
|
backgroundColor: string;
|
|
123
138
|
};
|
|
124
139
|
};
|
|
125
|
-
notifications: {
|
|
126
|
-
counter: {
|
|
127
|
-
backgroundColor: string;
|
|
128
|
-
};
|
|
129
|
-
text: {
|
|
130
|
-
color: string;
|
|
131
|
-
hoverColor: string;
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
140
|
};
|
|
135
141
|
headerActionLinks: IHeaderActionLinksProps;
|
|
136
142
|
headerLinks: IHeaderLinksProps;
|
|
@@ -154,6 +160,15 @@ export interface IDefaultThemeInterface {
|
|
|
154
160
|
bgColor: string;
|
|
155
161
|
};
|
|
156
162
|
};
|
|
163
|
+
notifications: {
|
|
164
|
+
counter: {
|
|
165
|
+
backgroundColor: string;
|
|
166
|
+
};
|
|
167
|
+
text: {
|
|
168
|
+
color: string;
|
|
169
|
+
hoverColor: string;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
157
172
|
};
|
|
158
173
|
body: {
|
|
159
174
|
fontSize: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thryveai/theme-interfaces",
|
|
3
|
-
"version": "1.4.
|
|
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
|
+
}
|
|
@@ -2,6 +2,7 @@ import { IconNames, PaymentCards } from "./icons.interfaces";
|
|
|
2
2
|
export interface IRetailerSettings {
|
|
3
3
|
accountPage?: IAccountPageSettings;
|
|
4
4
|
advertSettings?: IAdvertSettings;
|
|
5
|
+
TimeslotModalSettings?: ITimeslotModalSettings;
|
|
5
6
|
addresses?: {
|
|
6
7
|
addressValidationTypes?: IAddressValidationTypes;
|
|
7
8
|
canadianAddressCompleteKey?: string | undefined;
|
|
@@ -60,6 +61,7 @@ export interface IRetailerSettings {
|
|
|
60
61
|
promoTemplateVersion?: number;
|
|
61
62
|
registrationFields?: IRegistrationField[];
|
|
62
63
|
restrictMapPlacesResults?: IRestrictMapPlaces;
|
|
64
|
+
googleAutocompleteSettings?: IGoogleAutocompleteSettings;
|
|
63
65
|
retailerCountry?: IRetailerCountry;
|
|
64
66
|
retailerName: string;
|
|
65
67
|
searchPreview?: ISearchPreviewVisibility;
|
|
@@ -108,6 +110,11 @@ export interface IPageAdvertsRow {
|
|
|
108
110
|
[row: number]: IAdvertsData;
|
|
109
111
|
}
|
|
110
112
|
export declare type IScreenType = "mobile" | "tablet" | "desktop";
|
|
113
|
+
export interface ITimeslotModalSettings {
|
|
114
|
+
showOnAddToCart: boolean;
|
|
115
|
+
timeslotRequiredToAddToCart: boolean;
|
|
116
|
+
timeslotRequiredToViewCartReview: boolean;
|
|
117
|
+
}
|
|
111
118
|
export declare type IAdvertsData = {
|
|
112
119
|
[screen in IScreenType]?: string;
|
|
113
120
|
};
|
|
@@ -139,6 +146,7 @@ export interface IDefaultRetailerSettings {
|
|
|
139
146
|
addressValidationTypes: IAddressValidationTypes;
|
|
140
147
|
addresses: IAddressesSettings;
|
|
141
148
|
advertSettings: IAdvertSettings;
|
|
149
|
+
timeslotModalSettings: ITimeslotModalSettings;
|
|
142
150
|
allowInStorePurchases: boolean;
|
|
143
151
|
allowPastPurchases: boolean;
|
|
144
152
|
buildNumber: string;
|
|
@@ -184,6 +192,7 @@ export interface IDefaultRetailerSettings {
|
|
|
184
192
|
promoTemplateVersion: number;
|
|
185
193
|
registrationFields: IRegistrationField[];
|
|
186
194
|
restrictMapPlacesResults: IRestrictMapPlaces;
|
|
195
|
+
googleAutocompleteSettings: IGoogleAutocompleteSettings;
|
|
187
196
|
retailerCountry: IRetailerCountry;
|
|
188
197
|
retailerName: string;
|
|
189
198
|
searchPreview: ISearchPreviewVisibility;
|
|
@@ -194,6 +203,19 @@ export interface IDefaultRetailerSettings {
|
|
|
194
203
|
subHeaderHeight: number;
|
|
195
204
|
useAddressValidation: boolean;
|
|
196
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)";
|
|
197
219
|
export interface ICtaButtons {
|
|
198
220
|
iconAlignment: "left" | "right" | null;
|
|
199
221
|
iconName: IconNames;
|
package/theme.interfaces.d.ts
CHANGED
|
@@ -90,17 +90,32 @@ export interface IThemeInterface {
|
|
|
90
90
|
borderRadius?: string;
|
|
91
91
|
clearBtnColor?: string;
|
|
92
92
|
searchButton?: {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
desktop?: {
|
|
94
|
+
static?: {
|
|
95
|
+
color?: string;
|
|
96
|
+
backgroundColor?: string;
|
|
97
|
+
};
|
|
98
|
+
hover?: {
|
|
99
|
+
color?: string;
|
|
100
|
+
backgroundColor?: string;
|
|
101
|
+
};
|
|
102
|
+
clicked?: {
|
|
103
|
+
color?: string;
|
|
104
|
+
backgroundColor?: string;
|
|
105
|
+
};
|
|
96
106
|
};
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
107
|
+
tablet?: {
|
|
108
|
+
static?: {
|
|
109
|
+
color?: string;
|
|
110
|
+
};
|
|
111
|
+
clicked?: {
|
|
112
|
+
color?: string;
|
|
113
|
+
};
|
|
100
114
|
};
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
115
|
+
mobile?: {
|
|
116
|
+
static?: {
|
|
117
|
+
color?: string;
|
|
118
|
+
};
|
|
104
119
|
};
|
|
105
120
|
};
|
|
106
121
|
suggestions?: {
|