Socket
Socket
Sign inDemoInstall

@conform-to/dom

Package Overview
Dependencies
Maintainers
0
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@conform-to/dom - npm Package Compare versions

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;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc