@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.
@@ -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
@@ -1,4 +1,4 @@
1
- import { F as FieldValidator } from './types-Cw5CeZP-.cjs';
1
+ import { F as FieldValidator } from './types-Dww52PeF.cjs';
2
2
  import 'react';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { F as FieldValidator } from './types-Cw5CeZP-.js';
1
+ import { F as FieldValidator } from './types-Dww52PeF.js';
2
2
  import 'react';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { F as FieldValidator, b as FormValues } from './types-Cw5CeZP-.cjs';
1
+ import { F as FieldValidator, b as FormValues } from './types-Dww52PeF.cjs';
2
2
  import 'react';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { F as FieldValidator, b as FormValues } from './types-Cw5CeZP-.js';
1
+ import { F as FieldValidator, b as FormValues } from './types-Dww52PeF.js';
2
2
  import 'react';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { b as FormValues, V as ValidationSchema, F as FieldValidator } from './types-Cw5CeZP-.cjs';
1
+ import { b as FormValues, V as ValidationSchema, F as FieldValidator } from './types-Dww52PeF.cjs';
2
2
  import 'react';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { b as FormValues, V as ValidationSchema, F as FieldValidator } from './types-Cw5CeZP-.js';
1
+ import { b as FormValues, V as ValidationSchema, F as FieldValidator } from './types-Dww52PeF.js';
2
2
  import 'react';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- export { F as FieldValidator, a as ValidationMode, V as ValidationSchema } from './types-Cw5CeZP-.cjs';
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';
@@ -1,4 +1,4 @@
1
- export { F as FieldValidator, a as ValidationMode, V as ValidationSchema } from './types-Cw5CeZP-.js';
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.2.2",
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.0.0"
124
+ "valibot": "^1.2.0"
122
125
  },
123
126
  "packageManager": "pnpm@9.14.4",
124
127
  "engines": {