@nrk/player-elements
Advanced tools
+11
-11
| { | ||
| "name": "@nrk/player-elements", | ||
| "version": "17.2.2", | ||
| "version": "17.2.3", | ||
| "description": "", | ||
@@ -24,5 +24,5 @@ "author": "", | ||
| "eventemitter3": "5.0.4", | ||
| "@nrk/player-tracker": "8.2.1", | ||
| "@nrk/live-epg": "1.2.0", | ||
| "@nrk/player-psapi-client": "8.1.0", | ||
| "@nrk/player-tracker": "8.2.0" | ||
| "@nrk/player-psapi-client": "8.1.1" | ||
| }, | ||
@@ -41,19 +41,19 @@ "peerDependencies": { | ||
| "@types/throttle-debounce": "5.0.2", | ||
| "@typescript-eslint/eslint-plugin": "8.58.0", | ||
| "@typescript-eslint/parser": "8.58.0", | ||
| "@typescript-eslint/eslint-plugin": "8.58.2", | ||
| "@typescript-eslint/parser": "8.58.2", | ||
| "hls.js": "1.6.15", | ||
| "jsdom": "28.1.0", | ||
| "jsdom": "29.0.2", | ||
| "jsdom-global": "3.0.2", | ||
| "postcss": "8.5.8", | ||
| "postcss": "8.5.9", | ||
| "postcss-custom-properties": "15.0.1", | ||
| "postcss-import": "16.1.1", | ||
| "postcss-nesting": "13.0.2", | ||
| "prettier": "3.8.1", | ||
| "prettier": "3.8.3", | ||
| "rollup": "4.60.1", | ||
| "rollup-plugin-dts": "6.4.1", | ||
| "tsx": "4.21.0", | ||
| "typedoc": "0.28.18", | ||
| "@nrk/eslint-config": "1.1.0", | ||
| "typedoc": "0.28.19", | ||
| "@nrk/stylelint-config": "1.0.2", | ||
| "@nrk/ts-config": "1.0.3" | ||
| "@nrk/ts-config": "1.0.3", | ||
| "@nrk/eslint-config": "1.1.0" | ||
| }, | ||
@@ -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.2"; | ||
| const PLAYER_ELEMENTS_VERSION = "17.2.3"; | ||
| 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
601299
-0.12%13801
-0.19%Updated