remotion 2.4.0-alpha.ec355aba → 2.4.3-alpha.8

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.
Files changed (96) hide show
  1. package/LICENSE.md +41 -0
  2. package/README.md +11 -2
  3. package/coverage/coverage-summary.json +11 -9
  4. package/dist/AbsoluteFill.d.ts.map +1 -1
  5. package/dist/AbsoluteFill.js +1 -1
  6. package/dist/AbsoluteFill.js.map +1 -1
  7. package/dist/Composition.d.ts.map +1 -1
  8. package/dist/Composition.js +2 -3
  9. package/dist/Composition.js.map +1 -1
  10. package/dist/CompositionManager.d.ts +3 -2
  11. package/dist/CompositionManager.d.ts.map +1 -1
  12. package/dist/CompositionManager.js +77 -1
  13. package/dist/CompositionManager.js.map +1 -1
  14. package/dist/RemotionRoot.d.ts.map +1 -1
  15. package/dist/RemotionRoot.js +2 -73
  16. package/dist/RemotionRoot.js.map +1 -1
  17. package/dist/Still.d.ts +1 -0
  18. package/dist/Still.d.ts.map +1 -1
  19. package/dist/audio/Audio.d.ts +1 -1
  20. package/dist/audio/AudioForDevelopment.d.ts +1 -1
  21. package/dist/audio/AudioForRendering.d.ts +1 -1
  22. package/dist/audio/shared-audio-tags.js +1 -1
  23. package/dist/audio/shared-audio-tags.js.map +1 -1
  24. package/dist/component-type.d.ts +1 -0
  25. package/dist/component-type.d.ts.map +1 -0
  26. package/dist/component-type.js +2 -0
  27. package/dist/component-type.js.map +1 -0
  28. package/dist/config/frame-range.js +1 -1
  29. package/dist/config/frame-range.js.map +1 -1
  30. package/dist/config/frames-per-lambda.d.ts +3 -0
  31. package/dist/config/frames-per-lambda.d.ts.map +1 -0
  32. package/dist/config/frames-per-lambda.js +13 -0
  33. package/dist/config/frames-per-lambda.js.map +1 -0
  34. package/dist/config/index.d.ts +7 -0
  35. package/dist/config/index.d.ts.map +1 -1
  36. package/dist/config/index.js +8 -0
  37. package/dist/config/index.js.map +1 -1
  38. package/dist/config/override-webpack.d.ts.map +1 -1
  39. package/dist/config/override-webpack.js +1 -1
  40. package/dist/config/override-webpack.js.map +1 -1
  41. package/dist/config/pixel-format.js +1 -1
  42. package/dist/get-asset-file-name.js +1 -1
  43. package/dist/get-asset-file-name.js.map +1 -1
  44. package/dist/get-timeline-clip-name.js +1 -1
  45. package/dist/get-timeline-clip-name.js.map +1 -1
  46. package/dist/internals.d.ts +4 -0
  47. package/dist/internals.d.ts.map +1 -1
  48. package/dist/internals.js +6 -0
  49. package/dist/internals.js.map +1 -1
  50. package/dist/interpolateColors.js +3 -3
  51. package/dist/interpolateColors.js.map +1 -1
  52. package/dist/perf/index.js +1 -1
  53. package/dist/perf/index.js.map +1 -1
  54. package/dist/register-root.js +2 -2
  55. package/dist/register-root.js.map +1 -1
  56. package/dist/sequencing/index.d.ts +1 -1
  57. package/dist/sequencing/index.d.ts.map +1 -1
  58. package/dist/sequencing/index.js +1 -1
  59. package/dist/sequencing/index.js.map +1 -1
  60. package/dist/serie/flatten-children.d.ts +3 -0
  61. package/dist/serie/flatten-children.d.ts.map +1 -0
  62. package/dist/serie/flatten-children.js +19 -0
  63. package/dist/serie/flatten-children.js.map +1 -0
  64. package/dist/serie/index.d.ts +12 -0
  65. package/dist/serie/index.d.ts.map +1 -0
  66. package/dist/serie/index.js +55 -0
  67. package/dist/serie/index.js.map +1 -0
  68. package/dist/setup-environment.d.ts +6 -0
  69. package/dist/setup-environment.d.ts.map +1 -0
  70. package/dist/setup-environment.js +47 -0
  71. package/dist/setup-environment.js.map +1 -0
  72. package/dist/stagger/index.d.ts +10 -0
  73. package/dist/stagger/index.d.ts.map +1 -0
  74. package/dist/stagger/index.js +54 -0
  75. package/dist/stagger/index.js.map +1 -0
  76. package/dist/use-current-time.d.ts +2 -0
  77. package/dist/use-current-time.d.ts.map +1 -0
  78. package/dist/use-current-time.js +12 -0
  79. package/dist/use-current-time.js.map +1 -0
  80. package/dist/use-time.d.ts +2 -0
  81. package/dist/use-time.d.ts.map +1 -0
  82. package/dist/use-time.js +15 -0
  83. package/dist/use-time.js.map +1 -0
  84. package/dist/use-video.js +1 -1
  85. package/dist/use-video.js.map +1 -1
  86. package/dist/validation/validate-composition-id.d.ts +4 -0
  87. package/dist/validation/validate-composition-id.d.ts.map +1 -0
  88. package/dist/validation/validate-composition-id.js +14 -0
  89. package/dist/validation/validate-composition-id.js.map +1 -0
  90. package/dist/video/Video.d.ts +1 -1
  91. package/dist/video/VideoForDevelopment.d.ts +1 -1
  92. package/dist/video/VideoForRendering.d.ts +1 -1
  93. package/dist/video/VideoForRendering.d.ts.map +1 -1
  94. package/dist/video/VideoForRendering.js +10 -4
  95. package/dist/video/VideoForRendering.js.map +1 -1
  96. package/package.json +6 -5
