@okyiww/form 0.0.24 → 0.0.25

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.
@@ -1,6 +1,8 @@
1
1
  import { ParsedSchemas } from '../lifecycle/Schema/types';
2
2
  import { CustomAdapter } from '../../helpers/defineFormSetup/types';
3
- export type LabelMode = "leaf" | "path" | "parent";
4
- export type DisplayLabels = Record<string, string | string[]>;
5
- export declare function buildDisplayLabelConfig(schemas: any[], config?: Record<string, LabelMode>): Record<string, LabelMode>;
6
- export declare function collectDisplayLabels(parsedSchemas: ParsedSchemas, model: Record<string, any>, adapter: CustomAdapter, displayLabelConfig?: Record<string, LabelMode>): DisplayLabels;
3
+ export type DisplayEntry = {
4
+ label: string;
5
+ value: any;
6
+ path?: string[];
7
+ };
8
+ export declare function collectDisplayValues(parsedSchemas: ParsedSchemas, model: Record<string, any>, adapter: CustomAdapter): Record<string, any>;
@@ -10,5 +10,5 @@ export type UseFormOptions = {
10
10
  formSlots?: any;
11
11
  ssr?: SSR;
12
12
  namesToRemember?: Record<string, string>;
13
- includeLabel?: boolean;
13
+ collectDisplayValues?: boolean;
14
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okyiww/form",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "type": "module",