@remotion/player 4.0.148 → 4.0.150
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/.rollup.cache/Users/jonathanburger/remotion/packages/player/dist/tsconfig-esm.tsbuildinfo +1 -1
- package/bundle.ts +28 -0
- package/dist/cjs/MediaVolumeSlider.js +205 -129
- package/dist/cjs/icons.js +113 -19
- package/dist/esm/index.mjs +3039 -2289
- package/package.json +3 -7
- package/dist/esm/BufferingIndicator.d.ts +0 -5
- package/dist/esm/DefaultPlayPauseButton.d.ts +0 -5
- package/dist/esm/EmitterProvider.d.ts +0 -5
- package/dist/esm/MediaVolumeSlider.d.ts +0 -5
- package/dist/esm/PlaybackrateControl.d.ts +0 -8
- package/dist/esm/Player.d.ts +0 -59
- package/dist/esm/PlayerControls.d.ts +0 -47
- package/dist/esm/PlayerSeekBar.d.ts +0 -8
- package/dist/esm/PlayerUI.d.ts +0 -46
- package/dist/esm/SharedPlayerContext.d.ts +0 -15
- package/dist/esm/Thumbnail.d.ts +0 -23
- package/dist/esm/ThumbnailUI.d.ts +0 -11
- package/dist/esm/calculate-next-frame.d.ts +0 -14
- package/dist/esm/calculate-scale.d.ts +0 -50
- package/dist/esm/emitter-context.d.ts +0 -4
- package/dist/esm/error-boundary.d.ts +0 -19
- package/dist/esm/event-emitter.d.ts +0 -91
- package/dist/esm/format-time.d.ts +0 -1
- package/dist/esm/icons.d.ts +0 -10
- package/dist/esm/index.d.ts +0 -65
- package/dist/esm/is-backgrounded.d.ts +0 -2
- package/dist/esm/player-css-classname.d.ts +0 -1
- package/dist/esm/player-methods.d.ts +0 -25
- package/dist/esm/test/index.test.d.ts +0 -1
- package/dist/esm/test/test-utils.d.ts +0 -6
- package/dist/esm/test/validate-in-out-frames.test.d.ts +0 -1
- package/dist/esm/test/validate-prop.test.d.ts +0 -1
- package/dist/esm/use-buffer-state-emitter.d.ts +0 -2
- package/dist/esm/use-hover-state.d.ts +0 -1
- package/dist/esm/use-playback.d.ts +0 -8
- package/dist/esm/use-player.d.ts +0 -24
- package/dist/esm/use-thumbnail.d.ts +0 -6
- package/dist/esm/use-video-controls-resize.d.ts +0 -11
- package/dist/esm/utils/calculate-player-size.d.ts +0 -9
- package/dist/esm/utils/cancellable-promise.d.ts +0 -5
- package/dist/esm/utils/delay.d.ts +0 -1
- package/dist/esm/utils/is-node.d.ts +0 -1
- package/dist/esm/utils/props-if-has-props.d.ts +0 -10
- package/dist/esm/utils/use-cancellable-promises.d.ts +0 -7
- package/dist/esm/utils/use-click-prevention-on-double-click.d.ts +0 -3
- package/dist/esm/utils/use-component-visible.d.ts +0 -6
- package/dist/esm/utils/use-element-size.d.ts +0 -16
- package/dist/esm/utils/validate-in-out-frame.d.ts +0 -6
- package/dist/esm/utils/validate-initial-frame.d.ts +0 -4
- package/dist/esm/utils/validate-playbackrate.d.ts +0 -1
- package/dist/esm/validate.d.ts +0 -5
- package/dist/esm/volume-persistance.d.ts +0 -2
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type Info = {
|
|
2
|
-
maxTimeLabelWidth: number | null;
|
|
3
|
-
displayVerticalVolumeSlider: boolean;
|
|
4
|
-
};
|
|
5
|
-
export declare const X_SPACER = 10;
|
|
6
|
-
export declare const X_PADDING = 12;
|
|
7
|
-
export declare const useVideoControlsResize: ({ allowFullscreen: allowFullScreen, playerWidth, }: {
|
|
8
|
-
allowFullscreen: boolean;
|
|
9
|
-
playerWidth: number;
|
|
10
|
-
}) => Info;
|
|
11
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { StandardLonghandProperties } from 'csstype';
|
|
2
|
-
import type { Size } from './use-element-size.js';
|
|
3
|
-
export declare const calculatePlayerSize: ({ currentSize, width, height, compositionWidth, compositionHeight, }: {
|
|
4
|
-
currentSize: Size | null;
|
|
5
|
-
width: StandardLonghandProperties['width'] | undefined;
|
|
6
|
-
height: StandardLonghandProperties['height'] | undefined;
|
|
7
|
-
compositionWidth: number;
|
|
8
|
-
compositionHeight: number;
|
|
9
|
-
}) => React.CSSProperties;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const delay: (n: number) => Promise<unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const IS_NODE: boolean;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { AnyZodObject, z } from 'zod';
|
|
2
|
-
export type PropsIfHasProps<Schema extends AnyZodObject, Props> = AnyZodObject extends Schema ? {} extends Props ? {
|
|
3
|
-
inputProps?: z.input<Schema> & Props;
|
|
4
|
-
} : {
|
|
5
|
-
inputProps: Props;
|
|
6
|
-
} : {} extends Props ? {
|
|
7
|
-
inputProps: z.input<Schema>;
|
|
8
|
-
} : {
|
|
9
|
-
inputProps: z.input<Schema> & Props;
|
|
10
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { CancellablePromise } from './cancellable-promise.js';
|
|
2
|
-
declare const useCancellablePromises: () => {
|
|
3
|
-
appendPendingPromise: (promise: CancellablePromise) => void;
|
|
4
|
-
removePendingPromise: (promise: CancellablePromise) => void;
|
|
5
|
-
clearPendingPromises: () => void[];
|
|
6
|
-
};
|
|
7
|
-
export { useCancellablePromises };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { SyntheticEvent } from 'react';
|
|
2
|
-
declare const useClickPreventionOnDoubleClick: (onClick: (e: SyntheticEvent) => void, onDoubleClick: () => void, doubleClickToFullscreen: boolean) => [(e: SyntheticEvent) => void, () => void];
|
|
3
|
-
export { useClickPreventionOnDoubleClick };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export default function useComponentVisible(initialIsVisible: boolean): {
|
|
3
|
-
ref: import("react").RefObject<HTMLDivElement>;
|
|
4
|
-
isComponentVisible: boolean;
|
|
5
|
-
setIsComponentVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
6
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type Size = {
|
|
2
|
-
width: number;
|
|
3
|
-
height: number;
|
|
4
|
-
left: number;
|
|
5
|
-
top: number;
|
|
6
|
-
windowSize: {
|
|
7
|
-
width: number;
|
|
8
|
-
height: number;
|
|
9
|
-
};
|
|
10
|
-
refresh: () => void;
|
|
11
|
-
};
|
|
12
|
-
export declare const updateAllElementsSizes: () => void;
|
|
13
|
-
export declare const useElementSize: (ref: React.RefObject<HTMLElement>, options: {
|
|
14
|
-
triggerOnWindowResize: boolean;
|
|
15
|
-
shouldApplyCssTransforms: boolean;
|
|
16
|
-
}) => Size | null;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const validateSingleFrame: (frame: unknown, variableName: string) => number | null;
|
|
2
|
-
export declare const validateInOutFrames: ({ inFrame, durationInFrames, outFrame, }: {
|
|
3
|
-
inFrame: unknown;
|
|
4
|
-
outFrame: unknown;
|
|
5
|
-
durationInFrames: number;
|
|
6
|
-
}) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const validatePlaybackRate: (playbackRate: number | undefined) => void;
|
package/dist/esm/validate.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { NoReactInternals } from 'remotion/no-react';
|
|
2
|
-
export declare const validateFps: typeof NoReactInternals.validateFps;
|
|
3
|
-
export declare const validateDimension: typeof NoReactInternals.validateDimension;
|
|
4
|
-
export declare const validateDurationInFrames: typeof NoReactInternals.validateDurationInFrames;
|
|
5
|
-
export declare const validateDefaultAndInputProps: typeof NoReactInternals.validateDefaultAndInputProps;
|