@azure/communication-react 1.16.0-alpha-202405050014 → 1.16.0-alpha-202405132107
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 +13 -4
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-CPqryVoJ.js → ChatMessageComponentAsRichTextEditBox-DWzf8cuK.js} +2 -2
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-CPqryVoJ.js.map → ChatMessageComponentAsRichTextEditBox-DWzf8cuK.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{index-CvXWWlDZ.js → index-W6o1SuXO.js} +99 -41
- package/dist/dist-cjs/communication-react/index-W6o1SuXO.js.map +1 -0
- package/dist/dist-cjs/communication-react/index.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/memoizeFnAll.d.ts +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/hooks/usePropsFor.d.ts +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +24 -4
- package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -1
- package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListMessages.d.ts +1 -1
- package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListParticipants.d.ts +1 -1
- package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListReadReceipts.d.ts +1 -1
- package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListThreads.d.ts +1 -1
- package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerMessage.d.ts +1 -1
- package/dist/dist-esm/react-components/src/components/LocalVideoTile.d.ts +29 -29
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.d.ts +28 -28
- package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.d.ts +3 -3
- package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.d.ts +10 -10
- package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.d.ts +13 -13
- package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.d.ts +2 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.d.ts +28 -28
- package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.d.ts +1 -1
- package/dist/dist-esm/react-components/src/theming/icons.js +3 -3
- package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +7 -6
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +57 -30
- 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 +7 -0
- 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/CallArrangement.js +9 -4
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.d.ts +6 -6
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.d.ts +14 -14
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.d.ts +7 -7
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +6 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +4 -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 +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/spotlightUtils.d.ts +6 -6
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/CaptionLanguageSettingsDrawer.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageSettingsDrawer.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.d.ts +6 -6
- package/dist/dist-esm/react-composites/src/composites/common/Survey.d.ts +20 -7
- package/dist/dist-esm/react-composites/src/composites/common/SurveyContent.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/TagsSurvey.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.d.ts +1 -1
- package/package.json +5 -5
- package/dist/dist-cjs/communication-react/index-CvXWWlDZ.js.map +0 -1
@@ -49,5 +49,5 @@ export type CallbackType<KeyT, ArgsT extends unknown[], FnRetT> = (memoizedFn: F
|
|
49
49
|
*
|
50
50
|
* @public
|
51
51
|
*/
|
52
|
-
export declare const memoizeFnAll: <KeyT, ArgsT extends unknown[], FnRetT, CallBackT extends CallbackType<KeyT, ArgsT, FnRetT>>(fnToMemoize: FunctionWithKey<KeyT, ArgsT, FnRetT>, shouldCacheUpdate?: (args1: unknown, args2: unknown) => boolean) => (callback: CallBackT) => FnRetT[];
|
52
|
+
export declare const memoizeFnAll: <KeyT, ArgsT extends unknown[], FnRetT, CallBackT extends CallbackType<KeyT, ArgsT, FnRetT>>(fnToMemoize: FunctionWithKey<KeyT, ArgsT, FnRetT>, shouldCacheUpdate?: (args1: unknown, args2: unknown) => boolean) => ((callback: CallBackT) => FnRetT[]);
|
53
53
|
//# sourceMappingURL=memoizeFnAll.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"telemetryVersion.js","sourceRoot":"","sources":["../../../../../acs-ui-common/src/telemetryVersion.js"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;AAElC,wCAAwC;AAExC,MAAM,CAAC,OAAO,GAAG,2BAA2B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// GENERATED FILE. DO NOT EDIT MANUALLY.\n\nmodule.exports = '1.16.0-alpha-
|
1
|
+
{"version":3,"file":"telemetryVersion.js","sourceRoot":"","sources":["../../../../../acs-ui-common/src/telemetryVersion.js"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;AAElC,wCAAwC;AAExC,MAAM,CAAC,OAAO,GAAG,2BAA2B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// GENERATED FILE. DO NOT EDIT MANUALLY.\n\nmodule.exports = '1.16.0-alpha-202405132107';\n"]}
|
@@ -31,7 +31,7 @@ import { _ComponentCallingHandlers } from '../handlers/createHandlers';
|
|
31
31
|
*
|
32
32
|
* @public
|
33
33
|
*/
|
34
|
-
export declare const usePropsFor: <Component extends (props: any) => JSX.Element>(component: Component) => GetSelector<Component> extends (props: any) => any ? ReturnType<GetSelector<Component>> & Common<CommonCallingHandlers & _ComponentCallingHandlers, Parameters<Component>[0]> : undefined;
|
34
|
+
export declare const usePropsFor: <Component extends (props: any) => JSX.Element>(component: Component) => GetSelector<Component> extends (props: any) => any ? ReturnType<GetSelector<Component>> & Common<CommonCallingHandlers & /* @conditional-compile-remove(spotlight) */ _ComponentCallingHandlers, Parameters<Component>[0]> : undefined;
|
35
35
|
/**
|
36
36
|
* A type for trivial selectors that return no data.
|
37
37
|
*
|
@@ -85,15 +85,35 @@ export class ProxyCallCommon {
|
|
85
85
|
// these are mini version of Proxy object - if it grows too big, a real Proxy object should be used.
|
86
86
|
return this._context.withErrorTeedToState((...args) => {
|
87
87
|
if (args[0] === Features.Captions) {
|
88
|
-
const captionsFeature = target.feature(Features.Captions)
|
88
|
+
const captionsFeature = target.feature(Features.Captions);
|
89
89
|
let proxyFeature;
|
90
90
|
/* @conditional-compile-remove(acs-close-captions) */
|
91
|
-
if (captionsFeature.kind === 'Captions') {
|
91
|
+
if (captionsFeature.captions.kind === 'Captions') {
|
92
92
|
proxyFeature = new ProxyCaptions(this._context, target);
|
93
|
-
return {
|
93
|
+
return {
|
94
|
+
captions: new Proxy(captionsFeature.captions, proxyFeature),
|
95
|
+
on: (...args) => {
|
96
|
+
const isCaptionsKindChanged = args[0] === 'CaptionsKindChanged';
|
97
|
+
if (isCaptionsKindChanged) {
|
98
|
+
const listener = args[1];
|
99
|
+
const newListener = () => {
|
100
|
+
listener();
|
101
|
+
};
|
102
|
+
return captionsFeature.on('CaptionsKindChanged', newListener);
|
103
|
+
}
|
104
|
+
},
|
105
|
+
off: (...args) => {
|
106
|
+
const isCaptionsKindChanged = args[0] === 'CaptionsKindChanged';
|
107
|
+
if (isCaptionsKindChanged) {
|
108
|
+
return captionsFeature.off('CaptionsKindChanged', args[1]);
|
109
|
+
}
|
110
|
+
}
|
111
|
+
};
|
94
112
|
}
|
95
113
|
proxyFeature = new ProxyTeamsCaptions(this._context, target);
|
96
|
-
return {
|
114
|
+
return {
|
115
|
+
captions: new Proxy(captionsFeature.captions, proxyFeature)
|
116
|
+
};
|
97
117
|
}
|
98
118
|
if (args[0] === Features.Transfer) {
|
99
119
|
const transferFeature = target.feature(Features.Transfer);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CallDeclarativeCommon.js","sourceRoot":"","sources":["../../../../../calling-stateful-client/src/CallDeclarativeCommon.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;;;;;;;;;AAIlC,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAOxD;;GAEG;AACH,MAAM,OAAgB,eAAe;IAGnC,YAAY,OAAoB;QAC9B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC1B,CAAC;IAEM,WAAW;QAChB,6EAA6E;IAC/E,CAAC;IAES,UAAU;QAClB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAEM,GAAG,CAA6B,MAAkB,EAAE,IAAO;QAChE,QAAQ,IAAI,EAAE,CAAC;YACb,KAAK,MAAM,CAAC,CAAC,CAAC;gBACZ,OAAO,IAAI,CAAC,QAAQ,CAAC,yBAAyB,CAAC,UAAgB,GAAG,IAAoC;;wBACpG,OAAO,MAAM,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;oBACpC,CAAC;iBAAA,EAAE,WAAW,CAAC,CAAC;YAClB,CAAC;YACD,KAAK,QAAQ,CAAC,CAAC,CAAC;gBACd,OAAO,IAAI,CAAC,QAAQ,CAAC,yBAAyB,CAAC,UAAgB,GAAG,IAAsC;;wBACtG,OAAO,MAAM,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;oBACtC,CAAC;iBAAA,EAAE,aAAa,CAAC,CAAC;YACpB,CAAC;YACD,KAAK,YAAY,CAAC,CAAC,CAAC;gBAClB,OAAO,IAAI,CAAC,QAAQ,CAAC,yBAAyB,CAAC,UAAgB,GAAG,IAA0C;;wBAC1G,OAAO,MAAM,MAAM,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC;oBAC1C,CAAC;iBAAA,EAAE,iBAAiB,CAAC,CAAC;YACxB,CAAC;YACD,KAAK,WA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,CAAA,EACD,cAAc,CACf,CAAC;YACJ;gBACE,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACrC,CAAC;IACH,CAAC;CACF;AAED;;GAEG;AACH,MAAM,wBAAwB;IAI5B,YAAY,OAAoB,EAAE,IAAgB;QAChD,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAEM,GAAG,CAAsC,MAA2B,EAAE,IAAO;QAClF,QAAQ,IAAI,EAAE,CAAC;YACb,KAAK,IAAI;gBACP,OAAO,CAAC,GAAG,IAA2C,EAAQ,EAAE;oBAC9D,MAAM,kBAAkB,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK,kBAAkB,CAAC;oBAC1D,IAAI,kBAAkB,EAAE,CAAC;wBACvB,MAAM,QAAQ,GAAG,IAAI,CAAC,CAAC,CAA0B,CAAC;wBAClD,MAAM,WAAW,GAAG,CAAC,IAAuB,EAAQ,EAAE;4BACpD,IAAI,CAAC,QAAQ,CAAC,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE;gCAC/C,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,EAAE;gCAC1B,SAAS,EAAE,IAAI,IAAI,EAAE;6BACtB,CAAC,CAAC;4BACH,QAAQ,CAAC,IAAI,CAAC,CAAC;wBACjB,CAAC,CAAC;wBACF,OAAO,MAAM,CAAC,EAAE,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC;oBACpD,CAAC;gBACH,CAAC,CAAC;YACJ;gBACE,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACrC,CAAC;IACH,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { CallContext } from './CallContext';\nimport { CallCommon } from './BetaToStableTypes';\nimport { Features } from '@azure/communication-calling';\n/* @conditional-compile-remove(acs-close-captions) */\nimport { Captions } from '@azure/communication-calling';\nimport { TeamsCaptions } from '@azure/communication-calling';\nimport { TransferCallFeature, TransferAcceptedEvent, TransferEventArgs } from '@azure/communication-calling';\n/* @conditional-compile-remove(spotlight) */\nimport { SpotlightCallFeature } from '@azure/communication-calling';\n/**\n * @private\n */\nexport abstract class ProxyCallCommon implements ProxyHandler<CallCommon> {\n private _context: CallContext;\n\n constructor(context: CallContext) {\n this._context = context;\n }\n\n public unsubscribe(): void {\n /** No subscriptions yet. But there will be one for transfer feature soon. */\n }\n\n protected getContext(): CallContext {\n return this._context;\n }\n\n public get<P extends keyof CallCommon>(target: CallCommon, prop: P): any {\n switch (prop) {\n case 'mute': {\n return this._context.withAsyncErrorTeedToState(async function (...args: Parameters<CallCommon['mute']>) {\n return await target.mute(...args);\n }, 'Call.mute');\n }\n case 'unmute': {\n return this._context.withAsyncErrorTeedToState(async function (...args: Parameters<CallCommon['unmute']>) {\n return await target.unmute(...args);\n }, 'Call.unmute');\n }\n case 'startVideo': {\n return this._context.withAsyncErrorTeedToState(async function (...args: Parameters<CallCommon['startVideo']>) {\n return await target.startVideo(...args);\n }, 'Call.startVideo');\n }\n case 'stopVideo': {\n return this._context.withAsyncErrorTeedToState(async function (...args: Parameters<CallCommon['stopVideo']>) {\n return await target.stopVideo(...args);\n }, 'Call.stopVideo');\n }\n case 'startScreenSharing': {\n return this._context.withAsyncErrorTeedToState(async function (\n ...args: Parameters<CallCommon['startScreenSharing']>\n ) {\n return await target.startScreenSharing(...args);\n },\n 'Call.startScreenSharing');\n }\n case 'stopScreenSharing': {\n return this._context.withAsyncErrorTeedToState(async function (\n ...args: Parameters<CallCommon['stopScreenSharing']>\n ) {\n return await target.stopScreenSharing(...args);\n },\n 'Call.stopScreenSharing');\n }\n case 'hold': {\n return this._context.withAsyncErrorTeedToState(async function (...args: Parameters<CallCommon['hold']>) {\n return await target.hold(...args);\n }, 'Call.hold');\n }\n case 'resume': {\n return this._context.withAsyncErrorTeedToState(async function (...args: Parameters<CallCommon['resume']>) {\n return await target.resume(...args);\n }, 'Call.resume');\n }\n case 'feature': {\n // these are mini version of Proxy object - if it grows too big, a real Proxy object should be used.\n return this._context.withErrorTeedToState((...args: Parameters<CallCommon['feature']>) => {\n if (args[0] === Features.Captions) {\n const captionsFeature = target.feature(Features.Captions).captions;\n let proxyFeature;\n /* @conditional-compile-remove(acs-close-captions) */\n if (captionsFeature.kind === 'Captions') {\n proxyFeature = new ProxyCaptions(this._context, target);\n return { captions: new Proxy(captionsFeature, proxyFeature) };\n }\n proxyFeature = new ProxyTeamsCaptions(this._context, target);\n return { captions: new Proxy(captionsFeature, proxyFeature) };\n }\n if (args[0] === Features.Transfer) {\n const transferFeature = target.feature(Features.Transfer);\n const proxyFeature = new ProxyTransferCallFeature(this._context, target);\n return new Proxy(transferFeature, proxyFeature);\n }\n /* @conditional-compile-remove(spotlight) */\n if (args[0] === Features.Spotlight) {\n const spotlightFeature = target.feature(Features.Spotlight);\n const proxyFeature = new ProxySpotlightCallFeature(this._context);\n return new Proxy(spotlightFeature, proxyFeature);\n }\n return target.feature(...args);\n }, 'Call.feature');\n }\n default:\n return Reflect.get(target, prop);\n }\n }\n}\n\n/**\n * @private\n */\nclass ProxyTeamsCaptions implements ProxyHandler<TeamsCaptions> {\n private _context: CallContext;\n private _call: CallCommon;\n\n constructor(context: CallContext, call: CallCommon) {\n this._context = context;\n this._call = call;\n }\n\n public get<P extends keyof TeamsCaptions>(target: TeamsCaptions, prop: P): any {\n switch (prop) {\n case 'startCaptions':\n return this._context.withAsyncErrorTeedToState(async (...args: Parameters<TeamsCaptions['startCaptions']>) => {\n this._context.setStartCaptionsInProgress(this._call.id, true);\n const ret = await target.startCaptions(...args);\n this._context.setSelectedSpokenLanguage(this._call.id, args[0]?.spokenLanguage ?? 'en-us');\n return ret;\n }, 'Call.feature');\n break;\n case 'stopCaptions':\n return this._context.withAsyncErrorTeedToState(async (...args: Parameters<TeamsCaptions['stopCaptions']>) => {\n const ret = await target.stopCaptions(...args);\n this._context.setIsCaptionActive(this._call.id, false);\n this._context.setStartCaptionsInProgress(this._call.id, false);\n this._context.clearCaptions(this._call.id);\n return ret;\n }, 'Call.feature');\n case 'setSpokenLanguage':\n return this._context.withAsyncErrorTeedToState(\n async (...args: Parameters<TeamsCaptions['setSpokenLanguage']>) => {\n const ret = await target.setSpokenLanguage(...args);\n this._context.setSelectedSpokenLanguage(this._call.id, args[0]);\n return ret;\n },\n 'Call.feature'\n );\n case 'setCaptionLanguage':\n return this._context.withAsyncErrorTeedToState(\n async (...args: Parameters<TeamsCaptions['setCaptionLanguage']>) => {\n const ret = await target.setCaptionLanguage(...args);\n this._context.setSelectedCaptionLanguage(this._call.id, args[0]);\n return ret;\n },\n 'Call.feature'\n );\n default:\n return Reflect.get(target, prop);\n }\n }\n}\n\n/* @conditional-compile-remove(acs-close-captions) */\n/**\n * @private\n */\nclass ProxyCaptions implements ProxyHandler<Captions> {\n private _context: CallContext;\n private _call: CallCommon;\n\n constructor(context: CallContext, call: CallCommon) {\n this._context = context;\n this._call = call;\n }\n\n public get<P extends keyof Captions>(target: Captions, prop: P): any {\n switch (prop) {\n case 'startCaptions':\n return this._context.withAsyncErrorTeedToState(async (...args: Parameters<TeamsCaptions['startCaptions']>) => {\n this._context.setStartCaptionsInProgress(this._call.id, true);\n const ret = await target.startCaptions(...args);\n this._context.setSelectedSpokenLanguage(this._call.id, args[0]?.spokenLanguage ?? 'en-us');\n return ret;\n }, 'Call.feature');\n break;\n case 'stopCaptions':\n return this._context.withAsyncErrorTeedToState(async (...args: Parameters<TeamsCaptions['stopCaptions']>) => {\n const ret = await target.stopCaptions(...args);\n this._context.setIsCaptionActive(this._call.id, false);\n this._context.setStartCaptionsInProgress(this._call.id, false);\n this._context.clearCaptions(this._call.id);\n return ret;\n }, 'Call.feature');\n case 'setSpokenLanguage':\n return this._context.withAsyncErrorTeedToState(\n async (...args: Parameters<TeamsCaptions['setSpokenLanguage']>) => {\n const ret = await target.setSpokenLanguage(...args);\n this._context.setSelectedSpokenLanguage(this._call.id, args[0]);\n return ret;\n },\n 'Call.feature'\n );\n default:\n return Reflect.get(target, prop);\n }\n }\n}\n\n/* @conditional-compile-remove(spotlight) */\n/**\n * @private\n */\nclass ProxySpotlightCallFeature implements ProxyHandler<SpotlightCallFeature> {\n private _context: CallContext;\n\n constructor(context: CallContext) {\n this._context = context;\n }\n\n public get<P extends keyof SpotlightCallFeature>(target: SpotlightCallFeature, prop: P): any {\n switch (prop) {\n case 'startSpotlight':\n return this._context.withAsyncErrorTeedToState(\n async (...args: Parameters<SpotlightCallFeature['startSpotlight']>) => {\n const ret = await target.startSpotlight(...args);\n return ret;\n },\n 'Call.feature'\n );\n break;\n case 'stopSpotlight':\n return this._context.withAsyncErrorTeedToState(\n async (...args: Parameters<SpotlightCallFeature['stopSpotlight']>) => {\n const ret = await target.stopSpotlight(...args);\n return ret;\n },\n 'Call.feature'\n );\n default:\n return Reflect.get(target, prop);\n }\n }\n}\n\n/**\n * @private\n */\nclass ProxyTransferCallFeature implements ProxyHandler<TransferCallFeature> {\n private _context: CallContext;\n private _call: CallCommon;\n\n constructor(context: CallContext, call: CallCommon) {\n this._context = context;\n this._call = call;\n }\n\n public get<P extends keyof TransferCallFeature>(target: TransferCallFeature, prop: P): any {\n switch (prop) {\n case 'on':\n return (...args: Parameters<TransferCallFeature['on']>): void => {\n const isTransferAccepted = args[0] === 'transferAccepted';\n if (isTransferAccepted) {\n const listener = args[1] as TransferAcceptedEvent;\n const newListener = (args: TransferEventArgs): void => {\n this._context.setAcceptedTransfer(this._call.id, {\n callId: args.targetCall.id,\n timestamp: new Date()\n });\n listener(args);\n };\n return target.on('transferAccepted', newListener);\n }\n };\n default:\n return Reflect.get(target, prop);\n }\n }\n}\n"]}
|
1
|
+
{"version":3,"file":"CallDeclarativeCommon.js","sourceRoot":"","sources":["../../../../../calling-stateful-client/src/CallDeclarativeCommon.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;;;;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K,CAAC,EAAE,EAAE;gCAC/C,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,EAAE;gCAC1B,SAAS,EAAE,IAAI,IAAI,EAAE;6BACtB,CAAC,CAAC;4BACH,QAAQ,CAAC,IAAI,CAAC,CAAC;wBACjB,CAAC,CAAC;wBACF,OAAO,MAAM,CAAC,EAAE,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC;oBACpD,CAAC;gBACH,CAAC,CAAC;YACJ;gBACE,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACrC,CAAC;IACH,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { CallContext } from './CallContext';\nimport { CallCommon } from './BetaToStableTypes';\nimport { Features } from '@azure/communication-calling';\n/* @conditional-compile-remove(acs-close-captions) */\nimport { PropertyChangedEvent, CaptionsCallFeature } from '@azure/communication-calling';\n/* @conditional-compile-remove(acs-close-captions) */\nimport { Captions } from '@azure/communication-calling';\nimport { TeamsCaptions } from '@azure/communication-calling';\nimport { TransferCallFeature, TransferAcceptedEvent, TransferEventArgs } from '@azure/communication-calling';\n/* @conditional-compile-remove(spotlight) */\nimport { SpotlightCallFeature } from '@azure/communication-calling';\n/**\n * @private\n */\nexport abstract class ProxyCallCommon implements ProxyHandler<CallCommon> {\n private _context: CallContext;\n\n constructor(context: CallContext) {\n this._context = context;\n }\n\n public unsubscribe(): void {\n /** No subscriptions yet. But there will be one for transfer feature soon. */\n }\n\n protected getContext(): CallContext {\n return this._context;\n }\n\n public get<P extends keyof CallCommon>(target: CallCommon, prop: P): any {\n switch (prop) {\n case 'mute': {\n return this._context.withAsyncErrorTeedToState(async function (...args: Parameters<CallCommon['mute']>) {\n return await target.mute(...args);\n }, 'Call.mute');\n }\n case 'unmute': {\n return this._context.withAsyncErrorTeedToState(async function (...args: Parameters<CallCommon['unmute']>) {\n return await target.unmute(...args);\n }, 'Call.unmute');\n }\n case 'startVideo': {\n return this._context.withAsyncErrorTeedToState(async function (...args: Parameters<CallCommon['startVideo']>) {\n return await target.startVideo(...args);\n }, 'Call.startVideo');\n }\n case 'stopVideo': {\n return this._context.withAsyncErrorTeedToState(async function (...args: Parameters<CallCommon['stopVideo']>) {\n return await target.stopVideo(...args);\n }, 'Call.stopVideo');\n }\n case 'startScreenSharing': {\n return this._context.withAsyncErrorTeedToState(async function (\n ...args: Parameters<CallCommon['startScreenSharing']>\n ) {\n return await target.startScreenSharing(...args);\n },\n 'Call.startScreenSharing');\n }\n case 'stopScreenSharing': {\n return this._context.withAsyncErrorTeedToState(async function (\n ...args: Parameters<CallCommon['stopScreenSharing']>\n ) {\n return await target.stopScreenSharing(...args);\n },\n 'Call.stopScreenSharing');\n }\n case 'hold': {\n return this._context.withAsyncErrorTeedToState(async function (...args: Parameters<CallCommon['hold']>) {\n return await target.hold(...args);\n }, 'Call.hold');\n }\n case 'resume': {\n return this._context.withAsyncErrorTeedToState(async function (...args: Parameters<CallCommon['resume']>) {\n return await target.resume(...args);\n }, 'Call.resume');\n }\n case 'feature': {\n // these are mini version of Proxy object - if it grows too big, a real Proxy object should be used.\n return this._context.withErrorTeedToState((...args: Parameters<CallCommon['feature']>) => {\n if (args[0] === Features.Captions) {\n const captionsFeature = target.feature(Features.Captions);\n let proxyFeature;\n /* @conditional-compile-remove(acs-close-captions) */\n if (captionsFeature.captions.kind === 'Captions') {\n proxyFeature = new ProxyCaptions(this._context, target);\n return {\n captions: new Proxy(captionsFeature.captions, proxyFeature),\n on: (...args: Parameters<CaptionsCallFeature['on']>): void => {\n const isCaptionsKindChanged = args[0] === 'CaptionsKindChanged';\n if (isCaptionsKindChanged) {\n const listener = args[1] as PropertyChangedEvent;\n const newListener = (): void => {\n listener();\n };\n return captionsFeature.on('CaptionsKindChanged', newListener);\n }\n },\n off: (...args: Parameters<CaptionsCallFeature['off']>): void => {\n const isCaptionsKindChanged = args[0] === 'CaptionsKindChanged';\n if (isCaptionsKindChanged) {\n return captionsFeature.off('CaptionsKindChanged', args[1]);\n }\n }\n };\n }\n proxyFeature = new ProxyTeamsCaptions(this._context, target);\n return {\n captions: new Proxy(captionsFeature.captions, proxyFeature)\n };\n }\n if (args[0] === Features.Transfer) {\n const transferFeature = target.feature(Features.Transfer);\n const proxyFeature = new ProxyTransferCallFeature(this._context, target);\n return new Proxy(transferFeature, proxyFeature);\n }\n /* @conditional-compile-remove(spotlight) */\n if (args[0] === Features.Spotlight) {\n const spotlightFeature = target.feature(Features.Spotlight);\n const proxyFeature = new ProxySpotlightCallFeature(this._context);\n return new Proxy(spotlightFeature, proxyFeature);\n }\n return target.feature(...args);\n }, 'Call.feature');\n }\n default:\n return Reflect.get(target, prop);\n }\n }\n}\n\n/**\n * @private\n */\nclass ProxyTeamsCaptions implements ProxyHandler<TeamsCaptions> {\n private _context: CallContext;\n private _call: CallCommon;\n\n constructor(context: CallContext, call: CallCommon) {\n this._context = context;\n this._call = call;\n }\n\n public get<P extends keyof TeamsCaptions>(target: TeamsCaptions, prop: P): any {\n switch (prop) {\n case 'startCaptions':\n return this._context.withAsyncErrorTeedToState(async (...args: Parameters<TeamsCaptions['startCaptions']>) => {\n this._context.setStartCaptionsInProgress(this._call.id, true);\n const ret = await target.startCaptions(...args);\n this._context.setSelectedSpokenLanguage(this._call.id, args[0]?.spokenLanguage ?? 'en-us');\n return ret;\n }, 'Call.feature');\n break;\n case 'stopCaptions':\n return this._context.withAsyncErrorTeedToState(async (...args: Parameters<TeamsCaptions['stopCaptions']>) => {\n const ret = await target.stopCaptions(...args);\n this._context.setIsCaptionActive(this._call.id, false);\n this._context.setStartCaptionsInProgress(this._call.id, false);\n this._context.clearCaptions(this._call.id);\n return ret;\n }, 'Call.feature');\n case 'setSpokenLanguage':\n return this._context.withAsyncErrorTeedToState(\n async (...args: Parameters<TeamsCaptions['setSpokenLanguage']>) => {\n const ret = await target.setSpokenLanguage(...args);\n this._context.setSelectedSpokenLanguage(this._call.id, args[0]);\n return ret;\n },\n 'Call.feature'\n );\n case 'setCaptionLanguage':\n return this._context.withAsyncErrorTeedToState(\n async (...args: Parameters<TeamsCaptions['setCaptionLanguage']>) => {\n const ret = await target.setCaptionLanguage(...args);\n this._context.setSelectedCaptionLanguage(this._call.id, args[0]);\n return ret;\n },\n 'Call.feature'\n );\n default:\n return Reflect.get(target, prop);\n }\n }\n}\n\n/* @conditional-compile-remove(acs-close-captions) */\n/**\n * @private\n */\nclass ProxyCaptions implements ProxyHandler<Captions> {\n private _context: CallContext;\n private _call: CallCommon;\n\n constructor(context: CallContext, call: CallCommon) {\n this._context = context;\n this._call = call;\n }\n\n public get<P extends keyof Captions>(target: Captions, prop: P): any {\n switch (prop) {\n case 'startCaptions':\n return this._context.withAsyncErrorTeedToState(async (...args: Parameters<TeamsCaptions['startCaptions']>) => {\n this._context.setStartCaptionsInProgress(this._call.id, true);\n const ret = await target.startCaptions(...args);\n this._context.setSelectedSpokenLanguage(this._call.id, args[0]?.spokenLanguage ?? 'en-us');\n return ret;\n }, 'Call.feature');\n break;\n case 'stopCaptions':\n return this._context.withAsyncErrorTeedToState(async (...args: Parameters<TeamsCaptions['stopCaptions']>) => {\n const ret = await target.stopCaptions(...args);\n this._context.setIsCaptionActive(this._call.id, false);\n this._context.setStartCaptionsInProgress(this._call.id, false);\n this._context.clearCaptions(this._call.id);\n return ret;\n }, 'Call.feature');\n case 'setSpokenLanguage':\n return this._context.withAsyncErrorTeedToState(\n async (...args: Parameters<TeamsCaptions['setSpokenLanguage']>) => {\n const ret = await target.setSpokenLanguage(...args);\n this._context.setSelectedSpokenLanguage(this._call.id, args[0]);\n return ret;\n },\n 'Call.feature'\n );\n default:\n return Reflect.get(target, prop);\n }\n }\n}\n\n/* @conditional-compile-remove(spotlight) */\n/**\n * @private\n */\nclass ProxySpotlightCallFeature implements ProxyHandler<SpotlightCallFeature> {\n private _context: CallContext;\n\n constructor(context: CallContext) {\n this._context = context;\n }\n\n public get<P extends keyof SpotlightCallFeature>(target: SpotlightCallFeature, prop: P): any {\n switch (prop) {\n case 'startSpotlight':\n return this._context.withAsyncErrorTeedToState(\n async (...args: Parameters<SpotlightCallFeature['startSpotlight']>) => {\n const ret = await target.startSpotlight(...args);\n return ret;\n },\n 'Call.feature'\n );\n break;\n case 'stopSpotlight':\n return this._context.withAsyncErrorTeedToState(\n async (...args: Parameters<SpotlightCallFeature['stopSpotlight']>) => {\n const ret = await target.stopSpotlight(...args);\n return ret;\n },\n 'Call.feature'\n );\n default:\n return Reflect.get(target, prop);\n }\n }\n}\n\n/**\n * @private\n */\nclass ProxyTransferCallFeature implements ProxyHandler<TransferCallFeature> {\n private _context: CallContext;\n private _call: CallCommon;\n\n constructor(context: CallContext, call: CallCommon) {\n this._context = context;\n this._call = call;\n }\n\n public get<P extends keyof TransferCallFeature>(target: TransferCallFeature, prop: P): any {\n switch (prop) {\n case 'on':\n return (...args: Parameters<TransferCallFeature['on']>): void => {\n const isTransferAccepted = args[0] === 'transferAccepted';\n if (isTransferAccepted) {\n const listener = args[1] as TransferAcceptedEvent;\n const newListener = (args: TransferEventArgs): void => {\n this._context.setAcceptedTransfer(this._call.id, {\n callId: args.targetCall.id,\n timestamp: new Date()\n });\n listener(args);\n };\n return target.on('transferAccepted', newListener);\n }\n };\n default:\n return Reflect.get(target, prop);\n }\n }\n}\n"]}
|
@@ -4,5 +4,5 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
4
4
|
/**
|
5
5
|
* @private
|
6
6
|
*/
|
7
|
-
export declare const createDecoratedListMessages: (chatThreadClient: ChatThreadClient, context: ChatContext) => (options?: RestListMessagesOptions) => PagedAsyncIterableIterator<ChatMessage
|
7
|
+
export declare const createDecoratedListMessages: (chatThreadClient: ChatThreadClient, context: ChatContext) => ((options?: RestListMessagesOptions) => PagedAsyncIterableIterator<ChatMessage>);
|
8
8
|
//# sourceMappingURL=createDecoratedListMessages.d.ts.map
|
package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListParticipants.d.ts
CHANGED
@@ -4,5 +4,5 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
4
4
|
/**
|
5
5
|
* @private
|
6
6
|
*/
|
7
|
-
export declare const createDecoratedListParticipants: (chatThreadClient: ChatThreadClient, context: ChatContext) => (options?: RestListParticipantsOptions) => PagedAsyncIterableIterator<ChatParticipant
|
7
|
+
export declare const createDecoratedListParticipants: (chatThreadClient: ChatThreadClient, context: ChatContext) => ((options?: RestListParticipantsOptions) => PagedAsyncIterableIterator<ChatParticipant>);
|
8
8
|
//# sourceMappingURL=createDecoratedListParticipants.d.ts.map
|
package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListReadReceipts.d.ts
CHANGED
@@ -4,5 +4,5 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
4
4
|
/**
|
5
5
|
* @private
|
6
6
|
*/
|
7
|
-
export declare const createDecoratedListReadReceipts: (chatThreadClient: ChatThreadClient, context: ChatContext) => (options?: RestListReadReceiptsOptions | undefined) => PagedAsyncIterableIterator<ChatMessageReadReceipt
|
7
|
+
export declare const createDecoratedListReadReceipts: (chatThreadClient: ChatThreadClient, context: ChatContext) => ((options?: RestListReadReceiptsOptions | undefined) => PagedAsyncIterableIterator<ChatMessageReadReceipt>);
|
8
8
|
//# sourceMappingURL=createDecoratedListReadReceipts.d.ts.map
|
@@ -4,5 +4,5 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
4
4
|
/**
|
5
5
|
* @private
|
6
6
|
*/
|
7
|
-
export declare const createDecoratedListThreads: (chatClient: ChatClient, context: ChatContext) => (options?: RestListChatThreadsOptions) => PagedAsyncIterableIterator<ChatThreadItem
|
7
|
+
export declare const createDecoratedListThreads: (chatClient: ChatClient, context: ChatContext) => ((options?: RestListChatThreadsOptions) => PagedAsyncIterableIterator<ChatThreadItem>);
|
8
8
|
//# sourceMappingURL=createDecoratedListThreads.d.ts.map
|
@@ -2,7 +2,7 @@
|
|
2
2
|
declare const AnnouncerMessage: (props: {
|
3
3
|
message: string;
|
4
4
|
ariaLive: string;
|
5
|
-
clearOnUnmount?: boolean
|
5
|
+
clearOnUnmount?: boolean;
|
6
6
|
announceAssertive: (message: string, id: string) => void;
|
7
7
|
announcePolite: (message: string, id: string) => void;
|
8
8
|
}) => null;
|
@@ -12,35 +12,35 @@ import { VideoGalleryStrings } from './VideoGallery';
|
|
12
12
|
* @internal
|
13
13
|
*/
|
14
14
|
export declare const _LocalVideoTile: React.MemoExoticComponent<(props: {
|
15
|
-
userId?: string
|
16
|
-
onCreateLocalStreamView?: (
|
17
|
-
onDisposeLocalStreamView?: (
|
18
|
-
isAvailable?: boolean
|
19
|
-
isMuted?: boolean
|
20
|
-
renderElement?: HTMLElement
|
21
|
-
displayName?: string
|
22
|
-
initialsName?: string
|
23
|
-
localVideoViewOptions?: VideoStreamOptions
|
24
|
-
onRenderAvatar?: OnRenderAvatarCallback
|
15
|
+
userId?: string;
|
16
|
+
onCreateLocalStreamView?: (options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>;
|
17
|
+
onDisposeLocalStreamView?: () => void;
|
18
|
+
isAvailable?: boolean;
|
19
|
+
isMuted?: boolean;
|
20
|
+
renderElement?: HTMLElement;
|
21
|
+
displayName?: string;
|
22
|
+
initialsName?: string;
|
23
|
+
localVideoViewOptions?: VideoStreamOptions;
|
24
|
+
onRenderAvatar?: OnRenderAvatarCallback;
|
25
25
|
showLabel: boolean;
|
26
|
-
alwaysShowLabelBackground?: boolean
|
27
|
-
showMuteIndicator?: boolean
|
28
|
-
showCameraSwitcherInLocalPreview?: boolean
|
29
|
-
localVideoCameraCycleButtonProps?: LocalVideoCameraCycleButtonProps
|
30
|
-
localVideoCameraSwitcherLabel?: string
|
31
|
-
localVideoSelectedDescription?: string
|
32
|
-
styles?: VideoTileStylesProps
|
33
|
-
personaMinSize?: number
|
34
|
-
raisedHand?: RaisedHand
|
35
|
-
reaction?: Reaction
|
36
|
-
spotlightedParticipantUserIds?: string[]
|
37
|
-
isSpotlighted?: boolean
|
38
|
-
onStartSpotlight?: (
|
39
|
-
onStopSpotlight?: (
|
40
|
-
maxParticipantsToSpotlight?: number
|
41
|
-
menuKind?:
|
42
|
-
drawerMenuHostId?: string
|
43
|
-
strings?: VideoGalleryStrings
|
44
|
-
reactionResources?: ReactionResources
|
26
|
+
alwaysShowLabelBackground?: boolean;
|
27
|
+
showMuteIndicator?: boolean;
|
28
|
+
showCameraSwitcherInLocalPreview?: boolean;
|
29
|
+
localVideoCameraCycleButtonProps?: LocalVideoCameraCycleButtonProps;
|
30
|
+
localVideoCameraSwitcherLabel?: string;
|
31
|
+
localVideoSelectedDescription?: string;
|
32
|
+
styles?: VideoTileStylesProps;
|
33
|
+
personaMinSize?: number;
|
34
|
+
raisedHand?: RaisedHand;
|
35
|
+
reaction?: Reaction;
|
36
|
+
spotlightedParticipantUserIds?: string[];
|
37
|
+
isSpotlighted?: boolean;
|
38
|
+
onStartSpotlight?: () => void;
|
39
|
+
onStopSpotlight?: () => void;
|
40
|
+
maxParticipantsToSpotlight?: number;
|
41
|
+
menuKind?: 'contextual' | 'drawer';
|
42
|
+
drawerMenuHostId?: string;
|
43
|
+
strings?: VideoGalleryStrings;
|
44
|
+
reactionResources?: ReactionResources;
|
45
45
|
}) => React.JSX.Element>;
|
46
46
|
//# sourceMappingURL=LocalVideoTile.d.ts.map
|
@@ -12,34 +12,34 @@ import { ReactionResources } from '../types/ReactionTypes';
|
|
12
12
|
export declare const _RemoteVideoTile: React.MemoExoticComponent<(props: {
|
13
13
|
userId: string;
|
14
14
|
remoteParticipant: VideoGalleryRemoteParticipant;
|
15
|
-
onCreateRemoteStreamView?: (
|
16
|
-
onDisposeRemoteStreamView?: (
|
17
|
-
isAvailable?: boolean
|
18
|
-
isReceiving?: boolean
|
19
|
-
streamId?: number
|
20
|
-
isScreenSharingOn?: boolean
|
21
|
-
renderElement?: HTMLElement
|
22
|
-
remoteVideoViewOptions?: VideoStreamOptions
|
23
|
-
onRenderAvatar?: OnRenderAvatarCallback
|
24
|
-
showMuteIndicator?: boolean
|
25
|
-
showLabel?: boolean
|
26
|
-
alwaysShowLabelBackground?: boolean
|
27
|
-
personaMinSize?: number
|
15
|
+
onCreateRemoteStreamView?: (userId: string, options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>;
|
16
|
+
onDisposeRemoteStreamView?: (userId: string) => Promise<void>;
|
17
|
+
isAvailable?: boolean;
|
18
|
+
isReceiving?: boolean;
|
19
|
+
streamId?: number;
|
20
|
+
isScreenSharingOn?: boolean;
|
21
|
+
renderElement?: HTMLElement;
|
22
|
+
remoteVideoViewOptions?: VideoStreamOptions;
|
23
|
+
onRenderAvatar?: OnRenderAvatarCallback;
|
24
|
+
showMuteIndicator?: boolean;
|
25
|
+
showLabel?: boolean;
|
26
|
+
alwaysShowLabelBackground?: boolean;
|
27
|
+
personaMinSize?: number;
|
28
28
|
strings: VideoGalleryStrings;
|
29
|
-
participantState?: ParticipantState
|
30
|
-
menuKind?:
|
31
|
-
drawerMenuHostId?: string
|
32
|
-
onPinParticipant?: (
|
33
|
-
onUnpinParticipant?: (
|
34
|
-
onUpdateScalingMode?: (
|
35
|
-
isPinned?: boolean
|
36
|
-
spotlightedParticipantUserIds?: string[]
|
37
|
-
isSpotlighted?: boolean
|
38
|
-
onStartSpotlight?: (
|
39
|
-
onStopSpotlight?: (
|
40
|
-
maxParticipantsToSpotlight?: number
|
41
|
-
disablePinMenuItem?: boolean
|
42
|
-
toggleAnnouncerString?: (
|
43
|
-
reactionResources?: ReactionResources
|
29
|
+
participantState?: ParticipantState;
|
30
|
+
menuKind?: 'contextual' | 'drawer';
|
31
|
+
drawerMenuHostId?: string;
|
32
|
+
onPinParticipant?: (userId: string) => void;
|
33
|
+
onUnpinParticipant?: (userId: string) => void;
|
34
|
+
onUpdateScalingMode?: (userId: string, scalingMode: ViewScalingMode) => void;
|
35
|
+
isPinned?: boolean;
|
36
|
+
spotlightedParticipantUserIds?: string[];
|
37
|
+
isSpotlighted?: boolean;
|
38
|
+
onStartSpotlight?: (userIds: string[]) => void;
|
39
|
+
onStopSpotlight?: (userIds: string[]) => void;
|
40
|
+
maxParticipantsToSpotlight?: number;
|
41
|
+
disablePinMenuItem?: boolean;
|
42
|
+
toggleAnnouncerString?: (announcerString: string) => void;
|
43
|
+
reactionResources?: ReactionResources;
|
44
44
|
}) => React.JSX.Element>;
|
45
45
|
//# sourceMappingURL=RemoteVideoTile.d.ts.map
|
@@ -10,9 +10,9 @@ export declare const ResponsiveHorizontalGallery: (props: {
|
|
10
10
|
containerStyles: IStyle;
|
11
11
|
horizontalGalleryStyles: HorizontalGalleryStyles;
|
12
12
|
gapWidthRem: number;
|
13
|
-
buttonWidthRem?: number
|
14
|
-
onFetchTilesToRender?: (
|
13
|
+
buttonWidthRem?: number;
|
14
|
+
onFetchTilesToRender?: (indexes: number[]) => void;
|
15
15
|
/** event to listen for children per page changes */
|
16
|
-
onChildrenPerPageChange?: (
|
16
|
+
onChildrenPerPageChange?: (childrenPerPage: number) => void;
|
17
17
|
}) => JSX.Element;
|
18
18
|
//# sourceMappingURL=ResponsiveHorizontalGallery.d.ts.map
|
@@ -8,15 +8,15 @@ import { OverflowGalleryPosition } from '../VideoGallery';
|
|
8
8
|
* @private
|
9
9
|
*/
|
10
10
|
export declare const OverflowGallery: (props: {
|
11
|
-
shouldFloatLocalVideo?: boolean
|
12
|
-
onFetchTilesToRender?: (
|
13
|
-
isNarrow?: boolean
|
14
|
-
isShort?: boolean
|
15
|
-
overflowGalleryElements?: JSX.Element[]
|
16
|
-
horizontalGalleryStyles?: HorizontalGalleryStyles
|
17
|
-
verticalGalleryStyles?: VerticalGalleryStyles
|
18
|
-
overflowGalleryPosition?: OverflowGalleryPosition
|
19
|
-
onChildrenPerPageChange?: (
|
20
|
-
parentWidth?: number
|
11
|
+
shouldFloatLocalVideo?: boolean;
|
12
|
+
onFetchTilesToRender?: (indexes: number[]) => void;
|
13
|
+
isNarrow?: boolean;
|
14
|
+
isShort?: boolean;
|
15
|
+
overflowGalleryElements?: JSX.Element[];
|
16
|
+
horizontalGalleryStyles?: HorizontalGalleryStyles;
|
17
|
+
verticalGalleryStyles?: VerticalGalleryStyles;
|
18
|
+
overflowGalleryPosition?: OverflowGalleryPosition;
|
19
|
+
onChildrenPerPageChange?: (childrenPerPage: number) => void;
|
20
|
+
parentWidth?: number;
|
21
21
|
}) => JSX.Element;
|
22
22
|
//# sourceMappingURL=OverflowGallery.d.ts.map
|
@@ -8,18 +8,18 @@ import { ReactionResources, VideoGalleryLocalParticipant, VideoGalleryRemotePart
|
|
8
8
|
*/
|
9
9
|
export declare const RemoteScreenShare: React.MemoExoticComponent<(props: {
|
10
10
|
userId: string;
|
11
|
-
displayName?: string
|
12
|
-
onCreateRemoteStreamView?: (
|
13
|
-
onDisposeRemoteStreamView?: (
|
14
|
-
isAvailable?: boolean
|
15
|
-
isReceiving?: boolean
|
16
|
-
isMuted?: boolean
|
17
|
-
isSpeaking?: boolean
|
18
|
-
renderElement?: HTMLElement
|
19
|
-
participantVideoScalingMode?: VideoStreamOptions
|
20
|
-
reactionResources?: ReactionResources
|
21
|
-
localParticipant?: VideoGalleryLocalParticipant
|
22
|
-
remoteParticipants?: VideoGalleryRemoteParticipant[]
|
23
|
-
isPPTLive?: boolean
|
11
|
+
displayName?: string;
|
12
|
+
onCreateRemoteStreamView?: (userId: string, options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>;
|
13
|
+
onDisposeRemoteStreamView?: (userId: string) => Promise<void>;
|
14
|
+
isAvailable?: boolean;
|
15
|
+
isReceiving?: boolean;
|
16
|
+
isMuted?: boolean;
|
17
|
+
isSpeaking?: boolean;
|
18
|
+
renderElement?: HTMLElement;
|
19
|
+
participantVideoScalingMode?: VideoStreamOptions;
|
20
|
+
reactionResources?: ReactionResources;
|
21
|
+
localParticipant?: VideoGalleryLocalParticipant;
|
22
|
+
remoteParticipants?: VideoGalleryRemoteParticipant[];
|
23
|
+
isPPTLive?: boolean;
|
24
24
|
}) => React.JSX.Element>;
|
25
25
|
//# sourceMappingURL=RemoteScreenShare.d.ts.map
|
package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.d.ts
CHANGED
@@ -5,8 +5,8 @@ import { IStyle } from '@fluentui/react';
|
|
5
5
|
* @private
|
6
6
|
*/
|
7
7
|
export declare const ScrollableHorizontalGallery: (props: {
|
8
|
-
horizontalGalleryElements?: JSX.Element[]
|
9
|
-
onFetchTilesToRender?: (
|
8
|
+
horizontalGalleryElements?: JSX.Element[];
|
9
|
+
onFetchTilesToRender?: (indexes: number[]) => void;
|
10
10
|
containerStyles?: IStyle;
|
11
11
|
}) => JSX.Element;
|
12
12
|
//# sourceMappingURL=ScrollableHorizontalGallery.d.ts.map
|
@@ -6,35 +6,35 @@ import { VideoGalleryParticipant, ViewScalingMode } from '../../types';
|
|
6
6
|
export declare const useVideoTileContextualMenuProps: (props: {
|
7
7
|
participant: VideoGalleryParticipant;
|
8
8
|
strings?: {
|
9
|
-
fitRemoteParticipantToFrame?: string
|
10
|
-
fillRemoteParticipantFrame?: string
|
11
|
-
pinParticipantForMe?: string
|
12
|
-
pinParticipantForMeLimitReached?: string
|
13
|
-
unpinParticipantForMe?: string
|
14
|
-
pinParticipantMenuItemAriaLabel?: string
|
15
|
-
unpinParticipantMenuItemAriaLabel?: string
|
16
|
-
pinnedParticipantAnnouncementAriaLabel?: string
|
17
|
-
unpinnedParticipantAnnouncementAriaLabel?: string
|
18
|
-
startSpotlightVideoTileMenuLabel?: string
|
19
|
-
addSpotlightVideoTileMenuLabel?: string
|
20
|
-
stopSpotlightVideoTileMenuLabel?: string
|
21
|
-
stopSpotlightOnSelfVideoTileMenuLabel?: string
|
22
|
-
spotlightLimitReachedMenuTitle?: string
|
23
|
-
}
|
9
|
+
fitRemoteParticipantToFrame?: string;
|
10
|
+
fillRemoteParticipantFrame?: string;
|
11
|
+
pinParticipantForMe?: string;
|
12
|
+
pinParticipantForMeLimitReached?: string;
|
13
|
+
unpinParticipantForMe?: string;
|
14
|
+
pinParticipantMenuItemAriaLabel?: string;
|
15
|
+
unpinParticipantMenuItemAriaLabel?: string;
|
16
|
+
pinnedParticipantAnnouncementAriaLabel?: string;
|
17
|
+
unpinnedParticipantAnnouncementAriaLabel?: string;
|
18
|
+
startSpotlightVideoTileMenuLabel?: string;
|
19
|
+
addSpotlightVideoTileMenuLabel?: string;
|
20
|
+
stopSpotlightVideoTileMenuLabel?: string;
|
21
|
+
stopSpotlightOnSelfVideoTileMenuLabel?: string;
|
22
|
+
spotlightLimitReachedMenuTitle?: string;
|
23
|
+
};
|
24
24
|
view?: {
|
25
25
|
updateScalingMode: (scalingMode: ViewScalingMode) => Promise<void>;
|
26
|
-
}
|
27
|
-
isPinned?: boolean
|
28
|
-
onPinParticipant?: (
|
29
|
-
onUnpinParticipant?: (
|
30
|
-
onUpdateScalingMode?: (
|
31
|
-
disablePinMenuItem?: boolean
|
32
|
-
toggleAnnouncerString?: (
|
33
|
-
isSpotlighted?: boolean
|
34
|
-
spotlightedParticipantUserIds?: string[]
|
35
|
-
onStartSpotlight?: (
|
36
|
-
onStopSpotlight?: (
|
37
|
-
maxParticipantsToSpotlight?: number
|
38
|
-
myUserId?: string
|
26
|
+
};
|
27
|
+
isPinned?: boolean;
|
28
|
+
onPinParticipant?: (userId: string) => void;
|
29
|
+
onUnpinParticipant?: (userId: string) => void;
|
30
|
+
onUpdateScalingMode?: (userId: string, scalingMode: ViewScalingMode) => void;
|
31
|
+
disablePinMenuItem?: boolean;
|
32
|
+
toggleAnnouncerString?: (announcerString: string) => void;
|
33
|
+
isSpotlighted?: boolean;
|
34
|
+
spotlightedParticipantUserIds?: string[];
|
35
|
+
onStartSpotlight?: (userIds: string[]) => void;
|
36
|
+
onStopSpotlight?: (userIds: string[]) => void;
|
37
|
+
maxParticipantsToSpotlight?: number;
|
38
|
+
myUserId?: string;
|
39
39
|
}) => IContextualMenuProps | undefined;
|
40
40
|
//# sourceMappingURL=useVideoTileContextualMenuProps.d.ts.map
|
@@ -28,7 +28,7 @@ actionsForAttachment?: (attachment: AttachmentMetadata, message?: ChatMessage) =
|
|
28
28
|
/** @private */
|
29
29
|
export declare const generateDefaultTimestamp: (createdOn: Date, showDate: boolean | undefined, strings: MessageThreadStrings) => string;
|
30
30
|
/** @private */
|
31
|
-
export declare const generateCustomizedTimestamp: (createdOn: Date, locale: ComponentLocale, onDisplayDateTimeString?: (
|
31
|
+
export declare const generateCustomizedTimestamp: (createdOn: Date, locale: ComponentLocale, onDisplayDateTimeString?: (messageDate: Date) => string) => string;
|
32
32
|
/**
|
33
33
|
* @private
|
34
34
|
* Get the edited tag for the message if it is edited.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { mergeStyles } from '@fluentui/react';
|
4
4
|
/* @conditional-compile-remove(call-readiness) */ /* @conditional-compile-remove(unsupported-browser) */
|
5
5
|
import { Stack } from '@fluentui/react';
|
6
|
-
import { ArrowClockwise16Regular, CallEnd20Filled, Checkmark20Regular, CheckmarkCircle16Regular, Circle16Regular, Delete20Regular, Dismiss20Regular, Dismiss16Regular, Edit20Regular, ErrorCircle16Regular, Eye16Regular, MicOff16Filled, MicOff16Regular, MicOff20Filled, Mic16Filled, Mic20Filled, Mic20Regular, MoreHorizontal20Filled, MoreHorizontal20Regular, People20Filled, Settings20Filled, Send20Filled, Send20Regular, ShareScreenStart20Filled, ShareScreenStop20Filled, Speaker220Regular, Video16Filled, Video20Filled, Video20Regular, VideoOff20Filled, ChevronLeft20Regular, ChevronRight20Regular, WifiWarning20Filled, SpeakerMute16Filled, MicProhibited16Filled, VideoProhibited16Filled, Pin16Filled,
|
6
|
+
import { ArrowClockwise16Regular, CallEnd20Filled, Checkmark20Regular, CheckmarkCircle16Regular, Circle16Regular, Delete20Regular, Dismiss20Regular, Dismiss16Regular, Edit20Regular, ErrorCircle16Regular, Eye16Regular, MicOff16Filled, MicOff16Regular, MicOff20Filled, Mic16Filled, Mic20Filled, Mic20Regular, MoreHorizontal20Filled, MoreHorizontal20Regular, People20Filled, Settings20Filled, Send20Filled, Send20Regular, ShareScreenStart20Filled, ShareScreenStop20Filled, Speaker220Regular, Video16Filled, Video20Filled, Video20Regular, VideoOff20Filled, ChevronLeft20Regular, ChevronRight20Regular, WifiWarning20Filled, SpeakerMute16Filled, MicProhibited16Filled, VideoProhibited16Filled, Pin16Filled, Pin20Regular, PinOff20Regular, ScaleFit20Regular, ScaleFill20Regular } from '@fluentui/react-icons';
|
7
7
|
/* @conditional-compile-remove(rich-text-editor) */
|
8
8
|
import { TextBold20Regular, TextItalic20Regular, TextUnderlineCharacterU20Regular, TextBulletList20Regular, TextNumberListLtr20Regular, TextIndentDecrease20Regular, TextIndentIncrease20Regular, DividerTall24Regular, TextEditStyle20Regular, TextEditStyle20Filled, Table20Regular, Table20Filled, TableAdd20Regular, TableDismiss20Regular } from '@fluentui/react-icons';
|
9
9
|
import { Emoji20Regular } from '@fluentui/react-icons';
|
@@ -210,8 +210,8 @@ export const DEFAULT_COMPONENT_ICONS = {
|
|
210
210
|
VideoTileMoreOptions: React.createElement(MoreHorizontal20Filled, null),
|
211
211
|
VideoTileScaleFit: React.createElement(ScaleFit20Regular, null),
|
212
212
|
VideoTileScaleFill: React.createElement(ScaleFill20Regular, null),
|
213
|
-
PinParticipant: React.createElement(
|
214
|
-
UnpinParticipant: React.createElement(
|
213
|
+
PinParticipant: React.createElement(Pin20Regular, null),
|
214
|
+
UnpinParticipant: React.createElement(PinOff20Regular, null),
|
215
215
|
SplitButtonPrimaryActionCameraOn: React.createElement(Video20Filled, null),
|
216
216
|
SplitButtonPrimaryActionCameraOff: React.createElement(VideoOff20Filled, null),
|
217
217
|
SplitButtonPrimaryActionMicUnmuted: React.createElement(Mic20Filled, null),
|