@thryveai/theme-interfaces 2.4.12 → 2.4.14

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.
@@ -0,0 +1,3 @@
1
+ import { IDefaultRetailerSettings } from './interfaces/default-settings.interfaces';
2
+ declare const defaultConfig: IDefaultRetailerSettings;
3
+ export default defaultConfig;
@@ -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', '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 = defaultConfig;
@@ -165,7 +165,7 @@ export interface IFlippConfigV2 {
165
165
  accessToken: string;
166
166
  zoom: number;
167
167
  locale: string;
168
- hiderHeader: boolean;
168
+ hideHeader: boolean;
169
169
  }
170
170
  export declare type IFlippScriptUrls = "circulars.priceritemarketplace" | "circulars.dearbornmarket" | "flyers.v8.commerce.mi9cloud" | "flyers.stg.v8.mywebgrocer" | "flyers.saveonfoods";
171
171
  export declare type IAllSettings = {
@@ -276,6 +276,7 @@ export interface ICheckoutSettingsV2 {
276
276
  minimumCreditCardAmount: number;
277
277
  paymentCards: IPaymentCards;
278
278
  checkoutValidation: ICheckoutValidation;
279
+ forceDeliverySection: boolean;
279
280
  }
280
281
  export interface IFeaturesV2 {
281
282
  additionalCharges: boolean;
@@ -457,6 +458,9 @@ export interface IAccountPageV2 {
457
458
  target: "_self" | "_blank";
458
459
  url: string;
459
460
  };
461
+ profileTab: {
462
+ deleteAccountButton: boolean;
463
+ };
460
464
  }
461
465
  export interface IGlobalAnimations {
462
466
  confetti: ILayoutAnimationsConfetti;
@@ -522,6 +522,19 @@ var AccountPageSettingsChildren = {
522
522
  },
523
523
  },
524
524
  },
525
+ profileTab: {
526
+ title: "Profile Tab",
527
+ description: "Profile Tab settings",
528
+ type: exports.AdminTemplateInputTypes.collapsableObject,
529
+ value: {
530
+ deleteAccountButton: {
531
+ title: "Delete account button",
532
+ description: "Enable / disable delete account button on My Account page",
533
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3486023742/Delete+account+button",
534
+ type: exports.AdminTemplateInputTypes.checkbox,
535
+ }
536
+ }
537
+ }
525
538
  };
526
539
  var AddressSettingsChildren = {
527
540
  addressValidationTypes: {
@@ -14,6 +14,9 @@ var DefaultConfigSFUI = {
14
14
  loyaltyNumberPrefix: "",
15
15
  loyaltyValidationType: [],
16
16
  },
17
+ profileTab: {
18
+ deleteAccountButton: false,
19
+ },
17
20
  },
18
21
  addressSettings: {
19
22
  addressValidationTypes: {
@@ -66,6 +69,7 @@ var DefaultConfigSFUI = {
66
69
  MasterCard: true,
67
70
  VisaCard: true,
68
71
  },
72
+ forceDeliverySection: false,
69
73
  },
70
74
  features: {
71
75
  additionalCharges: false,
@@ -0,0 +1,3 @@
1
+ import { IAdminSettingsTemplate, IAdminTemplateInputTypes } from "./interfaces/admin-settings-interfaces";
2
+ export declare const AdminTemplateInputTypes: IAdminTemplateInputTypes;
3
+ export declare const AdminSettingsTemplate: IAdminSettingsTemplate;