@innovastudio/contentbuilder 1.4.72 → 1.4.73
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -18588,6 +18588,7 @@ class Draggable$1 {
|
|
18588
18588
|
dragEnd(e) {
|
18589
18589
|
if (!e.target.hasAttribute('draggable')) return; //any child element (ex. close button) should not be draggable. LATER: revew.
|
18590
18590
|
|
18591
|
+
if (!activeDraggableBox) return;
|
18591
18592
|
e.target.parentNode.style.transition = '';
|
18592
18593
|
|
18593
18594
|
//Update
|
@@ -77411,9 +77412,18 @@ class Dictation {
|
|
77411
77412
|
list,
|
77412
77413
|
width
|
77413
77414
|
} = commandInfo[key];
|
77414
|
-
|
77415
|
-
|
77416
|
-
|
77415
|
+
if (!this.builder.enableShortCommands) {
|
77416
|
+
if (key === 'general') {
|
77417
|
+
htmlList += `<h2>${title}</h2>`;
|
77418
|
+
for (const item of list) {
|
77419
|
+
if (width) htmlList += `<div role="button" tabindex="0" class="command-item" style="width:${width}">${item}</div>`;else htmlList += `<div role="button" tabindex="0" class="command-item">${item}</div>`;
|
77420
|
+
}
|
77421
|
+
}
|
77422
|
+
} else {
|
77423
|
+
htmlList += `<h2>${title}</h2>`;
|
77424
|
+
for (const item of list) {
|
77425
|
+
if (width) htmlList += `<div role="button" tabindex="0" class="command-item" style="width:${width}">${item}</div>`;else htmlList += `<div role="button" tabindex="0" class="command-item">${item}</div>`;
|
77426
|
+
}
|
77417
77427
|
}
|
77418
77428
|
}
|
77419
77429
|
}
|
@@ -78615,6 +78625,7 @@ class ContentBuilder {
|
|
78615
78625
|
isContentBox: false,
|
78616
78626
|
sendCommandUrl: 'http://localhost:8081/answer',
|
78617
78627
|
//sampleCommand: '',
|
78628
|
+
enableShortCommands: true,
|
78618
78629
|
speechRecognitionLang: 'en-US',
|
78619
78630
|
headlineList: ['We create simple and effective designs.', 'Ultimate Experiences With Story, Emotion, And Purpose.', 'Build Anything Beautifully', 'With Less Stuff and More Compassion', 'We\'re [CompanyName]. Full stack development with a spark of creativity.', 'Transforming your digital experience with [CompanyName]. Achieve your online goals with our customized solutions.', 'Revolutionizing web development with [CompanyName]. Unleash your digital potential with our high-performance solutions.', 'Creative and Inspiring'],
|
78620
78631
|
shortCommandList: {
|