@mastra/react 0.0.0-unified-sidebar-20251010130811 → 0.0.0-vnext-20251104230439

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 (48) hide show
  1. package/CHANGELOG.md +162 -2
  2. package/dist/index.cjs +1818 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/{index.es.js → index.js} +782 -128
  5. package/dist/index.js.map +1 -0
  6. package/dist/react.css +719 -0
  7. package/dist/src/agent/hooks.d.ts +23 -6
  8. package/dist/src/agent/types.d.ts +1 -0
  9. package/dist/src/index.d.ts +1 -0
  10. package/dist/src/lib/ai-sdk/index.d.ts +1 -0
  11. package/dist/src/lib/ai-sdk/memory/resolveInitialMessages.d.ts +10 -0
  12. package/dist/src/lib/ai-sdk/memory/resolveInitialMessages.test.d.ts +1 -0
  13. package/dist/src/lib/ai-sdk/transformers/AISdkNetworkTransformer.d.ts +1 -0
  14. package/dist/src/lib/ai-sdk/transformers/AISdkNetworkTransformer.test.d.ts +1 -0
  15. package/dist/src/lib/ai-sdk/types.d.ts +7 -0
  16. package/dist/src/lib/ai-sdk/utils/fromCoreUserMessageToUIMessage.d.ts +10 -0
  17. package/dist/src/lib/ai-sdk/utils/fromCoreUserMessageToUIMessage.test.d.ts +1 -0
  18. package/dist/src/lib/ai-sdk/utils/toUIMessage.test.d.ts +1 -0
  19. package/dist/src/ui/Code/Code.d.ts +13 -0
  20. package/dist/src/ui/Code/highlight.d.ts +3 -0
  21. package/dist/src/ui/Code/index.d.ts +1 -0
  22. package/dist/src/ui/Entity/Entity.d.ts +13 -0
  23. package/dist/src/ui/Entity/Entity.stories.d.ts +22 -0
  24. package/dist/src/ui/Entity/Entry.d.ts +9 -0
  25. package/dist/src/ui/Entity/ToolApproval.d.ts +10 -0
  26. package/dist/src/ui/Entity/context.d.ts +10 -0
  27. package/dist/src/ui/Entity/index.d.ts +4 -0
  28. package/dist/src/ui/Entity/types.d.ts +1 -0
  29. package/dist/src/ui/Icon/Icon.d.ts +11 -0
  30. package/dist/src/ui/Icon/index.d.ts +1 -0
  31. package/dist/src/ui/IconButton/IconButton.d.ts +8 -0
  32. package/dist/src/ui/IconButton/IconButton.stories.d.ts +12 -0
  33. package/dist/src/ui/IconButton/index.d.ts +1 -0
  34. package/dist/src/ui/Icons/AgentIcon.d.ts +2 -0
  35. package/dist/src/ui/Icons/ToolsIcon.d.ts +2 -0
  36. package/dist/src/ui/Icons/WorkflowIcon.d.ts +2 -0
  37. package/dist/src/ui/Icons/index.d.ts +3 -0
  38. package/dist/src/ui/Message/Message.d.ts +25 -0
  39. package/dist/src/ui/Message/Message.stories.d.ts +13 -0
  40. package/dist/src/ui/Message/index.d.ts +1 -0
  41. package/dist/src/ui/Tooltip/Tooltip.d.ts +8 -0
  42. package/dist/src/ui/Tooltip/Tooltip.stories.d.ts +12 -0
  43. package/dist/src/ui/Tooltip/index.d.ts +1 -0
  44. package/dist/src/ui/index.d.ts +7 -0
  45. package/package.json +46 -11
  46. package/dist/index.cjs.js +0 -1109
  47. package/dist/index.cjs.js.map +0 -1
  48. package/dist/index.es.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,9 +1,169 @@
1
1
  # @mastra/react-hooks
2
2
 
