@remotion/studio-shared 4.0.422 → 4.0.424
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/event-source-event.d.ts +4 -1
- package/dist/format-bytes.d.ts +2 -2
- package/dist/get-default-out-name.d.ts +2 -2
- package/dist/get-default-out-name.js +13 -9
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11 -11
- package/dist/package-info.js +1 -1
- package/dist/render-defaults.d.ts +1 -0
- package/dist/render-job.d.ts +13 -0
- package/package.json +7 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StaticFile } from 'remotion';
|
|
2
|
-
import type { RenderJob } from './render-job';
|
|
2
|
+
import type { CompletedClientRender, RenderJob } from './render-job';
|
|
3
3
|
export type EventSourceEvent = {
|
|
4
4
|
type: 'new-input-props';
|
|
5
5
|
newProps: object;
|
|
@@ -24,6 +24,9 @@ export type EventSourceEvent = {
|
|
|
24
24
|
} | {
|
|
25
25
|
type: 'watched-file-deleted';
|
|
26
26
|
file: string;
|
|
27
|
+
} | {
|
|
28
|
+
type: 'client-renders-updated';
|
|
29
|
+
renders: CompletedClientRender[];
|
|
27
30
|
} | {
|
|
28
31
|
type: 'new-public-folder';
|
|
29
32
|
files: StaticFile[];
|
package/dist/format-bytes.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const getDefaultOutLocation: ({ compositionName, defaultExtension, type, compositionDefaultOutName,
|
|
1
|
+
export declare const getDefaultOutLocation: ({ compositionName, defaultExtension, type, compositionDefaultOutName, outputLocation, }: {
|
|
2
2
|
compositionName: string;
|
|
3
3
|
compositionDefaultOutName: string | null;
|
|
4
4
|
defaultExtension: string;
|
|
5
5
|
type: "asset" | "sequence";
|
|
6
|
-
|
|
6
|
+
outputLocation?: string | null | undefined;
|
|
7
7
|
}) => string;
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDefaultOutLocation = void 0;
|
|
4
|
-
const
|
|
4
|
+
const hasFileExtension = (location) => {
|
|
5
|
+
var _a;
|
|
6
|
+
const lastSegment = (_a = location.split('/').pop()) !== null && _a !== void 0 ? _a : location;
|
|
7
|
+
return lastSegment.includes('.');
|
|
8
|
+
};
|
|
9
|
+
const getDefaultOutLocation = ({ compositionName, defaultExtension, type, compositionDefaultOutName, outputLocation, }) => {
|
|
10
|
+
if (outputLocation && hasFileExtension(outputLocation)) {
|
|
11
|
+
return outputLocation;
|
|
12
|
+
}
|
|
13
|
+
const base = outputLocation !== null && outputLocation !== void 0 ? outputLocation : 'out';
|
|
14
|
+
const dir = base.endsWith('/') ? base : `${base}/`;
|
|
5
15
|
const nameToUse = compositionDefaultOutName !== null && compositionDefaultOutName !== void 0 ? compositionDefaultOutName : compositionName;
|
|
6
16
|
if (type === 'sequence') {
|
|
7
|
-
|
|
8
|
-
return nameToUse;
|
|
9
|
-
}
|
|
10
|
-
return `out/${nameToUse}`;
|
|
11
|
-
}
|
|
12
|
-
if (clientSideRender) {
|
|
13
|
-
return `${nameToUse}.${defaultExtension}`;
|
|
17
|
+
return `${dir}${nameToUse}`;
|
|
14
18
|
}
|
|
15
|
-
return
|
|
19
|
+
return `${dir}${nameToUse}.${defaultExtension}`;
|
|
16
20
|
};
|
|
17
21
|
exports.getDefaultOutLocation = getDefaultOutLocation;
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export { PackageManager } from './package-manager';
|
|
|
15
15
|
export { ProjectInfo } from './project-info';
|
|
16
16
|
export type { RenderDefaults } from './render-defaults';
|
|
17
17
|
export { AggregateRenderProgress, ArtifactProgress, BrowserDownloadState, BrowserProgressLog, BundlingState, CopyingState, DownloadProgress, JobProgressCallback, RenderJob, RenderJobWithCleanup, RenderingProgressInput, RequiredChromiumOptions, StitchingProgressInput, UiOpenGlOptions, } from './render-job';
|
|
18
|
+
export type { CompletedClientRender } from './render-job';
|
|
18
19
|
export { SOURCE_MAP_ENDPOINT } from './source-map-endpoint';
|
|
19
20
|
export { ScriptLine, SomeStackFrame, StackFrame, SymbolicatedStackFrame, } from './stack-types';
|
|
20
21
|
export { EnumPath, stringifyDefaultProps } from './stringify-default-props';
|
package/dist/index.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stringifyDefaultProps = exports.SOURCE_MAP_ENDPOINT = exports.packages = exports.installableMap = exports.extraPackages = exports.descriptions = exports.apiDocs = exports.DEFAULT_TIMELINE_TRACKS = exports.hotMiddlewareOptions = exports.getProjectName = exports.getLocationFromBuildError = exports.getDefaultOutLocation = exports.formatBytes = exports.DEFAULT_BUFFER_STATE_DELAY_IN_MILLISECONDS = exports.stripAnsi = exports.splitAnsi = void 0;
|
|
4
|
-
|
|
4
|
+
const ansi_1 = require("./ansi");
|
|
5
5
|
Object.defineProperty(exports, "splitAnsi", { enumerable: true, get: function () { return ansi_1.splitAnsi; } });
|
|
6
6
|
Object.defineProperty(exports, "stripAnsi", { enumerable: true, get: function () { return ansi_1.stripAnsi; } });
|
|
7
|
-
|
|
7
|
+
const default_buffer_state_delay_in_milliseconds_1 = require("./default-buffer-state-delay-in-milliseconds");
|
|
8
8
|
Object.defineProperty(exports, "DEFAULT_BUFFER_STATE_DELAY_IN_MILLISECONDS", { enumerable: true, get: function () { return default_buffer_state_delay_in_milliseconds_1.DEFAULT_BUFFER_STATE_DELAY_IN_MILLISECONDS; } });
|
|
9
|
-
|
|
9
|
+
const format_bytes_1 = require("./format-bytes");
|
|
10
10
|
Object.defineProperty(exports, "formatBytes", { enumerable: true, get: function () { return format_bytes_1.formatBytes; } });
|
|
11
|
-
|
|
11
|
+
const get_default_out_name_1 = require("./get-default-out-name");
|
|
12
12
|
Object.defineProperty(exports, "getDefaultOutLocation", { enumerable: true, get: function () { return get_default_out_name_1.getDefaultOutLocation; } });
|
|
13
|
-
|
|
13
|
+
const get_location_from_build_error_1 = require("./get-location-from-build-error");
|
|
14
14
|
Object.defineProperty(exports, "getLocationFromBuildError", { enumerable: true, get: function () { return get_location_from_build_error_1.getLocationFromBuildError; } });
|
|
15
|
-
|
|
15
|
+
const get_project_name_1 = require("./get-project-name");
|
|
16
16
|
Object.defineProperty(exports, "getProjectName", { enumerable: true, get: function () { return get_project_name_1.getProjectName; } });
|
|
17
|
-
|
|
17
|
+
const hot_middleware_1 = require("./hot-middleware");
|
|
18
18
|
Object.defineProperty(exports, "hotMiddlewareOptions", { enumerable: true, get: function () { return hot_middleware_1.hotMiddlewareOptions; } });
|
|
19
|
-
|
|
19
|
+
const max_timeline_tracks_1 = require("./max-timeline-tracks");
|
|
20
20
|
Object.defineProperty(exports, "DEFAULT_TIMELINE_TRACKS", { enumerable: true, get: function () { return max_timeline_tracks_1.DEFAULT_TIMELINE_TRACKS; } });
|
|
21
|
-
|
|
21
|
+
const package_info_1 = require("./package-info");
|
|
22
22
|
Object.defineProperty(exports, "apiDocs", { enumerable: true, get: function () { return package_info_1.apiDocs; } });
|
|
23
23
|
Object.defineProperty(exports, "descriptions", { enumerable: true, get: function () { return package_info_1.descriptions; } });
|
|
24
24
|
Object.defineProperty(exports, "extraPackages", { enumerable: true, get: function () { return package_info_1.extraPackages; } });
|
|
25
25
|
Object.defineProperty(exports, "installableMap", { enumerable: true, get: function () { return package_info_1.installableMap; } });
|
|
26
26
|
Object.defineProperty(exports, "packages", { enumerable: true, get: function () { return package_info_1.packages; } });
|
|
27
|
-
|
|
27
|
+
const source_map_endpoint_1 = require("./source-map-endpoint");
|
|
28
28
|
Object.defineProperty(exports, "SOURCE_MAP_ENDPOINT", { enumerable: true, get: function () { return source_map_endpoint_1.SOURCE_MAP_ENDPOINT; } });
|
|
29
|
-
|
|
29
|
+
const stringify_default_props_1 = require("./stringify-default-props");
|
|
30
30
|
Object.defineProperty(exports, "stringifyDefaultProps", { enumerable: true, get: function () { return stringify_default_props_1.stringifyDefaultProps; } });
|
package/dist/package-info.js
CHANGED
package/dist/render-job.d.ts
CHANGED
|
@@ -155,4 +155,17 @@ export type RenderJob = {
|
|
|
155
155
|
export type RenderJobWithCleanup = RenderJob & {
|
|
156
156
|
cleanup: (() => void)[];
|
|
157
157
|
};
|
|
158
|
+
export type CompletedClientRender = {
|
|
159
|
+
id: string;
|
|
160
|
+
type: 'client-video' | 'client-still';
|
|
161
|
+
compositionId: string;
|
|
162
|
+
outName: string;
|
|
163
|
+
startedAt: number;
|
|
164
|
+
deletedOutputLocation: boolean;
|
|
165
|
+
metadata: {
|
|
166
|
+
width: number;
|
|
167
|
+
height: number;
|
|
168
|
+
sizeInBytes: number;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
158
171
|
export {};
|
package/package.json
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/studio-shared"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/studio-shared",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.424",
|
|
7
7
|
"description": "Internal package for shared objects between the Studio backend and frontend",
|
|
8
8
|
"main": "dist",
|
|
9
9
|
"sideEffects": false,
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint src",
|
|
12
12
|
"formatting": "prettier --experimental-cli src --check",
|
|
13
|
-
"make": "
|
|
13
|
+
"make": "tsgo -d"
|
|
14
14
|
},
|
|
15
15
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
16
16
|
"contributors": [],
|
|
@@ -19,12 +19,13 @@
|
|
|
19
19
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"remotion": "4.0.
|
|
22
|
+
"remotion": "4.0.424"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@remotion/renderer": "4.0.
|
|
26
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
27
|
-
"eslint": "9.19.0"
|
|
25
|
+
"@remotion/renderer": "4.0.424",
|
|
26
|
+
"@remotion/eslint-config-internal": "4.0.424",
|
|
27
|
+
"eslint": "9.19.0",
|
|
28
|
+
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
28
29
|
},
|
|
29
30
|
"publishConfig": {
|
|
30
31
|
"access": "public"
|