@azure/communication-react 1.4.2-alpha-202211150040.0 → 1.4.2-alpha-202211160016.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 +108 -35
- package/dist/dist-cjs/communication-react/index.js +11108 -10812
- 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/handlers/createCommonHandlers.d.ts +51 -0
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +270 -0
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -0
- package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.d.ts +20 -0
- package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js +36 -0
- package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js.map +1 -0
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.d.ts +6 -51
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +22 -299
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.d.ts +43 -0
- package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js +81 -0
- package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +1 -0
- package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.d.ts +1 -1
- package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.js +17 -5
- package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.d.ts +2 -2
- package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/hooks/useSelector.js +3 -3
- package/dist/dist-esm/calling-component-bindings/src/hooks/useSelector.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/index.d.ts +4 -0
- package/dist/dist-esm/calling-component-bindings/src/index.js +4 -0
- package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.d.ts +12 -2
- package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.js +25 -1
- package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.d.ts +16 -2
- package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.js +27 -1
- package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.d.ts +11 -0
- package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js +15 -1
- package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.d.ts +8 -5
- package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.js +6 -6
- package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.d.ts +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/Converter.d.ts +1 -1
- package/dist/dist-esm/calling-stateful-client/src/Converter.js +2 -2
- package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js +6 -6
- package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.d.ts +1 -1
- package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/TypeGuards.d.ts +8 -8
- package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js +8 -8
- package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +8 -0
- package/dist/dist-esm/calling-stateful-client/src/index-public.js +4 -0
- package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -0
- package/dist/dist-esm/calling-stateful-client/src/index.d.ts +3 -7
- package/dist/dist-esm/calling-stateful-client/src/index.js +2 -1
- package/dist/dist-esm/calling-stateful-client/src/index.js.map +1 -1
- package/dist/dist-esm/communication-react/src/index.d.ts +4 -2
- package/dist/dist-esm/communication-react/src/index.js +3 -1
- package/dist/dist-esm/communication-react/src/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoTile.d.ts +4 -0
- package/dist/dist-esm/react-components/src/components/VideoTile.js +9 -2
- package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.d.ts +4 -0
- package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js +6 -0
- package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/theming/icons.d.ts +1 -0
- package/dist/dist-esm/react-components/src/theming/icons.js +7 -3
- package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +2 -15
- 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 +14 -8
- 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/index.d.ts +1 -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/CallReadinessModal.d.ts +47 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js +170 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +37 -48
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +4 -4
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +1 -0
- package/package.json +8 -8
@@ -83,6 +83,8 @@ import { RoomCallLocator } from '@azure/communication-calling';
|
|
83
83
|
import { ScalingMode } from '@azure/communication-calling';
|
84
84
|
import { SendMessageOptions } from '@azure/communication-chat';
|
85
85
|
import { StartCallOptions } from '@azure/communication-calling';
|
86
|
+
import { TeamsCall } from '@azure/communication-calling';
|
87
|
+
import { TeamsCallAgent } from '@azure/communication-calling';
|
86
88
|
import { TeamsMeetingLinkLocator } from '@azure/communication-calling';
|
87
89
|
import { Theme } from '@fluentui/react';
|
88
90
|
import { TypingIndicatorReceivedEvent } from '@azure/communication-chat';
|
@@ -263,14 +265,21 @@ export declare type AzureCommunicationCallAdapterArgs = {
|
|
263
265
|
/**
|
264
266
|
* Optional parameters for the {@link AzureCommunicationCallAdapter} created
|
265
267
|
*/
|
266
|
-
options?:
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
268
|
+
options?: AzureCommunicationCallAdapterOptions;
|
269
|
+
};
|
270
|
+
|
271
|
+
/**
|
272
|
+
* Optional parameters to create {@link AzureCommunicationCallAdapter}
|
273
|
+
*
|
274
|
+
* @beta
|
275
|
+
*/
|
276
|
+
export declare type AzureCommunicationCallAdapterOptions = {
|
277
|
+
/**
|
278
|
+
* Use this to hint the role of the user when the role is not available before a Rooms call is started. This value
|
279
|
+
* should be obtained using the Rooms API. This role will determine permissions in the configuration page of the
|
280
|
+
* {@link CallComposite}. The true role of the user will be synced with ACS services when a Rooms call starts.
|
281
|
+
*/
|
282
|
+
roleHint?: Role;
|
274
283
|
};
|
275
284
|
|
276
285
|
/**
|
@@ -919,7 +928,7 @@ export declare const CallAgentProvider: (props: CallAgentProviderProps) => JSX.E
|
|
919
928
|
*/
|
920
929
|
export declare interface CallAgentProviderProps {
|
921
930
|
children: React_2.ReactNode;
|
922
|
-
callAgent?: CallAgent;
|
931
|
+
callAgent?: CallAgent | /* @conditional-compile-remove(teams-identity-support) */ TeamsCallAgent;
|
923
932
|
}
|
924
933
|
|
925
934
|
/**
|
@@ -1679,30 +1688,9 @@ export declare type CallingBaseSelectorProps = {
|
|
1679
1688
|
*
|
1680
1689
|
* @public
|
1681
1690
|
*/
|
1682
|
-
export declare
|
1683
|
-
|
1684
|
-
|
1685
|
-
onStartCall: (participants: (CommunicationUserIdentifier | PhoneNumberIdentifier | UnknownIdentifier)[], options?: StartCallOptions) => Call | undefined;
|
1686
|
-
onSelectMicrophone: (device: AudioDeviceInfo) => Promise<void>;
|
1687
|
-
onSelectSpeaker: (device: AudioDeviceInfo) => Promise<void>;
|
1688
|
-
onSelectCamera: (device: VideoDeviceInfo, options?: VideoStreamOptions) => Promise<void>;
|
1689
|
-
onToggleMicrophone: () => Promise<void>;
|
1690
|
-
onStartScreenShare: () => Promise<void>;
|
1691
|
-
onStopScreenShare: () => Promise<void>;
|
1692
|
-
onToggleScreenShare: () => Promise<void>;
|
1693
|
-
onHangUp: (forEveryone?: boolean) => Promise<void>;
|
1694
|
-
onToggleHold: () => Promise<void>;
|
1695
|
-
onAddParticipant(participant: CommunicationUserIdentifier): Promise<void>;
|
1696
|
-
onAddParticipant(participant: PhoneNumberIdentifier, options: AddPhoneNumberOptions): Promise<void>;
|
1697
|
-
onCreateLocalStreamView: (options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>;
|
1698
|
-
onCreateRemoteStreamView: (userId: string, options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>;
|
1699
|
-
onRemoveParticipant(userId: string): Promise<void>;
|
1700
|
-
onRemoveParticipant(participant: CommunicationIdentifier): Promise<void>;
|
1701
|
-
onDisposeRemoteStreamView: (userId: string) => Promise<void>;
|
1702
|
-
onDisposeLocalStreamView: () => Promise<void>;
|
1703
|
-
onSendDtmfTone: (dtmfTone: DtmfTone_2) => Promise<void>;
|
1704
|
-
askDevicePermission: (constrain: PermissionConstraints) => Promise<void>;
|
1705
|
-
};
|
1691
|
+
export declare interface CallingHandlers extends CommonCallingHandlers {
|
1692
|
+
onStartCall: (participants: CommunicationIdentifier[], options?: StartCallOptions) => Call | undefined;
|
1693
|
+
}
|
1706
1694
|
|
1707
1695
|
/**
|
1708
1696
|
* Helper type for {@link usePropsFor}.
|
@@ -1776,7 +1764,7 @@ export declare const CallProvider: (props: CallProviderProps) => JSX.Element;
|
|
1776
1764
|
*/
|
1777
1765
|
export declare interface CallProviderProps {
|
1778
1766
|
children: React_2.ReactNode;
|
1779
|
-
call?: Call;
|
1767
|
+
call?: Call | /* @conditional-compile-remove(teams-identity-support) */ TeamsCall;
|
1780
1768
|
}
|
1781
1769
|
|
1782
1770
|
/**
|
@@ -3410,6 +3398,39 @@ export declare type ClientState = CallClientState & ChatClientState;
|
|
3410
3398
|
*/
|
3411
3399
|
export declare type Common<A, B> = Pick<A, CommonProperties<A, B>>;
|
3412
3400
|
|
3401
|
+
/**
|
3402
|
+
* Object containing all the handlers required for calling components.
|
3403
|
+
*
|
3404
|
+
* Calling related components from this package are able to pick out relevant handlers from this object.
|
3405
|
+
* See {@link useHandlers} and {@link usePropsFor}.
|
3406
|
+
*
|
3407
|
+
* @public
|
3408
|
+
*/
|
3409
|
+
export declare interface CommonCallingHandlers {
|
3410
|
+
onStartLocalVideo: () => Promise<void>;
|
3411
|
+
onToggleCamera: (options?: VideoStreamOptions) => Promise<void>;
|
3412
|
+
onSelectMicrophone: (device: AudioDeviceInfo) => Promise<void>;
|
3413
|
+
onSelectSpeaker: (device: AudioDeviceInfo) => Promise<void>;
|
3414
|
+
onSelectCamera: (device: VideoDeviceInfo, options?: VideoStreamOptions) => Promise<void>;
|
3415
|
+
onToggleMicrophone: () => Promise<void>;
|
3416
|
+
onStartScreenShare: () => Promise<void>;
|
3417
|
+
onStopScreenShare: () => Promise<void>;
|
3418
|
+
onToggleScreenShare: () => Promise<void>;
|
3419
|
+
onHangUp: (forEveryone?: boolean) => Promise<void>;
|
3420
|
+
onToggleHold: () => Promise<void>;
|
3421
|
+
onAddParticipant(participant: CommunicationUserIdentifier): Promise<void>;
|
3422
|
+
onAddParticipant(participant: PhoneNumberIdentifier, options: AddPhoneNumberOptions): Promise<void>;
|
3423
|
+
onCreateLocalStreamView: (options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>;
|
3424
|
+
onCreateRemoteStreamView: (userId: string, options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>;
|
3425
|
+
onDisposeRemoteStreamView: (userId: string) => Promise<void>;
|
3426
|
+
onDisposeLocalStreamView: () => Promise<void>;
|
3427
|
+
onSendDtmfTone: (dtmfTone: DtmfTone_2) => Promise<void>;
|
3428
|
+
onRemoveParticipant(userId: string): Promise<void>;
|
3429
|
+
onRemoveParticipant(participant: CommunicationIdentifier): Promise<void>;
|
3430
|
+
askDevicePermission: (constrain: PermissionConstraints) => Promise<void>;
|
3431
|
+
onStartCall: (participants: (CommunicationUserIdentifier | PhoneNumberIdentifier | UnknownIdentifier)[], options?: StartCallOptions) => void;
|
3432
|
+
}
|
3433
|
+
|
3413
3434
|
/**
|
3414
3435
|
* @beta
|
3415
3436
|
* Props for DomainPermissions components.
|
@@ -4010,7 +4031,7 @@ export declare const createAzureCommunicationChatAdapter: ({ endpoint: endpointU
|
|
4010
4031
|
export declare const createAzureCommunicationChatAdapterFromClient: (chatClient: StatefulChatClient, chatThreadClient: ChatThreadClient) => Promise<ChatAdapter>;
|
4011
4032
|
|
4012
4033
|
/**
|
4013
|
-
* Create the default implementation of {@link CallingHandlers}.
|
4034
|
+
* Create the default implementation of {@link CallingHandlers} for teams call.
|
4014
4035
|
*
|
4015
4036
|
* Useful when implementing a custom component that utilizes the providers
|
4016
4037
|
* exported from this library.
|
@@ -4031,6 +4052,16 @@ export declare const createDefaultCallingHandlers: (callClient: StatefulCallClie
|
|
4031
4052
|
*/
|
4032
4053
|
export declare const createDefaultChatHandlers: (chatClient: StatefulChatClient, chatThreadClient: ChatThreadClient) => ChatHandlers;
|
4033
4054
|
|
4055
|
+
/**
|
4056
|
+
* Create the default implementation of {@link TeamsCallingHandlers} for teams call.
|
4057
|
+
*
|
4058
|
+
* Useful when implementing a custom component that utilizes the providers
|
4059
|
+
* exported from this library.
|
4060
|
+
*
|
4061
|
+
* @beta
|
4062
|
+
*/
|
4063
|
+
export declare const createDefaultTeamsCallingHandlers: (callClient: StatefulCallClient, callAgent: undefined | /* @conditional-compile-remove(teams-identity-support) */ TeamsCallAgent, deviceManager: StatefulDeviceManager | undefined, call: undefined | /* @conditional-compile-remove(teams-identity-support) */ TeamsCall) => never | TeamsCallingHandlers;
|
4064
|
+
|
4034
4065
|
/**
|
4035
4066
|
* Creates a StatefulCallClient {@link StatefulCallClient} by proxying CallClient
|
4036
4067
|
* {@link @azure/communication-calling#CallClient} with ProxyCallClient {@link ProxyCallClient} which then allows access
|
@@ -4357,6 +4388,7 @@ export declare const DEFAULT_COMPONENT_ICONS: {
|
|
4357
4388
|
DomainPermissionMicDenied: JSX.Element;
|
4358
4389
|
UnsupportedBrowserWarning: JSX.Element;
|
4359
4390
|
BrowserPermissionDeniedError: JSX.Element;
|
4391
|
+
VideoTilePinned: JSX.Element;
|
4360
4392
|
};
|
4361
4393
|
|
4362
4394
|
/**
|
@@ -4452,6 +4484,7 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
|
|
4452
4484
|
DomainPermissionMicDenied: JSX.Element;
|
4453
4485
|
UnsupportedBrowserWarning: JSX.Element;
|
4454
4486
|
BrowserPermissionDeniedError: JSX.Element;
|
4487
|
+
VideoTilePinned: JSX.Element;
|
4455
4488
|
};
|
4456
4489
|
|
4457
4490
|
/**
|
@@ -7410,6 +7443,18 @@ export declare interface SystemMessageCommon extends MessageCommon {
|
|
7410
7443
|
iconName: string;
|
7411
7444
|
}
|
7412
7445
|
|
7446
|
+
/**
|
7447
|
+
* Object containing all the teams call handlers required for calling components.
|
7448
|
+
*
|
7449
|
+
* Calling related components from this package are able to pick out relevant handlers from this object.
|
7450
|
+
* See {@link useHandlers} and {@link usePropsFor}.
|
7451
|
+
*
|
7452
|
+
* @beta
|
7453
|
+
*/
|
7454
|
+
export declare interface TeamsCallingHandlers extends CommonCallingHandlers {
|
7455
|
+
onStartCall: (participants: CommunicationIdentifier[], options?: StartCallOptions) => undefined | /* @conditional-compile-remove(teams-identity-support) */ TeamsCall;
|
7456
|
+
}
|
7457
|
+
|
7413
7458
|
/**
|
7414
7459
|
* A string representation of a {@link @azure/communication-common#CommunicationIdentifier}.
|
7415
7460
|
*
|
@@ -7684,6 +7729,8 @@ export declare const useAzureCommunicationChatAdapter: (args: Partial<AzureCommu
|
|
7684
7729
|
* Useful when implementing a custom component that utilizes the providers
|
7685
7730
|
* exported from this library.
|
7686
7731
|
*
|
7732
|
+
* you must have previously used the CallProvider with a Call object to use this hook
|
7733
|
+
*
|
7687
7734
|
* @public
|
7688
7735
|
*/
|
7689
7736
|
export declare const useCall: () => Call | undefined;
|
@@ -7774,6 +7821,28 @@ export declare const usePropsFor: <Component extends (props: any) => JSX.Element
|
|
7774
7821
|
*/
|
7775
7822
|
export declare const useSelector: <ParamT extends Selector | undefined>(selector: ParamT, selectorProps?: (ParamT extends Selector ? Parameters<ParamT>[1] : undefined) | undefined, type?: "chat" | "calling" | undefined) => ParamT extends Selector ? ReturnType<ParamT> : undefined;
|
7776
7823
|
|
7824
|
+
/**
|
7825
|
+
* Hook to obtain {@link @azure/communication-calling#TeamsCall} from the provider.
|
7826
|
+
*
|
7827
|
+
* Useful when implementing a custom component that utilizes the providers
|
7828
|
+
* exported from this library.
|
7829
|
+
*
|
7830
|
+
* you must have previously used the CallProvider with a TeamsCall object to use this hook
|
7831
|
+
*
|
7832
|
+
* @beta
|
7833
|
+
*/
|
7834
|
+
export declare const useTeamsCall: () => undefined | /* @conditional-compile-remove(teams-identity-support) */ TeamsCall;
|
7835
|
+
|
7836
|
+
/**
|
7837
|
+
* Hook to obtain {@link @azure/communication-calling#TeamsCallAgent} from the provider.
|
7838
|
+
*
|
7839
|
+
* Useful when implementing a custom component that utilizes the providers
|
7840
|
+
* exported from this library.
|
7841
|
+
*
|
7842
|
+
* @beta
|
7843
|
+
*/
|
7844
|
+
export declare const useTeamsCallAgent: () => undefined | /* @conditional-compile-remove(teams-identity-support) */ TeamsCallAgent;
|
7845
|
+
|
7777
7846
|
/**
|
7778
7847
|
* React hook to access theme
|
7779
7848
|
*
|
@@ -8044,6 +8113,10 @@ export declare interface VideoTileProps {
|
|
8044
8113
|
* Whether the video is muted or not.
|
8045
8114
|
*/
|
8046
8115
|
isMuted?: boolean;
|
8116
|
+
/**
|
8117
|
+
* If true, the video tile will show the pin icon.
|
8118
|
+
*/
|
8119
|
+
isPinned?: boolean;
|
8047
8120
|
/**
|
8048
8121
|
* Display Name of the Participant to be shown in the label.
|
8049
8122
|
* @remarks `displayName` is used to generate avatar initials if `initialsName` is not provided.
|