@remotion/studio 4.0.169 → 4.0.171

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.167 build /Users/jonathanburger/remotion/packages/studio
2
+ > @remotion/studio@4.0.166 build /Users/jonathanburger/remotion/packages/studio
3
3
  > bun --env-file=../.env.bundle bundle.ts
4
4
 
@@ -0,0 +1,85 @@
1
+
2
+ > @remotion/studio@4.0.163 test /Users/jonathanburger/remotion/packages/studio
3
+ > bun test src
4
+
5
+ bun test v1.1.9-canary.1 (4df387d5)
6
+ 
7
+ src/test/stringify-default-props.test.ts:
8
+ ✓ Should stringify default props correctly [2.87ms]
9
+ ✓ Should stringify default props correctly [4.96ms]
10
+ 
11
+ src/test/sequenced-timeline.test.ts:
12
+ ✓ Should calculate sequences correctly [9.98ms]
13
+ 
14
+ src/test/create-zod-values.test.ts:
15
+ ✓ Should be able to create a string [5.47ms]
16
+ ✓ Should be able to create a number [0.33ms]
17
+ ✓ Should be able to create an object [0.25ms]
18
+ ✓ Should be able to create an array [0.22ms]
19
+ ✓ Should be able to create a union [0.32ms]
20
+ ✓ Zod literal [0.20ms]
21
+ ✓ Should be able to create a discriminated union [1.18ms]
22
+ ✓ Zod instanceof [0.47ms]
23
+ ✓ Zod intersection [0.81ms]
24
+ ✓ Zod tuples [0.40ms]
25
+ ✓ Zod record [0.11ms]
26
+ ✓ Zod map [0.09ms]
27
+ ✓ Zod lazy [0.08ms]
28
+ ✓ Zod set [0.10ms]
29
+ ✓ Zod function [0.17ms]
30
+ ✓ Zod undefined [0.07ms]
31
+ ✓ Zod null [0.07ms]
32
+ ✓ Zod enum [0.20ms]
33
+ ✓ Zod nativeEnum [0.32ms]
34
+ ✓ Zod optional [0.34ms]
35
+ ✓ Zod nullable [0.38ms]
36
+ ✓ Zod undefined [0.24ms]
37
+ ✓ Zod catch [0.28ms]
38
+ ✓ Zod promise [0.34ms]
39
+ ✓ Zod transform [0.34ms]
40
+ ✓ Zod branded [0.35ms]
41
+ ✓ Zod lazy [1.06ms]
42
+ ✓ Zod coerce [0.16ms]
43
+ ✓ Zod strict [0.14ms]
44
+ ✓ Should create a color [0.10ms]
45
+ ✓ Should create a textarea [0.05ms]
46
+ 
47
+ src/test/folder-tree.test.ts:
48
+ ✓ Should create a good folder tree with 1 item inside and 1 item outside [0.89ms]
49
+ ✓ Should handle nested folders well [0.39ms]
50
+ ✓ Should throw if two folders with the same name [0.24ms]
51
+ 
52
+ src/test/big-timeline.test.ts:
53
+ ✓ Should calculate timeline as expected [2.52ms]
54
+ 
55
+ src/test/smooth-zoom.test.ts:
56
+ ✓ Smoothen zoom [0.07ms]
57
+ ✓ Unsmoothen zoom [0.09ms]
58
+ 
59
+ src/test/validate-gui-output-filename.test.ts:
60
+ ✓ Should catch dot after slash [0.47ms]
61
+ ✓ Should catch dot in front  [0.03ms]
62
+ 
63
+ src/test/timeline-sequence-layout.test.ts:
64
+ ✓ Should test timeline sequence layout without max media duration [0.22ms]
65
+ ✓ Should test timeline sequence layout with max media duration [0.05ms]
66
+ 
67
+ src/test/extract-zod-enums.test.ts:
68
+ ✓ Extract Zod enums [0.12ms]
69
+ ✓ Extract Zod enums #2 [0.44ms]
70
+ 
71
+ src/test/color-math.test.ts:
72
+ ✓ Color math [0.88ms]
73
+ 
74
+ src/test/format-time.test.ts:
75
+ ✓ Format time [0.20ms]
76
+ 
77
+ src/test/timeline.test.ts:
78
+ ✓ Should calculate timeline with no sequences [0.06ms]
79
+ ✓ Should calculate a basic timeline [0.09ms]
80
+ ✓ Should follow order of nesting [0.12ms]
81
+
82
+  51 pass
83
+  0 fail
84
+ 67 expect() calls
85
+ Ran 51 tests across 12 files. [192.00ms]
@@ -36,9 +36,11 @@ const container = {
36
36
  flexDirection: 'row',
37
37
  };
