@socotra/ec-react-utils 2.25.0-next.1 → 2.25.0-next.3
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.ts +4 -1
- package/dist/index.es.js +4581 -4482
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +17 -17
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,8 @@ import { QuoteRequest } from '@socotra/ec-react-schemas';
|
|
|
29
29
|
import { QuoteResponse } from '@socotra/ec-react-schemas';
|
|
30
30
|
import { SegmentResponse } from '@socotra/ec-react-schemas';
|
|
31
31
|
import { TransactionSnapshotResponse } from '@socotra/ec-react-schemas';
|
|
32
|
+
import { Translator } from '@jsonforms/core';
|
|
33
|
+
import { UISchemaElement } from '@jsonforms/core';
|
|
32
34
|
import { z } from 'zod/v4';
|
|
33
35
|
|
|
34
36
|
/**
|
|
@@ -121,6 +123,7 @@ declare interface DataModelToJsonSchemaProps {
|
|
|
121
123
|
truthyLabel?: string;
|
|
122
124
|
falsyLabel?: string;
|
|
123
125
|
hiddenExceptions?: string[];
|
|
126
|
+
readOnly?: boolean;
|
|
124
127
|
}
|
|
125
128
|
|
|
126
129
|
declare const defaultFieldSchema: z.ZodObject<{
|
|
@@ -768,6 +771,6 @@ declare interface TransactionFormData_3 {
|
|
|
768
771
|
timezone: string;
|
|
769
772
|
}
|
|
770
773
|
|
|
771
|
-
export declare function translateError(error: ErrorObject): string;
|
|
774
|
+
export declare function translateError(error: ErrorObject, _translator: Translator, uischema?: UISchemaElement): string;
|
|
772
775
|
|
|
773
776
|
export { }
|