@nuclearplayer/plugin-sdk
Advanced tools
+24
-1
@@ -151,2 +151,21 @@ import { FC } from 'react'; | ||
| export declare class DiscoveryAPI { | ||
| #private; | ||
| constructor(host?: DiscoveryHost); | ||
| getRecommendations(context: Track[], options: DiscoveryOptions, providerId?: string): Promise<Track[]>; | ||
| } | ||
| export declare type DiscoveryHost = { | ||
| getRecommendations: (context: Track[], options: DiscoveryOptions, providerId?: string) => Promise<Track[]>; | ||
| }; | ||
| export declare type DiscoveryOptions = { | ||
| variety: number; | ||
| limit?: number; | ||
| }; | ||
| export declare type DiscoveryProvider = ProviderDescriptor<'discovery'> & { | ||
| getRecommendations: (context: Track[], options: DiscoveryOptions) => Promise<Track[]>; | ||
| }; | ||
| export declare type EnumOption = { | ||
@@ -382,2 +401,3 @@ value: string; | ||
| readonly Dashboard: DashboardAPI; | ||
| readonly Discovery: DiscoveryAPI; | ||
| readonly Playback: PlaybackAPI; | ||
@@ -398,2 +418,3 @@ readonly Playlists: PlaylistsAPI; | ||
| dashboardHost?: DashboardHost; | ||
| discoveryHost?: DiscoveryHost; | ||
| playbackHost?: PlaybackHost; | ||
@@ -440,2 +461,4 @@ playlistsHost?: PlaylistsHost; | ||
| unit?: string; | ||
| startLabel?: string; | ||
| endLabel?: string; | ||
| } | { | ||
@@ -790,3 +813,3 @@ type: 'number-input'; | ||
| export declare type ProviderKind = 'metadata' | 'streaming' | 'lyrics' | 'dashboard' | 'playlists' | (string & {}); | ||
| export declare type ProviderKind = 'metadata' | 'streaming' | 'lyrics' | 'dashboard' | 'playlists' | 'discovery' | (string & {}); | ||
@@ -793,0 +816,0 @@ export declare type ProviderRef = { |
+3
-3
| { | ||
| "name": "@nuclearplayer/plugin-sdk", | ||
| "version": "2.6.1", | ||
| "version": "2.7.0", | ||
| "description": "Plugin SDK for Nuclear music player", | ||
@@ -44,4 +44,4 @@ "type": "module", | ||
| "vitest": "^4.0.0", | ||
| "@nuclearplayer/eslint-config": "0.0.10", | ||
| "@nuclearplayer/tailwind-config": "0.0.10" | ||
| "@nuclearplayer/tailwind-config": "0.0.10", | ||
| "@nuclearplayer/eslint-config": "0.0.10" | ||
| }, | ||
@@ -48,0 +48,0 @@ "peerDependencies": { |
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
183694
0.62%4440
0.86%