youtube-video-element
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -7,7 +7,6 @@ // This file is generated by media-elements/scripts/build-react-wrapper! | ||
export default React.forwardRef(({ children, ...props }, ref) => { | ||
export default React.forwardRef((allProps, ref) => { | ||
let { children, suppressHydrationWarning, ...props } = allProps; | ||
ref ??= useRef(); | ||
const attrs = propsToAttrs({ ...props, ref }); | ||
for (let name in props) { | ||
@@ -32,2 +31,4 @@ if (name[0] === 'o' && name[1] === 'n') { | ||
const attrs = propsToAttrs(props); | ||
// Only render the custom element template HTML on the server.. | ||
@@ -49,3 +50,8 @@ // The custom element will render itself on the client. | ||
return React.createElement('youtube-video', attrs, ...[].concat(children)); | ||
return React.createElement('youtube-video', { | ||
...attrs, | ||
ref, | ||
children, | ||
suppressHydrationWarning, | ||
}); | ||
}); | ||
@@ -73,3 +79,3 @@ | ||
if (typeof propValue === 'boolean' && !propValue) return undefined; | ||
if (/^on[A-Z]/.test(propName)) return undefined; | ||
if (propName.startsWith('on') && typeof propValue === 'function') return undefined; | ||
if (/[A-Z]/.test(propName)) return propName.toLowerCase(); | ||
@@ -76,0 +82,0 @@ return propName; |
{ | ||
"name": "youtube-video-element", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Custom element (web component) for the YouTube player.", | ||
@@ -33,3 +33,3 @@ "author": "@muxinc", | ||
"devDependencies": { | ||
"build-react-wrapper": "^0.1.2", | ||
"build-react-wrapper": "^0.1.3", | ||
"npm-run-all": "^4.1.5", | ||
@@ -36,0 +36,0 @@ "wet-run": "^1.2.2" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21015
545