@pieai/swimmer-ui-kit 3.0.0 → 3.1.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.
package/CHANGELOG.md CHANGED
@@ -5,11 +5,20 @@ Format: [Keep a Changelog](https://keepachangelog.com); versioning: semver.
5
5
 
6
6
  ## Unreleased
7
7
 
8
- ## 3.0.0 — 稳定版本地候选(2026-10-10,待发布到 latest)
8
+ ## 3.1.0 — 本地候选(2026-10-10,待发布到 latest)
9
+
10
+ - 新增 `GameAccountMenu`:登录后的共享账号入口,从 `@pieai/swimmer-ui-kit/liquid-presence` 导入。头像与名字是 sm 次要按钮;点击打开一个液体面板,含产品提供的站内内容、全部产品列表(当前产品为纯文字,其余为真实链接)和账号页签(管理账号与安全、退出登录)。只有账号页签时不显示页签条。
11
+ - 产品拥有用户、产品列表、目的地址和所有登录、退出动作;组件不联网、不存储、不做认证。退出按钮处理中显示 `pending` 但不禁用,组件忽略处理中的重复点击。头像只渲染 https 图片,否则显示首字母。
12
+ - 面板基于 LiquidPopover,宿主需同时引入 `@pieai/swimmer-ui-kit/liquid-presence.css`。账号菜单不在根入口,只使用 GameAvatar 等根入口已有控件的产品不会因此加载液体面板代码。
13
+ - `GameTooltip` 新增可选 `align`(center / start / end)与 `placement`(top / bottom),向后兼容:默认仍居中于上方。长标签在 280px 内换行,标签中的换行保留。
14
+ - 根入口公开名字不变(129 个);迁移表与接口清单由生成器更新。`GameAccountMenu` 与其三个类型只从 liquid-presence 入口公开。没有删除或改名。
15
+ - 版本号改为 3.1.0;发布前 npm `latest` 为 3.0.0,`next` 为 3.0.0-rc.3。
16
+
17
+ ## 3.0.0 — 已发布到 npm latest(2026-10-10)
9
18
 
10
19
  - 稳定版,源码与 3.0.0-rc.3 相同,没有任何代码改动(Owner 决定,2026-10-10);只把版本号改为 3.0.0。
11
20
  - 从 2.x 升级请先读 [3.0 迁移表](docs/reference/migration-3.0.md)。这是干净断代,不提供旧接口或旧主题的兼容层。
12
- - 发布到 npm `latest` 前,`latest` 仍为 2.14.0;以 npm 标签回读和当前工作记录为准。
21
+ - 发布记录:2026-10-10 04:48 UTC 由 Claude 发布到 npm `latest`,发布的 tarball SHA-256 为 `eb6cdfe9e8cdd804d10078e69acd224ba349d30fb457f9c681220b7d3a98561d`,与本地候选一致。只读回读:`latest` 为 3.0.0,`next` 为 3.0.0-rc.3。
13
22
 
14
23
  ## 3.0.0-rc.3 — 已发布到 npm next(2026-10-10)
15
24
 
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Swimmer 的共享 React UI:普通控件是平面水滴,主线 CTA 是潮汐液体。支持六套风格与独立明暗,表单、焦点、键盘和编辑内容仍由原生 DOM 承接。它不拥有产品数据、模型调用、账号验证或支付。
4
4
 
5
- **3.0.0 为稳定版候选(源码与 3.0.0-rc.3 相同),待发布到 npm latest;发布前 latest 仍为 2.14.0。** 3.0.0-rc.1 与 rc.3 已发布到 npm next。现有产品继续锁定精确版本;主动升级先读[迁移表](docs/reference/migration-3.0.md),发布证据见[当前工作](docs/reference/execution/current-work.md)。本仓库不自动升级任何产品。
5
+ **3.0.0 已发布到 npm latest(2026-10-10)。3.1.0 为本地候选(新增账号菜单与 GameTooltip 位置选项),待发布到 npm latest;发布前 latest 仍为 3.0.0。** 3.0.0-rc.1 与 rc.3 已发布到 npm next。现有产品继续锁定精确版本;主动升级先读[迁移表](docs/reference/migration-3.0.md),发布证据见[当前工作](docs/reference/execution/current-work.md)。本仓库不自动升级任何产品。
6
6
 
7
7
  ## 安装与最小使用
8
8
 
@@ -10,9 +10,9 @@ React / React DOM 需要 19 或以上。发布前的候选评审时安装交付
10
10
 
11
11
  ```sh
12
12
  # 显式选择精确版本;不要用 latest 或范围自动升级
13
- pnpm add --save-exact @pieai/swimmer-ui-kit@3.0.0
13
+ pnpm add --save-exact @pieai/swimmer-ui-kit@3.1.0
14
14
  # 发布前或离线验收,安装回执中经过 SHA-256 核对的同版本 tarball
15
- pnpm add --save-exact /path/to/swimmer-ui-kit-3.0.0.tgz
15
+ pnpm add --save-exact /path/to/swimmer-ui-kit-3.1.0.tgz
16
16
  ```
17
17
 
18
18
  ```tsx