botframework-webchat-api 4.18.0 → 4.18.1-main.20240807.dfe788c

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.
@@ -127,7 +127,28 @@ type StyleOptions = {
127
127
  */
128
128
  bubbleFromUserNubSize?: number;
129
129
  bubbleFromUserTextColor?: string;
130
- bubbleImageHeight?: number;
130
+ /**
131
+ * Specifies the fixed height of the bubble for image, default to unset.
132
+ *
133
+ * @deprecated Use `bubbleImageMaxHeight` and `bubbleImageMinHeight` instead. To mimick behavior before deprecation, set both options to 240px.
134
+ */
135
+ bubbleImageHeight?: number | undefined;
136
+ /**
137
+ * Specifies the maximum height of the bubble for image, default to 240px.
138
+ *
139
+ * CSS variable: `--webchat__max-height--image-bubble`.
140
+ *
141
+ * New in 4.18.0.
142
+ */
143
+ bubbleImageMaxHeight?: number | undefined;
144
+ /**
145
+ * Specifies the minimum height of the bubble for image, default to 240px.
146
+ *
147
+ * CSS variable: `--webchat__min-height--image-bubble`.
148
+ *
149
+ * New in 4.18.0.
150
+ */
151
+ bubbleImageMinHeight?: number | undefined;
131
152
  bubbleMaxWidth?: number;
132
153
  bubbleMinHeight?: number;
133
154
  bubbleMinWidth?: number;
@@ -693,7 +714,7 @@ type StyleOptions = {
693
714
  */
694
715
  maxMessageLength?: number;
695
716
  };
696
- type StrictStyleOptions = Required<Omit<StyleOptions, 'hideScrollToEndButton' | 'newMessagesButtonFontSize'>> & {
717
+ type StrictStyleOptions = Required<Omit<StyleOptions, 'bubbleImageHeight' | 'hideScrollToEndButton' | 'newMessagesButtonFontSize'>> & {
697
718
  bubbleFromUserNubOffset: number;
698
719
  bubbleNubOffset: number;
699
720
  emojiSet: false | Record<string, string>;
@@ -1326,7 +1347,13 @@ declare function useSubmitSendBox(): (method?: string, { channelData }?: {
1326
1347
  channelData: any;
1327
1348
  }) => void;
1328
1349
 
1329
- declare function useSuggestedActions(): [DirectLineCardAction[], (suggestedActions: never[]) => void];
1350
+ declare function useSuggestedActions(): [
1351
+ DirectLineCardAction[],
1352
+ (suggestedActions: never[]) => void,
1353
+ extras: {
1354
+ activity: WebChatActivity;
1355
+ }
1356
+ ];
1330
1357
 
1331
1358
  declare function useTimeoutForSend(): [number | ((activity: WebChatActivity) => number)];
1332
1359