@azure/communication-react 1.16.0-alpha-202404180013 → 1.16.0-alpha-202404190012

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 (108) hide show
  1. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-C3t87AZz.js → ChatMessageComponentAsRichTextEditBox-WGqg2woK.js} +2 -2
  2. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-C3t87AZz.js.map → ChatMessageComponentAsRichTextEditBox-WGqg2woK.js.map} +1 -1
  3. package/dist/dist-cjs/communication-react/{index-BP7335hI.js → index-oaEwmItW.js} +62 -221
  4. package/dist/dist-cjs/communication-react/index-oaEwmItW.js.map +1 -0
  5. package/dist/dist-cjs/communication-react/index.js +1 -1
  6. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  7. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  8. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +0 -1
  9. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  10. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js +0 -2
  11. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js.map +1 -1
  12. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +0 -2
  13. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  14. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js +0 -2
  15. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  16. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +3 -13
  17. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  18. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js +1 -3
  19. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js.map +1 -1
  20. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.d.ts +2 -1
  21. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +6 -13
  22. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
  23. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +2 -10
  24. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
  25. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  26. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +0 -4
  27. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  28. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +0 -3
  29. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  30. package/dist/dist-esm/calling-stateful-client/src/Converter.js +0 -1
  31. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  32. package/dist/dist-esm/calling-stateful-client/src/ReactionSubscriber.js +0 -1
  33. package/dist/dist-esm/calling-stateful-client/src/ReactionSubscriber.js.map +1 -1
  34. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  35. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  36. package/dist/dist-esm/react-components/src/components/Drawer/ReactionDrawerMenuItem.js +0 -8
  37. package/dist/dist-esm/react-components/src/components/Drawer/ReactionDrawerMenuItem.js.map +1 -1
  38. package/dist/dist-esm/react-components/src/components/Drawer/index.js +0 -1
  39. package/dist/dist-esm/react-components/src/components/Drawer/index.js.map +1 -1
  40. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js +3 -11
  41. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js.map +1 -1
  42. package/dist/dist-esm/react-components/src/components/MeetingReactionOverlay.js +0 -7
  43. package/dist/dist-esm/react-components/src/components/MeetingReactionOverlay.js.map +1 -1
  44. package/dist/dist-esm/react-components/src/components/ReactionButton.js +0 -10
  45. package/dist/dist-esm/react-components/src/components/ReactionButton.js.map +1 -1
  46. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +2 -7
  47. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  48. package/dist/dist-esm/react-components/src/components/VideoGallery/ParticipantVideoTileOverlay.js +0 -6
  49. package/dist/dist-esm/react-components/src/components/VideoGallery/ParticipantVideoTileOverlay.js.map +1 -1
  50. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteContentShareReactionOverlay.js +0 -10
  51. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteContentShareReactionOverlay.js.map +1 -1
  52. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js +3 -14
  53. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js.map +1 -1
  54. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/reactionUtils.js +0 -6
  55. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/reactionUtils.js.map +1 -1
  56. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js +0 -2
  57. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js.map +1 -1
  58. package/dist/dist-esm/react-components/src/components/VideoGallery.js +6 -21
  59. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  60. package/dist/dist-esm/react-components/src/components/VideoTile.js +1 -4
  61. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  62. package/dist/dist-esm/react-components/src/components/index.js +0 -1
  63. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  64. package/dist/dist-esm/react-components/src/components/styles/ReactionButton.styles.js +0 -7
  65. package/dist/dist-esm/react-components/src/components/styles/ReactionButton.styles.js.map +1 -1
  66. package/dist/dist-esm/react-components/src/components/styles/ReactionOverlay.style.js +0 -17
  67. package/dist/dist-esm/react-components/src/components/styles/ReactionOverlay.style.js.map +1 -1
  68. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js +2 -1
  69. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js.map +1 -1
  70. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js +0 -4
  71. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js.map +1 -1
  72. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  73. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  74. package/dist/dist-esm/react-components/src/theming/icons.js +1 -7
  75. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  76. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js.map +1 -1
  77. package/dist/dist-esm/react-components/src/types/ReactionTypes.js.map +1 -1
  78. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
  79. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +1 -3
  80. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  81. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  82. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +1 -3
  83. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  84. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +0 -11
  85. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  86. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +1 -5
  87. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  88. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Reaction.js +0 -6
  89. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Reaction.js.map +1 -1
  90. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +0 -1
  91. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  92. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +7 -1
  93. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +26 -4
  94. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  95. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  96. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +0 -2
  97. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  98. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +0 -1
  99. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  100. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +0 -9
  101. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  102. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +0 -2
  103. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
  104. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
  105. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  106. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
  107. package/package.json +1 -1
  108. package/dist/dist-cjs/communication-react/index-BP7335hI.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ParticipantListParticipant.js","sourceRoot":"","sources":["../../../../../../react-components/src/types/ParticipantListParticipant.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\r\n// Licensed under the MIT License.\r\n\r\nimport { CommunicationParticipant } from './CommunicationParticipant';\r\n\r\n/**\r\n * Calling participant's state, as reflected in the UI components.\r\n *\r\n * @public\r\n */\r\nexport type CallParticipantListParticipant = ParticipantListParticipant & {\r\n /** State of calling participant */\r\n state: ParticipantState;\r\n /** Whether calling participant is screen sharing */\r\n isScreenSharing?: boolean;\r\n /** Whether calling participant is muted */\r\n isMuted?: boolean;\r\n /** Whether calling participant is speaking */\r\n isSpeaking?: boolean;\r\n /** Whether calling participant is raised hand */\r\n raisedHand?: RaisedHand;\r\n /* @conditional-compile-remove(reaction) */\r\n /**\r\n * Whether calling participant has reacted\r\n *\r\n * @beta\r\n * */\r\n reaction?: Reaction;\r\n /* @conditional-compile-remove(spotlight) */\r\n /** Whether calling participant is spotlighted **/\r\n spotlight?: Spotlight;\r\n};\r\n\r\n/* @conditional-compile-remove(spotlight) */\r\n/**\r\n * Spotlight state with order\r\n *\r\n * @public\r\n */\r\nexport type Spotlight = {\r\n /**\r\n * Specifies the order position of the spotlight\r\n */\r\n spotlightedOrderPosition?: number;\r\n};\r\n\r\n/**\r\n * Raised hand state with order\r\n *\r\n * @public\r\n */\r\nexport type RaisedHand = {\r\n raisedHandOrderPosition: number;\r\n};\r\n\r\n/* @conditional-compile-remove(reaction) */\r\n/**\r\n * Reaction state with reaction type to render\r\n *\r\n * @public\r\n */\r\nexport type Reaction = {\r\n /**\r\n * Specifies the type of reaction videoTile should render i.e. like, heart etc.\r\n */\r\n reactionType: string;\r\n /**\r\n * Received timestamp for the message as default Date format.\r\n */\r\n receivedOn: Date;\r\n};\r\n\r\n/**\r\n * Participants displayed in a {@link ParticipantList}.\r\n *\r\n * @public\r\n */\r\nexport type ParticipantListParticipant = CommunicationParticipant & {\r\n /**\r\n * If true, local participant can remove this participant from the roster.\r\n */\r\n isRemovable: boolean;\r\n};\r\n\r\n/**\r\n * @public\r\n * The connection state of a call participant.\r\n */\r\nexport type ParticipantState =\r\n | 'Idle'\r\n | 'Connecting'\r\n | 'Ringing'\r\n | 'Connected'\r\n | 'Hold'\r\n | 'InLobby'\r\n | 'EarlyMedia'\r\n | 'Disconnected';\r\n"]}
