@botpress/webchat 5.5.1 → 5.5.5

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.
@@ -1,19 +1,18 @@
1
1
 
2
- > @botpress/webchat@5.5.1 build /home/runner/work/genisys/genisys/packages/webchat-components
2
+ > @botpress/webchat@5.5.5 build /home/runner/work/genisys/genisys/packages/webchat/components
3
3
  > vite build
4
4
 
5
5
  vite v5.4.8 building for production...
6
6
  transforming...
7
- ✓ 2814 modules transformed.
7
+ ✓ 2816 modules transformed.
8
8
  rendering chunks...
9
9
 
10
10
  [vite:dts] Start generate declaration files...
11
11
  computing gzip size...
12
- dist/index.js 1,902.43 kB │ gzip: 424.83 kB
12
+ dist/index.js 1,902.69 kB │ gzip: 424.90 kB
13
13
  [vite:dts] Start rollup declaration files...
14
- Analysis will use the bundled TypeScript version 5.8.2
15
- *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
16
- [vite:dts] Declaration files built in 27958ms.
14
+ Analysis will use the bundled TypeScript version 5.9.3
15
+ [vite:dts] Declaration files built in 22829ms.
17
16
 
18
- dist/index.umd.cjs 1,213.64 kB │ gzip: 350.13 kB
19
- ✓ built in 35.66s
17
+ dist/index.umd.cjs 1,213.82 kB │ gzip: 350.19 kB
18
+ ✓ built in 29.31s
package/dist/index.d.ts CHANGED
@@ -909,6 +909,12 @@ declare type Props_5 = {
909
909
  user?: UserCredentials;
910
910
  conversationId?: string;
911
911
  configuration?: Configuration;
912
+ /**
913
+ * Fires once per user send, with the outgoing payload and the conversation
914
+ * it belongs to (absent until a fresh conversation resolves). Same moment as
915
+ * the `messageSent` event, for hosts mounting <Webchat> outside the provider.
916
+ */
917
+ onMessageSent?: (payload: unknown, conversationId?: string) => void;
912
918
  } & ComponentProps_2<'div'>;
913
919
 
914
920
  declare type Props_6 = {
@@ -1115,10 +1121,15 @@ declare type UsePresenceEmitterProps = {
1115
1121
 
1116
1122
  export { User }
1117
1123
 
1118
- export declare function useReadIndicator(): {
1124
+ export declare function useReadIndicator({ enabled }?: UseReadIndicatorProps): {
1119
1125
  onMessageReceived: (messageId: string) => void;
1120
1126
  };
1121
1127
 
1128
+ declare type UseReadIndicatorProps = {
1129
+ /** Gate — only emit when the bot reports presence upstream (agentPresenceEnabled). */
1130
+ enabled?: boolean;
1131
+ };
1132
+
1122
1133
  export declare type UserProfile = Omit<User, 'id' | 'createdAt' | 'updatedAt'>;
1123
1134
 
1124
1135
  export declare type UserResponse = Awaited<ReturnType<Client['getUser']>>['user'];