@webex/plugin-meetings 3.11.0-next.2 → 3.11.0-next.21

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 (64) hide show
  1. package/dist/breakouts/breakout.js +1 -1
  2. package/dist/breakouts/index.js +1 -1
  3. package/dist/hashTree/hashTree.js +18 -0
  4. package/dist/hashTree/hashTree.js.map +1 -1
  5. package/dist/hashTree/hashTreeParser.js +307 -139
  6. package/dist/hashTree/hashTreeParser.js.map +1 -1
  7. package/dist/hashTree/types.js +2 -1
  8. package/dist/hashTree/types.js.map +1 -1
  9. package/dist/hashTree/utils.js +10 -0
  10. package/dist/hashTree/utils.js.map +1 -1
  11. package/dist/interpretation/index.js +1 -1
  12. package/dist/interpretation/siLanguage.js +1 -1
  13. package/dist/locus-info/index.js +55 -42
  14. package/dist/locus-info/index.js.map +1 -1
  15. package/dist/media/MediaConnectionAwaiter.js +57 -1
  16. package/dist/media/MediaConnectionAwaiter.js.map +1 -1
  17. package/dist/media/properties.js +4 -2
  18. package/dist/media/properties.js.map +1 -1
  19. package/dist/meeting/index.js +33 -22
  20. package/dist/meeting/index.js.map +1 -1
  21. package/dist/meeting/util.js +108 -2
  22. package/dist/meeting/util.js.map +1 -1
  23. package/dist/meetings/index.js +76 -26
  24. package/dist/meetings/index.js.map +1 -1
  25. package/dist/metrics/constants.js +2 -1
  26. package/dist/metrics/constants.js.map +1 -1
  27. package/dist/multistream/mediaRequestManager.js +1 -1
  28. package/dist/multistream/mediaRequestManager.js.map +1 -1
  29. package/dist/reactions/reactions.type.js.map +1 -1
  30. package/dist/types/hashTree/hashTree.d.ts +7 -0
  31. package/dist/types/hashTree/hashTreeParser.d.ts +47 -12
  32. package/dist/types/hashTree/types.d.ts +1 -0
  33. package/dist/types/hashTree/utils.d.ts +6 -0
  34. package/dist/types/locus-info/index.d.ts +9 -2
  35. package/dist/types/media/MediaConnectionAwaiter.d.ts +10 -1
  36. package/dist/types/media/properties.d.ts +2 -1
  37. package/dist/types/meeting/index.d.ts +8 -5
  38. package/dist/types/meeting/util.d.ts +28 -0
  39. package/dist/types/meetings/index.d.ts +3 -1
  40. package/dist/types/metrics/constants.d.ts +1 -0
  41. package/dist/types/reactions/reactions.type.d.ts +1 -0
  42. package/dist/webinar/index.js +1 -1
  43. package/package.json +22 -22
  44. package/src/hashTree/hashTree.ts +17 -0
  45. package/src/hashTree/hashTreeParser.ts +294 -96
  46. package/src/hashTree/types.ts +1 -0
  47. package/src/hashTree/utils.ts +9 -0
  48. package/src/locus-info/index.ts +83 -35
  49. package/src/media/MediaConnectionAwaiter.ts +41 -1
  50. package/src/media/properties.ts +3 -1
  51. package/src/meeting/index.ts +24 -11
  52. package/src/meeting/util.ts +132 -1
  53. package/src/meetings/index.ts +93 -8
  54. package/src/metrics/constants.ts +1 -0
  55. package/src/multistream/mediaRequestManager.ts +1 -1
  56. package/src/reactions/reactions.type.ts +1 -0
  57. package/test/unit/spec/hashTree/hashTree.ts +66 -0
  58. package/test/unit/spec/hashTree/hashTreeParser.ts +942 -110
  59. package/test/unit/spec/locus-info/index.js +88 -17
  60. package/test/unit/spec/media/MediaConnectionAwaiter.ts +41 -1
  61. package/test/unit/spec/media/properties.ts +12 -3
  62. package/test/unit/spec/meeting/index.js +160 -2
  63. package/test/unit/spec/meeting/utils.js +294 -22
  64. package/test/unit/spec/meetings/index.js +594 -17
