FEATURE: Make share button support custom javascript (PR #8090)

Support to add the clickHandler method to handle the share button onclick event by custom javascript.

GitHub

You’ve signed the CLA, hawm. Thank you! This pull request is ready for review.

Can you make sure this passes our linting please?

Thanks!