@innovastudio/contentbuilder 1.5.99 → 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
|
|
@@ -97468,6 +97471,7 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
97468
97471
|
}
|
97469
97472
|
this.ai_width = width;
|
97470
97473
|
this.ai_height = height;
|
97474
|
+
if (this.settings.onStartRequest) this.settings.onStartRequest();
|
97471
97475
|
const messages = {
|
97472
97476
|
model,
|
97473
97477
|
prompt: prompt,
|
@@ -97478,8 +97482,12 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
97478
97482
|
guidance,
|
97479
97483
|
scheduler,
|
97480
97484
|
output_format: 'jpeg',
|
97481
|
-
folder_path: ''
|
97485
|
+
folder_path: '',
|
97486
|
+
metadata: this.settings.metadata || {}
|
97482
97487
|
};
|
97488
|
+
|
97489
|
+
// console.log(messages);
|
97490
|
+
|
97483
97491
|
try {
|
97484
97492
|
let url = this.textToImageUrl;
|
97485
97493
|
let headers = {
|