Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## [2.0.0](v1.0.1...v2.0.0) (2023-07-24) ### ⚠ BREAKING CHANGES * Stops bundling lit-html so applications can deduplicate the dependency in their build process. This removes the ability to use the package *directly* in the browser without a build step. To continue doing so, use import maps to map `lit-html` to a CDN URL to address this issue (see documentation for instructions). * Changes the file name and location of the color picker typings from `types/index.d.ts` to `dist/ColorPicker.d.ts`. Please update your imports. * Removes the `data-` prefix from all color picker attributes (`data-alpha-channel` → `alpha-channel`, `data-color` → `color`, `data-default-format` → `default-format`, `data-visible-channels` → `visible-channels`). * No longer sets color picker attributes to their respective default values. As a replacement, their associated properties will now be set to those default values. * Makes the color picker self-define (with the local name "color-picker") when importing the module. This removes the need for calling `window.customElements.define('color-picker', ColorPicker)` manually in application code. ### Features * adds copyColor() method ([42ebe28](42ebe28)) * adds support for properties ([a3737c4](a3737c4)) * adds switchFormat() method ([0574aa1](0574aa1)) * self-defines custom element as color-picker on import ([a1bd609](a1bd609)) ### Bug Fixes * not setting box-sizing on the color picker element ([752d7d4](752d7d4)) ### Code Refactoring * converts code base to typescript ([be55758](be55758)) ### Miscellaneous Chores * removes "data-" prefix from color picker attributes ([318bb3f](318bb3f)) * stops bundling lit-html ([facdaba](facdaba))
- Loading branch information