@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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @remotion/studio@4.0.166 build /Users/jonathanburger/remotion/packages/studio
2
+ > @remotion/studio@4.0.172 build /Users/jonathanburger/remotion/packages/studio
3
3
  > bun --env-file=../.env.bundle bundle.ts
4
4
 
@@ -67,6 +67,7 @@ const itemStyle = {
67
67
  backgroundColor: colors_1.BACKGROUND,
68
68
  height: ASSET_ITEM_HEIGHT,
69
69
  userSelect: 'none',
70
+ WebkitUserSelect: 'none',
70
71
  };
71
72
  const labelStyle = {
72
73
  textAlign: 'left',
@@ -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, }) => {
@@ -11,6 +11,7 @@ const menuContainer = {
11
11
  position: 'fixed',
12
12
  color: 'white',
13
13
  userSelect: 'none',
14
+ WebkitUserSelect: 'none',
14
15
  };
15
16
  exports.SHADOW_TOWARDS_BOTTOM = '0 2px 8px rgba(0, 0, 0, 0.5)';
16
17
  exports.SHADOW_TOWARDS_TOP = '0 -2px 8px rgba(0, 0, 0, 0.5)';
@@ -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>>;
@@ -51,6 +51,7 @@ const InputDraggerForwardRefFn = ({ onValueChange, min: _min, max: _max, step: _
51
51
  color: colors_1.BLUE,
52
52
  cursor: 'ew-resize',
53
53
  userSelect: 'none',
54
+ WebkitUserSelect: 'none',
54
55
  fontSize: 13,
55
56
  fontVariantNumeric: 'tabular-nums',
56
57
  }), []);
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  export declare const InfoBubble: React.FC<{
3
- title: string;
4
- children: React.ReactNode;
3
+ readonly title: string;
4
+ readonly children: React.ReactNode;
5
5
  }>;
@@ -102,6 +102,7 @@ const InfoBubble = ({ title, children }) => {
102
102
  return {
103
103
  ...container,
104
104
  userSelect: 'none',
105
+ WebkitUserSelect: 'none',
105
106
  color: 'white',
106
107
  display: 'inline-flex',
107
108
  flexDirection: 'row',
@@ -1,6 +1,6 @@
1
1
  import type { RenderJob } from '@remotion/studio-shared';
2
2
  import React from 'react';
3
3
  export declare const RenderQueueItem: React.FC<{
4
- job: RenderJob;
5
- selected: boolean;
4
+ readonly job: RenderJob;
5
+ readonly selected: boolean;
6
6
  }>;
@@ -58,6 +58,7 @@ const RenderQueueItem = ({ job, selected }) => {
58
58
  selected,
59
59
  }),
60
60
  userSelect: 'none',
61
+ WebkitUserSelect: 'none',
61
62
  };
62
63
  }, [hovered, isHoverable, selected]);
63
64
  const scrollCurrentIntoView = (0, react_1.useCallback)(() => {
@@ -43,6 +43,7 @@ const text = {
43
43
  lineHeight: 1,
44
44
  width: '100%',
45
45
  userSelect: 'none',
46
+ WebkitUserSelect: 'none',
46
47
  };
47
48
  const time = {
48
49
  display: 'inline-block',
@@ -25,6 +25,7 @@ const inner = {
25
25
  };
26
26
  const container = {
27
27
  userSelect: 'none',
28
+ WebkitUserSelect: 'none',
28
29
  position: 'absolute',
29
30
  height: '100%',
30
31
  top: 0,
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { TSequence } from 'remotion';
3
3
  export declare const TimelineStack: React.FC<{
4
- isCompact: boolean;
5
- sequence: TSequence;
4
+ readonly isCompact: boolean;
5
+ readonly sequence: TSequence;
6
6
  }>;
@@ -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
  };
@@ -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 Internals2} from "remotion";
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 = Internals2.editorPropsProviderRef.current;
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(Internals2.PROPS_UPDATED_EXTERNALLY));
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