1
+ {"version":3,"file":"ParticipantListParticipant.js","sourceRoot":"","sources":["../../../../../../react-components/src/types/ParticipantListParticipant.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\r\n// Licensed under the MIT License.\r\n\r\nimport { CommunicationParticipant } from './CommunicationParticipant';\r\n\r\n/**\r\n * Calling participant's state, as reflected in the UI components.\r\n *\r\n * @public\r\n */\r\nexport type CallParticipantListParticipant = ParticipantListParticipant & {\r\n /** State of calling participant */\r\n state: ParticipantState;\r\n /** Whether calling participant is screen sharing */\r\n isScreenSharing?: boolean;\r\n /** Whether calling participant is muted */\r\n isMuted?: boolean;\r\n /** Whether calling participant is speaking */\r\n isSpeaking?: boolean;\r\n /** Whether calling participant is raised hand */\r\n raisedHand?: RaisedHand;\r\n /**\r\n * Whether calling participant has reacted\r\n *\r\n * @beta\r\n * */\r\n reaction?: Reaction;\r\n /* @conditional-compile-remove(spotlight) */\r\n /** Whether calling participant is spotlighted **/\r\n spotlight?: Spotlight;\r\n};\r\n\r\n/* @conditional-compile-remove(spotlight) */\r\n/**\r\n * Spotlight state with order\r\n *\r\n * @public\r\n */\r\nexport type Spotlight = {\r\n /**\r\n * Specifies the order position of the spotlight\r\n */\r\n spotlightedOrderPosition?: number;\r\n};\r\n\r\n/**\r\n * Raised hand state with order\r\n *\r\n * @public\r\n */\r\nexport type RaisedHand = {\r\n raisedHandOrderPosition: number;\r\n};\r\n\r\n/**\r\n * Reaction state with reaction type to render\r\n *\r\n * @public\r\n */\r\nexport type Reaction = {\r\n /**\r\n * Specifies the type of reaction videoTile should render i.e. like, heart etc.\r\n */\r\n reactionType: string;\r\n /**\r\n * Received timestamp for the message as default Date format.\r\n */\r\n receivedOn: Date;\r\n};\r\n\r\n/**\r\n * Participants displayed in a {@link ParticipantList}.\r\n *\r\n * @public\r\n */\r\nexport type ParticipantListParticipant = CommunicationParticipant & {\r\n /**\r\n * If true, local participant can remove this participant from the roster.\r\n */\r\n isRemovable: boolean;\r\n};\r\n\r\n/**\r\n * @public\r\n * The connection state of a call participant.\r\n */\r\nexport type ParticipantState =\r\n | 'Idle'\r\n | 'Connecting'\r\n | 'Ringing'\r\n | 'Connected'\r\n | 'Hold'\r\n | 'InLobby'\r\n | 'EarlyMedia'\r\n | 'Disconnected';\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ReactionTypes.js","sourceRoot":"","sources":["../../../../../../react-components/src/types/ReactionTypes.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/* @conditional-compile-remove(reaction) */\n/**\n * Type for animation sprite image and related metadata\n * @public\n */\nexport type ReactionSprite = {\n /**\n * Path to animation sprite image for reaction.\n */\n url: string; // base64, relative links, relative paths\n /**\n * The frame count of the resource reaction in the sprite image\n */\n frameCount: number;\n};\n\n/* @conditional-compile-remove(reaction) */\n/**\n * Interface for animation sprite image and related metadata\n * @public\n */\nexport interface ReactionResources {\n /**\n * Like reaction animation resource.\n */\n likeReaction?: ReactionSprite;\n /**\n * Heart reaction animation resource.\n */\n heartReaction?: ReactionSprite;\n /**\n * Laugh reaction animation resource.\n */\n laughReaction?: ReactionSprite;\n /**\n * Applause reaction animation resource.\n */\n applauseReaction?: ReactionSprite;\n /**\n * Surprised reaction animation resource.\n */\n surprisedReaction?: ReactionSprite;\n}\n\n//* @conditional-compile-remove(reaction) */\n/**\n * Options for overlay mode for reaction rendering\n * @internal\n */\nexport type OverlayModeTypes = 'grid-tiles' | 'screen-share' | 'content-share';\n"]}
1
+ {"version":3,"file":"ReactionTypes.js","sourceRoot":"","sources":["../../../../../../react-components/src/types/ReactionTypes.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Type for animation sprite image and related metadata\n * @public\n */\nexport type ReactionSprite = {\n /**\n * Path to animation sprite image for reaction.\n */\n url: string; // base64, relative links, relative paths\n /**\n * The frame count of the resource reaction in the sprite image\n */\n frameCount: number;\n};\n\n/**\n * Interface for animation sprite image and related metadata\n * @public\n */\nexport interface ReactionResources {\n /**\n * Like reaction animation resource.\n */\n likeReaction?: ReactionSprite;\n /**\n * Heart reaction animation resource.\n */\n heartReaction?: ReactionSprite;\n /**\n * Laugh reaction animation resource.\n */\n laughReaction?: ReactionSprite;\n /**\n * Applause reaction animation resource.\n */\n applauseReaction?: ReactionSprite;\n /**\n * Surprised reaction animation resource.\n */\n surprisedReaction?: ReactionSprite;\n}\n\n/**\n * Options for overlay mode for reaction rendering\n * @internal\n */\nexport type OverlayModeTypes = 'grid-tiles' | 'screen-share' | 'content-share';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"VideoGalleryParticipant.js","sourceRoot":"","sources":["../../../../../../react-components/src/types/VideoGalleryParticipant.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/* @conditional-compile-remove(one-to-n-calling) */\n/* @conditional-compile-remove(PSTN-calls) */\nimport { ParticipantState } from './ParticipantListParticipant';\n\nimport { RaisedHand } from './ParticipantListParticipant';\n/* @conditional-compile-remove(reaction) */\nimport { Reaction } from './ParticipantListParticipant';\n/* @conditional-compile-remove(spotlight) */\nimport { Spotlight } from './ParticipantListParticipant';\n/**\n * Scaling mode of a {@link VideoGalleryStream}.\n *\n * @public\n */\nexport type ViewScalingMode = 'Stretch' | 'Crop' | 'Fit';\n\n/**\n * Options to control how video streams are rendered.\n *\n * @public\n */\nexport declare interface VideoStreamOptions {\n /** Whether the video stream is mirrored or not */\n isMirrored?: boolean;\n /** Scaling mode. It can be `Stretch`, `Crop` or `Fit` */\n scalingMode?: ViewScalingMode;\n}\n\n/**\n * The state of a participant in the {@link VideoGallery}.\n *\n * @public\n */\nexport type VideoGalleryParticipant = {\n /** User ID of participant */\n userId: string;\n /** Whether participant is muted */\n isMuted?: boolean;\n /** Display name of participant */\n displayName?: string;\n /** Video stream of participant */\n videoStream?: VideoGalleryStream;\n /** Whether participant is screen sharing or not */\n isScreenSharingOn?: boolean;\n /* @conditional-compile-remove(spotlight) */\n /** Whether participant is spotlighted **/\n spotlight?: Spotlight;\n};\n\n/**\n * Video stream of a participant in {@link VideoGallery}.\n *\n * @public\n */\nexport interface VideoGalleryStream {\n /** ID of the video stream */\n id?: number;\n /** Whether the video stream is available or not */\n isAvailable?: boolean;\n /** Whether the video stream is receiving data or not */\n isReceiving?: boolean;\n /** Whether the video stream is mirrored or not */\n isMirrored?: boolean;\n /** Render element of the video stream */\n renderElement?: HTMLElement;\n /** Scaling mode of the video stream */\n scalingMode?: ViewScalingMode;\n /** Stream Size of the video stream */\n streamSize?: { width: number; height: number };\n}\n\n/**\n * Object returned after creating a local or remote VideoStream.\n * This contains helper functions to manipulate the render of the stream.\n *\n * @public\n */\nexport interface CreateVideoStreamViewResult {\n /** View handle of the rendered video stream */\n view: {\n /**\n * Update the scale mode for this view.\n * @param scalingMode - The new scale mode.\n */\n updateScalingMode: (scalingMode: ViewScalingMode) => Promise<void>;\n };\n}\n\n// set the required attribs in selector. (Further simplifying our component logic) For example\n// isLocalVideoReady can be calculated inside selector.\n/**\n * The state of the local participant in the {@link VideoGallery}.\n *\n * @public\n */\nexport interface VideoGalleryLocalParticipant extends VideoGalleryParticipant {\n /** Whether local participant is raised a hand */\n raisedHand?: RaisedHand;\n /* @conditional-compile-remove(reaction) */\n /**\n * Whether local participant has reacted\n *\n * */\n reaction?: Reaction;\n}\n\n/**\n * The state of a remote participant in the {@link VideoGallery}.\n *\n * @public\n */\nexport interface VideoGalleryRemoteParticipant extends VideoGalleryParticipant {\n /** Whether participant is speaking or not */\n isSpeaking?: boolean;\n /** Video stream of shared screen */\n screenShareStream?: VideoGalleryStream;\n /* @conditional-compile-remove(one-to-n-calling) */\n /* @conditional-compile-remove(PSTN-calls) */\n /**\n * @beta\n * The connection state of the participant. For example, 'Hold', 'Connecting' etc.\n */\n state?: ParticipantState;\n /** Whether participant is raised a hand */\n raisedHand?: RaisedHand;\n /* @conditional-compile-remove(reaction) */\n /**\n * Whether participant has reacted\n *\n * @public\n * */\n reaction?: Reaction;\n}\n"]}
1
+ {"version":3,"file":"VideoGalleryParticipant.js","sourceRoot":"","sources":["../../../../../../react-components/src/types/VideoGalleryParticipant.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/* @conditional-compile-remove(one-to-n-calling) */\n/* @conditional-compile-remove(PSTN-calls) */\nimport { ParticipantState } from './ParticipantListParticipant';\n\nimport { RaisedHand } from './ParticipantListParticipant';\nimport { Reaction } from './ParticipantListParticipant';\n/* @conditional-compile-remove(spotlight) */\nimport { Spotlight } from './ParticipantListParticipant';\n/**\n * Scaling mode of a {@link VideoGalleryStream}.\n *\n * @public\n */\nexport type ViewScalingMode = 'Stretch' | 'Crop' | 'Fit';\n\n/**\n * Options to control how video streams are rendered.\n *\n * @public\n */\nexport declare interface VideoStreamOptions {\n /** Whether the video stream is mirrored or not */\n isMirrored?: boolean;\n /** Scaling mode. It can be `Stretch`, `Crop` or `Fit` */\n scalingMode?: ViewScalingMode;\n}\n\n/**\n * The state of a participant in the {@link VideoGallery}.\n *\n * @public\n */\nexport type VideoGalleryParticipant = {\n /** User ID of participant */\n userId: string;\n /** Whether participant is muted */\n isMuted?: boolean;\n /** Display name of participant */\n displayName?: string;\n /** Video stream of participant */\n videoStream?: VideoGalleryStream;\n /** Whether participant is screen sharing or not */\n isScreenSharingOn?: boolean;\n /* @conditional-compile-remove(spotlight) */\n /** Whether participant is spotlighted **/\n spotlight?: Spotlight;\n};\n\n/**\n * Video stream of a participant in {@link VideoGallery}.\n *\n * @public\n */\nexport interface VideoGalleryStream {\n /** ID of the video stream */\n id?: number;\n /** Whether the video stream is available or not */\n isAvailable?: boolean;\n /** Whether the video stream is receiving data or not */\n isReceiving?: boolean;\n /** Whether the video stream is mirrored or not */\n isMirrored?: boolean;\n /** Render element of the video stream */\n renderElement?: HTMLElement;\n /** Scaling mode of the video stream */\n scalingMode?: ViewScalingMode;\n /** Stream Size of the video stream */\n streamSize?: { width: number; height: number };\n}\n\n/**\n * Object returned after creating a local or remote VideoStream.\n * This contains helper functions to manipulate the render of the stream.\n *\n * @public\n */\nexport interface CreateVideoStreamViewResult {\n /** View handle of the rendered video stream */\n view: {\n /**\n * Update the scale mode for this view.\n * @param scalingMode - The new scale mode.\n */\n updateScalingMode: (scalingMode: ViewScalingMode) => Promise<void>;\n };\n}\n\n// set the required attribs in selector. (Further simplifying our component logic) For example\n// isLocalVideoReady can be calculated inside selector.\n/**\n * The state of the local participant in the {@link VideoGallery}.\n *\n * @public\n */\nexport interface VideoGalleryLocalParticipant extends VideoGalleryParticipant {\n /** Whether local participant is raised a hand */\n raisedHand?: RaisedHand;\n /**\n * Whether local participant has reacted\n *\n * */\n reaction?: Reaction;\n}\n\n/**\n * The state of a remote participant in the {@link VideoGallery}.\n *\n * @public\n */\nexport interface VideoGalleryRemoteParticipant extends VideoGalleryParticipant {\n /** Whether participant is speaking or not */\n isSpeaking?: boolean;\n /** Video stream of shared screen */\n screenShareStream?: VideoGalleryStream;\n /* @conditional-compile-remove(one-to-n-calling) */\n /* @conditional-compile-remove(PSTN-calls) */\n /**\n * @beta\n * The connection state of the participant. For example, 'Hold', 'Connecting' etc.\n */\n state?: ParticipantState;\n /** Whether participant is raised a hand */\n raisedHand?: RaisedHand;\n /**\n * Whether participant has reacted\n *\n * @public\n * */\n reaction?: Reaction;\n}\n"]}
@@ -56,7 +56,7 @@ class CallContext {
56
56
  selectedVideoBackgroundEffect: undefined,
57
57
  cameraStatus: undefined,
58
58
  sounds: options === null || options === void 0 ? void 0 : options.callingSounds,
59
- /* @conditional-compile-remove(reaction) */ reactions: options === null || options === void 0 ? void 0 : options.reactionResources
59
+ reactions: options === null || options === void 0 ? void 0 : options.reactionResources
60
60
  };
61
61
  this.emitter.setMaxListeners((_d = options === null || options === void 0 ? void 0 : options.maxListeners) !== null && _d !== void 0 ? _d : 50);
62
62
  this.bindPublicMethods();
@@ -312,7 +312,6 @@ export class AzureCommunicationCallAdapter {
312
312
  this.startScreenShare.bind(this);
313
313
  this.stopScreenShare.bind(this);
314
314
  this.raiseHand.bind(this);
315
- /* @conditional-compile-remove(reaction) */
316
315
  this.onReactionClick.bind(this);
317
316
  this.lowerHand.bind(this);
318
317
  this.removeParticipant.bind(this);
@@ -646,7 +645,6 @@ export class AzureCommunicationCallAdapter {
646
645
  }));
647
646
  });
648
647
  }
649
- /* @conditional-compile-remove(reaction) */
650
648
  onReactionClick(reaction) {
651
649
  return __awaiter(this, void 0, void 0, function* () {
652
650
  return yield this.asyncTeeErrorToEventEmitter(() => __awaiter(this, void 0, void 0, function* () {