@liquidcommerce/elements-sdk 2.5.2 → 2.5.4-beta.1
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.
|
@@ -10,7 +10,7 @@ import { LoggerFactory } from '@/core/logger/logger-factory';
|
|
|
10
10
|
import { StoreService } from '@/core/store/store.service';
|
|
11
11
|
import { TelemetryService } from '@/core/telemetry/telemetry.service';
|
|
12
12
|
import { type ComponentType } from '@/enums';
|
|
13
|
-
import type { IInjectedComponent, ILiquidCommerceElementsActions, IProcessInjectElementParams } from '@/interfaces/core.interface';
|
|
13
|
+
import type { IInjectedComponent, IInjectProductElement, IInjectProductListParams, ILiquidCommerceElementsActions, IProcessInjectElementParams } from '@/interfaces/core.interface';
|
|
14
14
|
import { ThemeProviderService } from '@/modules/theme-provider/theme-provider.service';
|
|
15
15
|
export declare abstract class ElementsBaseClient {
|
|
16
16
|
protected readonly authService: AuthService;
|
|
@@ -37,6 +37,8 @@ export declare abstract class ElementsBaseClient {
|
|
|
37
37
|
private initializeHeavyServices;
|
|
38
38
|
get actions(): ILiquidCommerceElementsActions;
|
|
39
39
|
protected processInjectElement(params: IProcessInjectElementParams): Promise<IInjectedComponent | null>;
|
|
40
|
+
protected processInjectProduct(params: IInjectProductElement[]): Promise<IInjectedComponent[]>;
|
|
41
|
+
injectProductList(params: IInjectProductListParams): Promise<void>;
|
|
40
42
|
protected ensureCartDrawerExists(): void;
|
|
41
43
|
protected ensureAllComponentsRegistered(): void;
|
|
42
44
|
protected createInjectedComponentWrapper(containerId: string, type: ComponentType, element: HTMLElement): IInjectedComponent;
|
|
@@ -88,6 +88,7 @@ export interface ILiquidCommerceElementsBuilderClient {
|
|
|
88
88
|
simulatePresale?: boolean;
|
|
89
89
|
presaleExpiresInMinutes?: number;
|
|
90
90
|
}): Promise<IInjectedComponent | null>;
|
|
91
|
+
injectProductList(params: IInjectProductListParams): Promise<void>;
|
|
91
92
|
actions: ILiquidCommerceElementsActions;
|
|
92
93
|
}
|
|
93
94
|
export interface ILiquidCommerceElementsClient {
|
package/package.json
CHANGED