yx-web-sdk 0.0.19 → 0.0.21

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 (32) hide show
  1. package/dist/ait-person-popover/index.js +1 -1
  2. package/dist/chat-card/index.js +1 -1
  3. package/dist/chat-content/index.js +1 -1
  4. package/dist/chat-page/index.js +1 -1
  5. package/dist/chat-room/index.js +1 -1
  6. package/dist/common-avatar/index.js +1 -1
  7. package/dist/components/img-info-wrapper/index.d.ts +0 -0
  8. package/dist/components/img-info-wrapper/index.vue.d.ts +6 -0
  9. package/dist/img-info-wrapper/index.js +1 -0
  10. package/dist/index/style2.css +30 -162
  11. package/dist/index/style4.css +177 -125
  12. package/dist/index/style6.css +513 -25
  13. package/dist/index/style7.css +143 -466
  14. package/dist/{index-DHnPD8u9.mjs → index-BPnLB3av.mjs} +1 -1
  15. package/dist/{index-BjIqS2ZC.mjs → index-DME8_VYv.mjs} +2 -2
  16. package/dist/{index-D5gp5t2F.mjs → index-Dwglj7_M.mjs} +1 -1
  17. package/dist/index-entry/index.js +4 -4
  18. package/dist/{index.vue_vue_type_script_setup_true_lang-CkWszgC3.mjs → index.vue_vue_type_script_setup_true_lang-CD6o8jT4.mjs} +9 -3
  19. package/dist/{index.vue_vue_type_style_index_0_lang-C-imP01W.mjs → index.vue_vue_type_style_index_0_lang-BJGCxPce.mjs} +3 -3
  20. package/dist/{index.vue_vue_type_style_index_0_lang-CAZ44kgX.mjs → index.vue_vue_type_style_index_0_lang-BaKNB-4q.mjs} +33 -7
  21. package/dist/{index.vue_vue_type_style_index_0_lang-CA27kCm1.mjs → index.vue_vue_type_style_index_0_lang-CsNgkPt9.mjs} +101 -17
  22. package/dist/{index.vue_vue_type_style_index_0_lang-5DeqmRdw.mjs → index.vue_vue_type_style_index_0_lang-iBkYSdDj.mjs} +156 -38
  23. package/dist/members-sidebar/index.js +1 -1
  24. package/dist/notice-box/index.js +1 -1
  25. package/dist/server-channel-sidebar/index.js +1 -1
  26. package/dist/stores/channel.d.ts +18 -2
  27. package/dist/style.css +155 -70
  28. package/dist/utils/index.d.ts +10 -2
  29. package/dist/yx-web-sdk.es.js +321 -90
  30. package/dist/yx-web-sdk.umd.js +320 -89
  31. package/package.json +1 -1
  32. /package/dist/{index.vue_vue_type_style_index_0_lang-B2YRkoln.mjs → index.vue_vue_type_style_index_0_lang-BxXBf_VA.mjs} +0 -0
package/dist/style.css CHANGED
@@ -60,6 +60,11 @@
60
60
  color: var(--theme-light-text);
61
61
  text-align: center;
62
62
  line-height: 70px;
63
+ }.yx-attach-box-img-info-wrapper {
64
+ display: flex;
65
+ align-items: center;
66
+ gap: 14px;
67
+ overflow: hidden;
63
68
  }
64
69
  .yx-chatCardWrapper {
65
70
  width: 100%;
@@ -89,6 +94,17 @@
89
94
  margin-right: 10px;
90
95
  margin-left: 0;
91
96
  }
