@yyc3/music-growth 1.0.0 → 2.0.1

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.
package/LICENSE ADDED
@@ -0,0 +1,27 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 YanYuCloudCube™ (YYC³)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ---
24
+
25
+ YYC³(YanYuCloudCube™)· 言启象限 | 语枢未来
26
+ Words Initiate Quadrants, Language Serves as Core for Future
27
+ 万象归元于云枢 | 深栈智启新纪元
package/README.md ADDED
@@ -0,0 +1,77 @@
1
+ # @yyc3/music-growth
2
+
3
+ > 星力面板、星力商城、排行榜、成就与 IP 矩阵。
4
+
5
+ | 属性 | 值 |
6
+ | --- | --- |
7
+ | 版本 | 2.0.0 |
8
+ | 定位 | 成长体系组件 |
9
+ | 许可证 | MIT |
10
+ | 仓库 | https://github.com/YYC-Cube/YYC3-MusAI |
11
+
12
+ ## 安装
13
+
14
+ ```bash
15
+ pnpm add @yyc3/music-growth react
16
+ ```
17
+
18
+ ## 快速开始
19
+
20
+ ```tsx
21
+ import { StarPowerPanel, LeaderboardPanel, AchievementsPanel } from '@yyc3/music-growth'
22
+
23
+ export function Growth({ open, close, user, sp, setSp }: any) {
24
+ return (
25
+ <>
26
+ <StarPowerPanel isOpen={open} onClose={close} user={user} starPower={sp} onStarPowerUpdate={setSp} />
27
+ <LeaderboardPanel isOpen={open} onClose={close} user={user} />
28
+ <AchievementsPanel isOpen={open} onClose={close} user={user} />
29
+ </>
30
+ )
31
+ }
32
+ ```
33
+
34
+ ## 导出清单
35
+
36
+ - StarPowerPanel
37
+ - StarPowerShop
38
+ - LeaderboardPanel
39
+ - AchievementsPanel
40
+ - IPMatrixPanel
41
+
42
+ ## 关键 API
43
+
44
+ | 名称 | 说明 |
45
+ | --- | --- |
46
+ | `StarPowerPanel` | isOpen、onClose、user、starPower、onStarPowerUpdate、onOpenShop |
47
+ | `IPMatrixPanel` | isOpen、onClose、user、profile、starPower、onOpenCreationStudio |
48
+ | `AchievementsPanel` | 成就进度与解锁状态,数据源为 music-data 的 ACHIEVEMENTS |
49
+
50
+ ## 说明
51
+
52
+ 成长体系依赖统一的用户与星力模型;成就定义集中在 `@yyc3/music-data`,避免多处漂移。
53
+
54
+ ## 兼容性
55
+
56
+ - React 19+(组件包 peer 依赖)
57
+ - TypeScript 5.6+ / Node.js 20.19+
58
+ - 现代浏览器(Chrome/Edge/Safari/Firefox 最近两个大版本)
59
+
60
+ ## 开发与验证
61
+
62
+ ```bash
63
+ pnpm --filter @yyc3/music-growth build
64
+ pnpm --filter @yyc3/music-growth typecheck
65
+ pnpm --filter @yyc3/music-growth lint
66
+ pnpm test:coverage
67
+ ```
68
+
69
+ ## 许可证
70
+
71
+ MIT © 2026 YanYuCloudCube™(YYC³)
72
+
73
+ <p align="center">
74
+ <b>YYC³</b>(YanYuCloudCube™ · 注册商标)<br>
75
+ 言启象限 | 语枢未来 — Words Initiate Quadrants, Language Serves as Core for Future<br>
76
+ <sub>© 2026 YanYuCloudCube™(YYC³)· <a href="mailto:admin@0379.email">admin@0379.email</a></sub>
77
+ </p>