cos-design 3.7.7 → 3.7.8

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
@@ -7,6 +7,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [3.7.8] - 2026-08-26
11
+
12
+ ### Added
13
+
14
+ - 新组件 `NineGrid`(九宫格抽奖,`targetIndex` / `draw`/`reset`)与 `FlipCard`(签到翻牌)
15
+ - Playground 配方:九宫格开奖、签到翻牌
16
+ - Playwright smoke:`pnpm test:smoke`(Scratch / Turntable / WeatherBackground / recipes)
17
+ - `pnpm context7:refresh`:本地触发 Context7 索引刷新
18
+ - Next 示例加深:`/api/draw` + Turntable `spin(targetIndex)` 服务端开奖
19
+
20
+ ### Changed
21
+
22
+ - MatrixRain / ParticleNetwork / SmokeFog / BubbleField / RippleWater / WeatherBackground 接入 reduced-motion 静态降级
23
+ - CI 在 Pages 构建后跑 smoke;ai-discovery 补充 Context7 key 配置步骤
24
+ - @cos-design/bubble-field: 3.7.1 → 3.7.2
25
+ - @cos-design/flip-card: 3.7.7 → 3.7.8
26
+ - @cos-design/matrix-rain: 3.5.4 → 3.5.5
27
+ - @cos-design/nine-grid: 3.7.7 → 3.7.8
28
+ - @cos-design/particle-network: 3.5.4 → 3.5.5
29
+ - @cos-design/ripple-water: 3.5.5 → 3.5.6
30
+ - @cos-design/smoke-fog: 3.5.5 → 3.5.6
31
+ - @cos-design/weather-background: 3.5.5 → 3.5.6
32
+ - cos-design: 聚合包更新至 3.7.8
33
+
10
34
  ## [3.7.7] - 2026-08-26
11
35
 
12
36
  ### Added
package/README.md CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  # cos-design
4
4
 
5
- **84 React visual-effect components** for marketing pages, brand landings, and creative showcases
6
- **84 个 React 视觉特效组件 · 活动页 / 品牌页 / 创意展示开箱即用**
5
+ **86 React visual-effect components** for marketing pages, brand landings, and creative showcases
6
+ **86 个 React 视觉特效组件 · 活动页 / 品牌页 / 创意展示开箱即用**
7
7
 
8
8
  [![CI](https://github.com/jiaxiantao/cos-design/actions/workflows/ci.yml/badge.svg)](https://github.com/jiaxiantao/cos-design/actions/workflows/ci.yml)
9
9
  [![npm version](https://img.shields.io/npm/v/cos-design.svg)](https://www.npmjs.com/package/cos-design)
@@ -62,7 +62,7 @@ export function Campaign() {
62
62
  | 数据大屏 | 翻牌器、数字递增、仪表盘、关系网络图 |
63
63
  | 创意作品集 | 牛顿摆、DNA 螺旋、迷宫生成、生命游戏 |
64
64
 
65
- > 从背景到物理、从文字到营销,84 个组件刚好组成一套完整的「视觉工具箱」。
65
+ > 从背景到物理、从文字到营销,86 个组件刚好组成一套完整的「视觉工具箱」。
66
66
 
67
67
  ---
68
68
 
@@ -113,7 +113,7 @@ export default function Page() {
113
113
  | ---------------------------------------------------------------------- | ------------------------------------------------------- |
114
114
  | [llms.txt](https://jiaxiantao.github.io/cos-design/llms.txt) | 供 Agent 抓取的索引(场景 → 组件 → 安装命令) |
115
115
  | [llms-full.txt](https://jiaxiantao.github.io/cos-design/llms-full.txt) | 站点上的完整 AI 参考(与 docs/ai.md 同步) |
116
- | [docs/ai.md](./docs/ai.md) | 84 个组件的完整 AI 参考(安装 / import / 示例 / Props) |
116
+ | [docs/ai.md](./docs/ai.md) | 86 个组件的完整 AI 参考(安装 / import / 示例 / Props) |
117
117
  | [docs/examples/next-app-router.md](./docs/examples/next-app-router.md) | Next.js App Router 接入说明(SSR + fill) |
118
118
  | [examples/next-app](./examples/next-app) | 可运行 Next.js 示例(`pnpm install && pnpm dev`) |
119
119
  | [docs/ai-discovery.md](./docs/ai-discovery.md) | Context7 提交、校验、Cursor Skill 安装、项目 Rule 片段 |
@@ -153,7 +153,7 @@ Context7: /jiaxiantao/cos-design
153
153
 
154
154
  ---
155
155
 
156
- ## 组件一览(84 个 · 9 大分类)
156
+ ## 组件一览(86 个 · 9 大分类)
157
157
 
158
158
  <details open>
159
159
  <summary><strong>背景动效</strong> — 11 个 · 动态场景与粒子背景</summary>
@@ -333,7 +333,7 @@ Context7: /jiaxiantao/cos-design
333
333
 
334
334
  ## 特性
335
335
 
336
- - **84 个组件**,覆盖背景、文字、图片、交互、营销、数据、物理、科学、特效九大场景
336
+ - **86 个组件**,覆盖背景、文字、图片、交互、营销、数据、物理、科学、特效九大场景
337
337
  - **React 19** + **Vite 8** + **TypeScript 5** 现代技术栈
338
338
  - **ESM / CJS** 双格式,完整 `.d.ts` 类型
339
339
  - **样式自动注入**,无需 `import 'cos-design/dist/index.css'`
@@ -354,7 +354,7 @@ npm run setup # 安装依赖(绕过 corepack 问题)
354
354
  npx --yes pnpm@9 dev # 启动 Playground
355
355
  ```
356
356
 
357
- 访问 **http://localhost:4000** — 按分类浏览全部 84 个组件,右侧可查看与复制示例代码。
357
+ 访问 **http://localhost:4000** — 按分类浏览全部 86 个组件,右侧可查看与复制示例代码。
358
358
 
359
359
  ---
360
360