@assistant-ui/react 0.5.4 → 0.5.5

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.d.mts CHANGED
@@ -1202,8 +1202,8 @@ type AvatarProps = {
1202
1202
  };
1203
1203
 
1204
1204
  type SuggestionConfig = {
1205
- text: string;
1206
- prompt?: string;
1205
+ text?: ReactNode;
1206
+ prompt: string;
1207
1207
  };
1208
1208
  type ThreadWelcomeConfig = {
1209
1209
  message?: string | null | undefined;
package/dist/index.d.ts CHANGED
@@ -1202,8 +1202,8 @@ type AvatarProps = {
1202
1202
  };
1203
1203
 
1204
1204
  type SuggestionConfig = {
1205
- text: string;
1206
- prompt?: string;
1205
+ text?: ReactNode;
1206
+ prompt: string;
1207
1207
  };
1208
1208
  type ThreadWelcomeConfig = {
1209
1209
  message?: string | null | undefined;
package/dist/index.js CHANGED
@@ -4237,10 +4237,10 @@ var ThreadWelcomeSuggestion = ({
4237
4237
  return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
4238
4238
  ThreadWelcomeSuggestionStyled,
4239
4239
  {
4240
- prompt: prompt ?? text,
4240
+ prompt,
4241
4241
  method: "replace",
4242
4242
  autoSend: true,
4243
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "aui-thread-welcome-suggestion-text", children: text })
4243
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "aui-thread-welcome-suggestion-text", children: text ?? prompt })
4244
4244
  }
4245
4245
  );
4246
4246
  };