@samline/forms 2.10.0 → 2.11.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/CHANGELOG.md +8 -2
- package/README.md +1 -1
- package/dist/browser/global.d.ts +1 -1
- package/dist/browser/global.global.js +13 -13
- package/dist/browser/global.global.js.map +1 -1
- package/dist/browser/index.d.cts +1 -1
- package/dist/browser/index.d.ts +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/{registry-CPe_lf8-.d.cts → registry-Bzd3unBb.d.cts} +1 -1
- package/dist/{registry-CPe_lf8-.d.ts → registry-Bzd3unBb.d.ts} +1 -1
- package/package.json +2 -2
package/dist/browser/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as FormsApi, w as FormsAvailable, F as FormTarget, a as FormControllerOptions, b as FormController, N as NewFormInput } from '../registry-
|
|
1
|
+
import { v as FormsApi, w as FormsAvailable, F as FormTarget, a as FormControllerOptions, b as FormController, N as NewFormInput } from '../registry-Bzd3unBb.cjs';
|
|
2
2
|
|
|
3
3
|
declare const Forms: FormsApi;
|
|
4
4
|
declare const form: (target: FormTarget, options?: FormControllerOptions) => FormController;
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as FormsApi, w as FormsAvailable, F as FormTarget, a as FormControllerOptions, b as FormController, N as NewFormInput } from '../registry-
|
|
1
|
+
import { v as FormsApi, w as FormsAvailable, F as FormTarget, a as FormControllerOptions, b as FormController, N as NewFormInput } from '../registry-Bzd3unBb.js';
|
|
2
2
|
|
|
3
3
|
declare const Forms: FormsApi;
|
|
4
4
|
declare const form: (target: FormTarget, options?: FormControllerOptions) => FormController;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FormTarget, a as FormControllerOptions, b as FormController, S as SerializedFormResult, c as FormFieldValue, d as FieldValidationRules, e as FormValues, V as ValidationSchema, f as ValidationResult } from './registry-
|
|
2
|
-
export { A as AppendContentOptions, g as AutoSubmitOptions, h as FieldFormatConfig, i as FieldFormatConfigMap, j as FieldValidationContext, k as FieldValidator, l as FormCleanup, m as FormDataPrimitive, n as FormErrors, o as FormFieldElement, p as FormFieldWatcher, q as FormFieldsWatcher, r as FormStateListener, s as FormStateSnapshot, t as FormSubmitHandler, u as FormatType, v as FormsApi, w as FormsAvailable, N as NewFormInput, R as RuleConfig, x as SelectOption, y as SelectOptionGroup, z as SelectOptionInput, B as SerializedFormValue, C as SetOptionsConfig, D as ValueValidationRules, E as VisualAttributes, G as browser } from './registry-
|
|
1
|
+
import { F as FormTarget, a as FormControllerOptions, b as FormController, S as SerializedFormResult, c as FormFieldValue, d as FieldValidationRules, e as FormValues, V as ValidationSchema, f as ValidationResult } from './registry-Bzd3unBb.cjs';
|
|
2
|
+
export { A as AppendContentOptions, g as AutoSubmitOptions, h as FieldFormatConfig, i as FieldFormatConfigMap, j as FieldValidationContext, k as FieldValidator, l as FormCleanup, m as FormDataPrimitive, n as FormErrors, o as FormFieldElement, p as FormFieldWatcher, q as FormFieldsWatcher, r as FormStateListener, s as FormStateSnapshot, t as FormSubmitHandler, u as FormatType, v as FormsApi, w as FormsAvailable, N as NewFormInput, R as RuleConfig, x as SelectOption, y as SelectOptionGroup, z as SelectOptionInput, B as SerializedFormValue, C as SetOptionsConfig, D as ValueValidationRules, E as VisualAttributes, G as browser } from './registry-Bzd3unBb.cjs';
|
|
3
3
|
|
|
4
4
|
declare const form: (target: FormTarget, options?: FormControllerOptions) => FormController;
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FormTarget, a as FormControllerOptions, b as FormController, S as SerializedFormResult, c as FormFieldValue, d as FieldValidationRules, e as FormValues, V as ValidationSchema, f as ValidationResult } from './registry-
|
|
2
|
-
export { A as AppendContentOptions, g as AutoSubmitOptions, h as FieldFormatConfig, i as FieldFormatConfigMap, j as FieldValidationContext, k as FieldValidator, l as FormCleanup, m as FormDataPrimitive, n as FormErrors, o as FormFieldElement, p as FormFieldWatcher, q as FormFieldsWatcher, r as FormStateListener, s as FormStateSnapshot, t as FormSubmitHandler, u as FormatType, v as FormsApi, w as FormsAvailable, N as NewFormInput, R as RuleConfig, x as SelectOption, y as SelectOptionGroup, z as SelectOptionInput, B as SerializedFormValue, C as SetOptionsConfig, D as ValueValidationRules, E as VisualAttributes, G as browser } from './registry-
|
|
1
|
+
import { F as FormTarget, a as FormControllerOptions, b as FormController, S as SerializedFormResult, c as FormFieldValue, d as FieldValidationRules, e as FormValues, V as ValidationSchema, f as ValidationResult } from './registry-Bzd3unBb.js';
|
|
2
|
+
export { A as AppendContentOptions, g as AutoSubmitOptions, h as FieldFormatConfig, i as FieldFormatConfigMap, j as FieldValidationContext, k as FieldValidator, l as FormCleanup, m as FormDataPrimitive, n as FormErrors, o as FormFieldElement, p as FormFieldWatcher, q as FormFieldsWatcher, r as FormStateListener, s as FormStateSnapshot, t as FormSubmitHandler, u as FormatType, v as FormsApi, w as FormsAvailable, N as NewFormInput, R as RuleConfig, x as SelectOption, y as SelectOptionGroup, z as SelectOptionInput, B as SerializedFormValue, C as SetOptionsConfig, D as ValueValidationRules, E as VisualAttributes, G as browser } from './registry-Bzd3unBb.js';
|
|
3
3
|
|
|
4
4
|
declare const form: (target: FormTarget, options?: FormControllerOptions) => FormController;
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type FormatType = 'general' | 'phone' | 'numeral' | 'date' | 'time' | 'creditCard' | 'creditCardType';
|
|
1
|
+
type FormatType = 'general' | 'phone' | 'numeral' | 'date' | 'time' | 'creditCard' | 'creditCardType' | 'text' | 'slug';
|
|
2
2
|
interface FieldFormatConfig {
|
|
3
3
|
/** One of the supported `@samline/formatter` `FormatType` values. */
|
|
4
4
|
type: FormatType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type FormatType = 'general' | 'phone' | 'numeral' | 'date' | 'time' | 'creditCard' | 'creditCardType';
|
|
1
|
+
type FormatType = 'general' | 'phone' | 'numeral' | 'date' | 'time' | 'creditCard' | 'creditCardType' | 'text' | 'slug';
|
|
2
2
|
interface FieldFormatConfig {
|
|
3
3
|
/** One of the supported `@samline/formatter` `FormatType` values. */
|
|
4
4
|
type: FormatType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@samline/forms",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "TypeScript-first, framework-free form controller with validation, reactive state, serialization, auto-submit, and input formatting.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"forms",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
115
|
"@playwright/test": "1.62.1",
|
|
116
|
-
"@samline/formatter": "^3.
|
|
116
|
+
"@samline/formatter": "^3.1.0",
|
|
117
117
|
"@types/node": "^26.6.2",
|
|
118
118
|
"@vitest/coverage-v8": "^5.0.1",
|
|
119
119
|
"axe-core": "^4.14.0",
|