@azure/communication-react 1.19.0-alpha-202407270014 → 1.19.0-alpha-202407310012

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 (103) hide show
  1. package/dist/communication-react.d.ts +68 -5
  2. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-BueeC-ud.js → ChatMessageComponentAsRichTextEditBox-CsHqT8dY.js} +7 -5
  3. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-BueeC-ud.js.map → ChatMessageComponentAsRichTextEditBox-CsHqT8dY.js.map} +1 -1
  4. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-Br441vhG.js → RichTextSendBoxWrapper-TGDmjXvl.js} +2 -2
  5. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-Br441vhG.js.map → RichTextSendBoxWrapper-TGDmjXvl.js.map} +1 -1
  6. package/dist/dist-cjs/communication-react/{index-DznlW8XT.js → index-BBPqvw4B.js} +698 -550
  7. package/dist/dist-cjs/communication-react/index-BBPqvw4B.js.map +1 -0
  8. package/dist/dist-cjs/communication-react/index.js +3 -1
  9. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  10. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  11. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  12. package/dist/dist-esm/acs-ui-javascript-loaders/src/callCompositeLoader.d.ts +2 -2
  13. package/dist/dist-esm/acs-ui-javascript-loaders/src/callCompositeLoader.js +3 -10
  14. package/dist/dist-esm/acs-ui-javascript-loaders/src/callCompositeLoader.js.map +1 -1
  15. package/dist/dist-esm/acs-ui-javascript-loaders/src/callWithChatCompositeLoader.d.ts +18 -0
  16. package/dist/dist-esm/acs-ui-javascript-loaders/src/callWithChatCompositeLoader.js +43 -0
  17. package/dist/dist-esm/acs-ui-javascript-loaders/src/callWithChatCompositeLoader.js.map +1 -0
  18. package/dist/dist-esm/acs-ui-javascript-loaders/src/chatCompositeLoader.d.ts +18 -0
  19. package/dist/dist-esm/acs-ui-javascript-loaders/src/chatCompositeLoader.js +43 -0
  20. package/dist/dist-esm/acs-ui-javascript-loaders/src/chatCompositeLoader.js.map +1 -0
  21. package/dist/dist-esm/acs-ui-javascript-loaders/src/index.d.ts +4 -0
  22. package/dist/dist-esm/acs-ui-javascript-loaders/src/index.js +2 -0
  23. package/dist/dist-esm/acs-ui-javascript-loaders/src/index.js.map +1 -1
  24. package/dist/dist-esm/acs-ui-javascript-loaders/src/outboundCallCompositeLoader.d.ts +2 -2
  25. package/dist/dist-esm/acs-ui-javascript-loaders/src/outboundCallCompositeLoader.js +3 -10
  26. package/dist/dist-esm/acs-ui-javascript-loaders/src/outboundCallCompositeLoader.js.map +1 -1
  27. package/dist/dist-esm/acs-ui-javascript-loaders/src/utils.d.ts +7 -0
  28. package/dist/dist-esm/acs-ui-javascript-loaders/src/utils.js +17 -0
  29. package/dist/dist-esm/acs-ui-javascript-loaders/src/utils.js.map +1 -0
  30. package/dist/dist-esm/calling-stateful-client/src/BreakoutRoomsSubscriber.d.ts +18 -0
  31. package/dist/dist-esm/calling-stateful-client/src/BreakoutRoomsSubscriber.js +36 -0
  32. package/dist/dist-esm/calling-stateful-client/src/BreakoutRoomsSubscriber.js.map +1 -0
  33. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +14 -0
  34. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  35. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +3 -0
  36. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +18 -0
  37. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  38. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +1 -0
  39. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +6 -0
  40. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  41. package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +1 -0
  42. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  43. package/dist/dist-esm/communication-react/src/index.d.ts +2 -2
  44. package/dist/dist-esm/communication-react/src/index.js +1 -1
  45. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  46. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js +5 -3
  47. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js.map +1 -1
  48. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.js +3 -0
  49. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.js.map +1 -1
  50. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js +3 -1
  51. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js.map +1 -1
  52. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +14 -4
  53. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/strings.json +14 -4
  54. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +14 -4
  55. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +14 -4
  56. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +14 -4
  57. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +13 -3
  58. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +14 -4
  59. package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +14 -4
  60. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +14 -4
  61. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +14 -4
  62. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +14 -4
  63. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +14 -4
  64. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +14 -4
  65. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +14 -4
  66. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +14 -4
  67. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +14 -4
  68. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +14 -4
  69. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +12 -2
  70. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +14 -4
  71. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +14 -4
  72. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +4 -0
  73. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +11 -1
  74. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  75. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +9 -0
  76. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  77. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +3 -0
  78. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  79. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +4 -1
  80. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  81. package/dist/dist-esm/react-composites/src/composites/localization/locales/ar-SA/strings.json +5 -1
  82. package/dist/dist-esm/react-composites/src/composites/localization/locales/cs-CZ/strings.json +5 -1
  83. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +5 -1
  84. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +5 -1
  85. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +5 -1
  86. package/dist/dist-esm/react-composites/src/composites/localization/locales/fi-FI/strings.json +5 -1
  87. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +5 -1
  88. package/dist/dist-esm/react-composites/src/composites/localization/locales/he-IL/strings.json +5 -1
  89. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +5 -1
  90. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +5 -1
  91. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +5 -1
  92. package/dist/dist-esm/react-composites/src/composites/localization/locales/nb-NO/strings.json +5 -1
  93. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +5 -1
  94. package/dist/dist-esm/react-composites/src/composites/localization/locales/pl-PL/strings.json +5 -1
  95. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +5 -1
  96. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +5 -1
  97. package/dist/dist-esm/react-composites/src/composites/localization/locales/sv-SE/strings.json +5 -1
  98. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +5 -1
  99. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +5 -1
  100. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +5 -1
  101. package/dist/tsdoc-metadata.json +1 -1
  102. package/package.json +3 -3
  103. package/dist/dist-cjs/communication-react/index-DznlW8XT.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DznlW8XT.js');
3
+ var index = require('./index-BBPqvw4B.js');
4
4
  require('react');
5
5
  require('@fluentui/react');
6
6
  require('@fluentui/react-components');
@@ -147,6 +147,8 @@ exports.getChatSelector = index.getSelector$1;
147
147
  exports.imageOverlayTheme = index.imageOverlayTheme;
148
148
  exports.lightTheme = index.lightTheme;
149
149
  exports.loadCallComposite = index.loadCallComposite;
150
+ exports.loadCallWithChatComposite = index.loadCallWithChatComposite;
151
+ exports.loadChatComposite = index.loadChatComposite;
150
152
  exports.loadOutboundCallComposite = index.loadOutboundCallComposite;
