@liquidcommerce/elements-sdk 2.6.0-beta.3 → 2.6.0-beta.4
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.
- package/dist/index.esm.js +10292 -10783
- package/dist/types/core/api/api-client.service.d.ts +9 -9
- package/dist/types/core/api/auth-client.service.d.ts +3 -14
- package/dist/types/core/client/client-action.service.d.ts +7 -4
- package/dist/types/core/client/client-config.service.d.ts +1 -0
- package/dist/types/core/command/base-command.service.d.ts +2 -2
- package/dist/types/core/google-tag-manager.service.d.ts +10 -10
- package/dist/types/core/pubsub/interfaces/address.interface.d.ts +3 -12
- package/dist/types/core/pubsub/interfaces/product.interface.d.ts +3 -9
- package/dist/types/core/store/interfaces/address.interface.d.ts +3 -12
- package/dist/types/core/store/interfaces/cart.interface.d.ts +3 -2
- package/dist/types/core/store/interfaces/core.interface.d.ts +2 -2
- package/dist/types/core/store/interfaces/product.interface.d.ts +11 -66
- package/dist/types/core/store/store.constant.d.ts +1 -1
- package/dist/types/core/telemetry/telemetry.interface.d.ts +0 -1
- package/dist/types/interfaces/api/address.interface.d.ts +28 -0
- package/dist/types/interfaces/api/product.interface.d.ts +107 -0
- package/dist/types/interfaces/cloud/cart.interface.d.ts +4 -4
- package/dist/types/interfaces/cloud/catalog.interface.d.ts +3 -3
- package/dist/types/interfaces/cloud/checkout.interface.d.ts +5 -8
- package/dist/types/interfaces/cloud/index.d.ts +0 -2
- package/dist/types/interfaces/cloud/retailer.interface.d.ts +2 -2
- package/dist/types/interfaces/configs/configurations.interface.d.ts +5 -5
- package/dist/types/modules/address/address.command.d.ts +2 -3
- package/dist/types/modules/address/address.interface.d.ts +0 -7
- package/dist/types/modules/product/components/components.d.ts +2 -4
- package/dist/types/modules/product/product.commands.d.ts +2 -2
- package/dist/types/modules/product-list/components/product-list-card.component.d.ts +2 -1
- package/dist/types/modules/product-list/product-list.commands.d.ts +2 -1
- package/package.json +2 -3
- package/umd/elements.js +1 -1
- package/dist/types/interfaces/cloud/address.interface.d.ts +0 -36
- package/dist/types/interfaces/cloud/product.interface.d.ts +0 -158
- package/dist/types/modules/product/utils/helpers.d.ts +0 -3
- package/dist/types/modules/product/utils/retailer-hours.d.ts +0 -9
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export interface IElementsConfigurations {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
isElementsEnabled: boolean;
|
|
3
|
+
enablePartnerGTM: boolean;
|
|
4
|
+
partnerGTMId: string;
|
|
5
|
+
enableLiquidCommerceGTM: boolean;
|
|
6
|
+
liquidCommerceGTMId: string;
|
|
6
7
|
partnerCode: string;
|
|
7
8
|
supportEmail: string;
|
|
8
9
|
builderBackgroundColor: string;
|
|
9
10
|
partnerName: string;
|
|
10
|
-
isElementsEnabled: boolean;
|
|
11
11
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BaseCommand } from '@/core/command/base-command.service';
|
|
2
|
-
import type {
|
|
3
|
-
import type { IAddressData } from './address.interface';
|
|
2
|
+
import type { IAddressAddress, IAddressAutocompleteResult, IAddressCoordinates, IAddressData, IAddressDetailsResult } from '@/interfaces/api/address.interface';
|
|
4
3
|
export declare class AddressCommands extends BaseCommand {
|
|
5
4
|
private productCommands;
|
|
6
5
|
private cartCommands;
|
|
@@ -9,7 +8,7 @@ export declare class AddressCommands extends BaseCommand {
|
|
|
9
8
|
searchAddresses(query: string): Promise<IAddressAutocompleteResult[]>;
|
|
10
9
|
getAddressDetails(addressId: string): Promise<IAddressDetailsResult>;
|
|
11
10
|
setSelectedAddress(addressData: IAddressData): Promise<void>;
|
|
12
|
-
setAddressManually(address:
|
|
11
|
+
setAddressManually(address: IAddressAddress, coordinates: IAddressCoordinates): Promise<void>;
|
|
13
12
|
clearSelectedAddress(): Promise<void>;
|
|
14
13
|
getDetails(): IAddressData | null;
|
|
15
14
|
}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import type { IAddress, ICoords } from '@/interfaces/cloud/address.interface';
|
|
2
1
|
export interface IAddressOptions {
|
|
3
2
|
showLabel?: boolean;
|
|
4
3
|
}
|
|
5
|
-
export interface IAddressData {
|
|
6
|
-
id: string;
|
|
7
|
-
formattedAddress: string;
|
|
8
|
-
address: Omit<IAddress, 'id'>;
|
|
9
|
-
coordinates: ICoords;
|
|
10
|
-
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import type { IProductFulfillmentStore } from '@/core/store/interfaces/product.interface';
|
|
2
2
|
import { type FulfillmentType } from '@/enums';
|
|
3
|
-
import type { IProductSizeAttributes } from '@/interfaces/
|
|
4
|
-
|
|
5
|
-
export declare function renderPopupRetailerCard({ fulfillment, selectedFulfillmentType, isSelected, fulfillmentStatus, selectedSizeAttributes, }: {
|
|
3
|
+
import type { IProductSizeAttributes } from '@/interfaces/api/product.interface';
|
|
4
|
+
export declare function renderPopupRetailerCard({ fulfillment, selectedFulfillmentType, isSelected, selectedSizeAttributes, }: {
|
|
6
5
|
fulfillment: IProductFulfillmentStore;
|
|
7
6
|
selectedFulfillmentType: FulfillmentType;
|
|
8
7
|
isSelected: boolean;
|
|
9
|
-
fulfillmentStatus: RetailerStatus;
|
|
10
8
|
selectedSizeAttributes: IProductSizeAttributes | null;
|
|
11
9
|
}): HTMLElement;
|
|
12
10
|
export declare function renderFulfillmentTabsContainer({ shippingFulfillments, onDemandFulfillments, shippingSelected, onDemandSelected, onTabClick, enableShippingFulfillment, enableOnDemandFulfillment, }: {
|
|
@@ -2,7 +2,7 @@ import { BaseCommand } from '@/core/command/base-command.service';
|
|
|
2
2
|
import type { IBaseProductEventData } from '@/core/pubsub/interfaces/product.interface';
|
|
3
3
|
import type { IProductDrawerContentConfig } from '@/core/store/interfaces/product.interface';
|
|
4
4
|
import { type FulfillmentType } from '@/enums';
|
|
5
|
-
import type {
|
|
5
|
+
import type { IProductAvailabilityResponse } from '@/interfaces/api/product.interface';
|
|
6
6
|
import { type AddItemParams } from '@/modules/cart/cart.commands';
|
|
7
7
|
export declare class ProductCommands extends BaseCommand {
|
|
8
8
|
private readonly uiCommands;
|
|
@@ -11,7 +11,7 @@ export declare class ProductCommands extends BaseCommand {
|
|
|
11
11
|
static getInstance(): ProductCommands;
|
|
12
12
|
createProductInstance(productId: string, firstTime?: boolean): Promise<void>;
|
|
13
13
|
loadMultipleProducts(productIds: string[]): Promise<void>;
|
|
14
|
-
loadProduct(productId: string, customProductData?:
|
|
14
|
+
loadProduct(productId: string, customProductData?: IProductAvailabilityResponse | null): Promise<void>;
|
|
15
15
|
selectSize(productId: string, sizeId: string): Promise<void>;
|
|
16
16
|
selectFulfillment(productId: string, selectedFulfillmentId: string): Promise<void>;
|
|
17
17
|
updateQuantity(productId: string, delta: number): Promise<void>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseComponent } from '@/core/base-component.service';
|
|
2
|
-
import type { IProduct
|
|
2
|
+
import type { IProduct } from '@/interfaces/api/product.interface';
|
|
3
|
+
import type { IRetailerFulfillments } from '@/interfaces/cloud';
|
|
3
4
|
import type { ProductListCardVariantType } from '@/interfaces/core.interface';
|
|
4
5
|
export interface IProductListCardParams {
|
|
5
6
|
variant: ProductListCardVariantType;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseCommand } from '@/core/command/base-command.service';
|
|
2
|
-
import type {
|
|
2
|
+
import type { IProduct } from '@/interfaces/api/product.interface';
|
|
3
|
+
import type { ICatalog, ICatalogParams } from '@/interfaces/cloud';
|
|
3
4
|
import { type AddItemParams } from '@/modules/cart/cart.commands';
|
|
4
5
|
export declare class ProductListCommands extends BaseCommand {
|
|
5
6
|
private readonly uiCommands;
|
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.
|
|
6
|
+
"version": "2.6.0-beta.4",
|
|
7
7
|
"homepage": "https://docs.liquidcommerce.co/elements-sdk",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -53,8 +53,7 @@
|
|
|
53
53
|
"check": "pnpm biome check --write .",
|
|
54
54
|
"fl": "pnpm check && pnpm build:dev",
|
|
55
55
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
|
56
|
-
"clean": "rm -rf dist umd",
|
|
57
|
-
"clean:hard": "rm -rf dist umd node_modules && pnpm install && pnpm build",
|
|
56
|
+
"clean": "rm -rf dist umd node_modules && pnpm install && pnpm build",
|
|
58
57
|
"prepublishOnly": "pnpm run build",
|
|
59
58
|
"deprecate:old": "npm deprecate @liquidcommerceteam/elements-sdk@\"*\" \"Package moved to @liquidcommerce/elements-sdk\"",
|
|
60
59
|
"prepare": "husky"
|