@azure/communication-react 1.3.3-alpha-202208170014.0 → 1.3.3-alpha-202208180014.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 +16 -0
- package/dist/dist-cjs/communication-react/index.js +477 -458
- 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/calling-component-bindings/src/utils/callUtils.js +1 -1
- package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ParticipantList.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/ParticipantList.js +8 -1
- package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ParticipantsButton.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/ParticipantsButton.js +1 -5
- package/dist/dist-esm/react-components/src/components/ParticipantsButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +47 -6
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoTile.d.ts +2 -1
- package/dist/dist-esm/react-components/src/components/VideoTile.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoTile.js +34 -40
- 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 +3 -3
- package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js +19 -9
- package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/utils/common.d.ts +5 -0
- package/dist/dist-esm/react-components/src/components/utils/common.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/utils/common.js +6 -0
- package/dist/dist-esm/react-components/src/components/utils/common.js.map +1 -1
- package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.d.ts +1 -1
- package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js +3 -3
- 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.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +4 -3
- 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/CallControls.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +15 -2
- 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/MediaGallery.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +2 -23
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js +1 -11
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +33 -2
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.js +6 -23
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PreparedMoreDrawer.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PreparedMoreDrawer.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PreparedMoreDrawer.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.d.ts +8 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/DesktopMoreButton.d.ts +5 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/DesktopMoreButton.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/DesktopMoreButton.js +14 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/DesktopMoreButton.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/MoreDrawer.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/MoreDrawer.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/MoreDrawer.js +11 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/MoreDrawer.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.js +2 -5
- package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +6 -2
- package/package.json +8 -8
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/MediaGallery.styles.d.ts +0 -40
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/MediaGallery.styles.d.ts.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/MediaGallery.styles.js +0 -64
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/MediaGallery.styles.js.map +0 -1
@@ -16,7 +16,7 @@ import { memoizeFnAll, toFlatCommunicationIdentifier } from "../../../acs-ui-com
|
|
16
16
|
*
|
17
17
|
* @internal
|
18
18
|
*/
|
19
|
-
export const _isInCall = (callStatus) => !!callStatus && !['None', 'Disconnected', 'Connecting', 'LocalHold', '
|
19
|
+
export const _isInCall = (callStatus) => !!callStatus && !['None', 'Disconnected', 'Connecting', 'LocalHold', 'Ringing', 'EarlyMedia'].includes(callStatus);
|
20
20
|
/**
|
21
21
|
* Check if the call state represents being in the lobby or waiting to be admitted.
|
22
22
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"callUtils.js","sourceRoot":"","sources":["../../../../../../calling-component-bindings/src/utils/callUtils.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;;;;;;;;;AAIlC,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,6BAA6B,EAAE,mCAAgC;AAEtF;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,UAAuB,EAAW,EAAE,CAC5D,CAAC,CAAC,UAAU,IAAI,C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,IAAI,CAAC,CAAC;KAC1D;AACH,CAAC,CAAA,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,YAAsC,EAA4B,EAAE;IAC1G,IAAI,YAAY,EAAE;QAChB,OAAO,yBAAyB,CAAC,CAAC,UAAU,EAAE,EAAE;YAC9C,OAAO,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;gBAC3C,MAAM,GAAG,GAAG,6BAA6B,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;gBACxD,OAAO,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;YAC5B,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;KACJ;SAAM;QACL,OAAO,EAAE,CAAC;KACX;AACH,CAAC,CAAC;AAEF,MAAM,yBAAyB,GAAG,YAAY,CAAC,CAAC,aAAqB,EAAE,WAAmC,EAAE,EAAE;IAC5G,IAAI,uBAAuB,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE;QACnD,uCACK,WAAW,KACd,WAAW,EAAE,WAAW,CAAC,UAAU,CAAC,WAAW,IAC/C;KACH;SAAM;QACL,OAAO,WAAW,CAAC;KACpB;AACH,CAAC,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ParticipantList.d.ts","sourceRoot":"","sources":["../../../../../../react-components/src/components/ParticipantList.tsx"],"names":[],"mappings":";AAGA,OAAO,EAEL,mBAAmB,EACnB,yBAAyB,EAK1B,MAAM,iBAAiB,CAAC;
|
1
|
+
{"version":3,"file":"ParticipantList.d.ts","sourceRoot":"","sources":["../../../../../../react-components/src/components/ParticipantList.tsx"],"names":[],"mappings":";AAGA,OAAO,EAEL,mBAAmB,EACnB,yBAAyB,EAK1B,MAAM,iBAAiB,CAAC;AAMzB,OAAO,EACL,gBAAgB,EAEhB,sBAAsB,EACtB,0BAA0B,EAC3B,MAAM,UAAU,CAAC;A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,KAAG,WAiE7D,CAAC"}
|
@@ -4,6 +4,8 @@ import { Icon, merge, mergeStyles, PersonaPresence, Stack } from '@fluentui/reac
|
|
4
4
|
import React, { useMemo } from 'react';
|
5
5
|
import { useIdentifiers } from '../identifiers';
|
6
6
|
import { useLocale } from '../localization';
|
7
|
+
/* @conditional-compile-remove(rooms) */
|
8
|
+
import { _usePermissions } from '../permissions';
|
7
9
|
import { ParticipantItem } from './ParticipantItem';
|
8
10
|
import { iconStyles, participantListItemStyle, participantListStyle } from './styles/ParticipantList.styles';
|
9
11
|
const onRenderParticipantDefault = (participant, strings, myUserId, onRenderAvatar, createParticipantMenuItems, styles, onParticipantClick, showParticipantOverflowTooltip) => {
|
@@ -59,6 +61,11 @@ export const ParticipantList = (props) => {
|
|
59
61
|
const createParticipantMenuItems = (participant) => {
|
60
62
|
var _a, _b;
|
61
63
|
let menuItems = [];
|
64
|
+
let disabled = !participant.isRemovable;
|
65
|
+
/* @conditional-compile-remove(rooms) */
|
66
|
+
const isRemovable = _usePermissions().removeParticipantButton;
|
67
|
+
/* @conditional-compile-remove(rooms) */
|
68
|
+
disabled = !isRemovable || disabled;
|
62
69
|
if (participant.userId !== myUserId && onRemoveParticipant) {
|
63
70
|
menuItems.push({
|
64
71
|
key: 'remove',
|
@@ -67,7 +74,7 @@ export const ParticipantList = (props) => {
|
|
67
74
|
itemProps: {
|
68
75
|
styles: (_b = (_a = props.styles) === null || _a === void 0 ? void 0 : _a.participantItemStyles) === null || _b === void 0 ? void 0 : _b.participantSubMenuItemsStyles
|
69
76
|
},
|
70
|
-
disabled:
|
77
|
+
disabled: disabled,
|
71
78
|
'data-ui-id': ids.participantListRemoveParticipantButton
|
72
79
|
});
|
73
80
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ParticipantList.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/ParticipantList.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,IAAI,EAGJ,KAAK,EACL,WAAW,EACX,eAAe,EACf,KAAK,EACN,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;
|
1
|
+
{"version":3,"file":"ParticipantList.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/ParticipantList.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,IAAI,EAGJ,KAAK,EACL,WAAW,EACX,eAAe,EACf,KAAK,EACN,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,wCAAwC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAOjD,OAAO,EAAE,eAAe,EAAiD,MAAM,mBAAmB,CAAC;AACnG,OAAO,EAAE,UAAU,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAiE7G,MAAM,0BAA0B,GAAG,CACjC,WAAuC,EACvC,OAA+B,EAC/B,QAAiB,EACjB,cAAuC,EACvC,0BAA+F,EAC/F,MAAkC,EAClC,kBAAuE,EACvE,8BAAwC,EACpB,EAAE;IACtB,MAAM,kBAAkB,GAAG,WAA6C,CAAC;IAEzE,IAAI,QAAQ,GAAgC,SAAS,CAAC;IACtD,IAAI,kBAAkB,EAAE;QACtB,IAAI,kBAAkB,CAAC,KAAK,KAAK,WAAW,EAAE;YAC5C,QAAQ,GAAG,eAAe,CAAC,MAAM,CAAC;SACnC;aAAM,IAAI,kBAAkB,CAAC,KAAK,KAAK,MAAM,EAAE;YAC9C,QAAQ,GA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WAAW,CAAC,oBAAoB,EAAE,MAAA,KAAK,CAAC,MAAM,0CAAE,IAAI,CAAC,IACrG,qBAAqB,CAAC,GAAG,CAAC,CAAC,WAAuC,EAAE,EAAE,CACrE,mBAAmB;QACjB,CAAC,CAAC,mBAAmB,CAAC,WAAW,CAAC;QAClC,CAAC,CAAC,0BAA0B,CACxB,WAAW,EACX,OAAO,EACP,QAAQ,EACR,cAAc,EACd,0BAA0B,EAC1B,qBAAqB,EACrB,KAAK,CAAC,kBAAkB,EACxB,8BAA8B,CAC/B,CACN,CACK,CACT,CAAC;AACJ,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ParticipantsButton.d.ts","sourceRoot":"","sources":["../../../../../../react-components/src/components/ParticipantsButton.tsx"],"names":[],"mappings":";AAGA,OAAO,EAIL,qBAAqB,EACrB,yBAAyB,EAE1B,MAAM,iBAAiB,CAAC;AAIzB,OAAO,EAEL,oBAAoB,EACpB,qBAAqB,EACrB,4BAA4B,EAC7B,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAoB,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAErG,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAMtD;;;;GAIG;AACH,MAAM,WAAW,sCAAuC,SAAQ,qBAAqB;IACnF,4DAA4D;IAC5D,cAAc,CAAC,EAAE,yBAAyB,CAAC;IAC3C,mGAAmG;IACnG,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;CAC/C;AAED;;;;GAIG;AACH,MAAM,WAAW,wBAAyB,SAAQ,sBAAsB;IACtE,2DAA2D;IAC3D,UAAU,CAAC,EAAE,OAAO,CAAC,sCAAsC,CAAC,CAAC;CAC9D;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACx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AAG,
|
1
|
+
{"version":3,"file":"ParticipantsButton.d.ts","sourceRoot":"","sources":["../../../../../../react-components/src/components/ParticipantsButton.tsx"],"names":[],"mappings":";AAGA,OAAO,EAIL,qBAAqB,EACrB,yBAAyB,EAE1B,MAAM,iBAAiB,CAAC;AAIzB,OAAO,EAEL,oBAAoB,EACpB,qBAAqB,EACrB,4BAA4B,EAC7B,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAoB,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAErG,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAMtD;;;;GAIG;AACH,MAAM,WAAW,sCAAuC,SAAQ,qBAAqB;IACnF,4DAA4D;IAC5D,cAAc,CAAC,EAAE,yBAAyB,CAAC;IAC3C,mGAAmG;IACnG,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;CAC/C;AAED;;;;GAIG;AACH,MAAM,WAAW,wBAAyB,SAAQ,sBAAsB;IACtE,2DAA2D;IAC3D,UAAU,CAAC,EAAE,OAAO,CAAC,sCAAsC,CAAC,CAAC;CAC9D;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,2BAA2B,EAAE,MAAM,CAAC;IACpC;;OAEG;IACH,yBAAyB,EAAE,MAAM,CAAC;IAClC;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAwB,SAAQ,qBAAqB;IACpE;;OAEG;IACH,YAAY,EAAE,0BAA0B,EAAE,CAAC;IAC3C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,mBAAmB,CAAC,EAAE,CAAC,WAAW,EAAE,wBAAwB,KAAK,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;IACpF;;OAEG;IACH,cAAc,CAAC,EAAE,sBAAsB,CAAC;IACxC;;OAEG;IACH,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C;;OAEG;IACH,2BAA2B,CAAC,EAAE,4BAA4B,CAAC;IAC3D;;OAEG;IACH,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;IAC9E;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAC7C,0EAA0E;IAC1E,8BAA8B,CAAC,EAAE,OAAO,CAAC;CAC1C;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,KAAG,WAwLnE,CAAC"}
|
@@ -11,8 +11,6 @@ import { ControlBarButton } from './ControlBarButton';
|
|
11
11
|
import { useIdentifiers } from '../identifiers';
|
12
12
|
import { HighContrastAwareIcon } from './HighContrastAwareIcon';
|
13
13
|
import { _preventDismissOnEvent as preventDismissOnEvent } from "../../../acs-ui-common/src";
|
14
|
-
/* @conditional-compile-remove(rooms) */
|
15
|
-
import { _usePermissions } from '../permissions/PermissionsProvider';
|
16
14
|
/**
|
17
15
|
* A button to show a menu with calling or chat participants.
|
18
16
|
*
|
@@ -27,9 +25,7 @@ import { _usePermissions } from '../permissions/PermissionsProvider';
|
|
27
25
|
export const ParticipantsButton = (props) => {
|
28
26
|
var _a, _b, _c, _d;
|
29
27
|
const { callInvitationURL, styles, onMuteAll, onRenderIcon, onRenderParticipantList, participants, myUserId, excludeMe, onRenderParticipant, onRenderAvatar, onRemoveParticipant, onFetchParticipantMenuItems, showParticipantOverflowTooltip } = props;
|
30
|
-
|
31
|
-
/* @conditional-compile-remove(rooms) */
|
32
|
-
disabled = disabled || !_usePermissions().participantList;
|
28
|
+
const disabled = props.disabled;
|
33
29
|
const onRenderPeopleIcon = () => (React.createElement(HighContrastAwareIcon, { disabled: disabled, iconName: "ControlButtonParticipants" }));
|
34
30
|
const ids = useIdentifiers();
|
35
31
|
const onMuteAllCallback = useCallback(() => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ParticipantsButton.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/ParticipantsButton.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,sBAAsB,EAKtB,KAAK,EACN,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,mCAAgC;AACxD,OAAO,IAAI,MAAM,mBAAmB,CAAC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EACL,eAAe,EAIhB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,gCAAgC,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAiD,MAAM,oBAAoB,CAAC;AACrG,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAIhD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,sBAAsB,IAAI,qBAAqB,EAAE,mCAAgC;
|
1
|
+
{"version":3,"file":"ParticipantsButton.js","sourceRoot":"","sources":["../../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QAAQ,EAAE,MAAM,EAAE;gBAC/B,OAAO,EAAE,cAAc;aACxB,CAAC,CAAC;SACJ;QAED,OAAO,SAAS,CAAC;IACnB,CAAC,EAAE;QACD,OAAO,CAAC,UAAU;QAClB,OAAO,CAAC,2BAA2B;QACnC,OAAO,CAAC,yBAAyB;QACjC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,UAAU;QAClB,gBAAgB;QAChB,iBAAiB;QACjB,YAAY;QACZ,SAAS;QACT,GAAG,CAAC,+BAA+B;QACnC,uCAAuC;QACvC,cAAc;KACf,CAAC,CAAC;IAEH,OAAO,CACL,oBAAC,gBAAgB,oBACX,KAAK,IACT,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,MAAA,KAAK,CAAC,SAAS,mCAAI,gBAAgB,EAC9C,aAAa,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAC/B,YAAY,EAAE,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,kBAAkB,EAChD,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,MAAA,KAAK,CAAC,QAAQ,mCAAI,yBAAyB,IACrD,CACH,CAAC;AACJ,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RemoteVideoTile.d.ts","sourceRoot":"","sources":["../../../../../../react-components/src/components/RemoteVideoTile.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,2BAA2B,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;
|
1
|
+
{"version":3,"file":"RemoteVideoTile.d.ts","sourceRoot":"","sources":["../../../../../../react-components/src/components/RemoteVideoTile.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,2BAA2B,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAcrH;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;YAEjB,MAAM;yCAEJ,MAAM,+CAEX,QAAQ,IAAI,GAAG,2BAA2B,CAAC;0CACX,MAAM,KAAK,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;kBA4GhE,CAAC"}
|
@@ -4,6 +4,12 @@ import React, { useMemo } from 'react';
|
|
4
4
|
import { StreamMedia } from './StreamMedia';
|
5
5
|
import { useRemoteVideoStreamLifecycleMaintainer } from './VideoGallery/useVideoStreamLifecycleMaintainer';
|
6
6
|
import { VideoTile } from './VideoTile';
|
7
|
+
/* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(PSTN-calls) */
|
8
|
+
import { SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM } from './styles/VideoGallery.styles';
|
9
|
+
/* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(PSTN-calls) */
|
10
|
+
import { _useContainerWidth } from './utils/responsive';
|
11
|
+
/* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(PSTN-calls) */
|
12
|
+
import { _isParticipantStateCallingOrHold } from './utils/common';
|
7
13
|
/**
|
8
14
|
* A memoized version of VideoTile for rendering remote participants. React.memo is used for a performance
|
9
15
|
* boost by memoizing the same rendered component to avoid rerendering a VideoTile when its position in the
|
@@ -13,10 +19,10 @@ import { VideoTile } from './VideoTile';
|
|
13
19
|
*/
|
14
20
|
export const _RemoteVideoTile = React.memo((props) => {
|
15
21
|
const { isAvailable, isReceiving = true, // default to true to prevent any breaking change
|
16
|
-
isMuted, isSpeaking, isScreenSharingOn, onCreateRemoteStreamView, onDisposeRemoteStreamView, remoteVideoViewOptions, renderElement, userId, displayName, onRenderAvatar, showMuteIndicator
|
17
|
-
|
18
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
19
|
-
|
22
|
+
isMuted, isSpeaking, isScreenSharingOn, onCreateRemoteStreamView, onDisposeRemoteStreamView, remoteVideoViewOptions, renderElement, userId, displayName, onRenderAvatar, showMuteIndicator } = props;
|
23
|
+
const containerRef = React.useRef(null);
|
24
|
+
/* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(PSTN-calls) */
|
25
|
+
const containerWidth = _useContainerWidth(containerRef);
|
20
26
|
const remoteVideoStreamProps = useMemo(() => ({
|
21
27
|
isMirrored: remoteVideoViewOptions === null || remoteVideoViewOptions === void 0 ? void 0 : remoteVideoViewOptions.isMirrored,
|
22
28
|
isScreenSharingOn,
|
@@ -49,9 +55,44 @@ export const _RemoteVideoTile = React.memo((props) => {
|
|
49
55
|
}
|
50
56
|
return (React.createElement(StreamMedia, { videoStreamElement: renderElement, loadingState: isReceiving === false ? 'loading' : 'none' }));
|
51
57
|
}, [renderElement, isReceiving]);
|
52
|
-
|
58
|
+
const showLabelTrampoline = useMemo(() => {
|
59
|
+
/* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(PSTN-calls) */
|
60
|
+
return canShowLabel(props.participantState, props.showLabel, containerWidth);
|
61
|
+
return props.showLabel;
|
62
|
+
}, [
|
53
63
|
/* @conditional-compile-remove(one-to-n-calling) */
|
54
64
|
/* @conditional-compile-remove(PSTN-calls) */
|
55
|
-
|
65
|
+
containerWidth,
|
66
|
+
props
|
67
|
+
]);
|
68
|
+
return (
|
69
|
+
// IMPORTANT: This div needs to be a flex so that the children take up its full width and height
|
70
|
+
React.createElement("div", { ref: containerRef, style: { display: 'flex', flexGrow: 1 } },
|
71
|
+
React.createElement(VideoTile, { key: userId, userId: userId, renderElement: renderVideoStreamElement, displayName: displayName, onRenderPlaceholder: onRenderAvatar, isMuted: isMuted, isSpeaking: isSpeaking, showMuteIndicator: showMuteIndicator, personaMinSize: props.personaMinSize, showLabel: showLabelTrampoline,
|
72
|
+
/* @conditional-compile-remove(one-to-n-calling) */
|
73
|
+
/* @conditional-compile-remove(PSTN-calls) */
|
74
|
+
participantState: props.participantState })));
|
56
75
|
});
|
76
|
+
/* @conditional-compile-remove(one-to-n-calling) */
|
77
|
+
/* @conditional-compile-remove(PSTN-calls) */
|
78
|
+
/**
|
79
|
+
* Determines if a label should be shown for a remote video tile.
|
80
|
+
* When the remote video tile is rendered as a small tile in horizontal gallery,
|
81
|
+
* we hide the participants name if they are in hold/connecting states.
|
82
|
+
*/
|
83
|
+
const canShowLabel = (participantState, showLabel, containerWidth) => {
|
84
|
+
// if showLabel has been explicitly set to false, don't show the label
|
85
|
+
if (showLabel === false) {
|
86
|
+
return showLabel;
|
87
|
+
}
|
88
|
+
// If the participant state is in calling or hold and
|
89
|
+
// the container width is less than the small horizontal gallery tile size,
|
90
|
+
// don't show the label (participant name)
|
91
|
+
if (_isParticipantStateCallingOrHold(participantState)) {
|
92
|
+
if (containerWidth && containerWidth / 16 <= SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM.width) {
|
93
|
+
return false;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
return showLabel;
|
97
|
+
};
|
57
98
|
//# sourceMappingURL=RemoteVideoTile.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RemoteVideoTile.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/RemoteVideoTile.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EACL,uCAAuC,EAExC,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;
|
1
|
+
{"version":3,"file":"RemoteVideoTile.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/RemoteVideoTile.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EACL,uCAAuC,EAExC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AChB,UAAU,EAAE,UAAU,EACtB,iBAAiB,EAAE,iBAAiB,EACpC,cAAc,EAAE,KAAK,CAAC,cAAc,EACpC,SAAS,EAAE,mBAAmB;YAC9B,mDAAmD;YACnD,6CAA6C;YAC7C,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,GACxC,CACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,mDAAmD;AACnD,6CAA6C;AAC7C;;;;GAIG;AACH,MAAM,YAAY,GAAG,CACnB,gBAAmC,EACnC,SAAmB,EACnB,cAAuB,EACF,EAAE;IACvB,sEAAsE;IACtE,IAAI,SAAS,KAAK,KAAK,EAAE;QACvB,OAAO,SAAS,CAAC;KAClB;IACD,qDAAqD;IACrD,2EAA2E;IAC3E,0CAA0C;IAC1C,IAAI,gCAAgC,CAAC,gBAAgB,CAAC,EAAE;QACtD,IAAI,cAAc,IAAI,cAAc,GAAG,EAAE,IAAI,sCAAsC,CAAC,KAAK,EAAE;YACzF,OAAO,KAAK,CAAC;SACd;KACF;IAED,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { IStyle } from '@fluentui/react';
|
2
2
|
import React from 'react';
|
3
|
-
import { BaseCustomStyles, OnRenderAvatarCallback
|
3
|
+
import { BaseCustomStyles, OnRenderAvatarCallback } from '../types';
|
4
|
+
import { ParticipantState } from '../types';
|
4
5
|
/**
|
5
6
|
* Strings of {@link VideoTile} that can be overridden.
|
6
7
|
* @beta
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VideoTile.d.ts","sourceRoot":"","sources":["../../../../../../react-components/src/components/VideoTile.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAQ,MAAM,EAAqC,MAAM,iBAAiB,CAAC;AAElF,OAAO,KAAqD,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"VideoTile.d.ts","sourceRoot":"","sources":["../../../../../../react-components/src/components/VideoTile.tsx"],"names":[],"mappings":"AAGA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;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iGAAiG;IACjG,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,iGAAiG;IACjG,UAAU,CAAC,EAAE,OAAO,CAAC;IAIrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IAGpC,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B;AA4BD;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,UAAW,cAAc,KAAG,WAuIjD,CAAC"}
|
@@ -4,37 +4,19 @@ import { Icon, mergeStyles, Persona, Stack, Text } from '@fluentui/react';
|
|
4
4
|
import { Ref } from '@fluentui/react-northstar';
|
5
5
|
import React, { useLayoutEffect, useMemo, useRef, useState } from 'react';
|
6
6
|
import { useIdentifiers } from '../identifiers';
|
7
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
8
|
-
// @conditional-compile-remove(PSTN-calls)
|
9
7
|
import { useLocale } from '../localization';
|
10
8
|
import { useTheme } from '../theming';
|
11
|
-
import { disabledVideoHint, displayNameStyle, iconContainerStyle, isSpeakingBorderDiv, overlayContainerStyles, rootStyles, videoContainerStyles, videoHint, tileInfoContainerStyle,
|
9
|
+
import { disabledVideoHint, displayNameStyle, iconContainerStyle, isSpeakingBorderDiv, overlayContainerStyles, rootStyles, videoContainerStyles, videoHint, tileInfoContainerStyle, participantStateStringStyles } from './styles/VideoTile.styles';
|
12
10
|
import { getVideoTileOverrideColor } from './utils/videoTileStylesUtils';
|
13
11
|
// Coin max size is set to PersonaSize.size100
|
14
12
|
const DEFAULT_PERSONA_MAX_SIZE_PX = 100;
|
15
13
|
// Coin min size is set PersonaSize.size32
|
16
14
|
const DEFAULT_PERSONA_MIN_SIZE_PX = 32;
|
17
15
|
const DefaultPlaceholder = (props) => {
|
18
|
-
const { text, noVideoAvailableAriaLabel, coinSize, hidePersonaDetails
|
19
|
-
const participantStateString = React.useMemo(() => {
|
20
|
-
if (!strings) {
|
21
|
-
return;
|
22
|
-
}
|
23
|
-
if (participantState === 'Idle' || participantState === 'Connecting') {
|
24
|
-
return strings === null || strings === void 0 ? void 0 : strings.participantStateConnecting;
|
25
|
-
}
|
26
|
-
else if (participantState === 'EarlyMedia' || participantState === 'Ringing') {
|
27
|
-
return strings === null || strings === void 0 ? void 0 : strings.participantStateRinging;
|
28
|
-
}
|
29
|
-
else if (participantState === 'Hold') {
|
30
|
-
return strings === null || strings === void 0 ? void 0 : strings.participantStateHold;
|
31
|
-
}
|
32
|
-
return;
|
33
|
-
}, [participantState, strings]);
|
16
|
+
const { text, noVideoAvailableAriaLabel, coinSize, hidePersonaDetails } = props;
|
34
17
|
return (React.createElement(Stack, { className: mergeStyles({ position: 'absolute', height: '100%', width: '100%' }) },
|
35
18
|
React.createElement(Stack, { styles: defaultPersonaStyles },
|
36
|
-
React.createElement(Persona, { coinSize: coinSize, hidePersonaDetails: hidePersonaDetails, text: text !== null && text !== void 0 ? text : '', initialsTextColor: "white", "aria-label": noVideoAvailableAriaLabel !== null && noVideoAvailableAriaLabel !== void 0 ? noVideoAvailableAriaLabel : '', showOverflowTooltip: false })
|
37
|
-
participantStateString && React.createElement(Text, { className: mergeStyles(participantStateStyle) }, participantStateString))));
|
19
|
+
React.createElement(Persona, { coinSize: coinSize, hidePersonaDetails: hidePersonaDetails, text: text !== null && text !== void 0 ? text : '', initialsTextColor: "white", "aria-label": noVideoAvailableAriaLabel !== null && noVideoAvailableAriaLabel !== void 0 ? noVideoAvailableAriaLabel : '', showOverflowTooltip: false }))));
|
38
20
|
};
|
39
21
|
const defaultPersonaStyles = { root: { margin: 'auto', maxHeight: '100%' } };
|
40
22
|
/**
|
@@ -45,15 +27,10 @@ const defaultPersonaStyles = { root: { margin: 'auto', maxHeight: '100%' } };
|
|
45
27
|
* @public
|
46
28
|
*/
|
47
29
|
export const VideoTile = (props) => {
|
48
|
-
const { children, displayName, initialsName, isMirrored, isMuted, onRenderPlaceholder, renderElement, showLabel = true, showMuteIndicator = true, styles, userId, noVideoAvailableAriaLabel, isSpeaking, personaMinSize = DEFAULT_PERSONA_MIN_SIZE_PX, personaMaxSize = DEFAULT_PERSONA_MAX_SIZE_PX
|
49
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
50
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
51
|
-
participantState } = props;
|
52
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
53
|
-
// @conditional-compile-remove(PSTN-calls)
|
54
|
-
const strings = Object.assign(Object.assign({}, useLocale().strings.videoTile), props.strings);
|
30
|
+
const { children, displayName, initialsName, isMirrored, isMuted, onRenderPlaceholder, renderElement, showLabel = true, showMuteIndicator = true, styles, userId, noVideoAvailableAriaLabel, isSpeaking, personaMinSize = DEFAULT_PERSONA_MIN_SIZE_PX, personaMaxSize = DEFAULT_PERSONA_MAX_SIZE_PX } = props;
|
55
31
|
const [personaSize, setPersonaSize] = useState(100);
|
56
32
|
const videoTileRef = useRef(null);
|
33
|
+
const locale = useLocale();
|
57
34
|
const theme = useTheme();
|
58
35
|
const isVideoRendered = !!renderElement;
|
59
36
|
const observer = useRef(new ResizeObserver((entries) => {
|
@@ -74,14 +51,13 @@ export const VideoTile = (props) => {
|
|
74
51
|
noVideoAvailableAriaLabel,
|
75
52
|
coinSize: personaSize,
|
76
53
|
styles: defaultPersonaStyles,
|
77
|
-
hidePersonaDetails: true
|
78
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
79
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
80
|
-
participantState: participantState
|
54
|
+
hidePersonaDetails: true
|
81
55
|
};
|
82
56
|
const videoHintWithBorderRadius = mergeStyles(videoHint, { borderRadius: theme.effects.roundedCorner4 });
|
83
57
|
const tileInfoStyle = useMemo(() => mergeStyles(isVideoRendered ? videoHintWithBorderRadius : disabledVideoHint, getVideoTileOverrideColor(isVideoRendered, theme, 'neutralPrimary'), styles === null || styles === void 0 ? void 0 : styles.displayNameContainer), [isVideoRendered, videoHintWithBorderRadius, theme, styles === null || styles === void 0 ? void 0 : styles.displayNameContainer]);
|
84
58
|
const ids = useIdentifiers();
|
59
|
+
const canShowLabel = showLabel && (displayName || (showMuteIndicator && isMuted));
|
60
|
+
const participantStateString = participantStateStringTrampoline(props, locale);
|
85
61
|
return (React.createElement(Ref, { innerRef: videoTileRef },
|
86
62
|
React.createElement(Stack, { "data-ui-id": ids.videoTile, className: mergeStyles(rootStyles, {
|
87
63
|
background: theme.palette.neutralLighter,
|
@@ -91,15 +67,33 @@ export const VideoTile = (props) => {
|
|
91
67
|
borderRadius: theme.effects.roundedCorner4,
|
92
68
|
border: `0.25rem solid ${isSpeaking ? theme.palette.themePrimary : 'transparent'}`
|
93
69
|
}) }),
|
94
|
-
isVideoRendered ? (React.createElement(Stack, { className: mergeStyles(videoContainerStyles, isMirrored && { transform: 'scaleX(-1)' }, styles === null || styles === void 0 ? void 0 : styles.videoContainer) }, renderElement)) : (React.createElement(Stack, { className: mergeStyles(videoContainerStyles) }, onRenderPlaceholder ? (onRenderPlaceholder(userId !== null && userId !== void 0 ? userId : '', placeholderOptions, DefaultPlaceholder)) : (React.createElement(DefaultPlaceholder, Object.assign({}, placeholderOptions,
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
showLabel && (displayName || (showMuteIndicator && isMuted)) && (React.createElement(Stack, { horizontal: true, className: tileInfoContainerStyle },
|
99
|
-
React.createElement(Stack, { horizontal: true, className: tileInfoStyle },
|
100
|
-
displayName && (React.createElement(Text, { className: mergeStyles(displayNameStyle), title: displayName }, displayName)),
|
70
|
+
isVideoRendered ? (React.createElement(Stack, { className: mergeStyles(videoContainerStyles, isMirrored && { transform: 'scaleX(-1)' }, styles === null || styles === void 0 ? void 0 : styles.videoContainer) }, renderElement)) : (React.createElement(Stack, { className: mergeStyles(videoContainerStyles) }, onRenderPlaceholder ? (onRenderPlaceholder(userId !== null && userId !== void 0 ? userId : '', placeholderOptions, DefaultPlaceholder)) : (React.createElement(DefaultPlaceholder, Object.assign({}, placeholderOptions))))),
|
71
|
+
(canShowLabel || participantStateString) && (React.createElement(Stack, { horizontal: true, className: tileInfoContainerStyle, tokens: tileInfoContainerTokens },
|
72
|
+
canShowLabel && (React.createElement(Stack, { horizontal: true, className: tileInfoStyle },
|
73
|
+
React.createElement(Text, { className: mergeStyles(displayNameStyle), title: displayName }, displayName),
|
101
74
|
showMuteIndicator && isMuted && (React.createElement(Stack, { className: mergeStyles(iconContainerStyle) },
|
102
|
-
React.createElement(Icon, { iconName: "VideoTileMicOff" })))))
|
75
|
+
React.createElement(Icon, { iconName: "VideoTileMicOff" }))))),
|
76
|
+
participantStateString && (React.createElement(Text, { className: mergeStyles(participantStateStringStyles(showLabel)) }, participantStateString)))),
|
103
77
|
children && (React.createElement(Stack, { className: mergeStyles(overlayContainerStyles, styles === null || styles === void 0 ? void 0 : styles.overlayContainer) }, children)))));
|
104
78
|
};
|
79
|
+
const participantStateStringTrampoline = (props, locale) => {
|
80
|
+
/* @conditional-compile-remove(one-to-n-calling) */
|
81
|
+
/* @conditional-compile-remove(PSTN-calls) */
|
82
|
+
const strings = Object.assign(Object.assign({}, locale.strings.videoTile), props.strings);
|
83
|
+
/* @conditional-compile-remove(one-to-n-calling) */
|
84
|
+
/* @conditional-compile-remove(PSTN-calls) */
|
85
|
+
return props.participantState === 'Idle' || props.participantState === 'Connecting'
|
86
|
+
? strings === null || strings === void 0 ? void 0 : strings.participantStateConnecting
|
87
|
+
: props.participantState === 'EarlyMedia' || props.participantState === 'Ringing'
|
88
|
+
? strings === null || strings === void 0 ? void 0 : strings.participantStateRinging
|
89
|
+
: props.participantState === 'Hold'
|
90
|
+
? strings === null || strings === void 0 ? void 0 : strings.participantStateHold
|
91
|
+
: undefined;
|
92
|
+
return undefined;
|
93
|
+
};
|
94
|
+
const tileInfoContainerTokens = {
|
95
|
+
// A horizontal Stack sets the left margin to 0 for all it's children.
|
96
|
+
// We need to allow the children to set their own margins
|
97
|
+
childrenGap: 'none'
|
98
|
+
};
|
105
99
|
//# sourceMappingURL=VideoTile.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VideoTile.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/VideoTile.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,IAAI,EAAU,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAC;AAChD,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,
|
1
|
+
{"version":3,"file":"VideoTile.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/VideoTile.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,IAAI,EAAU,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAC;AAChD,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAmB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,UAAU,EACV,oBAAoB,EACpB,SAAS,EACT,sBAAsB,EACtB,4BAA4B,EAC7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,yBAAyB,EAA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AC;AACJ,CAAC,CAAC;AAEF,MAAM,gCAAgC,GAAG,CAAC,KAAqB,EAAE,MAAuB,EAAsB,EAAE;IAC9G,mDAAmD;IACnD,6CAA6C;IAC7C,MAAM,OAAO,mCAAQ,MAAM,CAAC,OAAO,CAAC,SAAS,GAAK,KAAK,CAAC,OAAO,CAAE,CAAC;IAClE,mDAAmD;IACnD,6CAA6C;IAC7C,OAAO,KAAK,CAAC,gBAAgB,KAAK,MAAM,IAAI,KAAK,CAAC,gBAAgB,KAAK,YAAY;QACjF,CAAC,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,0BAA0B;QACrC,CAAC,CAAC,KAAK,CAAC,gBAAgB,KAAK,YAAY,IAAI,KAAK,CAAC,gBAAgB,KAAK,SAAS;YACjF,CAAC,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,uBAAuB;YAClC,CAAC,CAAC,KAAK,CAAC,gBAAgB,KAAK,MAAM;gBACnC,CAAC,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,oBAAoB;gBAC/B,CAAC,CAAC,SAAS,CAAC;IAEd,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,uBAAuB,GAAG;IAC9B,sEAAsE;IACtE,yDAAyD;IACzD,WAAW,EAAE,MAAM;CACpB,CAAC"}
|
@@ -30,13 +30,13 @@ export declare const displayNameStyle: IStyle;
|
|
30
30
|
/**
|
31
31
|
* @private
|
32
32
|
*/
|
33
|
-
export declare const
|
33
|
+
export declare const iconContainerStyle: IStyle;
|
34
34
|
/**
|
35
35
|
* @private
|
36
36
|
*/
|
37
|
-
export declare const
|
37
|
+
export declare const isSpeakingBorderDiv: IStyle;
|
38
38
|
/**
|
39
39
|
* @private
|
40
40
|
*/
|
41
|
-
export declare const
|
41
|
+
export declare const participantStateStringStyles: (showLabel: boolean) => IStyle;
|
42
42
|
//# sourceMappingURL=VideoTile.styles.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VideoTile.styles.d.ts","sourceRoot":"","sources":["../../../../../../../react-components/src/components/styles/VideoTile.styles.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAe,MAAM,iBAAiB,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,MAIxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAWlC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAIpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,QAKjC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAS5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,SAAS,QAGpB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAS9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,
|
1
|
+
{"version":3,"file":"VideoTile.styles.d.ts","sourceRoot":"","sources":["../../../../../../../react-components/src/components/styles/VideoTile.styles.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAe,MAAM,iBAAiB,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,MAIxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAWlC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAIpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,QAKjC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAS5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,SAAS,QAGpB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAS9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAMhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MASjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B,cAAe,OAAO,KAAG,MAejE,CAAC"}
|
@@ -74,15 +74,6 @@ export const displayNameStyle = {
|
|
74
74
|
textOverflow: 'ellipsis',
|
75
75
|
maxWidth: '100%'
|
76
76
|
};
|
77
|
-
/**
|
78
|
-
* @private
|
79
|
-
*/
|
80
|
-
export const participantStateStyle = {
|
81
|
-
textAlign: 'center',
|
82
|
-
paddingTop: '0.5rem',
|
83
|
-
fontWeight: 600,
|
84
|
-
fontSize: '0.75rem'
|
85
|
-
};
|
86
77
|
/**
|
87
78
|
* @private
|
88
79
|
*/
|
@@ -106,4 +97,23 @@ export const isSpeakingBorderDiv = {
|
|
106
97
|
// Ensure the isSpeaking element does not steal any pointer events such as onClick events
|
107
98
|
pointerEvents: 'none'
|
108
99
|
};
|
100
|
+
/**
|
101
|
+
* @private
|
102
|
+
*/
|
103
|
+
export const participantStateStringStyles = (showLabel) => {
|
104
|
+
return {
|
105
|
+
textAlign: 'center',
|
106
|
+
minWidth: '3rem',
|
107
|
+
color: 'inherit',
|
108
|
+
width: showLabel ? 'auto' : '100%',
|
109
|
+
marginRight: showLabel ? 0 : 'none',
|
110
|
+
marginLeft: showLabel ? 'auto' : 'none',
|
111
|
+
fontSize: '0.75rem',
|
112
|
+
lineHeight: 'normal',
|
113
|
+
overflow: 'hidden',
|
114
|
+
textOverflow: 'ellipsis',
|
115
|
+
whiteSpace: 'nowrap',
|
116
|
+
padding: '0.25rem'
|
117
|
+
};
|
118
|
+
};
|
109
119
|
//# sourceMappingURL=VideoTile.styles.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VideoTile.styles.js","sourceRoot":"","sources":["../../../../../../../react-components/src/components/styles/VideoTile.styles.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAU,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEtD;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAW;IAChC,QAAQ,EAAE,UAAU;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H,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,QAAQ;IAClB,YAAY,EAAE,UAAU;IACxB,QAAQ,EAAE,MAAM;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"VideoTile.styles.js","sourceRoot":"","sources":["../../../../../../../react-components/src/components/styles/VideoTile.styles.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAU,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEtD;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAW;IAChC,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,MAAM;CACd,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAW;IAC1C,QAAQ,EAAE,UAAU;IACpB,GAAG,EAAE,GAAG;IACR,IAAI,EAAE,GAAG;IACT,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,MAAM;IAChB,SAAS,EAAE,MAAM;IACjB,cAAc,EAAE,QAAQ;IACxB,SAAS,EAAE,OAAO;IAClB,MAAM,EAAE,CAAC;CACV,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAW;IAC5C,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,CAAC;CACV,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,WAAW,CAAC;IAChD,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,mBAAmB;CAC3B,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,WAAW,CAAC;IAC3C,eAAe,EAAE,SAAS;IAC1B,SAAS,EAAE,MAAM;IACjB,SAAS,EAAE,MAAM;IACjB,QAAQ,EAAE,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AS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;QACvC,QAAQ,EAAE,SAAS;QACnB,UAAU,EAAE,QAAQ;QACpB,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,UAAU;QACxB,UAAU,EAAE,QAAQ;QACpB,OAAO,EAAE,SAAS;KACnB,CAAC;AACJ,CAAC,CAAC"}
|
@@ -1,7 +1,12 @@
|
|
1
1
|
import { _FileUploadCardsStrings } from '../FileUploadCards';
|
2
|
+
import { ParticipantState } from '../../types';
|
2
3
|
/**
|
3
4
|
* Conditionally modify locale strings passed to the file card
|
4
5
|
* @returns file upload card strings
|
5
6
|
*/
|
6
7
|
export declare const useLocaleFileCardStringsTrampoline: () => _FileUploadCardsStrings;
|
8
|
+
/**
|
9
|
+
* Identify if a participant state if part of the Calling states or Hold states.
|
10
|
+
*/
|
11
|
+
export declare const _isParticipantStateCallingOrHold: (participantState?: ParticipantState | undefined) => boolean;
|
7
12
|
//# sourceMappingURL=common.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../../../react-components/src/components/utils/common.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../../../react-components/src/components/utils/common.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAG7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C;;;GAGG;AACH,eAAO,MAAM,kCAAkC,QAAO,uBAQrD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gCAAgC,uDAA0C,OAEtF,CAAC"}
|
@@ -15,4 +15,10 @@ export const useLocaleFileCardStringsTrampoline = () => {
|
|
15
15
|
uploading: ''
|
16
16
|
};
|
17
17
|
};
|
18
|
+
/**
|
19
|
+
* Identify if a participant state if part of the Calling states or Hold states.
|
20
|
+
*/
|
21
|
+
export const _isParticipantStateCallingOrHold = (participantState) => {
|
22
|
+
return !!participantState && ['Idle', 'Connecting', 'EarlyMedia', 'Ringing', 'Hold'].includes(participantState);
|
23
|
+
};
|
18
24
|
//# sourceMappingURL=common.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../../react-components/src/components/utils/common.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,+CAA+C;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../../react-components/src/components/utils/common.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,+CAA+C;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C;;;GAGG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,GAA4B,EAAE;IAC9E,+CAA+C;IAC/C,OAAO,SAAS,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;IACnC,OAAO;QACL,UAAU,EAAE,EAAE;QACd,eAAe,EAAE,EAAE;QACnB,SAAS,EAAE,EAAE;KACd,CAAC;AACJ,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,gBAAmC,EAAW,EAAE;IAC/F,OAAO,CAAC,CAAC,gBAAgB,IAAI,CAAC,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;AAClH,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PermissionsProvider.d.ts","sourceRoot":"","sources":["../../../../../../react-components/src/permissions/PermissionsProvider.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD;;GAEG;AACH,oBAAY,YAAY,GAAG;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,OAAO,CAAC;IACrB,
|
1
|
+
{"version":3,"file":"PermissionsProvider.d.ts","sourceRoot":"","sources":["../../../../../../react-components/src/permissions/PermissionsProvider.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD;;GAEG;AACH,oBAAY,YAAY,GAAG;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,OAAO,CAAC;IACrB,uBAAuB,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,YAKlC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,YAKjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,YAKjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,6BAAoD,CAAC;AAEpF;;;;GAIG;AACH,oBAAY,yBAAyB,GAAG;IACtC,+CAA+C;IAC/C,WAAW,EAAE,YAAY,CAAC;IAC1B,0CAA0C;IAC1C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,UAAW,yBAAyB,KAAG,WAGvE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAO,YAA8C,CAAC;AAElF;;GAEG;AACH,oBAAY,IAAI,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,eAAe,+BAAkB,YAQ7C,CAAC"}
|
@@ -8,7 +8,7 @@ export const presenterPermissions = {
|
|
8
8
|
cameraButton: true,
|
9
9
|
microphoneButton: true,
|
10
10
|
screenShare: true,
|
11
|
-
|
11
|
+
removeParticipantButton: true
|
12
12
|
};
|
13
13
|
/**
|
14
14
|
* @internal
|
@@ -17,7 +17,7 @@ export const consumerPermissions = {
|
|
17
17
|
cameraButton: false,
|
18
18
|
microphoneButton: false,
|
19
19
|
screenShare: false,
|
20
|
-
|
20
|
+
removeParticipantButton: false
|
21
21
|
};
|
22
22
|
/**
|
23
23
|
* @internal
|
@@ -26,7 +26,7 @@ export const attendeePermissions = {
|
|
26
26
|
cameraButton: true,
|
27
27
|
microphoneButton: true,
|
28
28
|
screenShare: false,
|
29
|
-
|
29
|
+
removeParticipantButton: false
|
30
30
|
};
|
31
31
|
/**
|
32
32
|
* @internal
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PermissionsProvider.js","sourceRoot":"","sources":["../../../../../../react-components/src/permissions/PermissionsProvider.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAYzD;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAiB;IAChD,YAAY,EAAE,IAAI;IAClB,gBAAgB,EAAE,IAAI;IACtB,WAAW,EAAE,IAAI;IACjB,
|
1
|
+
{"version":3,"file":"PermissionsProvider.js","sourceRoot":"","sources":["../../../../../../react-components/src/permissions/PermissionsProvider.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAYzD;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAiB;IAChD,YAAY,EAAE,IAAI;IAClB,gBAAgB,EAAE,IAAI;IACtB,WAAW,EAAE,IAAI;IACjB,uBAAuB,EAAE,IAAI;CAC9B,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAiB;IAC/C,YAAY,EAAE,KAAK;IACnB,gBAAgB,EAAE,KAAK;IACvB,WAAW,EAAE,K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