@innovastudio/contentbuilder 1.5.191 → 1.5.193

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
@@ -236,6 +236,7 @@ interface ContentBuilderOptions {
236
236
  defaultChatSettings?: Record<string, any>;
237
237
  demoMode?: boolean;
238
238
  demoConversations?: any[];
239
+ startCodeChat?: boolean;
239
240
 
240
241
  //-- Asset Manager
241
242
  listFilesUrl?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.5.191",
4
+ "version": "1.5.193",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "types": "index.d.ts",
@@ -6471,6 +6471,8 @@ class Util {
6471
6471
  localStorage.removeItem('_command_lang');
6472
6472
  localStorage.removeItem('_ai_panel_open');
6473
6473
  localStorage.removeItem('_pagesize');
6474
+ localStorage.removeItem('chatPanelVisible');
6475
+ localStorage.removeItem('chatSettings');
6474
6476
 
6475
6477
  //NOT USED
6476
6478
  localStorage.removeItem('_scrollableeditor');
@@ -89419,8 +89421,13 @@ class CodeChat {
89419
89421
  const savedState = localStorage.getItem('chatPanelVisible');
89420
89422
  let isChatVisible = savedState === 'true'; // Only open if explicitly set to 'true'
89421
89423
  if (!isChatVisible) {
89422
- modal.classList.add('hidden');
89423
- modal.setAttribute('aria-hidden', 'true');
89424
+ if (this.builder.startCodeChat) {
89425
+ modal.classList.remove('hidden');
89426
+ modal.removeAttribute('aria-hidden');
89427
+ } else {
89428
+ modal.classList.add('hidden');
89429
+ modal.setAttribute('aria-hidden', 'true');
89430
+ }
89424
89431
  } else {
89425
89432
  modal.classList.remove('hidden');
89426
89433
  modal.removeAttribute('aria-hidden');
@@ -91045,7 +91052,7 @@ ${this.builder.html()}
91045
91052
  banner.className = 'demo-banner';
91046
91053
  banner.innerHTML = `
91047
91054
  <div style="
91048
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
91055
+ background: linear-gradient(135deg, #527cff 0%, #5563db 100%);
91049
91056
  color: white;
91050
91057
  padding: 12px 16px;
91051
91058
  border-radius: 8px;
@@ -95287,6 +95294,10 @@ class ContentBuilder {
95287
95294
  const style = window.getComputedStyle(row);
95288
95295
  const gapValue = parseFloat(style.gap) || 0;
95289
95296
  const columns = row.querySelectorAll('.column');
95297
+ columns.forEach(col => {
95298
+ if (col.style.width === '100%') col.style.width = ''; // cleanup
95299
+ });
95300
+
95290
95301
  let allHaveWidth = true;
95291
95302
  let totalWidthPercent = 0;
95292
95303
  columns.forEach(col => {