151
153
  exports.onResolveVideoEffectDependency = index.onResolveVideoEffectDependency;
152
154
  exports.onResolveVideoEffectDependencyLazy = index.onResolveVideoEffectDependencyLazy;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,5 +2,5 @@
2
2
  // Copyright (c) Microsoft Corporation.
3
3
  // Licensed under the MIT License.
4
4
  // GENERATED FILE. DO NOT EDIT MANUALLY.
5
- module.exports = '1.19.0-alpha-202407270014';
5
+ module.exports = '1.19.0-alpha-202407310012';
6
6
  //# sourceMappingURL=telemetryVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"telemetryVersion.js","sourceRoot":"","sources":["../../../../../acs-ui-common/src/telemetryVersion.js"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;AAElC,wCAAwC;AAExC,MAAM,CAAC,OAAO,GAAG,2BAA2B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// GENERATED FILE. DO NOT EDIT MANUALLY.\n\nmodule.exports = '1.19.0-alpha-202407270014';\n"]}
1
+ {"version":3,"file":"telemetryVersion.js","sourceRoot":"","sources":["../../../../../acs-ui-common/src/telemetryVersion.js"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;AAElC,wCAAwC;AAExC,MAAM,CAAC,OAAO,GAAG,2BAA2B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// GENERATED FILE. DO NOT EDIT MANUALLY.\n\nmodule.exports = '1.19.0-alpha-202407310012';\n"]}
@@ -1,7 +1,7 @@
1
1
  import { AzureCommunicationCallAdapterOptions, CallAdapter, CallAdapterLocator, CallCompositeOptions } from "../../react-composites/src/index-public";
2
2
  /**
3
3
  * Props for the OutboundCallComposite that you can use in your application.
4
- * @public
4
+ * @beta
5
5
  */
6
6
  export type CallCompositeLoaderProps = {
7
7
  userId: string;
@@ -13,7 +13,7 @@ export type CallCompositeLoaderProps = {
13
13
  /**
14
14
  * Loader function for the OutboundCallComposite that you can use in your application.
15
15
  *
16
- * @public
16
+ * @beta
17
17
  */
18
18
  export declare const loadCallComposite: (adapterArgs: CallCompositeLoaderProps, htmlElement: HTMLElement | null, props?: CallCompositeOptions) => Promise<CallAdapter | undefined>;
19
19
  //# sourceMappingURL=callCompositeLoader.d.ts.map
@@ -10,16 +10,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  });
11
11
  };
12
12
  import React from 'react';
13
+ import { parseReactVersion } from './utils';
13
14
  const reactVersion = React.version;
14
- const parseReactVersion = (version) => {
15
- if (!version) {
16
- return [];
17
- }
18
- return version.split('.').map((v) => parseInt(v));
19
- };
20
- if (parseReactVersion(reactVersion)[0] && parseReactVersion(reactVersion)[0] < 18) {
21
- throw new Error('React version is less than 18. Please upgrade to React 18 or alternatively checkout how to use our composites directly here: https://azure.github.io/communication-ui-library/?path=/docs/quickstarts-composites--page');
22
- }
15
+ parseReactVersion(reactVersion);
23
16
  import { createRoot } from 'react-dom/client';
24
17
  import { AzureCommunicationTokenCredential } from '@azure/communication-common';
25
18
  import { fromFlatCommunicationIdentifier } from "../../acs-ui-common/src";
@@ -28,7 +21,7 @@ import { initializeIcons } from '@fluentui/react';
28
21
  /**
29
22
  * Loader function for the OutboundCallComposite that you can use in your application.
30
23
  *
31
- * @public
24
+ * @beta
32
25
  */
33
26
  export const loadCallComposite = function (adapterArgs, htmlElement, props) {
34
27
  return __awaiter(this, void 0, void 0, function* () {
@@ -1 +1 @@
1
- {"version":3,"file":"callCompositeLoader.js","sourceRoot":"","sources":["../../../../../acs-ui-javascript-loaders/src/callCompositeLoader.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;;;;;;;;;AAElC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC;AACnC,MAAM,iBAAiB,GAAG,CAAC,OAA2B,EAAY,EAAE;IAClE,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AACpD,CAAC,CAAC;AACF,IAAI,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,IAAI,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC;IAClF,MAAM,IAAI,KAAK,CACb,wNAAwN,CACzN,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,iCAAiC,EAA+B,MAAM,6BAA6B,CAAC;AAC7G,OAAO,EAAE,+BAA+B,EAAE,gCAAgC;AAC1E,OAAO,EACL,aAAa,EACb,mCAAmC,EAKpC,gDAAmC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAclD;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAC/B,WAAqC,EACrC,WAA+B,EAC/B,KAA4B;;QAE5B,eAAe,EAAE,CAAC;QAClB,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC;QAErE,MAAM,OAAO,GAAG,MAAM,mCAAmC,CAAC;YACxD,MAAM,EAAE,+BAA+B,CAAC,MAAM,CAAgC;YAC9E,WAAW,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,WAAW;YACvC,UAAU,EAAE,IAAI,iCAAiC,CAAC,KAAK,CAAC;YACxD,OAAO;YACP,OAAO;SACR,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,UAAU,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,aAAa,kCAAO,KAAK,KAAE,OAAO,KAAI,IAAI,CAAC,CAAC,CAAC;QAChG,OAAO,OAAO,CAAC;IACjB,CAAC;CAAA,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport React from 'react';\n\nconst reactVersion = React.version;\nconst parseReactVersion = (version: string | undefined): number[] => {\n if (!version) {\n return [];\n }\n return version.split('.').map((v) => parseInt(v));\n};\nif (parseReactVersion(reactVersion)[0] && parseReactVersion(reactVersion)[0] < 18) {\n throw new Error(\n 'React version is less than 18. Please upgrade to React 18 or alternatively checkout how to use our composites directly here: https://azure.github.io/communication-ui-library/?path=/docs/quickstarts-composites--page'\n );\n}\n\nimport { createRoot } from 'react-dom/client';\nimport { AzureCommunicationTokenCredential, CommunicationUserIdentifier } from '@azure/communication-common';\nimport { fromFlatCommunicationIdentifier } from '@internal/acs-ui-common';\nimport {\n CallComposite,\n createAzureCommunicationCallAdapter,\n AzureCommunicationCallAdapterOptions,\n CallAdapter,\n CallAdapterLocator,\n CallCompositeOptions\n} from '@internal/react-composites';\nimport { initializeIcons } from '@fluentui/react';\n\n/**\n * Props for the OutboundCallComposite that you can use in your application.\n * @public\n */\nexport type CallCompositeLoaderProps = {\n userId: string;\n token: string;\n displayName: string;\n locator: CallAdapterLocator;\n options?: AzureCommunicationCallAdapterOptions;\n};\n\n/**\n * Loader function for the OutboundCallComposite that you can use in your application.\n *\n * @public\n */\nexport const loadCallComposite = async function (\n adapterArgs: CallCompositeLoaderProps,\n htmlElement: HTMLElement | null,\n props?: CallCompositeOptions\n): Promise<CallAdapter | undefined> {\n initializeIcons();\n const { userId, token, displayName, locator, options } = adapterArgs;\n\n const adapter = await createAzureCommunicationCallAdapter({\n userId: fromFlatCommunicationIdentifier(userId) as CommunicationUserIdentifier,\n displayName: displayName ?? 'anonymous',\n credential: new AzureCommunicationTokenCredential(token),\n locator,\n options\n });\n\n if (!htmlElement) {\n throw new Error('Failed to find the root element');\n }\n\n createRoot(htmlElement).render(React.createElement(CallComposite, { ...props, adapter }, null));\n return adapter;\n};\n"]}
1
+ {"version":3,"file":"callCompositeLoader.js","sourceRoot":"","sources":["../../../../../acs-ui-javascript-loaders/src/callCompositeLoader.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;;;;;;;;;AAElC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC;AACnC,iBAAiB,CAAC,YAAY,CAAC,CAAC;AAEhC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,iCAAiC,EAA+B,MAAM,6BAA6B,CAAC;AAC7G,OAAO,EAAE,+BAA+B,EAAE,gCAAgC;AAC1E,OAAO,EACL,aAAa,EACb,mCAAmC,EAKpC,gDAAmC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAclD;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAC/B,WAAqC,EACrC,WAA+B,EAC/B,KAA4B;;QAE5B,eAAe,EAAE,CAAC;QAClB,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC;QAErE,MAAM,OAAO,GAAG,MAAM,mCAAmC,CAAC;YACxD,MAAM,EAAE,+BAA+B,CAAC,MAAM,CAAgC;YAC9E,WAAW,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,WAAW;YACvC,UAAU,EAAE,IAAI,iCAAiC,CAAC,KAAK,CAAC;YACxD,OAAO;YACP,OAAO;SACR,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,UAAU,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,aAAa,kCAAO,KAAK,KAAE,OAAO,KAAI,IAAI,CAAC,CAAC,CAAC;QAChG,OAAO,OAAO,CAAC;IACjB,CAAC;CAAA,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport React from 'react';\nimport { parseReactVersion } from './utils';\n\nconst reactVersion = React.version;\nparseReactVersion(reactVersion);\n\nimport { createRoot } from 'react-dom/client';\nimport { AzureCommunicationTokenCredential, CommunicationUserIdentifier } from '@azure/communication-common';\nimport { fromFlatCommunicationIdentifier } from '@internal/acs-ui-common';\nimport {\n CallComposite,\n createAzureCommunicationCallAdapter,\n AzureCommunicationCallAdapterOptions,\n CallAdapter,\n CallAdapterLocator,\n CallCompositeOptions\n} from '@internal/react-composites';\nimport { initializeIcons } from '@fluentui/react';\n\n/**\n * Props for the OutboundCallComposite that you can use in your application.\n * @beta\n */\nexport type CallCompositeLoaderProps = {\n userId: string;\n token: string;\n displayName: string;\n locator: CallAdapterLocator;\n options?: AzureCommunicationCallAdapterOptions;\n};\n\n/**\n * Loader function for the OutboundCallComposite that you can use in your application.\n *\n * @beta\n */\nexport const loadCallComposite = async function (\n adapterArgs: CallCompositeLoaderProps,\n htmlElement: HTMLElement | null,\n props?: CallCompositeOptions\n): Promise<CallAdapter | undefined> {\n initializeIcons();\n const { userId, token, displayName, locator, options } = adapterArgs;\n\n const adapter = await createAzureCommunicationCallAdapter({\n userId: fromFlatCommunicationIdentifier(userId) as CommunicationUserIdentifier,\n displayName: displayName ?? 'anonymous',\n credential: new AzureCommunicationTokenCredential(token),\n locator,\n options\n });\n\n if (!htmlElement) {\n throw new Error('Failed to find the root element');\n }\n\n createRoot(htmlElement).render(React.createElement(CallComposite, { ...props, adapter }, null));\n return adapter;\n};\n"]}
@@ -0,0 +1,18 @@
1
+ import { CallWithChatAdapter, CallAndChatLocator, CallWithChatCompositeOptions } from "../../react-composites/src/index-public";
2
+ /**
3
+ * Props for the CallWithChatComposite that you can use in your application.
4
+ * @beta
5
+ */
6
+ export type CallWithChatCompositeLoaderProps = {
7
+ userId: string;
8
+ token: string;
9
+ displayName: string;
10
+ endpoint: string;
11
+ locator: CallAndChatLocator;
12
+ };
13
+ /**
14
+ * Props for the CallWithChatComposite that you can use in your application.
15
+ * @beta
16
+ */
17
+ export declare const loadCallWithChatComposite: (args: CallWithChatCompositeLoaderProps, htmlElement: HTMLElement | null, props: CallWithChatCompositeOptions) => Promise<CallWithChatAdapter | undefined>;
18
+ //# sourceMappingURL=callWithChatCompositeLoader.d.ts.map
@@ -0,0 +1,43 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
4
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5
+ return new (P || (P = Promise))(function (resolve, reject) {
6
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
7
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
8
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
9
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
10
+ });
11
+ };
12
+ import React from 'react';
13
+ import { parseReactVersion } from './utils';
14
+ const reactVersion = React.version;
15
+ parseReactVersion(reactVersion);
16
+ import { createRoot } from 'react-dom/client';
17
+ import { AzureCommunicationTokenCredential } from '@azure/communication-common';
18
+ import { fromFlatCommunicationIdentifier } from "../../acs-ui-common/src";
19
+ import { createAzureCommunicationCallWithChatAdapter, CallWithChatComposite } from "../../react-composites/src/index-public";
20
+ import { initializeIcons } from '@fluentui/react';
21
+ /**
22
+ * Props for the CallWithChatComposite that you can use in your application.
23
+ * @beta
24
+ */
25
+ export const loadCallWithChatComposite = function (args, htmlElement, props) {
26
+ return __awaiter(this, void 0, void 0, function* () {
27
+ initializeIcons();
28
+ const { userId, token, displayName, endpoint, locator } = args;
29
+ const adapter = yield createAzureCommunicationCallWithChatAdapter({
30
+ userId: fromFlatCommunicationIdentifier(userId),
31
+ displayName: displayName !== null && displayName !== void 0 ? displayName : 'anonymous',
32
+ credential: new AzureCommunicationTokenCredential(token),
33
+ endpoint: endpoint,
34
+ locator: locator
35
+ });
36
+ if (!htmlElement) {
37
+ throw new Error('Failed to find the root element');
38
+ }
39
+ createRoot(htmlElement).render(React.createElement(CallWithChatComposite, Object.assign(Object.assign({}, props), { adapter }), null));
40
+ return adapter;
41
+ });
42
+ };
43
+ //# sourceMappingURL=callWithChatCompositeLoader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callWithChatCompositeLoader.js","sourceRoot":"","sources":["../../../../../acs-ui-javascript-loaders/src/callWithChatCompositeLoader.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;;;;;;;;;AAElC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC;AACnC,iBAAiB,CAAC,YAAY,CAAC,CAAC;AAEhC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,iCAAiC,EAA+B,MAAM,6BAA6B,CAAC;AAC7G,OAAO,EAAE,+BAA+B,EAAE,gCAAgC;AAC1E,OAAO,EAIL,2CAA2C,EAC3C,qBAAqB,EACtB,gDAAmC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAclD;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,UACvC,IAAsC,EACtC,WAA+B,EAC/B,KAAmC;;QAEnC,eAAe,EAAE,CAAC;QAClB,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QAC/D,MAAM,OAAO,GAAG,MAAM,2CAA2C,CAAC;YAChE,MAAM,EAAE,+BAA+B,CAAC,MAAM,CAAgC;YAC9E,WAAW,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,WAAW;YACvC,UAAU,EAAE,IAAI,iCAAiC,CAAC,KAAK,CAAC;YACxD,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,OAAO;SACjB,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,UAAU,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,qBAAqB,kCAAO,KAAK,KAAE,OAAO,KAAI,IAAI,CAAC,CAAC,CAAC;QACxG,OAAO,OAAO,CAAC;IACjB,CAAC;CAAA,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport React from 'react';\nimport { parseReactVersion } from './utils';\n\nconst reactVersion = React.version;\nparseReactVersion(reactVersion);\n\nimport { createRoot } from 'react-dom/client';\nimport { AzureCommunicationTokenCredential, CommunicationUserIdentifier } from '@azure/communication-common';\nimport { fromFlatCommunicationIdentifier } from '@internal/acs-ui-common';\nimport {\n CallWithChatAdapter,\n CallAndChatLocator,\n CallWithChatCompositeOptions,\n createAzureCommunicationCallWithChatAdapter,\n CallWithChatComposite\n} from '@internal/react-composites';\nimport { initializeIcons } from '@fluentui/react';\n\n/**\n * Props for the CallWithChatComposite that you can use in your application.\n * @beta\n */\nexport type CallWithChatCompositeLoaderProps = {\n userId: string;\n token: string;\n displayName: string;\n endpoint: string;\n locator: CallAndChatLocator;\n};\n\n/**\n * Props for the CallWithChatComposite that you can use in your application.\n * @beta\n */\nexport const loadCallWithChatComposite = async function (\n args: CallWithChatCompositeLoaderProps,\n htmlElement: HTMLElement | null,\n props: CallWithChatCompositeOptions\n): Promise<CallWithChatAdapter | undefined> {\n initializeIcons();\n const { userId, token, displayName, endpoint, locator } = args;\n const adapter = await createAzureCommunicationCallWithChatAdapter({\n userId: fromFlatCommunicationIdentifier(userId) as CommunicationUserIdentifier,\n displayName: displayName ?? 'anonymous',\n credential: new AzureCommunicationTokenCredential(token),\n endpoint: endpoint,\n locator: locator\n });\n\n if (!htmlElement) {\n throw new Error('Failed to find the root element');\n }\n\n createRoot(htmlElement).render(React.createElement(CallWithChatComposite, { ...props, adapter }, null));\n return adapter;\n};\n"]}
@@ -0,0 +1,18 @@
1
+ import { ChatAdapter, ChatCompositeOptions } from "../../react-composites/src/index-public";
2
+ /**
3
+ * Props for the ChatComposite that you can use in your application.
4
+ * @beta
5
+ */
6
+ export type ChatCompositeLoaderProps = {
7
+ userId: string;
8
+ token: string;
9
+ displayName?: string;
10
+ endpoint: string;
11
+ threadId: string;
12
+ };
13
+ /**
14
+ * Loader function for the ChatComposite that you can use in your application.
15
+ * @beta
16
+ */
17
+ export declare const loadChatComposite: (args: ChatCompositeLoaderProps, htmlElement: HTMLElement | null, props: ChatCompositeOptions) => Promise<ChatAdapter | undefined>;
18
+ //# sourceMappingURL=chatCompositeLoader.d.ts.map
@@ -0,0 +1,43 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
4
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5
+ return new (P || (P = Promise))(function (resolve, reject) {
6
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
7
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
8
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
9
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
10
+ });
11
+ };
12
+ import React from 'react';
13
+ import { parseReactVersion } from './utils';
14
+ const reactVersion = React.version;
15
+ parseReactVersion(reactVersion);
16
+ import { createRoot } from 'react-dom/client';
17
+ import { AzureCommunicationTokenCredential } from '@azure/communication-common';
18
+ import { ChatComposite, createAzureCommunicationChatAdapter } from "../../react-composites/src/index-public";
19
+ import { fromFlatCommunicationIdentifier } from "../../acs-ui-common/src";
20
+ import { initializeIcons } from '@fluentui/react';
21
+ /**
22
+ * Loader function for the ChatComposite that you can use in your application.
23
+ * @beta
24
+ */
25
+ export const loadChatComposite = function (args, htmlElement, props) {
26
+ return __awaiter(this, void 0, void 0, function* () {
27
+ initializeIcons();
28
+ const { userId, token, endpoint, threadId, displayName } = args;
29
+ const adapter = yield createAzureCommunicationChatAdapter({
30
+ endpoint,
31
+ userId: fromFlatCommunicationIdentifier(userId),
32
+ displayName: displayName !== null && displayName !== void 0 ? displayName : 'anonymous',
33
+ credential: new AzureCommunicationTokenCredential(token),
34
+ threadId
35
+ });
36
+ if (!htmlElement) {
37
+ throw new Error('Failed to find the root element');
38
+ }
39
+ createRoot(htmlElement).render(React.createElement(ChatComposite, Object.assign(Object.assign({}, props), { adapter }), null));
40
+ return adapter;
41
+ });
42
+ };
43
+ //# sourceMappingURL=chatCompositeLoader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatCompositeLoader.js","sourceRoot":"","sources":["../../../../../acs-ui-javascript-loaders/src/chatCompositeLoader.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;;;;;;;;;AAElC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC;AACnC,iBAAiB,CAAC,YAAY,CAAC,CAAC;AAEhC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,iCAAiC,EAA+B,MAAM,6BAA6B,CAAC;AAC7G,OAAO,EAEL,aAAa,EAEb,mCAAmC,EACpC,gDAAmC;AACpC,OAAO,EAAE,+BAA+B,EAAE,gCAAgC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAclD;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAC/B,IAA8B,EAC9B,WAA+B,EAC/B,KAA2B;;QAE3B,eAAe,EAAE,CAAC;QAClB,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;QAChE,MAAM,OAAO,GAAG,MAAM,mCAAmC,CAAC;YACxD,QAAQ;YACR,MAAM,EAAE,+BAA+B,CAAC,MAAM,CAAgC;YAC9E,WAAW,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,WAAW;YACvC,UAAU,EAAE,IAAI,iCAAiC,CAAC,KAAK,CAAC;YACxD,QAAQ;SACT,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,UAAU,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,aAAa,kCAAO,KAAK,KAAE,OAAO,KAAI,IAAI,CAAC,CAAC,CAAC;QAChG,OAAO,OAAO,CAAC;IACjB,CAAC;CAAA,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport React from 'react';\nimport { parseReactVersion } from './utils';\n\nconst reactVersion = React.version;\nparseReactVersion(reactVersion);\n\nimport { createRoot } from 'react-dom/client';\nimport { AzureCommunicationTokenCredential, CommunicationUserIdentifier } from '@azure/communication-common';\nimport {\n ChatAdapter,\n ChatComposite,\n ChatCompositeOptions,\n createAzureCommunicationChatAdapter\n} from '@internal/react-composites';\nimport { fromFlatCommunicationIdentifier } from '@internal/acs-ui-common';\nimport { initializeIcons } from '@fluentui/react';\n\n/**\n * Props for the ChatComposite that you can use in your application.\n * @beta\n */\nexport type ChatCompositeLoaderProps = {\n userId: string;\n token: string;\n displayName?: string;\n endpoint: string;\n threadId: string;\n};\n\n/**\n * Loader function for the ChatComposite that you can use in your application.\n * @beta\n */\nexport const loadChatComposite = async function (\n args: ChatCompositeLoaderProps,\n htmlElement: HTMLElement | null,\n props: ChatCompositeOptions\n): Promise<ChatAdapter | undefined> {\n initializeIcons();\n const { userId, token, endpoint, threadId, displayName } = args;\n const adapter = await createAzureCommunicationChatAdapter({\n endpoint,\n userId: fromFlatCommunicationIdentifier(userId) as CommunicationUserIdentifier,\n displayName: displayName ?? 'anonymous',\n credential: new AzureCommunicationTokenCredential(token),\n threadId\n });\n\n if (!htmlElement) {\n throw new Error('Failed to find the root element');\n }\n\n createRoot(htmlElement).render(React.createElement(ChatComposite, { ...props, adapter }, null));\n return adapter;\n};\n"]}
@@ -1,5 +1,9 @@
1
1
  export { loadOutboundCallComposite } from './outboundCallCompositeLoader';
2
2
  export { loadCallComposite } from './callCompositeLoader';
3
+ export { loadChatComposite } from './chatCompositeLoader';
4
+ export { loadCallWithChatComposite } from './callWithChatCompositeLoader';
3
5
  export type { OutboundCallCompositeLoaderProps } from './outboundCallCompositeLoader';
4
6
  export type { CallCompositeLoaderProps } from './callCompositeLoader';
7
+ export type { ChatCompositeLoaderProps } from './chatCompositeLoader';
8
+ export type { CallWithChatCompositeLoaderProps } from './callWithChatCompositeLoader';
5
9
  //# sourceMappingURL=index.d.ts.map
@@ -2,4 +2,6 @@
2
2
  // Licensed under the MIT License.
3
3
  export { loadOutboundCallComposite } from './outboundCallCompositeLoader';
4
4
  export { loadCallComposite } from './callCompositeLoader';
5
+ export { loadChatComposite } from './chatCompositeLoader';
6
+ export { loadCallWithChatComposite } from './callWithChatCompositeLoader';
5
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../acs-ui-javascript-loaders/src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { loadOutboundCallComposite } from './outboundCallCompositeLoader';\nexport { loadCallComposite } from './callCompositeLoader';\nexport type { OutboundCallCompositeLoaderProps } from './outboundCallCompositeLoader';\nexport type { CallCompositeLoaderProps } from './callCompositeLoader';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../acs-ui-javascript-loaders/src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { loadOutboundCallComposite } from './outboundCallCompositeLoader';\nexport { loadCallComposite } from './callCompositeLoader';\nexport { loadChatComposite } from './chatCompositeLoader';\nexport { loadCallWithChatComposite } from './callWithChatCompositeLoader';\nexport type { OutboundCallCompositeLoaderProps } from './outboundCallCompositeLoader';\nexport type { CallCompositeLoaderProps } from './callCompositeLoader';\nexport type { ChatCompositeLoaderProps } from './chatCompositeLoader';\nexport type { CallWithChatCompositeLoaderProps } from './callWithChatCompositeLoader';\n"]}
@@ -1,7 +1,7 @@
1
1
  import { CallCompositeOptions, StartCallIdentifier, AzureCommunicationCallAdapterOptions, CallAdapter } from "../../react-composites/src/index-public";
2
2
  /**
3
3
  * Props for the OutboundCallComposite that you can use in your application.
4
- * @public
4
+ * @beta
5
5
  */
6
6
  export type OutboundCallCompositeLoaderProps = {
7
7
  userId: string;
@@ -13,7 +13,7 @@ export type OutboundCallCompositeLoaderProps = {
13
13
  /**
14
14
  * Loader function for the OutboundCallComposite that you can use in your application.
15
15
  *
16
- * @public
16
+ * @beta
17
17
  */
18
18
  export declare const loadOutboundCallComposite: (adapterArgs: OutboundCallCompositeLoaderProps, htmlElement: HTMLElement | null, props?: CallCompositeOptions) => Promise<CallAdapter | undefined>;
19
19
  //# sourceMappingURL=outboundCallCompositeLoader.d.ts.map
@@ -10,16 +10,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  });
11
11
  };
12
12
  import React from 'react';
13
+ import { parseReactVersion } from './utils';
13
14
  const reactVersion = React.version;
14
- const parseReactVersion = (version) => {
15
- if (!version) {
16
- return [];
17
- }
18
- return version.split('.').map((v) => parseInt(v));
19
- };
20
- if (parseReactVersion(reactVersion)[0] && parseReactVersion(reactVersion)[0] < 18) {
21
- throw new Error('React version is less than 18. Please upgrade to React 18 or alternatively checkout how to use our composites directly here: https://azure.github.io/communication-ui-library/?path=/docs/quickstarts-composites--page');
22
- }
15
+ parseReactVersion(reactVersion);
23
16
  import { createRoot } from 'react-dom/client';
24
17
  import { AzureCommunicationTokenCredential } from '@azure/communication-common';
25
18
  import { fromFlatCommunicationIdentifier } from "../../acs-ui-common/src";
@@ -28,7 +21,7 @@ import { initializeIcons } from '@fluentui/react';
28
21
  /**
29
22
  * Loader function for the OutboundCallComposite that you can use in your application.
30
23
  *
31
- * @public
24
+ * @beta
32
25
  */
33
26
  export const loadOutboundCallComposite = function (adapterArgs, htmlElement, props) {
34
27
  return __awaiter(this, void 0, void 0, function* () {
@@ -1 +1 @@
1
- {"version":3,"file":"outboundCallCompositeLoader.js","sourceRoot":"","sources":["../../../../../acs-ui-javascript-loaders/src/outboundCallCompositeLoader.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;;;;;;;;;AAElC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC;AACnC,MAAM,iBAAiB,GAAG,CAAC,OAA2B,EAAY,EAAE;IAClE,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AACpD,CAAC,CAAC;AACF,IAAI,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,IAAI,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC;IAClF,MAAM,IAAI,KAAK,CACb,wNAAwN,CACzN,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,iCAAiC,EAA+B,MAAM,6BAA6B,CAAC;AAC7G,OAAO,EAAE,+BAA+B,EAAE,gCAAgC;AAC1E,OAAO,EACL,aAAa,EACb,mCAAmC,EAKpC,gDAAmC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAclD;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,UACvC,WAA6C,EAC7C,WAA+B,EAC/B,KAA4B;;;QAE5B,eAAe,EAAE,CAAC;QAClB,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC;QAC3E,MAAM,sBAAsB,GAC1B,OAAO,aAAa,CAAC,CAAC,CAAC,KAAK,QAAQ;YAClC,CAAC,CAAE,aAA0B,CAAC,GAAG,CAAC,CAAC,MAAc,EAAE,EAAE;gBACjD,OAAO,+BAA+B,CAAC,MAAM,CAAC,CAAC;YACjD,CAAC,CAAC;YACJ,CAAC,CAAC,SAAS,CAAC;QAEhB,MAAM,OAAO,GAAG,MAAM,mCAAmC,CAAC;YACxD,MAAM,EAAE,+BAA+B,CAAC,MAAM,CAAgC;YAC9E,WAAW,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,WAAW;YACvC,UAAU,EAAE,IAAI,iCAAiC,CAAC,KAAK,CAAC;YACxD,aAAa,EAAE,MAAC,sBAAgD,mCAAK,aAAuC;YAC5G,OAAO;SACR,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,UAAU,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,aAAa,kCAAO,KAAK,KAAE,OAAO,KAAI,IAAI,CAAC,CAAC,CAAC;QAChG,OAAO,OAAO,CAAC;IACjB,CAAC;CAAA,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport React from 'react';\n\nconst reactVersion = React.version;\nconst parseReactVersion = (version: string | undefined): number[] => {\n if (!version) {\n return [];\n }\n return version.split('.').map((v) => parseInt(v));\n};\nif (parseReactVersion(reactVersion)[0] && parseReactVersion(reactVersion)[0] < 18) {\n throw new Error(\n 'React version is less than 18. Please upgrade to React 18 or alternatively checkout how to use our composites directly here: https://azure.github.io/communication-ui-library/?path=/docs/quickstarts-composites--page'\n );\n}\n\nimport { createRoot } from 'react-dom/client';\nimport { AzureCommunicationTokenCredential, CommunicationUserIdentifier } from '@azure/communication-common';\nimport { fromFlatCommunicationIdentifier } from '@internal/acs-ui-common';\nimport {\n CallComposite,\n createAzureCommunicationCallAdapter,\n CallCompositeOptions,\n StartCallIdentifier,\n AzureCommunicationCallAdapterOptions,\n CallAdapter\n} from '@internal/react-composites';\nimport { initializeIcons } from '@fluentui/react';\n\n/**\n * Props for the OutboundCallComposite that you can use in your application.\n * @public\n */\nexport type OutboundCallCompositeLoaderProps = {\n userId: string;\n token: string;\n displayName: string;\n targetCallees: string[] | StartCallIdentifier[];\n options?: AzureCommunicationCallAdapterOptions;\n};\n\n/**\n * Loader function for the OutboundCallComposite that you can use in your application.\n *\n * @public\n */\nexport const loadOutboundCallComposite = async function (\n adapterArgs: OutboundCallCompositeLoaderProps,\n htmlElement: HTMLElement | null,\n props?: CallCompositeOptions\n): Promise<CallAdapter | undefined> {\n initializeIcons();\n const { userId, token, displayName, targetCallees, options } = adapterArgs;\n const formattedTargetCallees =\n typeof targetCallees[0] === 'string'\n ? (targetCallees as string[]).map((callee: string) => {\n return fromFlatCommunicationIdentifier(callee);\n })\n : undefined;\n\n const adapter = await createAzureCommunicationCallAdapter({\n userId: fromFlatCommunicationIdentifier(userId) as CommunicationUserIdentifier,\n displayName: displayName ?? 'anonymous',\n credential: new AzureCommunicationTokenCredential(token),\n targetCallees: (formattedTargetCallees as StartCallIdentifier[]) ?? (targetCallees as StartCallIdentifier[]),\n options\n });\n\n if (!htmlElement) {\n throw new Error('Failed to find the root element');\n }\n\n createRoot(htmlElement).render(React.createElement(CallComposite, { ...props, adapter }, null));\n return adapter;\n};\n"]}
1
+ {"version":3,"file":"outboundCallCompositeLoader.js","sourceRoot":"","sources":["../../../../../acs-ui-javascript-loaders/src/outboundCallCompositeLoader.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;;;;;;;;;AAElC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC;AACnC,iBAAiB,CAAC,YAAY,CAAC,CAAC;AAEhC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,iCAAiC,EAA+B,MAAM,6BAA6B,CAAC;AAC7G,OAAO,EAAE,+BAA+B,EAAE,gCAAgC;AAC1E,OAAO,EACL,aAAa,EACb,mCAAmC,EAKpC,gDAAmC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAclD;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,UACvC,WAA6C,EAC7C,WAA+B,EAC/B,KAA4B;;;QAE5B,eAAe,EAAE,CAAC;QAClB,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC;QAC3E,MAAM,sBAAsB,GAC1B,OAAO,aAAa,CAAC,CAAC,CAAC,KAAK,QAAQ;YAClC,CAAC,CAAE,aAA0B,CAAC,GAAG,CAAC,CAAC,MAAc,EAAE,EAAE;gBACjD,OAAO,+BAA+B,CAAC,MAAM,CAAC,CAAC;YACjD,CAAC,CAAC;YACJ,CAAC,CAAC,SAAS,CAAC;QAEhB,MAAM,OAAO,GAAG,MAAM,mCAAmC,CAAC;YACxD,MAAM,EAAE,+BAA+B,CAAC,MAAM,CAAgC;YAC9E,WAAW,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,WAAW;YACvC,UAAU,EAAE,IAAI,iCAAiC,CAAC,KAAK,CAAC;YACxD,aAAa,EAAE,MAAC,sBAAgD,mCAAK,aAAuC;YAC5G,OAAO;SACR,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,UAAU,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,aAAa,kCAAO,KAAK,KAAE,OAAO,KAAI,IAAI,CAAC,CAAC,CAAC;QAChG,OAAO,OAAO,CAAC;IACjB,CAAC;CAAA,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport React from 'react';\nimport { parseReactVersion } from './utils';\n\nconst reactVersion = React.version;\nparseReactVersion(reactVersion);\n\nimport { createRoot } from 'react-dom/client';\nimport { AzureCommunicationTokenCredential, CommunicationUserIdentifier } from '@azure/communication-common';\nimport { fromFlatCommunicationIdentifier } from '@internal/acs-ui-common';\nimport {\n CallComposite,\n createAzureCommunicationCallAdapter,\n CallCompositeOptions,\n StartCallIdentifier,\n AzureCommunicationCallAdapterOptions,\n CallAdapter\n} from '@internal/react-composites';\nimport { initializeIcons } from '@fluentui/react';\n\n/**\n * Props for the OutboundCallComposite that you can use in your application.\n * @beta\n */\nexport type OutboundCallCompositeLoaderProps = {\n userId: string;\n token: string;\n displayName: string;\n targetCallees: string[] | StartCallIdentifier[];\n options?: AzureCommunicationCallAdapterOptions;\n};\n\n/**\n * Loader function for the OutboundCallComposite that you can use in your application.\n *\n * @beta\n */\nexport const loadOutboundCallComposite = async function (\n adapterArgs: OutboundCallCompositeLoaderProps,\n htmlElement: HTMLElement | null,\n props?: CallCompositeOptions\n): Promise<CallAdapter | undefined> {\n initializeIcons();\n const { userId, token, displayName, targetCallees, options } = adapterArgs;\n const formattedTargetCallees =\n typeof targetCallees[0] === 'string'\n ? (targetCallees as string[]).map((callee: string) => {\n return fromFlatCommunicationIdentifier(callee);\n })\n : undefined;\n\n const adapter = await createAzureCommunicationCallAdapter({\n userId: fromFlatCommunicationIdentifier(userId) as CommunicationUserIdentifier,\n displayName: displayName ?? 'anonymous',\n credential: new AzureCommunicationTokenCredential(token),\n targetCallees: (formattedTargetCallees as StartCallIdentifier[]) ?? (targetCallees as StartCallIdentifier[]),\n options\n });\n\n if (!htmlElement) {\n throw new Error('Failed to find the root element');\n }\n\n createRoot(htmlElement).render(React.createElement(CallComposite, { ...props, adapter }, null));\n return adapter;\n};\n"]}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Checks the version of react and throws an error if it is less than 18 in the loaders
3
+ * @param version - version of react
4
+ * @private
5
+ */
6
+ export declare const parseReactVersion: (version: string | undefined) => void;
7
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1,17 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ /**
4
+ * Checks the version of react and throws an error if it is less than 18 in the loaders
5
+ * @param version - version of react
6
+ * @private
7
+ */
8
+ export const parseReactVersion = (version) => {
9
+ if (!version) {
10
+ return;
11
+ }
12
+ const reactVersion = version.split('.').map((v) => parseInt(v));
13
+ if (reactVersion[0] && reactVersion[0] < 18) {
14
+ throw new Error('React version is less than 18. Please upgrade to React 18 or alternatively checkout how to use our composites directly here: https://aka.ms/acsstorybook');
15
+ }
16
+ };
17
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../acs-ui-javascript-loaders/src/utils.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,OAA2B,EAAQ,EAAE;IACrE,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO;IACT,CAAC;IACD,MAAM,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IAChE,IAAI,YAAY,CAAC,CAAC,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC;QAC5C,MAAM,IAAI,KAAK,CACb,0JAA0J,CAC3J,CAAC;IACJ,CAAC;AACH,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Checks the version of react and throws an error if it is less than 18 in the loaders\n * @param version - version of react\n * @private\n */\nexport const parseReactVersion = (version: string | undefined): void => {\n if (!version) {\n return;\n }\n const reactVersion = version.split('.').map((v) => parseInt(v));\n if (reactVersion[0] && reactVersion[0] < 18) {\n throw new Error(\n 'React version is less than 18. Please upgrade to React 18 or alternatively checkout how to use our composites directly here: https://aka.ms/acsstorybook'\n );\n }\n};\n"]}
@@ -0,0 +1,18 @@
1
+ import { BreakoutRoomsCallFeature } from '@azure/communication-calling';
2
+ import { CallContext } from './CallContext';
3
+ import { CallIdRef } from './CallIdRef';
4
+ /**
5
+ * @private
6
+ */
7
+ export declare class BreakoutRoomsSubscriber {
8
+ private _callIdRef;
9
+ private _context;
10
+ private _breakoutRoomsFeature;
11
+ constructor(callIdRef: CallIdRef, context: CallContext, breakoutRoomsFeature: BreakoutRoomsCallFeature);
12
+ unsubscribe: () => void;
13
+ private subscribe;
14
+ private onBreakoutRoomsUpdated;
15
+ private onAssignedBreakoutRoomUpdated;
16
+ private onBreakoutRoomSettingsUpdated;
17
+ }
18
+ //# sourceMappingURL=BreakoutRoomsSubscriber.d.ts.map
@@ -0,0 +1,36 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ /* @conditional-compile-remove(breakout-rooms) */
4
+ /**
5
+ * @private
6
+ */
7
+ export class BreakoutRoomsSubscriber {
8
+ constructor(callIdRef, context, breakoutRoomsFeature) {
9
+ this.unsubscribe = () => { };
10
+ this.onBreakoutRoomsUpdated = (eventData) => {
11
+ if (!eventData.data) {
12
+ return;
13
+ }
14
+ if (eventData.type === 'assignedBreakoutRooms') {
15
+ this.onAssignedBreakoutRoomUpdated(eventData.data);
16
+ }
17
+ else if (eventData.type === 'breakoutRoomsSettings') {
18
+ this.onBreakoutRoomSettingsUpdated(eventData.data);
19
+ }
20
+ };
21
+ this.onAssignedBreakoutRoomUpdated = (breakoutRoom) => {
22
+ this._context.setAssignedBreakoutRoom(this._callIdRef.callId, breakoutRoom);
23
+ };
24
+ this.onBreakoutRoomSettingsUpdated = (breakoutRoomSettings) => {
25
+ this._context.setBreakoutRoomSettings(this._callIdRef.callId, breakoutRoomSettings);
26
+ };
27
+ this._callIdRef = callIdRef;
28
+ this._context = context;
29
+ this._breakoutRoomsFeature = breakoutRoomsFeature;
30
+ this.subscribe();
31
+ }
32
+ subscribe() {
33
+ this._breakoutRoomsFeature.on('breakoutRoomsUpdated', this.onBreakoutRoomsUpdated);
34
+ }
35
+ }
36
+ //# sourceMappingURL=BreakoutRoomsSubscriber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BreakoutRoomsSubscriber.js","sourceRoot":"","sources":["../../../../../calling-stateful-client/src/BreakoutRoomsSubscriber.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAclC,iDAAiD;AACjD;;GAEG;AACH,MAAM,OAAO,uBAAuB;IAKlC,YAAY,SAAoB,EAAE,OAAoB,EAAE,oBAA8C;QAQ/F,gBAAW,GAAG,GAAS,EAAE,GAAE,CAAC,CAAC;QAM5B,2BAAsB,GAAG,CAAC,SAAiC,EAAQ,EAAE;YAC3E,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;gBACpB,OAAO;YACT,CAAC;YAED,IAAI,SAAS,CAAC,IAAI,KAAK,uBAAuB,EAAE,CAAC;gBAC/C,IAAI,CAAC,6BAA6B,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YACrD,CAAC;iBAAM,IAAI,SAAS,CAAC,IAAI,KAAK,uBAAuB,EAAE,CAAC;gBACtD,IAAI,CAAC,6BAA6B,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YACrD,CAAC;QACH,CAAC,CAAC;QAEM,kCAA6B,GAAG,CAAC,YAA0B,EAAQ,EAAE;YAC3E,IAAI,CAAC,QAAQ,CAAC,uBAAuB,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;QAC9E,CAAC,CAAC;QAEM,kCAA6B,GAAG,CAAC,oBAA2C,EAAQ,EAAE;YAC5F,IAAI,CAAC,QAAQ,CAAC,uBAAuB,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;QACtF,CAAC,CAAC;QA/BA,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,qBAAqB,GAAG,oBAAoB,CAAC;QAElD,IAAI,CAAC,SAAS,EAAE,CAAC;IACnB,CAAC;IAIO,SAAS;QACf,IAAI,CAAC,qBAAqB,CAAC,EAAE,CAAC,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;IACrF,CAAC;CAqBF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/* @conditional-compile-remove(breakout-rooms) */\nimport {\n BreakoutRoom,\n BreakoutRoomsCallFeature,\n BreakoutRoomsEventData,\n BreakoutRoomsSettings\n} from '@azure/communication-calling';\n/* @conditional-compile-remove(breakout-rooms) */\nimport { CallContext } from './CallContext';\n/* @conditional-compile-remove(breakout-rooms) */\nimport { CallIdRef } from './CallIdRef';\n\n/* @conditional-compile-remove(breakout-rooms) */\n/**\n * @private\n */\nexport class BreakoutRoomsSubscriber {\n private _callIdRef: CallIdRef;\n private _context: CallContext;\n private _breakoutRoomsFeature: BreakoutRoomsCallFeature;\n\n constructor(callIdRef: CallIdRef, context: CallContext, breakoutRoomsFeature: BreakoutRoomsCallFeature) {\n this._callIdRef = callIdRef;\n this._context = context;\n this._breakoutRoomsFeature = breakoutRoomsFeature;\n\n this.subscribe();\n }\n\n public unsubscribe = (): void => {};\n\n private subscribe(): void {\n this._breakoutRoomsFeature.on('breakoutRoomsUpdated', this.onBreakoutRoomsUpdated);\n }\n\n private onBreakoutRoomsUpdated = (eventData: BreakoutRoomsEventData): void => {\n if (!eventData.data) {\n return;\n }\n\n if (eventData.type === 'assignedBreakoutRooms') {\n this.onAssignedBreakoutRoomUpdated(eventData.data);\n } else if (eventData.type === 'breakoutRoomsSettings') {\n this.onBreakoutRoomSettingsUpdated(eventData.data);\n }\n };\n\n private onAssignedBreakoutRoomUpdated = (breakoutRoom: BreakoutRoom): void => {\n this._context.setAssignedBreakoutRoom(this._callIdRef.callId, breakoutRoom);\n };\n\n private onBreakoutRoomSettingsUpdated = (breakoutRoomSettings: BreakoutRoomsSettings): void => {\n this._context.setBreakoutRoomSettings(this._callIdRef.callId, breakoutRoomSettings);\n };\n}\n"]}
@@ -1,4 +1,5 @@
1
1
  import { AudioDeviceInfo, CallDirection, CallEndReason, CallerInfo, CallState as CallStatus, DeviceAccess, DominantSpeakersInfo, IncomingCallKind, LatestMediaDiagnostics, LatestNetworkDiagnostics, MediaStreamType, ParticipantRole, RemoteParticipantState as RemoteParticipantStatus, ScalingMode, VideoDeviceInfo } from '@azure/communication-calling';
2
+ import { BreakoutRoom, BreakoutRoomsSettings } from '@azure/communication-calling';
2
3
  import { TeamsCallInfo } from '@azure/communication-calling';
3
4
  import { CallInfo } from '@azure/communication-calling';
4
5
  import { CapabilitiesChangeInfo, ParticipantCapabilities } from '@azure/communication-calling';
@@ -153,6 +154,15 @@ export interface SpotlightState {
153
154
  */
154
155
  spotlightedOrderPosition?: number;
155
156
  }
157
+ /**
158
+ * Breakout rooms state
159
+ *
160
+ * @public
161
+ */
162
+ export interface BreakoutRoomsState {
163
+ assignedBreakoutRoom?: BreakoutRoom;
164
+ breakoutRoomSettings?: BreakoutRoomsSettings;
165
+ }
156
166
  /**
157
167
  * State only version of {@link @azure/communication-calling#RecordingCallFeature}. {@link StatefulCallClient} will
158
168
  * automatically listen for recording state of the call and update the state exposed by {@link StatefulCallClient} accordingly.
@@ -585,6 +595,10 @@ export interface CallState {
585
595
  meetingConference?: {
586
596
  conferencePhones: ConferencePhoneInfo[];
587
597
  };
598
+ /**
599
+ * Proxy of {@link @azure/communication-calling#BreakoutRoomsFeature}.
600
+ */
601
+ breakoutRooms?: BreakoutRoomsState;
588
602
  }
589
603
  /**
590
604
  * Transfer feature state