powerpagestoolkit 3.0.4054 → 3.0.4056

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.
@@ -77,7 +77,7 @@ declare interface BusinessRule {
77
77
  * otherwise, it is hidden.
78
78
 
79
79
  */
80
- setVisibility?: (this: PowerPagesElement) => boolean;
80
+ setVisibility?: Evaluator;
81
81
  /**
82
82
  * Configuration function for determining the required level, and field validity of the given fields
83
83
  * @param isRequired - Function determining if field is required
@@ -87,8 +87,8 @@ declare interface BusinessRule {
87
87
  * @param isValid.isRequiredResult - Only available if 'isRequired' is also returned from the configuration function
88
88
  */
89
89
  setRequirements?: () => {
90
- isRequired?: Evaluator<DOMNodeReference>;
91
- isValid?: Evaluator<DOMNodeReference, boolean>;
90
+ isRequired?: Evaluator;
91
+ isValid?: Evaluator;
92
92
  };
93
93
 
94
94
  /**
@@ -98,14 +98,14 @@ declare interface BusinessRule {
98
98
  * an expression returning a boolean
99
99
  */
100
100
  setValue?: () => {
101
- condition: (this: PowerPagesElement) => boolean;
101
+ condition: Evaluator;
102
102
  value: (() => any) | any;
103
103
  };
104
104
  /**
105
105
  * @param condition A function to determine if this field
106
106
  * should be enabled in a form, or disabled. True || 1 = disabled. False || 0 = enabled
107
107
  */
108
- setDisabled?: (this: PowerPagesElement) => boolean;
108
+ setDisabled?: Evaluator;
109
109
  }
110
110
 
111
111
  // This helper checks that an array type has at least one element.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powerpagestoolkit",
3
- "version": "3.0.4054",
3
+ "version": "3.0.4056",
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/src/index.js",
6
6
  "module": "./dist/src/index.js",