@belonguniverseai/react-sdk 0.1.2-test → 0.1.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.
Files changed (77) hide show
  1. package/dist/api/client.d.ts +325 -0
  2. package/dist/api/mutations.d.ts +5 -0
  3. package/dist/app/providers.d.ts +1 -1
  4. package/dist/component/BelongWidget.d.ts +7 -1
  5. package/dist/component/{arc-ClnntNLl.js → arc-Dftg9hbM.js} +2 -2
  6. package/dist/component/{architectureDiagram-3BPJPVTR-D8QFVg9W.js → architectureDiagram-3BPJPVTR-LDQnfAgM.js} +3 -3
  7. package/dist/component/{blockDiagram-GPEHLZMM-DYSn7PMc.js → blockDiagram-GPEHLZMM-7C0jnncw.js} +4 -4
  8. package/dist/component/{c4Diagram-AAUBKEIU-D6rKddOJ.js → c4Diagram-AAUBKEIU-BGEe9CdO.js} +3 -3
  9. package/dist/component/{channel-DW2ManGj.js → channel-CsGW22vj.js} +2 -2
  10. package/dist/component/{chunk-2J33WTMH-B8LRyPCC.js → chunk-2J33WTMH-Dg3NXbVg.js} +2 -2
  11. package/dist/component/{chunk-4BX2VUAB-BIUTQbdt.js → chunk-4BX2VUAB-BDtEKe-l.js} +2 -2
  12. package/dist/component/{chunk-55IACEB6-DXU7hmZ8.js → chunk-55IACEB6-Da2BRT6c.js} +2 -2
  13. package/dist/component/{chunk-727SXJPM-4CPpHs4E.js → chunk-727SXJPM-DhH-ppYY.js} +6 -6
  14. package/dist/component/{chunk-AQP2D5EJ-Dd2So5lz.js → chunk-AQP2D5EJ-D8PxFJHV.js} +4 -4
  15. package/dist/component/{chunk-FMBD7UC4-M2URUA_B.js → chunk-FMBD7UC4--IsNL9At.js} +2 -2
  16. package/dist/component/{chunk-ND2GUHAM--zFug_bl.js → chunk-ND2GUHAM-DbdImadK.js} +2 -2
  17. package/dist/component/{chunk-QZHKN3VN-Lja8gJJ2.js → chunk-QZHKN3VN-6IxJ3-HB.js} +2 -2
  18. package/dist/component/{classDiagram-4FO5ZUOK-ByBdtBMW.js → classDiagram-4FO5ZUOK-BhkVSVk_.js} +3 -3
  19. package/dist/component/{classDiagram-v2-Q7XG4LA2-ByBdtBMW.js → classDiagram-v2-Q7XG4LA2-BhkVSVk_.js} +3 -3
  20. package/dist/component/{cose-bilkent-S5V4N54A-BGLcfJOp.js → cose-bilkent-S5V4N54A-_2z1EHfc.js} +2 -2
  21. package/dist/component/{dagre-BM42HDAG-gUIPqofh.js → dagre-BM42HDAG-DlKG5hsO.js} +2 -2
  22. package/dist/component/{diagram-2AECGRRQ-Ol5RCxQg.js → diagram-2AECGRRQ-CFAaADeR.js} +3 -3
  23. package/dist/component/{diagram-5GNKFQAL-D3TB3Ss7.js → diagram-5GNKFQAL-ZJ957Qm9.js} +4 -4
  24. package/dist/component/{diagram-KO2AKTUF-dDG-kE2H.js → diagram-KO2AKTUF-CROmuIwX.js} +3 -3
  25. package/dist/component/{diagram-LMA3HP47-Dgm3BLKl.js → diagram-LMA3HP47-4YR2hh1P.js} +3 -3
  26. package/dist/component/{diagram-OG6HWLK6-BAmsZpjz.js → diagram-OG6HWLK6-CfsgJnIX.js} +4 -4
  27. package/dist/component/{erDiagram-TEJ5UH35-D9UW1QvG.js → erDiagram-TEJ5UH35-BajpSizj.js} +5 -5
  28. package/dist/component/{flowDiagram-I6XJVG4X-SOEkhuFV.js → flowDiagram-I6XJVG4X-DYfoJvQB.js} +7 -7
  29. package/dist/component/{ganttDiagram-6RSMTGT7-s1eNb9P4.js → ganttDiagram-6RSMTGT7-DxWg1-cU.js} +3 -3
  30. package/dist/component/{gitGraphDiagram-PVQCEYII-D6o45CIG.js → gitGraphDiagram-PVQCEYII-DPfijUuS.js} +4 -4
  31. package/dist/component/{highlighted-body-OFNGDK62-DCWqY_yf.js → highlighted-body-OFNGDK62-BFpReqjo.js} +2 -2
  32. package/dist/component/index.js +2 -2
  33. package/dist/component/{infoDiagram-5YYISTIA-CXHQ6Vnm.js → infoDiagram-5YYISTIA-Cs3ZkSNq.js} +2 -2
  34. package/dist/component/{ishikawaDiagram-YF4QCWOH-BmxO3Gkg.js → ishikawaDiagram-YF4QCWOH-wgyW2oOS.js} +2 -2
  35. package/dist/component/{journeyDiagram-JHISSGLW-C7ys4xde.js → journeyDiagram-JHISSGLW-qvEHDcP8.js} +5 -5
  36. package/dist/component/{kanban-definition-UN3LZRKU-DEEV2Kv6.js → kanban-definition-UN3LZRKU-CS8E5I3H.js} +3 -3
  37. package/dist/component/{linear-BQBvUsOR.js → linear-DSEm-mVJ.js} +2 -2
  38. package/dist/component/{mermaid-GHXKKRXX-1aGP4QQW.js → mermaid-GHXKKRXX-mE-t6fEG.js} +30706 -28006
  39. package/dist/component/{mindmap-definition-RKZ34NQL-i3GAP7VM.js → mindmap-definition-RKZ34NQL-4eLujZip.js} +4 -4
  40. package/dist/component/{pieDiagram-4H26LBE5-DP9mZsP4.js → pieDiagram-4H26LBE5-Bv3aeU7h.js} +4 -4
  41. package/dist/component/{quadrantDiagram-W4KKPZXB-t9x-0vit.js → quadrantDiagram-W4KKPZXB-BlpxPqAT.js} +3 -3
  42. package/dist/component/{requirementDiagram-4Y6WPE33-i6QsEhbZ.js → requirementDiagram-4Y6WPE33-DGG1FxFS.js} +4 -4
  43. package/dist/component/{sankeyDiagram-5OEKKPKP-ThVPBLEW.js → sankeyDiagram-5OEKKPKP-CQ-jfvW-.js} +2 -2
  44. package/dist/component/{sequenceDiagram-3UESZ5HK-BdID8uKT.js → sequenceDiagram-3UESZ5HK-Ck-VbsGz.js} +4 -4
  45. package/dist/component/{stateDiagram-AJRCARHV-DJfc2LKC.js → stateDiagram-AJRCARHV-KlZdFGFQ.js} +3 -3
  46. package/dist/component/{stateDiagram-v2-BHNVJYJU-DP5w8Mzi.js → stateDiagram-v2-BHNVJYJU-Djoz6HMn.js} +3 -3
  47. package/dist/component/{timeline-definition-PNZ67QCA-BJlmSrW0.js → timeline-definition-PNZ67QCA-C3x7MWUx.js} +3 -3
  48. package/dist/component/{vennDiagram-CIIHVFJN-qnqVpoRX.js → vennDiagram-CIIHVFJN-B4SXjWyu.js} +2 -2
  49. package/dist/component/{wardleyDiagram-YWT4CUSO-JyvEkozK.js → wardleyDiagram-YWT4CUSO-B_0Q8QFc.js} +3 -3
  50. package/dist/component/{xychartDiagram-2RQKCTM6-CsTpP9ba.js → xychartDiagram-2RQKCTM6-yIfLkIZO.js} +3 -3
  51. package/dist/components/embed/EmbedRail.d.ts +2 -1
  52. package/dist/components/embed/EmbedSessions.d.ts +6 -4
  53. package/dist/components/embed/MentionInput.d.ts +10 -0
  54. package/dist/dev-modal-repro.d.ts +0 -0
  55. package/dist/embed/auto-embed.d.ts +1 -1
  56. package/dist/embed/dock-layout.d.ts +32 -0
  57. package/dist/embed/locale.d.ts +24 -5
  58. package/dist/i18n/i18n.d.ts +6 -0
  59. package/dist/i18n/index.d.ts +2 -0
  60. package/dist/i18n/messages/en.d.ts +347 -0
  61. package/dist/i18n/messages/es.d.ts +3 -0
  62. package/dist/i18n/messages/surfaces/agentGrant.d.ts +39 -0
  63. package/dist/i18n/messages/surfaces/aiElements.d.ts +101 -0
  64. package/dist/i18n/messages/surfaces/app.d.ts +31 -0
  65. package/dist/i18n/messages/surfaces/embedMisc.d.ts +96 -0
  66. package/dist/i18n/messages/surfaces/feedback.d.ts +19 -0
  67. package/dist/i18n/messages/surfaces/files.d.ts +75 -0
  68. package/dist/i18n/messages/surfaces/header.d.ts +31 -0
  69. package/dist/i18n/messages/surfaces/login.d.ts +17 -0
  70. package/dist/i18n/messages/surfaces/plan.d.ts +35 -0
  71. package/dist/i18n/messages/surfaces/sessions.d.ts +43 -0
  72. package/dist/i18n/messages/surfaces/stream.d.ts +144 -0
  73. package/dist/i18n/messages/surfaces/usage.d.ts +21 -0
  74. package/dist/i18n/messages/types.d.ts +10 -0
  75. package/dist/stream/ai-sdk-part-renderers.d.ts +2 -1
  76. package/dist/types/public.d.ts +9 -4
  77. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { g as oe } from "./chunk-55IACEB6-DXU7hmZ8.js";