38
38
  const GlobalPropsEditorUpdateButton = ({ compositionId, currentDefaultProps }) => {
39
+ const { fastRefreshes } = (0, react_1.useContext)(remotion_1.Internals.NonceContext);
39
40
  const [disabled, setDisabled] = react_1.default.useState(false);
40
41
  const onClicked = (0, react_1.useCallback)(() => {
41
42
  setDisabled(true);
43
+ window.remotion_ignoreFastRefreshUpdate = fastRefreshes + 1;
42
44
  (0, save_default_props_1.saveDefaultProps)({
43
45
  compositionId,
44
46
  defaultProps: () => currentDefaultProps,
@@ -49,7 +51,7 @@ const GlobalPropsEditorUpdateButton = ({ compositionId, currentDefaultProps }) =
49
51
  .finally(() => {
50
52
  setDisabled(true);
51
53
  });
52
- }, [compositionId, currentDefaultProps]);
54
+ }, [compositionId, currentDefaultProps, fastRefreshes]);
53
55
  const onReset = (0, react_1.useCallback)(() => {
54
56
  window.remotion_ignoreFastRefreshUpdate = null;
55
57
  window.dispatchEvent(new CustomEvent(remotion_1.Internals.PROPS_UPDATED_EXTERNALLY));
@@ -4339,12 +4339,6 @@ 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
-
4348
4342
  // src/api/restart-studio.ts
4349
4343
  var restartStudio = () => {
4350
4344
  return callApi("/api/restart-studio", {});
@@ -4499,13 +4493,13 @@ var saveDefaultProps = async ({
4499
4493
  };
4500
4494
 
4501
4495
  // src/api/update-default-props.ts
4502
- import {Internals as Internals3} from "remotion";
4496
+ import {Internals as Internals2} from "remotion";
4503
4497
  var updateDefaultProps = ({
4504
4498
  compositionId,
4505
4499
  defaultProps
4506
4500
  }) => {
4507
4501
  const { generatedDefaultProps, composition } = calcNewProps(compositionId, defaultProps);
4508
- const propsStore = Internals3.editorPropsProviderRef.current;
4502
+ const propsStore = Internals2.editorPropsProviderRef.current;
4509
4503
  if (!propsStore) {
4510
4504
  throw new Error("No props store found. Are you in the Remotion Studio and are the Remotion versions aligned?");
4511
4505
  }
@@ -4515,7 +4509,7 @@ var updateDefaultProps = ({
4515
4509
  [composition.id]: generatedDefaultProps
4516
4510
  };
4517
4511
  });
4518
- window.dispatchEvent(new CustomEvent(Internals3.PROPS_UPDATED_EXTERNALLY));
4512
+ window.dispatchEvent(new CustomEvent(Internals2.PROPS_UPDATED_EXTERNALLY));
4519
4513
  };
4520
4514
 
4521
4515
  // src/api/watch-public-folder.ts
@@ -4595,7 +4589,6 @@ export {
4595
4589
  updateDefaultProps,
4596
4590
  saveDefaultProps,
4597
4591
  restartStudio,
4598
- reevaluateComposition,
4599
4592
  getStaticFiles,
4600
4593
  focusDefaultPropsPath,
4601
4594
  deleteStaticFile
@@ -3068,10 +3068,7 @@ var CompositionSelector = () => {
3068
3068
  });
3069
3069
  const splitted = key.split("/");
3070
3070
  for (let i = 0;i < splitted.length - 1; i++) {
3071
- const allExceptLast = i === 0 ? openFolderKey({
3072
- folderName: splitted.filter((s) => s !== "no-parent")[0],
3073
- parentName: null
3074
- }) : splitted.slice(0, i + 1).join("/");
3071
+ const allExceptLast = i === 0 ? openFolderKey({ folderName: splitted[0], parentName: null }) : splitted.slice(0, i + 1).join("/");
3075
3072
  foldersExpandedState[allExceptLast] = true;
3076
3073
  }
3077
3074
  persistExpandedFolders("compositions", foldersExpandedState);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/studio",
3
- "version": "4.0.169",
3
+ "version": "4.0.171",
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.169",
22
- "@remotion/player": "4.0.169",
23
- "@remotion/renderer": "4.0.169",
24
- "@remotion/media-utils": "4.0.169",
25
- "@remotion/studio-shared": "4.0.169"
21
+ "remotion": "4.0.171",
22
+ "@remotion/player": "4.0.171",
23
+ "@remotion/media-utils": "4.0.171",
24
+ "@remotion/studio-shared": "4.0.171",
25
+ "@remotion/renderer": "4.0.171"
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.169"
42
+ "@remotion/zod-types": "4.0.171"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"