@liquidcommerce/elements-sdk 2.6.0-beta.87 → 2.6.0-beta.89
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.checkout.esm.js +7070 -7065
- package/dist/index.esm.js +11490 -11482
- package/dist/types/auto-initialize/shared-utils.d.ts +1 -0
- package/dist/types/clients/builder.d.ts +1 -1
- package/dist/types/clients/checkout.d.ts +1 -1
- package/dist/types/clients/main.d.ts +1 -1
- package/package.json +2 -1
|
@@ -39,6 +39,7 @@ export declare function getProductUrlsConfig(): ProductUrlsConfig | undefined;
|
|
|
39
39
|
export declare function triggerAutoInit(initFunction: () => Promise<void>, errorPrefix: string): void;
|
|
40
40
|
export declare function setupCheckout(script: HTMLScriptElement, injectFn: (params: IInjectCheckoutParams) => Promise<IInjectedComponent | null>, exitCheckoutFn: () => void, options: {
|
|
41
41
|
errorPrefix: string;
|
|
42
|
+
warnIfMissing?: boolean;
|
|
42
43
|
}): Promise<void>;
|
|
43
44
|
export declare function setupExitCheckoutHandlers(exitCheckoutFn: () => void): void;
|
|
44
45
|
export declare function addProductViaQueryParam(actions: IQueryParamActions, script: HTMLScriptElement, errorPrefix: string): Promise<void>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ILiquidCommerceElementsBuilderClient } from '@/interfaces/client.interface';
|
|
2
2
|
import type { ILiquidCommerceElementsBuilderConfig } from '@/interfaces/config.interface';
|
|
3
|
-
export declare function ElementsBuilder(apiKey: string, config
|
|
3
|
+
export declare function ElementsBuilder(apiKey: string, config?: ILiquidCommerceElementsBuilderConfig): Promise<ILiquidCommerceElementsBuilderClient | null>;
|
|
@@ -3,4 +3,4 @@ import type { ILiquidCommerceElementsCheckoutClientConfig } from '@/interfaces/c
|
|
|
3
3
|
import '@/modules/theme-provider/styles/register-styles';
|
|
4
4
|
import '@/modules/address/styles/register-styles';
|
|
5
5
|
import '@/modules/checkout/styles/register-styles';
|
|
6
|
-
export declare function ElementsCheckout(apiKey: string, config
|
|
6
|
+
export declare function ElementsCheckout(apiKey: string, config?: ILiquidCommerceElementsCheckoutClientConfig): Promise<IElementsCheckoutClient | null>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ILiquidCommerceElementsClient } from '@/interfaces/client.interface';
|
|
2
2
|
import type { ILiquidCommerceElementsConfig } from '@/interfaces/config.interface';
|
|
3
|
-
export declare function Elements(apiKey: string, config
|
|
3
|
+
export declare function Elements(apiKey: string, config?: ILiquidCommerceElementsConfig): Promise<ILiquidCommerceElementsClient | null>;
|
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.89",
|
|
7
7
|
"homepage": "https://docs.liquidcommerce.co/elements-sdk",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"build": "rollup -c",
|
|
54
54
|
"build:checkout": "rollup -c rollup.config.checkout.mjs",
|
|
55
55
|
"build:all": "pnpm build && pnpm build:checkout",
|
|
56
|
+
"build:demo-site": "pnpm build:all && mkdir -p demo-site/sdk && cp umd/elements.js umd/elements-checkout.js demo-site/sdk/",
|
|
56
57
|
"dev": "rollup -c -w",
|
|
57
58
|
"type-check": "tsc --noEmit",
|
|
58
59
|
"lint": "pnpm biome lint --write",
|