@thryveai/theme-interfaces 1.4.4 → 1.4.8
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/README.md +29 -29
- package/default-theme.interface.d.ts +24 -9
- package/package.json +14 -14
- package/retailer-settings.interfaces.d.ts +31 -0
- package/theme.interfaces.d.ts +24 -9
package/README.md
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
#V8 Theme Interfaces
|
|
2
|
-
|
|
3
|
-
interfaces for all MI9 Retailer Themes.
|
|
4
|
-
|
|
5
|
-
###icons.interfaces
|
|
6
|
-
List of all icons used inside the ui projects.
|
|
7
|
-
|
|
8
|
-
###retailer-settings.interfaces
|
|
9
|
-
more info here
|
|
10
|
-
https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo
|
|
11
|
-
###theme.interfaces
|
|
12
|
-
The interface for each theme, colors, fonts, sizes and other css properties.
|
|
13
|
-
|
|
14
|
-
#To Build Project
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
npm install
|
|
18
|
-
npm run build
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
#To Publish npm package
|
|
22
|
-
```
|
|
23
|
-
npm login
|
|
24
|
-
npm publish
|
|
25
|
-
```
|
|
26
|
-
or
|
|
27
|
-
```
|
|
28
|
-
npm run push
|
|
29
|
-
```
|
|
1
|
+
#V8 Theme Interfaces
|
|
2
|
+
|
|
3
|
+
interfaces for all MI9 Retailer Themes.
|
|
4
|
+
|
|
5
|
+
###icons.interfaces
|
|
6
|
+
List of all icons used inside the ui projects.
|
|
7
|
+
|
|
8
|
+
###retailer-settings.interfaces
|
|
9
|
+
more info here
|
|
10
|
+
https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo
|
|
11
|
+
###theme.interfaces
|
|
12
|
+
The interface for each theme, colors, fonts, sizes and other css properties.
|
|
13
|
+
|
|
14
|
+
#To Build Project
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
npm install
|
|
18
|
+
npm run build
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
#To Publish npm package
|
|
22
|
+
```
|
|
23
|
+
npm login
|
|
24
|
+
npm publish
|
|
25
|
+
```
|
|
26
|
+
or
|
|
27
|
+
```
|
|
28
|
+
npm run push
|
|
29
|
+
```
|
|
@@ -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: {
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@thryveai/theme-interfaces",
|
|
3
|
-
"version": "1.4.
|
|
4
|
-
"description": "Shared Interfaces for all ThryveAi storefront retailer themes.",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "tsc",
|
|
7
|
-
"push": "npm run build && npm publish"
|
|
8
|
-
},
|
|
9
|
-
"author": "Simon Markey",
|
|
10
|
-
"license": "ISC",
|
|
11
|
-
"devDependencies": {
|
|
12
|
-
"typescript": "4.3.5"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@thryveai/theme-interfaces",
|
|
3
|
+
"version": "1.4.8",
|
|
4
|
+
"description": "Shared Interfaces for all ThryveAi storefront retailer themes.",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "tsc",
|
|
7
|
+
"push": "npm run build && npm publish"
|
|
8
|
+
},
|
|
9
|
+
"author": "Simon Markey",
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"typescript": "4.3.5"
|
|
13
|
+
}
|
|
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;
|
|
@@ -24,6 +25,7 @@ export interface IRetailerSettings {
|
|
|
24
25
|
checkoutV1?: boolean;
|
|
25
26
|
checkoutValidation?: ICheckoutValidation;
|
|
26
27
|
ctaButtons?: ICtaButtons;
|
|
28
|
+
daysToRemainSignedIn?: number;
|
|
27
29
|
defaultCountry?: IDefaultCounty;
|
|
28
30
|
defaultSearchParams?: IDefaultSearchParams;
|
|
29
31
|
defaultShoppingMode?: "pickup" | "planning" | "delivery";
|
|
@@ -56,10 +58,12 @@ export interface IRetailerSettings {
|
|
|
56
58
|
minimumCreditCardAmount?: number;
|
|
57
59
|
nutritionZone?: INutritionZone;
|
|
58
60
|
paymentCards?: IPaymentCards;
|
|
61
|
+
pdpDetailsLayout?: IPdpDetailsLayout;
|
|
59
62
|
productCardTitleHeight?: number;
|
|
60
63
|
promoTemplateVersion?: number;
|
|
61
64
|
registrationFields?: IRegistrationField[];
|
|
62
65
|
restrictMapPlacesResults?: IRestrictMapPlaces;
|
|
66
|
+
googleAutocompleteSettings?: IGoogleAutocompleteSettings;
|
|
63
67
|
retailerCountry?: IRetailerCountry;
|
|
64
68
|
retailerName: string;
|
|
65
69
|
searchPreview?: ISearchPreviewVisibility;
|
|
@@ -108,6 +112,11 @@ export interface IPageAdvertsRow {
|
|
|
108
112
|
[row: number]: IAdvertsData;
|
|
109
113
|
}
|
|
110
114
|
export declare type IScreenType = "mobile" | "tablet" | "desktop";
|
|
115
|
+
export interface ITimeslotModalSettings {
|
|
116
|
+
showOnAddToCart: boolean;
|
|
117
|
+
timeslotRequiredToAddToCart: boolean;
|
|
118
|
+
timeslotRequiredToViewCartReview: boolean;
|
|
119
|
+
}
|
|
111
120
|
export declare type IAdvertsData = {
|
|
112
121
|
[screen in IScreenType]?: string;
|
|
113
122
|
};
|
|
@@ -139,6 +148,7 @@ export interface IDefaultRetailerSettings {
|
|
|
139
148
|
addressValidationTypes: IAddressValidationTypes;
|
|
140
149
|
addresses: IAddressesSettings;
|
|
141
150
|
advertSettings: IAdvertSettings;
|
|
151
|
+
timeslotModalSettings: ITimeslotModalSettings;
|
|
142
152
|
allowInStorePurchases: boolean;
|
|
143
153
|
allowPastPurchases: boolean;
|
|
144
154
|
buildNumber: string;
|
|
@@ -148,6 +158,7 @@ export interface IDefaultRetailerSettings {
|
|
|
148
158
|
checkoutV1: boolean;
|
|
149
159
|
checkoutValidation: ICheckoutValidation;
|
|
150
160
|
ctaButtons: ICtaButtons | null | undefined;
|
|
161
|
+
daysToRemainSignedIn: number;
|
|
151
162
|
defaultCountry: IDefaultCounty;
|
|
152
163
|
defaultSearchParams: IDefaultSearchParams;
|
|
153
164
|
defaultShoppingMode: "pickup" | "planning" | "delivery";
|
|
@@ -180,10 +191,12 @@ export interface IDefaultRetailerSettings {
|
|
|
180
191
|
minimumCreditCardAmount: number;
|
|
181
192
|
nutritionZone: INutritionZone;
|
|
182
193
|
paymentCards: IPaymentCards;
|
|
194
|
+
pdpDetailsLayout: IPdpDetailsLayout;
|
|
183
195
|
productCardTitleHeight: number;
|
|
184
196
|
promoTemplateVersion: number;
|
|
185
197
|
registrationFields: IRegistrationField[];
|
|
186
198
|
restrictMapPlacesResults: IRestrictMapPlaces;
|
|
199
|
+
googleAutocompleteSettings: IGoogleAutocompleteSettings;
|
|
187
200
|
retailerCountry: IRetailerCountry;
|
|
188
201
|
retailerName: string;
|
|
189
202
|
searchPreview: ISearchPreviewVisibility;
|
|
@@ -194,6 +207,19 @@ export interface IDefaultRetailerSettings {
|
|
|
194
207
|
subHeaderHeight: number;
|
|
195
208
|
useAddressValidation: boolean;
|
|
196
209
|
}
|
|
210
|
+
export interface IGoogleAutocompleteSettings {
|
|
211
|
+
types?: IGoogleAutocompleteTypes;
|
|
212
|
+
bounds?: IGoogleAutocompleteBounds;
|
|
213
|
+
strictBounds?: boolean;
|
|
214
|
+
restrictCountries?: string[];
|
|
215
|
+
}
|
|
216
|
+
interface IGoogleAutocompleteBounds {
|
|
217
|
+
south_latitude: number;
|
|
218
|
+
west_longitude: number;
|
|
219
|
+
north_latitude: number;
|
|
220
|
+
east_longitude: number;
|
|
221
|
+
}
|
|
222
|
+
declare type IGoogleAutocompleteTypes = "geocode" | "address" | "establishment" | "(regions)" | "(cities)";
|
|
197
223
|
export interface ICtaButtons {
|
|
198
224
|
iconAlignment: "left" | "right" | null;
|
|
199
225
|
iconName: IconNames;
|
|
@@ -309,4 +335,9 @@ export interface IAddressIntegration {
|
|
|
309
335
|
addressFinderType: IAddressFinderType;
|
|
310
336
|
}
|
|
311
337
|
export declare type IAddressFinderType = "AUS" | "EU" | "IE" | "US" | "UK" | "CA";
|
|
338
|
+
export interface IPdpDetailsLayout {
|
|
339
|
+
desktop: string[];
|
|
340
|
+
mobileTab1: string[];
|
|
341
|
+
mobileTab2: string[];
|
|
342
|
+
}
|
|
312
343
|
export {};
|
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?: {
|