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.
@@ -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
- * Sanitize an untrusted HTML string before injecting it via
17
- * `dangerouslySetInnerHTML`. Uses DOMPurify (an allowlist-based sanitizer) in
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yt-uikit",
3
- "version": "0.10.87",
3
+ "version": "0.10.89",
4
4
  "description": "YourToken UI Kit",
5
5
  "scripts": {
6
6
  "rollup": "rm -rf dist && tsc && rollup -c",