@innovastudio/contentbox 1.4.63 → 1.4.65

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.63",
4
+ "version": "1.4.65",
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.72",
49
+ "@innovastudio/contentbuilder": "^1.3.74",
50
50
  "js-beautify": "^1.14.0"
51
51
  }
52
52
  }
@@ -64674,8 +64674,8 @@ class ButtonEditor {
64674
64674
  let elm = e.target;
64675
64675
  this.builder.colorPicker.open(color => {
64676
64676
  const activeButton = this.builder.activeButton || this.builder.activeLinkButton;
64677
- activeButton.style.backgroundColor = color; // activeButton.setAttribute('data-bg', color);
64678
-
64677
+ activeButton.style.backgroundColor = color;
64678
+ activeButton.setAttribute('data-bg', color);
64679
64679
  dom.removeClassesByPrefix(activeButton, 'bg-');
64680
64680
  elm.style.backgroundColor = color; // preview
64681
64681
  //Trigger Change event
@@ -89751,15 +89751,14 @@ class ContentBuilder {
89751
89751
  scroll: true,
89752
89752
  // invertSwap: true, /* https://github.com/SortableJS/Sortable/wiki/Swap-Thresholds-and-Direction#swap-threshold */
89753
89753
  group: 'shared',
89754
- direction: 'dummy',
89755
- // works well with border-right hack & empty-info
89754
+ // direction: 'dummy', // works well with border-right hack & empty-info
89756
89755
  animation: 300,
89757
89756
  handle: '.row-handle',
89758
89757
  // swapThreshold: 0.1, // this cause drag drop snippet sometimes difficult
89759
89758
  // invertedSwapThreshold: 0.1,
89760
89759
  sort: true,
89761
89760
  //new
89762
- swapThreshold: 0.5,
89761
+ // swapThreshold: 0.5,
89763
89762
  onChoose: () => {
89764
89763
  // Get zoom (scale) value
89765
89764
  let scale;
@@ -92284,8 +92283,8 @@ class ContentBuilder {
92284
92283
  animation: 150,
92285
92284
  sort: true,
92286
92285
  // draggable: '.dummy',
92287
- swapThreshold: 0.1,
92288
- invertSwap: true,
92286
+ // swapThreshold: 0.1,
92287
+ // invertSwap: true,
92289
92288
  onAdd: evt => {
92290
92289
  var itemEl = evt.item;
92291
92290