@remotion/studio 4.0.171 → 4.0.173
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 +1 -1
- package/dist/components/AssetSelectorItem.js +1 -0
- package/dist/components/Menu/MenuItem.d.ts +10 -10
- package/dist/components/Menu/MenuItem.js +1 -0
- package/dist/components/Menu/styles.js +1 -0
- package/dist/components/NewComposition/ComboBox.d.ts +4 -4
- package/dist/components/NewComposition/ComboBox.js +1 -0
- package/dist/components/NewComposition/InputDragger.d.ts +5 -5
- package/dist/components/NewComposition/InputDragger.js +1 -0
- package/dist/components/RenderModal/InfoBubble.d.ts +2 -2
- package/dist/components/RenderModal/InfoBubble.js +1 -0
- package/dist/components/RenderQueue/RenderQueueItem.d.ts +2 -2
- package/dist/components/RenderQueue/RenderQueueItem.js +1 -0
- package/dist/components/TimeValue.js +1 -0
- package/dist/components/Timeline/TimelineDragHandler.js +1 -0
- package/dist/components/Timeline/TimelineStack/index.d.ts +2 -2
- package/dist/components/Timeline/TimelineStack/index.js +1 -0
- package/dist/esm/index.mjs +10 -3
- package/dist/esm/internals.mjs +146 -131
- package/package.json +7 -7
- package/tsconfig.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -9,14 +9,14 @@ export type Menu = {
|
|
|
9
9
|
leaveLeftPadding: boolean;
|
|
10
10
|
};
|
|
11
11
|
export declare const MenuItem: React.FC<{
|
|
12
|
-
label: React.ReactNode;
|
|
13
|
-
id: MenuId;
|
|
14
|
-
selected: boolean;
|
|
15
|
-
onItemSelected: (s: SetStateAction<string | null>) => void;
|
|
16
|
-
onItemHovered: (id: MenuId) => void;
|
|
17
|
-
onItemQuit: () => void;
|
|
18
|
-
onPreviousMenu: () => void;
|
|
19
|
-
onNextMenu: () => void;
|
|
20
|
-
menu: Menu;
|
|
21
|
-
leaveLeftPadding: boolean;
|
|
12
|
+
readonly label: React.ReactNode;
|
|
13
|
+
readonly id: MenuId;
|
|
14
|
+
readonly selected: boolean;
|
|
15
|
+
readonly onItemSelected: (s: SetStateAction<string | null>) => void;
|
|
16
|
+
readonly onItemHovered: (id: MenuId) => void;
|
|
17
|
+
readonly onItemQuit: () => void;
|
|
18
|
+
readonly onPreviousMenu: () => void;
|
|
19
|
+
readonly onNextMenu: () => void;
|
|
20
|
+
readonly menu: Menu;
|
|
21
|
+
readonly leaveLeftPadding: boolean;
|
|
22
22
|
}>;
|
|
@@ -23,6 +23,7 @@ const container = {
|
|
|
23
23
|
paddingTop: 8,
|
|
24
24
|
paddingBottom: 8,
|
|
25
25
|
userSelect: 'none',
|
|
26
|
+
WebkitUserSelect: 'none',
|
|
26
27
|
border: 'none',
|
|
27
28
|
};
|
|
28
29
|
const MenuItem = ({ label: itemName, selected, id, onItemSelected, onItemHovered, onItemQuit, onPreviousMenu, onNextMenu, menu, }) => {
|
|
@@ -21,9 +21,9 @@ export type SelectionItem = {
|
|
|
21
21
|
};
|
|
22
22
|
export type ComboboxValue = DividerItem | SelectionItem;
|
|
23
23
|
export declare const Combobox: React.FC<{
|
|
24
|
-
values: ComboboxValue[];
|
|
25
|
-
selectedId: string | number;
|
|
26
|
-
style?: React.CSSProperties;
|
|
27
|
-
title: string;
|
|
24
|
+
readonly values: ComboboxValue[];
|
|
25
|
+
readonly selectedId: string | number;
|
|
26
|
+
readonly style?: React.CSSProperties;
|
|
27
|
+
readonly title: string;
|
|
28
28
|
}>;
|
|
29
29
|
export {};
|
|
@@ -150,6 +150,7 @@ const Combobox = ({ values, selectedId, style: customStyle, title }) => {
|
|
|
150
150
|
...container,
|
|
151
151
|
...(customStyle !== null && customStyle !== void 0 ? customStyle : {}),
|
|
152
152
|
userSelect: 'none',
|
|
153
|
+
WebkitUserSelect: 'none',
|
|
153
154
|
color: 'white',
|
|
154
155
|
display: 'inline-flex',
|
|
155
156
|
flexDirection: 'row',
|
|
@@ -2,9 +2,9 @@ import type { InputHTMLAttributes } from 'react';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { RemInputStatus } from './RemInput';
|
|
4
4
|
export declare const InputDragger: React.ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & {
|
|
5
|
-
onValueChange: (newVal: number) => void;
|
|
6
|
-
onTextChange: (newVal: string) => void;
|
|
7
|
-
status: RemInputStatus;
|
|
8
|
-
formatter?: ((str: number | string) => string) | undefined;
|
|
9
|
-
rightAlign: boolean;
|
|
5
|
+
readonly onValueChange: (newVal: number) => void;
|
|
6
|
+
readonly onTextChange: (newVal: string) => void;
|
|
7
|
+
readonly status: RemInputStatus;
|
|
8
|
+
readonly formatter?: ((str: number | string) => string) | undefined;
|
|
9
|
+
readonly rightAlign: boolean;
|
|
10
10
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -164,6 +164,7 @@ const TimelineStack = ({ isCompact, sequence }) => {
|
|
|
164
164
|
lineHeight: 1,
|
|
165
165
|
color: opening && isCompact ? colors_1.VERY_LIGHT_TEXT : colors_1.LIGHT_COLOR,
|
|
166
166
|
userSelect: 'none',
|
|
167
|
+
WebkitUserSelect: 'none',
|
|
167
168
|
borderBottom: hoverEffect ? '1px solid #fff' : 'none',
|
|
168
169
|
cursor: hoverEffect ? 'pointer' : undefined,
|
|
169
170
|
};
|
package/dist/esm/index.mjs
CHANGED
|
@@ -4339,6 +4339,12 @@ var calcNewProps = (compositionId, defaultProps) => {
|
|
|
4339
4339
|
};
|
|
4340
4340
|
};
|
|
4341
4341
|
|
|
4342
|
+
// src/api/reevaluate-composition.ts
|
|
4343
|
+
import {Internals as Internals2} from "remotion";
|
|
4344
|
+
var reevaluateComposition = () => {
|
|
4345
|
+
Internals2.resolveCompositionsRef.current?.reloadCurrentlySelectedComposition();
|
|
4346
|
+
};
|
|
4347
|
+
|
|
4342
4348
|
// src/api/restart-studio.ts
|
|
4343
4349
|
var restartStudio = () => {
|
|
4344
4350
|
return callApi("/api/restart-studio", {});
|
|
@@ -4493,13 +4499,13 @@ var saveDefaultProps = async ({
|
|
|
4493
4499
|
};
|
|
4494
4500
|
|
|
4495
4501
|
// src/api/update-default-props.ts
|
|
4496
|
-
import {Internals as
|
|
4502
|
+
import {Internals as Internals3} from "remotion";
|
|
4497
4503
|
var updateDefaultProps = ({
|
|
4498
4504
|
compositionId,
|
|
4499
4505
|
defaultProps
|
|
4500
4506
|
}) => {
|
|
4501
4507
|
const { generatedDefaultProps, composition } = calcNewProps(compositionId, defaultProps);
|
|
4502
|
-
const propsStore =
|
|
4508
|
+
const propsStore = Internals3.editorPropsProviderRef.current;
|
|
4503
4509
|
if (!propsStore) {
|
|
4504
4510
|
throw new Error("No props store found. Are you in the Remotion Studio and are the Remotion versions aligned?");
|
|
4505
4511
|
}
|
|
@@ -4509,7 +4515,7 @@ var updateDefaultProps = ({
|
|
|
4509
4515
|
[composition.id]: generatedDefaultProps
|
|
4510
4516
|
};
|
|
4511
4517
|
});
|
|
4512
|
-
window.dispatchEvent(new CustomEvent(
|
|
4518
|
+
window.dispatchEvent(new CustomEvent(Internals3.PROPS_UPDATED_EXTERNALLY));
|
|
4513
4519
|
};
|
|
4514
4520
|
|
|
4515
4521
|
// src/api/watch-public-folder.ts
|
|
@@ -4589,6 +4595,7 @@ export {
|
|
|
4589
4595
|
updateDefaultProps,
|
|
4590
4596
|
saveDefaultProps,
|
|
4591
4597
|
restartStudio,
|
|
4598
|
+
reevaluateComposition,
|
|
4592
4599
|
getStaticFiles,
|
|
4593
4600
|
focusDefaultPropsPath,
|
|
4594
4601
|
deleteStaticFile
|