@24i/bigscreen-sdk 1.0.13 → 1.0.14-alpha.2279
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/package.json
CHANGED
|
@@ -52,6 +52,7 @@ export class DeviceAndroidTV extends DeviceBase {
|
|
|
52
52
|
* on the active (focused) element in the DOM tree.
|
|
53
53
|
* @param event keyboard event
|
|
54
54
|
*/
|
|
55
|
+
// eslint-disable-next-line complexity
|
|
55
56
|
relaunchKeyEvent = (event: CustomKeyboardEvent) => {
|
|
56
57
|
if (event.bigscreenSdkRelaunched) { // prevent to relaunch event in loop
|
|
57
58
|
return;
|
|
@@ -60,6 +61,16 @@ export class DeviceAndroidTV extends DeviceBase {
|
|
|
60
61
|
const { key } = event;
|
|
61
62
|
let { keyCode } = event;
|
|
62
63
|
|
|
64
|
+
// KeyCodes collisions for some key sent from Android wrapper or JavaScript (webView)
|
|
65
|
+
if (
|
|
66
|
+
key === 'u' // keyCode 85, same like PLAYPAUSE
|
|
67
|
+
|| key === 'v' // keyCode 86, same like STOP
|
|
68
|
+
|| key === 'y' // keyCode 89, same like REW
|
|
69
|
+
|| key === 'z' // keyCode 90, same like FF
|
|
70
|
+
) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
|
|
63
74
|
/**
|
|
64
75
|
* Remap KeyCode by its key value.
|
|
65
76
|
* On Android all colors keys and some others coming with "0" keyCode.
|
|
@@ -783,10 +783,10 @@ declare namespace React {
|
|
|
783
783
|
|
|
784
784
|
/** Ensures that the props do not include ref at all */
|
|
785
785
|
type PropsWithoutRef<P> =
|
|
786
|
-
//
|
|
786
|
+
// Omit would not be sufficient for this. We'd like to avoid unnecessary mapping and need a distributive conditional to support unions.
|
|
787
787
|
// see: https://www.typescriptlang.org/docs/handbook/2/conditional-types.html#distributive-conditional-types
|
|
788
788
|
// https://github.com/Microsoft/TypeScript/issues/28339
|
|
789
|
-
P extends any ? ('ref' extends keyof P ?
|
|
789
|
+
P extends any ? ('ref' extends keyof P ? Omit<P, 'ref'> : P) : P;
|
|
790
790
|
/** Ensures that the props do not include string ref, which cannot be forwarded */
|
|
791
791
|
type PropsWithRef<P> =
|
|
792
792
|
// Just "P extends { ref?: infer R }" looks sufficient, but R will infer as {} if P is {}.
|
|
@@ -1941,7 +1941,7 @@ declare namespace React {
|
|
|
1941
1941
|
content?: string | undefined;
|
|
1942
1942
|
controls?: boolean | undefined;
|
|
1943
1943
|
coords?: string | undefined;
|
|
1944
|
-
crossOrigin?:
|
|
1944
|
+
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
|
1945
1945
|
data?: string | undefined;
|
|
1946
1946
|
dateTime?: string | undefined;
|
|
1947
1947
|
default?: boolean | undefined;
|
|
@@ -2229,7 +2229,7 @@ declare namespace React {
|
|
|
2229
2229
|
autoFocus?: boolean | undefined;
|
|
2230
2230
|
capture?: boolean | 'user' | 'environment' | undefined; // https://www.w3.org/TR/html-media-capture/#the-capture-attribute
|
|
2231
2231
|
checked?: boolean | undefined;
|
|
2232
|
-
crossOrigin?:
|
|
2232
|
+
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
|
2233
2233
|
disabled?: boolean | undefined;
|
|
2234
2234
|
enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | undefined;
|
|
2235
2235
|
form?: string | undefined;
|
|
@@ -2281,7 +2281,7 @@ declare namespace React {
|
|
|
2281
2281
|
|
|
2282
2282
|
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
2283
2283
|
as?: string | undefined;
|
|
2284
|
-
crossOrigin?:
|
|
2284
|
+
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
|
2285
2285
|
href?: string | undefined;
|
|
2286
2286
|
hrefLang?: string | undefined;
|
|
2287
2287
|
integrity?: string | undefined;
|
|
@@ -2307,7 +2307,7 @@ declare namespace React {
|
|
|
2307
2307
|
autoPlay?: boolean | undefined;
|
|
2308
2308
|
controls?: boolean | undefined;
|
|
2309
2309
|
controlsList?: string | undefined;
|
|
2310
|
-
crossOrigin?:
|
|
2310
|
+
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
|
2311
2311
|
loop?: boolean | undefined;
|
|
2312
2312
|
mediaGroup?: string | undefined;
|
|
2313
2313
|
muted?: boolean | undefined;
|
|
@@ -2392,7 +2392,7 @@ declare namespace React {
|
|
|
2392
2392
|
async?: boolean | undefined;
|
|
2393
2393
|
/** @deprecated */
|
|
2394
2394
|
charSet?: string | undefined;
|
|
2395
|
-
crossOrigin?:
|
|
2395
|
+
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
|
2396
2396
|
defer?: boolean | undefined;
|
|
2397
2397
|
integrity?: string | undefined;
|
|
2398
2398
|
noModule?: boolean | undefined;
|