@thryveai/theme-interfaces 2.3.0-beta → 2.3.3
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.
- package/README.md +29 -29
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/interfaces/admin-settings-interfaces.d.ts +2 -44
- package/dist/interfaces/default-settings.interfaces.d.ts +1 -4
- package/dist/interfaces/retailer-settings.interfaces.d.ts +5 -2
- package/dist/storefront/SFUISettingsTemplate.AdminUi.js +724 -600
- package/dist/storefront/SFUIThemesTemplate.AdminUi.js +89 -29
- package/dist/storefront/defaultSettingsStorefront.js +24 -21
- package/dist/theme-templates/index.js +2 -2
- package/package.json +1 -1
|
@@ -1,53 +1,113 @@
|
|
|
1
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
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
exports.AdminThemeTemplateOptions = exports.AdminThemeTemplateSFUI = void 0;
|
|
4
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.';
|
|
5
21
|
exports.AdminThemeTemplateSFUI = {
|
|
6
22
|
colors: {
|
|
7
23
|
title: "Colors",
|
|
8
|
-
description: "",
|
|
24
|
+
description: " ",
|
|
9
25
|
type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.object,
|
|
10
26
|
value: {
|
|
11
|
-
|
|
12
|
-
title: "
|
|
13
|
-
description: "
|
|
27
|
+
brandColors: {
|
|
28
|
+
title: "Brand Colors",
|
|
29
|
+
description: "",
|
|
14
30
|
type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.collapsableObject,
|
|
15
31
|
value: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
},
|
|
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 }),
|
|
26
47
|
}
|
|
27
48
|
},
|
|
28
|
-
|
|
29
|
-
title: "
|
|
30
|
-
description: "
|
|
49
|
+
uiColors: {
|
|
50
|
+
title: "UI Colors",
|
|
51
|
+
description: "",
|
|
31
52
|
type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.collapsableObject,
|
|
32
53
|
value: {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
},
|
|
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),
|
|
43
72
|
}
|
|
44
73
|
},
|
|
45
74
|
},
|
|
46
|
-
}
|
|
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
|
+
// }
|
|
47
107
|
};
|
|
48
108
|
exports.AdminThemeTemplateOptions = {
|
|
49
109
|
title: 'Retailer Theme Template',
|
|
50
110
|
description: 'Please read the documentation before selecting a template.',
|
|
51
111
|
helpLink: 'https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3304521749/Admin+UI+Themes',
|
|
52
|
-
options: [
|
|
112
|
+
options: ["Default STS", "Default Storefront"],
|
|
53
113
|
};
|
|
@@ -1,6 +1,10 @@
|
|
|
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
|
+
},
|
|
4
8
|
advertSettings: {},
|
|
5
9
|
timeslotModalSettings: {
|
|
6
10
|
showOnAddToCart: false,
|
|
@@ -90,7 +94,6 @@ var DefaultConfigSFUI = {
|
|
|
90
94
|
enableGoogleTranslate: false,
|
|
91
95
|
enableNewsletterSignup: false,
|
|
92
96
|
enableNotifications: false,
|
|
93
|
-
enableVouchers: false,
|
|
94
97
|
errorLoggingLevel: "error",
|
|
95
98
|
externalStoreSelectorUrl: undefined,
|
|
96
99
|
flipp: null,
|
|
@@ -183,23 +186,27 @@ var DefaultConfigSFUI = {
|
|
|
183
186
|
},
|
|
184
187
|
},
|
|
185
188
|
googleAutocompleteSettings: {},
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
189
|
+
features: {
|
|
190
|
+
additionalCharges: false,
|
|
191
|
+
clientCache: false,
|
|
192
|
+
giftCards: false,
|
|
193
|
+
enableVouchers: false,
|
|
194
|
+
smartbanner: {
|
|
195
|
+
enabled: false,
|
|
196
|
+
author: "",
|
|
197
|
+
button: "",
|
|
198
|
+
buttonUrlApple: "",
|
|
199
|
+
buttonUrlGoogle: "",
|
|
200
|
+
closeLabel: "",
|
|
201
|
+
iconApple: "",
|
|
202
|
+
iconGoogle: "",
|
|
203
|
+
price: "",
|
|
204
|
+
priceSuffixApple: "",
|
|
205
|
+
priceSuffixGoogle: "",
|
|
206
|
+
title: "",
|
|
207
|
+
},
|
|
208
|
+
},
|
|
201
209
|
specialRequestItems: false,
|
|
202
|
-
additionalCharges: false,
|
|
203
210
|
sodiumWarning: {
|
|
204
211
|
isEnabled: false,
|
|
205
212
|
threshold: 2300,
|
|
@@ -233,10 +240,6 @@ var DefaultConfigSFUI = {
|
|
|
233
240
|
galleryIsIframe: false,
|
|
234
241
|
},
|
|
235
242
|
},
|
|
236
|
-
adminPanelOnly: {
|
|
237
|
-
bannerName: "",
|
|
238
|
-
logoUrl: "",
|
|
239
|
-
},
|
|
240
243
|
productCardv2: false,
|
|
241
244
|
};
|
|
242
245
|
exports.default = DefaultConfigSFUI;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var defaultThemeStorefront_1 = require("../storefront/defaultThemeStorefront");
|
|
4
4
|
var AllThemeTemplates = {
|
|
5
|
-
Default: defaultThemeStorefront_1.default,
|
|
6
|
-
|
|
5
|
+
'Default Storefront': defaultThemeStorefront_1.default,
|
|
6
|
+
'Default STS': defaultThemeStorefront_1.default,
|
|
7
7
|
};
|
|
8
8
|
exports.default = AllThemeTemplates;
|