@micromerce/formbuilder-react 1.0.1022 → 1.0.1024

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.
@@ -6,6 +6,17 @@ interface IUseValueGeneratorProps {
6
6
  interface IUseValueGeneratorWithContextProps extends IUseValueGeneratorProps {
7
7
  formControls: FormControls;
8
8
  }
9
+ /**
10
+ * COP-5113: where a list item sits, as service-entity hands it to a valueGenerator on the server
11
+ * (COP-5083): `index` is the 0-based index of the innermost item, `list` the path of its list with
12
+ * the index of every item around it and without the `.controls` of groups (`positions`,
13
+ * `address.lines`, `positions[2].parts`). Read from the control's objectPathId
14
+ * (`positions.items.[2].parts.items.[0].name`); undefined outside a list item.
15
+ */
16
+ export declare const listItemPosition: (objectPathId?: string | null) => {
17
+ index: number;
18
+ list: string;
19
+ } | undefined;
9
20
  declare const useValueGenerator: ({ query, formControls, objectPathId, }: IUseValueGeneratorWithContextProps) => {
10
21
  value: any;
11
22
  hasQuery: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromerce/formbuilder-react",
3
- "version": "1.0.1022",
3
+ "version": "1.0.1024",
4
4
  "description": "creates a form based on configuration",
5
5
  "main": "dist/formbuilder.js",
6
6
  "types": "dist/index.d.ts",