@belonguniverseai/react-sdk 0.1.4 → 0.1.5

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.
Files changed (51) hide show
  1. package/dist/component/BelongWidget.d.ts +31 -1
  2. package/dist/component/{arc-BEnKmFiH.js → arc-qZMtTEQp.js} +2 -2
  3. package/dist/component/{architectureDiagram-3BPJPVTR-qrW4PiqE.js → architectureDiagram-3BPJPVTR-CtO601Ty.js} +3 -3
  4. package/dist/component/{blockDiagram-GPEHLZMM-Cy83RTvZ.js → blockDiagram-GPEHLZMM-fKkEUEDS.js} +4 -4
  5. package/dist/component/{c4Diagram-AAUBKEIU-DA1KAAqR.js → c4Diagram-AAUBKEIU-KqgmAa9H.js} +3 -3
  6. package/dist/component/{channel-S3CulQua.js → channel-Cd6udgmU.js} +2 -2
  7. package/dist/component/{chunk-2J33WTMH-B3IpUX0y.js → chunk-2J33WTMH-MaLtoDSx.js} +2 -2
  8. package/dist/component/{chunk-4BX2VUAB-TXwXVoCn.js → chunk-4BX2VUAB-DdDabPei.js} +2 -2
  9. package/dist/component/{chunk-55IACEB6-TgAuWAzl.js → chunk-55IACEB6-DHQfY7ay.js} +2 -2
  10. package/dist/component/{chunk-727SXJPM-CRzAhEpU.js → chunk-727SXJPM-DIUibY9s.js} +6 -6
  11. package/dist/component/{chunk-AQP2D5EJ-BGyYD9fu.js → chunk-AQP2D5EJ-Bohmsf7Z.js} +4 -4
  12. package/dist/component/{chunk-FMBD7UC4-DMPGLPzn.js → chunk-FMBD7UC4-CiCh8Wxm.js} +2 -2
  13. package/dist/component/{chunk-ND2GUHAM-D4Pq2Sbn.js → chunk-ND2GUHAM-DLKe9Qxr.js} +2 -2
  14. package/dist/component/{chunk-QZHKN3VN-pAuUtuaS.js → chunk-QZHKN3VN-BEosEHjT.js} +2 -2
  15. package/dist/component/{classDiagram-4FO5ZUOK-Cfk5JVma.js → classDiagram-4FO5ZUOK-5yoauZso.js} +3 -3
  16. package/dist/component/{classDiagram-v2-Q7XG4LA2-Cfk5JVma.js → classDiagram-v2-Q7XG4LA2-5yoauZso.js} +3 -3
  17. package/dist/component/{cose-bilkent-S5V4N54A-DDqAk-Nd.js → cose-bilkent-S5V4N54A-ZvjOc5yF.js} +2 -2
  18. package/dist/component/{dagre-BM42HDAG-CRWiZgwY.js → dagre-BM42HDAG-BirvIeWT.js} +2 -2
  19. package/dist/component/{diagram-2AECGRRQ-vfIORQjw.js → diagram-2AECGRRQ-DbK75uYi.js} +3 -3
  20. package/dist/component/{diagram-5GNKFQAL-BrdNWhYp.js → diagram-5GNKFQAL-Xyau_WDx.js} +4 -4
  21. package/dist/component/{diagram-KO2AKTUF-BzvQZ4om.js → diagram-KO2AKTUF-jGJhlVoS.js} +3 -3
  22. package/dist/component/{diagram-LMA3HP47-ByWVR7eR.js → diagram-LMA3HP47-BIZKHEj8.js} +3 -3
  23. package/dist/component/{diagram-OG6HWLK6-DFJUF0-3.js → diagram-OG6HWLK6-SsKVgkRq.js} +4 -4
  24. package/dist/component/{erDiagram-TEJ5UH35-h-b8M9my.js → erDiagram-TEJ5UH35-CD_3Nxu_.js} +5 -5
  25. package/dist/component/{flowDiagram-I6XJVG4X-Bs5-0VOV.js → flowDiagram-I6XJVG4X-Dim5dbSa.js} +7 -7
  26. package/dist/component/{ganttDiagram-6RSMTGT7-BFOggcmT.js → ganttDiagram-6RSMTGT7-BHK-3XlP.js} +3 -3
  27. package/dist/component/{gitGraphDiagram-PVQCEYII-DqyxmsbF.js → gitGraphDiagram-PVQCEYII-Ckff9fHa.js} +4 -4
  28. package/dist/component/{highlighted-body-OFNGDK62-Bdj8cutJ.js → highlighted-body-OFNGDK62-pHPkIg3d.js} +2 -2
  29. package/dist/component/index.js +1 -1
  30. package/dist/component/{infoDiagram-5YYISTIA-8md68U3E.js → infoDiagram-5YYISTIA-Dp_rhKDP.js} +2 -2
  31. package/dist/component/{ishikawaDiagram-YF4QCWOH-C3xT9wjK.js → ishikawaDiagram-YF4QCWOH-Ch_zRlUM.js} +2 -2
  32. package/dist/component/{journeyDiagram-JHISSGLW-BbHXf52q.js → journeyDiagram-JHISSGLW-DLWP05FC.js} +5 -5
  33. package/dist/component/{kanban-definition-UN3LZRKU-Xcxe9Aqi.js → kanban-definition-UN3LZRKU-BRgTurbj.js} +3 -3
  34. package/dist/component/{linear-tnf14jhv.js → linear-b7BWY2Ku.js} +2 -2
  35. package/dist/component/{mermaid-GHXKKRXX-DRKI1NOg.js → mermaid-GHXKKRXX-BU0A6vGx.js} +12724 -12702
  36. package/dist/component/{mindmap-definition-RKZ34NQL-DT2YOYJT.js → mindmap-definition-RKZ34NQL-BgBw2ubB.js} +4 -4
  37. package/dist/component/{pieDiagram-4H26LBE5-DnaT-EHy.js → pieDiagram-4H26LBE5-Dr-5pVKk.js} +4 -4
  38. package/dist/component/{quadrantDiagram-W4KKPZXB-Chj0SIr_.js → quadrantDiagram-W4KKPZXB-BG4QvalE.js} +3 -3
  39. package/dist/component/{requirementDiagram-4Y6WPE33-C8P86Vfk.js → requirementDiagram-4Y6WPE33-BEJzZeiL.js} +4 -4
  40. package/dist/component/{sankeyDiagram-5OEKKPKP-BTV3aQxb.js → sankeyDiagram-5OEKKPKP-0Oohwww8.js} +2 -2
  41. package/dist/component/{sequenceDiagram-3UESZ5HK-CszXtNuQ.js → sequenceDiagram-3UESZ5HK-D-GdC1ck.js} +4 -4
  42. package/dist/component/{stateDiagram-AJRCARHV-BPKVLcMj.js → stateDiagram-AJRCARHV-DhNmn4mf.js} +3 -3
  43. package/dist/component/{stateDiagram-v2-BHNVJYJU-CAAXRt1C.js → stateDiagram-v2-BHNVJYJU-XFoNYMc3.js} +3 -3
  44. package/dist/component/{timeline-definition-PNZ67QCA-CqzXrhgH.js → timeline-definition-PNZ67QCA-CEOHBCWh.js} +3 -3
  45. package/dist/component/{vennDiagram-CIIHVFJN-Cvb9lpke.js → vennDiagram-CIIHVFJN-BLCN_trc.js} +2 -2
  46. package/dist/component/{wardleyDiagram-YWT4CUSO-BzPLaYx7.js → wardleyDiagram-YWT4CUSO-BbDSTDli.js} +3 -3
  47. package/dist/component/{xychartDiagram-2RQKCTM6-C50_ldFc.js → xychartDiagram-2RQKCTM6-BHKWkvbW.js} +3 -3
  48. package/dist/embed/global.d.ts +7 -4
  49. package/dist/embed/workspace-scope.d.ts +15 -4
  50. package/dist/types/public.d.ts +7 -4
  51. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { g as oe } from "./chunk-55IACEB6-TgAuWAzl.js";
