mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-17 15:24:19 +00:00
The Studio preview route serves project files under a base href, but both preview adapters called the bundler with its self-contained defaults, so every image and font was inlined once per reference. One exported option set now owns how a preview bundle is built.
60 lines
1.9 KiB
TypeScript
60 lines
1.9 KiB
TypeScript
export { createStudioApi } from "./createStudioApi.js";
|
|
export { createProjectSignature, affectsProjectSignature } from "./helpers/projectSignature.js";
|
|
export type {
|
|
StudioApiAdapter,
|
|
ResolvedProject,
|
|
RenderJobState,
|
|
MediaProcessingJobState,
|
|
LintResult,
|
|
StudioSelectionResponse,
|
|
StudioSelectionSnapshot,
|
|
StudioSelectionTextField,
|
|
} from "./types.js";
|
|
export { isSafePath, walkDir } from "./helpers/safePath.js";
|
|
export {
|
|
patchElementInHtml,
|
|
splitElementInHtml,
|
|
removeElementFromHtml,
|
|
findTargetElement,
|
|
parseSourceDocument,
|
|
dedupeClonedCompositionId,
|
|
type PatchOperation,
|
|
type SourceMutationTarget,
|
|
} from "./helpers/sourceMutation.js";
|
|
export { duplicateElementInHtml, type DuplicateElementResult } from "./helpers/duplicateElement.js";
|
|
export {
|
|
applyFileMutations,
|
|
type AppliedFileMutation,
|
|
type FileMutationInput,
|
|
} from "./helpers/applyFileMutations.js";
|
|
export type { PreviewApiAdapter } from "./helpers/mediaProxyPreview.js";
|
|
export { PREVIEW_BUNDLE_OPTIONS } from "./routes/preview.js";
|
|
export { getMimeType, MIME_TYPES } from "./helpers/mime.js";
|
|
export {
|
|
consumeFileWriteReceipt,
|
|
identifyFileWrite,
|
|
fileContentVersion,
|
|
type FileWriteReceipt,
|
|
} from "./helpers/fileVersion.js";
|
|
export { buildSubCompositionHtml } from "./helpers/subComposition.js";
|
|
export { getElementScreenshotClip, type ScreenshotClip } from "./helpers/screenshotClip.js";
|
|
export {
|
|
thumbnailDeviceScaleFactor,
|
|
type ThumbnailOutputDimensions,
|
|
} from "./helpers/thumbnailOutput.js";
|
|
export {
|
|
createBackgroundRemovalJob,
|
|
type BackgroundRemovalRender,
|
|
} from "./helpers/backgroundRemovalJob.js";
|
|
export {
|
|
STUDIO_MANUAL_EDITS_PATH,
|
|
createStudioManualEditsRenderBodyScript,
|
|
createStudioPositionSeekReapplyScript,
|
|
type StudioManualEditsRenderScriptOptions,
|
|
} from "./helpers/manualEditsRenderScript.js";
|
|
export {
|
|
STUDIO_MOTION_PATH,
|
|
createStudioMotionRenderBodyScript,
|
|
type StudioMotionRenderScriptOptions,
|
|
} from "./helpers/studioMotionRenderScript.js";
|