ui.shipaid.com 0.3.136 → 0.3.138
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/{de-BtnHzQjP.js → de-eaQze93t.js} +9 -7
- package/dist/{es-Bh369XzV.js → es-BWv6xZJn.js} +7 -5
- package/dist/{fr-BcirqS62.js → fr-DMWDzKKz.js} +9 -7
- package/dist/{it-CCnbIAiL.js → it-DvSE-Kl_.js} +9 -7
- package/dist/{nl-BIVS0yF9.js → nl-BmO0Voma.js} +8 -6
- package/dist/{pt-CaTmPaet.js → pt-BIWruyoG.js} +9 -7
- package/dist/widget.es.js +294 -171
- package/dist/widget.iife.js +291 -212
- package/dist/widget.umd.js +291 -212
- package/dist-types/widget/src/widgets/shared.d.ts +1 -1
- package/dist-types/widget/src/widgets/shipaid-widget-element.d.ts +9 -0
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ export declare const LOCAL_STORAGE_POLL_KEY = "polling-shipaid-protection";
|
|
|
17
17
|
export declare const LOCAL_STORAGE_SHIPAID_POPUP_KEY = "shipaid-protection-popup-show";
|
|
18
18
|
export declare const PRODUCT_HANDLE = "shipaid-protection";
|
|
19
19
|
export declare const PREVIEW_FLAG = "shipaid-test";
|
|
20
|
-
export declare const StoreQuery = "query StoreByDomain ($store: String!) {\n store: storeByDomain (input: {store: $store}) {\n currency\n planActive\n store\n widgetAutoOptIn\n widgetPollProtection\n widgetShowCart\n excludedProductSkus\n excludedProductTags\n excludedCustomersIdsAutoOptIn\n protectionSettings\n widgetConfigurations\n useCustomApp\n greenProtection\n }\n}";
|
|
20
|
+
export declare const StoreQuery = "query StoreByDomain ($store: String!) {\n store: storeByDomain (input: {store: $store}) {\n currency\n planActive\n store\n widgetAutoOptIn\n widgetPollProtection\n widgetShowCart\n excludedProductSkus\n excludedProductTags\n excludedCustomersIdsAutoOptIn\n protectionSettings\n widgetConfigurations\n useCustomApp\n greenProtection\n freeGifts\n }\n}";
|
|
21
21
|
export declare const SellinPlanGroupFromVariant = "query SellingPlanFromVariant($store: String!, $variantId: String!){\n sellingPlanFromVariant(input: {store: $store, variantId: $variantId })\n}";
|
|
22
22
|
export declare const CheckoutPlusStoreQuery = "query StoreByDomain ($store: String!) {\n store: storeByDomain (input: {store: $store}) {\n currency\n planActive\n protectionSettings\n store\n greenProtection\n checkoutPlus\n freeGifts\n addToCartPlus\n }\n}";
|
|
23
23
|
export declare const DEFAULT_CHECKOUT_SELECTORS: string[];
|
|
@@ -61,6 +61,7 @@ export declare class ShipAidWidget extends LitElement {
|
|
|
61
61
|
private _protectionCartItem;
|
|
62
62
|
/** The protection variant that will be used */
|
|
63
63
|
private _protectionVariant;
|
|
64
|
+
private _isBenefitsOpen;
|
|
64
65
|
hasLoadedStrings: boolean;
|
|
65
66
|
fetchInterceptorCleanup: () => void;
|
|
66
67
|
intervalId: NodeJS.Timeout | null;
|
|
@@ -68,6 +69,12 @@ export declare class ShipAidWidget extends LitElement {
|
|
|
68
69
|
protected shouldUpdate(props: PropertyValues): boolean;
|
|
69
70
|
protected shouldPersistPopup(): "learn-more" | null;
|
|
70
71
|
protected setPopupKey(): void;
|
|
72
|
+
private _pendingLearnMoreSource;
|
|
73
|
+
private _openLearnMore;
|
|
74
|
+
private _toggleBenefits;
|
|
75
|
+
private _handleHelpClick;
|
|
76
|
+
private _handleHelpKeydown;
|
|
77
|
+
private _handleSeeDetails;
|
|
71
78
|
/**
|
|
72
79
|
* Internal state
|
|
73
80
|
*/
|
|
@@ -143,6 +150,8 @@ export declare class ShipAidWidget extends LitElement {
|
|
|
143
150
|
contactlessCheckoutButtonTemplate(): typeof nothing | undefined;
|
|
144
151
|
createRenderRoot(): Element | ShadowRoot;
|
|
145
152
|
getSubscription(_cart: ShopifyCart | undefined): Promise<string | null | undefined>;
|
|
153
|
+
renderImpactTitle: (isGreenProtectionEnabled: boolean, isFreeGiftEnabled: boolean) => import("lit").TemplateResult<1>;
|
|
154
|
+
private _renderBenefitsSection;
|
|
146
155
|
checkoutButtonTemplate(): import("lit").TemplateResult<1> | undefined;
|
|
147
156
|
renderPopups(): import("lit").TemplateResult<1> | null | undefined;
|
|
148
157
|
promptTemplate(): import("lit").TemplateResult<1> | undefined;
|