@mastra/playground-ui 5.2.5-alpha.1 → 6.0.0-alpha.2

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.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.makePrismAsyncSyntaxHighlighter({
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.Content,
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.Content,
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.Content,
11270
+ react.MessagePrimitive.Parts,
11271
11271
  {
11272
11272
  components: {
11273
11273
  Text: MarkdownText,