cos-design 3.7.4 → 3.7.5
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 +19 -0
- package/README.md +7 -7
- package/dist/index.cjs +3 -3
- package/dist/index.js +1606 -1498
- package/dist/src/components/confetti/index.d.ts +2 -0
- package/dist/src/components/fireworks/index.d.ts +2 -0
- package/dist/src/components/matrixRain/index.d.ts +2 -0
- package/dist/src/components/particleNetwork/index.d.ts +2 -0
- package/dist/src/components/redPacketRain/index.d.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,25 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [3.7.5] - 2026-08-21
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- `@cos-design/shared`:新增 `useElementSize` / `resolveCanvasBoxSize`(React peer)
|
|
13
|
+
- Canvas 组件支持 `fill` 铺满父容器:`Fireworks`、`Confetti`、`RedPacketRain`、`MatrixRain`、`ParticleNetwork`
|
|
14
|
+
- Playground 活动配方新增:充电开宝箱、老虎机大奖
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- QUICKSTART / README / AGENTS 补充 `fill` 尺寸用法说明
|
|
19
|
+
- @cos-design/shared: 3.5.4 → 3.5.5
|
|
20
|
+
- @cos-design/confetti: 3.5.4 → 3.5.5
|
|
21
|
+
- @cos-design/fireworks: 3.5.4 → 3.5.5
|
|
22
|
+
- @cos-design/matrix-rain: 3.5.3 → 3.5.4
|
|
23
|
+
- @cos-design/particle-network: 3.5.3 → 3.5.4
|
|
24
|
+
- @cos-design/red-packet-rain: 3.5.4 → 3.5.5
|
|
25
|
+
- cos-design: 聚合包更新至 3.7.5
|
|
26
|
+
|
|
8
27
|
## [3.7.4] - 2026-08-10
|
|
9
28
|
|
|
10
29
|
### Added
|
package/README.md
CHANGED
|
@@ -141,13 +141,13 @@ Context7: /jiaxiantao/cos-design
|
|
|
141
141
|
|
|
142
142
|
### 使用注意(摘要)
|
|
143
143
|
|
|
144
|
-
| 注意点 | 说明
|
|
145
|
-
| -------- |
|
|
146
|
-
| **SSR** | Canvas 组件需在 Next.js 等框架中 `dynamic(..., { ssr: false })`
|
|
147
|
-
| **尺寸** | Canvas 组件需明确 `width` / `height
|
|
148
|
-
| **密度** | 建议每页「一个强背景 + 若干局部交互」,避免多 Canvas 抢性能
|
|
149
|
-
| **权限** | `AudioVisualizer` 开启麦克风时需 HTTPS 与用户授权
|
|
150
|
-
| **省电** | 标签页隐藏时,多数 Canvas 动画自动暂停
|
|
144
|
+
| 注意点 | 说明 |
|
|
145
|
+
| -------- | -------------------------------------------------------------------- |
|
|
146
|
+
| **SSR** | Canvas 组件需在 Next.js 等框架中 `dynamic(..., { ssr: false })` |
|
|
147
|
+
| **尺寸** | Canvas 组件需明确 `width` / `height`,或设 `fill` 铺满有高度的父容器 |
|
|
148
|
+
| **密度** | 建议每页「一个强背景 + 若干局部交互」,避免多 Canvas 抢性能 |
|
|
149
|
+
| **权限** | `AudioVisualizer` 开启麦克风时需 HTTPS 与用户授权 |
|
|
150
|
+
| **省电** | 标签页隐藏时,多数 Canvas 动画自动暂停 |
|
|
151
151
|
|
|
152
152
|
---
|
|
153
153
|
|