@remotion/studio 4.0.477 → 4.0.478
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/dist/components/CanvasIfSizeIsAvailable.js +2 -6
- package/dist/components/EditorGuides/Guide.js +37 -9
- package/dist/components/EditorRuler/Ruler.js +4 -14
- package/dist/components/EditorRuler/index.js +9 -4
- package/dist/components/InlineAction.js +1 -0
- package/dist/components/MenuToolbar.d.ts +1 -0
- package/dist/components/MenuToolbar.js +4 -1
- package/dist/components/SelectedOutlineElement.js +85 -14
- package/dist/components/SelectedOutlineOverlay.d.ts +1 -1
- package/dist/components/SelectedOutlineOverlay.js +5 -1
- package/dist/components/Timeline/TimelineSequence.js +7 -15
- package/dist/components/Timeline/TimelineVideoInfo.d.ts +1 -0
- package/dist/components/Timeline/TimelineVideoInfo.js +93 -8
- package/dist/components/Timeline/duplicate-selected-timeline-item.d.ts +7 -0
- package/dist/components/Timeline/duplicate-selected-timeline-item.js +32 -3
- package/dist/components/Timeline/timeline-video-filmstrip-times.d.ts +17 -0
- package/dist/components/Timeline/timeline-video-filmstrip-times.js +22 -0
- package/dist/components/import-assets.d.ts +11 -2
- package/dist/components/import-assets.js +61 -6
- package/dist/components/selected-outline-drag.d.ts +23 -0
- package/dist/components/selected-outline-drag.js +49 -1
- package/dist/error-overlay/remotion-overlay/Overlay.js +3 -0
- package/dist/esm/{chunk-t8fjnw2d.js → chunk-hrw9799x.js} +926 -578
- package/dist/esm/internals.mjs +926 -578
- package/dist/esm/previewEntry.mjs +10204 -9852
- package/dist/esm/renderEntry.mjs +1 -1
- package/dist/helpers/editor-guide-selection.js +1 -1
- package/dist/helpers/get-preview-file-type.js +1 -1
- package/dist/helpers/ruler-canvas-size.d.ts +5 -0
- package/dist/helpers/ruler-canvas-size.js +17 -0
- package/package.json +11 -11
package/dist/esm/renderEntry.mjs
CHANGED
|
@@ -209,7 +209,7 @@ var renderContent = (Root) => {
|
|
|
209
209
|
renderToDOM(/* @__PURE__ */ jsx("div", {
|
|
210
210
|
children: /* @__PURE__ */ jsx(DelayedSpinner, {})
|
|
211
211
|
}));
|
|
212
|
-
import("./chunk-
|
|
212
|
+
import("./chunk-hrw9799x.js").then(({ StudioInternals }) => {
|
|
213
213
|
window.remotion_isStudio = true;
|
|
214
214
|
window.remotion_isReadOnlyStudio = true;
|
|
215
215
|
window.remotion_inputProps = "{}";
|
|
@@ -24,7 +24,7 @@ const findGuide = (guidesList, guideId) => {
|
|
|
24
24
|
if (guideId === null) {
|
|
25
25
|
return null;
|
|
26
26
|
}
|
|
27
|
-
return (_a = guidesList.find((guide) => guide.id === guideId)) !== null && _a !== void 0 ? _a : null;
|
|
27
|
+
return (_a = guidesList.find((guide) => guide.id === guideId && guide.show)) !== null && _a !== void 0 ? _a : null;
|
|
28
28
|
};
|
|
29
29
|
const getRulerGuideHighlight = ({ guidesList, selectedItems, hoveredGuideId, draggingGuideId, }) => {
|
|
30
30
|
var _a;
|
|
@@ -8,7 +8,7 @@ const getPreviewFileType = (fileName) => {
|
|
|
8
8
|
}
|
|
9
9
|
const audioExtensions = ['mp3', 'wav', 'ogg', 'aac'];
|
|
10
10
|
const videoExtensions = ['mp4', 'avi', 'mkv', 'mov', 'webm'];
|
|
11
|
-
const imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp'];
|
|
11
|
+
const imageExtensions = ['jpg', 'jpeg', 'png', 'apng', 'gif', 'bmp'];
|
|
12
12
|
const fileExtension = (_a = fileName.split('.').pop()) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
13
13
|
if (fileExtension === undefined) {
|
|
14
14
|
throw new Error('File extension is undefined');
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.applyRulerInsetsToCanvasSize = void 0;
|
|
4
|
+
const editor_rulers_1 = require("../state/editor-rulers");
|
|
5
|
+
const applyRulerInsetsToCanvasSize = ({ rulersAreVisible, size, }) => {
|
|
6
|
+
if (!rulersAreVisible) {
|
|
7
|
+
return size;
|
|
8
|
+
}
|
|
9
|
+
return {
|
|
10
|
+
...size,
|
|
11
|
+
left: size.left + editor_rulers_1.RULER_WIDTH,
|
|
12
|
+
top: size.top + editor_rulers_1.RULER_WIDTH,
|
|
13
|
+
width: size.width - editor_rulers_1.RULER_WIDTH,
|
|
14
|
+
height: size.height - editor_rulers_1.RULER_WIDTH,
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
exports.applyRulerInsetsToCanvasSize = applyRulerInsetsToCanvasSize;
|
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.
|
|
6
|
+
"version": "4.0.478",
|
|
7
7
|
"description": "APIs for interacting with the Remotion Studio",
|
|
8
8
|
"main": "dist",
|
|
9
9
|
"scripts": {
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"semver": "7.5.3",
|
|
28
|
-
"remotion": "4.0.
|
|
29
|
-
"@remotion/canvas-capture": "4.0.
|
|
30
|
-
"@remotion/player": "4.0.
|
|
31
|
-
"@remotion/media-utils": "4.0.
|
|
32
|
-
"@remotion/renderer": "4.0.
|
|
33
|
-
"@remotion/web-renderer": "4.0.
|
|
34
|
-
"@remotion/studio-shared": "4.0.
|
|
35
|
-
"@remotion/timeline-utils": "4.0.
|
|
36
|
-
"@remotion/zod-types": "4.0.
|
|
28
|
+
"remotion": "4.0.478",
|
|
29
|
+
"@remotion/canvas-capture": "4.0.478",
|
|
30
|
+
"@remotion/player": "4.0.478",
|
|
31
|
+
"@remotion/media-utils": "4.0.478",
|
|
32
|
+
"@remotion/renderer": "4.0.478",
|
|
33
|
+
"@remotion/web-renderer": "4.0.478",
|
|
34
|
+
"@remotion/studio-shared": "4.0.478",
|
|
35
|
+
"@remotion/timeline-utils": "4.0.478",
|
|
36
|
+
"@remotion/zod-types": "4.0.478",
|
|
37
37
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
38
38
|
"mediabunny": "1.45.0",
|
|
39
39
|
"memfs": "3.4.3",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"react": "19.2.3",
|
|
45
45
|
"react-dom": "19.2.3",
|
|
46
46
|
"@types/semver": "7.5.3",
|
|
47
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
47
|
+
"@remotion/eslint-config-internal": "4.0.478",
|
|
48
48
|
"eslint": "9.19.0",
|
|
49
49
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
50
50
|
},
|