@assistant-ui/react 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -3769,7 +3769,10 @@ var useExternalStoreRuntime = (store) => {
3769
3769
  };
3770
3770
 
3771
3771
  // src/ui/thread-config.tsx
3772
- import { createContext as createContext5, useContext as useContext5 } from "react";
3772
+ import {
3773
+ createContext as createContext5,
3774
+ useContext as useContext5
3775
+ } from "react";
3773
3776
  import { Fragment as Fragment3, jsx as jsx29 } from "react/jsx-runtime";
3774
3777
  var ThreadConfigContext = createContext5({});
3775
3778
  var useThreadConfig = () => {
@@ -4154,10 +4157,10 @@ var ThreadWelcomeSuggestion = ({
4154
4157
  return /* @__PURE__ */ jsx37(
4155
4158
  ThreadWelcomeSuggestionStyled,
4156
4159
  {
4157
- prompt: prompt ?? text,
4160
+ prompt,
4158
4161
  method: "replace",
4159
4162
  autoSend: true,
4160
- children: /* @__PURE__ */ jsx37("span", { className: "aui-thread-welcome-suggestion-text", children: text })
4163
+ children: /* @__PURE__ */ jsx37("span", { className: "aui-thread-welcome-suggestion-text", children: text ?? prompt })
4161
4164
  }
4162
4165
  );
4163
4166
  };