@innovastudio/contentbox 1.6.177 → 1.6.179

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.179",
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;
@@ -142412,6 +142419,8 @@ class Box {
142412
142419
  overlayColor = overlayBg.querySelector('.is-overlay-color');
142413
142420
  }
142414
142421
 
142422
+ if (overlayBg) overlayBg.style.opacity = ''; // clear unwanted opacity
142423
+
142415
142424
  if (this.builder.useCssClasses) {
142416
142425
  const classes = this.builder.cssClasses.opacity;
142417
142426
 
@@ -145720,8 +145729,13 @@ class CodeChat {
145720
145729
  let isChatVisible = savedState === 'true'; // Only open if explicitly set to 'true'
145721
145730
 
145722
145731
  if (!isChatVisible) {
145723
- modal.classList.add('hidden');
145724
- modal.setAttribute('aria-hidden', 'true');
145732
+ if (this.builder.startCodeChat) {
145733
+ modal.classList.remove('hidden');
145734
+ modal.removeAttribute('aria-hidden');
145735
+ } else {
145736
+ modal.classList.add('hidden');
145737
+ modal.setAttribute('aria-hidden', 'true');
145738
+ }
145725
145739
  } else {
145726
145740
  modal.classList.remove('hidden');
145727
145741
  modal.removeAttribute('aria-hidden');
@@ -147380,7 +147394,7 @@ ${this.builder.html()}
147380
147394
  banner.className = 'demo-banner';
147381
147395
  banner.innerHTML = `
147382
147396
  <div style="
147383
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
147397
+ background: linear-gradient(135deg, #527cff 0%, #5563db 100%);
147384
147398
  color: white;
147385
147399
  padding: 12px 16px;
147386
147400
  border-radius: 8px;
@@ -148579,23 +148593,15 @@ The overlay system provides background images and colors behind content.
148579
148593
  </div>
148580
148594
  </div>
148581
148595
 
148582
- ### Background Image with Color Overlay
148583
-
148584
- <div class="is-overlay" style="background-color: rgb(225, 225, 225);">
148585
- <div class="is-overlay-bg"
148586
- style="background-image: url('image.jpg');
148587
- background-position: 50% 60%;
148588
- opacity: 0.7;">
148589
- </div>
148590
- </div>
148591
-
148592
148596
  ### Dark Overlay on Image
148593
148597
 
148598
+ **Use case:** For the background behind white text content.
148599
+
148594
148600
  <div class="is-overlay">
148595
148601
  <div class="is-overlay-bg"
148596
148602
  style="background-image: url('image.jpg');
148597
148603
  background-position: 50% 60%;">
148598
- <div class="is-overlay-color opacity-12"></div>
148604
+ <div class="is-overlay-color opacity-30"></div>
148599
148605
  </div>
148600
148606
  </div>
148601
148607
 
@@ -148939,6 +148945,24 @@ The Box Framework provides structure. The Content.css Framework provides content
148939
148945
 
148940
148946
  Always use both frameworks together for complete designs.
148941
148947
 
148948
+ ### 9. Add smooth image scaling for overlay background image
148949
+
148950
+ <div class="is-section ...">
148951
+ <!-- Section content -->
148952
+ </div>
148953
+ <div class="is-section ...">
148954
+ <!-- Section content -->
148955
+ </div>
148956
+ <style>
148957
+ /* Smooth image scaling */
148958
+ .is-overlay-bg {
148959
+ transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
148960
+ }
148961
+ .is-box:hover .is-overlay-bg {
148962
+ transform: scale(1.03);
148963
+ }
148964
+ </style>
148965
+
148942
148966
  ---
148943
148967
 
148944
148968
  ## Common Patterns
@@ -148978,6 +149002,29 @@ Always use both frameworks together for complete designs.
148978
149002
  </div>
148979
149003
  </div>
148980
149004
 
149005
+ ### Pattern: Dark overlay background image behind white text content.
149006
+
149007
+ <div class="is-section is-box type-system-ui is-section-60 is-content-bottom edge-y-4">
149008
+ <div class="is-overlay">
149009
+ <div class="is-overlay-bg" style="background-image: url('assets/thelayout/images/ai-aZkV0.jpg'); background-position: 50% 40%;">
149010
+ <div class="is-overlay-color opacity-30"></div>
149011
+ </div>
149012
+ </div>
149013
+ <div class="is-container is-content-1200 text-center">
149014
+ <div class="row">
149015
+ <div class="column">
149016
+ <h2 class="size-60 font-light text-white leading-12 pb-6">Start your next chapter.</h2>
149017
+ <div class="spacer height-20"></div>
149018
+ <div>
149019
+ <a href="#" role="button" class="transition-all inline-block whitespace-nowrap cursor-pointer no-underline border-2 border-solid mt-2 mb-1 font-normal tracking-normal rounded-full py-3 px-10 size-16 leading-16 border-white hover:bg-white hover:text-black" style="color: #ffffff;">
149020
+ Visit Us Today
149021
+ </a>
149022
+ </div>
149023
+ </div>
149024
+ </div>
149025
+ </div>
149026
+ </div>
149027
+
148981
149028
  ### Pattern: Three Equal Boxes
148982
149029
 
148983
149030
  <div class="is-section type-system-ui is-section-60">
@@ -149281,6 +149328,15 @@ The frameworks provide utility classes for structure and typography. To create r
149281
149328
 
149282
149329
  <!-- Embedded Styke -->
149283
149330
  <style>
149331
+ /* Smooth image scaling */
149332
+ .is-overlay-bg {
149333
+ transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
149334
+ }
149335
+
149336
+ .is-box:hover .is-overlay-bg {
149337
+ transform: scale(1.03);
149338
+ }
149339
+
149284
149340
  /* Subtle hover zoom for background images */
149285
149341
  .is-overlay-bg {
149286
149342
  transition: transform 1s ease;