@azure/communication-react 1.17.0-alpha-202406050014 → 1.17.0-alpha-202406070015

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 (112) hide show
  1. package/dist/communication-react.d.ts +116 -20
  2. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-CueWJlOs.js → ChatMessageComponentAsRichTextEditBox-B4BPzX3o.js} +9 -4
  3. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-B4BPzX3o.js.map +1 -0
  4. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-DORQ6cdT.js → RichTextSendBoxWrapper-DoEtNInF.js} +3 -2
  5. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-DORQ6cdT.js.map → RichTextSendBoxWrapper-DoEtNInF.js.map} +1 -1
  6. package/dist/dist-cjs/communication-react/{index-B4rHuheV.js → index-DU2Ijnbn.js} +472 -183
  7. package/dist/dist-cjs/communication-react/index-DU2Ijnbn.js.map +1 -0
  8. package/dist/dist-cjs/communication-react/index.js +2 -1
  9. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  10. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  11. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  12. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js +16 -6
  13. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js.map +1 -1
  14. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +12 -2
  15. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  16. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +3 -1
  17. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  18. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +1 -1
  19. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  20. package/dist/dist-esm/calling-stateful-client/src/Converter.d.ts +4 -0
  21. package/dist/dist-esm/calling-stateful-client/src/Converter.js +24 -1
  22. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  23. package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +1 -0
  24. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  25. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js +2 -4
  26. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
  27. package/dist/dist-esm/communication-react/src/index.d.ts +2 -0
  28. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  29. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.d.ts +2 -1
  30. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.js.map +1 -1
  31. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js +2 -2
  32. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js.map +1 -1
  33. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.d.ts +2 -1
  34. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.js +5 -3
  35. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.js.map +1 -1
  36. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.d.ts +3 -0
  37. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js +6 -2
  38. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js.map +1 -1
  39. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.d.ts +2 -1
  40. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.js +1 -1
  41. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.js.map +1 -1
  42. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js +2 -2
  43. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js.map +1 -1
  44. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/FluentChatMyMessageComponent.js +3 -3
  45. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/FluentChatMyMessageComponent.js.map +1 -1
  46. package/dist/dist-esm/react-components/src/components/MeetingConferencePhoneInfo.d.ts +84 -0
  47. package/dist/dist-esm/react-components/src/components/MeetingConferencePhoneInfo.js +116 -0
  48. package/dist/dist-esm/react-components/src/components/MeetingConferencePhoneInfo.js.map +1 -0
  49. package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +16 -4
  50. package/dist/dist-esm/react-components/src/components/MessageThread.js +4 -4
  51. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  52. package/dist/dist-esm/react-components/src/components/NotificationBar.d.ts +12 -4
  53. package/dist/dist-esm/react-components/src/components/NotificationBar.js +4 -2
  54. package/dist/dist-esm/react-components/src/components/NotificationBar.js.map +1 -1
  55. package/dist/dist-esm/react-components/src/components/Notifications.d.ts +6 -2
  56. package/dist/dist-esm/react-components/src/components/Notifications.js +1 -1
  57. package/dist/dist-esm/react-components/src/components/Notifications.js.map +1 -1
  58. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.d.ts +5 -2
  59. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.js +14 -2
  60. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.js.map +1 -1
  61. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.d.ts +3 -0
  62. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js +11 -2
  63. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js.map +1 -1
  64. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.d.ts +3 -0
  65. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js +3 -1
  66. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js.map +1 -1
  67. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.d.ts +6 -0
  68. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js +6 -2
  69. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js.map +1 -1
  70. package/dist/dist-esm/react-components/src/components/index.d.ts +2 -0
  71. package/dist/dist-esm/react-components/src/components/index.js +2 -0
  72. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  73. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.d.ts +5 -1
  74. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js +9 -4
  75. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js.map +1 -1
  76. package/dist/dist-esm/react-components/src/components/styles/TeamsMeetingConferenceInfo.d.ts +42 -0
  77. package/dist/dist-esm/react-components/src/components/styles/TeamsMeetingConferenceInfo.js +93 -0
  78. package/dist/dist-esm/react-components/src/components/styles/TeamsMeetingConferenceInfo.js.map +1 -0
  79. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +3 -0
  80. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  81. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +11 -0
  82. package/dist/dist-esm/react-components/src/theming/v9ThemeShim.js +1 -1
  83. package/dist/dist-esm/react-components/src/theming/v9ThemeShim.js.map +1 -1
  84. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +4 -0
  85. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  86. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +5 -0
  87. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +5 -0
  88. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  89. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +3 -4
  90. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +3 -3
  91. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  92. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.d.ts +3 -4
  93. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js.map +1 -1
  94. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +5 -5
  95. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  96. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +25 -9
  97. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  98. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.d.ts +2 -0
  99. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +28 -0
  100. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -1
  101. package/dist/dist-esm/react-composites/src/composites/common/SendBoxPicker.d.ts +2 -1
  102. package/dist/dist-esm/react-composites/src/composites/common/SendBoxPicker.js +6 -6
  103. package/dist/dist-esm/react-composites/src/composites/common/SendBoxPicker.js.map +1 -1
  104. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +4 -0
  105. package/dist/dist-esm/react-composites/src/composites/common/icons.js +6 -0
  106. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  107. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.d.ts +5 -0
  108. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
  109. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +1 -0
  110. package/package.json +2 -1
  111. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-CueWJlOs.js.map +0 -1
  112. package/dist/dist-cjs/communication-react/index-B4rHuheV.js.map +0 -1
