@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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -44117,7 +44117,9 @@ Submit.Button = Button3;
|
|
|
44117
44117
|
// src/components/threads/Thread/MessageForm/Root/index.tsx
|
|
44118
44118
|
import { useQueryClient as useQueryClient4 } from "@tanstack/react-query";
|
|
44119
44119
|
import { useMemo as useMemo13, useState as useState4, useCallback as useCallback3 } from "react";
|
|
44120
|
-
|
|
44120
|
+
// src/lib/reactHookForm.ts
|
|
44121
|
+
import { FormProvider, useForm, useFormContext } from "react-hook-form";
|
|
44122
|
+
// src/components/threads/Thread/MessageForm/Root/index.tsx
|
|
44121
44123
|
import { Box as Box14 } from "@radix-ui/themes";
|
|
44122
44124
|
// src/components/threads/Thread/MessageForm/Root/lib/formOptions.ts
|
|
44123
44125
|
import { z } from "zod";
|
|
@@ -44336,12 +44338,10 @@ var Root8 = function(_ref) {
|
|
|
44336
44338
|
});
|
|
44337
44339
|
};
|
|
44338
44340
|
// src/components/threads/Thread/MessageForm/Field/index.tsx
|
|
44339
|
-
import { useFormContext as useFormContext2 } from "react-hook-form";
|
|
44340
44341
|
import { Container as RadixContainer, Flex as Flex23 } from "@radix-ui/themes";
|
|
44341
44342
|
// src/components/threads/Thread/MessageForm/Field/Control.tsx
|
|
44342
44343
|
import { c as _c69 } from "react-compiler-runtime";
|
|
44343
44344
|
import { Flex as Flex20 } from "@radix-ui/themes";
|
|
44344
|
-
import { useFormContext } from "react-hook-form";
|
|
44345
44345
|
// src/hooks/misc/usePrevious.ts
|
|
44346
44346
|
import { useEffect as useEffect5, useRef as useRef4 } from "react";
|
|
44347
44347
|
var usePrevious = function(state) {
|
|
@@ -45527,7 +45527,7 @@ function _toPrimitive38(t, r) {
|
|
|
45527
45527
|
var Root10 = function(_ref) {
|
|
45528
45528
|
"use no memo";
|
|
45529
45529
|
var children = _ref.children, className = _ref.className, style = _ref.style;
|
|
45530
|
-
var
|
|
45530
|
+
var _useFormContext = useFormContext(), errors = _useFormContext.formState.errors;
|
|
45531
45531
|
return /* @__PURE__ */ _jsx74(RadixContainer, {
|
|
45532
45532
|
size: "2",
|
|
45533
45533
|
flexGrow: "0",
|