@innovastudio/contentbox 1.6.60 → 1.6.61
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.61",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "public/contentbox/contentbox.esm.js",
|
|
7
7
|
"files": [
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"ws": "^8.13.0"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@innovastudio/contentbuilder": "^1.5.
|
|
55
|
+
"@innovastudio/contentbuilder": "^1.5.53",
|
|
56
56
|
"js-beautify": "^1.14.0"
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -103197,10 +103197,16 @@ class Dictation {
|
|
|
103197
103197
|
};
|
|
103198
103198
|
this.opts = Object.assign(this, defaults, opts);
|
|
103199
103199
|
this.builder = builder;
|
|
103200
|
-
|
|
103201
|
-
|
|
103200
|
+
} // constructor
|
|
103201
|
+
|
|
103202
|
+
renderPanel() {
|
|
103202
103203
|
const builderStuff = this.builder.builderStuff;
|
|
103203
103204
|
this.builderStuff = builderStuff;
|
|
103205
|
+
const util = this.builder.util;
|
|
103206
|
+
this.util = util;
|
|
103207
|
+
|
|
103208
|
+
// const dom = this.builder.dom;
|
|
103209
|
+
|
|
103204
103210
|
if (localStorage.getItem('_mic') === null) {
|
|
103205
103211
|
localStorage.setItem('_mic', '0'); // make mic disable by default
|
|
103206
103212
|
}
|
|
@@ -104000,6 +104006,7 @@ class Dictation {
|
|
|
104000
104006
|
}
|
|
104001
104007
|
}
|
|
104002
104008
|
openDictation() {
|
|
104009
|
+
this.renderPanel();
|
|
104003
104010
|
if (this.builder.showDisclaimer) {
|
|
104004
104011
|
if (localStorage.getItem('_disclaimershown') === null) {
|
|
104005
104012
|
this.builder.util.showModal(this.modalDisclaimer, true, () => {
|
|
@@ -112479,7 +112486,7 @@ class ContentBuilder {
|
|
|
112479
112486
|
// { name: 'buttoneditor', showInMainToolbar: false, showInElementToolbar: false },
|
|
112480
112487
|
// ],
|
|
112481
112488
|
// pluginPath: 'contentbuilder/', // Location of the plugin scripts
|
|
112482
|
-
disableConfig:
|
|
112489
|
+
disableConfig: true,
|
|
112483
112490
|
// If you don't specify the plugins param and set the disableConfig to true, then no plugins will be loaded.
|
|
112484
112491
|
|
|
112485
112492
|
modulePath: 'assets/modules/',
|
|
@@ -115753,16 +115760,21 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
115753
115760
|
}
|
|
115754
115761
|
closeAIAssistant() {
|
|
115755
115762
|
let modal = document.querySelector('.is-modal.page-command');
|
|
115763
|
+
if (!modal) return;
|
|
115756
115764
|
modal.classList.remove('active');
|
|
115757
115765
|
this.dictation.stopDictation();
|
|
115758
115766
|
localStorage.setItem('_dictation', '0');
|
|
115759
115767
|
}
|
|
115760
115768
|
toggleAIAssistant() {
|
|
115761
115769
|
let modal = document.querySelector('.is-modal.page-command');
|
|
115762
|
-
if (modal
|
|
115763
|
-
this.closeAIAssistant();
|
|
115764
|
-
} else {
|
|
115770
|
+
if (!modal) {
|
|
115765
115771
|
this.openAIAssistant();
|
|
115772
|
+
} else {
|
|
115773
|
+
if (modal.classList.contains('active')) {
|
|
115774
|
+
this.closeAIAssistant();
|
|
115775
|
+
} else {
|
|
115776
|
+
this.openAIAssistant();
|
|
115777
|
+
}
|
|
115766
115778
|
}
|
|
115767
115779
|
}
|
|
115768
115780
|
|
|
@@ -146679,17 +146691,14 @@ class ContentBox {
|
|
|
146679
146691
|
// Option for self-hosted fonts:
|
|
146680
146692
|
// fontPath: 'assets/cssfonts/', // If set, will be used
|
|
146681
146693
|
plugins: [// { name: 'preview', showInMainToolbar: true, showInElementToolbar: true },
|
|
146694
|
+
// { name: 'symbols', showInMainToolbar: true, showInElementToolbar: false },
|
|
146695
|
+
// { name: 'animation', showInMainToolbar: true, showInElementToolbar: true },
|
|
146682
146696
|
{
|
|
146683
146697
|
name: 'wordcount',
|
|
146684
146698
|
showInMainToolbar: true,
|
|
146685
146699
|
showInElementToolbar: true
|
|
146686
|
-
},
|
|
146687
|
-
|
|
146688
|
-
showInMainToolbar: true,
|
|
146689
|
-
showInElementToolbar: false
|
|
146690
|
-
} // { name: 'animation', showInMainToolbar: true, showInElementToolbar: true },
|
|
146691
|
-
],
|
|
146692
|
-
disableConfig: false,
|
|
146700
|
+
}],
|
|
146701
|
+
disableConfig: true,
|
|
146693
146702
|
maxColumns: 6,
|
|
146694
146703
|
useLightbox: true,
|
|
146695
146704
|
lightboxArrow: true,
|