@webex/widgets 1.20.7 → 1.20.8
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/webexWidgets.css +1 -1
- package/dist/webexWidgets.esm.js +204 -198
- package/dist/webexWidgets.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/webexWidgets.esm.js
CHANGED
|
@@ -4300,7 +4300,7 @@ function X(e) {
|
|
|
4300
4300
|
};
|
|
4301
4301
|
}
|
|
4302
4302
|
|
|
4303
|
-
var
|
|
4303
|
+
var K = function (r) {
|
|
4304
4304
|
_inherits(i, R);
|
|
4305
4305
|
var a = X(i);
|
|
4306
4306
|
|
|
@@ -4319,12 +4319,12 @@ var J = function (r) {
|
|
|
4319
4319
|
}]), i;
|
|
4320
4320
|
}();
|
|
4321
4321
|
|
|
4322
|
-
function
|
|
4322
|
+
function J(e, t) {
|
|
4323
4323
|
for (var n = e, r = 0, a = Object.entries(t); r < a.length; r++) {
|
|
4324
4324
|
var i = _slicedToArray(a[r], 2),
|
|
4325
4325
|
o = i[0],
|
|
4326
4326
|
s = i[1];
|
|
4327
|
-
(null == s ? void 0 : s.constructor) === Object ?
|
|
4327
|
+
(null == s ? void 0 : s.constructor) === Object ? J(n[o], s) : n[o] = s;
|
|
4328
4328
|
}
|
|
4329
4329
|
}
|
|
4330
4330
|
|
|
@@ -6522,7 +6522,7 @@ var Ve = {
|
|
|
6522
6522
|
return r = this.fetchMeeting(t), e.next = 3, n(r);
|
|
6523
6523
|
|
|
6524
6524
|
case 3:
|
|
6525
|
-
a = e.sent,
|
|
6525
|
+
a = e.sent, J(r, a), document.dispatchEvent(new CustomEvent("meeting:update", {
|
|
6526
6526
|
detail: r
|
|
6527
6527
|
}));
|
|
6528
6528
|
|
|
@@ -6803,7 +6803,7 @@ function Xe(e) {
|
|
|
6803
6803
|
|
|
6804
6804
|
function i(t) {
|
|
6805
6805
|
var n;
|
|
6806
|
-
return _classCallCheck(this, i), (n = a.call(this, t)).activitiesAdapter = new
|
|
6806
|
+
return _classCallCheck(this, i), (n = a.call(this, t)).activitiesAdapter = new K(t.activities), n.meetingsAdapter = new He(t.meetings), n.membershipsAdapter = new Ue(t.memberships), n.organizationsAdapter = new Fe(t.organizations), n.peopleAdapter = new Ye(t.people), n.roomsAdapter = new _e(t.rooms), n;
|
|
6807
6807
|
}
|
|
6808
6808
|
|
|
6809
6809
|
return _createClass(i, [{
|
|
@@ -6819,7 +6819,7 @@ function Xe(e) {
|
|
|
6819
6819
|
}]), i;
|
|
6820
6820
|
})();
|
|
6821
6821
|
|
|
6822
|
-
function
|
|
6822
|
+
function Je(e) {
|
|
6823
6823
|
var t = e.size,
|
|
6824
6824
|
n = e.className,
|
|
6825
6825
|
r = e.style;
|
|
@@ -7541,11 +7541,11 @@ function Pt(e) {
|
|
|
7541
7541
|
}));
|
|
7542
7542
|
}
|
|
7543
7543
|
|
|
7544
|
-
|
|
7544
|
+
Je.propTypes = {
|
|
7545
7545
|
size: T.number,
|
|
7546
7546
|
className: T.string,
|
|
7547
7547
|
style: T.shape()
|
|
7548
|
-
},
|
|
7548
|
+
}, Je.defaultProps = {
|
|
7549
7549
|
size: 26,
|
|
7550
7550
|
className: "",
|
|
7551
7551
|
style: {}
|
|
@@ -7815,7 +7815,7 @@ Ke.propTypes = {
|
|
|
7815
7815
|
style: {}
|
|
7816
7816
|
};
|
|
7817
7817
|
var Lt = {
|
|
7818
|
-
"arrow-down":
|
|
7818
|
+
"arrow-down": Je,
|
|
7819
7819
|
"arrow-left": Qe,
|
|
7820
7820
|
"arrow-up": $e,
|
|
7821
7821
|
check: nt,
|
|
@@ -7969,19 +7969,19 @@ var Ht,
|
|
|
7969
7969
|
Gt = /auto|scroll/,
|
|
7970
7970
|
_t = /^tb|vertical/,
|
|
7971
7971
|
Xt = /msie|trident/i.test(Wt.navigator && Wt.navigator.userAgent),
|
|
7972
|
-
|
|
7972
|
+
Kt = function (e) {
|
|
7973
7973
|
return parseFloat(e || "0");
|
|
7974
7974
|
},
|
|
7975
|
-
|
|
7975
|
+
Jt = function (e, t, n) {
|
|
7976
7976
|
return void 0 === e && (e = 0), void 0 === t && (t = 0), void 0 === n && (n = !1), Object.freeze({
|
|
7977
7977
|
inlineSize: (n ? t : e) || 0,
|
|
7978
7978
|
blockSize: (n ? e : t) || 0
|
|
7979
7979
|
});
|
|
7980
7980
|
},
|
|
7981
7981
|
Qt = Object.freeze({
|
|
7982
|
-
devicePixelContentBoxSize:
|
|
7983
|
-
borderBoxSize:
|
|
7984
|
-
contentBoxSize:
|
|
7982
|
+
devicePixelContentBoxSize: Jt(),
|
|
7983
|
+
borderBoxSize: Jt(),
|
|
7984
|
+
contentBoxSize: Jt(),
|
|
7985
7985
|
contentRect: new qt(0, 0, 0, 0)
|
|
7986
7986
|
}),
|
|
7987
7987
|
$t = function (e, t) {
|
|
@@ -7994,29 +7994,29 @@ var Ht,
|
|
|
7994
7994
|
i = _t.test(n.writingMode || ""),
|
|
7995
7995
|
o = !r && Gt.test(n.overflowY || ""),
|
|
7996
7996
|
s = !r && Gt.test(n.overflowX || ""),
|
|
7997
|
-
c = r ? 0 :
|
|
7998
|
-
l = r ? 0 :
|
|
7999
|
-
u = r ? 0 :
|
|
8000
|
-
m = r ? 0 :
|
|
8001
|
-
p = r ? 0 :
|
|
8002
|
-
d = r ? 0 :
|
|
8003
|
-
f = r ? 0 :
|
|
7997
|
+
c = r ? 0 : Kt(n.paddingTop),
|
|
7998
|
+
l = r ? 0 : Kt(n.paddingRight),
|
|
7999
|
+
u = r ? 0 : Kt(n.paddingBottom),
|
|
8000
|
+
m = r ? 0 : Kt(n.paddingLeft),
|
|
8001
|
+
p = r ? 0 : Kt(n.borderTopWidth),
|
|
8002
|
+
d = r ? 0 : Kt(n.borderRightWidth),
|
|
8003
|
+
f = r ? 0 : Kt(n.borderBottomWidth),
|
|
8004
8004
|
h = m + l,
|
|
8005
8005
|
v = c + u,
|
|
8006
|
-
g = (r ? 0 :
|
|
8006
|
+
g = (r ? 0 : Kt(n.borderLeftWidth)) + d,
|
|
8007
8007
|
y = p + f,
|
|
8008
8008
|
C = s ? e.offsetHeight - y - e.clientHeight : 0,
|
|
8009
8009
|
w = o ? e.offsetWidth - g - e.clientWidth : 0,
|
|
8010
8010
|
b = a ? h + g : 0,
|
|
8011
8011
|
E = a ? v + y : 0,
|
|
8012
|
-
x = r ? r.width :
|
|
8013
|
-
N = r ? r.height :
|
|
8012
|
+
x = r ? r.width : Kt(n.width) - b - w,
|
|
8013
|
+
N = r ? r.height : Kt(n.height) - E - C,
|
|
8014
8014
|
k = x + h + w + g,
|
|
8015
8015
|
O = N + v + C + y,
|
|
8016
8016
|
D = Object.freeze({
|
|
8017
|
-
devicePixelContentBoxSize:
|
|
8018
|
-
borderBoxSize:
|
|
8019
|
-
contentBoxSize:
|
|
8017
|
+
devicePixelContentBoxSize: Jt(Math.round(x * devicePixelRatio), Math.round(N * devicePixelRatio), i),
|
|
8018
|
+
borderBoxSize: Jt(k, O, i),
|
|
8019
|
+
contentBoxSize: Jt(x, N, i),
|
|
8020
8020
|
contentRect: new qt(m, c, x, N)
|
|
8021
8021
|
});
|
|
8022
8022
|
|
|
@@ -8573,17 +8573,12 @@ function jn(e) {
|
|
|
8573
8573
|
}
|
|
8574
8574
|
|
|
8575
8575
|
function zn() {
|
|
8576
|
-
var e,
|
|
8577
|
-
t,
|
|
8578
|
-
n
|
|
8579
|
-
|
|
8580
|
-
a = (e = useState(0), t = _slicedToArray(e, 2), n = t[0], r = t[1], function () {
|
|
8581
|
-
return r(n + 1);
|
|
8582
|
-
}),
|
|
8583
|
-
i = useCallback(function (e) {
|
|
8584
|
-
i.current = e, a();
|
|
8576
|
+
var e = useState(),
|
|
8577
|
+
t = _slicedToArray(e, 2)[1],
|
|
8578
|
+
n = useCallback(function (e) {
|
|
8579
|
+
n.current = e, t(e);
|
|
8585
8580
|
}, []);
|
|
8586
|
-
return
|
|
8581
|
+
return n;
|
|
8587
8582
|
}
|
|
8588
8583
|
|
|
8589
8584
|
function An(e, t) {
|
|
@@ -8763,7 +8758,7 @@ function Xn(e) {
|
|
|
8763
8758
|
return t.setSeconds(0, 0), 6e4 * n + (n > 0 ? (6e4 + _n(t)) % 6e4 : _n(t));
|
|
8764
8759
|
}
|
|
8765
8760
|
|
|
8766
|
-
function
|
|
8761
|
+
function Jn(e) {
|
|
8767
8762
|
Zn(1, arguments);
|
|
8768
8763
|
var t = Fn(e);
|
|
8769
8764
|
return !isNaN(t);
|
|
@@ -10013,7 +10008,7 @@ function Yr(e, t, n) {
|
|
|
10013
10008
|
if (!i.localize) throw new RangeError("locale must contain localize property");
|
|
10014
10009
|
if (!i.formatLong) throw new RangeError("locale must contain formatLong property");
|
|
10015
10010
|
var p = Fn(e);
|
|
10016
|
-
if (!
|
|
10011
|
+
if (!Jn(p)) throw new RangeError("Invalid time value");
|
|
10017
10012
|
var d = Xn(p),
|
|
10018
10013
|
f = sr(p, d),
|
|
10019
10014
|
h = {
|
|
@@ -10759,83 +10754,74 @@ function Na(e) {
|
|
|
10759
10754
|
}
|
|
10760
10755
|
|
|
10761
10756
|
function ka(e) {
|
|
10762
|
-
var t = e.
|
|
10763
|
-
n = e.
|
|
10764
|
-
r = e.
|
|
10765
|
-
a = e.
|
|
10766
|
-
i = e.
|
|
10767
|
-
o = e.
|
|
10768
|
-
s = e.
|
|
10769
|
-
c =
|
|
10770
|
-
l =
|
|
10771
|
-
u =
|
|
10772
|
-
|
|
10773
|
-
|
|
10774
|
-
|
|
10775
|
-
|
|
10776
|
-
|
|
10757
|
+
var t = e.autoFocus,
|
|
10758
|
+
n = e.className,
|
|
10759
|
+
r = e.onMouseEnter,
|
|
10760
|
+
a = e.onSelect,
|
|
10761
|
+
i = e.option,
|
|
10762
|
+
o = e.selected,
|
|
10763
|
+
s = e.tabIndex,
|
|
10764
|
+
c = zn(),
|
|
10765
|
+
l = Pe("option", n),
|
|
10766
|
+
u = _slicedToArray(l, 2),
|
|
10767
|
+
m = u[0],
|
|
10768
|
+
p = u[1];
|
|
10769
|
+
zt(c, t);
|
|
10770
|
+
return x.createElement("li", {
|
|
10771
|
+
"aria-label": "object" !== _typeof(i.label) ? i.label : i.value,
|
|
10772
|
+
"aria-selected": o === i.value,
|
|
10773
|
+
className: m,
|
|
10774
|
+
key: i.value,
|
|
10777
10775
|
role: "option",
|
|
10778
|
-
ref:
|
|
10779
|
-
onClick:
|
|
10780
|
-
|
|
10781
|
-
|
|
10782
|
-
|
|
10783
|
-
|
|
10784
|
-
|
|
10785
|
-
|
|
10776
|
+
ref: c,
|
|
10777
|
+
onClick: function () {
|
|
10778
|
+
return a(i, !1);
|
|
10779
|
+
},
|
|
10780
|
+
onKeyDown: function (e) {
|
|
10781
|
+
var t;
|
|
10782
|
+
"ArrowUp" === e.key ? t = c.current.previousElementSibling : "ArrowDown" === e.key ? t = c.current.nextElementSibling : "Enter" === e.key && a(i, !0), t && t.focus();
|
|
10783
|
+
},
|
|
10784
|
+
onMouseEnter: r,
|
|
10785
|
+
tabIndex: s,
|
|
10786
|
+
title: "object" !== _typeof(i.label) ? i.label : void 0
|
|
10787
|
+
}, i.icon && x.createElement(It, {
|
|
10788
|
+
name: i.icon
|
|
10786
10789
|
}), x.createElement("span", {
|
|
10787
|
-
className:
|
|
10788
|
-
},
|
|
10789
|
-
className: De(
|
|
10790
|
+
className: p("label")
|
|
10791
|
+
}, i.label), o && x.createElement(It, {
|
|
10792
|
+
className: De(p("check"), _defineProperty({}, p("check--invisible"), o !== i.value)),
|
|
10790
10793
|
size: 16,
|
|
10791
10794
|
name: "check"
|
|
10792
10795
|
}));
|
|
10793
10796
|
}
|
|
10794
10797
|
|
|
10795
10798
|
function Oa(e) {
|
|
10796
|
-
var t = e.
|
|
10797
|
-
n = e.
|
|
10798
|
-
r = e.
|
|
10799
|
-
a = e.
|
|
10799
|
+
var t = e.className,
|
|
10800
|
+
n = e.onBlur,
|
|
10801
|
+
r = e.onSelect,
|
|
10802
|
+
a = e.options,
|
|
10800
10803
|
i = e.selected,
|
|
10801
10804
|
o = e.tabIndex,
|
|
10802
|
-
s =
|
|
10803
|
-
c =
|
|
10804
|
-
l = c
|
|
10805
|
-
u =
|
|
10806
|
-
m =
|
|
10807
|
-
p = _slicedToArray(m, 2),
|
|
10808
|
-
d = p[0],
|
|
10809
|
-
f = p[1],
|
|
10810
|
-
h = function (e) {
|
|
10811
|
-
if ("ArrowUp" === e.key) {
|
|
10812
|
-
var n = (d + t.length - 1) % t.length;
|
|
10813
|
-
f(n);
|
|
10814
|
-
} else if ("ArrowDown" === e.key) {
|
|
10815
|
-
var i = (d + 1) % t.length;
|
|
10816
|
-
f(i);
|
|
10817
|
-
} else "Enter" === e.key ? a(t[d]) : "Tab" === e.key && r();
|
|
10818
|
-
};
|
|
10819
|
-
|
|
10805
|
+
s = e.withKey,
|
|
10806
|
+
c = Pe("options-list", t),
|
|
10807
|
+
l = _slicedToArray(c, 2),
|
|
10808
|
+
u = l[0],
|
|
10809
|
+
m = l[1];
|
|
10820
10810
|
return x.createElement("div", {
|
|
10821
|
-
className:
|
|
10811
|
+
className: u
|
|
10822
10812
|
}, x.createElement("ul", {
|
|
10823
10813
|
role: "menu",
|
|
10824
|
-
className:
|
|
10825
|
-
tabIndex: o
|
|
10826
|
-
|
|
10814
|
+
className: m("list"),
|
|
10815
|
+
tabIndex: o,
|
|
10816
|
+
onKeyDown: function (e) {
|
|
10817
|
+
"Tab" === e.key && n();
|
|
10818
|
+
}
|
|
10819
|
+
}, a.map(function (e, t) {
|
|
10827
10820
|
return x.createElement(ka, {
|
|
10828
|
-
|
|
10829
|
-
|
|
10830
|
-
|
|
10831
|
-
onMouseEnter: function () {
|
|
10832
|
-
return f(t);
|
|
10833
|
-
},
|
|
10834
|
-
onSelect: function () {
|
|
10835
|
-
return a(e);
|
|
10836
|
-
},
|
|
10821
|
+
key: e.value,
|
|
10822
|
+
autoFocus: s && (e.value === i || 0 === t),
|
|
10823
|
+
onSelect: r,
|
|
10837
10824
|
option: e,
|
|
10838
|
-
sc: u,
|
|
10839
10825
|
selected: i,
|
|
10840
10826
|
tabIndex: o
|
|
10841
10827
|
});
|
|
@@ -10852,7 +10838,7 @@ function Da(e) {
|
|
|
10852
10838
|
s = e.tooltip,
|
|
10853
10839
|
c = e.ariaLabel,
|
|
10854
10840
|
l = e.tabIndex,
|
|
10855
|
-
u = useState(
|
|
10841
|
+
u = useState(void 0),
|
|
10856
10842
|
m = _slicedToArray(u, 2),
|
|
10857
10843
|
p = m[0],
|
|
10858
10844
|
d = m[1],
|
|
@@ -10865,11 +10851,14 @@ function Da(e) {
|
|
|
10865
10851
|
y = null == a || null === (t = a.find(function (e) {
|
|
10866
10852
|
return e.value === r;
|
|
10867
10853
|
})) || void 0 === t ? void 0 : t.label,
|
|
10868
|
-
C =
|
|
10869
|
-
o || d(!p);
|
|
10870
|
-
},
|
|
10854
|
+
C = zn(),
|
|
10871
10855
|
w = function () {
|
|
10872
|
-
return d(
|
|
10856
|
+
return d(void 0);
|
|
10857
|
+
},
|
|
10858
|
+
E = function (e) {
|
|
10859
|
+
return d({
|
|
10860
|
+
withKey: e
|
|
10861
|
+
});
|
|
10873
10862
|
};
|
|
10874
10863
|
|
|
10875
10864
|
return useEffect(function () {
|
|
@@ -10883,15 +10872,21 @@ function Da(e) {
|
|
|
10883
10872
|
className: v
|
|
10884
10873
|
}, x.createElement("div", {
|
|
10885
10874
|
className: "".concat(g("selected-option"), " ").concat(p ? g("expanded") : ""),
|
|
10886
|
-
onClick:
|
|
10875
|
+
onClick: function () {
|
|
10876
|
+
return e = !1, void (o || d(p ? void 0 : {
|
|
10877
|
+
withKey: e
|
|
10878
|
+
}));
|
|
10879
|
+
var e;
|
|
10880
|
+
},
|
|
10887
10881
|
"aria-hidden": "true",
|
|
10888
10882
|
role: "button",
|
|
10889
10883
|
tabIndex: l,
|
|
10890
10884
|
title: s,
|
|
10891
10885
|
"aria-label": "".concat(y ? "".concat(y, ". ") : "").concat(c),
|
|
10892
10886
|
onKeyDown: function (e) {
|
|
10893
|
-
"Enter" !== e.key && " " !== e.key || e.target !== e.currentTarget
|
|
10894
|
-
}
|
|
10887
|
+
"Enter" !== e.key && " " !== e.key || e.target !== e.currentTarget ? "Tab" === e.key ? w() : "ArrowDown" !== e.key && "ArrowUp" !== e.key || E(!0) : E(!0);
|
|
10888
|
+
},
|
|
10889
|
+
ref: C
|
|
10895
10890
|
}, x.createElement("span", {
|
|
10896
10891
|
className: g("label")
|
|
10897
10892
|
}, y || r), x.createElement(It, {
|
|
@@ -10901,10 +10896,9 @@ function Da(e) {
|
|
|
10901
10896
|
className: g("options-list"),
|
|
10902
10897
|
options: a,
|
|
10903
10898
|
onSelect: function (e) {
|
|
10904
|
-
|
|
10905
|
-
d(!1), i(e.value);
|
|
10906
|
-
}(e);
|
|
10899
|
+
w(), i(e.value), C.current.focus();
|
|
10907
10900
|
},
|
|
10901
|
+
withKey: p.withKey,
|
|
10908
10902
|
selected: r,
|
|
10909
10903
|
tabIndex: l,
|
|
10910
10904
|
onBlur: w
|
|
@@ -10926,7 +10920,7 @@ Ca.propTypes = {
|
|
|
10926
10920
|
children: T.node.isRequired,
|
|
10927
10921
|
className: T.string,
|
|
10928
10922
|
isDisabled: T.bool,
|
|
10929
|
-
onClick: T.func
|
|
10923
|
+
onClick: T.func,
|
|
10930
10924
|
pressed: T.bool,
|
|
10931
10925
|
style: T.shape(),
|
|
10932
10926
|
size: T.oneOfType([T.number, T.string]),
|
|
@@ -10938,6 +10932,7 @@ Ca.propTypes = {
|
|
|
10938
10932
|
autoFocus: !1,
|
|
10939
10933
|
className: "",
|
|
10940
10934
|
isDisabled: !1,
|
|
10935
|
+
onClick: void 0,
|
|
10941
10936
|
pressed: !1,
|
|
10942
10937
|
style: {},
|
|
10943
10938
|
size: 32,
|
|
@@ -10989,43 +10984,41 @@ Ca.propTypes = {
|
|
|
10989
10984
|
ariaLabel: void 0
|
|
10990
10985
|
}, ka.propTypes = {
|
|
10991
10986
|
className: T.string,
|
|
10992
|
-
|
|
10993
|
-
onKeyDown: T.func,
|
|
10987
|
+
autoFocus: T.bool,
|
|
10994
10988
|
onMouseEnter: T.func,
|
|
10995
10989
|
onSelect: T.func.isRequired,
|
|
10996
|
-
option: T.
|
|
10990
|
+
option: T.shape({
|
|
10997
10991
|
value: T.string,
|
|
10998
10992
|
label: T.node,
|
|
10999
10993
|
icon: T.string
|
|
11000
|
-
})
|
|
11001
|
-
sc: T.func,
|
|
10994
|
+
}).isRequired,
|
|
11002
10995
|
selected: T.string,
|
|
11003
10996
|
tabIndex: T.number
|
|
11004
10997
|
}, ka.defaultProps = {
|
|
11005
10998
|
className: "",
|
|
11006
|
-
|
|
11007
|
-
onKeyDown: void 0,
|
|
10999
|
+
autoFocus: void 0,
|
|
11008
11000
|
onMouseEnter: void 0,
|
|
11009
|
-
sc: void 0,
|
|
11010
11001
|
selected: void 0,
|
|
11011
11002
|
tabIndex: void 0
|
|
11012
11003
|
}, Oa.propTypes = {
|
|
11013
11004
|
className: T.string,
|
|
11014
11005
|
onBlur: T.func,
|
|
11006
|
+
onSelect: T.func.isRequired,
|
|
11015
11007
|
options: T.arrayOf(T.shape({
|
|
11016
11008
|
value: T.string,
|
|
11017
11009
|
label: T.node,
|
|
11018
11010
|
icon: T.string
|
|
11019
11011
|
})),
|
|
11020
|
-
onSelect: T.func.isRequired,
|
|
11021
11012
|
selected: T.string,
|
|
11022
|
-
tabIndex: T.number
|
|
11013
|
+
tabIndex: T.number,
|
|
11014
|
+
withKey: T.bool
|
|
11023
11015
|
}, Oa.defaultProps = {
|
|
11024
11016
|
className: "",
|
|
11025
11017
|
onBlur: void 0,
|
|
11026
11018
|
options: [],
|
|
11027
11019
|
selected: "",
|
|
11028
|
-
tabIndex: void 0
|
|
11020
|
+
tabIndex: void 0,
|
|
11021
|
+
withKey: !1
|
|
11029
11022
|
}, Da.propTypes = {
|
|
11030
11023
|
className: T.string,
|
|
11031
11024
|
value: T.string,
|
|
@@ -11236,89 +11229,95 @@ var Ia = function (e) {
|
|
|
11236
11229
|
};
|
|
11237
11230
|
|
|
11238
11231
|
function Sa(e) {
|
|
11239
|
-
for (var t = e.className, n = e.collapseRangeStart, r = e.collapseRangeEnd, a = e.controls, i = e.meetingID, o = e.style, s = e.tabIndexes, c = useContext(Rt).meetingsAdapter, l = Dn(i).state, u = zn(), m = zn(), p = En(u).width,
|
|
11240
|
-
var
|
|
11241
|
-
|
|
11242
|
-
J = En(
|
|
11243
|
-
|
|
11244
|
-
|
|
11245
|
-
|
|
11246
|
-
Z[G] = Q && _, F[G] = Q && X, W[G] = Q && J + 10, Y[G] = Q && K + 10;
|
|
11232
|
+
for (var t = e.className, n = e.collapseRangeStart, r = e.collapseRangeEnd, a = e.controls, i = e.meetingID, o = e.style, s = e.tabIndexes, c = useContext(Rt).meetingsAdapter, l = Dn(i).state, u = zn(), m = zn(), p = zn(), d = En(u).width, f = En(p).width, h = l === V, v = Pe("meeting-control-bar", t), g = _slicedToArray(v, 2), y = g[0], C = g[1], w = a(h), D = s(h), M = w.length, T = useState(), P = _slicedToArray(T, 2), L = P[0], I = P[1], S = useState([0, 0]), R = _slicedToArray(S, 2), j = _slicedToArray(R[0], 2), z = j[0], A = j[1], B = R[1], H = useState(void 0), q = _slicedToArray(H, 2), U = q[0], Z = q[1], F = [], W = [], Y = [], G = [], _ = 0; _ < 20; _ += 1) {
|
|
11233
|
+
var X = zn(),
|
|
11234
|
+
K = zn(),
|
|
11235
|
+
J = En(X).width,
|
|
11236
|
+
Q = En(K).width,
|
|
11237
|
+
$ = _ < M;
|
|
11238
|
+
F[_] = $ && X, W[_] = $ && K, Y[_] = $ && J + 10, G[_] = $ && Q + 10;
|
|
11247
11239
|
}
|
|
11248
11240
|
|
|
11241
|
+
var ee = function () {
|
|
11242
|
+
return Z(void 0);
|
|
11243
|
+
};
|
|
11244
|
+
|
|
11249
11245
|
useEffect(function () {
|
|
11250
|
-
if (
|
|
11251
|
-
for (var e =
|
|
11246
|
+
if (Y.splice(M), G.splice(M), d && f && Y.every(Ia) && G.every(Ia)) {
|
|
11247
|
+
for (var e = G.reduce(function (e, t) {
|
|
11252
11248
|
return e + t;
|
|
11253
|
-
}, 0), t =
|
|
11249
|
+
}, 0), t = G.map(function () {
|
|
11254
11250
|
return !0;
|
|
11255
|
-
}), a =
|
|
11251
|
+
}), a = M - 1; a >= 0 && e > d; a -= 1) e -= G[a] - Y[a], t[a] = !1;
|
|
11256
11252
|
|
|
11257
|
-
if (
|
|
11258
|
-
var i = (n +
|
|
11259
|
-
o = (r +
|
|
11260
|
-
e +=
|
|
11253
|
+
if (I(t), e <= d) B([0, 0]), ee();else {
|
|
11254
|
+
var i = (n + M) % M,
|
|
11255
|
+
o = (r + M) % M;
|
|
11256
|
+
e += f + 10;
|
|
11261
11257
|
|
|
11262
|
-
for (var s = o, c = o - 1; c >= i && e >
|
|
11258
|
+
for (var s = o, c = o - 1; c >= i && e > d; c -= 1) e -= Y[c], s = c;
|
|
11263
11259
|
|
|
11264
|
-
|
|
11260
|
+
B([s, o]);
|
|
11265
11261
|
}
|
|
11266
11262
|
}
|
|
11267
|
-
}, [
|
|
11263
|
+
}, [d, f, n, r, M].concat(Y, G));
|
|
11268
11264
|
|
|
11269
|
-
var
|
|
11270
|
-
|
|
11265
|
+
var te,
|
|
11266
|
+
ne = function (e, t) {
|
|
11271
11267
|
return function (e, t) {
|
|
11272
|
-
return Array(t - e).fill().map(function (t, n) {
|
|
11268
|
+
return Array(Math.max(0, t - e)).fill().map(function (t, n) {
|
|
11273
11269
|
return e + n;
|
|
11274
11270
|
});
|
|
11275
11271
|
}(e, t).map(function (e) {
|
|
11276
11272
|
return x.createElement(La, {
|
|
11277
|
-
key:
|
|
11278
|
-
type:
|
|
11273
|
+
key: w[e],
|
|
11274
|
+
type: w[e],
|
|
11279
11275
|
meetingID: i,
|
|
11280
|
-
showText:
|
|
11281
|
-
autoFocus:
|
|
11282
|
-
tabIndex:
|
|
11276
|
+
showText: L[e],
|
|
11277
|
+
autoFocus: D[e] === Math.min.apply(Math, _toConsumableArray(D)) || !1,
|
|
11278
|
+
tabIndex: D[e]
|
|
11283
11279
|
});
|
|
11284
11280
|
});
|
|
11285
11281
|
},
|
|
11286
|
-
|
|
11287
|
-
return U(!q);
|
|
11288
|
-
},
|
|
11289
|
-
ne = function (e, t, n, r) {
|
|
11282
|
+
re = function (e, t, n, r) {
|
|
11290
11283
|
return x.createElement("div", {
|
|
11291
11284
|
ref: n,
|
|
11292
11285
|
key: "collapse-button",
|
|
11293
|
-
className:
|
|
11286
|
+
className: C("collapse-button")
|
|
11294
11287
|
}, x.createElement(Ea, {
|
|
11295
11288
|
onClick: t,
|
|
11296
11289
|
type: "toggle",
|
|
11297
11290
|
size: 48,
|
|
11298
|
-
pressed: e,
|
|
11291
|
+
pressed: !!e,
|
|
11299
11292
|
tabIndex: r,
|
|
11300
11293
|
tooltip: "More options",
|
|
11301
11294
|
ariaLabel: e ? "Collapse additional controls" : "Expand additional controls"
|
|
11302
11295
|
}, x.createElement(It, {
|
|
11303
11296
|
name: e ? "more-adr" : "more"
|
|
11304
11297
|
})));
|
|
11305
|
-
},
|
|
11306
|
-
re = function () {
|
|
11307
|
-
return U(!1);
|
|
11308
11298
|
};
|
|
11309
11299
|
|
|
11310
11300
|
return useEffect(function () {
|
|
11311
11301
|
var e;
|
|
11312
|
-
|
|
11313
|
-
|
|
11314
|
-
|
|
11315
|
-
|
|
11316
|
-
|
|
11317
|
-
|
|
11302
|
+
|
|
11303
|
+
if (U) {
|
|
11304
|
+
var t = function () {
|
|
11305
|
+
return ee();
|
|
11306
|
+
};
|
|
11307
|
+
|
|
11308
|
+
setTimeout(function () {
|
|
11309
|
+
return document.addEventListener("click", t);
|
|
11310
|
+
}), e = function () {
|
|
11311
|
+
return document.removeEventListener("click", t);
|
|
11312
|
+
};
|
|
11313
|
+
}
|
|
11314
|
+
|
|
11315
|
+
return e;
|
|
11316
|
+
}, [U]), x.createElement("div", {
|
|
11318
11317
|
ref: u,
|
|
11319
|
-
className:
|
|
11318
|
+
className: y,
|
|
11320
11319
|
style: o
|
|
11321
|
-
},
|
|
11320
|
+
}, U && (te = w.slice(z, A).map(function (e) {
|
|
11322
11321
|
return {
|
|
11323
11322
|
value: e,
|
|
11324
11323
|
label: x.createElement(La, {
|
|
@@ -11329,36 +11328,45 @@ function Sa(e) {
|
|
|
11329
11328
|
})
|
|
11330
11329
|
};
|
|
11331
11330
|
}), x.createElement(Oa, {
|
|
11332
|
-
className:
|
|
11333
|
-
options:
|
|
11331
|
+
className: C("collapsed-controls"),
|
|
11332
|
+
options: te,
|
|
11334
11333
|
onSelect: function (e) {
|
|
11335
|
-
c.meetingControls[e.value].action(i),
|
|
11334
|
+
c.meetingControls[e.value].action(i), ee(), m.current.focus();
|
|
11336
11335
|
},
|
|
11337
|
-
|
|
11338
|
-
|
|
11339
|
-
|
|
11340
|
-
}
|
|
11341
|
-
className:
|
|
11336
|
+
onBlur: ee,
|
|
11337
|
+
withKey: U.withKey,
|
|
11338
|
+
tabIndex: D[z]
|
|
11339
|
+
})), L && x.createElement("div", {
|
|
11340
|
+
className: C("controls")
|
|
11341
|
+
}, ne(0, z), z < A && re(U, function (e) {
|
|
11342
|
+
return t = !e.detail, void Z(function (e) {
|
|
11343
|
+
return e ? void 0 : {
|
|
11344
|
+
withKey: t
|
|
11345
|
+
};
|
|
11346
|
+
});
|
|
11347
|
+
var t;
|
|
11348
|
+
}, m, D[z]), ne(A, M)), x.createElement("div", {
|
|
11349
|
+
className: "".concat(C("controls"), " ").concat(C("controls--control-refs")),
|
|
11342
11350
|
"aria-hidden": "true"
|
|
11343
|
-
},
|
|
11351
|
+
}, w.map(function (e, t) {
|
|
11344
11352
|
return x.createElement(x.Fragment, {
|
|
11345
11353
|
key: e
|
|
11346
11354
|
}, x.createElement("div", {
|
|
11347
|
-
ref:
|
|
11355
|
+
ref: F[t],
|
|
11348
11356
|
key: "icon"
|
|
11349
11357
|
}, x.createElement(La, {
|
|
11350
11358
|
type: e,
|
|
11351
11359
|
meetingID: i,
|
|
11352
11360
|
showText: !1
|
|
11353
11361
|
})), x.createElement("div", {
|
|
11354
|
-
ref:
|
|
11362
|
+
ref: W[t],
|
|
11355
11363
|
key: "text"
|
|
11356
11364
|
}, x.createElement(La, {
|
|
11357
11365
|
type: e,
|
|
11358
11366
|
meetingID: i,
|
|
11359
11367
|
showText: !0
|
|
11360
11368
|
})));
|
|
11361
|
-
}),
|
|
11369
|
+
}), re(U, function () {}, p)));
|
|
11362
11370
|
}
|
|
11363
11371
|
|
|
11364
11372
|
Sa.propTypes = {
|
|
@@ -11856,7 +11864,7 @@ var Ga = Pe("no-media"),
|
|
|
11856
11864
|
}
|
|
11857
11865
|
};
|
|
11858
11866
|
|
|
11859
|
-
function
|
|
11867
|
+
function Ka(e) {
|
|
11860
11868
|
var t = e.className,
|
|
11861
11869
|
n = e.style,
|
|
11862
11870
|
r = e.media,
|
|
@@ -11877,7 +11885,7 @@ function Ja(e) {
|
|
|
11877
11885
|
}, o.message));
|
|
11878
11886
|
}
|
|
11879
11887
|
|
|
11880
|
-
function
|
|
11888
|
+
function Ja(e) {
|
|
11881
11889
|
var t,
|
|
11882
11890
|
n = e.className,
|
|
11883
11891
|
r = e.meetingID,
|
|
@@ -11903,7 +11911,7 @@ function Ka(e) {
|
|
|
11903
11911
|
type: "switch-microphone",
|
|
11904
11912
|
meetingID: r,
|
|
11905
11913
|
tabIndex: 103
|
|
11906
|
-
})) : x.createElement(
|
|
11914
|
+
})) : x.createElement(Ka, {
|
|
11907
11915
|
media: "microphone",
|
|
11908
11916
|
className: c("no-media")
|
|
11909
11917
|
}));
|
|
@@ -11936,7 +11944,7 @@ function Qa(e) {
|
|
|
11936
11944
|
meetingID: n
|
|
11937
11945
|
}), x.createElement(oa, {
|
|
11938
11946
|
type: "bottom"
|
|
11939
|
-
}, "Preview"))) : x.createElement(
|
|
11947
|
+
}, "Preview"))) : x.createElement(Ka, {
|
|
11940
11948
|
media: "camera",
|
|
11941
11949
|
className: c("no-media")
|
|
11942
11950
|
}));
|
|
@@ -11956,7 +11964,7 @@ function $a(e) {
|
|
|
11956
11964
|
key: "audio",
|
|
11957
11965
|
heading: "Audio",
|
|
11958
11966
|
content: function () {
|
|
11959
|
-
return x.createElement(
|
|
11967
|
+
return x.createElement(Ja, {
|
|
11960
11968
|
meetingID: t
|
|
11961
11969
|
});
|
|
11962
11970
|
},
|
|
@@ -12249,18 +12257,18 @@ function ii(e, t) {
|
|
|
12249
12257
|
return n.displayName = "WithAdapter(".concat((r = e).displayName || r.name || "Component", ")"), n;
|
|
12250
12258
|
}
|
|
12251
12259
|
|
|
12252
|
-
|
|
12260
|
+
Ka.propTypes = {
|
|
12253
12261
|
className: T.string,
|
|
12254
12262
|
style: T.shape(),
|
|
12255
12263
|
media: T.oneOf(["camera", "microphone"]).isRequired
|
|
12256
|
-
},
|
|
12264
|
+
}, Ka.defaultProps = {
|
|
12257
12265
|
className: void 0,
|
|
12258
12266
|
style: void 0
|
|
12259
|
-
},
|
|
12267
|
+
}, Ja.propTypes = {
|
|
12260
12268
|
className: T.string,
|
|
12261
12269
|
meetingID: T.string.isRequired,
|
|
12262
12270
|
style: T.shape()
|
|
12263
|
-
},
|
|
12271
|
+
}, Ja.defaultProps = {
|
|
12264
12272
|
className: "",
|
|
12265
12273
|
style: void 0
|
|
12266
12274
|
}, Qa.propTypes = {
|
|
@@ -14055,13 +14063,12 @@ class MeetingsSDKAdapter extends d {
|
|
|
14055
14063
|
});
|
|
14056
14064
|
logger.info('MEETING', ID, 'JOIN', 'Joining meeting');
|
|
14057
14065
|
} catch (error) {
|
|
14058
|
-
if (error.
|
|
14066
|
+
if (error.joinIntentRequired) {
|
|
14059
14067
|
logger.info('MEETING', ID, 'joinMeeting()', 'Meeting requires authentication');
|
|
14060
|
-
const opts = error.joinOptions || {};
|
|
14061
14068
|
this.updateMeeting(ID, () => ({
|
|
14062
14069
|
passwordRequired: true,
|
|
14063
|
-
invalidPassword: !!
|
|
14064
|
-
invalidHostKey: !!
|
|
14070
|
+
invalidPassword: !!options.password,
|
|
14071
|
+
invalidHostKey: !!options.hostKey
|
|
14065
14072
|
}));
|
|
14066
14073
|
} else {
|
|
14067
14074
|
logger.error('MEETING', ID, 'joinMeeting()', 'Unable to join', error);
|
|
@@ -14420,7 +14427,7 @@ class MeetingsSDKAdapter extends d {
|
|
|
14420
14427
|
updates = {
|
|
14421
14428
|
settings: {
|
|
14422
14429
|
preview: {
|
|
14423
|
-
stream
|
|
14430
|
+
video: stream
|
|
14424
14431
|
}
|
|
14425
14432
|
},
|
|
14426
14433
|
cameraID: deviceId
|
|
@@ -15109,7 +15116,7 @@ var defineProperty = defineProperty$1;
|
|
|
15109
15116
|
})(constants);
|
|
15110
15117
|
|
|
15111
15118
|
var name = "@webex/sdk-component-adapter";
|
|
15112
|
-
var version = "1.
|
|
15119
|
+
var version = "1.92.0";
|
|
15113
15120
|
const LOG_ARGS$1 = ['SDK-MEMBERSHIPS', `${name}-${version}`]; // max parameter value must be greater than 0 and less than or equal to 1000
|
|
15114
15121
|
|
|
15115
15122
|
const MAX_MEMBERSHIPS = 1000; // TODO: Figure out how to import JS Doc definitions and remove duplication.
|
|
@@ -15170,7 +15177,7 @@ function sortRoomMembers(memberships, myID) {
|
|
|
15170
15177
|
/* eslint-enable no-nested-ternary, indent */
|
|
15171
15178
|
}
|
|
15172
15179
|
/**
|
|
15173
|
-
*
|
|
15180
|
+
* Maps SDK members to adapter members
|
|
15174
15181
|
*
|
|
15175
15182
|
* @private
|
|
15176
15183
|
* @param {object} sdkMembers Members object from sdk meeting, keyed by ID
|
|
@@ -15183,7 +15190,6 @@ function getMembers(sdkMembers) {
|
|
|
15183
15190
|
sdkMembers
|
|
15184
15191
|
}]);
|
|
15185
15192
|
let members = Object.values(sdkMembers || {});
|
|
15186
|
-
members = members.filter(member => member.isUser);
|
|
15187
15193
|
members = sortMeetingMembers(members);
|
|
15188
15194
|
return members.map(member => ({
|
|
15189
15195
|
ID: member.participant && member.participant.person && constructHydraId(constants.hydraTypes.PEOPLE, member.participant.person.id),
|
|
@@ -16145,7 +16151,7 @@ var WebexMeeting = ii(ni(WebexMeetingWidget), function (props) {
|
|
|
16145
16151
|
},
|
|
16146
16152
|
config: {
|
|
16147
16153
|
appName: appName,
|
|
16148
|
-
appVersion: "1.20.
|
|
16154
|
+
appVersion: "1.20.7"
|
|
16149
16155
|
}
|
|
16150
16156
|
});
|
|
16151
16157
|
return new WebexSDKAdapter(webex);
|