@react-typed-forms/schemas 13.4.0 → 13.5.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/lib/controlDefinition.d.ts +2 -0
- package/lib/controlRender.d.ts +1 -0
- package/lib/defaultSchemaInterface.d.ts +6 -2
- package/lib/index.cjs +1 -1
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/schemaField.d.ts +4 -1
- package/package.json +2 -1
package/lib/schemaField.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SchemaValidator } from "./schemaValidator";
|
|
2
|
-
import { Control } from "@react-typed-forms/core";
|
|
2
|
+
import { Control, ControlSetup } from "@react-typed-forms/core";
|
|
3
|
+
export type EqualityFunc = (a: any, b: any) => boolean;
|
|
3
4
|
/**
|
|
4
5
|
* Represents a schema field with various properties.
|
|
5
6
|
*/
|
|
@@ -194,6 +195,8 @@ export interface SchemaInterface {
|
|
|
194
195
|
* @returns The search text.
|
|
195
196
|
*/
|
|
196
197
|
searchText(field: SchemaField, value: any): string;
|
|
198
|
+
makeEqualityFunc(field: SchemaNode): EqualityFunc;
|
|
199
|
+
makeControlSetup(field: SchemaNode): ControlSetup<any>;
|
|
197
200
|
}
|
|
198
201
|
export interface SchemaTreeLookup<A = string> {
|
|
199
202
|
getSchema(schemaId: A): SchemaNode | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-typed-forms/schemas",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.5.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.cjs",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"react": "^18.2.0",
|
|
44
44
|
"@react-typed-forms/core": "^3.6.1",
|
|
45
45
|
"@react-typed-forms/transform": "^0.2.0",
|
|
46
|
+
"typedoc": "^0.27.2",
|
|
46
47
|
"@types/uuid": "^10.0.0",
|
|
47
48
|
"@types/react": "^18.2.28",
|
|
48
49
|
"markdown-magic": "^2.6.1",
|