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

Function Probe

packages/studio/src/hooks/useDomEditSession.test.tsx:219–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217 const sdkSession = {} as unknown as Composition;
218
219 function Probe() {
220 const params: UseDomEditSessionParams = {
221 projectId: "proj-1",
222 activeCompPath: "index.html",
223 isMasterView: false,
224 compIdToSrc: new Map(),
225 captionEditMode: false,
226 compositionLoading: false,
227 previewIframeRef: { current: null },
228 timelineElements: [],
229 setSelectedTimelineElementId: vi.fn(),
230 setRightCollapsed: vi.fn(),
231 setRightPanelTab: vi.fn(),
232 showToast: vi.fn(),
233 refreshPreviewDocumentVersion: vi.fn(),
234 queueDomEditSave: vi.fn(async (save: () => Promise<void>) => save()),
235 readProjectFile,
236 writeProjectFile: vi.fn(async () => {}),
237 updateEditingFileContent: vi.fn(),
238 domEditSaveTimestampRef: { current: 0 },
239 editHistory: { recordEdit: vi.fn(async () => {}) },
240 fileTree: [],
241 importedFontAssetsRef: { current: [] },
242 projectDir: null,
243 projectIdRef: { current: "proj-1" },
244 previewIframe: null,
245 refreshKey: 0,
246 previewDocumentVersion: 0,
247 rightPanelTab: "design",
248 applyStudioManualEditsToPreviewRef: { current: async () => {} },
249 syncPreviewHistoryHotkey: vi.fn(),
250 reloadPreview: vi.fn(),
251 setRefreshKey: vi.fn(),
252 sdkSession,
253 forceReloadSdkSession: vi.fn(),
254 };
255 useDomEditSession(params);
256 return null;
257 }
258
259 const container = document.createElement("div");
260 const root = createRoot(container);

Callers

nothing calls this directly

Calls 2

saveFunction · 0.85
useDomEditSessionFunction · 0.85

Tested by

no test coverage detected