@azure/communication-react 1.9.0-alpha-202310190013 → 1.9.0-alpha-202310201708
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 +89 -53
- package/dist/dist-cjs/communication-react/index.js +652 -390
- 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/react-composites/src/composites/CallComposite/MockCallAdapter.d.ts +61 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/MockCallAdapter.js +255 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/MockCallAdapter.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +38 -4
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.d.ts +1 -80
- package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.d.ts +84 -23
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js +8 -5
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +3 -0
- package/dist/dist-esm/react-composites/src/composites/common/icons.js +4 -2
- package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.d.ts +0 -79
- package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/index.d.ts +1 -2
- package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
- package/package.json +13 -13
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.d.ts +0 -17
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js +0 -35
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js.map +0 -1
@@ -1446,6 +1446,7 @@ export declare type CallCompositeIcons = {
|
|
1446
1446
|
FocusedContentGalleryLayout?: JSX.Element;
|
1447
1447
|
OverflowGalleryTop?: JSX.Element;
|
1448
1448
|
LargeGalleryLayout?: JSX.Element;
|
1449
|
+
DefaultCustomButton?: JSX.Element;
|
1449
1450
|
};
|
1450
1451
|
|
1451
1452
|
/**
|
@@ -3040,6 +3041,7 @@ export declare type CallWithChatCompositeIcons = {
|
|
3040
3041
|
PeoplePaneAddPerson?: JSX.Element;
|
3041
3042
|
PeoplePaneOpenDialpad?: JSX.Element;
|
3042
3043
|
DialpadStartCall?: JSX.Element;
|
3044
|
+
DefaultCustomButton?: JSX.Element;
|
3043
3045
|
EditBoxCancel?: JSX.Element;
|
3044
3046
|
EditBoxSubmit?: JSX.Element;
|
3045
3047
|
MessageDelivered?: JSX.Element;
|
@@ -5431,16 +5433,14 @@ export declare type CustomAvatarOptions = {
|
|
5431
5433
|
* The response indicates where the custom button should be placed.
|
5432
5434
|
*
|
5433
5435
|
* Performance tip: This callback is only called when either the callback or its arguments change.
|
5434
|
-
* @
|
5436
|
+
* @public
|
5435
5437
|
*/
|
5436
|
-
declare type CustomCallControlButtonCallback = (args: CustomCallControlButtonCallbackArgs) =>
|
5437
|
-
export { CustomCallControlButtonCallback }
|
5438
|
-
export { CustomCallControlButtonCallback as CustomCallWithChatControlButtonCallback }
|
5438
|
+
export declare type CustomCallControlButtonCallback = (args: CustomCallControlButtonCallbackArgs) => CustomCallControlButtonProps;
|
5439
5439
|
|
5440
5440
|
/**
|
5441
5441
|
* Arguments for {@link CustomCallControlButtonCallback}.
|
5442
5442
|
*
|
5443
|
-
* @
|
5443
|
+
* @public
|
5444
5444
|
*/
|
5445
5445
|
export declare interface CustomCallControlButtonCallbackArgs {
|
5446
5446
|
/**
|
@@ -5464,41 +5464,17 @@ export declare interface CustomCallControlButtonCallbackArgs {
|
|
5464
5464
|
*
|
5465
5465
|
* Only 'primary' placement works when legacy call control is enabled in call composite
|
5466
5466
|
*
|
5467
|
-
* @
|
5468
|
-
*/
|
5469
|
-
declare type CustomCallControlButtonPlacement = 'primary' | 'overflow' | 'secondary';
|
5470
|
-
export { CustomCallControlButtonPlacement }
|
5471
|
-
export { CustomCallControlButtonPlacement as CustomCallWithChatControlButtonPlacement }
|
5472
|
-
|
5473
|
-
/**
|
5474
|
-
* Response from {@link CustomCallControlButtonCallback}.
|
5475
|
-
*
|
5476
|
-
* Includes the placement prop necessary to indicate where to place the
|
5477
|
-
* {@link ControlBarButton} and a {@link DrawerMenuItem}
|
5478
|
-
*
|
5479
|
-
* @beta
|
5467
|
+
* @public
|
5480
5468
|
*/
|
5481
|
-
export declare
|
5482
|
-
/**
|
5483
|
-
* Where to place the custom button relative to other buttons.
|
5484
|
-
*/
|
5485
|
-
placement: CustomCallControlButtonPlacement;
|
5486
|
-
/**
|
5487
|
-
* Icon to render. Icon is a non-default icon name that needs to be registered as a
|
5488
|
-
* custom icon using registerIcons through fluentui. Examples include icons from the fluentui library
|
5489
|
-
*/
|
5490
|
-
iconName?: string;
|
5491
|
-
}
|
5469
|
+
export declare type CustomCallControlButtonPlacement = 'primary' | 'overflow' | 'secondary';
|
5492
5470
|
|
5493
5471
|
/**
|
5494
5472
|
* Response from {@link CustomCallControlButtonCallback}.
|
5473
|
+
* Includes the base props necessary to render a {@link ControlBarButton} or {@link DrawerMenuItem}.
|
5495
5474
|
*
|
5496
|
-
*
|
5497
|
-
* {@link ControlBarButton} and a {@link DrawerMenuItem}
|
5498
|
-
*
|
5499
|
-
* @beta
|
5475
|
+
* @public
|
5500
5476
|
*/
|
5501
|
-
export declare interface
|
5477
|
+
export declare interface CustomCallControlButtonProps {
|
5502
5478
|
/**
|
5503
5479
|
* Where to place the custom button relative to other buttons.
|
5504
5480
|
*/
|
@@ -5508,40 +5484,45 @@ export declare interface CustomCallWithChatControlButtonProps extends CustomCont
|
|
5508
5484
|
* custom icon using registerIcons through fluentui. Examples include icons from the fluentui library
|
5509
5485
|
*/
|
5510
5486
|
iconName?: string;
|
5511
|
-
}
|
5512
|
-
|
5513
|
-
/**
|
5514
|
-
* Includes the base props necessary to render a {@link ControlBarButton} or {@link DrawerMenuItem}.
|
5515
|
-
*
|
5516
|
-
* @beta
|
5517
|
-
*/
|
5518
|
-
export declare interface CustomControlButtonProps {
|
5519
5487
|
/**
|
5520
5488
|
* Calback for when button is clicked
|
5521
5489
|
*/
|
5522
5490
|
onItemClick?: () => void;
|
5523
5491
|
/**
|
5524
5492
|
* Whether the buttons is disabled
|
5493
|
+
*
|
5494
|
+
* @defaultValue true
|
5525
5495
|
*/
|
5526
5496
|
disabled?: boolean;
|
5527
5497
|
/**
|
5528
5498
|
* Whether the label is displayed or not.
|
5529
|
-
*
|
5530
|
-
* @defaultValue `false`
|
5499
|
+
* If no value is set, showLabel will follow composite rules
|
5531
5500
|
*/
|
5532
5501
|
showLabel?: boolean;
|
5533
5502
|
/**
|
5534
|
-
*
|
5503
|
+
* A unique id set for the standard HTML id attibute
|
5504
|
+
*/
|
5505
|
+
id?: string;
|
5506
|
+
/**
|
5507
|
+
* Optional strings to override in component
|
5535
5508
|
*/
|
5536
|
-
|
5509
|
+
strings?: CustomCallControlButtonStrings;
|
5510
|
+
}
|
5511
|
+
|
5512
|
+
/**
|
5513
|
+
* Strings for CustomCallControlButtons
|
5514
|
+
*
|
5515
|
+
* @public
|
5516
|
+
*/
|
5517
|
+
export declare interface CustomCallControlButtonStrings {
|
5537
5518
|
/**
|
5538
5519
|
* Optional label for the button
|
5539
5520
|
*/
|
5540
|
-
|
5521
|
+
label?: string;
|
5541
5522
|
/**
|
5542
|
-
*
|
5523
|
+
* Text that is shown in Tooltip content
|
5543
5524
|
*/
|
5544
|
-
|
5525
|
+
tooltipContent?: string;
|
5545
5526
|
/**
|
5546
5527
|
* The aria label of the button for the benefit of screen readers.
|
5547
5528
|
*/
|
@@ -5550,10 +5531,6 @@ export declare interface CustomControlButtonProps {
|
|
5550
5531
|
* Detailed description of the button for the benefit of screen readers.
|
5551
5532
|
*/
|
5552
5533
|
ariaDescription?: string;
|
5553
|
-
/**
|
5554
|
-
* A unique id set for the standard HTML id attibute
|
5555
|
-
*/
|
5556
|
-
id?: string;
|
5557
5534
|
}
|
5558
5535
|
|
5559
5536
|
/**
|
@@ -5764,6 +5741,7 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
|
|
5764
5741
|
FocusedContentGalleryLayout?: JSX.Element | undefined;
|
5765
5742
|
OverflowGalleryTop?: JSX.Element | undefined;
|
5766
5743
|
LargeGalleryLayout?: JSX.Element | undefined;
|
5744
|
+
DefaultCustomButton?: JSX.Element | undefined;
|
5767
5745
|
ChevronLeft?: JSX.Element | undefined;
|
5768
5746
|
ControlBarChatButtonActive?: JSX.Element | undefined;
|
5769
5747
|
ControlBarChatButtonInactive?: JSX.Element | undefined;
|
@@ -7938,6 +7916,64 @@ export declare interface MicrophoneSitePermissionsProps extends CommonSitePermis
|
|
7938
7916
|
*/
|
7939
7917
|
export declare type MicrophoneSitePermissionsStrings = SitePermissionsStrings;
|
7940
7918
|
|
7919
|
+
/**
|
7920
|
+
* Temporary copy of the packages/react-composites/tests/browser/call/app/mocks/MockCallAdapter.ts
|
7921
|
+
* @internal
|
7922
|
+
*/
|
7923
|
+
export declare class _MockCallAdapter implements CallAdapter {
|
7924
|
+
constructor(testState: {
|
7925
|
+
askDevicePermission?: (constrain: PermissionConstraints) => Promise<void>;
|
7926
|
+
localParticipantRole?: ParticipantRole;
|
7927
|
+
});
|
7928
|
+
state: CallAdapterState;
|
7929
|
+
private emitter;
|
7930
|
+
setState(state: CallAdapterState): void;
|
7931
|
+
addParticipant(): Promise<void>;
|
7932
|
+
onStateChange(handler: (state: CallAdapterState) => void): void;
|
7933
|
+
offStateChange(handler: (state: CallAdapterState) => void): void;
|
7934
|
+
allowUnsupportedBrowserVersion(): void;
|
7935
|
+
getState(): CallAdapterState;
|
7936
|
+
dispose(): void;
|
7937
|
+
joinCall(): Call | undefined;
|
7938
|
+
leaveCall(): Promise<void>;
|
7939
|
+
startCamera(): Promise<void>;
|
7940
|
+
stopCamera(): Promise<void>;
|
7941
|
+
mute(): Promise<void>;
|
7942
|
+
unmute(): Promise<void>;
|
7943
|
+
startCall(): Call | undefined;
|
7944
|
+
holdCall(): Promise<void>;
|
7945
|
+
resumeCall(): Promise<void>;
|
7946
|
+
startScreenShare(): Promise<void>;
|
7947
|
+
stopScreenShare(): Promise<void>;
|
7948
|
+
raiseHand(): Promise<void>;
|
7949
|
+
lowerHand(): Promise<void>;
|
7950
|
+
removeParticipant(): Promise<void>;
|
7951
|
+
createStreamView(): Promise<void>;
|
7952
|
+
disposeStreamView(): Promise<void>;
|
7953
|
+
disposeScreenShareStreamView(): Promise<void>;
|
7954
|
+
disposeLocalVideoStreamView(): Promise<void>;
|
7955
|
+
disposeRemoteVideoStreamView(): Promise<void>;
|
7956
|
+
askDevicePermission(constrain: PermissionConstraints): Promise<void>;
|
7957
|
+
queryCameras(): Promise<VideoDeviceInfo[]>;
|
7958
|
+
queryMicrophones(): Promise<AudioDeviceInfo[]>;
|
7959
|
+
querySpeakers(): Promise<AudioDeviceInfo[]>;
|
7960
|
+
setCamera(): Promise<void>;
|
7961
|
+
setMicrophone(): Promise<void>;
|
7962
|
+
setSpeaker(): Promise<void>;
|
7963
|
+
sendDtmfTone(dtmfTone: DtmfTone_2): Promise<void>;
|
7964
|
+
on(): void;
|
7965
|
+
off(): void;
|
7966
|
+
getEnvironmentInfo(): Promise<EnvironmentInfo>;
|
7967
|
+
startCaptions(): Promise<void>;
|
7968
|
+
setCaptionLanguage(): Promise<void>;
|
7969
|
+
setSpokenLanguage(): Promise<void>;
|
7970
|
+
stopCaptions(): Promise<void>;
|
7971
|
+
startVideoBackgroundEffect(): Promise<void>;
|
7972
|
+
stopVideoBackgroundEffects(): Promise<void>;
|
7973
|
+
updateBackgroundPickerImages(): void;
|
7974
|
+
updateSelectedVideoBackgroundEffect(): void;
|
7975
|
+
}
|
7976
|
+
|
7941
7977
|
/**
|
7942
7978
|
* Payload for {@link DiagnosticChangedEventListner} where there is a change in a network diagnostic.
|
7943
7979
|
*
|