@liquidcommerce/elements-sdk 2.7.28 → 2.7.29
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.
|
@@ -7,6 +7,7 @@ export declare class CheckoutPresaleCountdownComponent extends BaseComponent<nul
|
|
|
7
7
|
private expiresAt;
|
|
8
8
|
private initialDurationSeconds;
|
|
9
9
|
private rootElement;
|
|
10
|
+
private lastRenderedTime;
|
|
10
11
|
private scrollHandler;
|
|
11
12
|
private scrollContainer;
|
|
12
13
|
private isCurrentlyScrolled;
|
|
@@ -2,6 +2,7 @@ export declare function centToDollar(cent: number): number;
|
|
|
2
2
|
export declare function formatCentToDollarText(cent: number, showZeroDecimals?: boolean): string;
|
|
3
3
|
export declare function htmlStringToElement(htmlString: string): HTMLElement;
|
|
4
4
|
export declare function formatISODateToMMDDYYYY(isoDateString: string | null | undefined): string;
|
|
5
|
+
export declare function formatISOInstantToMMDDYYYY(isoInstant: string | null | undefined, timeZone?: string): string;
|
|
5
6
|
export declare function capitalizeFirstLetter(text: string): string;
|
|
6
7
|
export declare function splitCategoryPath(catPath?: string): {
|
|
7
8
|
category: string;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export declare const BUSINESS_CONTRACT_TIMEZONE = "America/New_York";
|
|
2
|
+
export declare function getDatePartsInTimezone(instant: Date, timeZone: string): {
|
|
3
|
+
year: string;
|
|
4
|
+
month: string;
|
|
5
|
+
day: string;
|
|
6
|
+
} | null;
|
|
1
7
|
export declare function detectUserTimezone(addressState?: string): string;
|
|
2
8
|
export declare function getCurrentTimeInTimezone(timezone: string): Date;
|
|
3
9
|
export declare function getCurrentTimeInUserTimezone(addressState?: string): Date;
|
package/package.json
CHANGED