@mastra/playground-ui 5.2.5-alpha.1 → 6.0.0-alpha.3
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/CHANGELOG.md +2989 -0
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6 -6
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/assistant-ui/messages/assistant-message.d.ts +2 -2
- package/dist/src/components/assistant-ui/messages/reasoning.d.ts +2 -2
- package/dist/src/components/assistant-ui/network-threads.d.ts +2 -2
- package/dist/src/components/assistant-ui/thread.d.ts +2 -2
- package/dist/src/components/assistant-ui/tools/tool-fallback.d.ts +2 -2
- package/dist/src/domains/networks/tool-fallback.d.ts +2 -2
- package/dist/src/domains/networks/v-next/wrapped-assistant-message.d.ts +2 -2
- package/package.json +20 -9
package/dist/index.cjs.js
CHANGED
|
@@ -3204,7 +3204,7 @@ const AvatarFallback = React__namespace.forwardRef(({ className, ...props }, ref
|
|
|
3204
3204
|
));
|
|
3205
3205
|
AvatarFallback.displayName = AvatarPrimitive__namespace.Fallback.displayName;
|
|
3206
3206
|
|
|
3207
|
-
const SyntaxHighlighter$3 = reactSyntaxHighlighter.
|
|
3207
|
+
const SyntaxHighlighter$3 = reactSyntaxHighlighter.makePrismAsyncLightSyntaxHighlighter({
|
|
3208
3208
|
style: prism.coldarkDark,
|
|
3209
3209
|
customStyle: {
|
|
3210
3210
|
margin: 0,
|
|
@@ -4410,7 +4410,7 @@ const AssistantMessage = ({ ToolFallback: ToolFallbackCustom }) => {
|
|
|
4410
4410
|
const isToolCallAndOrReasoning = data.content.every(({ type }) => type === "tool-call" || type === "reasoning");
|
|
4411
4411
|
return /* @__PURE__ */ jsxRuntime.jsxs(react.MessagePrimitive.Root, { className: "max-w-full", "data-message-id": messageId, children: [
|
|
4412
4412
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-icon6 text-ui-lg leading-ui-lg", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4413
|
-
react.MessagePrimitive.
|
|
4413
|
+
react.MessagePrimitive.Parts,
|
|
4414
4414
|
{
|
|
4415
4415
|
components: {
|
|
4416
4416
|
Text: MarkdownText,
|
|
@@ -4616,7 +4616,7 @@ const UserMessage = () => {
|
|
|
4616
4616
|
const messageId = message?.id;
|
|
4617
4617
|
return /* @__PURE__ */ jsxRuntime.jsxs(react.MessagePrimitive.Root, { className: "w-full flex items-end pb-4 flex-col", "data-message-id": messageId, children: [
|
|
4618
4618
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-[366px] px-5 py-3 text-icon6 text-ui-lg leading-ui-lg rounded-lg bg-surface3", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4619
|
-
react.MessagePrimitive.
|
|
4619
|
+
react.MessagePrimitive.Parts,
|
|
4620
4620
|
{
|
|
4621
4621
|
components: {
|
|
4622
4622
|
File: (p) => {
|
|
@@ -5352,7 +5352,7 @@ const handleFinishReason = (finishReason) => {
|
|
|
5352
5352
|
}
|
|
5353
5353
|
};
|
|
5354
5354
|
const convertToAIAttachments = async (attachments) => {
|
|
5355
|
-
const promises = attachments.filter((attachment) => attachment.type === "image" || attachment.type === "document").map(async (attachment) => {
|
|
5355
|
+
const promises = (attachments ?? []).filter((attachment) => attachment.type === "image" || attachment.type === "document").map(async (attachment) => {
|
|
5356
5356
|
if (attachment.type === "document") {
|
|
5357
5357
|
if (attachment.contentType === "application/pdf") {
|
|
5358
5358
|
const pdfText = attachment.content?.[0]?.text || "";
|
|
@@ -11267,7 +11267,7 @@ const NextAssistantMessage = ({
|
|
|
11267
11267
|
}
|
|
11268
11268
|
return /* @__PURE__ */ jsxRuntime.jsxs(react.MessagePrimitive.Root, { className: "max-w-full", children: [
|
|
11269
11269
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-icon6 text-ui-lg leading-ui-lg", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11270
|
-
react.MessagePrimitive.
|
|
11270
|
+
react.MessagePrimitive.Parts,
|
|
11271
11271
|
{
|
|
11272
11272
|
components: {
|
|
11273
11273
|
Text: MarkdownText,
|