@liquidcommerce/elements-sdk 2.6.0-beta.36 → 2.6.0-beta.37

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.
@@ -48,3 +48,7 @@ export declare const Z_INDEX: {
48
48
  readonly MODAL: 2147483640;
49
49
  };
50
50
  export declare const DESKTOP_BREAKPOINT = 1024;
51
+ export declare const DISPLAY_MODE: {
52
+ MODAL: string;
53
+ DRAWER: string;
54
+ };
@@ -2,7 +2,6 @@ import type { IPagination } from 'modules/product-list/product-list.interface';
2
2
  import type { FulfillmentType } from '@/enums';
3
3
  import type { IFulfillment, IProduct, IProductVariant, IRetailer, IRetailerAddress } from '@/interfaces/api/product.interface';
4
4
  import type { IFilterSchema } from '@/interfaces/api/product-list.interface';
5
- import type { IModalStore } from './core.interface';
6
5
  import type { IProductSizeStore } from './product.interface';
7
6
  export type IProductFulfillmentStore = IFulfillment & {
8
7
  retailerName: string;
@@ -40,7 +39,6 @@ export interface IProductListStore {
40
39
  selectedFulfillmentType: FulfillmentType;
41
40
  selectedFulfillment: IProductFulfillmentStore | null;
42
41
  selectedQuantity: number;
43
- modal: IModalStore;
44
42
  };
45
43
  };
46
44
  loading: boolean;
@@ -4,6 +4,7 @@ export type ProductListCardCornerRadius = 'rounded' | 'sharp';
4
4
  export interface IProductListTheme {
5
5
  backgroundColor: string;
6
6
  }
7
+ export type IDisplayMode = 'modal' | 'drawer';
7
8
  export interface IProductListLayout {
8
9
  productCard: {
9
10
  style: ProductListCardStyle;
@@ -18,6 +19,7 @@ export interface IProductListLayout {
18
19
  showCollections: boolean;
19
20
  enablePersonalization: boolean;
20
21
  };
22
+ displayMode: IDisplayMode;
21
23
  }
22
24
  export interface IProductListComponent {
23
25
  theme: IProductListTheme;
@@ -1,6 +1,7 @@
1
+ import type { IProductListComponent } from 'interfaces/configs';
1
2
  import { BaseComponent } from '@/core/base-component.service';
2
3
  import type { IProductListComponentParams } from '@/modules/product-list/product-list.component';
3
- export declare class ProductListCardLoadingComponent extends BaseComponent<IProductListComponentParams> {
4
+ export declare class ProductListCardLoadingComponent extends BaseComponent<IProductListComponentParams, IProductListComponent> {
4
5
  get hostClasses(): string[];
5
6
  private createSkeletonCard;
6
7
  protected template(): HTMLElement[];
@@ -1,8 +1,9 @@
1
- import type { IProductListComponent } from 'interfaces/configs';
1
+ import type { IDisplayMode, IProductListComponent } from 'interfaces/configs';
2
2
  import { BaseComponent } from '@/core/base-component.service';
3
3
  export interface IProductListRetailersParams {
4
4
  productId: string;
5
5
  config?: IProductListComponent;
6
+ displayMode?: IDisplayMode;
6
7
  }
7
8
  export declare class ProductListRetailersComponent extends BaseComponent<IProductListRetailersParams, IProductListComponent> {
8
9
  get hostClasses(): string[];
@@ -1,3 +1,4 @@
1
+ import type { IProductListComponent } from 'interfaces/configs';
1
2
  import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
2
3
  import type { ProductListFilterType } from '@/interfaces/core.interface';
3
4
  export interface IProductListComponentParams {
@@ -6,7 +7,7 @@ export interface IProductListComponentParams {
6
7
  filters: ProductListFilterType[];
7
8
  productUrl?: string;
8
9
  }
9
- export declare class ProductListComponent extends BaseComponent<IProductListComponentParams> {
10
+ export declare class ProductListComponent extends BaseComponent<IProductListComponentParams, IProductListComponent> {
10
11
  private products;
11
12
  private retailers;
12
13
  private pagination;
@@ -1,4 +1,5 @@
1
1
  import { BaseComponent } from '@/core/base-component.service';
2
+ import type { IDisplayMode } from '@/interfaces/configs';
2
3
  export interface IEngravingFormComponentParams {
3
4
  identifier: string;
4
5
  context: 'product' | 'cart' | 'product-list';
@@ -7,6 +8,7 @@ export interface IEngravingFormComponentParams {
7
8
  maxCharsPerLine: number;
8
9
  fee: number;
9
10
  location?: string;
11
+ displayMode?: IDisplayMode;
10
12
  }
11
13
  export declare class EngravingFormComponent extends BaseComponent<IEngravingFormComponentParams, null> {
12
14
  get hostClasses(): string[];
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "LiquidCommerce Elements SDK",
4
4
  "license": "UNLICENSED",
5
5
  "author": "LiquidCommerce Team",
6
- "version": "2.6.0-beta.36",
6
+ "version": "2.6.0-beta.37",
7
7
  "homepage": "https://docs.liquidcommerce.co/elements-sdk",
8
8
  "repository": {
9
9
  "type": "git",