sa2kit 1.6.8 → 1.6.9

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 (125) hide show
  1. package/dist/calendar/index.js +10 -8
  2. package/dist/calendar/index.js.map +1 -1
  3. package/dist/calendar/index.mjs +3 -1
  4. package/dist/calendar/index.mjs.map +1 -1
  5. package/dist/calendar/routes/index.js +21 -21
  6. package/dist/calendar/routes/index.mjs +1 -1
  7. package/dist/calendar/server.js +13 -13
  8. package/dist/calendar/server.mjs +2 -2
  9. package/dist/{chunk-VHU2YGRQ.mjs → chunk-4FOBBWXW.mjs} +25 -11
  10. package/dist/chunk-4FOBBWXW.mjs.map +1 -0
  11. package/dist/{chunk-ZDRBMSTS.js → chunk-G6WRJ2H2.js} +25 -11
  12. package/dist/chunk-G6WRJ2H2.js.map +1 -0
  13. package/dist/{chunk-6WXOA4BE.mjs → chunk-GVVS4IMM.mjs} +2 -2
  14. package/dist/chunk-GVVS4IMM.mjs.map +1 -0
  15. package/dist/{chunk-AXP7KROR.js → chunk-WC5QFO3T.js} +2 -2
  16. package/dist/chunk-WC5QFO3T.js.map +1 -0
  17. package/dist/index.js +5 -5
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.mjs +2 -2
  20. package/dist/index.mjs.map +1 -1
  21. package/package.json +41 -7
  22. package/dist/ConfigService-BxK06xP6.d.mts +0 -262
  23. package/dist/ConfigService-BxK06xP6.d.ts +0 -262
  24. package/dist/UniversalFileService-BuHN-jrR.d.ts +0 -515
  25. package/dist/UniversalFileService-CGGzYeeF.d.mts +0 -515
  26. package/dist/analytics/index.d.mts +0 -1084
  27. package/dist/analytics/index.d.ts +0 -1084
  28. package/dist/analytics/server/index.d.mts +0 -499
  29. package/dist/analytics/server/index.d.ts +0 -499
  30. package/dist/api/index.d.mts +0 -248
  31. package/dist/api/index.d.ts +0 -248
  32. package/dist/audioDetection/index.d.mts +0 -449
  33. package/dist/audioDetection/index.d.ts +0 -449
  34. package/dist/auth/client/index.d.mts +0 -153
  35. package/dist/auth/client/index.d.ts +0 -153
  36. package/dist/auth/components/index.d.mts +0 -227
  37. package/dist/auth/components/index.d.ts +0 -227
  38. package/dist/auth/hooks/index.d.mts +0 -31
  39. package/dist/auth/hooks/index.d.ts +0 -31
  40. package/dist/auth/index.d.mts +0 -40
  41. package/dist/auth/index.d.ts +0 -40
  42. package/dist/auth/middleware/index.d.mts +0 -75
  43. package/dist/auth/middleware/index.d.ts +0 -75
  44. package/dist/auth/routes/index.d.mts +0 -261
  45. package/dist/auth/routes/index.d.ts +0 -261
  46. package/dist/auth/schema/index.d.mts +0 -789
  47. package/dist/auth/schema/index.d.ts +0 -789
  48. package/dist/auth/services/index.d.mts +0 -48
  49. package/dist/auth/services/index.d.ts +0 -48
  50. package/dist/calendar/index.d.mts +0 -1197
  51. package/dist/calendar/index.d.ts +0 -1197
  52. package/dist/calendar/routes/index.d.mts +0 -118
  53. package/dist/calendar/routes/index.d.ts +0 -118
  54. package/dist/calendar/server.d.mts +0 -1184
  55. package/dist/calendar/server.d.ts +0 -1184
  56. package/dist/chunk-6WXOA4BE.mjs.map +0 -1
  57. package/dist/chunk-AXP7KROR.js.map +0 -1
  58. package/dist/chunk-VHU2YGRQ.mjs.map +0 -1
  59. package/dist/chunk-ZDRBMSTS.js.map +0 -1
  60. package/dist/config/index.d.mts +0 -64
  61. package/dist/config/index.d.ts +0 -64
  62. package/dist/config/server/index.d.mts +0 -1533
  63. package/dist/config/server/index.d.ts +0 -1533
  64. package/dist/drizzle-auth-service-Bxlovhv8.d.ts +0 -145
  65. package/dist/drizzle-auth-service-DZY2F1sv.d.mts +0 -145
  66. package/dist/drizzle-schema-BNhqj2AZ.d.mts +0 -1114
  67. package/dist/drizzle-schema-BNhqj2AZ.d.ts +0 -1114
  68. package/dist/enums-Dume-V5Y.d.mts +0 -16
  69. package/dist/enums-Dume-V5Y.d.ts +0 -16
  70. package/dist/i18n/index.d.mts +0 -417
  71. package/dist/i18n/index.d.ts +0 -417
  72. package/dist/imageCrop/index.d.mts +0 -165
  73. package/dist/imageCrop/index.d.ts +0 -165
  74. package/dist/index-DSel44Ke.d.mts +0 -93
  75. package/dist/index-DSel44Ke.d.ts +0 -93
  76. package/dist/index.d.mts +0 -693
  77. package/dist/index.d.ts +0 -693
  78. package/dist/logger/index.d.mts +0 -125
  79. package/dist/logger/index.d.ts +0 -125
  80. package/dist/mmd/admin/index.d.mts +0 -487
  81. package/dist/mmd/admin/index.d.ts +0 -487
  82. package/dist/mmd/index.d.mts +0 -599
  83. package/dist/mmd/index.d.ts +0 -599
  84. package/dist/mmd/server/index.d.mts +0 -138
  85. package/dist/mmd/server/index.d.ts +0 -138
  86. package/dist/music/index.d.mts +0 -74
  87. package/dist/music/index.d.ts +0 -74
  88. package/dist/music/server/index.d.mts +0 -1
  89. package/dist/music/server/index.d.ts +0 -1
  90. package/dist/request/index.d.mts +0 -51
  91. package/dist/request/index.d.ts +0 -51
  92. package/dist/storage/index.d.mts +0 -75
  93. package/dist/storage/index.d.ts +0 -75
  94. package/dist/testYourself/admin/index.d.mts +0 -58
  95. package/dist/testYourself/admin/index.d.ts +0 -58
  96. package/dist/testYourself/index.d.mts +0 -53
  97. package/dist/testYourself/index.d.ts +0 -53
  98. package/dist/testYourself/server/index.d.mts +0 -1029
  99. package/dist/testYourself/server/index.d.ts +0 -1029
  100. package/dist/types-B60F7EZZ.d.mts +0 -248
  101. package/dist/types-B60F7EZZ.d.ts +0 -248
  102. package/dist/types-BINlP9MK.d.mts +0 -286
  103. package/dist/types-BINlP9MK.d.ts +0 -286
  104. package/dist/types-BaZccpvk.d.mts +0 -48
  105. package/dist/types-BaZccpvk.d.ts +0 -48
  106. package/dist/types-CK4We_aI.d.mts +0 -270
  107. package/dist/types-CK4We_aI.d.ts +0 -270
  108. package/dist/types-CbTsi9CZ.d.mts +0 -31
  109. package/dist/types-CbTsi9CZ.d.ts +0 -31
  110. package/dist/types-CroexXnI.d.ts +0 -99
  111. package/dist/types-DmsXCWvm.d.mts +0 -99
  112. package/dist/types-Dt0oqeFM.d.mts +0 -70
  113. package/dist/types-zK6kDzDQ.d.ts +0 -70
  114. package/dist/universalExport/index.d.mts +0 -235
  115. package/dist/universalExport/index.d.ts +0 -235
  116. package/dist/universalExport/server/index.d.mts +0 -1270
  117. package/dist/universalExport/server/index.d.ts +0 -1270
  118. package/dist/universalFile/index.d.mts +0 -480
  119. package/dist/universalFile/index.d.ts +0 -480
  120. package/dist/universalFile/server/index.d.mts +0 -4516
  121. package/dist/universalFile/server/index.d.ts +0 -4516
  122. package/dist/useElectronStorage-Dj0rcorG.d.mts +0 -65
  123. package/dist/useElectronStorage-DwnNfIhl.d.ts +0 -65
  124. package/dist/utils/index.d.mts +0 -192
  125. package/dist/utils/index.d.ts +0 -192
