yt-uikit 0.10.83 → 0.10.84
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 +514 -502
- package/dist/esm/utils/index.d.ts +8 -0
- package/package.json +2 -1
|
@@ -13,4 +13,12 @@ export declare const optimizeShopifyImage: (imageUrl: string | undefined | null,
|
|
|
13
13
|
export declare const darkenColor: (color: string | undefined, amount?: number) => string;
|
|
14
14
|
export declare const extractBundleDiscountTitle: (discountTitle: string) => string;
|
|
15
15
|
export declare const sanitizeHtml: (html: string | null | undefined) => string;
|
|
16
|
+
export declare const getSafeNavigationUrl: (destination: string | null | undefined) => string | undefined;
|
|
17
|
+
export declare const getSafeVariantNavigationUrl: (destination: string | null | undefined, variantId: string | number | null | undefined) => string | undefined;
|
|
18
|
+
export declare const getSafeExternalUrl: (destination: string | null | undefined) => string | undefined;
|
|
19
|
+
export declare const safeNavigate: (destination: string | null | undefined, replace?: boolean) => boolean;
|
|
20
|
+
export declare const safeNavigateExternal: (destination: string | null | undefined, replace?: boolean) => boolean;
|
|
21
|
+
export declare const safeCssColor: (value: string | null | undefined, fallback?: string) => string | undefined;
|
|
22
|
+
export declare const safeCssNumber: (value: unknown) => number | undefined;
|
|
23
|
+
export declare const getSafeImageUrl: (value: string | null | undefined) => string | undefined;
|
|
16
24
|
export * from "./shopifyAtcBridge";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yt-uikit",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.84",
|
|
4
4
|
"description": "YourToken UI Kit",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"rollup": "rm -rf dist && tsc && rollup -c",
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"html-webpack-plugin": "^5.5.0",
|
|
64
64
|
"identity-obj-proxy": "^3.0.0",
|
|
65
65
|
"jest": "^28.1.3",
|
|
66
|
+
"jest-environment-jsdom": "^28.1.3",
|
|
66
67
|
"jest-worker": "^29.7.0",
|
|
67
68
|
"jotai": "^2.6.4",
|
|
68
69
|
"lottie-react": "^2.4.1",
|