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