@azure/communication-react 1.9.0-alpha-202310181643 → 1.9.0-alpha-202310201641

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 (40) hide show
  1. package/dist/communication-react.d.ts +261 -225
  2. package/dist/dist-cjs/communication-react/index.js +653 -390
  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/react-components/src/components/Caption.js +1 -0
  7. package/dist/dist-esm/react-components/src/components/Caption.js.map +1 -1
  8. package/dist/dist-esm/react-components/src/components/LocalVideoTile.d.ts +1 -1
  9. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.d.ts +1 -1
  10. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.d.ts +1 -1
  11. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.d.ts +1 -1
  12. package/dist/dist-esm/react-components/src/theming/icons.d.ts +87 -87
  13. package/dist/dist-esm/react-composites/src/composites/CallComposite/MockCallAdapter.d.ts +61 -0
  14. package/dist/dist-esm/react-composites/src/composites/CallComposite/MockCallAdapter.js +255 -0
  15. package/dist/dist-esm/react-composites/src/composites/CallComposite/MockCallAdapter.js.map +1 -0
  16. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +38 -4
  17. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  18. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +1 -1
  19. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js +1 -0
  20. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  21. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.d.ts +1 -80
  22. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js.map +1 -1
  23. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  24. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.d.ts +1 -1
  25. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.js.map +1 -1
  26. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.d.ts +84 -23
  27. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js +8 -5
  28. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js.map +1 -1
  29. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +90 -87
  30. package/dist/dist-esm/react-composites/src/composites/common/icons.js +4 -2
  31. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  32. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.d.ts +0 -79
  33. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
  34. package/dist/dist-esm/react-composites/src/composites/index.d.ts +1 -2
  35. package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
  36. package/dist/tsdoc-metadata.json +1 -1
  37. package/package.json +19 -19
  38. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.d.ts +0 -17
  39. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js +0 -35
  40. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js.map +0 -1
@@ -1,5 +1,3 @@
1
- import { BaseCustomStyles, ControlBarButtonStyles } from "../../../../../react-components/src";
2
- import { CustomCallControlButtonPlacement } from '../ControlBar/CustomButton';
3
1
  import { CustomCallControlButtonCallback } from '../ControlBar/CustomButton';
