ui.shipaid.com 0.3.58 → 0.3.60
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/widget.es.js +439 -36
- package/dist/widget.iife.js +283 -41
- package/dist/widget.umd.js +283 -41
- package/dist-types/common/types/ShipAid.d.ts +1 -0
- package/dist-types/widget/src/assets/icons.d.ts +1 -0
- package/dist-types/widget/src/components/checkout-button.d.ts +7 -0
- package/dist-types/widget/src/components/checkout-package-protection.d.ts +13 -0
- package/dist-types/widget/src/components/checkoutButton.d.ts +13 -0
- package/dist-types/widget/src/components/content-loader.d.ts +6 -0
- package/dist-types/widget/src/shipaid-widget.d.ts +9 -3
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const CheckmarkIcon: import("lit").TemplateResult<1>;
|
|
2
2
|
export declare const ShipAidLogo: import("lit").TemplateResult<1>;
|
|
3
|
+
export declare const ShipAidReducedLogo: import("lit").TemplateResult<1>;
|
|
3
4
|
export declare const ShipAidLogoText: import("lit").TemplateResult<1>;
|
|
4
5
|
export declare const ShipAidLogoPopUp: import("lit").TemplateResult<1>;
|
|
5
6
|
export declare const CheckmarkRibbon: import("lit").TemplateResult<1>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
declare class CheckoutPackageProtection extends LitElement {
|
|
3
|
+
createRenderRoot(): this;
|
|
4
|
+
protectionPrice: number;
|
|
5
|
+
checkoutTotal: number;
|
|
6
|
+
logo: string;
|
|
7
|
+
originalClasses: string;
|
|
8
|
+
handleAbout(): void;
|
|
9
|
+
handleCheckoutWithProtection(): void;
|
|
10
|
+
handleCheckoutWithoutProtection(): void;
|
|
11
|
+
render(): import("lit").TemplateResult<1>;
|
|
12
|
+
}
|
|
13
|
+
export default CheckoutPackageProtection;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class CheckoutPackageProtection extends LitElement {
|
|
3
|
+
/**
|
|
4
|
+
* Precio de la protección
|
|
5
|
+
*/
|
|
6
|
+
protectionPrice: number;
|
|
7
|
+
/**
|
|
8
|
+
* Total del checkout
|
|
9
|
+
*/
|
|
10
|
+
checkoutTotal: number;
|
|
11
|
+
static styles: import("lit").CSSResult;
|
|
12
|
+
render(): import("lit").TemplateResult<1>;
|
|
13
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import { LitElement, nothing, PropertyValues } from 'lit';
|
|
3
3
|
import './components/learn-more-popup';
|
|
4
4
|
import './components/confirmation-popup';
|
|
5
5
|
import './components/shipaid-cart-confirmation';
|
|
6
|
+
import './components/checkout-package-protection';
|
|
6
7
|
import type { ShopifyCart, ShopifyCartItem } from '../types/shopify';
|
|
7
8
|
/**
|
|
8
9
|
* ShipAid Widget.
|
|
@@ -29,6 +30,8 @@ export declare class ShipAidWidget extends LitElement {
|
|
|
29
30
|
currency: undefined;
|
|
30
31
|
customerId: undefined;
|
|
31
32
|
supportSubscriptions: boolean;
|
|
33
|
+
dataSelector: string;
|
|
34
|
+
useShipAidCheckout: boolean;
|
|
32
35
|
/** API Proxy pathname */
|
|
33
36
|
private _apiEndpoint;
|
|
34
37
|
/** The current store domain */
|
|
@@ -55,7 +58,7 @@ export declare class ShipAidWidget extends LitElement {
|
|
|
55
58
|
private _protectionVariant;
|
|
56
59
|
hasLoadedStrings: boolean;
|
|
57
60
|
fetchInterceptorCleanup: () => void;
|
|
58
|
-
intervalId: NodeJS.
|
|
61
|
+
intervalId: NodeJS.Timeout | null;
|
|
59
62
|
protected shouldUpdate(props: PropertyValues): boolean;
|
|
60
63
|
protected shouldPersistPopup(): "learn-more" | null;
|
|
61
64
|
protected setPopupKey(): void;
|
|
@@ -127,8 +130,11 @@ export declare class ShipAidWidget extends LitElement {
|
|
|
127
130
|
learnMorePopupTemplate(): import("lit").TemplateResult<1>;
|
|
128
131
|
confirmationPopupTemplate(): import("lit").TemplateResult<1>;
|
|
129
132
|
confirmShipAidCart(): import("lit").TemplateResult<1>;
|
|
133
|
+
contactlessCheckoutButtonTemplate(): typeof nothing | undefined;
|
|
134
|
+
createRenderRoot(): Element | ShadowRoot;
|
|
135
|
+
checkoutButtonTemplate(): import("lit").TemplateResult<1> | undefined;
|
|
130
136
|
renderPopups(): import("lit").TemplateResult<1> | null;
|
|
131
|
-
promptTemplate(): import("lit").TemplateResult<1
|
|
137
|
+
promptTemplate(): import("lit").TemplateResult<1> | undefined;
|
|
132
138
|
connectedCallback(): Promise<void>;
|
|
133
139
|
disconnectedCallback(): void;
|
|
134
140
|
updateProtection(): Promise<void>;
|