Changelog
2.0.2
Fixes
- Published package manifests now reference the matching release version (
^2.0.2) for internal dependencies instead of the stale^2.0.0range. This prevents mixed installs where a 2.0.1 plugin resolved an older@ew-color-picker/utilsthat did not exportgetPrefix
2.0.1
These changes have been published to npm and are reflected in the docs site.
Fixes
- Fixed plugin switches being overridden:
ewColorPickerPanel: falseandewColorPickerColorMode: false(or an object config) were replaced by defaults and did not take effect - Panel container now declares
box-sizing: content-box, no longer relying on the host globalbox-sizingreset - Removed viewport media queries (
max-width: 768px) that hard-coded panel, input and preset sizes; inner sizes are now driven solely by--panel-width/--panel-height - Predefined swatches now use flex wrapping; removed the hard-coded "10 per row" rule that caused wrong wrapping when the swatch count or container width changed
use()now deduplicates bypluginName, preventing duplicate registration under HMR, repeated imports or multiple entry points- Plugin constructor errors are now reported through
console.warnwith the plugin name and error details instead of being silently swallowed, making custom plugin debugging easier
Features
- New
appendTooption: mount the panel container intodocument.bodyor any container to avoidoverflowclipping by dialogs, drawers and scroll containers. The panel then uses viewport-relative positioning, still honorspanelPlacementwith boundary flipping, and re-positions on scroll or resize - New
prefixoption: customize the prefix of every CSS class name (defaultew-) to avoid style collisions when embedding the picker in another library. The SCSS build exposes a matching$prefixvariable that must stay in sync with the JS option ApplyOrderchanged fromconst enumto a regular enum, so it can be imported at runtime from@ew-color-picker/utilswithout hand-writing'pre'/'post'strings
Documentation
- Corrected predefined swatch and number input class names to match the source
- Removed the non-existent nested
ewColorPickerBoxconfig in favor of top-level options - Corrected the prerequisites of
autoPanelPosition - Added
appendTodocumentation (Chinese and English) - Added
prefixdocumentation (Chinese and English) with a custom SCSS build example - Added
applyOrderexecution-order documentation and examples (Chinese and English) - The docs site now defaults to English; Chinese docs moved under
/zh/, and the README defaults to English
2.0.0
First stable release: core + plugin architecture, 14 packages (13 scoped packages plus the unscoped ew-color-picker entry package), bilingual docs site and live demo.