powerpagestoolkit 1.3.103 → 1.3.1041
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.bundle.js +1234 -0
- package/index.d.ts +4 -7
- package/package.json +1 -1
- package/dist/index.js +0 -1180
- package/dist/index.js.map +0 -1
- package/dist/types/JS/API.d.ts +0 -24
- package/dist/types/JS/DOMNodeReferences.d.ts +0 -64
- package/dist/types/JS/createInfoElement.d.ts +0 -1
- package/dist/types/JS/errors.d.ts +0 -10
- package/dist/types/JS/safeAjax.d.ts +0 -1
- package/dist/types/JS/waitFor.d.ts +0 -1
- package/dist/types/index.d.ts +0 -3
package/index.d.ts
CHANGED
|
@@ -129,17 +129,14 @@ class DOMNodeReference {
|
|
|
129
129
|
/**
|
|
130
130
|
* Configures validation and requirement conditions for the field based on the provided logic functions and dependencies.
|
|
131
131
|
* Creates a validator and sets a required level dynamically based on dependency changes.
|
|
132
|
-
* @param {
|
|
133
|
-
* @param {(this: DOMNodeReference) => boolean}
|
|
134
|
-
* @param {(this: DOMNodeReference) => boolean} config.validationLogic - Function to evaluate the field's validity.
|
|
132
|
+
* @param {(this: DOMNodeReference) => boolean} isRequired - Function to determine if the field is required.
|
|
133
|
+
* @param {(this: DOMNodeReference) => boolean} isValid - Function to evaluate the field's validity.
|
|
135
134
|
* @param {string} fieldDisplayName - Display name used in error messages if validation fails.
|
|
136
135
|
* @param {Array<DOMNodeReference>} [dependencies] - Optional dependencies for setting requirement conditions dynamically.
|
|
137
136
|
*/
|
|
138
137
|
configureValidationAndRequirements(
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
validationLogic: (this: this) => boolean;
|
|
142
|
-
},
|
|
138
|
+
isRequired: (this: this) => boolean,
|
|
139
|
+
isValid: (this: this) => boolean,
|
|
143
140
|
fieldDisplayName: string,
|
|
144
141
|
dependencies?: DOMNodeReference[]
|
|
145
142
|
): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "powerpagestoolkit",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1041",
|
|
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/index.bundle.js",
|
|
6
6
|
"types": "index.d.ts",
|