@assistant-ui/react 0.5.3 → 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
@@ -3633,7 +3633,7 @@ var ExternalStoreThreadRuntime = class {
3633
3633
  edit: this.store.onEdit !== void 0,
3634
3634
  reload: this.store.onReload !== void 0,
3635
3635
  cancel: this.store.onCancel !== void 0,
3636
- copy: true
3636
+ copy: this.store.onCopy !== null
3637
3637
  };
3638
3638
  }
3639
3639
  messages = [];
@@ -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
  };