@liquidcommerce/elements-sdk 2.5.6-beta.18 → 2.5.6-beta.19

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,6 +1,4 @@
1
1
  export declare const API_CLIENT_URL: {
2
- beta: string;
3
- local: string;
4
2
  development: string;
5
3
  staging: string;
6
4
  production: string;
@@ -28,7 +28,10 @@ export interface IClientConfigInput {
28
28
  customTheme?: IClientCustomThemeConfig;
29
29
  proxy?: IElementsProxyConfig;
30
30
  promoTicker?: IPromoTicker[];
31
- paymentMethodId?: string;
31
+ development?: {
32
+ customApiUrl?: string;
33
+ paymentMethodId?: string;
34
+ };
32
35
  }
33
36
  export declare class ClientConfigService {
34
37
  private config;
@@ -37,7 +40,6 @@ export declare class ClientConfigService {
37
40
  getConfigs(): IClientConfigs;
38
41
  get<K extends keyof IClientConfigs>(key: K): IClientConfigs[K];
39
42
  set<K extends keyof IClientConfigs>(key: K, value: IClientConfigs[K]): void;
40
- isBeta(): boolean;
41
43
  isDevelopment(): boolean;
42
44
  isStaging(): boolean;
43
45
  isProduction(): boolean;
@@ -64,8 +64,10 @@ export declare class GoogleTagManagerService {
64
64
  private isGTMAlreadyLoaded;
65
65
  private isContainerLoaded;
66
66
  private isContainerInitialized;
67
- private initializeGtag;
68
67
  private loadGTMScript;
68
+ private waitForContainerInit;
69
+ private injectGTMScript;
70
+ private checkFallbackGTM;
69
71
  private processEventQueue;
70
72
  private getSendToTargets;
71
73
  initialize(config: GTMConfig): Promise<void>;
@@ -28,7 +28,6 @@ export declare abstract class ElementsBaseClient {
28
28
  protected clientPrepared: boolean;
29
29
  protected componentFactoryInitialized: boolean;
30
30
  protected cartDrawerCreated: boolean;
31
- protected gtmInitialized: boolean;
32
31
  protected injectedComponents: Map<string, IInjectedComponent>;
33
32
  constructor(clientConfigs: IClientConfigs);
34
33
  prepare(): Promise<void>;
@@ -1,6 +1,4 @@
1
1
  export declare const ELEMENTS_ENV: {
2
- readonly BETA: "beta";
3
- readonly LOCAL: "local";
4
2
  readonly DEVELOPMENT: "development";
5
3
  readonly STAGING: "staging";
6
4
  readonly PRODUCTION: "production";
@@ -11,6 +11,10 @@ export interface IElementsProxyConfig {
11
11
  baseUrl: string;
12
12
  headers?: Record<string, string>;
13
13
  }
14
+ export interface ILiquidCommerceElementsDevelopmentConfig {
15
+ customApiUrl?: string;
16
+ paymentMethodId?: string;
17
+ }
14
18
  export interface IClientCustomThemeConfig {
15
19
  global?: UpdateComponentGlobalConfigs;
16
20
  product?: UpdateProductComponent;
@@ -18,20 +22,17 @@ export interface IClientCustomThemeConfig {
18
22
  cart?: UpdateCartComponent;
19
23
  checkout?: UpdateCheckoutComponent;
20
24
  }
21
- export interface ILiquidCommerceElementsBuilderConfig {
25
+ export interface ILiquidCommerceElementsBaseConfig {
22
26
  env?: ElementsEnv;
23
27
  promoTicker?: IPromoTicker[];
24
28
  customTheme?: IClientCustomThemeConfig;
25
29
  debugMode?: DebugMode;
26
- paymentMethodId?: string;
27
30
  }
28
- export interface ILiquidCommerceElementsConfig {
29
- env?: ElementsEnv;
30
- promoTicker?: IPromoTicker[];
31
- customTheme?: IClientCustomThemeConfig;
31
+ export interface ILiquidCommerceElementsBuilderConfig extends ILiquidCommerceElementsBaseConfig {
32
+ }
33
+ export interface ILiquidCommerceElementsConfig extends ILiquidCommerceElementsBaseConfig {
32
34
  proxy?: IElementsProxyConfig;
33
- debugMode?: DebugMode;
34
- paymentMethodId?: string;
35
+ development?: ILiquidCommerceElementsDevelopmentConfig;
35
36
  }
36
37
  export interface IInjectProductElement {
37
38
  containerId: string;
@@ -5,7 +5,7 @@ export interface ICheckoutSendToFormComponentParams {
5
5
  }
6
6
  export declare class CheckoutPaymentComponent extends BaseComponent<ICheckoutSendToFormComponentParams, ICheckoutComponent> {
7
7
  private stripeHandlerElement;
8
- private betaNoticeElement;
8
+ private hardcodedPaymentElement;
9
9
  private saveButton;
10
10
  private errorMessageElement;
11
11
  private billingFormData;
@@ -1,8 +1,7 @@
1
1
  import type { IRetailerFulfillmentStore } from '@/core/store/interfaces/cart.interface';
2
- export declare const shouldShowMinimumPurchaseAlert: (fulfillment: IRetailerFulfillmentStore, isPack?: boolean) => boolean;
3
- export declare const getMinimumPurchaseMessage: (fulfillment: IRetailerFulfillmentStore, isPack?: boolean) => {
2
+ export declare const shouldShowMinimumPurchaseAlert: (fulfillment: IRetailerFulfillmentStore | undefined, isPack?: boolean) => boolean;
3
+ export declare const getMinimumPurchaseMessage: (fulfillment: IRetailerFulfillmentStore | undefined, isPack?: boolean) => {
4
4
  message: string;
5
5
  type: "warning" | "info";
6
6
  };
7
- export declare const getFeeDisplayText: (fulfillment: IRetailerFulfillmentStore, isPack?: boolean) => string;
8
- export declare const hasUnmetMinimum: (fulfillment: IRetailerFulfillmentStore, isPack?: boolean) => boolean;
7
+ export declare const hasUnmetMinimum: (fulfillment: IRetailerFulfillmentStore | undefined, isPack?: boolean) => boolean;
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.5.6-beta.18",
6
+ "version": "2.5.6-beta.19",
7
7
  "homepage": "https://docs.liquidcommerce.co/elements-sdk",
8
8
  "repository": {
9
9
  "type": "git",
@@ -84,7 +84,7 @@
84
84
  "@semantic-release/commit-analyzer": "^13.0.1",
85
85
  "@semantic-release/git": "^10.0.1",
86
86
  "@semantic-release/github": "^12.0.2",
87
- "@semantic-release/npm": "^13.1.1",
87
+ "@semantic-release/npm": "^13.1.2",
88
88
  "@semantic-release/release-notes-generator": "^14.1.0",
89
89
  "@types/core-js": "^2.5.8",
90
90
  "@types/node": "^24.10.1",