@innovastudio/contentbox 1.6.177 → 1.6.178

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/index.d.ts CHANGED
@@ -322,6 +322,7 @@ interface ContentBoxOptions {
322
322
  defaultChatSettings?: Record<string, any>;
323
323
  demoMode?: boolean;
324
324
  demoConversations?: any[];
325
+ startCodeChat?: boolean;
325
326
 
326
327
  //-- Asset Manager
327
328
  listFilesUrl?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbox",
3
3
  "type": "module",
4
- "version": "1.6.177",
4
+ "version": "1.6.178",
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.191",
62
+ "@innovastudio/contentbuilder": "^1.5.192",
63
63
  "js-beautify": "^1.14.0",
64
64
  "marked": "^17.0.0",
65
65
  "sortablejs": "^1.15.2"
@@ -34244,6 +34244,8 @@ class Util$1 {
34244
34244
  localStorage.removeItem('_command_lang');
34245
34245
  localStorage.removeItem('_ai_panel_open');
34246
34246
  localStorage.removeItem('_pagesize');
34247
+ localStorage.removeItem('chatPanelVisible');
34248
+ localStorage.removeItem('chatSettings');
34247
34249
 
34248
34250
  //NOT USED
34249
34251
  localStorage.removeItem('_scrollableeditor');
@@ -117192,8 +117194,13 @@ class CodeChat$1 {
117192
117194
  const savedState = localStorage.getItem('chatPanelVisible');
117193
117195
  let isChatVisible = savedState === 'true'; // Only open if explicitly set to 'true'
117194
117196
  if (!isChatVisible) {
117195
- modal.classList.add('hidden');
117196
- modal.setAttribute('aria-hidden', 'true');
117197
+ if (this.builder.startCodeChat) {
117198
+ modal.classList.remove('hidden');
117199
+ modal.removeAttribute('aria-hidden');
117200
+ } else {
117201
+ modal.classList.add('hidden');
117202
+ modal.setAttribute('aria-hidden', 'true');
117203
+ }
117197
117204
  } else {
117198
117205
  modal.classList.remove('hidden');
117199
117206
  modal.removeAttribute('aria-hidden');
@@ -118818,7 +118825,7 @@ ${this.builder.html()}
118818
118825
  banner.className = 'demo-banner';
118819
118826
  banner.innerHTML = `
118820
118827
  <div style="
118821
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
118828
+ background: linear-gradient(135deg, #527cff 0%, #5563db 100%);
118822
118829
  color: white;
118823
118830
  padding: 12px 16px;
118824
118831
  border-radius: 8px;