formeo 3.0.8 → 3.1.0

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/formeo.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  /**
3
3
  formeo - https://formeo.io
4
- Version: 3.0.7
4
+ Version: 3.0.8
5
5
  Author: Draggable https://draggable.io
6
6
  */
7
7
 
@@ -434,7 +434,7 @@ if (window !== void 0) {
434
434
  window.SmartTooltip = SmartTooltip;
435
435
  }
436
436
  const name$1 = "formeo";
437
- const version$2 = "3.0.7";
437
+ const version$2 = "3.0.8";
438
438
  const type = "module";
439
439
  const main = "dist/formeo.cjs.js";
440
440
  const module = "dist/formeo.es.js";
@@ -526,6 +526,7 @@ const devDependencies = {
526
526
  "@semantic-release/changelog": "^6.0.3",
527
527
  "@semantic-release/git": "^10.0.1",
528
528
  "@semantic-release/npm": "^12.0.1",
529
+ "ace-builds": "^1.36.5",
529
530
  jsdom: "^25.0.1",
530
531
  lefthook: "^1.7.18",
531
532
  "npm-run-all": "^2.1.0",
@@ -9713,7 +9714,7 @@ let FormeoEditor$1 = class FormeoEditor {
9713
9714
  this.opts = opts;
9714
9715
  dom.setOptions = opts;
9715
9716
  components.config = config2;
9716
- this.userFormData = cleanFormData(userFormData || formData);
9717
+ this.userFormData = userFormData || formData;
9717
9718
  this.Components = components;
9718
9719
  this.dom = dom;
9719
9720
  events.init({ debug, ...events$1 });
@@ -9729,7 +9730,8 @@ let FormeoEditor$1 = class FormeoEditor {
9729
9730
  return this.Components.formData;
9730
9731
  }
9731
9732
  set formData(data = {}) {
9732
- this.load({ ...this.userFormData, ...data }, this.opts);
9733
+ this.userFormData = cleanFormData(data);
9734
+ this.load(this.userFormData, this.opts);
9733
9735
  }
9734
9736
  get json() {
9735
9737
  return this.Components.json;
@@ -9775,12 +9777,12 @@ let FormeoEditor$1 = class FormeoEditor {
9775
9777
  }, console.error);
9776
9778
  }
9777
9779
  };
9778
- this.render();
9779
9780
  (_b = (_a = this.opts).onLoad) == null ? void 0 : _b.call(_a, this);
9780
9781
  });
9781
9782
  }
9782
9783
  load(formData = this.userFormData, opts = this.opts) {
9783
- return this.Components.load(formData, opts);
9784
+ this.Components.load(formData, opts);
9785
+ this.render();
9784
9786
  }
9785
9787
  /**
9786
9788
  * Render the formeo sections
@@ -1,7 +1,7 @@
1
1
 
2
2
  /**
3
3
  formeo - https://formeo.io
4
- Version: 3.0.7
4
+ Version: 3.0.8
5
5
  Author: Draggable https://draggable.io
6
6
  */
7
7