@azure/communication-react 1.14.0-alpha-202403130012 → 1.14.0-alpha-202403150012
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/communication-react.d.ts +5 -5
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-Be7pr6o4.js → RichTextSendBoxWrapper-UUKnVH43.js} +2 -2
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-Be7pr6o4.js.map → RichTextSendBoxWrapper-UUKnVH43.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{index-C3IKJHX1.js → index-Db9LOYoW.js} +471 -201
- package/dist/dist-cjs/communication-react/index-Db9LOYoW.js.map +1 -0
- package/dist/dist-cjs/communication-react/index.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +4 -4
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +3 -1
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js +13 -2
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +46 -1
- package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +2 -1
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +18 -8
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.d.ts +16 -1
- package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js +38 -2
- package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/Converter.d.ts +6 -1
- package/dist/dist-esm/calling-stateful-client/src/Converter.js +8 -1
- package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +1 -1
- package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
- package/dist/dist-esm/chat-stateful-client/src/ChatContext.js +6 -2
- package/dist/dist-esm/chat-stateful-client/src/ChatContext.js.map +1 -1
- package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.d.ts +1 -1
- package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js +5 -2
- package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js +19 -8
- package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.d.ts +4 -0
- package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/Drawer/ReactionDrawerMenuItem.d.ts +29 -0
- package/dist/dist-esm/react-components/src/components/Drawer/ReactionDrawerMenuItem.js +60 -0
- package/dist/dist-esm/react-components/src/components/Drawer/ReactionDrawerMenuItem.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/Drawer/index.d.ts +2 -0
- package/dist/dist-esm/react-components/src/components/Drawer/index.js +2 -0
- package/dist/dist-esm/react-components/src/components/Drawer/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ImageOverlay.js +17 -9
- package/dist/dist-esm/react-components/src/components/ImageOverlay.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/ReactionButton.styles.d.ts +12 -0
- package/dist/dist-esm/react-components/src/components/styles/ReactionButton.styles.js +47 -3
- package/dist/dist-esm/react-components/src/components/styles/ReactionButton.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +23 -4
- package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/strings.json +23 -4
- package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +23 -4
- package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +23 -4
- package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +23 -4
- package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +23 -4
- package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +23 -4
- package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +23 -4
- package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +23 -4
- package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +23 -4
- package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +23 -4
- package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +23 -4
- package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +23 -4
- package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +23 -4
- package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +23 -4
- package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +23 -4
- package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +23 -4
- package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +23 -4
- package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +23 -4
- package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +23 -4
- package/dist/dist-esm/react-components/src/theming/themes.js +1 -1
- package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +43 -15
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +11 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +5 -2
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.d.ts +4 -0
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +32 -21
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.d.ts +3 -0
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/ar-SA/strings.json +6 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/cs-CZ/strings.json +6 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +6 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +6 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +6 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/fi-FI/strings.json +6 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +6 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/he-IL/strings.json +6 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +6 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +6 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +6 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/nb-NO/strings.json +6 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +6 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/pl-PL/strings.json +6 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +6 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +6 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/sv-SE/strings.json +6 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +6 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +6 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +6 -2
- package/package.json +1 -1
- package/dist/dist-cjs/communication-react/index-C3IKJHX1.js.map +0 -1
@@ -7,7 +7,8 @@
|
|
7
7
|
"mutedIconLabel": "已静音",
|
8
8
|
"displayNamePlaceholder": "未命名的参与者",
|
9
9
|
"participantStateRinging": "正在呼叫...",
|
10
|
-
"participantStateHold": "待机音乐"
|
10
|
+
"participantStateHold": "待机音乐",
|
11
|
+
"attendeeRole": "与会者"
|
11
12
|
},
|
12
13
|
"ParticipantList": {
|
13
14
|
"overflowParticipantCount": "+{overflowCount} 个"
|
@@ -28,6 +29,23 @@
|
|
28
29
|
"uploading": "正在上传",
|
29
30
|
"uploadCompleted": "已完成上传"
|
30
31
|
},
|
32
|
+
"richTextSendBox": {
|
33
|
+
"placeholderText": "输入消息",
|
34
|
+
"textTooLong": "你的消息长度超过了最大限制。",
|
35
|
+
"sendButtonAriaLabel": "发送信息",
|
36
|
+
"fileUploadsPendingError": "正在上传...请稍等。",
|
37
|
+
"removeFile": "删除文件",
|
38
|
+
"uploading": "正在上传",
|
39
|
+
"uploadCompleted": "已完成上传",
|
40
|
+
"boldTooltip": "粗体",
|
41
|
+
"italicTooltip": "斜体",
|
42
|
+
"underlineTooltip": "下划线",
|
43
|
+
"bulletListTooltip": "项目符号列表",
|
44
|
+
"numberListTooltip": "编号列表",
|
45
|
+
"increaseIndentTooltip": "增加缩进量",
|
46
|
+
"decreaseIndentTooltip": "减少缩进量",
|
47
|
+
"richTextFormatButtonTooltip": "格式"
|
48
|
+
},
|
31
49
|
"mentionPopover": {
|
32
50
|
"mentionPopoverHeader": "建议"
|
33
51
|
},
|
@@ -125,6 +143,7 @@
|
|
125
143
|
},
|
126
144
|
"reactionButton": {
|
127
145
|
"label": "回应",
|
146
|
+
"ariaLabel": "回应按钮,发送回应",
|
128
147
|
"tooltipDisabledContent": "已禁用表情符号操作",
|
129
148
|
"tooltipContent": "发送表情符号",
|
130
149
|
"likeReactionTooltipContent": "点赞",
|
@@ -224,7 +243,8 @@
|
|
224
243
|
"addSpotlightVideoTileMenuLabel": "添加聚焦",
|
225
244
|
"spotlightLimitReachedMenuTitle": "已达到聚焦限制",
|
226
245
|
"stopSpotlightVideoTileMenuLabel": "停止聚焦",
|
227
|
-
"stopSpotlightOnSelfVideoTileMenuLabel": "退出聚焦"
|
246
|
+
"stopSpotlightOnSelfVideoTileMenuLabel": "退出聚焦",
|
247
|
+
"attendeeRole": "与会者"
|
228
248
|
},
|
229
249
|
"dialpad": {
|
230
250
|
"placeholderText": "输入电话号码",
|
@@ -358,6 +378,5 @@
|
|
358
378
|
"verticalGallery": {
|
359
379
|
"leftNavButtonAriaLabel": "上一页",
|
360
380
|
"rightNavButtonAriaLabel": "下一页"
|
361
|
-
}
|
362
|
-
"AttendeeRole": "与会者"
|
381
|
+
}
|
363
382
|
}
|
@@ -7,7 +7,8 @@
|
|
7
7
|
"mutedIconLabel": "已靜音",
|
8
8
|
"displayNamePlaceholder": "未命名的參與者",
|
9
9
|
"participantStateRinging": "撥號中...",
|
10
|
-
"participantStateHold": "電話保留"
|
10
|
+
"participantStateHold": "電話保留",
|
11
|
+
"attendeeRole": "出席者"
|
11
12
|
},
|
12
13
|
"ParticipantList": {
|
13
14
|
"overflowParticipantCount": "其他 {overflowCount} 個"
|
@@ -28,6 +29,23 @@
|
|
28
29
|
"uploading": "正在上傳",
|
29
30
|
"uploadCompleted": "上傳完成"
|
30
31
|
},
|
32
|
+
"richTextSendBox": {
|
33
|
+
"placeholderText": "輸入訊息",
|
34
|
+
"textTooLong": "您的訊息長度超過上限。",
|
35
|
+
"sendButtonAriaLabel": "傳送訊息",
|
36
|
+
"fileUploadsPendingError": "正在上傳...請稍候。",
|
37
|
+
"removeFile": "移除檔案",
|
38
|
+
"uploading": "正在上傳",
|
39
|
+
"uploadCompleted": "上傳完成",
|
40
|
+
"boldTooltip": "粗體",
|
41
|
+
"italicTooltip": "斜體",
|
42
|
+
"underlineTooltip": "底線",
|
43
|
+
"bulletListTooltip": "項目符號清單",
|
44
|
+
"numberListTooltip": "編號清單",
|
45
|
+
"increaseIndentTooltip": "增加縮排",
|
46
|
+
"decreaseIndentTooltip": "減少縮排",
|
47
|
+
"richTextFormatButtonTooltip": "格式"
|
48
|
+
},
|
31
49
|
"mentionPopover": {
|
32
50
|
"mentionPopoverHeader": "建議"
|
33
51
|
},
|
@@ -125,6 +143,7 @@
|
|
125
143
|
},
|
126
144
|
"reactionButton": {
|
127
145
|
"label": "傳送表情符號",
|
146
|
+
"ariaLabel": "表情符號按鈕,傳送表情符號",
|
128
147
|
"tooltipDisabledContent": "已停用表情符號動作",
|
129
148
|
"tooltipContent": "傳送表情符號",
|
130
149
|
"likeReactionTooltipContent": "按讚",
|
@@ -224,7 +243,8 @@
|
|
224
243
|
"addSpotlightVideoTileMenuLabel": "新增焦點",
|
225
244
|
"spotlightLimitReachedMenuTitle": "已達焦點限制",
|
226
245
|
"stopSpotlightVideoTileMenuLabel": "停止聚焦",
|
227
|
-
"stopSpotlightOnSelfVideoTileMenuLabel": "結束聚焦"
|
246
|
+
"stopSpotlightOnSelfVideoTileMenuLabel": "結束聚焦",
|
247
|
+
"attendeeRole": "出席者"
|
228
248
|
},
|
229
249
|
"dialpad": {
|
230
250
|
"placeholderText": "輸入電話號碼",
|
@@ -358,6 +378,5 @@
|
|
358
378
|
"verticalGallery": {
|
359
379
|
"leftNavButtonAriaLabel": "上一頁",
|
360
380
|
"rightNavButtonAriaLabel": "下一頁"
|
361
|
-
}
|
362
|
-
"AttendeeRole": "出席者"
|
381
|
+
}
|
363
382
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"themes.js","sourceRoot":"","sources":["../../../../../../react-components/src/theming/themes.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAoBlC;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAgC;IACrD,OAAO,EAAE;QACP,YAAY,EAAE,SAAS;QACvB,eAAe,EAAE,SAAS;QAC1B,YAAY,EAAE,SAAS;QACvB,UAAU,EAAE,SAAS;QACrB,aAAa,EAAE,SAAS;QACxB,cAAc,EAAE,SAAS;QACzB,YAAY,EAAE,SAAS;QACvB,SAAS,EAAE,SAAS;QACpB,WAAW,EAAE,SAAS;QACtB,iBAAiB,EAAE,SAAS;QAC5B,cAAc,EAAE,SAAS;QACzB,YAAY,EAAE,SAAS;QACvB,oBAAoB,EAAE,SAAS;QAC/B,iBAAiB,EAAE,SAAS;QAC5B,kBAAkB,EAAE,SAAS;QAC7B,eAAe,EAAE,SAAS;QAC1B,gBAAgB,EAAE,SAAS;QAC3B,iBAAiB,EAAE,SAAS;QAC5B,cAAc,EAAE,SAAS;QACzB,WAAW,EAAE,SAAS;QACtB,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE,SAAS;QAChB,kBAAkB,EAAE,0BAA0B;KAC/C;IACD,cAAc,EAAE;QACd,OAAO,EAAE,SAAS;QAClB,WAAW,EAAE,SAAS;QACtB,aAAa,EAAE,SAAS;QACxB,SAAS,EAAE,SAAS;QACpB,6CAA6C;QAC7C,aAAa,EAAE,SAAS;KACzB;IACD,cAAc,EAAE;QACd,SAAS,EAAE,SAAS;KACrB;CACF,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAgC;IACpD,OAAO,EAAE;QACP,YAAY,EAAE,SAAS;QACvB,eAAe,EAAE,SAAS;QAC1B,YAAY,EAAE,SAAS;QACvB,UAAU,EAAE,SAAS;QACrB,aAAa,EAAE,SAAS;QACxB,cAAc,EAAE,SAAS;QACzB,YAAY,EAAE,SAAS;QACvB,SAAS,EAAE,SAAS;QACpB,WAAW,EAAE,SAAS;QACtB,iBAAiB,EAAE,SAAS;QAC5B,cAAc,EAAE,SAAS;QACzB,YAAY,EAAE,SAAS;QACvB,oBAAoB,EAAE,SAAS;QAC/B,iBAAiB,EAAE,SAAS;QAC5B,kBAAkB,EAAE,SAAS;QAC7B,eAAe,EAAE,SAAS;QAC1B,gBAAgB,EAAE,SAAS;QAC3B,iBAAiB,EAAE,SAAS;QAC5B,cAAc,EAAE,SAAS;QACzB,WAAW,EAAE,SAAS;QACtB,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE,SAAS;QAChB,kBAAkB,EAAE,oBAAoB;KACzC;IACD,cAAc,EAAE;QACd,OAAO,EAAE,SAAS;QAClB,WAAW,EAAE,SAAS;QACtB,aAAa,EAAE,SAAS;QACxB,SAAS,EAAE,SAAS;QACpB,6CAA6C;QAC7C,aAAa,EAAE,SAAS;KACzB;IACD,cAAc,EAAE;QACd,SAAS,EAAE,SAAS;KACrB;CACF,CAAC;AAEF,
|
1
|
+
{"version":3,"file":"themes.js","sourceRoot":"","sources":["../../../../../../react-components/src/theming/themes.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAoBlC;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAgC;IACrD,OAAO,EAAE;QACP,YAAY,EAAE,SAAS;QACvB,eAAe,EAAE,SAAS;QAC1B,YAAY,EAAE,SAAS;QACvB,UAAU,EAAE,SAAS;QACrB,aAAa,EAAE,SAAS;QACxB,cAAc,EAAE,SAAS;QACzB,YAAY,EAAE,SAAS;QACvB,SAAS,EAAE,SAAS;QACpB,WAAW,EAAE,SAAS;QACtB,iBAAiB,EAAE,SAAS;QAC5B,cAAc,EAAE,SAAS;QACzB,YAAY,EAAE,SAAS;QACvB,oBAAoB,EAAE,SAAS;QAC/B,iBAAiB,EAAE,SAAS;QAC5B,kBAAkB,EAAE,SAAS;QAC7B,eAAe,EAAE,SAAS;QAC1B,gBAAgB,EAAE,SAAS;QAC3B,iBAAiB,EAAE,SAAS;QAC5B,cAAc,EAAE,SAAS;QACzB,WAAW,EAAE,SAAS;QACtB,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE,SAAS;QAChB,kBAAkB,EAAE,0BAA0B;KAC/C;IACD,cAAc,EAAE;QACd,OAAO,EAAE,SAAS;QAClB,WAAW,EAAE,SAAS;QACtB,aAAa,EAAE,SAAS;QACxB,SAAS,EAAE,SAAS;QACpB,6CAA6C;QAC7C,aAAa,EAAE,SAAS;KACzB;IACD,cAAc,EAAE;QACd,SAAS,EAAE,SAAS;KACrB;CACF,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAgC;IACpD,OAAO,EAAE;QACP,YAAY,EAAE,SAAS;QACvB,eAAe,EAAE,SAAS;QAC1B,YAAY,EAAE,SAAS;QACvB,UAAU,EAAE,SAAS;QACrB,aAAa,EAAE,SAAS;QACxB,cAAc,EAAE,SAAS;QACzB,YAAY,EAAE,SAAS;QACvB,SAAS,EAAE,SAAS;QACpB,WAAW,EAAE,SAAS;QACtB,iBAAiB,EAAE,SAAS;QAC5B,cAAc,EAAE,SAAS;QACzB,YAAY,EAAE,SAAS;QACvB,oBAAoB,EAAE,SAAS;QAC/B,iBAAiB,EAAE,SAAS;QAC5B,kBAAkB,EAAE,SAAS;QAC7B,eAAe,EAAE,SAAS;QAC1B,gBAAgB,EAAE,SAAS;QAC3B,iBAAiB,EAAE,SAAS;QAC5B,cAAc,EAAE,SAAS;QACzB,WAAW,EAAE,SAAS;QACtB,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE,SAAS;QAChB,kBAAkB,EAAE,oBAAoB;KACzC;IACD,cAAc,EAAE;QACd,OAAO,EAAE,SAAS;QAClB,WAAW,EAAE,SAAS;QACtB,aAAa,EAAE,SAAS;QACxB,SAAS,EAAE,SAAS;QACpB,6CAA6C;QAC7C,aAAa,EAAE,SAAS;KACzB;IACD,cAAc,EAAE;QACd,SAAS,EAAE,SAAS;KACrB;CACF,CAAC;AAEF,sDAAsD;AACtD;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAiB;IAC7C,OAAO,EAAE,SAAS,CAAC,OAAO;IAC1B,cAAc,kCACT,SAAS,CAAC,cAAc,KAC3B,cAAc,EAAE,qBAAqB,GACtC;CACF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PartialTheme } from '@fluentui/react';\n\n/**\n * Custom Fluent theme palette used by calling related components in this library.\n *\n * @public\n */\nexport interface CallingTheme {\n callingPalette: {\n callRed: string;\n callRedDark: string;\n callRedDarker: string;\n iconWhite: string;\n /* @conditional-compile-remove(raise-hand) */\n raiseHandGold: string;\n };\n}\n\n/**\n * Preset light theme for components exported from this library.\n *\n * @public\n */\nexport const lightTheme: PartialTheme & CallingTheme = {\n palette: {\n themePrimary: '#0078d4',\n themeLighterAlt: '#eff6fc',\n themeLighter: '#deecf9',\n themeLight: '#c7e0f4',\n themeTertiary: '#71afe5',\n themeSecondary: '#2b88d8',\n themeDarkAlt: '#106ebe',\n themeDark: '#59b0f7',\n themeDarker: '#004578',\n neutralLighterAlt: '#faf9f8',\n neutralLighter: '#f3f2f1',\n neutralLight: '#edebe9',\n neutralQuaternaryAlt: '#e1dfdd',\n neutralQuaternary: '#d0d0d0',\n neutralTertiaryAlt: '#c8c6c4',\n neutralTertiary: '#a19f9d',\n neutralSecondary: '#605e5c',\n neutralPrimaryAlt: '#3b3a39',\n neutralPrimary: '#323130',\n neutralDark: '#201f1e',\n black: '#000000',\n white: '#ffffff',\n whiteTranslucent40: 'rgba(255, 255, 255, 0.4)'\n },\n callingPalette: {\n callRed: '#a42e43',\n callRedDark: '#8b2c3d',\n callRedDarker: '#772a38',\n iconWhite: '#ffffff',\n /* @conditional-compile-remove(raise-hand) */\n raiseHandGold: '#eaa300'\n },\n semanticColors: {\n errorText: '#a80000'\n }\n};\n\n/**\n * Preset dark theme for components exported from this library.\n *\n * @public\n */\nexport const darkTheme: PartialTheme & CallingTheme = {\n palette: {\n themePrimary: '#2899f5',\n themeLighterAlt: '#02060a',\n themeLighter: '#061827',\n themeLight: '#0c2e49',\n themeTertiary: '#185b93',\n themeSecondary: '#2286d7',\n themeDarkAlt: '#3ca2f6',\n themeDark: '#59b0f7',\n themeDarker: '#84c5f9',\n neutralLighterAlt: '#302e2d',\n neutralLighter: '#383735',\n neutralLight: '#464443',\n neutralQuaternaryAlt: '#4e4d4b',\n neutralQuaternary: '#4d4b49',\n neutralTertiaryAlt: '#72706e',\n neutralTertiary: '#c8c8c8',\n neutralSecondary: '#d0d0d0',\n neutralPrimaryAlt: '#dadada',\n neutralPrimary: '#ffffff',\n neutralDark: '#f4f4f4',\n black: '#f8f8f8',\n white: '#252423',\n whiteTranslucent40: 'rgba(0, 0, 0, 0.4)'\n },\n callingPalette: {\n callRed: '#c4314b',\n callRedDark: '#a42e43',\n callRedDarker: '#8b2c3d',\n iconWhite: '#ffffff',\n /* @conditional-compile-remove(raise-hand) */\n raiseHandGold: '#eaa300'\n },\n semanticColors: {\n errorText: '#f1707b'\n }\n};\n\n/* @conditional-compile-remove(image-overlay-theme) */\n/**\n * Preset dark theme for the ImageOverlay component.\n *\n * @public\n */\nexport const imageOverlayTheme: PartialTheme = {\n palette: darkTheme.palette,\n semanticColors: {\n ...darkTheme.semanticColors,\n bodyBackground: 'rgba(0, 0, 0, 0.85)'\n }\n};\n"]}
|
@@ -130,6 +130,7 @@ export declare class AzureCommunicationCallAdapter<AgentType extends CallAgent |
|
|
130
130
|
private isMyMutedChanged;
|
131
131
|
private onRemoteParticipantsUpdated;
|
132
132
|
private isScreenSharingOnChanged;
|
133
|
+
private teamsCaptionsReceived;
|
133
134
|
private captionsReceived;
|
134
135
|
private isCaptionsActiveChanged;
|
135
136
|
private isSpokenLanguageChanged;
|
@@ -867,25 +867,49 @@ export class AzureCommunicationCallAdapter {
|
|
867
867
|
}
|
868
868
|
/* @conditional-compile-remove(close-captions) */
|
869
869
|
subscribeToCaptionEvents() {
|
870
|
-
var _a;
|
871
|
-
if (this.call && this.call.state === 'Connected'
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
870
|
+
var _a, _b;
|
871
|
+
if (this.call && this.call.state === 'Connected') {
|
872
|
+
if (this.context.getState().isTeamsCall) {
|
873
|
+
const captionsFeature = (_a = this.call) === null || _a === void 0 ? void 0 : _a.feature(Features.Captions).captions;
|
874
|
+
captionsFeature.on('CaptionsReceived', this.teamsCaptionsReceived.bind(this));
|
875
|
+
captionsFeature.on('CaptionsActiveChanged', this.isCaptionsActiveChanged.bind(this));
|
876
|
+
captionsFeature.on('CaptionLanguageChanged', this.isCaptionLanguageChanged.bind(this));
|
877
|
+
captionsFeature.on('SpokenLanguageChanged', this.isSpokenLanguageChanged.bind(this));
|
878
|
+
}
|
879
|
+
else {
|
880
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
881
|
+
const captionsFeature = (_b = this.call) === null || _b === void 0 ? void 0 : _b.feature(Features.Captions).captions;
|
882
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
883
|
+
captionsFeature.on('CaptionsReceived', this.captionsReceived.bind(this));
|
884
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
885
|
+
captionsFeature.on('CaptionsActiveChanged', this.isCaptionsActiveChanged.bind(this));
|
886
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
887
|
+
captionsFeature.on('SpokenLanguageChanged', this.isSpokenLanguageChanged.bind(this));
|
888
|
+
}
|
877
889
|
}
|
878
890
|
}
|
879
891
|
/* @conditional-compile-remove(close-captions) */
|
880
892
|
unsubscribeFromCaptionEvents() {
|
881
|
-
var _a, _b;
|
882
|
-
if (this.call && this.call.state === 'Connected'
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
893
|
+
var _a, _b, _c;
|
894
|
+
if (this.call && this.call.state === 'Connected') {
|
895
|
+
if (this.context.getState().isTeamsCall) {
|
896
|
+
const captionsFeature = (_a = this.call) === null || _a === void 0 ? void 0 : _a.feature(Features.Captions).captions;
|
897
|
+
captionsFeature.off('CaptionsReceived', this.teamsCaptionsReceived.bind(this));
|
898
|
+
captionsFeature.off('CaptionsActiveChanged', this.isCaptionsActiveChanged.bind(this));
|
899
|
+
captionsFeature.off('CaptionLanguageChanged', this.isCaptionLanguageChanged.bind(this));
|
900
|
+
captionsFeature.off('SpokenLanguageChanged', this.isSpokenLanguageChanged.bind(this));
|
901
|
+
}
|
902
|
+
else {
|
903
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
904
|
+
const captionsFeature = (_b = this.call) === null || _b === void 0 ? void 0 : _b.feature(Features.Captions).captions;
|
905
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
906
|
+
captionsFeature.off('CaptionsReceived', this.captionsReceived.bind(this));
|
907
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
908
|
+
captionsFeature.off('CaptionsActiveChanged', this.isCaptionsActiveChanged.bind(this));
|
909
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
910
|
+
captionsFeature.off('SpokenLanguageChanged', this.isSpokenLanguageChanged.bind(this));
|
911
|
+
}
|
912
|
+
(_c = this.call) === null || _c === void 0 ? void 0 : _c.off('stateChanged', this.subscribeToCaptionEvents.bind(this));
|
889
913
|
}
|
890
914
|
}
|
891
915
|
subscribeCallEvents() {
|
@@ -949,6 +973,10 @@ export class AzureCommunicationCallAdapter {
|
|
949
973
|
this.emitter.emit('isLocalScreenSharingActiveChanged', { isScreenSharingOn: (_a = this.call) === null || _a === void 0 ? void 0 : _a.isScreenSharingOn });
|
950
974
|
}
|
951
975
|
/* @conditional-compile-remove(close-captions) */
|
976
|
+
teamsCaptionsReceived(captionsInfo) {
|
977
|
+
this.emitter.emit('captionsReceived', { captionsInfo });
|
978
|
+
}
|
979
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
952
980
|
captionsReceived(captionsInfo) {
|
953
981
|
this.emitter.emit('captionsReceived', { captionsInfo });
|
954
982
|
}
|