@thryveai/theme-interfaces 2.3.16 → 2.4.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.
@@ -1,3 +1,3 @@
1
- import { IDefaultRetailerSettings } from "../interfaces/default-settings.interfaces";
2
- declare const DefaultConfigSFUI: IDefaultRetailerSettings;
1
+ import { IDefaultRetailerSettingsVersion2 } from "../interfaces/default-settings.interfaces";
2
+ declare const DefaultConfigSFUI: IDefaultRetailerSettingsVersion2;
3
3
  export default DefaultConfigSFUI;
@@ -5,194 +5,68 @@ var DefaultConfigSFUI = {
5
5
  bannerName: "New banner name",
6
6
  logoUrl: "https://wynshop.com/wp-content/uploads/2021/08/xWynshop_Font_logo_150x39.png.pagespeed.ic.3j0jIxPBvP.webp 1x",
7
7
  },
8
- advertSettings: {},
9
- timeslotModalSettings: {
10
- showOnAddToCart: false,
11
- timeslotRequiredToAddToCart: false,
12
- timeslotRequiredToViewCartReview: false,
13
- },
14
- accountPage: {
15
- loyaltyTab: {
16
- disabledEdit: false,
17
- enabled: false,
18
- loyaltyNumberLength: 11,
19
- loyaltyNumberPrefix: "",
20
- loyaltyValidationType: [],
21
- },
22
- },
23
- addresses: {
24
- addressValidationTypes: {
25
- addressLine1: ["alphaNumeric", "required"],
26
- addressLine2: ["alphaNumeric"],
27
- city: ["alphaNumeric", "required"],
28
- countyProvinceState: ["usState", "required"],
29
- familyName: ["alphaOnly", "required"],
30
- firstName: ["alphaOnly", "required"],
31
- instructions: ["alphaNumeric"],
32
- phoneNumber: ["usPhone", "required"],
33
- postCode: ["usPostCode", "required"],
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
+ },
34
29
  },
