@innovastudio/contentbuilder 1.5.125 → 1.5.126
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
@@ -304,10 +304,12 @@ declare class ContentBuilder {
|
|
304
304
|
openAIAssistant(): void;
|
305
305
|
closeAIAssistant(): void;
|
306
306
|
saveForUndo(): void;
|
307
|
-
selectAsset(s: string, f?: boolean)
|
308
|
-
|
309
|
-
|
310
|
-
|
307
|
+
selectAsset(s: string, f?: boolean): void;
|
308
|
+
hideModal(modal?: HTMLElement): void;
|
309
|
+
closeAsset(): void;
|
310
|
+
addBlock(html: string, blockContainer?: HTMLElement): void;
|
311
|
+
addPage(box?: HTMLElement): void;
|
312
|
+
setPageSize(s?: string): void;
|
311
313
|
openPageOptions(): void;
|
312
314
|
print(): void;
|
313
315
|
|
package/package.json
CHANGED
@@ -94849,6 +94849,7 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
94849
94849
|
window.selectImage = this.selectImage.bind(this);
|
94850
94850
|
window.selectVideo = this.selectVideo.bind(this);
|
94851
94851
|
window.selectAsset = this.selectAsset.bind(this);
|
94852
|
+
window.closeAsset = this.closeAsset.bind(this);
|
94852
94853
|
window.assetType = this.assetType.bind(this);
|
94853
94854
|
window.hideModal = this.hideModal.bind(this);
|
94854
94855
|
window.generateImage = this.generateImage.bind(this);
|
@@ -97354,6 +97355,20 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
97354
97355
|
this.util._hideModal(modal); // this _hideModal will also trigger cancelCallback defined by showModal. This is done by programmatically click the overlay.
|
97355
97356
|
}
|
97356
97357
|
|
97358
|
+
closeAsset() {
|
97359
|
+
let modal = document.querySelector('.is-modal.videoselect.active');
|
97360
|
+
if (modal) this.hideModal(modal);
|
97361
|
+
modal = document.querySelector('.is-modal.imageselect.active');
|
97362
|
+
if (modal) this.hideModal(modal);
|
97363
|
+
modal = document.querySelector('.is-modal.fileselect.active');
|
97364
|
+
if (modal) this.hideModal(modal);
|
97365
|
+
modal = document.querySelector('.is-modal.audioselect.active');
|
97366
|
+
if (modal) this.hideModal(modal);
|
97367
|
+
modal = document.querySelector('.is-modal.mediaselect.active');
|
97368
|
+
if (modal) this.hideModal(modal);
|
97369
|
+
modal = document.querySelector('.is-modal.otherselect.active');
|
97370
|
+
if (modal) this.hideModal(modal);
|
97371
|
+
}
|
97357
97372
|
draggable(selector) {
|
97358
97373
|
new Draggable$2({
|
97359
97374
|
selector: selector
|