@everchron/ec-shards 14.23.7 → 14.23.8

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/dist/ec-shards.js CHANGED
@@ -5287,23 +5287,36 @@ function fr(e, s, t, a, n, i) {
5287
5287
  const N_ = /* @__PURE__ */ _(dr, [["render", fr], ["__scopeId", "data-v-cfd8e718"]]), gr = {
5288
5288
  name: "ecs-chat-conversation",
5289
5289
  mounted() {
5290
- this.scrollToBottom(), this.setupMutationObserver();
5290
+ this.scrollToBottom();
5291
5291
  },
5292
+ /*
5292
5293
  beforeUnmount() {
5293
- this.observer && this.observer.disconnect();
5294
- },
5294
+ if (this.observer) {
5295
+ this.observer.disconnect();
5296
+ }
5297
+ },*/
5295
5298
  methods: {
5296
5299
  scrollToBottom() {
5297
- console.log("No Scroll");
5298
- },
5299
- setupMutationObserver() {
5300
- const e = this.$refs.conversationContainer;
5301
- e && (console.log("No Mutation Observer"), this.observer.observe(e, {
5302
- childList: !0,
5303
- subtree: !0,
5304
- characterData: !0
5305
- }));
5300
+ console.log("No Scroll Bottom");
5306
5301
  }
5302
+ /*
5303
+ setupMutationObserver() {
5304
+ const container = this.$refs.conversationContainer;
5305
+ if (!container) return;
5306
+
5307
+ // Create a mutation observer to detect when children are added to the slot
5308
+
5309
+ this.observer = new MutationObserver(() => {
5310
+ this.scrollToBottom();
5311
+ });
5312
+ console.log('Mutation Observer');
5313
+ // Start observing the container for changes to its children
5314
+ this.observer.observe(container, {
5315
+ childList: true,
5316
+ subtree: true,
5317
+ characterData: true
5318
+ });
5319
+ }*/
5307
5320
  }
5308
5321
  }, mr = {
5309
5322
  class: "ecs-chat-conversation scrollbar",
@@ -5314,7 +5327,7 @@ function hr(e, s, t, a, n, i) {
5314
5327
  p(e.$slots, "default", {}, void 0, !0)
5315
5328
  ], 512);
5316
5329
  }
5317
- const V_ = /* @__PURE__ */ _(gr, [["render", hr], ["__scopeId", "data-v-e8691eff"]]), pr = {
5330
+ const V_ = /* @__PURE__ */ _(gr, [["render", hr], ["__scopeId", "data-v-352ec4c8"]]), pr = {
5318
5331
  name: "ecs-chat-message",
5319
5332
  components: { EcsAvatar: nt, EcsIcon: O },
5320
5333
  props: {
@@ -5420,7 +5433,7 @@ function Sr(e, s, t, a, n, i) {
5420
5433
  ])) : u("", !0)
5421
5434
  ], 10, vr);
5422
5435
  }
5423
- const F_ = /* @__PURE__ */ _(pr, [["render", Sr], ["__scopeId", "data-v-c86bbeb0"]]);
5436
+ const F_ = /* @__PURE__ */ _(pr, [["render", Sr], ["__scopeId", "data-v-b82a6719"]]);
5424
5437
  var Ze = {}, Ns;
5425
5438
  function Cr() {
5426
5439
  if (Ns) return Ze;