- Use vite for serving app and building library
- Remove rollup
- Remove babel
- Update package.json exports
- Fix index bug. Thank you @tasinttttttt.
- Revamped library
- Added TypeScript
- Replaced webpack with vite for example
- Updated all deps
- Added prettier and updated eslint
- Simplified library logic
- Updated SCSS styling
- Added image click event and updated deps. Thanks @tasinttttttt.
- Added index on delete event. Updates deps. Thank you @tasinttttttt.
- Removing unneeded wrapper divs in preview panels
- Adding
token
attribute on each preview panel
- Refactor of basically entire library. Many methods changed, properties changed. Please read the README and update your code accordingly. This refactoring was necessary due to the need for additional methods that allow for more control and replacement of the
cachedFileArray
. - Removed
rollup-plugin-buble
in favor ofrollup-plugin-bable
due to the former not fully supportingasync/await
.
- Moves from Gulp to Webpack
- Made updates for accessibility.
- Added
text
object tooptions
so that the input copy can be changed. - Updated the README accordingly with these changes.
- Removed the option to not show a grid of files when setting
multiple
on the input. The logic messiness wasn't worth it considering we don't really need the option now that we have a grid view for multiple images. - Cleaned up logic flow.
- Added buttons for deleting indivudual files in the grid view. Also includes the option to disable this feature.
- Added a deletion event that gets triggered when a file is deleted.
- Updated the README accordingly with these changes.
- Rewrite of the library code. Made the handling of multiple images a bit more clear. Tried to clean up the logic and set properties only a single time when needed. Should all be a bit more clear now.
- Showing the grid of images in the case of multiple is now the default setting. To stop that, pass
{showMultiple: false}
when initializing the class. - All further options are now set up to be passed in a single
options
object during initialization. This will be good for any further additions. - Restructured how the
imageSelected
event is done as to make it a bit easier to use - see updated documentation on how to use that event. custom-file-container__image-preview__active
was changed tocustom-file-container__image-preview--active
to be inline with BEM style.- Added overflow to multiple image pane, so when there's a ton of images it doesn't just keep growing in height.
- Merged in #12 from @firstor - support for .gifs in both single and multiple previews.