@innovastudio/contentbuilder 1.4.91 → 1.4.92

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.91",
4
+ "version": "1.4.92",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -78138,13 +78138,13 @@ class Dictation {
78138
78138
  inpCommand.setAttribute('placeholder', '');
78139
78139
  } else {
78140
78140
  if (val === 'general') {
78141
- inpCommand.setAttribute('placeholder', this.builder.commandPlaceholders.general);
78141
+ inpCommand.setAttribute('placeholder', this.builder.commandPlaceholders.general || '');
78142
78142
  } else if (val === 'block') {
78143
- inpCommand.setAttribute('placeholder', this.builder.commandPlaceholders.edit_block);
78143
+ inpCommand.setAttribute('placeholder', this.builder.commandPlaceholders.edit_block || '');
78144
78144
  } else if (val === 'others') {
78145
- inpCommand.setAttribute('placeholder', this.builder.commandPlaceholders.ask_questions);
78145
+ inpCommand.setAttribute('placeholder', this.builder.commandPlaceholders.ask_questions || '');
78146
78146
  } else if (val === 'image') {
78147
- inpCommand.setAttribute('placeholder', this.builder.commandPlaceholders.generate_image);
78147
+ inpCommand.setAttribute('placeholder', this.builder.commandPlaceholders.generate_image || '');
78148
78148
  }
78149
78149
  }
78150
78150
 
@@ -78282,7 +78282,11 @@ class Dictation {
78282
78282
  this.builder.hidePlaceholder = true;
78283
78283
  inpCommand.setAttribute('placeholder', '');
78284
78284
  } else {
78285
- inpCommand.setAttribute('placeholder', this.builder.commandPlaceholders.general);
78285
+ if (!this.builder.commandPlaceholders) {
78286
+ this.builder.commandPlaceholders = {};
78287
+ this.builder.commandPlaceholders.general = '';
78288
+ }
78289
+ inpCommand.setAttribute('placeholder', this.builder.commandPlaceholders.general || '');
78286
78290
  }
78287
78291
  }
78288
78292
  openDictation() {
@@ -79370,7 +79374,6 @@ class ContentBuilder {
79370
79374
  onlineDemo: false,
79371
79375
  autoSendDelay: 4000,
79372
79376
  autoEditBlock: false,
79373
- commandPlaceholderText: '',
79374
79377
  enableShortCommands: true,
79375
79378
  speechRecognitionLang: 'en-US',
79376
79379
  assistantMode: 'general',