@mordn/chat-widget 0.6.1 → 0.6.2

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.mjs CHANGED
@@ -171,11 +171,13 @@ import { CheckIcon as CheckIcon2, ChevronDownIcon, ChevronUpIcon } from "lucide-
171
171
  import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
172
172
 
173
173
  // src/ui/textarea.tsx
174
+ import * as React from "react";
174
175
  import { jsx as jsx7 } from "react/jsx-runtime";
175
- function Textarea({ className, ...props }) {
176
+ var Textarea = React.forwardRef(({ className, ...props }, ref) => {
176
177
  return /* @__PURE__ */ jsx7(
177
178
  "textarea",
178
179
  {
180
+ ref,
179
181
  "data-slot": "textarea",
180
182
  className: cn(
181
183
  "border-input placeholder:text-muted-foreground focus-visible:border-ring aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-[14px] transition-colors outline-none disabled:cursor-not-allowed disabled:opacity-50",
@@ -184,7 +186,8 @@ function Textarea({ className, ...props }) {
184
186
  ...props
185
187
  }
186
188
  );
187
- }
189
+ });
190
+ Textarea.displayName = "Textarea";
188
191
 
189
192
  // src/components/prompt-input.tsx
190
193
  import {
@@ -197,7 +200,7 @@ import {
197
200
  XIcon
198
201
  } from "lucide-react";
199
202
  import { nanoid } from "nanoid";
200
- import React, {
203
+ import React2, {
201
204
  Children,
202
205
  createContext,
203
206
  Fragment as Fragment2,
@@ -509,7 +512,7 @@ var PromptInputBody = ({
509
512
  className,
510
513
  ...props
511
514
  }) => /* @__PURE__ */ jsx8("div", { className: cn(className, "flex flex-col"), ...props });
512
- var PromptInputTextarea = React.forwardRef(({
515
+ var PromptInputTextarea = React2.forwardRef(({
513
516
  onChange,
514
517
  onKeyDown: externalOnKeyDown,
515
518
  className,
@@ -2916,9 +2919,9 @@ function useChatTheme() {
2916
2919
  }
2917
2920
 
2918
2921
  // src/ui/input.tsx
2919
- import * as React2 from "react";
2922
+ import * as React3 from "react";
2920
2923
  import { jsx as jsx23 } from "react/jsx-runtime";
2921
- var Input = React2.forwardRef(
2924
+ var Input = React3.forwardRef(
2922
2925
  ({ className, type, ...props }, ref) => {
2923
2926
  return /* @__PURE__ */ jsx23(
2924
2927
  "input",