@thryveai/theme-interfaces 2.3.15 → 2.4.1

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.
Files changed (39) hide show
  1. package/dist/index.d.ts +25 -0
  2. package/dist/index.js +29 -0
  3. package/dist/interfaces/admin-images-interfaces.d.ts +11 -0
  4. package/dist/interfaces/admin-images-interfaces.js +2 -0
  5. package/dist/interfaces/admin-settings-interfaces.d.ts +57 -0
  6. package/dist/interfaces/admin-settings-interfaces.js +2 -0
  7. package/dist/interfaces/default-settings.interfaces.d.ts +89 -0
  8. package/dist/interfaces/default-settings.interfaces.js +3 -0
  9. package/dist/interfaces/default-theme.interface.d.ts +694 -0
  10. package/dist/interfaces/default-theme.interface.js +2 -0
  11. package/dist/interfaces/icons.interfaces.d.ts +7 -0
  12. package/dist/interfaces/icons.interfaces.js +124 -0
  13. package/dist/interfaces/retailer-settings.interfaces.d.ts +493 -0
  14. package/dist/interfaces/retailer-settings.interfaces.js +2 -0
  15. package/dist/interfaces/sts-settings.interfaces.d.ts +6 -0
  16. package/dist/interfaces/sts-settings.interfaces.js +2 -0
  17. package/dist/interfaces/theme.interfaces.d.ts +695 -0
  18. package/dist/interfaces/theme.interfaces.js +2 -0
  19. package/dist/storefront/SFUIImagesTemplate.AdminUi.d.ts +2 -0
  20. package/dist/storefront/SFUIImagesTemplate.AdminUi.js +112 -0
  21. package/dist/storefront/SFUISettingsTemplate.AdminUi.d.ts +3 -0
  22. package/dist/storefront/SFUISettingsTemplate.AdminUi.js +873 -0
  23. package/dist/storefront/SFUIThemesTemplate.AdminUi.d.ts +3 -0
  24. package/dist/storefront/SFUIThemesTemplate.AdminUi.js +113 -0
  25. package/dist/storefront/defaultImagesStorefront.d.ts +3 -0
  26. package/dist/storefront/defaultImagesStorefront.js +96 -0
  27. package/dist/storefront/defaultSettingsStorefront.d.ts +3 -0
  28. package/dist/storefront/defaultSettingsStorefront.js +244 -0
  29. package/dist/storefront/defaultThemeStorefront.d.ts +5 -0
  30. package/dist/storefront/defaultThemeStorefront.js +1155 -0
  31. package/dist/sts/STSImagesTemplate.AdminUi.d.ts +2 -0
  32. package/dist/sts/STSImagesTemplate.AdminUi.js +50 -0
  33. package/dist/sts/STSSettingsTemplate.AdminUi.d.ts +2 -0
  34. package/dist/sts/STSSettingsTemplate.AdminUi.js +30 -0
  35. package/dist/sts/defaultSettingsSts.d.ts +3 -0
  36. package/dist/sts/defaultSettingsSts.js +9 -0
  37. package/dist/theme-templates/index.d.ts +3 -0
  38. package/dist/theme-templates/index.js +8 -0
  39. package/package.json +21 -18
