yx-web-sdk 0.0.24 → 0.0.25

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.
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "../index.vue_vue_type_style_index_0_lang-DqdPSiTV.mjs";
1
+ import { _ as _sfc_main } from "../index.vue_vue_type_style_index_0_lang-DectxdQg.mjs";
2
2
  export {
3
3
  _sfc_main as ChatCard,
4
4
  _sfc_main as default
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "../index.vue_vue_type_style_index_0_lang-DPqAP7D5.mjs";
1
+ import { _ as _sfc_main } from "../index.vue_vue_type_style_index_0_lang-W7dxGxaU.mjs";
2
2
  export {
3
3
  _sfc_main as ChatContent,
4
4
  _sfc_main as default
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "../index.vue_vue_type_style_index_0_lang-BbUB5thF.mjs";
1
+ import { _ as _sfc_main } from "../index.vue_vue_type_style_index_0_lang-CIKNiKfF.mjs";
2
2
  export {
3
3
  _sfc_main as ChatPage,
4
4
  _sfc_main as default
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "../index.vue_vue_type_script_setup_true_lang-DMbIuIqy.mjs";
1
+ import { _ as _sfc_main } from "../index.vue_vue_type_script_setup_true_lang-CGOFFaNL.mjs";
2
2
  export {
3
3
  _sfc_main as ChatRoom,
4
4
  _sfc_main as default
@@ -40,6 +40,7 @@
40
40
  }
41
41
  .yx-chatroomWrapper .chatroomInputQuoteWrapper {
42
42
  font-size: 16px;
43
+ line-height: 22px;
43
44
  color: var(--theme-text-secondary, #9c9db4);
44
45
  display: flex;
45
46
  flex-direction: column;
@@ -35,9 +35,12 @@
35
35
  .yx-chatCardWrapper.reverse .attach-box {
36
36
  margin-left: auto;
37
37
  }
38
+ .yx-chatCardWrapper .chatCardMainContent {
39
+ line-height: 22px;
40
+ }
38
41
  .yx-chatCardWrapper .chatCardMainContent.attach-box {
39
42
  margin-top: 12px;
40
- padding: 12px;
43
+ padding: 10px 16px;
41
44
  border-radius: 8px;
42
45
  background-color: var(--theme-home-tab-bg-color, #f2f2f2);
43
46
  width: -moz-fit-content;
@@ -93,7 +96,7 @@
93
96
  }
94
97
  .yx-chatCardWrapper .textMsg {
95
98
  font-size: 16px;
96
- padding: 12px 16px;
99
+ padding: 10px 16px;
97
100
  color: var(--theme-text, #252b3a);
98
101
  word-break: break-all;
99
102
  white-space: pre-wrap;
@@ -109,7 +112,7 @@
109
112
  .yx-chatCardWrapper .chatCardQuoteMsg {
110
113
  margin-top: 12px;
111
114
  font-size: 16px;
112
- padding: 12px 16px;
115
+ padding: 10px 16px;
113
116
  background-color: var(--theme-home-tab-bg-color, #f2f2f2);
114
117
  border-radius: 8px;
115
118
  }
@@ -151,7 +154,7 @@
151
154
  background-color: #23252c;
152
155
  display: flex;
153
156
  align-items: center;
154
- padding: 12px 16px;
157
+ padding: 10px 16px;
155
158
  border-radius: 8px;
156
159
  }
157
160
  .yx-chatCardWrapper .fileMsg .fileMsgContent {
@@ -2,7 +2,7 @@ import { defineComponent, computed, ref, onMounted, onUnmounted, openBlock, crea
2
2
  import { useRouter } from "vue-router";
3
3
  import { Spin, Result, Button, Empty, message } from "ant-design-vue";
4
4
  import { s as setGlobalRequest, c as useImSdkStore, a as useServerStore, u as useChannelStore, b as useUserStore, d as useGlobalStore } from "../index.vue_vue_type_style_index_0_lang-Bb0HV9Zp.mjs";
5
- import { _ as _sfc_main$1 } from "../index.vue_vue_type_style_index_0_lang-BbUB5thF.mjs";
5
+ import { _ as _sfc_main$1 } from "../index.vue_vue_type_style_index_0_lang-CIKNiKfF.mjs";
6
6
  import { S as ServerChannelSidebar } from "../index-Cemc8VjO.mjs";
7
7
  import { M as MembersSidebar } from "../index-DwPi-usb.mjs";
8
8
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.mjs";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, computed, watch, openBlock, createBlock, createElementBlock } from "vue";
2
- import { _ as _sfc_main$1 } from "./index.vue_vue_type_style_index_0_lang-DPqAP7D5.mjs";
2
+ import { _ as _sfc_main$1 } from "./index.vue_vue_type_style_index_0_lang-W7dxGxaU.mjs";
3
3
  import { u as useChannelStore, a as useServerStore, b as useUserStore } from "./index.vue_vue_type_style_index_0_lang-Bb0HV9Zp.mjs";
4
4
  const _hoisted_1 = { key: 1 };
5
5
  const HISTORY_LIMIT = 100;
@@ -1,10 +1,10 @@
1
1
  import { defineComponent, ref, h, watch, computed, openBlock, createElementBlock, createElementVNode, toDisplayString, createCommentVNode, createVNode } from "vue";
2
2
  import { List, Typography } from "ant-design-vue";
3
- import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_setup_true_lang-DMbIuIqy.mjs";
3
+ import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_setup_true_lang-CGOFFaNL.mjs";
4
4
  import { a as useServerStore, u as useChannelStore } from "./index.vue_vue_type_style_index_0_lang-Bb0HV9Zp.mjs";
5
5
  import "./index-L_drmZir.mjs";
6
6
  import { useLocalStorage } from "@vueuse/core";
7
- import { L as LoadingOutlined } from "./index.vue_vue_type_style_index_0_lang-DqdPSiTV.mjs";
7
+ import { L as LoadingOutlined } from "./index.vue_vue_type_style_index_0_lang-DectxdQg.mjs";
8
8
  const _hoisted_1 = { class: "yx-chat-page-container" };
9
9
  const _hoisted_2 = { class: "header-wrap" };
10
10
  const _hoisted_3 = { class: "left" };
@@ -366,13 +366,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
366
366
  const attachImageSize = computed(
367
367
  () => {
368
368
  var _a;
369
- return getImageMsgDisplaySize((_a = props.msg) == null ? void 0 : _a.attach, { imgMsgSideMax: 250 - 12 * 2, imgMsgSideMin: 80 - 12 * 2 });
369
+ return getImageMsgDisplaySize((_a = props.msg) == null ? void 0 : _a.attach, { imgMsgSideMax: 250 - 16 * 2, imgMsgSideMin: 80 - 16 * 2 });
370
370
  }
371
371
  );
372
372
  const quoteImageMsgSize = computed(
373
373
  () => {
374
374
  var _a, _b;
375
- return getImageMsgDisplaySize((_b = (_a = msgExt.value) == null ? void 0 : _a.quoteMsg) == null ? void 0 : _b.attach, { imgMsgSideMax: 250 - 12 * 2, imgMsgSideMin: 80 - 12 * 2 });
375
+ return getImageMsgDisplaySize((_b = (_a = msgExt.value) == null ? void 0 : _a.quoteMsg) == null ? void 0 : _b.attach, { imgMsgSideMax: 250 - 16 * 2, imgMsgSideMin: 80 - 16 * 2 });
376
376
  }
377
377
  );
378
378
  const resendHandler = () => {
@@ -400,9 +400,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
400
400
  avatar: myAvatar.value,
401
401
  nick: __props.msg.fromNick,
402
402
  accid: __props.msg.fromAccount,
403
- width: 32,
403
+ width: 36,
404
404
  border: 0,
405
- style: { "min-width": "32px" }
405
+ style: { "min-width": "36px" }
406
406
  }, null, 8, ["avatar", "nick", "accid"])
407
407
  ]),
408
408
  createElementVNode("div", _hoisted_4, [
@@ -2,7 +2,7 @@ import { createVNode, ref, computed, watch, nextTick, defineComponent, openBlock
2
2
  import { useRouter } from "vue-router";
3
3
  import { Input, Image, Popover, Button, Upload, message } from "ant-design-vue";
4
4
  import { A as AitPersonPopover } from "./index-BhLJLbtt.mjs";
5
- import { L as LoadingOutlined, _ as _sfc_main$2, a as _sfc_main$3 } from "./index.vue_vue_type_style_index_0_lang-DqdPSiTV.mjs";
5
+ import { L as LoadingOutlined, _ as _sfc_main$2, a as _sfc_main$3 } from "./index.vue_vue_type_style_index_0_lang-DectxdQg.mjs";
6
6
  import { _ as _sfc_main$1 } from "./index.vue_vue_type_style_index_0_lang-BxXBf_VA.mjs";
7
7
  import { a as useServerStore, g as getServerMembersByAccids, u as useChannelStore, e as getImageMsgDisplaySize, f as filterStr, i as isLt } from "./index.vue_vue_type_style_index_0_lang-Bb0HV9Zp.mjs";
8
8
  import { useEventListener, useDebounceFn } from "@vueuse/core";
package/dist/style.css CHANGED
@@ -97,9 +97,12 @@
97
97
  .yx-chatCardWrapper.reverse .attach-box {
98
98
  margin-left: auto;
99
99
  }
100
+ .yx-chatCardWrapper .chatCardMainContent {
101
+ line-height: 22px;
102
+ }
100
103
  .yx-chatCardWrapper .chatCardMainContent.attach-box {
101
104
  margin-top: 12px;
102
- padding: 12px;
105
+ padding: 10px 16px;
103
106
  border-radius: 8px;
104
107
  background-color: var(--theme-home-tab-bg-color, #f2f2f2);
105
108
  width: -moz-fit-content;
@@ -155,7 +158,7 @@
155
158
  }
156
159
  .yx-chatCardWrapper .textMsg {
157
160
  font-size: 16px;
158
- padding: 12px 16px;
161
+ padding: 10px 16px;
159
162
  color: var(--theme-text, #252b3a);
160
163
  word-break: break-all;
161
164
  white-space: pre-wrap;
@@ -171,7 +174,7 @@
171
174
  .yx-chatCardWrapper .chatCardQuoteMsg {
172
175
  margin-top: 12px;
173
176
  font-size: 16px;
174
- padding: 12px 16px;
177
+ padding: 10px 16px;
175
178
  background-color: var(--theme-home-tab-bg-color, #f2f2f2);
176
179
  border-radius: 8px;
177
180
  }
@@ -213,7 +216,7 @@
213
216
  background-color: #23252c;
214
217
  display: flex;
215
218
  align-items: center;
216
- padding: 12px 16px;
219
+ padding: 10px 16px;
217
220
  border-radius: 8px;
218
221
  }
219
222
  .yx-chatCardWrapper .fileMsg .fileMsgContent {
@@ -393,6 +396,7 @@
393
396
  }
394
397
  .yx-chatroomWrapper .chatroomInputQuoteWrapper {
395
398
  font-size: 16px;
399
+ line-height: 22px;
396
400
  color: var(--theme-text-secondary, #9c9db4);
397
401
  display: flex;
398
402
  flex-direction: column;
@@ -39054,13 +39054,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
39054
39054
  const attachImageSize = computed(
39055
39055
  () => {
39056
39056
  var _a;
39057
- return getImageMsgDisplaySize((_a = props.msg) == null ? void 0 : _a.attach, { imgMsgSideMax: 250 - 12 * 2, imgMsgSideMin: 80 - 12 * 2 });
39057
+ return getImageMsgDisplaySize((_a = props.msg) == null ? void 0 : _a.attach, { imgMsgSideMax: 250 - 16 * 2, imgMsgSideMin: 80 - 16 * 2 });
39058
39058
  }
39059
39059
  );
39060
39060
  const quoteImageMsgSize = computed(
39061
39061
  () => {
39062
39062
  var _a, _b;
39063
- return getImageMsgDisplaySize((_b = (_a = msgExt.value) == null ? void 0 : _a.quoteMsg) == null ? void 0 : _b.attach, { imgMsgSideMax: 250 - 12 * 2, imgMsgSideMin: 80 - 12 * 2 });
39063
+ return getImageMsgDisplaySize((_b = (_a = msgExt.value) == null ? void 0 : _a.quoteMsg) == null ? void 0 : _b.attach, { imgMsgSideMax: 250 - 16 * 2, imgMsgSideMin: 80 - 16 * 2 });
39064
39064
  }
39065
39065
  );
39066
39066
  const resendHandler = () => {
@@ -39088,9 +39088,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
39088
39088
  avatar: myAvatar.value,
39089
39089
  nick: __props.msg.fromNick,
39090
39090
  accid: __props.msg.fromAccount,
39091
- width: 32,
39091
+ width: 36,
39092
39092
  border: 0,
39093
- style: { "min-width": "32px" }
39093
+ style: { "min-width": "36px" }
39094
39094
  }, null, 8, ["avatar", "nick", "accid"])
39095
39095
  ]),
39096
39096
  createElementVNode("div", _hoisted_4$7, [
@@ -39051,13 +39051,13 @@
39051
39051
  const attachImageSize = vue.computed(
39052
39052
  () => {
39053
39053
  var _a;
39054
- return getImageMsgDisplaySize((_a = props.msg) == null ? void 0 : _a.attach, { imgMsgSideMax: 250 - 12 * 2, imgMsgSideMin: 80 - 12 * 2 });
39054
+ return getImageMsgDisplaySize((_a = props.msg) == null ? void 0 : _a.attach, { imgMsgSideMax: 250 - 16 * 2, imgMsgSideMin: 80 - 16 * 2 });
39055
39055
  }
39056
39056
  );
39057
39057
  const quoteImageMsgSize = vue.computed(
39058
39058
  () => {
39059
39059
  var _a, _b;
39060
- return getImageMsgDisplaySize((_b = (_a = msgExt.value) == null ? void 0 : _a.quoteMsg) == null ? void 0 : _b.attach, { imgMsgSideMax: 250 - 12 * 2, imgMsgSideMin: 80 - 12 * 2 });
39060
+ return getImageMsgDisplaySize((_b = (_a = msgExt.value) == null ? void 0 : _a.quoteMsg) == null ? void 0 : _b.attach, { imgMsgSideMax: 250 - 16 * 2, imgMsgSideMin: 80 - 16 * 2 });
39061
39061
  }
39062
39062
  );
39063
39063
  const resendHandler = () => {
@@ -39085,9 +39085,9 @@
39085
39085
  avatar: myAvatar.value,
39086
39086
  nick: __props.msg.fromNick,
39087
39087
  accid: __props.msg.fromAccount,
39088
- width: 32,
39088
+ width: 36,
39089
39089
  border: 0,
39090
- style: { "min-width": "32px" }
39090
+ style: { "min-width": "36px" }
39091
39091
  }, null, 8, ["avatar", "nick", "accid"])
39092
39092
  ]),
39093
39093
  vue.createElementVNode("div", _hoisted_4$7, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yx-web-sdk",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "private": false,
5
5
  "main": "dist/yx-web-sdk.umd.js",
6
6
  "module": "dist/yx-web-sdk.es.js",