remotion 2.6.12 → 2.6.13
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 +5 -5
- package/.turbo/turbo-lint.log +5 -0
- package/coverage/coverage-summary.json +13 -19
- package/dist/IFrame.d.ts.map +1 -1
- package/dist/IFrame.js +1 -1
- package/dist/IFrame.js.map +1 -1
- package/dist/Img.d.ts.map +1 -1
- package/dist/Img.js +1 -1
- package/dist/Img.js.map +1 -1
- package/dist/RemotionRoot.js +1 -1
- package/dist/RemotionRoot.js.map +1 -1
- package/dist/Still.d.ts +0 -1
- package/dist/Still.d.ts.map +1 -1
- package/dist/audio/Audio.d.ts +1 -1
- package/dist/audio/AudioForRendering.d.ts +1 -1
- package/dist/audio/shared-audio-tags.js +1 -1
- package/dist/audio/shared-audio-tags.js.map +1 -1
- package/dist/component-type.d.ts +1 -0
- package/dist/component-type.d.ts.map +1 -0
- package/dist/component-type.js +2 -0
- package/dist/component-type.js.map +1 -0
- package/dist/internals.d.ts +3 -3
- package/dist/ready-manager.d.ts +12 -1
- package/dist/ready-manager.d.ts.map +1 -1
- package/dist/ready-manager.js +32 -2
- package/dist/ready-manager.js.map +1 -1
- package/dist/serie/flatten-children.d.ts +3 -0
- package/dist/serie/flatten-children.d.ts.map +1 -0
- package/dist/serie/flatten-children.js +19 -0
- package/dist/serie/flatten-children.js.map +1 -0
- package/dist/serie/index.d.ts +12 -0
- package/dist/serie/index.d.ts.map +1 -0
- package/dist/serie/index.js +55 -0
- package/dist/serie/index.js.map +1 -0
- package/dist/setup-environment.d.ts +6 -0
- package/dist/setup-environment.d.ts.map +1 -0
- package/dist/setup-environment.js +47 -0
- package/dist/setup-environment.js.map +1 -0
- package/dist/stagger/index.d.ts +10 -0
- package/dist/stagger/index.d.ts.map +1 -0
- package/dist/stagger/index.js +54 -0
- package/dist/stagger/index.js.map +1 -0
- package/dist/use-current-src.d.ts +3 -0
- package/dist/use-current-src.d.ts.map +1 -0
- package/dist/use-current-src.js +23 -0
- package/dist/use-current-src.js.map +1 -0
- package/dist/use-current-time.d.ts +2 -0
- package/dist/use-current-time.d.ts.map +1 -0
- package/dist/use-current-time.js +12 -0
- package/dist/use-current-time.js.map +1 -0
- package/dist/use-time.d.ts +2 -0
- package/dist/use-time.d.ts.map +1 -0
- package/dist/use-time.js +15 -0
- package/dist/use-time.js.map +1 -0
- package/dist/video/Video.d.ts +1 -1
- package/dist/video/VideoForRendering.d.ts +1 -1
- package/dist/video/VideoForRendering.js +1 -1
- package/dist/video/VideoForRendering.js.map +1 -1
- package/package.json +2 -2
- package/.turbo/turbo-test.log +0 -63
- package/dist/audio/audio-buffer-to-wav.d.ts +0 -15
- package/dist/audio/audio-buffer-to-wav.d.ts.map +0 -1
- package/dist/audio/audio-buffer-to-wav.js +0 -91
- package/dist/audio/audio-buffer-to-wav.js.map +0 -1
- package/dist/audio/audio-url-helpers.d.ts +0 -2
- package/dist/audio/audio-url-helpers.d.ts.map +0 -1
- package/dist/audio/audio-url-helpers.js +0 -17
- package/dist/audio/audio-url-helpers.js.map +0 -1
- package/dist/validation/validate-folder-name.d.ts +0 -4
- package/dist/validation/validate-folder-name.d.ts.map +0 -1
- package/dist/validation/validate-folder-name.js +0 -14
- package/dist/validation/validate-folder-name.js.map +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
[
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
1
|
+
[33mremotion:build: [0mcache hit, replaying output [2md9b7609a575f8964[0m
|
|
2
|
+
[33mremotion:build: [0m
|
|
3
|
+
[33mremotion:build: [0m> remotion@2.6.12 build /Users/jonathanburger/remotion/packages/core
|
|
4
|
+
[33mremotion:build: [0m> tsc -d
|
|
5
|
+
[33mremotion:build: [0m
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{"total": {"lines":{"total":
|
|
1
|
+
{"total": {"lines":{"total":1894,"covered":1419,"skipped":0,"pct":74.92},"statements":{"total":2076,"covered":1581,"skipped":0,"pct":76.15},"functions":{"total":377,"covered":224,"skipped":0,"pct":59.41},"branches":{"total":1073,"covered":754,"skipped":0,"pct":70.27}}
|
|
2
2
|
,"/Users/jonathanburger/remotion/packages/core/src/AbsoluteFill.tsx": {"lines":{"total":6,"covered":2,"skipped":0,"pct":33.33},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":7,"covered":3,"skipped":0,"pct":42.85},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
3
3
|
,"/Users/jonathanburger/remotion/packages/core/src/Composition.tsx": {"lines":{"total":28,"covered":27,"skipped":0,"pct":96.42},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":29,"covered":28,"skipped":0,"pct":96.55},"branches":{"total":4,"covered":3,"skipped":0,"pct":75}}
|
|
4
4
|
,"/Users/jonathanburger/remotion/packages/core/src/CompositionManager.tsx": {"lines":{"total":41,"covered":30,"skipped":0,"pct":73.17},"functions":{"total":28,"covered":13,"skipped":0,"pct":46.42},"statements":{"total":48,"covered":32,"skipped":0,"pct":66.66},"branches":{"total":4,"covered":3,"skipped":0,"pct":75}}
|
|
@@ -12,29 +12,28 @@
|
|
|
12
12
|
,"/Users/jonathanburger/remotion/packages/core/src/default-css.ts": {"lines":{"total":15,"covered":3,"skipped":0,"pct":20},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":17,"covered":5,"skipped":0,"pct":29.41},"branches":{"total":8,"covered":0,"skipped":0,"pct":0}}
|
|
13
13
|
,"/Users/jonathanburger/remotion/packages/core/src/easing.ts": {"lines":{"total":33,"covered":26,"skipped":0,"pct":78.78},"functions":{"total":22,"covered":14,"skipped":0,"pct":63.63},"statements":{"total":36,"covered":27,"skipped":0,"pct":75},"branches":{"total":14,"covered":12,"skipped":0,"pct":85.71}}
|
|
14
14
|
,"/Users/jonathanburger/remotion/packages/core/src/feature-flags.ts": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
15
|
-
,"/Users/jonathanburger/remotion/packages/core/src/freeze.tsx": {"lines":{"total":
|
|
15
|
+
,"/Users/jonathanburger/remotion/packages/core/src/freeze.tsx": {"lines":{"total":16,"covered":8,"skipped":0,"pct":50},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":16,"covered":8,"skipped":0,"pct":50},"branches":{"total":8,"covered":3,"skipped":0,"pct":37.5}}
|
|
16
16
|
,"/Users/jonathanburger/remotion/packages/core/src/get-asset-file-name.ts": {"lines":{"total":6,"covered":5,"skipped":0,"pct":83.33},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":7,"covered":6,"skipped":0,"pct":85.71},"branches":{"total":2,"covered":1,"skipped":0,"pct":50}}
|
|
17
17
|
,"/Users/jonathanburger/remotion/packages/core/src/get-environment.ts": {"lines":{"total":10,"covered":8,"skipped":0,"pct":80},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":11,"covered":9,"skipped":0,"pct":81.81},"branches":{"total":12,"covered":10,"skipped":0,"pct":83.33}}
|
|
18
|
-
,"/Users/jonathanburger/remotion/packages/core/src/get-preview-dom-element.ts": {"lines":{"total":2,"covered":1,"skipped":0,"pct":50},"functions":{"total":1,"covered":0,"skipped":0,"pct":0},"statements":{"total":3,"covered":2,"skipped":0,"pct":66.66},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
19
18
|
,"/Users/jonathanburger/remotion/packages/core/src/get-timeline-clip-name.ts": {"lines":{"total":13,"covered":10,"skipped":0,"pct":76.92},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":14,"covered":11,"skipped":0,"pct":78.57},"branches":{"total":18,"covered":16,"skipped":0,"pct":88.88}}
|
|
20
19
|
,"/Users/jonathanburger/remotion/packages/core/src/index.ts": {"lines":{"total":28,"covered":28,"skipped":0,"pct":100},"functions":{"total":7,"covered":2,"skipped":0,"pct":28.57},"statements":{"total":35,"covered":35,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
21
20
|
,"/Users/jonathanburger/remotion/packages/core/src/initial-frame.ts": {"lines":{"total":6,"covered":3,"skipped":0,"pct":50},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":7,"covered":4,"skipped":0,"pct":57.14},"branches":{"total":2,"covered":0,"skipped":0,"pct":0}}
|
|
22
|
-
,"/Users/jonathanburger/remotion/packages/core/src/internals.ts": {"lines":{"total":
|
|
21
|
+
,"/Users/jonathanburger/remotion/packages/core/src/internals.ts": {"lines":{"total":51,"covered":51,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":51,"covered":51,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
23
22
|
,"/Users/jonathanburger/remotion/packages/core/src/interpolate.ts": {"lines":{"total":59,"covered":59,"skipped":0,"pct":100},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":61,"covered":61,"skipped":0,"pct":100},"branches":{"total":60,"covered":58,"skipped":0,"pct":96.66}}
|
|
24
23
|
,"/Users/jonathanburger/remotion/packages/core/src/interpolateColors.ts": {"lines":{"total":115,"covered":105,"skipped":0,"pct":91.3},"functions":{"total":21,"covered":21,"skipped":0,"pct":100},"statements":{"total":117,"covered":107,"skipped":0,"pct":91.45},"branches":{"total":70,"covered":51,"skipped":0,"pct":72.85}}
|
|
25
24
|
,"/Users/jonathanburger/remotion/packages/core/src/is-approximately-the-same.ts": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":4,"covered":4,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
26
25
|
,"/Users/jonathanburger/remotion/packages/core/src/is-audio-codec.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":3,"covered":3,"skipped":0,"pct":100}}
|
|
26
|
+
,"/Users/jonathanburger/remotion/packages/core/src/is-remote-asset.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":4,"covered":2,"skipped":0,"pct":50}}
|
|
27
27
|
,"/Users/jonathanburger/remotion/packages/core/src/multiple-versions-warning.ts": {"lines":{"total":6,"covered":4,"skipped":0,"pct":66.66},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":7,"covered":5,"skipped":0,"pct":71.42},"branches":{"total":4,"covered":2,"skipped":0,"pct":50}}
|
|
28
28
|
,"/Users/jonathanburger/remotion/packages/core/src/nonce.ts": {"lines":{"total":9,"covered":9,"skipped":0,"pct":100},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":11,"covered":11,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
29
29
|
,"/Users/jonathanburger/remotion/packages/core/src/play-and-handle-not-allowed-error.ts": {"lines":{"total":18,"covered":1,"skipped":0,"pct":5.55},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":19,"covered":2,"skipped":0,"pct":10.52},"branches":{"total":24,"covered":0,"skipped":0,"pct":0}}
|
|
30
30
|
,"/Users/jonathanburger/remotion/packages/core/src/random.ts": {"lines":{"total":22,"covered":20,"skipped":0,"pct":90.9},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":23,"covered":21,"skipped":0,"pct":91.3},"branches":{"total":8,"covered":6,"skipped":0,"pct":75}}
|
|
31
|
-
,"/Users/jonathanburger/remotion/packages/core/src/ready-manager.ts": {"lines":{"total":
|
|
31
|
+
,"/Users/jonathanburger/remotion/packages/core/src/ready-manager.ts": {"lines":{"total":24,"covered":23,"skipped":0,"pct":95.83},"functions":{"total":4,"covered":3,"skipped":0,"pct":75},"statements":{"total":26,"covered":25,"skipped":0,"pct":96.15},"branches":{"total":22,"covered":16,"skipped":0,"pct":72.72}}
|
|
32
32
|
,"/Users/jonathanburger/remotion/packages/core/src/register-root.tsx": {"lines":{"total":27,"covered":14,"skipped":0,"pct":51.85},"functions":{"total":10,"covered":2,"skipped":0,"pct":20},"statements":{"total":34,"covered":21,"skipped":0,"pct":61.76},"branches":{"total":8,"covered":1,"skipped":0,"pct":12.5}}
|
|
33
33
|
,"/Users/jonathanburger/remotion/packages/core/src/setup-env-variables.ts": {"lines":{"total":20,"covered":5,"skipped":0,"pct":25},"functions":{"total":3,"covered":0,"skipped":0,"pct":0},"statements":{"total":21,"covered":6,"skipped":0,"pct":28.57},"branches":{"total":10,"covered":0,"skipped":0,"pct":0}}
|
|
34
|
-
,"/Users/jonathanburger/remotion/packages/core/src/static-file.ts": {"lines":{"total":13,"covered":3,"skipped":0,"pct":23.07},"functions":{"total":3,"covered":0,"skipped":0,"pct":0},"statements":{"total":14,"covered":4,"skipped":0,"pct":28.57},"branches":{"total":
|
|
34
|
+
,"/Users/jonathanburger/remotion/packages/core/src/static-file.ts": {"lines":{"total":13,"covered":3,"skipped":0,"pct":23.07},"functions":{"total":3,"covered":0,"skipped":0,"pct":0},"statements":{"total":14,"covered":4,"skipped":0,"pct":28.57},"branches":{"total":6,"covered":0,"skipped":0,"pct":0}}
|
|
35
35
|
,"/Users/jonathanburger/remotion/packages/core/src/timeline-inout-position-state.ts": {"lines":{"total":10,"covered":5,"skipped":0,"pct":50},"functions":{"total":3,"covered":0,"skipped":0,"pct":0},"statements":{"total":12,"covered":7,"skipped":0,"pct":58.33},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
36
36
|
,"/Users/jonathanburger/remotion/packages/core/src/timeline-position-state.ts": {"lines":{"total":17,"covered":8,"skipped":0,"pct":47.05},"functions":{"total":7,"covered":1,"skipped":0,"pct":14.28},"statements":{"total":20,"covered":11,"skipped":0,"pct":55},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
37
|
-
,"/Users/jonathanburger/remotion/packages/core/src/timeout.ts": {"lines":{"total":7,"covered":4,"skipped":0,"pct":57.14},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":8,"covered":5,"skipped":0,"pct":62.5},"branches":{"total":2,"covered":0,"skipped":0,"pct":0}}
|
|
38
37
|
,"/Users/jonathanburger/remotion/packages/core/src/truthy.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
39
38
|
,"/Users/jonathanburger/remotion/packages/core/src/use-frame.ts": {"lines":{"total":11,"covered":11,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":13,"covered":13,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
|
|
40
39
|
,"/Users/jonathanburger/remotion/packages/core/src/use-lazy-component.ts": {"lines":{"total":12,"covered":6,"skipped":0,"pct":50},"functions":{"total":3,"covered":2,"skipped":0,"pct":66.66},"statements":{"total":13,"covered":7,"skipped":0,"pct":53.84},"branches":{"total":6,"covered":1,"skipped":0,"pct":16.66}}
|
|
@@ -53,35 +52,31 @@
|
|
|
53
52
|
,"/Users/jonathanburger/remotion/packages/core/src/wrap-remotion-context.tsx": {"lines":{"total":16,"covered":7,"skipped":0,"pct":43.75},"functions":{"total":3,"covered":0,"skipped":0,"pct":0},"statements":{"total":17,"covered":8,"skipped":0,"pct":47.05},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
54
53
|
,"/Users/jonathanburger/remotion/packages/core/src/audio/Audio.tsx": {"lines":{"total":23,"covered":21,"skipped":0,"pct":91.3},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":23,"covered":21,"skipped":0,"pct":91.3},"branches":{"total":16,"covered":13,"skipped":0,"pct":81.25}}
|
|
55
54
|
,"/Users/jonathanburger/remotion/packages/core/src/audio/AudioForDevelopment.tsx": {"lines":{"total":29,"covered":10,"skipped":0,"pct":34.48},"functions":{"total":3,"covered":0,"skipped":0,"pct":0},"statements":{"total":29,"covered":10,"skipped":0,"pct":34.48},"branches":{"total":10,"covered":0,"skipped":0,"pct":0}}
|
|
56
|
-
,"/Users/jonathanburger/remotion/packages/core/src/audio/AudioForRendering.tsx": {"lines":{"total":
|
|
55
|
+
,"/Users/jonathanburger/remotion/packages/core/src/audio/AudioForRendering.tsx": {"lines":{"total":31,"covered":29,"skipped":0,"pct":93.54},"functions":{"total":5,"covered":4,"skipped":0,"pct":80},"statements":{"total":32,"covered":30,"skipped":0,"pct":93.75},"branches":{"total":24,"covered":22,"skipped":0,"pct":91.66}}
|
|
57
56
|
,"/Users/jonathanburger/remotion/packages/core/src/audio/index.tsx": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
58
57
|
,"/Users/jonathanburger/remotion/packages/core/src/audio/shared-audio-tags.tsx": {"lines":{"total":66,"covered":19,"skipped":0,"pct":28.78},"functions":{"total":24,"covered":3,"skipped":0,"pct":12.5},"statements":{"total":72,"covered":20,"skipped":0,"pct":27.77},"branches":{"total":28,"covered":1,"skipped":0,"pct":3.57}}
|
|
59
58
|
,"/Users/jonathanburger/remotion/packages/core/src/audio/use-audio-frame.ts": {"lines":{"total":11,"covered":11,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":13,"covered":13,"skipped":0,"pct":100},"branches":{"total":8,"covered":8,"skipped":0,"pct":100}}
|
|
60
59
|
,"/Users/jonathanburger/remotion/packages/core/src/config/browser-executable.ts": {"lines":{"total":5,"covered":3,"skipped":0,"pct":60},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":7,"covered":5,"skipped":0,"pct":71.42},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
61
60
|
,"/Users/jonathanburger/remotion/packages/core/src/config/browser.ts": {"lines":{"total":10,"covered":4,"skipped":0,"pct":40},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":12,"covered":6,"skipped":0,"pct":50},"branches":{"total":4,"covered":0,"skipped":0,"pct":0}}
|
|
62
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/
|
|
63
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/codec.ts": {"lines":{"total":59,"covered":36,"skipped":0,"pct":61.01},"functions":{"total":4,"covered":3,"skipped":0,"pct":75},"statements":{"total":63,"covered":40,"skipped":0,"pct":63.49},"branches":{"total":66,"covered":45,"skipped":0,"pct":68.18}}
|
|
61
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/codec.ts": {"lines":{"total":58,"covered":35,"skipped":0,"pct":60.34},"functions":{"total":4,"covered":3,"skipped":0,"pct":75},"statements":{"total":62,"covered":39,"skipped":0,"pct":62.9},"branches":{"total":64,"covered":44,"skipped":0,"pct":68.75}}
|
|
64
62
|
,"/Users/jonathanburger/remotion/packages/core/src/config/concurrency.ts": {"lines":{"total":7,"covered":7,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":9,"covered":9,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
|
|
65
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/crf.ts": {"lines":{"total":
|
|
63
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/crf.ts": {"lines":{"total":45,"covered":42,"skipped":0,"pct":93.33},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":51,"covered":48,"skipped":0,"pct":94.11},"branches":{"total":45,"covered":42,"skipped":0,"pct":93.33}}
|
|
66
64
|
,"/Users/jonathanburger/remotion/packages/core/src/config/env-file.ts": {"lines":{"total":4,"covered":3,"skipped":0,"pct":75},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":7,"covered":5,"skipped":0,"pct":71.42},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
67
65
|
,"/Users/jonathanburger/remotion/packages/core/src/config/ffmpeg-executable.ts": {"lines":{"total":5,"covered":3,"skipped":0,"pct":60},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":7,"covered":5,"skipped":0,"pct":71.42},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
68
66
|
,"/Users/jonathanburger/remotion/packages/core/src/config/frame-range.ts": {"lines":{"total":48,"covered":48,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":54,"covered":54,"skipped":0,"pct":100},"branches":{"total":38,"covered":37,"skipped":0,"pct":97.36}}
|
|
69
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/frames-per-lambda.ts": {"lines":{"total":4,"covered":2,"skipped":0,"pct":50},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":6,"covered":4,"skipped":0,"pct":66.66},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
70
67
|
,"/Users/jonathanburger/remotion/packages/core/src/config/image-format.ts": {"lines":{"total":20,"covered":20,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":23,"covered":23,"skipped":0,"pct":100},"branches":{"total":14,"covered":14,"skipped":0,"pct":100}}
|
|
71
68
|
,"/Users/jonathanburger/remotion/packages/core/src/config/image-sequence.ts": {"lines":{"total":7,"covered":7,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":9,"covered":9,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
|
|
72
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/index.ts": {"lines":{"total":
|
|
69
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/index.ts": {"lines":{"total":19,"covered":19,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":19,"covered":19,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
73
70
|
,"/Users/jonathanburger/remotion/packages/core/src/config/input-props.ts": {"lines":{"total":23,"covered":14,"skipped":0,"pct":60.86},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":24,"covered":15,"skipped":0,"pct":62.5},"branches":{"total":10,"covered":6,"skipped":0,"pct":60}}
|
|
74
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/log.ts": {"lines":{"total":
|
|
71
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/log.ts": {"lines":{"total":12,"covered":12,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":16,"covered":16,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
75
72
|
,"/Users/jonathanburger/remotion/packages/core/src/config/max-timeline-tracks.ts": {"lines":{"total":13,"covered":3,"skipped":0,"pct":23.07},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":15,"covered":5,"skipped":0,"pct":33.33},"branches":{"total":8,"covered":0,"skipped":0,"pct":0}}
|
|
76
73
|
,"/Users/jonathanburger/remotion/packages/core/src/config/override-webpack.ts": {"lines":{"total":6,"covered":4,"skipped":0,"pct":66.66},"functions":{"total":3,"covered":0,"skipped":0,"pct":0},"statements":{"total":10,"covered":7,"skipped":0,"pct":70},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
77
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/overwrite.ts": {"lines":{"total":
|
|
74
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/overwrite.ts": {"lines":{"total":6,"covered":6,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":9,"covered":9,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
|
|
78
75
|
,"/Users/jonathanburger/remotion/packages/core/src/config/pixel-format.ts": {"lines":{"total":16,"covered":16,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":19,"covered":19,"skipped":0,"pct":100},"branches":{"total":10,"covered":10,"skipped":0,"pct":100}}
|
|
79
76
|
,"/Users/jonathanburger/remotion/packages/core/src/config/preview-server.ts": {"lines":{"total":10,"covered":8,"skipped":0,"pct":80},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":13,"covered":11,"skipped":0,"pct":84.61},"branches":{"total":8,"covered":7,"skipped":0,"pct":87.5}}
|
|
80
77
|
,"/Users/jonathanburger/remotion/packages/core/src/config/prores-profile.ts": {"lines":{"total":11,"covered":11,"skipped":0,"pct":100},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":14,"covered":14,"skipped":0,"pct":100},"branches":{"total":8,"covered":8,"skipped":0,"pct":100}}
|
|
81
78
|
,"/Users/jonathanburger/remotion/packages/core/src/config/quality.ts": {"lines":{"total":10,"covered":10,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":13,"covered":13,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
|
|
82
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/scale.ts": {"lines":{"total":7,"covered":3,"skipped":0,"pct":42.85},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":9,"covered":5,"skipped":0,"pct":55.55},"branches":{"total":2,"covered":0,"skipped":0,"pct":0}}
|
|
83
79
|
,"/Users/jonathanburger/remotion/packages/core/src/config/still-frame.ts": {"lines":{"total":6,"covered":4,"skipped":0,"pct":66.66},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":9,"covered":6,"skipped":0,"pct":66.66},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
84
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/timeout.ts": {"lines":{"total":8,"covered":4,"skipped":0,"pct":50},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":10,"covered":6,"skipped":0,"pct":60},"branches":{"total":2,"covered":0,"skipped":0,"pct":0}}
|
|
85
80
|
,"/Users/jonathanburger/remotion/packages/core/src/config/webpack-caching.ts": {"lines":{"total":8,"covered":8,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":10,"covered":10,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
|
|
86
81
|
,"/Users/jonathanburger/remotion/packages/core/src/loop/index.tsx": {"lines":{"total":15,"covered":14,"skipped":0,"pct":93.33},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":16,"covered":15,"skipped":0,"pct":93.75},"branches":{"total":9,"covered":8,"skipped":0,"pct":88.88}}
|
|
87
82
|
,"/Users/jonathanburger/remotion/packages/core/src/perf/index.ts": {"lines":{"total":16,"covered":5,"skipped":0,"pct":31.25},"functions":{"total":5,"covered":0,"skipped":0,"pct":0},"statements":{"total":19,"covered":8,"skipped":0,"pct":42.1},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
@@ -98,11 +93,10 @@
|
|
|
98
93
|
,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-fps.ts": {"lines":{"total":9,"covered":7,"skipped":0,"pct":77.77},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":10,"covered":8,"skipped":0,"pct":80},"branches":{"total":8,"covered":6,"skipped":0,"pct":75}}
|
|
99
94
|
,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-frame.ts": {"lines":{"total":13,"covered":12,"skipped":0,"pct":92.3},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":14,"covered":13,"skipped":0,"pct":92.85},"branches":{"total":12,"covered":11,"skipped":0,"pct":91.66}}
|
|
100
95
|
,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-image-format.ts": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":4,"covered":4,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
|
|
101
|
-
,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-opengl-renderer.ts": {"lines":{"total":7,"covered":2,"skipped":0,"pct":28.57},"functions":{"total":1,"covered":0,"skipped":0,"pct":0},"statements":{"total":8,"covered":3,"skipped":0,"pct":37.5},"branches":{"total":4,"covered":0,"skipped":0,"pct":0}}
|
|
102
96
|
,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-quality.ts": {"lines":{"total":11,"covered":9,"skipped":0,"pct":81.81},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":12,"covered":10,"skipped":0,"pct":83.33},"branches":{"total":14,"covered":12,"skipped":0,"pct":85.71}}
|
|
103
97
|
,"/Users/jonathanburger/remotion/packages/core/src/video/Video.tsx": {"lines":{"total":21,"covered":19,"skipped":0,"pct":90.47},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":21,"covered":19,"skipped":0,"pct":90.47},"branches":{"total":16,"covered":14,"skipped":0,"pct":87.5}}
|
|
104
98
|
,"/Users/jonathanburger/remotion/packages/core/src/video/VideoForDevelopment.tsx": {"lines":{"total":21,"covered":9,"skipped":0,"pct":42.85},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":21,"covered":9,"skipped":0,"pct":42.85},"branches":{"total":6,"covered":0,"skipped":0,"pct":0}}
|
|
105
|
-
,"/Users/jonathanburger/remotion/packages/core/src/video/VideoForRendering.tsx": {"lines":{"total":
|
|
99
|
+
,"/Users/jonathanburger/remotion/packages/core/src/video/VideoForRendering.tsx": {"lines":{"total":65,"covered":43,"skipped":0,"pct":66.15},"functions":{"total":12,"covered":6,"skipped":0,"pct":50},"statements":{"total":66,"covered":44,"skipped":0,"pct":66.66},"branches":{"total":50,"covered":39,"skipped":0,"pct":78}}
|
|
106
100
|
,"/Users/jonathanburger/remotion/packages/core/src/video/get-current-time.ts": {"lines":{"total":10,"covered":10,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":11,"covered":11,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
|
|
107
101
|
,"/Users/jonathanburger/remotion/packages/core/src/video/index.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
108
102
|
}
|
package/dist/IFrame.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IFrame.d.ts","sourceRoot":"","sources":["../src/IFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"IFrame.d.ts","sourceRoot":"","sources":["../src/IFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAyC/D,eAAO,MAAM,MAAM,wOAAkC,CAAC"}
|
package/dist/IFrame.js
CHANGED
|
@@ -5,7 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const ready_manager_1 = require("./ready-manager");
|
|
7
7
|
const IFrameRefForwarding = ({ onLoad, onError, ...props }, ref) => {
|
|
8
|
-
const [handle] = (0, react_1.useState)(() => (0, ready_manager_1.delayRender)());
|
|
8
|
+
const [handle] = (0, react_1.useState)(() => (0, ready_manager_1.delayRender)(`Loading <IFrame> with source ${props.src}`));
|
|
9
9
|
const didLoad = (0, react_1.useCallback)((e) => {
|
|
10
10
|
(0, ready_manager_1.continueRender)(handle);
|
|
11
11
|
onLoad === null || onLoad === void 0 ? void 0 : onLoad(e);
|
package/dist/IFrame.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IFrame.js","sourceRoot":"","sources":["../src/IFrame.tsx"],"names":[],"mappings":";;;;AAAA,iCAA+D;AAC/D,mDAA4D;AAE5D,MAAM,mBAAmB,GAMrB,CAAC,EAAC,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,EAAC,EAAE,GAAG,EAAE,EAAE;IACxC,MAAM,CAAC,MAAM,CAAC,GAAG,IAAA,gBAAQ,EAAC,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"IFrame.js","sourceRoot":"","sources":["../src/IFrame.tsx"],"names":[],"mappings":";;;;AAAA,iCAA+D;AAC/D,mDAA4D;AAE5D,MAAM,mBAAmB,GAMrB,CAAC,EAAC,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,EAAC,EAAE,GAAG,EAAE,EAAE;IACxC,MAAM,CAAC,MAAM,CAAC,GAAG,IAAA,gBAAQ,EAAC,GAAG,EAAE,CAC9B,IAAA,2BAAW,EAAC,gCAAgC,KAAK,CAAC,GAAG,EAAE,CAAC,CACxD,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,mBAAW,EAC1B,CAAC,CAAiD,EAAE,EAAE;QACrD,IAAA,8BAAc,EAAC,MAAM,CAAC,CAAC;QACvB,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,CAAC,CAAC,CAAC;IACb,CAAC,EACD,CAAC,MAAM,EAAE,MAAM,CAAC,CAChB,CAAC;IAEF,MAAM,WAAW,GAAG,IAAA,mBAAW,EAC9B,CAAC,CAAiD,EAAE,EAAE;QACrD,IAAA,8BAAc,EAAC,MAAM,CAAC,CAAC;QACvB,IAAI,OAAO,EAAE;YACZ,OAAO,CAAC,CAAC,CAAC,CAAC;SACX;aAAM;YACN,OAAO,CAAC,KAAK,CACZ,uBAAuB,EACvB,CAAC,EACD,2EAA2E,CAC3E,CAAC;SACF;IACF,CAAC,EACD,CAAC,MAAM,EAAE,OAAO,CAAC,CACjB,CAAC;IAEF,OAAO,sCAAY,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,WAAI,CAAC;AAC/E,CAAC,CAAC;AAEW,QAAA,MAAM,GAAG,IAAA,kBAAU,EAAC,mBAAmB,CAAC,CAAC"}
|
package/dist/Img.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Img.d.ts","sourceRoot":"","sources":["../src/Img.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Img.d.ts","sourceRoot":"","sources":["../src/Img.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAkD1E,eAAO,MAAM,GAAG,8NAA+B,CAAC"}
|
package/dist/Img.js
CHANGED
|
@@ -5,7 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const ready_manager_1 = require("./ready-manager");
|
|
7
7
|
const ImgRefForwarding = ({ onLoad, onError, ...props }, ref) => {
|
|
8
|
-
const [handle] = (0, react_1.useState)(() => (0, ready_manager_1.delayRender)());
|
|
8
|
+
const [handle] = (0, react_1.useState)(() => (0, ready_manager_1.delayRender)('Loading <Img> with src=' + props.src));
|
|
9
9
|
(0, react_1.useEffect)(() => {
|
|
10
10
|
if (ref &&
|
|
11
11
|
ref.current.complete) {
|
package/dist/Img.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Img.js","sourceRoot":"","sources":["../src/Img.tsx"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sBAAsB,EACtB,CAAC,EACD,2EAA2E,CAC3E,CAAC;SACF;IACF,CAAC,EACD,CAAC,MAAM,EAAE,OAAO,CAAC,CACjB,CAAC;IAEF,OAAO,mCAAS,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,WAAI,CAAC;AAC5E,CAAC,CAAC;AAEW,QAAA,GAAG,GAAG,IAAA,kBAAU,EAAC,gBAAgB,CAAC,CAAC"}
|
package/dist/RemotionRoot.js
CHANGED
|
@@ -21,7 +21,7 @@ const RemotionRoot = ({ children }) => {
|
|
|
21
21
|
(0, react_1.useLayoutEffect)(() => {
|
|
22
22
|
if (typeof window !== 'undefined') {
|
|
23
23
|
window.remotion_setFrame = (f) => {
|
|
24
|
-
const id = (0, ready_manager_1.delayRender)();
|
|
24
|
+
const id = (0, ready_manager_1.delayRender)(`Setting the current frame to ${f}`);
|
|
25
25
|
setFrame(f);
|
|
26
26
|
requestAnimationFrame(() => (0, ready_manager_1.continueRender)(id));
|
|
27
27
|
};
|
package/dist/RemotionRoot.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemotionRoot.js","sourceRoot":"","sources":["../src/RemotionRoot.tsx"],"names":[],"mappings":";;;;AAAA,iCAMe;AACf,iEAAqE;AACrE,6DAAgE;AAChE,mCAAoD;AACpD,qCAAgC;AAChC,mDAA4D;AAC5D,uEAMmC;AAE5B,MAAM,YAAY,GAAa,CAAC,EAAC,QAAQ,EAAC,EAAE,EAAE;;IACpD,MAAM,CAAC,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC,IAAA,eAAM,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC9D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAS,MAAA,MAAM,CAAC,qBAAqB,mCAAI,CAAC,CAAC,CAAC;IAC9E,MAAM,CA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C;IACH,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;IAEpB,IAAA,iBAAS,EAAC,GAAG,EAAE;QACd,IAAI,MAAM,CAAC,GAAG,EAAE;YACf,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,MAAM,EAAE,EAAE;gBACtC,IAAI,MAAM,KAAK,MAAM,EAAE;oBACtB,gBAAgB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;iBAC/B;YACF,CAAC,CAAC,CAAC;SACH;IACF,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACN,uBAAC,oBAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,YACzC,uBAAC,yCAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,oBAAoB,YACpD,uBAAC,4CAAkB,CAAC,QAAQ,IAAC,KAAK,EAAE,uBAAuB,YAC1D,uBAAC,+CAA0B,cAC1B,uBAAC,8CAA0B;oBAC1B,8LAA8L;;wBAA9L,8LAA8L;wBAC9L,iBAAiB,EAAE,CAAC,YAEnB,QAAQ,WACmB,WACD,WACA,WACJ,WACJ,CACxB,CAAC;AACH,CAAC,CAAC;AA1EW,QAAA,YAAY,gBA0EvB"}
|
package/dist/Still.d.ts
CHANGED
package/dist/Still.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Still.d.ts","sourceRoot":"","sources":["../src/Still.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Still.d.ts","sourceRoot":"","sources":["../src/Still.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,UAAU,EAAC,MAAM,eAAe,CAAC;AAEtD,eAAO,MAAM,KAAK,0CAEjB,CAAC"}
|
package/dist/audio/Audio.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import { RemotionMainAudioProps } from './props';
|
|
|
3
3
|
export declare const Audio: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "autoPlay" | "controls" | "loop" | "onEnded"> & {
|
|
4
4
|
volume?: import("../volume-prop").VolumeProp | undefined;
|
|
5
5
|
playbackRate?: number | undefined;
|
|
6
|
-
} & RemotionMainAudioProps, "children" | "
|
|
6
|
+
} & RemotionMainAudioProps, "id" | "children" | "src" | "volume" | "playbackRate" | "slot" | "style" | "title" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof RemotionMainAudioProps> & React.RefAttributes<HTMLAudioElement>>;
|
|
7
7
|
//# sourceMappingURL=Audio.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RemotionAudioProps } from './props';
|
|
3
|
-
export declare const AudioForRendering: React.ForwardRefExoticComponent<Pick<RemotionAudioProps, "children" | "
|
|
3
|
+
export declare const AudioForRendering: React.ForwardRefExoticComponent<Pick<RemotionAudioProps, "id" | "children" | "src" | "volume" | "playbackRate" | "slot" | "style" | "title" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLAudioElement>>;
|
|
4
4
|
//# sourceMappingURL=AudioForRendering.d.ts.map
|
|
@@ -39,7 +39,7 @@ const SharedAudioContextProvider = ({ children, numberOfAudioTags }) => {
|
|
|
39
39
|
const registerAudio = (0, react_1.useCallback)((aud) => {
|
|
40
40
|
const firstFreeAudio = takenAudios.current.findIndex((a) => a === false);
|
|
41
41
|
if (firstFreeAudio === -1) {
|
|
42
|
-
throw new Error(`Tried to simultaneously mount ${numberOfAudioTags + 1} <Audio /> tags at the same time. With the current settings, the maximum amount of <Audio /> tags is limited to ${numberOfAudioTags} at the same time. Remotion pre-mounts silent audio tags to help avoid browser autoplay restrictions. See /docs/player/autoplay#use-the-numberofsharedaudiotags-property for more information on how to increase this limit.`);
|
|
42
|
+
throw new Error(`Tried to simultaneously mount ${numberOfAudioTags + 1} <Audio /> tags at the same time. With the current settings, the maximum amount of <Audio /> tags is limited to ${numberOfAudioTags} at the same time. Remotion pre-mounts silent audio tags to help avoid browser autoplay restrictions. See https://remotion.dev/docs/player/autoplay#use-the-numberofsharedaudiotags-property for more information on how to increase this limit.`);
|
|
43
43
|
}
|
|
44
44
|
const { id, ref } = refs[firstFreeAudio];
|
|
45
45
|
const cloned = [...takenAudios.current];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-audio-tags.js","sourceRoot":"","sources":["../../src/audio/shared-audio-tags.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,+CASe;AAqBf,MAAM,WAAW,GAChB,wTAAwT,CAAC;AAU7S,QAAA,kBAAkB,GAAG,IAAA,qBAAa,EAAuB,IAAI,CAAC,CAAC;AAErE,MAAM,0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C,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;SAC9B;IACF,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;IAExB,OAAO,IAAI,CAAC;AACb,CAAC,CAAC;AA9BW,QAAA,cAAc,kBA8BzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=component-type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-type.d.ts","sourceRoot":"","sources":["../src/component-type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-type.js","sourceRoot":"","sources":["../src/component-type.ts"],"names":[],"mappings":""}
|
package/dist/internals.d.ts
CHANGED
|
@@ -75,11 +75,11 @@ export declare const Internals: {
|
|
|
75
75
|
getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv") => number;
|
|
76
76
|
getActualCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv") => number;
|
|
77
77
|
setFrameRangeFromCli: (newFrameRange: string | number) => void;
|
|
78
|
-
getUserPreferredImageFormat: () => "
|
|
79
|
-
validateSelectedPixelFormatAndImageFormatCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", imageFormat: "
|
|
78
|
+
getUserPreferredImageFormat: () => "png" | "jpeg" | "none" | undefined;
|
|
79
|
+
validateSelectedPixelFormatAndImageFormatCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", imageFormat: "png" | "jpeg" | "none") => "none" | "valid";
|
|
80
80
|
validateSelectedPixelFormatAndCodecCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv") => void;
|
|
81
81
|
validateFrameRange: (frameRange: import("./config/frame-range").FrameRange | null) => void;
|
|
82
|
-
validateNonNullImageFormat: (imageFormat: "
|
|
82
|
+
validateNonNullImageFormat: (imageFormat: "png" | "jpeg" | "none") => void;
|
|
83
83
|
getWebpackCaching: () => boolean;
|
|
84
84
|
useLazyComponent: <T>(compProps: CompProps<T>) => import("react").LazyExoticComponent<LooseAnyComponent<T>>;
|
|
85
85
|
truthy: typeof truthy;
|
package/dist/ready-manager.d.ts
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Call this function to tell Remotion to wait before capturing this frame until data has loaded. Use continueRender() to unblock the render.
|
|
3
|
+
* @param label _optional_ A label to identify the call in case it does time out.
|
|
4
|
+
* @returns {number} An identifier to be passed to continueRender().
|
|
5
|
+
* @link https://www.remotion.dev/docs/delay-render
|
|
6
|
+
*/
|
|
7
|
+
export declare const delayRender: (label?: string | undefined) => number;
|
|
8
|
+
/**
|
|
9
|
+
* Unblock a render that has been blocked by delayRender()
|
|
10
|
+
* @param handle The return value of delayRender().
|
|
11
|
+
* @link https://www.remotion.dev/docs/continue-render
|
|
12
|
+
*/
|
|
2
13
|
export declare const continueRender: (handle: number) => void;
|
|
3
14
|
//# sourceMappingURL=ready-manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ready-manager.d.ts","sourceRoot":"","sources":["../src/ready-manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ready-manager.d.ts","sourceRoot":"","sources":["../src/ready-manager.ts"],"names":[],"mappings":"AAWA;;;;;GAKG;AACH,eAAO,MAAM,WAAW,kCAAqB,MAmC5C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,WAAY,MAAM,KAAG,IA4B/C,CAAC"}
|
package/dist/ready-manager.js
CHANGED
|
@@ -3,13 +3,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.continueRender = exports.delayRender = void 0;
|
|
4
4
|
const get_environment_1 = require("./get-environment");
|
|
5
5
|
const timeout_1 = require("./timeout");
|
|
6
|
+
const truthy_1 = require("./truthy");
|
|
6
7
|
if (typeof window !== 'undefined') {
|
|
7
8
|
window.ready = false;
|
|
8
9
|
}
|
|
9
10
|
let handles = [];
|
|
10
11
|
const timeouts = {};
|
|
11
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Call this function to tell Remotion to wait before capturing this frame until data has loaded. Use continueRender() to unblock the render.
|
|
14
|
+
* @param label _optional_ A label to identify the call in case it does time out.
|
|
15
|
+
* @returns {number} An identifier to be passed to continueRender().
|
|
16
|
+
* @link https://www.remotion.dev/docs/delay-render
|
|
17
|
+
*/
|
|
18
|
+
const delayRender = (label) => {
|
|
12
19
|
var _a, _b;
|
|
20
|
+
if (typeof label !== 'string' && typeof label !== 'undefined') {
|
|
21
|
+
throw new Error('The label parameter of delayRender() must be a string or undefined, got: ' +
|
|
22
|
+
JSON.stringify(label));
|
|
23
|
+
}
|
|
13
24
|
const handle = Math.random();
|
|
14
25
|
handles.push(handle);
|
|
15
26
|
const called = (_b = (_a = Error().stack) === null || _a === void 0 ? void 0 : _a.replace(/^Error/g, '')) !== null && _b !== void 0 ? _b : '';
|
|
@@ -18,7 +29,14 @@ const delayRender = () => {
|
|
|
18
29
|
? timeout_1.DEFAULT_PUPPETEER_TIMEOUT
|
|
19
30
|
: window.remotion_puppeteerTimeout - 2000;
|
|
20
31
|
timeouts[handle] = setTimeout(() => {
|
|
21
|
-
|
|
32
|
+
const message = [
|
|
33
|
+
`A delayRender()`,
|
|
34
|
+
label ? `"${label}"` : null,
|
|
35
|
+
`was called but not cleared after ${timeoutToUse}ms. See https://remotion.dev/docs/timeout for help. The delayRender was called: ${called}`,
|
|
36
|
+
]
|
|
37
|
+
.filter(truthy_1.truthy)
|
|
38
|
+
.join(' ');
|
|
39
|
+
throw new Error(message);
|
|
22
40
|
}, timeoutToUse);
|
|
23
41
|
}
|
|
24
42
|
if (typeof window !== 'undefined') {
|
|
@@ -27,7 +45,19 @@ const delayRender = () => {
|
|
|
27
45
|
return handle;
|
|
28
46
|
};
|
|
29
47
|
exports.delayRender = delayRender;
|
|
48
|
+
/**
|
|
49
|
+
* Unblock a render that has been blocked by delayRender()
|
|
50
|
+
* @param handle The return value of delayRender().
|
|
51
|
+
* @link https://www.remotion.dev/docs/continue-render
|
|
52
|
+
*/
|
|
30
53
|
const continueRender = (handle) => {
|
|
54
|
+
if (typeof handle === 'undefined') {
|
|
55
|
+
throw new TypeError('The continueRender() method must be called with a parameter that is the return value of delayRender(). No value was passed.');
|
|
56
|
+
}
|
|
57
|
+
if (typeof handle !== 'number') {
|
|
58
|
+
throw new TypeError('The parameter passed into continueRender() must be the return value of delayRender() which is a number. Got: ' +
|
|
59
|
+
JSON.stringify(handle));
|
|
60
|
+
}
|
|
31
61
|
handles = handles.filter((h) => {
|
|
32
62
|
if (h === handle) {
|
|
33
63
|
if ((0, get_environment_1.getRemotionEnvironment)() === 'rendering') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ready-manager.js","sourceRoot":"","sources":["../src/ready-manager.ts"],"names":[],"mappings":";;;AAAA,uDAAyD;AACzD,uCAAoD;
|
|
1
|
+
{"version":3,"file":"ready-manager.js","sourceRoot":"","sources":["../src/ready-manager.ts"],"names":[],"mappings":";;;AAAA,uDAAyD;AACzD,uCAAoD;AACpD,qCAAgC;AAEhC,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;IAClC,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;CACrB;AAED,IAAI,OAAO,GAAa,EAAE,CAAC;AAC3B,MAAM,QAAQ,GAA6C,EAAE,CAAC;AAE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AAc,EAAQ,EAAE;IACtD,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QAClC,MAAM,IAAI,SAAS,CAClB,6HAA6H,CAC7H,CAAC;KACF;IAED,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;QAC/B,MAAM,IAAI,SAAS,CAClB,+GAA+G;YAC9G,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CACvB,CAAC;KACF;IAED,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE;QAC9B,IAAI,CAAC,KAAK,MAAM,EAAE;YACjB,IAAI,IAAA,wCAAsB,GAAE,KAAK,WAAW,EAAE;gBAC7C,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAW,CAAC,CAAC;aACzC;YAED,OAAO,KAAK,CAAC;SACb;QAED,OAAO,IAAI,CAAC;IACb,CAAC,CAAC,CAAC;IACH,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QAC1D,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC;KACpB;AACF,CAAC,CAAC;AA5BW,QAAA,cAAc,kBA4BzB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const flattenChildren: (children: React.ReactNode) => (string | number | {} | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactNodeArray | React.ReactPortal)[];
|
|
3
|
+
//# sourceMappingURL=flatten-children.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flatten-children.d.ts","sourceRoot":"","sources":["../../src/serie/flatten-children.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,eAAe,aAAc,MAAM,SAAS,yNAYxD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.flattenChildren = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const flattenChildren = (children) => {
|
|
9
|
+
const childrenArray = react_1.default.Children.toArray(children);
|
|
10
|
+
return childrenArray.reduce((flatChildren, child) => {
|
|
11
|
+
if (child.type === react_1.default.Fragment) {
|
|
12
|
+
return flatChildren.concat(exports.flattenChildren(child.props.children));
|
|
13
|
+
}
|
|
14
|
+
flatChildren.push(child);
|
|
15
|
+
return flatChildren;
|
|
16
|
+
}, []);
|
|
17
|
+
};
|
|
18
|
+
exports.flattenChildren = flattenChildren;
|
|
19
|
+
//# sourceMappingURL=flatten-children.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flatten-children.js","sourceRoot":"","sources":["../../src/serie/flatten-children.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAInB,MAAM,eAAe,GAAG,CAAC,QAAyB,EAAmB,EAAE;IAC7E,MAAM,aAAa,GAAG,eAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACvD,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC,YAA6B,EAAE,KAAK,EAAE,EAAE;QACpE,IAAK,KAAqC,CAAC,IAAI,KAAK,eAAK,CAAC,QAAQ,EAAE;YACnE,OAAO,YAAY,CAAC,MAAM,CACzB,uBAAe,CAAE,KAAiC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAClE,CAAC;SACF;QAED,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,OAAO,YAAY,CAAC;IACrB,CAAC,EAAE,EAAE,CAAC,CAAC;AACR,CAAC,CAAC;AAZW,QAAA,eAAe,mBAY1B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
|
+
import { SequenceProps } from '../sequencing';
|
|
3
|
+
declare type SeriesSequenceProps = PropsWithChildren<{
|
|
4
|
+
durationInFrames: number;
|
|
5
|
+
offset?: number;
|
|
6
|
+
} & Pick<SequenceProps, 'layout' | 'name'>>;
|
|
7
|
+
declare const SeriesSequence: ({ children }: SeriesSequenceProps) => JSX.Element;
|
|
8
|
+
declare const Series: FC & {
|
|
9
|
+
Sequence: typeof SeriesSequence;
|
|
10
|
+
};
|
|
11
|
+
export { Series as Serie };
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|