@webex/plugin-meetings 3.0.0-beta.160 → 3.0.0-beta.161

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 (54) hide show
  1. package/dist/breakouts/breakout.js +1 -1
  2. package/dist/breakouts/index.js +1 -1
  3. package/dist/constants.js +12 -2
  4. package/dist/constants.js.map +1 -1
  5. package/dist/interpretation/collection.js +23 -0
  6. package/dist/interpretation/collection.js.map +1 -0
  7. package/dist/interpretation/index.js +214 -0
  8. package/dist/interpretation/index.js.map +1 -0
  9. package/dist/interpretation/siLanguage.js +25 -0
  10. package/dist/interpretation/siLanguage.js.map +1 -0
  11. package/dist/locus-info/controlsUtils.js +1 -0
  12. package/dist/locus-info/controlsUtils.js.map +1 -1
  13. package/dist/locus-info/index.js +19 -0
  14. package/dist/locus-info/index.js.map +1 -1
  15. package/dist/locus-info/selfUtils.js +20 -11
  16. package/dist/locus-info/selfUtils.js.map +1 -1
  17. package/dist/meeting/index.js +402 -354
  18. package/dist/meeting/index.js.map +1 -1
  19. package/dist/meeting/util.js +1 -0
  20. package/dist/meeting/util.js.map +1 -1
  21. package/dist/member/index.js +2 -0
  22. package/dist/member/index.js.map +1 -1
  23. package/dist/member/util.js +11 -0
  24. package/dist/member/util.js.map +1 -1
  25. package/dist/types/constants.d.ts +9 -0
  26. package/dist/types/interpretation/collection.d.ts +5 -0
  27. package/dist/types/interpretation/index.d.ts +5 -0
  28. package/dist/types/interpretation/siLanguage.d.ts +5 -0
  29. package/dist/types/meeting/index.d.ts +8 -0
  30. package/dist/types/member/index.d.ts +1 -0
  31. package/package.json +19 -19
  32. package/src/constants.ts +10 -0
  33. package/src/interpretation/README.md +51 -0
  34. package/src/interpretation/collection.ts +19 -0
  35. package/src/interpretation/index.ts +182 -0
  36. package/src/interpretation/siLanguage.ts +18 -0
  37. package/src/locus-info/controlsUtils.ts +2 -0
  38. package/src/locus-info/index.ts +29 -0
  39. package/src/locus-info/selfUtils.ts +6 -0
  40. package/src/meeting/index.ts +62 -1
  41. package/src/meeting/util.ts +1 -0
  42. package/src/member/index.ts +2 -0
  43. package/src/member/util.ts +14 -0
  44. package/test/unit/spec/interpretation/collection.ts +15 -0
  45. package/test/unit/spec/interpretation/index.ts +329 -0
  46. package/test/unit/spec/interpretation/siLanguage.ts +26 -0
  47. package/test/unit/spec/locus-info/controlsUtils.js +20 -0
  48. package/test/unit/spec/locus-info/index.js +64 -0
  49. package/test/unit/spec/locus-info/selfConstant.js +10 -0
  50. package/test/unit/spec/locus-info/selfUtils.js +26 -0
  51. package/test/unit/spec/meeting/index.js +62 -1
  52. package/test/unit/spec/meeting/utils.js +2 -0
  53. package/test/unit/spec/member/index.js +11 -4
  54. package/test/unit/spec/member/util.js +24 -0
@@ -398,4 +398,28 @@ describe('plugin-meetings', () => {
398
398
  assert.isFalse(MemberUtil.isLiveAnnotationSupported(participant));
399
399
  });
400
400
  });
401
+
402
+ describe('MemberUtil.isInterpretationSupported', () => {
403
+ it('throws error when there is no participant', () => {
404
+ assert.throws(() => {
405
+ MemberUtil.isInterpretationSupported();
406
+ }, 'Interpretation support could not be processed, participant is undefined.');
407
+ });
408
+
409
+ it('returns true when hand SiInterpreter are supported', () => {
410
+ const participant = {
411
+ doesNotSupportSiInterpreter: false
412
+ };
413
+
414
+ assert.isTrue(MemberUtil.isInterpretationSupported(participant));
415
+ });
416
+
417
+ it('returns false when hand SiInterpreter are not supported', () => {
418
+ const participant = {
419
+ doesNotSupportSiInterpreter: true
420
+ };
421
+
422
+ assert.isFalse(MemberUtil.isInterpretationSupported(participant));
423
+ });
424
+ });
401
425
  });