tuikit-atomicx-vue3 4.5.0 → 4.5.1

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.
Files changed (109) hide show
  1. package/dist/{PopoverTrigger-L8abAry7.js → PopoverPortal-DghpKKm8.js} +91 -136
  2. package/dist/PopoverTrigger-BajjNkGO.js +54 -0
  3. package/dist/{PopperContent-XdhqL8Y2.js → PopperContent-SLoFuK7k.js} +6 -6
  4. package/dist/{Teleport-CSEuZbpM.js → Teleport-DFrneqLM.js} +4 -4
  5. package/dist/baseComp/Modal/Modal.js +3 -3
  6. package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +10 -9
  7. package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
  8. package/dist/components/BarrageInput/TextEditor/EditorCore.js +16 -15
  9. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +62 -40
  10. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +29 -27
  11. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +27 -23
  12. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue.d.ts +1 -1
  13. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +67 -65
  14. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +32 -30
  15. package/dist/components/ConversationList/ConversationPreview/utils.d.ts +2 -2
  16. package/dist/components/ConversationList/ConversationPreview/utils.js +81 -35
  17. package/dist/components/ConversationList/i18n/en-US.d.ts +10 -1
  18. package/dist/components/ConversationList/i18n/en-US.js +11 -2
  19. package/dist/components/ConversationList/i18n/zh-CN.d.ts +10 -1
  20. package/dist/components/ConversationList/i18n/zh-CN.js +11 -2
  21. package/dist/components/LiveScenePanel/index.js +10 -9
  22. package/dist/components/MessageInput/AttachmentPicker/index.js +10 -9
  23. package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +17 -16
  24. package/dist/components/MessageInput/QuotedMessagePreview/index.js +35 -35
  25. package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +13 -12
  26. package/dist/components/MessageInput/TextEditor/EditorCore.js +54 -89
  27. package/dist/components/MessageInput/TextEditor/extensions/MentionSuggestion.js +229 -0
  28. package/dist/components/MessageInput/TextEditor/extensions/MentionSuggestion.vue.d.ts +15 -0
  29. package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.js +1 -1
  30. package/dist/components/MessageInput/TextEditor/extensions/emojiExtension.d.ts +1 -0
  31. package/dist/components/MessageInput/TextEditor/extensions/emojiExtension.js +22 -0
  32. package/dist/components/MessageInput/TextEditor/extensions/enterKeyExtension.d.ts +3 -0
  33. package/dist/components/MessageInput/TextEditor/extensions/enterKeyExtension.js +15 -0
  34. package/dist/components/MessageInput/TextEditor/extensions/imageExtension.js +2 -2
  35. package/dist/components/MessageInput/TextEditor/extensions/index.d.ts +8 -0
  36. package/dist/components/MessageInput/TextEditor/extensions/index.js +12 -0
  37. package/dist/components/MessageInput/TextEditor/extensions/mentionExtension.d.ts +5 -0
  38. package/dist/components/MessageInput/TextEditor/extensions/mentionExtension.js +330 -0
  39. package/dist/components/MessageInput/TextEditor/index.js +62 -62
  40. package/dist/components/MessageInput/i18n/en-US.d.ts +3 -0
  41. package/dist/components/MessageInput/i18n/en-US.js +4 -1
  42. package/dist/components/MessageInput/i18n/index.d.ts +6 -0
  43. package/dist/components/MessageInput/i18n/zh-CN.d.ts +3 -0
  44. package/dist/components/MessageInput/i18n/zh-CN.js +4 -1
  45. package/dist/components/MessageList/Message/ImageMessage/ImageMessage.js +119 -89
  46. package/dist/components/MessageList/Message/ImageMessage/ImagePreview.js +142 -0
  47. package/dist/components/MessageList/Message/ImageMessage/ImagePreview.vue.d.ts +20 -0
  48. package/dist/components/MessageList/Message/Message.vue.d.ts +8 -0
  49. package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +3 -3
  50. package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +69 -58
  51. package/dist/components/MessageList/Message/MessageLayout/MessageLayout.vue.d.ts +8 -0
  52. package/dist/components/MessageList/Message/index.js +8 -4
  53. package/dist/components/MessageList/MessageList.js +98 -90
  54. package/dist/components/MessageList/MessageList.vue.d.ts +1 -1
  55. package/dist/components/MessageList/index.d.ts +21 -3
  56. package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +6 -6
  57. package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.vue.d.ts +1 -1
  58. package/dist/index-BvFYOUyz.js +2936 -0
  59. package/dist/{index-Do-2CngU.js → index-C8Jw_xE4.js} +1621 -1731
  60. package/dist/{index-7vNB_Vx8.js → index-CiYL_XsE.js} +1 -1
  61. package/dist/index-CzCDLp99.js +2174 -0
  62. package/dist/index.d.ts +1 -1
  63. package/dist/index.js +103 -103
  64. package/dist/states/MessageActionState/MessageActionState.js +83 -223
  65. package/dist/states/MessageInputState/MessageInputState.js +115 -83
  66. package/dist/states/MessageInputState/type.d.ts +36 -10
  67. package/dist/states/MessageInputState/utils.d.ts +1 -5
  68. package/dist/states/MessageListState/MessageListState.d.ts +1 -1
  69. package/dist/styles/index.css +1 -1
  70. package/dist/{chat/index.d.ts → subEntry/chat/chat.d.ts} +2112 -2087
  71. package/dist/subEntry/chat/chat.js +89 -0
  72. package/dist/subEntry/chat/index.d.ts +11 -0
  73. package/dist/subEntry/chat/index.js +81 -0
  74. package/dist/{chat → subEntry/chat}/server.js +4 -4
  75. package/dist/{useId-CtirfF0W.js → useId-D5WE76CM.js} +1 -1
  76. package/dist/{utils-DaB7eSu5.js → utils-CttDpxqz.js} +1 -1
  77. package/package.json +8 -6
  78. package/src/components/ConversationList/ConversationPreview/ConversationPreview.scss +8 -0
  79. package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +32 -1
  80. package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +3 -2
  81. package/src/components/ConversationList/ConversationPreview/utils.ts +98 -28
  82. package/src/components/ConversationList/i18n/en-US.ts +10 -1
  83. package/src/components/ConversationList/i18n/zh-CN.ts +10 -1
  84. package/src/components/LiveScenePanel/index.vue +1 -0
  85. package/src/components/MessageInput/QuotedMessagePreview/QuotedMessagePreview.vue +19 -22
  86. package/src/components/MessageInput/TextEditor/Editor.scss +25 -0
  87. package/src/components/MessageInput/TextEditor/EditorCore.ts +79 -99
  88. package/src/components/MessageInput/TextEditor/TextEditor.vue +64 -68
  89. package/src/components/MessageInput/TextEditor/extensions/MentionSuggestion.vue +449 -0
  90. package/src/components/MessageInput/TextEditor/extensions/emojiExtension.ts +22 -0
  91. package/src/components/MessageInput/TextEditor/extensions/enterKeyExtension.ts +22 -0
  92. package/src/components/MessageInput/TextEditor/extensions/index.ts +8 -0
  93. package/src/components/MessageInput/TextEditor/extensions/mentionExtension.ts +87 -0
  94. package/src/components/MessageInput/i18n/en-US.ts +3 -0
  95. package/src/components/MessageInput/i18n/zh-CN.ts +3 -0
  96. package/src/components/MessageList/Message/ImageMessage/ImageMessage.vue +49 -0
  97. package/src/components/MessageList/Message/ImageMessage/ImagePreview.vue +344 -0
  98. package/src/components/MessageList/Message/Message.vue +6 -0
  99. package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +8 -1
  100. package/src/components/MessageList/MessageList.vue +36 -14
  101. package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +30 -31
  102. package/src/index.ts +1 -1
  103. package/src/{chat/index.ts → subEntry/chat/chat.ts} +25 -18
  104. package/src/subEntry/chat/index.ts +13 -0
  105. package/src/{chat → subEntry/chat}/server.ts +3 -3
  106. package/dist/chat/index.js +0 -59
  107. package/dist/index-ZILx4LYk.js +0 -4826
  108. package/dist/states/SearchState.d.ts +0 -314
  109. /package/dist/{chat → subEntry/chat}/server.d.ts +0 -0