@@ -106,7 +106,6 @@ import { StartCaptionsOptions } from '@azure/communication-calling';
106
106
  import { TeamsCall } from '@azure/communication-calling';
107
107
  import { TeamsCallAgent } from '@azure/communication-calling';
108
108
  import { TeamsCallInfo } from '@azure/communication-calling';
109
- import { TeamsMeetingAudioConferencingDetails } from '@azure/communication-calling';
110
109
  import { TeamsMeetingIdLocator } from '@azure/communication-calling';
111
110
  import { TeamsMeetingLinkLocator } from '@azure/communication-calling';
112
111
  import { Theme } from '@fluentui/react';
@@ -164,9 +163,13 @@ export declare interface ActiveNotification {
164
163
  */
165
164
  type: NotificationType;
166
165
  /**
167
- * Callback called when the button inside notification bar is clicked.
166
+ * Callback called when the primary button inside notification bar is clicked.
168
167
  */
169
- onClick?: () => void;
168
+ onClickPrimaryButton?: () => void;
169
+ /**
170
+ * Callback called when the primary button inside notification bar is clicked.
171
+ */
172
+ onClickSecondaryButton?: () => void;
170
173
  /**
171
174
  * Callback called when the notification is dismissed.
172
175
  */
@@ -1706,6 +1709,8 @@ export declare type CallCompositeIcons = {
1706
1709
  LargeGalleryLayout?: JSX.Element;
1707
1710
  DefaultCustomButton?: JSX.Element;
1708
1711
  DtmfDialpadButton?: JSX.Element;
1712
+ PhoneNumberButton?: JSX.Element;
1713
+ PhoneInfoWait?: JSX.Element;
1709
1714
  PeoplePaneMoreButton?: JSX.Element;
1710
1715
  StopAllSpotlightMenuButton?: JSX.Element;
1711
1716
  };
@@ -2692,6 +2697,10 @@ export declare interface CallCompositeStrings {
2692
2697
  * Error message when the meeting identifier or passcode is invalid
2693
2698
  */
2694
2699
  invalidMeetingIdentifier: string;
2700
+ /**
2701
+ * Error message when the meeting identifier or passcode is invalid
2702
+ */
2703
+ phoneCallMoreButtonLabel: string;
2695
2704
  }
2696
2705
 
2697
2706
  /**
@@ -3088,7 +3097,7 @@ export declare interface CallState {
3088
3097
  /**
3089
3098
  * Proxy of {@link @azure/communication-calling#TeamsMeetingAudioConferencingCallFeature}.
3090
3099
  */
3091
- teamsMeetingConference?: TeamsMeetingAudioConferencingDetails;
3100
+ teamsMeetingConference?: ConferencePhoneInfo[];
3092
3101
  }
3093
3102
 
3094
3103
  /**
@@ -3906,12 +3915,10 @@ export declare type CallWithChatCompositeOptions = {
3906
3915
  hideSpotlightButtons?: boolean;
3907
3916
  };
3908
3917
  /**
3909
- * enables rich text editor for the edit box
3910
- * @defaultValue `false`
3911
- *
3918
+ * Options to enable rich text editor for the edit box.
3912
3919
  * @beta
3913
3920
  */
3914
- richTextEditor?: boolean;
3921
+ richTextEditorOptions?: RichTextEditorOptions;
3915
3922
  };
3916
3923
 
3917
3924
  /**
@@ -4882,12 +4889,10 @@ export declare type ChatCompositeOptions = {
4882
4889
  */
