@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/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/README.md
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
<a href="https://assistant-ui.com/docs">Documentation</a> ·
|
8
8
|
<a href="https://assistant-ui.com/examples">Examples</a> ·
|
9
9
|
<a href="https://discord.gg/S9dwgCNEFs">Discord Community</a> ·
|
10
|
-
<a href="https://cal.com/simon-farshid/assistant-ui">
|
10
|
+
<a href="https://cal.com/simon-farshid/assistant-ui">Contact Sales</a>
|
11
11
|
</p>
|
12
12
|
|
13
13
|
**assistant-ui** is a set of React components for AI chat, with integrations Langchain, Vercel AI SDK, TailwindCSS, shadcn-ui, react-markdown, react-syntax-highlighter, React Hook Form and more!
|
package/dist/index.d.mts
CHANGED
@@ -1130,6 +1130,7 @@ declare const MessagePrimitiveIf: FC<MessagePrimitiveIfProps>;
|
|
1130
1130
|
|
1131
1131
|
type MessagePrimitiveContentProps = {
|
1132
1132
|
components?: {
|
1133
|
+
Empty?: TextContentPartComponent | undefined;
|
1133
1134
|
Text?: TextContentPartComponent | undefined;
|
1134
1135
|
Image?: ImageContentPartComponent | undefined;
|
1135
1136
|
UI?: UIContentPartComponent | undefined;
|
package/dist/index.d.ts
CHANGED
@@ -1130,6 +1130,7 @@ declare const MessagePrimitiveIf: FC<MessagePrimitiveIfProps>;
|
|
1130
1130
|
|
1131
1131
|
type MessagePrimitiveContentProps = {
|
1132
1132
|
components?: {
|
1133
|
+
Empty?: TextContentPartComponent | undefined;
|
1133
1134
|
Text?: TextContentPartComponent | undefined;
|
1134
1135
|
Image?: ImageContentPartComponent | undefined;
|
1135
1136
|
UI?: UIContentPartComponent | undefined;
|
package/dist/index.js
CHANGED
@@ -1486,6 +1486,7 @@ var defaultComponents = {
|
|
1486
1486
|
};
|
1487
1487
|
var MessageContentPartComponent = ({
|
1488
1488
|
components: {
|
1489
|
+
Empty = defaultComponents.Text,
|
1489
1490
|
Text: Text2 = defaultComponents.Text,
|
1490
1491
|
Image: Image2 = defaultComponents.Image,
|
1491
1492
|
UI = defaultComponents.UI,
|
@@ -1502,6 +1503,7 @@ var MessageContentPartComponent = ({
|
|
1502
1503
|
case "text":
|
1503
1504
|
if (status.type === "requires-action")
|
1504
1505
|
throw new Error("Encountered unexpected requires-action status");
|
1506
|
+
if (part === EMPTY_CONTENT) return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Empty, { part, status });
|
1505
1507
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Text2, { part, status });
|
1506
1508
|
case "image":
|
1507
1509
|
if (status.type === "requires-action")
|