@belonguniverseai/react-sdk 0.1.5 → 0.1.7

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 (109) hide show
  1. package/dist/api/agent-grants.d.ts +18 -23
  2. package/dist/api/client.d.ts +1215 -75
  3. package/dist/api/query-keys.d.ts +5 -0
  4. package/dist/api/task-schedules.d.ts +313 -0
  5. package/dist/app/dock-outlet.d.ts +18 -0
  6. package/dist/browser/control-channel.d.ts +9 -0
  7. package/dist/component/{arc-qZMtTEQp.js → arc-D26RO7cK.js} +2 -2
  8. package/dist/component/{architectureDiagram-3BPJPVTR-CtO601Ty.js → architectureDiagram-3BPJPVTR-uiXhyHDF.js} +3 -3
  9. package/dist/component/{blockDiagram-GPEHLZMM-fKkEUEDS.js → blockDiagram-GPEHLZMM-Bm1HEObg.js} +4 -4
  10. package/dist/component/{c4Diagram-AAUBKEIU-KqgmAa9H.js → c4Diagram-AAUBKEIU-BypAuFIJ.js} +3 -3
  11. package/dist/component/{channel-Cd6udgmU.js → channel-MvxNOfHS.js} +2 -2
  12. package/dist/component/{chunk-2J33WTMH-MaLtoDSx.js → chunk-2J33WTMH-MxAoh_Eu.js} +2 -2
  13. package/dist/component/{chunk-4BX2VUAB-DdDabPei.js → chunk-4BX2VUAB-BHpzlyda.js} +2 -2
  14. package/dist/component/{chunk-55IACEB6-DHQfY7ay.js → chunk-55IACEB6-igXCAYDB.js} +2 -2
  15. package/dist/component/{chunk-727SXJPM-DIUibY9s.js → chunk-727SXJPM-BPq4W66f.js} +6 -6
  16. package/dist/component/{chunk-AQP2D5EJ-Bohmsf7Z.js → chunk-AQP2D5EJ-Y9AksdXf.js} +4 -4
  17. package/dist/component/{chunk-FMBD7UC4-CiCh8Wxm.js → chunk-FMBD7UC4-DHrfutng.js} +2 -2
  18. package/dist/component/{chunk-ND2GUHAM-DLKe9Qxr.js → chunk-ND2GUHAM-Ch9c4OTL.js} +2 -2
  19. package/dist/component/{chunk-QZHKN3VN-BEosEHjT.js → chunk-QZHKN3VN-DCe5OD8b.js} +2 -2
  20. package/dist/component/{classDiagram-4FO5ZUOK-5yoauZso.js → classDiagram-4FO5ZUOK-wW5NdcaU.js} +3 -3
  21. package/dist/component/{classDiagram-v2-Q7XG4LA2-5yoauZso.js → classDiagram-v2-Q7XG4LA2-wW5NdcaU.js} +3 -3
  22. package/dist/component/{cose-bilkent-S5V4N54A-ZvjOc5yF.js → cose-bilkent-S5V4N54A-BkRr9q6q.js} +2 -2
  23. package/dist/component/{dagre-BM42HDAG-BirvIeWT.js → dagre-BM42HDAG-BaUecTLo.js} +2 -2
  24. package/dist/component/{diagram-2AECGRRQ-DbK75uYi.js → diagram-2AECGRRQ-BaAo02me.js} +3 -3
  25. package/dist/component/{diagram-5GNKFQAL-Xyau_WDx.js → diagram-5GNKFQAL-DKerYV9c.js} +4 -4
  26. package/dist/component/{diagram-KO2AKTUF-jGJhlVoS.js → diagram-KO2AKTUF-jeKVSHu1.js} +3 -3
  27. package/dist/component/{diagram-LMA3HP47-BIZKHEj8.js → diagram-LMA3HP47-wsR18sOb.js} +3 -3
  28. package/dist/component/{diagram-OG6HWLK6-SsKVgkRq.js → diagram-OG6HWLK6-D6kALGxL.js} +4 -4
  29. package/dist/component/{erDiagram-TEJ5UH35-CD_3Nxu_.js → erDiagram-TEJ5UH35-CQb_EY79.js} +5 -5
  30. package/dist/component/{flowDiagram-I6XJVG4X-Dim5dbSa.js → flowDiagram-I6XJVG4X-B52f9IhS.js} +7 -7
  31. package/dist/component/{ganttDiagram-6RSMTGT7-BHK-3XlP.js → ganttDiagram-6RSMTGT7-B6szKgV7.js} +3 -3
  32. package/dist/component/{gitGraphDiagram-PVQCEYII-Ckff9fHa.js → gitGraphDiagram-PVQCEYII-Cso6Oo6v.js} +4 -4
  33. package/dist/component/{highlighted-body-OFNGDK62-pHPkIg3d.js → highlighted-body-OFNGDK62-CD0QHket.js} +2 -2
  34. package/dist/component/index-Dips44uG.js +2208 -0
  35. package/dist/component/index.js +2 -2
  36. package/dist/component/{infoDiagram-5YYISTIA-Dp_rhKDP.js → infoDiagram-5YYISTIA-BGNkBFoP.js} +2 -2
  37. package/dist/component/{ishikawaDiagram-YF4QCWOH-Ch_zRlUM.js → ishikawaDiagram-YF4QCWOH-CDk8KSNE.js} +2 -2
  38. package/dist/component/{journeyDiagram-JHISSGLW-DLWP05FC.js → journeyDiagram-JHISSGLW-lPfVcAq5.js} +5 -5
  39. package/dist/component/{kanban-definition-UN3LZRKU-BRgTurbj.js → kanban-definition-UN3LZRKU-DN_BkNHr.js} +3 -3
  40. package/dist/component/{linear-b7BWY2Ku.js → linear-C9Fv-7qu.js} +2 -2
  41. package/dist/component/{mermaid-GHXKKRXX-BU0A6vGx.js → mermaid-GHXKKRXX-bJrxMXXe.js} +36152 -32029
  42. package/dist/component/{mindmap-definition-RKZ34NQL-BgBw2ubB.js → mindmap-definition-RKZ34NQL-Duh3XRoZ.js} +4 -4
  43. package/dist/component/{pieDiagram-4H26LBE5-Dr-5pVKk.js → pieDiagram-4H26LBE5-BkKLjdAW.js} +4 -4
  44. package/dist/component/{quadrantDiagram-W4KKPZXB-BG4QvalE.js → quadrantDiagram-W4KKPZXB-DAvb8fUN.js} +3 -3
  45. package/dist/component/{requirementDiagram-4Y6WPE33-BEJzZeiL.js → requirementDiagram-4Y6WPE33-BtRuiyP2.js} +4 -4
  46. package/dist/component/{sankeyDiagram-5OEKKPKP-0Oohwww8.js → sankeyDiagram-5OEKKPKP-N0AD4yPI.js} +2 -2
  47. package/dist/component/{sequenceDiagram-3UESZ5HK-D-GdC1ck.js → sequenceDiagram-3UESZ5HK-BHfCscqu.js} +4 -4
  48. package/dist/component/{stateDiagram-AJRCARHV-DhNmn4mf.js → stateDiagram-AJRCARHV-CogCGofy.js} +3 -3
  49. package/dist/component/{stateDiagram-v2-BHNVJYJU-XFoNYMc3.js → stateDiagram-v2-BHNVJYJU-B1mCX7fI.js} +3 -3
  50. package/dist/component/{timeline-definition-PNZ67QCA-CEOHBCWh.js → timeline-definition-PNZ67QCA-CCbxae4K.js} +3 -3
  51. package/dist/component/{vennDiagram-CIIHVFJN-BLCN_trc.js → vennDiagram-CIIHVFJN-4A3Z5NhT.js} +2 -2
  52. package/dist/component/{wardleyDiagram-YWT4CUSO-BbDSTDli.js → wardleyDiagram-YWT4CUSO-D2FUxcv8.js} +3 -3
  53. package/dist/component/{xychartDiagram-2RQKCTM6-BHKWkvbW.js → xychartDiagram-2RQKCTM6-DELqVNap.js} +3 -3
  54. package/dist/components/embed/AgentGrantAutoConnect.d.ts +1 -0
  55. package/dist/components/embed/CapabilityHints.d.ts +4 -1
  56. package/dist/components/embed/EmbedConversation.d.ts +11 -11
  57. package/dist/components/embed/EmbedRail.d.ts +1 -1
  58. package/dist/components/embed/FilePreview.d.ts +7 -2
  59. package/dist/components/embed/FilePreviewDialog.d.ts +6 -2
  60. package/dist/components/embed/HtmlPreviewFrame.d.ts +7 -0
  61. package/dist/components/embed/MentionInput.d.ts +8 -1
  62. package/dist/components/embed/PreviewContent.d.ts +9 -21
  63. package/dist/components/embed/WelcomeIntro.d.ts +5 -3
  64. package/dist/components/embed/WelcomeSkills.d.ts +7 -0
  65. package/dist/components/embed/file-preview-kind.d.ts +7 -3
  66. package/dist/components/embed/onboarding-story-dock.d.ts +5 -2
  67. package/dist/components/embed/preview-content-kind.d.ts +5 -7
  68. package/dist/components/embed/use-inline-preview-url.d.ts +20 -0
  69. package/dist/components/scheduled/ConfirmDeleteScheduleDialog.d.ts +7 -0
  70. package/dist/components/scheduled/ScheduleDialog.d.ts +13 -0
  71. package/dist/components/scheduled/ScheduledDetailSurface.d.ts +8 -0
  72. package/dist/components/scheduled/ScheduledListSurface.d.ts +7 -0
  73. package/dist/components/scheduled/TimezoneCombobox.d.ts +7 -0
  74. package/dist/components/scheduled/schedule-dialog-model.d.ts +11 -0
  75. package/dist/components/scheduled/schedule-format.d.ts +38 -0
  76. package/dist/embed/agent-grant-refresh.d.ts +7 -7
  77. package/dist/embed/composer-submit.d.ts +7 -0
  78. package/dist/embed/copy.d.ts +93 -15
  79. package/dist/embed/dock-state.d.ts +1 -1
  80. package/dist/embed/locale.d.ts +4 -0
  81. package/dist/embed/slash-commands.d.ts +20 -6
  82. package/dist/embed/tab-id.d.ts +33 -0
  83. package/dist/embed/task-schedule-command.d.ts +32 -0
  84. package/dist/embed/task-schedule-store.d.ts +29 -0
  85. package/dist/embed/theme-preview-params.d.ts +2 -0
  86. package/dist/embed/voice-narration.d.ts +15 -0
  87. package/dist/i18n/messages/en.d.ts +106 -22
  88. package/dist/i18n/messages/pt.d.ts +3 -0
  89. package/dist/i18n/messages/surfaces/aiElements.d.ts +50 -0
  90. package/dist/i18n/messages/surfaces/app.d.ts +15 -0
  91. package/dist/i18n/messages/surfaces/embedMisc.d.ts +45 -8
  92. package/dist/i18n/messages/surfaces/feedback.d.ts +9 -0
  93. package/dist/i18n/messages/surfaces/files.d.ts +37 -0
  94. package/dist/i18n/messages/surfaces/header.d.ts +24 -0
  95. package/dist/i18n/messages/surfaces/login.d.ts +8 -0
  96. package/dist/i18n/messages/surfaces/plan.d.ts +17 -0
  97. package/dist/i18n/messages/surfaces/scheduled.d.ts +253 -0
  98. package/dist/i18n/messages/surfaces/sessions.d.ts +21 -0
  99. package/dist/i18n/messages/surfaces/stream.d.ts +68 -0
  100. package/dist/i18n/messages/surfaces/usage.d.ts +10 -0
  101. package/dist/lib/use-debounced-value.d.ts +2 -0
  102. package/dist/routes/chat.d.ts +3 -2
  103. package/dist/routes/scheduled-detail.d.ts +2 -0
  104. package/dist/routes/scheduled.d.ts +2 -0
  105. package/dist/stream/stream-state-store.d.ts +36 -0
  106. package/dist/types/public.d.ts +45 -10
  107. package/package.json +1 -1
  108. package/dist/components/embed/AgentGrantCard.d.ts +0 -27
  109. package/dist/i18n/messages/surfaces/agentGrant.d.ts +0 -39
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@belonguniverseai/react-sdk",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
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",
@@ -1,27 +0,0 @@
1
- import { BelongThemeBrand, BelongThemePalette } from '../../types/public.ts';
2
- /**
3
- * The agent-grant consent surface, rendered above the chat thread.
4
- * Non-blocking: chat works without a grant (the agent falls back to
5
- * device login in the terminal); this card just offers/states the
6
- * delegated CLI session.
7
- *
8
- * none / expired / revoked → consent (or re-consent) prompt
9
- * active → slim "connected until <time>" row + revoke
10
- * unconfigured embed → renders nothing (host didn't pass a scope)
11
- *
12
- * The scope (the host's active workspace) comes from the shared
13
- * workspace-scope store (embed/workspace-scope.ts — one URL poll +
14
- * `belong.setWorkspace`, shared with the session list / Files tab / chat):
15
- * switching workspace re-keys the status query — a grant is
16
- * single-workspace, so the new workspace prompts its own consent, and
17
- * dismissal is per-workspace.
18
- *
19
- * The Allow click POSTs with the same host web JWT every API call
20
- * carries; only status + expiry ever come back — never tokens.
21
- */
22
- type AgentGrantCardProps = {
23
- readonly palette: BelongThemePalette;
24
- readonly brand: BelongThemeBrand;
25
- };
26
- export declare function AgentGrantCard({ palette, brand }: AgentGrantCardProps): import("react").JSX.Element | null;
27
- export {};
@@ -1,39 +0,0 @@
1
- /** Agent-grant consent card dock strings. */
2
- export declare const agentGrantEn: {
3
- readonly agentGrant: {
4
- readonly headlineExpired: "Your agent session expired";
5
- readonly headlineRevoked: "Agent session disconnected";
6
- readonly headlineNone: "Let the {{name}} agent use the CLI in the background";
7
- readonly body: "It acts on your behalf in your current workspace — time-limited (24 h), revocable anytime.";
8
- readonly connected: "{{name}} agent connected";
9
- readonly connectedUntil: "{{name}} agent connected · until {{until}}";
10
- readonly disconnect: "Disconnect";
11
- readonly ctaAllow: "Allow";
12
- readonly ctaReconnect: "Reconnect";
13
- readonly notNow: "Not now";
14
- readonly errorNotScopeMember: "Your {{name}} user isn't a member of this workspace, so the agent can't connect here. Switch to a workspace you belong to.";
15
- readonly errorScopeSessionLimit: "This workspace is at its limit of active agent connections. We tried to free one up — reload and reconnect, or try again in a moment.";
16
- readonly errorAuthTokenAlreadyUsed: "Reconnecting needs a fresh {{name}} sign-in — the last one was just used to connect. It refreshes on your next page reload, or on its own in a few minutes.";
17
- readonly errorGrantRejected: "Simetrik declined the connection. This is usually a permissions or workspace issue — if it persists, contact Simetrik support.";
18
- readonly errorGeneric: "Couldn't connect the agent session. Try again.";
19
- };
20
- };
21
- export declare const agentGrantEs: {
22
- agentGrant: {
23
- headlineExpired: string;
24
- headlineRevoked: string;
25
- headlineNone: string;
26
- body: string;
27
- connected: string;
28
- connectedUntil: string;
29
- disconnect: string;
30
- ctaAllow: string;
31
- ctaReconnect: string;
32
- notNow: string;
33
- errorNotScopeMember: string;
34
- errorScopeSessionLimit: string;
35
- errorAuthTokenAlreadyUsed: string;
36
- errorGrantRejected: string;
37
- errorGeneric: string;
38
- };
39
- };