4883
4890
  attachmentOptions?: AttachmentOptions;
4884
4891
  /**
4885
- * enables rich text editor for the edit box
4886
- * @defaultValue `false`
4887
- *
4892
+ * Options to enable rich text editor for the edit box.
4888
4893
  * @beta
4889
4894
  */
4890
- richTextEditor?: boolean;
4895
+ richTextEditorOptions?: RichTextEditorOptions;
4891
4896
  };
4892
4897
 
4893
4898
  /**
@@ -5358,6 +5363,11 @@ export declare type CommonCallControlOptions = {
5358
5363
  * @defaultValue true
5359
5364
  */
5360
5365
  captionsButton?: boolean;
5366
+ /**
5367
+ * Show, meeting conference phone information.
5368
+ * @defaultValue true
5369
+ */
5370
+ teamsMeetingPhoneCallButton?: boolean;
5361
5371
  };
5362
5372
 
5363
5373
  /**
@@ -5746,6 +5756,8 @@ export declare interface ComponentStrings {
5746
5756
  verticalGallery: VerticalGalleryStrings;
5747
5757
  /** Strings for the participant list component */
5748
5758
  ParticipantList: ParticipantListStrings;
5759
+ /** Strings for the MeetingConferencePhoneInfoModal */
5760
+ MeetingConferencePhoneInfo: MeetingConferencePhoneInfoModalStrings;
5749
5761
  }
5750
5762
 
5751
5763
  /**
@@ -5948,6 +5960,18 @@ export declare interface CompositeStrings {
5948
5960
  callWithChat: CallWithChatCompositeStrings;
5949
5961
  }
5950
5962
 
5963
+ /**
5964
+ * @public
5965
+ * Information for conference phone info
5966
+ */
5967
+ export declare interface ConferencePhoneInfo {
5968
+ phoneNumber: string;
5969
+ conferenceId: string;
5970
+ isTollFree: boolean;
5971
+ country?: string;
5972
+ city?: string;
5973
+ }
5974
+
5951
5975
  /**
5952
5976
  * A system message with arbitary content.
5953
5977
  *
@@ -6668,6 +6692,8 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
6668
6692
  LargeGalleryLayout?: JSX.Element | undefined;
6669
6693
  DefaultCustomButton?: JSX.Element | undefined;
6670
6694
  DtmfDialpadButton?: JSX.Element | undefined;
6695
+ PhoneNumberButton?: JSX.Element | undefined;
6696
+ PhoneInfoWait?: JSX.Element | undefined;
6671
6697
  PeoplePaneMoreButton?: JSX.Element | undefined;
6672
6698
  StopAllSpotlightMenuButton?: JSX.Element | undefined;
6673
6699
  ChevronLeft?: JSX.Element | undefined;
@@ -8020,6 +8046,49 @@ export declare interface MediaDiagnosticsState {
8020
8046
  latest: LatestMediaDiagnostics;
8021
8047
  }
8022
8048
 
8049
+ /**
8050
+ * strings for phone info modal
8051
+ * @beta
8052
+ */
8053
+ export declare interface MeetingConferencePhoneInfoModalStrings {
8054
+ /**
8055
+ * Header for the phone info modal
8056
+ */
8057
+ meetingConferencePhoneInfoModalTitle?: string;
8058
+ /**
8059
+ * Phone number instruction
8060
+ */
8061
+ meetingConferencePhoneInfoModalDialIn?: string;
8062
+ /**
8063
+ * Meeting ID instruction
8064
+ */
8065
+ meetingConferencePhoneInfoModalMeetingId?: string;
8066
+ /**
8067
+ * Wait for phone connection
8068
+ */
8069
+ meetingConferencePhoneInfoModalWait?: string;
8070
+ /**
8071
+ * Toll Free Phone Label
8072
+ */
8073
+ meetingConferencePhoneInfoModalTollFree?: string;
8074
+ /**
8075
+ * Toll Free Phone Label without geo data
8076
+ */
8077
+ meetingConferencePhoneInfoModalTollFreeWithoutGeoData?: string;
8078
+ /**
8079
+ * Toll Phone Label
8080
+ */
8081
+ meetingConferencePhoneInfoModalToll?: string;
8082
+ /**
8083
+ * Toll Phone Label without geo data
8084
+ */
8085
+ meetingConferencePhoneInfoModalTollWithoutGeoData?: string;
8086
+ /**
8087
+ * No phone number available message
8088
+ */
8089
+ meetingConferencePhoneInfoModalNoPhoneAvailable?: string;
8090
+ }
8091
+
8023
8092
  /**
8024
8093
  * Mention's state, as reflected in the UI.
8025
8094
  *
@@ -8496,11 +8565,10 @@ export declare type MessageThreadProps = {
8496
8565
  */
