@tinloof/typed-svg-sprite 0.1.0 → 0.1.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,11 @@
1
1
  # @tinloof/typed-svg-sprite
2
2
 
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 3120201: Generate the `Icon` component from `React.ComponentPropsWithRef<"svg">` instead of `React.SVGProps<SVGSVGElement>`. The old base typed `ref` as `LegacyRef` (allowing string refs), which React 19's intrinsic elements reject — causing a type error in the generated `Icon.tsx`. The new base uses the React-19-correct `Ref` typing.
8
+
3
9
  ## 0.1.0
4
10
 
5
11
  ### Minor Changes
@@ -54,7 +54,7 @@ function generateReactIconComponent(options) {
54
54
 
55
55
  import type { IconHref } from "${normalizedImportPath}";
56
56
 
57
- export interface IconProps extends React.SVGProps<SVGSVGElement> {
57
+ export interface IconProps extends React.ComponentPropsWithRef<"svg"> {
58
58
  /** The icon href (import from generated/icons.ts) */
59
59
  href: IconHref;
60
60
  /** Size shorthand for width and height */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinloof/typed-svg-sprite",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Generate optimized SVG sprites with full TypeScript support",
5
5
  "bin": {
6
6
  "typed-svg-sprite": "./dist/cli.js"