@azure/communication-react 1.3.3-alpha-202209220018.0 → 1.3.3-alpha-202210060021.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 +92 -11
- package/dist/dist-cjs/communication-react/index.js +441 -248
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/identifier.d.ts +5 -0
- package/dist/dist-esm/acs-ui-common/src/identifier.js +10 -0
- package/dist/dist-esm/acs-ui-common/src/identifier.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/index.d.ts +1 -1
- package/dist/dist-esm/acs-ui-common/src/index.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/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/handlers/createHandlers.d.ts +5 -8
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +3 -3
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/index.d.ts +0 -1
- package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.js +21 -1
- package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
- package/dist/dist-esm/communication-react/src/index.d.ts +2 -1
- package/dist/dist-esm/communication-react/src/index.js +2 -0
- package/dist/dist-esm/communication-react/src/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/CameraButton.js +3 -3
- package/dist/dist-esm/react-components/src/components/CameraButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/DevicePermissionDropdown.d.ts +53 -0
- package/dist/dist-esm/react-components/src/components/DevicePermissionDropdown.js +22 -0
- package/dist/dist-esm/react-components/src/components/DevicePermissionDropdown.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/DevicesButton.js +4 -2
- package/dist/dist-esm/react-components/src/components/DevicesButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.d.ts +4 -4
- package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.js +2 -2
- package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/HoldButton.js +3 -3
- package/dist/dist-esm/react-components/src/components/HoldButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/MessageThread.js +2 -6
- package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/MicrophoneButton.js +3 -3
- package/dist/dist-esm/react-components/src/components/MicrophoneButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ParticipantsButton.js +2 -2
- package/dist/dist-esm/react-components/src/components/ParticipantsButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ScreenShareButton.js +3 -3
- package/dist/dist-esm/react-components/src/components/ScreenShareButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery.js +13 -4
- package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/index.d.ts +4 -0
- package/dist/dist-esm/react-components/src/components/index.js +2 -0
- package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js +5 -1
- package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.d.ts +5 -0
- package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js +15 -2
- package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +8 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +3 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +10 -9
- 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 +15 -4
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +27 -17
- 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/CallPane.js +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageCameraDropdown.d.ts +13 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageCameraDropdown.js +46 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageCameraDropdown.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageMicDropdown.d.ts +13 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageMicDropdown.js +49 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageMicDropdown.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +50 -28
- 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/buttons/Devices.js +10 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.js +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +3 -3
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +9 -3
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +13 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +3 -3
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +11 -2
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js +4 -4
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.d.ts +2 -5
- package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js +26 -12
- package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +2 -0
- package/package.json +10 -10
@@ -50,6 +50,8 @@ import { IButtonStyles } from '@fluentui/react';
|
|
50
50
|
import { IContextualMenuItem } from '@fluentui/react';
|
51
51
|
import { IContextualMenuItemStyles } from '@fluentui/react';
|
52
52
|
import { IContextualMenuStyles } from '@fluentui/react';
|
53
|
+
import { IDropdownOption } from '@fluentui/react';
|
54
|
+
import { IDropdownStyles } from '@fluentui/react';
|
53
55
|
import { IMessageBarProps } from '@fluentui/react';
|
54
56
|
import { IncomingCall } from '@azure/communication-calling';
|
55
57
|
import { IPersonaStyleProps } from '@fluentui/react';
|
@@ -184,13 +186,6 @@ export declare interface AdapterState<TState> {
|
|
184
186
|
getState(): TState;
|
185
187
|
}
|
186
188
|
|
187
|
-
/**
|
188
|
-
* handler type for addParticipant
|
189
|
-
*
|
190
|
-
* @beta
|
191
|
-
*/
|
192
|
-
export declare type AddParticipantHandler = ((participant: CommunicationUserIdentifier) => Promise<void>) & ((participant: PhoneNumberIdentifier, options: AddPhoneNumberOptions) => Promise<void>);
|
193
|
-
|
194
189
|
/**
|
195
190
|
* Compare if 2 react components are exact equal, result type will be true/false
|
196
191
|
*
|
@@ -375,7 +370,6 @@ export declare interface CallAdapter extends AdapterState<CallAdapterState>, Dis
|
|
375
370
|
*/
|
376
371
|
export declare type CallAdapterCallEndedEvent = {
|
377
372
|
callId?: string;
|
378
|
-
callEndReason?: CallEndReason;
|
379
373
|
};
|
380
374
|
|
381
375
|
/**
|
@@ -436,6 +430,12 @@ export declare interface CallAdapterCallManagement {
|
|
436
430
|
* @public
|
437
431
|
*/
|
438
432
|
startCall(participants: string[], options?: StartCallOptions): Call | undefined;
|
433
|
+
/**
|
434
|
+
* Start the call.
|
435
|
+
* @param participants - An array of {@link @azure/communication-common#CommunicationIdentifier} to be called
|
436
|
+
* @beta
|
437
|
+
*/
|
438
|
+
startCall(participants: CommunicationIdentifier[], options?: StartCallOptions): Call | undefined;
|
439
439
|
/**
|
440
440
|
* Start sharing the screen during a call.
|
441
441
|
*
|
@@ -456,6 +456,12 @@ export declare interface CallAdapterCallManagement {
|
|
456
456
|
* @public
|
457
457
|
*/
|
458
458
|
removeParticipant(userId: string): Promise<void>;
|
459
|
+
/**
|
460
|
+
* Remove a participant from the call.
|
461
|
+
* @param participant - {@link @azure/communication-common#CommunicationIdentifier} of the participant to be removed
|
462
|
+
* @beta
|
463
|
+
*/
|
464
|
+
removeParticipant(participant: CommunicationIdentifier): Promise<void>;
|
459
465
|
/**
|
460
466
|
* Create the html view for a stream.
|
461
467
|
*
|
@@ -1330,6 +1336,14 @@ export declare interface CallCompositeStrings {
|
|
1330
1336
|
* More details text of the page shown to the user when the user attempts to join a room to which they are not invited.
|
1331
1337
|
*/
|
1332
1338
|
deniedPermissionToRoomDetails?: string;
|
1339
|
+
/**
|
1340
|
+
* Control bar People button ToolTipContent
|
1341
|
+
*/
|
1342
|
+
peopleButtonTooltipOpen: string;
|
1343
|
+
/**
|
1344
|
+
* Control bar People button ToolTipContent
|
1345
|
+
*/
|
1346
|
+
peopleButtonTooltipClose: string;
|
1333
1347
|
}
|
1334
1348
|
|
1335
1349
|
/**
|
@@ -1470,7 +1484,7 @@ export declare type CallErrors = {
|
|
1470
1484
|
*
|
1471
1485
|
* @public
|
1472
1486
|
*/
|
1473
|
-
export declare type CallErrorTarget = 'Call.addParticipant' | 'Call.feature' | 'Call.hangUp' | 'Call.hold' | 'Call.mute' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.muteIncomingAudio' | 'Call.off' | 'Call.on' | 'Call.removeParticipant' | 'Call.resume' | 'Call.sendDtmf' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.startAudio' | 'Call.startScreenSharing' | 'Call.startVideo' | 'Call.stopScreenSharing' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.stopAudio' | 'Call.stopVideo' | 'Call.unmute' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.unmuteIncomingAudio' | 'CallAgent.dispose' | 'CallAgent.feature' | 'CallAgent.join' | 'CallAgent.off' | 'CallAgent.on' | 'CallAgent.startCall' | 'CallClient.createCallAgent' | 'CallClient.feature' | 'CallClient.getDeviceManager' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallClient.getEnvironmentInfo' | 'DeviceManager.askDevicePermission' | 'DeviceManager.getCameras' | 'DeviceManager.getMicrophones' | 'DeviceManager.getSpeakers' | 'DeviceManager.off' | 'DeviceManager.on' | 'DeviceManager.selectMicrophone' | 'DeviceManager.selectSpeaker' | 'IncomingCall.accept' | 'IncomingCall.reject';
|
1487
|
+
export declare type CallErrorTarget = 'Call.addParticipant' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.dispose' | 'Call.feature' | 'Call.hangUp' | 'Call.hold' | 'Call.mute' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.muteIncomingAudio' | 'Call.off' | 'Call.on' | 'Call.removeParticipant' | 'Call.resume' | 'Call.sendDtmf' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.startAudio' | 'Call.startScreenSharing' | 'Call.startVideo' | 'Call.stopScreenSharing' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.stopAudio' | 'Call.stopVideo' | 'Call.unmute' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.unmuteIncomingAudio' | 'CallAgent.dispose' | 'CallAgent.feature' | 'CallAgent.join' | 'CallAgent.off' | 'CallAgent.on' | 'CallAgent.startCall' | 'CallClient.createCallAgent' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallClient.createTeamsCallAgent' | 'CallClient.feature' | 'CallClient.getDeviceManager' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallClient.getEnvironmentInfo' | 'DeviceManager.askDevicePermission' | 'DeviceManager.getCameras' | 'DeviceManager.getMicrophones' | 'DeviceManager.getSpeakers' | 'DeviceManager.off' | 'DeviceManager.on' | 'DeviceManager.selectMicrophone' | 'DeviceManager.selectSpeaker' | 'IncomingCall.accept' | 'IncomingCall.reject';
|
1474
1488
|
|
1475
1489
|
/**
|
1476
1490
|
* Callback for {@link CallAdapterSubscribers} 'callIdChanged' event.
|
@@ -1511,10 +1525,12 @@ export declare type CallingHandlers = {
|
|
1511
1525
|
onToggleScreenShare: () => Promise<void>;
|
1512
1526
|
onHangUp: () => Promise<void>;
|
1513
1527
|
onToggleHold: () => Promise<void>;
|
1514
|
-
onAddParticipant:
|
1528
|
+
onAddParticipant(participant: CommunicationUserIdentifier): Promise<void>;
|
1529
|
+
onAddParticipant(participant: PhoneNumberIdentifier, options: AddPhoneNumberOptions): Promise<void>;
|
1515
1530
|
onCreateLocalStreamView: (options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>;
|
1516
1531
|
onCreateRemoteStreamView: (userId: string, options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>;
|
1517
|
-
onRemoveParticipant
|
1532
|
+
onRemoveParticipant(userId: string): Promise<void>;
|
1533
|
+
onRemoveParticipant(participant: CommunicationIdentifier): Promise<void>;
|
1518
1534
|
onDisposeRemoteStreamView: (userId: string) => Promise<void>;
|
1519
1535
|
onDisposeLocalStreamView: () => Promise<void>;
|
1520
1536
|
onSendDtmfTone: (dtmfTone: DtmfTone_2) => Promise<void>;
|
@@ -1709,6 +1725,12 @@ export declare interface CallWithChatAdapterManagement {
|
|
1709
1725
|
* @public
|
1710
1726
|
*/
|
1711
1727
|
removeParticipant(userId: string): Promise<void>;
|
1728
|
+
/**
|
1729
|
+
* Remove a participant from the call.
|
1730
|
+
* @param participant - {@link @azure/communication-common#CommunicationIdentifier} of the participant to be removed
|
1731
|
+
* @beta
|
1732
|
+
*/
|
1733
|
+
removeParticipant(participant: CommunicationIdentifier): Promise<void>;
|
1712
1734
|
/**
|
1713
1735
|
* Join the call with microphone initially on/off.
|
1714
1736
|
*
|
@@ -1763,6 +1785,12 @@ export declare interface CallWithChatAdapterManagement {
|
|
1763
1785
|
* @public
|
1764
1786
|
*/
|
1765
1787
|
startCall(participants: string[], options?: StartCallOptions): Call | undefined;
|
1788
|
+
/**
|
1789
|
+
* Start the call.
|
1790
|
+
* @param participants - An array of {@link @azure/communication-common#CommunicationIdentifier} to be called
|
1791
|
+
* @beta
|
1792
|
+
*/
|
1793
|
+
startCall(participants: CommunicationIdentifier[], options?: StartCallOptions): Call | undefined;
|
1766
1794
|
/**
|
1767
1795
|
* Start sharing the screen during a call.
|
1768
1796
|
*
|
@@ -4197,6 +4225,59 @@ export declare type DeviceManagerState = {
|
|
4197
4225
|
unparentedViews: LocalVideoStreamState[];
|
4198
4226
|
};
|
4199
4227
|
|
4228
|
+
/**
|
4229
|
+
* A dropdown to trigger device permission prompt
|
4230
|
+
*
|
4231
|
+
* @internal
|
4232
|
+
*/
|
4233
|
+
export declare const _DevicePermissionDropdown: (props: _DevicePermissionDropdownProps) => JSX.Element;
|
4234
|
+
|
4235
|
+
/**
|
4236
|
+
* Props for {@link _DevicePermissionDropdown}.
|
4237
|
+
*
|
4238
|
+
* @internal
|
4239
|
+
*/
|
4240
|
+
export declare interface _DevicePermissionDropdownProps {
|
4241
|
+
/**
|
4242
|
+
* icon shown in dropdown placeholder
|
4243
|
+
*/
|
4244
|
+
icon?: JSX.Element;
|
4245
|
+
/**
|
4246
|
+
* Dropdown content
|
4247
|
+
*/
|
4248
|
+
options?: IDropdownOption[];
|
4249
|
+
/**
|
4250
|
+
* Function that gets triggered when action button is clicked
|
4251
|
+
*/
|
4252
|
+
onClickActionButton?: () => Promise<void>;
|
4253
|
+
/**
|
4254
|
+
* Strings for devicepermissiondropdown
|
4255
|
+
*/
|
4256
|
+
strings?: _DevicePermissionDropdownStrings;
|
4257
|
+
/**
|
4258
|
+
* Styles for devicepermissiondropdown
|
4259
|
+
*/
|
4260
|
+
styles?: Partial<IDropdownStyles>;
|
4261
|
+
}
|
4262
|
+
|
4263
|
+
/**
|
4264
|
+
* Strings of {@link DevicePermissionDropdown} that can be overridden.
|
4265
|
+
*
|
4266
|
+
* @internal
|
4267
|
+
*/
|
4268
|
+
export declare interface _DevicePermissionDropdownStrings {
|
4269
|
+
/**
|
4270
|
+
* dropdown label
|
4271
|
+
*/
|
4272
|
+
label?: string;
|
4273
|
+
/**
|
4274
|
+
* dropdown placeholder
|
4275
|
+
*/
|
4276
|
+
placeHolderText: string;
|
4277
|
+
/** string for action button */
|
4278
|
+
actionButtonContent?: string;
|
4279
|
+
}
|
4280
|
+
|
4200
4281
|
/**
|
4201
4282
|
* Device Permission restrictions.
|
4202
4283
|
* Be able to start a call depending on camera and microphone permission options.
|