@belonguniverseai/react-sdk 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/dist/api/client.d.ts +49 -0
- package/dist/api/retry-fetch.d.ts +58 -0
- package/dist/component/{arc-RUGz6lZa.js → arc-CMhGaHbE.js} +2 -2
- package/dist/component/{architectureDiagram-3BPJPVTR-BX7ivAYH.js → architectureDiagram-3BPJPVTR-BPbeN6Nl.js} +3 -3
- package/dist/component/{blockDiagram-GPEHLZMM-DkloXJvD.js → blockDiagram-GPEHLZMM-BVn0uHLE.js} +4 -4
- package/dist/component/{c4Diagram-AAUBKEIU-DpMkd-hu.js → c4Diagram-AAUBKEIU-D3XBTnJa.js} +3 -3
- package/dist/component/{channel-CMrJ5FvL.js → channel-DpI8-a3_.js} +2 -2
- package/dist/component/{chunk-2J33WTMH-BQFG3l5m.js → chunk-2J33WTMH-Bqhv40NQ.js} +2 -2
- package/dist/component/{chunk-4BX2VUAB-DIgdkfba.js → chunk-4BX2VUAB-DtucQWno.js} +2 -2
- package/dist/component/{chunk-55IACEB6-kiI_RN43.js → chunk-55IACEB6-CWb5s5u5.js} +2 -2
- package/dist/component/{chunk-727SXJPM-B_3F8LLK.js → chunk-727SXJPM-C83L2sLw.js} +6 -6
- package/dist/component/{chunk-AQP2D5EJ-nUpTDfR9.js → chunk-AQP2D5EJ-D00bX5Fy.js} +4 -4
- package/dist/component/{chunk-FMBD7UC4-C666L1vx.js → chunk-FMBD7UC4-CR6LCs0Q.js} +2 -2
- package/dist/component/{chunk-ND2GUHAM-BG3KaNNT.js → chunk-ND2GUHAM-DUfRBvcM.js} +2 -2
- package/dist/component/{chunk-QZHKN3VN-BekfxLxF.js → chunk-QZHKN3VN-ZyFUERub.js} +2 -2
- package/dist/component/{classDiagram-4FO5ZUOK-BvcPz5Jy.js → classDiagram-4FO5ZUOK-nhACsjTQ.js} +3 -3
- package/dist/component/{classDiagram-v2-Q7XG4LA2-BvcPz5Jy.js → classDiagram-v2-Q7XG4LA2-nhACsjTQ.js} +3 -3
- package/dist/component/{cose-bilkent-S5V4N54A-CWpudsgn.js → cose-bilkent-S5V4N54A-CNyhXSKg.js} +2 -2
- package/dist/component/{dagre-BM42HDAG-COUBqMeu.js → dagre-BM42HDAG-Dr_3n4A9.js} +2 -2
- package/dist/component/{diagram-2AECGRRQ-Bj90e4r1.js → diagram-2AECGRRQ-Y2n2wNX9.js} +3 -3
- package/dist/component/{diagram-5GNKFQAL-D50SBQ3H.js → diagram-5GNKFQAL-DHwEARtq.js} +4 -4
- package/dist/component/{diagram-KO2AKTUF-rdkH6sIq.js → diagram-KO2AKTUF-JBQc-Qhk.js} +3 -3
- package/dist/component/{diagram-LMA3HP47-BM-uSIwY.js → diagram-LMA3HP47-B55TgguV.js} +3 -3
- package/dist/component/{diagram-OG6HWLK6-BYeMl-HB.js → diagram-OG6HWLK6-BjQ8Y6zl.js} +4 -4
- package/dist/component/{erDiagram-TEJ5UH35-DFEfLVvR.js → erDiagram-TEJ5UH35-BNl5eT59.js} +5 -5
- package/dist/component/{flowDiagram-I6XJVG4X-C785atDH.js → flowDiagram-I6XJVG4X-_bWa0zJX.js} +7 -7
- package/dist/component/{ganttDiagram-6RSMTGT7-C5H-60U2.js → ganttDiagram-6RSMTGT7-D12wJRpv.js} +3 -3
- package/dist/component/{gitGraphDiagram-PVQCEYII-ceA5NW8c.js → gitGraphDiagram-PVQCEYII-CKGKNDkP.js} +4 -4
- package/dist/component/{highlighted-body-OFNGDK62-CshfJCgW.js → highlighted-body-OFNGDK62-T6VnSue_.js} +2 -2
- package/dist/component/index.js +2 -2
- package/dist/component/{infoDiagram-5YYISTIA-C3KMuwje.js → infoDiagram-5YYISTIA-CtbQ2PNx.js} +2 -2
- package/dist/component/{ishikawaDiagram-YF4QCWOH-BZFrHmHT.js → ishikawaDiagram-YF4QCWOH-DWHoe0x7.js} +2 -2
- package/dist/component/{journeyDiagram-JHISSGLW-BJOlgfUi.js → journeyDiagram-JHISSGLW-Y8U0aQ2t.js} +5 -5
- package/dist/component/{kanban-definition-UN3LZRKU-CfMReYx4.js → kanban-definition-UN3LZRKU-Cxa5quvJ.js} +3 -3
- package/dist/component/{linear-DUkCqmPt.js → linear-Deqp7k-y.js} +2 -2
- package/dist/component/{mermaid-GHXKKRXX-BOTLFr14.js → mermaid-GHXKKRXX-Bb3nq6cF.js} +27885 -27456
- package/dist/component/{mindmap-definition-RKZ34NQL-Bal8oXYU.js → mindmap-definition-RKZ34NQL-CJO5YIaF.js} +4 -4
- package/dist/component/{pieDiagram-4H26LBE5-CCy9iJeT.js → pieDiagram-4H26LBE5-fLrS62rY.js} +4 -4
- package/dist/component/{quadrantDiagram-W4KKPZXB-CZi1MEAc.js → quadrantDiagram-W4KKPZXB-BMjq2Lu4.js} +3 -3
- package/dist/component/{requirementDiagram-4Y6WPE33-irn_x5lf.js → requirementDiagram-4Y6WPE33-BPUkO56k.js} +4 -4
- package/dist/component/{sankeyDiagram-5OEKKPKP-CX2rM6Rj.js → sankeyDiagram-5OEKKPKP-ekNfY75x.js} +2 -2
- package/dist/component/{sequenceDiagram-3UESZ5HK-DmHw71eT.js → sequenceDiagram-3UESZ5HK-CyVmC9Rm.js} +4 -4
- package/dist/component/{stateDiagram-AJRCARHV-3u6GXMEg.js → stateDiagram-AJRCARHV-DFkc559m.js} +3 -3
- package/dist/component/{stateDiagram-v2-BHNVJYJU-CbUih_UR.js → stateDiagram-v2-BHNVJYJU-DyEtRcsV.js} +3 -3
- package/dist/component/{timeline-definition-PNZ67QCA-BAW-94RV.js → timeline-definition-PNZ67QCA-BDLP-x66.js} +3 -3
- package/dist/component/{vennDiagram-CIIHVFJN-IF4AwJuP.js → vennDiagram-CIIHVFJN-Bvhzsn8q.js} +2 -2
- package/dist/component/{wardleyDiagram-YWT4CUSO-Bn-uAkHk.js → wardleyDiagram-YWT4CUSO-SKdyvNF1.js} +3 -3
- package/dist/component/{xychartDiagram-2RQKCTM6-CvPY-qXp.js → xychartDiagram-2RQKCTM6-DHchnrpW.js} +3 -3
- package/dist/components/embed/CallButton.d.ts +26 -0
- package/dist/components/embed/EmbedAvatar.d.ts +4 -1
- package/dist/components/embed/EmbedSessions.d.ts +10 -3
- package/dist/components/embed/MobileNavBar.d.ts +39 -0
- package/dist/components/embed/mobile-nav-bar.fixtures.d.ts +3 -0
- package/dist/embed/copy.d.ts +4 -0
- package/dist/embed/dock-layout.d.ts +23 -0
- package/dist/embed/layout-mode.d.ts +6 -0
- package/dist/embed/voice/realtime-call.d.ts +8 -3
- package/dist/i18n/messages/en.d.ts +3 -0
- package/dist/i18n/messages/surfaces/app.d.ts +9 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as oe } from "./chunk-55IACEB6-
|
|
2
|
-
import { s as ae } from "./chunk-2J33WTMH-
|
|
3
|
-
import { _ as l, l as C, p as ce, r as le, G as he, K as G, c as B, i as F, b6 as de, af as ge, ag as ue, ah as pe } from "./mermaid-GHXKKRXX-
|
|
1
|
+
import { g as oe } from "./chunk-55IACEB6-CWb5s5u5.js";
|
|
2
|
+
import { s as ae } from "./chunk-2J33WTMH-Bqhv40NQ.js";
|
|
3
|
+
import { _ as l, l as C, p as ce, r as le, G as he, K as G, c as B, i as F, b6 as de, af as ge, ag as ue, ah as pe } from "./mermaid-GHXKKRXX-Bb3nq6cF.js";
|
|
4
4
|
globalThis.process = globalThis.process || { env: {} };
|
|
5
5
|
globalThis.global = globalThis.global || globalThis;
|
|
6
6
|
const b = [];
|
|
@@ -830,4 +830,4 @@ var _e = Y, ke = 12, N = {
|
|
|
830
830
|
export {
|
|
831
831
|
we as diagram
|
|
832
832
|
};
|
|
833
|
-
//# sourceMappingURL=mindmap-definition-RKZ34NQL-
|
|
833
|
+
//# sourceMappingURL=mindmap-definition-RKZ34NQL-CJO5YIaF.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a0 as S, S as R, b5 as J, g as Q, s as Y, a as tt, b as et, t as at, q as nt, _ as g, l as W, c as rt, I as it, N as st, a7 as lt, e as ot, B as ct, K as ut } from "./mermaid-GHXKKRXX-
|
|
2
|
-
import { p as gt } from "./chunk-4BX2VUAB-
|
|
1
|
+
import { a0 as S, S as R, b5 as J, g as Q, s as Y, a as tt, b as et, t as at, q as nt, _ as g, l as W, c as rt, I as it, N as st, a7 as lt, e as ot, B as ct, K as ut } from "./mermaid-GHXKKRXX-Bb3nq6cF.js";
|
|
2
|
+
import { p as gt } from "./chunk-4BX2VUAB-DtucQWno.js";
|
|
3
3
|
import { p as dt } from "./wardley-L42UT6IY-HA1eSIS_.js";
|
|
4
|
-
import { d as P } from "./arc-
|
|
4
|
+
import { d as P } from "./arc-CMhGaHbE.js";
|
|
5
5
|
import { o as pt } from "./ordinal-D0x7izaa.js";
|
|
6
6
|
globalThis.process = globalThis.process || { env: {} };
|
|
7
7
|
globalThis.global = globalThis.global || globalThis;
|
|
@@ -163,4 +163,4 @@ var vt = ut.pie, z = {
|
|
|
163
163
|
export {
|
|
164
164
|
Lt as diagram
|
|
165
165
|
};
|
|
166
|
-
//# sourceMappingURL=pieDiagram-4H26LBE5-
|
|
166
|
+
//# sourceMappingURL=pieDiagram-4H26LBE5-fLrS62rY.js.map
|
package/dist/component/{quadrantDiagram-W4KKPZXB-CZi1MEAc.js → quadrantDiagram-W4KKPZXB-BMjq2Lu4.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as Se, g as _e, t as ee, q as Ae, a as ke, b as Fe, _ as r, c as Et, l as qt, d as vt, e as Pe, B as ve, K as z, i as Ce, a4 as Le } from "./mermaid-GHXKKRXX-
|
|
2
|
-
import { l as te } from "./linear-
|
|
1
|
+
import { s as Se, g as _e, t as ee, q as Ae, a as ke, b as Fe, _ as r, c as Et, l as qt, d as vt, e as Pe, B as ve, K as z, i as Ce, a4 as Le } from "./mermaid-GHXKKRXX-Bb3nq6cF.js";
|
|
2
|
+
import { l as te } from "./linear-Deqp7k-y.js";
|
|
3
3
|
globalThis.process = globalThis.process || { env: {} };
|
|
4
4
|
globalThis.global = globalThis.global || globalThis;
|
|
5
5
|
var Ct = (function() {
|
|
@@ -1030,4 +1030,4 @@ var Ve = /* @__PURE__ */ r(function() {
|
|
|
1030
1030
|
export {
|
|
1031
1031
|
We as diagram
|
|
1032
1032
|
};
|
|
1033
|
-
//# sourceMappingURL=quadrantDiagram-W4KKPZXB-
|
|
1033
|
+
//# sourceMappingURL=quadrantDiagram-W4KKPZXB-BMjq2Lu4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as Ge } from "./chunk-55IACEB6-
|
|
2
|
-
import { s as ze } from "./chunk-2J33WTMH-
|
|
3
|
-
import { _ as h, G as Ye, b as Xe, a as Je, s as Ze, g as et, q as tt, t as st, c as ke, l as Ne, B as it, F as rt, p as nt, r as at, u as lt } from "./mermaid-GHXKKRXX-
|
|
1
|
+
import { g as Ge } from "./chunk-55IACEB6-CWb5s5u5.js";
|
|
2
|
+
import { s as ze } from "./chunk-2J33WTMH-Bqhv40NQ.js";
|
|
3
|
+
import { _ as h, G as Ye, b as Xe, a as Je, s as Ze, g as et, q as tt, t as st, c as ke, l as Ne, B as it, F as rt, p as nt, r as at, u as lt } from "./mermaid-GHXKKRXX-Bb3nq6cF.js";
|
|
4
4
|
globalThis.process = globalThis.process || { env: {} };
|
|
5
5
|
globalThis.global = globalThis.global || globalThis;
|
|
6
6
|
var qe = (function() {
|
|
@@ -885,4 +885,4 @@ var mt = /* @__PURE__ */ h(async function(e, u, o, n) {
|
|
|
885
885
|
export {
|
|
886
886
|
Rt as diagram
|
|
887
887
|
};
|
|
888
|
-
//# sourceMappingURL=requirementDiagram-4Y6WPE33-
|
|
888
|
+
//# sourceMappingURL=requirementDiagram-4Y6WPE33-BPUkO56k.js.map
|
package/dist/component/{sankeyDiagram-5OEKKPKP-CX2rM6Rj.js → sankeyDiagram-5OEKKPKP-ekNfY75x.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as kt, t as mt, s as xt, g as _t, b as vt, a as bt, _ as y, c as ot, C as St, d as G, ai as wt, B as Lt, k as Et } from "./mermaid-GHXKKRXX-
|
|
1
|
+
import { q as kt, t as mt, s as xt, g as _t, b as vt, a as bt, _ as y, c as ot, C as St, d as G, ai as wt, B as Lt, k as Et } from "./mermaid-GHXKKRXX-Bb3nq6cF.js";
|
|
2
2
|
import { o as Tt } from "./ordinal-D0x7izaa.js";
|
|
3
3
|
globalThis.process = globalThis.process || { env: {} };
|
|
4
4
|
globalThis.global = globalThis.global || globalThis;
|
|
@@ -859,4 +859,4 @@ var ge = {
|
|
|
859
859
|
export {
|
|
860
860
|
ge as diagram
|
|
861
861
|
};
|
|
862
|
-
//# sourceMappingURL=sankeyDiagram-5OEKKPKP-
|
|
862
|
+
//# sourceMappingURL=sankeyDiagram-5OEKKPKP-ekNfY75x.js.map
|
package/dist/component/{sequenceDiagram-3UESZ5HK-DmHw71eT.js → sequenceDiagram-3UESZ5HK-CyVmC9Rm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as g, o as tr, c as $, d as Mt, l as at, j as Ce, e as er, f as rr, k as P, b as ke, s as ar, q as sr, a as ir, g as nr, t as or, v as cr, J as lr, B as hr, i as Bt, u as Z, a5 as Q, a6 as wt, a7 as Me, a8 as dr, G as Yt, a9 as Tr, aa as Be } from "./mermaid-GHXKKRXX-
|
|
2
|
-
import { a as pr, b as ee, g as dt, d as Er, e as re, f as ae } from "./chunk-ND2GUHAM-
|
|
3
|
-
import { I as ur } from "./chunk-QZHKN3VN-
|
|
1
|
+
import { _ as g, o as tr, c as $, d as Mt, l as at, j as Ce, e as er, f as rr, k as P, b as ke, s as ar, q as sr, a as ir, g as nr, t as or, v as cr, J as lr, B as hr, i as Bt, u as Z, a5 as Q, a6 as wt, a7 as Me, a8 as dr, G as Yt, a9 as Tr, aa as Be } from "./mermaid-GHXKKRXX-Bb3nq6cF.js";
|
|
2
|
+
import { a as pr, b as ee, g as dt, d as Er, e as re, f as ae } from "./chunk-ND2GUHAM-DUfRBvcM.js";
|
|
3
|
+
import { I as ur } from "./chunk-QZHKN3VN-ZyFUERub.js";
|
|
4
4
|
globalThis.process = globalThis.process || { env: {} };
|
|
5
5
|
globalThis.global = globalThis.global || globalThis;
|
|
6
6
|
var $t = (function() {
|
|
@@ -2894,4 +2894,4 @@ var ra = /* @__PURE__ */ g(async function(e, t, a) {
|
|
|
2894
2894
|
export {
|
|
2895
2895
|
Ta as diagram
|
|
2896
2896
|
};
|
|
2897
|
-
//# sourceMappingURL=sequenceDiagram-3UESZ5HK-
|
|
2897
|
+
//# sourceMappingURL=sequenceDiagram-3UESZ5HK-CyVmC9Rm.js.map
|
package/dist/component/{stateDiagram-AJRCARHV-3u6GXMEg.js → stateDiagram-AJRCARHV-DFkc559m.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as R, a as W, S as N } from "./chunk-AQP2D5EJ-
|
|
2
|
-
import { _ as f, c as t, d as M, l as S, e as P, k as z, ac as _, ad as U, a9 as C, u as F } from "./mermaid-GHXKKRXX-
|
|
1
|
+
import { s as R, a as W, S as N } from "./chunk-AQP2D5EJ-D00bX5Fy.js";
|
|
2
|
+
import { _ as f, c as t, d as M, l as S, e as P, k as z, ac as _, ad as U, a9 as C, u as F } from "./mermaid-GHXKKRXX-Bb3nq6cF.js";
|
|
3
3
|
import { G as O } from "./graph-BZLHvygk.js";
|
|
4
4
|
import { l as J } from "./layout-Bu6nRdWm.js";
|
|
5
5
|
globalThis.process = globalThis.process || { env: {} };
|
|
@@ -263,4 +263,4 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
|
|
|
263
263
|
export {
|
|
264
264
|
ot as diagram
|
|
265
265
|
};
|
|
266
|
-
//# sourceMappingURL=stateDiagram-AJRCARHV-
|
|
266
|
+
//# sourceMappingURL=stateDiagram-AJRCARHV-DFkc559m.js.map
|
package/dist/component/{stateDiagram-v2-BHNVJYJU-CbUih_UR.js → stateDiagram-v2-BHNVJYJU-DyEtRcsV.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as e, b as r, a as s, S as t } from "./chunk-AQP2D5EJ-
|
|
2
|
-
import { _ as l } from "./mermaid-GHXKKRXX-
|
|
1
|
+
import { s as e, b as r, a as s, S as t } from "./chunk-AQP2D5EJ-D00bX5Fy.js";
|
|
2
|
+
import { _ as l } from "./mermaid-GHXKKRXX-Bb3nq6cF.js";
|
|
3
3
|
globalThis.process = globalThis.process || { env: {} };
|
|
4
4
|
globalThis.global = globalThis.global || globalThis;
|
|
5
5
|
var b = {
|
|
@@ -16,4 +16,4 @@ var b = {
|
|
|
16
16
|
export {
|
|
17
17
|
b as diagram
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=stateDiagram-v2-BHNVJYJU-
|
|
19
|
+
//# sourceMappingURL=stateDiagram-v2-BHNVJYJU-DyEtRcsV.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as o, G as gt, af as Rt, ag as Ct, ah as Wt, c as pt, l as E, N as Pt, a7 as Bt, ai as ft, d as U, F as Vt, aj as Ft, B as zt } from "./mermaid-GHXKKRXX-
|
|
2
|
-
import { d as ot } from "./arc-
|
|
1
|
+
import { _ as o, G as gt, af as Rt, ag as Ct, ah as Wt, c as pt, l as E, N as Pt, a7 as Bt, ai as ft, d as U, F as Vt, aj as Ft, B as zt } from "./mermaid-GHXKKRXX-Bb3nq6cF.js";
|
|
2
|
+
import { d as ot } from "./arc-CMhGaHbE.js";
|
|
3
3
|
globalThis.process = globalThis.process || { env: {} };
|
|
4
4
|
globalThis.global = globalThis.global || globalThis;
|
|
5
5
|
var tt = (function() {
|
|
@@ -1055,4 +1055,4 @@ var Qt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
1055
1055
|
export {
|
|
1056
1056
|
me as diagram
|
|
1057
1057
|
};
|
|
1058
|
-
//# sourceMappingURL=timeline-definition-PNZ67QCA-
|
|
1058
|
+
//# sourceMappingURL=timeline-definition-PNZ67QCA-BDLP-x66.js.map
|
package/dist/component/{vennDiagram-CIIHVFJN-IF4AwJuP.js → vennDiagram-CIIHVFJN-Bvhzsn8q.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aX as Gt, s as Wt, g as Kt, t as Ht, q as Xt, a as Yt, b as Zt, _ as w, G as wt, N as Jt, d as ot, ao as Qt, af as $t, ag as te, ah as ee, e as ne, B as se, I as ie, K as oe } from "./mermaid-GHXKKRXX-
|
|
1
|
+
import { aX as Gt, s as Wt, g as Kt, t as Ht, q as Xt, a as Yt, b as Zt, _ as w, G as wt, N as Jt, d as ot, ao as Qt, af as $t, ag as te, ah as ee, e as ne, B as se, I as ie, K as oe } from "./mermaid-GHXKKRXX-Bb3nq6cF.js";
|
|
2
2
|
globalThis.process = globalThis.process || { env: {} };
|
|
3
3
|
globalThis.global = globalThis.global || globalThis;
|
|
4
4
|
const kt = (t, n) => Gt(t, "a", -n), _t = 1e-10;
|
|
@@ -1557,4 +1557,4 @@ var qe = { draw: Ve }, Ge = {
|
|
|
1557
1557
|
export {
|
|
1558
1558
|
Ge as diagram
|
|
1559
1559
|
};
|
|
1560
|
-
//# sourceMappingURL=vennDiagram-CIIHVFJN-
|
|
1560
|
+
//# sourceMappingURL=vennDiagram-CIIHVFJN-Bvhzsn8q.js.map
|
package/dist/component/{wardleyDiagram-YWT4CUSO-Bn-uAkHk.js → wardleyDiagram-YWT4CUSO-SKdyvNF1.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as St, g as Mt, t as Nt, q as Tt, a as zt, b as Lt, _ as u, a4 as At, G as Xt, I as U, l as K, N as Et, e as Yt, B as It, c as j } from "./mermaid-GHXKKRXX-
|
|
2
|
-
import { p as Bt } from "./chunk-4BX2VUAB-
|
|
1
|
+
import { s as St, g as Mt, t as Nt, q as Tt, a as zt, b as Lt, _ as u, a4 as At, G as Xt, I as U, l as K, N as Et, e as Yt, B as It, c as j } from "./mermaid-GHXKKRXX-Bb3nq6cF.js";
|
|
2
|
+
import { p as Bt } from "./chunk-4BX2VUAB-DtucQWno.js";
|
|
3
3
|
import { p as Ft } from "./wardley-L42UT6IY-HA1eSIS_.js";
|
|
4
4
|
globalThis.process = globalThis.process || { env: {} };
|
|
5
5
|
globalThis.global = globalThis.global || globalThis;
|
|
@@ -678,4 +678,4 @@ var Dt = {
|
|
|
678
678
|
export {
|
|
679
679
|
Qt as diagram
|
|
680
680
|
};
|
|
681
|
-
//# sourceMappingURL=wardleyDiagram-YWT4CUSO-
|
|
681
|
+
//# sourceMappingURL=wardleyDiagram-YWT4CUSO-SKdyvNF1.js.map
|
package/dist/component/{xychartDiagram-2RQKCTM6-CvPY-qXp.js → xychartDiagram-2RQKCTM6-DHchnrpW.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as ei, g as si, t as Lt, q as ni, a as ai, b as oi, _ as a, l as Et, N as ri, e as hi, B as li, G as dt, i as ci, I as It, K as ui, a4 as gi, ap as xi, ac as Rt } from "./mermaid-GHXKKRXX-
|
|
1
|
+
import { s as ei, g as si, t as Lt, q as ni, a as ai, b as oi, _ as a, l as Et, N as ri, e as hi, B as li, G as dt, i as ci, I as It, K as ui, a4 as gi, ap as xi, ac as Rt } from "./mermaid-GHXKKRXX-Bb3nq6cF.js";
|
|
2
2
|
import { i as di } from "./init-BOu0eQYQ.js";
|
|
3
3
|
import { o as fi } from "./ordinal-D0x7izaa.js";
|
|
4
|
-
import { l as Dt } from "./linear-
|
|
4
|
+
import { l as Dt } from "./linear-Deqp7k-y.js";
|
|
5
5
|
globalThis.process = globalThis.process || { env: {} };
|
|
6
6
|
globalThis.global = globalThis.global || globalThis;
|
|
7
7
|
function pi(t, i, e) {
|
|
@@ -1372,4 +1372,4 @@ var Ti = /* @__PURE__ */ a(function() {
|
|
|
1372
1372
|
export {
|
|
1373
1373
|
Mi as diagram
|
|
1374
1374
|
};
|
|
1375
|
-
//# sourceMappingURL=xychartDiagram-2RQKCTM6-
|
|
1375
|
+
//# sourceMappingURL=xychartDiagram-2RQKCTM6-DHchnrpW.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BelongThemePalette } from '../../types/public.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Live-call button — shared by the desktop rail (always visible, docked or
|
|
4
|
+
* collapsed) and the mobile bottom nav bar, so the user can call their agent
|
|
5
|
+
* from either chrome. Store-connected and self-contained: idle shows a plain
|
|
6
|
+
* phone; connecting spins; in-call shows a hang-up glyph over a pulsing ring
|
|
7
|
+
* (the "live" animation). Clicking toggles dial / hang-up; errors surface on
|
|
8
|
+
* the CallScreen when the chat surface is visible (audio + state machine run
|
|
9
|
+
* regardless).
|
|
10
|
+
*/
|
|
11
|
+
export declare const CallButton: ({ palette, testId, className, label, callSurfaceHidden, onShowCallSurface, }: {
|
|
12
|
+
palette: BelongThemePalette;
|
|
13
|
+
/** Distinguishes the rail instance from the mobile nav bar instance. */
|
|
14
|
+
testId?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
/** Visible text under the icon (mobile nav tabs carry names; the 52px rail
|
|
17
|
+
* has no room and stays icon-only with the aria-label/tooltip). */
|
|
18
|
+
label?: string;
|
|
19
|
+
/** True when the CallScreen cannot be on screen (chat view hidden or dock
|
|
20
|
+
* collapsed). A live call with the surface hidden means this button
|
|
21
|
+
* RETURNS to the call — hanging up belongs to a screen the user can see. */
|
|
22
|
+
callSurfaceHidden?: boolean;
|
|
23
|
+
/** Navigate so the CallScreen is visible (switch to chat / expand). Called
|
|
24
|
+
* when dialing or returning from a place where the surface is hidden. */
|
|
25
|
+
onShowCallSurface?: () => void;
|
|
26
|
+
}) => import("react").JSX.Element;
|
|
@@ -7,12 +7,15 @@ import { BelongTheme, BelongThemePalette, PresetName } from '../../types/public.
|
|
|
7
7
|
* colour + custom CSS), then Log out. Gradient is brand-driven (Ocean → Deep
|
|
8
8
|
* Sea) via the active palette.
|
|
9
9
|
*/
|
|
10
|
-
export declare function EmbedAvatar({ user, size, theme, palette, side, sessionId, voiceSupported, accent, cssVars, presets, activePreset, onToggleMode, onToggleSide, onAccentChange, onAccentReset, onCssVarsChange, onApplyPreset, onLogout, }: {
|
|
10
|
+
export declare function EmbedAvatar({ user, size, theme, palette, side, menuSide: menuSideOverride, sessionId, voiceSupported, accent, cssVars, presets, activePreset, onToggleMode, onToggleSide, onAccentChange, onAccentReset, onCssVarsChange, onApplyPreset, onLogout, }: {
|
|
11
11
|
user: string | null;
|
|
12
12
|
size?: number;
|
|
13
13
|
theme: BelongTheme;
|
|
14
14
|
palette: BelongThemePalette;
|
|
15
15
|
side: "left" | "right";
|
|
16
|
+
/** Where the menu opens. Defaults to "toward the panel" from the rail edge;
|
|
17
|
+
* the mobile bottom nav bar overrides it to open upward. */
|
|
18
|
+
menuSide?: "left" | "right" | "top";
|
|
16
19
|
/** Active chat session id (null when no conversation is open yet). Shown in
|
|
17
20
|
* the menu under the build stamp and copyable for telemetry correlation. */
|
|
18
21
|
sessionId: string | null;
|
|
@@ -9,12 +9,19 @@ export interface SessionSummary {
|
|
|
9
9
|
* an inline text edit, or delete one via an inline trash → confirm flow. Rename +
|
|
10
10
|
* delete are per-row inline affordances that keep the menu open (BEL-120).
|
|
11
11
|
*/
|
|
12
|
-
export declare function EmbedSessions({ sessions, activeId, theme, side, onNew, onSelect, onDelete, onRename, onOpen, }: {
|
|
12
|
+
export declare function EmbedSessions({ sessions, activeId, theme, side, triggerClassName, triggerLabel, onNew, onSelect, onDelete, onRename, onOpen, }: {
|
|
13
13
|
sessions: readonly SessionSummary[];
|
|
14
14
|
activeId: string | null;
|
|
15
15
|
theme: BelongTheme;
|
|
16
|
-
/** Which way the menu opens — toward the panel from the rail edge
|
|
17
|
-
|
|
16
|
+
/** Which way the menu opens — toward the panel from the rail edge, or
|
|
17
|
+
* upward when the trigger lives in the mobile bottom nav bar. */
|
|
18
|
+
side?: "left" | "right" | "top";
|
|
19
|
+
/** Extra trigger classes — the mobile nav bar bumps the 32px rail trigger
|
|
20
|
+
* to a ≥44px touch target. */
|
|
21
|
+
triggerClassName?: string;
|
|
22
|
+
/** Visible text under the trigger icon (mobile nav names its cells; the
|
|
23
|
+
* rail stays icon-only). */
|
|
24
|
+
triggerLabel?: string;
|
|
18
25
|
onNew: () => void;
|
|
19
26
|
onSelect: (id: string) => void;
|
|
20
27
|
onDelete: (id: string) => void;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { SessionSummary } from './EmbedSessions';
|
|
2
|
+
import { EmbedView } from './EmbedRail';
|
|
3
|
+
import { BelongTheme, BelongThemePalette, PresetName } from '../../types/public.ts';
|
|
4
|
+
/**
|
|
5
|
+
* Bottom nav bar for the MOBILE fullscreen sheet — the phone-width stand-in
|
|
6
|
+
* for the 52px desktop rail (which has no room on a phone). View tabs
|
|
7
|
+
* (chat / files / scheduled), the sessions switcher, the account avatar, and
|
|
8
|
+
* a close chevron. Every cell is a ≥44px touch target; menus open upward.
|
|
9
|
+
*/
|
|
10
|
+
export declare function MobileNavBar({ view, user, theme, palette, sessions, activeId, voiceSupported, accent, cssVars, presets, activePreset, onSelectView, onClose, onToggleMode, onToggleSide, onAccentChange, onAccentReset, onCssVarsChange, onApplyPreset, onLogout, onNewSession, onSelectSession, onDeleteSession, onRenameSession, onSessionsOpen, }: {
|
|
11
|
+
view: EmbedView;
|
|
12
|
+
user: string | null;
|
|
13
|
+
theme: BelongTheme;
|
|
14
|
+
palette: BelongThemePalette;
|
|
15
|
+
sessions: readonly SessionSummary[];
|
|
16
|
+
activeId: string | null;
|
|
17
|
+
voiceSupported: boolean;
|
|
18
|
+
accent: string | null;
|
|
19
|
+
cssVars: Record<string, string>;
|
|
20
|
+
presets: readonly {
|
|
21
|
+
name: PresetName;
|
|
22
|
+
label: string;
|
|
23
|
+
}[];
|
|
24
|
+
activePreset: PresetName;
|
|
25
|
+
onSelectView: (v: EmbedView) => void;
|
|
26
|
+
onClose: () => void;
|
|
27
|
+
onToggleMode: () => void;
|
|
28
|
+
onToggleSide: () => void;
|
|
29
|
+
onAccentChange: (c: string) => void;
|
|
30
|
+
onAccentReset: () => void;
|
|
31
|
+
onCssVarsChange: (v: Record<string, string>) => void;
|
|
32
|
+
onApplyPreset: (name: PresetName) => void;
|
|
33
|
+
onLogout: () => void;
|
|
34
|
+
onNewSession: () => void;
|
|
35
|
+
onSelectSession: (id: string) => void;
|
|
36
|
+
onDeleteSession: (id: string) => void;
|
|
37
|
+
onRenameSession: (id: string, title: string) => void;
|
|
38
|
+
onSessionsOpen?: () => void;
|
|
39
|
+
}): import("react").JSX.Element;
|
package/dist/embed/copy.d.ts
CHANGED
|
@@ -127,9 +127,13 @@ export type DockCopy = {
|
|
|
127
127
|
readonly placeholderDefault: Readonly<Record<DockCopyVariant, string>>;
|
|
128
128
|
readonly placeholderPlan: Readonly<Record<DockCopyVariant, string>>;
|
|
129
129
|
readonly voiceHint: (keyLabel: string) => string;
|
|
130
|
+
/** Mobile variant — no physical keyboard, so no push-to-talk key. */
|
|
131
|
+
readonly voiceHintTouch: string;
|
|
130
132
|
readonly micNotSupported: string;
|
|
131
133
|
readonly micNotConfigured: string;
|
|
132
134
|
readonly micTooltip: (keyLabel: string) => string;
|
|
135
|
+
/** Mobile variant of the mic tooltip — omits the keyboard fallback. */
|
|
136
|
+
readonly micTooltipTouch: string;
|
|
133
137
|
readonly viewPlan: string;
|
|
134
138
|
readonly hidePlan: string;
|
|
135
139
|
};
|
|
@@ -5,6 +5,21 @@
|
|
|
5
5
|
* uses the same resolver so the dock never overlaps host content.
|
|
6
6
|
*/
|
|
7
7
|
export type DockResizeState = "collapsed" | "expanded" | "modal";
|
|
8
|
+
/**
|
|
9
|
+
* Desktop = side-docked panel + rail with a host-body reserve. Mobile = the
|
|
10
|
+
* dock takes the whole viewport as an overlay sheet (a side dock plus reserve
|
|
11
|
+
* would squeeze the host to zero width on a phone).
|
|
12
|
+
*/
|
|
13
|
+
export type DockLayoutMode = "desktop" | "mobile";
|
|
14
|
+
/** Viewports at or below this width get the mobile fullscreen-sheet layout. */
|
|
15
|
+
export declare const MOBILE_LAYOUT_MAX_WIDTH_PX = 640;
|
|
16
|
+
/** Short viewports get the mobile layout too: a rotated phone (e.g. 844×390)
|
|
17
|
+
* is wider than the width breakpoint, but a 52px rail + side panel is
|
|
18
|
+
* unusable at that height. */
|
|
19
|
+
export declare const MOBILE_LAYOUT_MAX_HEIGHT_PX = 480;
|
|
20
|
+
/** The single matchMedia source for the mode — both clauses, OR'd. */
|
|
21
|
+
export declare const MOBILE_LAYOUT_MEDIA_QUERY: string;
|
|
22
|
+
export declare const resolveLayoutMode: (viewportWidthPx: number, viewportHeightPx?: number) => DockLayoutMode;
|
|
8
23
|
/** The always-visible rail strip. Reference spec: 52px. */
|
|
9
24
|
export declare const RAIL_WIDTH_PX = 52;
|
|
10
25
|
/** Fixed panel width in modal state. Reference spec: 760px panel. */
|
|
@@ -17,6 +32,14 @@ export declare const MAX_PANEL_WIDTH_PX = 720;
|
|
|
17
32
|
export declare const clampPanelWidth: (px: number, viewportPx: number) => number;
|
|
18
33
|
/** Total dock width (panel + rail) for a state, given the expanded panel width. */
|
|
19
34
|
export declare const resolveDockWidthPx: (state: DockResizeState, panelWidth: number) => number;
|
|
35
|
+
/**
|
|
36
|
+
* Desktop dock width clamped to the live viewport — mid-size screens (small
|
|
37
|
+
* tablets, half-snapped windows just above the mobile breakpoint) must never
|
|
38
|
+
* get a dock wider than the screen: the 760px modal alone overflows a 768px
|
|
39
|
+
* tablet, and a persisted wide panel can overflow a re-narrowed window.
|
|
40
|
+
* Cap: 90% of the viewport (same budget clampPanelWidth uses for drags).
|
|
41
|
+
*/
|
|
42
|
+
export declare const resolveClampedDockWidthPx: (state: DockResizeState, panelWidth: number, viewportWidthPx: number) => number;
|
|
20
43
|
/**
|
|
21
44
|
* The panel's OWN width for a state. While collapsed this is the width the
|
|
22
45
|
* panel would reveal to (the dock container clips it), so the panel keeps a
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DockLayoutMode } from './dock-layout.ts';
|
|
2
|
+
export declare const peekLayoutMode: () => DockLayoutMode;
|
|
3
|
+
export declare const subscribeLayoutMode: (listener: () => void) => (() => void);
|
|
4
|
+
export declare const useLayoutMode: () => DockLayoutMode;
|
|
5
|
+
/** Test-only: drop the cached media query so a new stub takes effect. */
|
|
6
|
+
export declare const __resetLayoutModeForTest: () => void;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WebRTC transport for live call mode (OpenAI Realtime, speech-to-speech).
|
|
3
3
|
*
|
|
4
|
-
* Mirrors the Deepgram pattern one file over: the browser
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Mirrors the Deepgram pattern one file over: the browser holds a short-lived
|
|
5
|
+
* secret minted by belong-cloud (`POST /v1/voice/call-token`) and negotiates a
|
|
6
|
+
* DIRECT WebRTC media session with the provider — call audio never relays
|
|
7
|
+
* through the backend. The one plain `fetch` in the handshake (the SDP
|
|
8
|
+
* offer/answer exchange) goes through belong-cloud (`POST /v1/voice/call-sdp`)
|
|
9
|
+
* because embedding hosts' CSP `connect-src` allowlists rarely include
|
|
10
|
+
* api.openai.com (Simetrik's doesn't) — the negotiated ICE/DTLS media leg is
|
|
11
|
+
* not governed by `connect-src`, so only the signaling needs the relay.
|
|
7
12
|
*
|
|
8
13
|
* getUserMedia (mic track) ──▶ RTCPeerConnection ──▶ remote audio track
|
|
9
14
|
* │ (autoplay <audio>)
|
|
@@ -308,6 +308,9 @@ export declare const en: {
|
|
|
308
308
|
readonly supportsFormats: "Supports PDF, DOC, MD, TXT, XLSX";
|
|
309
309
|
readonly viewTitleFiles: "Files";
|
|
310
310
|
readonly resizeChat: "Resize chat";
|
|
311
|
+
readonly openAssistant: "Open {{name}}";
|
|
312
|
+
readonly closeAssistant: "Close";
|
|
313
|
+
readonly navCall: "Call";
|
|
311
314
|
};
|
|
312
315
|
readonly aiElements: {
|
|
313
316
|
readonly statusAwaitingApproval: "Awaiting Approval";
|
|
@@ -12,6 +12,9 @@ export declare const appEn: {
|
|
|
12
12
|
readonly supportsFormats: "Supports PDF, DOC, MD, TXT, XLSX";
|
|
13
13
|
readonly viewTitleFiles: "Files";
|
|
14
14
|
readonly resizeChat: "Resize chat";
|
|
15
|
+
readonly openAssistant: "Open {{name}}";
|
|
16
|
+
readonly closeAssistant: "Close";
|
|
17
|
+
readonly navCall: "Call";
|
|
15
18
|
};
|
|
16
19
|
};
|
|
17
20
|
export declare const appEs: {
|
|
@@ -27,6 +30,9 @@ export declare const appEs: {
|
|
|
27
30
|
supportsFormats: string;
|
|
28
31
|
viewTitleFiles: string;
|
|
29
32
|
resizeChat: string;
|
|
33
|
+
openAssistant: string;
|
|
34
|
+
closeAssistant: string;
|
|
35
|
+
navCall: string;
|
|
30
36
|
};
|
|
31
37
|
};
|
|
32
38
|
export declare const appPt: {
|
|
@@ -42,5 +48,8 @@ export declare const appPt: {
|
|
|
42
48
|
supportsFormats: string;
|
|
43
49
|
viewTitleFiles: string;
|
|
44
50
|
resizeChat: string;
|
|
51
|
+
openAssistant: string;
|
|
52
|
+
closeAssistant: string;
|
|
53
|
+
navCall: string;
|
|
45
54
|
};
|
|
46
55
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@belonguniverseai/react-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Belong — embeddable React AI assistant dock. Mount <BelongWidget> in your app tree with getToken dependency-injection auth.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|