svg-spritemap-webpack-plugin
Version:
Generates symbol-based SVG spritemap from all .svg files in a directory
61 lines (60 loc) • 2.65 kB
TypeScript
import { z } from 'zod';
import { Options } from './types.js';
export declare const VAR_NAMESPACE = "var";
export declare const VAR_NAMESPACE_VALUE = "https://github.com/cascornelissen/svg-spritemap-webpack-plugin/";
export declare const VAR_NAMESPACE_REGEX: RegExp;
export declare const VAR_REGEX: RegExp;
export declare const SPRITE_NAME_ATTRIBUTE = "data-svg-spritemap-webpack-plugin-name";
export declare const SPRITE_LOCATION_ATTRIBUTE = "data-svg-spritemap-webpack-plugin-location";
export declare const PLUGIN: {
name: string;
};
export declare const OPTIONS_SCHEMA: z.ZodObject<{
input: z.ZodObject<{
options: z.ZodRecord<z.ZodString, z.ZodAny>;
allowDuplicates: z.ZodBoolean;
}, z.core.$strip>;
output: z.ZodObject<{
filename: z.ZodString;
svg: z.ZodObject<{
sizes: z.ZodBoolean;
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
}, z.core.$strip>;
chunk: z.ZodObject<{
name: z.ZodString;
keep: z.ZodBoolean;
}, z.core.$strip>;
svg4everybody: z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodAny>]>;
svgo: z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodAny>]>;
}, z.core.$strip>;
sprite: z.ZodObject<{
prefix: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>, z.ZodCustom<(...parameters: any[]) => any, (...parameters: any[]) => any>]>;
idify: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodCustom<(...parameters: any[]) => any, (...parameters: any[]) => any>]>;
gutter: z.ZodNumber;
generate: z.ZodObject<{
title: z.ZodBoolean;
dimensions: z.ZodBoolean;
use: z.ZodBoolean;
symbol: z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>;
view: z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>;
}, z.core.$strip>;
}, z.core.$strip>;
styles: z.ZodObject<{
filename: z.ZodOptional<z.ZodString>;
attributes: z.ZodObject<{
keep: z.ZodBoolean;
}, z.core.$strip>;
selectors: z.ZodObject<{
prefix: z.ZodBoolean;
}, z.core.$strip>;
format: z.ZodUnion<readonly [z.ZodLiteral<"data">, z.ZodLiteral<"fragment">]>;
variables: z.ZodObject<{
sprites: z.ZodString;
sizes: z.ZodString;
variables: z.ZodString;
mixin: z.ZodString;
}, z.core.$strip>;
callback: z.ZodCustom<(...parameters: any[]) => any, (...parameters: any[]) => any>;
}, z.core.$strip>;
}, z.core.$strict>;
export declare const DEFAULT_OPTIONS: Options;