@thryveai/theme-interfaces 2.1.1 → 2.2.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.
@@ -0,0 +1,2 @@
1
+ import { IAdminImagesTemplateSFUI } from "../interfaces/admin-settings-interfaces";
2
+ export declare const AdminImagesTemplateSFUI: IAdminImagesTemplateSFUI;
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminImagesTemplateSFUI = void 0;
4
+ var SFUISettingsTemplate_AdminUi_1 = require("./SFUISettingsTemplate.AdminUi");
5
+ exports.AdminImagesTemplateSFUI = {
6
+ icons: {
7
+ title: "Icons Files",
8
+ description: "The location of the file that contains all the icons.",
9
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.inputChar,
10
+ },
11
+ favicon: {
12
+ title: "Favicon Image",
13
+ description: "The favicon used by the Storefront and most other applications",
14
+ type: "inputChar",
15
+ },
16
+ logos: {
17
+ title: "Logos",
18
+ description: "",
19
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.object,
20
+ value: {
21
+ primary: {
22
+ title: "Main Logo",
23
+ description: "This is the logo used on desktop in the storefront and most other apps",
24
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
25
+ },
26
+ primaryMobile: {
27
+ title: "Mobile Logo",
28
+ description: "This is the logo used on mobile in the storefront and most other apps",
29
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
30
+ },
31
+ sts: {
32
+ title: "STS Logo",
33
+ description: "This is the logo used on desktop in the sts app",
34
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
35
+ },
36
+ stsMobile: {
37
+ title: "STS Mobile Logo",
38
+ description: "This is the logo used on mobile in the sts app",
39
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
40
+ },
41
+ },
42
+ },
43
+ stsFavicon: {
44
+ title: "STS Favicon Image",
45
+ description: "The favicon used by the STS application",
46
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
47
+ },
48
+ stsCheckBox: {
49
+ title: "stsCheckBox",
50
+ description: "",
51
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.object,
52
+ value: {
53
+ primary: {
54
+ title: "STS Primary Checkbox",
55
+ description: "This is the logo used on desktop in the storefront and most other apps",
56
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
57
+ },
58
+ empty: {
59
+ title: "STS Empty Checkbox",
60
+ description: "This is the logo used on mobile in the storefront and most other apps",
61
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
62
+ },
63
+ success: {
64
+ title: "STS Success Checkbox",
65
+ description: "This is the logo used on desktop in the sts app",
66
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
67
+ },
68
+ },
69
+ },
70
+ confirmationPageImage: {
71
+ title: "Confirmation Page Background Image",
72
+ description: "The background image used on the top of the order confirmation page",
73
+ type: "images",
74
+ },
75
+ rewards: {
76
+ title: "Rewards Image",
77
+ description: "",
78
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
79
+ },
80
+ verifySiteImage: {
81
+ title: "Verify Site Image",
82
+ description: "",
83
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
84
+ },
85
+ missingImg: {
86
+ title: "missingImg",
87
+ description: "",
88
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.object,
89
+ value: {
90
+ x2: {
91
+ title: "Missing Image 2X",
92
+ description: "T ",
93
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
94
+ },
95
+ x3: {
96
+ title: "Missing Image 3X",
97
+ description: "This is the logo used on mobile in the storefront and most other apps",
98
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
99
+ },
100
+ square: {
101
+ title: "Missing Image Square",
102
+ description: "This is the logo used on desktop in the sts app",
103
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
104
+ },
105
+ recipes: {
106
+ title: "Missing Image Recipes",
107
+ description: "This is the logo used on desktop in the sts app",
108
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
109
+ },
110
+ },
111
+ },
112
+ };
@@ -11,6 +11,7 @@ exports.AdminTemplateInputTypes = {
11
11
  multiDropdown: "multiDropdown",
12
12
  nullObject: "nullObject",
13
13
  object: "object",
14
+ images: "images",
14
15
  string: "string",
15
16
  };
16
17
  var addressValidationDescription = "Sets the validation types for user addresses";
