@azure/communication-react 1.4.2-alpha-202211220015.0 → 1.4.2-alpha-202211240014.0
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 +188 -27
- package/dist/dist-cjs/communication-react/index.js +251 -89
- 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/acs-ui-common/src/telemetryVersion.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/index.d.ts +1 -0
- package/dist/dist-esm/calling-component-bindings/src/index.js +2 -0
- package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.d.ts +7 -0
- package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js +12 -0
- package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +5 -0
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +2 -0
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js +7 -0
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js +19 -0
- package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ErrorBar.d.ts +10 -0
- package/dist/dist-esm/react-components/src/components/ErrorBar.js +5 -2
- package/dist/dist-esm/react-components/src/components/ErrorBar.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/MessageThread.js +7 -11
- package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/UnsupportedBrowser.styles.js +1 -2
- package/dist/dist-esm/react-components/src/components/styles/UnsupportedBrowser.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/utils.d.ts +1 -1
- package/dist/dist-esm/react-components/src/components/utils.js +5 -1
- package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +5 -6
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +45 -12
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +141 -46
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +135 -27
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapterProvider.d.ts +3 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapterProvider.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/DiagnosticsForwarder.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/DiagnosticsForwarder.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.d.ts +15 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js +23 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +4 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +8 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js +3 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +3 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js +3 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +3 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js +8 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +5 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +5 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +8 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +8 -4
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +3 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +10 -5
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +3 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +3 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
- package/package.json +8 -8
@@ -44,6 +44,7 @@ import { DeviceAccess } from '@azure/communication-calling';
|
|
44
44
|
import { DeviceManager } from '@azure/communication-calling';
|
45
45
|
import { DominantSpeakersInfo } from '@azure/communication-calling';
|
46
46
|
import { DtmfTone as DtmfTone_2 } from '@azure/communication-calling';
|
47
|
+
import { EnvironmentInfo } from '@azure/communication-calling';
|
47
48
|
import { GroupCallLocator } from '@azure/communication-calling';
|
48
49
|
import { IButtonProps } from '@fluentui/react';
|
49
50
|
import { IButtonStyles } from '@fluentui/react';
|
@@ -290,6 +291,10 @@ export declare type AzureCommunicationCallAdapterOptions = {
|
|
290
291
|
* {@link CallComposite}. The true role of the user will be synced with ACS services when a Rooms call starts.
|
291
292
|
*/
|
292
293
|
roleHint?: Role;
|
294
|
+
/**
|
295
|
+
* Optional feature flags to be enabled in the CallAdapter.
|
296
|
+
*/
|
297
|
+
features?: CallAdapterOptionalFeatures;
|
293
298
|
};
|
294
299
|
|
295
300
|
/**
|
@@ -304,6 +309,7 @@ export declare type AzureCommunicationCallWithChatAdapterArgs = {
|
|
304
309
|
credential: CommunicationTokenCredential;
|
305
310
|
locator: CallAndChatLocator | TeamsMeetingLinkLocator;
|
306
311
|
alternateCallerId?: string;
|
312
|
+
callAdapterOptions?: AzureCommunicationCallAdapterOptions;
|
307
313
|
};
|
308
314
|
|
309
315
|
/**
|
@@ -518,11 +524,33 @@ export declare interface BrowserPermissionDeniedStyles extends BaseCustomStyles
|
|
518
524
|
}
|
519
525
|
|
520
526
|
/**
|
521
|
-
* {@link
|
527
|
+
* An Adapter interface specific for Azure Communication identity which extends {@link CommonCallAdapter}.
|
522
528
|
*
|
523
529
|
* @public
|
524
530
|
*/
|
525
|
-
export declare interface CallAdapter extends
|
531
|
+
export declare interface CallAdapter extends CommonCallAdapter {
|
532
|
+
/**
|
533
|
+
* Join the call with microphone initially on/off.
|
534
|
+
*
|
535
|
+
* @param microphoneOn - Whether microphone is initially enabled
|
536
|
+
*
|
537
|
+
* @public
|
538
|
+
*/
|
539
|
+
joinCall(microphoneOn?: boolean): Call | undefined;
|
540
|
+
/**
|
541
|
+
* Start the call.
|
542
|
+
*
|
543
|
+
* @param participants - An array of participant ids to join
|
544
|
+
*
|
545
|
+
* @public
|
546
|
+
*/
|
547
|
+
startCall(participants: string[], options?: StartCallOptions): Call | undefined;
|
548
|
+
/**
|
549
|
+
* Start the call.
|
550
|
+
* @param participants - An array of {@link @azure/communication-common#CommunicationIdentifier} to be called
|
551
|
+
* @beta
|
552
|
+
*/
|
553
|
+
startCall(participants: CommunicationIdentifier[], options?: StartCallOptions): Call | undefined;
|
526
554
|
}
|
527
555
|
|
528
556
|
/**
|
@@ -535,11 +563,11 @@ export declare type CallAdapterCallEndedEvent = {
|
|
535
563
|
};
|
536
564
|
|
537
565
|
/**
|
538
|
-
* Functionality for managing the current call
|
539
|
-
*
|
566
|
+
* Functionality for managing the current call or start a new call
|
567
|
+
* @deprecated CallAdapter interface will be flatten, consider using CallAdapter directly
|
540
568
|
* @public
|
541
569
|
*/
|
542
|
-
export declare interface CallAdapterCallManagement {
|
570
|
+
export declare interface CallAdapterCallManagement extends CallAdapterCallOperations {
|
543
571
|
/**
|
544
572
|
* Join the call with microphone initially on/off.
|
545
573
|
*
|
@@ -548,6 +576,28 @@ export declare interface CallAdapterCallManagement {
|
|
548
576
|
* @public
|
549
577
|
*/
|
550
578
|
joinCall(microphoneOn?: boolean): Call | undefined;
|
579
|
+
/**
|
580
|
+
* Start the call.
|
581
|
+
*
|
582
|
+
* @param participants - An array of participant ids to join
|
583
|
+
*
|
584
|
+
* @public
|
585
|
+
*/
|
586
|
+
startCall(participants: string[], options?: StartCallOptions): Call | undefined;
|
587
|
+
/**
|
588
|
+
* Start the call.
|
589
|
+
* @param participants - An array of {@link @azure/communication-common#CommunicationIdentifier} to be called
|
590
|
+
* @beta
|
591
|
+
*/
|
592
|
+
startCall(participants: CommunicationIdentifier[], options?: StartCallOptions): Call | undefined;
|
593
|
+
}
|
594
|
+
|
595
|
+
/**
|
596
|
+
* Functionality for managing the current call.
|
597
|
+
*
|
598
|
+
* @public
|
599
|
+
*/
|
600
|
+
export declare interface CallAdapterCallOperations {
|
551
601
|
/**
|
552
602
|
* Leave the call
|
553
603
|
*
|
@@ -584,20 +634,6 @@ export declare interface CallAdapterCallManagement {
|
|
584
634
|
* @public
|
585
635
|
*/
|
586
636
|
unmute(): Promise<void>;
|
587
|
-
/**
|
588
|
-
* Start the call.
|
589
|
-
*
|
590
|
-
* @param participants - An array of participant ids to join
|
591
|
-
*
|
592
|
-
* @public
|
593
|
-
*/
|
594
|
-
startCall(participants: string[], options?: StartCallOptions): Call | undefined;
|
595
|
-
/**
|
596
|
-
* Start the call.
|
597
|
-
* @param participants - An array of {@link @azure/communication-common#CommunicationIdentifier} to be called
|
598
|
-
* @beta
|
599
|
-
*/
|
600
|
-
startCall(participants: CommunicationIdentifier[], options?: StartCallOptions): Call | undefined;
|
601
637
|
/**
|
602
638
|
* Start sharing the screen during a call.
|
603
639
|
*
|
@@ -676,7 +712,7 @@ export declare interface CallAdapterCallManagement {
|
|
676
712
|
}
|
677
713
|
|
678
714
|
/**
|
679
|
-
* {@link
|
715
|
+
* {@link CommonCallAdapter} state inferred from Azure Communication Services backend.
|
680
716
|
*
|
681
717
|
* @public
|
682
718
|
*/
|
@@ -695,6 +731,14 @@ export declare type CallAdapterClientState = {
|
|
695
731
|
* Azure communications Phone number to make PSTN calls with.
|
696
732
|
*/
|
697
733
|
alternateCallerId?: string;
|
734
|
+
/**
|
735
|
+
* Environment information about system the adapter is made on
|
736
|
+
*/
|
737
|
+
environmentInfo?: EnvironmentInfo;
|
738
|
+
/**
|
739
|
+
* Optional features that are to be enabled through the adapter.
|
740
|
+
*/
|
741
|
+
features?: CallAdapterOptionalFeatures;
|
698
742
|
/**
|
699
743
|
* Use this to hint the role of the user when the role is not available before a Rooms call is started. This value
|
700
744
|
* should be obtained using the Rooms API. This role will determine permissions in the configuration page of the
|
@@ -788,7 +832,19 @@ export declare interface CallAdapterDeviceManagement {
|
|
788
832
|
export declare type CallAdapterLocator = TeamsMeetingLinkLocator | GroupCallLocator | /* @conditional-compile-remove(rooms) */ RoomCallLocator | /* @conditional-compile-remove(teams-adhoc-call) */ /* @conditional-compile-remove(PSTN-calls) */ CallParticipantsLocator;
|
789
833
|
|
790
834
|
/**
|
791
|
-
*
|
835
|
+
* options object to enable opt in features for the CallAdapter
|
836
|
+
*
|
837
|
+
* @beta
|
838
|
+
*/
|
839
|
+
export declare type CallAdapterOptionalFeatures = {
|
840
|
+
/**
|
841
|
+
* Feature flag for enabling the unsupported environment logic in the CallAdapter.
|
842
|
+
*/
|
843
|
+
unsupportedEnvironment?: boolean;
|
844
|
+
};
|
845
|
+
|
846
|
+
/**
|
847
|
+
* {@link CommonCallAdapter} state.
|
792
848
|
*
|
793
849
|
* @public
|
794
850
|
*/
|
@@ -913,7 +969,7 @@ export declare interface CallAdapterSubscribers {
|
|
913
969
|
}
|
914
970
|
|
915
971
|
/**
|
916
|
-
* {@link
|
972
|
+
* {@link CommonCallAdapter} state for pure UI purposes.
|
917
973
|
*
|
918
974
|
* @public
|
919
975
|
*/
|
@@ -1056,6 +1112,10 @@ export declare interface CallClientState {
|
|
1056
1112
|
* be used as the caller id in the PSTN call.
|
1057
1113
|
*/
|
1058
1114
|
alternateCallerId?: string;
|
1115
|
+
/**
|
1116
|
+
* state to track the environment that the stateful client was made in is supported
|
1117
|
+
*/
|
1118
|
+
environmentInfo?: EnvironmentInfo;
|
1059
1119
|
}
|
1060
1120
|
|
1061
1121
|
/**
|
@@ -1216,7 +1276,7 @@ export declare interface CallCompositeProps extends BaseCompositeProps<CallCompo
|
|
1216
1276
|
* An adapter provides logic and data to the composite.
|
1217
1277
|
* Composite can also be controlled using the adapter.
|
1218
1278
|
*/
|
1219
|
-
adapter:
|
1279
|
+
adapter: CommonCallAdapter;
|
1220
1280
|
/**
|
1221
1281
|
* Optimizes the composite form factor for either desktop or mobile.
|
1222
1282
|
* @remarks `mobile` is currently only optimized for Portrait mode on mobile devices and does not support landscape.
|
@@ -2262,6 +2322,8 @@ export declare interface CallWithChatClientState {
|
|
2262
2322
|
isTeamsCall: boolean;
|
2263
2323
|
/** alternateCallerId for PSTN call */
|
2264
2324
|
alternateCallerId?: string | undefined;
|
2325
|
+
/** Environment information for system adapter is made on */
|
2326
|
+
environmentInfo?: EnvironmentInfo;
|
2265
2327
|
}
|
2266
2328
|
|
2267
2329
|
/**
|
@@ -3408,6 +3470,36 @@ export declare type ClientState = CallClientState & ChatClientState;
|
|
3408
3470
|
*/
|
3409
3471
|
export declare type Common<A, B> = Pick<A, CommonProperties<A, B>>;
|
3410
3472
|
|
3473
|
+
/**
|
3474
|
+
* {@link CallComposite} Adapter interface.
|
3475
|
+
*
|
3476
|
+
* @public
|
3477
|
+
*/
|
3478
|
+
export declare interface CommonCallAdapter extends AdapterState<CallAdapterState>, Disposable, CallAdapterCallOperations, CallAdapterDeviceManagement, CallAdapterSubscribers {
|
3479
|
+
/**
|
3480
|
+
* Join the call with microphone initially on/off.
|
3481
|
+
*
|
3482
|
+
* @param microphoneOn - Whether microphone is initially enabled
|
3483
|
+
*
|
3484
|
+
* @public
|
3485
|
+
*/
|
3486
|
+
joinCall(microphoneOn?: boolean): void;
|
3487
|
+
/**
|
3488
|
+
* Start the call.
|
3489
|
+
*
|
3490
|
+
* @param participants - An array of participant ids to join
|
3491
|
+
*
|
3492
|
+
* @public
|
3493
|
+
*/
|
3494
|
+
startCall(participants: string[], options?: StartCallOptions): void;
|
3495
|
+
/**
|
3496
|
+
* Start the call.
|
3497
|
+
* @param participants - An array of {@link @azure/communication-common#CommunicationIdentifier} to be called
|
3498
|
+
* @beta
|
3499
|
+
*/
|
3500
|
+
startCall(participants: CommunicationIdentifier[], options?: StartCallOptions): void;
|
3501
|
+
}
|
3502
|
+
|
3411
3503
|
/**
|
3412
3504
|
* Object containing all the handlers required for calling components.
|
3413
3505
|
*
|
@@ -3999,9 +4091,7 @@ export declare const createAzureCommunicationCallAdapter: ({ userId, displayName
|
|
3999
4091
|
*
|
4000
4092
|
* @public
|
4001
4093
|
*/
|
4002
|
-
export declare const createAzureCommunicationCallAdapterFromClient: (callClient: StatefulCallClient, callAgent: CallAgent, locator: CallAdapterLocator, options?:
|
4003
|
-
roleHint?: Role;
|
4004
|
-
}) => Promise<CallAdapter>;
|
4094
|
+
export declare const createAzureCommunicationCallAdapterFromClient: (callClient: StatefulCallClient, callAgent: CallAgent, locator: CallAdapterLocator, options?: AzureCommunicationCallAdapterOptions) => Promise<CallAdapter>;
|
4005
4095
|
|
4006
4096
|
/**
|
4007
4097
|
* Create a CallWithChatAdapter backed by Azure Communication services
|
@@ -4009,7 +4099,7 @@ export declare const createAzureCommunicationCallAdapterFromClient: (callClient:
|
|
4009
4099
|
*
|
4010
4100
|
* @public
|
4011
4101
|
*/
|
4012
|
-
export declare const createAzureCommunicationCallWithChatAdapter: ({ userId, displayName, credential, endpoint, locator, alternateCallerId }: AzureCommunicationCallWithChatAdapterArgs) => Promise<CallWithChatAdapter>;
|
4102
|
+
export declare const createAzureCommunicationCallWithChatAdapter: ({ userId, displayName, credential, endpoint, locator, alternateCallerId, callAdapterOptions }: AzureCommunicationCallWithChatAdapterArgs) => Promise<CallWithChatAdapter>;
|
4013
4103
|
|
4014
4104
|
/**
|
4015
4105
|
* Create a {@link CallWithChatAdapter} using the provided {@link StatefulChatClient} and {@link StatefulCallClient}.
|
@@ -4040,6 +4130,21 @@ export declare const createAzureCommunicationChatAdapter: ({ endpoint: endpointU
|
|
4040
4130
|
*/
|
4041
4131
|
export declare const createAzureCommunicationChatAdapterFromClient: (chatClient: StatefulChatClient, chatThreadClient: ChatThreadClient) => Promise<ChatAdapter>;
|
4042
4132
|
|
4133
|
+
/**
|
4134
|
+
* @beta
|
4135
|
+
*/
|
4136
|
+
export declare const createAzureCommunicationTeamsCallAdapter: ({ userId, credential, locator, alternateCallerId }: AzureCommunicationCallAdapterArgs) => Promise<TeamsCallAdapter>;
|
4137
|
+
|
4138
|
+
/**
|
4139
|
+
* Create a {@link TeamsCallAdapter} using the provided {@link StatefulCallClient}.
|
4140
|
+
*
|
4141
|
+
* Useful if you want to keep a reference to {@link StatefulCallClient}.
|
4142
|
+
* Consider using {@link createAzureCommunicationCallAdapter} for a simpler API.
|
4143
|
+
*
|
4144
|
+
* @beta
|
4145
|
+
*/
|
4146
|
+
export declare const createAzureCommunicationTeamsCallAdapterFromClient: (callClient: StatefulCallClient, callAgent: TeamsCallAgent, locator: CallAdapterLocator) => Promise<TeamsCallAdapter>;
|
4147
|
+
|
4043
4148
|
/**
|
4044
4149
|
* Create the default implementation of {@link CallingHandlers} for teams call.
|
4045
4150
|
*
|
@@ -5011,6 +5116,16 @@ export declare interface ErrorBarProps extends IMessageBarProps {
|
|
5011
5116
|
* Currently active errors.
|
5012
5117
|
*/
|
5013
5118
|
activeErrorMessages: ActiveErrorMessage[];
|
5119
|
+
/**
|
5120
|
+
* If set, errors with {@link ActiveErrorMessage.timestamp} older than the time this component is mounted
|
5121
|
+
* are not shown.
|
5122
|
+
*
|
5123
|
+
* This is useful when using the {@link ErrorBar} with a stateful client that handles more than one call
|
5124
|
+
* or chat thread. Set this prop to ignore errors from previous call or chat.
|
5125
|
+
*
|
5126
|
+
* @defaultValue false
|
5127
|
+
*/
|
5128
|
+
ignorePremountErrors?: boolean;
|
5014
5129
|
}
|
5015
5130
|
|
5016
5131
|
/**
|
@@ -7458,6 +7573,36 @@ export declare interface SystemMessageCommon extends MessageCommon {
|
|
7458
7573
|
iconName: string;
|
7459
7574
|
}
|
7460
7575
|
|
7576
|
+
/**
|
7577
|
+
* An Adapter interface specific for Teams identity which extends {@link CommonCallAdapter}.
|
7578
|
+
*
|
7579
|
+
* @beta
|
7580
|
+
*/
|
7581
|
+
export declare interface TeamsCallAdapter extends CommonCallAdapter {
|
7582
|
+
/**
|
7583
|
+
* Join the call with microphone initially on/off.
|
7584
|
+
*
|
7585
|
+
* @param microphoneOn - Whether microphone is initially enabled
|
7586
|
+
*
|
7587
|
+
* @beta
|
7588
|
+
*/
|
7589
|
+
joinCall(microphoneOn?: boolean): TeamsCall | undefined;
|
7590
|
+
/**
|
7591
|
+
* Start the call.
|
7592
|
+
*
|
7593
|
+
* @param participants - An array of participant ids to join
|
7594
|
+
*
|
7595
|
+
* @beta
|
7596
|
+
*/
|
7597
|
+
startCall(participants: string[], options?: StartCallOptions): TeamsCall | undefined;
|
7598
|
+
/**
|
7599
|
+
* Start the call.
|
7600
|
+
* @param participants - An array of {@link @azure/communication-common#CommunicationIdentifier} to be called
|
7601
|
+
* @beta
|
7602
|
+
*/
|
7603
|
+
startCall(participants: CommunicationIdentifier[], options?: StartCallOptions): TeamsCall | undefined;
|
7604
|
+
}
|
7605
|
+
|
7461
7606
|
/**
|
7462
7607
|
* Object containing all the teams call handlers required for calling components.
|
7463
7608
|
*
|
@@ -7738,6 +7883,22 @@ export declare const useAzureCommunicationCallWithChatAdapter: (args: Partial<Az
|
|
7738
7883
|
*/
|
7739
7884
|
export declare const useAzureCommunicationChatAdapter: (args: Partial<AzureCommunicationChatAdapterArgs>, afterCreate?: ((adapter: ChatAdapter) => Promise<ChatAdapter>) | undefined, beforeDispose?: ((adapter: ChatAdapter) => Promise<void>) | undefined) => ChatAdapter | undefined;
|
7740
7885
|
|
7886
|
+
/**
|
7887
|
+
* A custom React hook to simplify the creation of {@link TeamsCallAdapter}.
|
7888
|
+
*
|
7889
|
+
* Similar to {@link createTeamsAzureCommunicationCallAdapter}, but takes care of asynchronous
|
7890
|
+
* creation of the adapter internally.
|
7891
|
+
*
|
7892
|
+
* Allows arguments to be undefined so that you can respect the rule-of-hooks and pass in arguments
|
7893
|
+
* as they are created. The adapter is only created when all arguments are defined.
|
7894
|
+
*
|
7895
|
+
* Note that you must memoize the arguments to avoid recreating adapter on each render.
|
7896
|
+
* See storybook for typical usage examples.
|
7897
|
+
*
|
7898
|
+
* @beta
|
7899
|
+
*/
|
7900
|
+
export declare const useAzureCommunicationTeamsCallAdapter: (args: Partial<AzureCommunicationCallAdapterArgs>, afterCreate?: ((adapter: TeamsCallAdapter) => Promise<TeamsCallAdapter>) | undefined, beforeDispose?: ((adapter: TeamsCallAdapter) => Promise<void>) | undefined) => TeamsCallAdapter | undefined;
|
7901
|
+
|
7741
7902
|
/**
|
7742
7903
|
* Hook to obtain {@link @azure/communication-calling#Call} from the provider.
|
7743
7904
|
*
|