@gram-ai/elements 1.13.7 → 1.13.9
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 +1 -1
- package/dist/elements.cjs +9 -9
- package/dist/elements.css +1 -1
- package/dist/elements.js +2821 -2662
- package/dist/types/schemas.d.ts +12 -4
- package/package.json +6 -2
package/dist/types/schemas.d.ts
CHANGED
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
declare const ContentSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
2
|
+
declare const ContentSchema: z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
|
|
3
3
|
type: z.ZodLiteral<"text">;
|
|
4
4
|
text: z.ZodString;
|
|
5
5
|
}, z.core.$strip>, z.ZodObject<{
|
|
6
6
|
type: z.ZodLiteral<"image">;
|
|
7
7
|
data: z.ZodString;
|
|
8
|
-
}, z.core.$strip>]
|
|
8
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
9
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
'getgram.ai/mime-type': z.ZodString;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>>;
|
|
9
13
|
export type ToolCallResultContent = z.infer<typeof ContentSchema>;
|
|
10
14
|
export declare const ToolCallResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
11
|
-
content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
15
|
+
content: z.ZodArray<z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
|
|
12
16
|
type: z.ZodLiteral<"text">;
|
|
13
17
|
text: z.ZodString;
|
|
14
18
|
}, z.core.$strip>, z.ZodObject<{
|
|
15
19
|
type: z.ZodLiteral<"image">;
|
|
16
20
|
data: z.ZodString;
|
|
17
|
-
}, z.core.$strip>]
|
|
21
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
22
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
'getgram.ai/mime-type': z.ZodString;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
}, z.core.$strip>>>;
|
|
18
26
|
}, z.core.$strip>, z.ZodUndefined]>;
|
|
19
27
|
export type ToolCallResult = z.infer<typeof ToolCallResultSchema>;
|
|
20
28
|
export {};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@gram-ai/elements",
|
|
3
3
|
"description": "Gram Elements is a library of UI primitives for building chat-like experiences for MCP Servers.",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "1.13.
|
|
5
|
+
"version": "1.13.9",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
@@ -54,7 +54,8 @@
|
|
|
54
54
|
"react-dom": ">=18 <20",
|
|
55
55
|
"remark-gfm": "^4.0.0",
|
|
56
56
|
"vega": "^6.2.0",
|
|
57
|
-
"zustand": "^5.0.0"
|
|
57
|
+
"zustand": "^5.0.0",
|
|
58
|
+
"shiki": "^3.20.0"
|
|
58
59
|
},
|
|
59
60
|
"peerDependenciesMeta": {
|
|
60
61
|
"@assistant-ui/react": {
|
|
@@ -86,6 +87,9 @@
|
|
|
86
87
|
},
|
|
87
88
|
"zustand": {
|
|
88
89
|
"optional": true
|
|
90
|
+
},
|
|
91
|
+
"shiki": {
|
|
92
|
+
"optional": true
|
|
89
93
|
}
|
|
90
94
|
},
|
|
91
95
|
"dependencies": {
|