@open-xchange/vite-plugin-icon-sprite 0.0.5 → 1.0.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 +8 -0
- package/dist/plugin-png.d.ts +13 -6
- package/package.json +10 -13
package/CHANGELOG.md
CHANGED
package/dist/plugin-png.d.ts
CHANGED
|
@@ -16,18 +16,23 @@ export interface PngSpritePluginOptions extends SpritePluginBaseOptions<"png"> {
|
|
|
16
16
|
cssIconSize: number;
|
|
17
17
|
/**
|
|
18
18
|
* Additional padding around all icons to be generated in the sprites, in
|
|
19
|
-
* CSS pixels.
|
|
19
|
+
* CSS pixels.
|
|
20
|
+
*
|
|
21
|
+
* @default 0
|
|
20
22
|
*/
|
|
21
23
|
cssIconPadding?: number;
|
|
22
24
|
/**
|
|
23
25
|
* The CSS selector for a PNG icon element to be used in all generated CSS
|
|
24
|
-
* rules.
|
|
26
|
+
* rules.
|
|
27
|
+
*
|
|
28
|
+
* @default "i.png-icon"
|
|
25
29
|
*/
|
|
26
30
|
cssIconSelector?: string;
|
|
27
31
|
/**
|
|
28
32
|
* Name of the root element's attribute containing the locale identifier.
|
|
29
|
-
* Needed to generate CSS selectors for localized icons.
|
|
30
|
-
*
|
|
33
|
+
* Needed to generate CSS selectors for localized icons.
|
|
34
|
+
*
|
|
35
|
+
* @default "lang"
|
|
31
36
|
*/
|
|
32
37
|
rootLocaleAttr?: string;
|
|
33
38
|
/**
|
|
@@ -41,7 +46,7 @@ export interface PngSpritePluginOptions extends SpritePluginBaseOptions<"png"> {
|
|
|
41
46
|
* into the generated sprites. They will contain a single gray channel
|
|
42
47
|
* representing the original alpha channels.
|
|
43
48
|
*
|
|
44
|
-
*
|
|
49
|
+
* @default "source"
|
|
45
50
|
*/
|
|
46
51
|
spriteColorType?: "source" | "monochrome" | "alpha";
|
|
47
52
|
/**
|
|
@@ -50,7 +55,9 @@ export interface PngSpritePluginOptions extends SpritePluginBaseOptions<"png"> {
|
|
|
50
55
|
* - `"mask"`: The sprites will be attached via "mask-image".
|
|
51
56
|
*
|
|
52
57
|
* All related CSS properties (e.g. "(background|mask)-position" etc.) will
|
|
53
|
-
* be generated accordingly.
|
|
58
|
+
* be generated accordingly.
|
|
59
|
+
*
|
|
60
|
+
* @default "background"
|
|
54
61
|
*/
|
|
55
62
|
spriteFillType?: "background" | "mask";
|
|
56
63
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-xchange/vite-plugin-icon-sprite",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Vite plugin that builds icon sprites from SVG or PNG icon files",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
},
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"engines": {
|
|
11
|
-
"node": "
|
|
11
|
+
"node": ">=20.18"
|
|
12
12
|
},
|
|
13
|
-
"packageManager": "yarn@4.
|
|
13
|
+
"packageManager": "yarn@4.6.0",
|
|
14
14
|
"type": "module",
|
|
15
15
|
"exports": "./dist/index.js",
|
|
16
16
|
"scripts": {
|
|
@@ -20,26 +20,23 @@
|
|
|
20
20
|
"lint": "eslint ."
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@open-xchange/vite-helper": "0.
|
|
23
|
+
"@open-xchange/vite-helper": "1.0.0",
|
|
24
24
|
"jimp": "^1.6.0",
|
|
25
25
|
"svg-sprite": "^2.0.4"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@open-xchange/linter-presets": "0.
|
|
29
|
-
"@types/node": "^22.
|
|
28
|
+
"@open-xchange/linter-presets": "1.0.0",
|
|
29
|
+
"@types/node": "^22.10.4",
|
|
30
30
|
"@types/pngjs": "^6.0.5",
|
|
31
31
|
"@types/svg-sprite": "^0.0.39",
|
|
32
32
|
"@types/vinyl": "^2.0.12",
|
|
33
33
|
"cpy-cli": "^5.0.0",
|
|
34
|
-
"eslint": "^9.
|
|
34
|
+
"eslint": "^9.17.0",
|
|
35
35
|
"rimraf": "^6.0.1",
|
|
36
|
-
"typescript": "^5.
|
|
37
|
-
"vite": "^
|
|
36
|
+
"typescript": "^5.7.2",
|
|
37
|
+
"vite": "^6.0.7"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"vite": "^5.3"
|
|
41
|
-
},
|
|
42
|
-
"resolutions": {
|
|
43
|
-
"semver": "^7.6.2"
|
|
40
|
+
"vite": "^5.3.0 || ^6.0.0"
|
|
44
41
|
}
|
|
45
42
|
}
|