mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-11-01 16:10:37 +00:00
* chore(deps-dev): bump happy-dom from 20.11.1 to 21.0.4 in /frontend Bumps [happy-dom](https://github.com/capricorn86/happy-dom) from 20.11.1 to 21.0.4. - [Release notes](https://github.com/capricorn86/happy-dom/releases) - [Commits](https://github.com/capricorn86/happy-dom/compare/v20.11.1...v21.0.4) --- updated-dependencies: - dependency-name: happy-dom dependency-version: 21.0.4 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> * test(frontend): isolate FlipDisplay animations in DOM suites --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
18 lines
516 B
TypeScript
18 lines
516 B
TypeScript
import type { ComponentProps } from "react";
|
|
|
|
import type { FlipDisplay as AnimatedFlipDisplay } from "@/components/workspace/flip-display";
|
|
|
|
// Content/state tests keep real React behavior without exercising Motion's
|
|
// browser animation lifecycle in Happy DOM. Preserve keyed child remounts.
|
|
export function FlipDisplay({
|
|
uniqueKey,
|
|
children,
|
|
className,
|
|
}: ComponentProps<typeof AnimatedFlipDisplay>) {
|
|
return (
|
|
<div className={className}>
|
|
<div key={uniqueKey}>{children}</div>
|
|
</div>
|
|
);
|
|
}
|