@azure/communication-react 1.4.3-alpha-202301050013.0 → 1.4.3-alpha-202301070013.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.
Files changed (38) hide show
  1. package/dist/communication-react.d.ts +4 -3
  2. package/dist/dist-cjs/communication-react/index.js +73 -80
  3. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  4. package/dist/dist-esm/acs-ui-common/src/identifier.js +3 -47
  5. package/dist/dist-esm/acs-ui-common/src/identifier.js.map +1 -1
  6. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  7. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  8. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +2 -1
  9. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  10. package/dist/dist-esm/calling-stateful-client/src/Converter.js +1 -1
  11. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  12. package/dist/dist-esm/react-components/src/components/ParticipantItem.js +4 -2
  13. package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
  14. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.d.ts +1 -1
  15. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js +12 -1
  16. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js.map +1 -1
  17. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js +13 -1
  18. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js.map +1 -1
  19. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.d.ts +1 -1
  20. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js +12 -1
  21. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js.map +1 -1
  22. package/dist/dist-esm/react-components/src/components/VideoGallery.js +1 -2
  23. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  24. package/dist/dist-esm/react-components/src/components/VideoTile.js +16 -17
  25. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  26. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +5 -3
  27. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  28. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.d.ts +2 -0
  29. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js +14 -5
  30. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js.map +1 -1
  31. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.d.ts +1 -0
  32. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +11 -2
  33. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  34. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.js +1 -1
  35. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.js.map +1 -1
  36. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js +1 -0
  37. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js.map +1 -1
  38. package/package.json +9 -9
@@ -26,6 +26,7 @@ import { CallClientOptions } from '@azure/communication-calling';
26
26
  import { CallDirection } from '@azure/communication-calling';
27
27
  import { CallEndReason } from '@azure/communication-calling';
28
28
  import { CallerInfo } from '@azure/communication-calling';
29
+ import { CallKind } from '@azure/communication-calling';
29
30
  import { CallState as CallState_2 } from '@azure/communication-calling';
30
31
  import { ChatClient } from '@azure/communication-chat';
31
32
  import { ChatClientOptions } from '@azure/communication-chat';
@@ -1887,7 +1888,7 @@ export declare interface CallState {
1887
1888
  /**
1888
1889
  * Type of the call.
1889
1890
  */
1890
- type: 'Teams' | 'ACS';
1891
+ kind: CallKind;
1891
1892
  /**
1892
1893
  * Proxy of {@link @azure/communication-calling#Call.callerInfo}.
1893
1894
  */
@@ -7838,7 +7839,7 @@ export declare interface UnsupportedBrowserProps {
7838
7839
  /** Handler to perform an action when the help link is actioned */
7839
7840
  onTroubleshootingClick?: () => void;
7840
7841
  /** String overrides for the component */
7841
- strings: UnsupportedBrowserStrings;
7842
+ strings?: UnsupportedBrowserStrings;
7842
7843
  }
7843
7844
 
7844
7845
  /**
@@ -7909,7 +7910,7 @@ export declare interface UnsupportedOperatingSystemProps {
7909
7910
  /** Handler to perform a action when the help link is actioned */
7910
7911
  onTroubleshootingClick?: () => void;
7911
7912
  /** String overrides for the component */
7912
- strings: UnsupportedOperatingSystemStrings;
7913
+ strings?: UnsupportedOperatingSystemStrings;
7913
7914
  }
7914
7915
 
7915
7916
  /**
@@ -123,12 +123,6 @@ const memoizeFnAll = (fnToMemoize, shouldCacheUpdate = Object.is) => {
123
123
  };
124
124
 
125
125
  // Copyright (c) Microsoft Corporation.
126
- const COMMUNICATION_USER_PREFIX = '8:acs:';
127
- const PHONE_NUMBER_PREFIX = '4:';
128
- const TEAMS_DOD_PREFIX = '8:dod:';
129
- const TEAMS_GCCH_PREFIX = '8:gcch:';
130
- const TEAMS_USER_PREFIX = '8:orgid:';
131
- const TEAMS_VISITOR_PREFIX = '8:teamsvisitor:';
132
126
  /**
133
127
  * A string representation of a {@link @azure/communication-common#CommunicationIdentifier}.
134
128
  *
@@ -140,25 +134,7 @@ const TEAMS_VISITOR_PREFIX = '8:teamsvisitor:';
140
134
  * @public
141
135
  */