8497
8566
  inlineImageOptions?: InlineImageOptions;
8498
8567
  /**
8499
- * enables rich text editor for the edit box
8500
- *
8501
- * @defaultValue `false`
8568
+ * Options to enable rich text editor for the edit box.
8569
+ * @beta
8502
8570
  */
8503
- richTextEditor?: boolean;
8571
+ richTextEditorOptions?: RichTextEditorOptions;
8504
8572
  };
8505
8573
 
8506
8574
  /**
@@ -8855,9 +8923,13 @@ export declare interface NotificationBarProps {
8855
8923
  */
8856
8924
  showStackedEffect?: boolean;
8857
8925
  /**
8858
- * Callback called when the button inside notification bar is clicked.
8926
+ * Callback called when the primary button inside notification bar is clicked.
8927
+ */
8928
+ onClickPrimaryButton?: () => void;
8929
+ /**
8930
+ * Callback called when the secondary button inside notification bar is clicked.
8859
8931
  */
8860
- onClick?: () => void;
8932
+ onClickSecondaryButton?: () => void;
8861
8933
  /**
8862
8934
  * Callback called when the notification is dismissed.
8863
8935
  */
@@ -8883,9 +8955,13 @@ export declare interface NotificationBarStrings {
8883
8955
  */
8884
8956
  message?: string;
8885
8957
  /**
8886
- * Notification bar button label
8958
+ * Notification bar primary button label
8887
8959
  */
8888
- buttonLabel?: string;
8960
+ primaryButtonLabel?: string;
8961
+ /**
8962
+ * Notification bar secondary button label
8963
+ */
8964
+ secondaryButtonLabel?: string;
8889
8965
  }
8890
8966
 
8891
8967
  /**
@@ -9981,6 +10057,20 @@ export declare type ResourceFetchResult = {
9981
10057
  error?: Error;
9982
10058
  };
9983
10059
 
10060
+ /**
10061
+ * Options for the rich text editor configuration.
10062
+ *
10063
+ * @beta
10064
+ */
10065
+ export declare interface RichTextEditorOptions {
10066
+ /**
10067
+ * Optional callback to handle paste event.
10068
+ */
10069
+ onPaste?: (event: {
10070
+ content: DocumentFragment;
10071
+ }) => void;
10072
+ }
10073
+
9984
10074
  /**
9985
10075
  * A component to render SendBox with Rich Text Editor support.
9986
10076
  *
@@ -9999,6 +10089,12 @@ export declare interface RichTextSendBoxProps {
9999
10089
  * @defaultValue false
10000
10090
  */
10001
10091
  disabled?: boolean;
10092
+ /**
10093
+ * Optional callback to handle paste event.
10094
+ */
10095
+ onPaste?: (event: {
10096
+ content: DocumentFragment;
10097
+ }) => void;
10002
10098
  /**
10003
10099
  * Optional strings to override in component
10004
10100
  */
@@ -4,7 +4,7 @@ var react = require('@fluentui/react');
4
4
  var reactChat = require('@fluentui-contrib/react-chat');
5
5
  var reactComponents = require('@fluentui/react-components');
6
6
  require('@azure/communication-common');
7
- var index = require('./index-B4rHuheV.js');
7
+ var index = require('./index-DU2Ijnbn.js');
8
8
  var React = require('react');
9
9
  require('reselect');
10
10
  require('@azure/communication-calling');
@@ -29,6 +29,7 @@ require('@fluentui/react-hooks');
29
29
  require('react-use-draggable-scroll');
30
30
  require('@fluentui/react-window-provider');
31
31
  require('copy-to-clipboard');
32
+ require('libphonenumber-js');
32
33
  require('@azure/communication-chat');
33
34
  require('nanoid');
34
35
  require('@azure/communication-calling-effects');
@@ -40,7 +41,9 @@ require('@azure/communication-calling-effects');
40
41
  */
