@remotion/studio 4.0.149 → 4.0.151
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.
- package/.turbo/turbo-build.log +4 -2
- package/bundle.ts +15 -4
- package/dist/components/Canvas.d.ts +3 -2
- package/dist/components/Canvas.js +2 -2
- package/dist/components/CanvasOrLoading.d.ts +1 -1
- package/dist/components/CanvasOrLoading.js +7 -29
- package/dist/components/Editor.js +3 -3
- package/dist/components/FullscreenToggle.js +1 -1
- package/dist/components/ModalContainer.d.ts +3 -3
- package/dist/components/NewComposition/DismissableModal.d.ts +1 -1
- package/dist/components/NewComposition/RemInput.d.ts +1 -1
- package/dist/components/Preview.d.ts +5 -4
- package/dist/components/Preview.js +5 -3
- package/dist/components/PreviewToolbar.d.ts +2 -2
- package/dist/components/PreviewToolbar.js +1 -1
- package/dist/components/RefreshCompositionOverlay.d.ts +3 -0
- package/dist/components/RefreshCompositionOverlay.js +19 -0
- package/dist/components/RenderModal/ResolveCompositionBeforeModal.js +2 -2
- package/dist/components/RunningCalculateMetadata.d.ts +3 -0
- package/dist/components/RunningCalculateMetadata.js +26 -0
- package/dist/components/Spinner.d.ts +2 -2
- package/dist/components/Spinner.js +1 -1
- package/dist/components/Timeline/TimelineTracks.d.ts +2 -2
- package/dist/esm/internals.mjs +4083 -3932
- package/dist/helpers/checkerboard-background.d.ts +1 -1
- package/dist/helpers/colors.d.ts +1 -1
- package/dist/helpers/get-timeline-sequence-layout.js +5 -5
- package/dist/helpers/use-menu-structure.js +1 -1
- package/dist/state/canvas-ref.d.ts +1 -0
- package/dist/state/canvas-ref.js +2 -1
- package/package.json +8 -8
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -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) => "
|
|
3
|
+
export declare const checkerboardBackgroundColor: (checkerboard: boolean) => "black" | "white";
|
|
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;
|
package/dist/helpers/colors.d.ts
CHANGED
|
@@ -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
|
-
}) => "transparent" | "hsla(0, 0%, 100%, 0.
|
|
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 =
|
|
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
|
-
?
|
|
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.
|
|
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.
|
|
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',
|
package/dist/state/canvas-ref.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "4.0.151",
|
|
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.
|
|
22
|
-
"@remotion/
|
|
23
|
-
"@remotion/
|
|
24
|
-
"@remotion/renderer": "4.0.
|
|
25
|
-
"
|
|
21
|
+
"@remotion/player": "4.0.151",
|
|
22
|
+
"@remotion/media-utils": "4.0.151",
|
|
23
|
+
"@remotion/studio-shared": "4.0.151",
|
|
24
|
+
"@remotion/renderer": "4.0.151",
|
|
25
|
+
"remotion": "4.0.151"
|
|
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.
|
|
42
|
+
"@remotion/zod-types": "4.0.151"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"lint": "eslint src --ext ts,tsx",
|
|
65
|
-
"build": "bun bundle.ts",
|
|
65
|
+
"build": "bun --env-file=../.env.bundle bundle.ts",
|
|
66
66
|
"test": "bun test src",
|
|
67
67
|
"formatting": "prettier src --check"
|
|
68
68
|
}
|