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.
@@ -67,6 +67,7 @@ export interface ShipAidStore {
67
67
  store: string;
68
68
  currency: string;
69
69
  widgetAutoOptIn?: boolean;
70
+ useCustomApp?: boolean;
70
71
  widgetPollProtection?: boolean;
71
72
  widgetShowCart?: boolean;
72
73
  excludedProductSkus?: string[];
@@ -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,7 @@
1
+ import { LitElement } from 'lit';
2
+ declare class ShipAidCheckoutButton extends LitElement {
3
+ createRenderRoot(): this;
4
+ buttonClasses: string;
5
+ render(): import("lit").TemplateResult<1>;
6
+ }
7
+ export default ShipAidCheckoutButton;
@@ -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
+ }
@@ -0,0 +1,6 @@
1
+ import { LitElement } from 'lit';
2
+ export declare class SuspenseLoader extends LitElement {
3
+ loading: boolean;
4
+ static styles: import("lit").CSSResult;
5
+ render(): import("lit").TemplateResult<1>;
6
+ }
@@ -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.Timer | null;
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>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ui.shipaid.com",
3
3
  "private": false,
4
- "version": "0.3.58",
4
+ "version": "0.3.60",
5
5
  "type": "module",
6
6
  "main": "dist/widget.umd.js",
7
7
  "unpkg": "dist/widget.iife.js",