@remotion/cli 4.0.76 → 4.0.77

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.
@@ -255,6 +255,6 @@ const Canvas = ({ canvasContent }) => {
255
255
  (0, react_1.useEffect)(() => {
256
256
  fetchMetadata();
257
257
  }, [fetchMetadata]);
258
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { ref: canvas_ref_1.canvasRef, style: container, children: [size ? ((0, jsx_runtime_1.jsx)(Preview_1.VideoPreview, { canvasContent: canvasContent, contentDimensions: contentDimensions, canvasSize: size, assetMetadata: assetResolution })) : null, isFit ? null : ((0, jsx_runtime_1.jsx)("div", { style: resetZoom, className: "css-reset", children: (0, jsx_runtime_1.jsx)(ResetZoomButton_1.ResetZoomButton, { onClick: onReset }) })), editorShowGuides && ((0, jsx_runtime_1.jsx)(EditorGuides_1.default, { canvasSize: size, contentDimensions: contentDimensions, assetMetadata: assetResolution }))] }), areRulersVisible && ((0, jsx_runtime_1.jsx)(EditorRuler_1.EditorRulers, { contentDimensions: contentDimensions, canvasSize: size, assetMetadata: assetResolution, containerRef: canvas_ref_1.canvasRef }))] }));
258
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { ref: canvas_ref_1.canvasRef, style: container, children: [size ? ((0, jsx_runtime_1.jsx)(Preview_1.VideoPreview, { canvasContent: canvasContent, contentDimensions: contentDimensions, canvasSize: size, assetMetadata: assetResolution })) : null, isFit ? null : ((0, jsx_runtime_1.jsx)("div", { style: resetZoom, className: "css-reset", children: (0, jsx_runtime_1.jsx)(ResetZoomButton_1.ResetZoomButton, { onClick: onReset }) })), editorShowGuides && canvasContent.type === 'composition' && ((0, jsx_runtime_1.jsx)(EditorGuides_1.default, { canvasSize: size, contentDimensions: contentDimensions, assetMetadata: assetResolution }))] }), areRulersVisible && ((0, jsx_runtime_1.jsx)(EditorRuler_1.EditorRulers, { contentDimensions: contentDimensions, canvasSize: size, assetMetadata: assetResolution, containerRef: canvas_ref_1.canvasRef }))] }));
259
259
  };
260
260
  exports.Canvas = Canvas;
@@ -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
- }) => "#ff3232" | "hsla(0, 0%, 100%, 0.15)" | "#f1c40f" | "rgba(255, 255, 255, 0.05)" | "rgba(0, 0, 0, 0.6)";
15
+ }) => "hsla(0, 0%, 100%, 0.15)" | "rgba(0, 0, 0, 0.6)" | "rgba(255, 255, 255, 0.05)" | "#ff3232" | "#f1c40f";
16
16
  export declare const RemotionInput: React.ForwardRefExoticComponent<Pick<Props, "key" | keyof React.InputHTMLAttributes<HTMLInputElement> | "status" | "rightAlign"> & React.RefAttributes<HTMLInputElement>>;
17
17
  export {};
@@ -12,13 +12,13 @@ const OptionExplainer_1 = require("./OptionExplainer");
12
12
  const NumberSetting = ({ name, value, step, hint, onValueChanged, max, min, formatter }) => {
13
13
  const onTextChanged = (0, react_1.useCallback)((e) => {
14
14
  onValueChanged((q) => {
15
- const newSetting = parseInt(e, 10);
15
+ const newSetting = step < 1 ? parseFloat(e) : parseInt(e, 10);
16
16
  if (Number.isNaN(newSetting)) {
17
17
  return q;
18
18
  }
19
19
  return Math.min(max !== null && max !== void 0 ? max : Infinity, Math.max(newSetting, min));
20
20
  });
21
- }, [max, min, onValueChanged]);
21
+ }, [max, min, onValueChanged, step]);
22
22
  const onValueChange = (0, react_1.useCallback)((newConcurrency) => {
23
23
  onValueChanged(newConcurrency);
24
24
  }, [onValueChanged]);
@@ -21,4 +21,4 @@ export declare const SELECTED_GUIDE = "#d22d3a";
21
21
  export declare const getBackgroundFromHoverState: ({ selected, hovered, }: {
22
22
  selected: boolean;
23
23
  hovered: boolean;
24
- }) => "transparent" | "hsla(0, 0%, 100%, 0.25)" | "hsla(0, 0%, 100%, 0.15)" | "rgba(255, 255, 255, 0.06)";
24
+ }) => "transparent" | "hsla(0, 0%, 100%, 0.15)" | "hsla(0, 0%, 100%, 0.25)" | "rgba(255, 255, 255, 0.06)";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Codec } from '@remotion/renderer';
2
3
  import type { RenderType } from '../components/RenderModal/RenderModalAdvanced';
3
4
  type Section = 'general' | 'picture' | 'advanced' | 'data' | 'gif' | 'audio';
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { LogLevel } from '@remotion/renderer';
2
3
  import type { IncomingMessage, ServerResponse } from 'node:http';
3
4
  import type { LiveEventsServer } from './live-events';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/cli",
3
- "version": "4.0.76",
3
+ "version": "4.0.77",
4
4
  "description": "CLI for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -35,11 +35,11 @@
35
35
  "prompts": "2.4.1",
36
36
  "semver": "7.5.3",
37
37
  "source-map": "0.6.1",
38
- "@remotion/media-utils": "4.0.76",
39
- "@remotion/renderer": "4.0.76",
40
- "@remotion/bundler": "4.0.76",
41
- "remotion": "4.0.76",
42
- "@remotion/player": "4.0.76"
38
+ "@remotion/bundler": "4.0.77",
39
+ "@remotion/media-utils": "4.0.77",
40
+ "@remotion/player": "4.0.77",
41
+ "@remotion/renderer": "4.0.77",
42
+ "remotion": "4.0.77"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": ">=16.8.0",
@@ -65,8 +65,8 @@
65
65
  "react-dom": "18.2.0",
66
66
  "vitest": "0.31.1",
67
67
  "zod": "^3.22.3",
68
- "@remotion/tailwind": "4.0.76",
69
- "@remotion/zod-types": "4.0.76"
68
+ "@remotion/zod-types": "4.0.77",
69
+ "@remotion/tailwind": "4.0.77"
70
70
  },
71
71
  "keywords": [
72
72
  "remotion",