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

Function emitPickerRuntimeEvent

packages/core/src/runtime/picker.ts:35–42  ·  view source on GitHub ↗
(eventName: string, detail: RuntimeJson)

Source from the content-addressed store, hash-verified

33 let pickLastSelectedInfo: RuntimePickerElementInfo | null = null;
34
35 function emitPickerRuntimeEvent(eventName: string, detail: RuntimeJson): void {
36 try {
37 window.dispatchEvent(new CustomEvent(eventName, { detail }));
38 } catch (err) {
39 // no-op in unsupported contexts
40 swallow("runtime.picker.site1", err);
41 }
42 }
43
44 function setLastHoveredInfo(info: RuntimePickerElementInfo | null): void {
45 pickLastHoveredInfo = info;

Callers 5

setLastHoveredInfoFunction · 0.85
setLastSelectedInfoFunction · 0.85
enablePickModeFunction · 0.85
disablePickModeFunction · 0.85
installPickerApiFunction · 0.85

Calls 1

swallowFunction · 0.90

Tested by

no test coverage detected