ninegrid2 6.374.0 → 6.376.0

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.
@@ -130,6 +130,7 @@ class aiMessage extends HTMLElement
130
130
  `;
131
131
 
132
132
  this.shadowRoot.querySelector(".grid").innerHTML = html;
133
+ this.scrollIntoView({ behavior: "smooth", block: "end" });
133
134
 
134
135
  setTimeout(() => {
135
136
  const grd = this.shadowRoot.querySelector("nine-grid");
@@ -227,7 +228,7 @@ class aiChat extends HTMLElement
227
228
  add = (sender, message, data) => {
228
229
  const target = this.shadowRoot.querySelector(".chat-body");
229
230
 
230
- console.log(data);
231
+ //console.log(data);
231
232
 
232
233
  let el;
233
234
  switch (sender) {
@@ -259,7 +260,8 @@ class aiChat extends HTMLElement
259
260
  default:
260
261
  break;
261
262
  }
262
-
263
+
264
+ el.scrollIntoView({ behavior: "smooth", block: "end" });
263
265
  };
264
266
  }
265
267
 
@@ -27472,6 +27472,7 @@ class aiMessage extends HTMLElement
27472
27472
  `;
27473
27473
 
27474
27474
  this.shadowRoot.querySelector(".grid").innerHTML = html;
27475
+ this.scrollIntoView({ behavior: "smooth", block: "end" });
27475
27476
 
27476
27477
  setTimeout(() => {
27477
27478
  const grd = this.shadowRoot.querySelector("nine-grid");
@@ -27569,7 +27570,7 @@ class aiChat extends HTMLElement
27569
27570
  add = (sender, message, data) => {
27570
27571
  const target = this.shadowRoot.querySelector(".chat-body");
27571
27572
 
27572
- console.log(data);
27573
+ //console.log(data);
27573
27574
 
27574
27575
  let el;
27575
27576
  switch (sender) {
@@ -27598,7 +27599,8 @@ class aiChat extends HTMLElement
27598
27599
  target.appendChild(el);
27599
27600
  break;
27600
27601
  }
27601
-
27602
+
27603
+ el.scrollIntoView({ behavior: "smooth", block: "end" });
27602
27604
  };
27603
27605
  }
27604
27606
 
@@ -27470,6 +27470,7 @@ class aiMessage extends HTMLElement
27470
27470
  `;
27471
27471
 
27472
27472
  this.shadowRoot.querySelector(".grid").innerHTML = html;
27473
+ this.scrollIntoView({ behavior: "smooth", block: "end" });
27473
27474
 
27474
27475
  setTimeout(() => {
27475
27476
  const grd = this.shadowRoot.querySelector("nine-grid");
@@ -27567,7 +27568,7 @@ class aiChat extends HTMLElement
27567
27568
  add = (sender, message, data) => {
27568
27569
  const target = this.shadowRoot.querySelector(".chat-body");
27569
27570
 
27570
- console.log(data);
27571
+ //console.log(data);
27571
27572
 
27572
27573
  let el;
27573
27574
  switch (sender) {
@@ -27596,7 +27597,8 @@ class aiChat extends HTMLElement
27596
27597
  target.appendChild(el);
27597
27598
  break;
27598
27599
  }
27599
-
27600
+
27601
+ el.scrollIntoView({ behavior: "smooth", block: "end" });
27600
27602
  };
27601
27603
  }
27602
27604
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.374.0",
4
+ "version": "6.376.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -130,6 +130,7 @@ class aiMessage extends HTMLElement
130
130
  `;
131
131
 
132
132
  this.shadowRoot.querySelector(".grid").innerHTML = html;
133
+ this.scrollIntoView({ behavior: "smooth", block: "end" });
133
134
 
134
135
  setTimeout(() => {
135
136
  const grd = this.shadowRoot.querySelector("nine-grid");
@@ -227,7 +228,7 @@ class aiChat extends HTMLElement
227
228
  add = (sender, message, data) => {
228
229
  const target = this.shadowRoot.querySelector(".chat-body");
229
230
 
230
- console.log(data);
231
+ //console.log(data);
231
232
 
232
233
  let el;
233
234
  switch (sender) {
@@ -259,7 +260,8 @@ class aiChat extends HTMLElement
259
260
  default:
260
261
  break;
261
262
  }
262
-
263
+
264
+ el.scrollIntoView({ behavior: "smooth", block: "end" });
263
265
  };
264
266
  }
265
267