@nimbus-ds/typings 1.3.0 → 1.3.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
@@ -2,6 +2,13 @@
2
2
 
3
3
  This package is intended for internal use in creating components with polymorphic typing.
4
4
 
5
+ ## 2026-01-13 `1.3.1`
6
+
7
+ #### 🐛 Bug fixes
8
+
9
+ - Fixed `useRefObjectAsForwardedRef` hook to allow null values in the ref object. ([#404](https://github.com/TiendaNube/nimbus-design-system/pull/404) by [@joacotornello](https://github.com/joacotornello))
10
+ - Adds support for React 19. ([#404](https://github.com/TiendaNube/nimbus-design-system/pull/404) by [@joacotornello](https://github.com/joacotornello))
11
+
5
12
  ## 2025-07-29 `1.3.0`
6
13
 
7
14
  #### 🎉 New features
package/dist/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  This package is intended for internal use in creating components with polymorphic typing.
4
4
 
5
+ ## 2026-01-13 `1.3.1`
6
+
7
+ #### 🐛 Bug fixes
8
+
9
+ - Fixed `useRefObjectAsForwardedRef` hook to allow null values in the ref object. ([#404](https://github.com/TiendaNube/nimbus-design-system/pull/404) by [@joacotornello](https://github.com/joacotornello))
10
+ - Adds support for React 19. ([#404](https://github.com/TiendaNube/nimbus-design-system/pull/404) by [@joacotornello](https://github.com/joacotornello))
11
+
5
12
  ## 2025-07-29 `1.3.0`
6
13
 
7
14
  #### 🎉 New features
package/dist/index.d.ts CHANGED
@@ -40,10 +40,10 @@ export interface PolymorphicForwardRefComponent<IntrinsicElementString, OwnProps
40
40
  * so that events are typed when using JSX.IntrinsicElements.
41
41
  */
42
42
  <As = IntrinsicElementString>(props: As extends "" ? {
43
- as: keyof JSX.IntrinsicElements;
43
+ as: keyof React.JSX.IntrinsicElements;
44
44
  } : As extends React.ComponentType<infer P> ? Merge<P, OwnProps & {
45
45
  as: As;
46
- }> : As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & {
46
+ }> : As extends keyof React.JSX.IntrinsicElements ? Merge<React.JSX.IntrinsicElements[As], OwnProps & {
47
47
  as: As;
48
48
  }> : never): React.ReactElement | null;
49
49
  }
@@ -54,6 +54,6 @@ export interface PolymorphicForwardRefComponent<IntrinsicElementString, OwnProps
54
54
  *
55
55
  * **NOTE**: The `refObject` should be passed to the underlying element, NOT the `forwardedRef`.
56
56
  */
57
- export declare function useRefObjectAsForwardedRef<T>(forwardedRef: ForwardedRef<T>, refObject: RefObject<T>): void;
57
+ export declare function useRefObjectAsForwardedRef<T>(forwardedRef: ForwardedRef<T | null>, refObject: RefObject<T | null>): void;
58
58
 
59
59
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimbus-ds/typings",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -22,6 +22,6 @@
22
22
  "url": "https://github.com/TiendaNube/nimbus-design-system/issues"
23
23
  },
24
24
  "devDependencies": {
25
- "@nimbus-ds/webpack": "^1.5.1"
25
+ "@nimbus-ds/webpack": "^1.7.1"
26
26
  }
27
27
  }