@superinterface/react 5.2.1 → 5.2.3-beta.0

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.cjs CHANGED
@@ -44266,7 +44266,9 @@ Submit.Button = Button3;
44266
44266
  // src/components/threads/Thread/MessageForm/Root/index.tsx
44267
44267
  var import_react_query6 = require("@tanstack/react-query");
44268
44268
  var import_react51 = require("react");
44269
+ // src/lib/reactHookForm.ts
44269
44270
  var import_react_hook_form = require("react-hook-form");
44271
+ // src/components/threads/Thread/MessageForm/Root/index.tsx
44270
44272
  var import_themes47 = require("@radix-ui/themes");
44271
44273
  // src/components/threads/Thread/MessageForm/Root/lib/formOptions.ts
44272
44274
  var import_zod = require("zod");
@@ -44485,12 +44487,10 @@ var Root8 = function(_ref) {
44485
44487
  });
44486
44488
  };
44487
44489
  // src/components/threads/Thread/MessageForm/Field/index.tsx
44488
- var import_react_hook_form3 = require("react-hook-form");
44489
44490
  var import_themes51 = require("@radix-ui/themes");
44490
44491
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
44491
44492
  var import_react_compiler_runtime69 = require("react-compiler-runtime");
44492
44493
  var import_themes48 = require("@radix-ui/themes");
44493
- var import_react_hook_form2 = require("react-hook-form");
44494
44494
  // src/hooks/misc/usePrevious.ts
44495
44495
  var import_react52 = require("react");
44496
44496
  var usePrevious = function(state) {
@@ -44718,7 +44718,7 @@ var Input = function(props) {
44718
44718
  "use no memo";
44719
44719
  var _props$placeholder;
44720
44720
  var assistantNameContext = (0, import_react54.useContext)(AssistantNameContext);
44721
- var register = (0, import_react_hook_form2.useFormContext)().register;
44721
+ var register = (0, import_react_hook_form.useFormContext)().register;
44722
44722
  var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading;
44723
44723
  var isSubmitDisabled = (0, import_react54.useMemo)(function() {
44724
44724
  return isDisabled || isLoading;
@@ -45676,7 +45676,7 @@ function _toPrimitive38(t, r) {
45676
45676
  var Root10 = function(_ref) {
45677
45677
  "use no memo";
45678
45678
  var children = _ref.children, className = _ref.className, style = _ref.style;
45679
- var _$_ref = (0, import_react_hook_form3.useFormContext)(), errors = _$_ref.formState.errors;
45679
+ var _$_ref = (0, import_react_hook_form.useFormContext)(), errors = _$_ref.formState.errors;
45680
45680
  return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_themes51.Container, {
45681
45681
  size: "2",
45682
45682
  flexGrow: "0",