@thryveai/theme-interfaces 2.0.3 → 2.2.0
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/dist/SFUISettingsTemplate.AdminUi.d.ts +3 -0
- package/dist/SFUISettingsTemplate.AdminUi.js +686 -0
- package/dist/STSSettingsTemplate.AdminUi.d.ts +2 -0
- package/dist/STSSettingsTemplate.AdminUi.js +94 -0
- package/dist/Storefront/SFUIImagesTemplate.AdminUi.d.ts +2 -0
- package/dist/Storefront/SFUIImagesTemplate.AdminUi.js +112 -0
- package/dist/Storefront/SFUISettingsTemplate.AdminUi.d.ts +3 -0
- package/dist/Storefront/SFUISettingsTemplate.AdminUi.js +687 -0
- package/dist/Storefront/defaultImagesStorefront.d.ts +3 -0
- package/dist/Storefront/defaultImagesStorefront.js +96 -0
- package/dist/Storefront/defaultSettingsStorefront.d.ts +3 -0
- package/dist/Storefront/defaultSettingsStorefront.js +242 -0
- package/dist/defaultSettings.js +1 -1
- package/dist/defaultSettingsStorefront.d.ts +3 -0
- package/dist/defaultSettingsStorefront.js +242 -0
- package/dist/defaultSettingsSts.d.ts +2 -0
- package/dist/defaultSettingsSts.js +8 -0
- package/dist/index.d.ts +15 -8
- package/dist/index.js +16 -6
- package/dist/interfaces/admin-images-interfaces.d.ts +11 -0
- package/dist/interfaces/admin-images-interfaces.js +2 -0
- package/dist/interfaces/admin-settings-interfaces.d.ts +16 -1
- package/dist/interfaces/default-theme.interface.d.ts +2 -0
- package/dist/interfaces/index.d.ts +11 -0
- package/dist/interfaces/index.js +5 -0
- package/dist/interfaces/sts-settings.interfaces.d.ts +6 -0
- package/dist/interfaces/sts-settings.interfaces.js +2 -0
- package/dist/interfaces/theme.interfaces.d.ts +2 -0
- package/dist/sts/STSImagesTemplate.AdminUi.d.ts +2 -0
- package/dist/sts/STSImagesTemplate.AdminUi.js +50 -0
- package/dist/sts/STSSettingsTemplate.AdminUi.d.ts +2 -0
- package/dist/sts/STSSettingsTemplate.AdminUi.js +30 -0
- package/dist/sts/defaultSettingsSts.d.ts +3 -0
- package/dist/sts/defaultSettingsSts.js +9 -0
- package/package.json +18 -18
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var imageBucket = "https://www";
|
|
4
|
+
var DefaultImagesSFUI = {
|
|
5
|
+
icons: "".concat(imageBucket, "/icons.js"),
|
|
6
|
+
logos: {
|
|
7
|
+
primary: "".concat(imageBucket, "/img/primary-logo.png"),
|
|
8
|
+
primaryMobile: "".concat(imageBucket, "/img/primary-logo.png"),
|
|
9
|
+
sts: "".concat(imageBucket, "/img/primary-logo.png"),
|
|
10
|
+
stsMobile: "".concat(imageBucket, "/img/primary-logo.png"),
|
|
11
|
+
},
|
|
12
|
+
confirmationPageImage: "".concat(imageBucket, "/img/CheckoutConfirmation_DesktopBG.png"),
|
|
13
|
+
stsCheckBox: {
|
|
14
|
+
primary: "".concat(imageBucket, "/img/select-check_p1.png"),
|
|
15
|
+
empty: "".concat(imageBucket, "/img/select-empty.png"),
|
|
16
|
+
success: "".concat(imageBucket, "/img/select-check_success.png"),
|
|
17
|
+
},
|
|
18
|
+
favicon: "".concat(imageBucket, "/img/mi9-favicon.ico"),
|
|
19
|
+
stsFavicon: "".concat(imageBucket, "/img/mi9-favicon.ico"),
|
|
20
|
+
rewards: "".concat(imageBucket, "/img/rewards-logo.svg"),
|
|
21
|
+
missingImg: {
|
|
22
|
+
recipes: "".concat(imageBucket, "/img/missing-Image-Recipe.svg"),
|
|
23
|
+
x2: "".concat(imageBucket, "/img/missing-Image-SquareX2.svg"),
|
|
24
|
+
x3: "".concat(imageBucket, "/img/missing-Image-SquareX3.svg"),
|
|
25
|
+
square: "".concat(imageBucket, "/img/missing-Image-Square.svg"),
|
|
26
|
+
},
|
|
27
|
+
verifySiteImage: "".concat(imageBucket, "/img/verify-footer-image.png"),
|
|
28
|
+
favicons: [
|
|
29
|
+
{
|
|
30
|
+
rel: "apple-touch-icon",
|
|
31
|
+
sizes: "57x57",
|
|
32
|
+
href: "".concat(imageBucket, "/favicons/apple-icon-57x57.png"),
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
rel: "apple-touch-icon",
|
|
36
|
+
sizes: "60x60",
|
|
37
|
+
href: "".concat(imageBucket, "/favicons/apple-icon-60x60.png"),
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
rel: "apple-touch-icon",
|
|
41
|
+
sizes: "72x72",
|
|
42
|
+
href: "".concat(imageBucket, "/favicons/apple-icon-72x72.png"),
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
rel: "apple-touch-icon",
|
|
46
|
+
sizes: "76x76",
|
|
47
|
+
href: "".concat(imageBucket, "/favicons/apple-icon-76x76.png"),
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
rel: "apple-touch-icon",
|
|
51
|
+
sizes: "114x114",
|
|
52
|
+
href: "".concat(imageBucket, "/favicons/apple-icon-114x114.png"),
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
rel: "apple-touch-icon",
|
|
56
|
+
sizes: "120x120",
|
|
57
|
+
href: "".concat(imageBucket, "/favicons/apple-icon-120x120.png"),
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
rel: "apple-touch-icon",
|
|
61
|
+
sizes: "144x144",
|
|
62
|
+
href: "".concat(imageBucket, "/favicons/apple-icon-144x144.png"),
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
rel: "apple-touch-icon",
|
|
66
|
+
sizes: "152x152",
|
|
67
|
+
href: "".concat(imageBucket, "/favicons/apple-icon-152x152.png"),
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
rel: "apple-touch-icon",
|
|
71
|
+
sizes: "180x180",
|
|
72
|
+
href: "".concat(imageBucket, "/favicons/apple-icon-180x180.png"),
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
rel: "icon",
|
|
76
|
+
sizes: "192x192",
|
|
77
|
+
href: "".concat(imageBucket, "/favicons/android-icon-192x192.png"),
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
rel: "icon",
|
|
81
|
+
sizes: "32x32",
|
|
82
|
+
href: "".concat(imageBucket, "/favicons/favicon-32x32.png"),
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
rel: "icon",
|
|
86
|
+
sizes: "96x96",
|
|
87
|
+
href: "".concat(imageBucket, "/favicons/favicon-96x96.png"),
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
rel: "icon",
|
|
91
|
+
sizes: "16x16",
|
|
92
|
+
href: "".concat(imageBucket, "/favicons/favicon-16x16.png"),
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
};
|
|
96
|
+
exports.default = DefaultImagesSFUI;
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var DefaultConfigSFUI = {
|
|
4
|
+
advertSettings: {},
|
|
5
|
+
timeslotModalSettings: {
|
|
6
|
+
showOnAddToCart: false,
|
|
7
|
+
timeslotRequiredToAddToCart: false,
|
|
8
|
+
timeslotRequiredToViewCartReview: false,
|
|
9
|
+
},
|
|
10
|
+
accountPage: {
|
|
11
|
+
loyaltyTab: {
|
|
12
|
+
disabledEdit: false,
|
|
13
|
+
enabled: false,
|
|
14
|
+
loyaltyNumberLength: 11,
|
|
15
|
+
loyaltyNumberPrefix: "",
|
|
16
|
+
loyaltyValidationType: [],
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
addresses: {
|
|
20
|
+
addressValidationTypes: {
|
|
21
|
+
addressLine1: ["alphaNumeric", "required"],
|
|
22
|
+
addressLine2: ["alphaNumeric"],
|
|
23
|
+
city: ["alphaNumeric", "required"],
|
|
24
|
+
countyProvinceState: ["usState", "required"],
|
|
25
|
+
familyName: ["alphaOnly", "required"],
|
|
26
|
+
firstName: ["alphaOnly", "required"],
|
|
27
|
+
instructions: ["alphaNumeric"],
|
|
28
|
+
phoneNumber: ["usPhone", "required"],
|
|
29
|
+
postCode: ["usPostCode", "required"],
|
|
30
|
+
},
|
|
31
|
+
canadianAddressCompleteKey: undefined,
|
|
32
|
+
eircodeUrl: undefined,
|
|
33
|
+
integration: {
|
|
34
|
+
addNewAddressUrl: undefined,
|
|
35
|
+
deleteAddressUrl: undefined,
|
|
36
|
+
editAddressUrl: undefined,
|
|
37
|
+
},
|
|
38
|
+
useAddressValidation: true,
|
|
39
|
+
},
|
|
40
|
+
addressValidationTypes: {
|
|
41
|
+
addressLine1: ["alphaNumeric", "required"],
|
|
42
|
+
addressLine2: ["alphaNumeric"],
|
|
43
|
+
city: ["alphaNumeric", "required"],
|
|
44
|
+
countyProvinceState: ["usState", "required"],
|
|
45
|
+
familyName: ["alphaOnly", "required"],
|
|
46
|
+
firstName: ["alphaOnly", "required"],
|
|
47
|
+
instructions: ["alphaNumeric"],
|
|
48
|
+
phoneNumber: ["usPhone", "required"],
|
|
49
|
+
postCode: ["usPostCode", "required"],
|
|
50
|
+
},
|
|
51
|
+
addressIntegration: {
|
|
52
|
+
enabled: false,
|
|
53
|
+
addressFinderType: "AUS",
|
|
54
|
+
getAddressesUrl: "https://api.addressfinder.io/api/au/address/autocomplete/?key={AUS_ADDRESS_SERVICE_KEY}&secret={AUS_ADDRESS_SERVICE_SECRET}&q={searchQuery}&format=json&gnaf=1",
|
|
55
|
+
getLocationUrl: "https://api.addressfinder.io/api/au/address/metadata/?key={AUS_ADDRESS_SERVICE_KEY}&secret={AUS_ADDRESS_SERVICE_SECRET}&format=json&id={id}&au_paf=0&gps=0",
|
|
56
|
+
},
|
|
57
|
+
allowInStorePurchases: false,
|
|
58
|
+
allowPastPurchases: true,
|
|
59
|
+
buildNumber: "default",
|
|
60
|
+
cacheTimeMins: 1,
|
|
61
|
+
canadianAddressCompleteKey: undefined,
|
|
62
|
+
checkoutV1: false,
|
|
63
|
+
disableAddressOnDelivery: false,
|
|
64
|
+
favoritesV1: false,
|
|
65
|
+
checkout: {
|
|
66
|
+
numericPhonePayload: false,
|
|
67
|
+
},
|
|
68
|
+
checkoutValidation: {
|
|
69
|
+
instructions: ["alphaNumeric", "notWhiteSpacesOnly"],
|
|
70
|
+
phoneNumber: ["usPhone", "required"],
|
|
71
|
+
smsNumber: [],
|
|
72
|
+
},
|
|
73
|
+
ctaButtons: null,
|
|
74
|
+
defaultCountry: "USA",
|
|
75
|
+
defaultSearchParams: {
|
|
76
|
+
page: "1",
|
|
77
|
+
q: "*",
|
|
78
|
+
skip: "0",
|
|
79
|
+
take: "30",
|
|
80
|
+
},
|
|
81
|
+
defaultShoppingMode: "pickup",
|
|
82
|
+
defaultStoreLocation: {
|
|
83
|
+
latitude: 0,
|
|
84
|
+
longitude: 0,
|
|
85
|
+
},
|
|
86
|
+
disableTprPrice: false,
|
|
87
|
+
documentTitle: "ThryveAI Commerce",
|
|
88
|
+
eircode: undefined,
|
|
89
|
+
enable3dSecure: false,
|
|
90
|
+
enableGoogleTranslate: false,
|
|
91
|
+
enableNewsletterSignup: false,
|
|
92
|
+
enableNotifications: false,
|
|
93
|
+
enableVouchers: false,
|
|
94
|
+
errorLoggingLevel: "error",
|
|
95
|
+
externalStoreSelectorUrl: undefined,
|
|
96
|
+
flipp: null,
|
|
97
|
+
gtmId: undefined,
|
|
98
|
+
hideTaxOnSummary: false,
|
|
99
|
+
houseAccountRegExValidation: ".",
|
|
100
|
+
idpTarget: "_self",
|
|
101
|
+
idpUrl: undefined,
|
|
102
|
+
instacartUrl: undefined,
|
|
103
|
+
isPlanningOnly: false,
|
|
104
|
+
layout: {
|
|
105
|
+
footerVersion: "default",
|
|
106
|
+
},
|
|
107
|
+
limitProductCardTitleHeight: true,
|
|
108
|
+
loggingLevelClient: "error",
|
|
109
|
+
loggingLevelServer: "error",
|
|
110
|
+
mainHeaderHeight: 110,
|
|
111
|
+
mapZoom: 8,
|
|
112
|
+
minimumCreditCardAmount: 1.0,
|
|
113
|
+
nutritionZone: "us",
|
|
114
|
+
paymentCards: {
|
|
115
|
+
AmExpCard: true,
|
|
116
|
+
DiscoverCard: true,
|
|
117
|
+
MasterCard: true,
|
|
118
|
+
VisaCard: true,
|
|
119
|
+
},
|
|
120
|
+
pdpDetailsLayout: {
|
|
121
|
+
desktop: {
|
|
122
|
+
left: [
|
|
123
|
+
"productSalesInfo",
|
|
124
|
+
"productDescription",
|
|
125
|
+
"productIngredients",
|
|
126
|
+
"productNutrition",
|
|
127
|
+
"sodiumWarning",
|
|
128
|
+
"productNumber",
|
|
129
|
+
],
|
|
130
|
+
right: ["recommendations"],
|
|
131
|
+
},
|
|
132
|
+
mobile: {
|
|
133
|
+
left: [
|
|
134
|
+
"productSalesInfo",
|
|
135
|
+
"productDescription",
|
|
136
|
+
"productNumber",
|
|
137
|
+
"sodiumWarning",
|
|
138
|
+
"recommendations",
|
|
139
|
+
],
|
|
140
|
+
right: [
|
|
141
|
+
"productIngredients",
|
|
142
|
+
"productNutrition",
|
|
143
|
+
"recommendations",
|
|
144
|
+
"productNumber",
|
|
145
|
+
],
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
productCardTitleHeight: 40,
|
|
149
|
+
registrationFields: [],
|
|
150
|
+
retailerCountry: "us",
|
|
151
|
+
retailerName: "default",
|
|
152
|
+
daysToRemainSignedIn: 30,
|
|
153
|
+
searchPreview: {
|
|
154
|
+
desktop: {
|
|
155
|
+
products: true,
|
|
156
|
+
suggestions: true,
|
|
157
|
+
},
|
|
158
|
+
mobile: {
|
|
159
|
+
products: true,
|
|
160
|
+
suggestions: true,
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
secondTierAuthorization: undefined,
|
|
164
|
+
showCheckoutPromoCode: true,
|
|
165
|
+
showImgOnOrder: false,
|
|
166
|
+
smsNotifications: {
|
|
167
|
+
enabled: false,
|
|
168
|
+
getEnrollmentUrl: "",
|
|
169
|
+
postEnrollmentUrl: "",
|
|
170
|
+
},
|
|
171
|
+
subHeaderHeight: 0,
|
|
172
|
+
promoTemplateVersion: 1,
|
|
173
|
+
useAddressValidation: true,
|
|
174
|
+
restrictMapPlacesResults: {
|
|
175
|
+
fetchNearStoresSettings: {
|
|
176
|
+
kmRange: 20,
|
|
177
|
+
totalTake: 30,
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
globalAnimations: {
|
|
181
|
+
confetti: {
|
|
182
|
+
enableConfettiAnimation: true,
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
googleAutocompleteSettings: {},
|
|
186
|
+
smartbanner: {
|
|
187
|
+
enabled: false,
|
|
188
|
+
author: "",
|
|
189
|
+
button: "",
|
|
190
|
+
buttonUrlApple: "",
|
|
191
|
+
buttonUrlGoogle: "",
|
|
192
|
+
closeLabel: "",
|
|
193
|
+
iconApple: "",
|
|
194
|
+
iconGoogle: "",
|
|
195
|
+
price: "",
|
|
196
|
+
priceSuffixApple: "",
|
|
197
|
+
priceSuffixGoogle: "",
|
|
198
|
+
title: "",
|
|
199
|
+
},
|
|
200
|
+
features: { clientCache: false },
|
|
201
|
+
specialRequestItems: false,
|
|
202
|
+
additionalCharges: false,
|
|
203
|
+
sodiumWarning: {
|
|
204
|
+
isEnabled: false,
|
|
205
|
+
threshold: 2300,
|
|
206
|
+
},
|
|
207
|
+
productCards: {
|
|
208
|
+
gridRowLength: {
|
|
209
|
+
tablet: 3,
|
|
210
|
+
desktop: 5,
|
|
211
|
+
mobile: 1,
|
|
212
|
+
},
|
|
213
|
+
carouselsRowLength: {
|
|
214
|
+
desktop: 6,
|
|
215
|
+
tablet: 4,
|
|
216
|
+
mobile: 1,
|
|
217
|
+
},
|
|
218
|
+
productCard: {
|
|
219
|
+
enabled: false,
|
|
220
|
+
layouts: {
|
|
221
|
+
ContainersGrid: "default",
|
|
222
|
+
ContainersCarousel: "default",
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
layouts: {
|
|
227
|
+
cartSummary: {
|
|
228
|
+
showTaxTotal: true,
|
|
229
|
+
showTaxGroups: true,
|
|
230
|
+
},
|
|
231
|
+
couponGallery: {
|
|
232
|
+
enabled: false,
|
|
233
|
+
galleryIsIframe: false,
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
adminPanelOnly: {
|
|
237
|
+
bannerName: "",
|
|
238
|
+
logoUrl: "",
|
|
239
|
+
},
|
|
240
|
+
productCardv2: false,
|
|
241
|
+
};
|
|
242
|
+
exports.default = DefaultConfigSFUI;
|
package/dist/defaultSettings.js
CHANGED
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var DefaultConfigSFUI = {
|
|
4
|
+
advertSettings: {},
|
|
5
|
+
timeslotModalSettings: {
|
|
6
|
+
showOnAddToCart: false,
|
|
7
|
+
timeslotRequiredToAddToCart: false,
|
|
8
|
+
timeslotRequiredToViewCartReview: false
|
|
9
|
+
},
|
|
10
|
+
accountPage: {
|
|
11
|
+
loyaltyTab: {
|
|
12
|
+
disabledEdit: false,
|
|
13
|
+
enabled: false,
|
|
14
|
+
loyaltyNumberLength: 11,
|
|
15
|
+
loyaltyNumberPrefix: '',
|
|
16
|
+
loyaltyValidationType: []
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
addresses: {
|
|
20
|
+
addressValidationTypes: {
|
|
21
|
+
addressLine1: ['alphaNumeric', 'required'],
|
|
22
|
+
addressLine2: ['alphaNumeric'],
|
|
23
|
+
city: ['alphaNumeric', 'required'],
|
|
24
|
+
countyProvinceState: ['usState', 'required'],
|
|
25
|
+
familyName: ['alphaOnly', 'required'],
|
|
26
|
+
firstName: ['alphaOnly', 'required'],
|
|
27
|
+
instructions: ['alphaNumeric'],
|
|
28
|
+
phoneNumber: ['usPhone', 'required'],
|
|
29
|
+
postCode: ['usPostCode', 'required']
|
|
30
|
+
},
|
|
31
|
+
canadianAddressCompleteKey: undefined,
|
|
32
|
+
eircodeUrl: undefined,
|
|
33
|
+
integration: {
|
|
34
|
+
addNewAddressUrl: undefined,
|
|
35
|
+
deleteAddressUrl: undefined,
|
|
36
|
+
editAddressUrl: undefined
|
|
37
|
+
},
|
|
38
|
+
useAddressValidation: true
|
|
39
|
+
},
|
|
40
|
+
addressValidationTypes: {
|
|
41
|
+
addressLine1: ['alphaNumeric', 'required'],
|
|
42
|
+
addressLine2: ['alphaNumeric'],
|
|
43
|
+
city: ['alphaNumeric', 'required'],
|
|
44
|
+
countyProvinceState: ['usState', 'required'],
|
|
45
|
+
familyName: ['alphaOnly', 'required'],
|
|
46
|
+
firstName: ['alphaOnly', 'required'],
|
|
47
|
+
instructions: ['alphaNumeric'],
|
|
48
|
+
phoneNumber: ['usPhone', 'required'],
|
|
49
|
+
postCode: ['usPostCode', 'required']
|
|
50
|
+
},
|
|
51
|
+
addressIntegration: {
|
|
52
|
+
enabled: false,
|
|
53
|
+
addressFinderType: 'AUS',
|
|
54
|
+
getAddressesUrl: 'https://api.addressfinder.io/api/au/address/autocomplete/?key={AUS_ADDRESS_SERVICE_KEY}&secret={AUS_ADDRESS_SERVICE_SECRET}&q={searchQuery}&format=json&gnaf=1',
|
|
55
|
+
getLocationUrl: 'https://api.addressfinder.io/api/au/address/metadata/?key={AUS_ADDRESS_SERVICE_KEY}&secret={AUS_ADDRESS_SERVICE_SECRET}&format=json&id={id}&au_paf=0&gps=0'
|
|
56
|
+
},
|
|
57
|
+
allowInStorePurchases: false,
|
|
58
|
+
allowPastPurchases: true,
|
|
59
|
+
buildNumber: 'default',
|
|
60
|
+
cacheTimeMins: 1,
|
|
61
|
+
canadianAddressCompleteKey: undefined,
|
|
62
|
+
checkoutV1: false,
|
|
63
|
+
disableAddressOnDelivery: false,
|
|
64
|
+
favoritesV1: false,
|
|
65
|
+
checkout: {
|
|
66
|
+
numericPhonePayload: false
|
|
67
|
+
},
|
|
68
|
+
checkoutValidation: {
|
|
69
|
+
instructions: ['alphaNumeric'],
|
|
70
|
+
phoneNumber: ['usPhone', 'required'],
|
|
71
|
+
smsNumber: []
|
|
72
|
+
},
|
|
73
|
+
ctaButtons: null,
|
|
74
|
+
defaultCountry: 'USA',
|
|
75
|
+
defaultSearchParams: {
|
|
76
|
+
page: '1',
|
|
77
|
+
q: '*',
|
|
78
|
+
skip: '0',
|
|
79
|
+
take: '30'
|
|
80
|
+
},
|
|
81
|
+
defaultShoppingMode: 'pickup',
|
|
82
|
+
defaultStoreLocation: {
|
|
83
|
+
latitude: 0,
|
|
84
|
+
longitude: 0
|
|
85
|
+
},
|
|
86
|
+
disableTprPrice: false,
|
|
87
|
+
documentTitle: 'ThryveAI Commerce',
|
|
88
|
+
eircode: undefined,
|
|
89
|
+
enable3dSecure: false,
|
|
90
|
+
enableGoogleTranslate: false,
|
|
91
|
+
enableNewsletterSignup: false,
|
|
92
|
+
enableNotifications: false,
|
|
93
|
+
enableVouchers: false,
|
|
94
|
+
errorLoggingLevel: 'error',
|
|
95
|
+
externalStoreSelectorUrl: undefined,
|
|
96
|
+
flipp: null,
|
|
97
|
+
gtmId: undefined,
|
|
98
|
+
hideTaxOnSummary: false,
|
|
99
|
+
houseAccountRegExValidation: '.',
|
|
100
|
+
idpTarget: '_self',
|
|
101
|
+
idpUrl: undefined,
|
|
102
|
+
instacartUrl: undefined,
|
|
103
|
+
isPlanningOnly: false,
|
|
104
|
+
layout: {
|
|
105
|
+
footerVersion: 'default'
|
|
106
|
+
},
|
|
107
|
+
limitProductCardTitleHeight: true,
|
|
108
|
+
loggingLevelClient: 'error',
|
|
109
|
+
loggingLevelServer: 'error',
|
|
110
|
+
mainHeaderHeight: 110,
|
|
111
|
+
mapZoom: 8,
|
|
112
|
+
minimumCreditCardAmount: 1.0,
|
|
113
|
+
nutritionZone: 'us',
|
|
114
|
+
paymentCards: {
|
|
115
|
+
AmExpCard: true,
|
|
116
|
+
DiscoverCard: true,
|
|
117
|
+
MasterCard: true,
|
|
118
|
+
VisaCard: true
|
|
119
|
+
},
|
|
120
|
+
pdpDetailsLayout: {
|
|
121
|
+
desktop: {
|
|
122
|
+
left: [
|
|
123
|
+
'productSalesInfo',
|
|
124
|
+
'productDescription',
|
|
125
|
+
'productIngredients',
|
|
126
|
+
'productNutrition',
|
|
127
|
+
'sodiumWarning',
|
|
128
|
+
'productNumber'
|
|
129
|
+
],
|
|
130
|
+
right: ['recommendations']
|
|
131
|
+
},
|
|
132
|
+
mobile: {
|
|
133
|
+
left: [
|
|
134
|
+
'productSalesInfo',
|
|
135
|
+
'productDescription',
|
|
136
|
+
'productNumber',
|
|
137
|
+
'sodiumWarning',
|
|
138
|
+
'recommendations'
|
|
139
|
+
],
|
|
140
|
+
right: [
|
|
141
|
+
'productIngredients',
|
|
142
|
+
'productNutrition',
|
|
143
|
+
'recommendations',
|
|
144
|
+
'productNumber'
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
productCardTitleHeight: 40,
|
|
149
|
+
registrationFields: [],
|
|
150
|
+
retailerCountry: 'us',
|
|
151
|
+
retailerName: 'default',
|
|
152
|
+
daysToRemainSignedIn: 30,
|
|
153
|
+
searchPreview: {
|
|
154
|
+
desktop: {
|
|
155
|
+
products: true,
|
|
156
|
+
suggestions: true
|
|
157
|
+
},
|
|
158
|
+
mobile: {
|
|
159
|
+
products: true,
|
|
160
|
+
suggestions: true
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
secondTierAuthorization: undefined,
|
|
164
|
+
showCheckoutPromoCode: true,
|
|
165
|
+
showImgOnOrder: false,
|
|
166
|
+
smsNotifications: {
|
|
167
|
+
enabled: false,
|
|
168
|
+
getEnrollmentUrl: '',
|
|
169
|
+
postEnrollmentUrl: ''
|
|
170
|
+
},
|
|
171
|
+
subHeaderHeight: 0,
|
|
172
|
+
promoTemplateVersion: 1,
|
|
173
|
+
useAddressValidation: true,
|
|
174
|
+
restrictMapPlacesResults: {
|
|
175
|
+
fetchNearStoresSettings: {
|
|
176
|
+
kmRange: 20,
|
|
177
|
+
totalTake: 30
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
globalAnimations: {
|
|
181
|
+
confetti: {
|
|
182
|
+
enableConfettiAnimation: true
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
googleAutocompleteSettings: {},
|
|
186
|
+
smartbanner: {
|
|
187
|
+
enabled: false,
|
|
188
|
+
author: '',
|
|
189
|
+
button: '',
|
|
190
|
+
buttonUrlApple: '',
|
|
191
|
+
buttonUrlGoogle: '',
|
|
192
|
+
closeLabel: '',
|
|
193
|
+
iconApple: '',
|
|
194
|
+
iconGoogle: '',
|
|
195
|
+
price: '',
|
|
196
|
+
priceSuffixApple: '',
|
|
197
|
+
priceSuffixGoogle: '',
|
|
198
|
+
title: ''
|
|
199
|
+
},
|
|
200
|
+
features: { clientCache: false },
|
|
201
|
+
specialRequestItems: false,
|
|
202
|
+
additionalCharges: false,
|
|
203
|
+
sodiumWarning: {
|
|
204
|
+
isEnabled: false,
|
|
205
|
+
threshold: 2300
|
|
206
|
+
},
|
|
207
|
+
productCards: {
|
|
208
|
+
gridRowLength: {
|
|
209
|
+
tablet: 3,
|
|
210
|
+
desktop: 5,
|
|
211
|
+
mobile: 1
|
|
212
|
+
},
|
|
213
|
+
carouselsRowLength: {
|
|
214
|
+
desktop: 6,
|
|
215
|
+
tablet: 4,
|
|
216
|
+
mobile: 1
|
|
217
|
+
},
|
|
218
|
+
productCard: {
|
|
219
|
+
enabled: false,
|
|
220
|
+
layouts: {
|
|
221
|
+
ContainersGrid: 'default',
|
|
222
|
+
ContainersCarousel: 'default'
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
layouts: {
|
|
227
|
+
cartSummary: {
|
|
228
|
+
showTaxTotal: true,
|
|
229
|
+
showTaxGroups: true
|
|
230
|
+
},
|
|
231
|
+
couponGallery: {
|
|
232
|
+
enabled: false,
|
|
233
|
+
galleryIsIframe: false
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
adminPanelOnly: {
|
|
237
|
+
bannerName: '',
|
|
238
|
+
logoUrl: ''
|
|
239
|
+
},
|
|
240
|
+
productCardv2: false
|
|
241
|
+
};
|
|
242
|
+
exports.default = DefaultConfigSFUI;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminControl, IAdminControlType } from "./interfaces/admin-settings-interfaces";
|
|
1
|
+
import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminImagesTemplateSFUI, IAdminImagesTemplateSTS, IAdminControl, IAdminControlType } from "./interfaces/admin-settings-interfaces";
|
|
2
|
+
import { IAdminImagesControls, ISecondaryFaviconType } from "./interfaces/admin-images-interfaces";
|
|
2
3
|
import { IDefaultRetailerSettings } from "./interfaces/default-settings.interfaces";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
4
|
+
import { IDefaultStsSettings } from "./interfaces/sts-settings.interfaces";
|
|
5
|
+
import DefaultConfigSFUI from "./Storefront/defaultSettingsStorefront";
|
|
6
|
+
import DefaultImagesSFUI from "./Storefront/defaultImagesStorefront";
|
|
7
|
+
import DefaultConfigSTS from "./sts/defaultSettingsSts";
|
|
8
|
+
import { AdminTemplateInputTypes, AdminSettingsTemplateSFUI } from "./Storefront/SFUISettingsTemplate.AdminUi";
|
|
9
|
+
import { AdminSettingsTemplateSTS } from "./sts/STSSettingsTemplate.AdminUi";
|
|
10
|
+
import { AdminImagesTemplateSFUI } from "./storefront/SFUIImagesTemplate.AdminUi";
|
|
11
|
+
import { AdminImagesTemplateSTS } from "./sts/STSImagesTemplate.AdminUi";
|
|
5
12
|
import { IAdvertsData, PdpDetailsElementLayout, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateMultipleLengths, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, IAdvertLeaderboards, IAdvertProductGrid, IAdvertSkyScrapers, IPageNamesForAdverts, IAddressValidationTypes, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, ICouponGalleryLayout, IPageAdvertsRow } from "./interfaces/retailer-settings.interfaces";
|
|
6
13
|
import { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames, IconNamesToFiles } from "./interfaces/icons.interfaces";
|
|
7
14
|
import { ITheme, IThemeScripts, IThemeImages, IThemeMetadata, IThemeFavicons, IThemeLogoPosition, IThemeLogoHeightsProps, IThemeLogoHeights, ISTSThemeInterface, IThemeFavicon, IThemeMetadataItem, IThemeInterface, IGlobalTheme, IColors, IInitializedEmptyTheme, IThemeAnimationConfettiPlaces, IThemeGlobalAnimations, IThemeAnimationsConfettiPlacesTypes, IThemeAnimationsConfettiProps, IEmbeddedFont, IEmbeddedFontSource } from "./interfaces/theme.interfaces";
|
|
8
15
|
import { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, IInitializedEmptyDefaultTheme, IDefaultThemeAnimationConfettiPlaces, IDefaultThemeGlobalAnimations, IDefaultThemeAnimationsConfettiPlacesTypes, IDefaultThemeAnimationsConfettiProps, IDefaultEmbeddedFont, IDefaultEmbeddedFontSource, IIconPosition } from "./interfaces/default-theme.interface";
|
|
9
|
-
export {
|
|
10
|
-
export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminControl, IAdminControlType, };
|
|
11
|
-
export { IDefaultRetailerSettings };
|
|
12
|
-
export { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, IInitializedEmptyDefaultTheme, IDefaultThemeAnimationConfettiPlaces, IDefaultThemeGlobalAnimations, IDefaultThemeAnimationsConfettiPlacesTypes, IDefaultThemeAnimationsConfettiProps, IDefaultEmbeddedFont, IDefaultEmbeddedFontSource, ITheme, IThemeScripts, IThemeImages, IThemeMetadata, IThemeFavicons, IThemeLogoPosition, IThemeLogoHeightsProps, IThemeLogoHeights, ISTSThemeInterface, IThemeFavicon, IThemeMetadataItem, IThemeInterface, IGlobalTheme, IColors, IInitializedEmptyTheme, IThemeAnimationConfettiPlaces, IThemeGlobalAnimations, IThemeAnimationsConfettiPlacesTypes, IThemeAnimationsConfettiProps, IEmbeddedFont, IEmbeddedFontSource, IIconPosition };
|
|
16
|
+
export { DefaultConfigSFUI, DefaultConfigSTS, DefaultImagesSFUI, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes, AdminImagesTemplateSFUI, AdminImagesTemplateSTS };
|
|
17
|
+
export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminControl, IAdminControlType, IAdminImagesTemplateSFUI, IAdminImagesTemplateSTS, IAdminImagesControls, ISecondaryFaviconType };
|
|
18
|
+
export { IDefaultRetailerSettings, IDefaultStsSettings };
|
|
19
|
+
export { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, IInitializedEmptyDefaultTheme, IDefaultThemeAnimationConfettiPlaces, IDefaultThemeGlobalAnimations, IDefaultThemeAnimationsConfettiPlacesTypes, IDefaultThemeAnimationsConfettiProps, IDefaultEmbeddedFont, IDefaultEmbeddedFontSource, ITheme, IThemeScripts, IThemeImages, IThemeMetadata, IThemeFavicons, IThemeLogoPosition, IThemeLogoHeightsProps, IThemeLogoHeights, ISTSThemeInterface, IThemeFavicon, IThemeMetadataItem, IThemeInterface, IGlobalTheme, IColors, IInitializedEmptyTheme, IThemeAnimationConfettiPlaces, IThemeGlobalAnimations, IThemeAnimationsConfettiPlacesTypes, IThemeAnimationsConfettiProps, IEmbeddedFont, IEmbeddedFontSource, IIconPosition, };
|
|
13
20
|
export { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames, IconNamesToFiles, };
|
|
14
|
-
export { PdpDetailsElementLayout, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateMultipleLengths, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, IAdvertLeaderboards, IAdvertProductGrid, IAdvertSkyScrapers, IPageNamesForAdverts, IAddressValidationTypes, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, ICouponGalleryLayout, IPageAdvertsRow, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, IAdvertsData };
|
|
21
|
+
export { PdpDetailsElementLayout, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateMultipleLengths, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, IAdvertLeaderboards, IAdvertProductGrid, IAdvertSkyScrapers, IPageNamesForAdverts, IAddressValidationTypes, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, ICouponGalleryLayout, IPageAdvertsRow, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, IAdvertsData, };
|