@reactive-forms/core
Advanced tools
@@ -198,3 +198,5 @@ /// <reference types="react" /> | ||
| export declare type FormContextType<Values extends object> = FormShared<Values>; | ||
| declare type FormContextType<Values extends object> = FormShared<Values>; | ||
| export { FormContextType } | ||
| export { FormContextType as FormContextType_alias_1 } | ||
@@ -201,0 +203,0 @@ export declare type FormControl<Values extends object> = { |
@@ -198,3 +198,5 @@ /// <reference types="react" /> | ||
| export declare type FormContextType<Values extends object> = FormShared<Values>; | ||
| declare type FormContextType<Values extends object> = FormShared<Values>; | ||
| export { FormContextType } | ||
| export { FormContextType as FormContextType_alias_1 } | ||
@@ -201,0 +203,0 @@ export declare type FormControl<Values extends object> = { |
+1
-0
| export { default_alias as default } from './_tsup-dts-rollup.mjs'; | ||
| export { FormContextType } from './_tsup-dts-rollup.mjs'; | ||
| export { FieldProps } from './_tsup-dts-rollup.mjs'; | ||
@@ -3,0 +4,0 @@ export { Field } from './_tsup-dts-rollup.mjs'; |
+1
-0
| export { default_alias as default } from './_tsup-dts-rollup.js'; | ||
| export { FormContextType } from './_tsup-dts-rollup.js'; | ||
| export { FieldProps } from './_tsup-dts-rollup.js'; | ||
@@ -3,0 +4,0 @@ export { Field } from './_tsup-dts-rollup.js'; |
+11
-11
@@ -614,3 +614,3 @@ 'use strict'; | ||
| const updateFormValidness = React5.useCallback( | ||
| ({ values: values2 }) => setFormMeta(formMetaPaths.isValid, deepRemoveEmpty(values2) === void 0), | ||
| (values2) => setFormMeta(formMetaPaths.isValid, deepRemoveEmpty(values2) === void 0), | ||
| [setFormMeta] | ||
@@ -631,14 +631,14 @@ ); | ||
| ); | ||
| React5.useEffect( | ||
| () => values.watchBatchUpdates(({ values: values2 }) => updateFormDirtiness(values2)), | ||
| [values, updateFormDirtiness] | ||
| ); | ||
| React5.useEffect( | ||
| () => errors.watchBatchUpdates((batchUpdate) => { | ||
| React5.useEffect(() => { | ||
| updateFormDirtiness(values.getValues()); | ||
| return values.watchBatchUpdates(({ values: values2 }) => updateFormDirtiness(values2)); | ||
| }, [values, updateFormDirtiness]); | ||
| React5.useEffect(() => { | ||
| updateFormValidness(errors.getValues()); | ||
| errors.watchBatchUpdates((batchUpdate) => { | ||
| if (batchUpdate.paths.length > 0) { | ||
| updateFormValidness(batchUpdate); | ||
| updateFormValidness(batchUpdate.values); | ||
| } | ||
| }), | ||
| [errors, updateFormValidness] | ||
| ); | ||
| }); | ||
| }, [errors, updateFormValidness]); | ||
| React5.useEffect(() => values.watchBatchUpdates(validateUpdatedFields), [values, validateUpdatedFields]); | ||
@@ -645,0 +645,0 @@ const bag = { |
+11
-11
@@ -592,3 +592,3 @@ import React5, { createContext, useRef, useCallback, useMemo, useEffect, useContext, Fragment, useState } from 'react'; | ||
| const updateFormValidness = useCallback( | ||
| ({ values: values2 }) => setFormMeta(formMetaPaths.isValid, deepRemoveEmpty(values2) === void 0), | ||
| (values2) => setFormMeta(formMetaPaths.isValid, deepRemoveEmpty(values2) === void 0), | ||
| [setFormMeta] | ||
@@ -609,14 +609,14 @@ ); | ||
| ); | ||
| useEffect( | ||
| () => values.watchBatchUpdates(({ values: values2 }) => updateFormDirtiness(values2)), | ||
| [values, updateFormDirtiness] | ||
| ); | ||
| useEffect( | ||
| () => errors.watchBatchUpdates((batchUpdate) => { | ||
| useEffect(() => { | ||
| updateFormDirtiness(values.getValues()); | ||
| return values.watchBatchUpdates(({ values: values2 }) => updateFormDirtiness(values2)); | ||
| }, [values, updateFormDirtiness]); | ||
| useEffect(() => { | ||
| updateFormValidness(errors.getValues()); | ||
| errors.watchBatchUpdates((batchUpdate) => { | ||
| if (batchUpdate.paths.length > 0) { | ||
| updateFormValidness(batchUpdate); | ||
| updateFormValidness(batchUpdate.values); | ||
| } | ||
| }), | ||
| [errors, updateFormValidness] | ||
| ); | ||
| }); | ||
| }, [errors, updateFormValidness]); | ||
| useEffect(() => values.watchBatchUpdates(validateUpdatedFields), [values, validateUpdatedFields]); | ||
@@ -623,0 +623,0 @@ const bag = { |
+3
-3
| { | ||
| "name": "@reactive-forms/core", | ||
| "description": "Core package of Reactive Forms framework", | ||
| "version": "0.12.2", | ||
| "version": "0.12.3", | ||
| "type": "commonjs", | ||
@@ -22,4 +22,4 @@ "bugs": "https://github.com/fracht/reactive-forms/issues", | ||
| "tiny-invariant": "1.2.0", | ||
| "pxth": "0.9.2", | ||
| "stocked": "1.1.2" | ||
| "stocked": "1.1.2", | ||
| "pxth": "0.9.2" | ||
| }, | ||
@@ -26,0 +26,0 @@ "peerDependencies": { |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
117135
0.38%2527
0.12%