@innovastudio/contentbuilder 1.5.147 → 1.5.149
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
@@ -15744,7 +15744,7 @@ const prepareSvgIcons = builder => {
|
|
15744
15744
|
<circle cx="12" cy="16" r="1" />
|
15745
15745
|
<path d="M8 11v-4a4 4 0 0 1 8 0v4" />
|
15746
15746
|
</symbol>
|
15747
|
-
<symbol viewBox="0 0 24 24" id="icon-code" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
15747
|
+
<symbol viewBox="0 0 24 24" id="icon-code" stroke-width="1.4" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
15748
15748
|
<path stroke="none" d="M0 0h24v24H0z"/>
|
15749
15749
|
<polyline points="7 8 3 12 7 16" />
|
15750
15750
|
<polyline points="17 8 21 12 17 16" />
|
@@ -16032,7 +16032,7 @@ const prepareSvgIcons = builder => {
|
|
16032
16032
|
<path d="M17 17h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-14a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h2" /><path d="M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4" /><path d="M7 13m0 2a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2z" />
|
16033
16033
|
</symbol>
|
16034
16034
|
|
16035
|
-
<symbol id="icon-plus" viewBox="0 0 24 24" stroke-width="1.
|
16035
|
+
<symbol id="icon-plus" viewBox="0 0 24 24" stroke-width="1.4" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
16036
16036
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
16037
16037
|
<line x1="12" y1="5" x2="12" y2="19"></line>
|
16038
16038
|
<line x1="5" y1="12" x2="19" y2="12"></line>
|
@@ -83887,6 +83887,10 @@ class Dictation {
|
|
83887
83887
|
const inpCommandLang = this.modalConfig.querySelector('.input-command-lang');
|
83888
83888
|
localStorage.setItem('_command_lang', inpCommandLang.value);
|
83889
83889
|
this.builder.speechRecognitionLang = inpCommandLang.value;
|
83890
|
+
const inpImageModelSelect = this.modalConfig.querySelector('#inpImageModelSelect');
|
83891
|
+
localStorage.setItem('_image_model', inpImageModelSelect.value);
|
83892
|
+
const inpImageSizeSelect = this.modalConfig.querySelector('#inpImageSizeSelect');
|
83893
|
+
localStorage.setItem('_image_size', inpImageSizeSelect.value);
|
83890
83894
|
this.builder.hideModal(this.modalConfig);
|
83891
83895
|
});
|
83892
83896
|
const btnConfigReset = this.modalConfig.querySelector('.input-reset');
|
@@ -84167,8 +84171,12 @@ class Dictation {
|
|
84167
84171
|
let models = this.imageModels;
|
84168
84172
|
|
84169
84173
|
// Default selections
|
84170
|
-
|
84171
|
-
|
84174
|
+
let defaultModelId = this.builder.imageModel || 'fal-ai/flux-1/schnell';
|
84175
|
+
let defaultSize = this.builder.imageSize || 'landscape_4_3';
|
84176
|
+
const storedModel = localStorage.getItem('_image_model');
|
84177
|
+
if (storedModel) defaultModelId = storedModel;
|
84178
|
+
const storedSize = localStorage.getItem('_image_size');
|
84179
|
+
if (storedSize) defaultSize = storedSize;
|
84172
84180
|
|
84173
84181
|
// Helper: return available sizes for a model
|
84174
84182
|
function getSizesForModel(modelId) {
|
@@ -94059,6 +94067,19 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
94059
94067
|
} else if (this.opts.videoselect !== '') {
|
94060
94068
|
this.opts.videoSelect = this.opts.videoselect;
|
94061
94069
|
}
|
94070
|
+
if (this.opts.filePicker) {
|
94071
|
+
this.opts.imageSelect = this.opts.filePicker;
|
94072
|
+
this.opts.videoSelect = this.opts.filePicker;
|
94073
|
+
this.opts.audioSelect = this.opts.filePicker;
|
94074
|
+
this.opts.fileSelect = this.opts.filePicker;
|
94075
|
+
this.opts.mediaSelect = this.opts.filePicker;
|
94076
|
+
// this.settings.otherSelect = this.settings.filePicker; // this enables additional selector button on link dialog
|
94077
|
+
|
94078
|
+
// backward compatible
|
94079
|
+
this.settings.imageselect = this.settings.filePicker;
|
94080
|
+
this.settings.fileselect = this.settings.filePicker;
|
94081
|
+
this.settings.videoselect = this.settings.filePicker;
|
94082
|
+
}
|
94062
94083
|
if (this.assetPanelFullScreen) {
|
94063
94084
|
this.imageSelectWidth = '100vw';
|
94064
94085
|
this.imageSelectHeight = '100vh';
|