@conform-to/dom
Advanced tools
Comparing version 1.2.0 to 1.2.1
22
dom.d.ts
@@ -5,6 +5,3 @@ /** | ||
*/ | ||
export type FieldElement = | ||
| HTMLInputElement | ||
| HTMLSelectElement | ||
| HTMLTextAreaElement; | ||
export type FieldElement = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement; | ||
/** | ||
@@ -27,5 +24,3 @@ * HTML Element that can be used as a form control, | ||
*/ | ||
export declare function isFieldElement( | ||
element: unknown, | ||
): element is FieldElement; | ||
export declare function isFieldElement(element: unknown): element is FieldElement; | ||
/** | ||
@@ -40,5 +35,3 @@ * Resolves the action from the submit event | ||
*/ | ||
export declare function getFormEncType( | ||
event: SubmitEvent, | ||
): 'application/x-www-form-urlencoded' | 'multipart/form-data'; | ||
export declare function getFormEncType(event: SubmitEvent): 'application/x-www-form-urlencoded' | 'multipart/form-data'; | ||
/** | ||
@@ -48,5 +41,3 @@ * Resolves the method from the submit event | ||
*/ | ||
export declare function getFormMethod( | ||
event: SubmitEvent, | ||
): 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'; | ||
export declare function getFormMethod(event: SubmitEvent): 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'; | ||
/** | ||
@@ -56,5 +47,2 @@ * Trigger a form submit event with an optional submitter. | ||
*/ | ||
export declare function requestSubmit( | ||
form: HTMLFormElement | null | undefined, | ||
submitter: Submitter | null, | ||
): void; | ||
export declare function requestSubmit(form: HTMLFormElement | null | undefined, submitter: Submitter | null): void; |
@@ -1,26 +0,4 @@ | ||
export { | ||
type Combine, | ||
type Constraint, | ||
type ControlButtonProps, | ||
type FormId, | ||
type FieldName, | ||
type DefaultValue, | ||
type FormValue, | ||
type FormOptions, | ||
type FormState, | ||
type FormContext, | ||
type SubscriptionSubject, | ||
type SubscriptionScope, | ||
createFormContext as unstable_createFormContext, | ||
} from './form'; | ||
export { type Combine, type Constraint, type ControlButtonProps, type FormId, type FieldName, type DefaultValue, type FormValue, type FormOptions, type FormState, type FormContext, type SubscriptionSubject, type SubscriptionScope, createFormContext as unstable_createFormContext, } from './form'; | ||
export { type FieldElement, isFieldElement } from './dom'; | ||
export { | ||
type Submission, | ||
type SubmissionResult, | ||
type Intent, | ||
INTENT, | ||
STATE, | ||
serializeIntent, | ||
parse, | ||
} from './submission'; | ||
export { type Submission, type SubmissionResult, type Intent, INTENT, STATE, serializeIntent, parse, } from './submission'; | ||
export { getPaths, formatPaths, isPrefix } from './formdata'; |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"main": "index.js", | ||
@@ -9,0 +9,0 @@ "module": "index.mjs", |
@@ -1,6 +0,3 @@ | ||
export declare function invariant( | ||
expectedCondition: boolean, | ||
message: string, | ||
): asserts expectedCondition; | ||
export declare function invariant(expectedCondition: boolean, message: string): asserts expectedCondition; | ||
export declare function generateId(): string; | ||
export declare function clone<Data>(data: Data): Data; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
107301
22
2857
1
0