@nuclearplayer/plugin-sdk 2.2.0 → 2.3.0

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +8 -1
  2. package/package.json +7 -4
package/dist/index.d.ts CHANGED
@@ -1172,6 +1172,11 @@ export declare type PlaylistItem<T extends Track = Track> = {
1172
1172
  addedAtIso: string;
1173
1173
  };
1174
1174
 
1175
+ export declare type PlaylistProvider = ProviderDescriptor<'playlists'> & {
1176
+ matchesUrl: (url: string) => boolean;
1177
+ fetchPlaylistByUrl: (url: string) => Promise<Playlist>;
1178
+ };
1179
+
1175
1180
  export declare type PlaylistRef = {
1176
1181
  id: string;
1177
1182
  name: string;
@@ -1641,7 +1646,7 @@ export declare type ProviderDescriptor<K extends ProviderKind = ProviderKind> =
1641
1646
  pluginId?: string;
1642
1647
  };
1643
1648
 
1644
- export declare type ProviderKind = 'metadata' | 'streaming' | 'lyrics' | 'dashboard' | (string & {});
1649
+ export declare type ProviderKind = 'metadata' | 'streaming' | 'lyrics' | 'dashboard' | 'playlists' | (string & {});
1645
1650
 
1646
1651
  export declare type ProviderRef = {
1647
1652
  provider: string;
@@ -1869,6 +1874,8 @@ export declare type StringWidget = {
1869
1874
  type: 'textarea';
1870
1875
  placeholder?: string;
1871
1876
  rows?: number;
1877
+ } | {
1878
+ type: 'info';
1872
1879
  };
1873
1880
 
1874
1881
  export declare type Track = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuclearplayer/plugin-sdk",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Plugin SDK for Nuclear music player",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -10,6 +10,9 @@
10
10
  ".": {
11
11
  "import": "./dist/index.js",
12
12
  "types": "./dist/index.d.ts"
13
+ },
14
+ "./mcp": {
15
+ "import": "./src/mcp/index.ts"
13
16
  }
14
17
  },
15
18
  "files": [
@@ -38,8 +41,8 @@
38
41
  "vite": "^7.1.3",
39
42
  "vite-plugin-dts": "^4.5.4",
40
43
  "vitest": "^3.2.4",
41
- "@nuclearplayer/tailwind-config": "0.0.10",
42
- "@nuclearplayer/eslint-config": "0.0.10"
44
+ "@nuclearplayer/eslint-config": "0.0.10",
45
+ "@nuclearplayer/tailwind-config": "0.0.10"
43
46
  },
44
47
  "peerDependencies": {
45
48
  "react": "^18.3.1"
@@ -70,7 +73,7 @@
70
73
  "dev": "vite",
71
74
  "build": "tsc && vite build && api-extractor run --local && pnpm clean:dts",
72
75
  "build:npm": "tsc && vite build --mode npm && api-extractor run --local && pnpm clean:dts",
73
- "clean:dts": "rm -rf dist/api dist/react dist/test dist/types dist/types.d.ts dist/*.d.ts.map dist/tsdoc-metadata.json",
76
+ "clean:dts": "rm -rf dist/api dist/mcp dist/react dist/test dist/types dist/types.d.ts dist/*.d.ts.map dist/tsdoc-metadata.json",
74
77
  "test": "vitest --run",
75
78
  "test:watch": "vitest",
76
79
  "test:coverage": "vitest --run --coverage",