@remotion/studio 4.0.170 → 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.
- package/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-test.log +85 -0
- package/dist/esm/index.mjs +3 -10
- package/dist/esm/internals.mjs +127 -132
- package/dist/helpers/colors.d.ts +1 -1
- package/package.json +7 -7
- package/tsconfig.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
|
|
2
|
+
> @remotion/studio@4.0.163 test /Users/jonathanburger/remotion/packages/studio
|
|
3
|
+
> bun test src
|
|
4
|
+
|
|
5
|
+
[0m[1mbun test [0m[2mv1.1.9-canary.1 (4df387d5)[0m
|
|
6
|
+
[0m
|
|
7
|
+
src/test/stringify-default-props.test.ts:
|
|
8
|
+
[0m[32m✓[0m[0m[1m Should stringify default props correctly[0m [0m[2m[2.87ms[0m[2m][0m
|
|
9
|
+
[0m[32m✓[0m[0m[1m Should stringify default props correctly[0m [0m[2m[4.96ms[0m[2m][0m
|
|
10
|
+
[0m
|
|
11
|
+
src/test/sequenced-timeline.test.ts:
|
|
12
|
+
[0m[32m✓[0m[0m[1m Should calculate sequences correctly[0m [0m[2m[9.98ms[0m[2m][0m
|
|
13
|
+
[0m
|
|
14
|
+
src/test/create-zod-values.test.ts:
|
|
15
|
+
[0m[32m✓[0m[0m[1m Should be able to create a string[0m [0m[2m[5.47ms[0m[2m][0m
|
|
16
|
+
[0m[32m✓[0m[0m[1m Should be able to create a number[0m [0m[2m[0.33ms[0m[2m][0m
|
|
17
|
+
[0m[32m✓[0m[0m[1m Should be able to create an object[0m [0m[2m[0.25ms[0m[2m][0m
|
|
18
|
+
[0m[32m✓[0m[0m[1m Should be able to create an array[0m [0m[2m[0.22ms[0m[2m][0m
|
|
19
|
+
[0m[32m✓[0m[0m[1m Should be able to create a union[0m [0m[2m[0.32ms[0m[2m][0m
|
|
20
|
+
[0m[32m✓[0m[0m[1m Zod literal[0m [0m[2m[0.20ms[0m[2m][0m
|
|
21
|
+
[0m[32m✓[0m[0m[1m Should be able to create a discriminated union[0m [0m[2m[1.18ms[0m[2m][0m
|
|
22
|
+
[0m[32m✓[0m[0m[1m Zod instanceof[0m [0m[2m[0.47ms[0m[2m][0m
|
|
23
|
+
[0m[32m✓[0m[0m[1m Zod intersection[0m [0m[2m[0.81ms[0m[2m][0m
|
|
24
|
+
[0m[32m✓[0m[0m[1m Zod tuples[0m [0m[2m[0.40ms[0m[2m][0m
|
|
25
|
+
[0m[32m✓[0m[0m[1m Zod record[0m [0m[2m[0.11ms[0m[2m][0m
|
|
26
|
+
[0m[32m✓[0m[0m[1m Zod map[0m [0m[2m[0.09ms[0m[2m][0m
|
|
27
|
+
[0m[32m✓[0m[0m[1m Zod lazy[0m [0m[2m[0.08ms[0m[2m][0m
|
|
28
|
+
[0m[32m✓[0m[0m[1m Zod set[0m [0m[2m[0.10ms[0m[2m][0m
|
|
29
|
+
[0m[32m✓[0m[0m[1m Zod function[0m [0m[2m[0.17ms[0m[2m][0m
|
|
30
|
+
[0m[32m✓[0m[0m[1m Zod undefined[0m [0m[2m[0.07ms[0m[2m][0m
|
|
31
|
+
[0m[32m✓[0m[0m[1m Zod null[0m [0m[2m[0.07ms[0m[2m][0m
|
|
32
|
+
[0m[32m✓[0m[0m[1m Zod enum[0m [0m[2m[0.20ms[0m[2m][0m
|
|
33
|
+
[0m[32m✓[0m[0m[1m Zod nativeEnum[0m [0m[2m[0.32ms[0m[2m][0m
|
|
34
|
+
[0m[32m✓[0m[0m[1m Zod optional[0m [0m[2m[0.34ms[0m[2m][0m
|
|
35
|
+
[0m[32m✓[0m[0m[1m Zod nullable[0m [0m[2m[0.38ms[0m[2m][0m
|
|
36
|
+
[0m[32m✓[0m[0m[1m Zod undefined[0m [0m[2m[0.24ms[0m[2m][0m
|
|
37
|
+
[0m[32m✓[0m[0m[1m Zod catch[0m [0m[2m[0.28ms[0m[2m][0m
|
|
38
|
+
[0m[32m✓[0m[0m[1m Zod promise[0m [0m[2m[0.34ms[0m[2m][0m
|
|
39
|
+
[0m[32m✓[0m[0m[1m Zod transform[0m [0m[2m[0.34ms[0m[2m][0m
|
|
40
|
+
[0m[32m✓[0m[0m[1m Zod branded[0m [0m[2m[0.35ms[0m[2m][0m
|
|
41
|
+
[0m[32m✓[0m[0m[1m Zod lazy[0m [0m[2m[1.06ms[0m[2m][0m
|
|
42
|
+
[0m[32m✓[0m[0m[1m Zod coerce[0m [0m[2m[0.16ms[0m[2m][0m
|
|
43
|
+
[0m[32m✓[0m[0m[1m Zod strict[0m [0m[2m[0.14ms[0m[2m][0m
|
|
44
|
+
[0m[32m✓[0m[0m[1m Should create a color[0m [0m[2m[0.10ms[0m[2m][0m
|
|
45
|
+
[0m[32m✓[0m[0m[1m Should create a textarea[0m [0m[2m[0.05ms[0m[2m][0m
|
|
46
|
+
[0m
|
|
47
|
+
src/test/folder-tree.test.ts:
|
|
48
|
+
[0m[32m✓[0m[0m[1m Should create a good folder tree with 1 item inside and 1 item outside[0m [0m[2m[0.89ms[0m[2m][0m
|
|
49
|
+
[0m[32m✓[0m[0m[1m Should handle nested folders well[0m [0m[2m[0.39ms[0m[2m][0m
|
|
50
|
+
[0m[32m✓[0m[0m[1m Should throw if two folders with the same name[0m [0m[2m[0.24ms[0m[2m][0m
|
|
51
|
+
[0m
|
|
52
|
+
src/test/big-timeline.test.ts:
|
|
53
|
+
[0m[32m✓[0m[0m[1m Should calculate timeline as expected[0m [0m[2m[2.52ms[0m[2m][0m
|
|
54
|
+
[0m
|
|
55
|
+
src/test/smooth-zoom.test.ts:
|
|
56
|
+
[0m[32m✓[0m[0m[1m Smoothen zoom[0m [0m[2m[0.07ms[0m[2m][0m
|
|
57
|
+
[0m[32m✓[0m[0m[1m Unsmoothen zoom[0m [0m[2m[0.09ms[0m[2m][0m
|
|
58
|
+
[0m
|
|
59
|
+
src/test/validate-gui-output-filename.test.ts:
|
|
60
|
+
[0m[32m✓[0m[0m[1m Should catch dot after slash[0m [0m[2m[0.47ms[0m[2m][0m
|
|
61
|
+
[0m[32m✓[0m[0m[1m Should catch dot in front [0m [0m[2m[0.03ms[0m[2m][0m
|
|
62
|
+
[0m
|
|
63
|
+
src/test/timeline-sequence-layout.test.ts:
|
|
64
|
+
[0m[32m✓[0m[0m[1m Should test timeline sequence layout without max media duration[0m [0m[2m[0.22ms[0m[2m][0m
|
|
65
|
+
[0m[32m✓[0m[0m[1m Should test timeline sequence layout with max media duration[0m [0m[2m[0.05ms[0m[2m][0m
|
|
66
|
+
[0m
|
|
67
|
+
src/test/extract-zod-enums.test.ts:
|
|
68
|
+
[0m[32m✓[0m[0m[1m Extract Zod enums[0m [0m[2m[0.12ms[0m[2m][0m
|
|
69
|
+
[0m[32m✓[0m[0m[1m Extract Zod enums #2[0m [0m[2m[0.44ms[0m[2m][0m
|
|
70
|
+
[0m
|
|
71
|
+
src/test/color-math.test.ts:
|
|
72
|
+
[0m[32m✓[0m[0m[1m Color math[0m [0m[2m[0.88ms[0m[2m][0m
|
|
73
|
+
[0m
|
|
74
|
+
src/test/format-time.test.ts:
|
|
75
|
+
[0m[32m✓[0m[0m[1m Format time[0m [0m[2m[0.20ms[0m[2m][0m
|
|
76
|
+
[0m
|
|
77
|
+
src/test/timeline.test.ts:
|
|
78
|
+
[0m[32m✓[0m[0m[1m Should calculate timeline with no sequences[0m [0m[2m[0.06ms[0m[2m][0m
|
|
79
|
+
[0m[32m✓[0m[0m[1m Should calculate a basic timeline[0m [0m[2m[0.09ms[0m[2m][0m
|
|
80
|
+
[0m[32m✓[0m[0m[1m Should follow order of nesting[0m [0m[2m[0.12ms[0m[2m][0m
|
|
81
|
+
|
|
82
|
+
[0m[32m 51 pass[0m
|
|
83
|
+
[0m[2m 0 fail[0m
|
|
84
|
+
67 expect() calls
|
|
85
|
+
Ran 51 tests across 12 files. [0m[2m[[1m192.00ms[0m[2m][0m
|
package/dist/esm/index.mjs
CHANGED
|
@@ -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
|
|
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 =
|
|
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(
|
|
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
|