@remotion/player
Advanced tools
Comparing version 3.0.0-pnpm.10 to 3.0.0-pnpm.16
@@ -1,4 +0,1 @@ | ||
export declare const Loading: React.FC<{ | ||
size: number; | ||
}>; | ||
//# sourceMappingURL=Loading.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Loading = void 0; | ||
const jsx_runtime_1 = require("react/jsx-runtime"); | ||
const Loading = ({ size }) => { | ||
const triangle = (opacity, triangleSize) => ((0, jsx_runtime_1.jsxs)("svg", Object.assign({ xmlnsXlink: "http://www.w3.org/1999/xlink", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 400 400", style: { | ||
opacity, | ||
width: triangleSize, | ||
height: triangleSize, | ||
position: 'absolute', | ||
transform: 'rotate(90deg)', | ||
} }, { children: [(0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsxs)("linearGradient", Object.assign({ id: "gradient" }, { children: [(0, jsx_runtime_1.jsx)("stop", { stopColor: "#42e9f5", stopOpacity: "1", offset: "0" }, void 0), (0, jsx_runtime_1.jsx)("stop", { stopColor: "#4290f5", stopOpacity: "1", offset: "100%" }, void 0)] }), void 0) }, void 0), (0, jsx_runtime_1.jsx)("g", Object.assign({ stroke: 'url("#gradient")', strokeWidth: "100px", strokeLinejoin: "round" }, { children: (0, jsx_runtime_1.jsx)("path", { fill: 'url("#gradient")', d: "M 102 272 a 196 100 0 0 0 195 5 A 196 240 0 0 0 200 102.259 A 196 240 0 0 0 102 272 z", stroke: 'url("#gradient")', strokeWidth: "100px" }, void 0) }), void 0)] }), void 0)); | ||
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ style: { | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
flex: 1, | ||
height: '100%', | ||
width: '100%', | ||
} }, { children: [triangle(0.2, size), triangle(0.4, (size * 9) / 11), triangle(1, (size * 7) / 11)] }), void 0)); | ||
}; | ||
exports.Loading = Loading; | ||
//# sourceMappingURL=Loading.js.map |
@@ -25,2 +25,6 @@ "use strict"; | ||
} | ||
// @ts-expect-error | ||
if (componentProps.defaultProps !== undefined) { | ||
throw new Error('The <Player /> component does not accept `defaultProps`, but some were passed. Use `inputProps` instead.'); | ||
} | ||
const component = remotion_1.Internals.useLazyComponent(componentProps); | ||
@@ -27,0 +31,0 @@ const [frame, setFrame] = (0, react_1.useState)(0); |
{ | ||
"name": "@remotion/player", | ||
"version": "3.0.0-pnpm.10+a8fecf75a", | ||
"version": "3.0.0-pnpm.16+e398b241b", | ||
"description": "Remotion Player", | ||
@@ -27,3 +27,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"remotion": "3.0.0-pnpm.10+a8fecf75a" | ||
"remotion": "3.0.0-pnpm.16+e398b241b" | ||
}, | ||
@@ -53,3 +53,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "a8fecf75a45bb347b0c74f61a4b4f681ede31ab6" | ||
"gitHead": "e398b241b2c873b060d03391a8fc9dcc97c32f54" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
165849
143
2074