@innovastudio/contentbuilder 1.0.78 → 1.0.79

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
- "version": "1.0.78",
3
+ "version": "1.0.79",
4
4
  "description": "",
5
5
  "main": "public/contentbuilder/contentbuilder.esm.js",
6
6
  "files": [
@@ -38,6 +38,7 @@ button:focus {
38
38
  }
39
39
 
40
40
  .is-builder {
41
+ transition: all ease 0.3s;
41
42
  transform-origin: top;
42
43
  }
43
44
  .is-builder > div > div:focus {
@@ -59308,6 +59308,27 @@ class ContentBuilder {
59308
59308
  this.util.hideModal(modal);
59309
59309
  }
59310
59310
 
59311
+ draggable(selector) {
59312
+ new Draggable$1({
59313
+ selector: selector
59314
+ });
59315
+ }
59316
+
59317
+ createModal(modal, selector, overlayStay, cancelCallback, animated) {
59318
+ let embeddedModal = this.builderStuff.querySelector(selector);
59319
+
59320
+ if (!embeddedModal) {
59321
+ this.builderStuff.appendChild(modal);
59322
+ embeddedModal = this.builderStuff.querySelector(selector);
59323
+ }
59324
+
59325
+ this.showModal(embeddedModal, overlayStay, cancelCallback, animated);
59326
+ new Draggable$1({
59327
+ selector: '.is-draggable'
59328
+ });
59329
+ return embeddedModal;
59330
+ }
59331
+
59311
59332
  showSidePanel(panel) {
59312
59333
  let panels = this.builderStuff.querySelectorAll('.is-side');
59313
59334
  Array.prototype.forEach.call(panels, panel => {