@remotion/cli 4.0.304 → 4.0.306

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.
@@ -283,6 +283,10 @@ declare global {
283
283
  * Whether the Remotion Studio should play a beep sound when a render has finished.
284
284
  */
285
285
  readonly setBeepOnFinish: (beepOnFinish: boolean) => void;
286
+ /**
287
+ * Enable Cross-Site Isolation in the Studio (Sets Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy HTTP headers)
288
+ */
289
+ readonly setEnableCrossSiteIsolation: (enableCrossSiteIsolation: boolean) => void;
286
290
  /**
287
291
  * Collect information that you can submit to Remotion if asked for a reproduction.
288
292
  */
@@ -42,7 +42,7 @@ const user_agent_1 = require("./user-agent");
42
42
  const webpack_caching_2 = require("./webpack-caching");
43
43
  const webpack_poll_1 = require("./webpack-poll");
44
44
  const width_1 = require("./width");
45
- const { offthreadVideoCacheSizeInBytesOption, x264Option, audioBitrateOption, videoBitrateOption, scaleOption, crfOption, jpegQualityOption, enforceAudioOption, overwriteOption, chromeModeOption, mutedOption, videoCodecOption, colorSpaceOption, deleteAfterOption, folderExpiryOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, numberOfGifLoopsOption, beepOnFinishOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, enableLambdaInsights, logLevelOption, delayRenderTimeoutInMillisecondsOption, publicDirOption, binariesDirectoryOption, preferLosslessOption, forSeamlessAacConcatenationOption, audioCodecOption, publicPathOption, hardwareAccelerationOption, audioLatencyHintOption, } = client_1.BrowserSafeApis.options;
45
+ const { offthreadVideoCacheSizeInBytesOption, x264Option, audioBitrateOption, videoBitrateOption, scaleOption, crfOption, jpegQualityOption, enforceAudioOption, overwriteOption, chromeModeOption, mutedOption, videoCodecOption, colorSpaceOption, deleteAfterOption, folderExpiryOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, numberOfGifLoopsOption, beepOnFinishOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, enableLambdaInsights, logLevelOption, delayRenderTimeoutInMillisecondsOption, publicDirOption, binariesDirectoryOption, preferLosslessOption, forSeamlessAacConcatenationOption, audioCodecOption, publicPathOption, hardwareAccelerationOption, audioLatencyHintOption, enableCrossSiteIsolationOption, } = client_1.BrowserSafeApis.options;
46
46
  exports.Config = {
47
47
  get Bundling() {
48
48
  throw new Error('The config format has changed. Change `Config.Bundling.*()` calls to `Config.*()` in your config file.');
@@ -135,6 +135,7 @@ exports.Config = {
135
135
  setPreferLosslessAudio: preferLosslessOption.setConfig,
136
136
  setPublicPath: publicPathOption.setConfig,
137
137
  setHardwareAcceleration: hardwareAccelerationOption.setConfig,
138
+ setEnableCrossSiteIsolation: enableCrossSiteIsolationOption.setConfig,
138
139
  };
139
140
  exports.ConfigInternals = {
140
141
  getRange: frame_range_1.getRange,
package/dist/studio.js CHANGED
@@ -24,7 +24,7 @@ const getPort = () => {
24
24
  }
25
25
  return null;
26
26
  };
27
- const { binariesDirectoryOption, publicDirOption, disableGitSourceOption } = client_1.BrowserSafeApis.options;
27
+ const { binariesDirectoryOption, publicDirOption, disableGitSourceOption, enableCrossSiteIsolationOption, } = client_1.BrowserSafeApis.options;
28
28
  const studioCommand = async (remotionRoot, args, logLevel) => {
29
29
  var _a;
30
30
  const { file, reason } = (0, entry_point_1.findEntryPoint)({
@@ -70,6 +70,9 @@ const studioCommand = async (remotionRoot, args, logLevel) => {
70
70
  const relativePublicDir = publicDirOption.getValue({
71
71
  commandLine: parsed_cli_1.parsedCli,
72
72
  }).value;
73
+ const enableCrossSiteIsolation = enableCrossSiteIsolationOption.getValue({
74
+ commandLine: parsed_cli_1.parsedCli,
75
+ }).value;
73
76
  const gitSource = (0, get_github_repository_1.getGitSource)({ remotionRoot, disableGitSource, logLevel });
74
77
  await studio_server_1.StudioServerInternals.startStudio({
75
78
  previewEntry: require.resolve('@remotion/studio/previewEntry'),
@@ -103,6 +106,7 @@ const studioCommand = async (remotionRoot, args, logLevel) => {
103
106
  binariesDirectory,
104
107
  forceIPv4: parsed_cli_1.parsedCli.ipv4,
105
108
  audioLatencyHint: parsed_cli_1.parsedCli['audio-latency-hint'],
109
+ enableCrossSiteIsolation,
106
110
  });
107
111
  // If the server is restarted through the UI, let's do the whole thing again.
108
112
  await (0, exports.studioCommand)(remotionRoot, args, logLevel);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/cli"
4
4
  },
5
5
  "name": "@remotion/cli",
6
- "version": "4.0.304",
6
+ "version": "4.0.306",
7
7
  "description": "Control Remotion features using the `npx remotion` command",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -33,14 +33,14 @@
33
33
  "dotenv": "9.0.2",
34
34
  "minimist": "1.2.6",
35
35
  "prompts": "2.4.2",
36
- "@remotion/bundler": "4.0.304",
37
- "@remotion/media-utils": "4.0.304",
38
- "@remotion/renderer": "4.0.304",
39
- "@remotion/player": "4.0.304",
40
- "@remotion/studio-server": "4.0.304",
41
- "@remotion/studio-shared": "4.0.304",
42
- "@remotion/studio": "4.0.304",
43
- "remotion": "4.0.304"
36
+ "@remotion/media-utils": "4.0.306",
37
+ "@remotion/player": "4.0.306",
38
+ "@remotion/renderer": "4.0.306",
39
+ "@remotion/studio-shared": "4.0.306",
40
+ "@remotion/studio-server": "4.0.306",
41
+ "remotion": "4.0.306",
42
+ "@remotion/studio": "4.0.306",
43
+ "@remotion/bundler": "4.0.306"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": ">=16.8.0",
@@ -54,11 +54,11 @@
54
54
  "react-dom": "19.0.0",
55
55
  "zod": "3.22.3",
56
56
  "eslint": "9.19.0",
57
- "@remotion/zod-types": "4.0.304",
58
- "@remotion/tailwind-v4": "4.0.304",
59
- "@remotion/skia": "4.0.304",
60
- "@remotion/eslint-config-internal": "4.0.304",
61
- "@remotion/enable-scss": "4.0.304"
57
+ "@remotion/tailwind-v4": "4.0.306",
58
+ "@remotion/enable-scss": "4.0.306",
59
+ "@remotion/zod-types": "4.0.306",
60
+ "@remotion/skia": "4.0.306",
61
+ "@remotion/eslint-config-internal": "4.0.306"
62
62
  },
63
63
  "keywords": [
64
64
  "remotion",