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