@interopio/home-ui-react 1.2.5 → 1.2.6
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/index.js +1 -1
- package/index.js.map +1 -1
- package/index.mjs +70 -70
- package/index.mjs.map +1 -1
- package/lib/io-connect-home/types.d.ts +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a, jsxs as w, Fragment as ye } from "react/jsx-runtime";
|
|
2
2
|
import * as Je from "react";
|
|
3
|
-
import we, { forwardRef as ur, useState as z, useContext as ne, useEffect as Q, useCallback as he, useMemo as
|
|
3
|
+
import we, { forwardRef as ur, useState as z, useContext as ne, useEffect as Q, useCallback as he, useMemo as Qe, useRef as Le, createContext as Zt, Component as Ro, useReducer as Un } from "react";
|
|
4
4
|
import { IOConnectContext as ie, IOConnectProvider as dr } from "@interopio/react-hooks";
|
|
5
5
|
import Ui, { getFrameId as Fi, showAddApplicationPopup as Wi, AddWindowButton as Hi, GroupHeaderButtons as Vi, Logo as zi } from "@interopio/workspaces-ui-react";
|
|
6
6
|
import * as Zi from "react-dom";
|
|
@@ -644,7 +644,7 @@ const ve = zn().where((t) => t.length > 0, "Expected a non-empty string"), ua =
|
|
|
644
644
|
"localStorage",
|
|
645
645
|
Qi,
|
|
646
646
|
pa
|
|
647
|
-
), n =
|
|
647
|
+
), n = Qe(() => t || [], [t]);
|
|
648
648
|
return { favoriteEntities: n, toggleFavorite: ({ isOpen: i, ...s }) => {
|
|
649
649
|
const c = n.find((u) => u.title === s.title && u.type === s.type), l = c ? n.filter((u) => u !== c) : [s, ...n];
|
|
650
650
|
e(l);
|
|
@@ -716,7 +716,7 @@ const ve = zn().where((t) => t.length > 0, "Expected a non-empty string"), ua =
|
|
|
716
716
|
[Zn.TIMESTAMP]: ga,
|
|
717
717
|
[Zn.SEVERITY]: ya
|
|
718
718
|
}, wa = () => {
|
|
719
|
-
const t = $o(), [e, n] = z(Hr), { key: r, descending: o } = e, i =
|
|
719
|
+
const t = $o(), [e, n] = z(Hr), { key: r, descending: o } = e, i = Qe(() => ba[r](t, o), [t, r, o]);
|
|
720
720
|
return { onNotificationsSort: he((c) => {
|
|
721
721
|
n((l) => ({ key: c, descending: l.key !== c ? Hr.descending : !l.descending }));
|
|
722
722
|
}, []), sortedNotifications: i };
|
|
@@ -985,7 +985,7 @@ var an = {}, La = {
|
|
|
985
985
|
"8.1": "NT 6.3",
|
|
986
986
|
10: ["NT 6.4", "NT 10.0"],
|
|
987
987
|
RT: "ARM"
|
|
988
|
-
},
|
|
988
|
+
}, tt = {
|
|
989
989
|
browser: [
|
|
990
990
|
[
|
|
991
991
|
/\b(?:crmo|crios)\/([\w\.]+)/i
|
|
@@ -2011,7 +2011,7 @@ var an = {}, La = {
|
|
|
2011
2011
|
}, be = function(Z, q) {
|
|
2012
2012
|
if (typeof Z === u && (q = Z, Z = r), !(this instanceof be))
|
|
2013
2013
|
return new be(Z, q).getResult();
|
|
2014
|
-
var F = typeof n !== l && n.navigator ? n.navigator : r, te = Z || (F && F.userAgent ? F.userAgent : i), Ye = F && F.userAgentData ? F.userAgentData : r, je = q ? se(
|
|
2014
|
+
var F = typeof n !== l && n.navigator ? n.navigator : r, te = Z || (F && F.userAgent ? F.userAgent : i), Ye = F && F.userAgentData ? F.userAgentData : r, je = q ? se(tt, q) : tt, Y = F && F.userAgent == te;
|
|
2015
2015
|
return this.getBrowser = function() {
|
|
2016
2016
|
var W = {};
|
|
2017
2017
|
return W[h] = r, W[g] = r, Ke.call(W, te, je.browser), W[p] = ft(W[g]), Y && F && F.brave && typeof F.brave.isBrave == c && (W[h] = "Brave"), W;
|
|
@@ -2080,7 +2080,7 @@ function Ae(t) {
|
|
|
2080
2080
|
}
|
|
2081
2081
|
return t;
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2083
|
+
function lt(t) {
|
|
2084
2084
|
var e = Ae(t).Element;
|
|
2085
2085
|
return t instanceof e || t instanceof Element;
|
|
2086
2086
|
}
|
|
@@ -2139,7 +2139,7 @@ const qa = {
|
|
|
2139
2139
|
function Re(t) {
|
|
2140
2140
|
return t.split("-")[0];
|
|
2141
2141
|
}
|
|
2142
|
-
var
|
|
2142
|
+
var ct = Math.max, sn = Math.min, xt = Math.round;
|
|
2143
2143
|
function $n() {
|
|
2144
2144
|
var t = navigator.userAgentData;
|
|
2145
2145
|
return t != null && t.brands ? t.brands.map(function(e) {
|
|
@@ -2153,7 +2153,7 @@ function kt(t, e, n) {
|
|
|
2153
2153
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
2154
2154
|
var r = t.getBoundingClientRect(), o = 1, i = 1;
|
|
2155
2155
|
e && Se(t) && (o = t.offsetWidth > 0 && xt(r.width) / t.offsetWidth || 1, i = t.offsetHeight > 0 && xt(r.height) / t.offsetHeight || 1);
|
|
2156
|
-
var s =
|
|
2156
|
+
var s = lt(t) ? Ae(t) : window, c = s.visualViewport, l = !ei() && n, u = (r.left + (l && c ? c.offsetLeft : 0)) / o, f = (r.top + (l && c ? c.offsetTop : 0)) / i, p = r.width / o, d = r.height / i;
|
|
2157
2157
|
return {
|
|
2158
2158
|
width: p,
|
|
2159
2159
|
height: d,
|
|
@@ -2194,8 +2194,8 @@ function Me(t) {
|
|
|
2194
2194
|
function Ya(t) {
|
|
2195
2195
|
return ["table", "td", "th"].indexOf(Ve(t)) >= 0;
|
|
2196
2196
|
}
|
|
2197
|
-
function
|
|
2198
|
-
return ((
|
|
2197
|
+
function et(t) {
|
|
2198
|
+
return ((lt(t) ? t.ownerDocument : (
|
|
2199
2199
|
// $FlowFixMe[prop-missing]
|
|
2200
2200
|
t.document
|
|
2201
2201
|
)) || window.document).documentElement;
|
|
@@ -2209,7 +2209,7 @@ function gn(t) {
|
|
|
2209
2209
|
t.parentNode || // DOM Element detected
|
|
2210
2210
|
(vr(t) ? t.host : null) || // ShadowRoot detected
|
|
2211
2211
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2212
|
-
|
|
2212
|
+
et(t)
|
|
2213
2213
|
);
|
|
2214
2214
|
}
|
|
2215
2215
|
function Br(t) {
|
|
@@ -2241,7 +2241,7 @@ function yr(t) {
|
|
|
2241
2241
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
2242
2242
|
}
|
|
2243
2243
|
function jt(t, e, n) {
|
|
2244
|
-
return
|
|
2244
|
+
return ct(t, sn(e, n));
|
|
2245
2245
|
}
|
|
2246
2246
|
function Ja(t, e, n) {
|
|
2247
2247
|
var r = jt(t, e, n);
|
|
@@ -2322,7 +2322,7 @@ function $r(t) {
|
|
|
2322
2322
|
var b = s.hasOwnProperty("x"), x = s.hasOwnProperty("y"), E = Ee, O = Oe, y = window;
|
|
2323
2323
|
if (u) {
|
|
2324
2324
|
var T = $t(n), I = "clientHeight", S = "clientWidth";
|
|
2325
|
-
if (T === Ae(n) && (T =
|
|
2325
|
+
if (T === Ae(n) && (T = et(n), Me(T).position !== "static" && c === "absolute" && (I = "scrollHeight", S = "scrollWidth")), T = T, o === Oe || (o === Ee || o === Ne) && i === Ht) {
|
|
2326
2326
|
O = Ie;
|
|
2327
2327
|
var N = p && T === y && y.visualViewport ? y.visualViewport.height : (
|
|
2328
2328
|
// $FlowFixMe[prop-missing]
|
|
@@ -2445,10 +2445,10 @@ function br(t) {
|
|
|
2445
2445
|
};
|
|
2446
2446
|
}
|
|
2447
2447
|
function wr(t) {
|
|
2448
|
-
return kt(
|
|
2448
|
+
return kt(et(t)).left + br(t).scrollLeft;
|
|
2449
2449
|
}
|
|
2450
2450
|
function ds(t, e) {
|
|
2451
|
-
var n = Ae(t), r =
|
|
2451
|
+
var n = Ae(t), r = et(t), o = n.visualViewport, i = r.clientWidth, s = r.clientHeight, c = 0, l = 0;
|
|
2452
2452
|
if (o) {
|
|
2453
2453
|
i = o.width, s = o.height;
|
|
2454
2454
|
var u = ei();
|
|
@@ -2462,8 +2462,8 @@ function ds(t, e) {
|
|
|
2462
2462
|
};
|
|
2463
2463
|
}
|
|
2464
2464
|
function fs(t) {
|
|
2465
|
-
var e, n =
|
|
2466
|
-
return Me(o || n).direction === "rtl" && (c +=
|
|
2465
|
+
var e, n = et(t), r = br(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, i = ct(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), s = ct(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), c = -r.scrollLeft + wr(t), l = -r.scrollTop;
|
|
2466
|
+
return Me(o || n).direction === "rtl" && (c += ct(n.clientWidth, o ? o.clientWidth : 0) - i), {
|
|
2467
2467
|
width: i,
|
|
2468
2468
|
height: s,
|
|
2469
2469
|
x: c,
|
|
@@ -2499,18 +2499,18 @@ function ps(t, e) {
|
|
|
2499
2499
|
return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
2500
2500
|
}
|
|
2501
2501
|
function Kr(t, e, n) {
|
|
2502
|
-
return e === Jo ? Gn(ds(t, n)) :
|
|
2502
|
+
return e === Jo ? Gn(ds(t, n)) : lt(e) ? ps(e, n) : Gn(fs(et(t)));
|
|
2503
2503
|
}
|
|
2504
2504
|
function hs(t) {
|
|
2505
2505
|
var e = Ut(gn(t)), n = ["absolute", "fixed"].indexOf(Me(t).position) >= 0, r = n && Se(t) ? $t(t) : t;
|
|
2506
|
-
return
|
|
2507
|
-
return
|
|
2506
|
+
return lt(r) ? e.filter(function(o) {
|
|
2507
|
+
return lt(o) && ti(o, r) && Ve(o) !== "body";
|
|
2508
2508
|
}) : [];
|
|
2509
2509
|
}
|
|
2510
2510
|
function ms(t, e, n, r) {
|
|
2511
2511
|
var o = e === "clippingParents" ? hs(t) : [].concat(e), i = [].concat(o, [n]), s = i[0], c = i.reduce(function(l, u) {
|
|
2512
2512
|
var f = Kr(t, u, r);
|
|
2513
|
-
return l.top =
|
|
2513
|
+
return l.top = ct(f.top, l.top), l.right = sn(f.right, l.right), l.bottom = sn(f.bottom, l.bottom), l.left = ct(f.left, l.left), l;
|
|
2514
2514
|
}, Kr(t, s, r));
|
|
2515
2515
|
return c.width = c.right - c.left, c.height = c.bottom - c.top, c.x = c.left, c.y = c.top, c;
|
|
2516
2516
|
}
|
|
@@ -2563,7 +2563,7 @@ function ai(t) {
|
|
|
2563
2563
|
}
|
|
2564
2564
|
function Vt(t, e) {
|
|
2565
2565
|
e === void 0 && (e = {});
|
|
2566
|
-
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, s = i === void 0 ? t.strategy : i, c = n.boundary, l = c === void 0 ? Da : c, u = n.rootBoundary, f = u === void 0 ? Jo : u, p = n.elementContext, d = p === void 0 ? At : p, h = n.altBoundary, m = h === void 0 ? !1 : h, v = n.padding, g = v === void 0 ? 0 : v, b = ri(typeof g != "number" ? g : oi(g, Bt)), x = d === At ? ja : At, E = t.rects.popper, O = t.elements[m ? x : d], y = ms(
|
|
2566
|
+
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, s = i === void 0 ? t.strategy : i, c = n.boundary, l = c === void 0 ? Da : c, u = n.rootBoundary, f = u === void 0 ? Jo : u, p = n.elementContext, d = p === void 0 ? At : p, h = n.altBoundary, m = h === void 0 ? !1 : h, v = n.padding, g = v === void 0 ? 0 : v, b = ri(typeof g != "number" ? g : oi(g, Bt)), x = d === At ? ja : At, E = t.rects.popper, O = t.elements[m ? x : d], y = ms(lt(O) ? O : O.contextElement || et(t.elements.popper), l, f, s), T = kt(t.elements.reference), I = ai({
|
|
2567
2567
|
reference: T,
|
|
2568
2568
|
element: E,
|
|
2569
2569
|
strategy: "absolute",
|
|
@@ -2774,11 +2774,11 @@ function Ps(t) {
|
|
|
2774
2774
|
var re, le = O === "y" ? Oe : Ee, ke = O === "y" ? Ie : Ne, ee = O === "y" ? "height" : "width", oe = T[O], Te = oe + g[le], ge = oe - g[ke], k = h ? -S[ee] / 2 : 0, _ = x === Et ? I[ee] : S[ee], M = x === Et ? -S[ee] : -I[ee], j = e.elements.arrow, A = h && j ? gr(j) : {
|
|
2775
2775
|
width: 0,
|
|
2776
2776
|
height: 0
|
|
2777
|
-
}, D = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ni(), R = D[le], U = D[ke], V = jt(0, I[ee], A[ee]), $ = E ? I[ee] / 2 - k - V - R - L.mainAxis : _ - V - R - L.mainAxis, B = E ? -I[ee] / 2 + k + V + U + L.mainAxis : M + V + U + L.mainAxis, se = e.elements.arrow && $t(e.elements.arrow), P = se ? O === "y" ? se.clientTop || 0 : se.clientLeft || 0 : 0, me = (re = H?.[O]) != null ? re : 0, Pe = oe + $ - me - P, ft = oe + B - me, pt = jt(h ? sn(Te, Pe) : Te, oe, h ?
|
|
2777
|
+
}, D = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ni(), R = D[le], U = D[ke], V = jt(0, I[ee], A[ee]), $ = E ? I[ee] / 2 - k - V - R - L.mainAxis : _ - V - R - L.mainAxis, B = E ? -I[ee] / 2 + k + V + U + L.mainAxis : M + V + U + L.mainAxis, se = e.elements.arrow && $t(e.elements.arrow), P = se ? O === "y" ? se.clientTop || 0 : se.clientLeft || 0 : 0, me = (re = H?.[O]) != null ? re : 0, Pe = oe + $ - me - P, ft = oe + B - me, pt = jt(h ? sn(Te, Pe) : Te, oe, h ? ct(ge, ft) : ge);
|
|
2778
2778
|
T[O] = pt, ae[O] = pt - oe;
|
|
2779
2779
|
}
|
|
2780
2780
|
if (c) {
|
|
2781
|
-
var Ke, _t = O === "x" ? Oe : Ee, En = O === "x" ? Ie : Ne, De = T[y],
|
|
2781
|
+
var Ke, _t = O === "x" ? Oe : Ee, En = O === "x" ? Ie : Ne, De = T[y], tt = y === "y" ? "height" : "width", be = De + g[_t], ze = De - g[En], qe = [Oe, Ee].indexOf(b) !== -1, Z = (Ke = H?.[y]) != null ? Ke : 0, q = qe ? be : De - I[tt] - S[tt] - Z + L.altAxis, F = qe ? De + I[tt] + S[tt] - Z - L.altAxis : ze, te = h && qe ? Ja(q, De, F) : jt(h ? q : be, De, h ? F : ze);
|
|
2782
2782
|
T[y] = te, ae[y] = te - De;
|
|
2783
2783
|
}
|
|
2784
2784
|
e.modifiersData[r] = ae;
|
|
@@ -2806,7 +2806,7 @@ function As(t) {
|
|
|
2806
2806
|
}
|
|
2807
2807
|
function Rs(t, e, n) {
|
|
2808
2808
|
n === void 0 && (n = !1);
|
|
2809
|
-
var r = Se(e), o = Se(e) && As(e), i =
|
|
2809
|
+
var r = Se(e), o = Se(e) && As(e), i = et(e), s = kt(t, o, n), c = {
|
|
2810
2810
|
scrollLeft: 0,
|
|
2811
2811
|
scrollTop: 0
|
|
2812
2812
|
}, l = {
|
|
@@ -2865,7 +2865,7 @@ function Xe(t) {
|
|
|
2865
2865
|
return o.replace(/%s/, i);
|
|
2866
2866
|
}, t);
|
|
2867
2867
|
}
|
|
2868
|
-
var
|
|
2868
|
+
var nt = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', js = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', Xr = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
|
|
2869
2869
|
function Us(t) {
|
|
2870
2870
|
t.forEach(function(e) {
|
|
2871
2871
|
[].concat(Object.keys(e), Xr).filter(function(n, r, o) {
|
|
@@ -2873,25 +2873,25 @@ function Us(t) {
|
|
|
2873
2873
|
}).forEach(function(n) {
|
|
2874
2874
|
switch (n) {
|
|
2875
2875
|
case "name":
|
|
2876
|
-
typeof e.name != "string" && console.error(Xe(
|
|
2876
|
+
typeof e.name != "string" && console.error(Xe(nt, String(e.name), '"name"', '"string"', '"' + String(e.name) + '"'));
|
|
2877
2877
|
break;
|
|
2878
2878
|
case "enabled":
|
|
2879
|
-
typeof e.enabled != "boolean" && console.error(Xe(
|
|
2879
|
+
typeof e.enabled != "boolean" && console.error(Xe(nt, e.name, '"enabled"', '"boolean"', '"' + String(e.enabled) + '"'));
|
|
2880
2880
|
break;
|
|
2881
2881
|
case "phase":
|
|
2882
|
-
Bn.indexOf(e.phase) < 0 && console.error(Xe(
|
|
2882
|
+
Bn.indexOf(e.phase) < 0 && console.error(Xe(nt, e.name, '"phase"', "either " + Bn.join(", "), '"' + String(e.phase) + '"'));
|
|
2883
2883
|
break;
|
|
2884
2884
|
case "fn":
|
|
2885
|
-
typeof e.fn != "function" && console.error(Xe(
|
|
2885
|
+
typeof e.fn != "function" && console.error(Xe(nt, e.name, '"fn"', '"function"', '"' + String(e.fn) + '"'));
|
|
2886
2886
|
break;
|
|
2887
2887
|
case "effect":
|
|
2888
|
-
e.effect != null && typeof e.effect != "function" && console.error(Xe(
|
|
2888
|
+
e.effect != null && typeof e.effect != "function" && console.error(Xe(nt, e.name, '"effect"', '"function"', '"' + String(e.fn) + '"'));
|
|
2889
2889
|
break;
|
|
2890
2890
|
case "requires":
|
|
2891
|
-
e.requires != null && !Array.isArray(e.requires) && console.error(Xe(
|
|
2891
|
+
e.requires != null && !Array.isArray(e.requires) && console.error(Xe(nt, e.name, '"requires"', '"array"', '"' + String(e.requires) + '"'));
|
|
2892
2892
|
break;
|
|
2893
2893
|
case "requiresIfExists":
|
|
2894
|
-
Array.isArray(e.requiresIfExists) || console.error(Xe(
|
|
2894
|
+
Array.isArray(e.requiresIfExists) || console.error(Xe(nt, e.name, '"requiresIfExists"', '"array"', '"' + String(e.requiresIfExists) + '"'));
|
|
2895
2895
|
break;
|
|
2896
2896
|
case "options":
|
|
2897
2897
|
case "data":
|
|
@@ -2962,7 +2962,7 @@ function Vs(t) {
|
|
|
2962
2962
|
setOptions: function(b) {
|
|
2963
2963
|
var x = typeof b == "function" ? b(f.options) : b;
|
|
2964
2964
|
v(), f.options = Object.assign({}, i, f.options, x), f.scrollParents = {
|
|
2965
|
-
reference:
|
|
2965
|
+
reference: lt(c) ? Ut(c) : c.contextElement ? Ut(c.contextElement) : [],
|
|
2966
2966
|
popper: Ut(l)
|
|
2967
2967
|
};
|
|
2968
2968
|
var E = Ms(Ws([].concat(r, f.options.modifiers)));
|
|
@@ -4323,20 +4323,20 @@ process.env.NODE_ENV !== "production" && C.oneOfType([C.string, C.shape({
|
|
|
4323
4323
|
const hi = we.createContext(null);
|
|
4324
4324
|
var Nc = function(e) {
|
|
4325
4325
|
return e.scrollTop;
|
|
4326
|
-
}, Mt = "unmounted",
|
|
4326
|
+
}, Mt = "unmounted", rt = "exited", ot = "entering", yt = "entered", Jn = "exiting", Ge = /* @__PURE__ */ function(t) {
|
|
4327
4327
|
_c(e, t);
|
|
4328
4328
|
function e(r, o) {
|
|
4329
4329
|
var i;
|
|
4330
4330
|
i = t.call(this, r, o) || this;
|
|
4331
4331
|
var s = o, c = s && !s.isMounting ? r.enter : r.appear, l;
|
|
4332
|
-
return i.appearStatus = null, r.in ? c ? (l =
|
|
4332
|
+
return i.appearStatus = null, r.in ? c ? (l = rt, i.appearStatus = ot) : l = yt : r.unmountOnExit || r.mountOnEnter ? l = Mt : l = rt, i.state = {
|
|
4333
4333
|
status: l
|
|
4334
4334
|
}, i.nextCallback = null, i;
|
|
4335
4335
|
}
|
|
4336
4336
|
e.getDerivedStateFromProps = function(o, i) {
|
|
4337
4337
|
var s = o.in;
|
|
4338
4338
|
return s && i.status === Mt ? {
|
|
4339
|
-
status:
|
|
4339
|
+
status: rt
|
|
4340
4340
|
} : null;
|
|
4341
4341
|
};
|
|
4342
4342
|
var n = e.prototype;
|
|
@@ -4346,7 +4346,7 @@ var Nc = function(e) {
|
|
|
4346
4346
|
var i = null;
|
|
4347
4347
|
if (o !== this.props) {
|
|
4348
4348
|
var s = this.state.status;
|
|
4349
|
-
this.props.in ? s !==
|
|
4349
|
+
this.props.in ? s !== ot && s !== yt && (i = ot) : (s === ot || s === yt) && (i = Jn);
|
|
4350
4350
|
}
|
|
4351
4351
|
this.updateStatus(!1, i);
|
|
4352
4352
|
}, n.componentWillUnmount = function() {
|
|
@@ -4360,7 +4360,7 @@ var Nc = function(e) {
|
|
|
4360
4360
|
};
|
|
4361
4361
|
}, n.updateStatus = function(o, i) {
|
|
4362
4362
|
if (o === void 0 && (o = !1), i !== null)
|
|
4363
|
-
if (this.cancelNextCallback(), i ===
|
|
4363
|
+
if (this.cancelNextCallback(), i === ot) {
|
|
4364
4364
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
4365
4365
|
var s = this.props.nodeRef ? this.props.nodeRef.current : qt.findDOMNode(this);
|
|
4366
4366
|
s && Nc(s);
|
|
@@ -4369,7 +4369,7 @@ var Nc = function(e) {
|
|
|
4369
4369
|
} else
|
|
4370
4370
|
this.performExit();
|
|
4371
4371
|
else
|
|
4372
|
-
this.props.unmountOnExit && this.state.status ===
|
|
4372
|
+
this.props.unmountOnExit && this.state.status === rt && this.setState({
|
|
4373
4373
|
status: Mt
|
|
4374
4374
|
});
|
|
4375
4375
|
}, n.performEnter = function(o) {
|
|
@@ -4383,7 +4383,7 @@ var Nc = function(e) {
|
|
|
4383
4383
|
return;
|
|
4384
4384
|
}
|
|
4385
4385
|
this.props.onEnter(u, f), this.safeSetState({
|
|
4386
|
-
status:
|
|
4386
|
+
status: ot
|
|
4387
4387
|
}, function() {
|
|
4388
4388
|
i.props.onEntering(u, f), i.onTransitionEnd(d, function() {
|
|
4389
4389
|
i.safeSetState({
|
|
@@ -4397,7 +4397,7 @@ var Nc = function(e) {
|
|
|
4397
4397
|
var o = this, i = this.props.exit, s = this.getTimeouts(), c = this.props.nodeRef ? void 0 : qt.findDOMNode(this);
|
|
4398
4398
|
if (!i || ho.disabled) {
|
|
4399
4399
|
this.safeSetState({
|
|
4400
|
-
status:
|
|
4400
|
+
status: rt
|
|
4401
4401
|
}, function() {
|
|
4402
4402
|
o.props.onExited(c);
|
|
4403
4403
|
});
|
|
@@ -4408,7 +4408,7 @@ var Nc = function(e) {
|
|
|
4408
4408
|
}, function() {
|
|
4409
4409
|
o.props.onExiting(c), o.onTransitionEnd(s.exit, function() {
|
|
4410
4410
|
o.safeSetState({
|
|
4411
|
-
status:
|
|
4411
|
+
status: rt
|
|
4412
4412
|
}, function() {
|
|
4413
4413
|
o.props.onExited(c);
|
|
4414
4414
|
});
|
|
@@ -4639,8 +4639,8 @@ Ge.defaultProps = {
|
|
|
4639
4639
|
onExited: ht
|
|
4640
4640
|
};
|
|
4641
4641
|
Ge.UNMOUNTED = Mt;
|
|
4642
|
-
Ge.EXITED =
|
|
4643
|
-
Ge.ENTERING =
|
|
4642
|
+
Ge.EXITED = rt;
|
|
4643
|
+
Ge.ENTERING = ot;
|
|
4644
4644
|
Ge.ENTERED = yt;
|
|
4645
4645
|
Ge.EXITING = Jn;
|
|
4646
4646
|
const Er = Ge;
|
|
@@ -5176,7 +5176,7 @@ const kr = (t) => {
|
|
|
5176
5176
|
}, [n, t.items, o, e, i, r]), /* @__PURE__ */ a(kr, { config: t, onItemClick: s });
|
|
5177
5177
|
};
|
|
5178
5178
|
function cl(t) {
|
|
5179
|
-
const { displayCount: e, isFolderCollapsible: n, isSectionCollapsible: r, showAllItems: o, sortOrder: i } = t, s = Xi(), c = Ji(), l = qo(), u = Yo(), f =
|
|
5179
|
+
const { displayCount: e, isFolderCollapsible: n, isSectionCollapsible: r, showAllItems: o, sortOrder: i } = t, s = Xi(), c = Ji(), l = qo(), u = Yo(), f = Qe(() => Gi(s, c, {
|
|
5180
5180
|
...{
|
|
5181
5181
|
displayCount: e,
|
|
5182
5182
|
showAllItems: o
|
|
@@ -5993,7 +5993,7 @@ const Ol = (t, e) => {
|
|
|
5993
5993
|
...o
|
|
5994
5994
|
};
|
|
5995
5995
|
}, El = (t) => {
|
|
5996
|
-
const { displayCount: e, isSectionCollapsible: n, showAllItems: r, sortOrder: o } = t, { favoriteEntities: i } = pr(), s =
|
|
5996
|
+
const { displayCount: e, isSectionCollapsible: n, showAllItems: r, sortOrder: o } = t, { favoriteEntities: i } = pr(), s = Qe(() => Ol(i, {
|
|
5997
5997
|
...{
|
|
5998
5998
|
displayCount: e,
|
|
5999
5999
|
showAllItems: r
|
|
@@ -6002,11 +6002,11 @@ const Ol = (t, e) => {
|
|
|
6002
6002
|
sortOrder: o
|
|
6003
6003
|
}), [i, e, n, r, o]);
|
|
6004
6004
|
return i.length > 0 ? /* @__PURE__ */ a(Sr, { config: s }) : null;
|
|
6005
|
-
},
|
|
6005
|
+
}, at = {
|
|
6006
6006
|
WINDOW_MANAGEMENT: "window-management",
|
|
6007
6007
|
NOTIFICATIONS: "notifications"
|
|
6008
6008
|
}, xl = () => Promise.all(
|
|
6009
|
-
Object.values(
|
|
6009
|
+
Object.values(at).map(async (t) => {
|
|
6010
6010
|
const e = await navigator.permissions.query({ name: t });
|
|
6011
6011
|
return e.stableName = t, e;
|
|
6012
6012
|
})
|
|
@@ -6201,7 +6201,7 @@ function Pr(t) {
|
|
|
6201
6201
|
function _r(t, e) {
|
|
6202
6202
|
return t(e = { exports: {} }, e.exports), e.exports;
|
|
6203
6203
|
}
|
|
6204
|
-
var
|
|
6204
|
+
var it = _r(function(t, e) {
|
|
6205
6205
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
6206
6206
|
var n = function() {
|
|
6207
6207
|
function r() {
|
|
@@ -6232,7 +6232,7 @@ var ot = _r(function(t, e) {
|
|
|
6232
6232
|
return n.getInstance();
|
|
6233
6233
|
};
|
|
6234
6234
|
});
|
|
6235
|
-
Pr(
|
|
6235
|
+
Pr(it);
|
|
6236
6236
|
var Pl = Pr(_r(function(t, e) {
|
|
6237
6237
|
var n = Ct && Ct.__awaiter || function(l, u, f, p) {
|
|
6238
6238
|
return new (f || (f = Promise))(function(d, h) {
|
|
@@ -6373,9 +6373,9 @@ var Pl = Pr(_r(function(t, e) {
|
|
|
6373
6373
|
return r(this, function(v) {
|
|
6374
6374
|
switch (v.label) {
|
|
6375
6375
|
case 0:
|
|
6376
|
-
return [4,
|
|
6376
|
+
return [4, it.default().lock(f)];
|
|
6377
6377
|
case 1:
|
|
6378
|
-
return v.sent(), this.acquiredIatSet.has(f) ? (h = window.localStorage, (m = h.getItem(u)) === null ? (
|
|
6378
|
+
return v.sent(), this.acquiredIatSet.has(f) ? (h = window.localStorage, (m = h.getItem(u)) === null ? (it.default().unlock(f), [2]) : ((m = JSON.parse(m)).timeRefreshed = Date.now(), h.setItem(u, JSON.stringify(m)), it.default().unlock(f), this.refreshLockWhileAcquired(u, f), [2])) : (it.default().unlock(f), [2]);
|
|
6379
6379
|
}
|
|
6380
6380
|
});
|
|
6381
6381
|
});
|
|
@@ -6431,9 +6431,9 @@ var Pl = Pr(_r(function(t, e) {
|
|
|
6431
6431
|
return r(this, function(h) {
|
|
6432
6432
|
switch (h.label) {
|
|
6433
6433
|
case 0:
|
|
6434
|
-
return f = window.localStorage, p = o + "-" + u, (d = f.getItem(p)) === null ? [2] : (d = JSON.parse(d)).id !== this.id ? [3, 2] : [4,
|
|
6434
|
+
return f = window.localStorage, p = o + "-" + u, (d = f.getItem(p)) === null ? [2] : (d = JSON.parse(d)).id !== this.id ? [3, 2] : [4, it.default().lock(d.iat)];
|
|
6435
6435
|
case 1:
|
|
6436
|
-
h.sent(), this.acquiredIatSet.delete(d.iat), f.removeItem(p),
|
|
6436
|
+
h.sent(), this.acquiredIatSet.delete(d.iat), f.removeItem(p), it.default().unlock(d.iat), l.notifyWaiters(), h.label = 2;
|
|
6437
6437
|
case 2:
|
|
6438
6438
|
return [2];
|
|
6439
6439
|
}
|
|
@@ -6745,7 +6745,7 @@ const Rt = (t) => typeof t == "number", Ul = ["iss", "aud", "exp", "nbf", "iat",
|
|
|
6745
6745
|
}
|
|
6746
6746
|
return e;
|
|
6747
6747
|
};
|
|
6748
|
-
var
|
|
6748
|
+
var st = _r(function(t, e) {
|
|
6749
6749
|
var n = Ct && Ct.__assign || function() {
|
|
6750
6750
|
return n = Object.assign || function(l) {
|
|
6751
6751
|
for (var u, f = 1, p = arguments.length; f < p; f++)
|
|
@@ -6792,8 +6792,8 @@ var at = _r(function(t, e) {
|
|
|
6792
6792
|
c(l, "", n(n({}, u), { expires: -1 }));
|
|
6793
6793
|
};
|
|
6794
6794
|
});
|
|
6795
|
-
Pr(
|
|
6796
|
-
var Wl =
|
|
6795
|
+
Pr(st), st.encode, st.parse, st.getAll;
|
|
6796
|
+
var Wl = st.get, Ti = st.set, Pi = st.remove;
|
|
6797
6797
|
const bt = { get(t) {
|
|
6798
6798
|
const e = Wl(t);
|
|
6799
6799
|
if (e !== void 0)
|
|
@@ -7327,7 +7327,7 @@ var _i = {
|
|
|
7327
7327
|
}
|
|
7328
7328
|
});
|
|
7329
7329
|
});
|
|
7330
|
-
}, [l]), O =
|
|
7330
|
+
}, [l]), O = Qe(function() {
|
|
7331
7331
|
return pe(pe({}, f), { getAccessTokenSilently: g, getAccessTokenWithPopup: b, getIdTokenClaims: x, loginWithRedirect: h, loginWithPopup: m, logout: v, handleRedirectCallback: E });
|
|
7332
7332
|
}, [
|
|
7333
7333
|
f,
|
|
@@ -7344,7 +7344,7 @@ var _i = {
|
|
|
7344
7344
|
return t === void 0 && (t = Ii), ne(t);
|
|
7345
7345
|
};
|
|
7346
7346
|
const fn = {
|
|
7347
|
-
[
|
|
7347
|
+
[at.WINDOW_MANAGEMENT]: {
|
|
7348
7348
|
heading: "Allow Window Management",
|
|
7349
7349
|
description: "io.Connect Browser requires permission to arrange windows on your desktop.",
|
|
7350
7350
|
guidelines: {
|
|
@@ -7354,12 +7354,12 @@ const fn = {
|
|
|
7354
7354
|
Image: yl,
|
|
7355
7355
|
openPermissionsPrompt: ({ handleDeferredPermission: t, handlePermissionsPromptClose: e }) => {
|
|
7356
7356
|
window.getScreenDetails().catch(async () => {
|
|
7357
|
-
const { state: n } = await navigator.permissions.query({ name:
|
|
7357
|
+
const { state: n } = await navigator.permissions.query({ name: at.WINDOW_MANAGEMENT });
|
|
7358
7358
|
n === "prompt" && t();
|
|
7359
7359
|
}).finally(e);
|
|
7360
7360
|
}
|
|
7361
7361
|
},
|
|
7362
|
-
[
|
|
7362
|
+
[at.NOTIFICATIONS]: {
|
|
7363
7363
|
heading: "Allow Browser Notifications",
|
|
7364
7364
|
description: `io.Connect Browser requires permission to send notifications to the desktop.
|
|
7365
7365
|
This won't allow any other browser notifications.`,
|
|
@@ -7371,7 +7371,7 @@ const fn = {
|
|
|
7371
7371
|
Image: fl,
|
|
7372
7372
|
openPermissionsPrompt: ({ handleDeferredPermission: t, handlePermissionsPromptClose: e }) => {
|
|
7373
7373
|
Notification.requestPermission().then(async () => {
|
|
7374
|
-
const { state: n } = await navigator.permissions.query({ name:
|
|
7374
|
+
const { state: n } = await navigator.permissions.query({ name: at.NOTIFICATIONS });
|
|
7375
7375
|
n === "prompt" && t();
|
|
7376
7376
|
}).finally(e);
|
|
7377
7377
|
}
|
|
@@ -7422,7 +7422,7 @@ const au = ({ isActiveItem: t = () => !1, permissionStatuses: e }) => /* @__PURE
|
|
|
7422
7422
|
if (!o)
|
|
7423
7423
|
return;
|
|
7424
7424
|
r.statuses.some(
|
|
7425
|
-
({ stableName: c, state: l }) => c ===
|
|
7425
|
+
({ stableName: c, state: l }) => c === at.NOTIFICATIONS && l === "granted"
|
|
7426
7426
|
) && i(!1);
|
|
7427
7427
|
}, [o, r.statuses]), {
|
|
7428
7428
|
hasEdgeNotificationsPermissionError: o
|
|
@@ -7430,7 +7430,7 @@ const au = ({ isActiveItem: t = () => !1, permissionStatuses: e }) => /* @__PURE
|
|
|
7430
7430
|
}, Kt = () => /* @__PURE__ */ a("span", { className: "loader" }), lu = ({ settings: t }) => {
|
|
7431
7431
|
const { permission: e } = dt(), [n, r] = z(!1), [o, i] = z(!1), s = e.statuses.find(({ state: p }) => p === "prompt"), { hasEdgeNotificationsPermissionError: c } = cu({
|
|
7432
7432
|
edgeNotificationsPermissionTimeout: t.edgeNotificationsPermissionTimeout,
|
|
7433
|
-
isNotificationsPermissionPromptOpen: o && s?.stableName ===
|
|
7433
|
+
isNotificationsPermissionPromptOpen: o && s?.stableName === at.NOTIFICATIONS
|
|
7434
7434
|
});
|
|
7435
7435
|
if (!s || e.isDenied)
|
|
7436
7436
|
throw new Error(
|
|
@@ -7670,7 +7670,7 @@ const Cu = ({ groupId: t, workspaceId: e }) => {
|
|
|
7670
7670
|
POPUP: "popup",
|
|
7671
7671
|
REDIRECT: "redirect"
|
|
7672
7672
|
}, xu = ({ config: t }) => {
|
|
7673
|
-
const [e, n] = z(void 0), { permission: r } = dt(), o = ou(), { setupFlow: i, getIOConnectConfig: s } = t, c = t.login.components?.Logo || ut, u = (t.login.loginType ?? lr.REDIRECT) === lr.REDIRECT ? o.loginWithRedirect : o.loginWithPopup, f =
|
|
7673
|
+
const [e, n] = z(void 0), { permission: r } = dt(), o = ou(), { setupFlow: i, getIOConnectConfig: s } = t, c = t.login.components?.Logo || ut, u = (t.login.loginType ?? lr.REDIRECT) === lr.REDIRECT ? o.loginWithRedirect : o.loginWithPopup, f = Qe(
|
|
7674
7674
|
() => o.user?.email ? { username: o.user.name, id: o.user.email, token: e } : null,
|
|
7675
7675
|
[o.user, e]
|
|
7676
7676
|
);
|
|
@@ -7678,8 +7678,8 @@ const Cu = ({ groupId: t, workspaceId: e }) => {
|
|
|
7678
7678
|
o.isAuthenticated && o.getAccessTokenSilently().then(n).catch(console.warn);
|
|
7679
7679
|
}, [o]), !o.isAuthenticated || !f ? /* @__PURE__ */ a(pu, { isLoading: o.isLoading, onLogin: u, components: t.login.components }) : e ? !r.isSetupCompleted && i?.enabled !== !1 ? /* @__PURE__ */ a(Lr, { settings: i?.settings, components: i?.components }) : /* @__PURE__ */ a(dr, { settings: s({ ...o.user, token: e }), children: /* @__PURE__ */ a(Ur, { workspaces: t.workspaces, launchpad: t.launchpad, onLogout: o.logout, user: f }) }) : /* @__PURE__ */ a(jr, { Logo: c, children: /* @__PURE__ */ a(Dr, {}) });
|
|
7680
7680
|
}, ku = ({ config: t }) => {
|
|
7681
|
-
const { setupFlow: e,
|
|
7682
|
-
return !r.isSetupCompleted && e?.enabled !== !1 ? /* @__PURE__ */ a(Lr, { settings: e?.settings, components: e?.components }) : /* @__PURE__ */ a(dr, { settings: n, children: /* @__PURE__ */ a(Ur, { workspaces: t.workspaces, launchpad: t.launchpad }) });
|
|
7681
|
+
const { setupFlow: e, getIOConnectConfig: n } = t, { permission: r } = dt();
|
|
7682
|
+
return !r.isSetupCompleted && e?.enabled !== !1 ? /* @__PURE__ */ a(Lr, { settings: e?.settings, components: e?.components }) : /* @__PURE__ */ a(dr, { settings: n(), children: /* @__PURE__ */ a(Ur, { workspaces: t.workspaces, launchpad: t.launchpad }) });
|
|
7683
7683
|
}, Mi = xe({
|
|
7684
7684
|
Logo: G(Ce().andThen((t) => He(t, "Logo"))),
|
|
7685
7685
|
Heading: G(Ce().andThen((t) => He(t, "Heading")))
|
|
@@ -7729,7 +7729,7 @@ const Cu = ({ groupId: t, workspaceId: e }) => {
|
|
|
7729
7729
|
workspaces: G(Ru),
|
|
7730
7730
|
launchpad: G(Mu)
|
|
7731
7731
|
}), ju = ({ config: t }) => {
|
|
7732
|
-
const e = Du.runWithException(t), n = e.login, r = e.launchpad?.components;
|
|
7732
|
+
const e = Qe(() => Du.runWithException(t), [t]), n = e.login, r = e.launchpad?.components;
|
|
7733
7733
|
if (r?.sections && r?.Sections)
|
|
7734
7734
|
throw new Error("Launchpad sections are overspecified. Please provide either a JSX element or a React component.");
|
|
7735
7735
|
if (n?.type === "simple")
|
|
@@ -7832,7 +7832,7 @@ const Vu = (t, e, n) => {
|
|
|
7832
7832
|
...i
|
|
7833
7833
|
};
|
|
7834
7834
|
}, zu = (t) => {
|
|
7835
|
-
const { displayCount: e, isSectionCollapsible: n, showAllItems: r, sortOrder: o } = t, i = Oa(), s = Ea(), c = Ko(), l = Xo(), u =
|
|
7835
|
+
const { displayCount: e, isSectionCollapsible: n, showAllItems: r, sortOrder: o } = t, i = Oa(), s = Ea(), c = Ko(), l = Xo(), u = Qe(() => Vu(i, s, {
|
|
7836
7836
|
...{
|
|
7837
7837
|
displayCount: e,
|
|
7838
7838
|
showAllItems: r
|