cos-design 3.7.6 → 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 +37 -0
- package/README.md +12 -11
- package/dist/index.cjs +3 -3
- package/dist/index.css +1 -1
- package/dist/index.js +1547 -1324
- package/dist/src/components/flipCard/index.d.ts +27 -0
- package/dist/src/components/index.d.ts +4 -0
- package/dist/src/components/nineGrid/index.d.ts +25 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,43 @@ 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
|
+
|
|
34
|
+
## [3.7.7] - 2026-08-26
|
|
35
|
+
|
|
36
|
+
### Added
|
|
37
|
+
|
|
38
|
+
- 可运行 Next.js 示例工程 [examples/next-app](./examples/next-app)(fill hero + 刮开庆祝)
|
|
39
|
+
- `pnpm verify:context7`:检查 Context7 是否收录以及索引是否包含 `fill` / Next 示例
|
|
40
|
+
|
|
41
|
+
### Changed
|
|
42
|
+
|
|
43
|
+
- Context7 校验结论写入 [docs/ai-discovery.md](./docs/ai-discovery.md);刷新 workflow 在缺少 `CONTEXT7_API_KEY` 时发出 warning
|
|
44
|
+
- `context7.json` 规则补充 `fill` 与 Next 示例路径
|
|
45
|
+
- cos-design: 聚合包更新至 3.7.7
|
|
46
|
+
|
|
10
47
|
## [3.7.6] - 2026-08-26
|
|
11
48
|
|
|
12
49
|
### Added
|
package/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
# cos-design
|
|
4
4
|
|
|
5
|
-
**
|
|
6
|
-
**
|
|
5
|
+
**86 React visual-effect components** for marketing pages, brand landings, and creative showcases
|
|
6
|
+
**86 个 React 视觉特效组件 · 活动页 / 品牌页 / 创意展示开箱即用**
|
|
7
7
|
|
|
8
8
|
[](https://github.com/jiaxiantao/cos-design/actions/workflows/ci.yml)
|
|
9
9
|
[](https://www.npmjs.com/package/cos-design)
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
[](https://react.dev/)
|
|
12
12
|
[](https://www.typescriptlang.org/)
|
|
13
13
|
|
|
14
|
-
[Playground](https://jiaxiantao.github.io/cos-design/) · [Quickstart](./QUICKSTART.md) · [llms.txt](https://jiaxiantao.github.io/cos-design/llms.txt) · [AI discovery](./docs/ai-discovery.md) · [Next.js example](./
|
|
14
|
+
[Playground](https://jiaxiantao.github.io/cos-design/) · [Quickstart](./QUICKSTART.md) · [llms.txt](https://jiaxiantao.github.io/cos-design/llms.txt) · [AI discovery](./docs/ai-discovery.md) · [Next.js example](./examples/next-app) · [EN guide](./website-content/cos-design-marketing-effects-en.md) · [中文指南](./website-content/cos-design-intro.md) · [Changelog](./CHANGELOG.md)
|
|
15
15
|
|
|
16
16
|
</div>
|
|
17
17
|
|
|
@@ -62,7 +62,7 @@ export function Campaign() {
|
|
|
62
62
|
| 数据大屏 | 翻牌器、数字递增、仪表盘、关系网络图 |
|
|
63
63
|
| 创意作品集 | 牛顿摆、DNA 螺旋、迷宫生成、生命游戏 |
|
|
64
64
|
|
|
65
|
-
> 从背景到物理、从文字到营销,
|
|
65
|
+
> 从背景到物理、从文字到营销,86 个组件刚好组成一套完整的「视觉工具箱」。
|
|
66
66
|
|
|
67
67
|
---
|
|
68
68
|
|
|
@@ -113,12 +113,13 @@ 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) |
|
|
117
|
-
| [docs/examples/next-app-router.md](./docs/examples/next-app-router.md) | Next.js App Router
|
|
118
|
-
| [
|
|
116
|
+
| [docs/ai.md](./docs/ai.md) | 86 个组件的完整 AI 参考(安装 / import / 示例 / Props) |
|
|
117
|
+
| [docs/examples/next-app-router.md](./docs/examples/next-app-router.md) | Next.js App Router 接入说明(SSR + fill) |
|
|
118
|
+
| [examples/next-app](./examples/next-app) | 可运行 Next.js 示例(`pnpm install && pnpm dev`) |
|
|
119
|
+
| [docs/ai-discovery.md](./docs/ai-discovery.md) | Context7 提交、校验、Cursor Skill 安装、项目 Rule 片段 |
|
|
119
120
|
| [AGENTS.md](./AGENTS.md) | 仓库级 Agent 规则,可复制到用户项目 |
|
|
120
121
|
| [.cursor/skills/cos-design](./.cursor/skills/cos-design/SKILL.md) | Cursor Skill |
|
|
121
|
-
| Context7 | `/jiaxiantao/cos-design
|
|
122
|
+
| Context7 | `/jiaxiantao/cos-design`(`pnpm verify:context7`) |
|
|
122
123
|
|
|
123
124
|
**安装 Cursor Skill(用户本机):**
|
|
124
125
|
|
|
@@ -152,7 +153,7 @@ Context7: /jiaxiantao/cos-design
|
|
|
152
153
|
|
|
153
154
|
---
|
|
154
155
|
|
|
155
|
-
## 组件一览(
|
|
156
|
+
## 组件一览(86 个 · 9 大分类)
|
|
156
157
|
|
|
157
158
|
<details open>
|
|
158
159
|
<summary><strong>背景动效</strong> — 11 个 · 动态场景与粒子背景</summary>
|
|
@@ -332,7 +333,7 @@ Context7: /jiaxiantao/cos-design
|
|
|
332
333
|
|
|
333
334
|
## 特性
|
|
334
335
|
|
|
335
|
-
- **
|
|
336
|
+
- **86 个组件**,覆盖背景、文字、图片、交互、营销、数据、物理、科学、特效九大场景
|
|
336
337
|
- **React 19** + **Vite 8** + **TypeScript 5** 现代技术栈
|
|
337
338
|
- **ESM / CJS** 双格式,完整 `.d.ts` 类型
|
|
338
339
|
- **样式自动注入**,无需 `import 'cos-design/dist/index.css'`
|
|
@@ -353,7 +354,7 @@ npm run setup # 安装依赖(绕过 corepack 问题)
|
|
|
353
354
|
npx --yes pnpm@9 dev # 启动 Playground
|
|
354
355
|
```
|
|
355
356
|
|
|
356
|
-
访问 **http://localhost:4000** — 按分类浏览全部
|
|
357
|
+
访问 **http://localhost:4000** — 按分类浏览全部 86 个组件,右侧可查看与复制示例代码。
|
|
357
358
|
|
|
358
359
|
---
|
|
359
360
|
|