@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.
- package/.turbo/turbo-build.log +7 -8
- package/dist/index.d.ts +12 -1
- package/dist/index.js +874 -864
- package/dist/index.umd.cjs +46 -46
- package/package.json +2 -4
- package/vitest.config.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/webchat@5.5.
|
|
2
|
+
> @botpress/webchat@5.5.5 build /home/runner/work/genisys/genisys/packages/webchat/components
|
|
3
3
|
> vite build
|
|
4
4
|
|
|
5
5
|
[36mvite v5.4.8 [32mbuilding for production...[36m[39m
|
|
6
6
|
transforming...
|
|
7
|
-
[32m✓[39m
|
|
7
|
+
[32m✓[39m 2816 modules transformed.
|
|
8
8
|
rendering chunks...
|
|
9
9
|
|
|
10
10
|
[vite:dts] Start generate declaration files...
|
|
11
11
|
computing gzip size...
|
|
12
|
-
[2mdist/[22m[36mindex.js [39m[1m[33m1,902.
|
|
12
|
+
[2mdist/[22m[36mindex.js [39m[1m[33m1,902.69 kB[39m[22m[2m │ gzip: 424.90 kB[22m
|
|
13
13
|
[vite:dts] Start rollup declaration files...
|
|
14
|
-
Analysis will use the bundled TypeScript version 5.
|
|
15
|
-
|
|
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
|
-
[2mdist/[22m[36mindex.umd.cjs [39m[1m[33m1,213.
|
|
19
|
-
[32m✓ built in
|
|
17
|
+
[2mdist/[22m[36mindex.umd.cjs [39m[1m[33m1,213.82 kB[39m[22m[2m │ gzip: 350.19 kB[22m
|
|
18
|
+
[32m✓ built in 29.31s[39m
|
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'];
|