Skip to content

🎥 Make videos programmatically with React

Merge remote-tracking branch 'origin/main' into jonnyburger/add-bookflip-html-in-canvas-presentation

Jonny Burger9cb433ca0a43
diff --cc packages/transitions/src/index.ts
index 87033d2c05,513bfc3f97..520fe69bf4
--- a/packages/transitions/src/index.ts
+++ b/packages/transitions/src/index.ts
@@@ -18,10 -19,5 +18,4 @@@ export type
HtmlInCanvasShader,
HtmlInCanvasShaderDraw,
HtmlInCanvasShaderDrawParams,
- makeHtmlInCanvasPresentation,
} from './html-in-canvas-presentation.js';
- // Presentations
- export {bookFlip} from './presentations/book-flip.js';
- export type {
- BookFlipDirection,
- BookFlipProps,
- } from './presentations/book-flip.js';
diff --cc packages/transitions/src/test/sample-test.test.tsx
index 1d12e5a8d4,42ed88570a..c2e6b1fcdb
--- a/packages/transitions/src/test/sample-test.test.tsx
+++ b/packages/transitions/src/test/sample-test.test.tsx
@@@ -3,7 -3,6 +3,7 @@@ import {Thumbnail} from '@remotion/play
import type React from 'react';
import {renderToString} from 'react-dom/server';
import {useCurrentFrame} from 'remotion';
- import {bookFlip} from '../index';
++import {bookFlip} from '../presentations/book-flip';
const Comp: React.FC<{}> = () => {
const frame = useCurrentFrame();
@@@ -26,9 -25,3 +26,9 @@@ test('should work', () =>
expect(readStream).toContain('<div>We are on frame 10</div>');
});
+
- test('should export bookFlip from the package root', () => {
++test('bookFlip() should return a presentation', () => {
+ const presentation = bookFlip({direction: 'from-top'});
+ expect(presentation.props).toEqual({direction: 'from-top'});
+ expect(typeof presentation.component).toBe('function');
+});