@liquidcommerce/elements-sdk 2.6.0-beta.33 → 2.6.0-beta.35
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 +10970 -10915
- package/dist/types/clients/base.d.ts +6 -0
- package/dist/types/clients/checkout.d.ts +2 -0
- package/dist/types/modules/address/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/cart/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/checkout/components/checkout-completed.component.d.ts +2 -0
- package/dist/types/modules/checkout/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/product/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/product-list/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/theme-provider/services/style-registry.service.d.ts +16 -0
- package/dist/types/modules/theme-provider/services/stylesheet-generator.service.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/register-styles.d.ts +1 -0
- package/package.json +4 -3
- package/umd/elements-checkout.js +1 -1
- package/umd/elements.js +1 -1
- package/dist/index.checkout.esm.js +0 -16009
- package/dist/types/modules/theme-provider/styles/address/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/cart/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/checkout/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/product/index.d.ts +0 -3
- package/dist/types/modules/theme-provider/styles/product-list/index.d.ts +0 -3
- package/dist/types/modules/theme-provider/styles/ui/index.d.ts +0 -4
- /package/dist/types/modules/{theme-provider/styles/address → address/styles}/address.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/cart → cart/styles}/cart.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/checkout → checkout/styles}/checkout.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product → product/styles}/image-carousel.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product → product/styles}/product.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product → product/styles}/retailers.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product-list → product-list/styles}/product-list-card.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product-list → product-list/styles}/product-list-filters.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product-list → product-list/styles}/product-list.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/drawer.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/loading.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/modal.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/promo-code-ticker.style.d.ts +0 -0
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import '@/modules/theme-provider/styles/register-styles';
|
|
2
|
+
import '@/modules/address/styles/register-styles';
|
|
3
|
+
import '@/modules/cart/styles/register-styles';
|
|
4
|
+
import '@/modules/checkout/styles/register-styles';
|
|
5
|
+
import '@/modules/product/styles/register-styles';
|
|
6
|
+
import '@/modules/product-list/styles/register-styles';
|
|
1
7
|
import { ApiClientService } from '@/core/api/api-client.service';
|
|
2
8
|
import { AuthClientService } from '@/core/api/auth-client.service';
|
|
3
9
|
import { ClientActionService } from '@/core/client/client-action.service';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { ICheckoutDetailsEventData } from '@/core/pubsub/interfaces/checkout.interface';
|
|
2
2
|
import type { IInjectedComponent, ILiquidCommerceElementsCheckoutClientConfig } from '@/interfaces/core.interface';
|
|
3
|
+
import '@/modules/theme-provider/styles/register-styles';
|
|
4
|
+
import '@/modules/checkout/styles/register-styles';
|
|
3
5
|
import type { BillingFieldName, CustomerFieldName, GiftFieldName } from '@/modules/checkout/constant';
|
|
4
6
|
export interface IElementsCheckoutActions {
|
|
5
7
|
applyPromoCode: (promoCode: string) => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,6 +6,8 @@ export interface ICheckoutCompletedComponentParams {
|
|
|
6
6
|
cardLast4: string;
|
|
7
7
|
customerEmail: string;
|
|
8
8
|
giftRecipientEmail: string | null;
|
|
9
|
+
checkoutToken?: string;
|
|
10
|
+
cartId?: string;
|
|
9
11
|
}
|
|
10
12
|
export declare class CheckoutCompletedComponent extends BaseComponent<ICheckoutCompletedComponentParams, ICheckoutComponent> {
|
|
11
13
|
get hostClasses(): string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StylesheetType } from '../constants/css-variable-mappings';
|
|
2
|
+
export type StyleGetter = () => string;
|
|
3
|
+
declare class StyleRegistryService {
|
|
4
|
+
private static instance;
|
|
5
|
+
private registry;
|
|
6
|
+
private constructor();
|
|
7
|
+
static getInstance(): StyleRegistryService;
|
|
8
|
+
register(type: StylesheetType, getter: StyleGetter, priority?: number): void;
|
|
9
|
+
getStyleGetters(type: StylesheetType): StyleGetter[];
|
|
10
|
+
getStyles(type: StylesheetType): string[];
|
|
11
|
+
hasStyles(type: StylesheetType): boolean;
|
|
12
|
+
getRegisteredTypes(): StylesheetType[];
|
|
13
|
+
clear(): void;
|
|
14
|
+
}
|
|
15
|
+
export declare const styleRegistry: StyleRegistryService;
|
|
16
|
+
export { StyleRegistryService };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
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.35",
|
|
7
7
|
"homepage": "https://docs.liquidcommerce.co/elements-sdk",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -55,15 +55,16 @@
|
|
|
55
55
|
],
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "rollup -c",
|
|
58
|
+
"build:checkout": "rollup -c rollup.config.checkout.mjs",
|
|
58
59
|
"build:dev": "rollup -c --environment NODE_ENV:development",
|
|
59
60
|
"dev": "rollup -c -w",
|
|
60
61
|
"type-check": "tsc --noEmit",
|
|
61
62
|
"lint": "pnpm biome lint --write",
|
|
62
63
|
"format": "biome format --write",
|
|
63
64
|
"check": "pnpm biome check --write .",
|
|
64
|
-
"fl": "pnpm check && pnpm build:
|
|
65
|
+
"fl": "pnpm check && pnpm build && pnpm build:checkout",
|
|
65
66
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
|
66
|
-
"clean": "rm -rf dist umd node_modules && pnpm install && pnpm build",
|
|
67
|
+
"clean": "rm -rf dist umd node_modules && pnpm install && pnpm build && pnpm build:checkout",
|
|
67
68
|
"prepublishOnly": "pnpm run build",
|
|
68
69
|
"deprecate:old": "npm deprecate @liquidcommerceteam/elements-sdk@\"*\" \"Package moved to @liquidcommerce/elements-sdk\"",
|
|
69
70
|
"prepare": "husky"
|