@azure/communication-react 1.0.0-alpha-20211126.11.0 → 1.0.0-alpha
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/communication-react.d.ts +229 -4
- package/dist/dist-cjs/communication-react/index.js +1300 -264
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
- package/dist/dist-esm/calling-stateful-client/src/StreamUtils.d.ts.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js +6 -3
- package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js +1 -1
- package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/CameraButton.d.ts +3 -1
- package/dist/dist-esm/react-components/src/components/CameraButton.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/CameraButton.js +4 -4
- package/dist/dist-esm/react-components/src/components/CameraButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ControlBarButton.d.ts +5 -1
- package/dist/dist-esm/react-components/src/components/ControlBarButton.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/ControlBarButton.js +10 -12
- package/dist/dist-esm/react-components/src/components/ControlBarButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/MessageThread.js +1 -1
- package/dist/dist-esm/react-components/src/components/MicrophoneButton.d.ts +2 -0
- package/dist/dist-esm/react-components/src/components/MicrophoneButton.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/MicrophoneButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.d.ts +2 -1
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +7 -5
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ScreenShareButton.d.ts +2 -0
- package/dist/dist-esm/react-components/src/components/ScreenShareButton.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/ScreenShareButton.js +18 -2
- package/dist/dist-esm/react-components/src/components/ScreenShareButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.d.ts +9 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js +14 -8
- package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +3 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery.js +13 -10
- package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/ControlBar.styles.d.ts +0 -4
- package/dist/dist-esm/react-components/src/components/styles/ControlBar.styles.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/ControlBar.styles.js +8 -10
- package/dist/dist-esm/react-components/src/components/styles/ControlBar.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.d.ts +10 -0
- package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js +15 -17
- package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +3 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +3 -5
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +20 -17
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +3 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallControls.styles.d.ts +1 -5
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallControls.styles.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallControls.styles.js +0 -12
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallControls.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.d.ts +7 -0
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +14 -7
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/ChatButton.d.ts +7 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/ChatButton.d.ts.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/ChatButton.js +16 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/ChatButton.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/MeetingCallControlBar.d.ts +19 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/MeetingCallControlBar.d.ts.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/MeetingCallControlBar.js +38 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/MeetingCallControlBar.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/MeetingComposite.d.ts +37 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/MeetingComposite.d.ts.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/MeetingComposite.js +59 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/MeetingComposite.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/PeopleButton.d.ts +7 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/PeopleButton.d.ts.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/PeopleButton.js +16 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/PeopleButton.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/SidePane.d.ts +25 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/SidePane.d.ts.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/SidePane.js +76 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/SidePane.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/AzureCommunicationMeetingAdapter.d.ts +129 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/AzureCommunicationMeetingAdapter.d.ts.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/AzureCommunicationMeetingAdapter.js +385 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/AzureCommunicationMeetingAdapter.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingAdapter.d.ts +73 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingAdapter.d.ts.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingAdapter.js +4 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingAdapter.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingBackedCallAdapter.d.ts +40 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingBackedCallAdapter.d.ts.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingBackedCallAdapter.js +100 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingBackedCallAdapter.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingBackedChatAdapter.d.ts +30 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingBackedChatAdapter.d.ts.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingBackedChatAdapter.js +79 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingBackedChatAdapter.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/index.d.ts +10 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/index.d.ts.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/index.js +5 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/index.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingAdapterState.d.ts +50 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingAdapterState.d.ts.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingAdapterState.js +50 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingAdapterState.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingCompositePage.d.ts +21 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingCompositePage.d.ts.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingCompositePage.js +41 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingCompositePage.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingEndReason.d.ts +8 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingEndReason.d.ts.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingEndReason.js +4 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingEndReason.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingParticipants.d.ts +35 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingParticipants.d.ts.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingParticipants.js +51 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingParticipants.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingState.d.ts +42 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingState.d.ts.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingState.js +72 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingState.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/styles/MeetingCompositeStyles.d.ts +6 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/styles/MeetingCompositeStyles.d.ts.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/styles/MeetingCompositeStyles.js +17 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/styles/MeetingCompositeStyles.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/styles/SidePane.styles.d.ts +38 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/styles/SidePane.styles.d.ts.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/styles/SidePane.styles.js +63 -0
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/styles/SidePane.styles.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/index.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/index.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/index.js +1 -0
- package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
- package/package.json +7 -7
|
@@ -227,6 +227,20 @@ export declare type AzureCommunicationChatAdapterArgs = {
|
|
|
227
227
|
threadId: string;
|
|
228
228
|
};
|
|
229
229
|
|
|
230
|
+
/**
|
|
231
|
+
* Arguments for {@link createAzureCommunicationMeetingAdapter}
|
|
232
|
+
*
|
|
233
|
+
* @beta
|
|
234
|
+
*/
|
|
235
|
+
export declare type AzureCommunicationMeetingAdapterArgs = {
|
|
236
|
+
endpoint: string;
|
|
237
|
+
userId: CommunicationUserIdentifier;
|
|
238
|
+
displayName: string;
|
|
239
|
+
credential: CommunicationTokenCredential;
|
|
240
|
+
chatThreadId: string;
|
|
241
|
+
callLocator: TeamsMeetingLinkLocator | GroupCallLocator;
|
|
242
|
+
};
|
|
243
|
+
|
|
230
244
|
/**
|
|
231
245
|
* Properties common to all composites exported from this library.
|
|
232
246
|
*
|
|
@@ -1299,7 +1313,7 @@ export declare interface CameraButtonProps extends ControlBarButtonProps {
|
|
|
1299
1313
|
/**
|
|
1300
1314
|
* Options for rendering local video view.
|
|
1301
1315
|
*/
|
|
1302
|
-
|
|
1316
|
+
localVideoViewOptions?: VideoStreamOptions;
|
|
1303
1317
|
/**
|
|
1304
1318
|
* Optional strings to override in component
|
|
1305
1319
|
*/
|
|
@@ -1326,6 +1340,8 @@ export declare interface CameraButtonStrings {
|
|
|
1326
1340
|
onLabel: string;
|
|
1327
1341
|
/** Label when button is off. */
|
|
1328
1342
|
offLabel: string;
|
|
1343
|
+
/** Tooltip content when the button is disabled. */
|
|
1344
|
+
tooltipDisabledContent?: string;
|
|
1329
1345
|
/** Tooltip content when the button is on. */
|
|
1330
1346
|
tooltipOnContent?: string;
|
|
1331
1347
|
/** Tooltip content when the button is off. */
|
|
@@ -1571,6 +1587,13 @@ export declare type ChatCompositeOptions = {
|
|
|
1571
1587
|
* @defaultValue true
|
|
1572
1588
|
*/
|
|
1573
1589
|
errorBar?: boolean;
|
|
1590
|
+
/**
|
|
1591
|
+
* Show or hide the participant pane. This feature is in beta and not supported on mobile or narrow screen views.
|
|
1592
|
+
* @defaultValue false
|
|
1593
|
+
*
|
|
1594
|
+
* @beta
|
|
1595
|
+
*/
|
|
1596
|
+
participantPane?: boolean;
|
|
1574
1597
|
/**
|
|
1575
1598
|
* Show or hide the topic at the top of the chat. Hidden if set to `false`
|
|
1576
1599
|
* @defaultValue true
|
|
@@ -2257,9 +2280,13 @@ export declare interface ControlBarButtonStrings {
|
|
|
2257
2280
|
*/
|
|
2258
2281
|
offLabel?: string;
|
|
2259
2282
|
/**
|
|
2260
|
-
* Tooltip content of the button. This supersedes tooltipOnContent and tooltipOffContent if used.
|
|
2283
|
+
* Tooltip content of the button. This supersedes tooltipDisabledContent, tooltipOnContent and tooltipOffContent if used.
|
|
2261
2284
|
*/
|
|
2262
2285
|
tooltipContent?: string;
|
|
2286
|
+
/**
|
|
2287
|
+
* Tooltip content when the button is disabled.
|
|
2288
|
+
*/
|
|
2289
|
+
tooltipDisabledContent?: string;
|
|
2263
2290
|
/**
|
|
2264
2291
|
* Tooltip content when the button is in the checked state.
|
|
2265
2292
|
*/
|
|
@@ -2348,6 +2375,14 @@ export declare const createAzureCommunicationChatAdapter: ({ endpoint: endpointU
|
|
|
2348
2375
|
*/
|
|
2349
2376
|
export declare const createAzureCommunicationChatAdapterFromClient: (chatClient: StatefulChatClient, chatThreadClient: ChatThreadClient) => Promise<ChatAdapter>;
|
|
2350
2377
|
|
|
2378
|
+
/**
|
|
2379
|
+
* Create a meeting adapter backed by Azure Communication services
|
|
2380
|
+
* to plug into the Meeting Composite.
|
|
2381
|
+
*
|
|
2382
|
+
* @beta
|
|
2383
|
+
*/
|
|
2384
|
+
export declare const createAzureCommunicationMeetingAdapter: ({ userId, displayName, credential, endpoint, chatThreadId, callLocator }: AzureCommunicationMeetingAdapterArgs) => Promise<MeetingAdapter>;
|
|
2385
|
+
|
|
2351
2386
|
/**
|
|
2352
2387
|
* Create the default implementation of {@link CallingHandlers}.
|
|
2353
2388
|
*
|
|
@@ -3301,6 +3336,191 @@ export declare interface MediaDiagnosticsState {
|
|
|
3301
3336
|
latest: LatestMediaDiagnostics;
|
|
3302
3337
|
}
|
|
3303
3338
|
|
|
3339
|
+
/**
|
|
3340
|
+
* Meeting Composite Adapter interface.
|
|
3341
|
+
* @beta
|
|
3342
|
+
*/
|
|
3343
|
+
export declare interface MeetingAdapter extends MeetingAdapterMeetingManagement, AdapterState<MeetingAdapterState>, Disposable, MeetingAdapterSubscriptions {
|
|
3344
|
+
}
|
|
3345
|
+
|
|
3346
|
+
/**
|
|
3347
|
+
* State from the backend services that drives Meeting Composite.
|
|
3348
|
+
*
|
|
3349
|
+
* @beta
|
|
3350
|
+
*/
|
|
3351
|
+
export declare interface MeetingAdapterClientState extends Pick<CallAdapterClientState, 'devices' | 'isTeamsCall'> {
|
|
3352
|
+
/** ID of the meeting participant using this Meeting Adapter. */
|
|
3353
|
+
userId: CommunicationIdentifierKind;
|
|
3354
|
+
/** Display name of the meeting participant using this Meeting Adapter. */
|
|
3355
|
+
displayName: string | undefined;
|
|
3356
|
+
/** State of the current Meeting. */
|
|
3357
|
+
meeting: MeetingState | undefined;
|
|
3358
|
+
}
|
|
3359
|
+
|
|
3360
|
+
/**
|
|
3361
|
+
* Functionality for managing the current meeting.
|
|
3362
|
+
* @beta
|
|
3363
|
+
*/
|
|
3364
|
+
export declare interface MeetingAdapterMeetingManagement extends Pick<CallAdapterCallManagement, 'startCamera' | 'stopCamera' | 'mute' | 'unmute' | 'startScreenShare' | 'stopScreenShare' | 'createStreamView' | 'disposeStreamView'>, Pick<CallAdapterDeviceManagement, 'setCamera' | 'setMicrophone' | 'setSpeaker' | 'askDevicePermission' | 'queryCameras' | 'queryMicrophones' | 'querySpeakers'>, Pick<ChatAdapterThreadManagement, 'fetchInitialData' | 'sendMessage' | 'sendReadReceipt' | 'sendTypingIndicator' | 'loadPreviousChatMessages' | 'updateMessage' | 'deleteMessage'> {
|
|
3365
|
+
/**
|
|
3366
|
+
* Join an existing Meeting
|
|
3367
|
+
* @returns The underlying Call object of the meeting.
|
|
3368
|
+
*/
|
|
3369
|
+
joinMeeting(microphoneOn?: boolean): Call | undefined;
|
|
3370
|
+
/**
|
|
3371
|
+
* Leave the current Meeting
|
|
3372
|
+
*/
|
|
3373
|
+
leaveMeeting(): Promise<void>;
|
|
3374
|
+
/**
|
|
3375
|
+
* Start a new Meeting
|
|
3376
|
+
* @param participants - Array of participant IDs. These represent the participants to initialize the meeting with.
|
|
3377
|
+
* @returns The underlying Call object of the meeting.
|
|
3378
|
+
*/
|
|
3379
|
+
startMeeting(participants: string[]): Call | undefined;
|
|
3380
|
+
/**
|
|
3381
|
+
* Remove a participant from a Meeting
|
|
3382
|
+
* @param userId - UserId of the participant to remove.
|
|
3383
|
+
*/
|
|
3384
|
+
removeParticipant(userId: string): Promise<void>;
|
|
3385
|
+
}
|
|
3386
|
+
|
|
3387
|
+
/**
|
|
3388
|
+
* Meeting State is a combination of Stateful Chat and Stateful Calling clients with some
|
|
3389
|
+
* state specific to meetings only.
|
|
3390
|
+
* Stateful items like Participants that apply to both calling and chat are intelligently
|
|
3391
|
+
* combined into one to suit the purpose of a Meeting.
|
|
3392
|
+
*
|
|
3393
|
+
* @beta
|
|
3394
|
+
*/
|
|
3395
|
+
export declare interface MeetingAdapterState extends MeetingAdapterUiState, MeetingAdapterClientState {
|
|
3396
|
+
}
|
|
3397
|
+
|
|
3398
|
+
/**
|
|
3399
|
+
* Meeting events that can be subscribed to.
|
|
3400
|
+
* @beta
|
|
3401
|
+
*/
|
|
3402
|
+
export declare interface MeetingAdapterSubscriptions {
|
|
3403
|
+
on(event: 'participantsJoined', listener: ParticipantsJoinedListener): void;
|
|
3404
|
+
on(event: 'participantsLeft', listener: ParticipantsLeftListener): void;
|
|
3405
|
+
on(event: 'meetingEnded', listener: CallEndedListener): void;
|
|
3406
|
+
on(event: 'error', listener: (e: Error) => void): void;
|
|
3407
|
+
off(event: 'participantsJoined', listener: ParticipantsJoinedListener): void;
|
|
3408
|
+
off(event: 'participantsLeft', listener: ParticipantsLeftListener): void;
|
|
3409
|
+
off(event: 'meetingEnded', listener: CallEndedListener): void;
|
|
3410
|
+
off(event: 'error', listener: (e: Error) => void): void;
|
|
3411
|
+
on(event: 'isMutedChanged', listener: IsMutedChangedListener): void;
|
|
3412
|
+
on(event: 'callIdChanged', listener: CallIdChangedListener): void;
|
|
3413
|
+
on(event: 'isLocalScreenSharingActiveChanged', listener: IsLocalScreenSharingActiveChangedListener): void;
|
|
3414
|
+
on(event: 'displayNameChanged', listener: DisplayNameChangedListener): void;
|
|
3415
|
+
on(event: 'isSpeakingChanged', listener: IsSpeakingChangedListener): void;
|
|
3416
|
+
off(event: 'isMutedChanged', listener: IsMutedChangedListener): void;
|
|
3417
|
+
off(event: 'callIdChanged', listener: CallIdChangedListener): void;
|
|
3418
|
+
off(event: 'isLocalScreenSharingActiveChanged', listener: IsLocalScreenSharingActiveChangedListener): void;
|
|
3419
|
+
off(event: 'displayNameChanged', listener: DisplayNameChangedListener): void;
|
|
3420
|
+
off(event: 'isSpeakingChanged', listener: IsSpeakingChangedListener): void;
|
|
3421
|
+
on(event: 'messageReceived', listener: MessageReceivedListener): void;
|
|
3422
|
+
on(event: 'messageSent', listener: MessageSentListener): void;
|
|
3423
|
+
on(event: 'messageRead', listener: MessageReadListener): void;
|
|
3424
|
+
off(event: 'messageReceived', listener: MessageReceivedListener): void;
|
|
3425
|
+
off(event: 'messageSent', listener: MessageSentListener): void;
|
|
3426
|
+
off(event: 'messageRead', listener: MessageReadListener): void;
|
|
3427
|
+
}
|
|
3428
|
+
|
|
3429
|
+
/**
|
|
3430
|
+
* UI state pertaining to the Meeting Composite.
|
|
3431
|
+
*
|
|
3432
|
+
* @beta
|
|
3433
|
+
*/
|
|
3434
|
+
export declare interface MeetingAdapterUiState extends Pick<CallAdapterUiState, 'isLocalPreviewMicrophoneEnabled'> {
|
|
3435
|
+
/** Current page in the meeting composite. */
|
|
3436
|
+
page: MeetingCompositePage;
|
|
3437
|
+
}
|
|
3438
|
+
|
|
3439
|
+
/**
|
|
3440
|
+
* Meeting Composite brings together key components to provide a full meeting experience out of the box.
|
|
3441
|
+
*
|
|
3442
|
+
* @beta
|
|
3443
|
+
*/
|
|
3444
|
+
export declare const MeetingComposite: (props: MeetingCompositeProps) => JSX.Element;
|
|
3445
|
+
|
|
3446
|
+
/**
|
|
3447
|
+
* Page state the Meeting composite could be in.
|
|
3448
|
+
*
|
|
3449
|
+
* @beta
|
|
3450
|
+
*/
|
|
3451
|
+
export declare type MeetingCompositePage = 'accessDeniedTeamsMeeting' | 'configuration' | 'joinMeetingFailedDueToNoNetwork' | 'leftMeeting' | 'lobby' | 'meeting' | 'removedFromMeeting';
|
|
3452
|
+
|
|
3453
|
+
/**
|
|
3454
|
+
* Props required for the {@link MeetingComposite}
|
|
3455
|
+
*
|
|
3456
|
+
* @beta
|
|
3457
|
+
*/
|
|
3458
|
+
export declare interface MeetingCompositeProps extends BaseCompositeProps<CallCompositeIcons & ChatCompositeIcons> {
|
|
3459
|
+
meetingAdapter: MeetingAdapter;
|
|
3460
|
+
/**
|
|
3461
|
+
* Fluent theme for the composite.
|
|
3462
|
+
*
|
|
3463
|
+
* Defaults to a light theme if undefined.
|
|
3464
|
+
*/
|
|
3465
|
+
fluentTheme?: PartialTheme | Theme;
|
|
3466
|
+
/**
|
|
3467
|
+
* Optimizes the composite form factor for either desktop or mobile.
|
|
3468
|
+
* @remarks `mobile` is currently only optimized for Portrait mode on mobile devices and does not support landscape.
|
|
3469
|
+
* @defaultValue 'desktop'
|
|
3470
|
+
* @beta
|
|
3471
|
+
*/
|
|
3472
|
+
formFactor?: 'desktop' | 'mobile';
|
|
3473
|
+
/**
|
|
3474
|
+
* URL that can be used to copy a meeting invite to the Users clipboard.
|
|
3475
|
+
*/
|
|
3476
|
+
meetingInvitationURL?: string;
|
|
3477
|
+
}
|
|
3478
|
+
|
|
3479
|
+
/**
|
|
3480
|
+
* Describes the reason the meeting ended.
|
|
3481
|
+
*
|
|
3482
|
+
* @beta
|
|
3483
|
+
*/
|
|
3484
|
+
export declare type MeetingEndReason = CallEndReason;
|
|
3485
|
+
|
|
3486
|
+
/**
|
|
3487
|
+
* Events fired off by the Meeting Adapter
|
|
3488
|
+
* @beta
|
|
3489
|
+
*/
|
|
3490
|
+
export declare type MeetingEvent = 'participantsJoined' | 'participantsLeft' | 'meetingEnded' | 'isMutedChanged' | 'callIdChanged' | 'isLocalScreenSharingActiveChanged' | 'displayNameChanged' | 'isSpeakingChanged' | 'messageReceived' | 'messageSent' | 'messageRead' | 'error';
|
|
3491
|
+
|
|
3492
|
+
/**
|
|
3493
|
+
* Participants of a Meeting.
|
|
3494
|
+
*
|
|
3495
|
+
* @beta
|
|
3496
|
+
*/
|
|
3497
|
+
export declare interface MeetingParticipant extends Pick<RemoteParticipantState, 'displayName' | 'state' | 'videoStreams' | 'isMuted' | 'isSpeaking'> {
|
|
3498
|
+
/** ID of the meeting participant. */
|
|
3499
|
+
id: CommunicationUserKind | PhoneNumberKind | MicrosoftTeamsUserKind | UnknownIdentifierKind;
|
|
3500
|
+
/** Describes the reason the meeting ended for this participant. */
|
|
3501
|
+
meetingEndReason?: MeetingEndReason;
|
|
3502
|
+
}
|
|
3503
|
+
|
|
3504
|
+
/**
|
|
3505
|
+
* State of a single Meeting.
|
|
3506
|
+
*
|
|
3507
|
+
* @beta
|
|
3508
|
+
*/
|
|
3509
|
+
export declare interface MeetingState extends Pick<CallState, 'callerInfo' | 'state' | 'isMuted' | 'isScreenSharingOn' | 'localVideoStreams' | 'transcription' | 'recording' | 'screenShareRemoteParticipant' | 'startTime' | 'endTime' | 'diagnostics' | 'dominantSpeakers'>, Pick<ChatThreadClientState, 'chatMessages' | 'threadId' | 'properties' | 'readReceipts' | 'typingIndicators' | 'latestReadTime'> {
|
|
3510
|
+
/** Current Meeting ID. */
|
|
3511
|
+
id: string;
|
|
3512
|
+
/** Active participants in the current meeting. */
|
|
3513
|
+
participants: {
|
|
3514
|
+
[key: string]: MeetingParticipant;
|
|
3515
|
+
};
|
|
3516
|
+
/** Participants who have left the current meeting. */
|
|
3517
|
+
participantsEnded: {
|
|
3518
|
+
[keys: string]: MeetingParticipant;
|
|
3519
|
+
};
|
|
3520
|
+
/** Reason the current meeting has ended. */
|
|
3521
|
+
meetingEndReason?: MeetingEndReason;
|
|
3522
|
+
}
|
|
3523
|
+
|
|
3304
3524
|
/**
|
|
3305
3525
|
* Discriminated union of all messages.
|
|
3306
3526
|
*
|
|
@@ -3736,6 +3956,8 @@ export declare interface MicrophoneButtonStrings {
|
|
|
3736
3956
|
onLabel: string;
|
|
3737
3957
|
/** Label when button is off. */
|
|
3738
3958
|
offLabel: string;
|
|
3959
|
+
/** * Tooltip content when the button is disabled. */
|
|
3960
|
+
tooltipDisabledContent?: string;
|
|
3739
3961
|
/** Tooltip content when the button is on. */
|
|
3740
3962
|
tooltipOnContent?: string;
|
|
3741
3963
|
/** Tooltip content when the button is off. */
|
|
@@ -4275,6 +4497,8 @@ export declare interface ScreenShareButtonStrings {
|
|
|
4275
4497
|
onLabel: string;
|
|
4276
4498
|
/** Label when button is off. */
|
|
4277
4499
|
offLabel: string;
|
|
4500
|
+
/** * Tooltip content when the button is disabled. */
|
|
4501
|
+
tooltipDisabledContent?: string;
|
|
4278
4502
|
/** Tooltip content when the button is on. */
|
|
4279
4503
|
tooltipOnContent?: string;
|
|
4280
4504
|
/** Tooltip content when the button is off. */
|
|
@@ -4983,9 +5207,9 @@ export declare interface VideoGalleryProps {
|
|
|
4983
5207
|
/** List of dominant speaker userIds in the order of their dominance. 0th index is the most dominant. */
|
|
4984
5208
|
dominantSpeakers?: string[];
|
|
4985
5209
|
/** Local video view options */
|
|
4986
|
-
|
|
5210
|
+
localVideoViewOptions?: VideoStreamOptions;
|
|
4987
5211
|
/** Remote videos view options */
|
|
4988
|
-
|
|
5212
|
+
remoteVideoViewOptions?: VideoStreamOptions;
|
|
4989
5213
|
/** Callback to create the local video stream view */
|
|
4990
5214
|
onCreateLocalStreamView?: (options?: VideoStreamOptions) => Promise<void>;
|
|
4991
5215
|
/** Callback to dispose of the local video stream view */
|
|
@@ -4996,6 +5220,7 @@ export declare interface VideoGalleryProps {
|
|
|
4996
5220
|
onCreateRemoteStreamView?: (userId: string, options?: VideoStreamOptions) => Promise<void>;
|
|
4997
5221
|
/** Callback to render a remote video tile */
|
|
4998
5222
|
onRenderRemoteVideoTile?: (remoteParticipant: VideoGalleryRemoteParticipant) => JSX.Element;
|
|
5223
|
+
/** Callback to dispose a remote video stream view */
|
|
4999
5224
|
onDisposeRemoteStreamView?: (userId: string) => Promise<void>;
|
|
5000
5225
|
/** Callback to render a particpant avatar */
|
|
5001
5226
|
onRenderAvatar?: OnRenderAvatarCallback;
|