Releases: Dabolus/share-menu
Releases · Dabolus/share-menu
Version 5.1.0
Version 5.0.1
Tiny hotfix on a code example in the readme. If you have already installed the 5.0.0
, don't worry about updating right away. There are no code changes between the two versions.
Version 5.0.0
The component has been completely re-implemented from scratch to make it as modular and configurable as possible.
Breaking changes
- Now each target has its own web component that must be added as a child of the main
share-menu
component to be displayed. In this way, you can import only the targets that you need and exclude the rest from the bundle; - The design of the menu has been updated and now matches the one from Android 14 on Pixel devices;
- Together with the design changes, there were a lot of markup changes too. For this reason, many properties were added or changed;
- Each custom property has now been prefixed with
--sm-
to avoid accidental conflicts when declaring CSS variables globally; - Many many other changes. Please, check the updated readme for more information on how to use this new version of the menu.
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
4.0.0-rc.5
4.0.0-rc.5
4.0.0-rc.4
4.0.0-rc.4
4.0.0-rc.3
4.0.0-rc.3
4.0.0-rc.2
4.0.0-rc.2
4.0.0-rc.1
4.0.0-rc.1
Minified builds
This release provides a minified version for both module and IIFE version of the element to make it more easily usable in a non-bundler environment.