botframework-webchat-component 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.
Files changed (45) hide show
  1. package/dist/botframework-webchat-component.d.mts +12 -7
  2. package/dist/botframework-webchat-component.mjs +8 -8
  3. package/dist/botframework-webchat-component.mjs.map +1 -1
  4. package/dist/metafile-esm.json +1 -1
  5. package/lib/Attachment/ImageContent.d.ts +3 -4
  6. package/lib/Attachment/ImageContent.d.ts.map +1 -1
  7. package/lib/Attachment/ImageContent.js +11 -29
  8. package/lib/Avatar/ImageAvatar.d.ts +6 -0
  9. package/lib/Avatar/ImageAvatar.d.ts.map +1 -0
  10. package/lib/Avatar/ImageAvatar.js +11 -17
  11. package/lib/Composer.d.ts.map +1 -1
  12. package/lib/Composer.js +5 -3
  13. package/lib/Styles/CSSTokens.d.ts +2 -0
  14. package/lib/Styles/CSSTokens.d.ts.map +1 -1
  15. package/lib/Styles/CustomPropertyNames.d.ts +2 -0
  16. package/lib/Styles/CustomPropertyNames.d.ts.map +1 -1
  17. package/lib/Styles/CustomPropertyNames.js +3 -1
  18. package/lib/Styles/StyleSet/CSSCustomProperties.d.ts +3 -1
  19. package/lib/Styles/StyleSet/CSSCustomProperties.d.ts.map +1 -1
  20. package/lib/Styles/StyleSet/CSSCustomProperties.js +4 -2
  21. package/lib/Styles/createStyleSet.d.ts +4 -1
  22. package/lib/Styles/createStyleSet.d.ts.map +1 -1
  23. package/lib/Utils/FixedWidthImage.d.ts +11 -0
  24. package/lib/Utils/FixedWidthImage.d.ts.map +1 -0
  25. package/lib/Utils/FixedWidthImage.js +61 -0
  26. package/lib/hooks/sendBoxFocus.d.ts +4 -2
  27. package/lib/hooks/sendBoxFocus.d.ts.map +1 -1
  28. package/lib/hooks/sendBoxFocus.js +4 -2
  29. package/lib/hooks/transcriptScrollRelative.d.ts +4 -2
  30. package/lib/hooks/transcriptScrollRelative.d.ts.map +1 -1
  31. package/lib/hooks/transcriptScrollRelative.js +4 -2
  32. package/lib/index.d.ts +5 -3
  33. package/lib/index.d.ts.map +1 -1
  34. package/lib/index.js +2 -2
  35. package/package.json +4 -4
  36. package/src/Attachment/ImageContent.tsx +13 -27
  37. package/src/Avatar/{ImageAvatar.js → ImageAvatar.tsx} +6 -17
  38. package/src/Composer.tsx +15 -9
  39. package/src/Styles/CustomPropertyNames.ts +2 -0
  40. package/src/Styles/StyleSet/CSSCustomProperties.ts +6 -1
  41. package/src/Utils/FixedWidthImage.tsx +60 -0
  42. package/src/hooks/sendBoxFocus.ts +6 -2
  43. package/src/hooks/transcriptScrollRelative.ts +6 -3
  44. package/lib/Utils/CroppedImage.js +0 -61
  45. package/src/Utils/CroppedImage.js +0 -45
@@ -607,7 +607,8 @@ declare function createStyleSet(styleOptions: StyleOptions): Readonly<{
607
607
  readonly bubbleFromUserNubOffset: number;
608
608
  readonly bubbleFromUserNubSize: number;
609
609
  readonly bubbleFromUserTextColor: string;
610
- readonly bubbleImageHeight: number;
610
+ readonly bubbleImageMaxHeight: number;
611
+ readonly bubbleImageMinHeight: number;
611
612
  readonly bubbleMaxWidth: number;
612
613
  readonly bubbleMinHeight: number;
613
614
  readonly bubbleMinWidth: number;
@@ -1524,6 +1525,8 @@ declare function createStyleSet(styleOptions: StyleOptions): Readonly<{
1524
1525
  "--webchat__max-width--bubble": string;
1525
1526
  "--webchat__min-height--bubble": string;
1526
1527
  "--webchat__padding--regular": string;
1528
+ "--webchat__max-height--image-bubble": string;
1529
+ "--webchat__min-height--image-bubble": string;
1527
1530
  };
1528
1531
  };
1529
1532
  readonly linkDefinitions: {
@@ -2149,7 +2152,9 @@ declare const hooks: {
2149
2152
  useSubmitSendBox: () => (method?: string, { channelData }?: {
2150
2153
  channelData: any;
2151
2154
  }) => void;
2152
- useSuggestedActions: () => [botframework_webchat_core.DirectLineCardAction[], (suggestedActions: never[]) => void];
2155
+ useSuggestedActions: () => [botframework_webchat_core.DirectLineCardAction[], (suggestedActions: never[]) => void, extras: {
2156
+ activity: WebChatActivity;
2157
+ }];
2153
2158
  useTimeoutForSend: () => [number | ((activity: WebChatActivity) => number)];
2154
2159
  useTrackDimension: () => (name: string, data: any) => void;
2155
2160
  useTrackEvent: () => {
@@ -2243,10 +2248,10 @@ declare const Components: {
2243
2248
  poster?: string;
2244
2249
  src: string;
2245
2250
  }>;
2246
- ImageContent: react.FC<{
2251
+ ImageContent: react.MemoExoticComponent<({ alt, src }: Readonly<{
2247
2252
  alt?: string;
2248
2253
  src: string;
2249
- }>;
2254
+ }>) => react.JSX.Element>;
2250
2255
  TextContent: react.FC<Readonly<{
2251
2256
  activity: WebChatActivity;
2252
2257
  contentType?: string;
@@ -2320,6 +2325,9 @@ declare const Components: {
2320
2325
  linkClassName?: string;
2321
2326
  onDecorateLink?: (href: string, textContent: string) => LinkOptions;
2322
2327
  }> & (Readonly<{
2328
+ stringIds: string;
2329
+ values?: readonly (string | number)[];
2330
+ }> | Readonly<{
2323
2331
  stringIds: {
2324
2332
  zero?: string;
2325
2333
  one?: string;
@@ -2329,9 +2337,6 @@ declare const Components: {
2329
2337
  other: string;
2330
2338
  };
2331
2339
  values: readonly [number, ...(string | number)[]];
2332
- }> | Readonly<{
2333
- stringIds: string;
2334
- values?: readonly (string | number)[];
2335
2340
  }>)) => react.JSX.Element>;
2336
2341
  };
2337
2342