@innovastudio/contentbuilder 1.4.85 → 1.4.87
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/contentbuilder",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.87",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "public/contentbuilder/contentbuilder.esm.js",
|
|
7
7
|
"files": [
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
"js-beautify": "^1.14.0",
|
|
57
57
|
"moveable": "^0.30.0",
|
|
58
58
|
"rangy": "^1.3.0",
|
|
59
|
-
"socket.io-client": "^4.7.1",
|
|
60
59
|
"sortablejs": "^1.14.0",
|
|
61
60
|
"string-similarity-js": "^2.1.4"
|
|
62
61
|
}
|
|
@@ -58804,6 +58804,33 @@ class ColumnTool {
|
|
|
58804
58804
|
util.clearControls();
|
|
58805
58805
|
});
|
|
58806
58806
|
|
|
58807
|
+
/*
|
|
58808
|
+
const fixLayout = (row) => {
|
|
58809
|
+
let hasFixed = false;
|
|
58810
|
+
let elm = row.firstElementChild;
|
|
58811
|
+
let cols = this.builder.cols;
|
|
58812
|
+
cols.forEach(item=>{
|
|
58813
|
+
let elmClass = elm.getAttribute('class');
|
|
58814
|
+
if(elmClass) {
|
|
58815
|
+
// console.log(elmClass, item);
|
|
58816
|
+
if(elmClass.indexOf(item)!==-1) {
|
|
58817
|
+
hasFixed=true;
|
|
58818
|
+
}
|
|
58819
|
+
}
|
|
58820
|
+
});
|
|
58821
|
+
// console.log('result:' + hasFixed);
|
|
58822
|
+
if(!hasFixed) {
|
|
58823
|
+
if(this.builder.framework==='foundation') Array.from(row.children).map((item) => {
|
|
58824
|
+
if(item.classList.contains('is-row-tool')) return;
|
|
58825
|
+
if(item.classList.contains('is-col-tool')) return;
|
|
58826
|
+
if(item.classList.contains('is-rowadd-tool')) return;
|
|
58827
|
+
item.classList.remove('column');
|
|
58828
|
+
});
|
|
58829
|
+
util.fixLayout(row);
|
|
58830
|
+
}
|
|
58831
|
+
};
|
|
58832
|
+
*/
|
|
58833
|
+
|
|
58807
58834
|
// Increase
|
|
58808
58835
|
elm = columnMore.querySelector('.cell-increase');
|
|
58809
58836
|
dom.addEventListener(elm, 'click', () => {
|
|
@@ -58831,7 +58858,10 @@ class ColumnTool {
|
|
|
58831
58858
|
});
|
|
58832
58859
|
util.fixLayout(row);
|
|
58833
58860
|
}
|
|
58861
|
+
|
|
58862
|
+
// fixLayout(row);
|
|
58834
58863
|
}
|
|
58864
|
+
|
|
58835
58865
|
this.grid.increaseColumn();
|
|
58836
58866
|
|
|
58837
58867
|
// Refresh Module
|
|
@@ -58875,7 +58905,10 @@ class ColumnTool {
|
|
|
58875
58905
|
});
|
|
58876
58906
|
util.fixLayout(row);
|
|
58877
58907
|
}
|
|
58908
|
+
|
|
58909
|
+
// fixLayout(row);
|
|
58878
58910
|
}
|
|
58911
|
+
|
|
58879
58912
|
this.grid.decreaseColumn();
|
|
58880
58913
|
|
|
58881
58914
|
// Refresh Module
|
|
@@ -77583,6 +77616,9 @@ class Dictation {
|
|
|
77583
77616
|
transform: rotate(450deg);
|
|
77584
77617
|
}
|
|
77585
77618
|
}
|
|
77619
|
+
.inp-command::placeholder {
|
|
77620
|
+
color: #aaa;
|
|
77621
|
+
}
|
|
77586
77622
|
</style>
|
|
77587
77623
|
<div class="is-overlay page-command-overlay">
|
|
77588
77624
|
<svg class="spinner" width="40px" height="40px" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -77980,14 +78016,15 @@ class Dictation {
|
|
|
77980
78016
|
if (transcript && message.data.is_final) {
|
|
77981
78017
|
finalTranscripts += ' ' + transcript;
|
|
77982
78018
|
}
|
|
78019
|
+
|
|
78020
|
+
// Format
|
|
78021
|
+
finalTranscripts = finalTranscripts.charAt(0).toUpperCase() + finalTranscripts.slice(1);
|
|
78022
|
+
finalTranscripts = finalTranscripts.trim();
|
|
77983
78023
|
inpCommand.value = finalTranscripts;
|
|
77984
78024
|
clearTimeout(speechTimeout);
|
|
77985
|
-
|
|
77986
|
-
// console.log('Writing..');
|
|
77987
|
-
|
|
78025
|
+
console.log('Writing..');
|
|
77988
78026
|
speechTimeout = setTimeout(() => {
|
|
77989
|
-
|
|
77990
|
-
|
|
78027
|
+
console.log('Clear');
|
|
77991
78028
|
this.builder.commandText = '';
|
|
77992
78029
|
finalTranscripts = '';
|
|
77993
78030
|
if (this.builder.autoSendCommand) {
|