@open-xchange/vite-plugin-icon-sprite 0.0.6 → 1.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## `1.0.1` – 2025-Feb-20
4
+
5
+ - chore: bump dependencies
6
+
7
+ ## `1.0.0` – 2025-Jan-03
8
+
9
+ - chore: release v1 (no code changes)
10
+
3
11
  ## `0.0.6` – 2024-Nov-29
4
12
 
5
13
  - chore: add vite v6 to peerDeps
@@ -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. Default value is 0.
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. Default value is "i.png-icon".
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. Default value is
30
- * "lang".
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
- * Default value is "source".
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. Default value is "background".
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.6",
3
+ "version": "1.0.1",
4
4
  "description": "Vite plugin that builds icon sprites from SVG or PNG icon files",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,31 +10,34 @@
10
10
  "engines": {
11
11
  "node": ">=20.18"
12
12
  },
13
- "packageManager": "yarn@4.5.3",
13
+ "packageManager": "yarn@4.6.0",
14
14
  "type": "module",
15
15
  "exports": "./dist/index.js",
16
16
  "scripts": {
17
17
  "prepare": "yarn build",
18
18
  "prepack": "yarn build && yarn lint",
19
- "build": "rimraf dist && tsc && cpy --flat src/*.json dist/",
20
- "lint": "eslint ."
19
+ "clean": "premove dist",
20
+ "build": "yarn clean && tsc --project src/tsconfig.json && cpx \"src/*.json\" dist/",
21
+ "lint": "tsc && tsc --project src/tsconfig.json --noEmit && eslint ."
21
22
  },
22
23
  "dependencies": {
23
- "@open-xchange/vite-helper": "0.1.5",
24
+ "@open-xchange/vite-helper": "^1.0.1",
24
25
  "jimp": "^1.6.0",
25
26
  "svg-sprite": "^2.0.4"
26
27
  },
27
28
  "devDependencies": {
28
- "@open-xchange/linter-presets": "0.11.4",
29
- "@types/node": "^22.10.1",
29
+ "@open-xchange/linter-presets": "^1.2.12",
30
+ "@types/node": "^22.13.4",
30
31
  "@types/pngjs": "^6.0.5",
31
32
  "@types/svg-sprite": "^0.0.39",
32
33
  "@types/vinyl": "^2.0.12",
33
- "cpy-cli": "^5.0.0",
34
- "eslint": "^9.15.0",
35
- "rimraf": "^6.0.1",
36
- "typescript": "^5.7.2",
37
- "vite": "^6.0.1"
34
+ "better-typescript-lib": "^2.10.1",
35
+ "cpx2": "^8.0.0",
36
+ "eslint": "^9.20.1",
37
+ "jiti": "^2.4.2",
38
+ "premove": "^4.0.0",
39
+ "typescript": "^5.7.3",
40
+ "vite": "^6.1.1"
38
41
  },
39
42
  "peerDependencies": {
40
43
  "vite": "^5.3.0 || ^6.0.0"