@thryveai/theme-interfaces 2.7.74 → 2.7.76
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 +2 -1
- package/dist/interfaces/admin-settings-interfaces.d.ts +1 -4
- package/dist/interfaces/retailer-settings.interfaces.d.ts +7 -0
- package/dist/interfaces/shared-settings-interfaces.d.ts +5 -0
- package/dist/interfaces/shared-settings-interfaces.js +2 -0
- package/dist/interfaces/shared-settings.interfaces.d.ts +8 -0
- package/dist/storefront/SFUISharedSettingsTemplate.AdminUi.d.ts +2 -1
- package/dist/storefront/SFUISharedSettingsTemplate.AdminUi.js +19 -0
- package/dist/storefront/defaultSettingsStorefront.js +3 -0
- package/dist/storefront/defaultSharedSettings.js +5 -0
- package/package.json +29 -29
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
|
+
```
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { AdminImagesTemplateSFUI } from "./storefront/SFUIImagesTemplate.AdminUi
|
|
|
10
10
|
import { AdminThemeTemplateSFUI, AdminThemeTemplateOptions } from "./storefront/SFUIThemesTemplate.AdminUi";
|
|
11
11
|
import { AdminImagesTemplateSTS } from "./sts/STSImagesTemplate.AdminUi";
|
|
12
12
|
import AllThemeTemplates from "./theme-templates";
|
|
13
|
-
import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminImagesTemplateSFUI, IAdminThemeTemplateSFUI, IAdminThemeTemplateOptions, IAdminImagesTemplateSTS, IAdminControl, IAdminControlType, IThemeGenerator
|
|
13
|
+
import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminImagesTemplateSFUI, IAdminThemeTemplateSFUI, IAdminThemeTemplateOptions, IAdminImagesTemplateSTS, IAdminControl, IAdminControlType, IThemeGenerator } from "./interfaces/admin-settings-interfaces";
|
|
14
14
|
import { IAdminImagesControls, ISecondaryFaviconType } from "./interfaces/admin-images-interfaces";
|
|
15
15
|
import { IDefaultRetailerSettingsVersion2 } from "./interfaces/default-settings.interfaces";
|
|
16
16
|
import { IDefaultStsSettings } from "./interfaces/sts-settings.interfaces";
|
|
@@ -26,6 +26,7 @@ import { MobileDefaultSettings } from "./mobile/reactnative/MobileDefaultSetting
|
|
|
26
26
|
import { AdminSettingsTemplateMobile } from "./mobile/reactnative/MobileSettingsTemplate.AdminUi";
|
|
27
27
|
import { ISharedSettings } from "./interfaces/shared-settings.interfaces";
|
|
28
28
|
import { AdminSharedSettingsTemplateSFUI } from "./storefront/SFUISharedSettingsTemplate.AdminUi";
|
|
29
|
+
import { IAdminSharedSettingsTemplate } from "./interfaces/shared-settings-interfaces";
|
|
29
30
|
export { DefaultSharedSettingsConfig, DefaultConfigSFUI, DefaultConfigSTS, AllThemeTemplates, DefaultThemeSFUI, globalTheme, DefaultThemeColors, DefaultImagesSFUI, DefaultIconsSFUI, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes, AdminImagesTemplateSFUI, AdminThemeTemplateSFUI, AdminThemeTemplateOptions, AdminImagesTemplateSTS, IMobileSettings, AdminSettingsTemplateMobile, MobileDefaultSettings, AdminSharedSettingsTemplateSFUI, };
|
|
30
31
|
export { CMSComponentNames, CMSNames };
|
|
31
32
|
export { ProductAttrToIcons, ProductAttributes };
|
|
@@ -2,7 +2,6 @@ import { IDefaultCounty, IDefaultExternal, IValidationType, LinkTarget } from ".
|
|
|
2
2
|
import { IDefaultColors, IDefaultThemeInterface } from "./default-theme.interface";
|
|
3
3
|
import { IDefaultRetailerSettingsVersion2 } from "./default-settings.interfaces";
|
|
4
4
|
import { IThemeImages } from "./theme.interfaces";
|
|
5
|
-
import { ISharedSettings } from "./shared-settings.interfaces";
|
|
6
5
|
/**
|
|
7
6
|
* Helper types
|
|
8
7
|
*/
|
|
@@ -10,11 +9,10 @@ export declare type ITemplateObject<T> = {
|
|
|
10
9
|
[key in keyof T]: IAdminControl<Flatten<T[key]>>;
|
|
11
10
|
};
|
|
12
11
|
declare type Flatten<Type> = Type extends Array<infer Item> ? Item : Type;
|
|
13
|
-
declare type IPartialKeys<T> = {
|
|
12
|
+
export declare type IPartialKeys<T> = {
|
|
14
13
|
[key in keyof T]: Partial<T[key]>;
|
|
15
14
|
};
|
|
16
15
|
declare type IAdminAvailableSettings = IPartialKeys<Pick<IDefaultRetailerSettingsVersion2, "adminPanelOnly" | "features" | "siteSettings" | "welcomeModal" | "pdpSettings">>;
|
|
17
|
-
declare type IAdminSharedSettings = IPartialKeys<Pick<ISharedSettings, "features">>;
|
|
18
16
|
/** ===== */
|
|
19
17
|
export interface IMessageProps {
|
|
20
18
|
caption?: string | string[];
|
|
@@ -23,7 +21,6 @@ export interface IMessageProps {
|
|
|
23
21
|
}
|
|
24
22
|
declare type IMessageTypes = "info" | "success" | "note" | "warning" | "error" | "notification";
|
|
25
23
|
export declare type IAdminSettingsTemplate = ITemplateObject<IAdminAvailableSettings>;
|
|
26
|
-
export declare type IAdminSharedSettingsTemplate = ITemplateObject<IAdminSharedSettings>;
|
|
27
24
|
export declare type IAdminTemplateInputTypes = {
|
|
28
25
|
[key in IAdminControlType]: IAdminControlType;
|
|
29
26
|
};
|
|
@@ -302,6 +302,9 @@ export interface ICheckoutSettingsV2 {
|
|
|
302
302
|
enableInterimModal: boolean;
|
|
303
303
|
smsOptIn: boolean;
|
|
304
304
|
}
|
|
305
|
+
export interface IOrderInstructions {
|
|
306
|
+
presistOrderInstruction: boolean;
|
|
307
|
+
}
|
|
305
308
|
export interface IFeaturesV2 {
|
|
306
309
|
additionalCharges: boolean;
|
|
307
310
|
creditBalance: boolean;
|
|
@@ -589,6 +592,10 @@ export interface IProductCardsProps {
|
|
|
589
592
|
export interface IProductCardV2ComponentProps {
|
|
590
593
|
promotionLabel: IProductCardV2PromotionLabelsSettings;
|
|
591
594
|
recommendedLabel: IProductCardV2RecommendedLabelSettings;
|
|
595
|
+
productAttributes: IProductCardV2ProductAttributes;
|
|
596
|
+
}
|
|
597
|
+
export interface IProductCardV2ProductAttributes {
|
|
598
|
+
iconOpacity: number;
|
|
592
599
|
}
|
|
593
600
|
export interface IProductCardV2RecommendedLabelSettings {
|
|
594
601
|
enabled: boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IPartialKeys, ITemplateObject } from "./admin-settings-interfaces";
|
|
2
|
+
import { ISharedSettings } from "./shared-settings.interfaces";
|
|
3
|
+
declare type IAdminSharedSettings = IPartialKeys<Pick<ISharedSettings, "features" | "checkout">>;
|
|
4
|
+
export declare type IAdminSharedSettingsTemplate = ITemplateObject<IAdminSharedSettings>;
|
|
5
|
+
export {};
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
export interface ISharedSettings {
|
|
2
2
|
features: ISharedFeatures;
|
|
3
|
+
checkout: ISharedCheckout;
|
|
3
4
|
}
|
|
4
5
|
export interface ISharedFeatures {
|
|
5
6
|
specialRequestItems: ISpecialRequestItems;
|
|
6
7
|
}
|
|
8
|
+
export interface ISharedCheckout {
|
|
9
|
+
preserveOrderNote: IOrderInstructions;
|
|
10
|
+
}
|
|
11
|
+
interface IOrderInstructions {
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
}
|
|
7
14
|
export interface ISpecialRequestItems {
|
|
8
15
|
enable: boolean;
|
|
9
16
|
excludeStores: string[];
|
|
10
17
|
}
|
|
18
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IAdminTemplateInputTypes } from "../interfaces/admin-settings-interfaces";
|
|
2
|
+
import { IAdminSharedSettingsTemplate } from "../interfaces/shared-settings-interfaces";
|
|
2
3
|
export declare const AdminSharedTemplateInputTypes: IAdminTemplateInputTypes;
|
|
3
4
|
export declare const AdminSharedSettingsTemplateSFUI: IAdminSharedSettingsTemplate;
|
|
@@ -43,4 +43,23 @@ exports.AdminSharedSettingsTemplateSFUI = {
|
|
|
43
43
|
},
|
|
44
44
|
},
|
|
45
45
|
},
|
|
46
|
+
checkout: {
|
|
47
|
+
title: "Checkout",
|
|
48
|
+
description: "Shared checkout settings",
|
|
49
|
+
type: exports.AdminSharedTemplateInputTypes.collapsableObject,
|
|
50
|
+
value: {
|
|
51
|
+
preserveOrderNote: {
|
|
52
|
+
title: "Order Instructions",
|
|
53
|
+
description: "",
|
|
54
|
+
type: exports.AdminSharedTemplateInputTypes.collapsableObject,
|
|
55
|
+
value: {
|
|
56
|
+
enabled: {
|
|
57
|
+
title: "Enable order instructions saving",
|
|
58
|
+
description: "This will display a checkbox below the order instrucitons comment box in the checkout. If selected the text entered in the comment box will be saved for the customer next order.",
|
|
59
|
+
type: exports.AdminSharedTemplateInputTypes.checkbox,
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
46
65
|
};
|
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@thryveai/theme-interfaces",
|
|
3
|
-
"version": "2.7.
|
|
4
|
-
"description": "Shared interfaces and defaults for all Wynshop themed apps.",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "gulp",
|
|
7
|
-
"push": "npm run build && npm publish",
|
|
8
|
-
"merge-settings": "ts-node ./scripts/settings/sfui-settings-migrator.ts",
|
|
9
|
-
"generate-retailer-icons": "gulp --gulpfile ./scripts/icons/gulpfile.js"
|
|
10
|
-
},
|
|
11
|
-
"author": "Wynshop",
|
|
12
|
-
"license": "ISC",
|
|
13
|
-
"main": "dist",
|
|
14
|
-
"files": [
|
|
15
|
-
"dist"
|
|
16
|
-
],
|
|
17
|
-
"devDependencies": {
|
|
18
|
-
"@types/node": "^17.0.42",
|
|
19
|
-
"fs-extra": "11.1.0",
|
|
20
|
-
"gulp": "4.0.2",
|
|
21
|
-
"gulp-file-contents-to-json": "0.2.2",
|
|
22
|
-
"gulp-typescript": "6.0.0-alpha.1",
|
|
23
|
-
"imagemin": "7.0.1",
|
|
24
|
-
"imagemin-svgo": "9.0.0",
|
|
25
|
-
"svgo": "3.0.2",
|
|
26
|
-
"ts-node": "^10.8.1",
|
|
27
|
-
"typescript": "4.6.3"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@thryveai/theme-interfaces",
|
|
3
|
+
"version": "2.7.76",
|
|
4
|
+
"description": "Shared interfaces and defaults for all Wynshop themed apps.",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "gulp",
|
|
7
|
+
"push": "npm run build && npm publish",
|
|
8
|
+
"merge-settings": "ts-node ./scripts/settings/sfui-settings-migrator.ts",
|
|
9
|
+
"generate-retailer-icons": "gulp --gulpfile ./scripts/icons/gulpfile.js"
|
|
10
|
+
},
|
|
11
|
+
"author": "Wynshop",
|
|
12
|
+
"license": "ISC",
|
|
13
|
+
"main": "dist",
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/node": "^17.0.42",
|
|
19
|
+
"fs-extra": "11.1.0",
|
|
20
|
+
"gulp": "4.0.2",
|
|
21
|
+
"gulp-file-contents-to-json": "0.2.2",
|
|
22
|
+
"gulp-typescript": "6.0.0-alpha.1",
|
|
23
|
+
"imagemin": "7.0.1",
|
|
24
|
+
"imagemin-svgo": "9.0.0",
|
|
25
|
+
"svgo": "3.0.2",
|
|
26
|
+
"ts-node": "^10.8.1",
|
|
27
|
+
"typescript": "4.6.3"
|
|
28
|
+
}
|
|
29
|
+
}
|