4
2
  /**
5
3
  * Control bar display type for {@link CallComposite}.
@@ -100,81 +98,4 @@ export declare type CommonCallControlOptions = {
100
98
  export declare type _CommonCallControlOptions = CommonCallControlOptions & {
101
99
  onFetchCustomButtonProps?: CustomCallControlButtonCallback[];
102
100
  };
103
- /**
104
- * Arguments for {@link CustomCallControlButtonCallback}.
105
- *
106
- * @beta
107
- */
108
- export interface CustomCallControlButtonCallbackArgs {
109
- /**
110
- * Buttons should reduce the size to fit a smaller viewport when `displayType` is `'compact'`.
111
- *
112
- * @defaultValue `'default'`
113
- */
114
- displayType?: CallControlDisplayType;
115
- }
116
- /**
117
- * Includes the base props necessary to render a {@link ControlBarButton} or {@link DrawerMenuItem}.
118
- *
119
- * @beta
120
- */
121
- export interface CustomControlButtonProps {
122
- /**
123
- * Calback for when button is clicked
124
- */
125
- onItemClick?: () => void;
126
- /**
127
- * Whether the buttons is disabled
128
- */
129
- disabled?: boolean;
130
- /**
131
- * Whether the label is displayed or not.
132
- *
133
- * @defaultValue `false`
134
- */
135
- showLabel?: boolean;
136
- /**
137
- * Fluent styles, common to all {@link ControlBarButton}s or {@link DrawerMenuItem}s.
138
- */
139
- styles?: ControlBarButtonStyles | BaseCustomStyles;
140
- /**
141
- * Optional label for the button
142
- */
143
- text?: string;
144
- /**
145
- * A unique key for the button
146
- */
147
- key?: string | number;
148
- /**
149
- * The aria label of the button for the benefit of screen readers.
150
- */
151
- ariaLabel?: string;
152
- /**
153
- * Detailed description of the button for the benefit of screen readers.
154
- */
155
- ariaDescription?: string;
156
- /**
157
- * A unique id set for the standard HTML id attibute
158
- */
159
- id?: string;
160
- }
161
- /**
162
- * Response from {@link CustomCallControlButtonCallback}.
163
- *
164
- * Includes the placement prop necessary to indicate where to place the
165
- * {@link ControlBarButton} and a {@link DrawerMenuItem}
166
- *
167
- * @beta
168
- */
169
- export interface CustomCallControlButtonProps extends CustomControlButtonProps {
170
- /**
171
- * Where to place the custom button relative to other buttons.
172
- */
173
- placement: CustomCallControlButtonPlacement;
174
- /**
175
- * Icon to render. Icon is a non-default icon name that needs to be registered as a
176
- * custom icon using registerIcons through fluentui. Examples include icons from the fluentui library
177
- */
178
- iconName?: string;
179
- }
180
101
  //# sourceMappingURL=CommonCallControlOptions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CommonCallControlOptions.js","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/common/types/CommonCallControlOptions.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { BaseCustomStyles, ControlBarButtonStyles } from '@internal/react-components';\nimport { CustomCallControlButtonPlacement } from '../ControlBar/CustomButton';\nimport { CustomCallControlButtonCallback } from '../ControlBar/CustomButton';\n\n/**\n * Control bar display type for {@link CallComposite}.\n *\n * @public\n */\nexport type CallControlDisplayType = 'default' | 'compact';\n\n/**\n * Customization options for the control bar in calling experience.\n *\n * @public\n */\nexport type CommonCallControlOptions = {\n /**\n * {@link CallControlDisplayType} to change how the call controls are displayed.\n * `'compact'` display type will decreases the size of buttons and hide the labels.\n *\n * @remarks\n * If the composite `formFactor` is set to `'mobile'`, the control bar will always use compact view.\n *\n * @defaultValue 'default'\n */\n displayType?: CallControlDisplayType;\n /**\n * Show or Hide Camera Button during a call\n * @defaultValue true\n */\n cameraButton?:\n | boolean\n | /* @conditional-compile-remove(PSTN-calls) */ {\n disabled: boolean;\n };\n /**\n * Show or Hide EndCall button during a call.\n * @defaultValue true\n */\n endCallButton?: boolean;\n /**\n * Show or Hide Microphone button during a call.\n * @defaultValue true\n */\n microphoneButton?:\n | boolean\n | /* @conditional-compile-remove(PSTN-calls) */ {\n disabled: boolean;\n };\n /**\n * Show or Hide Devices button during a call.\n * @defaultValue true\n */\n devicesButton?:\n | boolean\n | /* @conditional-compile-remove(PSTN-calls) */ {\n disabled: boolean;\n };\n /**\n * Show, Hide or Disable participants button during a call.\n * @defaultValue true\n */\n participantsButton?: boolean | { disabled: boolean };\n /**\n * Show, Hide or Disable the screen share button during a call.\n * @defaultValue true\n */\n screenShareButton?: boolean | { disabled: boolean };\n /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */ /* @conditional-compile-remove(raise-hand) */\n /**\n * Show, Hide or disable the more button during a call.\n * @defaultValue true\n */\n moreButton?: boolean;\n /* @conditional-compile-remove(raise-hand) */\n /**\n * Show, Hide or Disable the screen share button during a call.\n * @defaultValue true\n */\n raiseHandButton?: boolean | { disabled: boolean };\n /* @conditional-compile-remove(control-bar-button-injection) */\n /**\n * Inject custom buttons in the call controls.\n *\n * @beta\n */\n onFetchCustomButtonProps?: CustomCallControlButtonCallback[];\n /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */\n holdButton?: boolean | { disabled: boolean };\n /**\n * Show or hide the people button in the composite control bar.\n * @defaultValue true\n */\n peopleButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ { disabled: boolean };\n};\n\n/**\n * While the public API for the custom buttons is in beta. Use this type to access the internal\n * API.\n * @internal\n */\nexport type _CommonCallControlOptions = CommonCallControlOptions & {\n onFetchCustomButtonProps?: CustomCallControlButtonCallback[];\n};\n\n/**\n * Arguments for {@link CustomCallControlButtonCallback}.\n *\n * @beta\n */\nexport interface CustomCallControlButtonCallbackArgs {\n /**\n * Buttons should reduce the size to fit a smaller viewport when `displayType` is `'compact'`.\n *\n * @defaultValue `'default'`\n */\n displayType?: CallControlDisplayType;\n}\n\n/**\n * Includes the base props necessary to render a {@link ControlBarButton} or {@link DrawerMenuItem}.\n *\n * @beta\n */\nexport interface CustomControlButtonProps {\n /**\n * Calback for when button is clicked\n */\n onItemClick?: () => void;\n /**\n * Whether the buttons is disabled\n */\n disabled?: boolean;\n /**\n * Whether the label is displayed or not.\n *\n * @defaultValue `false`\n */\n showLabel?: boolean;\n /**\n * Fluent styles, common to all {@link ControlBarButton}s or {@link DrawerMenuItem}s.\n */\n styles?: ControlBarButtonStyles | BaseCustomStyles;\n /**\n * Optional label for the button\n */\n text?: string;\n /**\n * A unique key for the button\n */\n key?: string | number;\n /**\n * The aria label of the button for the benefit of screen readers.\n */\n ariaLabel?: string;\n /**\n * Detailed description of the button for the benefit of screen readers.\n */\n ariaDescription?: string;\n /**\n * A unique id set for the standard HTML id attibute\n */\n id?: string;\n}\n\n/**\n * Response from {@link CustomCallControlButtonCallback}.\n *\n * Includes the placement prop necessary to indicate where to place the\n * {@link ControlBarButton} and a {@link DrawerMenuItem}\n *\n * @beta\n */\nexport interface CustomCallControlButtonProps extends CustomControlButtonProps {\n /**\n * Where to place the custom button relative to other buttons.\n */\n placement: CustomCallControlButtonPlacement;\n /**\n * Icon to render. Icon is a non-default icon name that needs to be registered as a\n * custom icon using registerIcons through fluentui. Examples include icons from the fluentui library\n */\n iconName?: string;\n}\n\"../../../../../react-components/src\""]}