2
- import { s as ae } from "./chunk-2J33WTMH-B3IpUX0y.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-DRKI1NOg.js";
1
+ import { g as oe } from "./chunk-55IACEB6-DHQfY7ay.js";
2
+ import { s as ae } from "./chunk-2J33WTMH-MaLtoDSx.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-BU0A6vGx.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-DT2YOYJT.js.map
833
+ //# sourceMappingURL=mindmap-definition-RKZ34NQL-BgBw2ubB.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-DRKI1NOg.js";
2
- import { p as gt } from "./chunk-4BX2VUAB-TXwXVoCn.js";
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-BU0A6vGx.js";
2
+ import { p as gt } from "./chunk-4BX2VUAB-DdDabPei.js";
3
3
  import { p as dt } from "./wardley-L42UT6IY-HA1eSIS_.js";
4
- import { d as P } from "./arc-BEnKmFiH.js";
4
+ import { d as P } from "./arc-qZMtTEQp.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-DnaT-EHy.js.map
166
+ //# sourceMappingURL=pieDiagram-4H26LBE5-Dr-5pVKk.js.map
@@ -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-DRKI1NOg.js";
2
- import { l as te } from "./linear-tnf14jhv.js";
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-BU0A6vGx.js";
2
+ import { l as te } from "./linear-b7BWY2Ku.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-Chj0SIr_.js.map
1033
+ //# sourceMappingURL=quadrantDiagram-W4KKPZXB-BG4QvalE.js.map
@@ -1,6 +1,6 @@
1
- import { g as Ge } from "./chunk-55IACEB6-TgAuWAzl.js";
2
- import { s as ze } from "./chunk-2J33WTMH-B3IpUX0y.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-DRKI1NOg.js";
1
+ import { g as Ge } from "./chunk-55IACEB6-DHQfY7ay.js";
2
+ import { s as ze } from "./chunk-2J33WTMH-MaLtoDSx.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-BU0A6vGx.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-C8P86Vfk.js.map
888
+ //# sourceMappingURL=requirementDiagram-4Y6WPE33-BEJzZeiL.js.map
@@ -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-DRKI1NOg.js";
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-BU0A6vGx.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-BTV3aQxb.js.map
862
+ //# sourceMappingURL=sankeyDiagram-5OEKKPKP-0Oohwww8.js.map
@@ -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-DRKI1NOg.js";
2
- import { a as pr, b as ee, g as dt, d as Er, e as re, f as ae } from "./chunk-ND2GUHAM-D4Pq2Sbn.js";
3
- import { I as ur } from "./chunk-QZHKN3VN-pAuUtuaS.js";
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-BU0A6vGx.js";
2
+ import { a as pr, b as ee, g as dt, d as Er, e as re, f as ae } from "./chunk-ND2GUHAM-DLKe9Qxr.js";
3
+ import { I as ur } from "./chunk-QZHKN3VN-BEosEHjT.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-CszXtNuQ.js.map
2897
+ //# sourceMappingURL=sequenceDiagram-3UESZ5HK-D-GdC1ck.js.map
@@ -1,5 +1,5 @@
1
- import { s as R, a as W, S as N } from "./chunk-AQP2D5EJ-BGyYD9fu.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-DRKI1NOg.js";
1
+ import { s as R, a as W, S as N } from "./chunk-AQP2D5EJ-Bohmsf7Z.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-BU0A6vGx.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-BPKVLcMj.js.map
266
+ //# sourceMappingURL=stateDiagram-AJRCARHV-DhNmn4mf.js.map
@@ -1,5 +1,5 @@
1
- import { s as e, b as r, a as s, S as t } from "./chunk-AQP2D5EJ-BGyYD9fu.js";
2
- import { _ as l } from "./mermaid-GHXKKRXX-DRKI1NOg.js";
1
+ import { s as e, b as r, a as s, S as t } from "./chunk-AQP2D5EJ-Bohmsf7Z.js";
2
+ import { _ as l } from "./mermaid-GHXKKRXX-BU0A6vGx.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-CAAXRt1C.js.map
19
+ //# sourceMappingURL=stateDiagram-v2-BHNVJYJU-XFoNYMc3.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-DRKI1NOg.js";
2
- import { d as ot } from "./arc-BEnKmFiH.js";
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-BU0A6vGx.js";
2
+ import { d as ot } from "./arc-qZMtTEQp.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-CqzXrhgH.js.map
1058
+ //# sourceMappingURL=timeline-definition-PNZ67QCA-CEOHBCWh.js.map
@@ -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-DRKI1NOg.js";
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-BU0A6vGx.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-Cvb9lpke.js.map
1560
+ //# sourceMappingURL=vennDiagram-CIIHVFJN-BLCN_trc.js.map
@@ -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-DRKI1NOg.js";
2
- import { p as Bt } from "./chunk-4BX2VUAB-TXwXVoCn.js";
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-BU0A6vGx.js";
2
+ import { p as Bt } from "./chunk-4BX2VUAB-DdDabPei.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-BzPLaYx7.js.map
681
+ //# sourceMappingURL=wardleyDiagram-YWT4CUSO-BbDSTDli.js.map
@@ -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-DRKI1NOg.js";
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-BU0A6vGx.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-tnf14jhv.js";
4
+ import { l as Dt } from "./linear-b7BWY2Ku.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-C50_ldFc.js.map
1375
+ //# sourceMappingURL=xychartDiagram-2RQKCTM6-BHKWkvbW.js.map
@@ -29,10 +29,13 @@ export declare const peekPanelEnabled: () => boolean;
29
29
  */
