@thryveai/theme-interfaces 2.7.63 → 2.7.65

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.
@@ -32,11 +32,15 @@ export interface IAdminControl<T> {
32
32
  group?: IAdminGroupType;
33
33
  message?: IMessageProps;
34
34
  helpLink?: string;
35
- options?: string[] | number[] | Object[] | IDefaultCounty[] | IValidationType[] | IImageRequiredFormat | LinkTarget;
35
+ options?: string[] | number[] | Object[] | IDefaultCounty[] | IValidationType[] | IImageRequiredFormat | LinkTarget | NumberRange;
36
36
  uniqueOptions?: IDefaultExternal["provider"][];
37
37
  value?: ITemplateObject<T>;
38
38
  optional?: boolean;
39
39
  }
40
+ interface NumberRange {
41
+ min: number;
42
+ max: number;
43
+ }
40
44
  export declare type ImageFormat = "svg" | "jpeg" | "png";
41
45
  export interface IImageRequiredFormat {
42
46
  requiredFormat: ImageFormat[];
@@ -300,6 +300,7 @@ export interface ICheckoutSettingsV2 {
300
300
  checkoutValidation: ICheckoutValidation;
301
301
  forceDeliverySection: boolean;
302
302
  enableInterimModal: boolean;
303
+ smsOptIn: boolean;
303
304
  }
304
305
  export interface IFeaturesV2 {
305
306
  additionalCharges: boolean;
@@ -735,6 +735,10 @@ exports.AdminSettingsTemplateSFUI = {
735
735
  description: "Time in days to remain signed in in the app",
736
736
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
737
737
  type: exports.AdminTemplateInputTypes.inputNumber,
738
+ options: {
739
+ min: 1,
740
+ max: 999,
741
+ },
738
742
  },
739
743
  defaultCountry: {
740
744
  title: "Default country",
@@ -56,6 +56,7 @@ var DefaultConfigSFUI = {
56
56
  showTaxTotal: true,
57
57
  },
58
58
  checkout: {
59
+ smsOptIn: false,
59
60
  checkoutValidation: {
60
61
  instructions: ["alphaNumeric", "notWhiteSpacesOnly"],
61
62
  phoneNumber: ["usPhone", "required"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thryveai/theme-interfaces",
3
- "version": "2.7.63",
3
+ "version": "2.7.65",
4
4
  "description": "Shared interfaces and defaults for all Wynshop themed apps.",
5
5
  "scripts": {
6
6
  "build": "gulp",