All files / forms/src index.js

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37                                                                         
/**
 * Coherent.js Forms
 *
 * SSR + Hydration form system
 *
 * @module forms
 */
 
// SERVER-SIDE: Build forms with validation metadata
export {
  FormBuilder,
  createFormBuilder,
  buildForm,
  DEFAULT_CLASS_NAMES,
} from './form-builder.js';
 
// CLIENT-SIDE: Hydrate server-rendered forms
export { hydrateForm } from './form-hydration.js';
 
// SHARED: Validators (used by both server and client). One registry and one
// calling convention, identical to `@coherent.js/forms/validators`.
export {
  validators,
  FormValidator,
  createValidator,
  validate,
} from './validation.js';
export {
  validateField,
  validateForm,
  registerValidator,
  composeValidators,
} from './validators.js';
 
// 1.0: removed deprecated SPA exports (createForm, formValidators, enhancedForm,
// advanced-validation). See docs/migration/1.0#removed-forms-spa-apis.