yt-uikit 0.10.87 → 0.10.89
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/esm/index.js +506 -506
- package/dist/esm/utils/index.d.ts +3 -12
- package/package.json +1 -1
|
@@ -12,18 +12,9 @@ export declare const shouldUseBWTheme: () => boolean;
|
|
|
12
12
|
export declare const optimizeShopifyImage: (imageUrl: string | undefined | null, size?: number, quality?: number, format?: "webp" | "auto" | "jpg" | "png") => string;
|
|
13
13
|
export declare const darkenColor: (color: string | undefined, amount?: number) => string;
|
|
14
14
|
export declare const extractBundleDiscountTitle: (discountTitle: string) => string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* the browser.
|
|
19
|
-
*
|
|
20
|
-
* Fails CLOSED: with no DOM available (SSR) or on any error it returns "" so
|
|
21
|
-
* unsanitized markup is never rendered. The trade-off is that server-rendered
|
|
22
|
-
* markup for these blocks is empty until the client hydrates and re-sanitizes;
|
|
23
|
-
* acceptable here because every consumer of this helper is a client-rendered
|
|
24
|
-
* storefront widget.
|
|
25
|
-
*/
|
|
26
|
-
export declare const sanitizeHtml: (html: string | null | undefined) => string;
|
|
15
|
+
export declare const sanitizeHtml: (html: string | null | undefined, options?: {
|
|
16
|
+
allowStyling?: boolean;
|
|
17
|
+
}) => string;
|
|
27
18
|
export declare const getSafeNavigationUrl: (destination: string | null | undefined) => string | undefined;
|
|
28
19
|
export declare const getSafeVariantNavigationUrl: (destination: string | null | undefined, variantId: string | number | null | undefined) => string | undefined;
|
|
29
20
|
export declare const getSafeExternalUrl: (destination: string | null | undefined) => string | undefined;
|