Lot of code and bundle size improvements
BREAKING CHANGES:
social-click
event renamed toshare
- Social icons package now only contains the SVG paths data, not the entire SVG
browser
field onpackage.json
now points to the ESM version of the share menu, so that you can be sure that using a bare import specifier (i.e.import 'share-menu'
) you're going to get the module version instead of the IIFE version. To use the IIFE version, you will now need to import it explicitly (i.e.share-menu/share-menu.iife.js
)
Other changes:
- Now the automatic setting of title, text, and url properties can be avoided by assigning them an empty string (e.g.
<share-menu text=""></share-menu>
will avoid using the description meta tag content as text default value) - Added two new events:
close
anderror
- TypeScript typings improvements
- Styling support via CSS shadow parts
- Huge socials SVGs optimizations
- Bundle size reduction thanks to some code refactoring and bundler configuration tweaks
- Various bug fixes and code style and performance improvements
- Finally added a decent test suite to (possibly) avoid bugs and regressions