@gomusdev/web-components 1.55.1 → 1.55.2

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.
@@ -8,7 +8,7 @@ export declare class FormDetails {
8
8
  * will be shown as a success message in the form
9
9
  */
10
10
  successMessage: string | undefined;
11
- get formData(): any;
11
+ get formData(): Record<string, string | number | boolean>;
12
12
  fieldValue(key: string): string | boolean | undefined;
13
13
  get apiErrors(): string[] | Record<string, string[]>;
14
14
  /**
@@ -5,9 +5,8 @@ export declare class SegmentDetails {
5
5
  preCart: {
6
6
  items: import('../../../../../../lib/models/cart/types').CartItem[];
7
7
  coupons: string[];
8
- contingent: number;
8
+ paymentModeId: undefined;
9
9
  uid: string;
10
- paymentModeId: string | undefined;
11
10
  readonly nonEmptyItems: import('../../../../../../lib/models/cart/types').CartItem[];
12
11
  readonly totalPriceCents: number;
13
12
  readonly totalQuantity: number;
@@ -44,7 +43,6 @@ export declare class SegmentDetails {
44
43
  deleteItem(item: import('../../../../../../lib/models/cart/types').CartItem): void;
45
44
  addItem(item: import('../../../../../../lib/models/cart/types').CartItem): void;
46
45
  addItems(items: import('../../../../../../lib/models/cart/types').CartItem[]): void;
47
- addProducts(products: import('../../../../../../lib/models/cart/types').Product[]): void;
48
46
  addCoupon(token: string): void;
49
47
  removeCoupon(token: string): void;
50
48
  clearCoupons(): void;
@@ -5,7 +5,7 @@ export type FormConfig = {
5
5
  key: string;
6
6
  required: boolean;
7
7
  }[];
8
- beforeSubmit?: (formData: Record<string, unknown>) => void;
8
+ beforeSubmit?: (formData: Record<string, unknown>) => void | Promise<void>;
9
9
  submitLabel?: string;
10
10
  };
11
11
  export type ConfigOptions = {