hirosystems / connect

A library for building excellent user experiences with Stacks.
https://connect.stacks.js.org
MIT License
76 stars 40 forks source link

feat: allow a custom provider to be passed to Connect methods #326

Closed janniks closed 1 year ago

janniks commented 1 year ago

This PR was published to npm with the alpha versions:

  • connect npm install @stacks/connect@7.3.2-alpha.111be12.0 --save-exact
  • connect-react npm install @stacks/connect-react@22.1.2-alpha.111be12.0 --save-exact
  • connect-ui npm install @stacks/connect-ui@6.1.2-alpha.111be12.0 --save-exact

Description

Allow a custom StacksProvider object to be passed into most Connect methods.

Example

import { authenticate } from '@stacks/connect';

// This will open only the Hiro Wallet
authenticate({ ...normalAuthOptions }, HiroWalletProvider); // <---

Type of Change

changeset-bot[bot] commented 1 year ago

⚠️ No Changeset found

Latest commit: 111be12d945b511be2fdce90f037a54b4757fed7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
connect-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 25, 2023 7:07pm