@botpress/webchat 5.5.3 → 5.5.7

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,18 +1,18 @@
1
1
 
2
- > @botpress/webchat@5.5.3 build /home/runner/work/genisys/genisys/packages/webchat/components
2
+ > @botpress/webchat@5.5.7 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
- ✓ 2816 modules transformed.
7
+ ✓ 2818 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.64 kB │ gzip: 424.88 kB
12
+ dist/index.js 1,909.44 kB │ gzip: 427.17 kB
13
13
  [vite:dts] Start rollup declaration files...
14
14
  Analysis will use the bundled TypeScript version 5.9.3
15
- [vite:dts] Declaration files built in 27022ms.
15
+ [vite:dts] Declaration files built in 26510ms.
16
16
 
17
- dist/index.umd.cjs 1,213.78 kB │ gzip: 350.17 kB
18
- ✓ built in 34.69s
17
+ dist/index.umd.cjs 1,219.97 kB │ gzip: 352.72 kB
18
+ ✓ built in 33.99s
package/dist/index.d.ts CHANGED
@@ -979,6 +979,8 @@ export declare type RichBlockMessage = BlockMessage & {
979
979
  };
980
980
  };
981
981
 
982
+ export declare const ru: WebchatTranslations;
983
+
982
984
  export declare type ScopedClient = {
983
985
  sendMessage: (payload: IntegrationMessage['payload'], metadata?: Record<string, string>) => Promise<void>;
984
986
  sendEvent: (event: Record<string, any>, options?: {
@@ -1051,6 +1053,8 @@ declare let _trackFn: ((event: string, properties?: Record<string, unknown>) =>
1051
1053
 
1052
1054
  export declare const TypingIndicator: MemoExoticComponent<({ ...props }: ComponentProps<"div">) => JSX.Element>;
1053
1055
 
1056
+ export declare const uk: WebchatTranslations;
1057
+
1054
1058
  export declare function useActiveConversation(): UseActiveConversationReturn;
1055
1059
 
1056
1060
  declare type UseActiveConversationReturn = {
@@ -1121,10 +1125,15 @@ declare type UsePresenceEmitterProps = {
1121
1125
 
1122
1126
  export { User }
1123
1127
 
1124
- export declare function useReadIndicator(): {
1128
+ export declare function useReadIndicator({ enabled }?: UseReadIndicatorProps): {
1125
1129
  onMessageReceived: (messageId: string) => void;
1126
1130
  };
1127
1131
 
1132
+ declare type UseReadIndicatorProps = {
1133
+ /** Gate — only emit when the bot reports presence upstream (agentPresenceEnabled). */
1134
+ enabled?: boolean;
1135
+ };
1136
+
1128
1137
  export declare type UserProfile = Omit<User, 'id' | 'createdAt' | 'updatedAt'>;
1129
1138
 
1130
1139
  export declare type UserResponse = Awaited<ReturnType<Client['getUser']>>['user'];