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.
@@ -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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ui.shipaid.com",
3
3
  "private": false,
4
- "version": "0.3.136",
4
+ "version": "0.3.138",
5
5
  "type": "module",
6
6
  "main": "dist/widget.umd.js",
7
7
  "unpkg": "dist/widget.iife.js",