remotion 3.0.0 → 3.0.3
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/.prettierrc.js +14 -0
- package/.turbo/turbo-build.log +5 -5
- package/.turbo/turbo-lint.log +11 -11
- package/.turbo/turbo-test.log +36 -30
- package/dist/Composition.d.ts +5 -1
- package/dist/Composition.d.ts.map +1 -1
- package/dist/Composition.js +34 -1
- package/dist/Composition.js.map +1 -1
- package/dist/CompositionManager.d.ts +9 -0
- package/dist/CompositionManager.d.ts.map +1 -1
- package/dist/CompositionManager.js +26 -0
- package/dist/CompositionManager.js.map +1 -1
- package/dist/RemotionRoot.js +3 -3
- package/dist/RemotionRoot.js.map +1 -1
- package/dist/audio/Audio.d.ts +2 -2
- package/dist/audio/Audio.d.ts.map +1 -1
- package/dist/audio/Audio.js +1 -0
- package/dist/audio/Audio.js.map +1 -1
- package/dist/audio/AudioForDevelopment.d.ts +2 -2
- package/dist/audio/AudioForRendering.d.ts +1 -1
- package/dist/audio/use-frame-for-volume-prop.d.ts +6 -0
- package/dist/audio/use-frame-for-volume-prop.d.ts.map +1 -0
- package/dist/audio/use-frame-for-volume-prop.js +16 -0
- package/dist/audio/use-frame-for-volume-prop.js.map +1 -0
- package/dist/audio/use-media-starts-at.d.ts +2 -0
- package/dist/audio/use-media-starts-at.d.ts.map +1 -0
- package/dist/audio/use-media-starts-at.js +13 -0
- package/dist/audio/use-media-starts-at.js.map +1 -0
- package/dist/config/index.d.ts +3 -3
- package/dist/config/index.d.ts.map +1 -1
- package/dist/delay-render.d.ts +15 -0
- package/dist/delay-render.d.ts.map +1 -0
- package/dist/delay-render.js +78 -0
- package/dist/delay-render.js.map +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/internals.d.ts +5 -5
- package/dist/internals.d.ts.map +1 -1
- package/dist/internals.js +13 -13
- package/dist/internals.js.map +1 -1
- package/dist/use-video-config.d.ts.map +1 -1
- package/dist/validation/validate-folder-name.d.ts +4 -0
- package/dist/validation/validate-folder-name.d.ts.map +1 -0
- package/dist/validation/validate-folder-name.js +20 -0
- package/dist/validation/validate-folder-name.js.map +1 -0
- package/dist/video/Video.d.ts +2 -2
- package/dist/video/VideoForDevelopment.d.ts +1 -1
- package/dist/video/VideoForRendering.d.ts +1 -1
- package/dist/video/VideoForRendering.d.ts.map +1 -1
- package/dist/video/VideoForRendering.js +17 -11
- package/dist/video/VideoForRendering.js.map +1 -1
- package/package.json +4 -4
- package/dist/any-component.d.ts +0 -4
- package/dist/any-component.d.ts.map +0 -1
- package/dist/any-component.js +0 -3
- package/dist/any-component.js.map +0 -1
- package/dist/config/frames-per-lambda.d.ts +0 -3
- package/dist/config/frames-per-lambda.d.ts.map +0 -1
- package/dist/config/frames-per-lambda.js +0 -13
- package/dist/config/frames-per-lambda.js.map +0 -1
- package/dist/is-remote-asset.d.ts +0 -2
- package/dist/is-remote-asset.d.ts.map +0 -1
- package/dist/is-remote-asset.js +0 -8
- package/dist/is-remote-asset.js.map +0 -1
package/.prettierrc.js
ADDED
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
[
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
1
|
+
[32mremotion:build: [0mcache hit, replaying output [2m67d97c52df6ef27f[0m
|
|
2
|
+
[32mremotion:build: [0m
|
|
3
|
+
[32mremotion:build: [0m> remotion@3.0.2 build /Users/jonathanburger/remotion/packages/core
|
|
4
|
+
[32mremotion:build: [0m> tsc -d
|
|
5
|
+
[32mremotion:build: [0m
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
[
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[
|
|
1
|
+
[34mremotion:lint: [0mcache hit, replaying output [2m2b460f5126a54cd2[0m
|
|
2
|
+
[34mremotion:lint: [0m
|
|
3
|
+
[34mremotion:lint: [0m> remotion@3.0.0 lint /Users/jonathanburger/remotion/packages/core
|
|
4
|
+
[34mremotion:lint: [0m> eslint src --ext ts,tsx
|
|
5
|
+
[34mremotion:lint: [0m
|
|
6
|
+
[34mremotion:lint: [0m
|
|
7
|
+
[34mremotion:lint: [0m/Users/jonathanburger/remotion/packages/core/src/use-lazy-component.ts
|
|
8
|
+
[34mremotion:lint: [0m 9:50 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
9
|
+
[34mremotion:lint: [0m
|
|
10
|
+
[34mremotion:lint: [0m✖ 1 problem (0 errors, 1 warning)
|
|
11
|
+
[34mremotion:lint: [0m
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
[34mremotion:test: [0mcache hit, replaying output [
|
|
1
|
+
[34mremotion:test: [0mcache hit, replaying output [2me3ba0eb77bd61cd6[0m
|
|
2
2
|
[34mremotion:test: [0m
|
|
3
|
-
[34mremotion:test: [0m> remotion@
|
|
3
|
+
[34mremotion:test: [0m> remotion@3.0.0 test /Users/jonathanburger/remotion/packages/core
|
|
4
4
|
[34mremotion:test: [0m> jest --coverage && node generate-badges.js
|
|
5
5
|
[34mremotion:test: [0m
|
|
6
|
+
[34mremotion:test: [0mwatchman warning: Recrawled this watch 15 times, most recently because:
|
|
7
|
+
[34mremotion:test: [0mMustScanSubDirs UserDroppedTo resolve, please review the information on
|
|
8
|
+
[34mremotion:test: [0mhttps://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
|
|
9
|
+
[34mremotion:test: [0mTo clear this warning, run:
|
|
10
|
+
[34mremotion:test: [0m`watchman watch-del '/Users/jonathanburger/remotion' ; watchman watch-project '/Users/jonathanburger/remotion'`
|
|
11
|
+
[34mremotion:test: [0m
|
|
6
12
|
[34mremotion:test: [0mBrowserslist: caniuse-lite is outdated. Please run:
|
|
7
13
|
[34mremotion:test: [0m npx browserslist@latest --update-db
|
|
8
14
|
[34mremotion:test: [0m Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
|
|
@@ -12,67 +18,67 @@
|
|
|
12
18
|
[34mremotion:test: [0mBrowserslist: caniuse-lite is outdated. Please run:
|
|
13
19
|
[34mremotion:test: [0m npx browserslist@latest --update-db
|
|
14
20
|
[34mremotion:test: [0m Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
|
|
21
|
+
[34mremotion:test: [0mPASS src/test/easing.test.ts (11.085 s)
|
|
22
|
+
[34mremotion:test: [0mPASS src/test/crf.test.ts (11.217 s)
|
|
23
|
+
[34mremotion:test: [0mPASS src/test/interpolate.test.ts (11.633 s)
|
|
15
24
|
[34mremotion:test: [0mBrowserslist: caniuse-lite is outdated. Please run:
|
|
16
25
|
[34mremotion:test: [0m npx browserslist@latest --update-db
|
|
17
26
|
[34mremotion:test: [0m Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
|
|
18
|
-
[34mremotion:test: [0mPASS src/test/
|
|
19
|
-
[34mremotion:test: [0mPASS src/test/easing.test.ts (23.331 s)
|
|
20
|
-
[34mremotion:test: [0mPASS src/test/interpolate.test.ts (23.825 s)
|
|
27
|
+
[34mremotion:test: [0mPASS src/test/volume-prop.test.ts
|
|
21
28
|
[34mremotion:test: [0mBrowserslist: caniuse-lite is outdated. Please run:
|
|
22
29
|
[34mremotion:test: [0m npx browserslist@latest --update-db
|
|
23
30
|
[34mremotion:test: [0m Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
|
|
24
|
-
[34mremotion:test: [0mPASS src/test/volume-prop.test.ts
|
|
25
31
|
[34mremotion:test: [0mBrowserslist: caniuse-lite is outdated. Please run:
|
|
26
32
|
[34mremotion:test: [0m npx browserslist@latest --update-db
|
|
27
33
|
[34mremotion:test: [0m Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
|
|
28
34
|
[34mremotion:test: [0mPASS src/test/interpolateColors.test.ts
|
|
35
|
+
[34mremotion:test: [0mPASS src/test/nested-sequences.test.tsx (15.341 s)
|
|
29
36
|
[34mremotion:test: [0mPASS src/test/pixel-format.test.ts
|
|
30
37
|
[34mremotion:test: [0mBrowserslist: caniuse-lite is outdated. Please run:
|
|
31
38
|
[34mremotion:test: [0m npx browserslist@latest --update-db
|
|
32
39
|
[34mremotion:test: [0m Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
|
|
33
|
-
[34mremotion:test: [0mPASS src/test/nested-sequences.test.tsx (30.022 s)
|
|
34
40
|
[34mremotion:test: [0mPASS src/test/media-validation.test.tsx
|
|
35
|
-
[34mremotion:test: [0mPASS src/test/image-format.test.ts
|
|
36
41
|
[34mremotion:test: [0mPASS src/test/random.test.ts
|
|
42
|
+
[34mremotion:test: [0mPASS src/test/image-format.test.ts
|
|
37
43
|
[34mremotion:test: [0mPASS src/test/codec.test.ts
|
|
38
44
|
[34mremotion:test: [0mPASS src/test/get-current-time.test.ts
|
|
39
|
-
[34mremotion:test: [0mPASS src/test/sequence-validation.test.tsx
|
|
40
|
-
[34mremotion:test: [0mPASS src/test/range.test.tsx (
|
|
41
|
-
[34mremotion:test: [0mPASS src/test/audio-for-rendering.test.tsx (
|
|
42
|
-
[34mremotion:test: [0mPASS src/test/use-audio-frame.test.tsx
|
|
45
|
+
[34mremotion:test: [0mPASS src/test/sequence-validation.test.tsx (6.454 s)
|
|
46
|
+
[34mremotion:test: [0mPASS src/test/range.test.tsx (14.861 s)
|
|
47
|
+
[34mremotion:test: [0mPASS src/test/audio-for-rendering.test.tsx (13.478 s)
|
|
48
|
+
[34mremotion:test: [0mPASS src/test/use-audio-frame.test.tsx (5.065 s)
|
|
43
49
|
[34mremotion:test: [0mPASS src/test/validate-start-from-props.test.ts
|
|
44
|
-
[34mremotion:test: [0mPASS src/test/composition-rules.test.tsx (
|
|
45
|
-
[34mremotion:test: [0mPASS src/test/
|
|
46
|
-
[34mremotion:test: [0mPASS src/test/
|
|
47
|
-
[34mremotion:test: [0mPASS src/test/
|
|
48
|
-
[34mremotion:test: [0mPASS src/test/
|
|
50
|
+
[34mremotion:test: [0mPASS src/test/composition-rules.test.tsx (11.868 s)
|
|
51
|
+
[34mremotion:test: [0mPASS src/test/composition-validation.test.tsx (39.901 s)
|
|
52
|
+
[34mremotion:test: [0mPASS src/test/series.test.tsx (40.013 s)
|
|
53
|
+
[34mremotion:test: [0mPASS src/test/loop-validation.test.tsx (41.175 s)
|
|
54
|
+
[34mremotion:test: [0mPASS src/test/measure-spring.test.ts
|
|
55
|
+
[34mremotion:test: [0mPASS src/test/freeze.test.tsx (18.901 s)
|
|
49
56
|
[34mremotion:test: [0mPASS src/test/use-sync-volume-with-media-tag.test.ts
|
|
50
57
|
[34mremotion:test: [0mPASS src/test/log.test.ts
|
|
51
|
-
[34mremotion:test: [0mPASS src/test/
|
|
52
|
-
[34mremotion:test: [0mPASS src/test/measure-spring.test.ts
|
|
53
|
-
[34mremotion:test: [0mPASS src/test/use-media-tag-volume.test.tsx
|
|
54
|
-
[34mremotion:test: [0mPASS src/test/bezier.test.ts
|
|
55
|
-
[34mremotion:test: [0mPASS src/test/video.test.tsx (7.679 s)
|
|
58
|
+
[34mremotion:test: [0mPASS src/test/video.test.tsx (19.003 s)
|
|
56
59
|
[34mremotion:test: [0mPASS src/test/pro-res-profile.test.ts
|
|
57
|
-
[34mremotion:test: [0mPASS src/test/
|
|
58
|
-
[34mremotion:test: [0mPASS src/test/
|
|
60
|
+
[34mremotion:test: [0mPASS src/test/use-media-tag-volume.test.tsx (5.726 s)
|
|
61
|
+
[34mremotion:test: [0mPASS src/test/bezier.test.ts
|
|
59
62
|
[34mremotion:test: [0mPASS src/test/image-sequence.test.ts
|
|
63
|
+
[34mremotion:test: [0mPASS src/test/quality.test.ts
|
|
60
64
|
[34mremotion:test: [0mPASS src/test/concurrency.test.ts
|
|
61
|
-
[34mremotion:test: [0mPASS src/test/use-media-in-timeline.test.tsx
|
|
62
|
-
[34mremotion:test: [0mPASS src/test/webpack-caching.test.ts
|
|
63
|
-
[34mremotion:test: [0mPASS src/test/input-props.test.ts
|
|
64
65
|
[34mremotion:test: [0mPASS src/test/validate-frame.test.ts
|
|
66
|
+
[34mremotion:test: [0mPASS src/test/overwrite.test.ts
|
|
67
|
+
[34mremotion:test: [0mPASS src/test/audio.test.tsx (13.874 s)
|
|
65
68
|
[34mremotion:test: [0mPASS src/test/preview-server.test.ts
|
|
66
|
-
[34mremotion:test: [0mPASS src/test/
|
|
69
|
+
[34mremotion:test: [0mPASS src/test/input-props.test.ts
|
|
67
70
|
[34mremotion:test: [0mPASS src/test/ready-manager.test.ts
|
|
68
|
-
[34mremotion:test: [0mPASS src/test/
|
|
71
|
+
[34mremotion:test: [0mPASS src/test/use-media-in-timeline.test.tsx (7.027 s)
|
|
69
72
|
[34mremotion:test: [0mPASS src/test/get-asset-file-name.test.ts
|
|
73
|
+
[34mremotion:test: [0mPASS src/test/webpack-caching.test.ts
|
|
74
|
+
[34mremotion:test: [0mPASS src/test/spring.test.ts
|
|
70
75
|
[34mremotion:test: [0mPASS src/test/truthy.test.ts
|
|
71
76
|
[34mremotion:test: [0mPASS src/test/absolute-src.test.ts
|
|
77
|
+
[34mremotion:test: [0mPASS src/test/validate-image-format.test.ts
|
|
72
78
|
[34mremotion:test: [0mPASS src/test/Img.test.tsx
|
|
73
79
|
[34mremotion:test: [0m
|
|
74
80
|
[34mremotion:test: [0mTest Suites: 46 passed, 46 total
|
|
75
81
|
[34mremotion:test: [0mTests: 474 passed, 474 total
|
|
76
82
|
[34mremotion:test: [0mSnapshots: 0 total
|
|
77
|
-
[34mremotion:test: [0mTime:
|
|
83
|
+
[34mremotion:test: [0mTime: 56.337 s
|
|
78
84
|
[34mremotion:test: [0mRan all test suites.
|
package/dist/Composition.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import React, { ComponentType } from 'react';
|
|
1
|
+
import React, { ComponentType, FC } from 'react';
|
|
2
|
+
export declare const Folder: FC<{
|
|
3
|
+
name: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}>;
|
|
2
6
|
declare type LooseComponentType<T> = ComponentType<T> | ((props: T) => React.ReactNode);
|
|
3
7
|
export declare type CompProps<T> = {
|
|
4
8
|
lazyComponent: () => Promise<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Composition.d.ts","sourceRoot":"","sources":["../src/Composition.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Composition.d.ts","sourceRoot":"","sources":["../src/Composition.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACb,aAAa,EAEb,EAAE,EAIF,MAAM,OAAO,CAAC;AAqBf,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAC,CAgChE,CAAC;AAEF,aAAK,kBAAkB,CAAC,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;AAEhF,oBAAY,SAAS,CAAC,CAAC,IACpB;IACA,aAAa,EAAE,MAAM,OAAO,CAAC;QAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,CAAC;CAC9D,GACD;IACA,SAAS,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;CAChC,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,4GAgEvB,CAAC"}
|
package/dist/Composition.js
CHANGED
|
@@ -1,18 +1,47 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Composition = void 0;
|
|
3
|
+
exports.Composition = exports.Folder = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
5
|
const react_1 = require("react");
|
|
5
6
|
const CompositionManager_1 = require("./CompositionManager");
|
|
6
7
|
const nonce_1 = require("./nonce");
|
|
8
|
+
const truthy_1 = require("./truthy");
|
|
7
9
|
const use_lazy_component_1 = require("./use-lazy-component");
|
|
8
10
|
const validate_composition_id_1 = require("./validation/validate-composition-id");
|
|
9
11
|
const validate_dimensions_1 = require("./validation/validate-dimensions");
|
|
10
12
|
const validate_duration_in_frames_1 = require("./validation/validate-duration-in-frames");
|
|
13
|
+
const validate_folder_name_1 = require("./validation/validate-folder-name");
|
|
11
14
|
const validate_fps_1 = require("./validation/validate-fps");
|
|
15
|
+
const FolderContext = (0, react_1.createContext)({
|
|
16
|
+
folderName: null,
|
|
17
|
+
parentName: null,
|
|
18
|
+
});
|
|
19
|
+
const Folder = ({ name, children, }) => {
|
|
20
|
+
const parent = (0, react_1.useContext)(FolderContext);
|
|
21
|
+
const { registerFolder, unregisterFolder } = (0, react_1.useContext)(CompositionManager_1.CompositionManager);
|
|
22
|
+
(0, validate_folder_name_1.validateFolderName)(name);
|
|
23
|
+
const parentNameArr = [parent.parentName, parent.folderName].filter(truthy_1.truthy);
|
|
24
|
+
const parentName = parentNameArr.length === 0 ? null : parentNameArr.join('/');
|
|
25
|
+
const value = (0, react_1.useMemo)(() => {
|
|
26
|
+
return {
|
|
27
|
+
folderName: name,
|
|
28
|
+
parentName,
|
|
29
|
+
};
|
|
30
|
+
}, [name, parentName]);
|
|
31
|
+
(0, react_1.useEffect)(() => {
|
|
32
|
+
registerFolder(name, parentName);
|
|
33
|
+
return () => {
|
|
34
|
+
unregisterFolder(name, parentName);
|
|
35
|
+
};
|
|
36
|
+
}, [name, parent.folderName, parentName, registerFolder, unregisterFolder]);
|
|
37
|
+
return ((0, jsx_runtime_1.jsx)(FolderContext.Provider, { value: value, children: children }, void 0));
|
|
38
|
+
};
|
|
39
|
+
exports.Folder = Folder;
|
|
12
40
|
const Composition = ({ width, height, fps, durationInFrames, id, defaultProps, ...compProps }) => {
|
|
13
41
|
const { registerComposition, unregisterComposition } = (0, react_1.useContext)(CompositionManager_1.CompositionManager);
|
|
14
42
|
const lazy = (0, use_lazy_component_1.useLazyComponent)(compProps);
|
|
15
43
|
const nonce = (0, nonce_1.useNonce)();
|
|
44
|
+
const { folderName, parentName } = (0, react_1.useContext)(FolderContext);
|
|
16
45
|
(0, react_1.useEffect)(() => {
|
|
17
46
|
// Ensure it's a URL safe id
|
|
18
47
|
if (!id) {
|
|
@@ -29,9 +58,11 @@ const Composition = ({ width, height, fps, durationInFrames, id, defaultProps, .
|
|
|
29
58
|
height,
|
|
30
59
|
width,
|
|
31
60
|
id,
|
|
61
|
+
folderName,
|
|
32
62
|
component: lazy,
|
|
33
63
|
defaultProps,
|
|
34
64
|
nonce,
|
|
65
|
+
parentFolderName: parentName,
|
|
35
66
|
});
|
|
36
67
|
return () => {
|
|
37
68
|
unregisterComposition(id);
|
|
@@ -42,11 +73,13 @@ const Composition = ({ width, height, fps, durationInFrames, id, defaultProps, .
|
|
|
42
73
|
height,
|
|
43
74
|
lazy,
|
|
44
75
|
id,
|
|
76
|
+
folderName,
|
|
45
77
|
defaultProps,
|
|
46
78
|
registerComposition,
|
|
47
79
|
unregisterComposition,
|
|
48
80
|
width,
|
|
49
81
|
nonce,
|
|
82
|
+
parentName,
|
|
50
83
|
]);
|
|
51
84
|
return null;
|
|
52
85
|
};
|
package/dist/Composition.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Composition.js","sourceRoot":"","sources":["../src/Composition.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Composition.js","sourceRoot":"","sources":["../src/Composition.tsx"],"names":[],"mappings":";;;;AAAA,iCAOe;AACf,6DAAwD;AACxD,mCAAiC;AACjC,qCAAgC;AAChC,6DAAsD;AACtD,kFAA2E;AAC3E,0EAAmE;AACnE,0FAAkF;AAClF,4EAAqE;AACrE,4DAAsD;AAOtD,MAAM,aAAa,GAAG,IAAA,qBAAa,EAAoB;IACtD,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;CAChB,CAAC,CAAC;AAEI,MAAM,MAAM,GAAkD,CAAC,EACrE,IAAI,EACJ,QAAQ,GACR,EAAE,EAAE;IACJ,MAAM,MAAM,GAAG,IAAA,kBAAU,EAAC,aAAa,CAAC,CAAC;IACzC,MAAM,EAAC,cAAc,EAAE,gBAAgB,EAAC,GAAG,IAAA,kBAAU,EAAC,uCAAkB,CAAC,CAAC;IAE1E,IAAA,yCAAkB,EAAC,IAAI,CAAC,CAAC;IAEzB,MAAM,aAAa,GAAG,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,eAAM,CAAC,CAAC;IAE5E,MAAM,UAAU,GACf,aAAa,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAE7D,MAAM,KAAK,GAAG,IAAA,eAAO,EAAC,GAAsB,EAAE;QAC7C,OAAO;YACN,UAAU,EAAE,IAAI;YAChB,UAAU;SACV,CAAC;IACH,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC;IAEvB,IAAA,iBAAS,EAAC,GAAG,EAAE;QACd,cAAc,CAAC,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,2CAA2C,CAAC,CAAC;QAC9D,mBAAmB,CAAI;YACtB,gBAAgB;YAChB,GAAG;YACH,MAAM;YACN,KAAK;YACL,EAAE;YACF,UAAU;YACV,SAAS,EAAE,IAAI;YACf,YAAY;YACZ,KAAK;YACL,gBAAgB,EAAE,UAAU;SAC5B,CAAC,CAAC;QAEH,OAAO,GAAG,EAAE;YACX,qBAAqB,CAAC,EAAE,CAAC,CAAC;QAC3B,CAAC,CAAC;IACH,CAAC,EAAE;QACF,gBAAgB;QAChB,GAAG;QACH,MAAM;QACN,IAAI;QACJ,EAAE;QACF,UAAU;QACV,YAAY;QACZ,mBAAmB;QACnB,qBAAqB;QACrB,KAAK;QACL,KAAK;QACL,UAAU;KACV,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AACb,CAAC,CAAC;AAhEW,QAAA,WAAW,eAgEtB"}
|
|
@@ -5,6 +5,8 @@ export declare type TComposition<T = unknown> = {
|
|
|
5
5
|
fps: number;
|
|
6
6
|
durationInFrames: number;
|
|
7
7
|
id: string;
|
|
8
|
+
folderName: string | null;
|
|
9
|
+
parentFolderName: string | null;
|
|
8
10
|
component: LazyExoticComponent<ComponentType<T>>;
|
|
9
11
|
defaultProps: T | undefined;
|
|
10
12
|
nonce: number;
|
|
@@ -56,6 +58,8 @@ export declare type CompositionManagerContext = {
|
|
|
56
58
|
compositions: TComposition[];
|
|
57
59
|
registerComposition: <T>(comp: TComposition<T>) => void;
|
|
58
60
|
unregisterComposition: (name: string) => void;
|
|
61
|
+
registerFolder: (name: string, parent: string | null) => void;
|
|
62
|
+
unregisterFolder: (name: string, parent: string | null) => void;
|
|
59
63
|
currentComposition: string | null;
|
|
60
64
|
setCurrentComposition: (curr: string) => void;
|
|
61
65
|
registerSequence: (seq: TSequence) => void;
|
|
@@ -64,11 +68,16 @@ export declare type CompositionManagerContext = {
|
|
|
64
68
|
unregisterAsset: (id: string) => void;
|
|
65
69
|
sequences: TSequence[];
|
|
66
70
|
assets: TAsset[];
|
|
71
|
+
folders: TFolder[];
|
|
67
72
|
};
|
|
68
73
|
export declare const CompositionManager: React.Context<CompositionManagerContext>;
|
|
69
74
|
export declare const compositionsRef: React.RefObject<{
|
|
70
75
|
getCompositions: () => TCompMetadata[];
|
|
71
76
|
}>;
|
|
77
|
+
export declare type TFolder = {
|
|
78
|
+
name: string;
|
|
79
|
+
parent: string | null;
|
|
80
|
+
};
|
|
72
81
|
export declare const CompositionManagerProvider: React.FC<{
|
|
73
82
|
children: React.ReactNode;
|
|
74
83
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompositionManager.d.ts","sourceRoot":"","sources":["../src/CompositionManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACb,aAAa,EAEb,mBAAmB,EAMnB,MAAM,OAAO,CAAC;AAEf,oBAAY,YAAY,CAAC,CAAC,GAAG,OAAO,IAAI;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,mBAAmB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;IACjD,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,oBAAY,aAAa,GAAG,IAAI,CAC/B,YAAY,EACZ,IAAI,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,kBAAkB,GAAG,cAAc,CACvE,CAAC;AAEF,oBAAY,kBAAkB,GAAG,IAAI,CACpC,YAAY,EACZ,IAAI,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,kBAAkB,CACtD,CAAC;AAEF,aAAK,qBAAqB,GACvB;IACA,IAAI,EAAE,UAAU,CAAC;CAChB,GACD;IACA,IAAI,EAAE,OAAO,CAAC;IACd,GAAG,EAAE,MAAM,CA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AAC;IACjD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAmIA,CAAC"}
|
|
@@ -26,6 +26,8 @@ exports.CompositionManager = (0, react_1.createContext)({
|
|
|
26
26
|
compositions: [],
|
|
27
27
|
registerComposition: () => undefined,
|
|
28
28
|
unregisterComposition: () => undefined,
|
|
29
|
+
registerFolder: () => undefined,
|
|
30
|
+
unregisterFolder: () => undefined,
|
|
29
31
|
currentComposition: null,
|
|
30
32
|
setCurrentComposition: () => undefined,
|
|
31
33
|
registerSequence: () => undefined,
|
|
@@ -34,6 +36,7 @@ exports.CompositionManager = (0, react_1.createContext)({
|
|
|
34
36
|
unregisterAsset: () => undefined,
|
|
35
37
|
sequences: [],
|
|
36
38
|
assets: [],
|
|
39
|
+
folders: [],
|
|
37
40
|
});
|
|
38
41
|
exports.compositionsRef = react_1.default.createRef();
|
|
39
42
|
const CompositionManagerProvider = ({ children }) => {
|
|
@@ -42,6 +45,7 @@ const CompositionManagerProvider = ({ children }) => {
|
|
|
42
45
|
const [compositions, setCompositions] = (0, react_1.useState)([]);
|
|
43
46
|
const [currentComposition, setCurrentComposition] = (0, react_1.useState)(null);
|
|
44
47
|
const [assets, setAssets] = (0, react_1.useState)([]);
|
|
48
|
+
const [folders, setFolders] = (0, react_1.useState)([]);
|
|
45
49
|
const [sequences, setSequences] = (0, react_1.useState)([]);
|
|
46
50
|
const registerComposition = (0, react_1.useCallback)((comp) => {
|
|
47
51
|
setCompositions((comps) => {
|
|
@@ -74,6 +78,22 @@ const CompositionManagerProvider = ({ children }) => {
|
|
|
74
78
|
return assts.filter((a) => a.id !== id);
|
|
75
79
|
});
|
|
76
80
|
}, []);
|
|
81
|
+
const registerFolder = (0, react_1.useCallback)((name, parent) => {
|
|
82
|
+
setFolders((prevFolders) => {
|
|
83
|
+
return [
|
|
84
|
+
...prevFolders,
|
|
85
|
+
{
|
|
86
|
+
name,
|
|
87
|
+
parent,
|
|
88
|
+
},
|
|
89
|
+
];
|
|
90
|
+
});
|
|
91
|
+
}, []);
|
|
92
|
+
const unregisterFolder = (0, react_1.useCallback)((name, parent) => {
|
|
93
|
+
setFolders((prevFolders) => {
|
|
94
|
+
return prevFolders.filter((p) => !(p.name === name && p.parent === parent));
|
|
95
|
+
});
|
|
96
|
+
}, []);
|
|
77
97
|
(0, react_1.useLayoutEffect)(() => {
|
|
78
98
|
if (typeof window !== 'undefined') {
|
|
79
99
|
window.remotion_collectAssets = () => {
|
|
@@ -100,6 +120,9 @@ const CompositionManagerProvider = ({ children }) => {
|
|
|
100
120
|
unregisterAsset,
|
|
101
121
|
sequences,
|
|
102
122
|
assets,
|
|
123
|
+
folders,
|
|
124
|
+
registerFolder,
|
|
125
|
+
unregisterFolder,
|
|
103
126
|
};
|
|
104
127
|
}, [
|
|
105
128
|
compositions,
|
|
@@ -112,6 +135,9 @@ const CompositionManagerProvider = ({ children }) => {
|
|
|
112
135
|
unregisterAsset,
|
|
113
136
|
sequences,
|
|
114
137
|
assets,
|
|
138
|
+
registerFolder,
|
|
139
|
+
unregisterFolder,
|
|
140
|
+
folders,
|
|
115
141
|
]);
|
|
116
142
|
return ((0, jsx_runtime_1.jsx)(exports.CompositionManager.Provider, { value: contextValue, children: children }, void 0));
|
|
117
143
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompositionManager.js","sourceRoot":"","sources":["../src/CompositionManager.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,+CASe;
|
|
1
|
+
{"version":3,"file":"CompositionManager.js","sourceRoot":"","sources":["../src/CompositionManager.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,+CASe;AA8FF,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,cAAc,EAAE,GAAG,EAAE,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AAmB,EAClB,uBAAe,EACf,GAAG,EAAE;QACJ,OAAO;YACN,eAAe,EAAE,GAAG,EAAE,CAAC,YAAY;SACnC,CAAC;IACH,CAAC,EACD,CAAC,YAAY,CAAC,CACd,CAAC;IAEF,MAAM,YAAY,GAAG,IAAA,eAAO,EAAC,GAA8B,EAAE;QAC5D,OAAO;YACN,YAAY;YACZ,mBAAmB;YACnB,qBAAqB;YACrB,kBAAkB;YAClB,qBAAqB;YACrB,gBAAgB;YAChB,kBAAkB;YAClB,aAAa;YACb,eAAe;YACf,SAAS;YACT,MAAM;YACN,OAAO;YACP,cAAc;YACd,gBAAgB;SAChB,CAAC;IACH,CAAC,EAAE;QACF,YAAY;QACZ,kBAAkB;QAClB,mBAAmB;QACnB,gBAAgB;QAChB,qBAAqB;QACrB,kBAAkB;QAClB,aAAa;QACb,eAAe;QACf,SAAS;QACT,MAAM;QACN,cAAc;QACd,gBAAgB;QAChB,OAAO;KACP,CAAC,CAAC;IAEH,OAAO,CACN,uBAAC,0BAAkB,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,YAC9C,QAAQ,WACoB,CAC9B,CAAC;AACH,CAAC,CAAC;AArIW,QAAA,0BAA0B,8BAqIrC"}
|
package/dist/RemotionRoot.js
CHANGED
|
@@ -5,9 +5,9 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const shared_audio_tags_1 = require("./audio/shared-audio-tags");
|
|
7
7
|
const CompositionManager_1 = require("./CompositionManager");
|
|
8
|
+
const delay_render_1 = require("./delay-render");
|
|
8
9
|
const nonce_1 = require("./nonce");
|
|
9
10
|
const random_1 = require("./random");
|
|
10
|
-
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;
|
|
@@ -21,9 +21,9 @@ 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,
|
|
24
|
+
const id = (0, delay_render_1.delayRender)(`Setting the current frame to ${f}`);
|
|
25
25
|
setFrame(f);
|
|
26
|
-
requestAnimationFrame(() => (0,
|
|
26
|
+
requestAnimationFrame(() => (0, delay_render_1.continueRender)(id));
|
|
27
27
|
};
|
|
28
28
|
window.remotion_isPlayer = false;
|
|
29
29
|
}
|
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,
|
|
1
|
+
{"version":3,"file":"RemotionRoot.js","sourceRoot":"","sources":["../src/RemotionRoot.tsx"],"names":[],"mappings":";;;;AAAA,iCAMe;AACf,iEAAqE;AACrE,6DAAgE;AAChE,iDAA2D;AAC3D,mCAAoD;AACpD,qCAAgC;AAChC,uEAMmC;AAE5B,MAAM,YAAY,GAEpB,CAAC,EAAC,QAAQ,EAAC,EAAE,EAAE;;IACnB,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,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAU,KAAK,CAAC,CAAC;IACvD,MAAM,iBAAiB,GAAG,IAAA,cAAM,EAAU,KAAK,CAAC,CAAC;IACjD,MAAM,CAAC,aAAa,EAAE,gBAAgB,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E,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;AA5EW,QAAA,YAAY,gBA4EvB"}
|
package/dist/audio/Audio.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RemotionMainAudioProps } from './props';
|
|
3
|
-
export declare const Audio: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "
|
|
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, "
|
|
6
|
+
} & RemotionMainAudioProps, "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "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" | "children" | "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" | "volume" | "playbackRate" | keyof RemotionMainAudioProps> & React.RefAttributes<HTMLAudioElement>>;
|
|
7
7
|
//# sourceMappingURL=Audio.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Audio.d.ts","sourceRoot":"","sources":["../../src/audio/Audio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAOjE,OAAO,EAAqB,sBAAsB,EAAC,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Audio.d.ts","sourceRoot":"","sources":["../../src/audio/Audio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAOjE,OAAO,EAAqB,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAuDnE,eAAO,MAAM,KAAK;;;usJAAyC,CAAC"}
|
package/dist/audio/Audio.js
CHANGED
|
@@ -14,6 +14,7 @@ const AudioRefForwardingFunction = (props, ref) => {
|
|
|
14
14
|
const audioContext = (0, react_1.useContext)(shared_audio_tags_1.SharedAudioContext);
|
|
15
15
|
const { startFrom, endAt, ...otherProps } = props;
|
|
16
16
|
const onError = (0, react_1.useCallback)((e) => {
|
|
17
|
+
console.log(e.currentTarget.error);
|
|
17
18
|
throw new Error(`Could not play audio with src ${otherProps.src}: ${e.currentTarget.error}`);
|
|
18
19
|
}, [otherProps.src]);
|
|
19
20
|
if (typeof startFrom !== 'undefined' || typeof endAt !== 'undefined') {
|
package/dist/audio/Audio.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Audio.js","sourceRoot":"","sources":["../../src/audio/Audio.tsx"],"names":[],"mappings":";;;;AAAA,iCAAiE;AACjE,wDAA0D;AAC1D,8CAAuC;AACvC,kEAA2D;AAC3D,4EAAoE;AACpE,+DAA0D;AAC1D,2DAAsD;AAEtD,2DAAuD;AAEvD,MAAM,0BAA0B,GAG5B,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAClB,MAAM,YAAY,GAAG,IAAA,kBAAU,EAAC,sCAAkB,CAAC,CAAC;IACpD,MAAM,EAAC,SAAS,EAAE,KAAK,EAAE,GAAG,UAAU,EAAC,GAAG,KAAK,CAAC;IAEhD,MAAM,OAAO,GAA8C,IAAA,mBAAW,EACrE,CAAC,CAAC,EAAE,EAAE;QACL,MAAM,IAAI,KAAK,CACd,iCAAiC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,aAAa,CAAC,KAAK,EAAE,CAC3E,CAAC;IACH,CAAC,EACD,CAAC,UAAU,CAAC,GAAG,CAAC,CAChB,CAAC;IAEF,IAAI,OAAO,SAAS,KAAK,WAAW,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE;QACrE,IAAA,kDAAsB,EAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAEzC,MAAM,gBAAgB,GAAG,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,CAAC,CAAC;QACxC,MAAM,YAAY,GAAG,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,QAAQ,CAAC;QACvC,OAAO,CACN,uBAAC,qBAAQ,IACR,MAAM,EAAC,MAAM,EACb,IAAI,EAAE,CAAC,GAAG,gBAAgB,EAC1B,cAAc,EAAE,KAAK,EACrB,g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AC3E,CAAC;IACH,CAAC,EACD,CAAC,UAAU,CAAC,GAAG,CAAC,CAChB,CAAC;IAEF,IAAI,OAAO,SAAS,KAAK,WAAW,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE;QACrE,IAAA,kDAAsB,EAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAEzC,MAAM,gBAAgB,GAAG,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,CAAC,CAAC;QACxC,MAAM,YAAY,GAAG,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,QAAQ,CAAC;QACvC,OAAO,CACN,uBAAC,qBAAQ,IACR,MAAM,EAAC,MAAM,EACb,IAAI,EAAE,CAAC,GAAG,gBAAgB,EAC1B,cAAc,EAAE,KAAK,EACrB,gBAAgB,EAAE,YAAY,YAE9B,uBAAC,aAAK,OAAK,UAAU,EAAE,GAAG,EAAE,GAAG,WAAI,WACzB,CACX,CAAC;KACF;IAED,IAAA,yCAAkB,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAEnC,IAAI,IAAA,wCAAsB,GAAE,KAAK,WAAW,EAAE;QAC7C,OAAO,uBAAC,qCAAiB,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,WAAI,CAAC;KACpE;IAED,OAAO,CACN,uBAAC,yCAAmB,IACnB,uBAAuB,EACtB,YAAY,KAAK,IAAI,IAAI,YAAY,CAAC,iBAAiB,GAAG,CAAC,KAExD,KAAK,EACT,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,OAAO,WACf,CACF,CAAC;AACH,CAAC,CAAC;AAEW,QAAA,KAAK,GAAG,IAAA,kBAAU,EAAC,0BAA0B,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const AudioForDevelopment: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "
|
|
2
|
+
export declare const AudioForDevelopment: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "autoPlay" | "controls" | "loop" | "onEnded"> & {
|
|
3
3
|
volume?: import("../volume-prop").VolumeProp | undefined;
|
|
4
4
|
playbackRate?: number | undefined;
|
|
5
5
|
} & {
|
|
6
6
|
shouldPreMountAudioTags: boolean;
|
|
7
|
-
}, "
|
|
7
|
+
}, "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "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" | "children" | "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" | "volume" | "playbackRate" | "shouldPreMountAudioTags"> & React.RefAttributes<HTMLAudioElement>>;
|
|
8
8
|
//# sourceMappingURL=AudioForDevelopment.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, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-frame-for-volume-prop.d.ts","sourceRoot":"","sources":["../../src/audio/use-frame-for-volume-prop.tsx"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,qBAAqB,cAIjC,CAAC"}
|