@azure/communication-react 1.4.2-alpha-202211040017.0 → 1.4.2-alpha-202211080016.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 (74) hide show
  1. package/dist/communication-react.d.ts +153 -42
  2. package/dist/dist-cjs/communication-react/index.js +186 -75
  3. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  4. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  5. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  6. package/dist/dist-esm/communication-react/src/index.d.ts +2 -2
  7. package/dist/dist-esm/communication-react/src/index.js +1 -1
  8. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  9. package/dist/dist-esm/react-components/src/components/{BrowserPermissionDenied.d.ts → DevicePermissions/BrowserPermissionDenied.d.ts} +1 -1
  10. package/dist/dist-esm/react-components/src/components/{BrowserPermissionDenied.js → DevicePermissions/BrowserPermissionDenied.js} +3 -3
  11. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js.map +1 -0
  12. package/dist/dist-esm/react-components/src/components/{BrowserPermissionDeniedIOS.d.ts → DevicePermissions/BrowserPermissionDeniedIOS.d.ts} +0 -0
  13. package/dist/dist-esm/react-components/src/components/{BrowserPermissionDeniedIOS.js → DevicePermissions/BrowserPermissionDeniedIOS.js} +3 -3
  14. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js.map +1 -0
  15. package/dist/dist-esm/react-components/src/components/{DevicePermissionDropdown.d.ts → DevicePermissions/DevicePermissionDropdown.d.ts} +0 -0
  16. package/dist/dist-esm/react-components/src/components/{DevicePermissionDropdown.js → DevicePermissions/DevicePermissionDropdown.js} +0 -0
  17. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.js.map +1 -0
  18. package/dist/dist-esm/react-components/src/components/DevicePermissions/DomainPermissions.d.ts +101 -0
  19. package/dist/dist-esm/react-components/src/components/DevicePermissions/DomainPermissions.js +80 -0
  20. package/dist/dist-esm/react-components/src/components/DevicePermissions/DomainPermissions.js.map +1 -0
  21. package/dist/dist-esm/react-components/src/components/DevicePermissions/DomainPermissionsScaffolding.d.ts +86 -0
  22. package/dist/dist-esm/react-components/src/components/DevicePermissions/DomainPermissionsScaffolding.js +27 -0
  23. package/dist/dist-esm/react-components/src/components/DevicePermissions/DomainPermissionsScaffolding.js.map +1 -0
  24. package/dist/dist-esm/react-components/src/components/index.d.ts +9 -8
  25. package/dist/dist-esm/react-components/src/components/index.js +4 -4
  26. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  27. package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js +0 -2
  28. package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js.map +1 -1
  29. package/dist/dist-esm/react-components/src/components/utils/merge.d.ts +7 -0
  30. package/dist/dist-esm/react-components/src/components/utils/merge.js +16 -0
  31. package/dist/dist-esm/react-components/src/components/utils/merge.js.map +1 -0
  32. package/dist/dist-esm/react-components/src/components/utils.d.ts +1 -1
  33. package/dist/dist-esm/react-components/src/components/utils.js +0 -1
  34. package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
  35. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +21 -5
  36. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  37. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +55 -2
  38. package/dist/dist-esm/react-components/src/theming/icons.d.ts +2 -0
  39. package/dist/dist-esm/react-components/src/theming/icons.js +24 -16
  40. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  41. package/dist/dist-esm/react-components/src/theming/icons.styles.d.ts +6 -0
  42. package/dist/dist-esm/react-components/src/theming/icons.styles.js +25 -0
  43. package/dist/dist-esm/react-components/src/theming/icons.styles.js.map +1 -0
  44. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +4 -2
  45. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +17 -13
  46. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  47. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  48. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +14 -12
  49. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  50. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +4 -4
  51. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  52. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.js +1 -1
  53. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.js.map +1 -1
  54. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +5 -5
  55. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  56. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.js +1 -1
  57. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.js.map +1 -1
  58. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.d.ts +1 -1
  59. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
  60. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +1 -1
  61. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
  62. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
  63. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.d.ts +1 -1
  64. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.js.map +1 -1
  65. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.d.ts +1 -1
  66. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js.map +1 -1
  67. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +2 -0
  68. package/package.json +8 -8
  69. package/dist/dist-esm/react-components/src/components/BrowserPermissionDenied.js.map +0 -1
  70. package/dist/dist-esm/react-components/src/components/BrowserPermissionDeniedIOS.js.map +0 -1
  71. package/dist/dist-esm/react-components/src/components/DevicePermissionDropdown.js.map +0 -1
  72. package/dist/dist-esm/react-components/src/components/DomainPermissions.d.ts +0 -57
  73. package/dist/dist-esm/react-components/src/components/DomainPermissions.js +0 -45
  74. package/dist/dist-esm/react-components/src/components/DomainPermissions.js.map +0 -1
