@assistant-ui/react-mcp 0.0.2 → 0.0.4
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpServerIcon.js","names":[],"sources":["../../../src/primitives/server/McpServerIcon.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveIcon {\n export type Element = ComponentRef<typeof Primitive.img>;\n export type Props = Omit<\n ComponentPropsWithoutRef<typeof Primitive.img>,\n \"src\" | \"alt\"\n > & {\n /** Override the icon URL. Defaults to the server's icon prop. */\n src?: string;\n alt?: string;\n };\n}\n\nexport const McpServerPrimitiveIcon = forwardRef<\n McpServerPrimitiveIcon.Element,\n McpServerPrimitiveIcon.Props\n>(({ src, alt, ...props }, ref) => {\n const iconUrl = useAuiState((s) => s.mcpServer.icon ?? null);\n const name = useAuiState((s) => s.mcpServer.name);\n const effective = src ?? iconUrl;\n if (!effective) return null;\n return (\n
|
|
1
|
+
{"version":3,"file":"McpServerIcon.js","names":[],"sources":["../../../src/primitives/server/McpServerIcon.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveIcon {\n export type Element = ComponentRef<typeof Primitive.img>;\n export type Props = Omit<\n ComponentPropsWithoutRef<typeof Primitive.img>,\n \"src\" | \"alt\"\n > & {\n /** Override the icon URL. Defaults to the server's icon prop. */\n src?: string;\n alt?: string;\n };\n}\n\nexport const McpServerPrimitiveIcon = forwardRef<\n McpServerPrimitiveIcon.Element,\n McpServerPrimitiveIcon.Props\n>(({ src, alt, ...props }, ref) => {\n const iconUrl = useAuiState((s) => s.mcpServer.icon ?? null);\n const name = useAuiState((s) => s.mcpServer.name);\n const effective = src ?? iconUrl;\n if (!effective) return null;\n return (\n <Primitive.img {...props} ref={ref} src={effective} alt={alt ?? name} />\n );\n});\n\nMcpServerPrimitiveIcon.displayName = \"McpServerPrimitive.Icon\";\n"],"mappings":";;;;;AAoBA,MAAa,yBAAyB,YAGnC,EAAE,KAAK,KAAK,GAAG,SAAS,QAAQ;CACjC,MAAM,UAAU,aAAa,MAAM,EAAE,UAAU,QAAQ,IAAI;CAC3D,MAAM,OAAO,aAAa,MAAM,EAAE,UAAU,IAAI;CAChD,MAAM,YAAY,OAAO;CACzB,IAAI,CAAC,WAAW,OAAO;CACvB,OACE,oBAAC,UAAU,KAAX;EAAe,GAAI;EAAY;EAAK,KAAK;EAAW,KAAK,OAAO;CAAO,CAAA;AAE3E,CAAC;AAED,uBAAuB,cAAc"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assistant-ui/react-mcp",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "MCP server configuration and connection primitives for @assistant-ui",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
31
31
|
"@radix-ui/react-primitive": "^2.1.4",
|
|
32
|
-
"@assistant-ui/core": "0.2.
|
|
33
|
-
"@assistant-ui/store": "0.2.
|
|
34
|
-
"@assistant-ui/tap": "0.5.
|
|
35
|
-
"assistant-stream": "0.3.
|
|
32
|
+
"@assistant-ui/core": "0.2.8",
|
|
33
|
+
"@assistant-ui/store": "0.2.13",
|
|
34
|
+
"@assistant-ui/tap": "0.5.14",
|
|
35
|
+
"assistant-stream": "0.3.18"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@types/react": "*",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/react": "^19.2.15",
|
|
48
48
|
"react": "^19.2.6",
|
|
49
|
-
"@assistant-ui/x-buildutils": "0.0.
|
|
49
|
+
"@assistant-ui/x-buildutils": "0.0.10"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public",
|
package/src/index.ts
CHANGED
|
@@ -24,10 +24,7 @@ export {
|
|
|
24
24
|
} from "./resources/storage/McpLocalStorage";
|
|
25
25
|
export { McpMemoryStorage } from "./resources/storage/McpMemoryStorage";
|
|
26
26
|
export { McpCustomStorage } from "./resources/storage/McpCustomStorage";
|
|
27
|
-
export type {
|
|
28
|
-
MCPStorage,
|
|
29
|
-
MCPStorageElement,
|
|
30
|
-
} from "./resources/storage/types";
|
|
27
|
+
export type { MCPStorage, MCPStorageElement } from "./resources/storage/types";
|
|
31
28
|
|
|
32
29
|
// Primitives (namespaced)
|
|
33
30
|
export * as McpManagerPrimitive from "./primitives/manager";
|
|
@@ -27,7 +27,6 @@ export const McpServerPrimitiveIcon = forwardRef<
|
|
|
27
27
|
const effective = src ?? iconUrl;
|
|
28
28
|
if (!effective) return null;
|
|
29
29
|
return (
|
|
30
|
-
// biome-ignore lint/performance/noImgElement: unstyled primitive — consumers can swap via asChild
|
|
31
30
|
<Primitive.img {...props} ref={ref} src={effective} alt={alt ?? name} />
|
|
32
31
|
);
|
|
33
32
|
});
|