@@ -0,0 +1,3 @@
1
+ import { IDefaultThemeImages } from "../interfaces/default-theme.interface";
2
+ declare const DefaultImagesSFUI: IDefaultThemeImages;
3
+ export default DefaultImagesSFUI;
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var imageBucket = "https://www";
4
+ var DefaultImagesSFUI = {
5
+ icons: "".concat(imageBucket, "/icons.js"),
6
+ logos: {
7
+ primary: "".concat(imageBucket, "/img/primary-logo.png"),
8
+ primaryMobile: "".concat(imageBucket, "/img/primary-logo.png"),
9
+ sts: "".concat(imageBucket, "/img/primary-logo.png"),
10
+ stsMobile: "".concat(imageBucket, "/img/primary-logo.png"),
11
+ },
12
+ confirmationPageImage: "".concat(imageBucket, "/img/CheckoutConfirmation_DesktopBG.png"),
13
+ stsCheckBox: {
14
+ primary: "".concat(imageBucket, "/img/select-check_p1.png"),
15
+ empty: "".concat(imageBucket, "/img/select-empty.png"),
16
+ success: "".concat(imageBucket, "/img/select-check_success.png"),
17
+ },
18
+ favicon: "".concat(imageBucket, "/img/mi9-favicon.ico"),
19
+ stsFavicon: "".concat(imageBucket, "/img/mi9-favicon.ico"),
20
+ rewards: "".concat(imageBucket, "/img/rewards-logo.svg"),
21
+ missingImg: {
22
+ recipes: "".concat(imageBucket, "/img/missing-Image-Recipe.svg"),
23
+ x2: "".concat(imageBucket, "/img/missing-Image-SquareX2.svg"),
24
+ x3: "".concat(imageBucket, "/img/missing-Image-SquareX3.svg"),
25
+ square: "".concat(imageBucket, "/img/missing-Image-Square.svg"),
26
+ },
27
+ verifySiteImage: "".concat(imageBucket, "/img/verify-footer-image.png"),
28
+ favicons: [
29
+ {
30
+ rel: "apple-touch-icon",
31
+ sizes: "57x57",
32
+ href: "".concat(imageBucket, "/favicons/apple-icon-57x57.png"),
33
+ },
34
+ {
35
+ rel: "apple-touch-icon",
36
+ sizes: "60x60",
37
+ href: "".concat(imageBucket, "/favicons/apple-icon-60x60.png"),
38
+ },
39
+ {
40
+ rel: "apple-touch-icon",
41
+ sizes: "72x72",
42
+ href: "".concat(imageBucket, "/favicons/apple-icon-72x72.png"),
43
+ },
44
+ {
45
+ rel: "apple-touch-icon",
46
+ sizes: "76x76",
47
+ href: "".concat(imageBucket, "/favicons/apple-icon-76x76.png"),
48
+ },
49
+ {
50
+ rel: "apple-touch-icon",
51
+ sizes: "114x114",
52
+ href: "".concat(imageBucket, "/favicons/apple-icon-114x114.png"),
53
+ },
54
+ {
55
+ rel: "apple-touch-icon",
56
+ sizes: "120x120",
57
+ href: "".concat(imageBucket, "/favicons/apple-icon-120x120.png"),
58
+ },
59
+ {
60
+ rel: "apple-touch-icon",
61
+ sizes: "144x144",
62
+ href: "".concat(imageBucket, "/favicons/apple-icon-144x144.png"),
63
+ },
64
+ {
65
+ rel: "apple-touch-icon",
66
+ sizes: "152x152",
67
+ href: "".concat(imageBucket, "/favicons/apple-icon-152x152.png"),
68
+ },
69
+ {
70
+ rel: "apple-touch-icon",
71
+ sizes: "180x180",
72
+ href: "".concat(imageBucket, "/favicons/apple-icon-180x180.png"),
73
+ },
74
+ {
75
+ rel: "icon",
76
+ sizes: "192x192",
77
+ href: "".concat(imageBucket, "/favicons/android-icon-192x192.png"),
78
+ },
79
+ {
80
+ rel: "icon",
81
+ sizes: "32x32",
82
+ href: "".concat(imageBucket, "/favicons/favicon-32x32.png"),
83
+ },
84
+ {
85
+ rel: "icon",
86
+ sizes: "96x96",
87
+ href: "".concat(imageBucket, "/favicons/favicon-96x96.png"),
88
+ },
89
+ {
90
+ rel: "icon",
91
+ sizes: "16x16",
92
+ href: "".concat(imageBucket, "/favicons/favicon-16x16.png"),
93
+ },
94
+ ],
95
+ };
96
+ exports.default = DefaultImagesSFUI;
@@ -1,3 +1,3 @@
1
- import { IDefaultRetailerSettings } from '../interfaces/default-settings.interfaces';
1
+ import { IDefaultRetailerSettings } from "../interfaces/default-settings.interfaces";
2
2
  declare const DefaultConfigSFUI: IDefaultRetailerSettings;