97
+ .yx-chatCardWrapper.reverse .attach-box {
98
+ margin-left: auto;
99
+ }
100
+ .yx-chatCardWrapper .chatCardMainContent.attach-box {
101
+ margin-top: 12px;
102
+ padding: 12px;
103
+ border-radius: 8px;
104
+ background-color: var(--theme-home-tab-bg-color, #f2f2f2);
105
+ width: -moz-fit-content;
106
+ width: fit-content;
107
+ }
92
108
  .yx-chatCardWrapper .chat-withdraw-msg {
93
109
  flex: 1;
94
110
  text-align: center;
@@ -150,12 +166,27 @@
150
166
  color: var(--theme-text, #252b3a) !important;
151
167
  }
152
168
  .yx-chatCardWrapper .chatCardQuoteMsg {
153
- margin-top: 8px;
169
+ margin-top: 12px;
154
170
  font-size: 16px;
155
171
  padding: 12px 16px;
156
172
  background-color: var(--theme-home-tab-bg-color, #f2f2f2);
157
173
  border-radius: 8px;
158
174
  }
175
+ .yx-chatCardWrapper .chatCardQuoteMsg .chatCardQuoteMsgAttachBox {
176
+ position: relative;
177
+ padding-left: 24px;
178
+ }
179
+ .yx-chatCardWrapper .chatCardQuoteMsg .chatCardQuoteMsgAttachBox:before {
180
+ position: absolute;
181
+ left: 0;
182
+ top: 0.5em;
183
+ bottom: 0.5em;
184
+ content: "";
185
+ display: block;
186
+ width: 4px;
187
+ border-radius: 4px;
188
+ background-color: var(--theme-line, #e3e3ee);
189
+ }
159
190
  .yx-chatCardWrapper .chatCardQuoteMsg .quoteMsgText {
160
191
  color: var(--theme-text, #252b3a);
161
192
  word-break: break-all;
@@ -368,10 +399,26 @@
368
399
  margin-bottom: 12px;
369
400
  position: relative;
370
401
  }
402
+ .yx-chatroomWrapper .chatroomInputQuoteWrapper .chatroomInputQuoteAttachBox {
403
+ padding-left: 20px;
404
+ position: relative;
405
+ }
406
+ .yx-chatroomWrapper .chatroomInputQuoteWrapper .chatroomInputQuoteAttachBox:before {
407
+ position: absolute;
408
+ left: 0;
409
+ top: 0.5em;
410
+ bottom: 0.5em;
411
+ content: "";
412
+ display: block;
413
+ width: 4px;
414
+ border-radius: 4px;
415
+ background-color: var(--theme-line, #e3e3ee);
416
+ }
371
417
  .yx-chatroomWrapper .chatroomInputQuoteWrapper .chatroomInputQuoteDeleteBtn {
372
418
  position: absolute;
373
419
  right: 0;
374
420
  top: 0;
421
+ z-index: 1;
375
422
  color: var(--theme-text, #252b3a);
376
423
  }
377
424
  .yx-chatroomWrapper .chatroomInputQuoteWrapper .chatroomInputQuoteText {
@@ -405,6 +452,38 @@
405
452
  -webkit-user-drag: none;
406
453
  pointer-events: none;
407
454
  }
455
+ .yx-chatroomWrapper .chatroomInputAttachmentWrapperImg {
456
+ position: relative;
457
+ width: 60px;
458
+ height: 60px;
459
+ overflow: hidden;
460
+ }
461
+ .yx-chatroomWrapper .chatroomInputAttachmentWrapperImg:hover .chatroomInputAttachmentWrapperImgMask {
462
+ display: block;
463
+ }
464
+ .yx-chatroomWrapper .chatroomInputAttachmentWrapperImg:hover .chatroomInputAttachmentDeleteBtn {
465
+ display: block;
466
+ }
467
+ .yx-chatroomWrapper .chatroomInputAttachmentWrapperImg .chatroomInputAttachmentWrapperImgMask {
468
+ position: absolute;
469
+ width: 100%;
470
+ height: 100%;
471
+ background-color: rgba(0, 0, 0, 0.5);
472
+ z-index: 1;
473
+ display: none;
474
+ }
475
+ .yx-chatroomWrapper .chatroomInputAttachmentWrapperImg .chatroomInputAttachmentDeleteBtn {
476
+ position: absolute;
477
+ right: 50%;
478
+ top: 50%;
479
+ transform: translateY(-50%) translateX(50%);
480
+ color: var(--theme-text, #252b3a);
481
+ z-index: 1;
482
+ display: none;
483
+ }
484
+ .yx-chatroomWrapper .chatroomInputAttachmentWrapperImg .chatroomInputAttachmentDeleteBtn svg {
485
+ color: #fff;
486
+ }
408
487
  .yx-chatroomWrapper {
409
488
  --input-controller-height: 34px;
410
489
  }
@@ -491,6 +570,9 @@
491
570
  display: flex;
492
571
  align-items: flex-end;
493
572
  gap: 12px;
573
+ }
574
+ .yx-chatroomWrapper .chatroomControllerWrapper .chatroomInputUpload .anticon-loading {
575
+ color: var(--theme-text, #252b3a);
494
576
  }.yx-chat-page-container {
495
577
  position: relative;
496
578
  display: flex;
@@ -689,18 +771,18 @@
689
771
  margin-bottom: 6px;
690
772
  border-radius: 8px;
691
773
  background-color: #282a2f;
692
- }.sidebar-container[data-v-2f397ece] {
774
+ }.sidebar-container[data-v-961f30d7] {
693
775
  display: flex;
694
776
  height: 100%;
695
777
  position: relative;
696
778
  }
697
- .sidebar-container.is-switching .server-item[data-v-2f397ece],
698
- .sidebar-container.is-switching .channel-item[data-v-2f397ece] {
779
+ .sidebar-container.is-switching .server-item[data-v-961f30d7],
780
+ .sidebar-container.is-switching .channel-item[data-v-961f30d7] {
699
781
  cursor: not-allowed;
700
782
  opacity: 0.6;
701
783
  pointer-events: none;
702
784
  }
703
- .user-panel-float[data-v-2f397ece] {
785
+ .user-panel-float[data-v-961f30d7] {
704
786
  position: absolute;
705
787
  bottom: 12px;
706
788
  left: 12px;
@@ -714,11 +796,11 @@
714
796
  border-radius: 8px;
715
797
  box-shadow: 0px 1px 3px 0px rgba(29, 31, 58, 0.0196078431);
716
798
  }
717
- .user-panel-float .user-avatar[data-v-2f397ece] {
799
+ .user-panel-float .user-avatar[data-v-961f30d7] {
718
800
  position: relative;
719
801
  flex-shrink: 0;
720
802
  }
721
- .user-panel-float .user-avatar .online-indicator[data-v-2f397ece] {
803
+ .user-panel-float .user-avatar .online-indicator[data-v-961f30d7] {
722
804
  position: absolute;
723
805
  bottom: 0;
724
806
  right: 0;
@@ -728,12 +810,12 @@
728
810
  border: 3px solid #1a1b1e;
729
811
  border-radius: 50%;
730
812
  }
731
- .user-panel-float .user-info[data-v-2f397ece] {
813
+ .user-panel-float .user-info[data-v-961f30d7] {
732
814
  flex: 1;
733
815
  overflow: hidden;
734
816
  min-width: 0;
735
817
  }
736
- .user-panel-float .user-info .user-name[data-v-2f397ece] {
818
+ .user-panel-float .user-info .user-name[data-v-961f30d7] {
737
819
  font-size: 14px;
738
820
  font-weight: 600;
739
821
  color: var(--theme-text);
@@ -741,25 +823,25 @@
741
823
  text-overflow: ellipsis;
742
824
  white-space: nowrap;
743
825
  }
744
- .user-panel-float .user-info .user-status[data-v-2f397ece] {
826
+ .user-panel-float .user-info .user-status[data-v-961f30d7] {
745
827
  display: flex;
746
828
  align-items: center;
747
829
  gap: 4px;
748
830
  font-size: 12px;
749
831
  color: var(--theme-success-text);
750
832
  }
751
- .user-panel-float .user-info .user-status .status-dot[data-v-2f397ece] {
833
+ .user-panel-float .user-info .user-status .status-dot[data-v-961f30d7] {
752
834
  width: 8px;
753
835
  height: 8px;
754
836
  background-color: var(--theme-success-text);
755
837
  border-radius: 50%;
756
838
  }
757
- .user-panel-float .user-actions[data-v-2f397ece] {
839
+ .user-panel-float .user-actions[data-v-961f30d7] {
758
840
  display: flex;
759
841
  align-items: center;
760
842
  gap: 8px;
761
843
  }
762
- .user-panel-float .user-actions .action-btn[data-v-2f397ece] {
844
+ .user-panel-float .user-actions .action-btn[data-v-961f30d7] {
763
845
  width: 20px;
764
846
  height: 20px;
765
847
  display: flex;
@@ -772,14 +854,14 @@
772
854
  font-size: 16px;
773
855
  outline: none;
774
856
  }
775
- .user-panel-float .user-actions .action-btn[data-v-2f397ece]:hover {
857
+ .user-panel-float .user-actions .action-btn[data-v-961f30d7]:hover {
776
858
  background-color: var(--theme-icon-hover);
777
859
  color: var(--theme-text);
778
860
  }
779
- .user-panel-float .user-actions .action-btn[data-v-2f397ece]:focus {
861
+ .user-panel-float .user-actions .action-btn[data-v-961f30d7]:focus {
780
862
  outline: none;
781
863
  }
782
- .server-sidebar[data-v-2f397ece] {
864
+ .server-sidebar[data-v-961f30d7] {
783
865
  display: flex;
784
866
  flex-direction: column;
785
867
  width: 72px;
@@ -787,23 +869,23 @@
787
869
  padding: 0 0 16px;
788
870
  padding-bottom: 73px;
789
871
  }
790
- .server-sidebar .server-list[data-v-2f397ece] {
872
+ .server-sidebar .server-list[data-v-961f30d7] {
791
873
  flex: 1;
792
874
  overflow-y: auto;
793
875
  overflow-x: hidden;
794
876
  border-right: 1px solid var(--theme-line);
795
877
  padding-top: 16px;
796
878
  }
797
- .server-sidebar .server-list[data-v-2f397ece]::-webkit-scrollbar {
879
+ .server-sidebar .server-list[data-v-961f30d7]::-webkit-scrollbar {
798
880
  width: 0;
799
881
  }
800
- .server-sidebar .logo-wrap[data-v-2f397ece] {
882
+ .server-sidebar .logo-wrap[data-v-961f30d7] {
801
883
  margin: 0 16px;
802
884
  border-bottom: 1px solid var(--theme-line-split);
803
885
  padding-bottom: 12px;
804
886
  margin-bottom: 12px;
805
887
  }
806
- .server-sidebar .logo-wrap .logo[data-v-2f397ece] {
888
+ .server-sidebar .logo-wrap .logo[data-v-961f30d7] {
807
889
  width: 40px;
808
890
  height: 40px;
809
891
  border-radius: 8px;
@@ -814,7 +896,7 @@
814
896
  overflow: hidden;
815
897
  transition: border-radius 0.15s ease-out, background-color 0.15s ease-out;
816
898
  }
817
- .server-sidebar .server-item[data-v-2f397ece] {
899
+ .server-sidebar .server-item[data-v-961f30d7] {
818
900
  position: relative;
819
901
  display: flex;
820
902
  align-items: center;
@@ -822,7 +904,7 @@
822
904
  margin: 0 16px 16px;
823
905
  cursor: pointer;
824
906
  }
825
- .server-sidebar .server-item .server-icon[data-v-2f397ece] {
907
+ .server-sidebar .server-item .server-icon[data-v-961f30d7] {
826
908
  width: 40px;
827
909
  height: 40px;
828
910
  border-radius: 8px;
@@ -833,35 +915,36 @@
833
915
  overflow: hidden;
834
916
  transition: border-radius 0.15s ease-out, background-color 0.15s ease-out;
835
917
  }
836
- .server-sidebar .server-item .server-icon img[data-v-2f397ece] {
918
+ .server-sidebar .server-item .server-icon img[data-v-961f30d7] {
837
919
  width: 100%;
838
920
  height: 100%;
839
921
  -o-object-fit: cover;
840
922
  object-fit: cover;
841
923
  }
842
- .server-sidebar .server-item .server-icon .server-initial[data-v-2f397ece] {
924
+ .server-sidebar .server-item .server-icon .server-initial[data-v-961f30d7] {
843
925
  font-size: 18px;
844
926
  font-weight: 500;
845
927
  color: var(--theme-text);
846
928
  }
847
- .server-sidebar .server-item:hover .server-icon[data-v-2f397ece], .server-sidebar .server-item.active .server-icon[data-v-2f397ece] {
929
+ .server-sidebar .server-item:hover .server-icon[data-v-961f30d7], .server-sidebar .server-item.active .server-icon[data-v-961f30d7] {
848
930
  border-radius: 16px;
849
931
  background-color: var(--theme-form-control-line-active);
932
+ border: 1px solid var(--theme-table-header-bg);
850
933
  }
851
- .server-sidebar .server-item:hover .server-icon .server-initial[data-v-2f397ece], .server-sidebar .server-item.active .server-icon .server-initial[data-v-2f397ece] {
934
+ .server-sidebar .server-item:hover .server-icon .server-initial[data-v-961f30d7], .server-sidebar .server-item.active .server-icon .server-initial[data-v-961f30d7] {
852
935
  color: var(--theme-light-text);
853
936
  }
854
- .server-sidebar .server-item .unread-badge[data-v-2f397ece] {
937
+ .server-sidebar .server-item .unread-badge[data-v-961f30d7] {
855
938
  position: absolute;
856
939
  bottom: -4px;
857
940
  right: 4px;
858
941
  }
859
- .server-sidebar .server-item.add-server[data-v-2f397ece] {
942
+ .server-sidebar .server-item.add-server[data-v-961f30d7] {
860
943
  margin-top: 8px;
861
944
  padding-top: 8px;
862
945
  border-top: 2px solid var(--theme-global-bg);
863
946
  }
864
- .server-sidebar .server-item.add-server .add-server-btn[data-v-2f397ece] {
947
+ .server-sidebar .server-item.add-server .add-server-btn[data-v-961f30d7] {
865
948
  width: 48px;
866
949
  height: 48px;
867
950
  border-radius: 50%;
@@ -874,12 +957,12 @@
874
957
  color: var(--theme-success-text);
875
958
  font-size: 20px;
876
959
  }
877
- .server-sidebar .server-item.add-server .add-server-btn[data-v-2f397ece]:hover {
960
+ .server-sidebar .server-item.add-server .add-server-btn[data-v-961f30d7]:hover {
878
961
  border-radius: 16px;
879
962
  background-color: var(--theme-success-text);
880
963
  color: var(--theme-text);
881
964
  }
882
- .channel-sidebar[data-v-2f397ece] {
965
+ .channel-sidebar[data-v-961f30d7] {
883
966
  display: flex;
884
967
  flex-direction: column;
885
968
  width: 294px;
@@ -891,7 +974,7 @@
891
974
  padding-bottom: 73px;
892
975
  position: relative;
893
976
  }
894
- .channel-sidebar .resize-handle[data-v-2f397ece] {
977
+ .channel-sidebar .resize-handle[data-v-961f30d7] {
895
978
  position: absolute;
896
979
  top: 0;
897
980
  right: -3px;
@@ -901,17 +984,17 @@
901
984
  z-index: 20;
902
985
  transition: background-color 0.15s ease;
903
986
  }
904
- .channel-sidebar .resize-handle[data-v-2f397ece]:hover, .channel-sidebar .resize-handle[data-v-2f397ece]:active {
987
+ .channel-sidebar .resize-handle[data-v-961f30d7]:hover, .channel-sidebar .resize-handle[data-v-961f30d7]:active {
905
988
  background-color: var(--theme-form-control-line-active);
906
989
  }
907
- .channel-sidebar .server-header[data-v-2f397ece] {
990
+ .channel-sidebar .server-header[data-v-961f30d7] {
908
991
  display: flex;
909
992
  align-items: center;
910
993
  justify-content: space-between;
911
994
  padding: 22px 20px;
912
995
  border-bottom: 1px solid var(--theme-line);
913
996
  }
914
- .channel-sidebar .server-header .server-name[data-v-2f397ece] {
997
+ .channel-sidebar .server-header .server-name[data-v-961f30d7] {
915
998
  font-size: 15px;
916
999
  font-weight: 600;
917
1000
  color: var(--theme-stress-text);
@@ -919,66 +1002,68 @@
919
1002
  text-overflow: ellipsis;
920
1003
  white-space: nowrap;
921
1004
  }
922
- .channel-sidebar .server-header .server-setting[data-v-2f397ece] {
1005
+ .channel-sidebar .server-header .server-setting[data-v-961f30d7] {
923
1006
  color: #b9bbbe;
924
1007
  cursor: pointer;
925
1008
  font-size: 16px;
926
1009
  }
927
- .channel-sidebar .server-header .server-setting[data-v-2f397ece]:hover {
1010
+ .channel-sidebar .server-header .server-setting[data-v-961f30d7]:hover {
928
1011
  color: #dcddde;
929
1012
  }
930
- .channel-sidebar .channel-list[data-v-2f397ece] {
1013
+ .channel-sidebar .channel-list[data-v-961f30d7] {
931
1014
  flex: 1;
932
1015
  overflow-y: auto;
933
1016
  }
934
- .channel-sidebar .channel-list[data-v-2f397ece]::-webkit-scrollbar {
1017
+ .channel-sidebar .channel-list[data-v-961f30d7]::-webkit-scrollbar {
935
1018
  width: 4px;
936
1019
  }
937
- .channel-sidebar .channel-list[data-v-2f397ece]::-webkit-scrollbar-thumb {
1020
+ .channel-sidebar .channel-list[data-v-961f30d7]::-webkit-scrollbar-thumb {
938
1021
  background-color: var(--theme-line);
939
1022
  border-radius: 2px;
940
1023
  }
941
- .channel-sidebar .channel-item[data-v-2f397ece] {
1024
+ .channel-sidebar .channel-item[data-v-961f30d7] {
942
1025
  display: flex;
943
1026
  align-items: center;
944
- padding: 16px 22px;
1027
+ padding: 0 20px;
1028
+ height: 46px;
1029
+ line-height: 46px;
945
1030
  border-radius: 4px;
946
1031
  cursor: pointer;
947
1032
  color: var(--theme-icon-fill-weak);
948
1033
  }
949
- .channel-sidebar .channel-item[data-v-2f397ece]:not(:last-child) {
1034
+ .channel-sidebar .channel-item[data-v-961f30d7]:not(:last-child) {
950
1035
  margin-bottom: 2px;
951
1036
  }
952
- .channel-sidebar .channel-item[data-v-2f397ece]:hover {
1037
+ .channel-sidebar .channel-item[data-v-961f30d7]:hover {
953
1038
  background-color: var(--theme-select-bg);
954
1039
  color: var(--theme-text);
955
1040
  }
956
- .channel-sidebar .channel-item:hover .channel-setting[data-v-2f397ece] {
1041
+ .channel-sidebar .channel-item:hover .channel-setting[data-v-961f30d7] {
957
1042
  opacity: 1;
958
1043
  }
959
- .channel-sidebar .channel-item.active[data-v-2f397ece] {
1044
+ .channel-sidebar .channel-item.active[data-v-961f30d7] {
960
1045
  background-color: var(--theme-select-bg);
961
1046
  color: var(--theme-text);
962
1047
  font-weight: 500;
963
1048
  font-size: 16px;
964
1049
  }
965
- .channel-sidebar .channel-item .channel-icon[data-v-2f397ece] {
1050
+ .channel-sidebar .channel-item .channel-icon[data-v-961f30d7] {
966
1051
  margin-right: 6px;
967
1052
  font-size: 20px;
968
1053
  font-weight: 400;
969
1054
  color: #8e9297;
970
1055
  }
971
- .channel-sidebar .channel-item .channel-name[data-v-2f397ece] {
1056
+ .channel-sidebar .channel-item .channel-name[data-v-961f30d7] {
972
1057
  flex: 1;
973
1058
  overflow: hidden;
974
1059
  text-overflow: ellipsis;
975
1060
  white-space: nowrap;
976
1061
  font-size: 14px;
977
1062
  }
978
- .channel-sidebar .channel-item .channel-unread[data-v-2f397ece] {
1063
+ .channel-sidebar .channel-item .channel-unread[data-v-961f30d7] {
979
1064
  margin-left: 4px;
980
1065
  }
981
- .channel-sidebar .channel-item .channel-setting[data-v-2f397ece] {
1066
+ .channel-sidebar .channel-item .channel-setting[data-v-961f30d7] {
982
1067
  opacity: 0;
983
1068
  margin-left: 8px;
984
1069
  font-size: 14px;
@@ -987,10 +1072,10 @@
987
1072
  transition: opacity 0.15s ease, color 0.15s ease;
988
1073
  flex-shrink: 0;
989
1074
  }
990
- .channel-sidebar .channel-item .channel-setting[data-v-2f397ece]:hover {
1075
+ .channel-sidebar .channel-item .channel-setting[data-v-961f30d7]:hover {
991
1076
  color: var(--theme-text);
992
1077
  }
993
- .channel-sidebar .add-channel-item[data-v-2f397ece] {
1078
+ .channel-sidebar .add-channel-item[data-v-961f30d7] {
994
1079
  display: flex;
995
1080
  align-items: center;
996
1081
  padding: 12px 22px;
@@ -999,7 +1084,7 @@
999
1084
  margin-top: 4px;
1000
1085
  color: var(--theme-link);
1001
1086
  }
1002
- .channel-sidebar .add-channel-item .channel-icon[data-v-2f397ece] {
1087
+ .channel-sidebar .add-channel-item .channel-icon[data-v-961f30d7] {
1003
1088
  margin-right: 6px;
1004
1089
  font-size: 16px;
1005
1090
  color: var(--theme-link);
@@ -1008,64 +1093,64 @@
1008
1093
  align-items: center;
1009
1094
  justify-content: center;
1010
1095
  }
1011
- .channel-sidebar .add-channel-item .channel-name[data-v-2f397ece] {
1096
+ .channel-sidebar .add-channel-item .channel-name[data-v-961f30d7] {
1012
1097
  font-size: 14px;
1013
1098
  }
1014
- [data-v-2f397ece] .ant-modal .ant-modal-content {
1099
+ [data-v-961f30d7] .ant-modal .ant-modal-content {
1015
1100
  background-color: var(--theme-global-bg);
1016
1101
  border-radius: 8px;
1017
1102
  }
1018
- [data-v-2f397ece] .ant-modal .ant-modal-header {
1103
+ [data-v-961f30d7] .ant-modal .ant-modal-header {
1019
1104
  background-color: var(--theme-global-bg);
1020
1105
  border-bottom: none;
1021
1106
  }
1022
- [data-v-2f397ece] .ant-modal .ant-modal-title {
1107
+ [data-v-961f30d7] .ant-modal .ant-modal-title {
1023
1108
  color: var(--theme-text);
1024
1109
  }
1025
- [data-v-2f397ece] .ant-modal .ant-modal-close-x {
1110
+ [data-v-961f30d7] .ant-modal .ant-modal-close-x {
1026
1111
  color: #b9bbbe;
1027
1112
  }
1028
- [data-v-2f397ece] .ant-modal .ant-form-item-label > label {
1113
+ [data-v-961f30d7] .ant-modal .ant-form-item-label > label {
1029
1114
  color: #b9bbbe;
1030
1115
  }
1031
- [data-v-2f397ece] .ant-modal .ant-input {
1116
+ [data-v-961f30d7] .ant-modal .ant-input {
1032
1117
  background-color: var(--theme-line);
1033
1118
  border-color: #040405;
1034
1119
  color: #dcddde;
1035
1120
  }
1036
- [data-v-2f397ece] .ant-modal .ant-input::-moz-placeholder {
1121
+ [data-v-961f30d7] .ant-modal .ant-input::-moz-placeholder {
1037
1122
  color: #72767d;
1038
1123
  }
1039
- [data-v-2f397ece] .ant-modal .ant-input:-ms-input-placeholder {
1124
+ [data-v-961f30d7] .ant-modal .ant-input:-ms-input-placeholder {
1040
1125
  color: #72767d;
1041
1126
  }
1042
- [data-v-2f397ece] .ant-modal .ant-input::placeholder {
1127
+ [data-v-961f30d7] .ant-modal .ant-input::placeholder {
1043
1128
  color: #72767d;
1044
1129
  }
1045
- [data-v-2f397ece] .ant-modal .ant-input:hover,[data-v-2f397ece] .ant-modal .ant-input:focus {
1130
+ [data-v-961f30d7] .ant-modal .ant-input:hover,[data-v-961f30d7] .ant-modal .ant-input:focus {
1046
1131
  border-color: #5865f2;
1047
1132
  }
1048
- [data-v-2f397ece] .ant-modal .ant-tabs-tab {
1133
+ [data-v-961f30d7] .ant-modal .ant-tabs-tab {
1049
1134
  color: #b9bbbe;
1050
1135
  }
1051
- [data-v-2f397ece] .ant-modal .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
1136
+ [data-v-961f30d7] .ant-modal .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
1052
1137
  color: var(--theme-text);
1053
1138
  }
1054
- [data-v-2f397ece] .ant-modal .ant-tabs-ink-bar {
1139
+ [data-v-961f30d7] .ant-modal .ant-tabs-ink-bar {
1055
1140
  background-color: #5865f2;
1056
1141
  }
1057
- .footer-container[data-v-2f397ece] {
1142
+ .footer-container[data-v-961f30d7] {
1058
1143
  display: flex;
1059
1144
  align-items: center;
1060
1145
  justify-content: flex-end;
1061
1146
  gap: 10px;
1062
1147
  }
1063
- .invite-btn[data-v-2f397ece] {
1148
+ .invite-btn[data-v-961f30d7] {
1064
1149
  cursor: pointer;
1065
1150
  color: var(--theme-icon-fill-weak);
1066
1151
  transition: color 0.15s ease;
1067
1152
  }
1068
- .invite-btn[data-v-2f397ece]:hover {
1153
+ .invite-btn[data-v-961f30d7]:hover {
1069
1154
  color: var(--theme-text);
1070
1155
  }.channel-modal .ant-modal-header {
1071
1156
  background-color: var(--theme-table-header-bg);
@@ -5,8 +5,14 @@ export declare const filterStr: (str: string) => string;
5
5
  export declare const parseFileSize: (size: number, level?: number) => string;
6
6
  export declare const matchExt: (extname: string) => string;
7
7
  export declare const isLt: (size: number, target: number) => boolean;
8
- export declare const debounce: (fn: any, delay: number, immediate?: boolean) => (...args: any[]) => void;
9
- export declare const promiseDebounce: (func: any, wait: number) => (...args: any) => Promise<unknown>;
8
+ export declare const debounce: (fn: () => void, delay: number, immediate?: boolean) => (...args: Parameters<typeof fn>) => void;
9
+ /**
10
+ * 对返回 Promise 的函数做防抖:在 wait 内的多次调用会合并为一次执行,所有调用方共享同一结果
11
+ * @param func 返回 Promise 的函数
12
+ * @param wait 防抖等待时间(毫秒)
13
+ * @returns 防抖后的函数,调用返回 Promise
14
+ */
15
+ export declare const promiseDebounce: <T, A extends unknown[]>(func: (...args: A) => Promise<T>, wait: number) => (this: unknown, ...args: A) => Promise<T>;
10
16
  /** 图片消息单边最小像素 */
11
17
  export declare const IMG_MSG_SIDE_MIN = 80;
12
18
  /** 图片消息单边最大像素 */
@@ -23,4 +29,6 @@ export declare function getImageMsgDisplaySize(attach: {
23
29
  width: number;
24
30
  height: number;
25
31
  };
32
+ /** 将字节大小转换为MB */
33
+ export declare const getMByteSize: (size: number) => string;
26
34
  export {};