corp-chat-library-antd-react-socket 1.2.25 → 1.2.27

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/README.md CHANGED
@@ -212,6 +212,8 @@ Set:
212
212
  fetchMessageContextPath: "/api/sms/chat/messages"
213
213
  ```
214
214
 
215
+ If `fetchMessageContextPath` is omitted, it will be derived from `fetchChatMessagesPath` by appending `/chat/messages`. A legacy value ending with `/context` is normalized to `/chat/messages`.
216
+
215
217
  Request URL:
216
218
  ```ts
217
219
  `${fetchMessageContextPath}/${chatId}/${messageId}`
@@ -14,6 +14,7 @@ interface hookParams {
14
14
  fetchMoreMessages: () => void;
15
15
  hasMore: boolean;
16
16
  offset: number;
17
+ disabled?: boolean;
17
18
  }
18
- export declare const useInfiniteScrollUp: ({ containerRef, fetchMoreMessages, hasMore, offset, }: hookParams) => void;
19
+ export declare const useInfiniteScrollUp: ({ containerRef, fetchMoreMessages, hasMore, offset, disabled, }: hookParams) => void;
19
20
  export {};