3
3
  export default DefaultConfigSFUI;
@@ -5,168 +5,168 @@ var DefaultConfigSFUI = {
5
5
  timeslotModalSettings: {
6
6
  showOnAddToCart: false,
7
7
  timeslotRequiredToAddToCart: false,
8
- timeslotRequiredToViewCartReview: false
8
+ timeslotRequiredToViewCartReview: false,
9
9
  },
10
10
  accountPage: {
11
11
  loyaltyTab: {
12
12
  disabledEdit: false,
13
13
  enabled: false,
14
14
  loyaltyNumberLength: 11,
15
- loyaltyNumberPrefix: '',
16
- loyaltyValidationType: []
17
- }
15
+ loyaltyNumberPrefix: "",
16
+ loyaltyValidationType: [],
17
+ },
18
18
  },
19
19
  addresses: {
20
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']
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
30
  },
31
31
  canadianAddressCompleteKey: undefined,
32
32
  eircodeUrl: undefined,
33
33
  integration: {
34
34
  addNewAddressUrl: undefined,
35
35
  deleteAddressUrl: undefined,
36
- editAddressUrl: undefined
36
+ editAddressUrl: undefined,
37
37
  },
38
- useAddressValidation: true
38
+ useAddressValidation: true,
39
39
  },
40
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']
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
50
  },
51
51
  addressIntegration: {
52
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'
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
56
  },
57
57
  allowInStorePurchases: false,
58
58
  allowPastPurchases: true,
59
- buildNumber: 'default',
59
+ buildNumber: "default",
60
60
  cacheTimeMins: 1,
61
61
  canadianAddressCompleteKey: undefined,
62
62
  checkoutV1: false,
63
63
  disableAddressOnDelivery: false,
64
64
  favoritesV1: false,
65
65
  checkout: {
66
- numericPhonePayload: false
66
+ numericPhonePayload: false,
67
67
  },
68
68
  checkoutValidation: {
69
- instructions: ['alphaNumeric', 'notWhiteSpacesOnly'],
70
- phoneNumber: ['usPhone', 'required'],
71
- smsNumber: []
69
+ instructions: ["alphaNumeric", "notWhiteSpacesOnly"],
70
+ phoneNumber: ["usPhone", "required"],
71
+ smsNumber: [],
72
72
  },
73
73
  ctaButtons: null,
74
- defaultCountry: 'USA',
74
+ defaultCountry: "USA",
75
75
  defaultSearchParams: {
76
- page: '1',
77
- q: '*',
78
- skip: '0',
79
- take: '30'
76
+ page: "1",
77
+ q: "*",
78
+ skip: "0",
79
+ take: "30",
80
80
  },
81
- defaultShoppingMode: 'pickup',
81
+ defaultShoppingMode: "pickup",
82
82
  defaultStoreLocation: {
83
83
  latitude: 0,
84
- longitude: 0
84
+ longitude: 0,
85
85
  },
