@bcc-code/vue-bcc-chat-ui 5.6.5 → 5.7.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.
@@ -22,8 +22,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
22
22
  required: false;
23
23
  default: string;
24
24
  };
25
+ displayNoMessagesText: {
26
+ type: BooleanConstructor;
27
+ required: false;
28
+ default: boolean;
29
+ };
25
30
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
31
  groupMembersFetched: (...args: any[]) => void;
32
+ chatEmpty: (...args: any[]) => void;
27
33
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
28
34
  chatUid: {
29
35
  type: StringConstructor;
@@ -47,10 +53,17 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
47
53
  required: false;
48
54
  default: string;
49
55
  };
56
+ displayNoMessagesText: {
57
+ type: BooleanConstructor;
58
+ required: false;
59
+ default: boolean;
60
+ };
50
61
  }>> & Readonly<{
51
62
  onGroupMembersFetched?: ((...args: any[]) => any) | undefined;
63
+ onChatEmpty?: ((...args: any[]) => any) | undefined;
52
64
  }>, {
53
65
  hideDeletedMessages: boolean;
54
66
  loadMessageId: string;
67
+ displayNoMessagesText: boolean;
55
68
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
56
69
  export default _default;
@@ -23677,7 +23677,7 @@ class hFe {
23677
23677
  }
23678
23678
  Fi = new WeakMap(), hi = new WeakMap(), El = new WeakMap(), hu = new WeakMap(), $o = new WeakSet(), mh = function(t, r, n) {
23679
23679
  const a = structuredClone(n) ?? {};
23680
- a.chatVersion = "5.6.5";
23680
+ a.chatVersion = "5.7.0";
23681
23681
  const i = {
23682
23682
  logUid: window.crypto.randomUUID(),
23683
23683
  correlationUid: Cr(this, El),
@@ -87160,9 +87160,10 @@ const _ct = {
87160
87160
  type: Function,
87161
87161
  required: !1
87162
87162
  },
87163
- loadMessageId: { type: String, required: !1, default: "" }
87163
+ loadMessageId: { type: String, required: !1, default: "" },
87164
+ displayNoMessagesText: { type: Boolean, required: !1, default: !0 }
87164
87165
  },
87165
- emits: ["groupMembersFetched"],
87166
+ emits: ["groupMembersFetched", "chatEmpty"],
87166
87167
  setup(e, { emit: t }) {
87167
87168
  const r = e, n = X(
87168
87169
  `component-${Math.random().toString(36).substring(2, 11)}`
@@ -87216,7 +87217,7 @@ const _ct = {
87216
87217
  Pr.getGroupMessages(T, {
87217
87218
  per_page: 1,
87218
87219
  affix: "prepend"
87219
- }).total === 0 ? o.value = !0 : o.value = !1;
87220
+ }).total === 0 ? (o.value = !0, l("chatEmpty")) : o.value = !1;
87220
87221
  }, 1500), z ? s.value = [] : T1(T).then((W) => s.value = W);
87221
87222
  }
87222
87223
  await wn.clearGroupChatCount(r.chatUid);
@@ -87328,7 +87329,7 @@ const _ct = {
87328
87329
  ]))) : (k(), j("div", jct, S[2] || (S[2] = [
87329
87330
  Ce("span", null, "Connecting...", -1)
87330
87331
  ]))),
87331
- o.value && a.value ? (k(), j("div", Vct, S[6] || (S[6] = [
87332
+ o.value && a.value && e.displayNoMessagesText ? (k(), j("div", Vct, S[6] || (S[6] = [
87332
87333
  Ce("span", null, "No messages have been sent yet", -1)
87333
87334
  ]))) : ze("", !0)
87334
87335
  ], 2));