@acrobits/ipc-sdk 0.9.2 → 0.10.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.
@@ -1,2 +1,2 @@
1
1
  <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>IpcProtocolVersion | Acrobits IPC SDK</title><meta name="description" content="Documentation for Acrobits IPC SDK"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">Acrobits IPC SDK</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">Acrobits IPC SDK</a></li><li><a href="IpcProtocolVersion.html">IpcProtocolVersion</a></li></ul><h1>Type alias IpcProtocolVersion</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">Ipc<wbr/>Protocol<wbr/>Version</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;0.1&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;0.2&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;0.3&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;0.4&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;0.5&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;0.6&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;0.7&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;0.8&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;0.9&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;0.10&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;2.0&quot;</span></div><div class="tsd-comment tsd-typography"><p>Supported versions of the IPC Protocol.</p>
2
- </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in ipc-protocol/lib/index.d.ts:2201</li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>Acrobits IPC SDK</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
2
+ </div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in ipc-protocol/lib/index.d.ts:2205</li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>Acrobits IPC SDK</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
package/lib/index.d.ts CHANGED
@@ -194,6 +194,10 @@ export declare class IPCManager {
194
194
  * The cloud username of the logged in user.
195
195
  */
196
196
  cloudUsername?: string;
197
+ /**
198
+ * The display name of the logged in user.
199
+ */
200
+ displayName?: string;
197
201
  private logger;
198
202
  private helper;
199
203
  private listeners;
package/lib/ipc-sdk.js CHANGED
@@ -1,15 +1,14 @@
1
1
  var Pe = Object.defineProperty;
2
2
  var _e = (n, t, e) => t in n ? Pe(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
- var x = (n, t, e) => (_e(n, typeof t != "symbol" ? t + "" : t, e), e);
3
+ var M = (n, t, e) => _e(n, typeof t != "symbol" ? t + "" : t, e);
4
4
  var w = /* @__PURE__ */ ((n) => (n.BadgeQuery = "BADGE QUERY", n.Lifecycle = "LIFECYCLE", n.PushToken = "PUSH TOKEN", n))(w || {}), q = function(n, t) {
5
5
  return q = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
6
6
  e.__proto__ = r;
7
7
  } || function(e, r) {
8
- for (var s in r)
9
- Object.prototype.hasOwnProperty.call(r, s) && (e[s] = r[s]);
8
+ for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (e[s] = r[s]);
10
9
  }, q(n, t);
11
10
  };
12
- function C(n, t) {
11
+ function x(n, t) {
13
12
  if (typeof t != "function" && t !== null)
14
13
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
15
14
  q(n, t);
@@ -20,40 +19,34 @@ function C(n, t) {
20
19
  }
21
20
  function G(n) {
22
21
  var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], r = 0;
23
- if (e)
24
- return e.call(n);
25
- if (n && typeof n.length == "number")
26
- return {
27
- next: function() {
28
- return n && r >= n.length && (n = void 0), { value: n && n[r++], done: !n };
29
- }
30
- };
22
+ if (e) return e.call(n);
23
+ if (n && typeof n.length == "number") return {
24
+ next: function() {
25
+ return n && r >= n.length && (n = void 0), { value: n && n[r++], done: !n };
26
+ }
27
+ };
31
28
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
32
29
  }
33
30
  function $(n, t) {
34
31
  var e = typeof Symbol == "function" && n[Symbol.iterator];
35
- if (!e)
36
- return n;
32
+ if (!e) return n;
37
33
  var r = e.call(n), s, i = [], o;
38
34
  try {
39
- for (; (t === void 0 || t-- > 0) && !(s = r.next()).done; )
40
- i.push(s.value);
35
+ for (; (t === void 0 || t-- > 0) && !(s = r.next()).done; ) i.push(s.value);
41
36
  } catch (a) {
42
37
  o = { error: a };
43
38
  } finally {
44
39
  try {
45
40
  s && !s.done && (e = r.return) && e.call(r);
46
41
  } finally {
47
- if (o)
48
- throw o.error;
42
+ if (o) throw o.error;
49
43
  }
50
44
  }
51
45
  return i;
52
46
  }
53
47
  function D(n, t, e) {
54
- if (e || arguments.length === 2)
55
- for (var r = 0, s = t.length, i; r < s; r++)
56
- (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
48
+ if (e || arguments.length === 2) for (var r = 0, s = t.length, i; r < s; r++)
49
+ (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
57
50
  return n.concat(i || Array.prototype.slice.call(t));
58
51
  }
59
52
  function S(n) {
@@ -65,7 +58,7 @@ function X(n) {
65
58
  }, e = n(t);
66
59
  return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
67
60
  }
68
- var N = X(function(n) {
61
+ var k = X(function(n) {
69
62
  return function(e) {
70
63
  n(this), this.message = e ? e.length + ` errors occurred during unsubscription:
71
64
  ` + e.map(function(r, s) {
@@ -102,8 +95,7 @@ var R = function() {
102
95
  try {
103
96
  c && !c.done && (e = a.return) && e.call(a);
104
97
  } finally {
105
- if (t)
106
- throw t.error;
98
+ if (t) throw t.error;
107
99
  }
108
100
  }
109
101
  else
@@ -113,18 +105,18 @@ var R = function() {
113
105
  try {
114
106
  l();
115
107
  } catch (y) {
116
- i = y instanceof N ? y.errors : [y];
108
+ i = y instanceof k ? y.errors : [y];
117
109
  }
118
110
  var h = this._finalizers;
119
111
  if (h) {
120
112
  this._finalizers = null;
121
113
  try {
122
114
  for (var b = G(h), v = b.next(); !v.done; v = b.next()) {
123
- var k = v.value;
115
+ var N = v.value;
124
116
  try {
125
- se(k);
117
+ se(N);
126
118
  } catch (y) {
127
- i = i ?? [], y instanceof N ? i = D(D([], $(i)), $(y.errors)) : i.push(y);
119
+ i = i ?? [], y instanceof k ? i = D(D([], $(i)), $(y.errors)) : i.push(y);
128
120
  }
129
121
  }
130
122
  } catch (y) {
@@ -133,13 +125,12 @@ var R = function() {
133
125
  try {
134
126
  v && !v.done && (s = b.return) && s.call(b);
135
127
  } finally {
136
- if (r)
137
- throw r.error;
128
+ if (r) throw r.error;
138
129
  }
139
130
  }
140
131
  }
141
132
  if (i)
142
- throw new N(i);
133
+ throw new k(i);
143
134
  }
144
135
  }, n.prototype.add = function(t) {
145
136
  var e;
@@ -206,7 +197,7 @@ function U(n) {
206
197
  n();
207
198
  }
208
199
  var Z = function(n) {
209
- C(t, n);
200
+ x(t, n);
210
201
  function t(e) {
211
202
  var r = n.call(this) || this;
212
203
  return r.isStopped = !1, e ? (r.destination = e, me(e) && e.add(r)) : r.destination = $e, r;
@@ -272,7 +263,7 @@ var Le = function() {
272
263
  }
273
264
  }, n;
274
265
  }(), H = function(n) {
275
- C(t, n);
266
+ x(t, n);
276
267
  function t(e, r, s) {
277
268
  var i = n.call(this) || this, o;
278
269
  if (S(e) || !e)
@@ -327,7 +318,7 @@ var B = function() {
327
318
  var e = new n();
328
319
  return e.source = this, e.operator = t, e;
329
320
  }, n.prototype.subscribe = function(t, e, r) {
330
- var s = this, i = ke(t) ? t : new H(t, e, r);
321
+ var s = this, i = Ne(t) ? t : new H(t, e, r);
331
322
  return U(function() {
332
323
  var o = s, a = o.operator, c = o.source;
333
324
  i.add(a ? a.call(i, c) : c ? s._subscribe(i) : s._trySubscribe(i));
@@ -386,15 +377,15 @@ function oe(n) {
386
377
  function He(n) {
387
378
  return n && S(n.next) && S(n.error) && S(n.complete);
388
379
  }
389
- function ke(n) {
380
+ function Ne(n) {
390
381
  return n && n instanceof Z || He(n) && me(n);
391
382
  }
392
- function Ne(n) {
383
+ function ke(n) {
393
384
  return S(n == null ? void 0 : n.lift);
394
385
  }
395
386
  function Me(n) {
396
387
  return function(t) {
397
- if (Ne(t))
388
+ if (ke(t))
398
389
  return t.lift(function(e) {
399
390
  try {
400
391
  return n(e, this);
@@ -409,7 +400,7 @@ function Ce(n, t, e, r, s) {
409
400
  return new Ve(n, t, e, r, s);
410
401
  }
411
402
  var Ve = function(n) {
412
- C(t, n);
403
+ x(t, n);
413
404
  function t(e, r, s, i, o, a) {
414
405
  var c = n.call(this, e) || this;
415
406
  return c.onFinalize = o, c.shouldUnsubscribe = a, c._next = r ? function(u) {
@@ -448,7 +439,7 @@ var Ve = function(n) {
448
439
  n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
449
440
  };
450
441
  }), xe = function(n) {
451
- C(t, n);
442
+ x(t, n);
452
443
  function t() {
453
444
  var e = n.call(this) || this;
454
445
  return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
@@ -476,8 +467,7 @@ var Ve = function(n) {
476
467
  try {
477
468
  a && !a.done && (i = o.return) && i.call(o);
478
469
  } finally {
479
- if (s)
480
- throw s.error;
470
+ if (s) throw s.error;
481
471
  }
482
472
  }
483
473
  }
@@ -528,7 +518,7 @@ var Ve = function(n) {
528
518
  return new ae(e, r);
529
519
  }, t;
530
520
  }(B), ae = function(n) {
531
- C(t, n);
521
+ x(t, n);
532
522
  function t(e, r) {
533
523
  var s = n.call(this) || this;
534
524
  return s.destination = e, s.source = r, s;
@@ -552,7 +542,7 @@ var Ve = function(n) {
552
542
  },
553
543
  delegate: void 0
554
544
  }, qe = function(n) {
555
- C(t, n);
545
+ x(t, n);
556
546
  function t(e, r) {
557
547
  return n.call(this) || this;
558
548
  }
@@ -571,7 +561,7 @@ var Ve = function(n) {
571
561
  },
572
562
  delegate: void 0
573
563
  }, Ge = function(n) {
574
- C(t, n);
564
+ x(t, n);
575
565
  function t(e, r) {
576
566
  var s = n.call(this, e, r) || this;
577
567
  return s.scheduler = e, s.work = r, s.pending = !1, s;
@@ -620,7 +610,7 @@ var Ve = function(n) {
620
610
  return e === void 0 && (e = 0), new this.schedulerActionCtor(this, t).schedule(r, e);
621
611
  }, n.now = Qe.now, n;
622
612
  }(), Be = function(n) {
623
- C(t, n);
613
+ x(t, n);
624
614
  function t(e, r) {
625
615
  r === void 0 && (r = ce.now);
626
616
  var s = n.call(this, e, r) || this;
@@ -706,10 +696,10 @@ function Xe(n, t, e) {
706
696
  }));
707
697
  }) : Ee;
708
698
  }
709
- var Ze = Object.defineProperty, et = (n, t, e) => t in n ? Ze(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, M = (n, t, e) => (et(n, typeof t != "symbol" ? t + "" : t, e), e);
699
+ var Ze = Object.defineProperty, et = (n, t, e) => t in n ? Ze(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, C = (n, t, e) => et(n, typeof t != "symbol" ? t + "" : t, e);
710
700
  class d extends Error {
711
701
  constructor(t) {
712
- super(`Incorrect context (${t}). Cannot perform the requested operation.`), M(this, "context"), this.context = t;
702
+ super(`Incorrect context (${t}). Cannot perform the requested operation.`), C(this, "context"), this.context = t;
713
703
  }
714
704
  }
715
705
  class I extends Error {
@@ -763,8 +753,7 @@ var z = function(n, t) {
763
753
  return z = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
764
754
  e.__proto__ = r;
765
755
  } || function(e, r) {
766
- for (var s in r)
767
- Object.prototype.hasOwnProperty.call(r, s) && (e[s] = r[s]);
756
+ for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (e[s] = r[s]);
768
757
  }, z(n, t);
769
758
  };
770
759
  function ee(n, t) {
@@ -778,40 +767,34 @@ function ee(n, t) {
778
767
  }
779
768
  function he(n) {
780
769
  var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], r = 0;
781
- if (e)
782
- return e.call(n);
783
- if (n && typeof n.length == "number")
784
- return {
785
- next: function() {
786
- return n && r >= n.length && (n = void 0), { value: n && n[r++], done: !n };
787
- }
788
- };
770
+ if (e) return e.call(n);
771
+ if (n && typeof n.length == "number") return {
772
+ next: function() {
773
+ return n && r >= n.length && (n = void 0), { value: n && n[r++], done: !n };
774
+ }
775
+ };
789
776
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
790
777
  }
791
778
  function W(n, t) {
792
779
  var e = typeof Symbol == "function" && n[Symbol.iterator];
793
- if (!e)
794
- return n;
780
+ if (!e) return n;
795
781
  var r = e.call(n), s, i = [], o;
796
782
  try {
797
- for (; (t === void 0 || t-- > 0) && !(s = r.next()).done; )
798
- i.push(s.value);
783
+ for (; (t === void 0 || t-- > 0) && !(s = r.next()).done; ) i.push(s.value);
799
784
  } catch (a) {
800
785
  o = { error: a };
801
786
  } finally {
802
787
  try {
803
788
  s && !s.done && (e = r.return) && e.call(r);
804
789
  } finally {
805
- if (o)
806
- throw o.error;
790
+ if (o) throw o.error;
807
791
  }
808
792
  }
809
793
  return i;
810
794
  }
811
795
  function K(n, t, e) {
812
- if (arguments.length === 2)
813
- for (var r = 0, s = t.length, i; r < s; r++)
814
- (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
796
+ if (arguments.length === 2) for (var r = 0, s = t.length, i; r < s; r++)
797
+ (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
815
798
  return n.concat(i || Array.prototype.slice.call(t));
816
799
  }
817
800
  function st(n) {
@@ -857,8 +840,7 @@ var te = function() {
857
840
  try {
858
841
  c && !c.done && (e = a.return) && e.call(a);
859
842
  } finally {
860
- if (t)
861
- throw t.error;
843
+ if (t) throw t.error;
862
844
  }
863
845
  }
864
846
  else
@@ -875,9 +857,9 @@ var te = function() {
875
857
  this._finalizers = null;
876
858
  try {
877
859
  for (var b = he(h), v = b.next(); !v.done; v = b.next()) {
878
- var k = v.value;
860
+ var N = v.value;
879
861
  try {
880
- pe(k);
862
+ pe(N);
881
863
  } catch (y) {
882
864
  i = i ?? [], y instanceof j ? i = K(K([], W(i)), W(y.errors)) : i.push(y);
883
865
  }
@@ -888,8 +870,7 @@ var te = function() {
888
870
  try {
889
871
  v && !v.done && (s = b.return) && s.call(b);
890
872
  } finally {
891
- if (r)
892
- throw r.error;
873
+ if (r) throw r.error;
893
874
  }
894
875
  }
895
876
  }
@@ -1277,7 +1258,7 @@ class Ct {
1277
1258
  * @param logService - An instance of a logging service or utility
1278
1259
  */
1279
1260
  constructor(t, e) {
1280
- if (M(this, "negotiatedProtocolVersion"), M(this, "currentContext"), M(this, "incomingMessages$"), M(this, "inIframe", !1), M(this, "embeddedResult"), M(this, "iframePort1"), M(this, "iframePort2"), this.supportedVersions = t, this.logService = e, this.incomingMessages$ = new xe(), this.supportedVersions = t.filter((r) => Mt(r, ye)), !this.supportedVersions.length)
1261
+ if (C(this, "negotiatedProtocolVersion"), C(this, "currentContext"), C(this, "incomingMessages$"), C(this, "inIframe", !1), C(this, "embeddedResult"), C(this, "iframePort1"), C(this, "iframePort2"), this.supportedVersions = t, this.logService = e, this.incomingMessages$ = new xe(), this.supportedVersions = t.filter((r) => Mt(r, ye)), !this.supportedVersions.length)
1281
1262
  throw new le(t, ye);
1282
1263
  this.negotiatedProtocolVersion = this.supportedVersions[0], this.embeddedResult = null, this.iframePort2 = null;
1283
1264
  }
@@ -1337,7 +1318,7 @@ class Ct {
1337
1318
  p((s) => {
1338
1319
  if (this.supportedVersions.some((i) => Et(i, s.protocolVersion)))
1339
1320
  throw new le(s.protocolVersion, this.supportedVersions[0]);
1340
- return s;
1321
+ return s.displayName || (s.displayName = s.cloudUsername), s;
1341
1322
  }),
1342
1323
  f((s) => {
1343
1324
  this.negotiatedProtocolVersion = s.protocolVersion, this.logService.info(
@@ -2565,18 +2546,22 @@ class Rt {
2565
2546
  /**
2566
2547
  * The type of the `Host` app the `Client` is embedded in.
2567
2548
  */
2568
- x(this, "host");
2549
+ M(this, "host");
2569
2550
  /**
2570
2551
  * The cloud ID of the `Host` app the `Client` is embedded in.
2571
2552
  */
2572
- x(this, "cloudId");
2553
+ M(this, "cloudId");
2573
2554
  /**
2574
2555
  * The cloud username of the logged in user.
2575
2556
  */
2576
- x(this, "cloudUsername");
2577
- x(this, "logger");
2578
- x(this, "helper");
2579
- x(this, "listeners");
2557
+ M(this, "cloudUsername");
2558
+ /**
2559
+ * The display name of the logged in user.
2560
+ */
2561
+ M(this, "displayName");
2562
+ M(this, "logger");
2563
+ M(this, "helper");
2564
+ M(this, "listeners");
2580
2565
  this.logger = t ?? console, this.helper = new Ct(It, this.logger), this.listeners = /* @__PURE__ */ new Map(), this.listeners.set(w.BadgeQuery, /* @__PURE__ */ new Set()), this.listeners.set(w.Lifecycle, /* @__PURE__ */ new Set()), this.listeners.set(w.PushToken, /* @__PURE__ */ new Set());
2581
2566
  }
2582
2567
  /**
@@ -2631,7 +2616,7 @@ class Rt {
2631
2616
  this.logger.debug("Received Push Token: ", e);
2632
2617
  for (const s of ((r = this.listeners.get(w.PushToken)) == null ? void 0 : r.values()) ?? [])
2633
2618
  s(e.pushToken, e.appId, e.selector);
2634
- }), this.cloudId = t.cloudId, this.cloudUsername = t.cloudUsername, this.host = t.host;
2619
+ }), this.cloudId = t.cloudId, this.cloudUsername = t.cloudUsername, this.displayName = t.displayName, this.host = t.host;
2635
2620
  }),
2636
2621
  O(() => {
2637
2622
  })