@vocalstack/player 0.1.0-alpha.5 → 0.1.0-alpha.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/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5063,11 +5063,11 @@ function Cc(t) {
|
|
|
5063
5063
|
M && ((W = t.onError) == null || W.call(t, M));
|
|
5064
5064
|
}, [M]);
|
|
5065
5065
|
const j = cc(t.desk), N = (t.layout ?? "embed") === "embed", h = t.appUrl ?? (t.endCard ? t.endCard.appUrl : void 0), C = et((W) => n({ id: W.transcriptionId, token: null, listen: { transcriptionId: W.transcriptionId, recordingId: W.recordingId, token: W.token } }), []), b = hc(h, C), w = I(null);
|
|
5066
|
-
return A(() => (Qr(N ? w.current : null), () => Qr(null)), [N]), /* @__PURE__ */ i(Mo, { value: k, children: /* @__PURE__ */ i("div", { ref: w, className: `vsp${N ? " vsp--embed" : ""}${t.className ? ` ${t.className}` : ""}`, "data-theme": t.mode === "video" || t.dark ? "dark" : "light", "data-mode": t.mode === "video" ? "video" : "transcript", children: c ? /* @__PURE__ */ i(Nc, { connect: b, onPick: a }) : l ? /* @__PURE__ */ i(fc, { src: o, ask: !r, connect: b, onClear: r ? () => a(null) : void 0 }) : e.id ? /* @__PURE__ */ i(yc, { ...t, id: e.id, api: k, shared: u, gone: g, loadError: M, reread: p, desk: j, dark: t.mode === "video" || !!t.dark, onStarted: (W) => n({ id: W.transcriptionId, token: null, listen: { transcriptionId: W.transcriptionId, recordingId: W.recordingId, token: W.token } }) }, e.id) : /* @__PURE__ */ i("div", { className: "vsp-gate", "data-theme": "dark", children: /* @__PURE__ */ i("span", { className: "gfull__spin gfull__holdspin", "aria-label": "Loading" }) }) }) });
|
|
5066
|
+
return A(() => (Qr(N ? w.current : null), () => Qr(null)), [N]), /* @__PURE__ */ i(Mo, { value: k, children: /* @__PURE__ */ i("div", { ref: w, className: `vsp${N ? " vsp--embed" : ""}${t.className ? ` ${t.className}` : ""}`, "data-theme": (t.mode ?? "video") === "video" || t.dark ? "dark" : "light", "data-mode": (t.mode ?? "video") === "video" ? "video" : "transcript", children: c ? /* @__PURE__ */ i(Nc, { connect: b, onPick: a }) : l ? /* @__PURE__ */ i(fc, { src: o, ask: !r, connect: b, onClear: r ? () => a(null) : void 0 }) : e.id ? /* @__PURE__ */ i(yc, { ...t, id: e.id, api: k, shared: u, gone: g, loadError: M, reread: p, desk: j, dark: (t.mode ?? "video") === "video" || !!t.dark, onStarted: (W) => n({ id: W.transcriptionId, token: null, listen: { transcriptionId: W.transcriptionId, recordingId: W.recordingId, token: W.token } }) }, e.id) : /* @__PURE__ */ i("div", { className: "vsp-gate", "data-theme": "dark", children: /* @__PURE__ */ i("span", { className: "gfull__spin gfull__holdspin", "aria-label": "Loading" }) }) }) });
|
|
5067
5067
|
}
|
|
5068
5068
|
function yc(t) {
|
|
5069
5069
|
var qs, Ks, Js, Xs, er, tr, nr, sr, rr, ir, ar, or, lr, cr, ur, dr, Mr, hr, gr, fr, Nr, pr, mr, yr;
|
|
5070
|
-
const { api: e, shared: n, gone: s, desk: r, dark: a } = t, o = t.id ?? "", l = Ie(() => mc(t), []), c = t.mode === "video", d = ((Ks = (qs = n == null ? void 0 : n.job) == null ? void 0 : qs.source) == null ? void 0 : Ks.kind) === "url" ? ls(n.job.source.url) : null, u = c && !(n && !d), [g, M] = O(t.loadError);
|
|
5070
|
+
const { api: e, shared: n, gone: s, desk: r, dark: a } = t, o = t.id ?? "", l = Ie(() => mc(t), []), c = (t.mode ?? "video") === "video", d = ((Ks = (qs = n == null ? void 0 : n.job) == null ? void 0 : qs.source) == null ? void 0 : Ks.kind) === "url" ? ls(n.job.source.url) : null, u = c && !(n && !d), [g, M] = O(t.loadError);
|
|
5071
5071
|
A(() => {
|
|
5072
5072
|
t.loadError && M(t.loadError);
|
|
5073
5073
|
}, [t.loadError]);
|