@@ -1,57 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * @beta
4
- * Props for DomainPermissions component.
5
- */
6
- export interface DomainPermissionsProps {
7
- /**
8
- * Name of application calling experience is in.
9
- */
10
- appName: string;
11
- /**
12
- * Action to be taken by the more help link. Possible to send to external page or show other modal.
13
- */
14
- onTroubleshootingClick?: () => void;
15
- /**
16
- * Action to be taken by the Allow Access button.
17
- */
18
- onAllowAccessClick?: () => void;
19
- /**
20
- * Localization strings for DomainPermissions component.
21
- */
22
- strings?: DomainPermissionsStrings;
23
- }
24
- /**
25
- * @beta
26
- * Strings for DomainPermissions component
27
- */
28
- export interface DomainPermissionsStrings {
29
- /**
30
- * Main text string.
31
- */
32
- primaryText: string;
33
- /**
34
- * Subtext string.
35
- */
36
- secondaryText: string;
37
- /**
38
- * More help link string.
39
- */
40
- linkText: string;
41
- /**
42
- * Primary button text string.
43
- */
44
- primaryButtonText: string;
45
- /**
46
- * Aira label describing the content of the container
47
- */
48
- ariaLabel: string;
49
- }
50
- /**
51
- * @beta
52
- *
53
- * Component to allow Contoso to help their end user with their devices should their permissions be blocked
54
- * by their browsers settings.
55
- */
56
- export declare const DomainPermissions: (props: DomainPermissionsProps) => JSX.Element;
57
- //# sourceMappingURL=DomainPermissions.d.ts.map
@@ -1,45 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- import React from 'react';
4
- /* @conditional-compile-remove(call-readiness) */
5
- import { Stack, Text, Link, Icon, useTheme, PrimaryButton } from '@fluentui/react';
6
- /* @conditional-compile-remove(call-readiness) */
7
- import { useLocale } from '../localization';
8
- /* @conditional-compile-remove(call-readiness) */
9
- import { _formatString } from "../../../acs-ui-common/src";
10
- /* @conditional-compile-remove(call-readiness) */
11
- import { iconContainerStyles, iconPrimaryStyles, linkTextStyles, primaryButtonStyles, primaryTextStyles, secondaryTextStyles, sparkleIconBackdropStyles, textContainerStyles } from './styles/DomainPermissions.styles';
12
- /* @conditional-compile-remove(call-readiness) */
13
- import { isValidString } from './utils';
14
- /* @conditional-compile-remove(call-readiness) */
15
- const DomainPermissionsContainer = (props) => {
16
- const { appName, onTroubleshootingClick, onAllowAccessClick, strings } = props;
17
- const theme = useTheme();
18
- return (React.createElement(Stack, { style: { padding: '2rem', maxWidth: '25.375rem' }, "aria-label": strings === null || strings === void 0 ? void 0 : strings.ariaLabel },
19
- React.createElement(Stack, { horizontal: true, style: { paddingBottom: '1rem' }, horizontalAlign: 'space-between' },
20
- React.createElement(Stack, { styles: iconContainerStyles, horizontalAlign: 'center' },
21
- React.createElement(Icon, { styles: iconPrimaryStyles, iconName: 'DomainPermissionCamera' })),
22
- React.createElement(Stack, { styles: iconContainerStyles, horizontalAlign: 'center' },
23
- React.createElement(Icon, { styles: sparkleIconBackdropStyles(theme), iconName: 'DomainPermissionsSparkle' })),
24
- React.createElement(Stack, { styles: iconContainerStyles, horizontalAlign: 'center' },
25
- React.createElement(Icon, { styles: iconPrimaryStyles, iconName: 'DomainPermissionMic' }))),
26
- React.createElement(Stack, { styles: textContainerStyles },
27
- strings && isValidString(strings === null || strings === void 0 ? void 0 : strings.primaryText) && (React.createElement(Text, { styles: primaryTextStyles }, _formatString(strings.primaryText, { appName: appName }))),
28
- strings && isValidString(strings === null || strings === void 0 ? void 0 : strings.secondaryText) && (React.createElement(Text, { styles: secondaryTextStyles }, strings === null || strings === void 0 ? void 0 : strings.secondaryText)),
29
- onAllowAccessClick && isValidString(strings === null || strings === void 0 ? void 0 : strings.primaryButtonText) && (React.createElement(PrimaryButton, { styles: primaryButtonStyles, text: strings === null || strings === void 0 ? void 0 : strings.primaryButtonText, onClick: onAllowAccessClick })),
30
- onTroubleshootingClick && isValidString(strings === null || strings === void 0 ? void 0 : strings.linkText) && (React.createElement(Link, { styles: linkTextStyles, onClick: onTroubleshootingClick }, strings === null || strings === void 0 ? void 0 : strings.linkText)))));
31
- };
32
- /**
33
- * @beta
34
- *
35
- * Component to allow Contoso to help their end user with their devices should their permissions be blocked
36
- * by their browsers settings.
37
- */
38
- export const DomainPermissions = (props) => {
39
- /* @conditional-compile-remove(call-readiness) */
40
- const locale = useLocale().strings.DomainPermissions;
41
- /* @conditional-compile-remove(call-readiness) */
42
- return React.createElement(DomainPermissionsContainer, Object.assign({}, props, { strings: props.strings ? props.strings : locale }));
43
- return React.createElement(React.Fragment, null);
44
- };
45
- //# sourceMappingURL=DomainPermissions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DomainPermissions.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/DomainPermissions.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,iDAAiD;AACjD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACnF,iDAAiD;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,iDAAiD;AACjD,OAAO,EAAE,aAAa,EAAY,mCAAgC;AAClE,iDAAiD;AACjD,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,EACpB,MAAM,mCAAmC,CAAC;AAC3C,iDAAiD;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAoDxC,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,aAAa,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,CAAC,IAAI,CACnD,oBAAC,IAAI,IAAC,MAAM,EAAE,mBAAmB,IAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,CAAQ,CACnE;YAEA,kBAAkB,IAAI,aAAa,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,CAAC,IAAI,CAClE,oBAAC,aAAa,IAAC,MAAM,EAAE,mBAAmB,EAAE,IAAI,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,EAAE,OAAO,EAAE,kBAAkB,GAAI,CAC9G;YACA,sBAAsB,IAAI,aAAa,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,CAAC,IAAI,CAC7D,oBAAC,IAAI,IAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,sBAAsB,IAC1D,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,CACb,CACR,CACK,CACF,CACT,CAAC;AACJ,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAA6B,EAAe,EAAE;IAC9E,iDAAiD;IACjD,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC,OAAO,CAAC,iBAAiB,CAAC;IACrD,iDAAiD;IACjD,OAAO,oBAAC,0BAA0B,oBAAK,KAAK,IAAE,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC;IAClG,OAAO,yCAAK,CAAC;AACf,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport React from 'react';\n/* @conditional-compile-remove(call-readiness) */\nimport { Stack, Text, Link, Icon, useTheme, PrimaryButton } from '@fluentui/react';\n/* @conditional-compile-remove(call-readiness) */\nimport { useLocale } from '../localization';\n/* @conditional-compile-remove(call-readiness) */\nimport { _formatString, _pxToRem } from '@internal/acs-ui-common';\n/* @conditional-compile-remove(call-readiness) */\nimport {\n iconContainerStyles,\n iconPrimaryStyles,\n linkTextStyles,\n primaryButtonStyles,\n primaryTextStyles,\n secondaryTextStyles,\n sparkleIconBackdropStyles,\n textContainerStyles\n} from './styles/DomainPermissions.styles';\n/* @conditional-compile-remove(call-readiness) */\nimport { isValidString } from './utils';\n\n/**\n * @beta\n * Props for DomainPermissions component.\n */\nexport interface DomainPermissionsProps {\n /**\n * Name of application calling experience is in.\n */\n appName: string;\n /**\n * Action to be taken by the more help link. Possible to send to external page or show other modal.\n */\n onTroubleshootingClick?: () => void;\n /**\n * Action to be taken by the Allow Access button.\n */\n onAllowAccessClick?: () => void;\n /**\n * Localization strings for DomainPermissions component.\n */\n strings?: DomainPermissionsStrings;\n}\n\n/**\n * @beta\n * Strings for DomainPermissions component\n */\nexport interface DomainPermissionsStrings {\n /**\n * Main text string.\n */\n primaryText: string;\n /**\n * Subtext string.\n */\n secondaryText: string;\n /**\n * More help link string.\n */\n linkText: string;\n /**\n * Primary button text string.\n */\n primaryButtonText: string;\n /**\n * Aira label describing the content of the container\n */\n ariaLabel: string;\n}\n\n/* @conditional-compile-remove(call-readiness) */\nconst DomainPermissionsContainer = (props: DomainPermissionsProps): JSX.Element => {\n const { appName, onTroubleshootingClick, onAllowAccessClick, strings } = props;\n const theme = useTheme();\n return (\n <Stack style={{ padding: '2rem', maxWidth: '25.375rem' }} aria-label={strings?.ariaLabel}>\n <Stack horizontal style={{ paddingBottom: '1rem' }} horizontalAlign={'space-between'}>\n <Stack styles={iconContainerStyles} horizontalAlign={'center'}>\n <Icon styles={iconPrimaryStyles} iconName={'DomainPermissionCamera'}></Icon>\n </Stack>\n <Stack styles={iconContainerStyles} horizontalAlign={'center'}>\n <Icon styles={sparkleIconBackdropStyles(theme)} iconName={'DomainPermissionsSparkle'}></Icon>\n </Stack>\n <Stack styles={iconContainerStyles} horizontalAlign={'center'}>\n <Icon styles={iconPrimaryStyles} iconName={'DomainPermissionMic'}></Icon>\n </Stack>\n </Stack>\n <Stack styles={textContainerStyles}>\n {strings && isValidString(strings?.primaryText) && (\n <Text styles={primaryTextStyles}>{_formatString(strings.primaryText, { appName: appName })}</Text>\n )}\n {strings && isValidString(strings?.secondaryText) && (\n <Text styles={secondaryTextStyles}>{strings?.secondaryText}</Text>\n )}\n\n {onAllowAccessClick && isValidString(strings?.primaryButtonText) && (\n <PrimaryButton styles={primaryButtonStyles} text={strings?.primaryButtonText} onClick={onAllowAccessClick} />\n )}\n {onTroubleshootingClick && isValidString(strings?.linkText) && (\n <Link styles={linkTextStyles} onClick={onTroubleshootingClick}>\n {strings?.linkText}\n </Link>\n )}\n </Stack>\n </Stack>\n );\n};\n\n/**\n * @beta\n *\n * Component to allow Contoso to help their end user with their devices should their permissions be blocked\n * by their browsers settings.\n */\nexport const DomainPermissions = (props: DomainPermissionsProps): JSX.Element => {\n /* @conditional-compile-remove(call-readiness) */\n const locale = useLocale().strings.DomainPermissions;\n /* @conditional-compile-remove(call-readiness) */\n return <DomainPermissionsContainer {...props} strings={props.strings ? props.strings : locale} />;\n return <></>;\n};\n\"../../../acs-ui-common/src\""]}