41
42
  const ChatMessageComponentAsRichTextEditBox = (props) => {
42
43
  var _a;
43
- const { onCancel, onSubmit, strings, message } = props;
44
+ const { onCancel, onSubmit, strings, message,
45
+ /* @conditional-compile-remove(rich-text-editor-image-upload) */
46
+ onPaste } = props;
44
47
  const [textValue, setTextValue] = React.useState(message.content || '');
45
48
  /* @conditional-compile-remove(file-sharing-acs) */
46
49
  const [attachmentMetadata, handleAttachmentAction] = React.useReducer(index.attachmentMetadataReducer, (_a = index.getMessageWithAttachmentMetadata(message)) !== null && _a !== void 0 ? _a : []);
@@ -132,7 +135,9 @@ const ChatMessageComponentAsRichTextEditBox = (props) => {
132
135
  React.createElement(index.RichTextSendBoxErrors, { textTooLongMessage: textTooLongMessage, systemMessage: message.failureReason }),
133
136
  React.createElement(index.RichTextInputBoxComponent, { placeholderText: strings.editBoxPlaceholderText, onChange: setText, editorComponentRef: editTextFieldRef, initialContent: message.content, strings: richTextLocaleStrings, disabled: false, actionComponents: actionButtons, richTextEditorStyleProps: index.editBoxRichTextEditorStyle, isHorizontalLayoutDisabled: true,
134
137
  /* @conditional-compile-remove(file-sharing-acs) */
135
- onRenderAttachmentUploads: onRenderAttachmentUploads })));
138
+ onRenderAttachmentUploads: onRenderAttachmentUploads,
139
+ /* @conditional-compile-remove(rich-text-editor-image-upload) */
140
+ onPaste: onPaste })));
136
141
  };
137
142
  const attached = message.attached === true ? 'center' : message.attached === 'bottom' ? 'bottom' : 'top';