2
- import { s as ae } from "./chunk-2J33WTMH-B8LRyPCC.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-1aGP4QQW.js";
1
+ import { g as oe } from "./chunk-55IACEB6-Da2BRT6c.js";
2
+ import { s as ae } from "./chunk-2J33WTMH-Dg3NXbVg.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-mE-t6fEG.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-i3GAP7VM.js.map
833
+ //# sourceMappingURL=mindmap-definition-RKZ34NQL-4eLujZip.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-1aGP4QQW.js";
2
- import { p as gt } from "./chunk-4BX2VUAB-BIUTQbdt.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-mE-t6fEG.js";
2
+ import { p as gt } from "./chunk-4BX2VUAB-BDtEKe-l.js";
3
3
  import { p as dt } from "./wardley-L42UT6IY-HA1eSIS_.js";
4
- import { d as P } from "./arc-ClnntNLl.js";
4
+ import { d as P } from "./arc-Dftg9hbM.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-DP9mZsP4.js.map
166
+ //# sourceMappingURL=pieDiagram-4H26LBE5-Bv3aeU7h.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-1aGP4QQW.js";
2
- import { l as te } from "./linear-BQBvUsOR.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-mE-t6fEG.js";
2
+ import { l as te } from "./linear-DSEm-mVJ.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-t9x-0vit.js.map
1033
+ //# sourceMappingURL=quadrantDiagram-W4KKPZXB-BlpxPqAT.js.map
@@ -1,6 +1,6 @@
1
- import { g as Ge } from "./chunk-55IACEB6-DXU7hmZ8.js";
2
- import { s as ze } from "./chunk-2J33WTMH-B8LRyPCC.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-1aGP4QQW.js";
1
+ import { g as Ge } from "./chunk-55IACEB6-Da2BRT6c.js";
2
+ import { s as ze } from "./chunk-2J33WTMH-Dg3NXbVg.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-mE-t6fEG.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-i6QsEhbZ.js.map
888
+ //# sourceMappingURL=requirementDiagram-4Y6WPE33-DGG1FxFS.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-1aGP4QQW.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-mE-t6fEG.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-ThVPBLEW.js.map
862
+ //# sourceMappingURL=sankeyDiagram-5OEKKPKP-CQ-jfvW-.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-1aGP4QQW.js";
2
- import { a as pr, b as ee, g as dt, d as Er, e as re, f as ae } from "./chunk-ND2GUHAM--zFug_bl.js";
3
- import { I as ur } from "./chunk-QZHKN3VN-Lja8gJJ2.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-mE-t6fEG.js";
2
+ import { a as pr, b as ee, g as dt, d as Er, e as re, f as ae } from "./chunk-ND2GUHAM-DbdImadK.js";
3
+ import { I as ur } from "./chunk-QZHKN3VN-6IxJ3-HB.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-BdID8uKT.js.map
2897
+ //# sourceMappingURL=sequenceDiagram-3UESZ5HK-Ck-VbsGz.js.map
@@ -1,5 +1,5 @@
1
- import { s as R, a as W, S as N } from "./chunk-AQP2D5EJ-Dd2So5lz.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-1aGP4QQW.js";
1
+ import { s as R, a as W, S as N } from "./chunk-AQP2D5EJ-D8PxFJHV.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-mE-t6fEG.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-DJfc2LKC.js.map
266
+ //# sourceMappingURL=stateDiagram-AJRCARHV-KlZdFGFQ.js.map
@@ -1,5 +1,5 @@
1
- import { s as e, b as r, a as s, S as t } from "./chunk-AQP2D5EJ-Dd2So5lz.js";
2
- import { _ as l } from "./mermaid-GHXKKRXX-1aGP4QQW.js";
1
+ import { s as e, b as r, a as s, S as t } from "./chunk-AQP2D5EJ-D8PxFJHV.js";
2
+ import { _ as l } from "./mermaid-GHXKKRXX-mE-t6fEG.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-DP5w8Mzi.js.map
19
+ //# sourceMappingURL=stateDiagram-v2-BHNVJYJU-Djoz6HMn.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-1aGP4QQW.js";
2
- import { d as ot } from "./arc-ClnntNLl.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-mE-t6fEG.js";
2
+ import { d as ot } from "./arc-Dftg9hbM.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-BJlmSrW0.js.map
1058
+ //# sourceMappingURL=timeline-definition-PNZ67QCA-C3x7MWUx.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-1aGP4QQW.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-mE-t6fEG.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-qnqVpoRX.js.map
1560
+ //# sourceMappingURL=vennDiagram-CIIHVFJN-B4SXjWyu.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-1aGP4QQW.js";
2
- import { p as Bt } from "./chunk-4BX2VUAB-BIUTQbdt.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-mE-t6fEG.js";
2
+ import { p as Bt } from "./chunk-4BX2VUAB-BDtEKe-l.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-JyvEkozK.js.map
681
+ //# sourceMappingURL=wardleyDiagram-YWT4CUSO-B_0Q8QFc.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-1aGP4QQW.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-mE-t6fEG.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-BQBvUsOR.js";
4
+ import { l as Dt } from "./linear-DSEm-mVJ.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-CsTpP9ba.js.map
1375
+ //# sourceMappingURL=xychartDiagram-2RQKCTM6-yIfLkIZO.js.map
@@ -9,7 +9,7 @@ export type EmbedView = "chat" | "files";
9
9
  * expand-to-modal — then the collapse toggle. Active fill + brand colours come
