@assistant-ui/react 0.5.18 → 0.5.19

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -1394,6 +1394,7 @@ var defaultComponents = {
1394
1394
  };
1395
1395
  var MessageContentPartComponent = ({
1396
1396
  components: {
1397
+ Empty = defaultComponents.Text,
1397
1398
  Text: Text2 = defaultComponents.Text,
1398
1399
  Image: Image2 = defaultComponents.Image,
1399
1400
  UI = defaultComponents.UI,
@@ -1410,6 +1411,7 @@ var MessageContentPartComponent = ({
1410
1411
  case "text":
1411
1412
  if (status.type === "requires-action")
1412
1413
  throw new Error("Encountered unexpected requires-action status");
1414
+ if (part === EMPTY_CONTENT) return /* @__PURE__ */ jsx16(Empty, { part, status });
1413
1415
  return /* @__PURE__ */ jsx16(Text2, { part, status });
1414
1416
  case "image":
1415
1417
  if (status.type === "requires-action")