feat: deprecates react-animate-height in favor of native css (#9456)

Deprecates `react-animate-height` in favor of native CSS, specifically
the `interpolate-size: allow-keywords;` property which can be used to
animate to `height: auto`—the primary reason this package exists. This
is one less dependency in our `node_modules`. Tried to replicate the
current DOM structure, class names, and API of `react-animate-height`
for best compatibility.

Note that this CSS property is experimental BUT this PR includes a patch
for browsers without native support. Once full support is reached, the
patch can be safely removed.
This commit is contained in:
Jacob Fletcher
2024-11-25 17:48:16 -05:00
committed by GitHub
parent 058bd02ebd
commit 0757e06e71
15 changed files with 196 additions and 68 deletions

View File

@@ -75,9 +75,9 @@ export interface Config {
user: User & {
collection: 'users';
};
jobs: {
jobs?: {
tasks: unknown;
workflows: unknown;
workflows?: unknown;
};
}
export interface UserAuthOperations {
@@ -105,6 +105,7 @@ export interface UserAuthOperations {
export interface Post {
id: string;
title?: string | null;
conditionalField?: string | null;
isFiltered?: boolean | null;
restrictedField?: string | null;
upload?: (string | null) | Upload;
@@ -388,6 +389,7 @@ export interface PayloadMigration {
*/
export interface PostsSelect<T extends boolean = true> {
title?: T;
conditionalField?: T;
isFiltered?: T;
restrictedField?: T;
upload?: T;