@page-speed/forms 0.2.2 → 0.3.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/README.md +504 -2
- package/dist/core.cjs +18 -4
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +18 -4
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +18 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +18 -4
- package/dist/index.js.map +1 -1
- package/dist/inputs.cjs +1279 -68
- package/dist/inputs.cjs.map +1 -1
- package/dist/inputs.d.cts +521 -4
- package/dist/inputs.d.ts +521 -4
- package/dist/inputs.js +1275 -68
- package/dist/inputs.js.map +1 -1
- package/dist/{types-Cw5CeZP-.d.cts → types-Dww52PeF.d.cts} +3 -0
- package/dist/{types-Cw5CeZP-.d.ts → types-Dww52PeF.d.ts} +3 -0
- package/dist/validation-rules.d.cts +1 -1
- package/dist/validation-rules.d.ts +1 -1
- package/dist/validation-utils.d.cts +1 -1
- package/dist/validation-utils.d.ts +1 -1
- package/dist/validation-valibot.d.cts +1 -1
- package/dist/validation-valibot.d.ts +1 -1
- package/dist/validation.d.cts +1 -1
- package/dist/validation.d.ts +1 -1
- package/package.json +5 -2
|
@@ -227,12 +227,15 @@ interface FieldInputProps<T = any> {
|
|
|
227
227
|
}
|
|
228
228
|
/**
|
|
229
229
|
* Field meta information
|
|
230
|
+
* Enhanced with @opensite/hooks metadata tracking
|
|
230
231
|
*/
|
|
231
232
|
interface FieldMeta {
|
|
232
233
|
error?: string | string[];
|
|
233
234
|
touched: boolean;
|
|
234
235
|
isDirty: boolean;
|
|
235
236
|
isValidating: boolean;
|
|
237
|
+
validationCount?: number;
|
|
238
|
+
lastValidated?: number;
|
|
236
239
|
}
|
|
237
240
|
/**
|
|
238
241
|
* useField hook options
|
|
@@ -227,12 +227,15 @@ interface FieldInputProps<T = any> {
|
|
|
227
227
|
}
|
|
228
228
|
/**
|
|
229
229
|
* Field meta information
|
|
230
|
+
* Enhanced with @opensite/hooks metadata tracking
|
|
230
231
|
*/
|
|
231
232
|
interface FieldMeta {
|
|
232
233
|
error?: string | string[];
|
|
233
234
|
touched: boolean;
|
|
234
235
|
isDirty: boolean;
|
|
235
236
|
isValidating: boolean;
|
|
237
|
+
validationCount?: number;
|
|
238
|
+
lastValidated?: number;
|
|
236
239
|
}
|
|
237
240
|
/**
|
|
238
241
|
* useField hook options
|
package/dist/validation.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as FieldValidator, a as ValidationMode, V as ValidationSchema } from './types-
|
|
1
|
+
export { F as FieldValidator, a as ValidationMode, V as ValidationSchema } from './types-Dww52PeF.cjs';
|
|
2
2
|
export { ErrorMessageFn, ValidationRuleOptions, alpha, alphanumeric, compose, creditCard, email, integer, matches, max, maxLength, min, minLength, numeric, oneOf, pattern, phone, postalCode, required, url } from './validation-rules.cjs';
|
|
3
3
|
export { DebounceOptions, ErrorMessages, MessageTemplate, asyncValidator, crossFieldValidator, debounce, defaultMessages, getErrorMessage, messageRegistry, resetErrorMessages, setErrorMessages, when, withRaceConditionPrevention } from './validation-utils.cjs';
|
|
4
4
|
import 'react';
|
package/dist/validation.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as FieldValidator, a as ValidationMode, V as ValidationSchema } from './types-
|
|
1
|
+
export { F as FieldValidator, a as ValidationMode, V as ValidationSchema } from './types-Dww52PeF.js';
|
|
2
2
|
export { ErrorMessageFn, ValidationRuleOptions, alpha, alphanumeric, compose, creditCard, email, integer, matches, max, maxLength, min, minLength, numeric, oneOf, pattern, phone, postalCode, required, url } from './validation-rules.js';
|
|
3
3
|
export { DebounceOptions, ErrorMessages, MessageTemplate, asyncValidator, crossFieldValidator, debounce, defaultMessages, getErrorMessage, messageRegistry, resetErrorMessages, setErrorMessages, when, withRaceConditionPrevention } from './validation-utils.js';
|
|
4
4
|
import 'react';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@page-speed/forms",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Ultra-high-performance React form library with field-level reactivity and tree-shakable architecture",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -116,9 +116,12 @@
|
|
|
116
116
|
"typescript": "^5.7.2",
|
|
117
117
|
"vitest": "^4.0.10"
|
|
118
118
|
},
|
|
119
|
+
"dependencies": {
|
|
120
|
+
"@opensite/hooks": "^0.1.0"
|
|
121
|
+
},
|
|
119
122
|
"optionalDependencies": {
|
|
120
123
|
"@legendapp/state": "^3.0.0-beta.42",
|
|
121
|
-
"valibot": "^1.
|
|
124
|
+
"valibot": "^1.2.0"
|
|
122
125
|
},
|
|
123
126
|
"packageManager": "pnpm@9.14.4",
|
|
124
127
|
"engines": {
|