@liquidcommerce/elements-sdk 2.7.10 → 2.7.12

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,4 +1,5 @@
1
1
  import { type ComponentType } from '@/enums';
2
+ export declare function applyConfigDefaults<T extends Record<string, any>>(data: T): T;
2
3
  export declare function normalizeProductListLists<T extends Record<string, any>>(data: T): T;
3
4
  export declare function deepMergeConfigs<T extends Record<string, any>>(target: T, source: Partial<T>, currentPath?: string): T;
4
5
  export declare const layoutFieldToComponentTypes: Map<string, ComponentType[]>;
@@ -1,10 +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
4
  export interface IProductLayout {
4
5
  showImages: boolean;
5
6
  showOnlyMainImage: boolean;
6
7
  showTitle: boolean;
7
8
  showDescription: boolean;
9
+ descriptionPosition: DescriptionPosition;
8
10
  showQuantityCounter: boolean;
9
11
  showOffHours: boolean;
10
12
  quantityCounterStyle: 'outlined' | 'ghost';
@@ -1,6 +1,7 @@
1
1
  import { BaseComponent } from '@/core/base-component.service';
2
2
  export interface IProductDescriptionComponentParams {
3
3
  productId: string;
4
+ hideTitle?: boolean;
4
5
  }
5
6
  export declare class ProductDescriptionComponent extends BaseComponent<IProductDescriptionComponentParams, null> {
6
7
  get hostClasses(): string[];
@@ -8,5 +8,6 @@ export declare class ProductOptionsComponent extends BaseComponent<IProductOptio
8
8
  constructor();
9
9
  private getProductId;
10
10
  onStoreWatch(changes: IOnStoreChanged[]): void;
11
- protected template(): HTMLElement;
11
+ protected template(): HTMLElement | HTMLElement[];
12
+ private buildDescriptionElement;
12
13
  }
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.7.10",
6
+ "version": "2.7.12",
7
7
  "homepage": "https://docs.liquidcommerce.co/elements-sdk",
8
8
  "repository": {
9
9
  "type": "git",
@@ -77,7 +77,7 @@
77
77
  "embeddable commerce"
78
78
  ],
79
79
  "devDependencies": {
80
- "@biomejs/biome": "^2.4.11",
80
+ "@biomejs/biome": "^2.4.12",
81
81
  "@commitlint/cli": "^20.5.0",
82
82
  "@commitlint/config-conventional": "^20.5.0",
83
83
  "@rollup/plugin-alias": "^6.0.0",