138
143
  return (React.createElement(reactChat.ChatMyMessage, { attached: attached, root: {
@@ -146,4 +151,4 @@ const ChatMessageComponentAsRichTextEditBox = (props) => {
146
151
 
147
152
  exports.ChatMessageComponentAsRichTextEditBox = ChatMessageComponentAsRichTextEditBox;
148
153
  exports.default = ChatMessageComponentAsRichTextEditBox;
149
- //# sourceMappingURL=ChatMessageComponentAsRichTextEditBox-CueWJlOs.js.map
154
+ //# sourceMappingURL=ChatMessageComponentAsRichTextEditBox-B4BPzX3o.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatMessageComponentAsRichTextEditBox-B4BPzX3o.js","sources":["../../../../react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.tsx"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { mergeStyles, Stack } from '@fluentui/react';\nimport { ChatMyMessage } from '@fluentui-contrib/react-chat';\nimport { mergeClasses } from '@fluentui/react-components';\nimport { _formatString } from '@internal/acs-ui-common';\nimport { useTheme } from '../../../theming';\nimport React, { useCallback, useEffect, useMemo, useState } from 'react';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { useReducer } from 'react';\nimport { editBoxWidthStyles, richTextEditBoxActionButtonIcon } from '../../styles/EditBox.styles';\nimport { InputBoxButton } from '../../InputBoxButton';\nimport { MessageThreadStrings } from '../../MessageThread';\nimport { useChatMyMessageStyles } from '../../styles/MessageThread.styles';\nimport { ChatMessage } from '../../../types';\nimport { _AttachmentUploadCards } from '../../Attachment/AttachmentUploadCards';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { AttachmentMetadata } from '@internal/acs-ui-common';\nimport { useChatMessageRichTextEditContainerStyles } from '../../styles/ChatMessageComponent.styles';\nimport { MAXIMUM_LENGTH_OF_MESSAGE } from '../../utils/SendBoxUtils';\nimport {\n getMessageState,\n onRenderCancelIcon,\n onRenderSubmitIcon\n} from '../../utils/ChatMessageComponentAsEditBoxUtils';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport {\n attachmentMetadataReducer,\n getMessageWithAttachmentMetadata,\n doesMessageContainMultipleAttachments\n} from '../../utils/ChatMessageComponentAsEditBoxUtils';\nimport { RichTextEditorComponentRef } from '../../RichTextEditor/RichTextEditor';\nimport { RichTextInputBoxComponent } from '../../RichTextEditor/RichTextInputBoxComponent';\nimport { editBoxRichTextEditorStyle, richTextActionButtonsStyle } from '../../styles/RichTextEditor.styles';\nimport { RichTextSendBoxErrors } from '../../RichTextEditor/RichTextSendBoxErrors';\nimport { useLocale } from '../../../localization';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { FluentV9ThemeProvider } from '../../../theming/FluentV9ThemeProvider';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { attachmentUploadCardsStyles } from '../../styles/SendBox.styles';\n\n/** @private */\nexport type ChatMessageComponentAsRichTextEditBoxProps = {\n onCancel?: (messageId: string) => void;\n onSubmit: (\n text: string,\n /* @conditional-compile-remove(file-sharing-acs) */\n attachmentMetadata?: AttachmentMetadata[]\n ) => void;\n message: ChatMessage;\n strings: MessageThreadStrings;\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n onPaste?: (event: { content: DocumentFragment }) => void;\n};\n\n/**\n * @private\n */\nexport const ChatMessageComponentAsRichTextEditBox = (\n props: ChatMessageComponentAsRichTextEditBoxProps\n): JSX.Element => {\n const {\n onCancel,\n onSubmit,\n strings,\n message,\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n onPaste\n } = props;\n\n const [textValue, setTextValue] = useState<string>(message.content || '');\n /* @conditional-compile-remove(file-sharing-acs) */\n const [attachmentMetadata, handleAttachmentAction] = useReducer(\n attachmentMetadataReducer,\n getMessageWithAttachmentMetadata(message) ?? []\n );\n const editTextFieldRef = React.useRef<RichTextEditorComponentRef>(null);\n const theme = useTheme();\n const messageState = useMemo(() => {\n return getMessageState(textValue, /* @conditional-compile-remove(file-sharing-acs) */ attachmentMetadata ?? []);\n }, [/* @conditional-compile-remove(file-sharing-acs) */ attachmentMetadata, textValue]);\n\n const submitEnabled = messageState === 'OK';\n\n const editContainerStyles = useChatMessageRichTextEditContainerStyles();\n const chatMyMessageStyles = useChatMyMessageStyles();\n const locale = useLocale().strings;\n\n const setText = useCallback((newValue?: string): void => {\n setTextValue(newValue ?? '');\n }, []);\n\n useEffect(() => {\n editTextFieldRef.current?.focus();\n }, []);\n\n const textTooLongMessage = useMemo(() => {\n return messageState === 'too long'\n ? _formatString(strings.editBoxTextLimit, { limitNumber: `${MAXIMUM_LENGTH_OF_MESSAGE}` })\n : undefined;\n }, [messageState, strings.editBoxTextLimit]);\n\n const iconClassName = useCallback(\n (isHover: boolean) => {\n const color = isHover ? theme.palette.accent : theme.palette.neutralSecondary;\n return mergeStyles(richTextEditBoxActionButtonIcon, { color });\n },\n [theme.palette.accent, theme.palette.neutralSecondary]\n );\n\n const onRenderThemedCancelIcon = useCallback(\n (isHover: boolean) => {\n return onRenderCancelIcon(iconClassName(isHover));\n },\n [iconClassName]\n );\n\n const onRenderThemedSubmitIcon = useCallback(\n (isHover: boolean) => {\n return onRenderSubmitIcon(iconClassName(isHover));\n },\n [iconClassName]\n );\n\n /* @conditional-compile-remove(file-sharing-acs) */\n const hasMultipleAttachments = useMemo(() => {\n return doesMessageContainMultipleAttachments(message);\n }, [message]);\n\n const actionButtons = useMemo(() => {\n return (\n <Stack horizontal>\n <InputBoxButton\n className={richTextActionButtonsStyle}\n ariaLabel={strings.editBoxCancelButton}\n tooltipContent={strings.editBoxCancelButton}\n onRenderIcon={onRenderThemedCancelIcon}\n onClick={() => {\n onCancel && onCancel(message.messageId);\n }}\n id={'dismissIconWrapper'}\n data-testId={strings.editBoxCancelButton}\n />\n <InputBoxButton\n className={richTextActionButtonsStyle}\n ariaLabel={strings.editBoxSubmitButton}\n tooltipContent={strings.editBoxSubmitButton}\n onRenderIcon={onRenderThemedSubmitIcon}\n onClick={(e) => {\n // it's very important to pass an empty attachment here\n // so when user removes all attachments, UI can reflect it instantly\n // if you set it to undefined, the attachments pre-edited would still be there\n // until edit message event is received\n submitEnabled &&\n onSubmit(textValue, /* @conditional-compile-remove(file-sharing-acs) */ attachmentMetadata);\n e.stopPropagation();\n }}\n id={'submitIconWrapper'}\n data-testId={strings.editBoxSubmitButton}\n />\n </Stack>\n );\n }, [\n /* @conditional-compile-remove(file-sharing-acs) */\n attachmentMetadata,\n message.messageId,\n onCancel,\n onRenderThemedCancelIcon,\n onRenderThemedSubmitIcon,\n onSubmit,\n strings.editBoxCancelButton,\n strings.editBoxSubmitButton,\n submitEnabled,\n textValue\n ]);\n const richTextLocaleStrings = useMemo(() => {\n /* @conditional-compile-remove(rich-text-editor) */\n return { ...locale.richTextSendBox, ...strings };\n return locale.sendBox;\n }, [\n /* @conditional-compile-remove(rich-text-editor) */ locale.richTextSendBox,\n /* @conditional-compile-remove(rich-text-editor) */ strings,\n locale.sendBox\n ]);\n\n /* @conditional-compile-remove(file-sharing-acs) */\n const onCancelAttachmentUpload = useCallback((attachmentId: string) => {\n // edit box only capable of removing attachments\n // we need to expand attachment actions\n // if we want to support more actions e.g. add\n handleAttachmentAction({ type: 'remove', id: attachmentId });\n }, []);\n\n /* @conditional-compile-remove(file-sharing-acs) */\n const onRenderAttachmentUploads = useCallback(() => {\n return (\n <Stack className={attachmentUploadCardsStyles}>\n <FluentV9ThemeProvider v8Theme={theme}>\n <_AttachmentUploadCards\n attachments={attachmentMetadata}\n onCancelAttachmentUpload={onCancelAttachmentUpload}\n />\n </FluentV9ThemeProvider>\n </Stack>\n );\n }, [attachmentMetadata, onCancelAttachmentUpload, theme]);\n\n const getContent = (): JSX.Element => {\n return (\n <Stack className={mergeStyles(editBoxWidthStyles)}>\n <RichTextSendBoxErrors textTooLongMessage={textTooLongMessage} systemMessage={message.failureReason} />\n <RichTextInputBoxComponent\n placeholderText={strings.editBoxPlaceholderText}\n onChange={setText}\n editorComponentRef={editTextFieldRef}\n initialContent={message.content}\n strings={richTextLocaleStrings}\n disabled={false}\n actionComponents={actionButtons}\n richTextEditorStyleProps={editBoxRichTextEditorStyle}\n isHorizontalLayoutDisabled={true}\n /* @conditional-compile-remove(file-sharing-acs) */\n onRenderAttachmentUploads={onRenderAttachmentUploads}\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n onPaste={onPaste}\n />\n </Stack>\n );\n };\n\n const attached = message.attached === true ? 'center' : message.attached === 'bottom' ? 'bottom' : 'top';\n return (\n <ChatMyMessage\n attached={attached}\n root={{\n className: mergeClasses(\n chatMyMessageStyles.root,\n /* @conditional-compile-remove(file-sharing-acs) */\n hasMultipleAttachments ? chatMyMessageStyles.multipleAttachments : undefined\n )\n }}\n body={{\n className: mergeClasses(\n editContainerStyles.body,\n attached !== 'top' ? editContainerStyles.bodyAttached : undefined\n )\n }}\n >\n {getContent()}\n </ChatMyMessage>\n );\n};\n\nexport default ChatMessageComponentAsRichTextEditBox;\n"],"names":["useState","useReducer","attachmentMetadataReducer","getMessageWithAttachmentMetadata","useTheme","useMemo","getMessageState","useChatMessageRichTextEditContainerStyles","useChatMyMessageStyles","useLocale","useCallback","useEffect","_formatString","MAXIMUM_LENGTH_OF_MESSAGE","mergeStyles","richTextEditBoxActionButtonIcon","onRenderCancelIcon","onRenderSubmitIcon","doesMessageContainMultipleAttachments","Stack","InputBoxButton","richTextActionButtonsStyle","attachmentUploadCardsStyles","FluentV9ThemeProvider","_AttachmentUploadCards","editBoxWidthStyles","RichTextSendBoxErrors","RichTextInputBoxComponent","editBoxRichTextEditorStyle","ChatMyMessage","mergeClasses"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAuDA;;AAEG;AACU,MAAA,qCAAqC,GAAG,CACnD,KAAiD,KAClC;;AACf,IAAA,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,OAAO;;IAEP,OAAO,EACR,GAAG,KAAK,CAAC;AAEV,IAAA,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAGA,cAAQ,CAAS,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;;AAE1E,IAAA,MAAM,CAAC,kBAAkB,EAAE,sBAAsB,CAAC,GAAGC,gBAAU,CAC7DC,+BAAyB,EACzB,CAAA,EAAA,GAAAC,sCAAgC,CAAC,OAAO,CAAC,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,EAAE,CAChD,CAAC;IACF,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,CAA6B,IAAI,CAAC,CAAC;AACxE,IAAA,MAAM,KAAK,GAAGC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EAAA,EACZ,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE;AACJ,YAAA,SAAS,EAAEC,4BAAY,CACrB,mBAAmB,CAAC,IAAI;;YAExB,sBAAsB,GAAG,mBAAmB,CAAC,mBAAmB,GAAG,SAAS,CAC7E;AACF,SAAA,EACD,IAAI,EAAE;YACJ,SAAS,EAAEA,4BAAY,CACrB,mBAAmB,CAAC,IAAI,EACxB,QAAQ,KAAK,KAAK,GAAG,mBAAmB,CAAC,YAAY,GAAG,SAAS,CAClE;AACF,SAAA,EAAA,EAEA,UAAU,EAAE,CACC,EAChB;AACJ;;;;;"}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- var index = require('./index-B4rHuheV.js');
4
+ var index = require('./index-DU2Ijnbn.js');
5
5
  require('@fluentui/react');
6
6
  require('@fluentui/react-components');
7
7
  require('@fluentui-contrib/react-chat');
@@ -9,6 +9,7 @@ require('@azure/communication-common');
9
9
  require('@fluentui/react-hooks');
10
10
  require('react-use-draggable-scroll');
11
11
  require('copy-to-clipboard');
12
+ require('libphonenumber-js');
12
13
  require('reselect');
13
14
  require('@azure/communication-calling');
14
15
  require('memoize-one');
@@ -49,4 +50,4 @@ const RichTextSendBoxWrapper = (props) => {
49
50
  };
50
51
 
51
52
  exports.RichTextSendBoxWrapper = RichTextSendBoxWrapper;
52
- //# sourceMappingURL=RichTextSendBoxWrapper-DORQ6cdT.js.map
53
+ //# sourceMappingURL=RichTextSendBoxWrapper-DoEtNInF.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextSendBoxWrapper-DORQ6cdT.js","sources":["../../../../react-composites/src/composites/common/RichTextSendBoxWrapper.tsx"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\nimport React from 'react';\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\nimport { usePropsFor } from '../ChatComposite/hooks/usePropsFor';\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\nimport { RichTextSendBox, RichTextSendBoxProps } from '@internal/react-components';\n\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\n/**\n * @private\n *\n * Wrapper for RichTextSendBox component to allow us to use usePropsFor with richTextSendBox\n * before lazyLoading is done\n */\nexport const RichTextSendBoxWrapper = (props: RichTextSendBoxProps): JSX.Element => {\n const richTextSendBoxProps = usePropsFor(RichTextSendBox);\n\n return <RichTextSendBox {...richTextSendBoxProps} {...props} />;\n};\n"],"names":["usePropsFor","RichTextSendBox"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAEA;AAOA;AACA;;;;;AAKG;AACU,MAAA,sBAAsB,GAAG,CAAC,KAA2B,KAAiB;AACjF,IAAA,MAAM,oBAAoB,GAAGA,iBAAW,CAACC,qBAAe,CAAC,CAAC;AAE1D,IAAA,OAAO,oBAACA,qBAAe,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,oBAAoB,EAAM,KAAK,EAAI,CAAC;AAClE;;;;"}
1
+ {"version":3,"file":"RichTextSendBoxWrapper-DoEtNInF.js","sources":["../../../../react-composites/src/composites/common/RichTextSendBoxWrapper.tsx"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\nimport React from 'react';\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\nimport { usePropsFor } from '../ChatComposite/hooks/usePropsFor';\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\nimport { RichTextSendBox, RichTextSendBoxProps } from '@internal/react-components';\n\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\n/**\n * @private\n *\n * Wrapper for RichTextSendBox component to allow us to use usePropsFor with richTextSendBox\n * before lazyLoading is done\n */\nexport const RichTextSendBoxWrapper = (props: RichTextSendBoxProps): JSX.Element => {\n const richTextSendBoxProps = usePropsFor(RichTextSendBox);\n\n return <RichTextSendBox {...richTextSendBoxProps} {...props} />;\n};\n"],"names":["usePropsFor","RichTextSendBox"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAEA;AAOA;AACA;;;;;AAKG;AACU,MAAA,sBAAsB,GAAG,CAAC,KAA2B,KAAiB;AACjF,IAAA,MAAM,oBAAoB,GAAGA,iBAAW,CAACC,qBAAe,CAAC,CAAC;AAE1D,IAAA,OAAO,oBAACA,qBAAe,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,oBAAoB,EAAM,KAAK,EAAI,CAAC;AAClE;;;;"}