@remotion/studio 4.0.323 → 4.0.325

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,6 +1,6 @@
1
1
 
2
2
  
3
- > @remotion/studio@4.0.323 make /Users/jonathanburger/remotion/packages/studio
3
+ > @remotion/studio@4.0.325 make /Users/jonathanburger/remotion/packages/studio
4
4
  > tsc -d && bun --env-file=../.env.bundle bundle.ts
5
5
 
6
- [691.30ms] Generated.
6
+ [68.43ms] Generated.
@@ -0,0 +1,83 @@
1
+
2
+ $ bun test src
3
+ bun test v1.2.19 (aad3abea)
4
+ 
5
+ src/test/stringify-default-props.test.ts:
6
+ ✓ Should stringify default props correctly [6.65ms]
7
+ ✓ Should stringify default props correctly [0.64ms]
8
+ 
9
+ src/test/sequenced-timeline.test.ts:
10
+ ✓ Should calculate sequences correctly [5.13ms]
11
+ 
12
+ src/test/create-zod-values.test.ts:
13
+ ✓ Should be able to create a string [0.62ms]
14
+ ✓ Should be able to create a number
15
+ ✓ Should be able to create an object
16
+ ✓ Should be able to create an array [0.23ms]
17
+ ✓ Should be able to create a union [0.11ms]
18
+ ✓ Zod literal [0.10ms]
19
+ ✓ Should be able to create a discriminated union [0.36ms]
20
+ ✓ Zod instanceof [0.07ms]
21
+ ✓ Zod intersection [0.12ms]
22
+ ✓ Zod tuples [0.12ms]
23
+ ✓ Zod record [0.07ms]
24
+ ✓ Zod map [0.11ms]
25
+ ✓ Zod lazy [0.08ms]
26
+ ✓ Zod set [0.04ms]
27
+ ✓ Zod function [0.10ms]
28
+ ✓ Zod undefined [0.05ms]
29
+ ✓ Zod null [0.29ms]
30
+ ✓ Zod enum [1.19ms]
31
+ ✓ Zod nativeEnum [0.21ms]
32
+ ✓ Zod optional [0.16ms]
33
+ ✓ Zod nullable [0.17ms]
34
+ ✓ Zod undefined [0.17ms]
35
+ ✓ Zod catch [0.16ms]
36
+ ✓ Zod promise [0.05ms]
37
+ ✓ Zod transform [0.14ms]
38
+ ✓ Zod branded [0.15ms]
39
+ ✓ Zod lazy [0.32ms]
40
+ ✓ Zod coerce [0.10ms]
41
+ ✓ Zod strict [0.09ms]
42
+ ✓ Should create a color [0.03ms]
43
+ ✓ Should create a textarea [0.10ms]
44
+ 
45
+ src/test/folder-tree.test.ts:
46
+ ✓ Should create a good folder tree with 1 item inside and 1 item outside [0.30ms]
47
+ ✓ Should handle nested folders well [7.47ms]
48
+ ✓ Should throw if two folders with the same name [0.20ms]
49
+ 
50
+ src/test/big-timeline.test.ts:
51
+ ✓ Should calculate timeline as expected [9.28ms]
52
+ 
53
+ src/test/smooth-zoom.test.ts:
54
+ ✓ Smoothen zoom
55
+ ✓ Unsmoothen zoom [0.05ms]
56
+ 
57
+ src/test/validate-gui-output-filename.test.ts:
58
+ ✓ Should catch dot after slash [0.50ms]
59
+ ✓ Should catch dot in front  [0.04ms]
60
+ 
61
+ src/test/timeline-sequence-layout.test.ts:
62
+ ✓ Should test timeline sequence layout without max media duration [0.22ms]
63
+ ✓ Should test timeline sequence layout with max media duration [0.04ms]
64
+ 
65
+ src/test/extract-zod-enums.test.ts:
66
+ ✓ Extract Zod enums [0.38ms]
67
+ ✓ Extract Zod enums #2 [1.07ms]
68
+ 
69
+ src/test/color-math.test.ts:
70
+ ✓ Color math [0.40ms]
71
+ 
72
+ src/test/format-time.test.ts:
73
+ ✓ Format time [0.08ms]
74
+ 
75
+ src/test/timeline.test.ts:
76
+ ✓ Should calculate timeline with no sequences [0.03ms]
77
+ ✓ Should calculate a basic timeline [0.13ms]
78
+ ✓ Should follow order of nesting [0.18ms]
79
+
80
+  51 pass
81
+  0 fail
82
+ 67 expect() calls
83
+ Ran 51 tests across 12 files. [143.00ms]
@@ -16,10 +16,13 @@ const Spinner_1 = require("../../Spinner");
16
16
  const layout_1 = require("../../layout");
17
17
  const get_stack_1 = require("./get-stack");
18
18
  const source_attribution_1 = require("./source-attribution");
19
+ const publicPath = window.remotion_publicPath === '/' ? '' : window.remotion_publicPath;
20
+ const withoutSlashInTheEnd = publicPath.endsWith('/')
21
+ ? publicPath.slice(0, -1)
22
+ : publicPath;
19
23
  // @ts-expect-error
20
24
  source_map_1.SourceMapConsumer.initialize({
21
- 'lib/mappings.wasm': (window.remotion_publicPath === '/' ? '' : window.remotion_publicPath) +
22
- studio_shared_1.SOURCE_MAP_ENDPOINT,
25
+ 'lib/mappings.wasm': withoutSlashInTheEnd + studio_shared_1.SOURCE_MAP_ENDPOINT,
23
26
  });
24
27
  const TimelineStack = ({ isCompact, sequence }) => {
25
28
  const [originalLocation, setOriginalLocation] = (0, react_1.useState)(null);
@@ -19503,8 +19503,10 @@ import {
19503
19503
  } from "react";
19504
19504
  import { SourceMapConsumer as SourceMapConsumer3 } from "source-map";
19505
19505
  import { jsx as jsx186, jsxs as jsxs89, Fragment as Fragment27 } from "react/jsx-runtime";
19506
+ var publicPath = window.remotion_publicPath === "/" ? "" : window.remotion_publicPath;
19507
+ var withoutSlashInTheEnd = publicPath.endsWith("/") ? publicPath.slice(0, -1) : publicPath;
19506
19508
  SourceMapConsumer3.initialize({
19507
- "lib/mappings.wasm": (window.remotion_publicPath === "/" ? "" : window.remotion_publicPath) + SOURCE_MAP_ENDPOINT
19509
+ "lib/mappings.wasm": withoutSlashInTheEnd + SOURCE_MAP_ENDPOINT
19508
19510
  });
19509
19511
  var TimelineStack = ({ isCompact, sequence }) => {
19510
19512
  const [originalLocation, setOriginalLocation] = useState63(null);