k2-im 0.1.46 → 0.1.48

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/browser.js CHANGED
@@ -1 +1 @@
1
- export{Ua as canCopyImageToClipboard,Va as copyImageToClipboard,B as createLazyBrowserApiProtocolClient}from'./chunk-R3MSZLO6.js';import'./chunk-7PCBQBZL.js';import'./chunk-WOT6VMZA.js';
1
+ export{Ua as canCopyImageToClipboard,Va as copyImageToClipboard,B as createLazyBrowserApiProtocolClient}from'./chunk-ELGE657I.js';import'./chunk-FMEZINTJ.js';import'./chunk-WOT6VMZA.js';
@@ -1949,10 +1949,10 @@ interface ImProfilePort {
1949
1949
  * 会话收藏可展示的内容类型;与 iOS `isSupportCollectionMsgType` 对齐。
1950
1950
  *
1951
1951
  * @remarks 这些值与收藏接口的 `content_type` 数值一一对应,而那个数值就是消息自己的 contentType
1952
- * (1=文本 2=图片 3=视频 4=语音 5=位置 11=文件 **28=媒体合集**),不是另一套收藏专用枚举。
1952
+ * (1=文本 2=图片 3=视频 4=语音 5=位置 11=文件 28=媒体合集 29=文件合集),不是另一套收藏专用枚举。
1953
1953
  * Android `MessageCollectExecute` 直接写 `message.getContentType()`,iOS 写 `msg.msgType`,两端一致。
1954
1954
  */
1955
- type ImSessionFavoriteKind = 'text' | 'image' | 'video' | 'voice' | 'location' | 'file' | 'mediaAlbum';
1955
+ type ImSessionFavoriteKind = 'text' | 'image' | 'video' | 'voice' | 'location' | 'file' | 'mediaAlbum' | 'filesAlbum';
1956
1956
  /** 服务端一条会话收藏快照;列表以 HTTP 为准,不回写原消息。 */
1957
1957
  interface ImSessionFavoriteItem$1 {
1958
1958
  readonly collectId: string;
@@ -9197,7 +9197,10 @@ interface ImThreadStoreState {
9197
9197
  }
9198
9198
  /** Thread Store 的稳定公共动作;DOM 滚动、路由和反馈仍由宿主负责。 */
9199
9199
  interface ImThreadStoreActions {
9200
- open: (ref: ConversationRef<ProductHandleConversationType>) => Promise<ProductConversationHandle | undefined>;
9200
+ /** beforeCommit 在新句柄准备后、替换旧线程前执行;失败关闭新句柄并保留旧线程。 */
9201
+ open: (ref: ConversationRef<ProductHandleConversationType>, options?: {
9202
+ beforeCommit?: () => Promise<void>;
9203
+ }) => Promise<ProductConversationHandle | undefined>;
9201
9204
  invalidatePendingOpen: () => void;
9202
9205
  /** 默认重新读取最新页;仅在无需取代在途历史操作且已稳定处于最新窗口时允许跳过。 */
9203
9206
  loadLatest: (options?: {
@@ -9215,7 +9218,10 @@ interface ImThreadStoreActions {
9215
9218
  leave: () => void;
9216
9219
  loadOlder: () => Promise<boolean>;
9217
9220
  loadNewer: () => Promise<boolean>;
9218
- loadAround: (messageId: string) => Promise<boolean>;
9221
+ /** 默认重新定位;skipIfLoaded 仅在目标已显示且没有在途窗口操作时复用当前窗口。 */
9222
+ loadAround: (messageId: string, options?: {
9223
+ skipIfLoaded?: boolean;
9224
+ }) => Promise<boolean>;
9219
9225
  resolveMessage: (messageId: string) => Promise<ImMessageView | null>;
9220
9226
  retainHandle: (handle?: ProductConversationHandle) => () => void;
9221
9227
  retainCurrentHandle: () => () => void;