@thryveai/theme-interfaces 1.5.29 → 2.0.0-beta
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/defaultSettings.d.ts +3 -0
- package/dist/defaultSettings.js +242 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +10 -0
- package/{admin-settings-interfaces.d.ts → dist/interfaces/admin-settings-interfaces.d.ts} +5 -0
- package/{admin-settings-interfaces.js → dist/interfaces/admin-settings-interfaces.js} +0 -0
- package/dist/interfaces/default-settings.interfaces.d.ts +80 -0
- package/{default-theme.interface.js → dist/interfaces/default-settings.interfaces.js} +0 -0
- package/{default-theme.interface.d.ts → dist/interfaces/default-theme.interface.d.ts} +0 -0
- package/{retailer-settings.interfaces.js → dist/interfaces/default-theme.interface.js} +0 -0
- package/{icons.interfaces.d.ts → dist/interfaces/icons.interfaces.d.ts} +0 -0
- package/{icons.interfaces.js → dist/interfaces/icons.interfaces.js} +0 -0
- package/{index.d.ts → dist/interfaces/index.d.ts} +6 -7
- package/dist/interfaces/index.js +5 -0
- package/{retailer-settings.interfaces.d.ts → dist/interfaces/retailer-settings.interfaces.d.ts} +4 -84
- package/{theme.interfaces.js → dist/interfaces/retailer-settings.interfaces.js} +0 -0
- package/{theme.interfaces.d.ts → dist/interfaces/theme.interfaces.d.ts} +0 -0
- package/dist/interfaces/theme.interfaces.js +2 -0
- package/dist/storefrontUiSettingsTemplateForAdminPanel.d.ts +3 -0
- package/{admin-settings-template.js → dist/storefrontUiSettingsTemplateForAdminPanel.js} +270 -103
- package/package.json +8 -4
- package/admin-settings-template.d.ts +0 -3
- package/admin.interfaces.d.ts +0 -2
- package/admin.interfaces.js +0 -15
- package/debug.log +0 -2
- package/default.config.d.ts +0 -3
- package/default.config.js +0 -215
- package/index.js +0 -11
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var defaultConfig = {
|
|
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 = defaultConfig;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminControl, IAdminControlType } from "./interfaces/admin-settings-interfaces";
|
|
2
|
+
import { IDefaultRetailerSettings } from "./interfaces/default-settings.interfaces";
|
|
3
|
+
import DefaultSettings from "./defaultSettings";
|
|
4
|
+
import { AdminTemplateInputTypes, AdminSettingsTemplate } from "./storefrontUiSettingsTemplateForAdminPanel";
|
|
5
|
+
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, 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
|
+
import { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames, IconNamesToFiles } from "./interfaces/icons.interfaces";
|
|
7
|
+
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
|
+
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 { DefaultSettings, AdminSettingsTemplate, AdminTemplateInputTypes };
|
|
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 };
|
|
13
|
+
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, 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 };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IconNamesToFiles = exports.AdminTemplateInputTypes = exports.AdminSettingsTemplate = exports.DefaultSettings = void 0;
|
|
4
|
+
var defaultSettings_1 = require("./defaultSettings");
|
|
5
|
+
exports.DefaultSettings = defaultSettings_1.default;
|
|
6
|
+
var storefrontUiSettingsTemplateForAdminPanel_1 = require("./storefrontUiSettingsTemplateForAdminPanel");
|
|
7
|
+
Object.defineProperty(exports, "AdminTemplateInputTypes", { enumerable: true, get: function () { return storefrontUiSettingsTemplateForAdminPanel_1.AdminTemplateInputTypes; } });
|
|
8
|
+
Object.defineProperty(exports, "AdminSettingsTemplate", { enumerable: true, get: function () { return storefrontUiSettingsTemplateForAdminPanel_1.AdminSettingsTemplate; } });
|
|
9
|
+
var icons_interfaces_1 = require("./interfaces/icons.interfaces");
|
|
10
|
+
Object.defineProperty(exports, "IconNamesToFiles", { enumerable: true, get: function () { return icons_interfaces_1.IconNamesToFiles; } });
|
|
@@ -6,11 +6,13 @@ export interface IAdminSettingsTemplate {
|
|
|
6
6
|
adminPanelOnly: IAdminControl;
|
|
7
7
|
accountPage: IAdminControl;
|
|
8
8
|
additionalCharges: IAdminControl;
|
|
9
|
+
addressIntegration: IAdminControl;
|
|
9
10
|
addressValidationTypes: IAdminControl;
|
|
10
11
|
allowInStorePurchases: IAdminControl;
|
|
11
12
|
allowPastPurchases: IAdminControl;
|
|
12
13
|
cacheTimeMins: IAdminControl;
|
|
13
14
|
checkoutV1: IAdminControl;
|
|
15
|
+
daysToRemainSignedIn?: IAdminControl;
|
|
14
16
|
defaultCountry: IAdminControl;
|
|
15
17
|
defaultShoppingMode: IAdminControl;
|
|
16
18
|
defaultStoreLocation: IAdminControl;
|
|
@@ -21,6 +23,7 @@ export interface IAdminSettingsTemplate {
|
|
|
21
23
|
enableNewsletterSignup: IAdminControl;
|
|
22
24
|
enableNotifications?: IAdminControl;
|
|
23
25
|
favoritesV1: IAdminControl;
|
|
26
|
+
features: IAdminControl;
|
|
24
27
|
flipp: IAdminControl;
|
|
25
28
|
gtmId: IAdminControl;
|
|
26
29
|
hideTaxOnSummary: IAdminControl;
|
|
@@ -39,6 +42,8 @@ export interface IAdminSettingsTemplate {
|
|
|
39
42
|
searchPreview: IAdminControl;
|
|
40
43
|
showCheckoutPromoCode: IAdminControl;
|
|
41
44
|
showImgOnOrder: IAdminControl;
|
|
45
|
+
smartbanner: IAdminControl;
|
|
46
|
+
smsNotifications: IAdminControl;
|
|
42
47
|
subHeaderHeight: IAdminControl;
|
|
43
48
|
timeslotModalSettings: IAdminControl;
|
|
44
49
|
useAddressValidation: IAdminControl;
|
|
File without changes
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { IAccountPageSettings, IAddressesSettings, IAddressIntegration, IAddressValidationTypes, IAdvertSettings, ICheckoutValidation, ICtaButtons, IDefaultCounty, IDefaultSearchParams, IDefaultStoreLocation, IFeatureSwitch, IFlippConfig, IFlippConfigV2, IGlobalAnimations, IGlobalCheckoutProps, IGlobalLayouts, IGoogleAutocompleteSettings, ILayoutSettings, ILoggingLevel, INutritionZone, IPaymentCards, IProductCardsProps, IProductDetailsPageLayout, IRegistrationField, IRestrictMapPlaces, IRetailerCountry, ISearchPreviewVisibility, ISecondTierAuthorization, ISmartBanner, ISMSConfig, ISodiumWarning, ITimeslotModalSettings } from "./retailer-settings.interfaces";
|
|
2
|
+
export interface IDefaultRetailerSettings {
|
|
3
|
+
adminPanelOnly: {
|
|
4
|
+
bannerName: string;
|
|
5
|
+
logoUrl: string;
|
|
6
|
+
};
|
|
7
|
+
accountPage: IAccountPageSettings;
|
|
8
|
+
additionalCharges: boolean;
|
|
9
|
+
addressIntegration: IAddressIntegration;
|
|
10
|
+
addressValidationTypes: IAddressValidationTypes;
|
|
11
|
+
addresses: IAddressesSettings;
|
|
12
|
+
advertSettings: IAdvertSettings;
|
|
13
|
+
allowInStorePurchases: boolean;
|
|
14
|
+
allowPastPurchases: boolean;
|
|
15
|
+
buildNumber: string;
|
|
16
|
+
cacheTimeMins: number;
|
|
17
|
+
canadianAddressCompleteKey: string | undefined;
|
|
18
|
+
checkout: IGlobalCheckoutProps;
|
|
19
|
+
checkoutV1: boolean;
|
|
20
|
+
checkoutValidation: ICheckoutValidation;
|
|
21
|
+
ctaButtons: ICtaButtons | null | undefined;
|
|
22
|
+
daysToRemainSignedIn: number;
|
|
23
|
+
defaultCountry: IDefaultCounty;
|
|
24
|
+
defaultSearchParams: IDefaultSearchParams;
|
|
25
|
+
defaultShoppingMode: "pickup" | "planning" | "delivery";
|
|
26
|
+
defaultStoreLocation: IDefaultStoreLocation;
|
|
27
|
+
disableAddressOnDelivery: boolean;
|
|
28
|
+
disableTprPrice: boolean;
|
|
29
|
+
documentTitle: string;
|
|
30
|
+
eircode: string | undefined;
|
|
31
|
+
enable3dSecure: boolean;
|
|
32
|
+
enableGoogleTranslate: boolean;
|
|
33
|
+
enableNewsletterSignup: boolean;
|
|
34
|
+
enableNotifications: boolean;
|
|
35
|
+
enableVouchers: boolean;
|
|
36
|
+
errorLoggingLevel: ILoggingLevel;
|
|
37
|
+
externalStoreSelectorUrl: string | undefined;
|
|
38
|
+
favoritesV1: boolean;
|
|
39
|
+
features: IFeatureSwitch;
|
|
40
|
+
flipp: IFlippConfig | IFlippConfigV2 | null;
|
|
41
|
+
globalAnimations: IGlobalAnimations;
|
|
42
|
+
googleAutocompleteSettings: IGoogleAutocompleteSettings;
|
|
43
|
+
gtmId: undefined | string;
|
|
44
|
+
hideTaxOnSummary: boolean;
|
|
45
|
+
houseAccountRegExValidation: string;
|
|
46
|
+
idpTarget: "_self" | "_blank";
|
|
47
|
+
idpUrl: undefined | string;
|
|
48
|
+
instacartUrl: string | undefined;
|
|
49
|
+
isPlanningOnly: boolean;
|
|
50
|
+
layout: ILayoutSettings;
|
|
51
|
+
layouts: IGlobalLayouts;
|
|
52
|
+
limitProductCardTitleHeight: boolean;
|
|
53
|
+
loggingLevelClient: ILoggingLevel;
|
|
54
|
+
loggingLevelServer: ILoggingLevel;
|
|
55
|
+
mainHeaderHeight: number;
|
|
56
|
+
mapZoom: number;
|
|
57
|
+
minimumCreditCardAmount: number;
|
|
58
|
+
nutritionZone: INutritionZone;
|
|
59
|
+
paymentCards: IPaymentCards;
|
|
60
|
+
pdpDetailsLayout: IProductDetailsPageLayout;
|
|
61
|
+
productCardTitleHeight: number;
|
|
62
|
+
productCards: IProductCardsProps;
|
|
63
|
+
productCardv2: boolean;
|
|
64
|
+
promoTemplateVersion: number;
|
|
65
|
+
registrationFields: IRegistrationField[];
|
|
66
|
+
restrictMapPlacesResults: IRestrictMapPlaces;
|
|
67
|
+
retailerCountry: IRetailerCountry;
|
|
68
|
+
retailerName: string;
|
|
69
|
+
searchPreview: ISearchPreviewVisibility;
|
|
70
|
+
secondTierAuthorization?: ISecondTierAuthorization;
|
|
71
|
+
showCheckoutPromoCode: boolean;
|
|
72
|
+
showImgOnOrder: boolean;
|
|
73
|
+
smartbanner: ISmartBanner;
|
|
74
|
+
smsNotifications: ISMSConfig;
|
|
75
|
+
sodiumWarning: ISodiumWarning;
|
|
76
|
+
specialRequestItems: boolean;
|
|
77
|
+
subHeaderHeight: number;
|
|
78
|
+
timeslotModalSettings: ITimeslotModalSettings;
|
|
79
|
+
useAddressValidation: boolean;
|
|
80
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminControl, IAdminControlType } from './admin-settings-interfaces';
|
|
2
|
+
import { IDefaultRetailerSettings } from './default-settings.interfaces';
|
|
3
|
+
import { IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType } from "./retailer-settings.interfaces";
|
|
2
4
|
import { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames, IconNamesToFiles } from "./icons.interfaces";
|
|
3
5
|
import { ITheme, IThemeScripts, IThemeImages, IThemeMetadata, IThemeFavicons, IThemeLogoPosition, IThemeLogoHeightsProps, IThemeLogoHeights, ISTSThemeInterface, IThemeFavicon, IThemeMetadataItem, IThemeInterface, IGlobalTheme, IColors, IInitializedEmptyTheme, IThemeAnimationConfettiPlaces, IThemeGlobalAnimations, IThemeAnimationsConfettiPlacesTypes, IThemeAnimationsConfettiProps, IEmbeddedFont, IEmbeddedFontSource } from "./theme.interfaces";
|
|
4
6
|
import { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, IInitializedEmptyDefaultTheme, IDefaultThemeAnimationConfettiPlaces, IDefaultThemeGlobalAnimations, IDefaultThemeAnimationsConfettiPlacesTypes, IDefaultThemeAnimationsConfettiProps, IDefaultEmbeddedFont, IDefaultEmbeddedFontSource } from "./default-theme.interface";
|
|
5
|
-
import AdminSettingsTemplate from "./admin-settings-template";
|
|
6
|
-
import { AdminTemplateInputTypes } from "./admin.interfaces";
|
|
7
|
-
import defaultConfig from "./default.config";
|
|
8
7
|
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, };
|
|
9
8
|
export { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames, IconNamesToFiles, };
|
|
10
|
-
export { IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig,
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
9
|
+
export { IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, };
|
|
10
|
+
export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminControl, IAdminControlType };
|
|
11
|
+
export { IDefaultRetailerSettings };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IconNamesToFiles = void 0;
|
|
4
|
+
var icons_interfaces_1 = require("./icons.interfaces");
|
|
5
|
+
Object.defineProperty(exports, "IconNamesToFiles", { enumerable: true, get: function () { return icons_interfaces_1.IconNamesToFiles; } });
|
package/{retailer-settings.interfaces.d.ts → dist/interfaces/retailer-settings.interfaces.d.ts}
RENAMED
|
@@ -181,98 +181,19 @@ export interface IAdvertProductGrid {
|
|
|
181
181
|
export interface IAdvertSkyScrapers {
|
|
182
182
|
skyscrapers?: IAdvertsData;
|
|
183
183
|
}
|
|
184
|
-
export interface IDefaultRetailerSettings {
|
|
185
|
-
adminPanelOnly: {
|
|
186
|
-
bannerName: string;
|
|
187
|
-
logoUrl: string;
|
|
188
|
-
};
|
|
189
|
-
accountPage: IAccountPageSettings;
|
|
190
|
-
additionalCharges: boolean;
|
|
191
|
-
addressIntegration: IAddressIntegration;
|
|
192
|
-
addressValidationTypes: IAddressValidationTypes;
|
|
193
|
-
addresses: IAddressesSettings;
|
|
194
|
-
advertSettings: IAdvertSettings;
|
|
195
|
-
allowInStorePurchases: boolean;
|
|
196
|
-
allowPastPurchases: boolean;
|
|
197
|
-
buildNumber: string;
|
|
198
|
-
cacheTimeMins: number;
|
|
199
|
-
canadianAddressCompleteKey: string | undefined;
|
|
200
|
-
checkout: IGlobalCheckoutProps;
|
|
201
|
-
checkoutV1: boolean;
|
|
202
|
-
checkoutValidation: ICheckoutValidation;
|
|
203
|
-
ctaButtons: ICtaButtons | null | undefined;
|
|
204
|
-
daysToRemainSignedIn: number;
|
|
205
|
-
defaultCountry: IDefaultCounty;
|
|
206
|
-
defaultSearchParams: IDefaultSearchParams;
|
|
207
|
-
defaultShoppingMode: "pickup" | "planning" | "delivery";
|
|
208
|
-
defaultStoreLocation: IDefaultStoreLocation;
|
|
209
|
-
disableAddressOnDelivery: boolean;
|
|
210
|
-
disableTprPrice: boolean;
|
|
211
|
-
documentTitle: string;
|
|
212
|
-
eircode: string | undefined;
|
|
213
|
-
enable3dSecure: boolean;
|
|
214
|
-
enableGoogleTranslate: boolean;
|
|
215
|
-
enableNewsletterSignup: boolean;
|
|
216
|
-
enableNotifications: boolean;
|
|
217
|
-
enableVouchers: boolean;
|
|
218
|
-
errorLoggingLevel: ILoggingLevel;
|
|
219
|
-
externalStoreSelectorUrl: string | undefined;
|
|
220
|
-
favoritesV1: boolean;
|
|
221
|
-
features: IFeatureSwitch;
|
|
222
|
-
flipp: IFlippConfig | IFlippConfigV2 | null;
|
|
223
|
-
globalAnimations: IGlobalAnimations;
|
|
224
|
-
googleAutocompleteSettings: IGoogleAutocompleteSettings;
|
|
225
|
-
gtmId: undefined | string;
|
|
226
|
-
hideTaxOnSummary: boolean;
|
|
227
|
-
houseAccountRegExValidation: string;
|
|
228
|
-
idpTarget: "_self" | "_blank";
|
|
229
|
-
idpUrl: undefined | string;
|
|
230
|
-
instacartUrl: string | undefined;
|
|
231
|
-
isPlanningOnly: boolean;
|
|
232
|
-
layout: ILayoutSettings;
|
|
233
|
-
layouts: IGlobalLayouts;
|
|
234
|
-
limitProductCardTitleHeight: boolean;
|
|
235
|
-
loggingLevelClient: ILoggingLevel;
|
|
236
|
-
loggingLevelServer: ILoggingLevel;
|
|
237
|
-
mainHeaderHeight: number;
|
|
238
|
-
mapZoom: number;
|
|
239
|
-
minimumCreditCardAmount: number;
|
|
240
|
-
nutritionZone: INutritionZone;
|
|
241
|
-
paymentCards: IPaymentCards;
|
|
242
|
-
pdpDetailsLayout: IProductDetailsPageLayout;
|
|
243
|
-
productCardTitleHeight: number;
|
|
244
|
-
productCards: IProductCardsProps;
|
|
245
|
-
productCardv2: boolean;
|
|
246
|
-
promoTemplateVersion: number;
|
|
247
|
-
registrationFields: IRegistrationField[];
|
|
248
|
-
restrictMapPlacesResults: IRestrictMapPlaces;
|
|
249
|
-
retailerCountry: IRetailerCountry;
|
|
250
|
-
retailerName: string;
|
|
251
|
-
searchPreview: ISearchPreviewVisibility;
|
|
252
|
-
secondTierAuthorization?: ISecondTierAuthorization;
|
|
253
|
-
showCheckoutPromoCode: boolean;
|
|
254
|
-
showImgOnOrder: boolean;
|
|
255
|
-
smartbanner: ISmartBanner;
|
|
256
|
-
smsNotifications: ISMSConfig;
|
|
257
|
-
sodiumWarning: ISodiumWarning;
|
|
258
|
-
specialRequestItems: boolean;
|
|
259
|
-
subHeaderHeight: number;
|
|
260
|
-
timeslotModalSettings: ITimeslotModalSettings;
|
|
261
|
-
useAddressValidation: boolean;
|
|
262
|
-
}
|
|
263
184
|
export interface IGoogleAutocompleteSettings {
|
|
264
185
|
types?: IGoogleAutocompleteTypes;
|
|
265
186
|
bounds?: IGoogleAutocompleteBounds;
|
|
266
187
|
strictBounds?: boolean;
|
|
267
188
|
restrictCountries?: string[];
|
|
268
189
|
}
|
|
269
|
-
interface IGoogleAutocompleteBounds {
|
|
190
|
+
export interface IGoogleAutocompleteBounds {
|
|
270
191
|
east_longitude: number;
|
|
271
192
|
north_latitude: number;
|
|
272
193
|
south_latitude: number;
|
|
273
194
|
west_longitude: number;
|
|
274
195
|
}
|
|
275
|
-
declare type IGoogleAutocompleteTypes = "geocode" | "address" | "establishment" | "(regions)" | "(cities)";
|
|
196
|
+
export declare type IGoogleAutocompleteTypes = "geocode" | "address" | "establishment" | "(regions)" | "(cities)";
|
|
276
197
|
export interface ICtaButtons {
|
|
277
198
|
iconAlignment: "left" | "right" | null;
|
|
278
199
|
iconName: IconNames;
|
|
@@ -340,7 +261,7 @@ export interface IRestrictMapPlaces {
|
|
|
340
261
|
};
|
|
341
262
|
}
|
|
342
263
|
export declare type IValidationType = IValidateDateRange | IValidateLength | "alphaNumeric" | "alphaOnly" | "anyPhone" | "auPhone" | "auPostCode" | "auState" | "caPhone" | "caPostCode" | "caProvince" | "correctDate" | "email" | "ieCounty" | "iePhone" | "iePostCode" | "luhnValidation" | "noSpecialChar" | "numericOnly" | "password" | "required" | "usMobileNumber" | "usPhone" | "usPhone10Digits" | "usPostCode" | "usState";
|
|
343
|
-
declare type IEnvNames = "dev" | "de2" | "qat" | "qa2" | "int" | "in2" | "lod" | "lo2" | "stg" | "st2" | "stagingConfig" | "productionConfig";
|
|
264
|
+
export declare type IEnvNames = "dev" | "de2" | "qat" | "qa2" | "int" | "in2" | "lod" | "lo2" | "stg" | "st2" | "stagingConfig" | "productionConfig";
|
|
344
265
|
export declare type INutritionZone = "us" | "eu" | "au" | "ca";
|
|
345
266
|
export declare type IFooterTypes = "default" | "version2" | "version3" | "version4" | "version5";
|
|
346
267
|
export declare type IValidateLength = {
|
|
@@ -365,7 +286,7 @@ export interface ICheckoutValidation {
|
|
|
365
286
|
phoneNumber: IValidationType[];
|
|
366
287
|
smsNumber: IValidationType[];
|
|
367
288
|
}
|
|
368
|
-
interface ISearchPreview {
|
|
289
|
+
export interface ISearchPreview {
|
|
369
290
|
suggestions: boolean;
|
|
370
291
|
products: boolean;
|
|
371
292
|
}
|
|
@@ -426,4 +347,3 @@ export interface IProductDetailsPageLayout {
|
|
|
426
347
|
};
|
|
427
348
|
}
|
|
428
349
|
export declare type PdpDetailsElementLayout = "productNutrition" | "productIngredients" | "productDescription" | "sodiumWarning" | "productNumber" | "recommendations" | "productSalesInfo" | string;
|
|
429
|
-
export {};
|
|
File without changes
|
|
File without changes
|