1
+ {"version":3,"file":"CommonCallControlOptions.js","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/common/types/CommonCallControlOptions.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { CustomCallControlButtonCallback } from '../ControlBar/CustomButton';\n\n/**\n * Control bar display type for {@link CallComposite}.\n *\n * @public\n */\nexport type CallControlDisplayType = 'default' | 'compact';\n\n/**\n * Customization options for the control bar in calling experience.\n *\n * @public\n */\nexport type CommonCallControlOptions = {\n /**\n * {@link CallControlDisplayType} to change how the call controls are displayed.\n * `'compact'` display type will decreases the size of buttons and hide the labels.\n *\n * @remarks\n * If the composite `formFactor` is set to `'mobile'`, the control bar will always use compact view.\n *\n * @defaultValue 'default'\n */\n displayType?: CallControlDisplayType;\n /**\n * Show or Hide Camera Button during a call\n * @defaultValue true\n */\n cameraButton?:\n | boolean\n | /* @conditional-compile-remove(PSTN-calls) */ {\n disabled: boolean;\n };\n /**\n * Show or Hide EndCall button during a call.\n * @defaultValue true\n */\n endCallButton?: boolean;\n /**\n * Show or Hide Microphone button during a call.\n * @defaultValue true\n */\n microphoneButton?:\n | boolean\n | /* @conditional-compile-remove(PSTN-calls) */ {\n disabled: boolean;\n };\n /**\n * Show or Hide Devices button during a call.\n * @defaultValue true\n */\n devicesButton?:\n | boolean\n | /* @conditional-compile-remove(PSTN-calls) */ {\n disabled: boolean;\n };\n /**\n * Show, Hide or Disable participants button during a call.\n * @defaultValue true\n */\n participantsButton?: boolean | { disabled: boolean };\n /**\n * Show, Hide or Disable the screen share button during a call.\n * @defaultValue true\n */\n screenShareButton?: boolean | { disabled: boolean };\n /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */ /* @conditional-compile-remove(raise-hand) */\n /**\n * Show, Hide or disable the more button during a call.\n * @defaultValue true\n */\n moreButton?: boolean;\n /* @conditional-compile-remove(raise-hand) */\n /**\n * Show, Hide or Disable the screen share button during a call.\n * @defaultValue true\n */\n raiseHandButton?: boolean | { disabled: boolean };\n /* @conditional-compile-remove(control-bar-button-injection) */\n /**\n * Inject custom buttons in the call controls.\n *\n * @beta\n */\n onFetchCustomButtonProps?: CustomCallControlButtonCallback[];\n /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */\n holdButton?: boolean | { disabled: boolean };\n /**\n * Show or hide the people button in the composite control bar.\n * @defaultValue true\n */\n peopleButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ { disabled: boolean };\n};\n\n/**\n * While the public API for the custom buttons is in beta. Use this type to access the internal\n * API.\n * @internal\n */\nexport type _CommonCallControlOptions = CommonCallControlOptions & {\n onFetchCustomButtonProps?: CustomCallControlButtonCallback[];\n};\n"]}
@@ -30,8 +30,7 @@ export * from './localization/locales';
30
30
  export type { CompositeStrings, CompositeLocale } from './localization';
