@assistant-ui/react 0.5.18 → 0.5.19
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/README.md +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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")
|