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 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