@webex/plugin-meetings 3.12.0-llmrefactor.15 → 3.12.0-llmrefactor.17
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/aiEnableRequest/index.js +1 -1
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/meeting/index.js +3 -2
- package/dist/meeting/index.js.map +1 -1
- package/dist/webinar/index.js +1 -1
- package/package.json +6 -6
- package/src/meeting/index.ts +3 -2
- package/test/unit/spec/meeting/index.js +32 -4
package/dist/webinar/index.js
CHANGED
package/package.json
CHANGED
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"@webex/eslint-config-legacy": "0.0.0",
|
|
44
44
|
"@webex/jest-config-legacy": "0.0.0",
|
|
45
45
|
"@webex/legacy-tools": "0.0.0",
|
|
46
|
-
"@webex/plugin-rooms": "3.12.0-llmrefactor.
|
|
46
|
+
"@webex/plugin-rooms": "3.12.0-llmrefactor.12",
|
|
47
47
|
"@webex/test-helper-chai": "3.12.0-llmrefactor.3",
|
|
48
48
|
"@webex/test-helper-mocha": "3.12.0-llmrefactor.3",
|
|
49
49
|
"@webex/test-helper-mock-webex": "3.12.0-llmrefactor.2",
|
|
50
50
|
"@webex/test-helper-retry": "3.12.0-llmrefactor.3",
|
|
51
|
-
"@webex/test-helper-test-users": "3.12.0-llmrefactor.
|
|
51
|
+
"@webex/test-helper-test-users": "3.12.0-llmrefactor.0",
|
|
52
52
|
"chai": "^4.3.4",
|
|
53
53
|
"chai-as-promised": "^7.1.1",
|
|
54
54
|
"eslint": "^8.24.0",
|
|
@@ -63,17 +63,17 @@
|
|
|
63
63
|
"@webex/common": "3.12.0-llmrefactor.3",
|
|
64
64
|
"@webex/event-dictionary-ts": "^1.0.2215",
|
|
65
65
|
"@webex/internal-media-core": "2.30.1",
|
|
66
|
-
"@webex/internal-plugin-conversation": "3.12.0-llmrefactor.
|
|
66
|
+
"@webex/internal-plugin-conversation": "3.12.0-llmrefactor.12",
|
|
67
67
|
"@webex/internal-plugin-device": "3.12.0-llmrefactor.9",
|
|
68
68
|
"@webex/internal-plugin-llm": "3.12.0-llmrefactor.11",
|
|
69
69
|
"@webex/internal-plugin-mercury": "3.12.0-llmrefactor.11",
|
|
70
70
|
"@webex/internal-plugin-metrics": "3.12.0-llmrefactor.9",
|
|
71
|
-
"@webex/internal-plugin-support": "3.12.0-llmrefactor.
|
|
71
|
+
"@webex/internal-plugin-support": "3.12.0-llmrefactor.12",
|
|
72
72
|
"@webex/internal-plugin-user": "3.12.0-llmrefactor.9",
|
|
73
73
|
"@webex/internal-plugin-voicea": "3.12.0-llmrefactor.13",
|
|
74
74
|
"@webex/media-helpers": "3.12.0-llmrefactor.6",
|
|
75
75
|
"@webex/plugin-people": "3.12.0-llmrefactor.11",
|
|
76
|
-
"@webex/plugin-rooms": "3.12.0-llmrefactor.
|
|
76
|
+
"@webex/plugin-rooms": "3.12.0-llmrefactor.12",
|
|
77
77
|
"@webex/ts-sdp": "^1.8.1",
|
|
78
78
|
"@webex/web-capabilities": "^1.13.1",
|
|
79
79
|
"@webex/webex-core": "3.12.0-llmrefactor.9",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"//": [
|
|
95
95
|
"TODO: upgrade jwt-decode when moving to node 18"
|
|
96
96
|
],
|
|
97
|
-
"version": "3.12.0-llmrefactor.
|
|
97
|
+
"version": "3.12.0-llmrefactor.17"
|
|
98
98
|
}
|
package/src/meeting/index.ts
CHANGED
|
@@ -768,6 +768,7 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
768
768
|
voiceaListenerCallbacks: object = {
|
|
769
769
|
[VOICEAEVENTS.VOICEA_ANNOUNCEMENT]: (payload: Transcription['languageOptions']) => {
|
|
770
770
|
this.transcription.languageOptions = payload;
|
|
771
|
+
const eventPayload = {...payload};
|
|
771
772
|
|
|
772
773
|
LoggerProxy.logger.debug(
|
|
773
774
|
`${EventsUtil.getScopeLog({
|
|
@@ -777,11 +778,11 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
777
778
|
);
|
|
778
779
|
|
|
779
780
|
if (this.getCurUserType() !== 'host') {
|
|
780
|
-
delete
|
|
781
|
+
delete eventPayload.spokenLanguages;
|
|
781
782
|
}
|
|
782
783
|
|
|
783
784
|
// @ts-ignore
|
|
784
|
-
this.trigger(EVENT_TRIGGERS.MEETING_STARTED_RECEIVING_TRANSCRIPTION,
|
|
785
|
+
this.trigger(EVENT_TRIGGERS.MEETING_STARTED_RECEIVING_TRANSCRIPTION, eventPayload);
|
|
785
786
|
},
|
|
786
787
|
[VOICEAEVENTS.CAPTIONS_TURNED_ON]: () => {
|
|
787
788
|
this.transcription.status = TURN_ON_CAPTION_STATUS.ENABLED;
|
|
@@ -2635,11 +2635,39 @@ describe('plugin-meetings', () => {
|
|
|
2635
2635
|
assert.calledWith(meeting.trigger, EVENT_TRIGGERS.MEETING_CAPTION_RECEIVED);
|
|
2636
2636
|
});
|
|
2637
2637
|
|
|
2638
|
-
it('should
|
|
2639
|
-
|
|
2640
|
-
|
|
2638
|
+
it('should retain and emit spoken languages for a host announcement', () => {
|
|
2639
|
+
const payload = {
|
|
2640
|
+
currentSpokenLanguage: 'en',
|
|
2641
|
+
spokenLanguages: ['en', 'fr'],
|
|
2642
|
+
};
|
|
2643
|
+
|
|
2644
|
+
sinon.stub(meeting, 'getCurUserType').returns('host');
|
|
2645
|
+
|
|
2646
|
+
meeting.voiceaListenerCallbacks[VOICEAEVENTS.VOICEA_ANNOUNCEMENT](payload);
|
|
2647
|
+
|
|
2648
|
+
assert.deepEqual(meeting.transcription.languageOptions, payload);
|
|
2649
|
+
assert.calledWithExactly(
|
|
2650
|
+
meeting.trigger,
|
|
2651
|
+
EVENT_TRIGGERS.MEETING_STARTED_RECEIVING_TRANSCRIPTION,
|
|
2652
|
+
payload
|
|
2653
|
+
);
|
|
2654
|
+
});
|
|
2655
|
+
|
|
2656
|
+
it('should emit without spoken languages for a non-host while preserving them internally', () => {
|
|
2657
|
+
const payload = {
|
|
2658
|
+
currentSpokenLanguage: 'en',
|
|
2659
|
+
spokenLanguages: ['en', 'fr'],
|
|
2660
|
+
};
|
|
2661
|
+
|
|
2662
|
+
sinon.stub(meeting, 'getCurUserType').returns('attendee');
|
|
2663
|
+
|
|
2664
|
+
meeting.voiceaListenerCallbacks[VOICEAEVENTS.VOICEA_ANNOUNCEMENT](payload);
|
|
2665
|
+
|
|
2666
|
+
assert.deepEqual(meeting.transcription.languageOptions.spokenLanguages, ['en', 'fr']);
|
|
2667
|
+
assert.calledWithExactly(
|
|
2641
2668
|
meeting.trigger,
|
|
2642
|
-
EVENT_TRIGGERS.MEETING_STARTED_RECEIVING_TRANSCRIPTION
|
|
2669
|
+
EVENT_TRIGGERS.MEETING_STARTED_RECEIVING_TRANSCRIPTION,
|
|
2670
|
+
{currentSpokenLanguage: 'en'}
|
|
2643
2671
|
);
|
|
2644
2672
|
});
|
|
2645
2673
|
|