vite-plugin-material-symbols 0.5.0 → 0.6.0
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/CHANGELOG.md +4 -0
- package/README.md +1 -1
- package/dist/index.d.ts +23 -20
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -2,26 +2,29 @@ import { Plugin } from "vite";
|
|
|
2
2
|
|
|
3
3
|
//#region src/index.d.ts
|
|
4
4
|
type PluginOptions = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Material Symbols CSS Provider. Default: outlined, no infill, 24px, weight 400
|
|
7
|
+
* @see https://fonts.google.com/icons?icon.set=Material+Symbols
|
|
8
|
+
* @default () => `https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined...&${iconNamesParam}`
|
|
9
|
+
* */
|
|
10
|
+
getUrl: (iconNamesParam: string) => string;
|
|
11
|
+
/**
|
|
12
|
+
* The name of JSX component to obtain the icon names from
|
|
13
|
+
* @default Icon
|
|
14
|
+
* */
|
|
15
|
+
component: string;
|
|
16
|
+
/**
|
|
17
|
+
* Enables higher priority for loading symbols
|
|
18
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/preload
|
|
19
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/preconnect
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
preload: boolean;
|
|
23
23
|
};
|
|
24
|
-
declare const plugin: ({
|
|
25
|
-
|
|
24
|
+
declare const plugin: ({
|
|
25
|
+
component,
|
|
26
|
+
getUrl,
|
|
27
|
+
preload
|
|
28
|
+
}?: Partial<PluginOptions>) => Plugin;
|
|
26
29
|
//#endregion
|
|
27
30
|
export { plugin as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-material-symbols",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Selective loading of Material Symbols for production",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -33,26 +33,26 @@
|
|
|
33
33
|
"node": "^20 || ^22 || ^24"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"vite": "^6.0.0"
|
|
36
|
+
"vite": "^6.0.0 || ^7.0.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"esquery": "^1.6.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@arethetypeswrong/cli": "^0.18.
|
|
43
|
-
"@biomejs/biome": "
|
|
44
|
-
"@tsconfig/bun": "^1.0.
|
|
45
|
-
"@types/bun": "^1.
|
|
42
|
+
"@arethetypeswrong/cli": "^0.18.2",
|
|
43
|
+
"@biomejs/biome": "2.0.5",
|
|
44
|
+
"@tsconfig/bun": "^1.0.8",
|
|
45
|
+
"@types/bun": "^1.2.17",
|
|
46
46
|
"@types/esquery": "^1.5.4",
|
|
47
|
-
"@types/react": "^19.
|
|
48
|
-
"@types/react-dom": "^19.
|
|
49
|
-
"@types/semver": "^7.
|
|
50
|
-
"@vitejs/plugin-react-swc": "^3.
|
|
51
|
-
"react": "^19.
|
|
52
|
-
"react-dom": "^19.
|
|
53
|
-
"semver": "^7.
|
|
54
|
-
"tsdown": "^0.
|
|
55
|
-
"typescript": "^5.
|
|
47
|
+
"@types/react": "^19.1.8",
|
|
48
|
+
"@types/react-dom": "^19.1.6",
|
|
49
|
+
"@types/semver": "^7.7.0",
|
|
50
|
+
"@vitejs/plugin-react-swc": "^3.10.2",
|
|
51
|
+
"react": "^19.1.0",
|
|
52
|
+
"react-dom": "^19.1.0",
|
|
53
|
+
"semver": "^7.7.2",
|
|
54
|
+
"tsdown": "^0.12.8",
|
|
55
|
+
"typescript": "^5.8.3"
|
|
56
56
|
},
|
|
57
57
|
"keywords": [
|
|
58
58
|
"css",
|