@dynamicforms/vue-forms 3.0.0-alpha.3 → 3.0.0-alpha.4

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 CHANGED
@@ -551,6 +551,14 @@ export declare interface DevtoolsOptions {
551
551
  /** Which elements the devtools list: every root element except the hidden ones, or only the described ones. */
552
552
  export declare type DevtoolsRegistration = 'opt-out' | 'opt-in';
553
553
 
554
+ /**
555
+ * Returns the element at `path` below `root`, or `undefined` if the path does not exist. A string path is split on
556
+ * `.`; `''` and `[]` return `root`. A step below a `Group` is a member name, below a `List` a non-negative integer
557
+ * (a number, or digits without leading zeros). A path that continues below an element that is neither a `Group` nor
558
+ * a `List` does not exist.
559
+ */
560
+ export declare function elementAt(root: FieldBase, path: string | readonly (string | number)[]): FieldBase | undefined;
561
+
554
562
  /**
555
563
  * The mutable state of one element, held in a separate object, not in the element's own properties.
556
564
  *
@@ -1482,6 +1490,7 @@ declare namespace Form {
1482
1490
  visibilityValues,
1483
1491
  defaultVisibility,
1484
1492
  isVisibility,
1493
+ elementAt,
1485
1494
  configureDevtools,
1486
1495
  describeState,
1487
1496
  DevtoolsOptions,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dynamicforms/vue-forms",
3
3
  "private": false,
4
- "version": "3.0.0-alpha.3",
4
+ "version": "3.0.0-alpha.4",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "description": "Reactive forms and application state for Vue.js: validation, rules between fields, transactions and lists. UI-agnostic and TypeScript-first.",