cos-design 3.7.9 → 3.7.11
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 +39 -0
- package/README.md +2 -1
- package/dist/index.cjs +2 -2
- package/dist/index.css +1 -1
- package/dist/index.js +124 -115
- package/dist/src/components/confetti/index.d.ts +5 -1
- package/dist/src/components/fireworks/index.d.ts +5 -1
- package/dist/src/components/nineGrid/index.d.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,45 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [3.7.11] - 2026-08-27
|
|
11
|
+
|
|
12
|
+
### Removed
|
|
13
|
+
|
|
14
|
+
- Playground「活动配方」整页路由与导航(`#/recipes`);活动组合改走 [examples/next-app](./examples/next-app) 与 [docs/campaign-10-minutes.md](./docs/campaign-10-minutes.md)
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- Confetti / Fireworks:`interactive`(默认跟随 `auto`;`auto={false}` 不拦截指针)
|
|
19
|
+
- Next 示例 README「3-step fork」;活动页入口改指向 Next 示例与 10 分钟指南
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- Confetti/Fireworks 在 `auto={false}` 时默认不拦截指针;交互 smoke 改在组件页(FlipCard / NineGrid / Turntable)
|
|
24
|
+
- campaign-patterns 补充 celebration vs controls 约定
|
|
25
|
+
- @cos-design/confetti: 3.5.5 → 3.5.6
|
|
26
|
+
- @cos-design/fireworks: 3.5.5 → 3.5.6
|
|
27
|
+
- cos-design: 聚合包更新至 3.7.11
|
|
28
|
+
|
|
29
|
+
## [3.7.10] - 2026-08-27
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
|
|
33
|
+
- Playground 配方页「可复制片段」(`recipe-snippets` + 一键复制)
|
|
34
|
+
- Next 示例主链路:`CampaignFlow`(fill hero → FlipCard → NineGrid → Confetti)
|
|
35
|
+
- 文档:[docs/campaign-10-minutes.md](./docs/campaign-10-minutes.md)、[docs/campaign-patterns.md](./docs/campaign-patterns.md)
|
|
36
|
+
- Playwright 交互 smoke:翻牌 / 九宫格 busy / 转盘出结果 / checkin-draw 解锁
|
|
37
|
+
- `NineGrid.spinningText`;Turntable / SlotMachine / NineGrid 按钮 `aria-busy` + `data-testid`
|
|
38
|
+
|
|
39
|
+
### Changed
|
|
40
|
+
|
|
41
|
+
- `Aurora`:标签页隐藏时暂停 CSS 动画(`bindVisibilityPause`)
|
|
42
|
+
- AGENTS / Cursor Skill 强化「何时不用 cos-design」;Context7 rules 补充活动页约定
|
|
43
|
+
- @cos-design/aurora: 3.5.4 → 3.5.5
|
|
44
|
+
- @cos-design/nine-grid: 3.7.9 → 3.7.10
|
|
45
|
+
- @cos-design/slot-machine: 3.5.5 → 3.5.6
|
|
46
|
+
- @cos-design/turntable: 3.5.5 → 3.5.6
|
|
47
|
+
- cos-design: 聚合包更新至 3.7.10
|
|
48
|
+
|
|
10
49
|
## [3.7.9] - 2026-08-27
|
|
11
50
|
|
|
12
51
|
### Added
|
package/README.md
CHANGED
|
@@ -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](./examples/next-app) · [EN guide](./website-content/cos-design-marketing-effects-en.md) · [中文指南](./website-content/cos-design-intro.md) · [Changelog](./CHANGELOG.md)
|
|
14
|
+
[Playground](https://jiaxiantao.github.io/cos-design/) · [Quickstart](./QUICKSTART.md) · [**10-minute campaign**](./docs/campaign-10-minutes.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
|
|
|
@@ -43,6 +43,7 @@ export function Campaign() {
|
|
|
43
43
|
|
|
44
44
|
- **Use for:** campaign / lottery / celebration UI, canvas backgrounds, animated headlines, dashboard decorations
|
|
45
45
|
- **Do not use for:** tables, forms, nav shells → use Ant Design / shadcn / MUI
|
|
46
|
+
- **Start here (campaign):** [Build a campaign page in 10 minutes](./docs/campaign-10-minutes.md) · runnable [examples/next-app](./examples/next-app)
|
|
46
47
|
- **AI index:** https://jiaxiantao.github.io/cos-design/llms.txt · **Context7:** `/jiaxiantao/cos-design`
|
|
47
48
|
- **Cursor Skill install:** see [docs/ai-discovery.md](./docs/ai-discovery.md)
|
|
48
49
|
- **Article:** [React marketing page effects with cos-design](./website-content/cos-design-marketing-effects-en.md)
|