@gram-ai/elements 1.37.1 → 1.38.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ActiveChatTitle.d.ts +22 -0
- package/dist/components/ActiveChatTitle.test.d.ts +1 -0
- package/dist/components/Markdown.d.ts +7 -0
- package/dist/components/MessageContent.d.ts +4 -0
- package/dist/components/activeChatTitle.helpers.d.ts +12 -0
- package/dist/components/ui/tool-ui.d.ts +52 -3
- package/dist/elements.cjs +1 -1
- package/dist/elements.css +1 -1
- package/dist/elements.js +31 -26
- package/dist/hooks/useMCPTools.d.ts +1 -1
- package/dist/{index-BdBraSNn.js → index-DJwZquGT.js} +35140 -29458
- package/dist/index-DJwZquGT.js.map +1 -0
- package/dist/index-EHNsQZHU.cjs +222 -0
- package/dist/index-EHNsQZHU.cjs.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/lib/messageConverter.d.ts +2 -0
- package/dist/{profiler-Cl-9cG3B.js → profiler-De-Fmqbg.js} +2 -2
- package/dist/{profiler-Cl-9cG3B.js.map → profiler-De-Fmqbg.js.map} +1 -1
- package/dist/{profiler-ttCkbP-N.cjs → profiler-tmT7xKnI.cjs} +2 -2
- package/dist/{profiler-ttCkbP-N.cjs.map → profiler-tmT7xKnI.cjs.map} +1 -1
- package/dist/{startRecording-C41DbnxY.js → startRecording-BD0yDLcT.js} +2 -2
- package/dist/{startRecording-C41DbnxY.js.map → startRecording-BD0yDLcT.js.map} +1 -1
- package/dist/{startRecording-DLCeKyz9.cjs → startRecording-BDccFns1.cjs} +2 -2
- package/dist/{startRecording-DLCeKyz9.cjs.map → startRecording-BDccFns1.cjs.map} +1 -1
- package/package.json +11 -13
- package/src/components/ActiveChatTitle.test.ts +39 -0
- package/src/components/ActiveChatTitle.tsx +152 -0
- package/src/components/Markdown.tsx +210 -0
- package/src/components/MessageContent.tsx +9 -0
- package/src/components/activeChatTitle.helpers.ts +16 -0
- package/src/components/ui/tool-ui.tsx +360 -7
- package/src/contexts/ElementsProvider.tsx +2 -1
- package/src/hooks/useGramThreadListAdapter.tsx +100 -19
- package/src/hooks/useMCPTools.ts +1 -1
- package/src/index.ts +19 -0
- package/src/lib/messageConverter.ts +5 -0
- package/src/lib/tools.test.ts +24 -12
- package/dist/index-BdBraSNn.js.map +0 -1
- package/dist/index-Bl5cH0sz.cjs +0 -194
- package/dist/index-Bl5cH0sz.cjs.map +0 -1
package/dist/elements.js
CHANGED
|
@@ -1,30 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as
|
|
1
|
+
import { ac as e, ao as r, aw as t, aa as o, ab as n, a8 as l, a8 as d, aq as E, ag as i, af as m, av as T, ak as S, ad as c, aj as g, at as h, ae as C, ah as I, ai as u, as as M, ar as p, am as v, ap as R, au as k, an as G, al as P, a9 as f } from "./index-DJwZquGT.js";
|
|
2
|
+
import { s as U, W as b, I as y, I as A } from "./index-Bv-yE4G1.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
r as
|
|
6
|
-
t as
|
|
7
|
-
o as
|
|
8
|
-
n as
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
e as ActiveChatTitle,
|
|
5
|
+
r as CREDITS_EXHAUSTED_MESSAGE,
|
|
6
|
+
t as Calendar,
|
|
7
|
+
o as Chat,
|
|
8
|
+
n as ChatHistory,
|
|
9
|
+
l as ElementsProvider,
|
|
10
|
+
d as GramElementsProvider,
|
|
11
|
+
E as MODELS,
|
|
12
|
+
i as Markdown,
|
|
13
|
+
m as MessageContent,
|
|
14
|
+
T as PRESETS,
|
|
13
15
|
S as Replay,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
c as ShareButton,
|
|
17
|
+
g as SyntaxHighlightedCode,
|
|
18
|
+
h as TimeRangePicker,
|
|
19
|
+
C as ToolFallback,
|
|
20
|
+
I as ToolUI,
|
|
21
|
+
u as ToolUISection,
|
|
22
|
+
M as convertGramMessagesToExported,
|
|
23
|
+
p as convertGramMessagesToUIMessages,
|
|
24
|
+
v as defineFrontendTool,
|
|
25
|
+
R as describeStreamError,
|
|
26
|
+
k as getPresetRange,
|
|
27
|
+
U as sleep,
|
|
28
|
+
G as trackError,
|
|
29
|
+
b as useChatId,
|
|
30
|
+
y as useElements,
|
|
31
|
+
A as useGramElements,
|
|
32
|
+
P as useRecordCassette,
|
|
33
|
+
f as useThreadId
|
|
29
34
|
};
|
|
30
35
|
//# sourceMappingURL=elements.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MCPServerEntry, ToolsFilter } from '../types';
|
|
2
|
-
import {
|
|
2
|
+
import { createMCPClient } from '@ai-sdk/mcp';
|
|
3
3
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
4
4
|
import { Auth } from './useAuth';
|
|
5
5
|
type MCPToolsResult = Awaited<ReturnType<Awaited<ReturnType<typeof createMCPClient>>["tools"]>>;
|