@thryveai/theme-interfaces 1.4.8-beta7 → 1.4.8-beta8
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/admin-settings-interfaces.d.ts +1 -0
- package/admin-settings-template.js +59 -105
- package/default.config.js +4 -0
- package/package.json +14 -14
- package/retailer-settings.interfaces.d.ts +4 -0
package/README.md
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
#V8 Theme Interfaces
|
|
2
|
-
|
|
3
|
-
interfaces for all MI9 Retailer Themes.
|
|
4
|
-
|
|
5
|
-
###icons.interfaces
|
|
6
|
-
List of all icons used inside the ui projects.
|
|
7
|
-
|
|
8
|
-
###retailer-settings.interfaces
|
|
9
|
-
more info here
|
|
10
|
-
https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo
|
|
11
|
-
###theme.interfaces
|
|
12
|
-
The interface for each theme, colors, fonts, sizes and other css properties.
|
|
13
|
-
|
|
14
|
-
#To Build Project
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
npm install
|
|
18
|
-
npm run build
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
#To Publish npm package
|
|
22
|
-
```
|
|
23
|
-
npm login
|
|
24
|
-
npm publish
|
|
25
|
-
```
|
|
26
|
-
or
|
|
27
|
-
```
|
|
28
|
-
npm run push
|
|
29
|
-
```
|
|
1
|
+
#V8 Theme Interfaces
|
|
2
|
+
|
|
3
|
+
interfaces for all MI9 Retailer Themes.
|
|
4
|
+
|
|
5
|
+
###icons.interfaces
|
|
6
|
+
List of all icons used inside the ui projects.
|
|
7
|
+
|
|
8
|
+
###retailer-settings.interfaces
|
|
9
|
+
more info here
|
|
10
|
+
https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo
|
|
11
|
+
###theme.interfaces
|
|
12
|
+
The interface for each theme, colors, fonts, sizes and other css properties.
|
|
13
|
+
|
|
14
|
+
#To Build Project
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
npm install
|
|
18
|
+
npm run build
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
#To Publish npm package
|
|
22
|
+
```
|
|
23
|
+
npm login
|
|
24
|
+
npm publish
|
|
25
|
+
```
|
|
26
|
+
or
|
|
27
|
+
```
|
|
28
|
+
npm run push
|
|
29
|
+
```
|
|
@@ -3,6 +3,7 @@ export declare type IAdminTemplateInputTypes = {
|
|
|
3
3
|
[key in IAdminControlType]: IAdminControlType;
|
|
4
4
|
};
|
|
5
5
|
export interface IAdminSettingsTemplate {
|
|
6
|
+
adminPanelOnly: IAdminControl;
|
|
6
7
|
accountPage: IAdminControl;
|
|
7
8
|
addressValidationTypes: IAdminControl;
|
|
8
9
|
allowInStorePurchases: IAdminControl;
|
|
@@ -29,114 +29,23 @@ var validationTypes = [
|
|
|
29
29
|
"correctDate",
|
|
30
30
|
];
|
|
31
31
|
exports.AdminSettingsTemplate = {
|
|
32
|
-
|
|
33
|
-
title: "
|
|
34
|
-
description: "
|
|
32
|
+
adminPanelOnly: {
|
|
33
|
+
title: "Retailer Details",
|
|
34
|
+
description: "",
|
|
35
35
|
type: admin_theme_template_1.AdminTemplateInputTypes.object,
|
|
36
36
|
value: {
|
|
37
|
-
|
|
38
|
-
title: "
|
|
39
|
-
description: "
|
|
40
|
-
type:
|
|
41
|
-
value: {
|
|
42
|
-
enabled: {
|
|
43
|
-
title: "Enable Loyalty Tab",
|
|
44
|
-
description: "Enable Loyalty tab section within My Account page",
|
|
45
|
-
type: admin_theme_template_1.AdminTemplateInputTypes.checkbox
|
|
46
|
-
},
|
|
47
|
-
disabledEdit: {
|
|
48
|
-
title: "Disable Loyalty edit",
|
|
49
|
-
description: "Prevent users to change their loyalty number",
|
|
50
|
-
type: admin_theme_template_1.AdminTemplateInputTypes.checkbox
|
|
51
|
-
},
|
|
52
|
-
loyaltyNumberLength: {
|
|
53
|
-
title: "Loyalty Number Length",
|
|
54
|
-
description: "Control the loyalty number length",
|
|
55
|
-
type: "inputNumber",
|
|
56
|
-
},
|
|
57
|
-
loyaltyNumberPrefix: {
|
|
58
|
-
title: "Loyalty Number Prefix",
|
|
59
|
-
description: "Add hardcoded prefix for loyalty numbers (this will affect the length)",
|
|
60
|
-
type: "inputChar",
|
|
61
|
-
},
|
|
62
|
-
loyaltyValidationType: {
|
|
63
|
-
title: "Loyalty Number Validation",
|
|
64
|
-
description: "Select loyalty validation types",
|
|
65
|
-
type: "multiDropdown",
|
|
66
|
-
options: validationTypes,
|
|
67
|
-
},
|
|
68
|
-
},
|
|
37
|
+
bannerName: {
|
|
38
|
+
title: "Name of the Retailer",
|
|
39
|
+
description: "Only used to identify the banner in the admin panel",
|
|
40
|
+
type: "inputChar",
|
|
69
41
|
},
|
|
70
|
-
|
|
42
|
+
logoUrl: {
|
|
43
|
+
title: "Name of the Retailer",
|
|
44
|
+
description: "Only used to identify the banner in the admin panel",
|
|
45
|
+
type: "inputChar",
|
|
46
|
+
},
|
|
47
|
+
}
|
|
71
48
|
},
|
|
72
|
-
// accountPage: {
|
|
73
|
-
// loyaltyTab: {
|
|
74
|
-
// disabledEdit: {
|
|
75
|
-
// title: "Disable Edit",
|
|
76
|
-
// description: "Disable edit mode in loyalty tabs",
|
|
77
|
-
// helpLink:
|
|
78
|
-
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
79
|
-
// type: "checkbox",
|
|
80
|
-
// },
|
|
81
|
-
// enabled: {
|
|
82
|
-
// title: "Enable Loyalty",
|
|
83
|
-
// description: "Enable loyalty tab and functionality",
|
|
84
|
-
// helpLink:
|
|
85
|
-
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
86
|
-
// type: "checkbox",
|
|
87
|
-
// },
|
|
88
|
-
// loyaltyNumberLength: {
|
|
89
|
-
// title: "Loyalty Number Length",
|
|
90
|
-
// description: "Set the loyalty card character number length",
|
|
91
|
-
// helpLink:
|
|
92
|
-
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
93
|
-
// type: "inputNumber",
|
|
94
|
-
// },
|
|
95
|
-
// loyaltyNumberPrefix: {
|
|
96
|
-
// title: "Loyalty Number Prefix",
|
|
97
|
-
// description: "Set the loyalty card prefix",
|
|
98
|
-
// helpLink:
|
|
99
|
-
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
100
|
-
// type: "inputChar",
|
|
101
|
-
// },
|
|
102
|
-
// loyaltyValidationType: {
|
|
103
|
-
// title: "Loyalty Validation",
|
|
104
|
-
// description: "Select the loyalty validation types",
|
|
105
|
-
// helpLink:
|
|
106
|
-
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
107
|
-
// type: "multiDropdown",
|
|
108
|
-
// options: [
|
|
109
|
-
// "luhnValidation",
|
|
110
|
-
// "alphaNumeric",
|
|
111
|
-
// "alphaOnly",
|
|
112
|
-
// "numericOnly",
|
|
113
|
-
// "anyPhone",
|
|
114
|
-
// "email",
|
|
115
|
-
// "password",
|
|
116
|
-
// "required",
|
|
117
|
-
// "usPhone",
|
|
118
|
-
// "usMobileNumber",
|
|
119
|
-
// "caPhone",
|
|
120
|
-
// "auPhone",
|
|
121
|
-
// "iePhone",
|
|
122
|
-
// "caProvince",
|
|
123
|
-
// "usState",
|
|
124
|
-
// "auState",
|
|
125
|
-
// "ieCounty",
|
|
126
|
-
// "caPostCode",
|
|
127
|
-
// "usPostCode",
|
|
128
|
-
// "auPostCode",
|
|
129
|
-
// "iePostCode",
|
|
130
|
-
// "noSpecialChar",
|
|
131
|
-
// "correctDate",
|
|
132
|
-
// ],
|
|
133
|
-
// },
|
|
134
|
-
// },
|
|
135
|
-
// },
|
|
136
|
-
// advertSettings: {},
|
|
137
|
-
// addresses:{}
|
|
138
|
-
// addressIntegration
|
|
139
|
-
// TODO: fix required validation
|
|
140
49
|
allowInStorePurchases: {
|
|
141
50
|
title: "InStore Purchases",
|
|
142
51
|
description: "Show the purchases made in store in the order history (requires integration).",
|
|
@@ -149,7 +58,6 @@ exports.AdminSettingsTemplate = {
|
|
|
149
58
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
150
59
|
type: "checkbox",
|
|
151
60
|
},
|
|
152
|
-
// buildNumber: string;
|
|
153
61
|
cacheTimeMins: {
|
|
154
62
|
title: "Production Cache time",
|
|
155
63
|
description: "How long data will be cached to make the site faster. (1 = 1minute)",
|
|
@@ -242,6 +150,46 @@ exports.AdminSettingsTemplate = {
|
|
|
242
150
|
},
|
|
243
151
|
},
|
|
244
152
|
},
|
|
153
|
+
accountPage: {
|
|
154
|
+
title: "Account Page",
|
|
155
|
+
description: "Account page settings",
|
|
156
|
+
type: admin_theme_template_1.AdminTemplateInputTypes.object,
|
|
157
|
+
value: {
|
|
158
|
+
loyaltyTab: {
|
|
159
|
+
title: "Loyalty Tab",
|
|
160
|
+
description: "Set up Loyalty Tab on account page",
|
|
161
|
+
type: admin_theme_template_1.AdminTemplateInputTypes.object,
|
|
162
|
+
value: {
|
|
163
|
+
enabled: {
|
|
164
|
+
title: "Enable Loyalty Tab",
|
|
165
|
+
description: "Enable Loyalty tab section within My Account page",
|
|
166
|
+
type: admin_theme_template_1.AdminTemplateInputTypes.checkbox
|
|
167
|
+
},
|
|
168
|
+
disabledEdit: {
|
|
169
|
+
title: "Disable Loyalty edit",
|
|
170
|
+
description: "Prevent users to change their loyalty number",
|
|
171
|
+
type: admin_theme_template_1.AdminTemplateInputTypes.checkbox
|
|
172
|
+
},
|
|
173
|
+
loyaltyNumberLength: {
|
|
174
|
+
title: "Loyalty Number Length",
|
|
175
|
+
description: "Control the loyalty number length",
|
|
176
|
+
type: "inputNumber",
|
|
177
|
+
},
|
|
178
|
+
loyaltyNumberPrefix: {
|
|
179
|
+
title: "Loyalty Number Prefix",
|
|
180
|
+
description: "Add hardcoded prefix for loyalty numbers (this will affect the length)",
|
|
181
|
+
type: "inputChar",
|
|
182
|
+
},
|
|
183
|
+
loyaltyValidationType: {
|
|
184
|
+
title: "Loyalty Number Validation",
|
|
185
|
+
description: "Select loyalty validation types",
|
|
186
|
+
type: "multiDropdown",
|
|
187
|
+
options: validationTypes,
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
},
|
|
245
193
|
// canadianAddressCompleteKey?: string | undefined;
|
|
246
194
|
// checkout?: IGlobalCheckoutProps;
|
|
247
195
|
checkoutV1: {
|
|
@@ -555,5 +503,11 @@ exports.AdminSettingsTemplate = {
|
|
|
555
503
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
556
504
|
type: "checkbox",
|
|
557
505
|
},
|
|
506
|
+
// footerType: {
|
|
507
|
+
// title: "Footer Version",
|
|
508
|
+
// description: "Change your version of the checkout shown to users",
|
|
509
|
+
// type: "radio",
|
|
510
|
+
// options: [1, 2, 3, 4, 5],
|
|
511
|
+
// },
|
|
558
512
|
};
|
|
559
513
|
exports.default = exports.AdminSettingsTemplate;
|
package/default.config.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var defaultConfig = {
|
|
4
|
+
adminPanelOnly: {
|
|
5
|
+
bannerName: 'Wynshop New Retailer',
|
|
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,
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@thryveai/theme-interfaces",
|
|
3
|
-
"version": "1.4.8-
|
|
4
|
-
"description": "Shared Interfaces for all ThryveAi storefront retailer themes.",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "tsc",
|
|
7
|
-
"push": "npm run build && npm publish"
|
|
8
|
-
},
|
|
9
|
-
"author": "Simon Markey",
|
|
10
|
-
"license": "ISC",
|
|
11
|
-
"devDependencies": {
|
|
12
|
-
"typescript": "4.3.5"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@thryveai/theme-interfaces",
|
|
3
|
+
"version": "1.4.8-beta8",
|
|
4
|
+
"description": "Shared Interfaces for all ThryveAi storefront retailer themes.",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "tsc",
|
|
7
|
+
"push": "npm run build && npm publish"
|
|
8
|
+
},
|
|
9
|
+
"author": "Simon Markey",
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"typescript": "4.3.5"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -144,6 +144,10 @@ export interface IAdvertSkyScrapers {
|
|
|
144
144
|
skyscrapers?: IAdvertsData;
|
|
145
145
|
}
|
|
146
146
|
export interface IDefaultRetailerSettings {
|
|
147
|
+
adminPanelOnly: {
|
|
148
|
+
bannerName: string;
|
|
149
|
+
logoUrl: string;
|
|
150
|
+
};
|
|
147
151
|
accountPage: IAccountPageSettings;
|
|
148
152
|
addressIntegration: IAddressIntegration;
|
|
149
153
|
addressValidationTypes: IAddressValidationTypes;
|