@innovastudio/contentbox 1.4.32 → 1.4.33
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.
|
4
|
+
"version": "1.4.33",
|
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.
|
49
|
+
"@innovastudio/contentbuilder": "^1.3.37",
|
50
50
|
"js-beautify": "^1.14.0"
|
51
51
|
}
|
52
52
|
}
|
@@ -62736,7 +62736,7 @@ class Image$1 {
|
|
62736
62736
|
<input id="inpImageLinkLink" class="input-link" type="text" style="width:100%;border-top: none;"/>
|
62737
62737
|
<button title="${util.out('Select')}" class="input-select2" style="flex:none;"><svg class="is-icon-flex"><use xlink:href="#ion-more"></use></svg></button>
|
62738
62738
|
<div class="image-larger2" style="position:relative;flex:none;box-shadow: 0px 3px 6px -6px rgba(0, 0, 0, 0.32);">
|
62739
|
-
<form class="form-upload-larger" target="frameTargetImageUpload" method="post" action="${this.builder.opts.largerImageHandler}" enctype="multipart/form-data" style="border-radius:1px;position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;">
|
62739
|
+
<form class="form-upload-larger" target="frameTargetImageUpload" method="post" action="${this.builder.opts.fileHandler ? this.builder.opts.fileHandler : this.builder.opts.largerImageHandler}" enctype="multipart/form-data" style="border-radius:1px;position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;">
|
62740
62740
|
<input id="hidRefId2" name="hidRefId" type="hidden" value="" />
|
62741
62741
|
<svg class="is-icon-flex"><use xlink:href="#ion-ios-cloud-upload-outline"></use></svg>
|
62742
62742
|
<input onclick="blur()" title="${util.out('Select')}" id="fileImage2" name="fileImage" type="file" accept="image/*" style="position:absolute;top:-30px;left:0;width:100%;height:80px;opacity: 0;cursor: pointer;">
|
@@ -63327,7 +63327,9 @@ class Image$1 {
|
|
63327
63327
|
dom.addClass(frmUpload, 'please-wait');
|
63328
63328
|
modalImageLink.querySelector('#hidRefId2').value = this.builder.opts.customval;
|
63329
63329
|
|
63330
|
-
if (this.builder.opts.
|
63330
|
+
if (this.builder.opts.onFileUpload) {
|
63331
|
+
this.builder.opts.onFileUpload(e);
|
63332
|
+
} else if (this.builder.opts.onLargerImageUpload) {
|
63331
63333
|
this.builder.opts.onLargerImageUpload(e);
|
63332
63334
|
} else {
|
63333
63335
|
frmUpload.submit();
|
@@ -95035,6 +95037,8 @@ class ContentBox {
|
|
95035
95037
|
// onVideoUpload: function(){},
|
95036
95038
|
audioHandler: '',
|
95037
95039
|
// onAudioUpload: function(){},
|
95040
|
+
fileHandler: '',
|
95041
|
+
// onFileUpload: function(){},
|
95038
95042
|
cellFormat: '',
|
95039
95043
|
rowFormat: '',
|
95040
95044
|
row: '',
|
@@ -97571,10 +97575,12 @@ class ContentBox {
|
|
97571
97575
|
mediaHandler: this.settings.mediaHandler,
|
97572
97576
|
videoHandler: this.settings.videoHandler,
|
97573
97577
|
audioHandler: this.settings.audioHandler,
|
97578
|
+
fileHandler: this.settings.fileHandler,
|
97574
97579
|
onVideoUpload: this.settings.onVideoUpload,
|
97575
97580
|
onAudioUpload: this.settings.onAudioUpload,
|
97576
97581
|
onImageUpload: this.settings.onImageUpload,
|
97577
97582
|
onMediaUpload: this.settings.onMediaUpload,
|
97583
|
+
onFileUpload: this.settings.onFileUpload,
|
97578
97584
|
framework: this.settings.framework,
|
97579
97585
|
cellFormat: this.settings.cellFormat,
|
97580
97586
|
rowFormat: this.settings.rowFormat,
|