@baishuyun/chat-sdk 0.1.5 → 0.1.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @baishuyun/chat-sdk
2
2
 
3
+ ## 0.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - add loading message for attachment processing
8
+
3
9
  ## 0.1.5
4
10
 
5
11
  ### Patch Changes
package/dist/chat-sdk.js CHANGED
@@ -46433,7 +46433,9 @@ const Ep = class Ep {
46433
46433
  var g;
46434
46434
  await this.whenChatComponentReady();
46435
46435
  const { attachmentsUrl: s, ...u } = o, f = `${I4(this.options.backendApiEndpoint)}form/attachment/upload`;
46436
+ s && s.length > 0 && this.Store.getState().setGlobalFakeLoadingMessage("正在处理附件...");
46436
46437
  let d = await CZ(s || [], f);
46438
+ this.Store.getState().clearGlobalFakeLoadingMessage();
46437
46439
  const m = d.length > 0 ? {
46438
46440
  role: "user",
46439
46441
  parts: [