@shubh90/app-runtime 0.4.1 → 0.5.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.
Files changed (46) hide show
  1. package/dist/auth/core.d.ts +12 -7
  2. package/dist/auth/core.js +9 -11
  3. package/dist/auth/db.js +10 -0
  4. package/dist/auth/index.d.ts +4 -4
  5. package/dist/auth/index.js +6 -6
  6. package/dist/auth/lookup.d.ts +23 -12
  7. package/dist/auth/lookup.js +85 -24
  8. package/dist/auth/plaza.d.ts +30 -10
  9. package/dist/auth/plaza.js +65 -21
  10. package/dist/auth/routes.js +1 -1
  11. package/dist/auth/session.d.ts +3 -2
  12. package/dist/auth/session.js +5 -6
  13. package/dist/chat/index.d.ts +8 -0
  14. package/dist/chat/index.js +107 -0
  15. package/dist/chat/paths.d.ts +2 -0
  16. package/dist/chat/paths.js +2 -0
  17. package/dist/chat/server.d.ts +16 -0
  18. package/dist/chat/server.js +167 -0
  19. package/dist/chat/thread.d.ts +27 -0
  20. package/dist/chat/thread.js +59 -0
  21. package/dist/chat/ui/activity.d.ts +12 -0
  22. package/dist/chat/ui/activity.js +57 -0
  23. package/dist/chat/ui/attachments.d.ts +9 -0
  24. package/dist/chat/ui/attachments.js +50 -0
  25. package/dist/chat/ui/index.d.ts +5 -0
  26. package/dist/chat/ui/index.js +6 -0
  27. package/dist/chat/ui/message-body.d.ts +8 -0
  28. package/dist/chat/ui/message-body.js +57 -0
  29. package/dist/chat/ui/styles.css +109 -0
  30. package/dist/chat/ui/styles.d.ts +16 -0
  31. package/dist/chat/ui/styles.js +126 -0
  32. package/dist/chat/ui/types.d.ts +47 -0
  33. package/dist/chat/ui/types.js +1 -0
  34. package/dist/chat/widget/api.d.ts +34 -0
  35. package/dist/chat/widget/api.js +112 -0
  36. package/dist/chat/widget/app.d.ts +11 -0
  37. package/dist/chat/widget/app.js +304 -0
  38. package/dist/chat/widget/hooks.d.ts +86 -0
  39. package/dist/chat/widget/hooks.js +312 -0
  40. package/dist/chat/widget/icons.d.ts +13 -0
  41. package/dist/chat/widget/icons.js +13 -0
  42. package/dist/chat/widget/styles.d.ts +1 -0
  43. package/dist/chat/widget/styles.js +233 -0
  44. package/dist/chat/widget/thread.d.ts +33 -0
  45. package/dist/chat/widget/thread.js +27 -0
  46. package/package.json +50 -11
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shubh90/app-runtime",
3
- "version": "0.4.1",
4
- "description": "The platform contract every mii org app depends on — sign-in, and the Next.js config an app must not diverge from. A versioned package, not files copied into each repo.",
3
+ "version": "0.5.0",
4
+ "description": "The platform contract every mii org app depends on — sign-in, chat with the org's agents, and the config an app must not diverge from. A versioned package, not files copied into each repo.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
7
7
  "publishConfig": {
@@ -18,31 +18,58 @@
18
18
  "exports": {
19
19
  "./auth": {
20
20
  "types": "./dist/auth/index.d.ts",
21
- "import": "./dist/auth/index.js"
21
+ "import": "./dist/auth/index.js",
22
+ "default": "./dist/auth/index.js"
22
23
  },
23
24
  "./auth/core": {
24
25
  "types": "./dist/auth/core.d.ts",
25
- "import": "./dist/auth/core.js"
26
+ "import": "./dist/auth/core.js",
27
+ "default": "./dist/auth/core.js"
26
28
  },
27
29
  "./next": {
28
30
  "types": "./dist/next/index.d.ts",
29
- "import": "./dist/next/index.js"
31
+ "import": "./dist/next/index.js",
32
+ "default": "./dist/next/index.js"
30
33
  },
31
34
  "./platform": {
32
35
  "types": "./dist/platform/index.d.ts",
33
- "import": "./dist/platform/index.js"
36
+ "import": "./dist/platform/index.js",
37
+ "default": "./dist/platform/index.js"
34
38
  },
35
39
  "./server": {
36
40
  "types": "./dist/server/index.d.ts",
37
- "import": "./dist/server/index.js"
41
+ "import": "./dist/server/index.js",
42
+ "default": "./dist/server/index.js"
38
43
  },
39
44
  "./react": {
40
45
  "types": "./dist/react/index.d.ts",
41
- "import": "./dist/react/index.js"
42
- }
46
+ "import": "./dist/react/index.js",
47
+ "default": "./dist/react/index.js"
48
+ },
49
+ "./chat": {
50
+ "types": "./dist/chat/index.d.ts",
51
+ "import": "./dist/chat/index.js",
52
+ "default": "./dist/chat/index.js"
53
+ },
54
+ "./chat/server": {
55
+ "types": "./dist/chat/server.d.ts",
56
+ "import": "./dist/chat/server.js",
57
+ "default": "./dist/chat/server.js"
58
+ },
59
+ "./chat/thread": {
60
+ "types": "./dist/chat/thread.d.ts",
61
+ "import": "./dist/chat/thread.js",
62
+ "default": "./dist/chat/thread.js"
63
+ },
64
+ "./chat/ui": {
65
+ "types": "./dist/chat/ui/index.d.ts",
66
+ "import": "./dist/chat/ui/index.js",
67
+ "default": "./dist/chat/ui/index.js"
68
+ },
69
+ "./chat/ui.css": "./dist/chat/ui/styles.css"
43
70
  },
44
71
  "scripts": {
45
- "build": "tsc -p tsconfig.build.json",
72
+ "build": "tsc -p tsconfig.build.json && node scripts/write-ui-css.mjs",
46
73
  "typecheck": "tsc --noEmit",
47
74
  "test": "node --test --import tsx \"test/**/*.test.ts\"",
48
75
  "check": "npm run typecheck && npm run test"
@@ -50,12 +77,16 @@
50
77
  "peerDependencies": {
51
78
  "next": ">=15",
52
79
  "postgres": ">=3",
53
- "react": ">=18"
80
+ "react": ">=18",
81
+ "react-dom": ">=18"
54
82
  },
55
83
  "peerDependenciesMeta": {
56
84
  "next": {
57
85
  "optional": true
58
86
  },
87
+ "react-dom": {
88
+ "optional": true
89
+ },
59
90
  "react": {
60
91
  "optional": "true"
61
92
  }
@@ -63,10 +94,18 @@
63
94
  "devDependencies": {
64
95
  "@types/node": "^22",
65
96
  "@types/react": "^19",
97
+ "@types/react-dom": "^19",
66
98
  "next": "^15",
67
99
  "postgres": "^3.4.9",
68
100
  "react": "^19",
101
+ "react-dom": "^19",
69
102
  "tsx": "^4",
70
103
  "typescript": "^5.6"
104
+ },
105
+ "dependencies": {
106
+ "lucide-react": "^0.468.0",
107
+ "react-markdown": "^10.1.0",
108
+ "rehype-highlight": "^7.0.2",
109
+ "remark-gfm": "^4.0.1"
71
110
  }
72
111
  }