extended-dynamic-forms 0.3.11 → 0.3.13
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.es.js +15802 -15850
- package/dist/index.umd.js +1563 -1563
- package/dist/widgets/choice/ChoiceWidget.types.d.ts +10 -2
- package/dist/widgets/choice/hooks/useFormDataSource.d.ts +4 -0
- package/package.json +1 -1
|
@@ -273,8 +273,16 @@ export interface FormDataSortConfig {
|
|
|
273
273
|
export interface FormDataDataSourceConfig {
|
|
274
274
|
/** Type identifier for formData data source */
|
|
275
275
|
type: 'formData';
|
|
276
|
-
/**
|
|
277
|
-
|
|
276
|
+
/**
|
|
277
|
+
* UUID of the field within flatFormData to use as the option source.
|
|
278
|
+
* When omitted, `path` can be used to resolve a collection from binding data.
|
|
279
|
+
*/
|
|
280
|
+
fieldId?: string;
|
|
281
|
+
/**
|
|
282
|
+
* Path (dot/bracket syntax) to the array within binding data.
|
|
283
|
+
* When `fieldId` is provided, the path is evaluated relative to that field's value.
|
|
284
|
+
*/
|
|
285
|
+
path?: string;
|
|
278
286
|
/** Mapper configuration reused from API data sources */
|
|
279
287
|
mapper?: ResponseMapperConfig;
|
|
280
288
|
/** Optional filter configuration */
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ChoiceOption, ErrorState, FormDataDataSourceConfig, LoadingState } from '../ChoiceWidget.types';
|
|
2
2
|
import { DataSourceMetrics } from '../providers/DataSourceProvider';
|
|
3
3
|
|
|
4
|
+
export declare const computeFormDataOptions: (config: FormDataDataSourceConfig, bindingData: unknown) => {
|
|
5
|
+
options: ChoiceOption[];
|
|
6
|
+
error: ErrorState;
|
|
7
|
+
};
|
|
4
8
|
export declare const useFormDataSource: (config: FormDataDataSourceConfig | undefined, bindingData: unknown) => {
|
|
5
9
|
options: ChoiceOption[];
|
|
6
10
|
loading: LoadingState;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "extended-dynamic-forms",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.13",
|
|
4
4
|
"description": "Extended React JSON Schema Form (RJSF) v6 with custom components, widgets, templates, layouts, and form events",
|
|
5
5
|
"main": "dist/index.umd.js",
|
|
6
6
|
"module": "dist/index.es.js",
|