@thryveai/theme-interfaces 2.7.98 → 2.7.100

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 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
+ ```
@@ -12,7 +12,7 @@ declare type Flatten<Type> = Type extends Array<infer Item> ? Item : Type;
12
12
  export declare type IPartialKeys<T> = {
13
13
  [key in keyof T]: Partial<T[key]>;
14
14
  };
15
- declare type IAdminAvailableSettings = IPartialKeys<Pick<IDefaultRetailerSettingsVersion2, "adminPanelOnly" | "features" | "siteSettings" | "welcomeModal" | "pdpSettings">>;
15
+ declare type IAdminAvailableSettings = IPartialKeys<Pick<IDefaultRetailerSettingsVersion2, "adminPanelOnly" | "features" | "siteSettings" | "welcomeModal" | "accountPage" | "pdpSettings">>;
16
16
  /** ===== */
17
17
  export interface IMessageProps {
18
18
  caption?: string | string[];
@@ -544,7 +544,7 @@ export interface IAdminOnlyV2 {
544
544
  }
545
545
  export interface IAccountPageV2 {
546
546
  loyaltyTab: {
547
- barcodeSettings: IBarcodeSettings;
547
+ barcodeSettings?: IBarcodeSettings;
548
548
  disabledEdit?: boolean;
549
549
  enabled: boolean;
550
550
  loyaltyNumberLength: number;
@@ -20,5 +20,6 @@ export interface ISpecialRequestItems {
20
20
  }
21
21
  export interface ISharedGeneral {
22
22
  enableStoreSelectorList: boolean;
23
+ skipNearestStoreSuggestion: boolean;
23
24
  }
24
25
  export {};
@@ -59,6 +59,72 @@ exports.AdminSettingsTemplateSFUI = {
59
59
  },
60
60
  },
61
61
  },
62
+ accountPage: {
63
+ title: "My account",
64
+ description: "",
65
+ type: exports.AdminTemplateInputTypes.collapsableObject,
66
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3275784302/Account+Page",
67
+ value: {
68
+ profileTab: {
69
+ title: "Profile tab",
70
+ description: "",
71
+ type: exports.AdminTemplateInputTypes.collapsableObject,
72
+ value: {
73
+ deleteAccountButton: {
74
+ title: "Delete account button",
75
+ description: "This allows the customer to delete their account from the My Account screen on the Storefront.",
76
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3486023742/Delete+account+button",
77
+ type: exports.AdminTemplateInputTypes.checkbox,
78
+ },
79
+ },
80
+ },
81
+ loyaltyTab: {
82
+ title: "Loyalty tab",
83
+ description: "",
84
+ type: exports.AdminTemplateInputTypes.collapsableObject,
85
+ value: {
86
+ enabled: {
87
+ title: "Enable loyalty tab",
88
+ description: "This will display the loyalty tab in the My Account section on the Storefront.",
89
+ type: exports.AdminTemplateInputTypes.checkbox,
90
+ },
91
+ disabledEdit: {
92
+ title: "Disable loyalty number editing",
93
+ description: "This will prevent users from being able to edit their loyalty number on the Storefront.",
94
+ type: exports.AdminTemplateInputTypes.checkbox,
95
+ },
96
+ loyaltyNumberLength: {
97
+ title: "Loyalty number length",
98
+ description: "This is the number of digits required for a loyalty number to be deemed valid.",
99
+ type: exports.AdminTemplateInputTypes.inputNumber,
100
+ },
101
+ loyaltyNumberPrefix: {
102
+ title: "Loyalty number prefix",
103
+ description: "This is a series of hardcoded digits that appear at the beginning of every loyalty number. Adding these digits here means the customer doesn’t have to on the Storefront. ",
104
+ type: exports.AdminTemplateInputTypes.inputChar,
105
+ },
106
+ loyaltyValidationType: {
107
+ title: "Loyalty number validation",
108
+ description: "Select the types of validations you would like the loyalty number to require.",
109
+ type: exports.AdminTemplateInputTypes.multiDropdown,
110
+ options: exports.validationTypes,
111
+ },
112
+ barcodeSettings: {
113
+ title: "Barcode",
114
+ description: "",
115
+ type: exports.AdminTemplateInputTypes.collapsableObject,
116
+ value: {
117
+ enabled: {
118
+ title: "Enable barcode",
119
+ description: "This will display the customers loyalty card barcode on the Storefront.",
120
+ type: exports.AdminTemplateInputTypes.checkbox,
121
+ },
122
+ },
123
+ },
124
+ },
125
+ },
126
+ },
127
+ },
62
128
  // accountPage: {
63
129
  // title: "Account Page",
64
130
  // description: "Account page settings",
@@ -863,7 +929,7 @@ exports.AdminSettingsTemplateSFUI = {
863
929
  // },
864
930
  // sections: {
865
931
  // title: "Sections",
866
- // description: "TODO",
932
+ // description:
867
933
  // type: AdminTemplateInputTypes.checkbox,
868
934
  // },
869
935
  // },
@@ -940,7 +1006,6 @@ exports.AdminSettingsTemplateSFUI = {
940
1006
  // helpLink:
941
1007
  // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3478618892/Content+Engine+V2+Components",
942
1008
  // type: AdminTemplateInputTypes.object,
943
- // // todo
944
1009
  // value: {
945
1010
  // HeroBanner: {
946
1011
  // description: "Use HeroBanner V2",
@@ -95,6 +95,12 @@ exports.AdminSharedSettingsTemplateSFUI = {
95
95
  description: "This will display the list of available stores for the planning and pickup store selector modals prior to the user entering their address.",
96
96
  type: exports.AdminSharedTemplateInputTypes.checkbox,
97
97
  },
98
+ skipNearestStoreSuggestion: {
99
+ title: "Skip nearest store suggestion",
100
+ description: "This will skip the enter nearest store modal if no store is returned. Selects corporate store if available otherwise uses default store",
101
+ type: exports.AdminSharedTemplateInputTypes.checkbox,
102
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/4039704585/Skip+Nearest+Store+Suggestion",
103
+ },
98
104
  },
99
105
  },
100
106
  };
@@ -18,6 +18,7 @@ var DefaultSharedSettingsConfig = {
18
18
  },
19
19
  general: {
20
20
  enableStoreSelectorList: true,
21
+ skipNearestStoreSuggestion: false,
21
22
  },
22
23
  };
23
24
  exports.default = DefaultSharedSettingsConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thryveai/theme-interfaces",
3
- "version": "2.7.98",
3
+ "version": "2.7.100",
4
4
  "description": "Shared interfaces and defaults for all Wynshop themed apps.",
5
5
  "scripts": {
6
6
  "build": "gulp",