@innovastudio/contentbox 1.0.59 → 1.0.60

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/contentbox",
3
- "version": "1.0.59",
3
+ "version": "1.0.60",
4
4
  "description": "",
5
5
  "main": "public/contentbox/contentbox.esm.js",
6
6
  "files": [
@@ -38,7 +38,7 @@
38
38
  "webpack-dev-server": "^4.0.0"
39
39
  },
40
40
  "dependencies": {
41
- "@innovastudio/contentbuilder": "^1.0.78",
41
+ "@innovastudio/contentbuilder": "^1.0.79",
42
42
  "axios": "^0.21.4",
43
43
  "cors": "^2.8.5",
44
44
  "express": "^4.17.1",
@@ -524,3 +524,6 @@
524
524
  opacity: 0;
525
525
  }
526
526
  }
527
+ .is-wrapper .is-builder {
528
+ transition: unset;
529
+ }
@@ -69578,6 +69578,27 @@ class ContentBuilder {
69578
69578
  this.util.hideModal(modal);
69579
69579
  }
69580
69580
 
69581
+ draggable(selector) {
69582
+ new Draggable$1({
69583
+ selector: selector
69584
+ });
69585
+ }
69586
+
69587
+ createModal(modal, selector, overlayStay, cancelCallback, animated) {
69588
+ let embeddedModal = this.builderStuff.querySelector(selector);
69589
+
69590
+ if (!embeddedModal) {
69591
+ this.builderStuff.appendChild(modal);
69592
+ embeddedModal = this.builderStuff.querySelector(selector);
69593
+ }
69594
+
69595
+ this.showModal(embeddedModal, overlayStay, cancelCallback, animated);
69596
+ new Draggable$1({
69597
+ selector: '.is-draggable'
69598
+ });
69599
+ return embeddedModal;
69600
+ }
69601
+
69581
69602
  showSidePanel(panel) {
69582
69603
  let panels = this.builderStuff.querySelectorAll('.is-side');
69583
69604
  Array.prototype.forEach.call(panels, panel => {