@knapsack/renderer-react-components 4.87.0--canary.6838.1d6132d.0 → 4.87.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,3 +1,28 @@
1
+ # v4.87.0 (Thu Oct 30 2025)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - Prop types support with infer spec [#6838](https://github.com/knapsack-labs/app-monorepo/pull/6838) ([@rizchelwood](https://github.com/rizchelwood))
6
+
7
+ #### Authors: 1
8
+
9
+ - Rizchel Wood ([@rizchelwood](https://github.com/rizchelwood))
10
+
11
+ ---
12
+
13
+ # v4.86.8 (Wed Oct 29 2025)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - improve infer spec testing [#6853](https://github.com/knapsack-labs/app-monorepo/pull/6853) ([@mabry1985](https://github.com/mabry1985))
18
+ - improve infer spec testing ([@mabry1985](https://github.com/mabry1985))
19
+
20
+ #### Authors: 1
21
+
22
+ - Josh Mabry ([@mabry1985](https://github.com/mabry1985))
23
+
24
+ ---
25
+
1
26
  # v4.86.7 (Mon Oct 27 2025)
2
27
 
3
28
  #### 🐛 Bug Fix
@@ -0,0 +1,19 @@
1
+ export interface ForwardRefComponentProps {
2
+ /**
3
+ * Label text
4
+ */
5
+ label: string;
6
+ /**
7
+ * Button size
8
+ */
9
+ size: 'small' | 'medium' | 'large';
10
+ /**
11
+ * Disabled state
12
+ */
13
+ disabled?: boolean;
14
+ }
15
+ /**
16
+ * Component to test forwardRef inference
17
+ */
18
+ export declare const ForwardRefComponent: import("react").ForwardRefExoticComponent<ForwardRefComponentProps & import("react").RefAttributes<HTMLButtonElement>>;
19
+ //# sourceMappingURL=forward-ref-component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forward-ref-component.d.ts","sourceRoot":"","sources":["../../src/test-fixtures/forward-ref-component.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACnC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,wHAS9B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from 'react';
3
+ /**
4
+ * Component to test forwardRef inference
5
+ */
6
+ export const ForwardRefComponent = forwardRef(({ label, size, disabled = false }, ref) => {
7
+ return (_jsx("button", { ref: ref, disabled: disabled, className: `btn-${size}`, children: label }));
8
+ });
9
+ ForwardRefComponent.displayName = 'ForwardRefComponent';
10
+ //# sourceMappingURL=forward-ref-component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forward-ref-component.js","sourceRoot":"","sources":["../../src/test-fixtures/forward-ref-component.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAiBnC;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAG3C,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAC3C,OAAO,CACL,iBAAQ,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,IAAI,EAAE,YAC3D,KAAK,GACC,CACV,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,mBAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC"}
@@ -4,4 +4,7 @@ export * from './card-prop-types.js';
4
4
  export * from './complex-props.js';
5
5
  export * from './generic-component-type.js';
6
6
  export * from './render-node-props.js';
7
+ export * from './numeric-enum-negative.js';
8
+ export * from './forward-ref-component.js';
9
+ export * from './nullable-unions.js';
7
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test-fixtures/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test-fixtures/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC"}
@@ -4,4 +4,7 @@ export * from './card-prop-types.js';
4
4
  export * from './complex-props.js';
5
5
  export * from './generic-component-type.js';
6
6
  export * from './render-node-props.js';
7
+ export * from './numeric-enum-negative.js';
8
+ export * from './forward-ref-component.js';
9
+ export * from './nullable-unions.js';
7
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test-fixtures/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test-fixtures/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ export interface NullableUnionsProps {
3
+ /**
4
+ * Optional string that can be undefined
5
+ */
6
+ label?: string;
7
+ /**
8
+ * Value that can be null
9
+ */
10
+ value: number | null;
11
+ /**
12
+ * Optional value that can be null or undefined
13
+ */
14
+ description?: string | null;
15
+ }
16
+ /**
17
+ * Component to test nullable union type inference
18
+ */
19
+ export declare const NullableUnions: React.FC<NullableUnionsProps>;
20
+ //# sourceMappingURL=nullable-unions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nullable-unions.d.ts","sourceRoot":"","sources":["../../src/test-fixtures/nullable-unions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAYxD,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Component to test nullable union type inference
4
+ */
5
+ export const NullableUnions = ({ label, value, description, }) => {
6
+ return (_jsxs("div", { children: [label && _jsx("h3", { children: label }), _jsxs("p", { children: ["Value: ", value !== null && value !== void 0 ? value : 'N/A'] }), description && _jsx("p", { children: description })] }));
7
+ };
8
+ //# sourceMappingURL=nullable-unions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nullable-unions.js","sourceRoot":"","sources":["../../src/test-fixtures/nullable-unions.tsx"],"names":[],"mappings":";AAiBA;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAkC,CAAC,EAC5D,KAAK,EACL,KAAK,EACL,WAAW,GACZ,EAAE,EAAE;IACH,OAAO,CACL,0BACG,KAAK,IAAI,uBAAK,KAAK,GAAM,EAC1B,mCAAW,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,KAAK,IAAK,EAC7B,WAAW,IAAI,sBAAI,WAAW,GAAK,IAChC,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ type Offset = -10 | -5 | 0 | 5 | 10;
3
+ export interface NumericEnumNegativeProps {
4
+ /**
5
+ * Offset value in pixels
6
+ */
7
+ offset: Offset;
8
+ label: string;
9
+ }
10
+ /**
11
+ * Component to test negative numeric enum inference
12
+ */
13
+ export declare const NumericEnumNegative: React.FC<NumericEnumNegativeProps>;
14
+ export {};
15
+ //# sourceMappingURL=numeric-enum-negative.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numeric-enum-negative.d.ts","sourceRoot":"","sources":["../../src/test-fixtures/numeric-enum-negative.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK,MAAM,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;AAEpC,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAKlE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Component to test negative numeric enum inference
4
+ */
5
+ export const NumericEnumNegative = ({ offset, label, }) => {
6
+ return _jsx("div", { style: { transform: `translateX(${offset}px)` }, children: label });
7
+ };
8
+ //# sourceMappingURL=numeric-enum-negative.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numeric-enum-negative.js","sourceRoot":"","sources":["../../src/test-fixtures/numeric-enum-negative.tsx"],"names":[],"mappings":";AAYA;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAuC,CAAC,EACtE,MAAM,EACN,KAAK,GACN,EAAE,EAAE;IACH,OAAO,cAAK,KAAK,EAAE,EAAE,SAAS,EAAE,cAAc,MAAM,KAAK,EAAE,YAAG,KAAK,GAAO,CAAC;AAC7E,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knapsack/renderer-react-components",
3
3
  "description": "",
4
- "version": "4.87.0--canary.6838.1d6132d.0",
4
+ "version": "4.87.0",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  "./demo-wrapper": {
@@ -35,10 +35,10 @@
35
35
  "lint": "eslint ./"
36
36
  },
37
37
  "devDependencies": {
38
- "@knapsack/eslint-config-starter": "4.87.0--canary.6838.1d6132d.0",
39
- "@knapsack/prettier-config": "4.87.0--canary.6838.1d6132d.0",
40
- "@knapsack/types": "4.87.0--canary.6838.1d6132d.0",
41
- "@knapsack/typescript-config-starter": "4.87.0--canary.6838.1d6132d.0",
38
+ "@knapsack/eslint-config-starter": "4.87.0",
39
+ "@knapsack/prettier-config": "4.87.0",
40
+ "@knapsack/types": "4.87.0",
41
+ "@knapsack/typescript-config-starter": "4.87.0",
42
42
  "@types/node": "^20.19.22",
43
43
  "@types/prop-types": "^15.7.15",
44
44
  "@types/react": "^18.3.26",
@@ -56,5 +56,5 @@
56
56
  "directory": "apps/client/libs/renderer-react-components",
57
57
  "type": "git"
58
58
  },
59
- "gitHead": "1d6132dfb8796e369fee2bd9802cdb118b80ac7b"
59
+ "gitHead": "76b286b5e271627e346529bf79a2fdeca12cd74b"
60
60
  }