remotion 3.3.53 → 3.3.54
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/dist/AbsoluteFill.d.ts +6 -0
- package/dist/AbsoluteFill.js +28 -0
- package/dist/CanUseRemotionHooks.d.ts +5 -0
- package/dist/CanUseRemotionHooks.js +10 -0
- package/dist/Clipper.d.ts +7 -0
- package/dist/Clipper.js +24 -0
- package/dist/Composition.d.ts +23 -0
- package/dist/Composition.js +113 -0
- package/dist/CompositionManager.d.ts +82 -0
- package/dist/CompositionManager.js +154 -0
- package/dist/Folder.d.ts +15 -0
- package/dist/Folder.js +33 -0
- package/dist/IFrame.d.ts +2 -0
- package/dist/IFrame.js +24 -0
- package/dist/Img.d.ts +2 -0
- package/dist/Img.js +52 -0
- package/dist/NativeLayers.d.ts +13 -0
- package/dist/NativeLayers.js +29 -0
- package/dist/Null.d.ts +2 -0
- package/dist/Null.js +25 -0
- package/dist/RemotionRoot.d.ts +5 -0
- package/dist/RemotionRoot.js +73 -0
- package/dist/Sequence.d.ts +28 -0
- package/dist/Sequence.js +131 -0
- package/dist/Still.d.ts +2 -0
- package/dist/Still.js +9 -0
- package/dist/absolute-src.d.ts +1 -0
- package/dist/absolute-src.js +7 -0
- package/dist/asset-types.d.ts +50 -0
- package/dist/asset-types.js +1 -0
- package/dist/audio/Audio.d.ts +8 -0
- package/dist/audio/Audio.js +52 -0
- package/dist/audio/AudioForDevelopment.d.ts +11 -0
- package/dist/audio/AudioForDevelopment.js +94 -0
- package/dist/audio/AudioForRendering.d.ts +10 -0
- package/dist/audio/AudioForRendering.js +111 -0
- package/dist/audio/index.d.ts +2 -0
- package/dist/audio/index.js +18 -0
- package/dist/audio/props.d.ts +12 -0
- package/dist/audio/props.js +2 -0
- package/dist/audio/shared-audio-tags.d.ts +37 -0
- package/dist/audio/shared-audio-tags.js +222 -0
- package/dist/audio/use-audio-frame.d.ts +6 -0
- package/dist/audio/use-audio-frame.js +23 -0
- package/dist/bezier.d.ts +1 -0
- package/dist/bezier.js +114 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/config/input-props.d.ts +1 -0
- package/dist/config/input-props.js +31 -0
- package/dist/config.d.ts +291 -0
- package/dist/config.js +21 -0
- package/dist/default-css.d.ts +3 -0
- package/dist/default-css.js +49 -0
- package/dist/delay-render.d.ts +14 -0
- package/dist/delay-render.js +77 -0
- package/dist/easing.d.ts +19 -0
- package/dist/easing.js +77 -0
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/freeze.d.ts +7 -0
- package/dist/freeze.js +34 -0
- package/dist/get-asset-file-name.d.ts +1 -0
- package/dist/get-asset-file-name.js +14 -0
- package/dist/get-environment.d.ts +3 -0
- package/dist/get-environment.js +34 -0
- package/dist/get-preview-dom-element.d.ts +1 -0
- package/dist/get-preview-dom-element.js +7 -0
- package/dist/get-static-files.d.ts +17 -0
- package/dist/get-static-files.js +31 -0
- package/dist/get-timeline-clip-name.d.ts +1 -0
- package/dist/get-timeline-clip-name.js +25 -0
- package/dist/index.d.ts +89 -0
- package/dist/index.js +69 -0
- package/dist/internals.d.ts +100 -0
- package/dist/internals.js +99 -0
- package/dist/interpolate-colors.d.ts +5 -0
- package/dist/interpolate-colors.js +401 -0
- package/dist/interpolate.d.ts +18 -0
- package/dist/interpolate.js +123 -0
- package/dist/is-approximately-the-same.d.ts +1 -0
- package/dist/is-approximately-the-same.js +8 -0
- package/dist/is-player.d.ts +3 -0
- package/dist/is-player.js +14 -0
- package/dist/loading-indicator.d.ts +2 -0
- package/dist/loading-indicator.js +35 -0
- package/dist/loop/index.d.ts +9 -0
- package/dist/loop/index.js +29 -0
- package/dist/multiple-versions-warning.d.ts +1 -0
- package/dist/multiple-versions-warning.js +32 -0
- package/dist/nonce.d.ts +7 -0
- package/dist/nonce.js +17 -0
- package/dist/play-and-handle-not-allowed-error.d.ts +2 -0
- package/dist/play-and-handle-not-allowed-error.js +44 -0
- package/dist/portal-node.d.ts +1 -0
- package/dist/portal-node.js +23 -0
- package/dist/prefetch-state.d.ts +8 -0
- package/dist/prefetch-state.js +27 -0
- package/dist/prefetch.d.ts +9 -0
- package/dist/prefetch.js +108 -0
- package/dist/random.d.ts +7 -0
- package/dist/random.js +41 -0
- package/dist/register-root.d.ts +4 -0
- package/dist/register-root.js +33 -0
- package/dist/series/flatten-children.d.ts +2 -0
- package/dist/series/flatten-children.js +19 -0
- package/dist/series/index.d.ts +13 -0
- package/dist/series/index.js +57 -0
- package/dist/setup-env-variables.d.ts +2 -0
- package/dist/setup-env-variables.js +36 -0
- package/dist/spring/index.d.ts +27 -0
- package/dist/spring/index.js +51 -0
- package/dist/spring/measure-spring.d.ts +8 -0
- package/dist/spring/measure-spring.js +64 -0
- package/dist/spring/spring-utils.d.ts +21 -0
- package/dist/spring/spring-utils.js +103 -0
- package/dist/static-file.d.ts +5 -0
- package/dist/static-file.js +33 -0
- package/dist/timeline-position-state.d.ts +29 -0
- package/dist/timeline-position-state.js +41 -0
- package/dist/truthy.d.ts +3 -0
- package/dist/truthy.js +7 -0
- package/dist/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/use-current-frame.d.ts +6 -0
- package/dist/use-current-frame.js +28 -0
- package/dist/use-lazy-component.d.ts +7 -0
- package/dist/use-lazy-component.js +49 -0
- package/dist/use-media-in-timeline.d.ts +10 -0
- package/dist/use-media-in-timeline.js +129 -0
- package/dist/use-media-playback.d.ts +10 -0
- package/dist/use-media-playback.js +77 -0
- package/dist/use-media-tag-volume.d.ts +2 -0
- package/dist/use-media-tag-volume.js +31 -0
- package/dist/use-sync-volume-with-media-tag.d.ts +10 -0
- package/dist/use-sync-volume-with-media-tag.js +21 -0
- package/dist/use-unsafe-video-config.d.ts +2 -0
- package/dist/use-unsafe-video-config.js +27 -0
- package/dist/use-video-config.d.ts +7 -0
- package/dist/use-video-config.js +29 -0
- package/dist/use-video.d.ts +12 -0
- package/dist/use-video.js +28 -0
- package/dist/validate-media-props.d.ts +4 -0
- package/dist/validate-media-props.js +24 -0
- package/dist/validate-start-from-props.d.ts +1 -0
- package/dist/validate-start-from-props.js +31 -0
- package/dist/validation/validate-composition-id.d.ts +3 -0
- package/dist/validation/validate-composition-id.js +13 -0
- package/dist/validation/validate-dimensions.d.ts +1 -0
- package/dist/validation/validate-dimensions.js +21 -0
- package/dist/validation/validate-duration-in-frames.d.ts +1 -0
- package/dist/validation/validate-duration-in-frames.js +15 -0
- package/dist/validation/validate-folder-name.d.ts +3 -0
- package/dist/validation/validate-folder-name.js +19 -0
- package/dist/validation/validate-fps.d.ts +1 -0
- package/dist/validation/validate-fps.js +21 -0
- package/dist/validation/validate-offthreadvideo-image-format.d.ts +1 -0
- package/dist/validation/validate-offthreadvideo-image-format.js +15 -0
- package/dist/validation/validation-spring-duration.d.ts +1 -0
- package/dist/validation/validation-spring-duration.js +21 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +5 -0
- package/dist/video/OffthreadVideo.d.ts +3 -0
- package/dist/video/OffthreadVideo.js +33 -0
- package/dist/video/OffthreadVideoForRendering.d.ts +3 -0
- package/dist/video/OffthreadVideoForRendering.js +104 -0
- package/dist/video/Video.d.ts +8 -0
- package/dist/video/Video.js +50 -0
- package/dist/video/VideoForDevelopment.d.ts +11 -0
- package/dist/video/VideoForDevelopment.js +113 -0
- package/dist/video/VideoForRendering.d.ts +10 -0
- package/dist/video/VideoForRendering.js +203 -0
- package/dist/video/duration-state.d.ts +17 -0
- package/dist/video/duration-state.js +34 -0
- package/dist/video/get-current-time.d.ts +13 -0
- package/dist/video/get-current-time.js +31 -0
- package/dist/video/index.d.ts +3 -0
- package/dist/video/index.js +7 -0
- package/dist/video/props.d.ts +25 -0
- package/dist/video/props.js +2 -0
- package/dist/video/video-fragment.d.ts +12 -0
- package/dist/video/video-fragment.js +60 -0
- package/dist/video-config.d.ts +8 -0
- package/dist/video-config.js +2 -0
- package/dist/volume-position-state.d.ts +19 -0
- package/dist/volume-position-state.js +32 -0
- package/dist/volume-prop.d.ts +7 -0
- package/dist/volume-prop.js +24 -0
- package/dist/warn-about-non-seekable-media.d.ts +1 -0
- package/dist/warn-about-non-seekable-media.js +34 -0
- package/dist/wrap-remotion-context.d.ts +18 -0
- package/dist/wrap-remotion-context.js +73 -0
- package/package.json +2 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const getStaticFiles: () => StaticFile[];
|
|
2
|
+
export declare type StaticFile = {
|
|
3
|
+
/**
|
|
4
|
+
* A string that you can pass to the `src` attribute of an `<Audio>`, `<Img>` and `<Video>` element.
|
|
5
|
+
*/
|
|
6
|
+
src: string;
|
|
7
|
+
/**
|
|
8
|
+
* The filepath of the file, relative to the public folder.
|
|
9
|
+
* Example: `subfolder/image.png`
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
sizeInBytes: number;
|
|
13
|
+
/**
|
|
14
|
+
* UNIX timestamp in milliseconds
|
|
15
|
+
*/
|
|
16
|
+
lastModified: number;
|
|
17
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getStaticFiles = void 0;
|
|
4
|
+
let warnedServer = false;
|
|
5
|
+
let warnedPlayer = false;
|
|
6
|
+
const warnServerOnce = () => {
|
|
7
|
+
if (warnedServer) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
warnedServer = true;
|
|
11
|
+
console.warn('Called getStaticFiles() on the server. The API is only available in the browser. An empty array was returned.');
|
|
12
|
+
};
|
|
13
|
+
const warnPlayerOnce = () => {
|
|
14
|
+
if (warnedPlayer) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
warnedPlayer = true;
|
|
18
|
+
console.warn('Called getStaticFiles() while using the Remotion Player. The API is only available while using the Remotion Preview. An empty array was returned.');
|
|
19
|
+
};
|
|
20
|
+
const getStaticFiles = () => {
|
|
21
|
+
if (typeof document === 'undefined') {
|
|
22
|
+
warnServerOnce();
|
|
23
|
+
return [];
|
|
24
|
+
}
|
|
25
|
+
if (window.remotion_isPlayer) {
|
|
26
|
+
warnPlayerOnce();
|
|
27
|
+
return [];
|
|
28
|
+
}
|
|
29
|
+
return window.remotion_staticFiles;
|
|
30
|
+
};
|
|
31
|
+
exports.getStaticFiles = getStaticFiles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getTimelineClipName: (children: React.ReactNode) => string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTimelineClipName = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const HIDDEN_NAMES = ['__WEBPACK_DEFAULT_EXPORT__'];
|
|
6
|
+
const getTimelineClipName = (children) => {
|
|
7
|
+
var _a;
|
|
8
|
+
const tree = (_a = react_1.Children.map(children, (ch) => {
|
|
9
|
+
if (!(0, react_1.isValidElement)(ch)) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
// Must be name, not ID
|
|
13
|
+
const name = typeof ch.type !== 'string' && ch.type.name;
|
|
14
|
+
if (name && !HIDDEN_NAMES.includes(name)) {
|
|
15
|
+
return name;
|
|
16
|
+
}
|
|
17
|
+
if (ch.props.children) {
|
|
18
|
+
const chName = (0, exports.getTimelineClipName)(ch.props.children);
|
|
19
|
+
return chName;
|
|
20
|
+
}
|
|
21
|
+
return null;
|
|
22
|
+
})) === null || _a === void 0 ? void 0 : _a.filter(Boolean);
|
|
23
|
+
return (tree === null || tree === void 0 ? void 0 : tree.length) ? tree[0] : '';
|
|
24
|
+
};
|
|
25
|
+
exports.getTimelineClipName = getTimelineClipName;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import './asset-types';
|
|
2
|
+
import type { TAsset, TCompMetadata } from './CompositionManager';
|
|
3
|
+
import type { StaticFile } from './get-static-files';
|
|
4
|
+
import type { ClipRegion } from './NativeLayers';
|
|
5
|
+
declare global {
|
|
6
|
+
interface Window {
|
|
7
|
+
ready: boolean;
|
|
8
|
+
getStaticCompositions: () => TCompMetadata[];
|
|
9
|
+
setBundleMode: (bundleMode: BundleState) => void;
|
|
10
|
+
remotion_staticBase: string;
|
|
11
|
+
remotion_staticFiles: StaticFile[];
|
|
12
|
+
remotion_editorName: string | null;
|
|
13
|
+
remotion_numberOfAudioTags: number;
|
|
14
|
+
remotion_projectName: string;
|
|
15
|
+
remotion_cwd: string;
|
|
16
|
+
remotion_previewServerCommand: string;
|
|
17
|
+
remotion_setFrame: (frame: number) => void;
|
|
18
|
+
remotion_initialFrame: number;
|
|
19
|
+
remotion_proxyPort: number;
|
|
20
|
+
remotion_audioEnabled: boolean;
|
|
21
|
+
remotion_videoEnabled: boolean;
|
|
22
|
+
remotion_puppeteerTimeout: number;
|
|
23
|
+
remotion_inputProps: string;
|
|
24
|
+
remotion_envVariables: string;
|
|
25
|
+
remotion_collectAssets: () => TAsset[];
|
|
26
|
+
remotion_getClipRegion: () => ClipRegion | null;
|
|
27
|
+
remotion_isPlayer: boolean;
|
|
28
|
+
remotion_isBuilding: undefined | (() => void);
|
|
29
|
+
remotion_finishedBuilding: undefined | (() => void);
|
|
30
|
+
siteVersion: '4';
|
|
31
|
+
remotion_version: string;
|
|
32
|
+
remotion_imported: string | boolean;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export declare type BundleState = {
|
|
36
|
+
type: 'index';
|
|
37
|
+
} | {
|
|
38
|
+
type: 'evaluation';
|
|
39
|
+
} | {
|
|
40
|
+
type: 'composition';
|
|
41
|
+
compositionName: string;
|
|
42
|
+
compositionDefaultProps: unknown;
|
|
43
|
+
compositionHeight: number;
|
|
44
|
+
compositionDurationInFrames: number;
|
|
45
|
+
compositionWidth: number;
|
|
46
|
+
compositionFps: number;
|
|
47
|
+
};
|
|
48
|
+
export * from './AbsoluteFill';
|
|
49
|
+
export * from './audio';
|
|
50
|
+
export * from './Composition';
|
|
51
|
+
export { SmallTCompMetadata, TAsset, TCompMetadata } from './CompositionManager';
|
|
52
|
+
export { Config, ConfigType } from './config';
|
|
53
|
+
export { getInputProps } from './config/input-props';
|
|
54
|
+
export * from './delay-render';
|
|
55
|
+
export * from './easing';
|
|
56
|
+
export * from './Folder';
|
|
57
|
+
export * from './freeze';
|
|
58
|
+
export { getStaticFiles, StaticFile } from './get-static-files';
|
|
59
|
+
export * from './IFrame';
|
|
60
|
+
export * from './Img';
|
|
61
|
+
export * from './internals';
|
|
62
|
+
export * from './interpolate';
|
|
63
|
+
export { interpolateColors } from './interpolate-colors';
|
|
64
|
+
export { Loop } from './loop';
|
|
65
|
+
export { ClipRegion } from './NativeLayers';
|
|
66
|
+
export { prefetch } from './prefetch';
|
|
67
|
+
export { random, RandomSeed } from './random';
|
|
68
|
+
export { registerRoot } from './register-root';
|
|
69
|
+
export { Sequence } from './Sequence';
|
|
70
|
+
export { Series } from './series';
|
|
71
|
+
export * from './spring';
|
|
72
|
+
export { staticFile } from './static-file';
|
|
73
|
+
export * from './Still';
|
|
74
|
+
export type { PlayableMediaTag } from './timeline-position-state';
|
|
75
|
+
export { useCurrentFrame } from './use-current-frame';
|
|
76
|
+
export * from './use-video-config';
|
|
77
|
+
export * from './version';
|
|
78
|
+
export * from './video';
|
|
79
|
+
export * from './video-config';
|
|
80
|
+
export declare const Experimental: {
|
|
81
|
+
Clipper: import("react").FC<{
|
|
82
|
+
width: number;
|
|
83
|
+
height: number;
|
|
84
|
+
x: number;
|
|
85
|
+
y: number;
|
|
86
|
+
}>;
|
|
87
|
+
Null: import("react").FC<{}>;
|
|
88
|
+
useIsPlayer: () => boolean;
|
|
89
|
+
};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
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.Experimental = exports.useCurrentFrame = exports.staticFile = exports.Series = exports.Sequence = exports.registerRoot = exports.random = exports.prefetch = exports.Loop = exports.interpolateColors = exports.getStaticFiles = exports.getInputProps = exports.Config = void 0;
|
|
18
|
+
require("./asset-types");
|
|
19
|
+
const Clipper_1 = require("./Clipper");
|
|
20
|
+
const is_player_1 = require("./is-player");
|
|
21
|
+
const multiple_versions_warning_1 = require("./multiple-versions-warning");
|
|
22
|
+
const Null_1 = require("./Null");
|
|
23
|
+
(0, multiple_versions_warning_1.checkMultipleRemotionVersions)();
|
|
24
|
+
__exportStar(require("./AbsoluteFill"), exports);
|
|
25
|
+
__exportStar(require("./audio"), exports);
|
|
26
|
+
__exportStar(require("./Composition"), exports);
|
|
27
|
+
var config_1 = require("./config");
|
|
28
|
+
Object.defineProperty(exports, "Config", { enumerable: true, get: function () { return config_1.Config; } });
|
|
29
|
+
var input_props_1 = require("./config/input-props");
|
|
30
|
+
Object.defineProperty(exports, "getInputProps", { enumerable: true, get: function () { return input_props_1.getInputProps; } });
|
|
31
|
+
__exportStar(require("./delay-render"), exports);
|
|
32
|
+
__exportStar(require("./easing"), exports);
|
|
33
|
+
__exportStar(require("./Folder"), exports);
|
|
34
|
+
__exportStar(require("./freeze"), exports);
|
|
35
|
+
var get_static_files_1 = require("./get-static-files");
|
|
36
|
+
Object.defineProperty(exports, "getStaticFiles", { enumerable: true, get: function () { return get_static_files_1.getStaticFiles; } });
|
|
37
|
+
__exportStar(require("./IFrame"), exports);
|
|
38
|
+
__exportStar(require("./Img"), exports);
|
|
39
|
+
__exportStar(require("./internals"), exports);
|
|
40
|
+
__exportStar(require("./interpolate"), exports);
|
|
41
|
+
var interpolate_colors_1 = require("./interpolate-colors");
|
|
42
|
+
Object.defineProperty(exports, "interpolateColors", { enumerable: true, get: function () { return interpolate_colors_1.interpolateColors; } });
|
|
43
|
+
var loop_1 = require("./loop");
|
|
44
|
+
Object.defineProperty(exports, "Loop", { enumerable: true, get: function () { return loop_1.Loop; } });
|
|
45
|
+
var prefetch_1 = require("./prefetch");
|
|
46
|
+
Object.defineProperty(exports, "prefetch", { enumerable: true, get: function () { return prefetch_1.prefetch; } });
|
|
47
|
+
var random_1 = require("./random");
|
|
48
|
+
Object.defineProperty(exports, "random", { enumerable: true, get: function () { return random_1.random; } });
|
|
49
|
+
var register_root_1 = require("./register-root");
|
|
50
|
+
Object.defineProperty(exports, "registerRoot", { enumerable: true, get: function () { return register_root_1.registerRoot; } });
|
|
51
|
+
var Sequence_1 = require("./Sequence");
|
|
52
|
+
Object.defineProperty(exports, "Sequence", { enumerable: true, get: function () { return Sequence_1.Sequence; } });
|
|
53
|
+
var series_1 = require("./series");
|
|
54
|
+
Object.defineProperty(exports, "Series", { enumerable: true, get: function () { return series_1.Series; } });
|
|
55
|
+
__exportStar(require("./spring"), exports);
|
|
56
|
+
var static_file_1 = require("./static-file");
|
|
57
|
+
Object.defineProperty(exports, "staticFile", { enumerable: true, get: function () { return static_file_1.staticFile; } });
|
|
58
|
+
__exportStar(require("./Still"), exports);
|
|
59
|
+
var use_current_frame_1 = require("./use-current-frame");
|
|
60
|
+
Object.defineProperty(exports, "useCurrentFrame", { enumerable: true, get: function () { return use_current_frame_1.useCurrentFrame; } });
|
|
61
|
+
__exportStar(require("./use-video-config"), exports);
|
|
62
|
+
__exportStar(require("./version"), exports);
|
|
63
|
+
__exportStar(require("./video"), exports);
|
|
64
|
+
__exportStar(require("./video-config"), exports);
|
|
65
|
+
exports.Experimental = {
|
|
66
|
+
Clipper: Clipper_1.Clipper,
|
|
67
|
+
Null: Null_1.Null,
|
|
68
|
+
useIsPlayer: is_player_1.useIsPlayer,
|
|
69
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { Configuration } from 'webpack';
|
|
2
|
+
import type { CompProps } from './Composition';
|
|
3
|
+
import type { CompositionManagerContext, TAsset, TCompMetadata, TComposition, TSequence } from './CompositionManager';
|
|
4
|
+
import * as CSSUtils from './default-css';
|
|
5
|
+
import type { RemotionEnvironment } from './get-environment';
|
|
6
|
+
import type { SetTimelineContextValue, TimelineContextValue } from './timeline-position-state';
|
|
7
|
+
import * as TimelinePosition from './timeline-position-state';
|
|
8
|
+
import { truthy } from './truthy';
|
|
9
|
+
import type { MediaVolumeContextValue, SetMediaVolumeContextValue } from './volume-position-state';
|
|
10
|
+
import { useRemotionContexts } from './wrap-remotion-context';
|
|
11
|
+
declare const Timeline: typeof TimelinePosition;
|
|
12
|
+
export declare const Internals: {
|
|
13
|
+
useUnsafeVideoConfig: () => import("./video-config").VideoConfig | null;
|
|
14
|
+
Timeline: typeof TimelinePosition;
|
|
15
|
+
CompositionManager: import("react").Context<CompositionManagerContext>;
|
|
16
|
+
RemotionRoot: import("react").FC<{
|
|
17
|
+
children: import("react").ReactNode;
|
|
18
|
+
numberOfAudioTags: number;
|
|
19
|
+
}>;
|
|
20
|
+
useVideo: () => {
|
|
21
|
+
height: number;
|
|
22
|
+
width: number;
|
|
23
|
+
fps: number;
|
|
24
|
+
durationInFrames: number;
|
|
25
|
+
defaultProps: unknown;
|
|
26
|
+
id: string;
|
|
27
|
+
folderName: string | null;
|
|
28
|
+
parentFolderName: string | null;
|
|
29
|
+
component: import("react").LazyExoticComponent<import("react").ComponentType<unknown>>;
|
|
30
|
+
nonce: number;
|
|
31
|
+
} | null;
|
|
32
|
+
getRoot: () => import("react").FC<{}> | null;
|
|
33
|
+
useMediaVolumeState: () => readonly [number, (u: number) => void];
|
|
34
|
+
useMediaMutedState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void];
|
|
35
|
+
useLazyComponent: <T>(compProps: CompProps<T>) => import("react").ExoticComponent<(import("react").PropsWithoutRef<T> & import("react").RefAttributes<import("react").Component<T, any, any>>) | import("react").PropsWithRef<T>> & {
|
|
36
|
+
readonly _result: import("react").ComponentType<T>;
|
|
37
|
+
};
|
|
38
|
+
truthy: typeof truthy;
|
|
39
|
+
SequenceContext: import("react").Context<import("./Sequence").SequenceContextType | null>;
|
|
40
|
+
useRemotionContexts: typeof useRemotionContexts;
|
|
41
|
+
RemotionContextProvider: (props: import("./wrap-remotion-context").RemotionContextProviderProps) => JSX.Element;
|
|
42
|
+
CSSUtils: typeof CSSUtils;
|
|
43
|
+
setupEnvVariables: () => void;
|
|
44
|
+
ENV_VARIABLES_ENV_NAME: "ENV_VARIABLES";
|
|
45
|
+
MediaVolumeContext: import("react").Context<MediaVolumeContextValue>;
|
|
46
|
+
SetMediaVolumeContext: import("react").Context<SetMediaVolumeContextValue>;
|
|
47
|
+
validateDurationInFrames: (durationInFrames: number, component: string) => void;
|
|
48
|
+
validateFps: (fps: number, location: string, isGif: boolean) => void;
|
|
49
|
+
validateDimension: (amount: number, nameOfProp: string, location: string) => void;
|
|
50
|
+
getRemotionEnvironment: () => RemotionEnvironment;
|
|
51
|
+
SharedAudioContext: import("react").Context<{
|
|
52
|
+
registerAudio: (aud: import("./audio").RemotionAudioProps, audioId: string) => {
|
|
53
|
+
id: number;
|
|
54
|
+
props: import("./audio").RemotionAudioProps;
|
|
55
|
+
el: import("react").RefObject<HTMLAudioElement>;
|
|
56
|
+
audioId: string;
|
|
57
|
+
};
|
|
58
|
+
unregisterAudio: (id: number) => void;
|
|
59
|
+
updateAudio: (options: {
|
|
60
|
+
id: number;
|
|
61
|
+
aud: import("./audio").RemotionAudioProps;
|
|
62
|
+
audioId: string;
|
|
63
|
+
}) => void;
|
|
64
|
+
playAllAudios: () => void;
|
|
65
|
+
numberOfAudioTags: number;
|
|
66
|
+
} | null>;
|
|
67
|
+
SharedAudioContextProvider: import("react").FC<{
|
|
68
|
+
numberOfAudioTags: number;
|
|
69
|
+
children: import("react").ReactNode;
|
|
70
|
+
}>;
|
|
71
|
+
invalidCompositionErrorMessage: string;
|
|
72
|
+
isCompositionIdValid: (id: string) => RegExpMatchArray | null;
|
|
73
|
+
getPreviewDomElement: () => HTMLElement | null;
|
|
74
|
+
compositionsRef: import("react").RefObject<{
|
|
75
|
+
getCompositions: () => TCompMetadata[];
|
|
76
|
+
}>;
|
|
77
|
+
DELAY_RENDER_CALLSTACK_TOKEN: string;
|
|
78
|
+
portalNode: () => HTMLElement;
|
|
79
|
+
waitForRoot: (fn: (comp: import("react").FC<{}>) => void) => () => void;
|
|
80
|
+
validateOffthreadVideoImageFormat: (input: unknown) => void;
|
|
81
|
+
CanUseRemotionHooksProvider: import("react").FC<{
|
|
82
|
+
children: import("react").ReactNode;
|
|
83
|
+
}>;
|
|
84
|
+
CanUseRemotionHooks: import("react").Context<boolean>;
|
|
85
|
+
enableLegacyRemotionConfig: () => void;
|
|
86
|
+
PrefetchProvider: import("react").FC<{
|
|
87
|
+
children: import("react").ReactNode;
|
|
88
|
+
}>;
|
|
89
|
+
DurationsContextProvider: import("react").FC<{
|
|
90
|
+
children: import("react").ReactNode;
|
|
91
|
+
}>;
|
|
92
|
+
IsPlayerContextProvider: import("react").FC<{
|
|
93
|
+
children?: import("react").ReactNode;
|
|
94
|
+
}>;
|
|
95
|
+
useIsPlayer: () => boolean;
|
|
96
|
+
useRemotionEnvironment: () => RemotionEnvironment;
|
|
97
|
+
};
|
|
98
|
+
declare type WebpackConfiguration = Configuration;
|
|
99
|
+
declare type WebpackOverrideFn = (currentConfiguration: WebpackConfiguration) => WebpackConfiguration;
|
|
100
|
+
export type { TComposition, Timeline, TCompMetadata, TSequence, WebpackOverrideFn, WebpackConfiguration, TAsset, TimelineContextValue, SetTimelineContextValue, CompProps, CompositionManagerContext, MediaVolumeContextValue, SetMediaVolumeContextValue, RemotionEnvironment, };
|
|
@@ -0,0 +1,99 @@
|
|
|
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 config_1 = require("./config");
|
|
28
|
+
const shared_audio_tags_1 = require("./audio/shared-audio-tags");
|
|
29
|
+
const CanUseRemotionHooks_1 = require("./CanUseRemotionHooks");
|
|
30
|
+
const CompositionManager_1 = require("./CompositionManager");
|
|
31
|
+
const CSSUtils = __importStar(require("./default-css"));
|
|
32
|
+
const delay_render_1 = require("./delay-render");
|
|
33
|
+
const get_environment_1 = require("./get-environment");
|
|
34
|
+
const get_preview_dom_element_1 = require("./get-preview-dom-element");
|
|
35
|
+
const is_player_1 = require("./is-player");
|
|
36
|
+
const portal_node_1 = require("./portal-node");
|
|
37
|
+
const prefetch_state_1 = require("./prefetch-state");
|
|
38
|
+
const register_root_1 = require("./register-root");
|
|
39
|
+
const RemotionRoot_1 = require("./RemotionRoot");
|
|
40
|
+
const Sequence_1 = require("./Sequence");
|
|
41
|
+
const setup_env_variables_1 = require("./setup-env-variables");
|
|
42
|
+
const TimelinePosition = __importStar(require("./timeline-position-state"));
|
|
43
|
+
const truthy_1 = require("./truthy");
|
|
44
|
+
const use_lazy_component_1 = require("./use-lazy-component");
|
|
45
|
+
const use_unsafe_video_config_1 = require("./use-unsafe-video-config");
|
|
46
|
+
const use_video_1 = require("./use-video");
|
|
47
|
+
const validate_composition_id_1 = require("./validation/validate-composition-id");
|
|
48
|
+
const validate_dimensions_1 = require("./validation/validate-dimensions");
|
|
49
|
+
const validate_duration_in_frames_1 = require("./validation/validate-duration-in-frames");
|
|
50
|
+
const validate_fps_1 = require("./validation/validate-fps");
|
|
51
|
+
const validate_offthreadvideo_image_format_1 = require("./validation/validate-offthreadvideo-image-format");
|
|
52
|
+
const duration_state_1 = require("./video/duration-state");
|
|
53
|
+
const volume_position_state_1 = require("./volume-position-state");
|
|
54
|
+
const wrap_remotion_context_1 = require("./wrap-remotion-context");
|
|
55
|
+
const Timeline = TimelinePosition;
|
|
56
|
+
// Mark them as Internals so use don't assume this is public
|
|
57
|
+
// API and are less likely to use it
|
|
58
|
+
exports.Internals = {
|
|
59
|
+
useUnsafeVideoConfig: use_unsafe_video_config_1.useUnsafeVideoConfig,
|
|
60
|
+
Timeline,
|
|
61
|
+
CompositionManager: CompositionManager_1.CompositionManager,
|
|
62
|
+
RemotionRoot: RemotionRoot_1.RemotionRoot,
|
|
63
|
+
useVideo: use_video_1.useVideo,
|
|
64
|
+
getRoot: register_root_1.getRoot,
|
|
65
|
+
useMediaVolumeState: volume_position_state_1.useMediaVolumeState,
|
|
66
|
+
useMediaMutedState: volume_position_state_1.useMediaMutedState,
|
|
67
|
+
useLazyComponent: use_lazy_component_1.useLazyComponent,
|
|
68
|
+
truthy: truthy_1.truthy,
|
|
69
|
+
SequenceContext: Sequence_1.SequenceContext,
|
|
70
|
+
useRemotionContexts: wrap_remotion_context_1.useRemotionContexts,
|
|
71
|
+
RemotionContextProvider: wrap_remotion_context_1.RemotionContextProvider,
|
|
72
|
+
CSSUtils,
|
|
73
|
+
setupEnvVariables: setup_env_variables_1.setupEnvVariables,
|
|
74
|
+
ENV_VARIABLES_ENV_NAME: setup_env_variables_1.ENV_VARIABLES_ENV_NAME,
|
|
75
|
+
MediaVolumeContext: volume_position_state_1.MediaVolumeContext,
|
|
76
|
+
SetMediaVolumeContext: volume_position_state_1.SetMediaVolumeContext,
|
|
77
|
+
validateDurationInFrames: validate_duration_in_frames_1.validateDurationInFrames,
|
|
78
|
+
validateFps: validate_fps_1.validateFps,
|
|
79
|
+
validateDimension: validate_dimensions_1.validateDimension,
|
|
80
|
+
getRemotionEnvironment: get_environment_1.getRemotionEnvironment,
|
|
81
|
+
SharedAudioContext: shared_audio_tags_1.SharedAudioContext,
|
|
82
|
+
SharedAudioContextProvider: shared_audio_tags_1.SharedAudioContextProvider,
|
|
83
|
+
invalidCompositionErrorMessage: validate_composition_id_1.invalidCompositionErrorMessage,
|
|
84
|
+
isCompositionIdValid: validate_composition_id_1.isCompositionIdValid,
|
|
85
|
+
getPreviewDomElement: get_preview_dom_element_1.getPreviewDomElement,
|
|
86
|
+
compositionsRef: CompositionManager_1.compositionsRef,
|
|
87
|
+
DELAY_RENDER_CALLSTACK_TOKEN: delay_render_1.DELAY_RENDER_CALLSTACK_TOKEN,
|
|
88
|
+
portalNode: portal_node_1.portalNode,
|
|
89
|
+
waitForRoot: register_root_1.waitForRoot,
|
|
90
|
+
validateOffthreadVideoImageFormat: validate_offthreadvideo_image_format_1.validateOffthreadVideoImageFormat,
|
|
91
|
+
CanUseRemotionHooksProvider: CanUseRemotionHooks_1.CanUseRemotionHooksProvider,
|
|
92
|
+
CanUseRemotionHooks: CanUseRemotionHooks_1.CanUseRemotionHooks,
|
|
93
|
+
enableLegacyRemotionConfig: config_1.enableLegacyRemotionConfig,
|
|
94
|
+
PrefetchProvider: prefetch_state_1.PrefetchProvider,
|
|
95
|
+
DurationsContextProvider: duration_state_1.DurationsContextProvider,
|
|
96
|
+
IsPlayerContextProvider: is_player_1.IsPlayerContextProvider,
|
|
97
|
+
useIsPlayer: is_player_1.useIsPlayer,
|
|
98
|
+
useRemotionEnvironment: get_environment_1.useRemotionEnvironment,
|
|
99
|
+
};
|