@codecademy/gamut
72.5.372.5.4-alpha.3f7af6.0
~
Modified (3 files)
Index: package/dist/ConnectedForm/utils.js
===================================================================
--- package/dist/ConnectedForm/utils.js
+++ package/dist/ConnectedForm/utils.js
@@ -101,9 +101,9 @@
} = useSubmitState({
disabled: disabled || formStateDisabled,
loading
});
- const formValidation = (validationRules && validationRules[name]) ?? undefined;
+ const formValidation = validationRules?.[name] ?? undefined;
const validation = useMemo(() => formValidation || customValidations ? {
...formValidation,
...customValidations
} : undefined, [formValidation, customValidations]); Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,16 +1,16 @@
{
"name": "@codecademy/gamut",
"description": "Styleguide & Component library for Codecademy",
- "version": "72.5.3",
+ "version": "72.5.4-alpha.3f7af6.0",
"author": "Codecademy Engineering <[email protected]>",
"bin": "./bin/gamut.mjs",
"dependencies": {
- "@codecademy/gamut-icons": "9.57.11",
- "@codecademy/gamut-illustrations": "0.58.16",
- "@codecademy/gamut-patterns": "0.10.35",
- "@codecademy/gamut-styles": "20.1.0",
- "@codecademy/variance": "0.26.1",
+ "@codecademy/gamut-icons": "9.57.12-alpha.3f7af6.0",
+ "@codecademy/gamut-illustrations": "0.58.17-alpha.3f7af6.0",
+ "@codecademy/gamut-patterns": "0.10.36-alpha.3f7af6.0",
+ "@codecademy/gamut-styles": "20.1.1-alpha.3f7af6.0",
+ "@codecademy/variance": "0.26.2-alpha.3f7af6.0",
"@formatjs/intl-locale": "5.3.1",
"@react-aria/interactions": "3.25.0",
"@types/marked": "^4.0.8",
"@vidstack/react": "^1.12.12", Index: package/dist/ConnectedForm/utils.d.ts
===================================================================
--- package/dist/ConnectedForm/utils.d.ts
+++ package/dist/ConnectedForm/utils.d.ts
@@ -111,9 +111,9 @@
* See https://github.com/Microsoft/TypeScript/issues/12215#issuecomment-414783301
* for something that I think could be modified to make this better
* but I couldn't get it to work
*/
-type InputTypes = Extract<HTMLInputTypeAttribute, 'number' | 'color' | 'date' | 'datetime-local' | 'time' | 'image' | 'checkbox' | 'text' | 'hidden' | 'password' | 'radio' | 'range' | 'email' | 'search' | 'month' | 'tel' | 'time' | 'url' | 'week'> | 'textarea' | 'select';
+type InputTypes = Extract<HTMLInputTypeAttribute, 'number' | 'color' | 'date' | 'datetime-local' | 'time' | 'image' | 'checkbox' | 'text' | 'hidden' | 'password' | 'radio' | 'range' | 'email' | 'search' | 'month' | 'tel' | 'url' | 'week'> | 'textarea' | 'select';
type DebouncedFieldProps<T extends InputTypes> = Omit<GetInitialFormValueProps, 'setLocalValue' | 'defaultValue'> & Pick<useFieldProps, 'loading' | 'disabled' | 'name' | 'customValidations'> & {
type: T;
shouldDirtyOnChange?: boolean;
};