30
30
  export declare const peekAgentGrantConfig: () => AgentGrantConfig | null;
31
31
  /**
32
- * The CURRENT scope: resolved by the workspace-scope store (host override ▸
33
- * live URL param ▸ static init value — see embed/workspace-scope.ts, which
34
- * the whole dock keys off). Null = no grant config or no workspace in effect
35
- * grant surface hidden.
32
+ * The CURRENT grant scope. A workspace in effect (host override ▸ live URL param
33
+ * ▸ static init value — see embed/workspace-scope.ts) IS the trigger: the dock
34
+ * then offers its delegated CLI grant for that workspace, so a host that only
35
+ * sets a workspace (the widget's `workspace` prop / `setWorkspace`) gets a
36
+ * per-workspace grant WITHOUT naming a provider. The provider comes from an
37
+ * explicit `agentGrant` config when the host set one (e.g. a non-default
38
+ * provider), else the default. Null = no workspace in effect → surface hidden.
36
39
  */
37
40
  export declare const resolveAgentGrantScope: () => {
38
41
  provider: string;
@@ -34,11 +34,22 @@ export declare const configureWorkspaceScope: (input: {
34
34
  readonly staticId?: string | null;
35
35
  }) => void;
36
36
  /**
37
- * Imperative host switch (`belong.setWorkspace`) wins over URL tracking
38
- * until cleared with `null`, and notifies synchronously (no poll latency).
39
- * An invalid id is rejected with a warning and leaves the scope unchanged —
40
- * a host bug must never silently break the dock.
37
+ * Imperative host switch (`belong.setWorkspace` / the widget's `workspace`
38
+ * prop) wins over URL tracking, notifies synchronously (no poll latency).
39
+ * Calling it AT ALL engages tracking: a `null` id means "tracking on, no
40
+ * workspace loaded" `missing` (scoped surfaces disable) when there's no
41
+ * URL/static to fall back to, NOT the legacy unscoped view. An invalid id is
42
+ * rejected with a warning and leaves the scope unchanged — a host bug must
43
+ * never silently break the dock. Use {@link clearHostWorkspace} to fully
44
+ * disengage (component unmount).
41
45
  */
42
46
  export declare const setHostWorkspace: (id: string | null) => void;
47
+ /**
48
+ * Fully disengage imperative workspace control (component unmount, or a host
49
+ * that stopped passing the `workspace` prop): drop the override AND stop
50
+ * tracking, so the scope falls back to any URL/static config, or
51
+ * `unconfigured` when there is none. Leaves the URL/static config untouched.
52
+ */
53
+ export declare const clearHostWorkspace: () => void;
43
54
  /** Test-only: reset config + override and re-seed the snapshot. Keeps listeners. */
44
55
  export declare const __resetWorkspaceScopeForTest: () => void;
@@ -131,10 +131,13 @@ export type BelongInitInput = {
131
131
  readonly ttsChunkGapMs?: number;
132
132
  };
133
133
  /**
134
- * Agent-grant (delegated CLI session) host context. When `scopeExternalId`
135
- * is set — the host's active workspace id on the provider's side the dock
136
- * offers the consent card ("allow the agent to act on my behalf") and shows
137
- * the session state. Omit it and the grant surface stays hidden.
134
+ * Agent-grant (delegated CLI session) host context. The grant surface follows
135
+ * the ACTIVE WORKSPACE: whenever one is in scopevia `scopeExternalId` /
136
+ * `scopeUrlParam` here, or `setWorkspace` the dock offers the consent card
137
+ * ("allow the agent to act on my behalf") for it, using the default provider.
138
+ * This object is OPTIONAL: set it only to pick a non-default `provider` or to
139
+ * track the workspace from a URL param. With no workspace in scope at all, the
140
+ * grant surface stays hidden.
138
141
  */
139
142
  readonly agentGrant?: {
140
143
  /** Grant provider key. Defaults to `"simetrik"`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@belonguniverseai/react-sdk",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
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",