86
86
  disableTprPrice: false,
87
- documentTitle: 'ThryveAI Commerce',
87
+ documentTitle: "ThryveAI Commerce",
88
88
  eircode: undefined,
89
89
  enable3dSecure: false,
90
90
  enableGoogleTranslate: false,
91
91
  enableNewsletterSignup: false,
92
92
  enableNotifications: false,
93
93
  enableVouchers: false,
94
- errorLoggingLevel: 'error',
94
+ errorLoggingLevel: "error",
95
95
  externalStoreSelectorUrl: undefined,
96
96
  flipp: null,
97
97
  gtmId: undefined,
98
98
  hideTaxOnSummary: false,
99
- houseAccountRegExValidation: '.',
100
- idpTarget: '_self',
99
+ houseAccountRegExValidation: ".",
100
+ idpTarget: "_self",
101
101
  idpUrl: undefined,
102
102
  instacartUrl: undefined,
103
103
  isPlanningOnly: false,
104
104
  layout: {
105
- footerVersion: 'default'
105
+ footerVersion: "default",
106
106
  },
107
107
  limitProductCardTitleHeight: true,
108
- loggingLevelClient: 'error',
109
- loggingLevelServer: 'error',
108
+ loggingLevelClient: "error",
109
+ loggingLevelServer: "error",
110
110
  mainHeaderHeight: 110,
111
111
  mapZoom: 8,
112
112
  minimumCreditCardAmount: 1.0,
113
- nutritionZone: 'us',
113
+ nutritionZone: "us",
114
114
  paymentCards: {
115
115
  AmExpCard: true,
116
116
  DiscoverCard: true,
117
117
  MasterCard: true,
118
- VisaCard: true
118
+ VisaCard: true,
119
119
  },
120
120
  pdpDetailsLayout: {
121
121
  desktop: {
122
122
  left: [
123
- 'productSalesInfo',
124
- 'productDescription',
125
- 'productIngredients',
126
- 'productNutrition',
127
- 'sodiumWarning',
128
- 'productNumber'
123
+ "productSalesInfo",
124
+ "productDescription",
125
+ "productIngredients",
126
+ "productNutrition",
127
+ "sodiumWarning",
128
+ "productNumber",
129
129
  ],
130
- right: ['recommendations']
130
+ right: ["recommendations"],
131
131
  },
132
132
  mobile: {
133
133
  left: [
134
- 'productSalesInfo',
135
- 'productDescription',
136
- 'productNumber',
137
- 'sodiumWarning',
138
- 'recommendations'
134
+ "productSalesInfo",
135
+ "productDescription",
136
+ "productNumber",
137
+ "sodiumWarning",
138
+ "recommendations",
139
139
  ],
140
140
  right: [
141
- 'productIngredients',
142
- 'productNutrition',
143
- 'recommendations',
144
- 'productNumber'
145
- ]
146
- }
141
+ "productIngredients",
142
+ "productNutrition",
143
+ "recommendations",
144
+ "productNumber",
145
+ ],
146
+ },
147
147
  },
148
148
  productCardTitleHeight: 40,
149
149
  registrationFields: [],
150
- retailerCountry: 'us',
151
- retailerName: 'default',
150
+ retailerCountry: "us",
151
+ retailerName: "default",
152
152
  daysToRemainSignedIn: 30,
153
153
  searchPreview: {
154
154
  desktop: {
155
155
  products: true,
156
- suggestions: true
156
+ suggestions: true,
157
157
  },
158
158
  mobile: {
159
159
  products: true,
160
- suggestions: true
161
- }
160
+ suggestions: true,
161
+ },
162
162
  },
163
163
  secondTierAuthorization: undefined,
164
164
  showCheckoutPromoCode: true,
165
165
  showImgOnOrder: false,
166
166
  smsNotifications: {
167
167
  enabled: false,
168
- getEnrollmentUrl: '',
169
- postEnrollmentUrl: ''
168
+ getEnrollmentUrl: "",
169
+ postEnrollmentUrl: "",
170
170
  },
