diff --git a/CHANGELOG.md b/CHANGELOG.md index cae66572a..ec809a26a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ Reactist follows [semantic versioning](https://semver.org/) and doesn't introduce breaking changes (API-wise) in minor or patch releases. However, the appearance of a component might change in a minor or patch release so keep an eye on redesigns and make sure your app still looks and feels like you expect it. +# v23.0.0 + +- [BREAKING] Remove unsupported `crossOrigin` attribute from `input`- and `textarea`-based components. +- [BREAKING] Remove unsupported `placeholder` attribute from heading components. + # v22.3.3 - [Fix] Vertical alignment of inline code elements inside a `Prose` component diff --git a/package-lock.json b/package-lock.json index 3b19df1f5..fa56cc20a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@doist/reactist", - "version": "22.3.3", + "version": "23.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@doist/reactist", - "version": "22.3.3", + "version": "23.0.0", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 2af6f0236..b64ca64eb 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "email": "henning@doist.com", "url": "http://doist.com" }, - "version": "22.3.3", + "version": "23.0.0", "license": "MIT", "homepage": "https://github.com/Doist/reactist#readme", "repository": { diff --git a/src/checkbox-field/checkbox-field.tsx b/src/checkbox-field/checkbox-field.tsx index 5455d46f7..fd86745f2 100644 --- a/src/checkbox-field/checkbox-field.tsx +++ b/src/checkbox-field/checkbox-field.tsx @@ -15,6 +15,7 @@ type CheckboxFieldProps = Omit< | 'aria-describedby' | 'aria-label' | 'aria-labelledby' + | 'crossOrigin' > & { 'aria-checked'?: never /** Identifies the set of checkboxes controlled by the mixed checkbox for assistive technologies. */ diff --git a/src/heading/heading.tsx b/src/heading/heading.tsx index 40df71d17..ef970268a 100644 --- a/src/heading/heading.tsx +++ b/src/heading/heading.tsx @@ -11,7 +11,7 @@ type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' type SupportedHeadingElementProps = Omit< JSX.IntrinsicElements[HeadingElement], - 'className' | 'children' + 'className' | 'children' | 'placeholder' > type HeadingProps = SupportedHeadingElementProps & { diff --git a/src/password-field/password-field.tsx b/src/password-field/password-field.tsx index 8291826e1..2463a49bb 100644 --- a/src/password-field/password-field.tsx +++ b/src/password-field/password-field.tsx @@ -8,7 +8,7 @@ import { Button } from '../button' import type { BaseFieldVariantProps } from '../base-field' -type PasswordFieldProps = Omit & +type PasswordFieldProps = Omit & BaseFieldVariantProps & { togglePasswordLabel?: string } diff --git a/src/select-field/select-field.tsx b/src/select-field/select-field.tsx index e54c91b0e..a6f5e58a1 100644 --- a/src/select-field/select-field.tsx +++ b/src/select-field/select-field.tsx @@ -3,7 +3,8 @@ import { BaseField, BaseFieldVariantProps, FieldComponentProps } from '../base-f import { Box } from '../box' import styles from './select-field.module.css' -type SelectFieldProps = FieldComponentProps & BaseFieldVariantProps +type SelectFieldProps = Omit, 'crossOrigin'> & + BaseFieldVariantProps const SelectField = React.forwardRef(function SelectField( { diff --git a/src/switch-field/switch-field.tsx b/src/switch-field/switch-field.tsx index 4aaa3a7dd..f80468b90 100644 --- a/src/switch-field/switch-field.tsx +++ b/src/switch-field/switch-field.tsx @@ -16,6 +16,7 @@ type SwitchFieldProps = Omit< | 'aria-describedby' | 'aria-label' | 'aria-labelledby' + | 'crossOrigin' > & { /** Identifies the element (or elements) that describes the switch for assistive technologies. */ 'aria-describedby'?: string diff --git a/src/text-area/text-area.tsx b/src/text-area/text-area.tsx index 5c7bfd3b6..3b9d22723 100644 --- a/src/text-area/text-area.tsx +++ b/src/text-area/text-area.tsx @@ -4,7 +4,7 @@ import { BaseField, BaseFieldVariantProps, FieldComponentProps } from '../base-f import { Box } from '../box' import styles from './text-area.module.css' -type TextAreaProps = FieldComponentProps & +type TextAreaProps = Omit, 'crossOrigin'> & BaseFieldVariantProps & { /** * The number of visible text lines for the text area. diff --git a/src/text-field/text-field.tsx b/src/text-field/text-field.tsx index e7a0c2a1a..13c760c67 100644 --- a/src/text-field/text-field.tsx +++ b/src/text-field/text-field.tsx @@ -7,7 +7,7 @@ import { useMergeRefs } from 'use-callback-ref' type TextFieldType = 'email' | 'search' | 'tel' | 'text' | 'url' -type TextFieldProps = Omit, 'type'> & +type TextFieldProps = Omit, 'type' | 'crossOrigin'> & BaseFieldVariantProps & { type?: TextFieldType startSlot?: React.ReactChild