@thryveai/theme-interfaces 2.2.2 → 2.3.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.
@@ -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
+ };
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var imageBucket = "https://www";
4
4
  var DefaultImagesSFUI = {
5
- icons: "".concat(imageBucket, "/icons.js"),
5
+ icons: "/assets/icons.js",
6
6
  logos: {
7
7
  primary: "".concat(imageBucket, "/img/primary-logo.png"),
8
8
  primaryMobile: "".concat(imageBucket, "/img/primary-logo.png"),
@@ -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,
@@ -183,23 +187,25 @@ var DefaultConfigSFUI = {
183
187
  },
184
188
  },
185
189
  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 },
190
+ features: {
191
+ additionalCharges: false,
192
+ clientCache: false,
193
+ smartbanner: {
194
+ enabled: false,
195
+ author: "",
196
+ button: "",
197
+ buttonUrlApple: "",
198
+ buttonUrlGoogle: "",
199
+ closeLabel: "",
200
+ iconApple: "",
201
+ iconGoogle: "",
202
+ price: "",
203
+ priceSuffixApple: "",
204
+ priceSuffixGoogle: "",
205
+ title: "",
206
+ },
207
+ },
201
208
  specialRequestItems: false,
202
- additionalCharges: false,
203
209
  sodiumWarning: {
204
210
  isEnabled: false,
205
211
  threshold: 2300,
@@ -233,10 +239,6 @@ var DefaultConfigSFUI = {
233
239
  galleryIsIframe: false,
234
240
  },
235
241
  },
236
- adminPanelOnly: {
237
- bannerName: "",
238
- logoUrl: "",
239
- },
240
242
  productCardv2: false,
241
243
  };
242
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;