142
136
  const toFlatCommunicationIdentifier = (identifier) => {
143
- if (communicationCommon.isCommunicationUserIdentifier(identifier)) {
144
- return identifier.communicationUserId;
145
- }
146
- if (communicationCommon.isMicrosoftTeamsUserIdentifier(identifier)) {
147
- if (identifier.isAnonymous) {
148
- return TEAMS_VISITOR_PREFIX + identifier.microsoftTeamsUserId;
149
- }
150
- if (identifier.cloud === 'dod') {
151
- return TEAMS_DOD_PREFIX + identifier.microsoftTeamsUserId;
152
- }
153
- if (identifier.cloud === 'gcch') {
154
- return TEAMS_GCCH_PREFIX + identifier.microsoftTeamsUserId;
155
- }
156
- return TEAMS_USER_PREFIX + identifier.microsoftTeamsUserId;
157
- }
158
- if (communicationCommon.isPhoneNumberIdentifier(identifier)) {
159
- return PHONE_NUMBER_PREFIX + identifier.phoneNumber;
160
- }
161
- return identifier.id;
137
+ return communicationCommon.getIdentifierRawId(identifier);
162
138
  };
163
139
  /**
164
140
  * Reverse operation of {@link toFlatCommunicationIdentifier}.
@@ -166,27 +142,7 @@ const toFlatCommunicationIdentifier = (identifier) => {
166
142
  * @public
167
143
  */
168
144
  const fromFlatCommunicationIdentifier = (id) => {
169
- if (id.startsWith(COMMUNICATION_USER_PREFIX)) {
170
- // The prefix is preserved for this variant of the identifier.
171
- return { communicationUserId: id };
172
- }
173
- if (id.startsWith(PHONE_NUMBER_PREFIX) || id.startsWith('+')) {
174
- const isPhoneNumber = id.startsWith(PHONE_NUMBER_PREFIX) ? id.replace(PHONE_NUMBER_PREFIX, '') : id;
175
- return { phoneNumber: isPhoneNumber };
176
- }
177
- if (id.startsWith(TEAMS_USER_PREFIX)) {
178
- return { microsoftTeamsUserId: id.replace(TEAMS_USER_PREFIX, '') };
179
- }
180
- if (id.startsWith(TEAMS_DOD_PREFIX)) {
181
- return { microsoftTeamsUserId: id.replace(TEAMS_DOD_PREFIX, ''), cloud: 'dod' };
182
- }
183
- if (id.startsWith(TEAMS_GCCH_PREFIX)) {
184
- return { microsoftTeamsUserId: id.replace(TEAMS_GCCH_PREFIX, ''), cloud: 'gcch' };
185
- }
186
- if (id.startsWith(TEAMS_VISITOR_PREFIX)) {
187
- return { microsoftTeamsUserId: id.replace(TEAMS_VISITOR_PREFIX, ''), isAnonymous: true };
188
- }
189
- return { id };
145
+ return communicationCommon.createIdentifierFromRawId(id);
190
146
  };
191
147
  /**
192
148
  * Returns a CommunicationIdentifier.
@@ -202,7 +158,7 @@ const _toCommunicationIdentifier = (id) => {
202
158
  // Copyright (c) Microsoft Corporation.
203
159
  // Licensed under the MIT license.
204
160
  // GENERATED FILE. DO NOT EDIT MANUALLY.
205
- var telemetryVersion = '1.4.3-alpha-202301050013.0';
161
+ var telemetryVersion = '1.4.3-alpha-202301070013.0';
206
162
 
207
163
  // Copyright (c) Microsoft Corporation.
208
164
  /**
@@ -1886,7 +1842,7 @@ function convertSdkCallToDeclarativeCall(call) {
1886
1842
  return {
1887
1843
  id: call.id,
1888
1844
  /* @conditional-compile-remove(teams-identity-support) */
1889
- type: _isACSCall(call) ? 'ACS' : 'Teams',
1845
+ kind: _isACSCall(call) ? 'Call' : 'TeamsCall',
1890
1846
  callerInfo: call.callerInfo,
1891
1847
  state: call.state,
1892
1848
  callEndReason: call.callEndReason,
