@realsee/live 0.7.3-alpha.0 → 0.7.3
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/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +44 -44
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +99 -0
- package/docs/assets/icons.js +18 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +60 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1493 -0
- package/docs/classes/BrowserRTC.html +60 -0
- package/docs/classes/BrowserRTC4Chime.html +72 -0
- package/docs/classes/CoreRTC.html +60 -0
- package/docs/classes/Live.html +93 -0
- package/docs/classes/VRWebViewRTC.html +53 -0
- package/docs/enums/BuiltInRTCType.html +3 -0
- package/docs/enums/BuiltinActionType.html +14 -0
- package/docs/enums/BuiltinEventType.html +6 -0
- package/docs/enums/Command.html +22 -0
- package/docs/enums/LiveState.html +8 -0
- package/docs/enums/MemUserStatus.html +7 -0
- package/docs/enums/MicroStatus.html +6 -0
- package/docs/enums/RTCJoinedInfoCodeEnum.html +12 -0
- package/docs/enums/RTCType.html +5 -0
- package/docs/enums/UserStatus.html +8 -0
- package/docs/enums/WebSocketCloseError.html +20 -0
- package/docs/enums/WebSocketErrorType.html +8 -0
- package/docs/enums/WebSocketState.html +12 -0
- package/docs/functions/GetVoiceSignFn.html +4 -0
- package/docs/functions/_clearLiveInstanceIfNeed.html +1 -0
- package/docs/functions/createLive.html +2 -0
- package/docs/functions/createLiveReact.html +17 -0
- package/docs/functions/parseLiveMsg.html +4 -0
- package/docs/functions/parseWSClsErr.html +1 -0
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +349 -0
- package/docs/interfaces/AttendeeResponse.html +4 -0
- package/docs/interfaces/LiveOptions.html +40 -0
- package/docs/interfaces/MeetingResponse.html +3 -0
- package/docs/interfaces/MeetingSessionConfigurationOptions.html +8 -0
- package/docs/interfaces/Permission.html +15 -0
- package/docs/interfaces/RTCJoinedInfo.html +7 -0
- package/docs/interfaces/RTCProtocol.html +65 -0
- package/docs/interfaces/VRWebViewRTCOptions.html +6 -0
- package/docs/modules.html +52 -0
- package/docs/types/BuiltinMsg.html +2 -0
- package/docs/types/EventType.html +2 -0
- package/docs/types/GetVoiceSign.html +2 -0
- package/docs/types/GetVoiceSignParams.html +5 -0
- package/docs/types/GetVoiceSignReturnType.html +6 -0
- package/docs/types/KeyframeEventType.html +2 -0
- package/docs/types/LiveBuiltInData.html +1 -0
- package/docs/types/LiveConnectOptions.html +8 -0
- package/docs/types/LiveEventType.html +15 -0
- package/docs/types/LiveMsg.html +2 -0
- package/docs/types/LiveProviderPropTypes.html +1 -0
- package/docs/types/RTCActionReactCallback.html +1 -0
- package/docs/types/RTCEventType.html +7 -0
- package/docs/types/ReqLiveMsg.html +6 -0
- package/docs/types/RoomInfo.html +1 -0
- package/docs/types/UserInfo.html +12 -0
- package/docs/types/UserInfoExt.html +5 -0
- package/docs/types/UserVolume.html +2 -0
- package/docs/types/WebSocketError.html +1 -0
- package/package.json +1 -2
- package/docs/README.md +0 -437
- package/docs/classes/BrowserRTC.md +0 -436
- package/docs/classes/BrowserRTC4Chime.md +0 -558
- package/docs/classes/CoreRTC.md +0 -448
- package/docs/classes/Live.md +0 -770
- package/docs/classes/VRWebViewRTC.md +0 -436
- package/docs/enumerations/BuiltInRTCType.md +0 -27
- package/docs/enumerations/BuiltinActionType.md +0 -81
- package/docs/enumerations/BuiltinEventType.md +0 -33
- package/docs/enumerations/Command.md +0 -107
- package/docs/enumerations/LiveState.md +0 -53
- package/docs/enumerations/MemUserStatus.md +0 -67
- package/docs/enumerations/MicroStatus.md +0 -33
- package/docs/enumerations/RTCJoinedInfoCodeEnum.md +0 -69
- package/docs/enumerations/RTCType.md +0 -39
- package/docs/enumerations/UserStatus.md +0 -45
- package/docs/enumerations/WebSocketCloseError.md +0 -117
- package/docs/enumerations/WebSocketErrorType.md +0 -77
- package/docs/enumerations/WebSocketState.md +0 -69
- package/docs/functions/GetVoiceSignFn.md +0 -27
- package/docs/functions/clearLiveInstanceIfNeed.md +0 -17
- package/docs/functions/createLive.md +0 -27
- package/docs/functions/createLiveReact.md +0 -449
- package/docs/functions/parseLiveMsg.md +0 -27
- package/docs/functions/parseWSClsErr.md +0 -21
- package/docs/globals.md +0 -71
- package/docs/interfaces/AttendeeResponse.md +0 -37
- package/docs/interfaces/LiveOptions.md +0 -246
- package/docs/interfaces/MeetingResponse.md +0 -55
- package/docs/interfaces/MeetingSessionConfigurationOptions.md +0 -93
- package/docs/interfaces/Permission.md +0 -147
- package/docs/interfaces/RTCJoinedInfo.md +0 -67
- package/docs/interfaces/RTCProtocol.md +0 -404
- package/docs/interfaces/VRWebViewRTCOptions.md +0 -41
- package/docs/type-aliases/BuiltinMsg.md +0 -41
- package/docs/type-aliases/EventType.md +0 -19
- package/docs/type-aliases/GetVoiceSign.md +0 -15
- package/docs/type-aliases/GetVoiceSignParams.md +0 -35
- package/docs/type-aliases/GetVoiceSignReturnType.md +0 -41
- package/docs/type-aliases/KeyframeEventType.md +0 -19
- package/docs/type-aliases/LiveBuiltInData.md +0 -47
- package/docs/type-aliases/LiveConnectOptions.md +0 -47
- package/docs/type-aliases/LiveEventType.md +0 -165
- package/docs/type-aliases/LiveMsg.md +0 -53
- package/docs/type-aliases/LiveProviderPropTypes.md +0 -27
- package/docs/type-aliases/RTCActionReactCallback.md +0 -13
- package/docs/type-aliases/RTCEventType.md +0 -65
- package/docs/type-aliases/ReqLiveMsg.md +0 -45
- package/docs/type-aliases/RoomInfo.md +0 -55
- package/docs/type-aliases/UserInfo.md +0 -77
- package/docs/type-aliases/UserInfoExt.md +0 -33
- package/docs/type-aliases/UserVolume.md +0 -25
- package/docs/type-aliases/WebSocketError.md +0 -31
package/dist/index.es.js
CHANGED
|
@@ -4,12 +4,12 @@ var a = (i, t, e) => cn(i, typeof t != "symbol" ? t + "" : t, e);
|
|
|
4
4
|
import le from "trtc-js-sdk";
|
|
5
5
|
import { ConsoleLogger as ln, LogLevel as an, DefaultDeviceController as hn, MeetingSessionConfiguration as un, DefaultMeetingSession as dn, DefaultModality as Fe, MeetingSessionStatusCode as fn } from "amazon-chime-sdk-js";
|
|
6
6
|
import gn from "@realsee/jsbridge-x";
|
|
7
|
-
import D, { createContext as pn, useCallback as
|
|
7
|
+
import D, { createContext as pn, useCallback as W } from "react";
|
|
8
8
|
const dt = Symbol("$$REALSEE_LIVE_EVENT$$");
|
|
9
9
|
function $t(i) {
|
|
10
10
|
return i[dt] || (i[dt] = {}), i[dt];
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function We(i) {
|
|
13
13
|
const t = i[dt];
|
|
14
14
|
if (!t) return;
|
|
15
15
|
Object.keys(t).some((n) => Array.isArray(t[n]) && t[n].length > 0) || delete i[dt];
|
|
@@ -63,11 +63,11 @@ class At {
|
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
65
|
if (n[t] || (n[t] = []), e === void 0) {
|
|
66
|
-
n[t].length = 0,
|
|
66
|
+
n[t].length = 0, We(this);
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
69
|
const s = n[t].findIndex((r) => r[0] === e);
|
|
70
|
-
s !== -1 && n[t].splice(s, 1),
|
|
70
|
+
s !== -1 && n[t].splice(s, 1), We(this);
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
73
|
* 触发事件
|
|
@@ -242,7 +242,7 @@ class mn extends Re {
|
|
|
242
242
|
), (r = this._trtc.client) == null || r.on("error", (o) => this.emit("error", o));
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
-
class
|
|
245
|
+
class Pe extends Re {
|
|
246
246
|
constructor(e) {
|
|
247
247
|
super();
|
|
248
248
|
a(this, "type", ct.RealseeBrowserChimeRTC);
|
|
@@ -659,7 +659,7 @@ class wn extends Re {
|
|
|
659
659
|
return this.options.jsBridge;
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
var B = /* @__PURE__ */ ((i) => (i.SelfUserInfo = "SELF_USER_INFO", i.RoomInfo = "ROOM_INFO", i.RTCInfo = "RTC_INFO", i.UserList = "USER_LIST", i.BuiltinMsg = "BUILTIN_MSG", i.CustomEvent = "CUSTOM_EVENT", i.KeyframeSync = "KEYFRAME_SYNC", i.UserKickOut = "USER_KICK_OUT", i))(B || {}),
|
|
662
|
+
var B = /* @__PURE__ */ ((i) => (i.SelfUserInfo = "SELF_USER_INFO", i.RoomInfo = "ROOM_INFO", i.RTCInfo = "RTC_INFO", i.UserList = "USER_LIST", i.BuiltinMsg = "BUILTIN_MSG", i.CustomEvent = "CUSTOM_EVENT", i.KeyframeSync = "KEYFRAME_SYNC", i.UserKickOut = "USER_KICK_OUT", i))(B || {}), P = /* @__PURE__ */ ((i) => (i.UserChange = "user_change", i.RoomChange = "room_change", i))(P || {}), z = /* @__PURE__ */ ((i) => (i.UserMicroStatus = "change_micro_status", i.UserMicroStatusSync = "sync_micro_status", i.UserPermission = "change_permission", i.UserStatus = "change_status", i.UserInfo = "change_info", i.RoomClose = "close", i))(z || {}), ot = /* @__PURE__ */ ((i) => (i.OPEN = "OPEN", i.CLOSE = "CLOSE", i))(ot || {});
|
|
663
663
|
function Mr(i) {
|
|
664
664
|
try {
|
|
665
665
|
const t = JSON.parse(i), e = {
|
|
@@ -1180,7 +1180,7 @@ class $n {
|
|
|
1180
1180
|
this._observers = G();
|
|
1181
1181
|
}
|
|
1182
1182
|
}
|
|
1183
|
-
const lt = Math.floor,
|
|
1183
|
+
const lt = Math.floor, Wt = Math.abs, pi = (i, t) => i < t ? i : t, St = (i, t) => i > t ? i : t, xn = (i) => i !== 0 ? i < 0 : 1 / i < 0, Je = 1, He = 2, he = 4, ue = 8, Bn = 32, _i = 64, Ht = 128, Fn = 31, qe = 63, Ot = 127, Wn = 2147483647, Pn = Number.isInteger || ((i) => typeof i == "number" && isFinite(i) && lt(i) === i), Kn = (i) => i.toLowerCase(), Gn = /^\s*/g, Jn = (i) => i.replace(Gn, ""), Hn = /([A-Z])/g, ze = (i, t) => Jn(i.replace(Hn, (e) => `${t}${Kn(e)}`)), qn = (i) => {
|
|
1184
1184
|
const t = unescape(encodeURIComponent(i)), e = t.length, n = new Uint8Array(e);
|
|
1185
1185
|
for (let s = 0; s < e; s++)
|
|
1186
1186
|
n[s] = /** @type {number} */
|
|
@@ -1260,7 +1260,7 @@ Tt.encodeInto ? ts : es, De = (i, t) => {
|
|
|
1260
1260
|
A(i, 119), ft(i, t);
|
|
1261
1261
|
break;
|
|
1262
1262
|
case "number":
|
|
1263
|
-
|
|
1263
|
+
Pn(t) && Wt(t) <= Wn ? (A(i, 125), Te(i, t)) : rs(t) ? (A(i, 124), is(i, t)) : (A(i, 123), ns(i, t));
|
|
1264
1264
|
break;
|
|
1265
1265
|
case "bigint":
|
|
1266
1266
|
A(i, 122), ss(i, t);
|
|
@@ -1308,7 +1308,7 @@ class Xe extends jt {
|
|
|
1308
1308
|
const Ze = (i) => {
|
|
1309
1309
|
i.count > 0 && (Te(i.encoder, i.count === 1 ? i.s : -i.s), i.count > 1 && S(i.encoder, i.count - 2));
|
|
1310
1310
|
};
|
|
1311
|
-
class
|
|
1311
|
+
class Pt {
|
|
1312
1312
|
constructor() {
|
|
1313
1313
|
this.encoder = new jt(), this.s = 0, this.count = 0;
|
|
1314
1314
|
}
|
|
@@ -1354,7 +1354,7 @@ class fe {
|
|
|
1354
1354
|
}
|
|
1355
1355
|
class os {
|
|
1356
1356
|
constructor() {
|
|
1357
|
-
this.sarr = [], this.s = "", this.lensE = new
|
|
1357
|
+
this.sarr = [], this.s = "", this.lensE = new Pt();
|
|
1358
1358
|
}
|
|
1359
1359
|
/**
|
|
1360
1360
|
* @param {string} string
|
|
@@ -1822,7 +1822,7 @@ class Ct extends $n {
|
|
|
1822
1822
|
this.emit("destroyed", [!0]), this.emit("destroy", [this]), super.destroy();
|
|
1823
1823
|
}
|
|
1824
1824
|
}
|
|
1825
|
-
class
|
|
1825
|
+
class Ws {
|
|
1826
1826
|
constructor() {
|
|
1827
1827
|
this.restEncoder = Le();
|
|
1828
1828
|
}
|
|
@@ -1844,7 +1844,7 @@ class Ps {
|
|
|
1844
1844
|
S(this.restEncoder, t);
|
|
1845
1845
|
}
|
|
1846
1846
|
}
|
|
1847
|
-
class
|
|
1847
|
+
class Ps extends Ws {
|
|
1848
1848
|
/**
|
|
1849
1849
|
* @param {ID} id
|
|
1850
1850
|
*/
|
|
@@ -1947,7 +1947,7 @@ class Ks {
|
|
|
1947
1947
|
}
|
|
1948
1948
|
class Gs extends Ks {
|
|
1949
1949
|
constructor() {
|
|
1950
|
-
super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new fe(), this.clientEncoder = new
|
|
1950
|
+
super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new fe(), this.clientEncoder = new Pt(), this.leftClockEncoder = new fe(), this.rightClockEncoder = new fe(), this.infoEncoder = new Xe(Ce), this.stringEncoder = new os(), this.parentInfoEncoder = new Xe(Ce), this.typeRefEncoder = new Pt(), this.lenEncoder = new Pt();
|
|
1951
1951
|
}
|
|
1952
1952
|
toUint8Array() {
|
|
1953
1953
|
const t = Le();
|
|
@@ -2263,7 +2263,7 @@ const ci = (i, t) => t.deleteSet.clients.size === 0 && !Un(t.afterState, (e, n)
|
|
|
2263
2263
|
y + 1 < w.length && Gt(w, y + 1) > 1 || y > 0 && Gt(w, y);
|
|
2264
2264
|
}
|
|
2265
2265
|
if (!e.local && e.afterState.get(n.clientID) !== e.beforeState.get(n.clientID) && (Vs(Ve, Si, "[yjs] ", Ci, Ei, "Changed the client-id because another client seems to be using it."), n.clientID = Ti()), n.emit("afterTransactionCleanup", [e, n]), n._observers.has("update")) {
|
|
2266
|
-
const u = new
|
|
2266
|
+
const u = new Ps();
|
|
2267
2267
|
ci(u, e) && n.emit("update", [u.toUint8Array(), e.origin, n, e]);
|
|
2268
2268
|
}
|
|
2269
2269
|
if (n._observers.has("updateV2")) {
|
|
@@ -2470,7 +2470,7 @@ const rr = (i) => {
|
|
|
2470
2470
|
}, ie = (i, t) => {
|
|
2471
2471
|
if (i._start === null || t === 0 || i._searchMarker === null)
|
|
2472
2472
|
return null;
|
|
2473
|
-
const e = i._searchMarker.length === 0 ? null : i._searchMarker.reduce((r, o) =>
|
|
2473
|
+
const e = i._searchMarker.length === 0 ? null : i._searchMarker.reduce((r, o) => Wt(t - r.index) < Wt(t - o.index) ? r : o);
|
|
2474
2474
|
let n = i._start, s = 0;
|
|
2475
2475
|
for (e !== null && (n = e.p, s = e.index, rr(e)); n.right !== null && s < t; ) {
|
|
2476
2476
|
if (!n.deleted && n.countable) {
|
|
@@ -2484,7 +2484,7 @@ const rr = (i) => {
|
|
|
2484
2484
|
n = n.left, !n.deleted && n.countable && (s -= n.length);
|
|
2485
2485
|
for (; n.left !== null && n.left.id.client === n.id.client && n.left.id.clock + n.left.length === n.id.clock; )
|
|
2486
2486
|
n = n.left, !n.deleted && n.countable && (s -= n.length);
|
|
2487
|
-
return e !== null &&
|
|
2487
|
+
return e !== null && Wt(e.index - s) < /** @type {YText|YArray<any>} */
|
|
2488
2488
|
n.parent.length / Ui ? (ji(e, n, s), e) : or(i._searchMarker, n, s);
|
|
2489
2489
|
}, Nt = (i, t, e) => {
|
|
2490
2490
|
for (let n = i.length - 1; n >= 0; n--) {
|
|
@@ -2740,9 +2740,9 @@ const $i = (i, t, e) => {
|
|
|
2740
2740
|
}
|
|
2741
2741
|
}
|
|
2742
2742
|
}), u();
|
|
2743
|
-
},
|
|
2743
|
+
}, Wi = () => mt("Length exceeded!"), Pi = (i, t, e, n) => {
|
|
2744
2744
|
if (e > t._length)
|
|
2745
|
-
throw
|
|
2745
|
+
throw Wi();
|
|
2746
2746
|
if (e === 0)
|
|
2747
2747
|
return t._searchMarker && Nt(t._searchMarker, e, n.length), zt(i, t, null, n);
|
|
2748
2748
|
const s = e, r = ie(t, e);
|
|
@@ -2772,7 +2772,7 @@ const $i = (i, t, e) => {
|
|
|
2772
2772
|
for (; n > 0 && c !== null; )
|
|
2773
2773
|
c.deleted || (n < c.length && nt(i, k(c.id.client, c.id.clock + n)), c.delete(i), n -= c.length), c = c.right;
|
|
2774
2774
|
if (n > 0)
|
|
2775
|
-
throw
|
|
2775
|
+
throw Wi();
|
|
2776
2776
|
t._searchMarker && Nt(
|
|
2777
2777
|
t._searchMarker,
|
|
2778
2778
|
s,
|
|
@@ -2933,7 +2933,7 @@ class Rt extends M {
|
|
|
2933
2933
|
*/
|
|
2934
2934
|
insert(t, e) {
|
|
2935
2935
|
this.doc !== null ? E(this.doc, (n) => {
|
|
2936
|
-
|
|
2936
|
+
Pi(
|
|
2937
2937
|
n,
|
|
2938
2938
|
this,
|
|
2939
2939
|
t,
|
|
@@ -4188,7 +4188,7 @@ class wt extends M {
|
|
|
4188
4188
|
*/
|
|
4189
4189
|
insert(t, e) {
|
|
4190
4190
|
this.doc !== null ? E(this.doc, (n) => {
|
|
4191
|
-
|
|
4191
|
+
Pi(n, this, t, e);
|
|
4192
4192
|
}) : this._prelimContent.splice(t, 0, ...e);
|
|
4193
4193
|
}
|
|
4194
4194
|
/**
|
|
@@ -5574,7 +5574,7 @@ class Ir extends At {
|
|
|
5574
5574
|
case ct.RealseeVRWebViewRTC:
|
|
5575
5575
|
return this._createVRWebViewRTC();
|
|
5576
5576
|
case ct.RealseeBrowserChimeRTC:
|
|
5577
|
-
return new
|
|
5577
|
+
return new Pe({
|
|
5578
5578
|
getVoiceSign: (n = this._options.getVoiceSign) != null ? n : It,
|
|
5579
5579
|
logLevel: e.__debug__ ? 0 : 1
|
|
5580
5580
|
});
|
|
@@ -5608,7 +5608,7 @@ class Ir extends At {
|
|
|
5608
5608
|
a(this, "_createDefaultRTC", (e) => {
|
|
5609
5609
|
var s;
|
|
5610
5610
|
const n = (s = this._options.getVoiceSign) != null ? s : It;
|
|
5611
|
-
return !this._options.jsBridge || !Ge && !Ke ? e.builtInRTCType === fi.RealseeXChimeRTC ? new
|
|
5611
|
+
return !this._options.jsBridge || !Ge && !Ke ? e.builtInRTCType === fi.RealseeXChimeRTC ? new Pe({ getVoiceSign: n }) : this._createBrowserRTC() : Ge && (vn || In) || Ke ? this._createVRWebViewRTC() : this._createBrowserRTC();
|
|
5612
5612
|
});
|
|
5613
5613
|
a(this, "_autoConnect", () => {
|
|
5614
5614
|
this._options.url && this._options.getTicket && this.connect();
|
|
@@ -5715,7 +5715,7 @@ class Ir extends At {
|
|
|
5715
5715
|
}
|
|
5716
5716
|
case B.BuiltinMsg: {
|
|
5717
5717
|
const p = u;
|
|
5718
|
-
this.emit("builtinEvent", p), p.event_type ===
|
|
5718
|
+
this.emit("builtinEvent", p), p.event_type === P.UserChange && this.emit("userChange", p), p.event_type === P.RoomChange && this.emit("roomChange", p), p.event_type === P.UserChange && p.action === z.UserMicroStatus && await this.toggleMicro(p.data.status === ot.OPEN), p.event_type === P.RoomChange && p.action === z.RoomClose && await this._exit();
|
|
5719
5719
|
break;
|
|
5720
5720
|
}
|
|
5721
5721
|
case B.UserKickOut: {
|
|
@@ -5794,7 +5794,7 @@ class Ir extends At {
|
|
|
5794
5794
|
} catch (n) {
|
|
5795
5795
|
m.warn(n);
|
|
5796
5796
|
}
|
|
5797
|
-
await this.updateStatus(
|
|
5797
|
+
await this.updateStatus(P.RoomChange, z.RoomClose, {});
|
|
5798
5798
|
});
|
|
5799
5799
|
/**
|
|
5800
5800
|
* 销毁带看
|
|
@@ -5814,7 +5814,7 @@ class Ir extends At {
|
|
|
5814
5814
|
* @param userInfo
|
|
5815
5815
|
* @returns
|
|
5816
5816
|
*/
|
|
5817
|
-
a(this, "setSelfInfo", async (e) => await this.updateStatus(
|
|
5817
|
+
a(this, "setSelfInfo", async (e) => await this.updateStatus(P.UserChange, z.UserInfo, e));
|
|
5818
5818
|
/**
|
|
5819
5819
|
* 自定义广播
|
|
5820
5820
|
* @param request 广播请求的数据
|
|
@@ -5841,7 +5841,7 @@ class Ir extends At {
|
|
|
5841
5841
|
if (!((r = (s = this.selfInfo) == null ? void 0 : s.permission) != null && r.control_own_micro)) return !1;
|
|
5842
5842
|
const n = await ((o = this.$RTC) == null ? void 0 : o.toggleMicro(e));
|
|
5843
5843
|
return n && await this.updateStatus(
|
|
5844
|
-
|
|
5844
|
+
P.UserChange,
|
|
5845
5845
|
z.UserMicroStatus,
|
|
5846
5846
|
{
|
|
5847
5847
|
status: e ? ot.OPEN : ot.CLOSE
|
|
@@ -5858,7 +5858,7 @@ class Ir extends At {
|
|
|
5858
5858
|
a(this, "forbidMicro", async (e, n) => {
|
|
5859
5859
|
var s, r;
|
|
5860
5860
|
return typeof this._options.canForbidUserMicro == "function" && !this._options.canForbidUserMicro(n) || !((r = (s = this.selfInfo) == null ? void 0 : s.permission) != null && r.control_other_micro) ? !1 : await this.updateStatus(
|
|
5861
|
-
|
|
5861
|
+
P.UserChange,
|
|
5862
5862
|
z.UserMicroStatus,
|
|
5863
5863
|
{
|
|
5864
5864
|
status: e
|
|
@@ -5875,7 +5875,7 @@ class Ir extends At {
|
|
|
5875
5875
|
a(this, "forbidSync", async (e, n) => {
|
|
5876
5876
|
var s, r;
|
|
5877
5877
|
return typeof this._options.canForbidUserSync == "function" && !this._options.canForbidUserSync(n) || !((r = (s = this.selfInfo) == null ? void 0 : s.permission) != null && r.control_other_sync) ? !1 : await this.updateStatus(
|
|
5878
|
-
|
|
5878
|
+
P.UserChange,
|
|
5879
5879
|
z.UserPermission,
|
|
5880
5880
|
{ sync_frame: e },
|
|
5881
5881
|
n
|
|
@@ -5889,7 +5889,7 @@ class Ir extends At {
|
|
|
5889
5889
|
a(this, "kick", async (e) => {
|
|
5890
5890
|
var n, s;
|
|
5891
5891
|
return typeof this._options.canForbidUserKick == "function" && !this._options.canForbidUserKick(e) || !((s = (n = this.selfInfo) == null ? void 0 : n.permission) != null && s.change_other_status) ? !1 : await this.updateStatus(
|
|
5892
|
-
|
|
5892
|
+
P.UserChange,
|
|
5893
5893
|
z.UserStatus,
|
|
5894
5894
|
{
|
|
5895
5895
|
status: "KICK_OUT"
|
|
@@ -5996,52 +5996,52 @@ function Nr(i) {
|
|
|
5996
5996
|
return D.useEffect(() => (b.keyframes.on(f, C), T), I), T;
|
|
5997
5997
|
}
|
|
5998
5998
|
function d() {
|
|
5999
|
-
const f = r(), C =
|
|
5999
|
+
const f = r(), C = W(
|
|
6000
6000
|
async (O) => {
|
|
6001
6001
|
await f.connect(O);
|
|
6002
6002
|
},
|
|
6003
6003
|
[f]
|
|
6004
|
-
), R =
|
|
6004
|
+
), R = W(
|
|
6005
6005
|
(O) => {
|
|
6006
6006
|
f.toggleMicro(O);
|
|
6007
6007
|
},
|
|
6008
6008
|
[f]
|
|
6009
|
-
), b =
|
|
6009
|
+
), b = W(
|
|
6010
6010
|
async (O, H, ce = 0) => {
|
|
6011
6011
|
await f.broadcast(O, H, ce);
|
|
6012
6012
|
},
|
|
6013
6013
|
[f]
|
|
6014
|
-
), I =
|
|
6014
|
+
), I = W(async () => {
|
|
6015
6015
|
await f.exit();
|
|
6016
|
-
}, [f]), T =
|
|
6016
|
+
}, [f]), T = W(
|
|
6017
6017
|
async (O) => {
|
|
6018
6018
|
await f.kick(O);
|
|
6019
6019
|
},
|
|
6020
6020
|
[f]
|
|
6021
|
-
), F =
|
|
6021
|
+
), F = W(
|
|
6022
6022
|
async (O, H = []) => {
|
|
6023
6023
|
await f.forbidMicro(O, H);
|
|
6024
6024
|
},
|
|
6025
6025
|
[f]
|
|
6026
|
-
), rt =
|
|
6026
|
+
), rt = W(
|
|
6027
6027
|
(O, H = []) => {
|
|
6028
6028
|
f.forbidSync(O, H);
|
|
6029
6029
|
},
|
|
6030
6030
|
[f]
|
|
6031
|
-
), oe =
|
|
6031
|
+
), oe = W(
|
|
6032
6032
|
(O) => f.getFramesByKey(O),
|
|
6033
6033
|
[f]
|
|
6034
|
-
), en =
|
|
6034
|
+
), en = W(
|
|
6035
6035
|
(O, H) => {
|
|
6036
6036
|
f.sendKeyframe(O, H);
|
|
6037
6037
|
},
|
|
6038
6038
|
[f]
|
|
6039
|
-
), nn =
|
|
6039
|
+
), nn = W(
|
|
6040
6040
|
(O) => {
|
|
6041
6041
|
f.setSelfInfo(O);
|
|
6042
6042
|
},
|
|
6043
6043
|
[f]
|
|
6044
|
-
), sn =
|
|
6044
|
+
), sn = W(
|
|
6045
6045
|
(O, H, ce, rn) => {
|
|
6046
6046
|
f.updateStatus(O, H, ce, rn);
|
|
6047
6047
|
},
|
|
@@ -6139,15 +6139,15 @@ function Nr(i) {
|
|
|
6139
6139
|
}
|
|
6140
6140
|
const ye = globalThis.__REALSEE_LIVE_BADGE_LOG__;
|
|
6141
6141
|
(ye == null || ye) && console.log(
|
|
6142
|
-
"%c@realsee/live@0.7.3
|
|
6142
|
+
"%c@realsee/live@0.7.3 (12/4/2025, 10:34:31 AM)",
|
|
6143
6143
|
"background: linear-gradient(to right, #1890ff, #52c41a); color: white; padding: 3px 6px; border-radius: 4px; font-weight: bold; text-shadow: 0 1px 0 rgba(0,0,0,0.2);"
|
|
6144
6144
|
);
|
|
6145
6145
|
export {
|
|
6146
6146
|
mn as BrowserRTC,
|
|
6147
|
-
|
|
6147
|
+
Pe as BrowserRTC4Chime,
|
|
6148
6148
|
fi as BuiltInRTCType,
|
|
6149
6149
|
z as BuiltinActionType,
|
|
6150
|
-
|
|
6150
|
+
P as BuiltinEventType,
|
|
6151
6151
|
B as Command,
|
|
6152
6152
|
Re as CoreRTC,
|
|
6153
6153
|
Ir as Live,
|
package/docs/.nojekyll
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--light-hl-0: #008000;
|
|
3
|
+
--dark-hl-0: #6A9955;
|
|
4
|
+
--light-hl-1: #795E26;
|
|
5
|
+
--dark-hl-1: #DCDCAA;
|
|
6
|
+
--light-hl-2: #000000;
|
|
7
|
+
--dark-hl-2: #D4D4D4;
|
|
8
|
+
--light-hl-3: #A31515;
|
|
9
|
+
--dark-hl-3: #CE9178;
|
|
10
|
+
--light-hl-4: #AF00DB;
|
|
11
|
+
--dark-hl-4: #C586C0;
|
|
12
|
+
--light-hl-5: #001080;
|
|
13
|
+
--dark-hl-5: #9CDCFE;
|
|
14
|
+
--light-hl-6: #0000FF;
|
|
15
|
+
--dark-hl-6: #569CD6;
|
|
16
|
+
--light-hl-7: #0070C1;
|
|
17
|
+
--dark-hl-7: #4FC1FF;
|
|
18
|
+
--light-hl-8: #098658;
|
|
19
|
+
--dark-hl-8: #B5CEA8;
|
|
20
|
+
--light-hl-9: #267F99;
|
|
21
|
+
--dark-hl-9: #4EC9B0;
|
|
22
|
+
--light-hl-10: #000000FF;
|
|
23
|
+
--dark-hl-10: #D4D4D4;
|
|
24
|
+
--light-code-background: #FFFFFF;
|
|
25
|
+
--dark-code-background: #1E1E1E;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media (prefers-color-scheme: light) { :root {
|
|
29
|
+
--hl-0: var(--light-hl-0);
|
|
30
|
+
--hl-1: var(--light-hl-1);
|
|
31
|
+
--hl-2: var(--light-hl-2);
|
|
32
|
+
--hl-3: var(--light-hl-3);
|
|
33
|
+
--hl-4: var(--light-hl-4);
|
|
34
|
+
--hl-5: var(--light-hl-5);
|
|
35
|
+
--hl-6: var(--light-hl-6);
|
|
36
|
+
--hl-7: var(--light-hl-7);
|
|
37
|
+
--hl-8: var(--light-hl-8);
|
|
38
|
+
--hl-9: var(--light-hl-9);
|
|
39
|
+
--hl-10: var(--light-hl-10);
|
|
40
|
+
--code-background: var(--light-code-background);
|
|
41
|
+
} }
|
|
42
|
+
|
|
43
|
+
@media (prefers-color-scheme: dark) { :root {
|
|
44
|
+
--hl-0: var(--dark-hl-0);
|
|
45
|
+
--hl-1: var(--dark-hl-1);
|
|
46
|
+
--hl-2: var(--dark-hl-2);
|
|
47
|
+
--hl-3: var(--dark-hl-3);
|
|
48
|
+
--hl-4: var(--dark-hl-4);
|
|
49
|
+
--hl-5: var(--dark-hl-5);
|
|
50
|
+
--hl-6: var(--dark-hl-6);
|
|
51
|
+
--hl-7: var(--dark-hl-7);
|
|
52
|
+
--hl-8: var(--dark-hl-8);
|
|
53
|
+
--hl-9: var(--dark-hl-9);
|
|
54
|
+
--hl-10: var(--dark-hl-10);
|
|
55
|
+
--code-background: var(--dark-code-background);
|
|
56
|
+
} }
|
|
57
|
+
|
|
58
|
+
:root[data-theme='light'] {
|
|
59
|
+
--hl-0: var(--light-hl-0);
|
|
60
|
+
--hl-1: var(--light-hl-1);
|
|
61
|
+
--hl-2: var(--light-hl-2);
|
|
62
|
+
--hl-3: var(--light-hl-3);
|
|
63
|
+
--hl-4: var(--light-hl-4);
|
|
64
|
+
--hl-5: var(--light-hl-5);
|
|
65
|
+
--hl-6: var(--light-hl-6);
|
|
66
|
+
--hl-7: var(--light-hl-7);
|
|
67
|
+
--hl-8: var(--light-hl-8);
|
|
68
|
+
--hl-9: var(--light-hl-9);
|
|
69
|
+
--hl-10: var(--light-hl-10);
|
|
70
|
+
--code-background: var(--light-code-background);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:root[data-theme='dark'] {
|
|
74
|
+
--hl-0: var(--dark-hl-0);
|
|
75
|
+
--hl-1: var(--dark-hl-1);
|
|
76
|
+
--hl-2: var(--dark-hl-2);
|
|
77
|
+
--hl-3: var(--dark-hl-3);
|
|
78
|
+
--hl-4: var(--dark-hl-4);
|
|
79
|
+
--hl-5: var(--dark-hl-5);
|
|
80
|
+
--hl-6: var(--dark-hl-6);
|
|
81
|
+
--hl-7: var(--dark-hl-7);
|
|
82
|
+
--hl-8: var(--dark-hl-8);
|
|
83
|
+
--hl-9: var(--dark-hl-9);
|
|
84
|
+
--hl-10: var(--dark-hl-10);
|
|
85
|
+
--code-background: var(--dark-code-background);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.hl-0 { color: var(--hl-0); }
|
|
89
|
+
.hl-1 { color: var(--hl-1); }
|
|
90
|
+
.hl-2 { color: var(--hl-2); }
|
|
91
|
+
.hl-3 { color: var(--hl-3); }
|
|
92
|
+
.hl-4 { color: var(--hl-4); }
|
|
93
|
+
.hl-5 { color: var(--hl-5); }
|
|
94
|
+
.hl-6 { color: var(--hl-6); }
|
|
95
|
+
.hl-7 { color: var(--hl-7); }
|
|
96
|
+
.hl-8 { color: var(--hl-8); }
|
|
97
|
+
.hl-9 { color: var(--hl-9); }
|
|
98
|
+
.hl-10 { color: var(--hl-10); }
|
|
99
|
+
pre, code { background: var(--code-background); }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
addIcons();
|
|
3
|
+
function addIcons() {
|
|
4
|
+
if (document.readyState === "loading") return document.addEventListener("DOMContentLoaded", addIcons);
|
|
5
|
+
const svg = document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "svg"));
|
|
6
|
+
svg.innerHTML = `<g id="icon-1" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-2" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">N</text></g><g id="icon-8" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">E</text></g><g id="icon-16" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-32" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">V</text></g><g id="icon-64" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-128" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-256" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">I</text></g><g id="icon-512" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-1024" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-2048" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-method)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4096" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-8192" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-16384" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-32768" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-65536" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-131072" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-262144" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-524288" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-1048576" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-2097152" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-4194304" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-reference)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">R</text></g><g id="icon-8388608" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="6,5 6,19 18,19, 18,10 13,5"></polygon><line x1="9" y1="9" x2="13" y2="9"></line><line x1="9" y1="12" x2="15" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></g></g><g id="icon-folder" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="5,5 10,5 12,8 19,8 19,18 5,18"></polygon></g></g><g id="icon-chevronDown" class="tsd-no-select"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></g><g id="icon-chevronSmall" class="tsd-no-select"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-icon-text)"></path></g><g id="icon-checkbox" class="tsd-no-select"><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></g><g id="icon-menu" class="tsd-no-select"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></g><g id="icon-search" class="tsd-no-select"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-icon-text)"></path></g><g id="icon-anchor" class="tsd-no-select"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g>`;
|
|
7
|
+
svg.style.display = "none";
|
|
8
|
+
if (location.protocol === "file:") updateUseElements();
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function updateUseElements() {
|
|
12
|
+
document.querySelectorAll("use").forEach(el => {
|
|
13
|
+
if (el.getAttribute("href").includes("#icon-")) {
|
|
14
|
+
el.setAttribute("href", el.getAttribute("href").replace(/.*#/, "#"));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
})()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg"><g id="icon-1" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-2" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">N</text></g><g id="icon-8" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">E</text></g><g id="icon-16" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-32" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">V</text></g><g id="icon-64" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-128" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-256" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">I</text></g><g id="icon-512" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-1024" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-2048" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-method)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4096" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-8192" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-16384" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-32768" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-65536" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-131072" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-262144" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-524288" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-1048576" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-2097152" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-4194304" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-reference)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">R</text></g><g id="icon-8388608" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="6,5 6,19 18,19, 18,10 13,5"></polygon><line x1="9" y1="9" x2="13" y2="9"></line><line x1="9" y1="12" x2="15" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></g></g><g id="icon-folder" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="5,5 10,5 12,8 19,8 19,18 5,18"></polygon></g></g><g id="icon-chevronDown" class="tsd-no-select"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></g><g id="icon-chevronSmall" class="tsd-no-select"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-icon-text)"></path></g><g id="icon-checkbox" class="tsd-no-select"><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></g><g id="icon-menu" class="tsd-no-select"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></g><g id="icon-search" class="tsd-no-select"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-icon-text)"></path></g><g id="icon-anchor" class="tsd-no-select"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g></svg>
|