@innovastudio/contentbuilder 1.5.99 → 1.5.101
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
@@ -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
|
|
@@ -86568,6 +86571,7 @@ ${answer}
|
|
86568
86571
|
let temperature = localStorage.getItem('_temp') || this.builder.temperature;
|
86569
86572
|
let topP = localStorage.getItem('_top_p') || this.builder.topP;
|
86570
86573
|
let num = 1;
|
86574
|
+
if (this.builder.settings.onStartRequest) this.builder.settings.onStartRequest();
|
86571
86575
|
const messages = {
|
86572
86576
|
question,
|
86573
86577
|
context,
|
@@ -86575,8 +86579,12 @@ ${answer}
|
|
86575
86579
|
functs,
|
86576
86580
|
temperature,
|
86577
86581
|
topP,
|
86578
|
-
num
|
86582
|
+
num,
|
86583
|
+
metadata: this.builder.settings.metadata || {}
|
86579
86584
|
};
|
86585
|
+
|
86586
|
+
// console.log(messages);
|
86587
|
+
|
86580
86588
|
try {
|
86581
86589
|
/*
|
86582
86590
|
const response = await fetch(this.builder.sendCommandUrl, {
|
@@ -97468,6 +97476,7 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
97468
97476
|
}
|
97469
97477
|
this.ai_width = width;
|
97470
97478
|
this.ai_height = height;
|
97479
|
+
if (this.settings.onStartRequest) this.settings.onStartRequest();
|
97471
97480
|
const messages = {
|
97472
97481
|
model,
|
97473
97482
|
prompt: prompt,
|
@@ -97478,8 +97487,12 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
97478
97487
|
guidance,
|
97479
97488
|
scheduler,
|
97480
97489
|
output_format: 'jpeg',
|
97481
|
-
folder_path: ''
|
97490
|
+
folder_path: '',
|
97491
|
+
metadata: this.settings.metadata || {}
|
97482
97492
|
};
|
97493
|
+
|
97494
|
+
// console.log(messages);
|
97495
|
+
|
97483
97496
|
try {
|
97484
97497
|
let url = this.textToImageUrl;
|
97485
97498
|
let headers = {
|