@thryveai/theme-interfaces 2.7.34 → 2.7.35

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
+ ```
@@ -32,8 +32,13 @@ export interface IAdminControl<T> {
32
32
  group?: IAdminGroupType;
33
33
  message?: IMessageProps;
34
34
  helpLink?: string;
35
- options?: string[] | number[] | IDefaultCounty[] | IValidationType[] | LinkTarget;
35
+ options?: string[] | number[] | IDefaultCounty[] | IValidationType[] | IImageRequiredFormat | LinkTarget;
36
36
  value?: ITemplateObject<T>;
37
+ optional?: boolean;
38
+ }
39
+ export declare type ImageFormat = "svg" | "jpeg" | "png";
40
+ export interface IImageRequiredFormat {
41
+ requiredFormat: ImageFormat[];
37
42
  }
38
43
  export interface IAdminGroupType {
39
44
  id: number;
@@ -5,7 +5,6 @@ export interface IRetailerSettings {
5
5
  accountPage?: IAccountPageSettings;
6
6
  additionalCharges?: boolean;
7
7
  subscriptions?: boolean;
8
- creditBalance?: boolean;
9
8
  addresses?: {
10
9
  addressValidationTypes?: IAddressValidationTypes;
11
10
  canadianAddressCompleteKey?: string | undefined;
@@ -302,7 +301,6 @@ export interface ICheckoutSettingsV2 {
302
301
  }
303
302
  export interface IFeaturesV2 {
304
303
  additionalCharges: boolean;
305
- creditBalance: boolean;
306
304
  subscriptions: boolean;
307
305
  clientCache: boolean;
308
306
  vouchers: IVouchers;
@@ -336,13 +336,6 @@ exports.AdminSettingsTemplateSFUI = {
336
336
  type: exports.AdminTemplateInputTypes.checkbox,
337
337
  group: { id: 1, name: "General Features" },
338
338
  },
339
- creditBalance: {
340
- title: "Display creditBalance to customer",
341
- description: "Enable creditBalance functionality",
342
- helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3274637365/creditBalance",
343
- type: exports.AdminTemplateInputTypes.checkbox,
344
- group: { id: 1, name: "General Features" },
345
- },
346
339
  // additionalCharges: {
347
340
  // title: "Additional Charges",
348
341
  // description:
@@ -943,6 +936,8 @@ exports.AdminSettingsTemplateSFUI = {
943
936
  title: "Icon",
944
937
  description: "",
945
938
  type: exports.AdminTemplateInputTypes.images,
939
+ options: { requiredFormat: ["svg"] },
940
+ optional: false,
946
941
  },
947
942
  },
948
943
  },
@@ -80,7 +80,6 @@ var DefaultConfigSFUI = {
80
80
  },
81
81
  features: {
82
82
  additionalCharges: false,
83
- creditBalance: false,
84
83
  subscriptions: false,
85
84
  addressIntegrationV2: false,
86
85
  advertSettings: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thryveai/theme-interfaces",
3
- "version": "2.7.34",
3
+ "version": "2.7.35",
4
4
  "description": "Shared interfaces and defaults for all Wynshop themed apps.",
5
5
  "scripts": {
6
6
  "build": "gulp",