|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 1.9.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- Upgrade the global configuration infrastructure around `ConfigProvider` and align popup, scroll, and static layer behavior across the component library. - [#90](https://github.com/wangdicoder/tiny-design/pull/90) [`49b4bfc`](https://github.com/wangdicoder/tiny-design/commit/49b4bfcba6c9536a966ba5b5a64e53b56a25da76) |
| 8 | + |
| 9 | + Highlights: |
| 10 | + - Reworked `ConfigProvider` to use provider-scoped theme containers instead of mutating global HTML styles. |
| 11 | + - Added `ConfigProvider.useConfig()` and `ConfigProvider.config({ holderRender })` support for a wider set of static APIs. |
| 12 | + - Added static `Modal.open()` and `Modal.confirm()` APIs that participate in the shared static host pipeline. |
| 13 | + - Unified popup container resolution across `Portal`, `Popup`, and `Cascader`. |
| 14 | + - Unified target container resolution across `Anchor`, `Sticky`, `BackTop`, `Overlay`, and `Tour`. |
| 15 | + - Improved `Sticky` container observation with `ResizeObserver`. |
| 16 | + - Improved `useTheme()` to sync with DOM state, localStorage, system preference changes, and cross-tab storage events. |
| 17 | + - Added `onCopy` to `CopyToClipboard` so copy results can be observed by consumers. |
| 18 | + |
| 19 | + Notes for consumers: |
| 20 | + - `Anchor` and `BackTop` now accept and resolve `Window` as a first-class target container shape. |
| 21 | + - `BackTop` now defaults to `ConfigProvider.getTargetContainer()` when present. |
| 22 | + - `ConfigProvider` only renders an internal scope node when scoped theme behavior is required. |
| 23 | + - Static APIs such as `Message.*`, `Notification.*`, `LoadingBar.*`, and `Modal.open()` can now be wrapped consistently through `ConfigProvider.config({ holderRender })`. |
| 24 | + |
| 25 | +- Migrate component styles from SCSS variables to CSS custom properties (`--ty-*`) for better runtime theming support. - [#90](https://github.com/wangdicoder/tiny-design/pull/90) [`49b4bfc`](https://github.com/wangdicoder/tiny-design/commit/49b4bfcba6c9536a966ba5b5a64e53b56a25da76) |
| 26 | + - Migrate ~80 structural SCSS constants (padding, sizing, transitions) to runtime-customizable CSS custom properties |
| 27 | + - Tokenize hardcoded values in Button, Input, Card, Select, and Notification components |
| 28 | + - Add component-scoped CSS variable fallback chains (e.g., `--ty-btn-border-radius` falls back to `--ty-border-radius`) |
| 29 | + - Add `ThemeConfig` API to `ConfigProvider` for programmatic token and component-level overrides |
| 30 | + - Three-level customization: global tokens, component tokens, and scoped instance overrides via CSS |
| 31 | + |
3 | 32 | ## 1.8.0 |
4 | 33 |
|
5 | 34 | ### Minor Changes |
|
0 commit comments