@dmitryvim/form-builder 0.5.1 → 0.5.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.
@@ -7,6 +7,7 @@ export declare function setValidateElement(fn: (element: Element, ctx: {
7
7
  }, customScopeRoot?: HTMLElement | null) => {
8
8
  value: any;
9
9
  spread: boolean;
10
+ skip?: boolean;
10
11
  }): void;
11
12
  /**
12
13
  * Validate container field and return extracted value with errors
@@ -12,6 +12,8 @@ export interface PickedResource {
12
12
  }
13
13
  export interface Translations {
14
14
  removeElement: string;
15
+ removeRow?: string;
16
+ removeRowFrom?: string;
15
17
  clickDragText: string;
16
18
  clickDragTextMultiple: string;
17
19
  noFileSelected: string;
@@ -25,6 +25,14 @@ export declare function escapeHtml(text: string): string;
25
25
  */
26
26
  export declare function getElementLookupKey(element: Element, state: State): string;
27
27
  export declare function pathJoin(base: string, key: string): string;
28
+ /**
29
+ * Rows of a `multiple` container are marked with their full dotted path
30
+ * (`messages[0]`, `messages[0].content[0]`). A plain prefix test would also
31
+ * accept rows of containers nested inside them, and similarly-named siblings
32
+ * (`messages_draft[0]`), so a direct row is one whose remainder after the
33
+ * container's own path is exactly `[N]`.
34
+ */
35
+ export declare function findDirectContainerRows(scopeRoot: HTMLElement, containerPath: string): HTMLElement[];
28
36
  export declare function pretty(obj: any): string;
29
37
  export declare function clear(node: HTMLElement): void;
30
38
  /**
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.5.1",
6
+ "version": "0.5.3",
7
7
  "description": "A reusable JSON schema form builder library",
8
8
  "main": "./dist/cjs/index.cjs",
9
9
  "module": "./dist/esm/index.js",