@iconify/utils
Advanced tools
Comparing version 1.0.27 to 1.0.28
@@ -25,2 +25,3 @@ import { Awaitable } from '@antfu/utils'; | ||
* - apply `additionalProps` with `iconCustomizer` customizations, if provided | ||
* - apply `trimSVG` to the final `SVG` only when using custom icon collection and `trimCustomSvg` enabled | ||
*/ | ||
@@ -54,2 +55,10 @@ declare type IconCustomizations = { | ||
additionalProps?: Record<string, string | undefined>; | ||
/** | ||
* Should optimize the custom `svg` icon?. | ||
* | ||
* Enable this flag when using custom `SVG` on `CSS`. | ||
* | ||
* @default `false`. | ||
*/ | ||
trimCustomSvg?: boolean; | ||
}; | ||
@@ -56,0 +65,0 @@ /** |
@@ -0,3 +1,8 @@ | ||
/** | ||
* Encode the `SVG` to be used on `CSS`: https://bl.ocks.org/jennyknuth/222825e315d45a738ed9d6e04c7a88d0. | ||
* | ||
* @param svg The `SVG` source. | ||
*/ | ||
declare function encodeSvgForCss(svg: string): string; | ||
export { encodeSvgForCss }; |
@@ -6,3 +6,3 @@ { | ||
"author": "Vjacheslav Trushkin", | ||
"version": "1.0.27", | ||
"version": "1.0.28", | ||
"license": "MIT", | ||
@@ -204,9 +204,2 @@ "bugs": "https://github.com/iconify/iconify/issues", | ||
], | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"./lib/*" | ||
] | ||
} | ||
}, | ||
"dependencies": { | ||
@@ -213,0 +206,0 @@ "@antfu/install-pkg": "^0.1.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
146754
4603
0