@paragrav/rhf-utils 0.0.26 → 0.0.27
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/{devtool → esm/devtool}/LazyDevTool.mjs +4 -4
- package/dist/{errors → esm/errors}/orphan/useOrphanFormErrorsToConsoleError.mjs +2 -2
- package/dist/{errors → esm/errors}/useFormErrorsEffect.mjs +2 -2
- package/dist/esm/errors/useFormErrorsOnChange.mjs +9 -0
- package/dist/esm/submit/useFormOnSubmitSuccessful.mjs +11 -0
- package/dist/esm/submit/useFormOnSubmitSuccessfulAndReset.mjs +14 -0
- package/package.json +39 -39
- package/dist/_virtual/_commonjsHelpers.mjs +0 -8
- package/dist/_virtual/index.mjs +0 -4
- package/dist/errors/useFormErrorsOnChange.mjs +0 -9
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.mjs +0 -13
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.mjs +0 -305
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.mjs +0 -22
- package/dist/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.mjs +0 -10
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.mjs +0 -9
- package/dist/node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.mjs +0 -57
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.mjs +0 -167
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.mjs +0 -49
- package/dist/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.mjs +0 -82
- package/dist/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.mjs +0 -146
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.mjs +0 -52
- package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.mjs +0 -7
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.mjs +0 -34
- package/dist/node_modules/@hookform/devtools/dist/index.esm.mjs +0 -1402
- package/dist/node_modules/dequal/dist/index.mjs +0 -64
- package/dist/node_modules/little-state-machine/dist/little-state-machine.es.mjs +0 -67
- package/dist/node_modules/lodash/_Hash.mjs +0 -22
- package/dist/node_modules/lodash/_ListCache.mjs +0 -22
- package/dist/node_modules/lodash/_Map.mjs +0 -6
- package/dist/node_modules/lodash/_MapCache.mjs +0 -22
- package/dist/node_modules/lodash/_Symbol.mjs +0 -5
- package/dist/node_modules/lodash/_arrayMap.mjs +0 -9
- package/dist/node_modules/lodash/_assocIndexOf.mjs +0 -12
- package/dist/node_modules/lodash/_baseGet.mjs +0 -13
- package/dist/node_modules/lodash/_baseGetTag.mjs +0 -11
- package/dist/node_modules/lodash/_baseIsNative.mjs +0 -17
- package/dist/node_modules/lodash/_baseToString.mjs +0 -19
- package/dist/node_modules/lodash/_castPath.mjs +0 -12
- package/dist/node_modules/lodash/_coreJsData.mjs +0 -5
- package/dist/node_modules/lodash/_freeGlobal.mjs +0 -5
- package/dist/node_modules/lodash/_getMapData.mjs +0 -10
- package/dist/node_modules/lodash/_getNative.mjs +0 -11
- package/dist/node_modules/lodash/_getRawTag.mjs +0 -16
- package/dist/node_modules/lodash/_getValue.mjs +0 -7
- package/dist/node_modules/lodash/_hashClear.mjs +0 -9
- package/dist/node_modules/lodash/_hashDelete.mjs +0 -8
- package/dist/node_modules/lodash/_hashGet.mjs +0 -14
- package/dist/node_modules/lodash/_hashHas.mjs +0 -10
- package/dist/node_modules/lodash/_hashSet.mjs +0 -10
- package/dist/node_modules/lodash/_isKey.mjs +0 -13
- package/dist/node_modules/lodash/_isKeyable.mjs +0 -8
- package/dist/node_modules/lodash/_isMasked.mjs +0 -12
- package/dist/node_modules/lodash/_listCacheClear.mjs +0 -7
- package/dist/node_modules/lodash/_listCacheDelete.mjs +0 -13
- package/dist/node_modules/lodash/_listCacheGet.mjs +0 -10
- package/dist/node_modules/lodash/_listCacheHas.mjs +0 -9
- package/dist/node_modules/lodash/_listCacheSet.mjs +0 -10
- package/dist/node_modules/lodash/_mapCacheClear.mjs +0 -15
- package/dist/node_modules/lodash/_mapCacheDelete.mjs +0 -10
- package/dist/node_modules/lodash/_mapCacheGet.mjs +0 -9
- package/dist/node_modules/lodash/_mapCacheHas.mjs +0 -9
- package/dist/node_modules/lodash/_mapCacheSet.mjs +0 -10
- package/dist/node_modules/lodash/_memoizeCapped.mjs +0 -12
- package/dist/node_modules/lodash/_nativeCreate.mjs +0 -5
- package/dist/node_modules/lodash/_objectToString.mjs +0 -8
- package/dist/node_modules/lodash/_root.mjs +0 -5
- package/dist/node_modules/lodash/_stringToPath.mjs +0 -10
- package/dist/node_modules/lodash/_toKey.mjs +0 -12
- package/dist/node_modules/lodash/_toSource.mjs +0 -18
- package/dist/node_modules/lodash/eq.mjs +0 -7
- package/dist/node_modules/lodash/get.mjs +0 -12
- package/dist/node_modules/lodash/isArray.mjs +0 -4
- package/dist/node_modules/lodash/isFunction.mjs +0 -13
- package/dist/node_modules/lodash/isObject.mjs +0 -11
- package/dist/node_modules/lodash/isObjectLike.mjs +0 -7
- package/dist/node_modules/lodash/isSymbol.mjs +0 -10
- package/dist/node_modules/lodash/isUndefined.mjs +0 -9
- package/dist/node_modules/lodash/memoize.mjs +0 -19
- package/dist/node_modules/lodash/toString.mjs +0 -9
- package/dist/node_modules/react-simple-animate/dist/index.mjs +0 -257
- package/dist/node_modules/stylis/src/Enum.mjs +0 -12
- package/dist/node_modules/stylis/src/Middleware.mjs +0 -18
- package/dist/node_modules/stylis/src/Parser.mjs +0 -114
- package/dist/node_modules/stylis/src/Serializer.mjs +0 -28
- package/dist/node_modules/stylis/src/Tokenizer.mjs +0 -131
- package/dist/node_modules/stylis/src/Utility.mjs +0 -50
- package/dist/node_modules/use-deep-compare-effect/dist/use-deep-compare-effect.esm.mjs +0 -24
- package/dist/node_modules/uuid/dist/esm-browser/regex.mjs +0 -4
- package/dist/node_modules/uuid/dist/esm-browser/rng.mjs +0 -9
- package/dist/node_modules/uuid/dist/esm-browser/stringify.mjs +0 -13
- package/dist/node_modules/uuid/dist/esm-browser/v4.mjs +0 -16
- package/dist/node_modules/uuid/dist/esm-browser/validate.mjs +0 -7
- package/dist/submit/useFormOnSubmitSuccessful.mjs +0 -11
- package/dist/submit/useFormOnSubmitSuccessfulAndReset.mjs +0 -14
- /package/dist/{errors → esm/errors}/flattenFieldErrors.mjs +0 -0
- /package/dist/{errors → esm/errors}/getFlatFieldErrors.mjs +0 -0
- /package/dist/{errors → esm/errors}/isFieldError.mjs +0 -0
- /package/dist/{errors → esm/errors}/message/FormErrorMessage.mjs +0 -0
- /package/dist/{errors → esm/errors}/message/FormErrorMessageByPath.mjs +0 -0
- /package/dist/{errors → esm/errors}/nonfield/FormNonFieldErrorMarker.mjs +0 -0
- /package/dist/{errors → esm/errors}/nonfield/FormNonFieldErrorMarker.utils.mjs +0 -0
- /package/dist/{errors → esm/errors}/nonfield/isNonFieldError.mjs +0 -0
- /package/dist/{errors → esm/errors}/orphan/getOrphanFlatFieldErrors.mjs +0 -0
- /package/dist/{errors → esm/errors}/orphan/useFormHasOrphanAndNoFieldErrors.mjs +0 -0
- /package/dist/{errors → esm/errors}/orphan/useOrphanFormErrors.mjs +0 -0
- /package/dist/{errors → esm/errors}/root/useRootFormFieldErrors.mjs +0 -0
- /package/dist/{errors → esm/errors}/root/utils.mjs +0 -0
- /package/dist/{errors → esm/errors}/useFormErrorConsoleDebug.mjs +0 -0
- /package/dist/{errors → esm/errors}/useFormErrorsIfAny.mjs +0 -0
- /package/dist/{errors → esm/errors}/useFormFieldErrors.mjs +0 -0
- /package/dist/{errors → esm/errors}/useFormRequestSubmit.mjs +0 -0
- /package/dist/{isEmptyObject.mjs → esm/isEmptyObject.mjs} +0 -0
- /package/dist/{main.mjs → esm/main.mjs} +0 -0
- /package/dist/{submit → esm/submit}/useResetFormOnSubmitSuccessful.mjs +0 -0
- /package/dist/{devtool → types/devtool}/LazyDevTool.d.ts +0 -0
- /package/dist/{errors → types/errors}/flattenFieldErrors.d.ts +0 -0
- /package/dist/{errors → types/errors}/getFlatFieldErrors.d.ts +0 -0
- /package/dist/{errors → types/errors}/isFieldError.d.ts +0 -0
- /package/dist/{errors → types/errors}/message/FormErrorMessage.d.ts +0 -0
- /package/dist/{errors → types/errors}/message/FormErrorMessageByPath.d.ts +0 -0
- /package/dist/{errors → types/errors}/nonfield/FormNonFieldErrorMarker.d.ts +0 -0
- /package/dist/{errors → types/errors}/nonfield/FormNonFieldErrorMarker.spec.d.ts +0 -0
- /package/dist/{errors → types/errors}/nonfield/FormNonFieldErrorMarker.utils.d.ts +0 -0
- /package/dist/{errors → types/errors}/nonfield/isNonFieldError.d.ts +0 -0
- /package/dist/{errors → types/errors}/orphan/getOrphanFlatFieldErrors.d.ts +0 -0
- /package/dist/{errors → types/errors}/orphan/useFormHasOrphanAndNoFieldErrors.d.ts +0 -0
- /package/dist/{errors → types/errors}/orphan/useOrphanFormErrors.d.ts +0 -0
- /package/dist/{errors → types/errors}/orphan/useOrphanFormErrorsToConsoleError.d.ts +0 -0
- /package/dist/{errors → types/errors}/root/useRootFormFieldErrors.d.ts +0 -0
- /package/dist/{errors → types/errors}/root/utils.d.ts +0 -0
- /package/dist/{errors → types/errors}/useFormErrorConsoleDebug.d.ts +0 -0
- /package/dist/{errors → types/errors}/useFormErrorsEffect.d.ts +0 -0
- /package/dist/{errors → types/errors}/useFormErrorsIfAny.d.ts +0 -0
- /package/dist/{errors → types/errors}/useFormErrorsOnChange.d.ts +0 -0
- /package/dist/{errors → types/errors}/useFormFieldErrors.d.ts +0 -0
- /package/dist/{errors → types/errors}/useFormFlatFieldErrors.d.ts +0 -0
- /package/dist/{errors → types/errors}/useFormRequestSubmit.d.ts +0 -0
- /package/dist/{isEmptyObject.d.ts → types/isEmptyObject.d.ts} +0 -0
- /package/dist/{main.d.ts → types/main.d.ts} +0 -0
- /package/dist/{submit → types/submit}/useFormOnSubmitSuccessful.d.ts +0 -0
- /package/dist/{submit → types/submit}/useFormOnSubmitSuccessfulAndReset.d.ts +0 -0
- /package/dist/{submit → types/submit}/useResetFormOnSubmitSuccessful.d.ts +0 -0
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { assign as g, charat as h, strlen as x, trim as p, from as j, substr as q } from "./Utility.mjs";
|
|
2
|
-
var u = 1, t = 1, m = 0, n = 0, r = 0, i = "";
|
|
3
|
-
function z(e, c, k, b, v, w, d) {
|
|
4
|
-
return { value: e, root: c, parent: k, type: b, props: v, children: w, line: u, column: t, length: d, return: "" };
|
|
5
|
-
}
|
|
6
|
-
function C(e, c) {
|
|
7
|
-
return g(z("", null, null, "", null, null, 0), e, { length: -e.length }, c);
|
|
8
|
-
}
|
|
9
|
-
function D() {
|
|
10
|
-
return r;
|
|
11
|
-
}
|
|
12
|
-
function E() {
|
|
13
|
-
return r = n > 0 ? h(i, --n) : 0, t--, r === 10 && (t = 1, u--), r;
|
|
14
|
-
}
|
|
15
|
-
function a() {
|
|
16
|
-
return r = n < m ? h(i, n++) : 0, t++, r === 10 && (t = 1, u++), r;
|
|
17
|
-
}
|
|
18
|
-
function s() {
|
|
19
|
-
return h(i, n);
|
|
20
|
-
}
|
|
21
|
-
function A() {
|
|
22
|
-
return n;
|
|
23
|
-
}
|
|
24
|
-
function l(e, c) {
|
|
25
|
-
return q(i, e, c);
|
|
26
|
-
}
|
|
27
|
-
function o(e) {
|
|
28
|
-
switch (e) {
|
|
29
|
-
case 0:
|
|
30
|
-
case 9:
|
|
31
|
-
case 10:
|
|
32
|
-
case 13:
|
|
33
|
-
case 32:
|
|
34
|
-
return 5;
|
|
35
|
-
case 33:
|
|
36
|
-
case 43:
|
|
37
|
-
case 44:
|
|
38
|
-
case 47:
|
|
39
|
-
case 62:
|
|
40
|
-
case 64:
|
|
41
|
-
case 126:
|
|
42
|
-
case 59:
|
|
43
|
-
case 123:
|
|
44
|
-
case 125:
|
|
45
|
-
return 4;
|
|
46
|
-
case 58:
|
|
47
|
-
return 3;
|
|
48
|
-
case 34:
|
|
49
|
-
case 39:
|
|
50
|
-
case 40:
|
|
51
|
-
case 91:
|
|
52
|
-
return 2;
|
|
53
|
-
case 41:
|
|
54
|
-
case 93:
|
|
55
|
-
return 1;
|
|
56
|
-
}
|
|
57
|
-
return 0;
|
|
58
|
-
}
|
|
59
|
-
function F(e) {
|
|
60
|
-
return u = t = 1, m = x(i = e), n = 0, [];
|
|
61
|
-
}
|
|
62
|
-
function G(e) {
|
|
63
|
-
return i = "", e;
|
|
64
|
-
}
|
|
65
|
-
function H(e) {
|
|
66
|
-
return p(l(n - 1, f(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
67
|
-
}
|
|
68
|
-
function I(e) {
|
|
69
|
-
for (; (r = s()) && r < 33; )
|
|
70
|
-
a();
|
|
71
|
-
return o(e) > 2 || o(r) > 3 ? "" : " ";
|
|
72
|
-
}
|
|
73
|
-
function J(e, c) {
|
|
74
|
-
for (; --c && a() && !(r < 48 || r > 102 || r > 57 && r < 65 || r > 70 && r < 97); )
|
|
75
|
-
;
|
|
76
|
-
return l(e, A() + (c < 6 && s() == 32 && a() == 32));
|
|
77
|
-
}
|
|
78
|
-
function f(e) {
|
|
79
|
-
for (; a(); )
|
|
80
|
-
switch (r) {
|
|
81
|
-
case e:
|
|
82
|
-
return n;
|
|
83
|
-
case 34:
|
|
84
|
-
case 39:
|
|
85
|
-
e !== 34 && e !== 39 && f(r);
|
|
86
|
-
break;
|
|
87
|
-
case 40:
|
|
88
|
-
e === 41 && f(e);
|
|
89
|
-
break;
|
|
90
|
-
case 92:
|
|
91
|
-
a();
|
|
92
|
-
break;
|
|
93
|
-
}
|
|
94
|
-
return n;
|
|
95
|
-
}
|
|
96
|
-
function K(e, c) {
|
|
97
|
-
for (; a() && e + r !== 57; )
|
|
98
|
-
if (e + r === 84 && s() === 47)
|
|
99
|
-
break;
|
|
100
|
-
return "/*" + l(c, n - 1) + "*" + j(e === 47 ? e : a());
|
|
101
|
-
}
|
|
102
|
-
function L(e) {
|
|
103
|
-
for (; !o(s()); )
|
|
104
|
-
a();
|
|
105
|
-
return l(e, n);
|
|
106
|
-
}
|
|
107
|
-
export {
|
|
108
|
-
F as alloc,
|
|
109
|
-
A as caret,
|
|
110
|
-
D as char,
|
|
111
|
-
r as character,
|
|
112
|
-
i as characters,
|
|
113
|
-
t as column,
|
|
114
|
-
K as commenter,
|
|
115
|
-
C as copy,
|
|
116
|
-
G as dealloc,
|
|
117
|
-
H as delimit,
|
|
118
|
-
f as delimiter,
|
|
119
|
-
J as escaping,
|
|
120
|
-
L as identifier,
|
|
121
|
-
m as length,
|
|
122
|
-
u as line,
|
|
123
|
-
a as next,
|
|
124
|
-
z as node,
|
|
125
|
-
s as peek,
|
|
126
|
-
n as position,
|
|
127
|
-
E as prev,
|
|
128
|
-
l as slice,
|
|
129
|
-
o as token,
|
|
130
|
-
I as whitespace
|
|
131
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
var i = Math.abs, c = String.fromCharCode, o = Object.assign;
|
|
2
|
-
function f(n, r) {
|
|
3
|
-
return t(n, 0) ^ 45 ? (((r << 2 ^ t(n, 0)) << 2 ^ t(n, 1)) << 2 ^ t(n, 2)) << 2 ^ t(n, 3) : 0;
|
|
4
|
-
}
|
|
5
|
-
function u(n) {
|
|
6
|
-
return n.trim();
|
|
7
|
-
}
|
|
8
|
-
function s(n, r) {
|
|
9
|
-
return (n = r.exec(n)) ? n[0] : n;
|
|
10
|
-
}
|
|
11
|
-
function a(n, r, e) {
|
|
12
|
-
return n.replace(r, e);
|
|
13
|
-
}
|
|
14
|
-
function h(n, r) {
|
|
15
|
-
return n.indexOf(r);
|
|
16
|
-
}
|
|
17
|
-
function t(n, r) {
|
|
18
|
-
return n.charCodeAt(r) | 0;
|
|
19
|
-
}
|
|
20
|
-
function m(n, r, e) {
|
|
21
|
-
return n.slice(r, e);
|
|
22
|
-
}
|
|
23
|
-
function p(n) {
|
|
24
|
-
return n.length;
|
|
25
|
-
}
|
|
26
|
-
function b(n) {
|
|
27
|
-
return n.length;
|
|
28
|
-
}
|
|
29
|
-
function d(n, r) {
|
|
30
|
-
return r.push(n), n;
|
|
31
|
-
}
|
|
32
|
-
function g(n, r) {
|
|
33
|
-
return n.map(r).join("");
|
|
34
|
-
}
|
|
35
|
-
export {
|
|
36
|
-
i as abs,
|
|
37
|
-
d as append,
|
|
38
|
-
o as assign,
|
|
39
|
-
t as charat,
|
|
40
|
-
g as combine,
|
|
41
|
-
c as from,
|
|
42
|
-
f as hash,
|
|
43
|
-
h as indexof,
|
|
44
|
-
s as match,
|
|
45
|
-
a as replace,
|
|
46
|
-
b as sizeof,
|
|
47
|
-
p as strlen,
|
|
48
|
-
m as substr,
|
|
49
|
-
u as trim
|
|
50
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as t from "react";
|
|
2
|
-
import { dequal as u } from "../../dequal/dist/index.mjs";
|
|
3
|
-
function f(e) {
|
|
4
|
-
if (!e || !e.length)
|
|
5
|
-
throw new Error("useDeepCompareEffect should not be used with no dependencies. Use React.useEffect instead.");
|
|
6
|
-
if (e.every(o))
|
|
7
|
-
throw new Error("useDeepCompareEffect should not be used with dependencies that are all primitive values. Use React.useEffect instead.");
|
|
8
|
-
}
|
|
9
|
-
function o(e) {
|
|
10
|
-
return e == null || /^[sbn]/.test(typeof e);
|
|
11
|
-
}
|
|
12
|
-
function s(e) {
|
|
13
|
-
var r = t.useRef(e), n = t.useRef(0);
|
|
14
|
-
return u(e, r.current) || (r.current = e, n.current += 1), t.useMemo(function() {
|
|
15
|
-
return r.current;
|
|
16
|
-
}, [n.current]);
|
|
17
|
-
}
|
|
18
|
-
function c(e, r) {
|
|
19
|
-
return process.env.NODE_ENV !== "production" && f(r), t.useEffect(e, s(r));
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
c as default,
|
|
23
|
-
s as useDeepCompareMemoize
|
|
24
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var t, e = new Uint8Array(16);
|
|
2
|
-
function o() {
|
|
3
|
-
if (!t && (t = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !t))
|
|
4
|
-
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
5
|
-
return t(e);
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
o as default
|
|
9
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import s from "./validate.mjs";
|
|
2
|
-
var t = [];
|
|
3
|
-
for (var n = 0; n < 256; ++n)
|
|
4
|
-
t.push((n + 256).toString(16).substr(1));
|
|
5
|
-
function f(e) {
|
|
6
|
-
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, o = (t[e[i + 0]] + t[e[i + 1]] + t[e[i + 2]] + t[e[i + 3]] + "-" + t[e[i + 4]] + t[e[i + 5]] + "-" + t[e[i + 6]] + t[e[i + 7]] + "-" + t[e[i + 8]] + t[e[i + 9]] + "-" + t[e[i + 10]] + t[e[i + 11]] + t[e[i + 12]] + t[e[i + 13]] + t[e[i + 14]] + t[e[i + 15]]).toLowerCase();
|
|
7
|
-
if (!s(o))
|
|
8
|
-
throw TypeError("Stringified UUID is invalid");
|
|
9
|
-
return o;
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
f as default
|
|
13
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import d from "./rng.mjs";
|
|
2
|
-
import f from "./stringify.mjs";
|
|
3
|
-
function v(n, m, x) {
|
|
4
|
-
n = n || {};
|
|
5
|
-
var r = n.random || (n.rng || d)();
|
|
6
|
-
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, m) {
|
|
7
|
-
x = x || 0;
|
|
8
|
-
for (var a = 0; a < 16; ++a)
|
|
9
|
-
m[x + a] = r[a];
|
|
10
|
-
return m;
|
|
11
|
-
}
|
|
12
|
-
return f(r);
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
v as default
|
|
16
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import r from "react";
|
|
2
|
-
import { useFormState as f } from "react-hook-form";
|
|
3
|
-
import c from "./useFormOnSubmitSuccessful.mjs";
|
|
4
|
-
const m = (t) => {
|
|
5
|
-
const { isSubmitSuccessful: u, isDirty: s } = f(), e = r.useRef(!1);
|
|
6
|
-
c(() => {
|
|
7
|
-
e.current = !0;
|
|
8
|
-
}), r.useEffect(() => {
|
|
9
|
-
t && e.current && !u && !s && (t(), e.current = !1);
|
|
10
|
-
}, [u, s]);
|
|
11
|
-
}, S = m;
|
|
12
|
-
export {
|
|
13
|
-
S as default
|
|
14
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|