remotion 4.0.537 → 4.0.539
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/cjs/AbsoluteFill.d.ts +62 -62
- package/dist/cjs/AbsoluteFill.js +3 -3
- package/dist/cjs/AbsoluteFillElement.d.ts +1 -1
- package/dist/cjs/AbsoluteFillElement.js +43 -5
- package/dist/cjs/CanUseRemotionHooks.js +1 -1
- package/dist/cjs/Composition.js +5 -11
- package/dist/cjs/CompositionErrorBoundary.js +5 -2
- package/dist/cjs/CompositionManager.d.ts +1 -0
- package/dist/cjs/CompositionManagerProvider.d.ts +1 -1
- package/dist/cjs/CompositionManagerProvider.js +1 -1
- package/dist/cjs/CompositionRegistryProvider.d.ts +1 -1
- package/dist/cjs/CompositionRegistryProvider.js +1 -1
- package/dist/cjs/EditorProps.d.ts +2 -2
- package/dist/cjs/EditorProps.js +1 -1
- package/dist/cjs/Folder.js +1 -1
- package/dist/cjs/HtmlInCanvas.d.ts +58 -67
- package/dist/cjs/HtmlInCanvas.js +22 -9
- package/dist/cjs/HtmlInCanvasFallback.d.ts +6 -0
- package/dist/cjs/HtmlInCanvasFallback.js +39 -0
- package/dist/cjs/IFrame.d.ts +2 -2
- package/dist/cjs/IFrame.js +1 -1
- package/dist/cjs/Img.d.ts +62 -62
- package/dist/cjs/Img.js +160 -132
- package/dist/cjs/Interactive.d.ts +147 -145
- package/dist/cjs/Interactive.js +2 -2
- package/dist/cjs/RemotionRoot.js +1 -1
- package/dist/cjs/RenderAssetManager.js +1 -1
- package/dist/cjs/Sequence.js +37 -27
- package/dist/cjs/SequenceActivityBoundary.js +1 -1
- package/dist/cjs/SequenceActivityBudget.js +1 -1
- package/dist/cjs/SequenceActivitySuspensionProvider.js +1 -1
- package/dist/cjs/SequenceManager.d.ts +6 -0
- package/dist/cjs/SequenceManager.js +71 -27
- package/dist/cjs/SequenceRegistryProvider.js +16 -3
- package/dist/cjs/TimelineContext.js +1 -1
- package/dist/cjs/Track.js +2 -2
- package/dist/cjs/animated-image/AnimatedImage.d.ts +69 -69
- package/dist/cjs/animated-image/AnimatedImage.js +6 -6
- package/dist/cjs/animated-image/canvas.d.ts +6 -5
- package/dist/cjs/animated-image/canvas.js +1 -1
- package/dist/cjs/animated-image/create-image-decoder.d.ts +1 -1
- package/dist/cjs/animated-image/decode-image.d.ts +1 -1
- package/dist/cjs/animated-image/decode-image.js +2 -0
- package/dist/cjs/animated-image/get-duration-in-seconds.d.ts +1 -1
- package/dist/cjs/animated-image/index.js +1 -1
- package/dist/cjs/audio/AudioForPreview.js +5 -28
- package/dist/cjs/audio/AudioForRendering.d.ts +5 -20
- package/dist/cjs/audio/AudioForRendering.js +44 -5
- package/dist/cjs/audio/html5-audio.d.ts +36 -36
- package/dist/cjs/audio/html5-audio.js +8 -10
- package/dist/cjs/audio/index.js +1 -1
- package/dist/cjs/audio/shared-audio-tags.js +10 -16
- package/dist/cjs/audio/shared-element-source-node.d.ts +1 -1
- package/dist/cjs/audio/use-audio-context.d.ts +2 -1
- package/dist/cjs/audio/wait-until-actually-resumed.d.ts +2 -1
- package/dist/cjs/buffer-until-first-frame.d.ts +4 -3
- package/dist/cjs/buffering.js +1 -1
- package/dist/cjs/cancel-render.js +3 -0
- package/dist/cjs/canvas-image/CanvasImage.d.ts +71 -71
- package/dist/cjs/canvas-image/CanvasImage.js +27 -24
- package/dist/cjs/canvas-image/index.js +1 -1
- package/dist/cjs/codec.d.ts +1 -1
- package/dist/cjs/committed-metadata.d.ts +4 -2
- package/dist/cjs/composition-registry-fallback.d.ts +4 -2
- package/dist/cjs/composition-registry-fallback.js +12 -10
- package/dist/cjs/create-element-source-proxy.js +46 -6
- package/dist/cjs/default-css.d.ts +1 -1
- package/dist/cjs/delay-render.d.ts +2 -1
- package/dist/cjs/delay-render.js +4 -2
- package/dist/cjs/easing.js +3 -1
- package/dist/cjs/effects/Solid.d.ts +60 -60
- package/dist/cjs/effects/Solid.js +2 -2
- package/dist/cjs/effects/canvas-pool.js +6 -9
- package/dist/cjs/effects/create-curve-sampler.d.ts +1 -0
- package/dist/cjs/effects/create-curve-sampler.js +100 -0
- package/dist/cjs/effects/effect-source-observer.d.ts +13 -0
- package/dist/cjs/effects/effect-source-observer.js +177 -0
- package/dist/cjs/effects/index.js +1 -1
- package/dist/cjs/effects/run-effect-chain.js +3 -0
- package/dist/cjs/effects/use-memoized-effects.d.ts +2 -1
- package/dist/cjs/effects/use-memoized-effects.js +29 -13
- package/dist/cjs/freeze.js +2 -2
- package/dist/cjs/get-cross-origin-value.d.ts +1 -1
- package/dist/cjs/get-effective-visual-mode-value.d.ts +2 -2
- package/dist/cjs/index.d.ts +3 -1
- package/dist/cjs/index.js +32 -32
- package/dist/cjs/interactivity-schema.d.ts +286 -286
- package/dist/cjs/internals.d.ts +412 -595
- package/dist/cjs/internals.js +11 -0
- package/dist/cjs/interpolate-colors.d.ts +1 -1
- package/dist/cjs/interpolate-colors.js +28 -23
- package/dist/cjs/interpolate.d.ts +2 -9
- package/dist/cjs/interpolate.js +37 -33
- package/dist/cjs/is-player.js +1 -1
- package/dist/cjs/loading-indicator.js +2 -6
- package/dist/cjs/log-level-context.d.ts +1 -1
- package/dist/cjs/log.d.ts +12 -7
- package/dist/cjs/loop/index.js +1 -1
- package/dist/cjs/media-resource-manager.d.ts +1 -1
- package/dist/cjs/media-tag-current-time-timestamp.d.ts +1 -1
- package/dist/cjs/no-react.d.ts +85 -91
- package/dist/cjs/no-react.js +2 -2
- package/dist/cjs/nonce.d.ts +11 -0
- package/dist/cjs/nonce.js +42 -0
- package/dist/cjs/play-and-handle-not-allowed-error.d.ts +5 -4
- package/dist/cjs/playback-logging.d.ts +2 -1
- package/dist/cjs/playback-pitch-context.d.ts +1 -0
- package/dist/cjs/playback-pitch-context.js +5 -0
- package/dist/cjs/prefetch-state.js +1 -1
- package/dist/cjs/prefetch.d.ts +7 -6
- package/dist/cjs/prefetch.js +30 -5
- package/dist/cjs/props-if-has-props.d.ts +2 -1
- package/dist/cjs/prores-profile.d.ts +1 -1
- package/dist/cjs/register-root.d.ts +2 -2
- package/dist/cjs/render-resource-manager.d.ts +1 -1
- package/dist/cjs/render-types.d.ts +2 -2
- package/dist/cjs/resolve-video-config.d.ts +8 -8
- package/dist/cjs/runtime-value-store.d.ts +1 -1
- package/dist/cjs/scale-value.d.ts +1 -1
- package/dist/cjs/seek.d.ts +3 -2
- package/dist/cjs/sequence-activity-context.js +1 -1
- package/dist/cjs/sequence-crop.js +1 -4
- package/dist/cjs/sequence-order-marker.d.ts +58 -0
- package/dist/cjs/sequence-order-marker.js +44 -0
- package/dist/cjs/series/flatten-children.d.ts +3 -1
- package/dist/cjs/series/index.js +4 -5
- package/dist/cjs/series/is-inside-series.js +2 -2
- package/dist/cjs/spring/index.d.ts +1 -1
- package/dist/cjs/spring/index.js +2 -4
- package/dist/cjs/spring/measure-spring.d.ts +1 -1
- package/dist/cjs/spring/spring-utils.d.ts +1 -1
- package/dist/cjs/spring/spring-utils.js +11 -5
- package/dist/cjs/timeline-position-state.d.ts +1 -1
- package/dist/cjs/timeline-position-state.js +2 -2
- package/dist/cjs/use-amplification.d.ts +4 -7
- package/dist/cjs/use-current-scale.d.ts +2 -2
- package/dist/cjs/use-delay-render.d.ts +2 -1
- package/dist/cjs/use-lazy-component.d.ts +1 -1
- package/dist/cjs/use-lazy-component.js +20 -9
- package/dist/cjs/use-media-buffering.d.ts +3 -2
- package/dist/cjs/use-media-duration.d.ts +4 -0
- package/dist/cjs/use-media-duration.js +36 -0
- package/dist/cjs/use-media-enabled.d.ts +1 -1
- package/dist/cjs/use-media-enabled.js +1 -1
- package/dist/cjs/use-media-in-timeline.d.ts +1 -1
- package/dist/cjs/use-media-playback.d.ts +3 -3
- package/dist/cjs/use-media-tag.d.ts +2 -2
- package/dist/cjs/use-pixel-density.d.ts +1 -1
- package/dist/cjs/use-premounting.d.ts +1 -1
- package/dist/cjs/use-premounting.js +6 -2
- package/dist/cjs/use-request-video-callback-time.d.ts +3 -3
- package/dist/cjs/use-schema.d.ts +4 -4
- package/dist/cjs/use-video.js +1 -1
- package/dist/cjs/validate-media-props.d.ts +1 -1
- package/dist/cjs/validation/validate-default-props.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/video/MediaPlaybackError.js +0 -1
- package/dist/cjs/video/OffthreadVideo.js +5 -5
- package/dist/cjs/video/OffthreadVideoForRendering.js +9 -7
- package/dist/cjs/video/VideoForPreview.js +6 -28
- package/dist/cjs/video/VideoForRendering.d.ts +5 -3
- package/dist/cjs/video/VideoForRendering.js +4 -2
- package/dist/cjs/video/duration-state.d.ts +1 -0
- package/dist/cjs/video/duration-state.js +8 -2
- package/dist/cjs/video/emit-video-frame.d.ts +1 -1
- package/dist/cjs/video/html5-video.d.ts +36 -36
- package/dist/cjs/video/html5-video.js +8 -10
- package/dist/cjs/video/index.js +2 -2
- package/dist/cjs/video/seek-until-right.d.ts +3 -2
- package/dist/cjs/warn-about-non-seekable-media.d.ts +1 -1
- package/dist/cjs/with-interactivity-schema.d.ts +1 -1
- package/dist/cjs/with-interactivity-schema.js +3 -8
- package/dist/cjs/wrap-remotion-context.d.ts +4 -4
- package/dist/cjs/wrap-remotion-context.js +2 -2
- package/dist/esm/index.mjs +1304 -819
- package/dist/esm/no-react.mjs +74 -52
- package/dist/esm/version.mjs +1 -1
- package/package.json +4 -4
package/dist/cjs/no-react.d.ts
CHANGED
|
@@ -1,57 +1,55 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ArtifactAsset, AudioOrVideoAsset as InternalAudioOrVideoAsset, InlineAudioAsset } from './CompositionManager';
|
|
2
|
+
import { evaluateSourceNumericValue, evaluateSourcePropStatuses } from './evaluate-source-expressions.js';
|
|
3
|
+
export type { ArtifactAsset, InlineAudioAsset } from './CompositionManager';
|
|
4
|
+
export type AudioOrVideoAsset = Omit<InternalAudioOrVideoAsset, 'preservePitch'> & {
|
|
5
|
+
preservePitch?: boolean | null;
|
|
6
|
+
};
|
|
7
|
+
export type TRenderAsset = AudioOrVideoAsset | ArtifactAsset | InlineAudioAsset;
|
|
2
8
|
export type { DownloadBehavior } from './download-behavior';
|
|
3
9
|
export { assertValidInterpolateEasingOption, assertValidInterpolatePosterizeOption, interpolate, } from './interpolate';
|
|
4
10
|
export type { EasingFunction, ExtrapolateType, InterpolateOptions, InterpolateOutputOption, InterpolateOutputType, } from './interpolate';
|
|
5
11
|
export { random } from './random.js';
|
|
6
12
|
export type { RandomSeed } from './random.js';
|
|
7
13
|
export type { VideoConfig } from './video-config';
|
|
14
|
+
import { validateDefaultPremountInSeconds } from './default-premount-in-seconds';
|
|
15
|
+
import { findPropsToDelete } from './find-props-to-delete';
|
|
16
|
+
import { fetchFontData, getRegisteredFontFaces, registerFontFace } from './font-face-registry';
|
|
17
|
+
import { deserializeJSONWithSpecialTypes, serializeJSONWithSpecialTypes } from './input-props-serialization';
|
|
8
18
|
import { processColor } from './interpolate-colors';
|
|
19
|
+
import { parseScaleValue, serializeScaleValue } from './scale-value';
|
|
9
20
|
import { truthy } from './truthy';
|
|
21
|
+
import { validateFrame } from './validate-frame';
|
|
10
22
|
import { validateCodec } from './validation/validate-default-codec';
|
|
23
|
+
import { validateDefaultAndInputProps } from './validation/validate-default-props';
|
|
11
24
|
import { validateDimension } from './validation/validate-dimensions';
|
|
12
25
|
import { validateDurationInFrames } from './validation/validate-duration-in-frames';
|
|
13
26
|
import { validateFps } from './validation/validate-fps';
|
|
27
|
+
import { getExpectedMediaFrameUncorrected } from './video/get-current-time';
|
|
28
|
+
import { getOffthreadVideoSource } from './video/offthread-video-source';
|
|
14
29
|
export declare const NoReactInternals: {
|
|
15
30
|
DEFAULT_PREMOUNT_IN_SECONDS: number;
|
|
16
31
|
DEFAULT_STUDIO_PREMOUNT_IN_SECONDS: number;
|
|
17
32
|
DEFAULT_SEQUENCE_ACTIVITY_LIMIT: number;
|
|
18
|
-
validateDefaultPremountInSeconds:
|
|
19
|
-
evaluateSourceNumericValue:
|
|
20
|
-
evaluateSourcePropStatuses:
|
|
33
|
+
validateDefaultPremountInSeconds: typeof validateDefaultPremountInSeconds;
|
|
34
|
+
evaluateSourceNumericValue: typeof evaluateSourceNumericValue;
|
|
35
|
+
evaluateSourcePropStatuses: typeof evaluateSourcePropStatuses;
|
|
21
36
|
processColor: typeof processColor;
|
|
22
37
|
truthy: typeof truthy;
|
|
23
38
|
validateFps: typeof validateFps;
|
|
24
39
|
validateDimension: typeof validateDimension;
|
|
25
40
|
validateDurationInFrames: typeof validateDurationInFrames;
|
|
26
|
-
validateDefaultAndInputProps:
|
|
27
|
-
validateFrame:
|
|
28
|
-
|
|
29
|
-
durationInFrames: number;
|
|
30
|
-
allowFloats: boolean;
|
|
31
|
-
}) => void;
|
|
32
|
-
serializeJSONWithSpecialTypes: ({ data, indent, staticBase, }: {
|
|
33
|
-
data: Record<string, unknown>;
|
|
34
|
-
indent: number | undefined;
|
|
35
|
-
staticBase: string | null;
|
|
36
|
-
}) => import("./input-props-serialization").SerializedJSONWithCustomFields;
|
|
41
|
+
validateDefaultAndInputProps: typeof validateDefaultAndInputProps;
|
|
42
|
+
validateFrame: typeof validateFrame;
|
|
43
|
+
serializeJSONWithSpecialTypes: typeof serializeJSONWithSpecialTypes;
|
|
37
44
|
bundleName: string;
|
|
38
45
|
bundleMapName: string;
|
|
39
|
-
deserializeJSONWithSpecialTypes:
|
|
46
|
+
deserializeJSONWithSpecialTypes: typeof deserializeJSONWithSpecialTypes;
|
|
40
47
|
DELAY_RENDER_CALLSTACK_TOKEN: string;
|
|
41
48
|
DELAY_RENDER_RETRY_TOKEN: string;
|
|
42
49
|
DELAY_RENDER_CLEAR_TOKEN: string;
|
|
43
50
|
DELAY_RENDER_ATTEMPT_TOKEN: string;
|
|
44
|
-
getOffthreadVideoSource:
|
|
45
|
-
|
|
46
|
-
transparent: boolean;
|
|
47
|
-
currentTime: number;
|
|
48
|
-
toneMapped: boolean;
|
|
49
|
-
}) => string;
|
|
50
|
-
getExpectedMediaFrameUncorrected: ({ frame, playbackRate, startFrom, }: {
|
|
51
|
-
frame: number;
|
|
52
|
-
playbackRate: number;
|
|
53
|
-
startFrom: number;
|
|
54
|
-
}) => number;
|
|
51
|
+
getOffthreadVideoSource: typeof getOffthreadVideoSource;
|
|
52
|
+
getExpectedMediaFrameUncorrected: typeof getExpectedMediaFrameUncorrected;
|
|
55
53
|
ENABLE_V5_BREAKING_CHANGES: false;
|
|
56
54
|
MIN_NODE_VERSION: number;
|
|
57
55
|
MIN_BUN_VERSION: string;
|
|
@@ -63,43 +61,39 @@ export declare const NoReactInternals: {
|
|
|
63
61
|
FILE_TOKEN: string;
|
|
64
62
|
validateCodec: typeof validateCodec;
|
|
65
63
|
proResProfileOptions: readonly ["4444-xq", "4444", "hq", "standard", "light", "proxy"];
|
|
66
|
-
findPropsToDelete:
|
|
67
|
-
schema: import("./interactivity-schema").InteractivitySchema;
|
|
68
|
-
key: string;
|
|
69
|
-
value: unknown;
|
|
70
|
-
}) => string[];
|
|
64
|
+
findPropsToDelete: typeof findPropsToDelete;
|
|
71
65
|
sequenceSchema: {
|
|
72
66
|
readonly durationInFrames: {
|
|
73
|
-
readonly type:
|
|
67
|
+
readonly type: 'number';
|
|
74
68
|
readonly default: undefined;
|
|
75
69
|
readonly min: 1;
|
|
76
70
|
readonly step: 1;
|
|
77
71
|
readonly hiddenFromList: true;
|
|
78
72
|
};
|
|
79
73
|
readonly from: {
|
|
80
|
-
readonly type:
|
|
74
|
+
readonly type: 'number';
|
|
81
75
|
readonly default: 0;
|
|
82
76
|
readonly step: 1;
|
|
83
77
|
readonly hiddenFromList: true;
|
|
84
78
|
};
|
|
85
79
|
readonly trimBefore: {
|
|
86
|
-
readonly type:
|
|
80
|
+
readonly type: 'number';
|
|
87
81
|
readonly default: 0;
|
|
88
82
|
readonly min: 0;
|
|
89
83
|
readonly step: 1;
|
|
90
84
|
readonly hiddenFromList: true;
|
|
91
85
|
};
|
|
92
86
|
readonly playbackRate: {
|
|
93
|
-
readonly type:
|
|
87
|
+
readonly type: 'number';
|
|
94
88
|
readonly default: 1;
|
|
95
89
|
readonly min: 0.01;
|
|
96
90
|
readonly step: 0.1;
|
|
97
|
-
readonly description:
|
|
91
|
+
readonly description: 'Playback rate';
|
|
98
92
|
readonly hiddenFromList: false;
|
|
99
93
|
readonly keyframable: false;
|
|
100
94
|
};
|
|
101
95
|
readonly freeze: {
|
|
102
|
-
readonly type:
|
|
96
|
+
readonly type: 'number';
|
|
103
97
|
readonly default: null;
|
|
104
98
|
readonly step: 1;
|
|
105
99
|
readonly hiddenFromList: true;
|
|
@@ -108,58 +102,58 @@ export declare const NoReactInternals: {
|
|
|
108
102
|
readonly name: import("./interactivity-schema").HiddenFieldSchema;
|
|
109
103
|
readonly showInTimeline: import("./interactivity-schema").HiddenFieldSchema;
|
|
110
104
|
readonly layout: {
|
|
111
|
-
readonly type:
|
|
112
|
-
readonly default:
|
|
113
|
-
readonly description:
|
|
105
|
+
readonly type: 'enum';
|
|
106
|
+
readonly default: 'absolute-fill';
|
|
107
|
+
readonly description: 'Layout';
|
|
114
108
|
readonly variants: {
|
|
115
109
|
readonly 'absolute-fill': {
|
|
116
110
|
readonly 'style.transformOrigin': {
|
|
117
|
-
readonly type:
|
|
111
|
+
readonly type: 'transform-origin';
|
|
118
112
|
readonly step: 1;
|
|
119
|
-
readonly default:
|
|
120
|
-
readonly description:
|
|
113
|
+
readonly default: '50% 50%';
|
|
114
|
+
readonly description: 'Transform origin';
|
|
121
115
|
};
|
|
122
116
|
readonly 'style.translate': {
|
|
123
|
-
readonly type:
|
|
117
|
+
readonly type: 'translate';
|
|
124
118
|
readonly step: 1;
|
|
125
|
-
readonly default:
|
|
126
|
-
readonly description:
|
|
119
|
+
readonly default: '0px 0px';
|
|
120
|
+
readonly description: 'Offset';
|
|
127
121
|
};
|
|
128
122
|
readonly 'style.scale': {
|
|
129
|
-
readonly type:
|
|
123
|
+
readonly type: 'scale';
|
|
130
124
|
readonly max: 100;
|
|
131
125
|
readonly step: 0.01;
|
|
132
126
|
readonly default: 1;
|
|
133
|
-
readonly description:
|
|
134
|
-
readonly defaultKeyframeOutput:
|
|
127
|
+
readonly description: 'Scale';
|
|
128
|
+
readonly defaultKeyframeOutput: 'perceptual-scale';
|
|
135
129
|
};
|
|
136
130
|
readonly 'style.rotate': {
|
|
137
|
-
readonly type:
|
|
131
|
+
readonly type: 'rotation-css';
|
|
138
132
|
readonly step: 1;
|
|
139
|
-
readonly default:
|
|
140
|
-
readonly description:
|
|
133
|
+
readonly default: '0deg';
|
|
134
|
+
readonly description: 'Rotation';
|
|
141
135
|
};
|
|
142
136
|
readonly 'style.opacity': {
|
|
143
|
-
readonly type:
|
|
137
|
+
readonly type: 'number';
|
|
144
138
|
readonly min: 0;
|
|
145
139
|
readonly max: 1;
|
|
146
140
|
readonly step: 0.01;
|
|
147
141
|
readonly default: 1;
|
|
148
|
-
readonly description:
|
|
142
|
+
readonly description: 'Opacity';
|
|
149
143
|
readonly hiddenFromList: false;
|
|
150
144
|
};
|
|
151
145
|
readonly 'style.borderWidth': {
|
|
152
|
-
readonly type:
|
|
146
|
+
readonly type: 'number';
|
|
153
147
|
readonly default: undefined;
|
|
154
148
|
readonly min: 0;
|
|
155
149
|
readonly step: 1;
|
|
156
|
-
readonly description:
|
|
150
|
+
readonly description: 'Border width';
|
|
157
151
|
readonly hiddenFromList: false;
|
|
158
152
|
};
|
|
159
153
|
readonly 'style.borderStyle': {
|
|
160
|
-
readonly type:
|
|
161
|
-
readonly default:
|
|
162
|
-
readonly description:
|
|
154
|
+
readonly type: 'enum';
|
|
155
|
+
readonly default: 'none';
|
|
156
|
+
readonly description: 'Border style';
|
|
163
157
|
readonly variants: {
|
|
164
158
|
readonly none: {};
|
|
165
159
|
readonly hidden: {};
|
|
@@ -174,67 +168,67 @@ export declare const NoReactInternals: {
|
|
|
174
168
|
};
|
|
175
169
|
};
|
|
176
170
|
readonly 'style.borderColor': {
|
|
177
|
-
readonly type:
|
|
171
|
+
readonly type: 'color';
|
|
178
172
|
readonly default: undefined;
|
|
179
|
-
readonly description:
|
|
173
|
+
readonly description: 'Border color';
|
|
180
174
|
};
|
|
181
175
|
readonly 'style.borderRadius': {
|
|
182
|
-
readonly type:
|
|
176
|
+
readonly type: 'number';
|
|
183
177
|
readonly default: 0;
|
|
184
178
|
readonly min: 0;
|
|
185
179
|
readonly step: 1;
|
|
186
|
-
readonly description:
|
|
180
|
+
readonly description: 'Border radius';
|
|
187
181
|
readonly hiddenFromList: false;
|
|
188
182
|
readonly keyframable: true;
|
|
189
183
|
};
|
|
190
184
|
readonly 'style.borderTopLeftRadius': {
|
|
191
|
-
readonly type:
|
|
185
|
+
readonly type: 'number';
|
|
192
186
|
readonly default: 0;
|
|
193
187
|
readonly min: 0;
|
|
194
188
|
readonly step: 1;
|
|
195
|
-
readonly description:
|
|
189
|
+
readonly description: 'Top left radius';
|
|
196
190
|
readonly hiddenFromList: false;
|
|
197
191
|
};
|
|
198
192
|
readonly 'style.borderTopRightRadius': {
|
|
199
|
-
readonly type:
|
|
193
|
+
readonly type: 'number';
|
|
200
194
|
readonly default: 0;
|
|
201
195
|
readonly min: 0;
|
|
202
196
|
readonly step: 1;
|
|
203
|
-
readonly description:
|
|
197
|
+
readonly description: 'Top right radius';
|
|
204
198
|
readonly hiddenFromList: false;
|
|
205
199
|
};
|
|
206
200
|
readonly 'style.borderBottomRightRadius': {
|
|
207
|
-
readonly type:
|
|
201
|
+
readonly type: 'number';
|
|
208
202
|
readonly default: 0;
|
|
209
203
|
readonly min: 0;
|
|
210
204
|
readonly step: 1;
|
|
211
|
-
readonly description:
|
|
205
|
+
readonly description: 'Bottom right radius';
|
|
212
206
|
readonly hiddenFromList: false;
|
|
213
207
|
};
|
|
214
208
|
readonly 'style.borderBottomLeftRadius': {
|
|
215
|
-
readonly type:
|
|
209
|
+
readonly type: 'number';
|
|
216
210
|
readonly default: 0;
|
|
217
211
|
readonly min: 0;
|
|
218
212
|
readonly step: 1;
|
|
219
|
-
readonly description:
|
|
213
|
+
readonly description: 'Bottom left radius';
|
|
220
214
|
readonly hiddenFromList: false;
|
|
221
215
|
};
|
|
222
216
|
readonly 'style.backgroundColor': {
|
|
223
|
-
readonly type:
|
|
224
|
-
readonly default:
|
|
225
|
-
readonly description:
|
|
217
|
+
readonly type: 'color';
|
|
218
|
+
readonly default: 'transparent';
|
|
219
|
+
readonly description: 'Color';
|
|
226
220
|
};
|
|
227
221
|
readonly premountFor: {
|
|
228
|
-
readonly type:
|
|
222
|
+
readonly type: 'number';
|
|
229
223
|
readonly default: undefined;
|
|
230
|
-
readonly description:
|
|
224
|
+
readonly description: 'Premount For';
|
|
231
225
|
readonly min: 0;
|
|
232
226
|
readonly step: 1;
|
|
233
227
|
readonly hiddenFromList: false;
|
|
234
228
|
readonly keyframable: false;
|
|
235
229
|
};
|
|
236
230
|
readonly postmountFor: {
|
|
237
|
-
readonly type:
|
|
231
|
+
readonly type: 'number';
|
|
238
232
|
readonly default: 0;
|
|
239
233
|
readonly min: 0;
|
|
240
234
|
readonly step: 1;
|
|
@@ -242,9 +236,9 @@ export declare const NoReactInternals: {
|
|
|
242
236
|
readonly keyframable: false;
|
|
243
237
|
};
|
|
244
238
|
readonly cropLeft: {
|
|
245
|
-
readonly type:
|
|
239
|
+
readonly type: 'number';
|
|
246
240
|
readonly default: 0;
|
|
247
|
-
readonly description:
|
|
241
|
+
readonly description: 'Crop left';
|
|
248
242
|
readonly min: 0;
|
|
249
243
|
readonly max: 1;
|
|
250
244
|
readonly step: 0.01;
|
|
@@ -252,9 +246,9 @@ export declare const NoReactInternals: {
|
|
|
252
246
|
readonly keyframable: true;
|
|
253
247
|
};
|
|
254
248
|
readonly cropRight: {
|
|
255
|
-
readonly type:
|
|
249
|
+
readonly type: 'number';
|
|
256
250
|
readonly default: 0;
|
|
257
|
-
readonly description:
|
|
251
|
+
readonly description: 'Crop right';
|
|
258
252
|
readonly min: 0;
|
|
259
253
|
readonly max: 1;
|
|
260
254
|
readonly step: 0.01;
|
|
@@ -262,9 +256,9 @@ export declare const NoReactInternals: {
|
|
|
262
256
|
readonly keyframable: true;
|
|
263
257
|
};
|
|
264
258
|
readonly cropTop: {
|
|
265
|
-
readonly type:
|
|
259
|
+
readonly type: 'number';
|
|
266
260
|
readonly default: 0;
|
|
267
|
-
readonly description:
|
|
261
|
+
readonly description: 'Crop top';
|
|
268
262
|
readonly min: 0;
|
|
269
263
|
readonly max: 1;
|
|
270
264
|
readonly step: 0.01;
|
|
@@ -272,9 +266,9 @@ export declare const NoReactInternals: {
|
|
|
272
266
|
readonly keyframable: true;
|
|
273
267
|
};
|
|
274
268
|
readonly cropBottom: {
|
|
275
|
-
readonly type:
|
|
269
|
+
readonly type: 'number';
|
|
276
270
|
readonly default: 0;
|
|
277
|
-
readonly description:
|
|
271
|
+
readonly description: 'Crop bottom';
|
|
278
272
|
readonly min: 0;
|
|
279
273
|
readonly max: 1;
|
|
280
274
|
readonly step: 0.01;
|
|
@@ -286,9 +280,9 @@ export declare const NoReactInternals: {
|
|
|
286
280
|
};
|
|
287
281
|
};
|
|
288
282
|
};
|
|
289
|
-
parseScaleValue:
|
|
290
|
-
serializeScaleValue:
|
|
291
|
-
getRegisteredFontFaces:
|
|
292
|
-
registerFontFace:
|
|
293
|
-
fetchFontData:
|
|
283
|
+
parseScaleValue: typeof parseScaleValue;
|
|
284
|
+
serializeScaleValue: typeof serializeScaleValue;
|
|
285
|
+
getRegisteredFontFaces: typeof getRegisteredFontFaces;
|
|
286
|
+
registerFontFace: typeof registerFontFace;
|
|
287
|
+
fetchFontData: typeof fetchFontData;
|
|
294
288
|
};
|
package/dist/cjs/no-react.js
CHANGED
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.NoReactInternals = exports.random = exports.interpolate = exports.assertValidInterpolatePosterizeOption = exports.assertValidInterpolateEasingOption = void 0;
|
|
4
4
|
const evaluate_source_expressions_js_1 = require("./evaluate-source-expressions.js");
|
|
5
5
|
const sequence_activity_defaults_js_1 = require("./sequence-activity-defaults.js");
|
|
6
|
-
|
|
6
|
+
var interpolate_1 = require("./interpolate");
|
|
7
7
|
Object.defineProperty(exports, "assertValidInterpolateEasingOption", { enumerable: true, get: function () { return interpolate_1.assertValidInterpolateEasingOption; } });
|
|
8
8
|
Object.defineProperty(exports, "assertValidInterpolatePosterizeOption", { enumerable: true, get: function () { return interpolate_1.assertValidInterpolatePosterizeOption; } });
|
|
9
9
|
Object.defineProperty(exports, "interpolate", { enumerable: true, get: function () { return interpolate_1.interpolate; } });
|
|
10
|
-
|
|
10
|
+
var random_js_1 = require("./random.js");
|
|
11
11
|
Object.defineProperty(exports, "random", { enumerable: true, get: function () { return random_js_1.random; } });
|
|
12
12
|
const default_premount_in_seconds_1 = require("./default-premount-in-seconds");
|
|
13
13
|
const delay_render_constants_1 = require("./delay-render-constants");
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type TNonceContext = {
|
|
2
|
+
getNonce: () => number;
|
|
3
|
+
};
|
|
4
|
+
type NonceHistoryItem = [number, number];
|
|
5
|
+
export type NonceHistory = NonceHistoryItem[];
|
|
6
|
+
export type NonceHistoryContext = {
|
|
7
|
+
get: () => NonceHistory;
|
|
8
|
+
};
|
|
9
|
+
export declare const NonceContext: import("react").Context<TNonceContext>;
|
|
10
|
+
export declare const useNonce: () => NonceHistoryContext;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useNonce = exports.NonceContext = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
exports.NonceContext = (0, react_1.createContext)({
|
|
6
|
+
getNonce: () => 0,
|
|
7
|
+
});
|
|
8
|
+
let fastRefreshNonce = 0;
|
|
9
|
+
try {
|
|
10
|
+
if (typeof __webpack_module__ !== 'undefined') {
|
|
11
|
+
if (__webpack_module__.hot) {
|
|
12
|
+
__webpack_module__.hot.addStatusHandler((status) => {
|
|
13
|
+
if (status === 'idle') {
|
|
14
|
+
fastRefreshNonce++;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
catch (_a) {
|
|
21
|
+
// __webpack_module__ may throw ReferenceError in some environments
|
|
22
|
+
}
|
|
23
|
+
const useNonce = () => {
|
|
24
|
+
const context = (0, react_1.useContext)(exports.NonceContext);
|
|
25
|
+
const nonce = context.getNonce();
|
|
26
|
+
const nonceRef = (0, react_1.useRef)(nonce);
|
|
27
|
+
nonceRef.current = nonce;
|
|
28
|
+
const history = (0, react_1.useRef)([[fastRefreshNonce, nonce]]);
|
|
29
|
+
const get = (0, react_1.useCallback)(() => {
|
|
30
|
+
if (fastRefreshNonce !== history.current[history.current.length - 1][0]) {
|
|
31
|
+
history.current = [
|
|
32
|
+
...history.current,
|
|
33
|
+
[fastRefreshNonce, nonceRef.current],
|
|
34
|
+
];
|
|
35
|
+
}
|
|
36
|
+
return history.current;
|
|
37
|
+
}, [history]);
|
|
38
|
+
return (0, react_1.useMemo)(() => {
|
|
39
|
+
return { get };
|
|
40
|
+
}, [get]);
|
|
41
|
+
};
|
|
42
|
+
exports.useNonce = useNonce;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { RefObject } from 'react';
|
|
2
|
+
import { type LogLevel } from './log';
|
|
2
3
|
export declare const playAndHandleNotAllowedError: ({ mediaRef, mediaType, onAutoPlayError, logLevel, mountTime, reason, isPlayer, }: {
|
|
3
|
-
mediaRef: RefObject<
|
|
4
|
-
mediaType:
|
|
5
|
-
onAutoPlayError: (() => void)
|
|
6
|
-
logLevel:
|
|
4
|
+
mediaRef: RefObject<HTMLVideoElement | HTMLAudioElement | null>;
|
|
5
|
+
mediaType: 'audio' | 'video';
|
|
6
|
+
onAutoPlayError: null | (() => void);
|
|
7
|
+
logLevel: LogLevel;
|
|
7
8
|
mountTime: number;
|
|
8
9
|
reason: string;
|
|
9
10
|
isPlayer: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PlaybackPitchContext: import("react").Context<boolean>;
|
|
@@ -22,6 +22,6 @@ const PrefetchProvider = ({ children }) => {
|
|
|
22
22
|
updaters = updaters.filter((u) => u !== updaterFunction);
|
|
23
23
|
};
|
|
24
24
|
}, []);
|
|
25
|
-
return (jsx_runtime_1.jsx(exports.PreloadContext.Provider, { value: _preloads, children: children }));
|
|
25
|
+
return ((0, jsx_runtime_1.jsx)(exports.PreloadContext.Provider, { value: _preloads, children: children }));
|
|
26
26
|
};
|
|
27
27
|
exports.PrefetchProvider = PrefetchProvider;
|
package/dist/cjs/prefetch.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { LogLevel } from './log.js';
|
|
1
2
|
export declare const removeAndGetHashFragment: (src: string) => number | null;
|
|
2
3
|
export declare const getSrcWithoutHash: (src: string) => string;
|
|
3
4
|
export declare const usePreload: (src: string) => string;
|
|
@@ -10,10 +11,10 @@ export type PrefetchOnProgress = (options: {
|
|
|
10
11
|
loadedBytes: number;
|
|
11
12
|
}) => void;
|
|
12
13
|
export declare const prefetch: (src: string, options?: {
|
|
13
|
-
method?:
|
|
14
|
-
contentType?: string
|
|
15
|
-
onProgress?: PrefetchOnProgress
|
|
16
|
-
credentials?: RequestCredentials
|
|
17
|
-
logLevel?:
|
|
18
|
-
}
|
|
14
|
+
method?: 'blob-url' | 'base64';
|
|
15
|
+
contentType?: string;
|
|
16
|
+
onProgress?: PrefetchOnProgress;
|
|
17
|
+
credentials?: RequestCredentials;
|
|
18
|
+
logLevel?: LogLevel;
|
|
19
|
+
}) => FetchAndPreload;
|
|
19
20
|
export {};
|
package/dist/cjs/prefetch.js
CHANGED
|
@@ -35,6 +35,7 @@ const usePreload = (src) => {
|
|
|
35
35
|
return preloads[withoutHashFragment];
|
|
36
36
|
};
|
|
37
37
|
exports.usePreload = usePreload;
|
|
38
|
+
const activePrefetches = new Map();
|
|
38
39
|
const blobToBase64 = function (blob) {
|
|
39
40
|
const reader = new FileReader();
|
|
40
41
|
return new Promise((resolve, reject) => {
|
|
@@ -98,6 +99,7 @@ const prefetch = (src, options) => {
|
|
|
98
99
|
});
|
|
99
100
|
waitUntilDone.catch(() => undefined);
|
|
100
101
|
const controller = new AbortController();
|
|
102
|
+
const prefetchId = Symbol('prefetch');
|
|
101
103
|
let reader = null;
|
|
102
104
|
fetch(srcWithoutHash, {
|
|
103
105
|
signal: controller.signal,
|
|
@@ -148,7 +150,11 @@ const prefetch = (src, options) => {
|
|
|
148
150
|
return URL.createObjectURL(actualBlob);
|
|
149
151
|
})
|
|
150
152
|
.then((url) => {
|
|
153
|
+
var _a;
|
|
151
154
|
if (canceled) {
|
|
155
|
+
if (url && method === 'blob-url') {
|
|
156
|
+
URL.revokeObjectURL(url);
|
|
157
|
+
}
|
|
152
158
|
return;
|
|
153
159
|
}
|
|
154
160
|
(0, playback_logging_js_1.playbackLogging)({
|
|
@@ -158,6 +164,9 @@ const prefetch = (src, options) => {
|
|
|
158
164
|
mountTime: null,
|
|
159
165
|
});
|
|
160
166
|
objectUrl = url;
|
|
167
|
+
const prefetchesForSrc = (_a = activePrefetches.get(srcWithoutHash)) !== null && _a !== void 0 ? _a : new Map();
|
|
168
|
+
prefetchesForSrc.set(prefetchId, objectUrl);
|
|
169
|
+
activePrefetches.set(srcWithoutHash, prefetchesForSrc);
|
|
161
170
|
(0, prefetch_state_js_1.setPreloads)((p) => ({
|
|
162
171
|
...p,
|
|
163
172
|
[srcWithoutHash]: objectUrl,
|
|
@@ -172,6 +181,10 @@ const prefetch = (src, options) => {
|
|
|
172
181
|
});
|
|
173
182
|
return {
|
|
174
183
|
free: () => {
|
|
184
|
+
if (canceled) {
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
canceled = true;
|
|
175
188
|
(0, playback_logging_js_1.playbackLogging)({
|
|
176
189
|
logLevel,
|
|
177
190
|
tag: 'prefetch',
|
|
@@ -182,17 +195,29 @@ const prefetch = (src, options) => {
|
|
|
182
195
|
if (method === 'blob-url') {
|
|
183
196
|
URL.revokeObjectURL(objectUrl);
|
|
184
197
|
}
|
|
198
|
+
const prefetchesForSrc = activePrefetches.get(srcWithoutHash);
|
|
199
|
+
prefetchesForSrc === null || prefetchesForSrc === void 0 ? void 0 : prefetchesForSrc.delete(prefetchId);
|
|
200
|
+
const remainingUrl = prefetchesForSrc
|
|
201
|
+
? [...prefetchesForSrc.values()].pop()
|
|
202
|
+
: undefined;
|
|
203
|
+
if ((prefetchesForSrc === null || prefetchesForSrc === void 0 ? void 0 : prefetchesForSrc.size) === 0) {
|
|
204
|
+
activePrefetches.delete(srcWithoutHash);
|
|
205
|
+
}
|
|
185
206
|
(0, prefetch_state_js_1.setPreloads)((p) => {
|
|
207
|
+
if (p[srcWithoutHash] === remainingUrl) {
|
|
208
|
+
return p;
|
|
209
|
+
}
|
|
186
210
|
const copy = { ...p };
|
|
187
|
-
|
|
211
|
+
if (remainingUrl === undefined) {
|
|
212
|
+
delete copy[srcWithoutHash];
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
copy[srcWithoutHash] = remainingUrl;
|
|
216
|
+
}
|
|
188
217
|
return copy;
|
|
189
218
|
});
|
|
190
219
|
}
|
|
191
220
|
else {
|
|
192
|
-
if (canceled) {
|
|
193
|
-
return;
|
|
194
|
-
}
|
|
195
|
-
canceled = true;
|
|
196
221
|
const cancellationError = new Error('free() called');
|
|
197
222
|
reject(cancellationError);
|
|
198
223
|
try {
|
|
@@ -17,5 +17,6 @@ export type PropsIfHasProps<Schema extends AnyZodObject, Props extends Record<st
|
|
|
17
17
|
} : {
|
|
18
18
|
defaultProps: InferProps<Schema, Props>;
|
|
19
19
|
};
|
|
20
|
-
export type InferProps<Schema extends AnyZodObject, Props extends Record<string, unknown>> = AnyZodObject extends Schema ? {} extends Props ? Record<string, unknown> : Props : {} extends Props ? InferZodInput<Schema> :
|
|
20
|
+
export type InferProps<Schema extends AnyZodObject, Props extends Record<string, unknown>> = AnyZodObject extends Schema ? {} extends Props ? Record<string, unknown> : Props : {} extends Props ? InferZodInput<Schema> : // Props and schema specified
|
|
21
|
+
InferZodInput<Schema> & Props;
|
|
21
22
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const proResProfileOptions: readonly [
|
|
1
|
+
export declare const proResProfileOptions: readonly ['4444-xq', '4444', 'hq', 'standard', 'light', 'proxy'];
|
|
2
2
|
export type ProResProfile = (typeof proResProfileOptions)[number];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
export declare const registerRoot: (comp: React.FC
|
|
2
|
+
export declare const registerRoot: (comp: React.FC) => void;
|
|
3
3
|
export declare const getRoot: () => React.FC<{}> | null;
|
|
4
|
-
export declare const waitForRoot: (fn: (comp: React.FC
|
|
4
|
+
export declare const waitForRoot: (fn: (comp: React.FC) => void) => (() => void);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const validVideoImageFormats: readonly [
|
|
1
|
+
export declare const validVideoImageFormats: readonly ['png', 'jpeg', 'none'];
|
|
2
2
|
export type VideoImageFormat = (typeof validVideoImageFormats)[number];
|
|
3
|
-
export declare const validPixelFormats: readonly [
|
|
3
|
+
export declare const validPixelFormats: readonly ['yuv420p', 'yuva420p', 'yuv422p', 'yuv444p', 'yuv420p10le', 'yuv422p10le', 'yuv444p10le', 'yuva444p10le'];
|
|
4
4
|
export type PixelFormat = (typeof validPixelFormats)[number];
|