shaka-video-element 0.6.19 → 0.6.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/react.js +4 -3
- package/dist/react.js +4 -3
- package/package.json +2 -2
package/dist/cjs/react.js
CHANGED
|
@@ -84,7 +84,7 @@ function createComponent({
|
|
|
84
84
|
continue;
|
|
85
85
|
}
|
|
86
86
|
const attrName = toAttributeName(reactPropToAttrNameMap[k] ?? k);
|
|
87
|
-
if (k in elementClass.prototype && !(k in (((_a = globalThis.HTMLElement) == null ? void 0 : _a.prototype) ?? {})) && !((_b = elementClass.observedAttributes) == null ? void 0 : _b.some((attr) => attr === attrName))) {
|
|
87
|
+
if (elementClass.prototype && k in elementClass.prototype && !(k in (((_a = globalThis.HTMLElement) == null ? void 0 : _a.prototype) ?? {})) && !((_b = elementClass.observedAttributes) == null ? void 0 : _b.some((attr) => attr === attrName))) {
|
|
88
88
|
elementProps[k] = v;
|
|
89
89
|
continue;
|
|
90
90
|
}
|
|
@@ -146,7 +146,8 @@ function createComponent({
|
|
|
146
146
|
shadowrootdelegatesfocus: delegatesFocus,
|
|
147
147
|
dangerouslySetInnerHTML: {
|
|
148
148
|
__html: elementClass.getTemplateHTML(attrs, props)
|
|
149
|
-
}
|
|
149
|
+
},
|
|
150
|
+
key: "ce-la-react-ssr-template-shadow-root"
|
|
150
151
|
});
|
|
151
152
|
reactProps.children = [templateShadowRoot, reactProps.children];
|
|
152
153
|
}
|
|
@@ -164,7 +165,7 @@ function createComponent({
|
|
|
164
165
|
},
|
|
165
166
|
[ref]
|
|
166
167
|
)
|
|
167
|
-
});
|
|
168
|
+
}, reactProps.children);
|
|
168
169
|
});
|
|
169
170
|
ReactComponent.displayName = displayName ?? elementClass.name;
|
|
170
171
|
return ReactComponent;
|
package/dist/react.js
CHANGED
|
@@ -52,7 +52,7 @@ function createComponent({
|
|
|
52
52
|
continue;
|
|
53
53
|
}
|
|
54
54
|
const attrName = toAttributeName(reactPropToAttrNameMap[k] ?? k);
|
|
55
|
-
if (k in elementClass.prototype && !(k in (((_a = globalThis.HTMLElement) == null ? void 0 : _a.prototype) ?? {})) && !((_b = elementClass.observedAttributes) == null ? void 0 : _b.some((attr) => attr === attrName))) {
|
|
55
|
+
if (elementClass.prototype && k in elementClass.prototype && !(k in (((_a = globalThis.HTMLElement) == null ? void 0 : _a.prototype) ?? {})) && !((_b = elementClass.observedAttributes) == null ? void 0 : _b.some((attr) => attr === attrName))) {
|
|
56
56
|
elementProps[k] = v;
|
|
57
57
|
continue;
|
|
58
58
|
}
|
|
@@ -114,7 +114,8 @@ function createComponent({
|
|
|
114
114
|
shadowrootdelegatesfocus: delegatesFocus,
|
|
115
115
|
dangerouslySetInnerHTML: {
|
|
116
116
|
__html: elementClass.getTemplateHTML(attrs, props)
|
|
117
|
-
}
|
|
117
|
+
},
|
|
118
|
+
key: "ce-la-react-ssr-template-shadow-root"
|
|
118
119
|
});
|
|
119
120
|
reactProps.children = [templateShadowRoot, reactProps.children];
|
|
120
121
|
}
|
|
@@ -132,7 +133,7 @@ function createComponent({
|
|
|
132
133
|
},
|
|
133
134
|
[ref]
|
|
134
135
|
)
|
|
135
|
-
});
|
|
136
|
+
}, reactProps.children);
|
|
136
137
|
});
|
|
137
138
|
ReactComponent.displayName = displayName ?? elementClass.name;
|
|
138
139
|
return ReactComponent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shaka-video-element",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.21",
|
|
4
4
|
"description": "Custom element (web component) for Shaka Player",
|
|
5
5
|
"author": "@muxinc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"shaka-player": "~4.15.4"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"build-react-wrapper": "^0.2.
|
|
59
|
+
"build-react-wrapper": "^0.2.4",
|
|
60
60
|
"npm-run-all": "^4.1.5",
|
|
61
61
|
"wet-run": "^1.2.5"
|
|
62
62
|
},
|