powerpagestoolkit 2.6.3201 → 2.6.3213
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/bundle.js
CHANGED
|
@@ -130,7 +130,7 @@ function waitFor(target, root = document, multiple = false, debounceTime) {
|
|
|
130
130
|
} else {
|
|
131
131
|
reject(
|
|
132
132
|
new Error(
|
|
133
|
-
`No elements found with target: "${target}" within ${debounceTime / 1e3} seconds. If the element you are expected has not
|
|
133
|
+
`No elements found with target: "${target}" within ${debounceTime / 1e3} seconds. If the element you are expected has not loaded yet, consider raising your timeout.`
|
|
134
134
|
)
|
|
135
135
|
);
|
|
136
136
|
}
|
|
@@ -154,7 +154,7 @@ function waitFor(target, root = document, multiple = false, debounceTime) {
|
|
|
154
154
|
observer.disconnect();
|
|
155
155
|
reject(
|
|
156
156
|
new Error(
|
|
157
|
-
`Element not found by target: "${target}" within ${debounceTime / 1e3} second. If the element you are expected has not
|
|
157
|
+
`Element not found by target: "${target}" within ${debounceTime / 1e3} second. If the element you are expected has not loaded yet, consider raising your timeout.`
|
|
158
158
|
)
|
|
159
159
|
);
|
|
160
160
|
}, debounceTime);
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import DOMNodeReference from "./DOMNodeReference.js";
|
|
2
2
|
export default function createDOMNodeReference(target: HTMLElement | string, options?: {
|
|
3
|
-
multiple?:
|
|
3
|
+
multiple?: (() => boolean) | false;
|
|
4
|
+
root?: HTMLElement;
|
|
5
|
+
timeout?: number;
|
|
4
6
|
}): Promise<DOMNodeReference>;
|
|
5
7
|
export default function createDOMNodeReference(target: HTMLElement | string, options?: {
|
|
6
|
-
multiple?: true;
|
|
8
|
+
multiple?: (() => true) | true;
|
|
9
|
+
root?: HTMLElement;
|
|
10
|
+
timeout?: number;
|
|
7
11
|
}): Promise<DOMNodeReference[]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "powerpagestoolkit",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.3213",
|
|
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",
|