ui.shipaid.com 0.3.124 → 0.3.125

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.
@@ -80,5 +80,7 @@ export interface ShipAidStore {
80
80
  orderSettings: OrderSettings;
81
81
  autoOptInProbability: any;
82
82
  greenProtection: any;
83
+ checkoutPlus: any;
84
+ freeGifts: any;
83
85
  }
84
86
  export {};
@@ -0,0 +1 @@
1
+ import './shipaid-add-to-cart-plus';
@@ -0,0 +1,5 @@
1
+ declare class ShipAidAddToCartPlus extends HTMLElement {
2
+ private shadow;
3
+ constructor();
4
+ connectedCallback(): void;
5
+ }
@@ -26,6 +26,7 @@ export declare class ShipAidWidgetV2 extends LitElement {
26
26
  private _fetch;
27
27
  connectedCallback(): Promise<void>;
28
28
  private _ensureLearnMoreCarousel;
29
+ private _shouldShowWidget;
29
30
  protected updated(changed: Map<string, unknown>): void;
30
31
  private _ensureBaseStyles;
31
32
  private _applyButtonStylesFrom;
@@ -49,6 +50,7 @@ export declare class ShipAidWidgetV2 extends LitElement {
49
50
  removeProtection(): Promise<void>;
50
51
  private _currencyFormat;
51
52
  updateProtection(): Promise<void>;
53
+ openModal(): void;
52
54
  private proceedToCheckout;
53
55
  render(): import("lit").TemplateResult<1> | typeof nothing;
54
56
  }
@@ -1,6 +1,11 @@
1
- export declare enum Events {
2
- LOADED = "shipaid-loaded",
3
- STATUS_UPDATE = "shipaid-protection-status"
1
+ export declare enum SHIPAID_EVENTS {
2
+ LOADED = "shipaid:widget:loaded",
3
+ CART_UPDATED = "shipaid:cart:updated",
4
+ PROTECTION_ADDED = "shipaid:protection:added",
5
+ PROTECTION_REMOVED = "shipaid:protection:removed"
6
+ }
7
+ export declare enum EXTERNAL_EVENTS {
8
+ CART_UPDATED = "cart:update"
4
9
  }
5
10
  export interface State {
6
11
  loading: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ui.shipaid.com",
3
3
  "private": false,
4
- "version": "0.3.124",
4
+ "version": "0.3.125",
5
5
  "type": "module",
6
6
  "main": "dist/widget.umd.js",
7
7
  "unpkg": "dist/widget.iife.js",
@@ -16,7 +16,11 @@
16
16
  ],
17
17
  "scripts": {
18
18
  "develop": "vite",
19
+ "develop:v2": "vite -c vite.config.v2.ts",
19
20
  "build": "tsc && node build",
21
+ "build:v2": "tsc && node build.v2.js",
22
+ "build:all": "tsc && node build.all.js",
23
+ "prepublishOnly": "npm run build:all",
20
24
  "lint": "eslint . --ext=ts --fix",
21
25
  "test": "vitest"
22
26
  },
@@ -46,4 +50,4 @@
46
50
  "vite": "^5.4.10",
47
51
  "vitest": "^2.1.4"
48
52
  }
49
- }
53
+ }