@remotion/studio 4.0.250 → 4.0.252

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
 
2
2
  
3
- > @remotion/studio@4.0.249 make /Users/jonathanburger/remotion/packages/studio
3
+ > @remotion/studio@4.0.251 make /Users/jonathanburger/remotion/packages/studio
4
4
  > tsc -d && bun --env-file=../.env.bundle bundle.ts
5
5
 
package/dist/Studio.js CHANGED
@@ -25,7 +25,7 @@ const Studio = ({ rootComponent, readOnly }) => {
25
25
  (0, react_1.useLayoutEffect)(() => {
26
26
  (0, inject_css_1.injectCSS)();
27
27
  }, []);
28
- return ((0, jsx_runtime_1.jsx)(remotion_1.Internals.RemotionRoot, { numberOfAudioTags: window.remotion_numberOfAudioTags, children: (0, jsx_runtime_1.jsxs)(EditorContexts_1.EditorContexts, { readOnlyStudio: readOnly, children: [(0, jsx_runtime_1.jsx)(Editor_1.Editor, { readOnlyStudio: readOnly, Root: rootComponent }), readOnly
28
+ return ((0, jsx_runtime_1.jsx)(remotion_1.Internals.RemotionRoot, { logLevel: window.remotion_logLevel, numberOfAudioTags: window.remotion_numberOfAudioTags, children: (0, jsx_runtime_1.jsxs)(EditorContexts_1.EditorContexts, { readOnlyStudio: readOnly, children: [(0, jsx_runtime_1.jsx)(Editor_1.Editor, { readOnlyStudio: readOnly, Root: rootComponent }), readOnly
29
29
  ? null
30
30
  : (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(ServerDisconnected_1.ServerDisconnected, {}), getServerDisconnectedDomElement())] }) }));
31
31
  };
@@ -0,0 +1,4 @@
1
+ import type { CompositionProps, StillProps } from 'remotion';
2
+ import type { AnyZodObject } from 'zod';
3
+ export declare const createComposition: <Schema extends AnyZodObject, Props extends Record<string, unknown>>({ ...other }: CompositionProps<Schema, Props>) => () => import("react/jsx-runtime").JSX.Element;
4
+ export declare const createStill: <Schema extends AnyZodObject, Props extends Record<string, unknown>>({ ...other }: StillProps<Schema, Props>) => () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createStill = exports.createComposition = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const remotion_1 = require("remotion");
6
+ const createComposition = ({ ...other }) => () => {
7
+ // @ts-expect-error
8
+ return (0, jsx_runtime_1.jsx)(remotion_1.Composition, { ...other });
9
+ };
10
+ exports.createComposition = createComposition;
11
+ const createStill = ({ ...other }) => () => {
12
+ // @ts-expect-error
13
+ return (0, jsx_runtime_1.jsx)(remotion_1.Still, { ...other });
14
+ };
15
+ exports.createStill = createStill;
@@ -12,6 +12,6 @@ export declare const getInputBorderColor: ({ status, isFocused, isHovered, }: {
12
12
  status: "error" | "warning" | "ok";
13
13
  isFocused: boolean;
14
14
  isHovered: boolean;
15
- }) => "hsla(0, 0%, 100%, 0.15)" | "rgba(0, 0, 0, 0.6)" | "rgba(255, 255, 255, 0.05)" | "#ff3232" | "#f1c40f";
15
+ }) => "#ff3232" | "hsla(0, 0%, 100%, 0.15)" | "#f1c40f" | "rgba(0, 0, 0, 0.6)" | "rgba(255, 255, 255, 0.05)";
16
16
  export declare const RemotionInput: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLInputElement>>;
17
17
  export {};
@@ -15,6 +15,7 @@ const explainer = {
15
15
  justifyContent: 'center',
16
16
  alignItems: 'center',
17
17
  textAlign: 'center',
18
+ background: colors_1.BACKGROUND,
18
19
  };
19
20
  const errorExplanation = {
20
21
  fontSize: 14,
@@ -3725,6 +3725,24 @@ var init_lib = __esm(() => {
3725
3725
  });
3726
3726
  });
3727
3727
 
3728
+ // src/api/create-composition.tsx
3729
+ import { Composition, Still } from "remotion";
3730
+ import { jsx } from "react/jsx-runtime";
3731
+ var createComposition = ({
3732
+ ...other
3733
+ }) => () => {
3734
+ return /* @__PURE__ */ jsx(Composition, {
3735
+ ...other
3736
+ });
3737
+ };
3738
+ var createStill = ({
3739
+ ...other
3740
+ }) => () => {
3741
+ return /* @__PURE__ */ jsx(Still, {
3742
+ ...other
3743
+ });
3744
+ };
3745
+
3728
3746
  // src/api/delete-static-file.ts
3729
3747
  import { getRemotionEnvironment } from "remotion";
3730
3748
 
@@ -4127,6 +4145,12 @@ var writeStaticFile = async ({
4127
4145
  throw new Error(jsonResponse.error);
4128
4146
  }
4129
4147
  };
4148
+
4149
+ // src/index.ts
4150
+ var StudioInternals = {
4151
+ createComposition,
4152
+ createStill
4153
+ };
4130
4154
  export {
4131
4155
  writeStaticFile,
4132
4156
  watchStaticFile,
@@ -4137,5 +4161,6 @@ export {
4137
4161
  reevaluateComposition,
4138
4162
  getStaticFiles,
4139
4163
  focusDefaultPropsPath,
4140
- deleteStaticFile
4164
+ deleteStaticFile,
4165
+ StudioInternals
4141
4166
  };
@@ -10823,7 +10823,8 @@ var explainer = {
10823
10823
  padding: "0 12px",
10824
10824
  justifyContent: "center",
10825
10825
  alignItems: "center",
10826
- textAlign: "center"
10826
+ textAlign: "center",
10827
+ background: BACKGROUND
10827
10828
  };
10828
10829
  var errorExplanation = {
10829
10830
  fontSize: 14,
@@ -27542,6 +27543,7 @@ var Studio = ({ rootComponent, readOnly }) => {
27542
27543
  injectCSS();
27543
27544
  }, []);
27544
27545
  return /* @__PURE__ */ jsx261(Internals62.RemotionRoot, {
27546
+ logLevel: window.remotion_logLevel,
27545
27547
  numberOfAudioTags: window.remotion_numberOfAudioTags,
27546
27548
  children: /* @__PURE__ */ jsxs134(EditorContexts, {
27547
27549
  readOnlyStudio: readOnly,
@@ -1,4 +1,4 @@
1
1
  export declare const getCheckerboardBackgroundSize: (size: number) => string;
2
2
  export declare const getCheckerboardBackgroundPos: (size: number) => string;
3
- export declare const checkerboardBackgroundColor: (checkerboard: boolean) => "black" | "white";
3
+ export declare const checkerboardBackgroundColor: (checkerboard: boolean) => "white" | "black";
4
4
  export declare const checkerboardBackgroundImage: (checkerboard: boolean) => "\n linear-gradient(\n 45deg,\n rgba(0, 0, 0, 0.1) 25%,\n transparent 25%\n ),\n linear-gradient(135deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%),\n linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%),\n linear-gradient(135deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%)\n " | undefined;
@@ -24,4 +24,4 @@ export declare const TIMELINE_TRACK_SEPARATOR = "rgba(0, 0, 0, 0.3)";
24
24
  export declare const getBackgroundFromHoverState: ({ selected, hovered, }: {
25
25
  selected: boolean;
26
26
  hovered: boolean;
27
- }) => "transparent" | "hsla(0, 0%, 100%, 0.15)" | "hsla(0, 0%, 100%, 0.25)" | "rgba(255, 255, 255, 0.06)";
27
+ }) => "transparent" | "hsla(0, 0%, 100%, 0.25)" | "hsla(0, 0%, 100%, 0.15)" | "rgba(255, 255, 255, 0.06)";
@@ -1,2 +1,2 @@
1
1
  import type { X264Preset } from '@remotion/renderer';
2
- export declare const labelx264Preset: (profile: X264Preset) => "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
2
+ export declare const labelx264Preset: (profile: X264Preset) => "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo";
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export { DeleteStaticFileResponse, deleteStaticFile, } from './api/delete-static-file';
1
+ export { deleteStaticFile, DeleteStaticFileResponse, } from './api/delete-static-file';
2
2
  export { focusDefaultPropsPath } from './api/focus-default-props-path';
3
- export { StaticFile, getStaticFiles } from './api/get-static-files';
3
+ export { getStaticFiles, StaticFile } from './api/get-static-files';
4
4
  export { UpdateDefaultPropsFunction } from './api/helpers/calc-new-props';
5
5
  export { reevaluateComposition } from './api/reevaluate-composition';
6
6
  export { restartStudio } from './api/restart-studio';
@@ -9,3 +9,7 @@ export { updateDefaultProps } from './api/update-default-props';
9
9
  export { watchPublicFolder } from './api/watch-public-folder';
10
10
  export { watchStaticFile } from './api/watch-static-file';
11
11
  export { writeStaticFile } from './api/write-static-file';
12
+ export declare const StudioInternals: {
13
+ createComposition: <Schema extends import("zod").AnyZodObject, Props extends Record<string, unknown>>({ ...other }: import("remotion").CompositionProps<Schema, Props>) => () => import("react/jsx-runtime").JSX.Element;
14
+ createStill: <Schema extends import("zod").AnyZodObject, Props extends Record<string, unknown>>({ ...other }: import("remotion").StillProps<Schema, Props>) => () => import("react/jsx-runtime").JSX.Element;
15
+ };
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.writeStaticFile = exports.watchStaticFile = exports.watchPublicFolder = exports.updateDefaultProps = exports.saveDefaultProps = exports.restartStudio = exports.reevaluateComposition = exports.getStaticFiles = exports.focusDefaultPropsPath = exports.deleteStaticFile = void 0;
3
+ exports.StudioInternals = exports.writeStaticFile = exports.watchStaticFile = exports.watchPublicFolder = exports.updateDefaultProps = exports.saveDefaultProps = exports.restartStudio = exports.reevaluateComposition = exports.getStaticFiles = exports.focusDefaultPropsPath = exports.deleteStaticFile = void 0;
4
+ const create_composition_1 = require("./api/create-composition");
4
5
  var delete_static_file_1 = require("./api/delete-static-file");
5
6
  Object.defineProperty(exports, "deleteStaticFile", { enumerable: true, get: function () { return delete_static_file_1.deleteStaticFile; } });
6
7
  var focus_default_props_path_1 = require("./api/focus-default-props-path");
@@ -21,3 +22,7 @@ var watch_static_file_1 = require("./api/watch-static-file");
21
22
  Object.defineProperty(exports, "watchStaticFile", { enumerable: true, get: function () { return watch_static_file_1.watchStaticFile; } });
22
23
  var write_static_file_1 = require("./api/write-static-file");
23
24
  Object.defineProperty(exports, "writeStaticFile", { enumerable: true, get: function () { return write_static_file_1.writeStaticFile; } });
25
+ exports.StudioInternals = {
26
+ createComposition: create_composition_1.createComposition,
27
+ createStill: create_composition_1.createStill,
28
+ };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/studio"
4
4
  },
5
5
  "name": "@remotion/studio",
6
- "version": "4.0.250",
6
+ "version": "4.0.252",
7
7
  "description": "APIs for interacting with the Remotion Studio",
8
8
  "main": "dist",
9
9
  "sideEffects": false,
@@ -18,12 +18,12 @@
18
18
  "memfs": "3.4.3",
19
19
  "source-map": "0.7.3",
20
20
  "open": "^8.4.2",
21
- "remotion": "4.0.250",
22
- "@remotion/renderer": "4.0.250",
23
- "@remotion/media-utils": "4.0.250",
24
- "@remotion/player": "4.0.250",
25
- "@remotion/studio-shared": "4.0.250",
26
- "@remotion/media-parser": "4.0.250"
21
+ "@remotion/player": "4.0.252",
22
+ "remotion": "4.0.252",
23
+ "@remotion/media-utils": "4.0.252",
24
+ "@remotion/media-parser": "4.0.252",
25
+ "@remotion/studio-shared": "4.0.252",
26
+ "@remotion/renderer": "4.0.252"
27
27
  },
28
28
  "devDependencies": {
29
29
  "react": "19.0.0",
@@ -31,8 +31,8 @@
31
31
  "@types/semver": "^7.3.4",
32
32
  "zod": "3.22.3",
33
33
  "eslint": "9.14.0",
34
- "@remotion/eslint-config-internal": "4.0.250",
35
- "@remotion/zod-types": "4.0.250"
34
+ "@remotion/zod-types": "4.0.252",
35
+ "@remotion/eslint-config-internal": "4.0.252"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public"