remotion 4.0.0-webhook.27 → 4.1.0-alpha1
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 +8 -8
- package/README.md +7 -7
- package/dist/{AbsoluteFill.d.ts → cjs/AbsoluteFill.d.ts} +2 -2
- package/dist/{AbsoluteFill.js → cjs/AbsoluteFill.js} +2 -2
- package/dist/cjs/AssetManager.d.ts +11 -0
- package/dist/cjs/AssetManager.js +40 -0
- package/dist/{CanUseRemotionHooks.d.ts → cjs/CanUseRemotionHooks.d.ts} +0 -0
- package/dist/{CanUseRemotionHooks.js → cjs/CanUseRemotionHooks.js} +0 -0
- package/dist/cjs/Clipper.d.ts +7 -0
- package/dist/cjs/Clipper.js +24 -0
- package/dist/cjs/Composition.d.ts +41 -0
- package/dist/cjs/Composition.js +132 -0
- package/dist/cjs/CompositionManager.d.ts +75 -0
- package/dist/{CompositionManager.js → cjs/CompositionManager.js} +29 -66
- package/dist/cjs/CompositionManagerContext.d.ts +18 -0
- package/dist/cjs/CompositionManagerContext.js +16 -0
- package/dist/cjs/EditorProps.d.ts +15 -0
- package/dist/cjs/EditorProps.js +53 -0
- package/dist/{Folder.d.ts → cjs/Folder.d.ts} +6 -2
- package/dist/{Folder.js → cjs/Folder.js} +10 -6
- package/dist/{IFrame.d.ts → cjs/IFrame.d.ts} +4 -0
- package/dist/{IFrame.js → cjs/IFrame.js} +8 -4
- package/dist/cjs/Img.d.ts +9 -0
- package/dist/cjs/Img.js +100 -0
- package/dist/cjs/NativeLayers.d.ts +13 -0
- package/dist/cjs/NativeLayers.js +29 -0
- package/dist/cjs/Null.d.ts +2 -0
- package/dist/cjs/Null.js +25 -0
- package/dist/{RemotionRoot.d.ts → cjs/RemotionRoot.d.ts} +1 -0
- package/dist/cjs/RemotionRoot.js +72 -0
- package/dist/cjs/ResolveCompositionConfig.d.ts +24 -0
- package/dist/cjs/ResolveCompositionConfig.js +192 -0
- package/dist/cjs/Sequence.d.ts +22 -0
- package/dist/{Sequence.js → cjs/Sequence.js} +27 -29
- package/dist/cjs/SequenceContext.d.ts +9 -0
- package/dist/cjs/SequenceContext.js +5 -0
- package/dist/cjs/SequenceManager.d.ts +11 -0
- package/dist/cjs/SequenceManager.js +57 -0
- package/dist/cjs/Still.d.ts +8 -0
- package/dist/cjs/Still.js +22 -0
- package/dist/{absolute-src.d.ts → cjs/absolute-src.d.ts} +0 -0
- package/dist/{absolute-src.js → cjs/absolute-src.js} +0 -0
- package/dist/{asset-types.d.ts → cjs/asset-types.d.ts} +0 -0
- package/dist/{asset-types.js → cjs/asset-types.js} +0 -0
- package/dist/{audio → cjs/audio}/Audio.d.ts +10 -4
- package/dist/cjs/audio/Audio.js +58 -0
- package/dist/cjs/audio/AudioForDevelopment.d.ts +11 -0
- package/dist/cjs/audio/AudioForDevelopment.js +101 -0
- package/dist/cjs/audio/AudioForRendering.d.ts +10 -0
- package/dist/cjs/audio/AudioForRendering.js +111 -0
- package/dist/cjs/audio/index.d.ts +2 -0
- package/dist/{audio → cjs/audio}/index.js +2 -2
- package/dist/cjs/audio/props.d.ts +12 -0
- package/dist/{audio → cjs/audio}/props.js +0 -0
- package/dist/{audio → cjs/audio}/shared-audio-tags.d.ts +10 -4
- package/dist/{audio → cjs/audio}/shared-audio-tags.js +35 -13
- package/dist/{audio → cjs/audio}/use-audio-frame.d.ts +0 -0
- package/dist/{audio → cjs/audio}/use-audio-frame.js +4 -4
- package/dist/{bezier.d.ts → cjs/bezier.d.ts} +0 -0
- package/dist/{bezier.js → cjs/bezier.js} +0 -0
- package/dist/cjs/cancel-render.d.ts +5 -0
- package/dist/cjs/cancel-render.js +47 -0
- package/dist/{config → cjs/config}/input-props.d.ts +0 -0
- package/dist/{config → cjs/config}/input-props.js +3 -3
- package/dist/{default-css.d.ts → cjs/default-css.d.ts} +0 -0
- package/dist/{default-css.js → cjs/default-css.js} +0 -0
- package/dist/{delay-render.d.ts → cjs/delay-render.d.ts} +4 -4
- package/dist/{delay-render.js → cjs/delay-render.js} +12 -12
- package/dist/{easing.d.ts → cjs/easing.d.ts} +4 -0
- package/dist/{easing.js → cjs/easing.js} +6 -2
- package/dist/cjs/freeze.d.ts +11 -0
- package/dist/{freeze.js → cjs/freeze.js} +8 -4
- package/dist/{get-asset-file-name.d.ts → cjs/get-asset-file-name.d.ts} +0 -0
- package/dist/{get-asset-file-name.js → cjs/get-asset-file-name.js} +0 -0
- package/dist/cjs/get-environment.d.ts +3 -0
- package/dist/{get-environment.js → cjs/get-environment.js} +14 -2
- package/dist/cjs/get-preview-dom-element.d.ts +2 -0
- package/dist/cjs/get-preview-dom-element.js +8 -0
- package/dist/cjs/get-static-files.d.ts +21 -0
- package/dist/cjs/get-static-files.js +35 -0
- package/dist/{get-timeline-clip-name.d.ts → cjs/get-timeline-clip-name.d.ts} +0 -0
- package/dist/{get-timeline-clip-name.js → cjs/get-timeline-clip-name.js} +0 -0
- package/dist/cjs/index.d.ts +102 -0
- package/dist/cjs/index.js +105 -0
- package/dist/cjs/internals.d.ts +131 -0
- package/dist/cjs/internals.js +120 -0
- package/dist/{interpolate-colors.d.ts → cjs/interpolate-colors.d.ts} +5 -0
- package/dist/{interpolate-colors.js → cjs/interpolate-colors.js} +10 -10
- package/dist/{interpolate.d.ts → cjs/interpolate.d.ts} +11 -7
- package/dist/{interpolate.js → cjs/interpolate.js} +0 -0
- package/dist/{is-approximately-the-same.d.ts → cjs/is-approximately-the-same.d.ts} +0 -0
- package/dist/{is-approximately-the-same.js → cjs/is-approximately-the-same.js} +0 -0
- package/dist/cjs/is-player.d.ts +3 -0
- package/dist/cjs/is-player.js +14 -0
- package/dist/{loading-indicator.d.ts → cjs/loading-indicator.d.ts} +0 -0
- package/dist/{loading-indicator.js → cjs/loading-indicator.js} +4 -4
- package/dist/cjs/loop/index.d.ts +13 -0
- package/dist/cjs/loop/index.js +46 -0
- package/dist/{multiple-versions-warning.d.ts → cjs/multiple-versions-warning.d.ts} +0 -0
- package/dist/{multiple-versions-warning.js → cjs/multiple-versions-warning.js} +11 -6
- package/dist/{nonce.d.ts → cjs/nonce.d.ts} +1 -1
- package/dist/{nonce.js → cjs/nonce.js} +6 -0
- package/dist/{play-and-handle-not-allowed-error.d.ts → cjs/play-and-handle-not-allowed-error.d.ts} +0 -0
- package/dist/{play-and-handle-not-allowed-error.js → cjs/play-and-handle-not-allowed-error.js} +4 -0
- package/dist/{portal-node.d.ts → cjs/portal-node.d.ts} +0 -0
- package/dist/{portal-node.js → cjs/portal-node.js} +0 -0
- package/dist/cjs/prefetch-state.d.ts +8 -0
- package/dist/cjs/prefetch-state.js +27 -0
- package/dist/cjs/prefetch.d.ts +13 -0
- package/dist/{prefetch.js → cjs/prefetch.js} +43 -17
- package/dist/cjs/props-if-has-props.d.ts +10 -0
- package/dist/{video-config.js → cjs/props-if-has-props.js} +0 -0
- package/dist/cjs/random.d.ts +6 -0
- package/dist/{random.js → cjs/random.js} +3 -3
- package/dist/{register-root.d.ts → cjs/register-root.d.ts} +4 -0
- package/dist/{register-root.js → cjs/register-root.js} +4 -0
- package/dist/cjs/resolve-video-config.d.ts +8 -0
- package/dist/cjs/resolve-video-config.js +89 -0
- package/dist/cjs/series/flatten-children.d.ts +2 -0
- package/dist/{series → cjs/series}/flatten-children.js +0 -0
- package/dist/cjs/series/index.d.ts +17 -0
- package/dist/{series → cjs/series}/index.js +22 -8
- package/dist/cjs/setup-env-variables.d.ts +1 -0
- package/dist/{setup-env-variables.js → cjs/setup-env-variables.js} +7 -9
- package/dist/{spring → cjs/spring}/index.d.ts +10 -6
- package/dist/cjs/spring/index.js +75 -0
- package/dist/cjs/spring/measure-spring.d.ts +12 -0
- package/dist/{spring → cjs/spring}/measure-spring.js +8 -4
- package/dist/{spring → cjs/spring}/spring-utils.d.ts +2 -2
- package/dist/{spring → cjs/spring}/spring-utils.js +0 -0
- package/dist/cjs/static-file.d.ts +33 -0
- package/dist/cjs/static-file.js +87 -0
- package/dist/{timeline-position-state.d.ts → cjs/timeline-position-state.d.ts} +4 -4
- package/dist/{timeline-position-state.js → cjs/timeline-position-state.js} +9 -1
- package/dist/cjs/truthy.d.ts +3 -0
- package/dist/{truthy.js → cjs/truthy.js} +0 -0
- package/dist/cjs/use-current-frame.d.ts +5 -0
- package/dist/{use-current-frame.js → cjs/use-current-frame.js} +8 -9
- package/dist/cjs/use-lazy-component.d.ts +7 -0
- package/dist/{use-lazy-component.js → cjs/use-lazy-component.js} +0 -0
- package/dist/{use-media-in-timeline.d.ts → cjs/use-media-in-timeline.d.ts} +3 -2
- package/dist/{use-media-in-timeline.js → cjs/use-media-in-timeline.js} +29 -25
- package/dist/{use-media-playback.d.ts → cjs/use-media-playback.d.ts} +3 -1
- package/dist/cjs/use-media-playback.js +86 -0
- package/dist/{use-media-tag-volume.d.ts → cjs/use-media-tag-volume.d.ts} +0 -0
- package/dist/{use-media-tag-volume.js → cjs/use-media-tag-volume.js} +0 -0
- package/dist/{use-sync-volume-with-media-tag.d.ts → cjs/use-sync-volume-with-media-tag.d.ts} +2 -2
- package/dist/{use-sync-volume-with-media-tag.js → cjs/use-sync-volume-with-media-tag.js} +5 -4
- package/dist/{use-unsafe-video-config.d.ts → cjs/use-unsafe-video-config.d.ts} +1 -1
- package/dist/{use-unsafe-video-config.js → cjs/use-unsafe-video-config.js} +4 -4
- package/dist/cjs/use-video-config.d.ts +8 -0
- package/dist/cjs/use-video-config.js +34 -0
- package/dist/cjs/use-video.d.ts +7 -0
- package/dist/cjs/use-video.js +38 -0
- package/dist/cjs/validate-frame.d.ts +5 -0
- package/dist/cjs/validate-frame.js +24 -0
- package/dist/cjs/validate-media-props.d.ts +4 -0
- package/dist/{validate-media-props.js → cjs/validate-media-props.js} +0 -0
- package/dist/{validate-start-from-props.d.ts → cjs/validate-start-from-props.d.ts} +0 -0
- package/dist/{validate-start-from-props.js → cjs/validate-start-from-props.js} +0 -0
- package/dist/{validation → cjs/validation}/validate-composition-id.d.ts +0 -0
- package/dist/{validation → cjs/validation}/validate-composition-id.js +0 -0
- package/dist/cjs/validation/validate-default-props.d.ts +1 -0
- package/dist/cjs/validation/validate-default-props.js +15 -0
- package/dist/{validation → cjs/validation}/validate-dimensions.d.ts +0 -0
- package/dist/{validation → cjs/validation}/validate-dimensions.js +0 -0
- package/dist/cjs/validation/validate-duration-in-frames.d.ts +5 -0
- package/dist/{validation → cjs/validation}/validate-duration-in-frames.js +5 -2
- package/dist/{validation → cjs/validation}/validate-folder-name.d.ts +0 -0
- package/dist/{validation → cjs/validation}/validate-folder-name.js +0 -0
- package/dist/{validation → cjs/validation}/validate-fps.d.ts +0 -0
- package/dist/{validation → cjs/validation}/validate-fps.js +0 -0
- package/dist/{validation → cjs/validation}/validation-spring-duration.d.ts +0 -0
- package/dist/{validation → cjs/validation}/validation-spring-duration.js +0 -0
- package/dist/cjs/version.d.ts +1 -0
- package/dist/{version.js → cjs/version.js} +1 -1
- package/dist/cjs/video/OffthreadVideo.d.ts +7 -0
- package/dist/cjs/video/OffthreadVideo.js +38 -0
- package/dist/{video → cjs/video}/OffthreadVideoForRendering.d.ts +1 -1
- package/dist/cjs/video/OffthreadVideoForRendering.js +103 -0
- package/dist/cjs/video/Video.d.ts +12 -0
- package/dist/cjs/video/Video.js +55 -0
- package/dist/{video → cjs/video}/VideoForDevelopment.d.ts +5 -2
- package/dist/cjs/video/VideoForDevelopment.js +117 -0
- package/dist/cjs/video/VideoForRendering.d.ts +10 -0
- package/dist/cjs/video/VideoForRendering.js +208 -0
- package/dist/cjs/video/duration-state.d.ts +17 -0
- package/dist/cjs/video/duration-state.js +35 -0
- package/dist/{video → cjs/video}/get-current-time.d.ts +0 -0
- package/dist/{video → cjs/video}/get-current-time.js +12 -11
- package/dist/cjs/video/index.d.ts +3 -0
- package/dist/{video → cjs/video}/index.js +4 -4
- package/dist/cjs/video/props.d.ts +32 -0
- package/dist/cjs/video/props.js +2 -0
- package/dist/cjs/video/video-fragment.d.ts +12 -0
- package/dist/cjs/video/video-fragment.js +60 -0
- package/dist/{video-config.d.ts → cjs/video-config.d.ts} +2 -2
- package/dist/{video/props.js → cjs/video-config.js} +0 -0
- package/dist/{volume-position-state.d.ts → cjs/volume-position-state.d.ts} +4 -4
- package/dist/{volume-position-state.js → cjs/volume-position-state.js} +0 -0
- package/dist/{volume-prop.d.ts → cjs/volume-prop.d.ts} +3 -2
- package/dist/{volume-prop.js → cjs/volume-prop.js} +4 -3
- package/dist/{warn-about-non-seekable-media.d.ts → cjs/warn-about-non-seekable-media.d.ts} +0 -0
- package/dist/{warn-about-non-seekable-media.js → cjs/warn-about-non-seekable-media.js} +2 -2
- package/dist/cjs/wrap-remotion-context.d.ts +31 -0
- package/dist/cjs/wrap-remotion-context.js +85 -0
- package/dist/esm/index.mjs +4623 -0
- package/dist/esm/version.mjs +4 -0
- package/package.json +80 -57
- package/version.js +2 -1
- package/.prettierrc.js +0 -14
- package/.turbo/turbo-build.log +0 -5
- package/dist/Composition.d.ts +0 -22
- package/dist/Composition.js +0 -98
- package/dist/CompositionManager.d.ts +0 -79
- package/dist/Img.d.ts +0 -2
- package/dist/Img.js +0 -51
- package/dist/RemotionRoot.js +0 -71
- package/dist/Sequence.d.ts +0 -29
- package/dist/Still.d.ts +0 -3
- package/dist/Still.js +0 -9
- package/dist/audio/Audio.js +0 -32
- package/dist/audio/AudioForDevelopment.d.ts +0 -8
- package/dist/audio/AudioForDevelopment.js +0 -71
- package/dist/audio/AudioForRendering.d.ts +0 -6
- package/dist/audio/AudioForRendering.js +0 -75
- package/dist/audio/index.d.ts +0 -2
- package/dist/audio/props.d.ts +0 -10
- package/dist/config.d.ts +0 -218
- package/dist/config.js +0 -21
- package/dist/freeze.d.ts +0 -7
- package/dist/get-environment.d.ts +0 -2
- package/dist/get-preview-dom-element.d.ts +0 -1
- package/dist/get-preview-dom-element.js +0 -7
- package/dist/index.d.ts +0 -72
- package/dist/index.js +0 -58
- package/dist/internals.d.ts +0 -88
- package/dist/internals.js +0 -93
- package/dist/loop/index.d.ts +0 -9
- package/dist/loop/index.js +0 -28
- package/dist/prefetch-state.d.ts +0 -13
- package/dist/prefetch-state.js +0 -26
- package/dist/prefetch.d.ts +0 -7
- package/dist/random.d.ts +0 -6
- package/dist/series/flatten-children.d.ts +0 -2
- package/dist/series/index.d.ts +0 -13
- package/dist/setup-env-variables.d.ts +0 -2
- package/dist/spring/index.js +0 -51
- package/dist/spring/measure-spring.d.ts +0 -8
- package/dist/static-file.d.ts +0 -1
- package/dist/static-file.js +0 -29
- package/dist/truthy.d.ts +0 -3
- package/dist/use-current-frame.d.ts +0 -6
- package/dist/use-lazy-component.d.ts +0 -7
- package/dist/use-media-playback.js +0 -75
- package/dist/use-video-config.d.ts +0 -7
- package/dist/use-video-config.js +0 -26
- package/dist/use-video.d.ts +0 -13
- package/dist/use-video.js +0 -28
- package/dist/validate-media-props.d.ts +0 -4
- package/dist/validation/validate-duration-in-frames.d.ts +0 -1
- package/dist/validation/validate-offthreadvideo-image-format.d.ts +0 -1
- package/dist/validation/validate-offthreadvideo-image-format.js +0 -15
- package/dist/version.d.ts +0 -1
- package/dist/video/LoopedVideo.d.ts +0 -3
- package/dist/video/LoopedVideo.js +0 -16
- package/dist/video/OffthreadVideo.d.ts +0 -3
- package/dist/video/OffthreadVideo.js +0 -27
- package/dist/video/OffthreadVideoForRendering.js +0 -101
- package/dist/video/Video.d.ts +0 -6
- package/dist/video/Video.js +0 -29
- package/dist/video/VideoForDevelopment.js +0 -69
- package/dist/video/VideoForRendering.d.ts +0 -6
- package/dist/video/VideoForRendering.js +0 -168
- package/dist/video/duration-state.d.ts +0 -8
- package/dist/video/duration-state.js +0 -15
- package/dist/video/index.d.ts +0 -3
- package/dist/video/props.d.ts +0 -21
- package/dist/wrap-remotion-context.d.ts +0 -14
- package/dist/wrap-remotion-context.js +0 -65
- package/ensure-correct-version.js +0 -24
- package/tsconfig.json +0 -12
- package/version.d.ts +0 -1
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import './asset-types.js';
|
|
2
|
+
import type { AnyCompMetadata, TAsset } from './CompositionManager.js';
|
|
3
|
+
import type { StaticFile } from './get-static-files.js';
|
|
4
|
+
import type { ClipRegion } from './NativeLayers.js';
|
|
5
|
+
import type { VideoConfig } from './video-config.js';
|
|
6
|
+
declare global {
|
|
7
|
+
interface Window {
|
|
8
|
+
remotion_renderReady: boolean;
|
|
9
|
+
remotion_cancelledError: string | undefined;
|
|
10
|
+
remotion_getCompositionNames: () => string[];
|
|
11
|
+
getStaticCompositions: () => Promise<AnyCompMetadata[]>;
|
|
12
|
+
remotion_calculateComposition: (compId: string) => Promise<VideoConfig>;
|
|
13
|
+
remotion_setBundleMode: (bundleMode: BundleState) => void;
|
|
14
|
+
remotion_staticBase: string;
|
|
15
|
+
remotion_staticFiles: StaticFile[];
|
|
16
|
+
remotion_editorName: string | null;
|
|
17
|
+
remotion_numberOfAudioTags: number;
|
|
18
|
+
remotion_projectName: string;
|
|
19
|
+
remotion_cwd: string;
|
|
20
|
+
remotion_studioServerCommand: string;
|
|
21
|
+
remotion_setFrame: (frame: number) => void;
|
|
22
|
+
remotion_initialFrame: number;
|
|
23
|
+
remotion_proxyPort: number;
|
|
24
|
+
remotion_audioEnabled: boolean;
|
|
25
|
+
remotion_videoEnabled: boolean;
|
|
26
|
+
remotion_puppeteerTimeout: number;
|
|
27
|
+
remotion_inputProps: string;
|
|
28
|
+
remotion_envVariables: string;
|
|
29
|
+
remotion_collectAssets: () => TAsset[];
|
|
30
|
+
remotion_getClipRegion: () => ClipRegion | null;
|
|
31
|
+
remotion_isPlayer: boolean;
|
|
32
|
+
remotion_isBuilding: undefined | (() => void);
|
|
33
|
+
remotion_finishedBuilding: undefined | (() => void);
|
|
34
|
+
siteVersion: '5';
|
|
35
|
+
remotion_version: string;
|
|
36
|
+
remotion_imported: string | boolean;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export type BundleState = {
|
|
40
|
+
type: 'index';
|
|
41
|
+
} | {
|
|
42
|
+
type: 'evaluation';
|
|
43
|
+
} | {
|
|
44
|
+
type: 'composition';
|
|
45
|
+
compositionName: string;
|
|
46
|
+
compositionDefaultProps: Record<string, unknown>;
|
|
47
|
+
compositionHeight: number;
|
|
48
|
+
compositionDurationInFrames: number;
|
|
49
|
+
compositionWidth: number;
|
|
50
|
+
compositionFps: number;
|
|
51
|
+
};
|
|
52
|
+
export * from './AbsoluteFill.js';
|
|
53
|
+
export * from './audio/index.js';
|
|
54
|
+
export { cancelRender } from './cancel-render.js';
|
|
55
|
+
export { CalculateMetadataFunction, Composition, CompositionProps, CompProps, StillProps, } from './Composition.js';
|
|
56
|
+
export { AnyCompMetadata, AnyComposition, AnySmallCompMetadata, SmallTCompMetadata, TAsset, TCompMetadata, } from './CompositionManager.js';
|
|
57
|
+
export { getInputProps } from './config/input-props.js';
|
|
58
|
+
export { continueRender, delayRender } from './delay-render.js';
|
|
59
|
+
export * from './easing.js';
|
|
60
|
+
export * from './Folder.js';
|
|
61
|
+
export * from './freeze.js';
|
|
62
|
+
export { getStaticFiles, StaticFile } from './get-static-files.js';
|
|
63
|
+
export * from './IFrame.js';
|
|
64
|
+
export * from './Img.js';
|
|
65
|
+
export * from './internals.js';
|
|
66
|
+
export { interpolateColors } from './interpolate-colors.js';
|
|
67
|
+
export { ExtrapolateType, interpolate, InterpolateOptions, } from './interpolate.js';
|
|
68
|
+
export { Loop } from './loop/index.js';
|
|
69
|
+
export { ClipRegion } from './NativeLayers.js';
|
|
70
|
+
export { prefetch } from './prefetch.js';
|
|
71
|
+
export { random, RandomSeed } from './random.js';
|
|
72
|
+
export { registerRoot } from './register-root.js';
|
|
73
|
+
export { Sequence } from './Sequence.js';
|
|
74
|
+
export { Series } from './series/index.js';
|
|
75
|
+
export * from './spring/index.js';
|
|
76
|
+
export { staticFile } from './static-file.js';
|
|
77
|
+
export * from './Still.js';
|
|
78
|
+
export type { PlayableMediaTag } from './timeline-position-state.js';
|
|
79
|
+
export { useCurrentFrame } from './use-current-frame.js';
|
|
80
|
+
export * from './use-video-config.js';
|
|
81
|
+
export * from './version.js';
|
|
82
|
+
export * from './video-config.js';
|
|
83
|
+
export * from './video/index.js';
|
|
84
|
+
export declare const Experimental: {
|
|
85
|
+
/**
|
|
86
|
+
* @description This is a special component that will cause Remotion to only partially capture the frame of the video.
|
|
87
|
+
* @see [Documentation](https://www.remotion.dev/docs/clipper)
|
|
88
|
+
*/
|
|
89
|
+
Clipper: import("react").FC<{
|
|
90
|
+
width: number;
|
|
91
|
+
height: number;
|
|
92
|
+
x: number;
|
|
93
|
+
y: number;
|
|
94
|
+
}>;
|
|
95
|
+
/**
|
|
96
|
+
* @description This is a special component, that, when rendered, will skip rendering the frame altogether.
|
|
97
|
+
* @see [Documentation](https://www.remotion.dev/docs/null)
|
|
98
|
+
*/
|
|
99
|
+
Null: import("react").FC<{}>;
|
|
100
|
+
useIsPlayer: () => boolean;
|
|
101
|
+
};
|
|
102
|
+
export declare const Config: {};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Config = exports.Experimental = exports.useCurrentFrame = exports.staticFile = exports.Series = exports.Sequence = exports.registerRoot = exports.random = exports.prefetch = exports.Loop = exports.interpolate = exports.interpolateColors = exports.getStaticFiles = exports.delayRender = exports.continueRender = exports.getInputProps = exports.Composition = exports.cancelRender = void 0;
|
|
18
|
+
require("./asset-types.js");
|
|
19
|
+
const Clipper_js_1 = require("./Clipper.js");
|
|
20
|
+
const is_player_js_1 = require("./is-player.js");
|
|
21
|
+
const multiple_versions_warning_js_1 = require("./multiple-versions-warning.js");
|
|
22
|
+
const Null_js_1 = require("./Null.js");
|
|
23
|
+
(0, multiple_versions_warning_js_1.checkMultipleRemotionVersions)();
|
|
24
|
+
__exportStar(require("./AbsoluteFill.js"), exports);
|
|
25
|
+
__exportStar(require("./audio/index.js"), exports);
|
|
26
|
+
var cancel_render_js_1 = require("./cancel-render.js");
|
|
27
|
+
Object.defineProperty(exports, "cancelRender", { enumerable: true, get: function () { return cancel_render_js_1.cancelRender; } });
|
|
28
|
+
var Composition_js_1 = require("./Composition.js");
|
|
29
|
+
Object.defineProperty(exports, "Composition", { enumerable: true, get: function () { return Composition_js_1.Composition; } });
|
|
30
|
+
var input_props_js_1 = require("./config/input-props.js");
|
|
31
|
+
Object.defineProperty(exports, "getInputProps", { enumerable: true, get: function () { return input_props_js_1.getInputProps; } });
|
|
32
|
+
var delay_render_js_1 = require("./delay-render.js");
|
|
33
|
+
Object.defineProperty(exports, "continueRender", { enumerable: true, get: function () { return delay_render_js_1.continueRender; } });
|
|
34
|
+
Object.defineProperty(exports, "delayRender", { enumerable: true, get: function () { return delay_render_js_1.delayRender; } });
|
|
35
|
+
__exportStar(require("./easing.js"), exports);
|
|
36
|
+
__exportStar(require("./Folder.js"), exports);
|
|
37
|
+
__exportStar(require("./freeze.js"), exports);
|
|
38
|
+
var get_static_files_js_1 = require("./get-static-files.js");
|
|
39
|
+
Object.defineProperty(exports, "getStaticFiles", { enumerable: true, get: function () { return get_static_files_js_1.getStaticFiles; } });
|
|
40
|
+
__exportStar(require("./IFrame.js"), exports);
|
|
41
|
+
__exportStar(require("./Img.js"), exports);
|
|
42
|
+
__exportStar(require("./internals.js"), exports);
|
|
43
|
+
var interpolate_colors_js_1 = require("./interpolate-colors.js");
|
|
44
|
+
Object.defineProperty(exports, "interpolateColors", { enumerable: true, get: function () { return interpolate_colors_js_1.interpolateColors; } });
|
|
45
|
+
var interpolate_js_1 = require("./interpolate.js");
|
|
46
|
+
Object.defineProperty(exports, "interpolate", { enumerable: true, get: function () { return interpolate_js_1.interpolate; } });
|
|
47
|
+
var index_js_1 = require("./loop/index.js");
|
|
48
|
+
Object.defineProperty(exports, "Loop", { enumerable: true, get: function () { return index_js_1.Loop; } });
|
|
49
|
+
var prefetch_js_1 = require("./prefetch.js");
|
|
50
|
+
Object.defineProperty(exports, "prefetch", { enumerable: true, get: function () { return prefetch_js_1.prefetch; } });
|
|
51
|
+
var random_js_1 = require("./random.js");
|
|
52
|
+
Object.defineProperty(exports, "random", { enumerable: true, get: function () { return random_js_1.random; } });
|
|
53
|
+
var register_root_js_1 = require("./register-root.js");
|
|
54
|
+
Object.defineProperty(exports, "registerRoot", { enumerable: true, get: function () { return register_root_js_1.registerRoot; } });
|
|
55
|
+
var Sequence_js_1 = require("./Sequence.js");
|
|
56
|
+
Object.defineProperty(exports, "Sequence", { enumerable: true, get: function () { return Sequence_js_1.Sequence; } });
|
|
57
|
+
var index_js_2 = require("./series/index.js");
|
|
58
|
+
Object.defineProperty(exports, "Series", { enumerable: true, get: function () { return index_js_2.Series; } });
|
|
59
|
+
__exportStar(require("./spring/index.js"), exports);
|
|
60
|
+
var static_file_js_1 = require("./static-file.js");
|
|
61
|
+
Object.defineProperty(exports, "staticFile", { enumerable: true, get: function () { return static_file_js_1.staticFile; } });
|
|
62
|
+
__exportStar(require("./Still.js"), exports);
|
|
63
|
+
var use_current_frame_js_1 = require("./use-current-frame.js");
|
|
64
|
+
Object.defineProperty(exports, "useCurrentFrame", { enumerable: true, get: function () { return use_current_frame_js_1.useCurrentFrame; } });
|
|
65
|
+
__exportStar(require("./use-video-config.js"), exports);
|
|
66
|
+
__exportStar(require("./version.js"), exports);
|
|
67
|
+
__exportStar(require("./video-config.js"), exports);
|
|
68
|
+
__exportStar(require("./video/index.js"), exports);
|
|
69
|
+
exports.Experimental = {
|
|
70
|
+
/**
|
|
71
|
+
* @description This is a special component that will cause Remotion to only partially capture the frame of the video.
|
|
72
|
+
* @see [Documentation](https://www.remotion.dev/docs/clipper)
|
|
73
|
+
*/
|
|
74
|
+
Clipper: Clipper_js_1.Clipper,
|
|
75
|
+
/**
|
|
76
|
+
* @description This is a special component, that, when rendered, will skip rendering the frame altogether.
|
|
77
|
+
* @see [Documentation](https://www.remotion.dev/docs/null)
|
|
78
|
+
*/
|
|
79
|
+
Null: Null_js_1.Null,
|
|
80
|
+
useIsPlayer: is_player_js_1.useIsPlayer,
|
|
81
|
+
};
|
|
82
|
+
const proxyObj = {};
|
|
83
|
+
exports.Config = new Proxy(proxyObj, {
|
|
84
|
+
get(_, prop) {
|
|
85
|
+
if (prop === 'Bundling' ||
|
|
86
|
+
prop === 'Rendering' ||
|
|
87
|
+
prop === 'Log' ||
|
|
88
|
+
prop === 'Puppeteer' ||
|
|
89
|
+
prop === 'Output') {
|
|
90
|
+
return exports.Config;
|
|
91
|
+
}
|
|
92
|
+
return () => {
|
|
93
|
+
console.warn('⚠️ The CLI configuration has been extracted from Remotion Core.');
|
|
94
|
+
console.warn('Update the import from the config file:');
|
|
95
|
+
console.warn();
|
|
96
|
+
console.warn('- Delete:');
|
|
97
|
+
console.warn('import {Config} from "remotion";');
|
|
98
|
+
console.warn('+ Replace:');
|
|
99
|
+
console.warn('import {Config} from "@remotion/cli/config";');
|
|
100
|
+
console.warn();
|
|
101
|
+
console.warn('For more information, see https://v4.remotion.dev/docs/4-0-migration.');
|
|
102
|
+
process.exit(1);
|
|
103
|
+
};
|
|
104
|
+
},
|
|
105
|
+
});
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { CompProps } from './Composition.js';
|
|
3
|
+
import type { TAsset, TCompMetadata, TComposition, TSequence } from './CompositionManager.js';
|
|
4
|
+
import type { CompositionManagerContext } from './CompositionManagerContext.js';
|
|
5
|
+
import * as CSSUtils from './default-css.js';
|
|
6
|
+
import type { RemotionEnvironment } from './get-environment.js';
|
|
7
|
+
import { processColor } from './interpolate-colors.js';
|
|
8
|
+
import type { SetTimelineContextValue, TimelineContextValue } from './timeline-position-state.js';
|
|
9
|
+
import * as TimelinePosition from './timeline-position-state.js';
|
|
10
|
+
import { truthy } from './truthy.js';
|
|
11
|
+
import type { MediaVolumeContextValue, SetMediaVolumeContextValue } from './volume-position-state.js';
|
|
12
|
+
import { useRemotionContexts } from './wrap-remotion-context.js';
|
|
13
|
+
declare const Timeline: typeof TimelinePosition;
|
|
14
|
+
export declare const Internals: {
|
|
15
|
+
useUnsafeVideoConfig: () => import("./video-config.js").VideoConfig | null;
|
|
16
|
+
Timeline: typeof TimelinePosition;
|
|
17
|
+
CompositionManager: import("react").Context<CompositionManagerContext>;
|
|
18
|
+
SequenceManager: import("react").Context<import("./SequenceManager.js").SequenceManagerContext>;
|
|
19
|
+
RemotionRoot: import("react").FC<{
|
|
20
|
+
children: import("react").ReactNode;
|
|
21
|
+
numberOfAudioTags: number;
|
|
22
|
+
}>;
|
|
23
|
+
useVideo: () => (import("./video-config.js").VideoConfig & {
|
|
24
|
+
component: import("react").LazyExoticComponent<import("react").ComponentType<Record<string, unknown> | undefined>>;
|
|
25
|
+
}) | null;
|
|
26
|
+
getRoot: () => import("react").FC<{}> | null;
|
|
27
|
+
useMediaVolumeState: () => readonly [number, (u: number) => void];
|
|
28
|
+
useMediaMutedState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void];
|
|
29
|
+
useLazyComponent: <Props>(compProps: CompProps<Props>) => import("react").ExoticComponent<(import("react").PropsWithoutRef<Props> & import("react").RefAttributes<import("react").Component<Props, any, any>>) | import("react").PropsWithRef<Props>> & {
|
|
30
|
+
readonly _result: import("react").ComponentType<Props>;
|
|
31
|
+
};
|
|
32
|
+
truthy: typeof truthy;
|
|
33
|
+
SequenceContext: import("react").Context<import("./SequenceContext.js").SequenceContextType | null>;
|
|
34
|
+
useRemotionContexts: typeof useRemotionContexts;
|
|
35
|
+
RemotionContextProvider: (props: import("./wrap-remotion-context.js").RemotionContextProviderProps) => JSX.Element;
|
|
36
|
+
CSSUtils: typeof CSSUtils;
|
|
37
|
+
setupEnvVariables: () => void;
|
|
38
|
+
MediaVolumeContext: import("react").Context<MediaVolumeContextValue>;
|
|
39
|
+
SetMediaVolumeContext: import("react").Context<SetMediaVolumeContextValue>;
|
|
40
|
+
validateDurationInFrames: ({ allowFloats, component, durationInFrames, }: {
|
|
41
|
+
durationInFrames: number;
|
|
42
|
+
component: string;
|
|
43
|
+
allowFloats: boolean;
|
|
44
|
+
}) => void;
|
|
45
|
+
validateFps: (fps: number, location: string, isGif: boolean) => void;
|
|
46
|
+
validateDefaultAndInputProps: (defaultProps: unknown, name: "defaultProps" | "inputProps", compositionId: string | null) => void;
|
|
47
|
+
validateDimension: (amount: number, nameOfProp: string, location: string) => void;
|
|
48
|
+
getRemotionEnvironment: () => RemotionEnvironment;
|
|
49
|
+
SharedAudioContext: import("react").Context<{
|
|
50
|
+
registerAudio: (aud: import("./index.js").RemotionAudioProps, audioId: string) => {
|
|
51
|
+
id: number;
|
|
52
|
+
props: import("./index.js").RemotionAudioProps;
|
|
53
|
+
el: import("react").RefObject<HTMLAudioElement>;
|
|
54
|
+
audioId: string;
|
|
55
|
+
};
|
|
56
|
+
unregisterAudio: (id: number) => void;
|
|
57
|
+
updateAudio: (options: {
|
|
58
|
+
id: number;
|
|
59
|
+
aud: import("./index.js").RemotionAudioProps;
|
|
60
|
+
audioId: string;
|
|
61
|
+
}) => void;
|
|
62
|
+
playAllAudios: () => void;
|
|
63
|
+
numberOfAudioTags: number;
|
|
64
|
+
} | null>;
|
|
65
|
+
SharedAudioContextProvider: import("react").FC<{
|
|
66
|
+
numberOfAudioTags: number;
|
|
67
|
+
children: import("react").ReactNode;
|
|
68
|
+
component: import("react").LazyExoticComponent<import("react").ComponentType<Record<string, unknown> | undefined>> | null;
|
|
69
|
+
}>;
|
|
70
|
+
invalidCompositionErrorMessage: string;
|
|
71
|
+
isCompositionIdValid: (id: string) => RegExpMatchArray | null;
|
|
72
|
+
getPreviewDomElement: () => HTMLElement | null;
|
|
73
|
+
compositionsRef: import("react").RefObject<{
|
|
74
|
+
getCompositions: () => import("./CompositionManager.js").TCompMetadataWithCalcFunction<import("zod").AnyZodObject, Record<string, unknown> | undefined>[];
|
|
75
|
+
}>;
|
|
76
|
+
DELAY_RENDER_CALLSTACK_TOKEN: string;
|
|
77
|
+
portalNode: () => HTMLElement;
|
|
78
|
+
waitForRoot: (fn: (comp: import("react").FC<{}>) => void) => () => void;
|
|
79
|
+
CanUseRemotionHooksProvider: import("react").FC<{
|
|
80
|
+
children: import("react").ReactNode;
|
|
81
|
+
}>;
|
|
82
|
+
CanUseRemotionHooks: import("react").Context<boolean>;
|
|
83
|
+
PrefetchProvider: import("react").FC<{
|
|
84
|
+
children: import("react").ReactNode;
|
|
85
|
+
}>;
|
|
86
|
+
DurationsContextProvider: import("react").FC<{
|
|
87
|
+
children: import("react").ReactNode;
|
|
88
|
+
}>;
|
|
89
|
+
IsPlayerContextProvider: import("react").FC<{
|
|
90
|
+
children?: import("react").ReactNode;
|
|
91
|
+
}>;
|
|
92
|
+
useIsPlayer: () => boolean;
|
|
93
|
+
useRemotionEnvironment: () => RemotionEnvironment;
|
|
94
|
+
validateFrame: ({ allowFloats, durationInFrames, frame, }: {
|
|
95
|
+
frame: number;
|
|
96
|
+
durationInFrames: number;
|
|
97
|
+
allowFloats: boolean;
|
|
98
|
+
}) => void;
|
|
99
|
+
EditorPropsProvider: import("react").FC<{
|
|
100
|
+
children: import("react").ReactNode;
|
|
101
|
+
}>;
|
|
102
|
+
EditorPropsContext: import("react").Context<import("./EditorProps.js").EditorPropsContextType>;
|
|
103
|
+
usePreload: (src: string) => string;
|
|
104
|
+
processColor: typeof processColor;
|
|
105
|
+
NonceContext: import("react").Context<import("./nonce.js").TNonceContext>;
|
|
106
|
+
resolveVideoConfig: ({ composition, editorProps: editorPropsOrUndefined, signal, }: {
|
|
107
|
+
composition: import("./CompositionManager.js").TCompMetadataWithCalcFunction<import("zod").AnyZodObject, Record<string, unknown> | undefined>;
|
|
108
|
+
editorProps: object;
|
|
109
|
+
signal: AbortSignal;
|
|
110
|
+
}) => import("./video-config.js").VideoConfig | Promise<import("./video-config.js").VideoConfig>;
|
|
111
|
+
useResolvedVideoConfig: (preferredCompositionId: string | null) => ({
|
|
112
|
+
type: "loading";
|
|
113
|
+
} | {
|
|
114
|
+
type: "success";
|
|
115
|
+
result: import("./video-config.js").VideoConfig;
|
|
116
|
+
} | {
|
|
117
|
+
type: "error";
|
|
118
|
+
error: Error;
|
|
119
|
+
}) | null;
|
|
120
|
+
resolveCompositionsRef: import("react").RefObject<{
|
|
121
|
+
setCurrentRenderModalComposition: (compositionId: string | null) => void;
|
|
122
|
+
reloadCurrentlySelectedComposition: () => void;
|
|
123
|
+
}>;
|
|
124
|
+
ResolveCompositionConfig: import("react").FC<import("react").PropsWithChildren<{
|
|
125
|
+
children: import("react").ReactNode;
|
|
126
|
+
}>>;
|
|
127
|
+
REMOTION_STUDIO_CONTAINER_ELEMENT: string;
|
|
128
|
+
AssetManager: import("react").Context<import("./AssetManager.js").AssetManagerContext>;
|
|
129
|
+
bundleName: string;
|
|
130
|
+
};
|
|
131
|
+
export type { TComposition, Timeline, TCompMetadata, TSequence, TAsset, TimelineContextValue, SetTimelineContextValue, CompProps, CompositionManagerContext, MediaVolumeContextValue, SetMediaVolumeContextValue, RemotionEnvironment, };
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.Internals = void 0;
|
|
27
|
+
const AssetManager_js_1 = require("./AssetManager.js");
|
|
28
|
+
const shared_audio_tags_js_1 = require("./audio/shared-audio-tags.js");
|
|
29
|
+
const CanUseRemotionHooks_js_1 = require("./CanUseRemotionHooks.js");
|
|
30
|
+
const CompositionManager_js_1 = require("./CompositionManager.js");
|
|
31
|
+
const CompositionManagerContext_js_1 = require("./CompositionManagerContext.js");
|
|
32
|
+
const CSSUtils = __importStar(require("./default-css.js"));
|
|
33
|
+
const delay_render_js_1 = require("./delay-render.js");
|
|
34
|
+
const EditorProps_js_1 = require("./EditorProps.js");
|
|
35
|
+
const get_environment_js_1 = require("./get-environment.js");
|
|
36
|
+
const get_preview_dom_element_js_1 = require("./get-preview-dom-element.js");
|
|
37
|
+
const interpolate_colors_js_1 = require("./interpolate-colors.js");
|
|
38
|
+
const is_player_js_1 = require("./is-player.js");
|
|
39
|
+
const nonce_js_1 = require("./nonce.js");
|
|
40
|
+
const portal_node_js_1 = require("./portal-node.js");
|
|
41
|
+
const prefetch_state_js_1 = require("./prefetch-state.js");
|
|
42
|
+
const prefetch_js_1 = require("./prefetch.js");
|
|
43
|
+
const register_root_js_1 = require("./register-root.js");
|
|
44
|
+
const RemotionRoot_js_1 = require("./RemotionRoot.js");
|
|
45
|
+
const resolve_video_config_js_1 = require("./resolve-video-config.js");
|
|
46
|
+
const ResolveCompositionConfig_js_1 = require("./ResolveCompositionConfig.js");
|
|
47
|
+
const SequenceContext_js_1 = require("./SequenceContext.js");
|
|
48
|
+
const SequenceManager_js_1 = require("./SequenceManager.js");
|
|
49
|
+
const setup_env_variables_js_1 = require("./setup-env-variables.js");
|
|
50
|
+
const TimelinePosition = __importStar(require("./timeline-position-state.js"));
|
|
51
|
+
const truthy_js_1 = require("./truthy.js");
|
|
52
|
+
const use_lazy_component_js_1 = require("./use-lazy-component.js");
|
|
53
|
+
const use_unsafe_video_config_js_1 = require("./use-unsafe-video-config.js");
|
|
54
|
+
const use_video_js_1 = require("./use-video.js");
|
|
55
|
+
const validate_frame_js_1 = require("./validate-frame.js");
|
|
56
|
+
const validate_composition_id_js_1 = require("./validation/validate-composition-id.js");
|
|
57
|
+
const validate_default_props_js_1 = require("./validation/validate-default-props.js");
|
|
58
|
+
const validate_dimensions_js_1 = require("./validation/validate-dimensions.js");
|
|
59
|
+
const validate_duration_in_frames_js_1 = require("./validation/validate-duration-in-frames.js");
|
|
60
|
+
const validate_fps_js_1 = require("./validation/validate-fps.js");
|
|
61
|
+
const duration_state_js_1 = require("./video/duration-state.js");
|
|
62
|
+
const volume_position_state_js_1 = require("./volume-position-state.js");
|
|
63
|
+
const wrap_remotion_context_js_1 = require("./wrap-remotion-context.js");
|
|
64
|
+
const Timeline = TimelinePosition;
|
|
65
|
+
// Mark them as Internals so use don't assume this is public
|
|
66
|
+
// API and are less likely to use it
|
|
67
|
+
exports.Internals = {
|
|
68
|
+
useUnsafeVideoConfig: use_unsafe_video_config_js_1.useUnsafeVideoConfig,
|
|
69
|
+
Timeline,
|
|
70
|
+
CompositionManager: CompositionManagerContext_js_1.CompositionManager,
|
|
71
|
+
SequenceManager: SequenceManager_js_1.SequenceManager,
|
|
72
|
+
RemotionRoot: RemotionRoot_js_1.RemotionRoot,
|
|
73
|
+
useVideo: use_video_js_1.useVideo,
|
|
74
|
+
getRoot: register_root_js_1.getRoot,
|
|
75
|
+
useMediaVolumeState: volume_position_state_js_1.useMediaVolumeState,
|
|
76
|
+
useMediaMutedState: volume_position_state_js_1.useMediaMutedState,
|
|
77
|
+
useLazyComponent: use_lazy_component_js_1.useLazyComponent,
|
|
78
|
+
truthy: truthy_js_1.truthy,
|
|
79
|
+
SequenceContext: SequenceContext_js_1.SequenceContext,
|
|
80
|
+
useRemotionContexts: wrap_remotion_context_js_1.useRemotionContexts,
|
|
81
|
+
RemotionContextProvider: wrap_remotion_context_js_1.RemotionContextProvider,
|
|
82
|
+
CSSUtils,
|
|
83
|
+
setupEnvVariables: setup_env_variables_js_1.setupEnvVariables,
|
|
84
|
+
MediaVolumeContext: volume_position_state_js_1.MediaVolumeContext,
|
|
85
|
+
SetMediaVolumeContext: volume_position_state_js_1.SetMediaVolumeContext,
|
|
86
|
+
validateDurationInFrames: validate_duration_in_frames_js_1.validateDurationInFrames,
|
|
87
|
+
validateFps: validate_fps_js_1.validateFps,
|
|
88
|
+
validateDefaultAndInputProps: validate_default_props_js_1.validateDefaultAndInputProps,
|
|
89
|
+
validateDimension: validate_dimensions_js_1.validateDimension,
|
|
90
|
+
getRemotionEnvironment: get_environment_js_1.getRemotionEnvironment,
|
|
91
|
+
SharedAudioContext: shared_audio_tags_js_1.SharedAudioContext,
|
|
92
|
+
SharedAudioContextProvider: shared_audio_tags_js_1.SharedAudioContextProvider,
|
|
93
|
+
invalidCompositionErrorMessage: validate_composition_id_js_1.invalidCompositionErrorMessage,
|
|
94
|
+
isCompositionIdValid: validate_composition_id_js_1.isCompositionIdValid,
|
|
95
|
+
getPreviewDomElement: get_preview_dom_element_js_1.getPreviewDomElement,
|
|
96
|
+
compositionsRef: CompositionManager_js_1.compositionsRef,
|
|
97
|
+
DELAY_RENDER_CALLSTACK_TOKEN: delay_render_js_1.DELAY_RENDER_CALLSTACK_TOKEN,
|
|
98
|
+
portalNode: portal_node_js_1.portalNode,
|
|
99
|
+
waitForRoot: register_root_js_1.waitForRoot,
|
|
100
|
+
CanUseRemotionHooksProvider: CanUseRemotionHooks_js_1.CanUseRemotionHooksProvider,
|
|
101
|
+
CanUseRemotionHooks: CanUseRemotionHooks_js_1.CanUseRemotionHooks,
|
|
102
|
+
PrefetchProvider: prefetch_state_js_1.PrefetchProvider,
|
|
103
|
+
DurationsContextProvider: duration_state_js_1.DurationsContextProvider,
|
|
104
|
+
IsPlayerContextProvider: is_player_js_1.IsPlayerContextProvider,
|
|
105
|
+
useIsPlayer: is_player_js_1.useIsPlayer,
|
|
106
|
+
useRemotionEnvironment: get_environment_js_1.useRemotionEnvironment,
|
|
107
|
+
validateFrame: validate_frame_js_1.validateFrame,
|
|
108
|
+
EditorPropsProvider: EditorProps_js_1.EditorPropsProvider,
|
|
109
|
+
EditorPropsContext: EditorProps_js_1.EditorPropsContext,
|
|
110
|
+
usePreload: prefetch_js_1.usePreload,
|
|
111
|
+
processColor: interpolate_colors_js_1.processColor,
|
|
112
|
+
NonceContext: nonce_js_1.NonceContext,
|
|
113
|
+
resolveVideoConfig: resolve_video_config_js_1.resolveVideoConfig,
|
|
114
|
+
useResolvedVideoConfig: ResolveCompositionConfig_js_1.useResolvedVideoConfig,
|
|
115
|
+
resolveCompositionsRef: ResolveCompositionConfig_js_1.resolveCompositionsRef,
|
|
116
|
+
ResolveCompositionConfig: ResolveCompositionConfig_js_1.ResolveCompositionConfig,
|
|
117
|
+
REMOTION_STUDIO_CONTAINER_ELEMENT: get_preview_dom_element_js_1.REMOTION_STUDIO_CONTAINER_ELEMENT,
|
|
118
|
+
AssetManager: AssetManager_js_1.AssetManager,
|
|
119
|
+
bundleName: 'bundle.js',
|
|
120
|
+
};
|
|
@@ -2,4 +2,9 @@
|
|
|
2
2
|
* Copied from:
|
|
3
3
|
* https://github.com/software-mansion/react-native-reanimated/blob/master/src/reanimated2/Colors.ts
|
|
4
4
|
*/
|
|
5
|
+
export declare function processColor(color: string): number;
|
|
6
|
+
/**
|
|
7
|
+
* @description This function allows you to map a range of values to colors using a concise syntax.
|
|
8
|
+
* @see [Documentation](https://www.remotion.dev/docs/interpolate-colors)
|
|
9
|
+
*/
|
|
5
10
|
export declare const interpolateColors: (input: number, inputRange: readonly number[], outputRange: readonly string[]) => string;
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* https://github.com/software-mansion/react-native-reanimated/blob/master/src/reanimated2/Colors.ts
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.interpolateColors = void 0;
|
|
7
|
+
exports.interpolateColors = exports.processColor = void 0;
|
|
8
8
|
/* eslint no-bitwise: 0 */
|
|
9
|
-
const
|
|
9
|
+
const interpolate_js_1 = require("./interpolate.js");
|
|
10
10
|
// var INTEGER = '[-+]?\\d+';
|
|
11
11
|
const NUMBER = '[-+]?\\d*\\.?\\d+';
|
|
12
12
|
const PERCENTAGE = NUMBER + '%';
|
|
@@ -356,18 +356,14 @@ const blue = (c) => {
|
|
|
356
356
|
const rgbaColor = (r, g, b, alpha) => {
|
|
357
357
|
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
|
358
358
|
};
|
|
359
|
-
function processColorInitially(color) {
|
|
360
|
-
let normalizedColor = normalizeColor(color);
|
|
361
|
-
normalizedColor = ((normalizedColor << 24) | (normalizedColor >>> 8)) >>> 0; // argb
|
|
362
|
-
return normalizedColor;
|
|
363
|
-
}
|
|
364
359
|
function processColor(color) {
|
|
365
|
-
const normalizedColor =
|
|
366
|
-
return normalizedColor;
|
|
360
|
+
const normalizedColor = normalizeColor(color);
|
|
361
|
+
return ((normalizedColor << 24) | (normalizedColor >>> 8)) >>> 0; // argb
|
|
367
362
|
}
|
|
363
|
+
exports.processColor = processColor;
|
|
368
364
|
const interpolateColorsRGB = (value, inputRange, colors) => {
|
|
369
365
|
const [r, g, b, a] = [red, green, blue, opacity].map((f) => {
|
|
370
|
-
const unrounded = (0,
|
|
366
|
+
const unrounded = (0, interpolate_js_1.interpolate)(value, inputRange, colors.map((c) => f(c)), {
|
|
371
367
|
extrapolateLeft: 'clamp',
|
|
372
368
|
extrapolateRight: 'clamp',
|
|
373
369
|
});
|
|
@@ -378,6 +374,10 @@ const interpolateColorsRGB = (value, inputRange, colors) => {
|
|
|
378
374
|
});
|
|
379
375
|
return rgbaColor(r, g, b, a);
|
|
380
376
|
};
|
|
377
|
+
/**
|
|
378
|
+
* @description This function allows you to map a range of values to colors using a concise syntax.
|
|
379
|
+
* @see [Documentation](https://www.remotion.dev/docs/interpolate-colors)
|
|
380
|
+
*/
|
|
381
381
|
const interpolateColors = (input, inputRange, outputRange) => {
|
|
382
382
|
if (typeof input === 'undefined') {
|
|
383
383
|
throw new TypeError('input can not be undefined');
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
export type ExtrapolateType = 'extend' | 'identity' | 'clamp';
|
|
2
|
+
/**
|
|
3
|
+
* @description This function allows you to map a range of values to another with a conside syntax
|
|
4
|
+
* @see [Documentation](https://www.remotion.dev/docs/interpolate)
|
|
5
|
+
*/
|
|
6
|
+
export type InterpolateOptions = Partial<{
|
|
7
|
+
easing: (input: number) => number;
|
|
8
|
+
extrapolateLeft: ExtrapolateType;
|
|
9
|
+
extrapolateRight: ExtrapolateType;
|
|
10
|
+
}>;
|
|
2
11
|
/**
|
|
3
12
|
* Map a value from an input range to an output range.
|
|
4
13
|
* @link https://www.remotion.dev/docs/interpolate
|
|
@@ -10,9 +19,4 @@ declare type ExtrapolateType = 'extend' | 'identity' | 'clamp';
|
|
|
10
19
|
* @param {string=} [options.extrapolateLeft="extend"] What should happen if the input value is outside left the input range, default: "extend" {@link https://www.remotion.dev/docs/interpolate#extrapolateleft}
|
|
11
20
|
* @param {string=} [options.extrapolateRight="extend"] Same as extrapolateLeft, except for values outside right the input range {@link https://www.remotion.dev/docs/interpolate#extrapolateright}
|
|
12
21
|
*/
|
|
13
|
-
export declare function interpolate(input: number, inputRange: readonly number[], outputRange: readonly number[], options?:
|
|
14
|
-
easing?: (input: number) => number;
|
|
15
|
-
extrapolateLeft?: ExtrapolateType;
|
|
16
|
-
extrapolateRight?: ExtrapolateType;
|
|
17
|
-
}): number;
|
|
18
|
-
export {};
|
|
22
|
+
export declare function interpolate(input: number, inputRange: readonly number[], outputRange: readonly number[], options?: InterpolateOptions): number;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useIsPlayer = exports.IsPlayerContextProvider = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const IsPlayerContext = (0, react_1.createContext)(false);
|
|
7
|
+
const IsPlayerContextProvider = ({ children, }) => {
|
|
8
|
+
return (0, jsx_runtime_1.jsx)(IsPlayerContext.Provider, { value: true, children: children });
|
|
9
|
+
};
|
|
10
|
+
exports.IsPlayerContextProvider = IsPlayerContextProvider;
|
|
11
|
+
const useIsPlayer = () => {
|
|
12
|
+
return (0, react_1.useContext)(IsPlayerContext);
|
|
13
|
+
};
|
|
14
|
+
exports.useIsPlayer = useIsPlayer;
|
|
File without changes
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Loading = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
5
|
+
const AbsoluteFill_js_1 = require("./AbsoluteFill.js");
|
|
6
6
|
const rotate = {
|
|
7
7
|
transform: `rotate(90deg)`,
|
|
8
8
|
};
|
|
9
9
|
const ICON_SIZE = 40;
|
|
10
10
|
const label = {
|
|
11
|
-
color: '
|
|
11
|
+
color: 'white',
|
|
12
12
|
fontSize: 14,
|
|
13
13
|
fontFamily: 'sans-serif',
|
|
14
14
|
};
|
|
@@ -17,7 +17,7 @@ const container = {
|
|
|
17
17
|
alignItems: 'center',
|
|
18
18
|
};
|
|
19
19
|
const Loading = () => {
|
|
20
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
20
|
+
return ((0, jsx_runtime_1.jsxs)(AbsoluteFill_js_1.AbsoluteFill, { style: container, id: "remotion-comp-loading", children: [(0, jsx_runtime_1.jsx)("style", { type: "text/css", children: `
|
|
21
21
|
@keyframes anim {
|
|
22
22
|
from {
|
|
23
23
|
opacity: 0
|
|
@@ -30,6 +30,6 @@ const Loading = () => {
|
|
|
30
30
|
animation: anim 2s;
|
|
31
31
|
animation-fill-mode: forwards;
|
|
32
32
|
}
|
|
33
|
-
` }), (0, jsx_runtime_1.jsx)("svg", { width: ICON_SIZE, height: ICON_SIZE, viewBox: "-100 -100 400 400", style: rotate, children: (0, jsx_runtime_1.jsx)("path", { fill: "#555", stroke: "#555", strokeWidth: "100", strokeLinejoin: "round", d: "M 2 172 a 196 100 0 0 0 195 5 A 196 240 0 0 0 100 2.259 A 196 240 0 0 0 2 172 z" }) }), (0, jsx_runtime_1.
|
|
33
|
+
` }), (0, jsx_runtime_1.jsx)("svg", { width: ICON_SIZE, height: ICON_SIZE, viewBox: "-100 -100 400 400", style: rotate, children: (0, jsx_runtime_1.jsx)("path", { fill: "#555", stroke: "#555", strokeWidth: "100", strokeLinejoin: "round", d: "M 2 172 a 196 100 0 0 0 195 5 A 196 240 0 0 0 100 2.259 A 196 240 0 0 0 2 172 z" }) }), (0, jsx_runtime_1.jsxs)("p", { style: label, children: ["Resolving ", '<Suspense>', "..."] })] }));
|
|
34
34
|
};
|
|
35
35
|
exports.Loading = Loading;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { LayoutAndStyle } from '../Sequence.js';
|
|
3
|
+
export type LoopProps = {
|
|
4
|
+
durationInFrames: number;
|
|
5
|
+
times?: number;
|
|
6
|
+
name?: string;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
} & LayoutAndStyle;
|
|
9
|
+
/**
|
|
10
|
+
* @description This component allows you to quickly lay out an animation so it repeats itself.
|
|
11
|
+
* @see [Documentation](https://www.remotion.dev/docs/loop)
|
|
12
|
+
*/
|
|
13
|
+
export declare const Loop: React.FC<LoopProps>;
|