@@ -1,138 +0,0 @@
1
- export { M as MmdPlaylist, f as MmdPlaylistNode, j as MmdPresetItem, h as MmdResourceOption, N as NewMmdPlaylist, g as NewMmdPlaylistNode, k as NewMmdPresetItem, i as NewMmdResourceOption, a as mmdPlaylistNodes, e as mmdPlaylistNodesRelations, m as mmdPlaylists, d as mmdPlaylistsRelations, c as mmdPresetItems, b as mmdResourceOptions } from '../../drizzle-schema-BNhqj2AZ.mjs';
2
- import { M as MMDPlaylistConfig } from '../../types-B60F7EZZ.mjs';
3
- import { U as UniversalFileService } from '../../UniversalFileService-CGGzYeeF.mjs';
4
- import { F as FileMetadata } from '../../types-CK4We_aI.mjs';
5
- import 'drizzle-orm';
6
- import 'drizzle-orm/pg-core';
7
- import 'three';
8
- import 'events';
9
-
10
- type SupportedModelFormat = 'pmx' | 'pmd';
11
- interface ProcessMmdModelArchiveOptions {
12
- /**
13
- * 绝对路径,指向模型解压根目录,例如 /app/uploads/mmd/models
14
- */
15
- storageRoot: string;
16
- /**
17
- * 对外暴露的公共路径前缀,例如 /uploads/mmd/models
18
- * 默认与 storageRoot 中的叶子目录一致
19
- */
20
- publicRoot?: string;
21
- /**
22
- * 自定义文件夹名称,默认使用随机 UUID
23
- */
24
- folderName?: string;
25
- }
26
- interface ProcessMmdModelArchiveResult {
27
- /** 解压出来的目录(绝对路径) */
28
- directory: string;
29
- /** 与 storageRoot 相对的目录名 */
30
- relativeDirectory: string;
31
- /** 模型文件相对目录(包含子目录) */
32
- modelRelativePath: string;
33
- /** 可供前端使用的模型 URL */
34
- modelUrl: string;
35
- /** 模型格式 */
36
- format: SupportedModelFormat;
37
- /** 解压得到的文件数量 */
38
- filesExtracted: number;
39
- }
40
- declare const MMD_MODEL_ARCHIVE_MIME_TYPES: readonly ["application/zip", "application/x-zip-compressed", "multipart/x-zip"];
41
- /**
42
- * 解析上传的 MMD 模型压缩包,保留目录结构并返回模型路径
43
- */
44
- declare function processMmdModelArchive(buffer: Buffer, options: ProcessMmdModelArchiveOptions): Promise<ProcessMmdModelArchiveResult>;
45
-
46
- interface PlaylistModelSource {
47
- id: string | number;
48
- name: string;
49
- filePath: string;
50
- thumbnailPath?: string | null;
51
- }
52
- interface PlaylistMotionSource {
53
- id: string | number;
54
- name?: string;
55
- filePath: string;
56
- }
57
- interface BuildMmdPlaylistOptions {
58
- playlistId: string;
59
- playlistName?: string;
60
- models: PlaylistModelSource[];
61
- motions?: PlaylistMotionSource[];
62
- limit?: number;
63
- loop?: boolean;
64
- preload?: 'none' | 'next' | 'all';
65
- autoPlay?: boolean;
66
- nodeDuration?: number;
67
- normalizeUrl?: (pathOrUrl: string) => string;
68
- }
69
- /**
70
- * 根据数据库中的模型/动作记录快速构建 MMDPlaylistConfig
71
- */
72
- declare function buildMmdPlaylistFromSources(options: BuildMmdPlaylistOptions): MMDPlaylistConfig;
73
-
74
- /**
75
- * MMD 资源上传辅助函数
76
- *
77
- * 整合 UniversalFileService 用于 MMD 资源上传
78
- */
79
-
80
- declare const MMD_SUPPORTED_TYPES: {
81
- model: ("application/zip" | "application/x-zip-compressed" | "multipart/x-zip")[];
82
- animation: string[];
83
- audio: string[];
84
- };
85
- declare const MMD_FILE_EXTENSIONS: {
86
- model: string[];
87
- animation: string[];
88
- audio: string[];
89
- };
90
- interface MmdUploadOptions {
91
- file: File;
92
- resourceType: 'model' | 'animation' | 'audio';
93
- name: string;
94
- description?: string;
95
- userId: string;
96
- }
97
- interface MmdUploadResult {
98
- id: string;
99
- name: string;
100
- url: string;
101
- filePath: string;
102
- fileSize: number;
103
- type: string;
104
- format: string;
105
- uploadTime: Date;
106
- metadata?: FileMetadata;
107
- }
108
- /**
109
- * 使用 UniversalFileService 上传 MMD 资源
110
- *
111
- * @param fileService - UniversalFileService 实例
112
- * @param options - 上传选项
113
- * @returns 上传结果
114
- */
115
- declare function uploadMmdResource(fileService: UniversalFileService, options: MmdUploadOptions): Promise<MmdUploadResult>;
116
- /**
117
- * 上传 MMD 模型 (ZIP 压缩包)
118
- *
119
- * @param fileService - UniversalFileService 实例
120
- * @param options - 上传选项
121
- * @returns 上传结果,包含解压后的模型路径
122
- */
123
- declare function uploadMmdModel(fileService: UniversalFileService, options: MmdUploadOptions & {
124
- storageRoot: string;
125
- publicRoot: string;
126
- }): Promise<MmdUploadResult & {
127
- extractedPath?: string;
128
- }>;
129
- /**
130
- * 批量上传 MMD 资源
131
- *
132
- * @param fileService - UniversalFileService 实例
133
- * @param uploads - 上传选项数组
134
- * @returns 上传结果数组
135
- */
136
- declare function batchUploadMmdResources(fileService: UniversalFileService, uploads: MmdUploadOptions[]): Promise<MmdUploadResult[]>;
137
-
138
- export { type BuildMmdPlaylistOptions, MMD_FILE_EXTENSIONS, MMD_MODEL_ARCHIVE_MIME_TYPES, MMD_SUPPORTED_TYPES, type MmdUploadOptions, type MmdUploadResult, type PlaylistModelSource, type PlaylistMotionSource, type ProcessMmdModelArchiveOptions, type ProcessMmdModelArchiveResult, type SupportedModelFormat, batchUploadMmdResources, buildMmdPlaylistFromSources, processMmdModelArchive, uploadMmdModel, uploadMmdResource };
@@ -1,138 +0,0 @@
1
- export { M as MmdPlaylist, f as MmdPlaylistNode, j as MmdPresetItem, h as MmdResourceOption, N as NewMmdPlaylist, g as NewMmdPlaylistNode, k as NewMmdPresetItem, i as NewMmdResourceOption, a as mmdPlaylistNodes, e as mmdPlaylistNodesRelations, m as mmdPlaylists, d as mmdPlaylistsRelations, c as mmdPresetItems, b as mmdResourceOptions } from '../../drizzle-schema-BNhqj2AZ.js';
2
- import { M as MMDPlaylistConfig } from '../../types-B60F7EZZ.js';
3
- import { U as UniversalFileService } from '../../UniversalFileService-BuHN-jrR.js';
4
- import { F as FileMetadata } from '../../types-CK4We_aI.js';
5
- import 'drizzle-orm';
6
- import 'drizzle-orm/pg-core';
7
- import 'three';
8
- import 'events';
9
-
10
- type SupportedModelFormat = 'pmx' | 'pmd';
11
- interface ProcessMmdModelArchiveOptions {
12
- /**
13
- * 绝对路径,指向模型解压根目录,例如 /app/uploads/mmd/models
14
- */
15
- storageRoot: string;
16
- /**
17
- * 对外暴露的公共路径前缀,例如 /uploads/mmd/models
18
- * 默认与 storageRoot 中的叶子目录一致
19
- */
20
- publicRoot?: string;
21
- /**
22
- * 自定义文件夹名称,默认使用随机 UUID
23
- */
24
- folderName?: string;
25
- }
26
- interface ProcessMmdModelArchiveResult {
27
- /** 解压出来的目录(绝对路径) */
28
- directory: string;
29
- /** 与 storageRoot 相对的目录名 */
30
- relativeDirectory: string;
31
- /** 模型文件相对目录(包含子目录) */
32
- modelRelativePath: string;
33
- /** 可供前端使用的模型 URL */
34
- modelUrl: string;
35
- /** 模型格式 */
36
- format: SupportedModelFormat;
37
- /** 解压得到的文件数量 */
38
- filesExtracted: number;
39
- }
40
- declare const MMD_MODEL_ARCHIVE_MIME_TYPES: readonly ["application/zip", "application/x-zip-compressed", "multipart/x-zip"];
41
- /**
42
- * 解析上传的 MMD 模型压缩包,保留目录结构并返回模型路径
43
- */
44
- declare function processMmdModelArchive(buffer: Buffer, options: ProcessMmdModelArchiveOptions): Promise<ProcessMmdModelArchiveResult>;
45
-
46
- interface PlaylistModelSource {
47
- id: string | number;
48
- name: string;
49
- filePath: string;
50
- thumbnailPath?: string | null;
51
- }
52
- interface PlaylistMotionSource {
53
- id: string | number;
54
- name?: string;
55
- filePath: string;
56
- }
57
- interface BuildMmdPlaylistOptions {
58
- playlistId: string;
59
- playlistName?: string;
60
- models: PlaylistModelSource[];
61
- motions?: PlaylistMotionSource[];
62
- limit?: number;
63
- loop?: boolean;
64
- preload?: 'none' | 'next' | 'all';
65
- autoPlay?: boolean;
66
- nodeDuration?: number;
67
- normalizeUrl?: (pathOrUrl: string) => string;
68
- }
69
- /**
70
- * 根据数据库中的模型/动作记录快速构建 MMDPlaylistConfig
71
- */
72
- declare function buildMmdPlaylistFromSources(options: BuildMmdPlaylistOptions): MMDPlaylistConfig;
73
-
74
- /**
75
- * MMD 资源上传辅助函数
76
- *
77
- * 整合 UniversalFileService 用于 MMD 资源上传
78
- */
79
-
80
- declare const MMD_SUPPORTED_TYPES: {
81
- model: ("application/zip" | "application/x-zip-compressed" | "multipart/x-zip")[];
82
- animation: string[];
83
- audio: string[];
84
- };
85
- declare const MMD_FILE_EXTENSIONS: {
86
- model: string[];
87
- animation: string[];
88
- audio: string[];
89
- };
90
- interface MmdUploadOptions {
91
- file: File;
92
- resourceType: 'model' | 'animation' | 'audio';
93
- name: string;
94
- description?: string;
95
- userId: string;
96
- }
97
- interface MmdUploadResult {
98
- id: string;
99
- name: string;
100
- url: string;
101
- filePath: string;
102
- fileSize: number;
103
- type: string;
104
- format: string;
105
- uploadTime: Date;
106
- metadata?: FileMetadata;
107
- }
108
- /**
109
- * 使用 UniversalFileService 上传 MMD 资源
110
- *
111
- * @param fileService - UniversalFileService 实例
112
- * @param options - 上传选项
113
- * @returns 上传结果
114
- */
115
- declare function uploadMmdResource(fileService: UniversalFileService, options: MmdUploadOptions): Promise<MmdUploadResult>;
116
- /**
117
- * 上传 MMD 模型 (ZIP 压缩包)
118
- *
119
- * @param fileService - UniversalFileService 实例
120
- * @param options - 上传选项
121
- * @returns 上传结果,包含解压后的模型路径
122
- */
123
- declare function uploadMmdModel(fileService: UniversalFileService, options: MmdUploadOptions & {
124
- storageRoot: string;
125
- publicRoot: string;
126
- }): Promise<MmdUploadResult & {
127
- extractedPath?: string;
128
- }>;
129
- /**
130
- * 批量上传 MMD 资源
131
- *
132
- * @param fileService - UniversalFileService 实例
133
- * @param uploads - 上传选项数组
134
- * @returns 上传结果数组
135
- */
136
- declare function batchUploadMmdResources(fileService: UniversalFileService, uploads: MmdUploadOptions[]): Promise<MmdUploadResult[]>;
137
-
138
- export { type BuildMmdPlaylistOptions, MMD_FILE_EXTENSIONS, MMD_MODEL_ARCHIVE_MIME_TYPES, MMD_SUPPORTED_TYPES, type MmdUploadOptions, type MmdUploadResult, type PlaylistModelSource, type PlaylistMotionSource, type ProcessMmdModelArchiveOptions, type ProcessMmdModelArchiveResult, type SupportedModelFormat, batchUploadMmdResources, buildMmdPlaylistFromSources, processMmdModelArchive, uploadMmdModel, uploadMmdResource };
@@ -1,74 +0,0 @@
1
- import { S as SearchOptions, a as SearchResult } from '../index-DSel44Ke.mjs';
2
- export { f as MetingService, g as MikuMusicService, b as MusicApiResponse, M as MusicTrack, e as createLyricHandler, c as createSearchHandler, d as createSongUrlHandler, h as mikuMusicService, m as musicService } from '../index-DSel44Ke.mjs';
3
- import React__default from 'react';
4
-
5
- interface PlayerMusicTrack {
6
- id: string;
7
- name: string;
8
- file: string;
9
- duration?: number;
10
- volume?: number;
11
- }
12
- interface MusicPlayerProps {
13
- track?: PlayerMusicTrack;
14
- onPlay?: () => void;
15
- onPause?: () => void;
16
- onStop?: () => void;
17
- onVolumeChange?: (volume: number) => void;
18
- onSeek?: (time: number) => void;
19
- initialVolume?: number;
20
- className?: string;
21
- compact?: boolean;
22
- ultraCompact?: boolean;
23
- hideVolumeControl?: boolean;
24
- showTrackInfo?: boolean;
25
- isPlaying: boolean;
26
- currentTime: number;
27
- duration: number;
28
- externalVolume?: number;
29
- }
30
- declare function MusicPlayer({ track, onPlay, onPause, onStop, onVolumeChange, onSeek, initialVolume, className, compact, ultraCompact, hideVolumeControl, showTrackInfo, isPlaying, currentTime, duration, externalVolume }: MusicPlayerProps): React__default.JSX.Element;
31
-
32
- interface MikutapMusicTrack {
33
- id: string;
34
- name: string;
35
- audioUrl: string;
36
- audioData?: string;
37
- duration?: number;
38
- }
39
- interface MikutapMusicPlayerProps {
40
- track?: MikutapMusicTrack;
41
- onPlay?: () => void;
42
- onPause?: () => void;
43
- onSeek?: (time: number) => void;
44
- className?: string;
45
- isPlaying: boolean;
46
- currentTime: number;
47
- duration: number;
48
- }
49
- declare function MikutapMusicPlayer({ track, onPlay, onPause, onSeek, className, isPlaying, currentTime, duration, }: MikutapMusicPlayerProps): React__default.JSX.Element;
50
-
51
- declare function useMusic(): {
52
- search: (options: SearchOptions) => void;
53
- searchResult: SearchResult | undefined;
54
- isSearching: boolean;
55
- searchError: any;
56
- getSongUrl: (id: string, source?: string) => Promise<string | undefined>;
57
- getLyric: (id: string, source?: string) => Promise<string | undefined>;
58
- };
59
-
60
- interface MusicSourceAdapter {
61
- parseSearchResult(data: any): SearchResult;
62
- parseGetSongUrl(data: any): string | null;
63
- parseGetLyric(data: any): any;
64
- }
65
-
66
- declare const kugouAdapter: MusicSourceAdapter;
67
-
68
- declare const neteaseAdapter: MusicSourceAdapter;
69
-
70
- declare const tencentAdapter: MusicSourceAdapter;
71
-
72
- declare const xiamiAdapter: MusicSourceAdapter;
73
-
74
- export { MikutapMusicPlayer, type MikutapMusicPlayerProps, type MikutapMusicTrack, MusicPlayer, type MusicSourceAdapter, SearchOptions, SearchResult, kugouAdapter, neteaseAdapter, tencentAdapter, useMusic, xiamiAdapter };
@@ -1,74 +0,0 @@
1
- import { S as SearchOptions, a as SearchResult } from '../index-DSel44Ke.js';
2
- export { f as MetingService, g as MikuMusicService, b as MusicApiResponse, M as MusicTrack, e as createLyricHandler, c as createSearchHandler, d as createSongUrlHandler, h as mikuMusicService, m as musicService } from '../index-DSel44Ke.js';
3
- import React__default from 'react';
4
-
5
- interface PlayerMusicTrack {
6
- id: string;
7
- name: string;
8
- file: string;
9
- duration?: number;
10
- volume?: number;
11
- }
12
- interface MusicPlayerProps {
13
- track?: PlayerMusicTrack;
14
- onPlay?: () => void;
15
- onPause?: () => void;
16
- onStop?: () => void;
17
- onVolumeChange?: (volume: number) => void;
18
- onSeek?: (time: number) => void;
19
- initialVolume?: number;
20
- className?: string;
21
- compact?: boolean;
22
- ultraCompact?: boolean;
23
- hideVolumeControl?: boolean;
24
- showTrackInfo?: boolean;
25
- isPlaying: boolean;
26
- currentTime: number;
27
- duration: number;
28
- externalVolume?: number;
29
- }
30
- declare function MusicPlayer({ track, onPlay, onPause, onStop, onVolumeChange, onSeek, initialVolume, className, compact, ultraCompact, hideVolumeControl, showTrackInfo, isPlaying, currentTime, duration, externalVolume }: MusicPlayerProps): React__default.JSX.Element;
31
-
32
- interface MikutapMusicTrack {
33
- id: string;
34
- name: string;
35
- audioUrl: string;
36
- audioData?: string;
37
- duration?: number;
38
- }
39
- interface MikutapMusicPlayerProps {
40
- track?: MikutapMusicTrack;
41
- onPlay?: () => void;
42
- onPause?: () => void;
43
- onSeek?: (time: number) => void;
44
- className?: string;
45
- isPlaying: boolean;
46
- currentTime: number;
47
- duration: number;
48
- }
49
- declare function MikutapMusicPlayer({ track, onPlay, onPause, onSeek, className, isPlaying, currentTime, duration, }: MikutapMusicPlayerProps): React__default.JSX.Element;
50
-
51
- declare function useMusic(): {
52
- search: (options: SearchOptions) => void;
53
- searchResult: SearchResult | undefined;
54
- isSearching: boolean;
55
- searchError: any;
56
- getSongUrl: (id: string, source?: string) => Promise<string | undefined>;
57
- getLyric: (id: string, source?: string) => Promise<string | undefined>;
58
- };
59
-
60
- interface MusicSourceAdapter {
61
- parseSearchResult(data: any): SearchResult;
62
- parseGetSongUrl(data: any): string | null;
63
- parseGetLyric(data: any): any;
64
- }
65
-
66
- declare const kugouAdapter: MusicSourceAdapter;
67
-
68
- declare const neteaseAdapter: MusicSourceAdapter;
69
-
70
- declare const tencentAdapter: MusicSourceAdapter;
71
-
72
- declare const xiamiAdapter: MusicSourceAdapter;
73
-
74
- export { MikutapMusicPlayer, type MikutapMusicPlayerProps, type MikutapMusicTrack, MusicPlayer, type MusicSourceAdapter, SearchOptions, SearchResult, kugouAdapter, neteaseAdapter, tencentAdapter, useMusic, xiamiAdapter };
@@ -1 +0,0 @@
1
- export { f as MetingService, g as MikuMusicService, e as createLyricHandler, c as createSearchHandler, d as createSongUrlHandler, h as mikuMusicService, m as musicService } from '../../index-DSel44Ke.mjs';
@@ -1 +0,0 @@
1
- export { f as MetingService, g as MikuMusicService, e as createLyricHandler, c as createSearchHandler, d as createSongUrlHandler, h as mikuMusicService, m as musicService } from '../../index-DSel44Ke.js';
@@ -1,51 +0,0 @@
1
- import { R as RequestAdapter, a as RequestConfig } from '../types-CbTsi9CZ.mjs';
2
-
3
- /**
4
- * Web 平台请求适配器
5
- * 基于标准 fetch API
6
- *
7
- * 适用平台:
8
- * - Web (Next.js)
9
- * - Desktop (Electron)
10
- * - Mobile (React Native)
11
- */
12
- declare class WebRequestAdapter implements RequestAdapter {
13
- request<T = any>(config: RequestConfig): Promise<T>;
14
- }
15
-
16
- /**
17
- * Taro Request 接口定义
18
- * 兼容 @tarojs/taro request API
19
- */
20
- interface TaroRequestStatic {
21
- request<T = any>(options: {
22
- url: string;
23
- method?: string;
24
- header?: Record<string, string>;
25
- data?: any;
26
- }): Promise<{
27
- statusCode: number;
28
- data: T;
29
- }>;
30
- }
31
- /**
32
- * Miniapp 平台请求适配器
33
- * 基于 Taro.request API
34
- *
35
- * 使用方式:
36
- * ```typescript
37
- * import Taro from '@tarojs/taro'
38
- * const adapter = new MiniappRequestAdapter(Taro)
39
- * ```
40
- *
41
- * 适用平台:
42
- * - WeChat Miniapp
43
- * - Other Taro-based miniapps
44
- */
45
- declare class MiniappRequestAdapter implements RequestAdapter {
46
- private taro;
47
- constructor(taro: TaroRequestStatic);
48
- request<T = any>(config: RequestConfig): Promise<T>;
49
- }
50
-
51
- export { MiniappRequestAdapter, RequestAdapter, RequestConfig, WebRequestAdapter };
@@ -1,51 +0,0 @@
1
- import { R as RequestAdapter, a as RequestConfig } from '../types-CbTsi9CZ.js';
2
-
3
- /**
4
- * Web 平台请求适配器
5
- * 基于标准 fetch API
6
- *
7
- * 适用平台:
8
- * - Web (Next.js)
9
- * - Desktop (Electron)
10
- * - Mobile (React Native)
11
- */
12
- declare class WebRequestAdapter implements RequestAdapter {
13
- request<T = any>(config: RequestConfig): Promise<T>;
14
- }
15
-
16
- /**
17
- * Taro Request 接口定义
18
- * 兼容 @tarojs/taro request API
19
- */
20
- interface TaroRequestStatic {
21
- request<T = any>(options: {
22
- url: string;
23
- method?: string;
24
- header?: Record<string, string>;
25
- data?: any;
26
- }): Promise<{
27
- statusCode: number;
28
- data: T;
29
- }>;
30
- }
31
- /**
32
- * Miniapp 平台请求适配器
33
- * 基于 Taro.request API
34
- *
35
- * 使用方式:
36
- * ```typescript
37
- * import Taro from '@tarojs/taro'
38
- * const adapter = new MiniappRequestAdapter(Taro)
39
- * ```
40
- *
41
- * 适用平台:
42
- * - WeChat Miniapp
43
- * - Other Taro-based miniapps
44
- */
45
- declare class MiniappRequestAdapter implements RequestAdapter {
46
- private taro;
47
- constructor(taro: TaroRequestStatic);
48
- request<T = any>(config: RequestConfig): Promise<T>;
49
- }
50
-
51
- export { MiniappRequestAdapter, RequestAdapter, RequestConfig, WebRequestAdapter };
@@ -1,75 +0,0 @@
1
- import { S as StorageAdapter } from '../types-BaZccpvk.mjs';
2
- export { a as StorageChangeEvent } from '../types-BaZccpvk.mjs';
3
- export { b as useAsyncStorage, d as useElectronStorage, a as useLocalStorage, u as useStorage, c as useTaroStorage } from '../useElectronStorage-Dj0rcorG.mjs';
4
-
5
- /**
6
- * Web 平台存储适配器 (localStorage)
7
- */
8
-
9
- declare class WebStorageAdapter implements StorageAdapter {
10
- getItem(key: string): Promise<string | null>;
11
- setItem(key: string, value: string): Promise<void>;
12
- removeItem(key: string): Promise<void>;
13
- clear(): Promise<void>;
14
- addChangeListener(callback: (key: string, value: string | null) => void): () => void;
15
- /**
16
- * 触发自定义事件,通知同标签页的其他组件
17
- */
18
- dispatchChange(key: string, value: string | null): void;
19
- }
20
-
21
- /**
22
- * React Native 平台存储适配器 (AsyncStorage)
23
- */
24
-
25
- declare class ReactNativeStorageAdapter implements StorageAdapter {
26
- private listeners;
27
- getItem(key: string): Promise<string | null>;
28
- setItem(key: string, value: string): Promise<void>;
29
- removeItem(key: string): Promise<void>;
30
- clear(): Promise<void>;
31
- addChangeListener(callback: (key: string, value: string | null) => void): () => void;
32
- private notifyListeners;
33
- }
34
-
35
- /**
36
- * 小程序平台存储适配器 (wx.storage / Taro.storage)
37
- * 仅在小程序环境下加载和使用
38
- */
39
-
40
- declare class MiniAppStorageAdapter implements StorageAdapter {
41
- private listeners;
42
- getItem(key: string): Promise<string | null>;
43
- setItem(key: string, value: string): Promise<void>;
44
- removeItem(key: string): Promise<void>;
45
- clear(): Promise<void>;
46
- addChangeListener(callback: (key: string, value: string | null) => void): () => void;
47
- private notifyListeners;
48
- }
49
-
50
- /**
51
- * Electron 桌面端存储适配器
52
- *
53
- * Electron 渲染进程可以使用 localStorage(和 Web 相同)
54
- * 但我们提供专门的适配器以支持未来可能的主进程存储需求
55
- */
56
-
57
- declare class ElectronStorageAdapter implements StorageAdapter {
58
- private listeners;
59
- getItem(key: string): Promise<string | null>;
60
- setItem(key: string, value: string): Promise<void>;
61
- removeItem(key: string): Promise<void>;
62
- clear(): Promise<void>;
63
- /**
64
- * 添加存储变化监听器
65
- * 支持跨 Electron 窗口同步
66
- */
67
- addChangeListener(listener: (key: string, newValue: string | null) => void): () => void;
68
- removeChangeListener(listener: (key: string, newValue: string | null) => void): void;
69
- /**
70
- * 通知监听器
71
- */
72
- private notifyListeners;
73
- }
74
-
75
- export { ElectronStorageAdapter, MiniAppStorageAdapter, ReactNativeStorageAdapter, StorageAdapter, WebStorageAdapter };
@@ -1,75 +0,0 @@
1
- import { S as StorageAdapter } from '../types-BaZccpvk.js';
2
- export { a as StorageChangeEvent } from '../types-BaZccpvk.js';
3
- export { b as useAsyncStorage, d as useElectronStorage, a as useLocalStorage, u as useStorage, c as useTaroStorage } from '../useElectronStorage-DwnNfIhl.js';
4
-
5
- /**
6
- * Web 平台存储适配器 (localStorage)
7
- */
8
-
9
- declare class WebStorageAdapter implements StorageAdapter {
10
- getItem(key: string): Promise<string | null>;
11
- setItem(key: string, value: string): Promise<void>;
12
- removeItem(key: string): Promise<void>;
13
- clear(): Promise<void>;
14
- addChangeListener(callback: (key: string, value: string | null) => void): () => void;
15
- /**
16
- * 触发自定义事件,通知同标签页的其他组件
17
- */
18
- dispatchChange(key: string, value: string | null): void;
19
- }
20
-
21
- /**
22
- * React Native 平台存储适配器 (AsyncStorage)
23
- */
24
-
25
- declare class ReactNativeStorageAdapter implements StorageAdapter {
26
- private listeners;
27
- getItem(key: string): Promise<string | null>;
28
- setItem(key: string, value: string): Promise<void>;
29
- removeItem(key: string): Promise<void>;
30
- clear(): Promise<void>;
31
- addChangeListener(callback: (key: string, value: string | null) => void): () => void;
32
- private notifyListeners;
33
- }
34
-
35
- /**
36
- * 小程序平台存储适配器 (wx.storage / Taro.storage)
37
- * 仅在小程序环境下加载和使用
38
- */
39
-
40
- declare class MiniAppStorageAdapter implements StorageAdapter {
41
- private listeners;
42
- getItem(key: string): Promise<string | null>;
43
- setItem(key: string, value: string): Promise<void>;
44
- removeItem(key: string): Promise<void>;
45
- clear(): Promise<void>;
46
- addChangeListener(callback: (key: string, value: string | null) => void): () => void;
47
- private notifyListeners;
48
- }
49
-
50
- /**
51
- * Electron 桌面端存储适配器
52
- *
53
- * Electron 渲染进程可以使用 localStorage(和 Web 相同)
54
- * 但我们提供专门的适配器以支持未来可能的主进程存储需求
55
- */
56
-
57
- declare class ElectronStorageAdapter implements StorageAdapter {
58
- private listeners;
59
- getItem(key: string): Promise<string | null>;
60
- setItem(key: string, value: string): Promise<void>;
61
- removeItem(key: string): Promise<void>;
62
- clear(): Promise<void>;
63
- /**
64
- * 添加存储变化监听器
65
- * 支持跨 Electron 窗口同步
66
- */
67
- addChangeListener(listener: (key: string, newValue: string | null) => void): () => void;
68
- removeChangeListener(listener: (key: string, newValue: string | null) => void): void;
69
- /**
70
- * 通知监听器
71
- */
72
- private notifyListeners;
73
- }
74
-
75
- export { ElectronStorageAdapter, MiniAppStorageAdapter, ReactNativeStorageAdapter, StorageAdapter, WebStorageAdapter };