Comparing version 0.0.20 to 0.0.21
@@ -119,3 +119,3 @@ import { Config } from 'svgo'; | ||
type CreateHandler = (config: ModuleConfig) => ISvgHandler; | ||
type HandlerName = "css-mask" | "vue-css-mask" | "vue-inline"; | ||
type HandlerName = "css-mask" | "vue-css-mask" | "vue-inline" | "react-css-mask"; | ||
@@ -160,2 +160,13 @@ declare class CssMaskHandler implements ISvgHandler { | ||
export { type CreateHandler, CssMaskHandler, File, type IWriter, type ModuleConfig, TokenHandler, TypeHandler, VueCssMaskHandler, VueInlineHandler, defineConfig }; | ||
declare class ReactCssMaskHandler implements ISvgHandler { | ||
private readonly mConfig; | ||
private file; | ||
private cssMaskHandler; | ||
config: Config; | ||
constructor(mConfig: ModuleConfig); | ||
onFile(svg: File): void; | ||
onEnd(ctx: Context): File[]; | ||
private getFileContent; | ||
} | ||
export { type CreateHandler, CssMaskHandler, File, type IWriter, type ModuleConfig, ReactCssMaskHandler, TokenHandler, TypeHandler, VueCssMaskHandler, VueInlineHandler, defineConfig }; |
{ | ||
"name": "svgpipe", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "A flexible CLI tool around svgo for further postprocessing.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -29,6 +29,6 @@ # Svgpipe | ||
modules: { | ||
// load SVGs from "./svgpipe/in/logo and process with 'css-mask' handler" | ||
logo: "css-mask", | ||
// load svg from "./svgpipe/in/icon" and apply custom handler | ||
icon: { | ||
// load SVGs from "./svgpipe/in/icon and process with 'css-mask' handler" | ||
icon: "css-mask", | ||
// load SVGs from "./svgpipe/in/logo" and apply custom handler | ||
logo: { | ||
handler: (conf) => ({}) | ||
@@ -35,0 +35,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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
63125
1540