MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / handleFlashElements

Function handleFlashElements

packages/core/src/runtime/bridge.ts:65–73  ·  view source on GitHub ↗
(data: BridgeControlData)

Source from the content-addressed store, hash-verified

63};
64
65function handleFlashElements(data: BridgeControlData): void {
66 // Briefly highlight elements — used by the chat-canvas bridge
67 // to show what changed after an agent edit
68 const selectors = (data as Record<string, unknown>).selectors as string[] | undefined;
69 const duration = ((data as Record<string, unknown>).duration as number) || 800;
70 if (selectors) {
71 flashElements(selectors, duration);
72 }
73}
74
75export function installRuntimeControlBridge(deps: BridgeDeps): (event: MessageEvent) => void {
76 const handler = (event: MessageEvent) => {

Callers 1

bridge.tsFile · 0.85

Calls 1

flashElementsFunction · 0.85

Tested by

no test coverage detected