@botpress/webchat 4.5.0 → 4.5.2

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,5 +1,5 @@
1
1
 
2
- > @botpress/webchat@4.5.0 build /home/runner/work/genisys/genisys/packages/webchat-components
2
+ > @botpress/webchat@4.5.2 build /home/runner/work/genisys/genisys/packages/webchat-components
3
3
  > vite build
4
4
 
5
5
  vite v5.4.8 building for production...
@@ -9,13 +9,13 @@ rendering chunks...
9
9
 
10
10
  [vite:dts] Start generate declaration files...
11
11
  computing gzip size...
12
- dist/style.css  56.94 kB │ gzip: 9.46 kB
13
- dist/index.js 889.68 kB │ gzip: 235.29 kB
12
+ dist/style.css  56.97 kB │ gzip: 9.47 kB
13
+ dist/index.js 891.25 kB │ gzip: 235.74 kB
14
14
  [vite:dts] Start rollup declaration files...
15
15
  Analysis will use the bundled TypeScript version 5.8.2
16
16
  *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
17
- [vite:dts] Declaration files built in 20423ms.
17
+ [vite:dts] Declaration files built in 20648ms.
18
18
 
19
- dist/style.css  56.94 kB │ gzip: 9.46 kB
20
- dist/index.umd.cjs 550.63 kB │ gzip: 180.37 kB
21
- ✓ built in 25.89s
19
+ dist/style.css  56.97 kB │ gzip: 9.47 kB
20
+ dist/index.umd.cjs 551.88 kB │ gzip: 180.62 kB
21
+ ✓ built in 26.00s
package/dist/index.d.ts CHANGED
@@ -145,7 +145,7 @@ export declare type CarouselBlock = {
145
145
  blocks: GenericBlock[];
146
146
  };
147
147
 
148
- export declare const Chat: ({ connected, configuration, isTyping, messages, user, isLoading, renderers, isReadOnly, disableComposer, error, participants, closeWindow, sendMessage, uploadFile, addMessageFeedback, listConversations, restartConversation, clientId, storageKey, soundOn, toggleSound, disableSendButton, conversationId, locale, ...props }: Props) => JSX_2.Element;
148
+ export declare const Chat: ({ connected, configuration, isTyping, messages, user, isLoading, renderers, isReadOnly, disableComposer, error, participants, closeWindow, sendMessage, uploadFile, addMessageFeedback, listConversations, restartConversation, clientId, storageKey, soundOn, toggleSound, disableSendButton, conversationId, locale, isOpen, ...props }: Props) => JSX_2.Element;
149
149
 
150
150
  declare type ChatSoundStore = {
151
151
  soundOn: boolean;
@@ -308,6 +308,9 @@ export declare const defaultTranslations: {
308
308
  readonly 'error.disconnected': "Disconnected";
309
309
  readonly 'error.unexpected': "Unexpected error";
310
310
  readonly 'dropdown.placeholder': "Select...";
311
+ readonly 'message.status.delivered': "Delivered";
312
+ readonly 'date.today': "Today";
313
+ readonly 'date.yesterday': "Yesterday";
311
314
  };
312
315
 
313
316
  export declare function detectLocale(language?: string): WebchatTranslations;
@@ -485,7 +488,7 @@ declare type MessageContextVaue = {
485
488
  setIsLoading: Dispatch<SetStateAction<string[]>>;
486
489
  };
487
490
 
488
- export declare const MessageList: MemoExoticComponent<({ className, messages, isTyping, headerMessage, renderers, botAvatar, botDescription, botName, sendMessage, addMessageFeedback, showMarquee, showDateSystemMessage, showMessageStatus, showIncomingMessageAvatar, showOutgoingMessageAvatar, ...props }: ComponentProps<"div"> & MessageListProps) => JSX_2.Element>;
491
+ export declare const MessageList: MemoExoticComponent<({ className, messages, isTyping, headerMessage, renderers, botAvatar, botDescription, botName, sendMessage, addMessageFeedback, showMarquee, showDateSystemMessage, showMessageStatus, showIncomingMessageAvatar, showOutgoingMessageAvatar, isOpen, ...props }: ComponentProps<"div"> & MessageListProps) => JSX_2.Element>;
489
492
 
490
493
  declare type MessageListProps = {
491
494
  messages?: RichBlockMessage[];
@@ -502,6 +505,7 @@ declare type MessageListProps = {
502
505
  showMessageStatus?: boolean;
503
506
  showIncomingMessageAvatar?: boolean;
504
507
  showOutgoingMessageAvatar?: boolean;
508
+ isOpen?: boolean;
505
509
  };
506
510
 
507
511
  export declare const MessagePreview: ForwardRefExoticComponent_2<Omit<ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & {
@@ -585,6 +589,7 @@ export declare type Props = {
585
589
  disableSendButton?: boolean;
586
590
  conversationId?: string;
587
591
  locale?: Partial<WebchatTranslations>;
592
+ isOpen?: boolean;
588
593
  };
589
594
 
590
595
  declare type Props_2 = {
@@ -1148,6 +1153,9 @@ export declare const webchatClasses: {
1148
1153
  readonly deliveryStatus: {
1149
1154
  readonly className: "bpMessageDeliveryStatus";
1150
1155
  };
1156
+ readonly deliveryStatusLabel: {
1157
+ readonly className: "bpMessageDeliveryStatusLabel";
1158
+ };
1151
1159
  readonly blocks: {
1152
1160
  readonly text: {
1153
1161
  readonly heading1: {