@form-engine-ts/react 3.1.0 → 3.2.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/dist/index.d.cts CHANGED
@@ -181,9 +181,9 @@ interface BuilderTextInputProps extends InputComponentProps {
181
181
  interface BuilderTextAreaProps extends InputComponentProps {
182
182
  readonly rows?: number;
183
183
  }
184
- interface BuilderSelectOption {
184
+ interface BuilderSelectOption<T extends string = string> {
185
185
  readonly label: string;
186
- readonly value: string;
186
+ readonly value: T;
187
187
  readonly icon?: ReactNode;
188
188
  readonly description?: string;
189
189
  readonly disabled?: boolean;
package/dist/index.d.ts CHANGED
@@ -181,9 +181,9 @@ interface BuilderTextInputProps extends InputComponentProps {
181
181
  interface BuilderTextAreaProps extends InputComponentProps {
182
182
  readonly rows?: number;
183
183
  }
184
- interface BuilderSelectOption {
184
+ interface BuilderSelectOption<T extends string = string> {
185
185
  readonly label: string;
186
- readonly value: string;
186
+ readonly value: T;
187
187
  readonly icon?: ReactNode;
188
188
  readonly description?: string;
189
189
  readonly disabled?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@form-engine-ts/react",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -42,8 +42,8 @@
42
42
  "typescript"
43
43
  ],
44
44
  "dependencies": {
45
- "@form-engine-ts/core": "3.1.0",
46
- "@form-engine-ts/privacy": "3.1.0"
45
+ "@form-engine-ts/core": "3.2.0",
46
+ "@form-engine-ts/privacy": "3.2.0"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "react": ">=18.2 <20",