vite-plugin-for-svelte-svg 0.9.0 → 0.9.1
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/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
|
-
import { P as PluginOptions } from './types-
|
|
3
|
-
export { N as NumberWithUnit, b as SvgBase64, a as SvgColor, S as SvgProps } from './types-
|
|
2
|
+
import { P as PluginOptions } from './types-CD6WzcyF.js';
|
|
3
|
+
export { N as NumberWithUnit, b as SvgBase64, a as SvgColor, c as SvgGlobResult, S as SvgProps } from './types-CD6WzcyF.js';
|
|
4
4
|
import 'svelte/elements';
|
|
5
5
|
|
|
6
6
|
declare function svelteSvgPlugin(options?: PluginOptions): Plugin;
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default as Svg } from './Svg.svelte';
|
|
2
|
-
import { c as
|
|
3
|
-
export { N as NumberWithUnit, b as SvgBase64, a as SvgColor, S as SvgProps } from '../types-
|
|
2
|
+
import { c as SvgGlobResult, d as SvgRegistry } from '../types-CD6WzcyF.js';
|
|
3
|
+
export { N as NumberWithUnit, b as SvgBase64, a as SvgColor, e as SvgModule, S as SvgProps } from '../types-CD6WzcyF.js';
|
|
4
4
|
import 'svelte/elements';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -9,6 +9,6 @@ import 'svelte/elements';
|
|
|
9
9
|
* import { initSvg } from 'vite-plugin-for-svelte-svg/runtime'
|
|
10
10
|
* initSvg(import.meta.glob('./your-svg-dir/*.svg'))
|
|
11
11
|
*/
|
|
12
|
-
declare function initSvg(globResult:
|
|
12
|
+
declare function initSvg(globResult: SvgGlobResult): SvgRegistry;
|
|
13
13
|
|
|
14
|
-
export {
|
|
14
|
+
export { SvgRegistry, initSvg };
|
|
@@ -28,6 +28,7 @@ interface SvgProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
|
28
28
|
type SvgModule = () => Promise<{
|
|
29
29
|
default: string;
|
|
30
30
|
}>;
|
|
31
|
+
type SvgGlobResult = Record<string, () => Promise<any>>;
|
|
31
32
|
type SvgRegistry = Record<string, SvgModule>;
|
|
32
33
|
|
|
33
|
-
export type { NumberWithUnit as N, PluginOptions as P, SvgProps as S, SvgColor as a, SvgBase64 as b,
|
|
34
|
+
export type { NumberWithUnit as N, PluginOptions as P, SvgProps as S, SvgColor as a, SvgBase64 as b, SvgGlobResult as c, SvgRegistry as d, SvgModule as e };
|