@hyperframes/studio-server 0.8.56 → 0.8.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +21 -1
- package/dist/index.js +175 -121
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Hono } from 'hono';
|
|
2
2
|
import { S as StudioApiAdapter, M as MediaProcessingJobState } from './mediaProxyPreview-CB-eWiSy.js';
|
|
3
3
|
export { L as LintResult, P as PreviewApiAdapter, R as RenderJobState, a as ResolvedProject, b as StudioSelectionResponse, c as StudioSelectionSnapshot, d as StudioSelectionTextField } from './mediaProxyPreview-CB-eWiSy.js';
|
|
4
|
+
export { PatchOperation, SourceMutationTarget, patchElementInHtml, removeElementFromHtml, splitElementInHtml } from './helpers/sourceMutation.js';
|
|
4
5
|
export { ScreenshotClip, getElementScreenshotClip } from './helpers/screenshotClip.js';
|
|
5
6
|
export { STUDIO_MANUAL_EDITS_PATH, StudioManualEditsRenderScriptOptions, createStudioManualEditsRenderBodyScript, createStudioPositionSeekReapplyScript } from './helpers/manualEditsRenderScript.js';
|
|
6
7
|
export { STUDIO_MOTION_PATH, StudioMotionRenderScriptOptions, createStudioMotionRenderBodyScript } from './helpers/studioMotionRenderScript.js';
|
|
@@ -45,6 +46,25 @@ declare function createProjectSignature(projectDir: string): string;
|
|
|
45
46
|
/** Recursively walk a directory and return relative file paths. */
|
|
46
47
|
declare function walkDir(dir: string, prefix?: string): string[];
|
|
47
48
|
|
|
49
|
+
interface FileMutationInput {
|
|
50
|
+
sourceFile: string;
|
|
51
|
+
absPath: string;
|
|
52
|
+
before?: string;
|
|
53
|
+
after: string;
|
|
54
|
+
expectedVersion?: string;
|
|
55
|
+
}
|
|
56
|
+
interface AppliedFileMutation {
|
|
57
|
+
sourceFile: string;
|
|
58
|
+
changed: boolean;
|
|
59
|
+
before: string;
|
|
60
|
+
after: string;
|
|
61
|
+
backupPath: string | null;
|
|
62
|
+
version: string;
|
|
63
|
+
writeToken: string | null;
|
|
64
|
+
}
|
|
65
|
+
/** Applies prepared HTML mutations with the same journal and receipt semantics as Studio. */
|
|
66
|
+
declare function applyFileMutations(projectDir: string, mutations: readonly FileMutationInput[], requestToken?: string, writeFile?: (path: string, content: string, encoding: "utf-8") => void): AppliedFileMutation[];
|
|
67
|
+
|
|
48
68
|
declare const MIME_TYPES: Record<string, string>;
|
|
49
69
|
declare function getMimeType(path: string): string;
|
|
50
70
|
|
|
@@ -132,4 +152,4 @@ type BackgroundRemovalRender = (options: {
|
|
|
132
152
|
}>;
|
|
133
153
|
declare function createBackgroundRemovalJob(opts: BackgroundRemovalJobOptions, render: BackgroundRemovalRender): MediaProcessingJobState;
|
|
134
154
|
|
|
135
|
-
export { type BackgroundRemovalRender, type FileWriteReceipt, MIME_TYPES, MediaProcessingJobState, StudioApiAdapter, type ThumbnailOutputDimensions, affectsProjectSignature, buildSubCompositionHtml, consumeFileWriteReceipt, createBackgroundRemovalJob, createProjectSignature, createStudioApi, fileContentVersion, getMimeType, identifyFileWrite, thumbnailDeviceScaleFactor, walkDir };
|
|
155
|
+
export { type AppliedFileMutation, type BackgroundRemovalRender, type FileMutationInput, type FileWriteReceipt, MIME_TYPES, MediaProcessingJobState, StudioApiAdapter, type ThumbnailOutputDimensions, affectsProjectSignature, applyFileMutations, buildSubCompositionHtml, consumeFileWriteReceipt, createBackgroundRemovalJob, createProjectSignature, createStudioApi, fileContentVersion, getMimeType, identifyFileWrite, thumbnailDeviceScaleFactor, walkDir };
|