@rongcloud/im-kit 5.36.0 → 5.38.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.
- package/dist/index.d.ts +46 -3
- package/dist/index.esm.js +7467 -7231
- package/dist/index.umd.js +138 -150
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPushConfig, IConversationOption, RCConnectionStatus, ErrorCode, LogL, PluginContext, ILogger, IPluginGenerator } from '@rongcloud/engine';
|
|
1
|
+
import { IQuoteInfo, IPushConfig, IConversationOption, RCConnectionStatus, ErrorCode, LogL, PluginContext, ILogger, IPluginGenerator } from '@rongcloud/engine';
|
|
2
2
|
export { IPushConfig } from '@rongcloud/engine';
|
|
3
3
|
import { IAReceivedMessage, ReadReceiptInfoV5, ConversationType, NotificationLevel, BaseMessage, ISendMessageOptions } from '@rongcloud/imlib-next';
|
|
4
4
|
|
|
@@ -47,7 +47,13 @@ declare enum RCKitCommand {
|
|
|
47
47
|
* * true - 开启(Default)
|
|
48
48
|
* * false - 关闭
|
|
49
49
|
*/
|
|
50
|
-
DELETE_MESSAGES_WHILE_DELETE_CONVERSATION = "DELETE_MESSAGES_WHILE_DELETE_CONVERSATION"
|
|
50
|
+
DELETE_MESSAGES_WHILE_DELETE_CONVERSATION = "DELETE_MESSAGES_WHILE_DELETE_CONVERSATION",
|
|
51
|
+
/**
|
|
52
|
+
* 使用 V2 版本引用消息
|
|
53
|
+
* * true - 开启
|
|
54
|
+
* * false - 关闭(Default)
|
|
55
|
+
*/
|
|
56
|
+
USE_QUOTE_MESSAGE_V2 = "USE_QUOTE_MESSAGE_V2"
|
|
51
57
|
}
|
|
52
58
|
|
|
53
59
|
declare class EventDispatcher<T> {
|
|
@@ -68,7 +74,30 @@ declare class EventDispatcher<T> {
|
|
|
68
74
|
private _handleDispatchEvent;
|
|
69
75
|
}
|
|
70
76
|
|
|
71
|
-
|
|
77
|
+
declare enum RCKitQuoteMessageStatus {
|
|
78
|
+
/** 引用消息加载中 */
|
|
79
|
+
LOADING = 0,
|
|
80
|
+
/** 引用消息已删除 */
|
|
81
|
+
DELETED,
|
|
82
|
+
/** 引用消息已撤回 */
|
|
83
|
+
RECALLED,
|
|
84
|
+
/** 引用消息加载失败 */
|
|
85
|
+
LOAD_ERROR = 4,
|
|
86
|
+
/** 引用消息加载成功 */
|
|
87
|
+
LOADED = 5
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
interface IRCKitQuoteInfo extends IQuoteInfo {
|
|
91
|
+
/**
|
|
92
|
+
* 引用消息状态
|
|
93
|
+
*/
|
|
94
|
+
status: RCKitQuoteMessageStatus;
|
|
95
|
+
/**
|
|
96
|
+
* 仅当 status 值为 RCKitQuoteMessageStatus.LOADED 时有值
|
|
97
|
+
*/
|
|
98
|
+
quoteMessage?: IAReceivedMessage;
|
|
99
|
+
}
|
|
100
|
+
interface IRCKitCachedMessage extends Omit<IAReceivedMessage, 'quoteInfo'> {
|
|
72
101
|
/**
|
|
73
102
|
* 对应的发送事务 ID,本地生成的消息会携带此 ID,用于匹配相关事件
|
|
74
103
|
*/
|
|
@@ -84,6 +113,10 @@ interface IRCKitCachedMessage extends IAReceivedMessage {
|
|
|
84
113
|
*/
|
|
85
114
|
file?: File;
|
|
86
115
|
kitReadReceiptInfo?: ReadReceiptInfoV5;
|
|
116
|
+
/**
|
|
117
|
+
* 引用消息信息
|
|
118
|
+
*/
|
|
119
|
+
quoteInfo?: IRCKitQuoteInfo;
|
|
87
120
|
}
|
|
88
121
|
|
|
89
122
|
/** 群组会话中的汇总 @ 信息类型 */
|
|
@@ -419,6 +452,10 @@ interface IRCKitLanguageEntries {
|
|
|
419
452
|
'connection.status.connecting': string;
|
|
420
453
|
'toast.forward.success': string;
|
|
421
454
|
'toast.copy.success': string;
|
|
455
|
+
'quote.status.loading': string;
|
|
456
|
+
'quote.status.deleted': string;
|
|
457
|
+
'quote.status.recalled': string;
|
|
458
|
+
'quote.status.load-error': string;
|
|
422
459
|
}
|
|
423
460
|
|
|
424
461
|
/**
|
|
@@ -1592,6 +1629,12 @@ declare class RCKitApplication extends EventDispatcher<EventDefined> {
|
|
|
1592
1629
|
* 设置字符表情库
|
|
1593
1630
|
*/
|
|
1594
1631
|
setChatEmojiLibrary(library: IRCKitChatEmojiLibrary): void;
|
|
1632
|
+
/**
|
|
1633
|
+
* 设置发消息时允许携带 quoteInfo 数据的消息类型列表
|
|
1634
|
+
* @param typeList
|
|
1635
|
+
*/
|
|
1636
|
+
setQuoteEnableMessageTypeList(typeList: string[]): void;
|
|
1637
|
+
getQuoteEnableMessageTypeList(): string[];
|
|
1595
1638
|
/**
|
|
1596
1639
|
* 发送消息
|
|
1597
1640
|
* @param conversation - 会话
|