10
10
  * from `palette` so a host brand push re-themes everything.
11
11
  */
12
- export declare function EmbedRail({ view, collapsed, user, theme, palette, sessions, activeId, planProgress, speakEnabled, ttsSupported, voiceSupported, accent, cssVars, presets, activePreset, onSelectView, onToggleCollapse, onToggleMode, onToggleSide, onAccentChange, onAccentReset, onCssVarsChange, onApplyPreset, onLogout, onNewSession, onSelectSession, onDeleteSession, onSessionsOpen, onToggleSpeak, onExpand, }: {
12
+ export declare function EmbedRail({ view, collapsed, user, theme, palette, sessions, activeId, planProgress, speakEnabled, ttsSupported, voiceSupported, accent, cssVars, presets, activePreset, onSelectView, onToggleCollapse, onToggleMode, onToggleSide, onAccentChange, onAccentReset, onCssVarsChange, onApplyPreset, onLogout, onNewSession, onSelectSession, onDeleteSession, onRenameSession, onSessionsOpen, onToggleSpeak, onExpand, }: {
13
13
  view: EmbedView;
14
14
  collapsed: boolean;
15
15
  user: string | null;
@@ -43,6 +43,7 @@ export declare function EmbedRail({ view, collapsed, user, theme, palette, sessi
43
43
  onNewSession: () => void;
44
44
  onSelectSession: (id: string) => void;
45
45
  onDeleteSession: (id: string) => void;
46
+ onRenameSession: (id: string, title: string) => void;
46
47
  onSessionsOpen?: () => void;
47
48
  onToggleSpeak: () => void;
48
49
  onExpand: () => void;
@@ -5,11 +5,11 @@ export interface SessionSummary {
5
5
  readonly updatedAt: string;
6
6
  }
7
7
  /**
8
- * Header control to start a new chat, switch to a recent session, or delete
9
- * one via an inline trash → confirm flow. Supports new chat, switch, and
10
- * per-row delete (inline confirm).
8
+ * Header control to start a new chat, switch to a recent session, rename one via
9
+ * an inline text edit, or delete one via an inline trash → confirm flow. Rename +
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, onOpen, }: {
12
+ export declare function EmbedSessions({ sessions, activeId, theme, side, onNew, onSelect, onDelete, onRename, onOpen, }: {
13
13
  sessions: readonly SessionSummary[];
14
14
  activeId: string | null;
15
15
  theme: BelongTheme;
@@ -18,6 +18,8 @@ export declare function EmbedSessions({ sessions, activeId, theme, side, onNew,
18
18
  onNew: () => void;
19
19
  onSelect: (id: string) => void;
20
20
  onDelete: (id: string) => void;
21
+ /** Persist a user-chosen chat name (BEL-120). Only fired for a non-blank change. */
22
+ onRename: (id: string, title: string) => void;
21
23
  /** Fired when the menu opens — the dock refetches the list so it's fresh. */
22
24
  onOpen?: () => void;
23
25
  }): import("react").JSX.Element;
@@ -1,5 +1,15 @@
1
1
  import { KeyboardEvent as ReactKeyboardEvent, Ref } from 'react';
2
2
  import { BelongThemePalette } from '../../types/public.ts';
3
+ /**
4
+ * Is the editor the focused element within its OWN root? The dock mounts in a
5
+ * shadow root, where `el.ownerDocument.activeElement` is the shadow HOST (the dock
6
+ * element), never the inner editor — so a document-level focus check always reads
7
+ * "not focused", the caret-restore in the controlled-sync effect is skipped, and
8
+ * the caret collapses to offset 0 on every Shift+Enter / paste (BEL-94).
9
+ * `getRootNode()` returns the ShadowRoot (or Document in the light DOM); both
10
+ * expose `activeElement` scoped to that tree, so this holds in either mount.
11
+ */
12
+ export declare const isEditorFocused: (el: HTMLElement) => boolean;
3
13
  export type MentionInputHandle = {
4
14
  focus: () => void;
5
15
  getCaret: () => number | null;
File without changes
@@ -4,7 +4,7 @@
4
4
  * Lets a host drop the dock in with a single tag and no glue JS:
5
5
  *
6
6
  * <script src="https://…/belong-a3s-sdk.js" id="belong-sdk-script"
7
- * data-backend="https://api.example.com"></script>
7
+ * data-backend="https://api.example.com" data-locale="es"></script>
8
8
  *
9
9
  * On load we find that tag, read `data-backend`, and — for hosts that sign the
10
10
  * user in with Auth0 (e.g. Simetrik) — read the user's EXISTING access token
@@ -24,6 +24,38 @@ export declare const resolveDockWidthPx: (state: DockResizeState, panelWidth: nu
24
24
  * reflow of text at every intermediate width.
25
25
  */
26
26
  export declare const resolvePanelWidthPx: (state: DockResizeState, panelWidth: number) => number;
27
+ /** Clearance a host modal needs from the dock before we consider it clear. */
28
+ export declare const HOST_MODAL_GUTTER_PX = 16;
29
+ /**
30
+ * BEL-112: would a host modal at `rect` land under a dock reserving
31
+ * `reservePx` on `side` of a `viewportWidthPx` viewport? Pure geometry — the
32
+ * caller decides what to do about it (yield: collapse to the rail).
33
+ */
34
+ export declare const hostModalOverlapsReserve: (rect: {
35
+ readonly left: number;
36
+ readonly right: number;
37
+ }, viewportWidthPx: number, side: "left" | "right", reservePx: number) => boolean;
38
+ /**
39
+ * BEL-112 "side to side": the signed `margin-left` (px) that pushes a host
40
+ * modal at `rect` (its UNSHIFTED position) out from under the dock — negative
41
+ * shifts left for a right dock, positive shifts right for a left dock. 0 when
42
+ * it's already clear. Margin composes with the host's own `left: 50%;
43
+ * translateX(-50%)` centering AND its open/close transform animations,
44
+ * so the push never fights either.
45
+ */
46
+ export declare const resolveHostModalShiftPx: (rect: {
47
+ readonly left: number;
48
+ readonly right: number;
49
+ }, viewportWidthPx: number, side: "left" | "right", reservePx: number) => number;
50
+ /**
51
+ * Can the modal clear the dock by shifting alone — i.e. after the shift it
52
+ * still sits fully on-screen (a gutter from the far edge)? When false the
53
+ * dock must yield instead (collapse to the rail).
54
+ */
55
+ export declare const canHostModalFitBesideDock: (rect: {
56
+ readonly left: number;
57
+ readonly right: number;
58
+ }, viewportWidthPx: number, side: "left" | "right", reservePx: number) => boolean;
27
59
  /** Collapse toggle: any open state → collapsed; collapsed → expanded. */
28
60
  export declare const nextOnToggleCollapse: (state: DockResizeState) => DockResizeState;
29
61
  /** Modal toggle: expanded ↔ modal; no-op while collapsed. */
@@ -1,18 +1,37 @@
1
1
  import { BelongLocale } from '../types/public.ts';
2
2
  export type Locale = BelongLocale;
3
3
  export declare const DEFAULT_LOCALE: Locale;
4
- /** Set the host/tenant default locale (from `init`); user choice still wins. */
4
+ /** Narrow an untrusted value (attribute, storage, navigator) to a Locale. */
5
+ export declare const parseLocale: (value: unknown) => Locale | null;
6
+ /**
7
+ * Declarative host/tenant default (from `init` / the React `locale` prop).
8
+ * The FIRST call seeds the deployment default — a stored user choice still
9
+ * wins. A LATER call with a different value is the host switching language
10
+ * at runtime (BEL-140): it drops the user override so the switch is visible.
11
+ * Re-applying the same value (React effect re-runs, re-`init`) is a no-op.
12
+ */
5
13
  export declare const configureLocale: (locale: Locale | undefined) => void;
14
+ /**
15
+ * Imperative host switch (`belong.setLocale`, a `data-locale` attribute flip).
16
+ * Always applies and drops the user override — the host just told us the page
17
+ * language changed NOW.
18
+ */
19
+ export declare const setHostLocale: (locale: Locale) => void;
6
20
  export declare const subscribeLocale: (listener: () => void) => (() => void);
7
- /** The effective locale: user choice, else host default, else English. */
21
+ /** The effective locale: user choice host locale browser ▸ English. */
8
22
  export declare const peekLocale: () => Locale;
9
23
  /** The user's explicit choice, or null when none (host default applies). */
10
24
  export declare const peekUserLocale: () => Locale | null;
11
- /** Persist the user's language choice and notify subscribers. */
25
+ /** Persist the user's in-dock language choice and notify subscribers. */
12
26
  export declare const setUserLocale: (locale: Locale) => void;
13
- /** Drop the user override (back to the host default / English). */
27
+ /** Drop the user override (back to the host default / browser / English). */
14
28
  export declare const clearUserLocale: () => void;
15
29
  /** `useSyncExternalStore` hook — the effective locale, re-rendering on change. */
16
30
  export declare const useLocale: () => Locale;
17
- /** Test-only: clear listeners + host default and re-seed the user choice. */
31
+ /**
32
+ * Test-only: reset host locale and re-seed the user choice from storage.
33
+ * Deliberately KEEPS the listener set — the i18next instance (`@sdk/i18n`)
34
+ * subscribes once at module load, and clearing it would silently detach the
35
+ * catalogs from the store for the rest of the test file.
36
+ */
18
37
  export declare const __resetLocaleForTest: () => void;
@@ -0,0 +1,6 @@
1
+ import { default as i18next } from 'i18next';
2
+ import { Locale } from '../embed/locale.ts';
3
+ export type { Locale };
4
+ /** The current locale (narrowed; falls back to English for any odd value). */
5
+ export declare const getLocale: () => Locale;
6
+ export { i18next };
@@ -0,0 +1,2 @@
1
+ export { i18next, getLocale, type Locale } from './i18n.ts';
2
+ export { useTranslation, I18nextProvider } from 'react-i18next';