ui.shipaid.com 0.3.147 → 0.3.148
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.
|
@@ -33,6 +33,12 @@ export declare const removeProtectionWithCheckoutPlus: () => Promise<void>;
|
|
|
33
33
|
export declare const hasProtectionWithCheckoutPlus: () => Promise<boolean>;
|
|
34
34
|
export declare const resetShipAidSharedCache: () => void;
|
|
35
35
|
export declare const openCarousel: (from: string) => void;
|
|
36
|
+
/**
|
|
37
|
+
* Ensures the learn-more carousel is mounted in the DOM.
|
|
38
|
+
* This allows external elements to trigger the modal via events without requiring prior user interaction.
|
|
39
|
+
* @param store - ShipAid store configuration
|
|
40
|
+
*/
|
|
41
|
+
export declare const ensureLearnMoreCarousel: (store?: ShipAidStore | null) => void;
|
|
36
42
|
/**
|
|
37
43
|
* Refresh Shopify cart UI sections (drawer, icons, cart page) after cart changes.
|
|
38
44
|
* This ensures the UI stays in sync after ShipAid modifies the cart.
|
|
@@ -74,7 +74,6 @@ export declare class ShipAidWidget extends LitElement {
|
|
|
74
74
|
protected shouldUpdate(props: PropertyValues): boolean;
|
|
75
75
|
protected shouldPersistPopup(): "learn-more" | null;
|
|
76
76
|
protected setPopupKey(): void;
|
|
77
|
-
private _pendingLearnMoreSource;
|
|
78
77
|
private _openLearnMore;
|
|
79
78
|
private _toggleBenefits;
|
|
80
79
|
private _handleHelpClick;
|
|
@@ -154,7 +153,7 @@ export declare class ShipAidWidget extends LitElement {
|
|
|
154
153
|
/** Re-enable checkout buttons after updating protection */
|
|
155
154
|
private _enableCheckoutButtons;
|
|
156
155
|
/** Templates */
|
|
157
|
-
learnMorePopupTemplate():
|
|
156
|
+
learnMorePopupTemplate(): null;
|
|
158
157
|
confirmationPopupTemplate(): import("lit").TemplateResult<1>;
|
|
159
158
|
getElementsBySelector: (selector: string | null) => never[] | NodeListOf<Element>;
|
|
160
159
|
addStylesIfNeeded: () => void;
|
|
@@ -164,7 +163,7 @@ export declare class ShipAidWidget extends LitElement {
|
|
|
164
163
|
renderImpactTitle: (isGreenProtectionEnabled: boolean, isFreeGiftEnabled: boolean) => import("lit").TemplateResult<1>;
|
|
165
164
|
private _renderBenefitsSection;
|
|
166
165
|
checkoutButtonTemplate(): import("lit").TemplateResult<1> | undefined;
|
|
167
|
-
renderPopups(): import("lit").TemplateResult<1> | null
|
|
166
|
+
renderPopups(): import("lit").TemplateResult<1> | null;
|
|
168
167
|
promptTemplate(): import("lit").TemplateResult<1> | undefined;
|
|
169
168
|
connectedCallback(): Promise<void>;
|
|
170
169
|
disconnectedCallback(): void;
|