powerpagestoolkit 2.7.121-2.2 → 2.7.131
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 +6 -1
- package/dist/index.iife.js +1368 -0
- package/dist/types/core/createDOMNodeReferences.d.ts +1 -1
- package/package.json +5 -2
|
@@ -7,7 +7,7 @@ import DOMNodeReferenceArray from "./DOMNodeReferenceArray.js";
|
|
|
7
7
|
* @param options Options for advanced retrieval of elements
|
|
8
8
|
* @param options.multiple - Should this call return an array of instantiated references, or just a single? Defaults to false, returning a single instance
|
|
9
9
|
* @param options.root - Optionally specify the element within to search for the element targeted by 'target'. Defaults to 'document.body'
|
|
10
|
-
* @param options.timeoutMs - Optionally specify the amount of time that should be waited to find the targeted element before throwing error - useful for async DOM loading. Relies on MutationObserver. WARNING
|
|
10
|
+
* @param options.timeoutMs - Optionally specify the amount of time that should be waited to find the targeted element before throwing error - useful for async DOM loading. Relies on MutationObserver. ***WARNING***: Implementing multiple references with timeout can result in infinite loading.
|
|
11
11
|
* @returns A promise that resolves to a Proxy of the initialized DOMNodeReference instance.
|
|
12
12
|
*/
|
|
13
13
|
export default function createDOMNodeReference(target: string | HTMLElement, options?: {
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "powerpagestoolkit",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.131",
|
|
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",
|
|
7
|
+
"unpkg": "./dist/index.umd.js",
|
|
8
|
+
"jsdelivr": "./dist/index.iife.js",
|
|
7
9
|
"scripts": {
|
|
8
10
|
"typecheck": "tsc",
|
|
9
11
|
"node:build": "node build.js",
|
|
@@ -17,7 +19,7 @@
|
|
|
17
19
|
"@types/node": "^22.8.6",
|
|
18
20
|
"@typescript-eslint/parser": "^8.20.0",
|
|
19
21
|
"css-loader": "^7.1.2",
|
|
20
|
-
"esbuild": "^0.24.
|
|
22
|
+
"esbuild": "^0.24.2",
|
|
21
23
|
"esbuild-css-modules-plugin": "^3.1.2",
|
|
22
24
|
"eslint": "^8.57.1",
|
|
23
25
|
"eslint-plugin-import": "^2.31.0",
|
|
@@ -60,6 +62,7 @@
|
|
|
60
62
|
"files": [
|
|
61
63
|
"dist/bundle.js",
|
|
62
64
|
"dist/bundle.css",
|
|
65
|
+
"dist/index.iife.js",
|
|
63
66
|
"dist/types/**/*.d.ts",
|
|
64
67
|
"assets/**"
|
|
65
68
|
],
|