@@ -0,0 +1,3 @@
1
+ import { IAdminThemeTemplateOptions, IAdminThemeTemplateSFUI } from "../interfaces/admin-settings-interfaces";
2
+ export declare const AdminThemeTemplateSFUI: IAdminThemeTemplateSFUI;
3
+ export declare const AdminThemeTemplateOptions: IAdminThemeTemplateOptions;
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.AdminThemeTemplateOptions = exports.AdminThemeTemplateSFUI = void 0;
15
+ var SFUISettingsTemplate_AdminUi_1 = require("./SFUISettingsTemplate.AdminUi");
16
+ var ColorFields = {
17
+ description: " ",
18
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.color,
19
+ };
20
+ var ColorFieldsDescription = 'This color is not used by all themes, so it could be empty.';
21
+ exports.AdminThemeTemplateSFUI = {
22
+ colors: {
23
+ title: "Colors",
24
+ description: " ",
25
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.object,
26
+ value: {
27
+ brandColors: {
28
+ title: "Brand Colors",
29
+ description: "",
30
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.collapsableObject,
31
+ value: {
32
+ primary1: __assign({ title: "Primary1" }, ColorFields),
33
+ primary2: __assign({ title: "Primary2" }, ColorFields),
34
+ primary3: __assign({ title: "Primary3" }, ColorFields),
35
+ primary4: __assign({ title: "Primary4" }, ColorFields),
36
+ primary5: __assign({ title: "Primary5" }, ColorFields),
37
+ secondary1: __assign({ title: "Secondary1" }, ColorFields),
38
+ secondary2: __assign({ title: "Secondary2" }, ColorFields),
39
+ secondary3: __assign({ title: "Secondary3" }, ColorFields),
40
+ secondary4: __assign({ title: "Secondary4" }, ColorFields),
41
+ secondary5: __assign({ title: "Secondary5" }, ColorFields),
42
+ tertiary1: __assign({ title: "Tertiary1" }, ColorFields),
43
+ tertiary2: __assign({ title: "Tertiary2" }, ColorFields),
44
+ tertiary3: __assign({ title: "Tertiary3" }, ColorFields),
45
+ tertiary4: __assign(__assign({ title: "Tertiary4" }, ColorFields), { description: ColorFieldsDescription }),
46
+ tertiary5: __assign(__assign({ title: "Tertiary5" }, ColorFields), { description: ColorFieldsDescription }),
47
+ }
48
+ },
49
+ uiColors: {
50
+ title: "UI Colors",
51
+ description: "",
52
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.collapsableObject,
53
+ value: {
54
+ success: __assign({ title: "Success" }, ColorFields),
55
+ successDark: __assign({ title: "Success Dark" }, ColorFields),
56
+ successLight: __assign({ title: "Success Light" }, ColorFields),
57
+ warn: __assign({ title: "Warn" }, ColorFields),
58
+ warnDark: __assign({ title: "Warn Dark" }, ColorFields),
59
+ warnLight: __assign({ title: "Warn Light" }, ColorFields),
60
+ alert: __assign({ title: "Alert" }, ColorFields),
61
+ alertDark: __assign({ title: "Alert Dark" }, ColorFields),
62
+ alertLight: __assign({ title: "Alert Light" }, ColorFields),
63
+ promotion1: __assign({ title: "Promotion1" }, ColorFields),
64
+ promotion2: __assign({ title: "Promotion2" }, ColorFields),
65
+ greyscale1: __assign({ title: "Greyscale1" }, ColorFields),
66
+ greyscale2: __assign({ title: "Greyscale2" }, ColorFields),
67
+ greyscale3: __assign({ title: "Greyscale3" }, ColorFields),
68
+ greyscale4: __assign({ title: "Greyscale4" }, ColorFields),
69
+ greyscale5: __assign({ title: "Greyscale5" }, ColorFields),
70
+ greyscale6: __assign({ title: "Greyscale6" }, ColorFields),
71
+ greyscale7: __assign({ title: "Greyscale7" }, ColorFields),
72
+ }
73
+ },
74
+ },
75
+ },
76
+ // typography: {
77
+ // title: "Typography",
78
+ // description: "",
79
+ // type: AdminTemplateInputTypes.object,
80
+ // value: {
81
+ // text: {
82
+ // title: "Text",
83
+ // description: "",
84
+ // type: AdminTemplateInputTypes.collapsableObject,
85
+ // value: {
86
+ // body: {
87
+ // title: "Body",
88
+ // description: "Main font styles for the body text",
89
+ // type: AdminTemplateInputTypes.collapsableObject,
90
+ // value: {
91
+ // fontFamily: {
92
+ // title: "Font Family",
93
+ // description: "",
94
+ // type: AdminTemplateInputTypes.inputChar
95
+ // },
96
+ // color: {
97
+ // title: "Color",
98
+ // description: "",
99
+ // type: AdminTemplateInputTypes.inputChar
100
+ // },
101
+ // }
102
+ // }
103
+ // }
104
+ // },
105
+ // }
106
+ // }
107
+ };
108
+ exports.AdminThemeTemplateOptions = {
109
+ title: 'Retailer Theme Template',
110
+ description: 'Please read the documentation before selecting a template.',
111
+ helpLink: 'https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3304521749/Admin+UI+Themes',
112
+ options: ["Default STS", "Default Storefront"],
113
+ };
@@ -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: "/assets/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;
@@ -0,0 +1,3 @@
1
+ import { IDefaultRetailerSettingsVersion2 } from "../interfaces/default-settings.interfaces";
2
+ declare const DefaultConfigSFUI: IDefaultRetailerSettingsVersion2;
3
+ export default DefaultConfigSFUI;
@@ -0,0 +1,244 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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
+ promoTemplateVersion: 1,
35
+ retailerCountry: "us",
36
+ retailerName: "default",
37
+ searchPreview: {
38
+ desktop: {
39
+ products: true,
40
+ suggestions: true,
41
+ },
42
+ mobile: {
43
+ products: true,
44
+ suggestions: true,
45
+ },
46
+ },
47
+ subHeaderHeight: 0,
48
+ disableTprPrice: false,
49
+ footerVersion: "default",
50
+ timeslotModalSettings: {
51
+ showOnAddToCart: false,
52
+ timeslotRequiredToAddToCart: false,
53
+ timeslotRequiredToViewCartReview: false,
54
+ },
55
+ ctaButtons: null,
56
+ mainHeaderHeight: 110,
57
+ },
58
+ features: {
59
+ additionalCharges: false,
60
+ clientCache: false,
61
+ vouchers: {
62
+ enabled: false,
63
+ reCaptcha: false,
64
+ },
65
+ giftCards: {
66
+ enabled: false,
67
+ giftCardInputValidation: "^[0-9]{17}$",
68
+ pinInputValidation: "^[0-9]{4}$",
69
+ reCaptcha: false,
70
+ },
71
+ smartbanner: {
72
+ enabled: false,
73
+ author: "",
74
+ button: "",
75
+ buttonUrlApple: "",
76
+ buttonUrlGoogle: "",
77
+ closeLabel: "",
78
+ iconApple: "",
79
+ iconGoogle: "",
80
+ price: "",
81
+ priceSuffixApple: "",
82
+ priceSuffixGoogle: "",
83
+ title: "",
84
+ },
85
+ entryModalVersion: "entry",
86
+ allowInStorePurchases: false,
87
+ allowPastPurchases: true,
88
+ advertSettings: {},
89
+ enableGoogleTranslate: false,
90
+ enableNewsletterSignup: false,
91
+ enableNotifications: false,
92
+ externalStoreSelectorUrl: {
93
+ enabled: false,
94
+ url: "",
95
+ },
96
+ favoritesV1: false,
97
+ flipp: null,
98
+ globalAnimations: {
99
+ confetti: {
100
+ enableConfettiAnimation: true,
101
+ },
102
+ },
103
+ instacart: {
104
+ enabled: false,
105
+ url: "",
106
+ },
107
+ registrationFields: [],
108
+ secondTierAuthorization: undefined,
109
+ showCheckoutPromoCode: true,
110
+ showImgOnOrder: false,
111
+ smsNotifications: {
112
+ enabled: false,
113
+ getEnrollmentUrl: "",
114
+ postEnrollmentUrl: "",
115
+ },
116
+ specialRequestItems: false,
117
+ couponGallery: {
118
+ enabled: false,
119
+ galleryIsIframe: false,
120
+ },
121
+ },
122
+ accountPage: {
123
+ loyaltyTab: {
124
+ disabledEdit: false,
125
+ enabled: false,
126
+ loyaltyNumberLength: 11,
127
+ loyaltyNumberPrefix: "",
128
+ loyaltyValidationType: [],
129
+ },
130
+ idp: {
131
+ enabled: false,
132
+ target: "_self",
133
+ url: "",
134
+ },
135
+ },
136
+ addressSettings: {
137
+ addressValidationTypes: {
138
+ addressLine1: ["alphaNumeric", "required"],
139
+ addressLine2: ["alphaNumeric"],
140
+ city: ["alphaNumeric", "required"],
141
+ countyProvinceState: ["usState", "required"],
142
+ familyName: ["alphaOnly", "required"],
143
+ firstName: ["alphaOnly", "required"],
144
+ instructions: ["alphaNumeric"],
145
+ phoneNumber: ["usPhone", "required"],
146
+ postCode: ["usPostCode", "required"],
147
+ smsNumber: [],
148
+ },
149
+ eircode: {
150
+ enabled: false,
151
+ url: "",
152
+ },
153
+ integration: {
154
+ enabled: false,
155
+ addressFinderType: "AUS",
156
+ useForNewAddresses: false,
157
+ addNewAddressUrl: "",
158
+ deleteAddressUrl: "",
159
+ editAddressUrl: "",
160
+ },
161
+ useAddressValidation: true,
162
+ disableAddressOnDelivery: false,
163
+ },
164
+ productCard: {
165
+ limitProductCardTitleHeight: true,
166
+ productCardTitleHeight: 40,
167
+ productCards: {
168
+ gridRowLength: {
169
+ tablet: 3,
170
+ desktop: 5,
171
+ mobile: 1,
172
+ },
173
+ carouselsRowLength: {
174
+ desktop: 6,
175
+ tablet: 4,
176
+ mobile: 1,
177
+ },
178
+ productCard: {
179
+ enabled: false,
180
+ layouts: {
181
+ ContainersGrid: "default",
182
+ ContainersCarousel: "default",
183
+ },
184
+ },
185
+ },
186
+ },
187
+ checkout: {
188
+ numericPhonePayload: false,
189
+ houseAccountRegExValidation: ".",
190
+ minimumCreditCardAmount: 1.0,
191
+ paymentCards: {
192
+ AmExpCard: true,
193
+ DiscoverCard: true,
194
+ MasterCard: true,
195
+ VisaCard: true,
196
+ },
197
+ checkoutValidation: {
198
+ instructions: ["alphaNumeric", "notWhiteSpacesOnly"],
199
+ phoneNumber: ["usPhone", "required"],
200
+ smsNumber: [],
201
+ },
202
+ },
203
+ pdpSettings: {
204
+ nutritionZone: "us",
205
+ pdpDetailsLayout: {
206
+ desktop: {
207
+ left: [
208
+ "productSalesInfo",
209
+ "productDescription",
210
+ "productIngredients",
211
+ "productNutrition",
212
+ "sodiumWarning",
213
+ "productNumber",
214
+ ],
215
+ right: ["recommendations"],
216
+ },
217
+ mobile: {
218
+ left: [
219
+ "productSalesInfo",
220
+ "productDescription",
221
+ "productNumber",
222
+ "sodiumWarning",
223
+ "recommendations",
224
+ ],
225
+ right: [
226
+ "productIngredients",
227
+ "productNutrition",
228
+ "recommendations",
229
+ "productNumber",
230
+ ],
231
+ },
232
+ },
233
+ sodiumWarning: {
234
+ isEnabled: false,
235
+ threshold: 2300,
236
+ },
237
+ },
238
+ cartSummary: {
239
+ hideTaxOnSummary: false,
240
+ showTaxTotal: true,
241
+ showTaxGroups: true,
242
+ },
243
+ };
244
+ exports.default = DefaultConfigSFUI;
@@ -0,0 +1,5 @@
1
+ import { IDefaultColors, IDefaultThemeInterface, IGlobalDefaultTheme } from "../interfaces/default-theme.interface";
2
+ declare const DefaultThemeSFUI: (colors?: IDefaultColors) => IDefaultThemeInterface;
3
+ export default DefaultThemeSFUI;
4
+ export declare const globalTheme: IGlobalDefaultTheme;
5
+ export declare const DefaultThemeColors: IDefaultColors;