@liquidcommerce/elements-sdk 2.6.0-beta.74 → 2.6.0-beta.75

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,5 +1,4 @@
1
1
  import { type ComponentType } from '@/enums';
2
- export declare function applyConfigDefaults<T extends Record<string, any>>(data: T): T;
3
2
  export declare function normalizeProductListLists<T extends Record<string, any>>(data: T): T;
4
3
  export declare function deepMergeConfigs<T extends Record<string, any>>(target: T, source: Partial<T>, currentPath?: string): T;
5
4
  export declare const layoutFieldToComponentTypes: Map<string, ComponentType[]>;
@@ -16,6 +16,8 @@ export interface IPLCProductCard {
16
16
  showQuantityCounter: boolean;
17
17
  enablePreCart: boolean;
18
18
  showCollectionTags: boolean;
19
+ productUrl: string | null;
20
+ noAvailabilityText: string;
19
21
  }
20
22
  export interface IPLCList {
21
23
  type: PLCListType;
@@ -27,7 +29,6 @@ export interface IPLCList {
27
29
  availableFilters: ProductListFilterType[];
28
30
  rows: number;
29
31
  columns: number;
30
- productUrl: string | null;
31
32
  }
32
33
  export interface IProductListLayout {
33
34
  lists: IPLCList[];
@@ -1,12 +1,12 @@
1
1
  import type { DeepPartial } from '@/interfaces/config.interface';
2
2
  export type FulfillmentDisplayType = 'carousel' | 'popup';
3
- export type DescriptionPosition = 'above' | 'below';
3
+ export type DescriptionPositionType = 'above' | 'below';
4
4
  export interface IProductLayout {
5
5
  showImages: boolean;
6
6
  showOnlyMainImage: boolean;
7
7
  showTitle: boolean;
8
8
  showDescription: boolean;
9
- descriptionPosition: DescriptionPosition;
9
+ descriptionPosition: DescriptionPositionType;
10
10
  showQuantityCounter: boolean;
11
11
  showOffHours: boolean;
12
12
  quantityCounterStyle: 'outlined' | 'ghost';
@@ -10,7 +10,9 @@ export declare class ProductListCardComponent extends BaseComponent<IProductList
10
10
  private priceElement;
11
11
  private personalizeElement;
12
12
  private fulfillmentTextElement;
13
+ private fulfillmentWrapperElement;
13
14
  private addToCartButton;
15
+ private noAvailabilityElement;
14
16
  private previousSelectedSizeId;
15
17
  private previousSelectedFulfillmentId;
16
18
  constructor();
@@ -27,10 +29,13 @@ export declare class ProductListCardComponent extends BaseComponent<IProductList
27
29
  private updateImage;
28
30
  private updatePersonalizeVisibility;
29
31
  private updateAddToCartButton;
32
+ private syncFulfillmentWrapperContent;
30
33
  private generateProductUrl;
31
34
  private createImageSection;
32
35
  private createContentSection;
36
+ private createNoAvailabilityMessage;
33
37
  private createFulfillmentSectionWrapper;
38
+ private createDeliveryOptionsButton;
34
39
  private createFulfillmentTextSection;
35
40
  private createAddToCartSection;
36
41
  }
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.74",
6
+ "version": "2.6.0-beta.75",
7
7
  "homepage": "https://docs.liquidcommerce.co/elements-sdk",
8
8
  "repository": {
9
9
  "type": "git",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "module": "./dist/index.esm.js",
16
16
  "types": "./dist/types/index.d.ts",
17
- "packageManager": "pnpm@10.33.0",
17
+ "packageManager": "pnpm@10.33.4",
18
18
  "exports": {
19
19
  ".": {
20
20
  "types": "./dist/types/index.d.ts",
@@ -77,7 +77,7 @@
77
77
  "embeddable commerce"
78
78
  ],
79
79
  "devDependencies": {
80
- "@biomejs/biome": "^2.4.13",
80
+ "@biomejs/biome": "^2.4.14",
81
81
  "@commitlint/cli": "^20.5.3",
82
82
  "@commitlint/config-conventional": "^20.5.3",
83
83
  "@rollup/plugin-alias": "^6.0.0",
@@ -97,7 +97,7 @@
97
97
  "conventional-changelog": "^7.2.0",
98
98
  "husky": "^9.1.7",
99
99
  "process": "^0.11.10",
100
- "rollup": "^4.60.2",
100
+ "rollup": "^4.60.3",
101
101
  "rollup-obfuscator": "^4.1.1",
102
102
  "rollup-plugin-typescript2": "^0.37.0",
103
103
  "semantic-release": "^25.0.3",