@remotion/studio 4.0.150 → 4.0.152

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.
@@ -23,4 +23,4 @@ export declare const TIMELINE_TRACK_SEPARATOR = "rgba(0, 0, 0, 0.3)";
23
23
  export declare const getBackgroundFromHoverState: ({ selected, hovered, }: {
24
24
  selected: boolean;
25
25
  hovered: boolean;
26
- }) => "hsla(0, 0%, 100%, 0.15)" | "hsla(0, 0%, 100%, 0.25)" | "rgba(255, 255, 255, 0.06)" | "transparent";
26
+ }) => "transparent" | "hsla(0, 0%, 100%, 0.15)" | "hsla(0, 0%, 100%, 0.25)" | "rgba(255, 255, 255, 0.06)";
@@ -31,24 +31,24 @@ const getTimelineSequenceLayout = ({ durationInFrames, startFrom, maxMediaDurati
31
31
  : (startFromWithOffset / lastFrame) *
32
32
  (windowWidth - timeline_layout_1.TIMELINE_PADDING * 2);
33
33
  const nonNegativeMarginLeft = Math.min(marginLeft, 0);
34
- const width = Math.floor(getWidthOfTrack({
34
+ const width = getWidthOfTrack({
35
35
  durationInFrames,
36
36
  lastFrame,
37
37
  nonNegativeMarginLeft,
38
38
  spatialDuration,
39
39
  windowWidth,
40
- }));
40
+ });
41
41
  const premountWidth = premountDisplay
42
- ? Math.floor(getWidthOfTrack({
42
+ ? getWidthOfTrack({
43
43
  durationInFrames: premountDisplay,
44
44
  lastFrame,
45
45
  nonNegativeMarginLeft,
46
46
  spatialDuration: premountDisplay,
47
47
  windowWidth,
48
- }))
48
+ })
49
49
  : null;
50
50
  return {
51
- marginLeft: Math.round(Math.max(marginLeft, 0)) - (premountWidth !== null && premountWidth !== void 0 ? premountWidth : 0),
51
+ marginLeft: Math.max(marginLeft, 0) - (premountWidth !== null && premountWidth !== void 0 ? premountWidth : 0),
52
52
  width: width + (premountWidth !== null && premountWidth !== void 0 ? premountWidth : 0),
53
53
  premountWidth,
54
54
  };
@@ -505,7 +505,7 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
505
505
  onClick: () => {
506
506
  var _a;
507
507
  closeMenu();
508
- (_a = canvas_ref_1.canvasRef.current) === null || _a === void 0 ? void 0 : _a.requestFullscreen();
508
+ (_a = canvas_ref_1.drawRef.current) === null || _a === void 0 ? void 0 : _a.requestFullscreen();
509
509
  },
510
510
  subMenu: null,
511
511
  type: 'item',
@@ -1,2 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  export declare const canvasRef: import("react").RefObject<HTMLDivElement>;
3
+ export declare const drawRef: import("react").RefObject<HTMLDivElement>;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.canvasRef = void 0;
3
+ exports.drawRef = exports.canvasRef = void 0;
4
4
  const react_1 = require("react");
5
5
  exports.canvasRef = (0, react_1.createRef)();
6
+ exports.drawRef = (0, react_1.createRef)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/studio",
3
- "version": "4.0.150",
3
+ "version": "4.0.152",
4
4
  "description": "Remotion Editor",
5
5
  "main": "dist",
6
6
  "sideEffects": false,
@@ -18,11 +18,11 @@
18
18
  "memfs": "3.4.3",
19
19
  "source-map": "0.7.3",
20
20
  "open": "^8.4.2",
21
- "remotion": "4.0.150",
22
- "@remotion/player": "4.0.150",
23
- "@remotion/renderer": "4.0.150",
24
- "@remotion/studio-shared": "4.0.150",
25
- "@remotion/media-utils": "4.0.150"
21
+ "remotion": "4.0.152",
22
+ "@remotion/player": "4.0.152",
23
+ "@remotion/studio-shared": "4.0.152",
24
+ "@remotion/media-utils": "4.0.152",
25
+ "@remotion/renderer": "4.0.152"
26
26
  },
27
27
  "devDependencies": {
28
28
  "react": "18.3.1",
@@ -39,7 +39,7 @@
39
39
  "@types/semver": "^7.3.4",
40
40
  "prettier-plugin-organize-imports": "3.2.4",
41
41
  "zod": "3.22.3",
42
- "@remotion/zod-types": "4.0.150"
42
+ "@remotion/zod-types": "4.0.152"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"