@innovastudio/contentbuilder 1.5.143 → 1.5.144
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/index.d.ts
CHANGED
package/package.json
CHANGED
@@ -93939,6 +93939,19 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
93939
93939
|
// obj.preserveSelection = true; (can be set programmatically) to prevent click that clears selection on external custom modal.
|
93940
93940
|
|
93941
93941
|
this.opts = Object.assign(this, defaults, opts);
|
93942
|
+
if (this.opts.uploadFile) {
|
93943
|
+
const uploadHandler = () => {
|
93944
|
+
return async file => {
|
93945
|
+
const data = await this.opts.uploadFile(file);
|
93946
|
+
this.returnUrl(data.url);
|
93947
|
+
};
|
93948
|
+
};
|
93949
|
+
this.onImageUpload = uploadHandler();
|
93950
|
+
this.onVideoUpload = uploadHandler();
|
93951
|
+
this.onAudioUpload = uploadHandler();
|
93952
|
+
this.onMediaUpload = uploadHandler();
|
93953
|
+
this.onFileUpload = uploadHandler();
|
93954
|
+
}
|
93942
93955
|
if (this.opts.basePath) {
|
93943
93956
|
this.opts.assetPath = this.opts.basePath + 'assets/';
|
93944
93957
|
this.opts.fontAssetPath = this.opts.basePath + 'assets/fonts/';
|