remotion 2.5.0-alpha.ee579a98 → 3.0.0-lambda.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +41 -0
- package/coverage/coverage-summary.json +2 -2
- package/dist/CompositionManager.d.ts +1 -0
- package/dist/CompositionManager.d.ts.map +1 -1
- package/dist/CompositionManager.js.map +1 -1
- package/dist/audio/Audio.d.ts +1 -1
- package/dist/audio/AudioForDevelopment.d.ts +1 -1
- package/dist/audio/AudioForRendering.d.ts +1 -1
- package/dist/config/image-format.d.ts +1 -1
- package/dist/config/index.d.ts +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/internals.d.ts +33 -9
- package/dist/internals.d.ts.map +1 -1
- package/dist/internals.js +3 -1
- package/dist/internals.js.map +1 -1
- package/dist/loop/index.d.ts +9 -0
- package/dist/loop/index.d.ts.map +1 -0
- package/dist/loop/index.js +28 -0
- package/dist/loop/index.js.map +1 -0
- package/dist/sequencing/index.d.ts +1 -0
- package/dist/sequencing/index.d.ts.map +1 -1
- package/dist/sequencing/index.js +3 -1
- package/dist/sequencing/index.js.map +1 -1
- package/dist/series/flatten-children.d.ts.map +1 -1
- package/dist/series/flatten-children.js +2 -1
- package/dist/series/flatten-children.js.map +1 -1
- package/dist/timeline-inout-position-state.d.ts +13 -0
- package/dist/timeline-inout-position-state.d.ts.map +1 -0
- package/dist/timeline-inout-position-state.js +24 -0
- package/dist/timeline-inout-position-state.js.map +1 -0
- package/dist/use-current-src.d.ts +3 -0
- package/dist/use-current-src.d.ts.map +1 -0
- package/dist/use-current-src.js +23 -0
- package/dist/use-current-src.js.map +1 -0
- package/dist/use-current-time.d.ts +2 -0
- package/dist/use-current-time.d.ts.map +1 -0
- package/dist/use-current-time.js +12 -0
- package/dist/use-current-time.js.map +1 -0
- package/dist/use-media-in-timeline.d.ts.map +1 -1
- package/dist/use-media-in-timeline.js +1 -0
- package/dist/use-media-in-timeline.js.map +1 -1
- package/dist/use-media-metadata.d.ts +3 -0
- package/dist/use-media-metadata.d.ts.map +1 -0
- package/dist/use-media-metadata.js +24 -0
- package/dist/use-media-metadata.js.map +1 -0
- package/dist/use-time.d.ts +2 -0
- package/dist/use-time.d.ts.map +1 -0
- package/dist/use-time.js +15 -0
- package/dist/use-time.js.map +1 -0
- package/dist/video/Video.d.ts +1 -1
- package/dist/video/VideoForDevelopment.d.ts +1 -1
- package/dist/video/VideoForRendering.d.ts +1 -1
- package/package.json +8 -8
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.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{"total": {"lines":{"total":
|
|
1
|
+
{"total": {"lines":{"total":1785,"covered":1356,"skipped":0,"pct":75.97},"statements":{"total":1955,"covered":1507,"skipped":0,"pct":77.08},"functions":{"total":351,"covered":214,"skipped":0,"pct":60.97},"branches":{"total":1039,"covered":738,"skipped":0,"pct":71.03}}
|
|
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
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
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}}
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
,"/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}}
|
|
91
91
|
,"/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}}
|
|
92
92
|
,"/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}}
|
|
93
|
-
,"/Users/jonathanburger/remotion/packages/core/src/video/VideoForRendering.tsx": {"lines":{"total":
|
|
93
|
+
,"/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}}
|
|
94
94
|
,"/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}}
|
|
95
95
|
,"/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}}
|
|
96
96
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompositionManager.d.ts","sourceRoot":"","sources":["../src/CompositionManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEb,mBAAmB,EAKnB,MAAM,OAAO,CAAC;AACf,OAAO,EAAC,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAElD,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,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;IACrD,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,oBAAY,aAAa,GAAG,IAAI,CAC/B,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,CAAC;IAKZ,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;CACtB,GACD;IACA,IAAI,EAAE,OAAO,CAAC;IACd,G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,GAAG,IAAI,CAAC;IAClC,qBAAqB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,gBAAgB,EAAE,CAAC,GAAG,EAAE,SAAS,KAAK,IAAI,CAAC;IAC3C,kBAAkB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,MAAM,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,kBAAkB,0CAY7B,CAAC;AAEH,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,EA2F9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompositionManager.js","sourceRoot":"","sources":["../src/CompositionManager.tsx"],"names":[],"mappings":";;;;AAAA,iCAOe;
|
|
1
|
+
{"version":3,"file":"CompositionManager.js","sourceRoot":"","sources":["../src/CompositionManager.tsx"],"names":[],"mappings":";;;;AAAA,iCAOe;AAmFF,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;AAEI,MAAM,0BAA0B,GAA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C;SACF;IACF,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,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;SACN,CAAC;IACH,CAAC,EAAE;QACF,YAAY;QACZ,kBAAkB;QAClB,mBAAmB;QACnB,gBAAgB;QAChB,qBAAqB;QACrB,kBAAkB;QAClB,aAAa;QACb,eAAe;QACf,SAAS;QACT,MAAM;KACN,CAAC,CAAC;IAEH,OAAO,CACN,uBAAC,0BAAkB,CAAC,QAAQ,kBAAC,KAAK,EAAE,YAAY,gBAC9C,QAAQ,YACoB,CAC9B,CAAC;AACH,CAAC,CAAC;AA3FW,QAAA,0BAA0B,8BA2FrC"}
|
package/dist/audio/Audio.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import { RemotionMainAudioProps } from './props';
|
|
|
3
3
|
export declare const Audio: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "autoPlay" | "controls" | "loop"> & {
|
|
4
4
|
volume?: import("../volume-prop").VolumeProp | undefined;
|
|
5
5
|
playbackRate?: number | undefined;
|
|
6
|
-
} & RemotionMainAudioProps, "
|
|
6
|
+
} & RemotionMainAudioProps, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "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" | "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" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | 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
|
-
}, "
|
|
7
|
+
}, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "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" | "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" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | "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, "
|
|
3
|
+
export declare const AudioForRendering: React.ForwardRefExoticComponent<Pick<RemotionAudioProps, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "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" | "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" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key"> & React.RefAttributes<HTMLAudioElement>>;
|
|
4
4
|
//# sourceMappingURL=AudioForRendering.d.ts.map
|
|
@@ -3,7 +3,7 @@ declare const validOptions: readonly ["png", "jpeg", "none"];
|
|
|
3
3
|
export declare type ImageFormat = typeof validOptions[number];
|
|
4
4
|
export declare type StillImageFormat = 'png' | 'jpeg';
|
|
5
5
|
export declare const setImageFormat: (format: ImageFormat) => void;
|
|
6
|
-
export declare const getUserPreferredImageFormat: () => "
|
|
6
|
+
export declare const getUserPreferredImageFormat: () => "none" | "png" | "jpeg" | undefined;
|
|
7
7
|
export declare const validateSelectedPixelFormatAndImageFormatCombination: (pixelFormat: PixelFormat, imageFormat: ImageFormat) => 'none' | 'valid';
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=image-format.d.ts.map
|
package/dist/config/index.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export declare const Config: {
|
|
|
43
43
|
*
|
|
44
44
|
* Set this to 'verbose' to get browser logs and other IO.
|
|
45
45
|
*/
|
|
46
|
-
readonly setLevel: (newLogLevel: "
|
|
46
|
+
readonly setLevel: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
|
|
47
47
|
};
|
|
48
48
|
readonly Puppeteer: {
|
|
49
49
|
/**
|
|
@@ -73,7 +73,7 @@ export declare const Config: {
|
|
|
73
73
|
/** Decide in which image format to render. Can be either 'jpeg' or 'png'.
|
|
74
74
|
* PNG is slower, but supports transparency.
|
|
75
75
|
*/
|
|
76
|
-
readonly setImageFormat: (format: "
|
|
76
|
+
readonly setImageFormat: (format: "none" | "png" | "jpeg") => void;
|
|
77
77
|
/**
|
|
78
78
|
* Render only a subset of a video.
|
|
79
79
|
* Pass in a tuple [20, 30] to only render frames 20-30 into a video.
|
|
@@ -120,7 +120,7 @@ export declare const Config: {
|
|
|
120
120
|
* Possible values: 4444-xq, 4444, hq, standard, light, proxy. Default: 'hq'
|
|
121
121
|
* See https://avpres.net/FFmpeg/im_ProRes.html for meaning of possible values.
|
|
122
122
|
*/
|
|
123
|
-
readonly setProResProfile: (profile: "4444-xq" | "4444" | "hq" | "standard" | "
|
|
123
|
+
readonly setProResProfile: (profile: "light" | "4444-xq" | "4444" | "hq" | "standard" | "proxy" | undefined) => void;
|
|
124
124
|
};
|
|
125
125
|
readonly Lambda: {
|
|
126
126
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export * from './Img';
|
|
|
25
25
|
export * from './internals';
|
|
26
26
|
export * from './interpolate';
|
|
27
27
|
export { interpolateColors } from './interpolateColors';
|
|
28
|
+
export { Loop } from './loop';
|
|
28
29
|
export * from './random';
|
|
29
30
|
export * from './ready-manager';
|
|
30
31
|
export { registerRoot } from './register-root';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AACvB,OAAO,EAAC,MAAM,EAAE,aAAa,EAAC,MAAM,sBAAsB,CAAC;AAG3D,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,KAAK,EAAE,OAAO,CAAC;QACf,qBAAqB,EAAE,MAAM,aAAa,EAAE,CAAC;QAC7C,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM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EAAE,MAAM,aAAa,EAAE,CAAC;QAC7C,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QAC3C,qBAAqB,EAAE,MAAM,CAAC;QAC9B,sBAAsB,EAAE,MAAM,MAAM,EAAE,CAAC;QACvC,iBAAiB,EAAE,OAAO,CAAC;QAC3B,iBAAiB,EAAE,OAAO,CAAC;KAC3B;CACD;AAID,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,cAAc,UAAU,CAAC;AACzB,OAAO,EAAC,aAAa,EAAC,MAAM,sBAAsB,CAAC;AACnD,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,QAAQ,EAAC,MAAM,cAAc,CAAC;AACtC,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.Series = exports.Sequence = exports.registerRoot = exports.interpolateColors = exports.getInputProps = void 0;
|
|
13
|
+
exports.Series = exports.Sequence = exports.registerRoot = exports.Loop = exports.interpolateColors = exports.getInputProps = void 0;
|
|
14
14
|
require("./asset-types");
|
|
15
15
|
const multiple_versions_warning_1 = require("./multiple-versions-warning");
|
|
16
16
|
(0, multiple_versions_warning_1.checkMultipleRemotionVersions)();
|
|
@@ -28,6 +28,8 @@ __exportStar(require("./internals"), exports);
|
|
|
28
28
|
__exportStar(require("./interpolate"), exports);
|
|
29
29
|
var interpolateColors_1 = require("./interpolateColors");
|
|
30
30
|
Object.defineProperty(exports, "interpolateColors", { enumerable: true, get: function () { return interpolateColors_1.interpolateColors; } });
|
|
31
|
+
var loop_1 = require("./loop");
|
|
32
|
+
Object.defineProperty(exports, "Loop", { enumerable: true, get: function () { return loop_1.Loop; } });
|
|
31
33
|
__exportStar(require("./random"), exports);
|
|
32
34
|
__exportStar(require("./ready-manager"), exports);
|
|
33
35
|
var register_root_1 = require("./register-root");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yBAAuB;AAEvB,2EAA0E;AAc1E,IAAA,yDAA6B,GAAE,CAAC;AAEhC,iDAA+B;AAE/B,0CAAwB;AACxB,gDAA8B;AAE9B,2CAAyB;AACzB,oDAAmD;AAA3C,4GAAA,aAAa,OAAA;AACrB,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,wCAAsB;AACtB,8CAA4B;AAC5B,gDAA8B;AAC9B,yDAAsD;AAA9C,sHAAA,iBAAiB,OAAA;AACzB,2CAAyB;AACzB,kDAAgC;AAChC,iDAA6C;AAArC,6GAAA,YAAY,OAAA;AACpB,2CAAsC;AAA9B,sGAAA,QAAQ,OAAA;AAChB,mCAAgC;AAAxB,gGAAA,MAAM,OAAA;AACd,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,qDAAmC;AACnC,0CAAwB;AACxB,iDAA+B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yBAAuB;AAEvB,2EAA0E;AAc1E,IAAA,yDAA6B,GAAE,CAAC;AAEhC,iDAA+B;AAE/B,0CAAwB;AACxB,gDAA8B;AAE9B,2CAAyB;AACzB,oDAAmD;AAA3C,4GAAA,aAAa,OAAA;AACrB,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,wCAAsB;AACtB,8CAA4B;AAC5B,gDAA8B;AAC9B,yDAAsD;AAA9C,sHAAA,iBAAiB,OAAA;AACzB,+BAA4B;AAApB,4FAAA,IAAI,OAAA;AACZ,2CAAyB;AACzB,kDAAgC;AAChC,iDAA6C;AAArC,6GAAA,YAAY,OAAA;AACpB,2CAAsC;AAA9B,sGAAA,QAAQ,OAAA;AAChB,mCAAgC;AAAxB,gGAAA,MAAM,OAAA;AACd,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,qDAAmC;AACnC,0CAAwB;AACxB,iDAA+B"}
|
package/dist/internals.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { LooseAnyComponent } from './any-component';
|
|
2
3
|
import { CompProps } from './Composition';
|
|
3
4
|
import { CompositionManagerContext, RenderAssetInfo, TAsset, TCompMetadata, TComposition, TSequence } from './CompositionManager';
|
|
@@ -7,15 +8,38 @@ import { ProResProfile } from './config/prores-profile';
|
|
|
7
8
|
import * as CSSUtils from './default-css';
|
|
8
9
|
import { RemotionEnvironment } from './get-environment';
|
|
9
10
|
import * as perf from './perf';
|
|
10
|
-
import * as
|
|
11
|
+
import * as TimelineInOutPosition from './timeline-inout-position-state';
|
|
12
|
+
import { SetTimelineInOutContextValue, TimelineInOutContextValue } from './timeline-inout-position-state';
|
|
13
|
+
import * as TimelinePosition from './timeline-position-state';
|
|
11
14
|
import { SetTimelineContextValue, TimelineContextValue } from './timeline-position-state';
|
|
12
15
|
import { truthy } from './truthy';
|
|
13
16
|
import { MediaVolumeContextValue, SetMediaVolumeContextValue } from './volume-position-state';
|
|
14
17
|
import { useRemotionContexts } from './wrap-remotion-context';
|
|
18
|
+
declare const Timeline: {
|
|
19
|
+
TimelineInOutContext: import("react").Context<TimelineInOutPosition.TimelineInOutContextValue>;
|
|
20
|
+
SetTimelineInOutContext: import("react").Context<TimelineInOutPosition.SetTimelineInOutContextValue>;
|
|
21
|
+
useTimelineInOutFramePosition: () => TimelineInOutPosition.TimelineInOutContextValue;
|
|
22
|
+
useTimelineSetInOutFramePosition: () => TimelineInOutPosition.SetTimelineInOutContextValue;
|
|
23
|
+
TimelineContext: import("react").Context<TimelinePosition.TimelineContextValue>;
|
|
24
|
+
SetTimelineContext: import("react").Context<TimelinePosition.SetTimelineContextValue>;
|
|
25
|
+
useTimelinePosition: () => number;
|
|
26
|
+
useTimelineSetFrame: () => (u: import("react").SetStateAction<number>) => void;
|
|
27
|
+
usePlayingState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void];
|
|
28
|
+
};
|
|
15
29
|
export declare const Internals: {
|
|
16
30
|
perf: typeof perf;
|
|
17
31
|
useUnsafeVideoConfig: () => import("./video-config").VideoConfig | null;
|
|
18
|
-
Timeline:
|
|
32
|
+
Timeline: {
|
|
33
|
+
TimelineInOutContext: import("react").Context<TimelineInOutPosition.TimelineInOutContextValue>;
|
|
34
|
+
SetTimelineInOutContext: import("react").Context<TimelineInOutPosition.SetTimelineInOutContextValue>;
|
|
35
|
+
useTimelineInOutFramePosition: () => TimelineInOutPosition.TimelineInOutContextValue;
|
|
36
|
+
useTimelineSetInOutFramePosition: () => TimelineInOutPosition.SetTimelineInOutContextValue;
|
|
37
|
+
TimelineContext: import("react").Context<TimelinePosition.TimelineContextValue>;
|
|
38
|
+
SetTimelineContext: import("react").Context<TimelinePosition.SetTimelineContextValue>;
|
|
39
|
+
useTimelinePosition: () => number;
|
|
40
|
+
useTimelineSetFrame: () => (u: import("react").SetStateAction<number>) => void;
|
|
41
|
+
usePlayingState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void];
|
|
42
|
+
};
|
|
19
43
|
CompositionManager: import("react").Context<CompositionManagerContext>;
|
|
20
44
|
RemotionRoot: import("react").FC<{}>;
|
|
21
45
|
useVideo: () => TComposition<unknown> | null;
|
|
@@ -49,11 +73,11 @@ export declare const Internals: {
|
|
|
49
73
|
getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv") => number;
|
|
50
74
|
getActualCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv") => number;
|
|
51
75
|
setFrameRangeFromCli: (newFrameRange: string | number) => void;
|
|
52
|
-
getUserPreferredImageFormat: () => "
|
|
53
|
-
validateSelectedPixelFormatAndImageFormatCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", imageFormat: "
|
|
76
|
+
getUserPreferredImageFormat: () => "none" | "png" | "jpeg" | undefined;
|
|
77
|
+
validateSelectedPixelFormatAndImageFormatCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", imageFormat: "none" | "png" | "jpeg") => "none" | "valid";
|
|
54
78
|
validateSelectedPixelFormatAndCodecCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv") => void;
|
|
55
79
|
validateFrameRange: (frameRange: import("./config/frame-range").FrameRange | null) => void;
|
|
56
|
-
validateNonNullImageFormat: (imageFormat: "
|
|
80
|
+
validateNonNullImageFormat: (imageFormat: "none" | "png" | "jpeg") => void;
|
|
57
81
|
getWebpackCaching: () => boolean;
|
|
58
82
|
useLazyComponent: <T>(compProps: CompProps<T>) => import("react").LazyExoticComponent<LooseAnyComponent<T>>;
|
|
59
83
|
truthy: typeof truthy;
|
|
@@ -78,9 +102,9 @@ export declare const Internals: {
|
|
|
78
102
|
validateFps: (fps: number, location: string) => void;
|
|
79
103
|
validateDimension: (amount: number, nameOfProp: string, location: string) => void;
|
|
80
104
|
getRemotionEnvironment: () => RemotionEnvironment;
|
|
81
|
-
getProResProfile: () => "4444-xq" | "4444" | "hq" | "standard" | "
|
|
82
|
-
setProResProfile: (profile: "4444-xq" | "4444" | "hq" | "standard" | "
|
|
83
|
-
validateSelectedCodecAndProResCombination: (actualCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv", actualProResProfile: "4444-xq" | "4444" | "hq" | "standard" | "
|
|
105
|
+
getProResProfile: () => "light" | "4444-xq" | "4444" | "hq" | "standard" | "proxy" | undefined;
|
|
106
|
+
setProResProfile: (profile: "light" | "4444-xq" | "4444" | "hq" | "standard" | "proxy" | undefined) => void;
|
|
107
|
+
validateSelectedCodecAndProResCombination: (actualCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv", actualProResProfile: "light" | "4444-xq" | "4444" | "hq" | "standard" | "proxy" | undefined) => void;
|
|
84
108
|
getMaxTimelineTracks: () => number;
|
|
85
109
|
SharedAudioContext: import("react").Context<{
|
|
86
110
|
registerAudio: (aud: import("./audio").RemotionAudioProps) => {
|
|
@@ -105,5 +129,5 @@ export declare const Internals: {
|
|
|
105
129
|
invalidCompositionErrorMessage: string;
|
|
106
130
|
isCompositionIdValid: (id: string) => RegExpMatchArray | null;
|
|
107
131
|
};
|
|
108
|
-
export type { TComposition, Timeline, TCompMetadata, TSequence, WebpackOverrideFn, TAsset, RenderAssetInfo, TimelineContextValue, SetTimelineContextValue, CompProps, CompositionManagerContext, MediaVolumeContextValue, SetMediaVolumeContextValue, LooseAnyComponent, RemotionEnvironment, ProResProfile, };
|
|
132
|
+
export type { TComposition, Timeline, TCompMetadata, TSequence, WebpackOverrideFn, TAsset, RenderAssetInfo, TimelineContextValue, SetTimelineContextValue, TimelineInOutContextValue, SetTimelineInOutContextValue, CompProps, CompositionManagerContext, MediaVolumeContextValue, SetMediaVolumeContextValue, LooseAnyComponent, RemotionEnvironment, ProResProfile, };
|
|
109
133
|
//# sourceMappingURL=internals.d.ts.map
|
package/dist/internals.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internals.d.ts","sourceRoot":"","sources":["../src/internals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAKlD,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAEN,yBAAyB,EACzB,eAAe,EACf,MAAM,EACN,aAAa,EACb,YAAY,EACZ,SAAS,EACT,MAAM,sBAAsB,CAAC;AA8B9B,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AAExC,OAAO,EAEN,iBAAiB,EACjB,MAAM,2BAA2B,CAAC;AAQnC,OAAO,EAEN,aAAa,EAGb,MAAM,yBAAyB,CAAC;AAOjC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAyB,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AAM9E,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAc/B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"internals.d.ts","sourceRoot":"","sources":["../src/internals.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,iBAAiB,EAAC,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B,EAC5B,SAAS,EACT,yBAAyB,EACzB,uBAAuB,EACvB,0BAA0B,EAC1B,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,GACb,CAAC"}
|
package/dist/internals.js
CHANGED
|
@@ -53,7 +53,8 @@ const register_root_1 = require("./register-root");
|
|
|
53
53
|
const RemotionRoot_1 = require("./RemotionRoot");
|
|
54
54
|
const sequencing_1 = require("./sequencing");
|
|
55
55
|
const setup_env_variables_1 = require("./setup-env-variables");
|
|
56
|
-
const
|
|
56
|
+
const TimelineInOutPosition = __importStar(require("./timeline-inout-position-state"));
|
|
57
|
+
const TimelinePosition = __importStar(require("./timeline-position-state"));
|
|
57
58
|
const truthy_1 = require("./truthy");
|
|
58
59
|
const use_lazy_component_1 = require("./use-lazy-component");
|
|
59
60
|
const use_unsafe_video_config_1 = require("./use-unsafe-video-config");
|
|
@@ -67,6 +68,7 @@ const validate_image_format_1 = require("./validation/validate-image-format");
|
|
|
67
68
|
const validate_quality_1 = require("./validation/validate-quality");
|
|
68
69
|
const volume_position_state_1 = require("./volume-position-state");
|
|
69
70
|
const wrap_remotion_context_1 = require("./wrap-remotion-context");
|
|
71
|
+
const Timeline = { ...TimelinePosition, ...TimelineInOutPosition };
|
|
70
72
|
// Mark them as Internals so use don't assume this is public
|
|
71
73
|
// API and are less likely to use it
|
|
72
74
|
exports.Internals = {
|
package/dist/internals.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internals.js","sourceRoot":"","sources":["../src/internals.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AACA,iEAGmC;AAEnC,6DAQ8B;AAC9B,8CAA6D;AAC7D,oEAAiE;AACjE,0CAIwB;AACxB,sDAAoD;AACpD,sCAIsB;AACtB,gDAAoD;AACpD,sDAI8B;AAC9B,kEAGoC;AACpC,wDAG+B;AAC/B,4DAAqE;AACrE,sDAAqD;AACrD,sDAAwC;AACxC,sEAAkE;AAClE,gEAGmC;AACnC,kDAAsD;AACt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2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Loop = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const __1 = require("..");
|
|
6
|
+
const validate_duration_in_frames_1 = require("../validation/validate-duration-in-frames");
|
|
7
|
+
const Loop = ({ durationInFrames, times = Infinity, children, layout, name, }) => {
|
|
8
|
+
const { durationInFrames: compDuration } = (0, __1.useVideoConfig)();
|
|
9
|
+
(0, validate_duration_in_frames_1.validateDurationInFrames)(durationInFrames, 'of the <Loop /> component');
|
|
10
|
+
if (typeof times !== 'number') {
|
|
11
|
+
throw new TypeError(`You passed to "times" an argument of type ${typeof times}, but it must be a number.`);
|
|
12
|
+
}
|
|
13
|
+
if (times !== Infinity && times % 1 !== 0) {
|
|
14
|
+
throw new TypeError(`The "times" prop of a loop must be an integer, but got ${times}.`);
|
|
15
|
+
}
|
|
16
|
+
if (times < 0) {
|
|
17
|
+
throw new TypeError(`The "times" prop of a loop must be at least 0, but got ${times}`);
|
|
18
|
+
}
|
|
19
|
+
const maxTimes = Math.ceil(compDuration / durationInFrames);
|
|
20
|
+
const actualTimes = Math.min(maxTimes, times);
|
|
21
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: new Array(actualTimes).fill(true).map((_, i) => {
|
|
22
|
+
return ((0, jsx_runtime_1.jsx)(__1.Sequence
|
|
23
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
24
|
+
, Object.assign({ durationInFrames: durationInFrames, from: i * durationInFrames, layout: layout, name: name, showLoopTimesInTimeline: actualTimes, showInTimeline: i === 0 }, { children: children }), `loop-${i}`));
|
|
25
|
+
}) }, void 0));
|
|
26
|
+
};
|
|
27
|
+
exports.Loop = Loop;
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/loop/index.tsx"],"names":[],"mappings":";;;;AACA,0B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,CAAC,CAAC,WACA,CACH,CAAC;AACH,CAAC,CAAC;AAnDW,QAAA,IAAI,QAmDf"}
|
|
@@ -14,6 +14,7 @@ export declare type SequenceProps = {
|
|
|
14
14
|
name?: string;
|
|
15
15
|
layout?: 'absolute-fill' | 'none';
|
|
16
16
|
showInTimeline?: boolean;
|
|
17
|
+
showLoopTimesInTimeline?: number;
|
|
17
18
|
};
|
|
18
19
|
export declare const Sequence: React.FC<SequenceProps>;
|
|
19
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sequencing/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAQf,oBAAY,mBAAmB,GAAG;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,EAAE,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,eAAe,2CAAkD,CAAC;AAE/E,oBAAY,aAAa,GAAG;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,eAAe,GAAG,MAAM,CAAC;IAClC,cAAc,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sequencing/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAQf,oBAAY,mBAAmB,GAAG;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,EAAE,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,eAAe,2CAAkD,CAAC;AAE/E,oBAAY,aAAa,GAAG;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,eAAe,GAAG,MAAM,CAAC;IAClC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,uBAAuB,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA+J5C,CAAC"}
|
package/dist/sequencing/index.js
CHANGED
|
@@ -10,7 +10,7 @@ const timeline_position_state_1 = require("../timeline-position-state");
|
|
|
10
10
|
const use_frame_1 = require("../use-frame");
|
|
11
11
|
const use_unsafe_video_config_1 = require("../use-unsafe-video-config");
|
|
12
12
|
exports.SequenceContext = (0, react_1.createContext)(null);
|
|
13
|
-
const Sequence = ({ from, durationInFrames = Infinity, children, name, layout = 'absolute-fill', showInTimeline = true, }) => {
|
|
13
|
+
const Sequence = ({ from, durationInFrames = Infinity, children, name, layout = 'absolute-fill', showInTimeline = true, showLoopTimesInTimeline, }) => {
|
|
14
14
|
const [id] = (0, react_1.useState)(() => String(Math.random()));
|
|
15
15
|
const parentSequence = (0, react_1.useContext)(exports.SequenceContext);
|
|
16
16
|
const { rootId } = (0, react_1.useContext)(timeline_position_state_1.TimelineContext);
|
|
@@ -80,6 +80,7 @@ const Sequence = ({ from, durationInFrames = Infinity, children, name, layout =
|
|
|
80
80
|
rootId,
|
|
81
81
|
showInTimeline,
|
|
82
82
|
nonce,
|
|
83
|
+
showLoopTimesInTimeline,
|
|
83
84
|
});
|
|
84
85
|
return () => {
|
|
85
86
|
unregisterSequence(id);
|
|
@@ -98,6 +99,7 @@ const Sequence = ({ from, durationInFrames = Infinity, children, name, layout =
|
|
|
98
99
|
from,
|
|
99
100
|
showInTimeline,
|
|
100
101
|
nonce,
|
|
102
|
+
showLoopTimesInTimeline,
|
|
101
103
|
]);
|
|
102
104
|
const endThreshold = (() => {
|
|
103
105
|
return actualFrom + durationInFrames - 1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sequencing/index.tsx"],"names":[],"mappings":";;;;AAAA,iCAMe;AACf,8DAAyD;AACzD,sEAA8D;AAC9D,oCAAkC;AAClC,wEAA2D;AAC3D,4CAAqD;AACrD,wEAAgE;AAUnD,QAAA,eAAe,GAAG,IAAA,qBAAa,EAA6B,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sequencing/index.tsx"],"names":[],"mappings":";;;;AAAA,iCAMe;AACf,8DAAyD;AACzD,sEAA8D;AAC9D,oCAAkC;AAClC,wEAA2D;AAC3D,4CAAqD;AACrD,wEAAgE;AAUnD,QAAA,eAAe,GAAG,IAAA,qBAAa,EAA6B,IAAI,CAAC,CAAC;AAYxE,MAAM,QAAQ,GAA4B,CAAC,EACjD,IAAI,EACJ,gBAAgB,GAAG,QAAQ,EAC3B,QAAQ,EACR,IAAI,EACJ,MAAM,GAAG,eAAe,EACxB,cAAc,GAAG,IAAI,EACrB,uBAAuB,GACvB,EAAE,EAAE;IACJ,MAAM,CAAC,EAAE,CAAC,GAAG,IAAA,gBAAQ,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACnD,MAAM,cAAc,GAAG,IAAA,kBAAU,EAAC,uBAAe,CAAC,CAAC;IACnD,MAAM,EAAC,MAAM,EAAC,GAAG,IAAA,kBAAU,EAAC,yCAAe,CAAC,CAAC;IAC7C,MAAM,aAAa,GAAG,cAAc;QACnC,CAAC,CAAC,cAAc,CAAC,aAAa,GAAG,cAAc,CAAC,YAAY;QAC5D,C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,UAAU;QACV,EAAE;QACF,IAAI;QACJ,gBAAgB;QAChB,gBAAgB;QAChB,kBAAkB;QAClB,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,EAAE;QAClB,sBAAsB;QACtB,MAAM;QACN,IAAI;QACJ,cAAc;QACd,KAAK;QACL,uBAAuB;KACvB,CAAC,CAAC;IAEH,MAAM,YAAY,GAAG,CAAC,GAAG,EAAE;QAC1B,OAAO,UAAU,GAAG,gBAAgB,GAAG,CAAC,CAAC;IAC1C,CAAC,CAAC,EAAE,CAAC;IAEL,MAAM,OAAO,GACZ,aAAa,GAAG,UAAU;QACzB,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,aAAa,GAAG,YAAY;YAC9B,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,QAAQ,CAAC;IAEb,OAAO,CACN,uBAAC,uBAAe,CAAC,QAAQ,kBAAC,KAAK,EAAE,YAAY,gBAC3C,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,KAAK,eAAe,CAAC,CAAC,CAAC,CACvD,8CACC,KAAK,EAAE;gBACN,QAAQ,EAAE,UAAU;gBACpB,OAAO,EAAE,MAAM;gBACf,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;gBACd,GAAG,EAAE,CAAC;gBACN,MAAM,EAAE,CAAC;gBACT,IAAI,EAAE,CAAC;gBACP,KAAK,EAAE,CAAC;aACR,gBAEA,OAAO,YACH,CACN,CAAC,CAAC,CAAC,CACH,OAAO,CACP,YACyB,CAC3B,CAAC;AACH,CAAC,CAAC;AA/JW,QAAA,QAAQ,YA+JnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flatten-children.d.ts","sourceRoot":"","sources":["../../src/series/flatten-children.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"flatten-children.d.ts","sourceRoot":"","sources":["../../src/series/flatten-children.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAI/C,eAAO,MAAM,eAAe,aAAc,MAAM,SAAS,mEAexD,CAAC"}
|
|
@@ -9,7 +9,8 @@ const flattenChildren = (children) => {
|
|
|
9
9
|
const childrenArray = react_1.default.Children.toArray(children);
|
|
10
10
|
return childrenArray.reduce((flatChildren, child) => {
|
|
11
11
|
if (child.type === react_1.default.Fragment) {
|
|
12
|
-
return flatChildren.concat((0, exports.flattenChildren)(child.props
|
|
12
|
+
return flatChildren.concat((0, exports.flattenChildren)(child.props
|
|
13
|
+
.children));
|
|
13
14
|
}
|
|
14
15
|
flatChildren.push(child);
|
|
15
16
|
return flatChildren;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flatten-children.js","sourceRoot":"","sources":["../../src/series/flatten-children.tsx"],"names":[],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"flatten-children.js","sourceRoot":"","sources":["../../src/series/flatten-children.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA+C;AAIxC,MAAM,eAAe,GAAG,CAAC,QAAyB,EAAmB,EAAE;IAC7E,MAAM,aAAa,GAAG,eAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACvD,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC,YAA6B,EAAE,KAAK,EAAE,EAAE;QACpE,IAAK,KAAqC,CAAC,IAAI,KAAK,eAAK,CAAC,QAAQ,EAAE;YACnE,OAAO,YAAY,CAAC,MAAM,CACzB,IAAA,uBAAe,EACb,KAAwD,CAAC,KAAK;iBAC7D,QAAQ,CACV,CACD,CAAC;SACF;QAED,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,OAAO,YAAY,CAAC;IACrB,CAAC,EAAE,EAAE,CAAC,CAAC;AACR,CAAC,CAAC;AAfW,QAAA,eAAe,mBAe1B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type TimelineInOutContextValue = {
|
|
3
|
+
inFrame: number | null;
|
|
4
|
+
outFrame: number | null;
|
|
5
|
+
};
|
|
6
|
+
export declare type SetTimelineInOutContextValue = {
|
|
7
|
+
setInAndOutFrames: (u: React.SetStateAction<TimelineInOutContextValue>) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const TimelineInOutContext: React.Context<TimelineInOutContextValue>;
|
|
10
|
+
export declare const SetTimelineInOutContext: React.Context<SetTimelineInOutContextValue>;
|
|
11
|
+
export declare const useTimelineInOutFramePosition: () => TimelineInOutContextValue;
|
|
12
|
+
export declare const useTimelineSetInOutFramePosition: () => SetTimelineInOutContextValue;
|
|
13
|
+
//# sourceMappingURL=timeline-inout-position-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-inout-position-state.d.ts","sourceRoot":"","sources":["../src/timeline-inout-position-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAC;AAEvD,oBAAY,yBAAyB,GAAG;IACvC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,CAAC;AAEF,oBAAY,4BAA4B,GAAG;IAC1C,iBAAiB,EAAE,CAClB,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,yBAAyB,CAAC,KAC9C,IAAI,CAAC;CACV,CAAC;AAEF,eAAO,MAAM,oBAAoB,0CAG/B,CAAC;AAEH,eAAO,MAAM,uBAAuB,6CAMlC,CAAC;AAEH,eAAO,MAAM,6BAA6B,QAAO,yBAGhD,CAAC;AAEF,eAAO,MAAM,gCAAgC,QAAO,4BAGnD,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useTimelineSetInOutFramePosition = exports.useTimelineInOutFramePosition = exports.SetTimelineInOutContext = exports.TimelineInOutContext = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
exports.TimelineInOutContext = (0, react_1.createContext)({
|
|
6
|
+
inFrame: null,
|
|
7
|
+
outFrame: null,
|
|
8
|
+
});
|
|
9
|
+
exports.SetTimelineInOutContext = (0, react_1.createContext)({
|
|
10
|
+
setInAndOutFrames: () => {
|
|
11
|
+
throw new Error('default');
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
const useTimelineInOutFramePosition = () => {
|
|
15
|
+
const state = (0, react_1.useContext)(exports.TimelineInOutContext);
|
|
16
|
+
return state;
|
|
17
|
+
};
|
|
18
|
+
exports.useTimelineInOutFramePosition = useTimelineInOutFramePosition;
|
|
19
|
+
const useTimelineSetInOutFramePosition = () => {
|
|
20
|
+
const { setInAndOutFrames } = (0, react_1.useContext)(exports.SetTimelineInOutContext);
|
|
21
|
+
return { setInAndOutFrames };
|
|
22
|
+
};
|
|
23
|
+
exports.useTimelineSetInOutFramePosition = useTimelineSetInOutFramePosition;
|
|
24
|
+
//# sourceMappingURL=timeline-inout-position-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-inout-position-state.js","sourceRoot":"","sources":["../src/timeline-inout-position-state.ts"],"names":[],"mappings":";;;AAAA,iCAAuD;AAa1C,QAAA,oBAAoB,GAAG,IAAA,qBAAa,EAA4B;IAC5E,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,IAAI;CACd,CAAC,CAAC;AAEU,QAAA,uBAAuB,GAAG,IAAA,qBAAa,EAElD;IACD,iBAAiB,EAAE,GAAG,EAAE;QACvB,MAAM,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC;IAC5B,CAAC;CACD,CAAC,CAAC;AAEI,MAAM,6BAA6B,GAAG,GAA8B,EAAE;IAC5E,MAAM,KAAK,GAAG,IAAA,kBAAU,EAAC,4BAAoB,CAAC,CAAC;IAC/C,OAAO,KAAK,CAAC;AACd,CAAC,CAAC;AAHW,QAAA,6BAA6B,iCAGxC;AAEK,MAAM,gCAAgC,GAAG,GAAiC,EAAE;IAClF,MAAM,EAAC,iBAAiB,EAAC,GAAG,IAAA,kBAAU,EAAC,+BAAuB,CAAC,CAAC;IAChE,OAAO,EAAC,iBAAiB,EAAC,CAAC;AAC5B,CAAC,CAAC;AAHW,QAAA,gCAAgC,oCAG3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-current-src.d.ts","sourceRoot":"","sources":["../src/use-current-src.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,MAAM,OAAO,CAAC;AAErD,eAAO,MAAM,aAAa,iBACX,UAAU,gBAAgB,GAAG,gBAAgB,CAAC,kBAuB5D,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useCurrentSrc = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const useCurrentSrc = (mediaElement) => {
|
|
6
|
+
var _a, _b;
|
|
7
|
+
const currentSrc = (_b = (_a = mediaElement.current) === null || _a === void 0 ? void 0 : _a.currentSrc) !== null && _b !== void 0 ? _b : null;
|
|
8
|
+
const [currentCurrentSrc, setCurrentCurrentSrc] = (0, react_1.useState)(currentSrc !== null && currentSrc !== void 0 ? currentSrc : null);
|
|
9
|
+
(0, react_1.useEffect)(() => {
|
|
10
|
+
const check = () => {
|
|
11
|
+
if (currentCurrentSrc !== currentSrc) {
|
|
12
|
+
setCurrentCurrentSrc(currentSrc);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
const interval = setInterval(check, 100);
|
|
16
|
+
return () => {
|
|
17
|
+
clearInterval(interval);
|
|
18
|
+
};
|
|
19
|
+
}, [currentCurrentSrc, currentSrc]);
|
|
20
|
+
return currentCurrentSrc;
|
|
21
|
+
};
|
|
22
|
+
exports.useCurrentSrc = useCurrentSrc;
|
|
23
|
+
//# sourceMappingURL=use-current-src.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-current-src.js","sourceRoot":"","sources":["../src/use-current-src.ts"],"names":[],"mappings":";;;AAAA,iCAAqD;AAE9C,MAAM,aAAa,GAAG,CAC5B,YAA4D,EAC3D,EAAE;;IACH,MAAM,UAAU,GAAG,MAAA,MAAA,YAAY,CAAC,OAAO,0CAAE,UAAU,mCAAI,IAAI,CAAC;IAE5D,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,IAAA,gBAAQ,EACzD,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,IAAI,CAClB,CAAC;IAEF,IAAA,iBAAS,EAAC,GAAG,EAAE;QACd,MAAM,KAAK,GAAG,GAAG,EAAE;YAClB,IAAI,iBAAiB,KAAK,UAAU,EAAE;gBACrC,oBAAoB,CAAC,UAAU,CAAC,CAAC;aACjC;QACF,CAAC,CAAC;QAEF,MAAM,QAAQ,GAAG,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAEzC,OAAO,GAAG,EAAE;YACX,aAAa,CAAC,QAAQ,CAAC,CAAC;QACzB,CAAC,CAAC;IACH,CAAC,EAAE,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC,CAAC;IAEpC,OAAO,iBAAiB,CAAC;AAC1B,CAAC,CAAC;AAxBW,QAAA,aAAa,iBAwBxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-current-time.d.ts","sourceRoot":"","sources":["../src/use-current-time.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,QAAO,MAKjC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useCurrentTime = void 0;
|
|
4
|
+
const use_frame_1 = require("./use-frame");
|
|
5
|
+
const use_video_config_1 = require("./use-video-config");
|
|
6
|
+
const useCurrentTime = () => {
|
|
7
|
+
const { fps } = (0, use_video_config_1.useVideoConfig)();
|
|
8
|
+
const currentFrame = (0, use_frame_1.useCurrentFrame)();
|
|
9
|
+
return 1000 * (currentFrame / fps);
|
|
10
|
+
};
|
|
11
|
+
exports.useCurrentTime = useCurrentTime;
|
|
12
|
+
//# sourceMappingURL=use-current-time.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-current-time.js","sourceRoot":"","sources":["../src/use-current-time.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,yDAAkD;AAE3C,MAAM,cAAc,GAAG,GAAW,EAAE;IAC1C,MAAM,EAAC,GAAG,EAAC,GAAG,IAAA,iCAAc,GAAE,CAAC;IAC/B,MAAM,YAAY,GAAG,IAAA,2BAAe,GAAE,CAAC;IAEvC,OAAO,IAAI,GAAG,CAAC,YAAY,GAAG,GAAG,CAAC,CAAC;AACpC,CAAC,CAAC;AALW,QAAA,cAAc,kBAKzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-media-in-timeline.d.ts","sourceRoot":"","sources":["../src/use-media-in-timeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAA2C,MAAM,OAAO,CAAC;AAQ1E,OAAO,EAAiB,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzD,eAAO,MAAM,kBAAkB;YAOtB,UAAU,GAAG,SAAS;iBACjB,MAAM;cACT,UAAU,gBAAgB,GAAG,gBAAgB,CAAC;SACnD,MAAM,GAAG,SAAS;eACZ,OAAO,GAAG,OAAO;
|
|
1
|
+
{"version":3,"file":"use-media-in-timeline.d.ts","sourceRoot":"","sources":["../src/use-media-in-timeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAA2C,MAAM,OAAO,CAAC;AAQ1E,OAAO,EAAiB,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzD,eAAO,MAAM,kBAAkB;YAOtB,UAAU,GAAG,SAAS;iBACjB,MAAM;cACT,UAAU,gBAAgB,GAA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AC;IACrC,CAAC,EAAE;QACF,UAAU;QACV,QAAQ;QACR,EAAE;QACF,cAAc;QACd,GAAG;QACH,gBAAgB;QAChB,MAAM;QACN,kBAAkB;QAClB,WAAW;QACX,OAAO;QACP,gBAAgB;QAChB,KAAK;QACL,QAAQ;QACR,SAAS;QACT,QAAQ;KACR,CAAC,CAAC;AACJ,CAAC,CAAC;AA7FW,QAAA,kBAAkB,sBA6F7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-media-metadata.d.ts","sourceRoot":"","sources":["../src/use-media-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,MAAM,OAAO,CAAC;AAErD,eAAO,MAAM,mBAAmB,aACrB,UAAU,gBAAgB,GAAG,gBAAgB,CAAC,YA+BxD,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useMediaHasMetadata = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const useMediaHasMetadata = (mediaRef) => {
|
|
6
|
+
const [hasMetadata, setHasMetadata] = (0, react_1.useState)(false);
|
|
7
|
+
(0, react_1.useEffect)(() => {
|
|
8
|
+
const { current } = mediaRef;
|
|
9
|
+
if (!current) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
const hasSourceChild = Array.from(current.childNodes).some((child) => child.nodeName === 'SOURCE');
|
|
13
|
+
if (!current.src && !hasSourceChild) {
|
|
14
|
+
const tagName = current.nodeName === 'AUDIO' ? '<Audio>' : '<Video>';
|
|
15
|
+
throw new Error(`No src found. Please provide a src prop or a <source> child to the ${tagName} element.`);
|
|
16
|
+
}
|
|
17
|
+
const handler = () => setHasMetadata(true);
|
|
18
|
+
current.addEventListener('loadedmetadata', handler);
|
|
19
|
+
return () => current.removeEventListener('loadedmetadata', handler);
|
|
20
|
+
}, [mediaRef]);
|
|
21
|
+
return hasMetadata;
|
|
22
|
+
};
|
|
23
|
+
exports.useMediaHasMetadata = useMediaHasMetadata;
|
|
24
|
+
//# sourceMappingURL=use-media-metadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-media-metadata.js","sourceRoot":"","sources":["../src/use-media-metadata.ts"],"names":[],"mappings":";;;AAAA,iCAAqD;AAE9C,MAAM,mBAAmB,GAAG,CAClC,QAAwD,EACvD,EAAE;IACH,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAEtD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACd,MAAM,EAAC,OAAO,EAAC,GAAG,QAAQ,CAAC;QAE3B,IAAI,CAAC,OAAO,EAAE;YACb,OAAO;SACP;QAED,MAAM,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,IAAI,CACzD,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,KAAK,QAAQ,CACtC,CAAC;QAEF,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,cAAc,EAAE;YACpC,MAAM,OAAO,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAErE,MAAM,IAAI,KAAK,CACd,sEAAsE,OAAO,WAAW,CACxF,CAAC;SACF;QAED,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAE3C,OAAO,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;QAEpD,OAAO,GAAG,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO,WAAW,CAAC;AACpB,CAAC,CAAC;AAhCW,QAAA,mBAAmB,uBAgC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-time.d.ts","sourceRoot":"","sources":["../src/use-time.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,QAAO,MASjC,CAAC"}
|
package/dist/use-time.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useCurrentTime = void 0;
|
|
4
|
+
const use_frame_1 = require("./use-frame");
|
|
5
|
+
const use_video_1 = require("./use-video");
|
|
6
|
+
const useCurrentTime = () => {
|
|
7
|
+
const video = (0, use_video_1.useVideo)();
|
|
8
|
+
const currentFrame = (0, use_frame_1.useCurrentFrame)();
|
|
9
|
+
if ((video === null || video === void 0 ? void 0 : video.fps) && currentFrame) {
|
|
10
|
+
return 1000 * (currentFrame / video.fps);
|
|
11
|
+
}
|
|
12
|
+
return 0;
|
|
13
|
+
};
|
|
14
|
+
exports.useCurrentTime = useCurrentTime;
|
|
15
|
+
//# sourceMappingURL=use-time.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-time.js","sourceRoot":"","sources":["../src/use-time.ts"],"names":[],"mappings":";;;AAAA,2CAA8C;AAC9C,2CAAuC;AAEhC,MAAM,cAAc,GAAG,GAAW,EAAE;IACzC,MAAM,KAAK,GAAG,IAAA,oBAAQ,GAAE,CAAC;IACzB,MAAM,YAAY,GAAG,IAAA,2BAAe,GAAE,CAAC;IAErC,IAAI,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,KAAI,YAAY,EAAE;QAC9B,OAAO,IAAI,GAAG,CAAC,YAAY,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;KAC1C;IAED,OAAO,CAAC,CAAC;AACb,CAAC,CAAC;AATW,QAAA,cAAc,kBASzB"}
|
package/dist/video/Video.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import { RemotionMainVideoProps } from './props';
|
|
|
3
3
|
export declare const Video: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "autoPlay" | "controls" | "loop"> & {
|
|
4
4
|
volume?: import("../volume-prop").VolumeProp | undefined;
|
|
5
5
|
playbackRate?: number | undefined;
|
|
6
|
-
} & RemotionMainVideoProps, "
|
|
6
|
+
} & RemotionMainVideoProps, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "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" | "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" | "height" | "width" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | "poster" | "disablePictureInPicture" | "disableRemotePlayback" | keyof RemotionMainVideoProps> & React.RefAttributes<HTMLVideoElement>>;
|
|
7
7
|
//# sourceMappingURL=Video.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RemotionVideoProps } from './props';
|
|
3
|
-
export declare const VideoForDevelopment: React.ForwardRefExoticComponent<Pick<RemotionVideoProps, "
|
|
3
|
+
export declare const VideoForDevelopment: React.ForwardRefExoticComponent<Pick<RemotionVideoProps, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "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" | "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" | "height" | "width" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | "poster" | "disablePictureInPicture" | "disableRemotePlayback"> & React.RefAttributes<HTMLVideoElement>>;
|
|
4
4
|
//# sourceMappingURL=VideoForDevelopment.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RemotionVideoProps } from './props';
|
|
3
|
-
export declare const VideoForRendering: React.ForwardRefExoticComponent<Pick<RemotionVideoProps, "
|
|
3
|
+
export declare const VideoForRendering: React.ForwardRefExoticComponent<Pick<RemotionVideoProps, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "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" | "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" | "height" | "width" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | "poster" | "disablePictureInPicture" | "disableRemotePlayback"> & React.RefAttributes<HTMLVideoElement>>;
|
|
4
4
|
//# sourceMappingURL=VideoForRendering.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remotion",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-lambda.13+ee9a0bf9b",
|
|
4
4
|
"description": "Render videos in React",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
"test": "eslint src --ext ts,tsx && jest --coverage && node generate-badges.js",
|
|
10
10
|
"build": "tsc -d",
|
|
11
11
|
"watch": "tsc -w",
|
|
12
|
-
"prerelease": "cp ../../README.md ."
|
|
13
|
-
"prepare": "rimraf node_modules/@types/react"
|
|
12
|
+
"prerelease": "cp ../../README.md ."
|
|
14
13
|
},
|
|
15
14
|
"repository": {
|
|
16
15
|
"url": "https://github.com/remotion-dev/remotion"
|
|
@@ -22,22 +21,23 @@
|
|
|
22
21
|
"react-dom": "^17.0.1"
|
|
23
22
|
},
|
|
24
23
|
"devDependencies": {
|
|
25
|
-
"@jonny/eslint-config": "^2.1.
|
|
24
|
+
"@jonny/eslint-config": "^2.1.248",
|
|
26
25
|
"@testing-library/react": "^11.2.2",
|
|
27
26
|
"@testing-library/react-hooks": "^5.1.1",
|
|
28
|
-
"@types/jest": "^
|
|
27
|
+
"@types/jest": "^27.0.2",
|
|
29
28
|
"@types/node": "^16.7.5",
|
|
30
29
|
"@types/webpack-env": "^1.16.0",
|
|
31
30
|
"eslint": "^7.25.0",
|
|
32
|
-
"jest": "^
|
|
31
|
+
"jest": "^27.2.4",
|
|
33
32
|
"prettier": "^2.0.5",
|
|
34
33
|
"prettier-plugin-organize-imports": "^1.1.1",
|
|
35
34
|
"rimraf": "^3.0.2",
|
|
36
|
-
"ts-jest": "^
|
|
35
|
+
"ts-jest": "^27.0.5",
|
|
37
36
|
"typescript": "^4.4.2",
|
|
38
37
|
"webpack": "5.37.0"
|
|
39
38
|
},
|
|
40
39
|
"publishConfig": {
|
|
41
40
|
"access": "public"
|
|
42
|
-
}
|
|
41
|
+
},
|
|
42
|
+
"gitHead": "ee9a0bf9b6a5a40f1b538b87cbaa6040b32a6fbb"
|
|
43
43
|
}
|