3
- ## 0.0.0-unified-sidebar-20251010130811
3
+ ## 0.0.0-vnext-20251104230439
4
+
5
+ ### Major Changes
6
+
7
+ - Rename RuntimeContext to RequestContext ([#9511](https://github.com/mastra-ai/mastra/pull/9511))
8
+
9
+ - Mark as stable ([`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc))
10
+
11
+ - Renamed `MastraMessageV2` to `MastraDBMessage` ([#9255](https://github.com/mastra-ai/mastra/pull/9255))
12
+ Made the return format of all methods that return db messages consistent. It's always `{ messages: MastraDBMessage[] }` now, and messages can be converted after that using `@mastra/ai-sdk/ui`'s `toAISdkV4/5Messages()` function
13
+
14
+ ### Patch Changes
15
+
16
+ - Add tool call approval ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
17
+
18
+ - Fix multi modal in react sdk ([#9373](https://github.com/mastra-ai/mastra/pull/9373))
19
+
20
+ - Updated dependencies [[`3852192`](https://github.com/mastra-ai/mastra/commit/3852192c81b2a4f1f883f17d80ce50e0c60dba55), [`fec5129`](https://github.com/mastra-ai/mastra/commit/fec5129de7fc64423ea03661a56cef31dc747a0d), [`3443770`](https://github.com/mastra-ai/mastra/commit/3443770662df8eb24c9df3589b2792d78cfcb811), [`f0a07e0`](https://github.com/mastra-ai/mastra/commit/f0a07e0111b3307c5fabfa4094c5c2cfb734fbe6), [`5948e6a`](https://github.com/mastra-ai/mastra/commit/5948e6a5146c83666ba3f294b2be576c82a513fb), [`dff01d8`](https://github.com/mastra-ai/mastra/commit/dff01d81ce1f4e4087cfac20fa868e6db138dd14), [`b7de533`](https://github.com/mastra-ai/mastra/commit/b7de53361667eb51fefd89fcaed924f3c57cee8d), [`7051bf3`](https://github.com/mastra-ai/mastra/commit/7051bf38b3b122a069008f861f7bfc004a6d9f6e), [`1ee3411`](https://github.com/mastra-ai/mastra/commit/1ee34113192b11aa8bcdd8d9d5830ae13254b345), [`0793497`](https://github.com/mastra-ai/mastra/commit/079349753620c40246ffd673e3f9d7d9820beff3), [`5df9cce`](https://github.com/mastra-ai/mastra/commit/5df9cce1a753438413f64c11eeef8f845745c2a8), [`f93d992`](https://github.com/mastra-ai/mastra/commit/f93d992a37d5431ab4a71246835d403ef7c4ce85), [`c576fc0`](https://github.com/mastra-ai/mastra/commit/c576fc0b100b2085afded91a37c97a0ea0ec09c7), [`9f4a683`](https://github.com/mastra-ai/mastra/commit/9f4a6833e88b52574665c028fd5508ad5c2f6004), [`ea0b8de`](https://github.com/mastra-ai/mastra/commit/ea0b8dec0d4bc86a72a7e75b2f56c6017c58786d), [`a1bd7b8`](https://github.com/mastra-ai/mastra/commit/a1bd7b8571db16b94eb01588f451a74758c96d65), [`0633100`](https://github.com/mastra-ai/mastra/commit/0633100a911ad22f5256471bdf753da21c104742), [`844ea5d`](https://github.com/mastra-ai/mastra/commit/844ea5dc0c248961e7bf73629ae7dcff503e853c), [`dfe3f8c`](https://github.com/mastra-ai/mastra/commit/dfe3f8c7376ffe159236819e19ca522143c1f972), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`63f2f18`](https://github.com/mastra-ai/mastra/commit/63f2f1863dffe3ad23221d0660ed4e4f2b81789d), [`c23200d`](https://github.com/mastra-ai/mastra/commit/c23200ddfd60830effb39329674ba4ca93be6aac), [`363284b`](https://github.com/mastra-ai/mastra/commit/363284bb974e850f06f40f89a28c79d9f432d7e4), [`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc), [`0bddc6d`](https://github.com/mastra-ai/mastra/commit/0bddc6d8dbd6f6008c0cba2e4960a2da75a55af1), [`a0c8c1b`](https://github.com/mastra-ai/mastra/commit/a0c8c1b87d4fee252aebda73e8637fbe01d761c9), [`c218bd3`](https://github.com/mastra-ai/mastra/commit/c218bd3759e32423735b04843a09404572631014)]:
21
+ - @mastra/client-js@0.0.0-vnext-20251104230439
22
+
23
+ ## 0.0.10
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies []:
28
+ - @mastra/client-js@0.16.4
29
+
30
+ ## 0.0.10-alpha.0
31
+
32
+ ### Patch Changes
33
+
34
+ - Updated dependencies []:
35
+ - @mastra/client-js@0.16.4-alpha.0
36
+
37
+ ## 0.0.9
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies []:
42
+ - @mastra/client-js@0.16.3
43
+
44
+ ## 0.0.9-alpha.0
45
+
46
+ ### Patch Changes
47
+
48
+ - Updated dependencies []:
49
+ - @mastra/client-js@0.16.3-alpha.0
50
+
51
+ ## 0.0.8
52
+
53
+ ### Patch Changes
54
+
55
+ - Fix perf issue: removed flush sync ([#9014](https://github.com/mastra-ai/mastra/pull/9014))
56
+
57
+ - Fix tool result in playground ([#9087](https://github.com/mastra-ai/mastra/pull/9087))
58
+
59
+ - Show agent tool output better in playground ([#9021](https://github.com/mastra-ai/mastra/pull/9021))
60
+
61
+ - Updated dependencies []:
62
+ - @mastra/client-js@0.16.2
63
+
64
+ ## 0.0.8-alpha.1
65
+
66
+ ### Patch Changes
67
+
68
+ - Fix perf issue: removed flush sync ([#9014](https://github.com/mastra-ai/mastra/pull/9014))
69
+
70
+ - Fix tool result in playground ([#9087](https://github.com/mastra-ai/mastra/pull/9087))
71
+
72
+ - Show agent tool output better in playground ([#9021](https://github.com/mastra-ai/mastra/pull/9021))
73
+
74
+ - Updated dependencies []:
75
+ - @mastra/client-js@0.16.2-alpha.1
76
+
77
+ ## 0.0.8-alpha.0
78
+
79
+ ### Patch Changes
80
+
81
+ - Updated dependencies []:
82
+ - @mastra/client-js@0.16.2-alpha.0
83
+
84
+ ## 0.0.7
85
+
86
+ ### Patch Changes
87
+
88
+ - Add @mastra/react to peer deps ([#8857](https://github.com/mastra-ai/mastra/pull/8857))
89
+
90
+ - Updated dependencies []:
91
+ - @mastra/client-js@0.16.1
92
+
93
+ ## 0.0.7-alpha.0
94
+
95
+ ### Patch Changes
96
+
97
+ - Add @mastra/react to peer deps ([#8857](https://github.com/mastra-ai/mastra/pull/8857))
98
+
99
+ - Updated dependencies []:
100
+ - @mastra/client-js@0.16.1-alpha.0
101
+
102
+ ## 0.0.6
103
+
104
+ ### Patch Changes
105
+
106
+ - Gracefully fix errors in react-sdk when error is an object ([#8703](https://github.com/mastra-ai/mastra/pull/8703))
107
+
108
+ - Prepares some basic set of homemade components ([#8619](https://github.com/mastra-ai/mastra/pull/8619))
109
+
110
+ - Improve the surface API of the react sdk ([#8715](https://github.com/mastra-ai/mastra/pull/8715))
111
+
112
+ - Move react and react-dom deps to peer and dev deps ([#8698](https://github.com/mastra-ai/mastra/pull/8698))
113
+
114
+ - Fix back the tripwire verification inside the new react system ([#8674](https://github.com/mastra-ai/mastra/pull/8674))
115
+
116
+ - handle error case in react sdk ([#8676](https://github.com/mastra-ai/mastra/pull/8676))
117
+
118
+ - fix maxSteps model settings not being passed to generate and stream endpoints ([#8627](https://github.com/mastra-ai/mastra/pull/8627))
119
+
120
+ - Stream finalResult from network loop ([#8795](https://github.com/mastra-ai/mastra/pull/8795))
121
+
122
+ - Updated dependencies [[`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`78cfb6b`](https://github.com/mastra-ai/mastra/commit/78cfb6b66fe88bc848105fccb6459fd75413ec87)]:
123
+ - @mastra/client-js@0.16.0
124
+
125
+ ## 0.0.6-alpha.4
126
+
127
+ ### Patch Changes
128
+
129
+ - Updated dependencies []:
130
+ - @mastra/client-js@0.16.0-alpha.4
131
+
132
+ ## 0.0.6-alpha.3
133
+
134
+ ### Patch Changes
135
+
136
+ - Updated dependencies []:
137
+ - @mastra/client-js@0.16.0-alpha.3
138
+
139
+ ## 0.0.6-alpha.2
140
+
141
+ ### Patch Changes
142
+
143
+ - Updated dependencies []:
144
+ - @mastra/client-js@0.16.0-alpha.2
145
+
146
+ ## 0.0.6-alpha.1
4
147
 
5
148
  ### Patch Changes
6
149
 
150
+ - Improve the surface API of the react sdk ([#8715](https://github.com/mastra-ai/mastra/pull/8715))
151
+
152
+ - Move react and react-dom deps to peer and dev deps ([#8698](https://github.com/mastra-ai/mastra/pull/8698))
153
+
154
+ - Stream finalResult from network loop ([#8795](https://github.com/mastra-ai/mastra/pull/8795))
155
+
156
+ - Updated dependencies []:
157
+ - @mastra/client-js@0.16.0-alpha.1
158
+
159
+ ## 0.0.6-alpha.0
160
+
161
+ ### Patch Changes
162
+
163
+ - Gracefully fix errors in react-sdk when error is an object ([#8703](https://github.com/mastra-ai/mastra/pull/8703))
164
+
165
+ - Prepares some basic set of homemade components ([#8619](https://github.com/mastra-ai/mastra/pull/8619))
166
+
7
167
  - Fix back the tripwire verification inside the new react system ([#8674](https://github.com/mastra-ai/mastra/pull/8674))
8
168
 
9
169
  - handle error case in react sdk ([#8676](https://github.com/mastra-ai/mastra/pull/8676))
@@ -11,7 +171,7 @@
11
171
  - fix maxSteps model settings not being passed to generate and stream endpoints ([#8627](https://github.com/mastra-ai/mastra/pull/8627))
12
172
 
13
173
  - Updated dependencies [[`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`78cfb6b`](https://github.com/mastra-ai/mastra/commit/78cfb6b66fe88bc848105fccb6459fd75413ec87)]:
14
- - @mastra/client-js@0.0.0-unified-sidebar-20251010130811
174
+ - @mastra/client-js@0.16.0-alpha.0
15
175
 
16
176
  ## 0.0.5
17
177