@azure/communication-react 1.3.3-alpha-202210060021.0 → 1.3.3-alpha-202210080019.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 +182 -4
- package/dist/dist-cjs/communication-react/index.js +230 -188
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.d.ts +2 -0
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +9 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.d.ts +2 -1
- package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js +7 -0
- package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
- package/dist/dist-esm/communication-react/src/index.d.ts +3 -1
- package/dist/dist-esm/communication-react/src/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/BrowserPermissionDenied.d.ts +69 -0
- package/dist/dist-esm/react-components/src/components/BrowserPermissionDenied.js +35 -0
- package/dist/dist-esm/react-components/src/components/BrowserPermissionDenied.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/BrowserPermissionDeniedIOS.d.ts +75 -0
- package/dist/dist-esm/react-components/src/components/BrowserPermissionDeniedIOS.js +57 -0
- package/dist/dist-esm/react-components/src/components/BrowserPermissionDeniedIOS.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/DevicePermissionDropdown.d.ts +20 -2
- package/dist/dist-esm/react-components/src/components/DevicePermissionDropdown.js +6 -2
- package/dist/dist-esm/react-components/src/components/DevicePermissionDropdown.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/DomainPermissions.d.ts +8 -0
- package/dist/dist-esm/react-components/src/components/DomainPermissions.js +4 -3
- package/dist/dist-esm/react-components/src/components/DomainPermissions.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/index.d.ts +5 -1
- package/dist/dist-esm/react-components/src/components/index.js +4 -0
- package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.d.ts +58 -0
- package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js +144 -0
- package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/styles/DomainPermissions.styles.d.ts +5 -1
- package/dist/dist-esm/react-components/src/components/styles/DomainPermissions.styles.js +12 -1
- package/dist/dist-esm/react-components/src/components/styles/DomainPermissions.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +6 -0
- package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
- package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +24 -2
- package/dist/dist-esm/react-components/src/theming/icons.d.ts +1 -0
- package/dist/dist-esm/react-components/src/theming/icons.js +12 -1
- package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +13 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +11 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js +2 -1
- 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/CallControls.js +1 -1
- 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/ConfigurationpageCameraDropdown.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageCameraDropdown.js +1 -19
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageCameraDropdown.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageMicDropdown.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageMicDropdown.js +1 -20
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageMicDropdown.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +11 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +4 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.d.ts +13 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js +26 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +1 -0
- package/package.json +8 -8
@@ -52,6 +52,7 @@ import { IContextualMenuItemStyles } from '@fluentui/react';
|
|
52
52
|
import { IContextualMenuStyles } from '@fluentui/react';
|
53
53
|
import { IDropdownOption } from '@fluentui/react';
|
54
54
|
import { IDropdownStyles } from '@fluentui/react';
|
55
|
+
import { ILinkStyles } from '@fluentui/react';
|
55
56
|
import { IMessageBarProps } from '@fluentui/react';
|
56
57
|
import { IncomingCall } from '@azure/communication-calling';
|
57
58
|
import { IPersonaStyleProps } from '@fluentui/react';
|
@@ -355,6 +356,136 @@ export declare interface BaseCustomStyles {
|
|
355
356
|
root?: IStyle;
|
356
357
|
}
|
357
358
|
|
359
|
+
/**
|
360
|
+
* @beta
|
361
|
+
* Props for BrowserPermissionDeniedIOS component.
|
362
|
+
*/
|
363
|
+
export declare interface BrowserPermissionDeniedIOSProps extends BrowserPermissionDeniedProps {
|
364
|
+
/**
|
365
|
+
* Localization strings for BrowserPermissionDeniedIOS component.
|
366
|
+
*/
|
367
|
+
strings: BrowserPermissionDeniedIOSStrings;
|
368
|
+
/**
|
369
|
+
* Link to image source.
|
370
|
+
*
|
371
|
+
* Image is inserted into the top of the component.
|
372
|
+
*/
|
373
|
+
imageSource?: string;
|
374
|
+
}
|
375
|
+
|
376
|
+
/**
|
377
|
+
* @beta
|
378
|
+
* Strings for BrowserPermissionDeniedIOS component
|
379
|
+
*/
|
380
|
+
export declare interface BrowserPermissionDeniedIOSStrings extends BrowserPermissionDeniedStrings {
|
381
|
+
/**
|
382
|
+
* Image alt text
|
383
|
+
*/
|
384
|
+
imageAltText: string;
|
385
|
+
/**
|
386
|
+
* Main text string.
|
387
|
+
*/
|
388
|
+
primaryText: string;
|
389
|
+
/**
|
390
|
+
* Subtext string.
|
391
|
+
*/
|
392
|
+
secondaryText: string;
|
393
|
+
/**
|
394
|
+
* Step 1 string
|
395
|
+
*/
|
396
|
+
step1Text: string;
|
397
|
+
/**
|
398
|
+
* Step 1 digit string
|
399
|
+
*/
|
400
|
+
step1DigitText: string;
|
401
|
+
/**
|
402
|
+
* Step 2 string
|
403
|
+
*/
|
404
|
+
step2Text: string;
|
405
|
+
/**
|
406
|
+
* Step 2 digit string
|
407
|
+
*/
|
408
|
+
step2DigitText: string;
|
409
|
+
/**
|
410
|
+
* Step 3 string
|
411
|
+
*/
|
412
|
+
step3Text: string;
|
413
|
+
/**
|
414
|
+
* Step 3 digit string
|
415
|
+
*/
|
416
|
+
step3DigitText: string;
|
417
|
+
/**
|
418
|
+
* Step 4 string
|
419
|
+
*/
|
420
|
+
step4Text: string;
|
421
|
+
/**
|
422
|
+
* Step 4 digit string
|
423
|
+
*/
|
424
|
+
step4DigitText: string;
|
425
|
+
}
|
426
|
+
|
427
|
+
/**
|
428
|
+
* @beta
|
429
|
+
* Props for BrowserPermissionDenied component.
|
430
|
+
*/
|
431
|
+
export declare interface BrowserPermissionDeniedProps {
|
432
|
+
/**
|
433
|
+
* Action to be taken by the more help link. Possible to send to external page or show other modal.
|
434
|
+
*/
|
435
|
+
onTroubleshootingClick: () => void;
|
436
|
+
/**
|
437
|
+
* Action to be taken by the try again primary button.
|
438
|
+
*/
|
439
|
+
onTryAgainClick: () => void;
|
440
|
+
/**
|
441
|
+
* Localization strings for BrowserPermissionDenied component.
|
442
|
+
*/
|
443
|
+
strings: BrowserPermissionDeniedStrings;
|
444
|
+
/**
|
445
|
+
* Allows users to pass in an object contains custom CSS styles.
|
446
|
+
* @Example
|
447
|
+
* ```
|
448
|
+
* <BrowserPermissionDenied styles={{ primaryButton: { root: {backgroundColor: 'blue' }}}} />
|
449
|
+
* ```
|
450
|
+
*/
|
451
|
+
styles?: BrowserPermissionDeniedStyles;
|
452
|
+
}
|
453
|
+
|
454
|
+
/**
|
455
|
+
* @beta
|
456
|
+
* Strings for BrowserPermissionDenied component
|
457
|
+
*/
|
458
|
+
export declare interface BrowserPermissionDeniedStrings {
|
459
|
+
/**
|
460
|
+
* Main button text string.
|
461
|
+
*/
|
462
|
+
primaryButtonText: string;
|
463
|
+
/**
|
464
|
+
* Main text string.
|
465
|
+
*/
|
466
|
+
primaryText: string;
|
467
|
+
/**
|
468
|
+
* Subtext string.
|
469
|
+
*/
|
470
|
+
secondaryText: string;
|
471
|
+
/**
|
472
|
+
* More help link string.
|
473
|
+
*/
|
474
|
+
linkText: string;
|
475
|
+
}
|
476
|
+
|
477
|
+
/**
|
478
|
+
* Fluent styles for {@link BrowserPermissionDenied}.
|
479
|
+
*
|
480
|
+
* @beta
|
481
|
+
*/
|
482
|
+
export declare interface BrowserPermissionDeniedStyles extends BaseCustomStyles {
|
483
|
+
/** Styles for the primary button. */
|
484
|
+
primaryButton?: IButtonStyles;
|
485
|
+
/** Styles for the help troubleshooting link text. */
|
486
|
+
troubleshootingLink?: ILinkStyles;
|
487
|
+
}
|
488
|
+
|
358
489
|
/**
|
359
490
|
* {@link CallComposite} Adapter interface.
|
360
491
|
*
|
@@ -1011,6 +1142,19 @@ export declare type CallCompositeOptions = {
|
|
1011
1142
|
* if this is not supplied, the composite will not show a 'network troubleshooting' link.
|
1012
1143
|
*/
|
1013
1144
|
onNetworkingTroubleShootingClick?: () => void;
|
1145
|
+
/**
|
1146
|
+
* Callback you may provide to supply users with a provided page to showcase supported browsers by ACS.
|
1147
|
+
*
|
1148
|
+
* @example
|
1149
|
+
* ```ts
|
1150
|
+
* onBrowserTroubleShootingClick?: () =>
|
1151
|
+
* window.open('https://contoso.com/browser-troubleshooting', '_blank');
|
1152
|
+
* ```
|
1153
|
+
*
|
1154
|
+
* @remarks
|
1155
|
+
* if this is not supplied, the composite will not show a unsupported browser page.
|
1156
|
+
*/
|
1157
|
+
onEnvironmentInfoTroubleshootingClick?: () => void;
|
1014
1158
|
};
|
1015
1159
|
|
1016
1160
|
/**
|
@@ -1018,7 +1162,7 @@ export declare type CallCompositeOptions = {
|
|
1018
1162
|
*
|
1019
1163
|
* @public
|
1020
1164
|
*/
|
1021
|
-
export declare type CallCompositePage = 'accessDeniedTeamsMeeting' | 'call' | 'configuration' | /* @conditional-compile-remove(PSTN-calls) */ 'hold' | 'joinCallFailedDueToNoNetwork' | 'leftCall' | 'lobby' | /* @conditional-compile-remove(rooms) */ 'deniedPermissionToRoom' | 'removedFromCall' | /* @conditional-compile-remove(rooms) */ 'roomNotFound';
|
1165
|
+
export declare type CallCompositePage = 'accessDeniedTeamsMeeting' | 'call' | 'configuration' | /* @conditional-compile-remove(PSTN-calls) */ 'hold' | 'joinCallFailedDueToNoNetwork' | 'leftCall' | 'lobby' | /* @conditional-compile-remove(rooms) */ 'deniedPermissionToRoom' | 'removedFromCall' | /* @conditional-compile-remove(rooms) */ 'roomNotFound' | /* @conditional-compile-remove(unsupported-browser) */ 'unsupportedEnvironment';
|
1022
1166
|
|
1023
1167
|
/**
|
1024
1168
|
* Props for {@link CallComposite}.
|
@@ -1534,6 +1678,7 @@ export declare type CallingHandlers = {
|
|
1534
1678
|
onDisposeRemoteStreamView: (userId: string) => Promise<void>;
|
1535
1679
|
onDisposeLocalStreamView: () => Promise<void>;
|
1536
1680
|
onSendDtmfTone: (dtmfTone: DtmfTone_2) => Promise<void>;
|
1681
|
+
askDevicePermission: (constrain: PermissionConstraints) => Promise<void>;
|
1537
1682
|
};
|
1538
1683
|
|
1539
1684
|
/**
|
@@ -3365,6 +3510,10 @@ export declare interface ComponentStrings {
|
|
3365
3510
|
DomainPermissions: DomainPermissionsStrings;
|
3366
3511
|
/** Strings for unsupported browser UI */
|
3367
3512
|
UnsupportedBrowser: UnsupportedBrowserStrings;
|
3513
|
+
/** Strings for BrowserPemissionDenied */
|
3514
|
+
BrowserPermissionDenied: BrowserPermissionDeniedStrings;
|
3515
|
+
/** Strings for BrowserPemissionDeniedIOS */
|
3516
|
+
BrowserPermissionDeniedIOS: BrowserPermissionDeniedIOSStrings;
|
3368
3517
|
}
|
3369
3518
|
|
3370
3519
|
/**
|
@@ -4076,6 +4225,7 @@ export declare const DEFAULT_COMPONENT_ICONS: {
|
|
4076
4225
|
DomainPermissionCamera: JSX.Element;
|
4077
4226
|
DomainPermissionMic: JSX.Element;
|
4078
4227
|
UnsupportedBrowserWarning: JSX.Element;
|
4228
|
+
BrowserPermissionDeniedError: JSX.Element;
|
4079
4229
|
};
|
4080
4230
|
|
4081
4231
|
/**
|
@@ -4168,6 +4318,7 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
|
|
4168
4318
|
DomainPermissionCamera: JSX.Element;
|
4169
4319
|
DomainPermissionMic: JSX.Element;
|
4170
4320
|
UnsupportedBrowserWarning: JSX.Element;
|
4321
|
+
BrowserPermissionDeniedError: JSX.Element;
|
4171
4322
|
};
|
4172
4323
|
|
4173
4324
|
/**
|
@@ -4247,9 +4398,18 @@ export declare interface _DevicePermissionDropdownProps {
|
|
4247
4398
|
*/
|
4248
4399
|
options?: IDropdownOption[];
|
4249
4400
|
/**
|
4250
|
-
*
|
4401
|
+
* Ask for permissions of devices.
|
4402
|
+
*
|
4403
|
+
* @remarks
|
4404
|
+
* Browser permission window will pop up if permissions are not granted yet
|
4405
|
+
*
|
4406
|
+
* @param constrain - Define constraints for accessing local devices {@link @azure/communication-calling#PermissionConstraints }
|
4407
|
+
*/
|
4408
|
+
askDevicePermission?(constrain: _PermissionConstraints): Promise<void>;
|
4409
|
+
/**
|
4410
|
+
* Define constraints for accessing local devices {@link @azure/communication-calling#PermissionConstraints }
|
4251
4411
|
*/
|
4252
|
-
|
4412
|
+
constrain?: _PermissionConstraints;
|
4253
4413
|
/**
|
4254
4414
|
* Strings for devicepermissiondropdown
|
4255
4415
|
*/
|
@@ -4559,6 +4719,10 @@ export declare interface DomainPermissionsProps {
|
|
4559
4719
|
* Action to be taken by the more help link. Possible to send to external page or show other modal.
|
4560
4720
|
*/
|
4561
4721
|
onTroubleshootingClick: () => void;
|
4722
|
+
/**
|
4723
|
+
* Action to be taken by the Allow Access button.
|
4724
|
+
*/
|
4725
|
+
onAllowAccessClick?: () => void;
|
4562
4726
|
/**
|
4563
4727
|
* Localization strings for DomainPermissions component.
|
4564
4728
|
*/
|
@@ -4582,6 +4746,10 @@ export declare interface DomainPermissionsStrings {
|
|
4582
4746
|
* More help link string.
|
4583
4747
|
*/
|
4584
4748
|
linkText: string;
|
4749
|
+
/**
|
4750
|
+
* Primary button text string.
|
4751
|
+
*/
|
4752
|
+
primaryButtonText: string;
|
4585
4753
|
}
|
4586
4754
|
|
4587
4755
|
/**
|
@@ -5046,7 +5214,7 @@ export declare const fromFlatCommunicationIdentifier: (id: string) => Communicat
|
|
5046
5214
|
*
|
5047
5215
|
* @public
|
5048
5216
|
*/
|
5049
|
-
export declare type GetCallingSelector<Component extends (props: any) => JSX.Element | undefined> = AreEqual<Component, typeof VideoGallery> extends true ? VideoGallerySelector : AreEqual<Component, typeof DevicesButton> extends true ? DevicesButtonSelector : AreEqual<Component, typeof MicrophoneButton> extends true ? MicrophoneButtonSelector : AreEqual<Component, typeof CameraButton> extends true ? CameraButtonSelector : AreEqual<Component, typeof ScreenShareButton> extends true ? ScreenShareButtonSelector : AreEqual<Component, typeof ParticipantList> extends true ? ParticipantListSelector : AreEqual<Component, typeof ParticipantsButton> extends true ? ParticipantsButtonSelector : AreEqual<Component, typeof EndCallButton> extends true ? EmptySelector : AreEqual<Component, typeof ErrorBar> extends true ? CallErrorBarSelector : AreEqual<Component, typeof Dialpad> extends true ? EmptySelector : AreEqual<Component, typeof HoldButton> extends true ? HoldButtonSelector : undefined;
|
5217
|
+
export declare type GetCallingSelector<Component extends (props: any) => JSX.Element | undefined> = AreEqual<Component, typeof VideoGallery> extends true ? VideoGallerySelector : AreEqual<Component, typeof DevicesButton> extends true ? DevicesButtonSelector : AreEqual<Component, typeof MicrophoneButton> extends true ? MicrophoneButtonSelector : AreEqual<Component, typeof CameraButton> extends true ? CameraButtonSelector : AreEqual<Component, typeof ScreenShareButton> extends true ? ScreenShareButtonSelector : AreEqual<Component, typeof ParticipantList> extends true ? ParticipantListSelector : AreEqual<Component, typeof ParticipantsButton> extends true ? ParticipantsButtonSelector : AreEqual<Component, typeof EndCallButton> extends true ? EmptySelector : AreEqual<Component, typeof ErrorBar> extends true ? CallErrorBarSelector : AreEqual<Component, typeof Dialpad> extends true ? EmptySelector : AreEqual<Component, typeof HoldButton> extends true ? HoldButtonSelector : AreEqual<Component, typeof _DevicePermissionDropdown> extends true ? EmptySelector : undefined;
|
5050
5218
|
|
5051
5219
|
/**
|
5052
5220
|
* Get the selector for a specified component.
|
@@ -6460,6 +6628,16 @@ export declare type ParticipantsRemovedListener = (event: {
|
|
6460
6628
|
*/
|
6461
6629
|
export declare type ParticipantState = 'Idle' | 'Connecting' | 'Ringing' | 'Connected' | 'Hold' | 'InLobby' | 'EarlyMedia' | 'Disconnected';
|
6462
6630
|
|
6631
|
+
/**
|
6632
|
+
* Define constraints for accessing local devices {@link @azure/communication-calling#PermissionConstraints }
|
6633
|
+
*
|
6634
|
+
* @internal
|
6635
|
+
*/
|
6636
|
+
export declare type _PermissionConstraints = {
|
6637
|
+
audio: boolean;
|
6638
|
+
video: boolean;
|
6639
|
+
};
|
6640
|
+
|
6463
6641
|
/**
|
6464
6642
|
* An array of key value pairs that stores each sender's display name and last read message
|
6465
6643
|
*
|