@@ -95,6 +95,8 @@ export default class Meetings extends WebexPlugin {
95
95
  preferredWebexSite: any;
96
96
  reachability: Reachability;
97
97
  registered: any;
98
+ registrationPromise: Promise<void>;
99
+ unregistrationPromise: Promise<void>;
98
100
  request: any;
99
101
  geoHintInfo: any;
100
102
  meetingInfo: any;
@@ -287,7 +289,7 @@ export default class Meetings extends WebexPlugin {
287
289
  * @public
288
290
  * @memberof Meetings
289
291
  */
290
- unregister(): any;
292
+ unregister(): Promise<void>;
291
293
  /**
292
294
  * Creates a noise reduction effect
293
295
  *
@@ -87,5 +87,6 @@ declare const BEHAVIORAL_METRICS: {
87
87
  MEDIA_ISSUE_DETECTED: string;
88
88
  LOCUS_CLASSIC_VS_HASH_TREE_MISMATCH: string;
89
89
  LOCUS_HASH_TREE_UNSUPPORTED_OPERATION: string;
90
+ MEDIA_STILL_NOT_CONNECTED: string;
90
91
  };
91
92
  export { BEHAVIORAL_METRICS as default };
@@ -32,6 +32,7 @@ export declare enum SkinToneType {
32
32
  dark = "dark"
33
33
  }
34
34
  export type Sender = {
35
+ displayName: string;
35
36
  participantId: string;
36
37
  };
37
38
  export type ProcessedReaction = {
@@ -506,7 +506,7 @@ var Webinar = _webexCore.WebexPlugin.extend({
506
506
  }, _callee8);
507
507
  }))();
508
508
  },
509
- version: "3.11.0-next.2"
509
+ version: "3.11.0-next.21"
510
510
  });
511
511
  var _default = exports.default = Webinar;
512
512
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -41,14 +41,15 @@
41
41
  "@types/jsdom": "^21",
42
42
  "@webex/babel-config-legacy": "0.0.0",
43
43
  "@webex/eslint-config-legacy": "0.0.0",
44
+ "@webex/event-dictionary-ts": "^1.0.2073",
44
45
  "@webex/jest-config-legacy": "0.0.0",
45
46
  "@webex/legacy-tools": "0.0.0",
46
- "@webex/plugin-rooms": "3.11.0-next.1",
47
- "@webex/test-helper-chai": "3.10.0-next.1",
48
- "@webex/test-helper-mocha": "3.10.0-next.1",
49
- "@webex/test-helper-mock-webex": "3.10.0-next.1",
50
- "@webex/test-helper-retry": "3.10.0-next.1",
51
- "@webex/test-helper-test-users": "3.10.0-next.1",
47
+ "@webex/plugin-rooms": "3.11.0-next.6",
48
+ "@webex/test-helper-chai": "3.11.0-next.1",
49
+ "@webex/test-helper-mocha": "3.11.0-next.1",
50
+ "@webex/test-helper-mock-webex": "3.11.0-next.1",
51
+ "@webex/test-helper-retry": "3.11.0-next.1",
52
+ "@webex/test-helper-test-users": "3.11.0-next.1",
52
53
  "chai": "^4.3.4",
53
54
  "chai-as-promised": "^7.1.1",
54
55
  "eslint": "^8.24.0",
@@ -60,23 +61,22 @@
60
61
  "typescript": "^4.7.4"
61
62
  },
62
63
  "dependencies": {
63
- "@webex/common": "3.10.0-next.1",
64
- "@webex/event-dictionary-ts": "^1.0.1930",
65
- "@webex/internal-media-core": "2.22.0",
66
- "@webex/internal-plugin-conversation": "3.11.0-next.1",
67
- "@webex/internal-plugin-device": "3.11.0-next.1",
68
- "@webex/internal-plugin-llm": "3.11.0-next.1",
69
- "@webex/internal-plugin-mercury": "3.11.0-next.1",
70
- "@webex/internal-plugin-metrics": "3.11.0-next.1",
71
- "@webex/internal-plugin-support": "3.11.0-next.1",
72
- "@webex/internal-plugin-user": "3.11.0-next.1",
73
- "@webex/internal-plugin-voicea": "3.11.0-next.1",
74
- "@webex/media-helpers": "3.11.0-next.1",
75
- "@webex/plugin-people": "3.11.0-next.1",
76
- "@webex/plugin-rooms": "3.11.0-next.1",
64
+ "@webex/common": "3.11.0-next.1",
65
+ "@webex/internal-media-core": "2.22.1",
66
+ "@webex/internal-plugin-conversation": "3.11.0-next.6",
67
+ "@webex/internal-plugin-device": "3.11.0-next.5",
68
+ "@webex/internal-plugin-llm": "3.11.0-next.6",
69
+ "@webex/internal-plugin-mercury": "3.11.0-next.6",
70
+ "@webex/internal-plugin-metrics": "3.11.0-next.5",
71
+ "@webex/internal-plugin-support": "3.11.0-next.6",
72
+ "@webex/internal-plugin-user": "3.11.0-next.5",
73
+ "@webex/internal-plugin-voicea": "3.11.0-next.6",
74
+ "@webex/media-helpers": "3.11.0-next.3",
75
+ "@webex/plugin-people": "3.11.0-next.6",
76
+ "@webex/plugin-rooms": "3.11.0-next.6",
77
77
  "@webex/ts-sdp": "^1.8.1",
78
78
  "@webex/web-capabilities": "^1.9.0",
79
- "@webex/webex-core": "3.11.0-next.1",
79
+ "@webex/webex-core": "3.11.0-next.5",
80
80
  "ampersand-collection": "^2.0.2",
81
81
  "bowser": "^2.11.0",
82
82
  "btoa": "^1.2.1",
@@ -93,5 +93,5 @@
93
93
  "//": [
94
94
  "TODO: upgrade jwt-decode when moving to node 18"
95
95
  ],
96
- "version": "3.11.0-next.2"
96
+ "version": "3.11.0-next.21"
97
97
  }
@@ -371,6 +371,23 @@ class HashTree {
371
371
  return items;
372
372
  }
373
373
 
374
+ /**
375
+ * Retrieves the version of a specific item by its id and type.
376
+ * @param {number} id The ID of the item.
377
+ * @param {ObjectType} type The type of the item.
378
+ * @returns {number | undefined} The version of the item if found, undefined otherwise.
379
+ */
380
+ getItemVersion(id: number, type: ObjectType): number | undefined {
381
+ if (this.numLeaves === 0) {
382
+ return undefined;
383
+ }
384
+
385
+ const index = id % this.numLeaves;
386
+ const item = this.leaves[index]?.[type]?.[id];
387
+
388
+ return item?.version;
389
+ }
390
+
374
391
  /**
375
392
  * Resizes the HashTree to have a new number of leaf nodes, redistributing all existing items.
376
393
  * @param {number} newNumLeaves The new number of leaf nodes (must be 0 or a power of 2).