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