@innovastudio/contentbox 1.2.5 → 1.2.8
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,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@innovastudio/contentbox",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.8",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "",
|
|
5
6
|
"main": "public/contentbox/contentbox.esm.js",
|
|
6
7
|
"files": [
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
"webpack-dev-server": "^4.0.0"
|
|
40
41
|
},
|
|
41
42
|
"dependencies": {
|
|
42
|
-
"@innovastudio/contentbuilder": "^1.1.
|
|
43
|
+
"@innovastudio/contentbuilder": "^1.1.10",
|
|
43
44
|
"axios": "^0.21.4",
|
|
44
45
|
"cors": "^2.8.5",
|
|
45
46
|
"express": "^4.17.1",
|
|
@@ -17115,6 +17115,7 @@ class Dom {
|
|
|
17115
17115
|
|
|
17116
17116
|
|
|
17117
17117
|
hasClass(element, className) {
|
|
17118
|
+
if (!element.className) return false;
|
|
17118
17119
|
return (' ' + element.className + ' ').indexOf(' ' + className + ' ') > -1;
|
|
17119
17120
|
}
|
|
17120
17121
|
|
|
@@ -57362,6 +57363,7 @@ class Image {
|
|
|
57362
57363
|
imageTool.style.display = '';
|
|
57363
57364
|
setTimeout(() => {
|
|
57364
57365
|
let elm = this.builder.activeImage;
|
|
57366
|
+
if (!elm) return;
|
|
57365
57367
|
|
|
57366
57368
|
if (dom$A.hasClass(elm.parentNode, 'img-circular')) {
|
|
57367
57369
|
elm = elm.parentNode;
|
|
@@ -77224,7 +77226,8 @@ class ContentBuilder {
|
|
|
77224
77226
|
|
|
77225
77227
|
document.addEventListener('click', this.doDocumentClick = e => {
|
|
77226
77228
|
e = e || window.event;
|
|
77227
|
-
|
|
77229
|
+
let target = e.target || e.srcElement;
|
|
77230
|
+
if (!target) return;
|
|
77228
77231
|
let rowClicked = dom$J.hasClass(target.parentNode, 'is-builder');
|
|
77229
77232
|
let containerClicked = dom$J.hasClass(target, 'is-builder');
|
|
77230
77233
|
let a = false,
|