171
171
  subHeaderHeight: 0,
172
172
  promoTemplateVersion: 1,
@@ -174,69 +174,69 @@ var DefaultConfigSFUI = {
174
174
  restrictMapPlacesResults: {
175
175
  fetchNearStoresSettings: {
176
176
  kmRange: 20,
177
- totalTake: 30
178
- }
177
+ totalTake: 30,
178
+ },
179
179
  },
180
180
  globalAnimations: {
181
181
  confetti: {
182
- enableConfettiAnimation: true
183
- }
182
+ enableConfettiAnimation: true,
183
+ },
184
184
  },
185
185
  googleAutocompleteSettings: {},
186
186
  smartbanner: {
187
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: ''
188
+ author: "",
189
+ button: "",
190
+ buttonUrlApple: "",
191
+ buttonUrlGoogle: "",
192
+ closeLabel: "",
193
+ iconApple: "",
194
+ iconGoogle: "",
195
+ price: "",
196
+ priceSuffixApple: "",
197
+ priceSuffixGoogle: "",
198
+ title: "",
199
199
  },
200
200
  features: { clientCache: false },
201
201
  specialRequestItems: false,
202
202
  additionalCharges: false,
203
203
  sodiumWarning: {
204
204
  isEnabled: false,
205
- threshold: 2300
205
+ threshold: 2300,
206
206
  },
207
207
  productCards: {
208
208
  gridRowLength: {
209
209
  tablet: 3,
210
210
  desktop: 5,
211
- mobile: 1
211
+ mobile: 1,
212
212
  },
213
213
  carouselsRowLength: {
214
214
  desktop: 6,
215
215
  tablet: 4,
216
- mobile: 1
216
+ mobile: 1,
217
217
  },
218
218
  productCard: {
219
219
  enabled: false,
220
220
  layouts: {
221
- ContainersGrid: 'default',
222
- ContainersCarousel: 'default'
223
- }
224
- }
221
+ ContainersGrid: "default",
222
+ ContainersCarousel: "default",
223
+ },
224
+ },
225
225
  },
226
226
  layouts: {
227
227
  cartSummary: {
228
228
  showTaxTotal: true,
229
- showTaxGroups: true
229
+ showTaxGroups: true,
230
230
  },
231
231
  couponGallery: {
232
232
  enabled: false,
233
- galleryIsIframe: false
234
- }
233
+ galleryIsIframe: false,
234
+ },
235
235
  },
236
236
  adminPanelOnly: {
237
- bannerName: '',
238
- logoUrl: ''
237
+ bannerName: "",
238
+ logoUrl: "",
239
239
  },
240
- productCardv2: false
240
+ productCardv2: false,
241
241
  };
242
242
  exports.default = DefaultConfigSFUI;
package/dist/index.d.ts CHANGED
@@ -1,17 +1,21 @@
1
- import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminControl, IAdminControlType } from "./interfaces/admin-settings-interfaces";
1
+ import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminImagesTemplateSFUI, IAdminImagesTemplateSTS, IAdminControl, IAdminControlType } from "./interfaces/admin-settings-interfaces";
2
+ import { IAdminImagesControls, ISecondaryFaviconType } from "./interfaces/admin-images-interfaces";
2
3
  import { IDefaultRetailerSettings } from "./interfaces/default-settings.interfaces";
3
4
  import { IDefaultStsSettings } from "./interfaces/sts-settings.interfaces";
4
5
  import DefaultConfigSFUI from "./Storefront/defaultSettingsStorefront";
6
+ import DefaultImagesSFUI from "./Storefront/defaultImagesStorefront";
5
7
  import DefaultConfigSTS from "./sts/defaultSettingsSts";
6
8
  import { AdminTemplateInputTypes, AdminSettingsTemplateSFUI } from "./Storefront/SFUISettingsTemplate.AdminUi";
7
9
  import { AdminSettingsTemplateSTS } from "./sts/STSSettingsTemplate.AdminUi";