@@ -1,9 +1,9 @@
1
- import { u as E, c as N, r as A, a as B, F as R, D as I, b as M, d as T, P as $, T as K, e as w } from "./Teleport-CSEuZbpM.js";
2
- import { P as L, u as j, a as z, b as U, c as h, d as W } from "./PopperContent-XdhqL8Y2.js";
3
- import { u as S } from "./useId-CtirfF0W.js";
4
- import { defineComponent as m, toRefs as x, ref as _, createBlock as y, openBlock as v, unref as e, withCtx as f, renderSlot as g, createVNode as C, mergeProps as P, withModifiers as F, normalizeProps as V, guardReactiveProps as G, onMounted as H, resolveDynamicComponent as J } from "vue";
5
- const [O, Q] = N("PopoverRoot");
6
- var X = /* @__PURE__ */ m({
1
+ import { a as D, c as k, r as N, u as B, F as E, D as A, b as R, d as I, e as M, T as $ } from "./Teleport-DFrneqLM.js";
2
+ import { a as K, u as L, b as j, c as z, d as w } from "./PopperContent-SLoFuK7k.js";
3
+ import { u as T } from "./useId-D5WE76CM.js";
4
+ import { defineComponent as m, toRefs as U, ref as P, createBlock as c, openBlock as v, unref as e, withCtx as f, renderSlot as q, createVNode as C, mergeProps as _, withModifiers as F, normalizeProps as x, guardReactiveProps as W } from "vue";
5
+ const [b, V] = k("PopoverRoot");
6
+ var G = /* @__PURE__ */ m({
7
7
  __name: "PopoverRoot",
8
8
  props: {
9
9
  defaultOpen: {
@@ -23,33 +23,33 @@ var X = /* @__PURE__ */ m({
23
23
  }
24
24
  },
25
25
  emits: ["update:open"],
26
- setup(u, { emit: d }) {
27
- const t = u, a = d, { modal: l } = x(t), r = E(t, "open", a, {
28
- defaultValue: t.defaultOpen,
29
- passive: t.open === void 0
30
- }), n = _(), p = _(!1);
31
- return Q({
26
+ setup(d, { emit: p }) {
27
+ const n = d, r = p, { modal: i } = U(n), a = D(n, "open", r, {
28
+ defaultValue: n.defaultOpen,
29
+ passive: n.open === void 0
30
+ }), l = P(), u = P(!1);
31
+ return V({
32
32
  contentId: "",
33
33
  triggerId: "",
34
- modal: l,
35
- open: r,
36
- onOpenChange: (o) => {
37
- r.value = o;
34
+ modal: i,
35
+ open: a,
36
+ onOpenChange: (t) => {
37
+ a.value = t;
38
38
  },
39
39
  onOpenToggle: () => {
40
- r.value = !r.value;
40
+ a.value = !a.value;
41
41
  },
42
- triggerElement: n,
43
- hasCustomAnchor: p
44
- }), (o, s) => (v(), y(e(L), null, {
45
- default: f(() => [g(o.$slots, "default", {
46
- open: e(r),
47
- close: () => r.value = !1
42
+ triggerElement: l,
43
+ hasCustomAnchor: u
44
+ }), (t, o) => (v(), c(e(K), null, {
45
+ default: f(() => [q(t.$slots, "default", {
46
+ open: e(a),
47
+ close: () => a.value = !1
48
48
  })]),
49
49
  _: 3
50
50
  }));
51
51
  }
52
- }), de = X, Y = /* @__PURE__ */ m({
52
+ }), se = G, H = /* @__PURE__ */ m({
53
53
  __name: "PopoverContentImpl",
54
54
  props: {
55
55
  trapFocus: {
@@ -145,29 +145,29 @@ var X = /* @__PURE__ */ m({
145
145
  "openAutoFocus",
146
146
  "closeAutoFocus"
147
147
  ],
148
- setup(u, { emit: d }) {
149
- const t = u, a = d, l = j(A(t, "trapFocus", "disableOutsidePointerEvents")), { forwardRef: r } = B(), n = O();
150
- return z(), (p, o) => (v(), y(e(R), {
148
+ setup(d, { emit: p }) {
149
+ const n = d, r = p, i = L(N(n, "trapFocus", "disableOutsidePointerEvents")), { forwardRef: a } = B(), l = b();
150
+ return j(), (u, t) => (v(), c(e(E), {
151
151
  "as-child": "",
152
152
  loop: "",
153
- trapped: p.trapFocus,
154
- onMountAutoFocus: o[5] || (o[5] = (s) => a("openAutoFocus", s)),
155
- onUnmountAutoFocus: o[6] || (o[6] = (s) => a("closeAutoFocus", s))
153
+ trapped: u.trapFocus,
154
+ onMountAutoFocus: t[5] || (t[5] = (o) => r("openAutoFocus", o)),
155
+ onUnmountAutoFocus: t[6] || (t[6] = (o) => r("closeAutoFocus", o))
156
156
  }, {
157
- default: f(() => [C(e(I), {
157
+ default: f(() => [C(e(A), {
158
158
  "as-child": "",
159
- "disable-outside-pointer-events": p.disableOutsidePointerEvents,
160
- onPointerDownOutside: o[0] || (o[0] = (s) => a("pointerDownOutside", s)),
161
- onInteractOutside: o[1] || (o[1] = (s) => a("interactOutside", s)),
162
- onEscapeKeyDown: o[2] || (o[2] = (s) => a("escapeKeyDown", s)),
163
- onFocusOutside: o[3] || (o[3] = (s) => a("focusOutside", s)),
164
- onDismiss: o[4] || (o[4] = (s) => e(n).onOpenChange(!1))
159
+ "disable-outside-pointer-events": u.disableOutsidePointerEvents,
160
+ onPointerDownOutside: t[0] || (t[0] = (o) => r("pointerDownOutside", o)),
161
+ onInteractOutside: t[1] || (t[1] = (o) => r("interactOutside", o)),
162
+ onEscapeKeyDown: t[2] || (t[2] = (o) => r("escapeKeyDown", o)),
163
+ onFocusOutside: t[3] || (t[3] = (o) => r("focusOutside", o)),
164
+ onDismiss: t[4] || (t[4] = (o) => e(l).onOpenChange(!1))
165
165
  }, {
166
- default: f(() => [C(e(U), P(e(l), {
167
- id: e(n).contentId,
168
- ref: e(r),
169
- "data-state": e(n).open.value ? "open" : "closed",
170
- "aria-labelledby": e(n).triggerId,
166
+ default: f(() => [C(e(z), _(e(i), {
167
+ id: e(l).contentId,
168
+ ref: e(a),
169
+ "data-state": e(l).open.value ? "open" : "closed",
170
+ "aria-labelledby": e(l).triggerId,
171
171
  style: {
172
172
  "--reka-popover-content-transform-origin": "var(--reka-popper-transform-origin)",
173
173
  "--reka-popover-content-available-width": "var(--reka-popper-available-width)",
@@ -177,7 +177,7 @@ var X = /* @__PURE__ */ m({
177
177
  },
178
178
  role: "dialog"
179
179
  }), {
180
- default: f(() => [g(p.$slots, "default")]),
180
+ default: f(() => [q(u.$slots, "default")]),
181
181
  _: 3
182
182
  }, 16, [
183
183
  "id",
@@ -189,7 +189,7 @@ var X = /* @__PURE__ */ m({
189
189
  _: 3
190
190
  }, 8, ["trapped"]));
191
191
  }
192
- }), k = Y, Z = /* @__PURE__ */ m({
192
+ }), h = H, J = /* @__PURE__ */ m({
193
193
  __name: "PopoverContentModal",
194
194
  props: {
195
195
  side: {
@@ -281,31 +281,31 @@ var X = /* @__PURE__ */ m({
281
281
  "openAutoFocus",
282
282
  "closeAutoFocus"
283
283
  ],
284
- setup(u, { emit: d }) {
285
- const t = u, a = d, l = O(), r = _(!1);
286
- M(!0);
287
- const n = h(t, a), { forwardRef: p, currentElement: o } = B();
288
- return T(o), (s, i) => (v(), y(k, P(e(n), {
289
- ref: e(p),
290
- "trap-focus": e(l).open.value,
284
+ setup(d, { emit: p }) {
285
+ const n = d, r = p, i = b(), a = P(!1);
286
+ R(!0);
287
+ const l = w(n, r), { forwardRef: u, currentElement: t } = B();
288
+ return I(t), (o, s) => (v(), c(h, _(e(l), {
289
+ ref: e(u),
290
+ "trap-focus": e(i).open.value,
291
291
  "disable-outside-pointer-events": "",
292
- onCloseAutoFocus: i[0] || (i[0] = F((c) => {
293
- var q;
294
- a("closeAutoFocus", c), r.value || (q = e(l).triggerElement.value) == null || q.focus();
292
+ onCloseAutoFocus: s[0] || (s[0] = F((y) => {
293
+ var g;
294
+ r("closeAutoFocus", y), a.value || (g = e(i).triggerElement.value) == null || g.focus();
295
295
  }, ["prevent"])),
296
- onPointerDownOutside: i[1] || (i[1] = (c) => {
297
- a("pointerDownOutside", c);
298
- const q = c.detail.originalEvent, b = q.button === 0 && q.ctrlKey === !0, D = q.button === 2 || b;
299
- r.value = D;
296
+ onPointerDownOutside: s[1] || (s[1] = (y) => {
297
+ r("pointerDownOutside", y);
298
+ const g = y.detail.originalEvent, O = g.button === 0 && g.ctrlKey === !0, S = g.button === 2 || O;
299
+ a.value = S;
300
300
  }),
301
- onFocusOutside: i[2] || (i[2] = F(() => {
301
+ onFocusOutside: s[2] || (s[2] = F(() => {
302
302
  }, ["prevent"]))
303
303
  }), {
304
- default: f(() => [g(s.$slots, "default")]),
304
+ default: f(() => [q(o.$slots, "default")]),
305
305
  _: 3
306
306
  }, 16, ["trap-focus"]));
307
307
  }
308
- }), ee = Z, te = /* @__PURE__ */ m({
308
+ }), Q = J, X = /* @__PURE__ */ m({
309
309
  __name: "PopoverContentNonModal",
310
310
  props: {
311
311
  side: {
@@ -397,27 +397,27 @@ var X = /* @__PURE__ */ m({
397
397
  "openAutoFocus",
398
398
  "closeAutoFocus"
399
399
  ],
400
- setup(u, { emit: d }) {
401
- const t = u, a = d, l = O(), r = _(!1), n = _(!1), p = h(t, a);
402
- return (o, s) => (v(), y(k, P(e(p), {
400
+ setup(d, { emit: p }) {
401
+ const n = d, r = p, i = b(), a = P(!1), l = P(!1), u = w(n, r);
402
+ return (t, o) => (v(), c(h, _(e(u), {
403
403
  "trap-focus": !1,
404
404
  "disable-outside-pointer-events": !1,
405
- onCloseAutoFocus: s[0] || (s[0] = (i) => {
406
- var c;
407
- a("closeAutoFocus", i), i.defaultPrevented || (r.value || (c = e(l).triggerElement.value) == null || c.focus(), i.preventDefault()), r.value = !1, n.value = !1;
405
+ onCloseAutoFocus: o[0] || (o[0] = (s) => {
406
+ var y;
407
+ r("closeAutoFocus", s), s.defaultPrevented || (a.value || (y = e(i).triggerElement.value) == null || y.focus(), s.preventDefault()), a.value = !1, l.value = !1;
408
408
  }),
409
- onInteractOutside: s[1] || (s[1] = async (i) => {
410
- var b;
411
- a("interactOutside", i), i.defaultPrevented || (r.value = !0, i.detail.originalEvent.type === "pointerdown" && (n.value = !0));
412
- const c = i.target;
413
- ((b = e(l).triggerElement.value) == null ? void 0 : b.contains(c)) && i.preventDefault(), i.detail.originalEvent.type === "focusin" && n.value && i.preventDefault();
409
+ onInteractOutside: o[1] || (o[1] = async (s) => {
410
+ var O;
411
+ r("interactOutside", s), s.defaultPrevented || (a.value = !0, s.detail.originalEvent.type === "pointerdown" && (l.value = !0));
412
+ const y = s.target;
413
+ ((O = e(i).triggerElement.value) == null ? void 0 : O.contains(y)) && s.preventDefault(), s.detail.originalEvent.type === "focusin" && l.value && s.preventDefault();
414
414
  })
415
415
  }), {
416
- default: f(() => [g(o.$slots, "default")]),
416
+ default: f(() => [q(t.$slots, "default")]),
417
417
  _: 3
418
418
  }, 16));
419
419
  }
420
- }), oe = te, re = /* @__PURE__ */ m({
420
+ }), Y = X, Z = /* @__PURE__ */ m({
421
421
  __name: "PopoverContent",
422
422
  props: {
423
423
  forceMount: {
@@ -513,20 +513,20 @@ var X = /* @__PURE__ */ m({
513
513
  "openAutoFocus",
514
514
  "closeAutoFocus"
515
515
  ],
516
- setup(u, { emit: d }) {
517
- const t = u, a = d, l = O(), r = h(t, a), { forwardRef: n } = B();
518
- return l.contentId || (l.contentId = S(void 0, "reka-popover-content")), (p, o) => (v(), y(e($), { present: p.forceMount || e(l).open.value }, {
519
- default: f(() => [e(l).modal.value ? (v(), y(ee, P({ key: 0 }, e(r), { ref: e(n) }), {
520
- default: f(() => [g(p.$slots, "default")]),
516
+ setup(d, { emit: p }) {
517
+ const n = d, r = p, i = b(), a = w(n, r), { forwardRef: l } = B();
518
+ return i.contentId || (i.contentId = T(void 0, "reka-popover-content")), (u, t) => (v(), c(e(M), { present: u.forceMount || e(i).open.value }, {
519
+ default: f(() => [e(i).modal.value ? (v(), c(Q, _({ key: 0 }, e(a), { ref: e(l) }), {
520
+ default: f(() => [q(u.$slots, "default")]),
521
521
  _: 3
522
- }, 16)) : (v(), y(oe, P({ key: 1 }, e(r), { ref: e(n) }), {
523
- default: f(() => [g(p.$slots, "default")]),
522
+ }, 16)) : (v(), c(Y, _({ key: 1 }, e(a), { ref: e(l) }), {
523
+ default: f(() => [q(u.$slots, "default")]),
524
524
  _: 3
525
525
  }, 16))]),
526
526
  _: 3
527
527
  }, 8, ["present"]));
528
528
  }
529
- }), pe = re, ae = /* @__PURE__ */ m({
529
+ }), ie = Z, ee = /* @__PURE__ */ m({
530
530
  __name: "PopoverPortal",
531
531
  props: {
532
532
  to: {
@@ -546,62 +546,17 @@ var X = /* @__PURE__ */ m({
546
546
  required: !1
547
547
  }
548
548
  },
549
- setup(u) {
550
- const d = u;
551
- return (t, a) => (v(), y(e(K), V(G(d)), {
552
- default: f(() => [g(t.$slots, "default")]),
549
+ setup(d) {
550
+ const p = d;
551
+ return (n, r) => (v(), c(e($), x(W(p)), {
552
+ default: f(() => [q(n.$slots, "default")]),
553
553
  _: 3
554
554
  }, 16));
555
555
  }
556
- }), fe = ae, se = /* @__PURE__ */ m({
557
- __name: "PopoverTrigger",
558
- props: {
559
- asChild: {
560
- type: Boolean,
561
- required: !1
562
- },
563
- as: {
564
- type: null,
565
- required: !1,
566
- default: "button"
567
- }
568
- },
569
- setup(u) {
570
- const d = u, t = O(), { forwardRef: a, currentElement: l } = B();
571
- return t.triggerId || (t.triggerId = S(void 0, "reka-popover-trigger")), H(() => {
572
- t.triggerElement.value = l.value;
573
- }), (r, n) => (v(), y(J(e(t).hasCustomAnchor.value ? e(w) : e(W)), { "as-child": "" }, {
574
- default: f(() => [C(e(w), {
575
- id: e(t).triggerId,
576
- ref: e(a),
577
- type: r.as === "button" ? "button" : void 0,
578
- "aria-haspopup": "dialog",
579
- "aria-expanded": e(t).open.value,
580
- "aria-controls": e(t).contentId,
581
- "data-state": e(t).open.value ? "open" : "closed",
582
- as: r.as,
583
- "as-child": d.asChild,
584
- onClick: e(t).onOpenToggle
585
- }, {
586
- default: f(() => [g(r.$slots, "default")]),
587
- _: 3
588
- }, 8, [
589
- "id",
590
- "type",
591
- "aria-expanded",
592
- "aria-controls",
593
- "data-state",
594
- "as",
595
- "as-child",
596
- "onClick"
597
- ])]),
598
- _: 3
599
- }));
600
- }
601
- }), ce = se;
556
+ }), le = ee;
602
557
  export {
603
- de as P,
604
- ce as a,
605
- fe as b,
606
- pe as c
558
+ se as P,
559
+ le as a,
560
+ ie as b,
561
+ b as i
607
562
  };
@@ -0,0 +1,54 @@
1
+ import { u as l, P as a } from "./Teleport-DFrneqLM.js";
2
+ import { u as d } from "./useId-D5WE76CM.js";
3
+ import { P as u } from "./PopperContent-SLoFuK7k.js";
4
+ import { i as c } from "./PopoverPortal-DghpKKm8.js";
5
+ import { defineComponent as g, onMounted as f, createBlock as m, openBlock as v, resolveDynamicComponent as _, unref as r, withCtx as t, createVNode as h, renderSlot as P } from "vue";
6
+ var C = /* @__PURE__ */ g({
7
+ __name: "PopoverTrigger",
8
+ props: {
9
+ asChild: {
10
+ type: Boolean,
11
+ required: !1
12
+ },
13
+ as: {
14
+ type: null,
15
+ required: !1,
16
+ default: "button"
17
+ }
18
+ },
19
+ setup(n) {
20
+ const i = n, e = c(), { forwardRef: s, currentElement: p } = l();
21
+ return e.triggerId || (e.triggerId = d(void 0, "reka-popover-trigger")), f(() => {
22
+ e.triggerElement.value = p.value;
23
+ }), (o, y) => (v(), m(_(r(e).hasCustomAnchor.value ? r(a) : r(u)), { "as-child": "" }, {
24
+ default: t(() => [h(r(a), {
25
+ id: r(e).triggerId,
26
+ ref: r(s),
27
+ type: o.as === "button" ? "button" : void 0,
28
+ "aria-haspopup": "dialog",
29
+ "aria-expanded": r(e).open.value,
30
+ "aria-controls": r(e).contentId,
31
+ "data-state": r(e).open.value ? "open" : "closed",
32
+ as: o.as,
33
+ "as-child": i.asChild,
34
+ onClick: r(e).onOpenToggle
35
+ }, {
36
+ default: t(() => [P(o.$slots, "default")]),
37
+ _: 3
38
+ }, 8, [
39
+ "id",
40
+ "type",
41
+ "aria-expanded",
42
+ "aria-controls",
43
+ "data-state",
44
+ "as",
45
+ "as-child",
46
+ "onClick"
47
+ ])]),
48
+ _: 3
49
+ }));
50
+ }
51
+ }), w = C;
52
+ export {
53
+ w as P
54
+ };
@@ -1,5 +1,5 @@
1
1
  import { watchEffect as je, getCurrentInstance as ct, toRef as ft, computed as O, camelize as ut, ref as V, onMounted as dt, defineComponent as Ce, renderSlot as Oe, watchPostEffect as Ie, createBlock as pt, openBlock as Xe, unref as M, withCtx as Ye, shallowRef as mt, watch as he, getCurrentScope as ht, onScopeDispose as gt, shallowReadonly as Q, mergeDefaults as wt, createElementBlock as yt, normalizeStyle as vt, createVNode as xt, mergeProps as bt } from "vue";
2
- import { h as At, f as Ct, j as Ot, c as Ue, a as Ge, e as Ke, k as Pt } from "./Teleport-CSEuZbpM.js";
2
+ import { h as At, f as Ct, j as Ot, c as Ue, u as Ge, P as Ke, k as Pt } from "./Teleport-DFrneqLM.js";
3
3
  let ge = 0;
4
4
  function Vn() {
5
5
  je((e) => {
@@ -1593,11 +1593,11 @@ var Wn = /* @__PURE__ */ Ce({
1593
1593
  }
1594
1594
  }), Xn = Wn;
1595
1595
  export {
1596
- qn as P,
1597
- Vn as a,
1598
- Xn as b,
1599
- Nn as c,
1600
- jn as d,
1596
+ jn as P,
1597
+ qn as a,
1598
+ Vn as b,
1599
+ Xn as c,
1600
+ Nn as d,
1601
1601
  $n as e,
1602
1602
  St as u
1603
1603
  };
@@ -891,14 +891,14 @@ var St = /* @__PURE__ */ B({
891
891
  export {
892
892
  xt as D,
893
893
  Bt as F,
894
- It as P,
894
+ ye as P,
895
895
  lt as S,
896
896
  kt as T,
897
- pe as a,
897
+ Lt as a,
898
898
  Mt as b,
899
899
  Be as c,
900
900
  Nt as d,
901
- ye as e,
901
+ It as e,
902
902
  Ft as f,
903
903
  I as g,
904
904
  F as h,
@@ -909,5 +909,5 @@ export {
909
909
  je as m,
910
910
  de as n,
911
911
  Dt as r,
912
- Lt as u
912
+ pe as u
913
913
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as g, ref as E, toRefs as P, renderSlot as _, unref as t, onMounted as A, createBlock as v, openBlock as m, withCtx as f, createVNode as C, mergeProps as y, createCommentVNode as h, normalizeProps as $, guardReactiveProps as T, normalizeClass as R } from "vue";
2
- import { u as k, c as N, a as D, g as I, F as S, D as L, f as q, d as K, P as F, b as V, e as U, T as W } from "../../Teleport-CSEuZbpM.js";
3
- import { u as w } from "../../useId-CtirfF0W.js";
4
- import { g as z } from "../../utils-DaB7eSu5.js";
2
+ import { a as k, c as N, u as D, g as I, F as S, D as L, f as q, d as K, e as F, b as V, P as U, T as W } from "../../Teleport-DFrneqLM.js";
3
+ import { u as w } from "../../useId-D5WE76CM.js";
4
+ import { g as z } from "../../utils-CttDpxqz.js";
5
5
  import { _ as G } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const [O, H] = N("DialogRoot");
7
7
  var j = /* @__PURE__ */ g({
@@ -1,6 +1,7 @@
1
1
  import { defineComponent as j, onMounted as x, createElementBlock as a, openBlock as c, createVNode as o, unref as e, withCtx as r, normalizeClass as i, normalizeStyle as v, createElementVNode as _, Fragment as b, renderList as E } from "vue";
2
- import { useUIKit as y, IconEmoji as C } from "@tencentcloud/uikit-base-component-vue3";
3
- import { P, a as h, b as I, c as z } from "../../../PopoverTrigger-L8abAry7.js";
2
+ import { useUIKit as y, IconEmoji as P } from "@tencentcloud/uikit-base-component-vue3";
3
+ import { P as C, a as h, b as I } from "../../../PopoverPortal-DghpKKm8.js";
4
+ import { P as z } from "../../../PopoverTrigger-BajjNkGO.js";
4
5
  import { emojiUrlMap as l, emojiBaseUrl as m } from "../../../constants/emoji.js";
5
6
  import { transformTextWithEmojiKeyToName as M } from "../../../utils/emoji.js";
6
7
  import { useMessageInputState as T } from "../MessageInputState.js";
@@ -44,24 +45,24 @@ const n = {
44
45
  );
45
46
  }
46
47
  return (t, d) => (c(), a("div", null, [
47
- o(e(P), null, {
48
+ o(e(C), null, {
48
49
  default: r(() => [
49
- o(e(h), {
50
+ o(e(z), {
50
51
  as: "span",
51
52
  style: v(p.triggerStyle),
52
53
  class: i([u.disabled && "disabled"])
53
54
  }, {
54
55
  default: r(() => [
55
- o(e(C), {
56
+ o(e(P), {
56
57
  class: i(e(n)["emoji-picker__icon"]),
57
58
  size: "24"
58
59
  }, null, 8, ["class"])
59
60
  ]),
60
61
  _: 1
61
62
  }, 8, ["style", "class"]),
62
- o(e(I), null, {
63
+ o(e(h), null, {
63
64
  default: r(() => [
64
- o(e(z), {
65
+ o(e(I), {
65
66
  side: "top",
66
67
  align: "center",
67
68
  "side-offset": 8,
@@ -96,7 +97,7 @@ const n = {
96
97
  })
97
98
  ]));
98
99
  }
99
- }), D = /* @__PURE__ */ S(w, [["__scopeId", "data-v-e11cd753"]]);
100
+ }), G = /* @__PURE__ */ S(w, [["__scopeId", "data-v-e11cd753"]]);
100
101
  export {
101
- D as default
102
+ G as default
102
103
  };
@@ -1,4 +1,4 @@
1
- import { E as l, P as h, a as f } from "../../../index-Do-2CngU.js";
1
+ import { E as l, P as h, a as f } from "../../../index-C8Jw_xE4.js";
2
2
  const m = l.create({
3
3
  name: "characterCount",
4
4
  addOptions() {
@@ -1,11 +1,12 @@
1
- import { I as o } from "../../../index-7vNB_Vx8.js";
2
- import { S as g, P as x, E as p } from "../../../index-ZILx4LYk.js";
1
+ import { I as u } from "../../../index-CiYL_XsE.js";
2
+ import { S as g, P as x } from "../../../index-BvFYOUyz.js";
3
+ import { E as p } from "../../../index-CzCDLp99.js";
3
4
  import { isMobile as y } from "../../../utils/environment.js";
4
5
  import { CharacterCount as M } from "./CharacterCountExtension.js";
5
- import { E as T } from "../../../index-Do-2CngU.js";
6
+ import { E as T } from "../../../index-C8Jw_xE4.js";
6
7
  import { MessageContentType as a } from "../../../states/MessageInputState/type.js";
7
8
  function b() {
8
- return o.extend({
9
+ return u.extend({
9
10
  name: a.EMOJI,
10
11
  inline: !0,
11
12
  group: "inline",
@@ -22,7 +23,7 @@ function b() {
22
23
  });
23
24
  }
24
25
  function C() {
25
- return o.extend({
26
+ return u.extend({
26
27
  addOptions() {
27
28
  var t;
28
29
  return {
@@ -102,43 +103,43 @@ function c(t) {
102
103
  }
103
104
  }) : [];
104
105
  }
105
- function S({
106
+ function j({
106
107
  element: t,
107
108
  placeholder: e = "",
108
109
  autoFocus: r = !1,
109
110
  disabled: s = !1,
110
111
  maxLength: i,
111
112
  onUpdate: n,
112
- onEnter: f,
113
- onFocus: m,
113
+ onEnter: m,
114
+ onFocus: f,
114
115
  onBlur: E
115
116
  }) {
116
117
  const l = {
117
118
  element: t,
118
119
  autofocus: r,
119
120
  editable: !s,
120
- extensions: ((u) => [
121
+ extensions: ((o) => [
121
122
  g,
122
123
  M.configure({
123
124
  limit: i
124
125
  }),
125
- I(u ? { onEnter: u } : void 0),
126
+ I(o ? { onEnter: o } : void 0),
126
127
  b(),
127
128
  C(),
128
129
  x.configure({
129
130
  emptyEditorClass: "is-editor-empty",
130
131
  placeholder: e
131
132
  })
132
- ])(f),
133
- onUpdate: ({ editor: u }) => {
134
- const d = c(u.getJSON());
133
+ ])(m),
134
+ onUpdate: ({ editor: o }) => {
135
+ const d = c(o.getJSON());
135
136
  n == null || n(d);
136
137
  },
137
- onFocus: m,
138
+ onFocus: f,
138
139
  onBlur: E
139
140
  };
140
141
  return new p(l);
141
142
  }
142
143
  export {
143
- S as createEditor
144
+ j as createEditor
144
145
  };