@open-xchange/vite-plugin-icon-sprite 1.0.1 → 1.1.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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## `1.1.0` – 2025-Jun-26
4
+
5
+ - added: support vor Vite 7
6
+ - chore: drop support vor Vite 5
7
+
8
+ ## `1.0.2` – 2025-Feb-24
9
+
10
+ - chore: remove better-typescript-lib
11
+
3
12
  ## `1.0.1` – 2025-Feb-20
4
13
 
5
14
  - chore: bump dependencies
@@ -37,8 +37,9 @@ export interface PngSpritePluginOptions extends SpritePluginBaseOptions<"png"> {
37
37
  rootLocaleAttr?: string;
38
38
  /**
39
39
  * Specifies how to generate the sprite PNG files.
40
+ *
40
41
  * - `"source"`: The source PNGs will be copied into the generated sprites
41
- * unmodified. They will contain three color channels, and an alpha
42
+ * unmodified. They will contain three color channels and an alpha
42
43
  * channel.
43
44
  * - `"monochrome"`: The generated sprites will be converted to monochrome.
44
45
  * They will contain a gray channel and an alpha channel.
@@ -51,6 +52,7 @@ export interface PngSpritePluginOptions extends SpritePluginBaseOptions<"png"> {
51
52
  spriteColorType?: "source" | "monochrome" | "alpha";
52
53
  /**
53
54
  * Specifies how the sprites are supposed to be used in CSS rules.
55
+ *
54
56
  * - `"background"`: The sprites will be attached via "background-image".
55
57
  * - `"mask"`: The sprites will be attached via "mask-image".
56
58
  *
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "../../../tsconfig.shared.json",
4
+ "compilerOptions": {
5
+ "outDir": "../dist"
6
+ }
7
+ }
package/package.json CHANGED
@@ -1,45 +1,48 @@
1
1
  {
2
2
  "name": "@open-xchange/vite-plugin-icon-sprite",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "Vite plugin that builds icon sprites from SVG or PNG icon files",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "https://gitlab.open-xchange.com/fspd/commons/plugins/-/tree/main/packages/vite-plugin-icon-sprite"
7
+ "url": "https://gitlab.open-xchange.com/fspd/commons/plugins",
8
+ "directory": "packages/vite-plugin-icon-sprite"
8
9
  },
9
10
  "license": "MIT",
10
11
  "engines": {
11
12
  "node": ">=20.18"
12
13
  },
13
- "packageManager": "yarn@4.6.0",
14
+ "packageManager": "yarn@4.9.2",
14
15
  "type": "module",
15
16
  "exports": "./dist/index.js",
17
+ "files": [
18
+ "dist",
19
+ "CHANGELOG.*"
20
+ ],
16
21
  "scripts": {
17
- "prepare": "yarn build",
18
22
  "prepack": "yarn build && yarn lint",
19
23
  "clean": "premove dist",
20
24
  "build": "yarn clean && tsc --project src/tsconfig.json && cpx \"src/*.json\" dist/",
21
25
  "lint": "tsc && tsc --project src/tsconfig.json --noEmit && eslint ."
22
26
  },
23
27
  "dependencies": {
24
- "@open-xchange/vite-helper": "^1.0.1",
28
+ "@open-xchange/vite-helper": "^1.1.0",
25
29
  "jimp": "^1.6.0",
26
30
  "svg-sprite": "^2.0.4"
27
31
  },
28
32
  "devDependencies": {
29
- "@open-xchange/linter-presets": "^1.2.12",
30
- "@types/node": "^22.13.4",
33
+ "@open-xchange/linter-presets": "^1.4.0",
34
+ "@types/node": "^24.0.4",
31
35
  "@types/pngjs": "^6.0.5",
32
36
  "@types/svg-sprite": "^0.0.39",
33
37
  "@types/vinyl": "^2.0.12",
34
- "better-typescript-lib": "^2.10.1",
35
38
  "cpx2": "^8.0.0",
36
- "eslint": "^9.20.1",
39
+ "eslint": "^9.29.0",
37
40
  "jiti": "^2.4.2",
38
41
  "premove": "^4.0.0",
39
- "typescript": "^5.7.3",
40
- "vite": "^6.1.1"
42
+ "typescript": "^5.8.3",
43
+ "vite": "^7.0.0"
41
44
  },
42
45
  "peerDependencies": {
43
- "vite": "^5.3.0 || ^6.0.0"
46
+ "vite": "^6.0.0 || ^7.0.0"
44
47
  }
45
48
  }