🎥 Make videos programmatically with React
canvas-effects: experimental public package metadata; example: revert NewVideo, Img/IFrame in privacy demo
JonnyBurgere5da17021e6a
diff --git a/packages/canvas-effects/README.md b/packages/canvas-effects/README.mdindex 173f660265..2ad9a2a8cb 100644--- a/packages/canvas-effects/README.md+++ b/packages/canvas-effects/README.md@@ -1,8 +1,8 @@# @remotion/canvas-effects-Sample effects for the Remotion canvas-effect chain.+**Experimental and undocumented.** Presets for Remotion's canvas effect hooks; behavior and exports may change in any release.-[](https://npmcharts.com/compare/@remotion/canvas-effects?minimal=true)+The package is published on npm (`publishConfig.access: public`) for early adopters. There is no stable documentation page; refer to the source under [`packages/canvas-effects`](https://github.com/remotion-dev/remotion/tree/main/packages/canvas-effects) in the Remotion repo.## Installation@@ -10,9 +10,4 @@ Sample effects for the Remotion canvas-effect chain.npm install @remotion/canvas-effects --save-exact```-When installing a Remotion package, make sure to align the version of all `remotion` and `@remotion/*` packages to the same version.-Remove the `^` character from the version number to use the exact version.--## Usage--See the [documentation](https://www.remotion.dev/docs/canvas-effects) for more information.+Align the version of `remotion` and all `@remotion/*` packages to the same release (pin exact versions in `package.json`).diff --git a/packages/canvas-effects/package.json b/packages/canvas-effects/package.jsonindex 8237b48eea..7d6b5140fa 100644--- a/packages/canvas-effects/package.json+++ b/packages/canvas-effects/package.json@@ -4,7 +4,8 @@},"name": "@remotion/canvas-effects","version": "4.0.451",- "description": "Sample effects for the Remotion canvas-effect chain",+ "private": false,+ "description": "Experimental, undocumented presets for Remotion's canvas effect hooks; APIs may change without notice.","main": "dist/index.js","sideEffects": false,"scripts": {@@ -38,6 +39,7 @@"keywords": ["canvas","effects",+ "experimental","webgl","remotion"],@@ -48,6 +50,5 @@"react": ">=16.8.0","remotion": "workspace:*"},- "dependencies": {},- "homepage": "https://www.remotion.dev/docs/canvas-effects"+ "dependencies": {}}diff --git a/packages/example/src/HtmlInCanvas/privacy.tsx b/packages/example/src/HtmlInCanvas/privacy.tsxindex 027b8da2c1..4dccde0ddf 100644--- a/packages/example/src/HtmlInCanvas/privacy.tsx+++ b/packages/example/src/HtmlInCanvas/privacy.tsx@@ -1,5 +1,5 @@import React from 'react';-import {AbsoluteFill, HtmlInCanvas} from 'remotion';+import {AbsoluteFill, HtmlInCanvas, IFrame, Img} from 'remotion';// Demonstrates the "Privacy-preserving painting" rules from// https://github.com/WICG/html-in-canvas#privacy-preserving-painting@@ -53,7 +53,7 @@ const SensitiveContent: React.FC = () => (<style>{VISITED_LINK_CSS}</style><Section title="Cross-origin <iframe> (should paint blank)">- <iframe+ <IFrametitle="cross-origin"src="https://example.com"width={500}@@ -63,7 +63,7 @@ const SensitiveContent: React.FC = () => (</Section><Section title="Cross-origin <img> without CORS (should paint blank)">- <img+ <Imgsrc="https://upload.wikimedia.org/wikipedia/commons/thumb/4/47/PNG_transparency_demonstration_1.png/280px-PNG_transparency_demonstration_1.png"alt="cross-origin"width={200}diff --git a/packages/example/src/NewVideo.tsx b/packages/example/src/NewVideo.tsxindex c2cd974eaf..fd1565a409 100644--- a/packages/example/src/NewVideo.tsx+++ b/packages/example/src/NewVideo.tsx@@ -1,4 +1,3 @@-import {halftone} from '@remotion/canvas-effects';import {Video} from '@remotion/media';import {CalculateMetadataFunction, Composition} from 'remotion';// https://www.remotion.dev/docs/mediabunny/metadata@@ -20,11 +19,7 @@ export const calculateMetadataFn: CalculateMetadataFunction<};export const Component = () => {- return (- <>- <Video src={src} debugOverlay _experimentalEffects={[halftone()]} />- </>- );+ return <Video src={src} debugOverlay />;};export const NewVideoComp = () => {