@innovastudio/contentbox 1.6.155 → 1.6.157
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
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@innovastudio/contentbox",
|
3
3
|
"type": "module",
|
4
|
-
"version": "1.6.
|
4
|
+
"version": "1.6.157",
|
5
5
|
"description": "",
|
6
6
|
"main": "public/contentbox/contentbox.esm.js",
|
7
7
|
"types": "index.d.ts",
|
@@ -59,7 +59,7 @@
|
|
59
59
|
"ws": "^8.13.0"
|
60
60
|
},
|
61
61
|
"dependencies": {
|
62
|
-
"@innovastudio/contentbuilder": "^1.5.
|
62
|
+
"@innovastudio/contentbuilder": "^1.5.152",
|
63
63
|
"js-beautify": "^1.14.0",
|
64
64
|
"sortablejs": "^1.15.2"
|
65
65
|
}
|
@@ -25779,16 +25779,30 @@ class ControlPanel {
|
|
25779
25779
|
this.builder.iframePanel.setScreenMode('desktop');
|
25780
25780
|
}
|
25781
25781
|
} else if (this.builder.iframeSrc && this.builder.controlPanel) {
|
25782
|
-
const controlPanel = this.controlPanel;
|
25783
|
-
const btnToggleDevice = controlPanel.querySelector('.btn-toggledevice');
|
25782
|
+
// const controlPanel = this.controlPanel;
|
25783
|
+
// const btnToggleDevice = controlPanel.querySelector('.btn-toggledevice');
|
25784
|
+
// const screenMode = this.builder.screenMode;
|
25785
|
+
// if(screenMode!=='fullview') {
|
25786
|
+
// this.builder.iframePanel.setScreenMode('fullview');
|
25787
|
+
// btnToggleDevice.classList.remove('on');
|
25788
|
+
// } else {
|
25789
|
+
// this.builder.iframePanel.setScreenMode('desktop');
|
25790
|
+
// btnToggleDevice.classList.add('on');
|
25791
|
+
// }
|
25784
25792
|
const screenMode = this.builder.screenMode;
|
25785
25793
|
|
25786
|
-
if (screenMode
|
25787
|
-
this.builder.iframePanel.setScreenMode('fullview');
|
25788
|
-
btnToggleDevice.classList.remove('on');
|
25789
|
-
} else {
|
25794
|
+
if (screenMode === 'desktop-lg') {
|
25790
25795
|
this.builder.iframePanel.setScreenMode('desktop');
|
25791
|
-
|
25796
|
+
} else if (screenMode === 'desktop') {
|
25797
|
+
this.builder.iframePanel.setScreenMode('tablet-landscape');
|
25798
|
+
} else if (screenMode === 'tablet-landscape') {
|
25799
|
+
this.builder.iframePanel.setScreenMode('tablet');
|
25800
|
+
} else if (screenMode === 'tablet') {
|
25801
|
+
this.builder.iframePanel.setScreenMode('mobile');
|
25802
|
+
} else if (screenMode === 'mobile') {
|
25803
|
+
this.builder.iframePanel.setScreenMode('fullview');
|
25804
|
+
} else if (screenMode === 'fullview') {
|
25805
|
+
this.builder.iframePanel.setScreenMode('desktop-lg');
|
25792
25806
|
}
|
25793
25807
|
}
|
25794
25808
|
}
|
@@ -113919,6 +113933,7 @@ ${answer}
|
|
113919
113933
|
temperature,
|
113920
113934
|
topP,
|
113921
113935
|
num,
|
113936
|
+
customData: this.builder.settings.customData,
|
113922
113937
|
metadata: this.builder.settings.metadata || {}
|
113923
113938
|
};
|
113924
113939
|
|
@@ -125129,10 +125144,9 @@ Please obtain a license at: https://innovastudio.com/contentbox`);
|
|
125129
125144
|
let inputCheckStatus = {
|
125130
125145
|
model: modelId,
|
125131
125146
|
endpoint: statusEndpoint,
|
125132
|
-
request_id: requestId
|
125133
|
-
|
125147
|
+
request_id: requestId,
|
125148
|
+
customData: this.customData
|
125134
125149
|
};
|
125135
|
-
|
125136
125150
|
let status;
|
125137
125151
|
do {
|
125138
125152
|
const response = await fetch(this.checkRequestStatusUrl_Fal, {
|
@@ -134741,9 +134755,6 @@ class Util {
|
|
134741
134755
|
libraryInstance.init();
|
134742
134756
|
</script>
|
134743
134757
|
|
134744
|
-
<!-- Optional: smooth scrolling -->
|
134745
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/smoothscroll/1.4.10/SmoothScroll.min.js"></script>
|
134746
|
-
|
134747
134758
|
</body>
|
134748
134759
|
</html>
|
134749
134760
|
`;
|
@@ -154493,18 +154504,16 @@ class IframePanel {
|
|
154493
154504
|
tool.querySelectorAll('button').forEach(btn => btn.classList.remove('active'));
|
154494
154505
|
const btn = tool.querySelector(`[data-command="${screenMode}"]`);
|
154495
154506
|
if (btn) btn.classList.add('active'); // set on/off toggle device button
|
154496
|
-
|
154497
|
-
|
154498
|
-
|
154499
|
-
|
154500
|
-
|
154501
|
-
|
154502
|
-
|
154503
|
-
|
154504
|
-
|
154505
|
-
|
154506
|
-
}
|
154507
|
-
}
|
154507
|
+
// if(this.builder.controlpanel) {
|
154508
|
+
// const btnToggleDevice = this.builder.controlpanel.controlPanel.querySelector('.btn-toggledevice');
|
154509
|
+
// if(btnToggleDevice) {
|
154510
|
+
// if(screenMode!=='fullview') {
|
154511
|
+
// btnToggleDevice.classList.add('on');
|
154512
|
+
// } else {
|
154513
|
+
// btnToggleDevice.classList.remove('on');
|
154514
|
+
// }
|
154515
|
+
// }
|
154516
|
+
// }
|
154508
154517
|
|
154509
154518
|
this.loadIframe();
|
154510
154519
|
let btns = tool.querySelectorAll('button');
|
@@ -154679,19 +154688,17 @@ class IframePanel {
|
|
154679
154688
|
}
|
154680
154689
|
|
154681
154690
|
if (screenMode !== 'fullview') tool.querySelector(`button[data-command="${screenMode}"]`).classList.add('active'); // set on/off toggle device button
|
154682
|
-
|
154683
|
-
|
154684
|
-
|
154685
|
-
|
154686
|
-
|
154687
|
-
|
154688
|
-
|
154689
|
-
|
154690
|
-
|
154691
|
-
|
154692
|
-
|
154693
|
-
} // Refresh Part 2
|
154694
|
-
|
154691
|
+
// if(this.builder.controlpanel) {
|
154692
|
+
// const btnToggleDevice = this.builder.controlpanel.controlPanel.querySelector('.btn-toggledevice');
|
154693
|
+
// if(btnToggleDevice) {
|
154694
|
+
// if(screenMode!=='fullview') {
|
154695
|
+
// btnToggleDevice.classList.add('on');
|
154696
|
+
// } else {
|
154697
|
+
// btnToggleDevice.classList.remove('on');
|
154698
|
+
// }
|
154699
|
+
// }
|
154700
|
+
// }
|
154701
|
+
// Refresh Part 2
|
154695
154702
|
|
154696
154703
|
if (hasPin) {
|
154697
154704
|
setTimeout(() => {
|