@remotion/studio-shared 4.0.488 → 4.0.489

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.
@@ -594,6 +594,7 @@ export type ElementInstallRequest = {
594
594
  position: InsertableCompositionElementPosition | null;
595
595
  };
596
596
  export type UpdateElementInstallTargetRequest = {
597
+ requestId: string | null;
597
598
  clientId: string;
598
599
  compositionFile: string | null;
599
600
  compositionId: string | null;
@@ -54,6 +54,9 @@ export type EventSourceEvent = {
54
54
  type: 'undo-redo-stack-changed';
55
55
  undoFile: string | null;
56
56
  redoFile: string | null;
57
+ } | {
58
+ type: 'request-element-install-target';
59
+ requestId: string;
57
60
  } | {
58
61
  type: 'element-install-request';
59
62
  request: ElementInstallRequest;
package/dist/index.d.ts CHANGED
@@ -39,6 +39,7 @@ export { ScriptLine, SomeStackFrame, StackFrame, SymbolicatedStackFrame, } from
39
39
  export { EnumPath, stringifyDefaultProps } from './stringify-default-props';
40
40
  export { getStudioEntryPoints, type StudioEntryPointPaths, } from './studio-entry-points';
41
41
  export { studioHtml, type StudioHtmlOptions } from './studio-html';
42
+ export type { StudioRuntimeConfig } from './studio-runtime-config';
42
43
  export type { VisualControlChange } from './codemods';
43
44
  export { optimisticAddEffectKeyframe, optimisticAddSequenceKeyframe, } from './optimistic-add-keyframe';
44
45
  export { optimisticDeleteEffectKeyframe, optimisticDeleteEffectKeyframes, optimisticDeleteSequenceKeyframe, optimisticDeleteSequenceKeyframes, } from './optimistic-delete-keyframe';
@@ -3,6 +3,7 @@ import type { HardwareAccelerationOption } from '@remotion/renderer/client';
3
3
  import type { _InternalTypes } from 'remotion';
4
4
  import type { GitSource } from './git-source';
5
5
  import type { PackageManager } from './package-manager';
6
+ import type { StudioRuntimeConfig } from './studio-runtime-config';
6
7
  export type RenderDefaults = {
7
8
  jpegQuality: number;
8
9
  scale: number;
@@ -55,5 +56,6 @@ declare global {
55
56
  remotion_gitSource: GitSource | null;
56
57
  remotion_installedPackages: string[] | null;
57
58
  remotion_packageManager: PackageManager | 'unknown';
59
+ remotion_studioConfig: StudioRuntimeConfig | null;
58
60
  }
59
61
  }
@@ -2,6 +2,7 @@ import type { LogLevel, StaticFile } from 'remotion';
2
2
  import type { GitSource } from './git-source';
3
3
  import type { PackageManager } from './package-manager';
4
4
  import type { RenderDefaults } from './render-defaults';
5
+ import type { StudioRuntimeConfig } from './studio-runtime-config';
5
6
  export type StudioHtmlOptions = {
6
7
  staticHash: string;
7
8
  publicPath: string;
@@ -28,5 +29,6 @@ export type StudioHtmlOptions = {
28
29
  mode: 'dev' | 'bundle';
29
30
  bundleScriptUrl?: string;
30
31
  readOnlyStudio?: boolean;
32
+ studioRuntimeConfig?: StudioRuntimeConfig;
31
33
  };
32
- export declare const studioHtml: ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, completedClientRenders, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, audioLatencyHint, sampleRate, logLevel, mode, bundleScriptUrl, readOnlyStudio, }: StudioHtmlOptions) => string;
34
+ export declare const studioHtml: ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, completedClientRenders, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, audioLatencyHint, sampleRate, logLevel, mode, bundleScriptUrl, readOnlyStudio, studioRuntimeConfig, }: StudioHtmlOptions) => string;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.studioHtml = void 0;
4
4
  const remotion_1 = require("remotion");
5
- const studioHtml = ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, completedClientRenders, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, audioLatencyHint, sampleRate, logLevel, mode, bundleScriptUrl, readOnlyStudio, }) => {
5
+ const studioHtml = ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, completedClientRenders, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, audioLatencyHint, sampleRate, logLevel, mode, bundleScriptUrl, readOnlyStudio, studioRuntimeConfig, }) => {
6
6
  const scriptUrl = bundleScriptUrl !== null && bundleScriptUrl !== void 0 ? bundleScriptUrl : `${publicPath}bundle.js`;
7
7
  return `
8
8
  <!DOCTYPE html>
@@ -29,6 +29,7 @@ const studioHtml = ({ publicPath, editorName, inputProps, envVariables, staticHa
29
29
  <script>window.remotion_publicPath = ${JSON.stringify(publicPath)};</script>
30
30
  <script>window.remotion_audioEnabled = true;</script>
31
31
  <script>window.remotion_videoEnabled = true;</script>
32
+ <script>window.remotion_studioConfig = ${JSON.stringify(studioRuntimeConfig !== null && studioRuntimeConfig !== void 0 ? studioRuntimeConfig : null)};</script>
32
33
  <script>window.remotion_renderDefaults = ${JSON.stringify(renderDefaults)};</script>
33
34
  <script>window.remotion_cwd = ${JSON.stringify(remotionRoot)};</script>
34
35
  <script>window.remotion_studioServerCommand = ${studioServerCommand ? JSON.stringify(studioServerCommand) : 'null'};</script>
@@ -0,0 +1,8 @@
1
+ export type StudioRuntimeConfig = {
2
+ readonly maxTimelineTracks: number | null;
3
+ readonly askAIEnabled: boolean;
4
+ readonly interactivityEnabled: boolean;
5
+ readonly keyboardShortcutsEnabled: boolean;
6
+ readonly bufferStateDelayInMilliseconds: number | null;
7
+ readonly experimentalClientSideRenderingEnabled: boolean;
8
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -3,7 +3,7 @@
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.488",
6
+ "version": "4.0.489",
7
7
  "description": "Internal package for shared objects between the Studio backend and frontend",
8
8
  "main": "dist",
9
9
  "scripts": {
@@ -20,11 +20,11 @@
20
20
  "url": "https://github.com/remotion-dev/remotion/issues"
21
21
  },
22
22
  "dependencies": {
23
- "remotion": "4.0.488"
23
+ "remotion": "4.0.489"
24
24
  },
25
25
  "devDependencies": {
26
- "@remotion/renderer": "4.0.488",
27
- "@remotion/eslint-config-internal": "4.0.488",
26
+ "@remotion/renderer": "4.0.489",
27
+ "@remotion/eslint-config-internal": "4.0.489",
28
28
  "eslint": "9.19.0",
29
29
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
30
30
  },