jwplayer-video-element
Advanced tools
Comparing version
@@ -68,2 +68,3 @@ "use client"; | ||
displayName, | ||
defaultProps, | ||
toAttributeName = defaultToAttributeName, | ||
@@ -103,3 +104,8 @@ toAttributeValue = defaultToAttributeValue | ||
if (attrName && IS_REACT_19_OR_NEWER) { | ||
reactProps[attrName] = v; | ||
const attrValueFromDefault = defaultToAttributeValue(v); | ||
if (attrValue !== attrValueFromDefault) { | ||
reactProps[attrName] = attrValue; | ||
} else { | ||
reactProps[attrName] = v; | ||
} | ||
} | ||
@@ -150,2 +156,3 @@ } | ||
return React2.createElement(tagName, { | ||
...defaultProps, | ||
...reactProps, | ||
@@ -152,0 +159,0 @@ ref: React2.useCallback( |
@@ -36,2 +36,3 @@ "use client"; | ||
displayName, | ||
defaultProps, | ||
toAttributeName = defaultToAttributeName, | ||
@@ -71,3 +72,8 @@ toAttributeValue = defaultToAttributeValue | ||
if (attrName && IS_REACT_19_OR_NEWER) { | ||
reactProps[attrName] = v; | ||
const attrValueFromDefault = defaultToAttributeValue(v); | ||
if (attrValue !== attrValueFromDefault) { | ||
reactProps[attrName] = attrValue; | ||
} else { | ||
reactProps[attrName] = v; | ||
} | ||
} | ||
@@ -118,2 +124,3 @@ } | ||
return React2.createElement(tagName, { | ||
...defaultProps, | ||
...reactProps, | ||
@@ -120,0 +127,0 @@ ref: React2.useCallback( |
{ | ||
"name": "jwplayer-video-element", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "A custom element for the JW player with an API that matches the `<video>` API", | ||
@@ -58,3 +58,3 @@ "author": "@muxinc", | ||
"devDependencies": { | ||
"build-react-wrapper": "^0.2.0", | ||
"build-react-wrapper": "^0.2.1", | ||
"npm-run-all": "^4.1.5", | ||
@@ -61,0 +61,0 @@ "wet-run": "^1.2.5" |
28634
1.61%647
2.21%