@innovastudio/contentbuilder 1.5.98 → 1.5.100
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
@@ -49839,10 +49839,13 @@ class Module {
|
|
49839
49839
|
let btnOk = moduleModal.querySelector('.input-ok');
|
49840
49840
|
dom.addEventListener(btnOk, 'click', () => {
|
49841
49841
|
let modalIframe = moduleModal.querySelector('iframe');
|
49842
|
-
if (modalIframe.contentWindow.construct) modalIframe.contentWindow.construct();
|
49842
|
+
if (modalIframe.contentWindow.construct) modalIframe.contentWindow.construct(); // transfer module code to hidContentModuleCode & hidContentModuleSettings for saving
|
49843
|
+
|
49843
49844
|
this.builder.uo.saveForUndo();
|
49844
49845
|
let module = this.builder.activeModule;
|
49845
49846
|
|
49847
|
+
// The saving (saved in data attributes)
|
49848
|
+
|
49846
49849
|
//Save Html (original)
|
49847
49850
|
module.setAttribute('data-html', encodeURIComponent(builderStuff.querySelector('#hidContentModuleCode').value));
|
49848
49851
|
|
@@ -50048,6 +50051,7 @@ class Module {
|
|
50048
50051
|
class Code {
|
50049
50052
|
constructor(builder) {
|
50050
50053
|
this.builder = builder;
|
50054
|
+
this.renderTool();
|
50051
50055
|
}
|
50052
50056
|
renderTool() {
|
50053
50057
|
const builderStuff = this.builder.builderStuff;
|
@@ -97467,6 +97471,7 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
97467
97471
|
}
|
97468
97472
|
this.ai_width = width;
|
97469
97473
|
this.ai_height = height;
|
97474
|
+
if (this.settings.onStartRequest) this.settings.onStartRequest();
|
97470
97475
|
const messages = {
|
97471
97476
|
model,
|
97472
97477
|
prompt: prompt,
|
@@ -97477,8 +97482,12 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
97477
97482
|
guidance,
|
97478
97483
|
scheduler,
|
97479
97484
|
output_format: 'jpeg',
|
97480
|
-
folder_path: ''
|
97485
|
+
folder_path: '',
|
97486
|
+
metadata: this.settings.metadata || {}
|
97481
97487
|
};
|
97488
|
+
|
97489
|
+
// console.log(messages);
|
97490
|
+
|
97482
97491
|
try {
|
97483
97492
|
let url = this.textToImageUrl;
|
97484
97493
|
let headers = {
|