@react-types/shared
Advanced tools
+2
-2
| { | ||
| "name": "@react-types/shared", | ||
| "version": "3.33.1", | ||
| "version": "3.34.0", | ||
| "description": "Spectrum UI components in React", | ||
@@ -17,3 +17,3 @@ "license": "Apache-2.0", | ||
| }, | ||
| "gitHead": "8df187370053aa35f553cb388ad670f65e1ab371" | ||
| "gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae" | ||
| } |
@@ -221,2 +221,6 @@ /* | ||
| nextKey?: Key | null, | ||
| /** The first child key of this node. */ | ||
| firstChildKey?: Key | null, | ||
| /** The last child key of this node. */ | ||
| lastChildKey?: Key | null, | ||
| /** Additional properties specific to a particular node type. */ | ||
@@ -223,0 +227,0 @@ props?: any, |
+57
-0
@@ -20,3 +20,5 @@ /* | ||
| CSSProperties, | ||
| FormEvent, | ||
| FormEventHandler, | ||
| FormHTMLAttributes, | ||
| HTMLAttributeAnchorTarget, | ||
@@ -33,2 +35,3 @@ HTMLAttributeReferrerPolicy, | ||
| } from 'react'; | ||
| import {ValidationErrors} from './inputs'; | ||
@@ -346,1 +349,55 @@ export interface AriaLabelingProps { | ||
| } | ||
| export interface FormProps extends AriaLabelingProps { | ||
| /** | ||
| * Validation errors for the form, typically returned by a server. | ||
| * This should be set to an object mapping from input names to errors. | ||
| */ | ||
| validationErrors?: ValidationErrors, | ||
| /** | ||
| * Where to send the form-data when the form is submitted. | ||
| * See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#action). | ||
| */ | ||
| action?: string | FormHTMLAttributes<HTMLFormElement>['action'], | ||
| /** | ||
| * The enctype attribute specifies how the form-data should be encoded when submitting it to the server. | ||
| * See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#enctype). | ||
| */ | ||
| encType?: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain', | ||
| /** | ||
| * The HTTP method to submit the form with. | ||
| * See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#method). | ||
| */ | ||
| method?: 'get' | 'post' | 'dialog', | ||
| /** | ||
| * The target attribute specifies a name or a keyword that indicates where to display the response that is received after submitting the form. | ||
| * See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#target). | ||
| */ | ||
| target?: '_blank' | '_self' | '_parent' | '_top', | ||
| /** | ||
| * Triggered when a user submits the form. | ||
| */ | ||
| onSubmit?: (event: FormEvent<HTMLFormElement>) => void, | ||
| /** | ||
| * Triggered when a user resets the form. | ||
| */ | ||
| onReset?: (event: FormEvent<HTMLFormElement>) => void, | ||
| /** | ||
| * Triggered for each invalid field when a user submits the form. | ||
| */ | ||
| onInvalid?: (event: FormEvent<HTMLFormElement>) => void, | ||
| /** | ||
| * Indicates whether input elements can by default have their values automatically completed by the browser. | ||
| * See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#autocomplete). | ||
| */ | ||
| autoComplete?: 'off' | 'on', | ||
| /** | ||
| * Controls whether inputted text is automatically capitalized and, if so, in what manner. | ||
| * See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize). | ||
| */ | ||
| autoCapitalize?: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters', | ||
| /** | ||
| * An ARIA role override to apply to the form element. | ||
| */ | ||
| role?: 'search' | 'presentation' | ||
| } |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
95533
2.67%1996
3.1%