powerpagestoolkit 2.1.2 → 2.201.1

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.
Files changed (2) hide show
  1. package/dist/bundle.js +6 -2
  2. package/package.json +1 -1
package/dist/bundle.js CHANGED
@@ -205,7 +205,7 @@ var ConditionalRenderingError = class extends Error {
205
205
 
206
206
  // src/DOMNodeReference.ts
207
207
  var _init = Symbol("_init");
208
- var DOMNodeReference = class {
208
+ var DOMNodeReference = class _DOMNodeReference {
209
209
  // properties initialized in the constructor
210
210
  target;
211
211
  isLoaded;
@@ -270,6 +270,8 @@ var DOMNodeReference = class {
270
270
  this.element.selectedOptions
271
271
  ).map((option) => option.value);
272
272
  break;
273
+ case "select-one":
274
+ this.value = this.element.value;
273
275
  case "number":
274
276
  this.value = this.element.value !== "" ? Number(this.element.value) : null;
275
277
  break;
@@ -277,9 +279,11 @@ var DOMNodeReference = class {
277
279
  this.value = this.element.value;
278
280
  break;
279
281
  }
280
- if (this.element.classList.contains("boolean-radio")) {
282
+ if (this.yesRadio instanceof _DOMNodeReference) {
281
283
  this.yesRadio.updateValue();
282
284
  this.noRadio.updateValue();
285
+ this.checked = this.yesRadio.checked;
286
+ this.value = this.yesRadio?.checked ? 1 : 0;
283
287
  }
284
288
  this._observeValueChanges();
285
289
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powerpagestoolkit",
3
- "version": "2.1.002",
3
+ "version": "2.201.1",
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",