ui.shipaid.com 0.3.182 → 0.3.183
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 +4 -3
- package/dist/widget.iife.js +5 -4
- package/dist/widget.umd.js +5 -4
- package/package.json +1 -1
- package/dist-types/widget/src/assets/learn-more-styles.d.ts +0 -2
- package/dist-types/widget/src/components/learn-more-popup.d.ts +0 -9
- package/dist-types/widget/src/components/product-add-confirmation.d.ts +0 -13
- package/dist-types/widget/src/components/shipaid-green-protection-popup.d.ts +0 -8
- package/dist-types/widget/src/components/shipaid-learn-more-carousel.d.ts +0 -15
package/dist/widget.es.js
CHANGED
|
@@ -4713,7 +4713,7 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
|
|
|
4713
4713
|
*/
|
|
4714
4714
|
_renderDefaultCheckoutButton(originalClasses, protectionPrice, cartTotal, isGreenProtectionEnabled, isFreeGiftEnabled, impactActive, loading2) {
|
|
4715
4715
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4716
|
-
const { logo, title: title2 = "", linkContinueText } = ((_b = (_a = this._store) == null ? void 0 : _a.widgetConfigurations) == null ? void 0 : _b.checkoutPlus) || { logo: null, title: null, linkContinueText: null };
|
|
4716
|
+
const { logo, title: title2 = "", checkoutText, linkContinueText } = ((_b = (_a = this._store) == null ? void 0 : _a.widgetConfigurations) == null ? void 0 : _b.checkoutPlus) || { logo: null, title: null, checkoutText: null, linkContinueText: null };
|
|
4717
4717
|
return x`
|
|
4718
4718
|
<style>
|
|
4719
4719
|
:host {
|
|
@@ -4936,8 +4936,9 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
|
|
|
4936
4936
|
window.location.href = `/checkout?attributes[_shipaid-internal]=1&updates[${(_b2 = this._protectionVariant) == null ? void 0 : _b2.id}]=1`;
|
|
4937
4937
|
}}
|
|
4938
4938
|
>
|
|
4939
|
-
${this.buttonTitle || x`<
|
|
4940
|
-
${cartTotal ? this._currencyFormat(cartTotal) : loading2}`
|
|
4939
|
+
${this.buttonTitle || (checkoutText ? x`<span>${checkoutText}</span>
|
|
4940
|
+
${cartTotal ? this._currencyFormat(cartTotal) : loading2}` : x`<slot name="checkout-button-text">CHECKOUT+</slot>
|
|
4941
|
+
${cartTotal ? this._currencyFormat(cartTotal) : loading2}`)}
|
|
4941
4942
|
</button>
|
|
4942
4943
|
` : x`
|
|
4943
4944
|
<a
|
package/dist/widget.iife.js
CHANGED
|
@@ -1001,7 +1001,7 @@ function GA(A,e,t){return A?e():null==t?void 0:t()}const JA=aA`
|
|
|
1001
1001
|
Checkout without package protection
|
|
1002
1002
|
</a>
|
|
1003
1003
|
</div>
|
|
1004
|
-
`}_renderDefaultCheckoutButton(A,e,t,d,n,r,a){var o,g,v,u,f,D,B,Q;const{logo:p,title:s="",linkContinueText:
|
|
1004
|
+
`}_renderDefaultCheckoutButton(A,e,t,d,n,r,a){var o,g,v,u,f,D,B,Q;const{logo:p,title:s="",checkoutText:c,linkContinueText:i}=(null==(g=null==(o=this._store)?void 0:o.widgetConfigurations)?void 0:g.checkoutPlus)||{logo:null,title:null,checkoutText:null,linkContinueText:null};return E`
|
|
1005
1005
|
<style>
|
|
1006
1006
|
:host {
|
|
1007
1007
|
display: inline-block;
|
|
@@ -1208,8 +1208,9 @@ function GA(A,e,t){return A?e():null==t?void 0:t()}const JA=aA`
|
|
|
1208
1208
|
class="${this.buttonClasses||A}"
|
|
1209
1209
|
@click=${async()=>{var A,e;sessionStorage.setItem("shipaid_variant",JSON.stringify(null==(A=this._protectionVariant)?void 0:A.id)),await this.addCartProtectionVariant(),window.location.href=`/checkout?attributes[_shipaid-internal]=1&updates[${null==(e=this._protectionVariant)?void 0:e.id}]=1`}}
|
|
1210
1210
|
>
|
|
1211
|
-
${this.buttonTitle||E`<
|
|
1212
|
-
${t?this._currencyFormat(t):a}
|
|
1211
|
+
${this.buttonTitle||(c?E`<span>${c}</span>
|
|
1212
|
+
${t?this._currencyFormat(t):a}`:E`<slot name="checkout-button-text">CHECKOUT+</slot>
|
|
1213
|
+
${t?this._currencyFormat(t):a}`)}
|
|
1213
1214
|
</button>
|
|
1214
1215
|
`:E`
|
|
1215
1216
|
<a
|
|
@@ -1234,7 +1235,7 @@ function GA(A,e,t){return A?e():null==t?void 0:t()}const JA=aA`
|
|
|
1234
1235
|
class="continue-link"
|
|
1235
1236
|
>
|
|
1236
1237
|
<slot name="link-continue"
|
|
1237
|
-
>${
|
|
1238
|
+
>${i||LA("checkout-plus.continue")}${!i&&n?LA("plus.suffix.no-gift"):""}</slot
|
|
1238
1239
|
>
|
|
1239
1240
|
</a>
|
|
1240
1241
|
</div>
|
package/dist/widget.umd.js
CHANGED
|
@@ -1001,7 +1001,7 @@ function GA(A,e,t){return A?e():null==t?void 0:t()}const JA=aA`
|
|
|
1001
1001
|
Checkout without package protection
|
|
1002
1002
|
</a>
|
|
1003
1003
|
</div>
|
|
1004
|
-
`}_renderDefaultCheckoutButton(A,e,t,d,n,r,a){var o,g,v,u,f,D,B,Q;const{logo:p,title:s="",linkContinueText:
|
|
1004
|
+
`}_renderDefaultCheckoutButton(A,e,t,d,n,r,a){var o,g,v,u,f,D,B,Q;const{logo:p,title:s="",checkoutText:c,linkContinueText:i}=(null==(g=null==(o=this._store)?void 0:o.widgetConfigurations)?void 0:g.checkoutPlus)||{logo:null,title:null,checkoutText:null,linkContinueText:null};return E`
|
|
1005
1005
|
<style>
|
|
1006
1006
|
:host {
|
|
1007
1007
|
display: inline-block;
|
|
@@ -1208,8 +1208,9 @@ function GA(A,e,t){return A?e():null==t?void 0:t()}const JA=aA`
|
|
|
1208
1208
|
class="${this.buttonClasses||A}"
|
|
1209
1209
|
@click=${async()=>{var A,e;sessionStorage.setItem("shipaid_variant",JSON.stringify(null==(A=this._protectionVariant)?void 0:A.id)),await this.addCartProtectionVariant(),window.location.href=`/checkout?attributes[_shipaid-internal]=1&updates[${null==(e=this._protectionVariant)?void 0:e.id}]=1`}}
|
|
1210
1210
|
>
|
|
1211
|
-
${this.buttonTitle||E`<
|
|
1212
|
-
${t?this._currencyFormat(t):a}
|
|
1211
|
+
${this.buttonTitle||(c?E`<span>${c}</span>
|
|
1212
|
+
${t?this._currencyFormat(t):a}`:E`<slot name="checkout-button-text">CHECKOUT+</slot>
|
|
1213
|
+
${t?this._currencyFormat(t):a}`)}
|
|
1213
1214
|
</button>
|
|
1214
1215
|
`:E`
|
|
1215
1216
|
<a
|
|
@@ -1234,7 +1235,7 @@ function GA(A,e,t){return A?e():null==t?void 0:t()}const JA=aA`
|
|
|
1234
1235
|
class="continue-link"
|
|
1235
1236
|
>
|
|
1236
1237
|
<slot name="link-continue"
|
|
1237
|
-
>${
|
|
1238
|
+
>${i||LA("checkout-plus.continue")}${!i&&n?LA("plus.suffix.no-gift"):""}</slot
|
|
1238
1239
|
>
|
|
1239
1240
|
</a>
|
|
1240
1241
|
</div>
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
-
import './shipaid-learn-more-carousel';
|
|
3
|
-
declare class LearnMorePopup extends LitElement {
|
|
4
|
-
static styles: import("lit").CSSResult;
|
|
5
|
-
hasGreenShipAid: boolean;
|
|
6
|
-
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
7
|
-
render(): import("lit").TemplateResult<1>;
|
|
8
|
-
}
|
|
9
|
-
export default LearnMorePopup;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit'
|
|
2
|
-
declare class ProductAddConfirmation extends LitElement {
|
|
3
|
-
static styles: import('lit').CSSResult
|
|
4
|
-
open: boolean
|
|
5
|
-
product: null
|
|
6
|
-
imageUrl: null
|
|
7
|
-
priceOfVariant: null
|
|
8
|
-
quantity: number
|
|
9
|
-
handleDismiss(): void
|
|
10
|
-
handleConfirm(): void
|
|
11
|
-
render(): import('lit-html').TemplateResult<1>
|
|
12
|
-
}
|
|
13
|
-
export default ProductAddConfirmation
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
declare class GreenProtectionHelpPopup extends LitElement {
|
|
3
|
-
static styles: import("lit").CSSResult;
|
|
4
|
-
active: boolean;
|
|
5
|
-
handleClosePopup(): void;
|
|
6
|
-
render(): import("lit").TemplateResult<1>;
|
|
7
|
-
}
|
|
8
|
-
export default GreenProtectionHelpPopup;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare class ShipAidLearnMoreCarousel extends HTMLElement {
|
|
2
|
-
private modal;
|
|
3
|
-
private close;
|
|
4
|
-
private boxesWrapper;
|
|
5
|
-
private prevBtn;
|
|
6
|
-
private nextBtn;
|
|
7
|
-
private totalSlides;
|
|
8
|
-
private currentSlide;
|
|
9
|
-
private getSlide1;
|
|
10
|
-
private getSlide2;
|
|
11
|
-
private getSlide3;
|
|
12
|
-
private getSlide4;
|
|
13
|
-
private updateSlider;
|
|
14
|
-
connectedCallback(): void;
|
|
15
|
-
}
|