@thryveai/theme-interfaces 2.4.10 → 2.4.12

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,134 +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: {
35
- enabled: false,
36
- sections: {
37
- marketingPreferences: []
38
- }
39
- },
40
- promoTemplateVersion: 1,
41
- retailerCountry: "us",
42
- retailerName: "default",
43
- searchPreview: {
44
- desktop: {
45
- products: true,
46
- suggestions: true,
47
- },
48
- mobile: {
49
- products: true,
50
- suggestions: true,
51
- },
52
- },
53
- subHeaderHeight: 0,
54
- disableTprPrice: false,
55
- footerVersion: "default",
56
- timeslotModalSettings: {
57
- showOnAddToCart: false,
58
- timeslotRequiredToAddToCart: false,
59
- timeslotRequiredToViewCartReview: false,
60
- },
61
- ctaButtons: null,
62
- mainHeaderHeight: 110,
63
- },
64
- features: {
65
- additionalCharges: false,
66
- clientCache: false,
67
- vouchers: {
68
- enabled: false,
69
- reCaptcha: false,
70
- },
71
- giftCards: {
72
- enabled: false,
73
- giftCardInputValidation: "^[0-9]{17}$",
74
- pinInputValidation: "^[0-9]{4}$",
75
- reCaptcha: false,
76
- },
77
- smartbanner: {
78
- enabled: false,
79
- author: "",
80
- button: "",
81
- buttonUrlApple: "",
82
- buttonUrlGoogle: "",
83
- closeLabel: "",
84
- iconApple: "",
85
- iconGoogle: "",
86
- price: "",
87
- priceSuffixApple: "",
88
- priceSuffixGoogle: "",
89
- title: "",
90
- },
91
- entryModalVersion: "entry",
92
- hideAlcoholRule: { modal: false, pdp: false },
93
- addressIntegrationV2: false,
94
- allowInStorePurchases: false,
95
- allowPastPurchases: true,
96
- advertSettings: {},
97
- enableGoogleTranslate: false,
98
- enableNewsletterSignup: false,
99
- enableNotifications: false,
100
- externalStoreSelectorUrl: {
101
- enabled: false,
102
- url: "",
103
- },
104
- favoritesV1: false,
105
- flipp: null,
106
- globalAnimations: {
107
- confetti: {
108
- enableConfettiAnimation: true,
109
- },
110
- },
111
- instacart: {
4
+ accountPage: {
5
+ idp: {
112
6
  enabled: false,
7
+ target: "_self",
113
8
  url: "",
114
9
  },
115
- registrationFields: [],
116
- secondTierAuthorization: undefined,
117
- showCheckoutPromoCode: true,
118
- showImgOnOrder: false,
119
- smsNotifications: {
120
- enabled: false,
121
- getEnrollmentUrl: "",
122
- postEnrollmentUrl: "",
123
- },
124
- specialRequestItems: false,
125
- couponGallery: {
126
- enabled: false,
127
- galleryIsIframe: false,
128
- galleryHasNavLink: false,
129
- },
130
- },
131
- accountPage: {
132
10
  loyaltyTab: {
133
11
  disabledEdit: false,
134
12
  enabled: false,
@@ -136,11 +14,6 @@ var DefaultConfigSFUI = {
136
14
  loyaltyNumberPrefix: "",
137
15
  loyaltyValidationType: [],
138
16
  },
139
- idp: {
140
- enabled: false,
141
- target: "_self",
142
- url: "",
143
- },
144
17
  },
145
18
  addressSettings: {
146
19
  addressValidationTypes: {
@@ -160,52 +33,108 @@ var DefaultConfigSFUI = {
160
33
  url: "",
161
34
  },
162
35
  integration: {
163
- enabled: false,
164
- addressFinderType: "AUS",
165
- useForNewAddresses: false,
166
36
  addNewAddressUrl: "",
37
+ addressFinderType: "AUS",
167
38
  deleteAddressUrl: "",
168
39
  editAddressUrl: "",
40
+ enabled: false,
41
+ useForNewAddresses: false,
169
42
  },
170
43
  useAddressValidation: true,
171
44
  },
172
- productCard: {
173
- limitProductCardTitleHeight: true,
174
- productCardTitleHeight: 40,
175
- productCards: {
176
- gridRowLength: {
177
- tablet: 3,
178
- desktop: 5,
179
- mobile: 1,
180
- },
181
- carouselsRowLength: {
182
- desktop: 6,
183
- tablet: 4,
184
- mobile: 1,
185
- },
186
- productCard: {
187
- enabled: false,
188
- layouts: {
189
- ContainersGrid: "default",
190
- ContainersCarousel: "default",
191
- },
192
- },
193
- },
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,
194
53
  },
195
54
  checkout: {
196
- numericPhonePayload: false,
55
+ checkoutValidation: {
56
+ instructions: ["alphaNumeric", "notWhiteSpacesOnly"],
57
+ phoneNumber: ["usPhone", "required"],
58
+ smsNumber: [],
59
+ },
197
60
  houseAccountRegExValidation: ".",
198
61
  minimumCreditCardAmount: 1.0,
62
+ numericPhonePayload: false,
199
63
  paymentCards: {
200
64
  AmExpCard: true,
201
65
  DiscoverCard: true,
202
66
  MasterCard: true,
203
67
  VisaCard: true,
204
68
  },
205
- checkoutValidation: {
206
- instructions: ["alphaNumeric", "notWhiteSpacesOnly"],
207
- phoneNumber: ["usPhone", "required"],
208
- 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,
209
138
  },
210
139
  },
211
140
  pdpSettings: {
@@ -243,10 +172,107 @@ var DefaultConfigSFUI = {
243
172
  threshold: 2300,
244
173
  },
245
174
  },
246
- cartSummary: {
247
- hideTaxOnSummary: false,
248
- showTaxTotal: true,
249
- 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
+ },
254
+ useContentEngineV2Components: {
255
+ Carousel: false,
256
+ SmallCarousel: false,
257
+ Freeform: false,
258
+ ContactUs: false,
259
+ HeroBanner: false,
260
+ Image: false,
261
+ Video: false,
262
+ VideoWithContent: false,
263
+ ImageWithContent: false,
264
+ ImageTextButton: false,
265
+ SmallPromotion: false,
266
+ SmallImageWithContent: false,
267
+ LargePromotion: false,
268
+ TwoBannerContainer: false,
269
+ ThreeBannerContainer: false,
270
+ Sale: false,
271
+ SmallBannerWithBackgroundImage: false,
272
+ SmallBannerWithSupportingImage: false,
273
+ ProductCardStory: false,
274
+ Recipe: false,
275
+ },
250
276
  },
251
277
  };
252
278
  exports.default = DefaultConfigSFUI;
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
- {
2
- "name": "@thryveai/theme-interfaces",
3
- "version": "2.4.10",
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.12",
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,3 +0,0 @@
1
- import { IDefaultRetailerSettings } from './interfaces/default-settings.interfaces';
2
- declare const defaultConfig: IDefaultRetailerSettings;
3
- export default defaultConfig;
@@ -1,242 +0,0 @@
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;
@@ -1,3 +0,0 @@
1
- import { IAdminSettingsTemplate, IAdminTemplateInputTypes } from "./interfaces/admin-settings-interfaces";
2
- export declare const AdminTemplateInputTypes: IAdminTemplateInputTypes;
3
- export declare const AdminSettingsTemplate: IAdminSettingsTemplate;