@mcpjam/widget-react 0.1.0
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/index.d.ts +976 -0
- package/dist/index.js +3883 -0
- package/dist/index.js.map +1 -0
- package/dist/styles.css +11 -0
- package/package.json +54 -0
package/dist/styles.css
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @mcpjam/widget-react base styles.
|
|
3
|
+
*
|
|
4
|
+
* Phase 3c: a placeholder that proves the CSS export pipeline (tsup bundles the
|
|
5
|
+
* JS/d.ts; scripts/copy-css.mjs ships this stylesheet to dist so consumers can
|
|
6
|
+
* `import "@mcpjam/widget-react/styles.css"`). The widget renderer's styles
|
|
7
|
+
* move here in 3d.
|
|
8
|
+
*/
|
|
9
|
+
.mcpjam-widget-host {
|
|
10
|
+
display: contents;
|
|
11
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mcpjam/widget-react",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Interactive MCP-Apps / OpenAI-Apps widget runtime (React) for MCPJam. Tier B: the renderer that satisfies @mcpjam/chat-ui's renderWidget seam.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"module": "dist/index.js",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"default": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./styles.css": "./dist/styles.css"
|
|
20
|
+
},
|
|
21
|
+
"sideEffects": [
|
|
22
|
+
"**/*.css"
|
|
23
|
+
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "npm run check:tier && tsup && node scripts/copy-css.mjs",
|
|
26
|
+
"typecheck": "tsc --noEmit",
|
|
27
|
+
"test": "npm run check:tier && vitest run",
|
|
28
|
+
"check:tier": "node scripts/check-tier-imports.mjs",
|
|
29
|
+
"prepublishOnly": "npm run build"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"react": "^19.0.0",
|
|
33
|
+
"react-dom": "^19.0.0"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@mcp-ui/client": "^5.9.0",
|
|
37
|
+
"@mcpjam/sdk": "^1.18.0",
|
|
38
|
+
"@modelcontextprotocol/client": "^2.0.0-alpha.2",
|
|
39
|
+
"@modelcontextprotocol/ext-apps": "^1.7.2",
|
|
40
|
+
"lucide-react": "^0.525.0",
|
|
41
|
+
"zustand": "^5.0.6"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@testing-library/react": "^16.3.1",
|
|
45
|
+
"@types/react": "^19",
|
|
46
|
+
"@types/react-dom": "^19",
|
|
47
|
+
"jsdom": "^27.4.0",
|
|
48
|
+
"react": "19.1.0",
|
|
49
|
+
"react-dom": "19.1.0",
|
|
50
|
+
"tsup": "^8.3.5",
|
|
51
|
+
"typescript": "^5",
|
|
52
|
+
"vitest": "^3.2.4"
|
|
53
|
+
}
|
|
54
|
+
}
|