package/LICENSE.md ADDED
@@ -0,0 +1,41 @@
1
+ # Remotion License
2
+
3
+ Depending on the type of your legal entity, you are granted permission to use Remotion for your project. Individuals and small companies are allowed to use Remotion create videos for free (even commercial), while a company license is required for for-profit organisations of a certain size. This two-tier system was designed to ensure funding for this project while still allowing the source code to be available and the program to be free for most. Read below for the exact terms of use.
4
+
5
+ - [Free license](#free-license)
6
+ - [Company license](#company-license)
7
+
8
+ ## Free license
9
+
10
+ Copyright © 2021 [Jonny Burger](https://jonny.io)
11
+
12
+ ### Eligibility
13
+
14
+ You are eligible to use Remotion for free if you are:
15
+
16
+ - an individual
17
+ - a for-profit organisation with up to 3 employees
18
+ - a non-profit or not-for-profit organisation
19
+ - evaluating whether Remotion is a good fit, and are not yet using it in a commercial way
20
+
21
+ ### Allowed use cases
22
+
23
+ Permission is hereby granted, free of charge, to any person eligible for the "Free license", to use the software non-commercially or commercially for the purpose of creating videos and images and to modify and the software to their own liking, for the purpose of fulfilling their custom use case or to contribute bug fixes or improvements back to Remotion.
24
+
25
+ ### Disallowed use cases
26
+
27
+ It is not allowed to copy or modify Remotion code for the purpose of selling, renting, licensing, relicensing, sublicensing your own derivate of Remotion.
28
+
29
+ ### Warranty notice
30
+
31
+ The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the author or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.
32
+
33
+ ### Support
34
+
35
+ Support is provided on a best-we-can-do basis via GitHub Issues.
36
+
37
+ ## Company license
38
+
39
+ You are required to obtain a company license to use Remotion if you are not within the group of entities eligible for a free license. This license will enable you to use Remotion for the allowed use cases specified in the free license, and give you access to prioritized support.
40
+
41
+ Visit [companies.remotion.dev](https://companies.remotion.dev) for pricing and to buy a license.
package/README.md CHANGED
@@ -4,7 +4,12 @@
4
4
  </a>
5
5
  </p>
6
6
 
7
- Remotion is a suite of libraries building a fundament for **creating videos programmatically using React.**
7
+ [![Discord Shield](https://discordapp.com/api/guilds/809501355504959528/widget.png?style=shield)](https://discord.gg/6VzzNDwUwV)
8
+ [![NPM Version](http://img.shields.io/npm/v/remotion.svg?style=flat)](https://www.npmjs.org/package/remotion)
9
+ [![NPM Downloads](https://img.shields.io/npm/dm/remotion.svg?style=flat)](https://npmcharts.com/compare/remotion?minimal=true)
10
+ [![Install Size](https://packagephobia.now.sh/badge?p=remotion)](https://packagephobia.now.sh/result?p=remotion)
11
+
12
+ Remotion is a suite of libraries building a foundation for **creating videos programmatically using React.**
8
13
 
9
14
  ## Why create videos in React?
10
15
 
@@ -14,9 +19,13 @@ Remotion is a suite of libraries building a fundament for **creating videos prog
14
19
 
15
20
  ## Example videos
16
21
 
17
- - **Remotion Trailer** [Watch](https://www.youtube.com/watch?v=1UU_GEQuolI) • [Source code](https://github.com/remotion-dev/trailer) • The announcement video for Remotion was written in Remotion itself!
22
+ - **Remotion Trailer** [Watch](https://www.youtube.com/watch?v=gwlDorikqgY) • [Source code](https://github.com/remotion-dev/trailer) • The announcement video for Remotion was written in Remotion itself!
18
23
  - **AnySticker Welcome Video** [Watch](https://www.youtube.com/watch?v=Y0SNPeTz09w) • [Source code](https://github.com/JonnyBurger/anysticker-tutorials) • An in-app explainer video for my app AnySticker.
24
+ - **Spotify Wrapped Recreated** [Watch](https://twitter.com/JNYBGR/status/1360269270526136320) • [Tutorial](https://www.youtube.com/watch?v=I-y_5H9-3gk) • [Source code](https://github.com/JonnyBurger/remotion-wrapped) • A recreation of Spotify Wrapped where you can override all text and images via command line.
19
25
  - **"Game changer or no game changer" intro** [Watch](https://youtu.be/ga_xAZo9m7k?t=61) • [Source code](https://github.com/JonnyBurger/gamechanger-or-no-gamechanger-intro) • An intro for a quiz show I did with William Candillon.
26
+ - **"The X in MDX" talk** [Watch](https://twitter.com/pomber/status/1359556846688886789) • [Source code](https://github.com/pomber/record-talk-with-remotion) • A re-recording of [this talk](https://www.youtube.com/watch?v=xEu3t-KJVVg) using Remotion.
27
+ - **Redesigning the Scatterplot** [Watch](https://twitter.com/BrooksLybrand/status/1371547875109445635) • [Source code](https://github.com/brookslybrand/redesigning-scatterplots) • An animated section of Edward R. Tufte's book [The Visual Display of Quantitative Information](https://www.amazon.com/Visual-Display-Quantitative-Information/dp/0961392142/ref=sr_1_1?crid=3HQZSBUUROV09&dchild=1&keywords=the+visual+display+of+quantitative+information&qid=1615907320&sprefix=the+visual+disp%2Caps%2C190&sr=8-1).
28
+ - **News Podcast Maker** [Watch](https://www.youtube.com/watch?v=Mwo5iNlWryg) • [Source code](https://github.com/FelippeChemello/podcast-maker/) • A fully automated News Podcast Maker.
20
29
 
21
30
  Feel free to pull request your creations!
22
31
 
@@ -1,10 +1,10 @@
1
- {"total": {"lines":{"total":1774,"covered":1348,"skipped":0,"pct":75.99},"statements":{"total":1939,"covered":1494,"skipped":0,"pct":77.05},"functions":{"total":347,"covered":210,"skipped":0,"pct":60.52},"branches":{"total":1036,"covered":738,"skipped":0,"pct":71.24}}
1
+ {"total": {"lines":{"total":1792,"covered":1361,"skipped":0,"pct":75.95},"statements":{"total":1964,"covered":1514,"skipped":0,"pct":77.09},"functions":{"total":353,"covered":214,"skipped":0,"pct":60.62},"branches":{"total":1041,"covered":739,"skipped":0,"pct":70.99}}
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.86},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
3
- ,"/Users/jonathanburger/remotion/packages/core/src/Composition.tsx": {"lines":{"total":28,"covered":27,"skipped":0,"pct":96.43},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":29,"covered":28,"skipped":0,"pct":96.55},"branches":{"total":6,"covered":5,"skipped":0,"pct":83.33}}
4
- ,"/Users/jonathanburger/remotion/packages/core/src/CompositionManager.tsx": {"lines":{"total":9,"covered":8,"skipped":0,"pct":88.89},"functions":{"total":7,"covered":6,"skipped":0,"pct":85.71},"statements":{"total":9,"covered":8,"skipped":0,"pct":88.89},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
3
+ ,"/Users/jonathanburger/remotion/packages/core/src/Composition.tsx": {"lines":{"total":28,"covered":27,"skipped":0,"pct":96.43},"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
+ ,"/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.43},"statements":{"total":48,"covered":32,"skipped":0,"pct":66.67},"branches":{"total":4,"covered":3,"skipped":0,"pct":75}}
5
5
  ,"/Users/jonathanburger/remotion/packages/core/src/IFrame.tsx": {"lines":{"total":14,"covered":4,"skipped":0,"pct":28.57},"functions":{"total":4,"covered":0,"skipped":0,"pct":0},"statements":{"total":15,"covered":4,"skipped":0,"pct":26.67},"branches":{"total":6,"covered":0,"skipped":0,"pct":0}}
6
6
  ,"/Users/jonathanburger/remotion/packages/core/src/Img.tsx": {"lines":{"total":17,"covered":10,"skipped":0,"pct":58.82},"functions":{"total":5,"covered":3,"skipped":0,"pct":60},"statements":{"total":18,"covered":11,"skipped":0,"pct":61.11},"branches":{"total":10,"covered":3,"skipped":0,"pct":30}}
7
- ,"/Users/jonathanburger/remotion/packages/core/src/RemotionRoot.tsx": {"lines":{"total":63,"covered":47,"skipped":0,"pct":74.6},"functions":{"total":32,"covered":14,"skipped":0,"pct":43.75},"statements":{"total":73,"covered":50,"skipped":0,"pct":68.49},"branches":{"total":14,"covered":8,"skipped":0,"pct":57.14}}
7
+ ,"/Users/jonathanburger/remotion/packages/core/src/RemotionRoot.tsx": {"lines":{"total":33,"covered":27,"skipped":0,"pct":81.82},"functions":{"total":12,"covered":8,"skipped":0,"pct":66.67},"statements":{"total":37,"covered":29,"skipped":0,"pct":78.38},"branches":{"total":10,"covered":5,"skipped":0,"pct":50}}
8
8
  ,"/Users/jonathanburger/remotion/packages/core/src/Still.tsx": {"lines":{"total":3,"covered":2,"skipped":0,"pct":66.67},"functions":{"total":1,"covered":0,"skipped":0,"pct":0},"statements":{"total":4,"covered":3,"skipped":0,"pct":75},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
9
9
  ,"/Users/jonathanburger/remotion/packages/core/src/absolute-src.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":0,"covered":0,"skipped":0,"pct":100}}
10
10
  ,"/Users/jonathanburger/remotion/packages/core/src/bezier.ts": {"lines":{"total":59,"covered":25,"skipped":0,"pct":42.37},"functions":{"total":10,"covered":6,"skipped":0,"pct":60},"statements":{"total":61,"covered":26,"skipped":0,"pct":42.62},"branches":{"total":32,"covered":18,"skipped":0,"pct":56.25}}
@@ -17,7 +17,7 @@
17
17
  ,"/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.89}}
18
18
  ,"/Users/jonathanburger/remotion/packages/core/src/index.ts": {"lines":{"total":26,"covered":26,"skipped":0,"pct":100},"functions":{"total":5,"covered":1,"skipped":0,"pct":20},"statements":{"total":31,"covered":31,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
19
19
  ,"/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}}
20
- ,"/Users/jonathanburger/remotion/packages/core/src/internals.ts": {"lines":{"total":46,"covered":46,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":46,"covered":46,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
20
+ ,"/Users/jonathanburger/remotion/packages/core/src/internals.ts": {"lines":{"total":48,"covered":48,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":48,"covered":48,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
21
21
  ,"/Users/jonathanburger/remotion/packages/core/src/interpolate.ts": {"lines":{"total":55,"covered":55,"skipped":0,"pct":100},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":57,"covered":57,"skipped":0,"pct":100},"branches":{"total":59,"covered":57,"skipped":0,"pct":96.61}}
22
22
  ,"/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.86}}
23
23
  ,"/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}}
@@ -54,14 +54,15 @@
54
54
  ,"/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}}
55
55
  ,"/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.43},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
56
56
  ,"/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}}
57
- ,"/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}}
57
+ ,"/Users/jonathanburger/remotion/packages/core/src/config/codec.ts": {"lines":{"total":59,"covered":36,"skipped":0,"pct":61.02},"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}}
58
58
  ,"/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}}
59
59
  ,"/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.12},"branches":{"total":45,"covered":42,"skipped":0,"pct":93.33}}
60
60
  ,"/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.43},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
61
61
  ,"/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.37}}
62
+ ,"/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.67},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
62
63
  ,"/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}}
63
64
  ,"/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}}
64
- ,"/Users/jonathanburger/remotion/packages/core/src/config/index.ts": {"lines":{"total":18,"covered":18,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":18,"covered":18,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
65
+ ,"/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}}
65
66
  ,"/Users/jonathanburger/remotion/packages/core/src/config/input-props.ts": {"lines":{"total":12,"covered":11,"skipped":0,"pct":91.67},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":13,"covered":12,"skipped":0,"pct":92.31},"branches":{"total":6,"covered":5,"skipped":0,"pct":83.33}}
66
67
  ,"/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}}
67
68
  ,"/Users/jonathanburger/remotion/packages/core/src/config/max-timeline-tracks.ts": {"lines":{"total":13,"covered":3,"skipped":0,"pct":23.08},"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}}
@@ -74,13 +75,14 @@
74
75
  ,"/Users/jonathanburger/remotion/packages/core/src/config/still-frame.ts": {"lines":{"total":6,"covered":4,"skipped":0,"pct":66.67},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":9,"covered":6,"skipped":0,"pct":66.67},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
75
76
  ,"/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}}
76
77
  ,"/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.11},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
77
- ,"/Users/jonathanburger/remotion/packages/core/src/sequencing/index.tsx": {"lines":{"total":44,"covered":44,"skipped":0,"pct":100},"functions":{"total":7,"covered":7,"skipped":0,"pct":100},"statements":{"total":46,"covered":46,"skipped":0,"pct":100},"branches":{"total":60,"covered":59,"skipped":0,"pct":98.33}}
78
+ ,"/Users/jonathanburger/remotion/packages/core/src/sequencing/index.tsx": {"lines":{"total":44,"covered":43,"skipped":0,"pct":97.73},"functions":{"total":7,"covered":7,"skipped":0,"pct":100},"statements":{"total":46,"covered":45,"skipped":0,"pct":97.83},"branches":{"total":61,"covered":59,"skipped":0,"pct":96.72}}
78
79
  ,"/Users/jonathanburger/remotion/packages/core/src/series/flatten-children.tsx": {"lines":{"total":8,"covered":8,"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}}
79
80
  ,"/Users/jonathanburger/remotion/packages/core/src/series/index.tsx": {"lines":{"total":36,"covered":35,"skipped":0,"pct":97.22},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":36,"covered":35,"skipped":0,"pct":97.22},"branches":{"total":20,"covered":19,"skipped":0,"pct":95}}
80
81
  ,"/Users/jonathanburger/remotion/packages/core/src/spring/index.ts": {"lines":{"total":9,"covered":6,"skipped":0,"pct":66.67},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":10,"covered":7,"skipped":0,"pct":70},"branches":{"total":7,"covered":4,"skipped":0,"pct":57.14}}
81
82
  ,"/Users/jonathanburger/remotion/packages/core/src/spring/measure-spring.ts": {"lines":{"total":38,"covered":37,"skipped":0,"pct":97.37},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":39,"covered":38,"skipped":0,"pct":97.44},"branches":{"total":20,"covered":18,"skipped":0,"pct":90}}
82
83
  ,"/Users/jonathanburger/remotion/packages/core/src/spring/spring-utils.ts": {"lines":{"total":43,"covered":43,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":44,"covered":44,"skipped":0,"pct":100},"branches":{"total":13,"covered":8,"skipped":0,"pct":61.54}}
83
84
  ,"/Users/jonathanburger/remotion/packages/core/src/test/expect-to-throw.ts": {"lines":{"total":5,"covered":5,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":7,"covered":7,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
85
+ ,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-composition-id.ts": {"lines":{"total":6,"covered":6,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":10,"covered":10,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
84
86
  ,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-dimensions.ts": {"lines":{"total":11,"covered":9,"skipped":0,"pct":81.82},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":12,"covered":10,"skipped":0,"pct":83.33},"branches":{"total":10,"covered":8,"skipped":0,"pct":80}}
85
87
  ,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-duration-in-frames.ts": {"lines":{"total":7,"covered":7,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":8,"covered":8,"skipped":0,"pct":100},"branches":{"total":6,"covered":6,"skipped":0,"pct":100}}
86
88
  ,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-fps.ts": {"lines":{"total":9,"covered":7,"skipped":0,"pct":77.78},"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}}
@@ -89,7 +91,7 @@
89
91
  ,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-quality.ts": {"lines":{"total":11,"covered":9,"skipped":0,"pct":81.82},"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}}
90
92
  ,"/Users/jonathanburger/remotion/packages/core/src/video/Video.tsx": {"lines":{"total":21,"covered":19,"skipped":0,"pct":90.48},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":21,"covered":19,"skipped":0,"pct":90.48},"branches":{"total":16,"covered":14,"skipped":0,"pct":87.5}}
91
93
  ,"/Users/jonathanburger/remotion/packages/core/src/video/VideoForDevelopment.tsx": {"lines":{"total":21,"covered":9,"skipped":0,"pct":42.86},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":21,"covered":9,"skipped":0,"pct":42.86},"branches":{"total":6,"covered":0,"skipped":0,"pct":0}}
92
- ,"/Users/jonathanburger/remotion/packages/core/src/video/VideoForRendering.tsx": {"lines":{"total":63,"covered":43,"skipped":0,"pct":68.25},"functions":{"total":12,"covered":6,"skipped":0,"pct":50},"statements":{"total":64,"covered":44,"skipped":0,"pct":68.75},"branches":{"total":48,"covered":39,"skipped":0,"pct":81.25}}
94
+ ,"/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.67},"branches":{"total":50,"covered":39,"skipped":0,"pct":78}}
93
95
  ,"/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}}
94
96
  ,"/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}}
95
97
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AbsoluteFill.d.ts","sourceRoot":"","sources":["../src/AbsoluteFill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,cAAc,EAAU,MAAM,OAAO,CAAC;AAErD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAAC,cAAc,CAAC,CAkBjE,CAAC"}
1
+ {"version":3,"file":"AbsoluteFill.d.ts","sourceRoot":"","sources":["../src/AbsoluteFill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,cAAc,EAAU,MAAM,OAAO,CAAC;AAErD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAAC,cAAc,CAAC,CAoBjE,CAAC"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AbsoluteFill = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
- const AbsoluteFill = props => {
6
+ const AbsoluteFill = (props) => {
7
7
  const { style, ...other } = props;
8
8
  const actualStyle = (0, react_1.useMemo)(() => {
9
9
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"AbsoluteFill.js","sourceRoot":"","sources":["../src/AbsoluteFill.tsx"],"names":[],"mappings":";;;;AAAA,iCAAqD;AAE9C,MAAM,YAAY,GAA6C,KAAK,CAAC,EAAE;IAC7E,MAAM,EAAC,KAAK,EAAE,GAAG,KAAK,EAAC,GAAG,KAAK,CAAC;IAChC,MAAM,WAAW,GAAG,IAAA,eAAO,EAAC,GAAwB,EAAE;QACrD,OAAO;YACN,QAAQ,EAAE,UAAU;YACpB,GAAG,EAAE,CAAC;YACN,IAAI,EAAE,CAAC;YACP,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,MAAM;YACf,aAAa,EAAE,QAAQ;YACvB,GAAG,KAAK;SACR,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,8CAAK,KAAK,EAAE,WAAW,IAAM,KAAK,UAAI,CAAC;AAC/C,CAAC,CAAC;AAlBW,QAAA,YAAY,gBAkBvB"}
1
+ {"version":3,"file":"AbsoluteFill.js","sourceRoot":"","sources":["../src/AbsoluteFill.tsx"],"names":[],"mappings":";;;;AAAA,iCAAqD;AAE9C,MAAM,YAAY,GAA6C,CACrE,KAAK,EACJ,EAAE;IACH,MAAM,EAAC,KAAK,EAAE,GAAG,KAAK,EAAC,GAAG,KAAK,CAAC;IAChC,MAAM,WAAW,GAAG,IAAA,eAAO,EAAC,GAAwB,EAAE;QACrD,OAAO;YACN,QAAQ,EAAE,UAAU;YACpB,GAAG,EAAE,CAAC;YACN,IAAI,EAAE,CAAC;YACP,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,MAAM;YACf,aAAa,EAAE,QAAQ;YACvB,GAAG,KAAK;SACR,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,8CAAK,KAAK,EAAE,WAAW,IAAM,KAAK,UAAI,CAAC;AAC/C,CAAC,CAAC;AApBW,QAAA,YAAY,gBAoBvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Composition.d.ts","sourceRoot":"","sources":["../src/Composition.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAa7C,oBAAY,SAAS,CAAC,CAAC,IACpB;IACA,aAAa,EAAE,MAAM,OAAO,CAAC;QAAC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,CAAC;CACxD,GACD;IACA,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;CAC1B,CAAC;AAEL,oBAAY,UAAU,CAAC,CAAC,IAAI;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,CAAC,EAAE,CAAC,CAAC;CACjB,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAEjB,aAAK,gBAAgB,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,GAAG;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,WAAW,mHA4EvB,CAAC"}
1
+ {"version":3,"file":"Composition.d.ts","sourceRoot":"","sources":["../src/Composition.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAc7C,oBAAY,SAAS,CAAC,CAAC,IACpB;IACA,aAAa,EAAE,MAAM,OAAO,CAAC;QAAC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,CAAC;CACxD,GACD;IACA,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;CAC1B,CAAC;AAEL,oBAAY,UAAU,CAAC,CAAC,IAAI;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,CAAC,EAAE,CAAC,CAAC;CACjB,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAEjB,aAAK,gBAAgB,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,GAAG;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,WAAW,mHAuEvB,CAAC"}
@@ -6,6 +6,7 @@ const CompositionManager_1 = require("./CompositionManager");
6
6
  const nonce_1 = require("./nonce");
7
7
  const register_root_1 = require("./register-root");
8
8
  const use_lazy_component_1 = require("./use-lazy-component");
9
+ const validate_composition_id_1 = require("./validation/validate-composition-id");
9
10
  const validate_dimensions_1 = require("./validation/validate-dimensions");
10
11
  const validate_duration_in_frames_1 = require("./validation/validate-duration-in-frames");
11
12
  const validate_fps_1 = require("./validation/validate-fps");
@@ -18,9 +19,7 @@ const Composition = ({ width, height, fps, durationInFrames, id, defaultProps: p
18
19
  if (!id) {
19
20
  throw new Error('No id for composition passed.');
20
21
  }
21
- if (!id.match(/^([a-zA-Z0-9-])+$/g)) {
22
- throw new Error(`Composition id can only contain a-z, A-Z, 0-9 and -. You passed ${id}`);
23
- }
22
+ (0, validate_composition_id_1.validateCompositionId)(id);
24
23
  (0, validate_dimensions_1.validateDimension)(width, 'width', 'of the <Composition/> component');
25
24
  (0, validate_dimensions_1.validateDimension)(height, 'height', 'of the <Composition/> component');
26
25
  (0, validate_duration_in_frames_1.validateDurationInFrames)(durationInFrames, 'of the <Composition/> component');
@@ -1 +1 @@
1
- {"version":3,"file":"Composition.js","sourceRoot":"","sources":["../src/Composition.tsx"],"names":[],"mappings":";;;AAAA,iCAA4C;AAE5C,6DAAwD;AACxD,mCAAiC;AACjC,mDAIyB;AACzB,6DAAsD;AACtD,0EAAmE;AACnE,0FAAkF;AAClF,4DAAsD;A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B,EACvB,gBAAgB,EAChB,iCAAiC,CACjC,CAAC;QACF,IAAA,0BAAW,EAAC,GAAG,EAAE,2CAA2C,CAAC,CAAC;QAC9D,mBAAmB,CAAI;YACtB,gBAAgB;YAChB,GAAG;YACH,MAAM;YACN,KAAK;YACL,EAAE;YACF,SAAS,EAAE,IAAI;YACf,KAAK;YACL,KAAK;SACL,CAAC,CAAC;QAEH,IAAI,IAAA,+BAAe,GAAE,EAAE;YACtB,IAAA,oCAAoB,EAAC;gBACpB,SAAS,EAAE,IAAI;gBACf,gBAAgB;gBAChB,GAAG;gBACH,MAAM;gBACN,EAAE;gBACF,KAAK;gBACL,KAAK;aACL,CAAC,CAAC;SACH;QAED,OAAO,GAAG,EAAE;YACX,qBAAqB,CAAC,EAAE,CAAC,CAAC;YAC1B,IAAA,uCAAuB,EAAC,EAAE,CAAC,CAAC;QAC7B,CAAC,CAAC;IACH,CAAC,EAAE;QACF,gBAAgB;QAChB,GAAG;QACH,MAAM;QACN,IAAI;QACJ,EAAE;QACF,KAAK;QACL,mBAAmB;QACnB,qBAAqB;QACrB,KAAK;QACL,KAAK;KACL,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AACb,CAAC,CAAC;AAvEW,QAAA,WAAW,eAuEtB"}
@@ -1,4 +1,4 @@
1
- import { LazyExoticComponent } from 'react';
1
+ import React, { LazyExoticComponent } from 'react';
2
2
  import { LooseAnyComponent } from './any-component';
3
3
  export declare type TComposition<T = unknown> = {
4
4
  width: number;
@@ -62,6 +62,7 @@ export declare type CompositionManagerContext = {
62
62
  sequences: TSequence[];
63
63
  assets: TAsset[];
64
64
  };
65
- export declare const CompositionManager: import("react").Context<CompositionManagerContext>;
65
+ export declare const CompositionManager: React.Context<CompositionManagerContext>;
66
+ export declare const CompositionManagerProvider: React.FC;
66
67
  export {};
67
68
  //# sourceMappingURL=CompositionManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CompositionManager.d.ts","sourceRoot":"","sources":["../src/CompositionManager.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  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CompositionManager = void 0;
3
+ exports.CompositionManagerProvider = exports.CompositionManager = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
5
  const react_1 = require("react");
5
6
  exports.CompositionManager = (0, react_1.createContext)({
6
7
  compositions: [],
@@ -15,4 +16,79 @@ exports.CompositionManager = (0, react_1.createContext)({
15
16
  sequences: [],
16
17
  assets: [],
17
18
  });
19
+ const CompositionManagerProvider = ({ children }) => {
20
+ // Wontfix, expected to have
21
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
22
+ const [compositions, setCompositions] = (0, react_1.useState)([]);
23
+ const [currentComposition, setCurrentComposition] = (0, react_1.useState)(null);
24
+ const [assets, setAssets] = (0, react_1.useState)([]);
25
+ const [sequences, setSequences] = (0, react_1.useState)([]);
26
+ const registerComposition = (0, react_1.useCallback)((comp) => {
27
+ setCompositions((comps) => {
28
+ if (comps.find((c) => c.id === comp.id)) {
29
+ throw new Error(`Multiple composition with id ${comp.id} are registered.`);
30
+ }
31
+ return [...comps, comp].slice().sort((a, b) => a.nonce - b.nonce);
32
+ });
33
+ }, []);
34
+ const registerSequence = (0, react_1.useCallback)((seq) => {
35
+ setSequences((seqs) => {
36
+ return [...seqs, seq];
37
+ });
38
+ }, []);
39
+ const unregisterComposition = (0, react_1.useCallback)((id) => {
40
+ setCompositions((comps) => {
41
+ return comps.filter((c) => c.id !== id);
42
+ });
43
+ }, []);
44
+ const unregisterSequence = (0, react_1.useCallback)((seq) => {
45
+ setSequences((seqs) => seqs.filter((s) => s.id !== seq));
46
+ }, []);
47
+ const registerAsset = (0, react_1.useCallback)((asset) => {
48
+ setAssets((assts) => {
49
+ return [...assts, asset];
50
+ });
51
+ }, []);
52
+ const unregisterAsset = (0, react_1.useCallback)((id) => {
53
+ setAssets((assts) => {
54
+ return assts.filter((a) => a.id !== id);
55
+ });
56
+ }, []);
57
+ (0, react_1.useLayoutEffect)(() => {
58
+ if (typeof window !== 'undefined') {
59
+ window.remotion_collectAssets = () => {
60
+ setAssets([]); // clear assets at next render
61
+ return assets;
62
+ };
63
+ }
64
+ }, [assets]);
65
+ const contextValue = (0, react_1.useMemo)(() => {
66
+ return {
67
+ compositions,
68
+ registerComposition,
69
+ unregisterComposition,
70
+ currentComposition,
71
+ setCurrentComposition,
72
+ registerSequence,
73
+ unregisterSequence,
74
+ registerAsset,
75
+ unregisterAsset,
76
+ sequences,
77
+ assets,
78
+ };
79
+ }, [
80
+ compositions,
81
+ currentComposition,
82
+ registerComposition,
83
+ registerSequence,
84
+ unregisterComposition,
85
+ unregisterSequence,
86
+ registerAsset,
87
+ unregisterAsset,
88
+ sequences,
89
+ assets,
90
+ ]);
91
+ return ((0, jsx_runtime_1.jsx)(exports.CompositionManager.Provider, Object.assign({ value: contextValue }, { children: children }), void 0));
92
+ };
93
+ exports.CompositionManagerProvider = CompositionManagerProvider;
18
94
  //# sourceMappingURL=CompositionManager.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CompositionManager.js","sourceRoot":"","sources":["../src/CompositionManager.tsx"],"names":[],"mappings":";;;AAAA,iCAAyD;AAkF5C,QAAA,kBAAkB,GAAG,IAAA,qBAAa,EAA4B;IAC1E,YAAY,EAAE,EAAE;IAChB,mBAAmB,EAAE,GAAG,EAAE,CAAC,SAAS;IACpC,qBAAqB,EAAE,GAAG,EAAE,CAAC,SAAS;IACtC,kBAAkB,EAAE,IAAI;IACxB,qBAAqB,EAAE,GAAG,EAAE,CAAC,SAAS;IACtC,gBAAgB,EAAE,GAAG,EAAE,CAAC,SAAS;IACjC,kBAAkB,EAAE,GAAG,EAAE,CAAC,SAAS;IACnC,aAAa,EAAE,GAAG,EAAE,CAAC,SAAS;IAC9B,eAAe,EAAE,GAAG,EAAE,CAAC,SAAS;IAChC,SAAS,EAAE,EAAE;IACb,MAAM,EAAE,EAAE;CACV,CAAC,CAAC"}
1
+ {"version":3,"file":"CompositionManager.js","sourceRoot":"","sources":["../src/CompositionManager.tsx"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MAAM,OAAO,CAAC;AAmBf,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAsJhC,CAAC"}
1
+ {"version":3,"file":"RemotionRoot.d.ts","sourceRoot":"","sources":["../src/RemotionRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsD,MAAM,OAAO,CAAC;AAa3E,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAmEhC,CAAC"}
@@ -11,13 +11,7 @@ const ready_manager_1 = require("./ready-manager");
11
11
  const timeline_position_state_1 = require("./timeline-position-state");
12
12
  const RemotionRoot = ({ children }) => {
13
13
  var _a;
14
- // Wontfix, expected to have
15
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
16
- const [compositions, setCompositions] = (0, react_1.useState)([]);
17
- const [currentComposition, setCurrentComposition] = (0, react_1.useState)(null);
18
14
  const [remotionRootId] = (0, react_1.useState)(() => String((0, random_1.random)(null)));
19
- const [sequences, setSequences] = (0, react_1.useState)([]);
20
- const [assets, setAssets] = (0, react_1.useState)([]);
21
15
  const [frame, setFrame] = (0, react_1.useState)((_a = window.remotion_initialFrame) !== null && _a !== void 0 ? _a : 0);
22
16
  const [playing, setPlaying] = (0, react_1.useState)(false);
23
17
  const [fastRefreshes, setFastRefreshes] = (0, react_1.useState)(0);
@@ -31,71 +25,6 @@ const RemotionRoot = ({ children }) => {
31
25
  window.remotion_isPlayer = false;
32
26
  }
33
27
  }, []);
34
- (0, react_1.useLayoutEffect)(() => {
35
- if (typeof window !== 'undefined') {
36
- window.remotion_collectAssets = () => {
37
- setAssets([]); // clear assets at next render
38
- return assets;
39
- };
40
- }
41
- }, [assets]);
42
- const registerComposition = (0, react_1.useCallback)((comp) => {
43
- setCompositions((comps) => {
44
- if (comps.find((c) => c.id === comp.id)) {
45
- throw new Error(`Multiple composition with id ${comp.id} are registered.`);
46
- }
47
- return [...comps, comp].slice().sort((a, b) => a.nonce - b.nonce);
48
- });
49
- }, []);
50
- const registerSequence = (0, react_1.useCallback)((seq) => {
51
- setSequences((seqs) => {
52
- return [...seqs, seq];
53
- });
54
- }, []);
55
- const unregisterComposition = (0, react_1.useCallback)((id) => {
56
- setCompositions((comps) => {
57
- return comps.filter((c) => c.id !== id);
58
- });
59
- }, []);
60
- const unregisterSequence = (0, react_1.useCallback)((seq) => {
61
- setSequences((seqs) => seqs.filter((s) => s.id !== seq));
62
- }, []);
63
- const registerAsset = (0, react_1.useCallback)((asset) => {
64
- setAssets((assts) => {
65
- return [...assts, asset];
66
- });
67
- }, []);
68
- const unregisterAsset = (0, react_1.useCallback)((id) => {
69
- setAssets((assts) => {
70
- return assts.filter((a) => a.id !== id);
71
- });
72
- }, []);
73
- const contextValue = (0, react_1.useMemo)(() => {
74
- return {
75
- compositions,
76
- registerComposition,
77
- unregisterComposition,
78
- currentComposition,
79
- setCurrentComposition,
80
- registerSequence,
81
- unregisterSequence,
82
- registerAsset,
83
- unregisterAsset,
84
- sequences,
85
- assets,
86
- };
87
- }, [
88
- compositions,
89
- currentComposition,
90
- registerComposition,
91
- registerSequence,
92
- unregisterComposition,
93
- unregisterSequence,
94
- registerAsset,
95
- unregisterAsset,
96
- sequences,
97
- assets,
98
- ]);
99
28
  const timelineContextValue = (0, react_1.useMemo)(() => {
100
29
  return {
101
30
  frame,
@@ -125,11 +54,11 @@ const RemotionRoot = ({ children }) => {
125
54
  });
126
55
  }
127
56
  }, []);
128
- return ((0, jsx_runtime_1.jsx)(nonce_1.NonceContext.Provider, Object.assign({ value: nonceContext }, { children: (0, jsx_runtime_1.jsx)(timeline_position_state_1.TimelineContext.Provider, Object.assign({ value: timelineContextValue }, { children: (0, jsx_runtime_1.jsx)(timeline_position_state_1.SetTimelineContext.Provider, Object.assign({ value: setTimelineContextValue }, { children: (0, jsx_runtime_1.jsx)(CompositionManager_1.CompositionManager.Provider, Object.assign({ value: contextValue }, { children: (0, jsx_runtime_1.jsx)(shared_audio_tags_1.SharedAudioContextProvider
57
+ return ((0, jsx_runtime_1.jsx)(nonce_1.NonceContext.Provider, Object.assign({ value: nonceContext }, { children: (0, jsx_runtime_1.jsx)(timeline_position_state_1.TimelineContext.Provider, Object.assign({ value: timelineContextValue }, { children: (0, jsx_runtime_1.jsx)(timeline_position_state_1.SetTimelineContext.Provider, Object.assign({ value: setTimelineContextValue }, { children: (0, jsx_runtime_1.jsx)(CompositionManager_1.CompositionManagerProvider, { children: (0, jsx_runtime_1.jsx)(shared_audio_tags_1.SharedAudioContextProvider
129
58
  // In the preview, which is mostly played on Desktop, we opt out of the autoplay policy fix as described in https://github.com/remotion-dev/remotion/pull/554, as it mostly applies to mobile.
130
59
  , Object.assign({
131
60
  // In the preview, which is mostly played on Desktop, we opt out of the autoplay policy fix as described in https://github.com/remotion-dev/remotion/pull/554, as it mostly applies to mobile.
132
- numberOfAudioTags: 0 }, { children: children }), void 0) }), void 0) }), void 0) }), void 0) }), void 0));
61
+ numberOfAudioTags: 0 }, { children: children }), void 0) }, void 0) }), void 0) }), void 0) }), void 0));
133
62
  };
134
63
  exports.RemotionRoot = RemotionRoot;
135
64
  //# sourceMappingURL=RemotionRoot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RemotionRoot.js","sourceRoot":"","sources":["../src/RemotionRoot.tsx"],"names":[],"mappings":";;;;AAAA,iCAMe;AACf,iEAAqE;AACrE,6DAM8B;AAC9B,mCAAoD;AACpD,qCAAgC;AAChC,mDAA4D;AAC5D,uEAKmC;AAE5B,MAAM,YAAY,GAAa,CAAC,EAAC,QAAQ,EAAC,EAAE,EAAE;;IACpD,4BAA4B;IAC5B,8DAA8D;IAC9D,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAsB,EAAE,CAAC,CAAC;IAC1E,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,IAAA,gBAAQ,EAC3D,IAAI,CACJ,CAAC;IACF,MAAM,CAAC,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC,IAAA,eAA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AC,CAAC;IAEP,MAAM,YAAY,GAAG,IAAA,eAAO,EAAC,GAAkB,EAAE;QAChD,IAAI,OAAO,GAAG,CAAC,CAAC;QAChB,OAAO;YACN,QAAQ,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE;YACzB,aAAa;SACb,CAAC;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,kBAAC,KAAK,EAAE,YAAY,gBACzC,uBAAC,yCAAe,CAAC,QAAQ,kBAAC,KAAK,EAAE,oBAAoB,gBACpD,uBAAC,4CAAkB,CAAC,QAAQ,kBAAC,KAAK,EAAE,uBAAuB,gBAC1D,uBAAC,+CAA0B,cAC1B,uBAAC,8CAA0B;oBAC1B,8LAA8L;;wBAA9L,8LAA8L;wBAC9L,iBAAiB,EAAE,CAAC,gBAEnB,QAAQ,YACmB,WACD,YACA,YACJ,YACJ,CACxB,CAAC;AACH,CAAC,CAAC;AAnEW,QAAA,YAAY,gBAmEvB"}
package/dist/Still.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StillProps } from './Composition';
2
3
  export declare const Still: <T>(props: StillProps<T>) => JSX.Element;
3
4
  //# sourceMappingURL=Still.d.ts.map
@@ -1 +1 @@
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"}
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"}
@@ -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"> & {
4
4
  volume?: import("../volume-prop").VolumeProp | undefined;
5
5
  playbackRate?: number | undefined;
6
- } & RemotionMainAudioProps, "id" | "children" | "volume" | "src" | "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" | "onEnded" | "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" | "playbackRate" | keyof RemotionMainAudioProps> & React.RefAttributes<HTMLAudioElement>>;
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" | "onEnded" | "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
@@ -4,5 +4,5 @@ export declare const AudioForDevelopment: React.ForwardRefExoticComponent<Pick<O
4
4
  playbackRate?: number | undefined;
5
5
  } & {
6
6
  shouldPreMountAudioTags: boolean;
7
- }, "id" | "children" | "volume" | "src" | "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" | "onEnded" | "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" | "playbackRate" | "shouldPreMountAudioTags"> & React.RefAttributes<HTMLAudioElement>>;
7
+ }, "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" | "onEnded" | "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" | "shouldPreMountAudioTags"> & React.RefAttributes<HTMLAudioElement>>;
8
8
  //# sourceMappingURL=AudioForDevelopment.d.ts.map