10
+ import { AdminImagesTemplateSFUI } from "./storefront/SFUIImagesTemplate.AdminUi";
11
+ import { AdminImagesTemplateSTS } from "./sts/STSImagesTemplate.AdminUi";
8
12
  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, IValidateMultipleLengths, 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";
9
13
  import { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames, IconNamesToFiles } from "./interfaces/icons.interfaces";
10
14
  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";
11
15
  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";
12
- export { DefaultConfigSFUI, DefaultConfigSTS, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes };
13
- export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminControl, IAdminControlType, };
16
+ export { DefaultConfigSFUI, DefaultConfigSTS, DefaultImagesSFUI, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes, AdminImagesTemplateSFUI, AdminImagesTemplateSTS };
17
+ export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminControl, IAdminControlType, IAdminImagesTemplateSFUI, IAdminImagesTemplateSTS, IAdminImagesControls, ISecondaryFaviconType };
14
18
  export { IDefaultRetailerSettings, IDefaultStsSettings };
15
- 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 };
19
+ 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, };
16
20
  export { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames, IconNamesToFiles, };
17
- 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, IValidateMultipleLengths, 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 };
21
+ 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, IValidateMultipleLengths, 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 CHANGED
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IconNamesToFiles = exports.AdminTemplateInputTypes = exports.AdminSettingsTemplateSTS = exports.AdminSettingsTemplateSFUI = exports.DefaultConfigSTS = exports.DefaultConfigSFUI = void 0;
3
+ exports.IconNamesToFiles = exports.AdminImagesTemplateSTS = exports.AdminImagesTemplateSFUI = exports.AdminTemplateInputTypes = exports.AdminSettingsTemplateSTS = exports.AdminSettingsTemplateSFUI = exports.DefaultImagesSFUI = exports.DefaultConfigSTS = exports.DefaultConfigSFUI = void 0;
4
4
  var defaultSettingsStorefront_1 = require("./Storefront/defaultSettingsStorefront");
5
5
  exports.DefaultConfigSFUI = defaultSettingsStorefront_1.default;
6
+ var defaultImagesStorefront_1 = require("./Storefront/defaultImagesStorefront");
7
+ exports.DefaultImagesSFUI = defaultImagesStorefront_1.default;
6
8
  var defaultSettingsSts_1 = require("./sts/defaultSettingsSts");
7
9
  exports.DefaultConfigSTS = defaultSettingsSts_1.default;
8
10
  var SFUISettingsTemplate_AdminUi_1 = require("./Storefront/SFUISettingsTemplate.AdminUi");
