@remotion/studio 4.0.495 → 4.0.496
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/AssetSelectorItem.js +7 -7
- package/dist/components/CompositionSelectorItem.js +5 -23
- package/dist/components/CurrentAsset.js +4 -3
- package/dist/components/InlineCompositionName.js +1 -1
- package/dist/components/InlineEditableTitle.d.ts +1 -0
- package/dist/components/InlineEditableTitle.js +56 -11
- package/dist/components/InspectorInfoHeader.d.ts +2 -0
- package/dist/components/InspectorInfoHeader.js +16 -4
- package/dist/components/InspectorLocationCopy.js +2 -2
- package/dist/components/InspectorPanel/CompositionInspectorHeader.js +11 -6
- package/dist/components/InspectorPanel/EasingInspector.js +1 -1
- package/dist/components/InspectorPanel/KeyframeInspector.js +7 -8
- package/dist/components/InspectorPanel/KeyframeSettings.js +1 -1
- package/dist/components/InspectorPanel/SequenceInspectorHeader.js +28 -3
- package/dist/components/InspectorPanel/SequenceSelectionInspector.js +2 -2
- package/dist/components/InspectorPanel/common.d.ts +4 -2
- package/dist/components/InspectorPanel/common.js +18 -18
- package/dist/components/InspectorPanel/styles.d.ts +0 -3
- package/dist/components/InspectorPanel/styles.js +5 -40
- package/dist/components/InspectorSequenceSection.js +12 -2
- package/dist/components/InspectorSourceLocation.d.ts +1 -0
- package/dist/components/InspectorSourceLocation.js +5 -1
- package/dist/components/NewComposition/ComboBox.d.ts +2 -1
- package/dist/components/NewComposition/ComboBox.js +32 -7
- package/dist/components/PlaybackRateSelector.js +3 -3
- package/dist/components/PreviewToolbar.js +3 -3
- package/dist/components/RenderButton.d.ts +1 -0
- package/dist/components/RenderButton.js +51 -7
- package/dist/components/RenderModal/SchemaEditor/ZodDiscriminatedUnionEditor.js +1 -1
- package/dist/components/RenderModal/SchemaEditor/ZodEnumEditor.js +1 -1
- package/dist/components/RenderModal/SchemaEditor/ZodStaticFileEditor.js +1 -1
- package/dist/components/SizeSelector.js +3 -3
- package/dist/components/Timeline/TimelineAssetField.js +1 -1
- package/dist/components/Timeline/TimelineEnumField.js +1 -1
- package/dist/components/Timeline/TimelineFieldLabel.js +3 -3
- package/dist/components/Timeline/TimelineKeyframeControls.js +26 -6
- package/dist/components/Timeline/TimelineRowChrome.js +10 -2
- package/dist/components/Timeline/TimelineRowLayoutContext.d.ts +3 -0
- package/dist/components/Timeline/TimelineRowLayoutContext.js +6 -0
- package/dist/components/layout.d.ts +1 -0
- package/dist/components/layout.js +2 -1
- package/dist/components/open-in-new-window.d.ts +2 -0
- package/dist/components/open-in-new-window.js +28 -0
- package/dist/esm/{chunk-784jbkzs.js → chunk-0v4n7nkh.js} +565 -376
- package/dist/esm/internals.mjs +565 -376
- package/dist/esm/previewEntry.mjs +565 -376
- package/dist/esm/renderEntry.mjs +1 -1
- package/dist/helpers/inject-css.js +4 -2
- package/dist/icons/scissors.js +1 -1
- package/package.json +11 -11
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
type TimelineRowLayout = {
|
|
2
2
|
readonly basePadding: number;
|
|
3
|
+
readonly highlightSelectedLabel: boolean;
|
|
3
4
|
readonly keyframeControlsPadding: number;
|
|
5
|
+
readonly rowBorderRadius: number;
|
|
6
|
+
readonly rowHorizontalMargin: number;
|
|
4
7
|
};
|
|
5
8
|
export declare const INSPECTOR_TIMELINE_ROW_LAYOUT: TimelineRowLayout;
|
|
6
9
|
export declare const TimelineRowLayoutContext: import("react").Context<TimelineRowLayout>;
|
|
@@ -5,9 +5,15 @@ const react_1 = require("react");
|
|
|
5
5
|
const timeline_row_layout_1 = require("./timeline-row-layout");
|
|
6
6
|
exports.INSPECTOR_TIMELINE_ROW_LAYOUT = {
|
|
7
7
|
basePadding: timeline_row_layout_1.INSPECTOR_ROW_BASE_PADDING,
|
|
8
|
+
highlightSelectedLabel: false,
|
|
8
9
|
keyframeControlsPadding: 0,
|
|
10
|
+
rowBorderRadius: 4,
|
|
11
|
+
rowHorizontalMargin: 4,
|
|
9
12
|
};
|
|
10
13
|
exports.TimelineRowLayoutContext = (0, react_1.createContext)({
|
|
11
14
|
basePadding: timeline_row_layout_1.TIMELINE_ROW_BASE_PADDING,
|
|
15
|
+
highlightSelectedLabel: true,
|
|
12
16
|
keyframeControlsPadding: timeline_row_layout_1.TIMELINE_ROW_BASE_PADDING,
|
|
17
|
+
rowBorderRadius: 0,
|
|
18
|
+
rowHorizontalMargin: 0,
|
|
13
19
|
});
|
|
@@ -2,6 +2,7 @@ import type { HTMLAttributes } from 'react';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export declare const SPACING_UNIT = 8;
|
|
4
4
|
export declare const COMPACT_CONTROL_ROW_HEIGHT = 28;
|
|
5
|
+
export declare const COMPACT_INLINE_ROW_HEIGHT = 22;
|
|
5
6
|
export declare const Spacing: React.FC<{
|
|
6
7
|
readonly x?: number;
|
|
7
8
|
readonly y?: number;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Column = exports.Row = exports.Flex = exports.Spacing = exports.COMPACT_CONTROL_ROW_HEIGHT = exports.SPACING_UNIT = void 0;
|
|
3
|
+
exports.Column = exports.Row = exports.Flex = exports.Spacing = exports.COMPACT_INLINE_ROW_HEIGHT = exports.COMPACT_CONTROL_ROW_HEIGHT = exports.SPACING_UNIT = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
exports.SPACING_UNIT = 8;
|
|
7
7
|
exports.COMPACT_CONTROL_ROW_HEIGHT = 28;
|
|
8
|
+
exports.COMPACT_INLINE_ROW_HEIGHT = 22;
|
|
8
9
|
const Spacing = ({ x = 0, y = 0, block = false }) => {
|
|
9
10
|
const style = (0, react_1.useMemo)(() => {
|
|
10
11
|
return {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getOpenInNewWindowMenuItem = void 0;
|
|
4
|
+
const url_state_1 = require("../helpers/url-state");
|
|
5
|
+
const getOpenInNewWindowMenuItem = (route) => {
|
|
6
|
+
return {
|
|
7
|
+
id: 'open-in-new-window',
|
|
8
|
+
keyHint: null,
|
|
9
|
+
label: 'Open in new window',
|
|
10
|
+
leftItem: null,
|
|
11
|
+
onClick: () => {
|
|
12
|
+
var _a, _b;
|
|
13
|
+
const screen = window.screen;
|
|
14
|
+
const width = Math.min(1200, Math.floor(screen.availWidth * 0.8));
|
|
15
|
+
const height = Math.min(800, Math.floor(screen.availHeight * 0.8));
|
|
16
|
+
const displayLeft = (_a = screen.availLeft) !== null && _a !== void 0 ? _a : 0;
|
|
17
|
+
const displayTop = (_b = screen.availTop) !== null && _b !== void 0 ? _b : 0;
|
|
18
|
+
const left = Math.round(Math.min(Math.max(window.screenX + (window.outerWidth - width) / 2, displayLeft), displayLeft + screen.availWidth - width));
|
|
19
|
+
const top = Math.round(Math.min(Math.max(window.screenY + (window.outerHeight - height) / 2, displayTop), displayTop + screen.availHeight - height));
|
|
20
|
+
window.open((0, url_state_1.getUrlForRoute)(route), '_blank', `popup,width=${width},height=${height},left=${left},top=${top}`);
|
|
21
|
+
},
|
|
22
|
+
quickSwitcherLabel: null,
|
|
23
|
+
subMenu: null,
|
|
24
|
+
type: 'item',
|
|
25
|
+
value: 'open-in-new-window',
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
exports.getOpenInNewWindowMenuItem = getOpenInNewWindowMenuItem;
|