svgfusion 1.39.0 → 1.40.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.
Files changed (2) hide show
  1. package/README.md +14 -3
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  # SVGFusion
5
5
 
6
- **Convert SVG files into React and Vue 3 components**
6
+ **Convert SVG files into React, Vue 3, and React Native components**
7
7
 
8
8
  [![npm version](https://img.shields.io/npm/v/svgfusion)](https://www.npmjs.com/package/svgfusion)
9
9
  [![TypeScript](https://img.shields.io/badge/TypeScript-007ACC?style=flat&logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
@@ -21,7 +21,7 @@ This package includes everything you need for SVG to component conversion:
21
21
  - **CLI Tool** - Convert SVG files from command line
22
22
  - **Node.js API** - Programmatic conversion in Node.js
23
23
  - **Module API** - Browser-compatible module for web apps
24
- - **React & Vue Support** - Generate components for both frameworks
24
+ - **React, Vue, and React Native Support** - Generate components for all three frameworks
25
25
  - **TypeScript Ready** - Full TypeScript support with proper types
26
26
 
27
27
  ## Installation
@@ -46,12 +46,17 @@ pnpm build
46
46
  # Use the CLI
47
47
  pnpm svgfusion icon.svg --framework react --output ./components
48
48
  pnpm svgfusion ./icons --framework vue --typescript --output ./components
49
+ pnpm svgfusion ./icons --framework react-native --typescript --output ./components
49
50
  ```
50
51
 
51
52
  ### Module Usage (Browser/Web Apps)
52
53
 
53
54
  ```javascript
54
- import { convertToReact, convertToVue } from 'svgfusion/browser';
55
+ import {
56
+ convertToReact,
57
+ convertToVue,
58
+ convertToReactNative,
59
+ } from 'svgfusion/browser';
55
60
 
56
61
  const svgCode = `<svg viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>`;
57
62
 
@@ -68,6 +73,12 @@ const vueResult = await convertToVue(svgCode, {
68
73
  typescript: true,
69
74
  splitColors: true,
70
75
  });
76
+
77
+ // React Native component (requires react-native-svg in the consuming app)
78
+ const rnResult = await convertToReactNative(svgCode, {
79
+ componentName: 'StarIcon',
80
+ typescript: true,
81
+ });
71
82
  ```
72
83
 
73
84
  ### Node.js API
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svgfusion",
3
- "version": "1.39.0",
3
+ "version": "1.40.0",
4
4
  "description": "Convert SVG files into blazing-fast React and Vue 3 components with automatic color extraction, full TypeScript support, and seamless integration into any modern workflow.",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -61,13 +61,13 @@
61
61
  "figlet": "^1.7.0",
62
62
  "jsdom": "^26.1.0",
63
63
  "zod": "^4.0.5",
64
- "svgfusion-cmd": "1.8.0",
65
- "svgfusion-core": "1.8.0",
66
- "svgfusion-dom": "1.8.0",
67
- "svgfusion-react": "1.7.0",
68
- "svgfusion-react-native": "1.0.0",
69
- "svgfusion-utils": "1.6.0",
70
- "svgfusion-vue": "1.7.0"
64
+ "svgfusion-cmd": "1.9.0",
65
+ "svgfusion-core": "1.9.0",
66
+ "svgfusion-dom": "1.9.0",
67
+ "svgfusion-utils": "1.7.0",
68
+ "svgfusion-react-native": "1.1.0",
69
+ "svgfusion-react": "1.8.0",
70
+ "svgfusion-vue": "1.8.0"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@commitlint/cli": "^17.8.1",