35
- canadianAddressCompleteKey: undefined,
36
- eircodeUrl: undefined,
37
- integration: {
38
- addNewAddressUrl: undefined,
39
- deleteAddressUrl: undefined,
40
- editAddressUrl: undefined,
30
+ gtmId: "",
31
+ isPlanningOnly: false,
32
+ mapZoom: 8,
33
+ promoTemplateVersion: 1,
34
+ retailerCountry: "us",
35
+ retailerName: "default",
36
+ searchPreview: {
37
+ desktop: {
38
+ products: true,
39
+ suggestions: true,
40
+ },
41
+ mobile: {
42
+ products: true,
43
+ suggestions: true,
44
+ },
41
45
  },
42
- useAddressValidation: true,
43
- },
44
- addressValidationTypes: {
45
- addressLine1: ["alphaNumeric", "required"],
46
- addressLine2: ["alphaNumeric"],
47
- city: ["alphaNumeric", "required"],
48
- countyProvinceState: ["usState", "required"],
49
- familyName: ["alphaOnly", "required"],
50
- firstName: ["alphaOnly", "required"],
51
- instructions: ["alphaNumeric"],
52
- phoneNumber: ["usPhone", "required"],
53
- postCode: ["usPostCode", "required"],
54
- },
55
- allowInStorePurchases: false,
56
- allowPastPurchases: true,
57
- buildNumber: "default",
58
- cacheTimeMins: 1,
59
- canadianAddressCompleteKey: undefined,
60
- checkoutV1: false,
61
- favoritesV1: false,
62
- checkout: {
63
- numericPhonePayload: false,
64
- },
65
- checkoutValidation: {
66
- instructions: ["alphaNumeric", "notWhiteSpacesOnly"],
67
- phoneNumber: ["usPhone", "required"],
68
- smsNumber: [],
69
- },
70
- ctaButtons: null,
71
- defaultCountry: "USA",
72
- defaultSearchParams: {
73
- page: "1",
74
- q: "*",
75
- skip: "0",
76
- take: "30",
77
- },
78
- defaultShoppingMode: "pickup",
79
- defaultStoreLocation: {
80
- latitude: 0,
81
- longitude: 0,
82
- },
83
- disableTprPrice: false,
84
- documentTitle: "ThryveAI Commerce",
85
- eircode: undefined,
86
- enable3dSecure: false,
87
- enableGoogleTranslate: false,
88
- enableNewsletterSignup: false,
89
- enableNotifications: false,
90
- errorLoggingLevel: "error",
91
- externalStoreSelectorUrl: undefined,
92
- flipp: null,
93
- gtmId: undefined,
94
- hideTaxOnSummary: false,
95
- houseAccountRegExValidation: ".",
96
- idpTarget: "_self",
97
- idpUrl: undefined,
98
- instacartUrl: undefined,
99
- isPlanningOnly: false,
100
- layout: {
46
+ subHeaderHeight: 0,
47
+ disableTprPrice: false,
101
48
  footerVersion: "default",
102
- },
103
- limitProductCardTitleHeight: true,
104
- loggingLevelClient: "error",
105
- loggingLevelServer: "error",
106
- mainHeaderHeight: 110,
107
- mapZoom: 8,
108
- minimumCreditCardAmount: 1.0,
109
- nutritionZone: "us",
110
- paymentCards: {
111
- AmExpCard: true,
112
- DiscoverCard: true,
113
- MasterCard: true,
114
- VisaCard: true,
115
- },
116
- pdpDetailsLayout: {
117
- desktop: {
118
- left: [
119
- "productSalesInfo",
120
- "productDescription",
121
- "productIngredients",
122
- "productNutrition",
123
- "sodiumWarning",
124
- "productNumber",
125
- ],
126
- right: ["recommendations"],
127
- },
128
- mobile: {
129
- left: [
130
- "productSalesInfo",
131
- "productDescription",
132
- "productNumber",
133
- "sodiumWarning",
134
- "recommendations",
135
- ],
136
- right: [
137
- "productIngredients",
138
- "productNutrition",
139
- "recommendations",
140
- "productNumber",
141
- ],
142
- },
143
- },
144
- productCardTitleHeight: 40,
145
- registrationFields: [],
146
- retailerCountry: "us",
147
- retailerName: "default",
148
- daysToRemainSignedIn: 30,
149
- searchPreview: {
150
- desktop: {
151
- products: true,
152
- suggestions: true,
153
- },
154
- mobile: {
155
- products: true,
156
- suggestions: true,
157
- },
158
- },
159
- secondTierAuthorization: undefined,
160
- showCheckoutPromoCode: true,
161
- showImgOnOrder: false,
162
- smsNotifications: {
163
- enabled: false,
164
- getEnrollmentUrl: "",
165
- postEnrollmentUrl: "",
166
- },
167
- subHeaderHeight: 0,
168
- promoTemplateVersion: 1,
169
- useAddressValidation: true,
170
- restrictMapPlacesResults: {
171
- fetchNearStoresSettings: {
172
- kmRange: 20,
173
- totalTake: 30,
174
- },
175
- },
176
- globalAnimations: {
177
- confetti: {
178
- enableConfettiAnimation: true,
49
+ timeslotModalSettings: {
50
+ showOnAddToCart: false,
51
+ timeslotRequiredToAddToCart: false,
52
+ timeslotRequiredToViewCartReview: false,
179
53
  },
54
+ ctaButtons: null,
55
+ mainHeaderHeight: 110,
180
56
  },
181
- googleAutocompleteSettings: {},
182
57
  features: {
183
58
  additionalCharges: false,
184
59
  clientCache: false,
185
- giftCards: {
60
+ vouchers: {
186
61
  enabled: false,
187
- gitfCardInputValidation: "^[0-9]{17}$",
188
- pinInputValidation: "^[0-9]{4}$",
189
62
  reCaptcha: false,
190
63
  },
191
- vouchers: {
64
+ giftCards: {
192
65
  enabled: false,
66
+ giftCardInputValidation: "^[0-9]{17}$",
67
+ pinInputValidation: "^[0-9]{4}$",
193
68
  reCaptcha: false,
194
69
  },
195
- entryModalVersion: "entry",
196
70
  smartbanner: {
197
71
  enabled: false,
198
72
  author: "",
@@ -207,49 +81,163 @@ var DefaultConfigSFUI = {
207
81
  priceSuffixGoogle: "",
208
82
  title: "",
209
83
  },
210
- addressIntegration: {
84
+ entryModalVersion: "entry",
85
+ allowInStorePurchases: false,
86
+ allowPastPurchases: true,
87
+ advertSettings: {},
88
+ enableGoogleTranslate: false,
89
+ enableNewsletterSignup: false,
90
+ enableNotifications: false,
91
+ externalStoreSelectorUrl: {
211
92
  enabled: false,
212
- addressFinderType: "AUS",
213
- useForNewAddresses: false,
93
+ url: "",
94
+ },
95
+ favoritesV1: false,
96
+ flipp: null,
97
+ globalAnimations: {
98
+ confetti: {
99
+ enableConfettiAnimation: true,
100
+ },
101
+ },
102
+ instacart: {
103
+ enabled: false,
104
+ url: "",
105
+ },
106
+ registrationFields: [],
107
+ secondTierAuthorization: undefined,
108
+ showCheckoutPromoCode: true,
109
+ showImgOnOrder: false,
110
+ smsNotifications: {
111
+ enabled: false,
112
+ getEnrollmentUrl: "",
113
+ postEnrollmentUrl: "",
114
+ },
115
+ specialRequestItems: false,
116
+ couponGallery: {
117
+ enabled: false,
118
+ galleryIsIframe: false,
214
119
  },
215
120
  },
216
- siteSettings: {
217
- anonymousCart: false,
218
- },
219
- specialRequestItems: false,
220
- sodiumWarning: {
221
- isEnabled: false,
222
- threshold: 2300,
121
+ accountPage: {
122
+ loyaltyTab: {
123
+ disabledEdit: false,
124
+ enabled: false,
125
+ loyaltyNumberLength: 11,
126
+ loyaltyNumberPrefix: "",
127
+ loyaltyValidationType: [],
128
+ },
129
+ idp: {
130
+ enabled: false,
131
+ target: "_self",
132
+ url: "",
133
+ },
223
134
  },
224
- productCards: {
225
- gridRowLength: {
226
- tablet: 3,
227
- desktop: 5,
228
- mobile: 1,
229
- },
230
- carouselsRowLength: {
231
- desktop: 6,
232
- tablet: 4,
233
- mobile: 1,
234
- },
235
- productCard: {
135
+ addressSettings: {
136
+ addressValidationTypes: {
137
+ addressLine1: ["alphaNumeric", "required"],
138
+ addressLine2: ["alphaNumeric"],
139
+ city: ["alphaNumeric", "required"],
140
+ countyProvinceState: ["usState", "required"],
141
+ familyName: ["alphaOnly", "required"],
142
+ firstName: ["alphaOnly", "required"],
143
+ instructions: ["alphaNumeric"],
144
+ phoneNumber: ["usPhone", "required"],
145
+ postCode: ["usPostCode", "required"],
146
+ smsNumber: [],
147
+ },
148
+ eircode: {
149
+ enabled: false,
150
+ url: "",
151
+ },
152
+ integration: {
236
153
  enabled: false,
237
- layouts: {
238
- ContainersGrid: "default",
239
- ContainersCarousel: "default",
154
+ addressFinderType: "AUS",
155
+ useForNewAddresses: false,
156
+ addNewAddressUrl: "",
157
+ deleteAddressUrl: "",
158
+ editAddressUrl: "",
159
+ },
160
+ useAddressValidation: true,
161
+ disableAddressOnDelivery: false,
162
+ },
163
+ productCard: {
164
+ limitProductCardTitleHeight: true,
165
+ productCardTitleHeight: 40,
166
+ productCards: {
167
+ gridRowLength: {
168
+ tablet: 3,
169
+ desktop: 5,
170
+ mobile: 1,
171
+ },
172
+ carouselsRowLength: {
173
+ desktop: 6,
174
+ tablet: 4,
175
+ mobile: 1,
176
+ },
177
+ productCard: {
178
+ enabled: false,
179
+ layouts: {
180
+ ContainersGrid: "default",
181
+ ContainersCarousel: "default",
182
+ },
240
183
  },
241
184
  },
242
185
  },
243
- layouts: {
244
- cartSummary: {
245
- showTaxTotal: true,
246
- showTaxGroups: true,
186
+ checkout: {
187
+ numericPhonePayload: false,
188
+ houseAccountRegExValidation: ".",
189
+ minimumCreditCardAmount: 1.0,
190
+ paymentCards: {
191
+ AmExpCard: true,
192
+ DiscoverCard: true,
193
+ MasterCard: true,
194
+ VisaCard: true,
195
+ },
196
+ checkoutValidation: {
197
+ instructions: ["alphaNumeric", "notWhiteSpacesOnly"],
198
+ phoneNumber: ["usPhone", "required"],
199
+ smsNumber: [],
200
+ },
201
+ },
202
+ pdpSettings: {
203
+ nutritionZone: "us",
204
+ pdpDetailsLayout: {
205
+ desktop: {
206
+ left: [
207
+ "productSalesInfo",
208
+ "productDescription",
209
+ "productIngredients",
210
+ "productNutrition",
211
+ "sodiumWarning",
212
+ "productNumber",
213
+ ],
214
+ right: ["recommendations"],
215
+ },
216
+ mobile: {
217
+ left: [
218
+ "productSalesInfo",
219
+ "productDescription",
220
+ "productNumber",
221
+ "sodiumWarning",
222
+ "recommendations",
223
+ ],
224
+ right: [
225
+ "productIngredients",
226
+ "productNutrition",
227
+ "recommendations",
228
+ "productNumber",
229
+ ],
230
+ },
247
231
  },
248
- couponGallery: {
249
- enabled: false,
250
- galleryIsIframe: false,
232
+ sodiumWarning: {
233
+ isEnabled: false,
234
+ threshold: 2300,
251
235
  },
252
236
  },
253
- productCardv2: false,
237
+ cartSummary: {
238
+ hideTaxOnSummary: false,
239
+ showTaxTotal: true,
240
+ showTaxGroups: true,
241
+ },
254
242
  };
255
243
  exports.default = DefaultConfigSFUI;
package/package.json CHANGED
@@ -1,18 +1,21 @@
1
- {
2
- "name": "@thryveai/theme-interfaces",
3
- "version": "2.3.16",
4
- "description": "Shared interfaces and defaults for all Wynshop themed apps.",
5
- "scripts": {
6
- "build": "tsc",
7
- "push": "npm run build && npm publish"
8
- },
9
- "author": "Wynshop",
10
- "license": "ISC",
11
- "main": "dist",
12
- "files": [
13
- "dist"
14
- ],
15
- "devDependencies": {
16
- "typescript": "4.6.3"
17
- }
18
- }
1
+ {
2
+ "name": "@thryveai/theme-interfaces",
3
+ "version": "2.4.0",
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
+ }