powerpagestoolkit 2.7.121 → 2.7.1211

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,10 +1,13 @@
1
1
  import DOMNodeReference from "./DOMNodeReference.js";
2
2
  import DOMNodeReferenceArray from "./DOMNodeReferenceArray.js";
3
+ declare type BoundForm = DOMNodeReferenceArray & Record<string, DOMNodeReference>;
3
4
  /**
4
5
  * Get all controls related to the form for manipulating with the
5
6
  * DOMNodeReference class. Rather than having to instantiate each fields that you need manually,
6
7
  * you can call this method once with the form ID and gain access to all fields
7
8
  * @param formId The string GUID of the form you want to bind to
8
- * @returns An array of DOMNodeReferences
9
+ * @returns An array of DOMNodeReferences, accessible as properties of a Record<string, DOMNodeReference> i.e. formProp = form["some_logicalName"]
10
+ * @see {@link BoundForm}
9
11
  */
10
- export default function bindForm<T extends string>(formId: string): Promise<DOMNodeReferenceArray & Record<T, DOMNodeReference>>;
12
+ export default function bindForm(formId: string): Promise<BoundForm>;
13
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powerpagestoolkit",
3
- "version": "2.7.121",
3
+ "version": "2.7.1211",
4
4
  "description": "Reference, manipulate, and engage with Power Pages sites through the nodes in the DOM; use a variety of custom methods that allow customizing your power pages site quicker and easier. ",
5
5
  "main": "./dist/bundle.js",
6
6
  "types": "./dist/index.d.ts",