@nrk/player-elements
Advanced tools
+4
-4
| { | ||
| "name": "@nrk/player-elements", | ||
| "version": "17.2.6", | ||
| "version": "17.2.7", | ||
| "description": "", | ||
@@ -26,3 +26,3 @@ "author": "", | ||
| "@nrk/player-psapi-client": "8.1.1", | ||
| "@nrk/player-tracker": "8.2.1" | ||
| "@nrk/player-tracker": "8.2.2" | ||
| }, | ||
@@ -56,4 +56,4 @@ "peerDependencies": { | ||
| "@nrk/eslint-config": "1.1.0", | ||
| "@nrk/stylelint-config": "1.0.2", | ||
| "@nrk/ts-config": "1.0.3" | ||
| "@nrk/ts-config": "1.0.3", | ||
| "@nrk/stylelint-config": "1.0.2" | ||
| }, | ||
@@ -60,0 +60,0 @@ "dependencyComments": { |
@@ -34,3 +34,2 @@ import { ReactiveElement } from "@nrkno/reactive-element"; | ||
| switch (key) { | ||
| // Left (seek back) | ||
| case keyboardShortcuts.seekBackwards.find((k) => k === key): { | ||
@@ -50,3 +49,2 @@ if ((event.ctrlKey || event.metaKey) && key === "j") { | ||
| } | ||
| // Right (seek fwd) | ||
| case keyboardShortcuts.seekForwards.find((k) => k === key): { | ||
@@ -71,3 +69,2 @@ if (!target || target.nodeName !== "INPUT") { | ||
| switch (key) { | ||
| // Enter & Space (toggle play) | ||
| case keyboardShortcuts.togglePlayPause.find((k) => k === key): { | ||
@@ -83,3 +80,2 @@ if (target?.nodeName !== "BUTTON") { | ||
| } | ||
| // K (toggle play) | ||
| case "k": { | ||
@@ -90,3 +86,2 @@ event.preventDefault(); | ||
| } | ||
| // 0-9 (jump in time) | ||
| case keyboardShortcuts.jumpInStream.find((k) => k === key): { | ||
@@ -97,3 +92,2 @@ event.preventDefault(); | ||
| } | ||
| // Home | ||
| case keyboardShortcuts.seekToStart.find((k) => k === key): { | ||
@@ -104,3 +98,2 @@ event.preventDefault(); | ||
| } | ||
| // End | ||
| case keyboardShortcuts.seekToEnd.find((k) => k === key): { | ||
@@ -111,3 +104,2 @@ event.preventDefault(); | ||
| } | ||
| // Up (volume up) | ||
| case keyboardShortcuts.volumeUp.find((k) => k === key): { | ||
@@ -120,3 +112,2 @@ if (!target || target.nodeName !== "INPUT") { | ||
| } | ||
| // Down (volume down) | ||
| case keyboardShortcuts.volumeDown.find((k) => k === key): { | ||
@@ -129,3 +120,2 @@ if (!target || target.nodeName !== "INPUT") { | ||
| } | ||
| // F (fullscreen toggle) | ||
| case keyboardShortcuts.toggleFullscreen.find((k) => k === key): { | ||
@@ -139,3 +129,2 @@ if (this.player.fullscreenState?.isActive) { | ||
| } | ||
| // M (muted toggle) | ||
| case keyboardShortcuts.toggleMute.find((k) => k === key): { | ||
@@ -146,7 +135,5 @@ event.preventDefault(); | ||
| } | ||
| // C (subtitles toggle) | ||
| case "c": { | ||
| break; | ||
| } | ||
| // P (pip toggle) | ||
| case keyboardShortcuts.togglePiP.find((k) => k === key): { | ||
@@ -161,3 +148,2 @@ event.preventDefault(); | ||
| } | ||
| // A & Z (zoom) | ||
| case "a": | ||
@@ -164,0 +150,0 @@ case "z": { |
@@ -35,3 +35,3 @@ import { version as playerCoreVersion } from "@nrk/player-core/types.js"; | ||
| const FONT_SIZE_BREAK_POINT = 500; | ||
| const PLAYER_ELEMENTS_VERSION = "17.2.6"; | ||
| const PLAYER_ELEMENTS_VERSION = "17.2.7"; | ||
| class PlayerElement extends DimensionsMixin( | ||
@@ -38,0 +38,0 @@ FocusVisibleMixin( |
| function generateSrcSet(webImages) { | ||
| if (webImages.length === 0) return ""; | ||
| if (webImages.length === 0) | ||
| return ""; | ||
| if (isWebImage(webImages)) { | ||
@@ -4,0 +5,0 @@ return webImages.map(({ uri, width }) => { |
Sorry, the diff of this file is too big to display
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
601132
-0.12%13799
-0.19%Updated