@@ -7609,13 +7565,15 @@ const ParticipantItem = (props) => {
7609
7565
  const localeStrings = useLocale$1().strings.participantItem;
7610
7566
  const ids = useIdentifiers();
7611
7567
  const strings = Object.assign(Object.assign({}, localeStrings), props.strings);
7568
+ // For 'me' show empty name so avatar will get 'Person' icon, when there is no name
7569
+ const meAvatarText = (displayName === null || displayName === void 0 ? void 0 : displayName.trim()) || '';
7612
7570
  const avatarOptions = {
7613
- text: (displayName === null || displayName === void 0 ? void 0 : displayName.trim()) || strings.displayNamePlaceholder,
7571
+ text: me ? meAvatarText : (displayName === null || displayName === void 0 ? void 0 : displayName.trim()) || strings.displayNamePlaceholder,
7614
7572
  size: react.PersonaSize.size32,
7615
7573
  presence: presence,
7616
7574
  initialsTextColor: 'white',
7617
7575
  showOverflowTooltip: showParticipantOverflowTooltip,
7618
- showUnknownPersonaCoin: !(displayName === null || displayName === void 0 ? void 0 : displayName.trim()) || displayName === strings.displayNamePlaceholder
7576
+ showUnknownPersonaCoin: !me && (!(displayName === null || displayName === void 0 ? void 0 : displayName.trim()) || displayName === strings.displayNamePlaceholder)
7619
7577
  };
7620
7578
  const avatar = onRenderAvatar ? (onRenderAvatar(userId !== null && userId !== void 0 ? userId : '', avatarOptions)) : (React__default['default'].createElement(react.Persona, Object.assign({ className: react.mergeStyles({
7621
7579
  // Prevents persona text from being vertically truncated if a global line height is less than 1.15.
@@ -8519,7 +8477,7 @@ const VideoTile = (props) => {
8519
8477
  ]);
8520
8478
  const placeholderOptions = {
8521
8479
  userId,
8522
- text: initialsName || displayName,
8480
+ text: initialsName !== null && initialsName !== void 0 ? initialsName : displayName,
8523
8481
  noVideoAvailableAriaLabel,
8524
8482
  coinSize: personaSize,
8525
8483
  styles: defaultPersonaStyles,
@@ -8530,21 +8488,21 @@ const VideoTile = (props) => {
8530
8488
  const ids = useIdentifiers();
8531
8489
  const canShowLabel = showLabel && (displayName || (showMuteIndicator && isMuted));
8532
8490
  const participantStateString = participantStateStringTrampoline(props, locale);
8533
- return (React__default['default'].createElement(reactNorthstar.Ref, { innerRef: videoTileRef },
8534
- React__default['default'].createElement(react.Stack, Object.assign({ "data-ui-id": ids.videoTile, className: react.mergeStyles(rootStyles, {
8535
- background: theme.palette.neutralLighter,
8536
- borderRadius: theme.effects.roundedCorner4
8537
- }, isSpeaking && {
8538
- '&::before': {
8539
- content: `''`,
8540
- position: 'absolute',
8541
- zIndex: 1,
8542
- border: `0.25rem solid ${theme.palette.themePrimary}`,
8543
- borderRadius: theme.effects.roundedCorner4,
8544
- width: '100%',
8545
- height: '100%'
8546
- }
8547
- }, styles === null || styles === void 0 ? void 0 : styles.root) }, longPressHandlersTrampoline),
8491
+ return (React__default['default'].createElement(react.Stack, Object.assign({ "data-ui-id": ids.videoTile, className: react.mergeStyles(rootStyles, {
8492
+ background: theme.palette.neutralLighter,
8493
+ borderRadius: theme.effects.roundedCorner4
8494
+ }, isSpeaking && {
8495
+ '&::before': {
8496
+ content: `''`,
8497
+ position: 'absolute',
8498
+ zIndex: 1,
8499
+ border: `0.25rem solid ${theme.palette.themePrimary}`,
8500
+ borderRadius: theme.effects.roundedCorner4,
8501
+ width: '100%',
8502
+ height: '100%'
8503
+ }
8504
+ }, styles === null || styles === void 0 ? void 0 : styles.root) }, longPressHandlersTrampoline),
8505
+ React__default['default'].createElement("div", { ref: videoTileRef, style: { width: '100%', height: '100%' } },
8548
8506
  isVideoRendered ? (React__default['default'].createElement(react.Stack, { className: react.mergeStyles(videoContainerStyles, isMirrored && { transform: 'scaleX(-1)' }, styles === null || styles === void 0 ? void 0 : styles.videoContainer) }, renderElement)) : (React__default['default'].createElement(react.Stack, { className: react.mergeStyles(videoContainerStyles), style: { opacity: participantStateString ? 0.4 : 1 } }, onRenderPlaceholder ? (onRenderPlaceholder(userId !== null && userId !== void 0 ? userId : '', placeholderOptions, DefaultPlaceholder)) : (React__default['default'].createElement(DefaultPlaceholder, Object.assign({}, placeholderOptions))))),
8549
8507
  (canShowLabel || participantStateString) && (React__default['default'].createElement(react.Stack, { horizontal: true, className: tileInfoContainerStyle, tokens: tileInfoContainerTokens },
8550
8508
  React__default['default'].createElement(react.Stack, { horizontal: true, className: tileInfoStyle },
@@ -10288,7 +10246,7 @@ const VideoGallery = (props) => {
10288
10246
  const localVideoTileStyles = react.concatStyleSets(shouldFloatLocalVideo ? floatingLocalVideoTileStyle : {}, {
10289
10247
  root: { borderRadius: theme.effects.roundedCorner4 }
10290
10248
  }, styles === null || styles === void 0 ? void 0 : styles.localVideo);
10291
- const initialsName = !localParticipant.displayName ? strings.displayNamePlaceholder : localParticipant.displayName;
10249
+ const initialsName = !localParticipant.displayName ? '' : localParticipant.displayName;
10292
10250
  return (React__default['default'].createElement(react.Stack, { key: "local-video-tile-key", tabIndex: 0, "aria-label": strings.localVideoMovementLabel, role: 'dialog' },
10293
10251
  React__default['default'].createElement(_LocalVideoTile, { userId: localParticipant.userId, onCreateLocalStreamView: onCreateLocalStreamView, onDisposeLocalStreamView: onDisposeLocalStreamView, isAvailable: (_a = localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.videoStream) === null || _a === void 0 ? void 0 : _a.isAvailable, isMuted: localParticipant.isMuted, renderElement: (_b = localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.videoStream) === null || _b === void 0 ? void 0 : _b.renderElement, displayName: isNarrow ? '' : strings.localVideoLabel, initialsName: initialsName, localVideoViewOptions: localVideoViewOptions, onRenderAvatar: onRenderAvatar, showLabel: !(shouldFloatLocalVideo && isNarrow), showMuteIndicator: showMuteIndicator, showCameraSwitcherInLocalPreview: showCameraSwitcherInLocalPreview, localVideoCameraCycleButtonProps: localVideoCameraCycleButtonProps, localVideoCameraSwitcherLabel: strings.localVideoCameraSwitcherLabel, localVideoSelectedDescription: strings.localVideoSelectedDescription, styles: localVideoTileStyles })));
10294
10252
  }, [
@@ -10307,7 +10265,6 @@ const VideoGallery = (props) => {
10307
10265
  strings.localVideoLabel,
10308
10266
  strings.localVideoMovementLabel,
10309
10267
  strings.localVideoSelectedDescription,
10310
- strings.displayNamePlaceholder,
10311
10268
  styles === null || styles === void 0 ? void 0 : styles.localVideo,
10312
10269
  theme.effects.roundedCorner4,
10313
10270
  /* @conditional-compile-remove(rooms) */ permissions.cameraButton
@@ -12117,7 +12074,12 @@ const UnsupportedEnvironment = (props) => {
12117
12074
  */
12118
12075
  const UnsupportedBrowser = (props) => {
12119
12076
  const { onTroubleshootingClick, strings } = props;
12120
- return React__default['default'].createElement(UnsupportedEnvironment, { onTroubleshootingClick: onTroubleshootingClick, strings: strings });
12077
+ const locale = useLocale$1();
12078
+ return (React__default['default'].createElement(UnsupportedEnvironment, { onTroubleshootingClick: onTroubleshootingClick, strings: Object.assign(Object.assign({}, unsupportedBrowserStringsTrampoline(locale)), strings) }));
12079
+ };
12080
+ const unsupportedBrowserStringsTrampoline = (locale) => {
12081
+ /* @conditional-compile-remove(unsupported-browser) */
12082
+ return locale.strings.UnsupportedBrowser;
12121
12083
  };
12122
12084
 
12123
12085
  // Copyright (c) Microsoft Corporation.
@@ -12129,7 +12091,12 @@ const UnsupportedBrowser = (props) => {
12129
12091
  */
12130
12092
  const UnsupportedBrowserVersion = (props) => {
12131
12093
  const { onTroubleshootingClick, strings, onContinueAnywayClick } = props;
12132
- return (React__default['default'].createElement(UnsupportedEnvironment, { onTroubleshootingClick: onTroubleshootingClick, strings: strings, onContinueAnywayClick: onContinueAnywayClick }));
12094
+ const locale = useLocale$1();
12095
+ return (React__default['default'].createElement(UnsupportedEnvironment, { onTroubleshootingClick: onTroubleshootingClick, strings: Object.assign(Object.assign({}, unsupportedBrowserVersionStringsTrampoline(locale)), strings), onContinueAnywayClick: onContinueAnywayClick }));
12096
+ };
12097
+ const unsupportedBrowserVersionStringsTrampoline = (locale) => {
12098
+ /* @conditional-compile-remove(unsupported-browser) */
12099
+ return locale.strings.UnsupportedBrowserVersion;
12133
12100
  };
12134
12101
 
12135
12102
  // Copyright (c) Microsoft Corporation.
@@ -12140,7 +12107,12 @@ const UnsupportedBrowserVersion = (props) => {
12140
12107
  */
12141
12108
  const UnsupportedOperatingSystem = (props) => {
12142
12109
  const { onTroubleshootingClick, strings } = props;
12143
- return React__default['default'].createElement(UnsupportedEnvironment, { onTroubleshootingClick: onTroubleshootingClick, strings: strings });
12110
+ const locale = useLocale$1();
12111
+ return (React__default['default'].createElement(UnsupportedEnvironment, { onTroubleshootingClick: onTroubleshootingClick, strings: Object.assign(Object.assign({}, unsupportedOperatingSystemStringsTrampoline(locale)), strings) }));
12112
+ };
12113
+ const unsupportedOperatingSystemStringsTrampoline = (locale) => {
12114
+ /* @conditional-compile-remove(unsupported-browser) */
12115
+ return locale.strings.UnsupportedOperatingSystem;
12144
12116
  };
12145
12117
 
12146
12118
  // Copyright (c) Microsoft Corporation.
@@ -17669,6 +17641,7 @@ const modalLayerHostStyle = {
17669
17641
  width: '100%',
17670
17642
  height: '100%',
17671
17643
  overflow: 'hidden',
17644
+ zIndex: '100000',
17672
17645
  // pointer events for layerHost set to none to make descendants interactive
17673
17646
  pointerEvents: 'none'
17674
17647
  };
@@ -18573,7 +18546,7 @@ const createAnnouncmentString = (direction, participants, strings) => {
18573
18546
  * Filter participants into two arrays to put all the unnamed participants at the back of the
18574
18547
  * names being announced.
18575
18548
  */
18576
- const unnamedParticipants = participants.filter((p) => p.displayName === undefined);
18549
+ const unnamedParticipants = participants.filter((p) => !p.displayName);
18577
18550
  const namedParicipants = participants.filter((p) => p.displayName);
18578
18551
  const sortedParticipants = namedParicipants.concat(unnamedParticipants);
18579
18552
  /**
@@ -19487,7 +19460,10 @@ const CallReadinessModal = (props) => {
19487
19460
  return (React__default['default'].createElement(React__default['default'].Fragment, null, isPermissionsModalDismissed && (React__default['default'].createElement(_DrawerSurface, { onLightDismiss: onLightDismissTriggered, styles: drawerContainerStyles(DRAWER_HIGH_Z_BAND) }, modal()))));
19488
19461
  }
19489
19462
  else if (!mobileView && modal !== undefined) {
19490
- return (React__default['default'].createElement(react.Modal, { isOpen: isPermissionsModalDismissed, isBlocking: false, onDismiss: () => {
19463
+ return (React__default['default'].createElement(_ModalClone, { styles: {
19464
+ root: { position: 'unset' },
19465
+ main: { position: 'absolute', left: '50%', top: '50%', transform: 'translate(-50%, -50%)' }
19466
+ }, layerProps: { hostId: props.modalLayerHostId }, isOpen: isPermissionsModalDismissed, isBlocking: false, onDismiss: () => {
19491
19467
  setIsPermissionsModalDismissed(false);
19492
19468
  }, overlay: { styles: { root: { background: 'rgba(0,0,0,0.9)' } } } }, modal()));
19493
19469
  }
@@ -19562,7 +19538,10 @@ const CallReadinessModalFallBack = (props) => {
19562
19538
  }
19563
19539
  else {
19564
19540
  return (React__default['default'].createElement(React__default['default'].Fragment, null,
19565
- (checkPermissionModalShowing || audioState === 'prompt' || videoState === 'prompt') && (React__default['default'].createElement(react.Modal, { isOpen: isPermissionsModalDismissed, isBlocking: false, onDismiss: () => {
19541
+ (checkPermissionModalShowing || audioState === 'prompt' || videoState === 'prompt') && (React__default['default'].createElement(_ModalClone, { styles: {
19542
+ root: { position: 'unset' },
19543
+ main: { position: 'absolute', left: '50%', top: '50%', transform: 'translate(-50%, -50%)' }
19544
+ }, layerProps: { hostId: props.modalLayerHostId }, isOpen: isPermissionsModalDismissed, isBlocking: false, onDismiss: () => {
19566
19545
  setIsPermissionsModalDismissed(false);
19567
19546
  }, overlay: { styles: { root: { background: 'rgba(0,0,0,0.9)' } } } },
19568
19547
  React__default['default'].createElement(CameraAndMicrophoneSitePermissions, { appName: 'app',
@@ -19572,7 +19551,10 @@ const CallReadinessModalFallBack = (props) => {
19572
19551
  onPermissionsTroubleshootingClick(permissionsState);
19573
19552
  }
19574
19553
  : undefined, type: "check" }))),
19575
- !checkPermissionModalShowing && modal !== undefined && (React__default['default'].createElement(react.Modal, { isOpen: isPermissionsModalDismissed, isBlocking: false, onDismiss: () => {
19554
+ !checkPermissionModalShowing && modal !== undefined && (React__default['default'].createElement(_ModalClone, { styles: {
19555
+ root: { position: 'unset' },
19556
+ main: { position: 'absolute', left: '50%', top: '50%', transform: 'translate(-50%, -50%)' }
19557
+ }, layerProps: { hostId: props.modalLayerHostId }, isOpen: isPermissionsModalDismissed, isBlocking: false, onDismiss: () => {
19576
19558
  setIsPermissionsModalDismissed(false);
19577
19559
  }, overlay: { styles: { root: { background: 'rgba(0,0,0,0.9)' } } } }, modal()))));
19578
19560
  }
@@ -19585,6 +19567,7 @@ const CallReadinessModalFallBack = (props) => {
19585
19567
  const ConfigurationPage = (props) => {
19586
19568
  var _a, _b;
19587
19569
  const { startCallHandler, mobileView,
19570
+ /* @conditional-compile-remove(call-readiness) */ modalLayerHostId,
19588
19571
  /* @conditional-compile-remove(call-readiness) */ deviceChecks,
19589
19572
  /* @conditional-compile-remove(call-readiness) */ onPermissionsTroubleshootingClick,
19590
19573
  /* @conditional-compile-remove(call-readiness) */ onNetworkingTroubleShootingClick } = props;
@@ -19687,12 +19670,20 @@ const ConfigurationPage = (props) => {
19687
19670
  onPermissionsTroubleshootingClick: onPermissionsTroubleshootingClick, errorBarProps: errorBarProps })),
19688
19671
  /* @conditional-compile-remove(call-readiness) */
19689
19672
  // show the following screen if permission API is availible (not unsupported) and videoState, audioState is assigned values
19690
- videoState && videoState !== 'unsupported' && audioState && audioState !== 'unsupported' && (React__default['default'].createElement(CallReadinessModal, { mobileView: mobileView,
19673
+ videoState && videoState !== 'unsupported' && audioState && audioState !== 'unsupported' && (React__default['default'].createElement(CallReadinessModal
19674
+ /* @conditional-compile-remove(call-readiness) */
19675
+ , {
19676
+ /* @conditional-compile-remove(call-readiness) */
19677
+ modalLayerHostId: modalLayerHostId, mobileView: mobileView,
19691
19678
  /* @conditional-compile-remove(unsupported-browser) */
19692
19679
  environmentInfo: environmentInfo, permissionsState: permissionsState, isPermissionsModalDismissed: isPermissionsModalDismissed, setIsPermissionsModalDismissed: setIsPermissionsModalDismissed, onPermissionsTroubleshootingClick: onPermissionsTroubleshootingClick })),
19693
19680
  /* @conditional-compile-remove(call-readiness) */
19694
19681
  // show the following screen if permission API is not availible (unsupported) and videoState, audioState is assigned values
19695
- videoState && audioState && (videoState === 'unsupported' || audioState === 'unsupported') && (React__default['default'].createElement(CallReadinessModalFallBack, { mobileView: mobileView, checkPermissionModalShowing: forceShowingCheckPermissions, permissionsState: permissionsState, isPermissionsModalDismissed: isPermissionsModalDismissed,
19682
+ videoState && audioState && (videoState === 'unsupported' || audioState === 'unsupported') && (React__default['default'].createElement(CallReadinessModalFallBack
19683
+ /* @conditional-compile-remove(call-readiness) */
19684
+ , {
19685
+ /* @conditional-compile-remove(call-readiness) */
19686
+ modalLayerHostId: modalLayerHostId, mobileView: mobileView, checkPermissionModalShowing: forceShowingCheckPermissions, permissionsState: permissionsState, isPermissionsModalDismissed: isPermissionsModalDismissed,
19696
19687
  /* @conditional-compile-remove(unsupported-browser) */
19697
19688
  environmentInfo: environmentInfo, setIsPermissionsModalDismissed: setIsPermissionsModalDismissed, onPermissionsTroubleshootingClick: onPermissionsTroubleshootingClick })),
19698
19689
  React__default['default'].createElement(react.Stack, { grow: true, horizontal: !mobileWithPreview, horizontalAlign: mobileWithPreview ? 'stretch' : 'center', verticalAlign: "center", tokens: mobileWithPreview ? configurationStackTokensMobile : configurationStackTokensDesktop },
@@ -20174,6 +20165,8 @@ const MainScreen = (props) => {
20174
20165
  adapter.joinCall();
20175
20166
  },
20176
20167
  /* @conditional-compile-remove(call-readiness) */
20168
+ modalLayerHostId: props.modalLayerHostId,
20169
+ /* @conditional-compile-remove(call-readiness) */
20177
20170
  deviceChecks: (_a = props.options) === null || _a === void 0 ? void 0 : _a.deviceChecks,
20178
20171
  /* @conditional-compile-remove(call-readiness) */
20179
20172
  onPermissionsTroubleshootingClick: (_b = props.options) === null || _b === void 0 ? void 0 : _b.onPermissionsTroubleshootingClick,
@@ -20261,7 +20254,7 @@ const CallComposite = (props) => {
20261
20254
  React__default['default'].createElement(BaseProvider, Object.assign({}, props),
20262
20255
  React__default['default'].createElement(CallAdapterProvider, { adapter: adapter },
20263
20256
  React__default['default'].createElement(MainScreen, { callInvitationUrl: callInvitationUrl, onFetchAvatarPersonaData: onFetchAvatarPersonaData, onFetchParticipantMenuItems: onFetchParticipantMenuItems, mobileView: mobileView,
20264
- /* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
20257
+ /* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) @conditional-compile-remove(call-readiness) */
20265
20258
  modalLayerHostId: modalLayerHostId, options: options,
20266
20259
  /* @conditional-compile-remove(rooms) */
20267
20260
  roleHint: roleHint }),
@@ -20273,8 +20266,8 @@ const CallComposite = (props) => {
20273
20266
  // Warning: this is fragile and works because the call arrangement page is only rendered after the call has connected and thus this
20274
20267
  // LayerHost will be guaranteed to have rendered (and subsequently mounted in the DOM). This ensures the DOM element will be available
20275
20268
  // before the call to `document.getElementById(modalLayerHostId)` is made.
20276
- /* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
20277
- mobileView && React__default['default'].createElement(react.LayerHost, { id: modalLayerHostId, className: react.mergeStyles(modalLayerHostStyle) })))));
20269
+ /* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) @conditional-compile-remove(call-readiness) */
20270
+ React__default['default'].createElement(react.LayerHost, { id: modalLayerHostId, className: react.mergeStyles(modalLayerHostStyle) })))));
20278
20271
  };
20279
20272
  const holdPageTrampoline = () => {
20280
20273
  /* @conditional-compile-remove(one-to-n-calling) */