@innovastudio/contentbox 1.4.27 → 1.4.29

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbox",
3
3
  "type": "module",
4
- "version": "1.4.27",
4
+ "version": "1.4.29",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
7
7
  "files": [
@@ -46,7 +46,7 @@
46
46
  "webpack-dev-server": "^4.0.0"
47
47
  },
48
48
  "dependencies": {
49
- "@innovastudio/contentbuilder": "^1.3.30",
49
+ "@innovastudio/contentbuilder": "^1.3.31",
50
50
  "js-beautify": "^1.14.0"
51
51
  }
52
52
  }
@@ -476,10 +476,15 @@
476
476
  /* setting display=none makes initial script may not work properly */
477
477
  transform-origin: top;
478
478
  }
479
-
480
479
  .is-wrapper.is-edit {
481
480
  padding-left: 60px;
482
481
  }
482
+ .is-wrapper .transition-edit.is-section {
483
+ transition: all 0.2s ease !important;
484
+ }
485
+ .is-wrapper .transition-edit .is-box {
486
+ transition: all 0.2s ease !important;
487
+ }
483
488
 
484
489
  #_cbhtml {
485
490
  height: 0px;
@@ -3838,8 +3838,16 @@ class EditSection {
3838
3838
  btnSectionHeight.forEach(btn => {
3839
3839
  btn.addEventListener('click', () => {
3840
3840
  this.builder.editor.saveForUndo();
3841
- let val = btn.getAttribute('data-value');
3842
- this.sectionHeight(val);
3841
+ let val = btn.getAttribute('data-value'); // this.sectionHeight(val);
3842
+
3843
+ const activeSection = this.builder.activeSection;
3844
+ activeSection.classList.add('transition-edit');
3845
+ setTimeout(() => {
3846
+ this.sectionHeight(val);
3847
+ setTimeout(() => {
3848
+ activeSection.classList.remove('transition-edit');
3849
+ }, 200);
3850
+ }, 10);
3843
3851
  let btns = modalEditSection.querySelectorAll('.cmd-section-height');
3844
3852
  btns.forEach(btn => {
3845
3853
  dom$k.removeClass(btn, 'on');
@@ -4406,8 +4414,7 @@ class EditSection {
4406
4414
  } //Trigger Render event
4407
4415
 
4408
4416
 
4409
- this.builder.settings.onRender();
4410
- this.builder.scrollTo(activeSection, 600);
4417
+ this.builder.settings.onRender(); // this.builder.scrollTo(activeSection, 600);
4411
4418
  }
4412
4419
 
4413
4420
  boxSpacing(s) {
@@ -10234,15 +10241,31 @@ class EditBox {
10234
10241
  modalEditBox.querySelector('#tabBoxGeneral').click();
10235
10242
  const btnBoxSmaller = modalEditBox.querySelector('.cmd-box-smaller');
10236
10243
  btnBoxSmaller.addEventListener('click', () => {
10237
- this.builder.editor.saveForUndo();
10238
- this.boxWidthSmaller(); //Trigger Change event
10244
+ this.builder.editor.saveForUndo(); // this.boxWidthSmaller();
10245
+
10246
+ const activeSection = this.builder.activeSection;
10247
+ activeSection.classList.add('transition-edit');
10248
+ setTimeout(() => {
10249
+ this.boxWidthSmaller();
10250
+ setTimeout(() => {
10251
+ activeSection.classList.remove('transition-edit');
10252
+ }, 200);
10253
+ }, 10); //Trigger Change event
10239
10254
 
10240
10255
  this.builder.settings.onChange();
10241
10256
  });
10242
10257
  const btnBoxLarger = modalEditBox.querySelector('.cmd-box-larger');
10243
10258
  btnBoxLarger.addEventListener('click', () => {
10244
- this.builder.editor.saveForUndo();
10245
- this.boxWidthLarger(); //Trigger Change event
10259
+ this.builder.editor.saveForUndo(); // this.boxWidthLarger();
10260
+
10261
+ const activeSection = this.builder.activeSection;
10262
+ activeSection.classList.add('transition-edit');
10263
+ setTimeout(() => {
10264
+ this.boxWidthLarger();
10265
+ setTimeout(() => {
10266
+ activeSection.classList.remove('transition-edit');
10267
+ }, 200);
10268
+ }, 10); //Trigger Change event
10246
10269
 
10247
10270
  this.builder.settings.onChange();
10248
10271
  });
@@ -86629,7 +86652,7 @@ class ContentStuff$1 {
86629
86652
  .is-tool.is-col-tool svg {
86630
86653
  width: 23px;
86631
86654
  height: 23px;
86632
- fill: #fff;
86655
+ fill: #fff !important;
86633
86656
  }
86634
86657
  .is-tool.is-col-tool .cell-more svg {
86635
86658
  width: 14px;
@@ -86658,7 +86681,7 @@ class ContentStuff$1 {
86658
86681
  .is-builder[gray] .is-tool.is-col-tool svg {
86659
86682
  width: 18px;
86660
86683
  height: 18px;
86661
- fill: #000;
86684
+ fill: #000 !important;
86662
86685
  }
86663
86686
  .is-builder[gray] .is-tool.is-col-tool .cell-more svg {
86664
86687
  width: 12px;
@@ -88235,7 +88258,7 @@ class ContentBuilder {
88235
88258
  .is-tool.is-col-tool svg {
88236
88259
  width: 23px;
88237
88260
  height: 23px;
88238
- fill: #fff;
88261
+ fill: #fff !important;
88239
88262
  }
88240
88263
  .is-tool.is-col-tool .cell-more svg {
88241
88264
  width: 14px;
@@ -88266,7 +88289,7 @@ class ContentBuilder {
88266
88289
  .is-builder[gray] .is-tool.is-col-tool svg {
88267
88290
  width: 18px;
88268
88291
  height: 18px;
88269
- fill: #000;
88292
+ fill: #000 !important;
88270
88293
  }
88271
88294
  .is-builder[gray] .is-tool.is-col-tool .cell-more svg {
88272
88295
  width: 12px;