31
31
  export type { AdapterError, AdapterErrors } from './common/adapters';
32
32
  export type { BaseCompositeProps } from './common/BaseComposite';
33
- export type { CustomCallControlButtonCallbackArgs, CustomControlButtonProps, CustomCallControlButtonProps } from './common/types/CommonCallControlOptions';
34
- export type { CustomCallControlButtonCallback, CustomCallControlButtonPlacement } from './common/ControlBar/CustomButton';
33
+ export type { CustomCallControlButtonCallback, CustomCallControlButtonPlacement, CustomCallControlButtonCallbackArgs, CustomCallControlButtonStrings } from './common/ControlBar/CustomButton';
35
34
  export { onResolveVideoEffectDependencyLazy } from './common/resolveVideoEffectDependencyLazy';
36
35
  export { onResolveVideoEffectDependency } from './common/resolveVideoEffectDependency';
37
36
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../react-composites/src/composites/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AAKtF,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAO/E,cAAc,wBAAwB,CAAC;AAkBvC,2DAA2D;AAC3D,OAAO,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AAC/F,2DAA2D;AAC3D,OAAO,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type { Disposable, AdapterState } from './common/adapters';\n\nexport * from './ChatComposite';\nexport * from './CallComposite';\nexport * from './CallWithChatComposite';\nexport { COMPOSITE_LOCALE_EN_GB } from './localization/locales/en-GB/CompositeLocale';\nexport { COMPOSITE_LOCALE_AR_SA } from './localization/locales/ar-SA/CompositeLocale';\nexport { COMPOSITE_LOCALE_CS_CZ } from './localization/locales/cs-CZ/CompositeLocale';\nexport { COMPOSITE_LOCALE_DE_DE } from './localization/locales/de-DE/CompositeLocale';\nexport { COMPOSITE_LOCALE_ES_ES } from './localization/locales/es-ES/CompositeLocale';\nexport { COMPOSITE_LOCALE_FI_FI } from './localization/locales/fi-FI/CompositeLocale';\nexport { COMPOSITE_LOCALE_FR_FR } from './localization/locales/fr-FR/CompositeLocale';\nexport { COMPOSITE_LOCALE_HE_IL } from './localization/locales/he-IL/CompositeLocale';\nexport { COMPOSITE_LOCALE_IT_IT } from './localization/locales/it-IT/CompositeLocale';\nexport { COMPOSITE_LOCALE_JA_JP } from './localization/locales/ja-JP/CompositeLocale';\nexport { COMPOSITE_LOCALE_KO_KR } from './localization/locales/ko-KR/CompositeLocale';\nexport { COMPOSITE_LOCALE_NB_NO } from './localization/locales/nb-NO/CompositeLocale';\nexport { COMPOSITE_LOCALE_NL_NL } from './localization/locales/nl-NL/CompositeLocale';\nexport { COMPOSITE_LOCALE_PL_PL } from './localization/locales/pl-PL/CompositeLocale';\nexport { COMPOSITE_LOCALE_PT_BR } from './localization/locales/pt-BR/CompositeLocale';\nexport { COMPOSITE_LOCALE_RU_RU } from './localization/locales/ru-RU/CompositeLocale';\nexport { COMPOSITE_LOCALE_SV_SE } from './localization/locales/sv-SE/CompositeLocale';\nexport { COMPOSITE_LOCALE_TR_TR } from './localization/locales/tr-TR/CompositeLocale';\nexport { COMPOSITE_LOCALE_ZH_CN } from './localization/locales/zh-CN/CompositeLocale';\nexport { COMPOSITE_LOCALE_ZH_TW } from './localization/locales/zh-TW/CompositeLocale';\n\nexport type { CallControlDisplayType, CommonCallControlOptions } from './common/types/CommonCallControlOptions';\n\nexport type { AvatarPersonaData, AvatarPersonaDataCallback } from './common/AvatarPersona';\nexport { COMPOSITE_ONLY_ICONS, DEFAULT_COMPOSITE_ICONS } from './common/icons';\nexport type {\n CompositeIcons,\n ChatCompositeIcons,\n CallCompositeIcons,\n CallWithChatCompositeIcons\n} from './common/icons';\nexport * from './localization/locales';\nexport type { CompositeStrings, CompositeLocale } from './localization';\nexport type { AdapterError, AdapterErrors } from './common/adapters';\nexport type { BaseCompositeProps } from './common/BaseComposite';\n\n/* @conditional-compile-remove(control-bar-button-injection) */\nexport type {\n CustomCallControlButtonCallbackArgs,\n CustomControlButtonProps,\n CustomCallControlButtonProps\n} from './common/types/CommonCallControlOptions';\n\n/* @conditional-compile-remove(control-bar-button-injection) */\nexport type {\n CustomCallControlButtonCallback,\n CustomCallControlButtonPlacement\n} from './common/ControlBar/CustomButton';\n\n/* @conditional-compile-remove(video-background-effects) */\nexport { onResolveVideoEffectDependencyLazy } from './common/resolveVideoEffectDependencyLazy';\n/* @conditional-compile-remove(video-background-effects) */\nexport { onResolveVideoEffectDependency } from './common/resolveVideoEffectDependency';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../react-composites/src/composites/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AAKtF,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAO/E,cAAc,wBAAwB,CAAC;AAavC,2DAA2D;AAC3D,OAAO,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AAC/F,2DAA2D;AAC3D,OAAO,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type { Disposable, AdapterState } from './common/adapters';\n\nexport * from './ChatComposite';\nexport * from './CallComposite';\nexport * from './CallWithChatComposite';\nexport { COMPOSITE_LOCALE_EN_GB } from './localization/locales/en-GB/CompositeLocale';\nexport { COMPOSITE_LOCALE_AR_SA } from './localization/locales/ar-SA/CompositeLocale';\nexport { COMPOSITE_LOCALE_CS_CZ } from './localization/locales/cs-CZ/CompositeLocale';\nexport { COMPOSITE_LOCALE_DE_DE } from './localization/locales/de-DE/CompositeLocale';\nexport { COMPOSITE_LOCALE_ES_ES } from './localization/locales/es-ES/CompositeLocale';\nexport { COMPOSITE_LOCALE_FI_FI } from './localization/locales/fi-FI/CompositeLocale';\nexport { COMPOSITE_LOCALE_FR_FR } from './localization/locales/fr-FR/CompositeLocale';\nexport { COMPOSITE_LOCALE_HE_IL } from './localization/locales/he-IL/CompositeLocale';\nexport { COMPOSITE_LOCALE_IT_IT } from './localization/locales/it-IT/CompositeLocale';\nexport { COMPOSITE_LOCALE_JA_JP } from './localization/locales/ja-JP/CompositeLocale';\nexport { COMPOSITE_LOCALE_KO_KR } from './localization/locales/ko-KR/CompositeLocale';\nexport { COMPOSITE_LOCALE_NB_NO } from './localization/locales/nb-NO/CompositeLocale';\nexport { COMPOSITE_LOCALE_NL_NL } from './localization/locales/nl-NL/CompositeLocale';\nexport { COMPOSITE_LOCALE_PL_PL } from './localization/locales/pl-PL/CompositeLocale';\nexport { COMPOSITE_LOCALE_PT_BR } from './localization/locales/pt-BR/CompositeLocale';\nexport { COMPOSITE_LOCALE_RU_RU } from './localization/locales/ru-RU/CompositeLocale';\nexport { COMPOSITE_LOCALE_SV_SE } from './localization/locales/sv-SE/CompositeLocale';\nexport { COMPOSITE_LOCALE_TR_TR } from './localization/locales/tr-TR/CompositeLocale';\nexport { COMPOSITE_LOCALE_ZH_CN } from './localization/locales/zh-CN/CompositeLocale';\nexport { COMPOSITE_LOCALE_ZH_TW } from './localization/locales/zh-TW/CompositeLocale';\n\nexport type { CallControlDisplayType, CommonCallControlOptions } from './common/types/CommonCallControlOptions';\n\nexport type { AvatarPersonaData, AvatarPersonaDataCallback } from './common/AvatarPersona';\nexport { COMPOSITE_ONLY_ICONS, DEFAULT_COMPOSITE_ICONS } from './common/icons';\nexport type {\n CompositeIcons,\n ChatCompositeIcons,\n CallCompositeIcons,\n CallWithChatCompositeIcons\n} from './common/icons';\nexport * from './localization/locales';\nexport type { CompositeStrings, CompositeLocale } from './localization';\nexport type { AdapterError, AdapterErrors } from './common/adapters';\nexport type { BaseCompositeProps } from './common/BaseComposite';\n\n/* @conditional-compile-remove(control-bar-button-injection) */\nexport type {\n CustomCallControlButtonCallback,\n CustomCallControlButtonPlacement,\n CustomCallControlButtonCallbackArgs,\n CustomCallControlButtonStrings\n} from './common/ControlBar/CustomButton';\n\n/* @conditional-compile-remove(video-background-effects) */\nexport { onResolveVideoEffectDependencyLazy } from './common/resolveVideoEffectDependencyLazy';\n/* @conditional-compile-remove(video-background-effects) */\nexport { onResolveVideoEffectDependency } from './common/resolveVideoEffectDependency';\n"]}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.18.21"
8
+ "packageVersion": "7.38.0"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure/communication-react",
3
- "version": "1.9.0-alpha-202310181643",
3
+ "version": "1.9.0-alpha-202310201641",
4
4
  "sideEffects": false,
