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.
- package/dist/botframework-webchat-api.d.mts +30 -3
- package/dist/botframework-webchat-api.mjs +2 -2
- package/dist/botframework-webchat-api.mjs.map +1 -1
- package/dist/metafile-esm.json +1 -1
- package/lib/StyleOptions.d.ts +23 -2
- package/lib/StyleOptions.d.ts.map +1 -1
- package/lib/StyleOptions.js +1 -1
- package/lib/defaultStyleOptions.d.ts.map +1 -1
- package/lib/defaultStyleOptions.js +6 -2
- package/lib/hooks/useSuggestedActions.d.ts +8 -2
- package/lib/hooks/useSuggestedActions.d.ts.map +1 -1
- package/lib/hooks/useSuggestedActions.js +18 -6
- package/lib/index.js +2 -2
- package/lib/normalizeStyleOptions.d.ts.map +1 -1
- package/lib/normalizeStyleOptions.js +8 -1
- package/package.json +3 -3
- package/src/StyleOptions.ts +29 -2
- package/src/defaultStyleOptions.ts +3 -1
- package/src/hooks/useSuggestedActions.ts +17 -4
- package/src/normalizeStyleOptions.ts +13 -0
|
@@ -127,7 +127,28 @@ type StyleOptions = {
|
|
|
127
127
|
*/
|
|
128
128
|
bubbleFromUserNubSize?: number;
|
|
129
129
|
bubbleFromUserTextColor?: string;
|
|
130
|
-
|
|
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(): [
|
|
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
|
|