mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-10 22:20:14 +00:00
fix(studio): break all 7 circular dependency cycles and fix rules-of-hooks violation (#1422)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { TimelineElement } from "../player";
|
||||
import type { TimelineElement } from "../player/store/playerStore";
|
||||
import type { DomEditSelection } from "../components/editor/domEditing";
|
||||
import type { TimelineAssetKind } from "./timelineAssetDrop";
|
||||
import { roundToCenti } from "./rounding";
|
||||
@@ -172,8 +172,7 @@ export function clampNumber(value: number, min: number, max: number): number {
|
||||
return Math.min(Math.max(value, min), max);
|
||||
}
|
||||
|
||||
/** Matches the opening tag of a composition root element (`data-composition-id`). */
|
||||
export const COMPOSITION_ROOT_OPEN_TAG_RE = /<[^>]*data-composition-id="[^"]+"[^>]*>/i;
|
||||
export { COMPOSITION_ROOT_OPEN_TAG_RE } from "./compositionPatterns";
|
||||
|
||||
export function collectHtmlIds(source: string): string[] {
|
||||
return Array.from(source.matchAll(/\bid="([^"]+)"/g), (match) => match[1] ?? "");
|
||||
|
||||
Reference in New Issue
Block a user