@webex/plugin-meetings 1.156.4 → 1.158.0

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 (35) hide show
  1. package/README.md +3 -3
  2. package/browsers.js +1 -1
  3. package/dist/index.js +1 -2
  4. package/dist/index.js.map +1 -1
  5. package/dist/meeting/index.js +12 -1
  6. package/dist/meeting/index.js.map +1 -1
  7. package/dist/meeting-info/meeting-info-v2.js +12 -3
  8. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  9. package/dist/meeting-info/utilv2.js +44 -0
  10. package/dist/meeting-info/utilv2.js.map +1 -1
  11. package/dist/meetings/index.js +2 -2
  12. package/dist/meetings/index.js.map +1 -1
  13. package/dist/metrics/index.js +8 -1
  14. package/dist/metrics/index.js.map +1 -1
  15. package/package.json +5 -5
  16. package/src/index.js +0 -1
  17. package/src/meeting/index.js +13 -0
  18. package/src/meeting-info/meeting-info-v2.js +8 -2
  19. package/src/meeting-info/utilv2.js +39 -0
  20. package/src/meetings/index.js +1 -2
  21. package/src/metrics/index.js +9 -1
  22. package/test/{unit/spec/transcription/index.js → integration/spec/transcription.js} +1 -1
  23. package/test/unit/spec/common/browser-detection.js +1 -0
  24. package/test/unit/spec/locus-info/index.js +1 -1
  25. package/test/unit/spec/meeting/index.js +49 -3
  26. package/test/unit/spec/meeting-info/utilv2.js +72 -0
  27. package/test/unit/spec/meetings/index.js +266 -74
  28. package/test/unit/spec/members/index.js +1 -0
  29. package/test/unit/spec/metrics/index.js +7 -26
  30. package/test/unit/spec/networkQualityMonitor/index.js +1 -0
  31. package/test/unit/spec/peerconnection-manager/index.js +11 -1
  32. package/test/unit/spec/personal-meeting-room/personal-meeting-room.js +1 -0
  33. package/test/unit/spec/reconnection-manager/index.js +1 -0
  34. package/test/unit/spec/roap/util.js +1 -0
  35. package/test/unit/spec/stats-analyzer/index.js +1 -0
package/README.md CHANGED
@@ -30,8 +30,8 @@ This is a plugin for the Cisco Webex JS SDK . Please see our [developer portal](
30
30
 
31
31
  ## API Docs and Sample App
32
32
  API Docs: https://webex.github.io/webex-js-sdk/api/
33
- Hosted Sample App: https://js.samples.s4d.io/browser-plugin-meetings/
34
- See https://github.com/webex/webex-js-sdk/tree/master/packages/node_modules/samples/browser-plugin-meetings for the sample app code vs the readme
33
+ Hosted Sample App: https://webex.github.io/webex-js-sdk/samples/browser-plugin-meetings/
34
+ See https://github.com/webex/webex-js-sdk/tree/master/docs/samples/browser-plugin-meetings for the sample app code vs the readme
35
35
 
36
36
  #### Device Registration
37
37
 
@@ -1386,7 +1386,7 @@ There are several events submitted by this package that you can subscribe to.
1386
1386
 
1387
1387
  To use `webpack-dev-server` to load this package, run `npm run samples:serve`.
1388
1388
 
1389
- Files placed in the `packages/node_modules/samples/browser-plugin-meetings` folder will be served statically.
1389
+ Files placed in the `docs/samples/browser-plugin-meetings` folder will be served statically.
1390
1390
 
1391
1391
  Files in the `src` folder will be compiled, bundled, and served as a static asset at `bundle.js` inside that directory.
1392
1392
 
package/browsers.js CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  /* eslint camelcase: [0] */
9
9
  module.exports = function createBrowsers() {
10
- if (process.env.SC_TUNNEL_IDENTIFIER || process.env.CI || process.env.CIRCLECI || process.env.SAUCE) {
10
+ if (process.env.SC_TUNNEL_IDENTIFIER || process.env.SAUCE) {
11
11
  return {
12
12
  sl_chrome_latest_macOS_Catalina: {
13
13
  base: 'SauceLabs',
package/dist/index.js CHANGED
@@ -34,7 +34,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
34
34
  (0, _webexCore.registerPlugin)('meetings', _meetings.default, {
35
35
  config: _config.default
36
36
  });
37
- var _default = _meetings.default; // eslint-disable-next-line object-curly-spacing
38
-
37
+ var _default = _meetings.default;
39
38
  exports.default = _default;
40
39
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"names":["Meetings","config"],"mappings":";;;;;;;;;;;;;;;;;;AACA;;AAEA;;AACA;;;;;;;;;;AAJA;AAMA,+BAAe,UAAf,EAA2BA,iBAA3B,EAAqC;AACnCC,EAAAA,MAAM,EAANA;AADmC,CAArC;eAIeD,iB,EAEf","sourcesContent":["/* eslint-env browser */\nimport {registerPlugin} from '@webex/webex-core';\n\nimport Meetings from './meetings';\nimport config from './config';\n\nregisterPlugin('meetings', Meetings, {\n config\n});\n\nexport default Meetings;\n\n// eslint-disable-next-line object-curly-spacing\nexport * as CONSTANTS from './constants';\n"]}
1
+ {"version":3,"sources":["index.js"],"names":["Meetings","config"],"mappings":";;;;;;;;;;;;;;;;;;AACA;;AAEA;;AACA;;;;;;;;;;AAJA;AAMA,+BAAe,UAAf,EAA2BA,iBAA3B,EAAqC;AACnCC,EAAAA,MAAM,EAANA;AADmC,CAArC;eAIeD,iB","sourcesContent":["/* eslint-env browser */\nimport {registerPlugin} from '@webex/webex-core';\n\nimport Meetings from './meetings';\nimport config from './config';\n\nregisterPlugin('meetings', Meetings, {\n config\n});\n\nexport default Meetings;\n\nexport * as CONSTANTS from './constants';\n"]}
@@ -1480,6 +1480,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1480
1480
  * @param {String} options.trackingId
1481
1481
  * @param {Object} options.locus
1482
1482
  * @param {Array} options.mediaConnections
1483
+ * @param {Object} options.errors
1483
1484
  * @returns {Object}
1484
1485
  * @memberof Meeting
1485
1486
  */
@@ -1611,6 +1612,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1611
1612
  * @param {String} options.event
1612
1613
  * @param {String} options.trackingId
1613
1614
  * @param {Object} options.locus
1615
+ * @param {Object} options.errors
1614
1616
  * @returns {Promise}
1615
1617
  * @private
1616
1618
  * @memberof Meeting
@@ -4030,7 +4032,16 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4030
4032
 
4031
4033
  _this34.meetingFiniteStateMachine.fail(error);
4032
4034
 
4033
- _loggerProxy.default.logger.error('Meeting:index#join --> Failed', error); // TODO: change this to error codes and pre defined dictionary
4035
+ _loggerProxy.default.logger.error('Meeting:index#join --> Failed', error);
4036
+
4037
+ _metrics.default.postEvent({
4038
+ event: _config.eventType.LOCUS_JOIN_RESPONSE,
4039
+ meeting: _this34,
4040
+ meetingId: _this34.id,
4041
+ data: {
4042
+ errors: [_metrics.default.parseLocusError(error.error, true)]
4043
+ }
4044
+ }); // TODO: change this to error codes and pre defined dictionary
4034
4045
 
4035
4046
 
4036
4047
  _metrics.default.sendBehavioralMetric(_constants2.default.JOIN_FAILURE, {