@thryveai/theme-interfaces 2.4.9 → 2.4.11

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.
@@ -60,7 +60,7 @@ export interface IRetailerSettings {
60
60
  loggingLevelServer?: ILoggingLevel;
61
61
  mainHeaderHeight?: number;
62
62
  maintainCustomerJourney?: boolean;
63
- maintainCustomerPreferences?: boolean;
63
+ maintainCustomerPreferences?: IMaintainCustomerPreferences;
64
64
  mapZoom?: number;
65
65
  minimumCreditCardAmount?: number;
66
66
  nutritionZone?: INutritionZone;
@@ -330,10 +330,11 @@ export interface ISiteSettingsV2 {
330
330
  footerVersion: IFooterTypes;
331
331
  googleAutocompleteSettings: IGoogleAutocompleteSettings;
332
332
  gtmId: string;
333
+ hideWelcomeModalOnCorporate: boolean;
333
334
  isPlanningOnly: boolean;
334
335
  mainHeaderHeight: number;
335
336
  maintainCustomerJourney: boolean;
336
- maintainCustomerPreferences: boolean;
337
+ maintainCustomerPreferences: IMaintainCustomerPreferences;
337
338
  mapZoom: number;
338
339
  promoTemplateVersion: number;
339
340
  restrictMapPlacesResults: IRestrictMapPlaces;
@@ -503,3 +504,10 @@ export interface IProductDetailsPageLayout {
503
504
  };
504
505
  }
505
506
  export declare type PdpDetailsElementLayout = "productNutrition" | "productIngredients" | "productDescription" | "sodiumWarning" | "productNumber" | "recommendations" | "productSalesInfo" | string;
507
+ export declare type IConfigurableCustomerPreference = "marketingPreferences";
508
+ export interface IMaintainCustomerPreferences {
509
+ enabled: boolean;
510
+ sections: {
511
+ [key in IConfigurableCustomerPreference]: string[];
512
+ };
513
+ }
@@ -367,6 +367,12 @@ var SiteSettingsChildren = {
367
367
  description: "Google Tag Manager ID",
368
368
  type: exports.AdminTemplateInputTypes.inputChar,
369
369
  },
370
+ hideWelcomeModalOnCorporate: {
371
+ title: "Hide Welcome Modal on Corporate",
372
+ description: "Enable to hide the initial welcome modal selection screen when on corporate store",
373
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3472326883/Hide+Welcome+Modal+on+Corporate",
374
+ type: exports.AdminTemplateInputTypes.checkbox,
375
+ },
370
376
  isPlanningOnly: {
371
377
  title: "Planning Only",
372
378
  description: "Enable if planning mode is the only available shopping method",
@@ -389,7 +395,14 @@ var SiteSettingsChildren = {
389
395
  title: "Maintain customer preferences",
390
396
  description: "View and modify customer preferences: marketing preferences, substitution preferences, etc.",
391
397
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3405381666/Maintain+customer+preferences",
392
- type: exports.AdminTemplateInputTypes.checkbox,
398
+ type: exports.AdminTemplateInputTypes.collapsableObject,
399
+ value: {
400
+ enabled: {
401
+ title: "Enable",
402
+ description: "Enable Maintain customer preferences",
403
+ type: exports.AdminTemplateInputTypes.checkbox,
404
+ },
405
+ },
393
406
  },
394
407
  retailerCountry: {
395
408
  title: "Retailer country",
@@ -1,129 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var DefaultConfigSFUI = {
4
- adminPanelOnly: {
5
- bannerName: "New banner name",
6
- logoUrl: "https://wynshop.com/wp-content/uploads/2021/08/xWynshop_Font_logo_150x39.png.pagespeed.ic.3j0jIxPBvP.webp 1x",
7
- },
8
- siteSettings: {
9
- anonymousCart: false,
10
- defaultCountry: "USA",
11
- defaultShoppingMode: "pickup",
12
- daysToRemainSignedIn: 30,
13
- defaultSearchParams: {
14
- page: "1",
15
- q: "*",
16
- skip: "0",
17
- take: "30",
18
- },
19
- defaultStoreLocation: {
20
- latitude: 0,
21
- longitude: 0,
22
- },
23
- googleAutocompleteSettings: {},
24
- restrictMapPlacesResults: {
25
- fetchNearStoresSettings: {
26
- kmRange: 20,
27
- totalTake: 30,
28
- },
29
- },
30
- gtmId: "",
31
- isPlanningOnly: false,
32
- mapZoom: 8,
33
- maintainCustomerJourney: true,
34
- maintainCustomerPreferences: false,
35
- promoTemplateVersion: 1,
36
- retailerCountry: "us",
37
- retailerName: "default",
38
- searchPreview: {
39
- desktop: {
40
- products: true,
41
- suggestions: true,
42
- },
43
- mobile: {
44
- products: true,
45
- suggestions: true,
46
- },
47
- },
48
- subHeaderHeight: 0,
49
- disableTprPrice: false,
50
- footerVersion: "default",
51
- timeslotModalSettings: {
52
- showOnAddToCart: false,
53
- timeslotRequiredToAddToCart: false,
54
- timeslotRequiredToViewCartReview: false,
55
- },
56
- ctaButtons: null,
57
- mainHeaderHeight: 110,
58
- },
59
- features: {
60
- additionalCharges: false,
61
- clientCache: false,
62
- vouchers: {
63
- enabled: false,
64
- reCaptcha: false,
65
- },
66
- giftCards: {
67
- enabled: false,
68
- giftCardInputValidation: "^[0-9]{17}$",
69
- pinInputValidation: "^[0-9]{4}$",
70
- reCaptcha: false,
71
- },
72
- smartbanner: {
73
- enabled: false,
74
- author: "",
75
- button: "",
76
- buttonUrlApple: "",
77
- buttonUrlGoogle: "",
78
- closeLabel: "",
79
- iconApple: "",
80
- iconGoogle: "",
81
- price: "",
82
- priceSuffixApple: "",
83
- priceSuffixGoogle: "",
84
- title: "",
85
- },
86
- entryModalVersion: "entry",
87
- hideAlcoholRule: { modal: false, pdp: false },
88
- addressIntegrationV2: false,
89
- allowInStorePurchases: false,
90
- allowPastPurchases: true,
91
- advertSettings: {},
92
- enableGoogleTranslate: false,
93
- enableNewsletterSignup: false,
94
- enableNotifications: false,
95
- externalStoreSelectorUrl: {
96
- enabled: false,
97
- url: "",
98
- },
99
- favoritesV1: false,
100
- flipp: null,
101
- globalAnimations: {
102
- confetti: {
103
- enableConfettiAnimation: true,
104
- },
105
- },
106
- instacart: {
4
+ accountPage: {
5
+ idp: {
107
6
  enabled: false,
7
+ target: "_self",
108
8
  url: "",
109
9
  },
110
- registrationFields: [],
111
- secondTierAuthorization: undefined,
112
- showCheckoutPromoCode: true,
113
- showImgOnOrder: false,
114
- smsNotifications: {
115
- enabled: false,
116
- getEnrollmentUrl: "",
117
- postEnrollmentUrl: "",
118
- },
119
- specialRequestItems: false,
120
- couponGallery: {
121
- enabled: false,
122
- galleryIsIframe: false,
123
- galleryHasNavLink: false,
124
- },
125
- },
126
- accountPage: {
127
10
  loyaltyTab: {
128
11
  disabledEdit: false,
129
12
  enabled: false,
@@ -131,11 +14,6 @@ var DefaultConfigSFUI = {
131
14
  loyaltyNumberPrefix: "",
132
15
  loyaltyValidationType: [],
133
16
  },
134
- idp: {
135
- enabled: false,
136
- target: "_self",
137
- url: "",
138
- },
139
17
  },
140
18
  addressSettings: {
141
19
  addressValidationTypes: {
@@ -155,52 +33,108 @@ var DefaultConfigSFUI = {
155
33
  url: "",
156
34
  },
157
35
  integration: {
158
- enabled: false,
159
- addressFinderType: "AUS",
160
- useForNewAddresses: false,
161
36
  addNewAddressUrl: "",
37
+ addressFinderType: "AUS",
162
38
  deleteAddressUrl: "",
163
39
  editAddressUrl: "",
40
+ enabled: false,
41
+ useForNewAddresses: false,
164
42
  },
165
43
  useAddressValidation: true,
166
44
  },
167
- productCard: {
168
- limitProductCardTitleHeight: true,
169
- productCardTitleHeight: 40,
170
- productCards: {
171
- gridRowLength: {
172
- tablet: 3,
173
- desktop: 5,
174
- mobile: 1,
175
- },
176
- carouselsRowLength: {
177
- desktop: 6,
178
- tablet: 4,
179
- mobile: 1,
180
- },
181
- productCard: {
182
- enabled: false,
183
- layouts: {
184
- ContainersGrid: "default",
185
- ContainersCarousel: "default",
186
- },
187
- },
188
- },
45
+ adminPanelOnly: {
46
+ bannerName: "New banner name",
47
+ logoUrl: "https://wynshop.com/wp-content/uploads/2021/08/xWynshop_Font_logo_150x39.png.pagespeed.ic.3j0jIxPBvP.webp 1x",
48
+ },
49
+ cartSummary: {
50
+ hideTaxOnSummary: false,
51
+ showTaxGroups: true,
52
+ showTaxTotal: true,
189
53
  },
190
54
  checkout: {
191
- numericPhonePayload: false,
55
+ checkoutValidation: {
56
+ instructions: ["alphaNumeric", "notWhiteSpacesOnly"],
57
+ phoneNumber: ["usPhone", "required"],
58
+ smsNumber: [],
59
+ },
192
60
  houseAccountRegExValidation: ".",
193
61
  minimumCreditCardAmount: 1.0,
62
+ numericPhonePayload: false,
194
63
  paymentCards: {
195
64
  AmExpCard: true,
196
65
  DiscoverCard: true,
197
66
  MasterCard: true,
198
67
  VisaCard: true,
199
68
  },
200
- checkoutValidation: {
201
- instructions: ["alphaNumeric", "notWhiteSpacesOnly"],
202
- phoneNumber: ["usPhone", "required"],
203
- smsNumber: [],
69
+ },
70
+ features: {
71
+ additionalCharges: false,
72
+ addressIntegrationV2: false,
73
+ advertSettings: {},
74
+ allowInStorePurchases: false,
75
+ allowPastPurchases: true,
76
+ clientCache: false,
77
+ couponGallery: {
78
+ enabled: false,
79
+ galleryHasNavLink: false,
80
+ galleryIsIframe: false,
81
+ },
82
+ enableGoogleTranslate: false,
83
+ enableNewsletterSignup: false,
84
+ enableNotifications: false,
85
+ entryModalVersion: "entry",
86
+ externalStoreSelectorUrl: {
87
+ enabled: false,
88
+ url: "",
89
+ },
90
+ favoritesV1: false,
91
+ flipp: null,
92
+ giftCards: {
93
+ enabled: false,
94
+ giftCardInputValidation: "^[0-9]{17}$",
95
+ pinInputValidation: "^[0-9]{4}$",
96
+ reCaptcha: false,
97
+ },
98
+ globalAnimations: {
99
+ confetti: {
100
+ enableConfettiAnimation: true,
101
+ },
102
+ },
103
+ hideAlcoholRule: {
104
+ modal: false,
105
+ pdp: false,
106
+ },
107
+ instacart: {
108
+ enabled: false,
109
+ url: "",
110
+ },
111
+ registrationFields: [],
112
+ secondTierAuthorization: undefined,
113
+ showCheckoutPromoCode: true,
114
+ showImgOnOrder: false,
115
+ smartbanner: {
116
+ author: "",
117
+ button: "",
118
+ buttonUrlApple: "",
119
+ buttonUrlGoogle: "",
120
+ closeLabel: "",
121
+ enabled: false,
122
+ iconApple: "",
123
+ iconGoogle: "",
124
+ price: "",
125
+ priceSuffixApple: "",
126
+ priceSuffixGoogle: "",
127
+ title: "",
128
+ },
129
+ smsNotifications: {
130
+ enabled: false,
131
+ getEnrollmentUrl: "",
132
+ postEnrollmentUrl: "",
133
+ },
134
+ specialRequestItems: false,
135
+ vouchers: {
136
+ enabled: false,
137
+ reCaptcha: false,
204
138
  },
205
139
  },
206
140
  pdpSettings: {
@@ -238,10 +172,85 @@ var DefaultConfigSFUI = {
238
172
  threshold: 2300,
239
173
  },
240
174
  },
241
- cartSummary: {
242
- hideTaxOnSummary: false,
243
- showTaxTotal: true,
244
- showTaxGroups: true,
175
+ productCard: {
176
+ limitProductCardTitleHeight: true,
177
+ productCards: {
178
+ carouselsRowLength: {
179
+ desktop: 6,
180
+ mobile: 1,
181
+ tablet: 4,
182
+ },
183
+ gridRowLength: {
184
+ desktop: 5,
185
+ mobile: 1,
186
+ tablet: 3,
187
+ },
188
+ productCard: {
189
+ enabled: false,
190
+ layouts: {
191
+ ContainersCarousel: "default",
192
+ ContainersGrid: "default",
193
+ },
194
+ },
195
+ },
196
+ productCardTitleHeight: 40,
197
+ },
198
+ siteSettings: {
199
+ anonymousCart: false,
200
+ ctaButtons: null,
201
+ daysToRemainSignedIn: 30,
202
+ defaultCountry: "USA",
203
+ defaultSearchParams: {
204
+ page: "1",
205
+ q: "*",
206
+ skip: "0",
207
+ take: "30",
208
+ },
209
+ defaultShoppingMode: "pickup",
210
+ defaultStoreLocation: {
211
+ latitude: 0,
212
+ longitude: 0,
213
+ },
214
+ disableTprPrice: false,
215
+ footerVersion: "default",
216
+ googleAutocompleteSettings: {},
217
+ gtmId: "",
218
+ hideWelcomeModalOnCorporate: false,
219
+ isPlanningOnly: false,
220
+ mainHeaderHeight: 110,
221
+ maintainCustomerJourney: true,
222
+ maintainCustomerPreferences: {
223
+ enabled: false,
224
+ sections: {
225
+ marketingPreferences: [],
226
+ },
227
+ },
228
+ mapZoom: 8,
229
+ promoTemplateVersion: 1,
230
+ restrictMapPlacesResults: {
231
+ fetchNearStoresSettings: {
232
+ kmRange: 20,
233
+ totalTake: 30,
234
+ },
235
+ },
236
+ retailerCountry: "us",
237
+ retailerName: "default",
238
+ searchPreview: {
239
+ desktop: {
240
+ products: true,
241
+ suggestions: true,
242
+ },
243
+ mobile: {
244
+ products: true,
245
+ suggestions: true,
246
+ },
247
+ },
248
+ subHeaderHeight: 0,
249
+ timeslotModalSettings: {
250
+ showOnAddToCart: false,
251
+ timeslotRequiredToAddToCart: false,
252
+ timeslotRequiredToViewCartReview: false,
253
+ },
245
254
  },
246
255
  };
247
256
  exports.default = DefaultConfigSFUI;
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
- {
2
- "name": "@thryveai/theme-interfaces",
3
- "version": "2.4.9",
4
- "description": "Shared interfaces and defaults for all Wynshop themed apps.",
5
- "scripts": {
6
- "build": "tsc",
7
- "push": "npm run build && npm publish",
8
- "merge-settings": "ts-node ./scripts/sfui-settings-migrator.ts"
9
- },
10
- "author": "Wynshop",
11
- "license": "ISC",
12
- "main": "dist",
13
- "files": [
14
- "dist"
15
- ],
16
- "devDependencies": {
17
- "@types/node": "^17.0.42",
18
- "ts-node": "^10.8.1",
19
- "typescript": "4.6.3"
20
- }
21
- }
1
+ {
2
+ "name": "@thryveai/theme-interfaces",
3
+ "version": "2.4.11",
4
+ "description": "Shared interfaces and defaults for all Wynshop themed apps.",
5
+ "scripts": {
6
+ "build": "tsc",
7
+ "push": "npm run build && npm publish",
8
+ "merge-settings": "ts-node ./scripts/sfui-settings-migrator.ts"
9
+ },
10
+ "author": "Wynshop",
11
+ "license": "ISC",
12
+ "main": "dist",
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "devDependencies": {
17
+ "@types/node": "^17.0.42",
18
+ "ts-node": "^10.8.1",
19
+ "typescript": "4.6.3"
20
+ }
21
+ }