@innovastudio/contentbox 1.0.52 → 1.0.53
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.
|
|
3
|
+
"version": "1.0.53",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "public/contentbox/contentbox.esm.js",
|
|
6
6
|
"files": [
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@ashthornton/asscroll": "^2.0.4",
|
|
42
|
-
"@innovastudio/contentbuilder": "^1.0.
|
|
42
|
+
"@innovastudio/contentbuilder": "^1.0.72",
|
|
43
43
|
"axios": "^0.21.4",
|
|
44
44
|
"cors": "^2.8.5",
|
|
45
45
|
"express": "^4.17.1",
|
|
@@ -49431,11 +49431,12 @@ class Image {
|
|
|
49431
49431
|
}
|
|
49432
49432
|
|
|
49433
49433
|
util.showModal(modalImageSelect);
|
|
49434
|
-
this.builder.targetInput = modalImageLink.querySelector('.input-src'); // used by selectAsset() (see contentbuilder.js)
|
|
49435
|
-
|
|
49436
|
-
this.builder.targetCallback = null;
|
|
49437
|
-
this.builder.targetAssetType = 'image';
|
|
49438
49434
|
}
|
|
49435
|
+
|
|
49436
|
+
this.builder.targetInput = modalImageLink.querySelector('.input-src'); // used by selectAsset() (see contentbuilder.js)
|
|
49437
|
+
|
|
49438
|
+
this.builder.targetCallback = null;
|
|
49439
|
+
this.builder.targetAssetType = 'image';
|
|
49439
49440
|
});
|
|
49440
49441
|
elm = modalImageLink.querySelector('.input-select2');
|
|
49441
49442
|
if (elm) dom$w.addEventListener(elm, 'click', () => {
|
|
@@ -49457,11 +49458,12 @@ class Image {
|
|
|
49457
49458
|
}
|
|
49458
49459
|
|
|
49459
49460
|
util.showModal(modalImageSelect);
|
|
49460
|
-
this.builder.targetInput = modalImageLink.querySelector('.input-link'); // used by selectAsset() (see contentbuilder.js)
|
|
49461
|
-
|
|
49462
|
-
this.builder.targetCallback = null;
|
|
49463
|
-
this.builder.targetAssetType = 'media';
|
|
49464
49461
|
}
|
|
49462
|
+
|
|
49463
|
+
this.builder.targetInput = modalImageLink.querySelector('.input-link'); // used by selectAsset() (see contentbuilder.js)
|
|
49464
|
+
|
|
49465
|
+
this.builder.targetCallback = null;
|
|
49466
|
+
this.builder.targetAssetType = 'media';
|
|
49465
49467
|
});
|
|
49466
49468
|
} else {
|
|
49467
49469
|
dom$w.removeClass(divImageSrc, 'image-select');
|
|
@@ -51582,12 +51584,12 @@ class Hyperlink {
|
|
|
51582
51584
|
}
|
|
51583
51585
|
|
|
51584
51586
|
util.showModal(modalFileSelect, false, null, false);
|
|
51585
|
-
this.builder.targetInput = modal.querySelector('.input-url'); // used by selectAsset() (see contentbuilder.js)
|
|
51586
|
-
|
|
51587
|
-
this.builder.targetCallback = null;
|
|
51588
|
-
this.builder.targetAssetType = 'all';
|
|
51589
51587
|
}
|
|
51590
51588
|
|
|
51589
|
+
this.builder.targetInput = modal.querySelector('.input-url'); // used by selectAsset() (see contentbuilder.js)
|
|
51590
|
+
|
|
51591
|
+
this.builder.targetCallback = null;
|
|
51592
|
+
this.builder.targetAssetType = 'all';
|
|
51591
51593
|
e.preventDefault();
|
|
51592
51594
|
e.stopImmediatePropagation();
|
|
51593
51595
|
});
|
|
@@ -51679,6 +51681,11 @@ class Hyperlink {
|
|
|
51679
51681
|
|
|
51680
51682
|
util.showModal(modalFileSelect, false, null, false);
|
|
51681
51683
|
}
|
|
51684
|
+
|
|
51685
|
+
this.builder.targetInput = modal.querySelector('.input-url'); // used by selectAsset() (see contentbuilder.js)
|
|
51686
|
+
|
|
51687
|
+
this.builder.targetCallback = null;
|
|
51688
|
+
this.builder.targetAssetType = 'all';
|
|
51682
51689
|
});
|
|
51683
51690
|
} else {
|
|
51684
51691
|
modal.querySelector('.input-select').style.display = 'none';
|
|
@@ -53111,11 +53118,12 @@ class Video {
|
|
|
53111
53118
|
}
|
|
53112
53119
|
|
|
53113
53120
|
util.showModal(modalVideoSelect);
|
|
53114
|
-
this.builder.targetInput = videoModal.querySelector('.input-url'); // used by selectAsset() (see contentbuilder.js)
|
|
53115
|
-
|
|
53116
|
-
this.builder.targetCallback = null;
|
|
53117
|
-
this.builder.targetAssetType = 'video';
|
|
53118
53121
|
}
|
|
53122
|
+
|
|
53123
|
+
this.builder.targetInput = videoModal.querySelector('.input-url'); // used by selectAsset() (see contentbuilder.js)
|
|
53124
|
+
|
|
53125
|
+
this.builder.targetCallback = null;
|
|
53126
|
+
this.builder.targetAssetType = 'video';
|
|
53119
53127
|
});
|
|
53120
53128
|
let fileLargerVideo = videoModal.querySelector('#fileVideo1');
|
|
53121
53129
|
dom$p.addEventListener(fileLargerVideo, 'change', e => {
|
|
@@ -55945,11 +55953,12 @@ class ColumnTool {
|
|
|
55945
55953
|
}
|
|
55946
55954
|
|
|
55947
55955
|
util.showModal(modalImageSelect);
|
|
55948
|
-
this.builder.targetInput = imageSource.querySelector('.input-src'); // used by selectAsset() (see contentbuilder.js)
|
|
55949
|
-
|
|
55950
|
-
this.builder.targetCallback = null;
|
|
55951
|
-
this.builder.targetAssetType = 'image';
|
|
55952
55956
|
}
|
|
55957
|
+
|
|
55958
|
+
this.builder.targetInput = imageSource.querySelector('.input-src'); // used by selectAsset() (see contentbuilder.js)
|
|
55959
|
+
|
|
55960
|
+
this.builder.targetCallback = null;
|
|
55961
|
+
this.builder.targetAssetType = 'image';
|
|
55953
55962
|
});
|
|
55954
55963
|
} else {
|
|
55955
55964
|
dom$l.removeClass(divImageSrc, 'image-select');
|
|
@@ -56332,6 +56341,15 @@ class ColumnTool {
|
|
|
56332
56341
|
const inpSrc = this.cellSettings.querySelector('.input-src');
|
|
56333
56342
|
elm = this.cellSettings.querySelector('.input-select');
|
|
56334
56343
|
if (elm) dom$l.addEventListener(elm, 'click', () => {
|
|
56344
|
+
//---default
|
|
56345
|
+
this.builder.targetInput = inpSrc; // used by selectAsset() (see contentbuilder.js)
|
|
56346
|
+
|
|
56347
|
+
this.builder.targetCallback = () => {
|
|
56348
|
+
this.applyClick();
|
|
56349
|
+
};
|
|
56350
|
+
|
|
56351
|
+
this.builder.targetAssetType = 'media'; //---/default
|
|
56352
|
+
|
|
56335
56353
|
if (this.builder.opts.onFileSelectClick) {
|
|
56336
56354
|
this.builder.opts.onFileSelectClick({
|
|
56337
56355
|
targetInput: inpSrc,
|
|
@@ -63804,11 +63822,12 @@ class Rte {
|
|
|
63804
63822
|
}
|
|
63805
63823
|
|
|
63806
63824
|
util.showModal(modalImageSelect);
|
|
63807
|
-
this.builder.targetInput = modalInsertImage.querySelector('.input-src'); // used by selectAsset() (see contentbuilder.js)
|
|
63808
|
-
|
|
63809
|
-
this.builder.targetCallback = null;
|
|
63810
|
-
this.builder.targetAssetType = 'image';
|
|
63811
63825
|
}
|
|
63826
|
+
|
|
63827
|
+
this.builder.targetInput = modalInsertImage.querySelector('.input-src'); // used by selectAsset() (see contentbuilder.js)
|
|
63828
|
+
|
|
63829
|
+
this.builder.targetCallback = null;
|
|
63830
|
+
this.builder.targetAssetType = 'image';
|
|
63812
63831
|
});
|
|
63813
63832
|
} else {
|
|
63814
63833
|
dom$5.removeClass(inputImageInsertSrc, 'image-select');
|