@everchron/ec-shards 14.24.0 → 14.24.2

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
@@ -5374,6 +5374,11 @@ const V_ = /* @__PURE__ */ _(gr, [["render", hr], ["__scopeId", "data-v-352ec4c8
5374
5374
  sticky: {
5375
5375
  type: Boolean,
5376
5376
  default: !1
5377
+ },
5378
+ /** Limits the height to 30vh and adds a scrollbar if the content is too long. */
5379
+ escaped: {
5380
+ type: Boolean,
5381
+ default: !1
5377
5382
  }
5378
5383
  },
5379
5384
  computed: {
@@ -5416,7 +5421,11 @@ function Sr(e, s, t, a, n, i) {
5416
5421
  ]))
5417
5422
  ], 64)) : u("", !0),
5418
5423
  f("div", {
5419
- class: "ecs-chat-message-bubble",
5424
+ class: y(["ecs-chat-message-bubble", {
5425
+ escaped: t.escaped,
5426
+ scrollbar: t.escaped,
5427
+ "scrollbar-sml": t.escaped
5428
+ }]),
5420
5429
  style: S(t.variant === "bubble" ? { backgroundColor: i.bubbleColor } : {})
5421
5430
  }, [
5422
5431
  t.variant === "bubble" ? (o(), r("svg", _r, [
@@ -5426,14 +5435,14 @@ function Sr(e, s, t, a, n, i) {
5426
5435
  }, null, 8, kr)
5427
5436
  ])) : u("", !0),
5428
5437
  t.busy ? (o(), r("span", wr, x(t.busyText), 1)) : p(e.$slots, "default", { key: 2 }, void 0, !0)
5429
- ], 4)
5438
+ ], 6)
5430
5439
  ]),
5431
5440
  e.$slots.actions ? (o(), r("div", xr, [
5432
5441
  p(e.$slots, "actions", {}, void 0, !0)
5433
5442
  ])) : u("", !0)
5434
5443
  ], 10, vr);
5435
5444
  }
5436
- const F_ = /* @__PURE__ */ _(pr, [["render", Sr], ["__scopeId", "data-v-ccee68f7"]]);
5445
+ const F_ = /* @__PURE__ */ _(pr, [["render", Sr], ["__scopeId", "data-v-ad606aa1"]]);
5437
5446
  var Ze = {}, Ns;
5438
5447
  function Cr() {
5439
5448
  if (Ns) return Ze;
@@ -6545,10 +6554,10 @@ const Mc = /* @__PURE__ */ Yt(Lc), Oc = {
6545
6554
  this.$emit("change", e);
6546
6555
  },
6547
6556
  handleMouseDown(e) {
6548
- window.addEventListener("mousemove", this.handleChange), window.addEventListener("mouseup", this.handleChange), window.addEventListener("mouseup", this.handleMouseUp);
6557
+ e.preventDefault(), document.body.style.userSelect = "none", window.addEventListener("mousemove", this.handleChange), window.addEventListener("mouseup", this.handleChange), window.addEventListener("mouseup", this.handleMouseUp);
6549
6558
  },
6550
6559
  handleMouseUp(e) {
6551
- this.unbindEventListeners();
6560
+ document.body.style.userSelect = "", this.unbindEventListeners();
6552
6561
  },
6553
6562
  unbindEventListeners() {
6554
6563
  window.removeEventListener("mousemove", this.handleChange), window.removeEventListener("mouseup", this.handleChange), window.removeEventListener("mouseup", this.handleMouseUp);
@@ -6631,10 +6640,10 @@ const Rc = /* @__PURE__ */ _(Oc, [["render", Ac]]), Dc = {
6631
6640
  }));
6632
6641
  },
6633
6642
  handleMouseDown(e) {
6634
- this.handleChange(e, !0), window.addEventListener("mousemove", this.handleChange), window.addEventListener("mouseup", this.handleMouseUp);
6643
+ e.preventDefault(), document.body.style.userSelect = "none", this.handleChange(e, !0), window.addEventListener("mousemove", this.handleChange), window.addEventListener("mouseup", this.handleMouseUp);
6635
6644
  },
6636
6645
  handleMouseUp(e) {
6637
- this.unbindEventListeners();
6646
+ document.body.style.userSelect = "", this.unbindEventListeners();
6638
6647
  },
6639
6648
  unbindEventListeners() {
6640
6649
  window.removeEventListener("mousemove", this.handleChange), window.removeEventListener("mouseup", this.handleMouseUp);
@@ -6748,10 +6757,10 @@ const zi = /* @__PURE__ */ _(Hc, [["render", Wc]]), jc = {
6748
6757
  });
6749
6758
  },
6750
6759
  handleMouseDown(e) {
6751
- this.handleChange(e, !0), window.addEventListener("mousemove", this.handleChange), window.addEventListener("mouseup", this.handleMouseUp);
6760
+ e.preventDefault(), document.body.style.userSelect = "none", this.handleChange(e, !0), window.addEventListener("mousemove", this.handleChange), window.addEventListener("mouseup", this.handleMouseUp);
6752
6761
  },
6753
6762
  handleMouseUp() {
6754
- this.unbindEventListeners();
6763
+ document.body.style.userSelect = "", this.unbindEventListeners();
6755
6764
  },
6756
6765
  unbindEventListeners() {
6757
6766
  window.removeEventListener("mousemove", this.handleChange), window.removeEventListener("mouseup", this.handleMouseUp);