@liquidcommerce/elements-sdk 2.1.0-beta.52 → 2.1.0-beta.54

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.
@@ -1,7 +1,6 @@
1
1
  import { type ComponentType } from '@/enums';
2
2
  import type { IBaseComponentConfig } from './base-component.service';
3
3
  interface ICreateComponentParams extends Omit<IBaseComponentConfig, 'tagName'> {
4
- tagName?: string;
5
4
  productId?: string;
6
5
  cartId?: string;
7
6
  checkoutId?: string;
@@ -22,6 +21,6 @@ export declare class ComponentFactoryService {
22
21
  componentType: ComponentType;
23
22
  message: string;
24
23
  }): HTMLElement;
25
- static getDefaultTagName(type: ComponentType): string;
24
+ static getComponentTagName(type: ComponentType): string;
26
25
  }
27
26
  export {};
@@ -6,8 +6,6 @@ export interface IElementsConfigurations {
6
6
  partnerCode: string;
7
7
  supportEmail: string;
8
8
  builderBackgroundColor: string;
9
- showPoweredBy: boolean;
10
- poweredByMode: 'light' | 'dark';
11
9
  partnerName: string;
12
10
  isElementsEnabled: boolean;
13
11
  }
@@ -28,6 +28,8 @@ export interface IGlobalLayout {
28
28
  personalizationCardStyle: 'outlined' | 'filled';
29
29
  allowPromoCodes: boolean;
30
30
  inputFieldStyle: 'outlined' | 'filled';
31
+ showPoweredBy: boolean;
32
+ poweredByMode: 'light' | 'dark';
31
33
  }
32
34
  export interface IComponentGlobalConfigs {
33
35
  theme: IGlobalTheme;
@@ -8,7 +8,6 @@ export declare class CartFooterComponent extends BaseComponent<ICartFooterCompon
8
8
  private subtotalText;
9
9
  private subtotalPrice;
10
10
  private checkoutButton;
11
- private loadingIndicator;
12
11
  constructor();
13
12
  onStoreWatch(changes: IOnStoreChanged[]): void;
14
13
  afterRender(): void;
@@ -7,7 +7,6 @@ export declare class CartFulfillmentComponent extends BaseComponent<ICartFulfill
7
7
  constructor();
8
8
  private getFulfillmentId;
9
9
  private getProductStore;
10
- private addItemElement;
11
10
  private handleItemsUpdate;
12
11
  private setupItemElements;
13
12
  private setupMinimumPurchaseAlert;
@@ -22,5 +21,5 @@ export declare class CartFulfillmentComponent extends BaseComponent<ICartFulfill
22
21
  private hasFulfillmentDataChanged;
23
22
  protected afterRender(): void;
24
23
  protected disconnected(): void;
25
- protected template(): HTMLElement;
24
+ protected template(): HTMLElement[];
26
25
  }
@@ -19,5 +19,6 @@ export declare class DrawerComponent extends BaseComponent {
19
19
  private handleBackdropClick;
20
20
  private handleKeydown;
21
21
  private updateDrawerState;
22
+ private isElementsEnabled;
22
23
  protected template(): HTMLElement;
23
24
  }
@@ -3,7 +3,8 @@ export declare function componentError({ componentType, message }: {
3
3
  componentType: ComponentType;
4
4
  message: string;
5
5
  }): HTMLElement;
6
- export declare function productionComponentError({ titleText, messageText }: {
7
- titleText: string;
8
- messageText: string;
6
+ export declare function productionComponentError({ title, message, componentType, }: {
7
+ title: string;
8
+ message: string;
9
+ componentType: ComponentType;
9
10
  }): HTMLElement;
@@ -1,9 +1,9 @@
1
1
  import { BaseComponent } from '@/core/base-component.service';
2
- import type { IElementsConfigurations } from '@/interfaces/configs';
2
+ import type { IComponentGlobalConfigs } from '@/interfaces/configs';
3
3
  export interface IPoweredByComponentParams {
4
4
  context: 'checkout' | 'general';
5
5
  }
6
- export declare class PoweredByComponent extends BaseComponent<IPoweredByComponentParams, IElementsConfigurations> {
6
+ export declare class PoweredByComponent extends BaseComponent<IPoweredByComponentParams, IComponentGlobalConfigs> {
7
7
  get hostClasses(): string[];
8
8
  private createPoweredBySection;
9
9
  private createDisclaimerSection;
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.1.0-beta.52",
6
+ "version": "2.1.0-beta.54",
7
7
  "homepage": "https://docs.liquidcommerce.co/elements-sdk",
8
8
  "repository": {
9
9
  "type": "git",