Repository navigation
Add requested options and networks after v6 - #589
Merged
Merged
Conversation
X's intent endpoint accepts a post with only text, but XShareButton and buildXShareUrl required a url. Allow the url to be omitted as long as text is set. Requested in #570. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Allow prefilling the recipient of the mailto link with one address or an array of addresses, in EmailShareButton and buildEmailShareUrl. This matches the existing `to` prop on FacebookMessengerShareButton. Requested in #418. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Allow addressing the share to a specific number by passing a phone in international format. Non-digit characters are stripped, and the number is added to both the web (api.whatsapp.com) and the app (whatsapp://) links. Requested in #359. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
For post types other than `link`, Tumblr reads the actual post data, such as the quote text, from `content`. Add it to TumblrShareButton and buildTumblrShareUrl, and list the documented post types for `posttype`. Re-implements #564 on top of the v6 prop names, since the original no longer applied after `title` became `postTitle`. Co-Authored-By: Maddy Miller <git@madelinemiller.dev> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Some apps prefer a regular browser tab over a sized popup window. Add `openInNewTab` to popup-based share buttons and a matching `newTab` option to `openShareWindow`. It also works with an async `beforeOnClick`, where the blank tab is opened synchronously and loaded afterwards. Proposed in #342 and requested in #449. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Farcaster (formerly Warpcast) documents a compose intent at farcaster.xyz/~/compose that takes text, embeds, channelKey and parentCastHash. Add a share button that attaches the shared URL as an embed, along with raw and legacy icons (glyph from Simple Icons, CC0), the build helper, demo entry and docs. Requested in #558. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Two recurring requests are not covered by the share buttons: sharing to a network the library has no button for, and preparing the share URL (such as a short link) after the click. Document how to do both with openShareWindow and the build*ShareUrl helpers. Related to #150, #216, #256 and #336. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 07af86b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to v6 that implements small, frequently requested features from the issue and PR backlog. Each commit is self-contained and has its own changeset (all minor).
Changes
urlis optional whentextis set, for text-only posts (Don't require URL parameter for X #570).toprop, one address or an array (Can I specify the recipient address on EmailShareButton #418).phoneprop in international format; non-digits are stripped; applies to the web and app links (Add option to share to specific whatsapp phone number or email address #359).contentprop and the otherposttypevalues. Re-implements feat(tumblr): add support for content field #564 on the v6 prop names (@me4502 is credited as co-author).openInNewTabprop andnewTaboption foropenShareWindow, to open a regular tab instead of a popup window. Also works with an asyncbeforeOnClick(Added prop to open up a new tab instead of a new window #342, Please how can i open share on new tabs instead of windows? #449).FarcasterShareButton,FarcasterIcon,FarcasterLegacyIconandbuildFarcasterShareUrlusing the documented compose intent (Add support for Warpcast #558). Farcaster was formerly Warpcast.openShareWindowandbuild*ShareUrl(Expose utils/createShareButton #150, Create URL before share #216, Add ability to resolve share URL using a function #256, feat: Accept async function for URL prop #336).Notes for review
example.svgare updated.embeds[]is intentionally left unencoded in the Farcaster URL, matching the docs.Once this is released I'll close #564, #342, #336, #256, #216, and #150 with links to the new docs and options.