5
5
  "description": "React library for building modern communication user experiences utilizing Azure Communication Services",
6
6
  "keywords": [
@@ -30,7 +30,7 @@
30
30
  "@azure/logger": "^1.0.4",
31
31
  "@fluentui/react-components": "^9.30.0",
32
32
  "@fluentui/react": "^8.110.4",
33
- "@fluentui/react-file-type-icons": "8.8.13",
33
+ "@fluentui/react-file-type-icons": "8.10.2",
34
34
  "@fluentui/react-hooks": "^8.6.12",
35
35
  "@fluentui/react-icons": "^2.0.194",
36
36
  "@fluentui/react-window-provider": "^2.2.3",
@@ -98,15 +98,15 @@
98
98
  "@azure/core-auth": "^1.4.0",
99
99
  "@babel/cli": "^7.16.0",
100
100
  "@babel/core": "^7.16.0",
101
- "@internal/calling-component-bindings": "1.9.0-alpha-202310181643",
102
- "@internal/calling-stateful-client": "1.9.0-alpha-202310181643",
103
- "@internal/chat-component-bindings": "1.9.0-alpha-202310181643",
104
- "@internal/chat-stateful-client": "1.9.0-alpha-202310181643",
105
- "@internal/fake-backends": "1.9.0-alpha-202310181643",
106
- "@internal/react-components": "1.9.0-alpha-202310181643",
107
- "@internal/react-composites": "1.9.0-alpha-202310181643",
108
- "@microsoft/api-documenter": "~7.12.11",
109
- "@microsoft/api-extractor": "~7.18.0",
101
+ "@internal/calling-component-bindings": "1.9.0-alpha-202310201641",
102
+ "@internal/calling-stateful-client": "1.9.0-alpha-202310201641",
103
+ "@internal/chat-component-bindings": "1.9.0-alpha-202310201641",
104
+ "@internal/chat-stateful-client": "1.9.0-alpha-202310201641",
105
+ "@internal/fake-backends": "1.9.0-alpha-202310201641",
106
+ "@internal/react-components": "1.9.0-alpha-202310201641",
107
+ "@internal/react-composites": "1.9.0-alpha-202310201641",
108
+ "@microsoft/api-documenter": "~7.23.9",
109
+ "@microsoft/api-extractor": "~7.38.0",
110
110
  "@rollup/plugin-json": "^4.1.0",
111
111
  "@testing-library/jest-dom": "^5.16.5",
112
112
  "@testing-library/react": "^14.0.0",
@@ -114,14 +114,14 @@
114
114
  "@types/jest": "^29.5.2",
115
115
  "@types/json-stringify-safe": "^5.0.0",
116
116
  "@types/node": "^16.11.7",
117
- "@types/react-dom": "18.2.1",
117
+ "@types/react-dom": "18.2.14",
118
118
  "@types/react-linkify": "^1.0.0",
119
- "@types/react": "18.2.0",
120
- "@types/uuid": "^8.3.0",
119
+ "@types/react": "18.2.29",
120
+ "@types/uuid": "^9.0.6",
121
121
  "@typescript-eslint/eslint-plugin": "^4.12.0",
122
122
  "@typescript-eslint/parser": "^4.12.0",
123
123
  "@zerollup/ts-transform-paths": "^1.7.18",
124
- "ajv": "^6.9.1",
124
+ "ajv": "^8.12.0",
125
125
  "copyfiles": "^2.4.1",
126
126
  "cpx": "^1.5.0",
127
127
  "cross-env": "^7.0.3",
@@ -135,7 +135,7 @@
135
135
  "eslint-plugin-react": "^7.18.3",
136
136
  "eslint": "^7.7.0",
137
137
  "if-env": "^1.0.4",
138
- "jest": "29.5.0",
138
+ "jest": "29.7.0",
139
139
  "json-stringify-safe": "^5.0.1",
140
140
  "node-forge": ">=1.0.0",
141
141
  "prettier": "2.3.1",
@@ -143,15 +143,15 @@
143
143
  "react-dom": "18.2.0",
144
144
  "react-is": "^17.0.1",
145
145
  "react": "18.2.0",
146
- "regenerator-runtime": "^0.13.7",
146
+ "regenerator-runtime": "^0.14.0",
147
147
  "renamer": "^4.0.0",
148
148
  "rimraf": "^2.6.2",
149
149
  "rollup": "^2.42.4",
150
- "scheduler": "^0.20.0",
150
+ "scheduler": "^0.23.0",
151
151
  "source-map-explorer": "^2.5.0",
152
152
  "styled-components": "^5.2.1",
153
153
  "ts-jest": "^29.1.0",
154
- "ts-node": "^9.1.1",
154
+ "ts-node": "^10.9.1",
155
155
  "ttypescript": "^1.5.12",
156
156
  "type-fest": "^2.5.4",
157
157
  "typescript": "4.3.5"
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import { CustomCallControlButtonCallback, CustomCallControlButtonPlacement } from '../../../common/ControlBar/CustomButton';
3
- import { CallControlDisplayType } from '../../../common/types/CommonCallControlOptions';
4
- /** @private */
5
- export declare type CustomButtons = {
6
- [key in CustomCallControlButtonPlacement]: JSX.Element | undefined;
7
- };
8
- /** @private */
9
- export declare const generateCustomControlBarButtons: (onFetchCustomButtonProps?: CustomCallControlButtonCallback[] | undefined, displayType?: CallControlDisplayType | undefined) => CustomButtons;
10
- /** @private */
11
- export declare const onFetchCustomButtonPropsTrampoline: (options?: (import("../../../common/types/CommonCallControlOptions").CommonCallControlOptions & {
12
- participantsButton?: boolean | {
13
- disabled: boolean;
14
- } | undefined;
15
- legacyControlBarExperience?: boolean | undefined;
16
- }) | undefined) => CustomCallControlButtonCallback[] | undefined;
17
- //# sourceMappingURL=Custom.d.ts.map
@@ -1,35 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- // eslint-disable-next-line no-restricted-imports
4
- import { Icon } from '@fluentui/react';
5
- import { ControlBarButton } from "../../../../../../react-components/src";
6
- import React from 'react';
7
- /** @private */
8
- export const generateCustomControlBarButtons = (onFetchCustomButtonProps, displayType) => {
9
- const response = {
10
- primary: undefined,
11
- overflow: undefined,
12
- secondary: undefined
13
- };
14
- if (!onFetchCustomButtonProps) {
15
- return response;
16
- }
17
- const allButtonProps = onFetchCustomButtonProps.map((f) => f({ displayType }));
18
- for (const key in response) {
19
- response[key] = (React.createElement(React.Fragment, null, allButtonProps
20
- .filter((buttonProps) => buttonProps.placement === key)
21
- .map((buttonProps, i) => {
22
- var _a;
23
- return (React.createElement(ControlBarButton, { ariaDescription: buttonProps.ariaDescription, ariaLabel: buttonProps.ariaLabel, disabled: buttonProps.disabled, id: buttonProps.id, key: (_a = buttonProps.key) !== null && _a !== void 0 ? _a : `${buttonProps.placement}_${i}`, onClick: buttonProps.onItemClick, onRenderIcon: () => { var _a; return React.createElement(Icon, { iconName: (_a = buttonProps.iconName) !== null && _a !== void 0 ? _a : 'ControlButtonOptions' }); }, showLabel: buttonProps.showLabel, text: buttonProps.text, styles: buttonProps.styles }));
24
- })));
25
- }
26
- return response;
27
- };
28
- /** @private */
29
- export const onFetchCustomButtonPropsTrampoline = (options) => {
30
- var _a;
31
- let response = undefined;
32
- response = (_a = options) === null || _a === void 0 ? void 0 : _a.onFetchCustomButtonProps;
33
- return response;
34
- };
35
- //# sourceMappingURL=Custom.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Custom.js","sourceRoot":"","sources":["../../../../../../../../../react-composites/src/composites/CallComposite/components/buttons/Custom.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,iDAAiD;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAwB,+CAAmC;AACpF,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,eAAe;AACf,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAC7C,wBAA4D,EAC5D,WAAoC,EACrB,EAAE;IACjB,MAAM,QAAQ,GAAG;QACf,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,SAAS;QACnB,SAAS,EAAE,SAAS;KACrB,CAAC;IAEF,IAAI,CAAC,wBAAwB,EAAE;QAC7B,OAAO,QAAQ,CAAC;KACjB;IAED,MAAM,cAAc,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC;IAE/E,KAAK,MAAM,GAAG,IAAI,QAAQ,EAAE;QAC1B,QAAQ,CAAC,GAAG,CAAC,GAAG,CACd,0CACG,cAAc;aACZ,MAAM,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,SAAS,KAAK,GAAG,CAAC;aACtD,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,EAAE,EAAE;;YAAC,OAAA,CACvB,oBAAC,gBAAgB,IACf,eAAe,EAAE,WAAW,CAAC,eAAe,EAC5C,SAAS,EAAE,WAAW,CAAC,SAAS,EAChC,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAC9B,EAAE,EAAE,WAAW,CAAC,EAAE,EAClB,GAAG,EAAE,MAAA,WAAW,CAAC,GAAG,mCAAI,GAAG,WAAW,CAAC,SAAS,IAAI,CAAC,EAAE,EACvD,OAAO,EAAE,WAAW,CAAC,WAAW,EAChC,YAAY,EAAE,GAAG,EAAE,WAAC,OAAA,oBAAC,IAAI,IAAC,QAAQ,EAAE,MAAA,WAAW,CAAC,QAAQ,mCAAI,sBAAsB,GAAI,CAAA,EAAA,EACtF,SAAS,EAAE,WAAW,CAAC,SAAS,EAChC,IAAI,EAAE,WAAW,CAAC,IAAI,EACtB,MAAM,EAAE,WAAW,CAAC,MAAM,GAC1B,CACH,CAAA;SAAA,CAAC,CACH,CACJ,CAAC;KACH;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAEF,eAAe;AACf,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAChD,OAA4B,EACmB,EAAE;;IACjD,IAAI,QAAQ,GAAkD,SAAS,CAAC;IACxE,QAAQ,GAAG,MAAC,OAAqC,0CAAE,wBAAwB,CAAC;IAC5E,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// eslint-disable-next-line no-restricted-imports\nimport { Icon } from '@fluentui/react';\nimport { ControlBarButton, _DrawerMenuItemProps } from '@internal/react-components';\nimport React from 'react';\nimport {\n CustomCallControlButtonCallback,\n CustomCallControlButtonPlacement\n} from '../../../common/ControlBar/CustomButton';\nimport { CallControlDisplayType, _CommonCallControlOptions } from '../../../common/types/CommonCallControlOptions';\nimport { CallControlOptions } from '../../types/CallControlOptions';\n\n/** @private */\nexport type CustomButtons = { [key in CustomCallControlButtonPlacement]: JSX.Element | undefined };\n\n/** @private */\nexport const generateCustomControlBarButtons = (\n onFetchCustomButtonProps?: CustomCallControlButtonCallback[],\n displayType?: CallControlDisplayType\n): CustomButtons => {\n const response = {\n primary: undefined,\n overflow: undefined,\n secondary: undefined\n };\n\n if (!onFetchCustomButtonProps) {\n return response;\n }\n\n const allButtonProps = onFetchCustomButtonProps.map((f) => f({ displayType }));\n\n for (const key in response) {\n response[key] = (\n <>\n {allButtonProps\n .filter((buttonProps) => buttonProps.placement === key)\n .map((buttonProps, i) => (\n <ControlBarButton\n ariaDescription={buttonProps.ariaDescription}\n ariaLabel={buttonProps.ariaLabel}\n disabled={buttonProps.disabled}\n id={buttonProps.id}\n key={buttonProps.key ?? `${buttonProps.placement}_${i}`}\n onClick={buttonProps.onItemClick}\n onRenderIcon={() => <Icon iconName={buttonProps.iconName ?? 'ControlButtonOptions'} />}\n showLabel={buttonProps.showLabel}\n text={buttonProps.text}\n styles={buttonProps.styles}\n />\n ))}\n </>\n );\n }\n return response;\n};\n\n/** @private */\nexport const onFetchCustomButtonPropsTrampoline = (\n options?: CallControlOptions\n): CustomCallControlButtonCallback[] | undefined => {\n let response: CustomCallControlButtonCallback[] | undefined = undefined;\n response = (options as _CommonCallControlOptions)?.onFetchCustomButtonProps;\n return response;\n};\n\"../../../../../../react-components/src\""]}