@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.
@@ -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[];
@@ -1,6 +1,6 @@
1
1
  export declare const formatBytes: (number: number, options?: Intl.NumberFormatOptions & {
2
2
  locale: string;
3
- bits?: boolean;
4
- binary?: boolean;
3
+ bits?: boolean | undefined;
4
+ binary?: boolean | undefined;
5
5
  signed: boolean;
6
6
  }) => string;
@@ -1,7 +1,7 @@
1
- export declare const getDefaultOutLocation: ({ compositionName, defaultExtension, type, compositionDefaultOutName, clientSideRender, }: {
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
- clientSideRender: boolean;
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 getDefaultOutLocation = ({ compositionName, defaultExtension, type, compositionDefaultOutName, clientSideRender, }) => {
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
- if (clientSideRender) {
8
- return nameToUse;
9
- }
10
- return `out/${nameToUse}`;
11
- }
12
- if (clientSideRender) {
13
- return `${nameToUse}.${defaultExtension}`;
17
+ return `${dir}${nameToUse}`;
14
18
  }
15
- return `out/${nameToUse}.${defaultExtension}`;
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
- var ansi_1 = require("./ansi");
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
- var default_buffer_state_delay_in_milliseconds_1 = require("./default-buffer-state-delay-in-milliseconds");
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
- var format_bytes_1 = require("./format-bytes");
9
+ const format_bytes_1 = require("./format-bytes");
10
10
  Object.defineProperty(exports, "formatBytes", { enumerable: true, get: function () { return format_bytes_1.formatBytes; } });
11
- var get_default_out_name_1 = require("./get-default-out-name");
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
- var get_location_from_build_error_1 = require("./get-location-from-build-error");
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
- var get_project_name_1 = require("./get-project-name");
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
- var hot_middleware_1 = require("./hot-middleware");
17
+ const hot_middleware_1 = require("./hot-middleware");
18
18
  Object.defineProperty(exports, "hotMiddlewareOptions", { enumerable: true, get: function () { return hot_middleware_1.hotMiddlewareOptions; } });
19
- var max_timeline_tracks_1 = require("./max-timeline-tracks");
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
- var package_info_1 = require("./package-info");
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
- var source_map_endpoint_1 = require("./source-map-endpoint");
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
- var stringify_default_props_1 = require("./stringify-default-props");
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; } });
@@ -95,7 +95,7 @@ exports.extraPackages = [
95
95
  },
96
96
  {
97
97
  name: 'mediabunny',
98
- version: '1.29.0',
98
+ version: '1.34.4',
99
99
  description: 'Multimedia library used by Remotion',
100
100
  docsUrl: 'https://www.remotion.dev/docs/mediabunny/version',
101
101
  },
@@ -44,6 +44,7 @@ export type RenderDefaults = {
44
44
  hardwareAcceleration: HardwareAccelerationOption;
45
45
  chromeMode: ChromeMode;
46
46
  publicLicenseKey: string | null;
47
+ outputLocation: string | null;
47
48
  };
48
49
  declare global {
49
50
  interface Window {
@@ -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.422",
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": "tsc -d"
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.422"
22
+ "remotion": "4.0.424"
23
23
  },
24
24
  "devDependencies": {
25
- "@remotion/renderer": "4.0.422",
26
- "@remotion/eslint-config-internal": "4.0.422",
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"