@@ -10,5 +12,9 @@ Object.defineProperty(exports, "AdminTemplateInputTypes", { enumerable: true, ge
10
12
  Object.defineProperty(exports, "AdminSettingsTemplateSFUI", { enumerable: true, get: function () { return SFUISettingsTemplate_AdminUi_1.AdminSettingsTemplateSFUI; } });
11
13
  var STSSettingsTemplate_AdminUi_1 = require("./sts/STSSettingsTemplate.AdminUi");
12
14
  Object.defineProperty(exports, "AdminSettingsTemplateSTS", { enumerable: true, get: function () { return STSSettingsTemplate_AdminUi_1.AdminSettingsTemplateSTS; } });
15
+ var SFUIImagesTemplate_AdminUi_1 = require("./storefront/SFUIImagesTemplate.AdminUi");
16
+ Object.defineProperty(exports, "AdminImagesTemplateSFUI", { enumerable: true, get: function () { return SFUIImagesTemplate_AdminUi_1.AdminImagesTemplateSFUI; } });
17
+ var STSImagesTemplate_AdminUi_1 = require("./sts/STSImagesTemplate.AdminUi");
18
+ Object.defineProperty(exports, "AdminImagesTemplateSTS", { enumerable: true, get: function () { return STSImagesTemplate_AdminUi_1.AdminImagesTemplateSTS; } });
13
19
  var icons_interfaces_1 = require("./interfaces/icons.interfaces");
14
20
  Object.defineProperty(exports, "IconNamesToFiles", { enumerable: true, get: function () { return icons_interfaces_1.IconNamesToFiles; } });
@@ -0,0 +1,11 @@
1
+ export interface IAdminImagesControls {
2
+ title: string;
3
+ hasImage: boolean;
4
+ helpLink: string | null;
5
+ isArray?: boolean;
6
+ }
7
+ export interface ISecondaryFaviconType {
8
+ rel: string;
9
+ sizes: string;
10
+ href: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -58,10 +58,19 @@ export interface IAdminControl {
58
58
  [key: string]: IAdminControl;
59
59
  };
60
60
  }
61
- export declare type IAdminControlType = "checkbox" | "collapsableObject" | "color" | "dropdown" | "inputChar" | "inputNumber" | "multiDropdown" | "nullObject" | "object" | "string";
61
+ export declare type IAdminControlType = "checkbox" | "collapsableObject" | "color" | "dropdown" | "inputChar" | "inputNumber" | "multiDropdown" | "nullObject" | "object" | "images" | "string";
62
62
  export interface IAdminSettingsTemplateSTS {
63
63
  hasEUTerms: IAdminControl;
64
64
  hasTwoStepRegistration: IAdminControl;
65
65
  customTermPolicy: IAdminControl;
66
66
  gtmId: IAdminControl;
67
67
  }
68
+ export declare type IAdminImagesTemplateSTS = {
69
+ [key in IAdminImagesKeysSTS]: IAdminControl;
70
+ };
71
+ export declare type IAdminImagesTemplateSFUI = {
72
+ [key in IAdminImagesKeys]: IAdminControl;
73
+ };
74
+ declare type IAdminImagesKeysSTS = "logos" | "stsCheckBox" | "stsFavicon";
75
+ declare type IAdminImagesKeys = "icons" | "logos" | "confirmationPageImage" | "stsCheckBox" | "stsFavicon" | "favicon" | "rewards" | "verifySiteImage" | "missingImg";
76
+ export {};
@@ -0,0 +1,2 @@
1
+ import { IAdminImagesTemplateSTS } from "../interfaces/admin-settings-interfaces";
2
+ export declare const AdminImagesTemplateSTS: IAdminImagesTemplateSTS;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminImagesTemplateSTS = void 0;
4
+ var SFUISettingsTemplate_AdminUi_1 = require("../storefront/SFUISettingsTemplate.AdminUi");
5
+ exports.AdminImagesTemplateSTS = {
6
+ logos: {
7
+ title: "Logos",
8
+ description: "",
9
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.object,
10
+ value: {
11
+ sts: {
12
+ title: "STS Logo",
13
+ description: "This is the logo used on desktop in the sts app",
14
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
15
+ },
16
+ stsMobile: {
17
+ title: "STS Mobile Logo",
18
+ description: "This is the logo used on mobile in the sts app",
19
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
20
+ },
21
+ },
22
+ },
23
+ stsFavicon: {
24
+ title: "STS Favicon Image",
25
+ description: "The favicon used by the STS application",
26
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
27
+ },
28
+ stsCheckBox: {
29
+ title: "stsCheckBox",
30
+ description: "",
31
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.object,
32
+ value: {
33
+ primary: {
34
+ title: "STS Primary Checkbox",
35
+ description: "This is the logo used on desktop in the storefront and most other apps",
36
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
37
+ },
38
+ empty: {
39
+ title: "STS Empty Checkbox",
40
+ description: "This is the logo used on mobile in the storefront and most other apps",
41
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
42
+ },
43
+ success: {
44
+ title: "STS Success Checkbox",
45
+ description: "This is the logo used on desktop in the sts app",
46
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
47
+ },
48
+ },
49
+ },
50
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thryveai/theme-interfaces",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "Shared interfaces and defaults for all Wynshop themed apps.",
5
5
  "scripts": {
6
6
  "build": "tsc",