Skip to content

Commit

Permalink
Removing kit-connectors package and moving connectors into kit core (#99
Browse files Browse the repository at this point in the history
)
  • Loading branch information
corbanbrook authored Jul 12, 2024
1 parent f4c7aa5 commit adff797
Show file tree
Hide file tree
Showing 62 changed files with 321 additions and 909 deletions.
14 changes: 2 additions & 12 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "0xsequence/kit" }
],
"changelog": ["@changesets/changelog-github", { "repo": "0xsequence/kit" }],
"commit": false,
"linked": [],
"fixed": [
[
"@0xsequence/kit",
"@0xsequence/kit-connectors",
"@0xsequence/kit-checkout",
"@0xsequence/kit-wallet"
]
],
"fixed": [["@0xsequence/kit", "@0xsequence/kit-checkout", "@0xsequence/kit-wallet"]],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
Expand Down
21 changes: 9 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ View the [demo](https://0xsequence.github.io/kit)! 👀
To install this package:

```bash
npm install @0xsequence/kit @0xsequence/kit-connectors wagmi [email protected] viem 0xsequence @tanstack/react-query
npm install @0xsequence/kit wagmi [email protected] viem 0xsequence @tanstack/react-query
# or
pnpm install @0xsequence/kit @0xsequence/kit-connectors wagmi [email protected] viem 0xsequence @tanstack/react-query
pnpm install @0xsequence/kit wagmi [email protected] viem 0xsequence @tanstack/react-query
# or
yarn add @0xsequence/kit @0xsequence/kit-connectors wagmi [email protected] viem 0xsequence @tanstack/react-query
yarn add @0xsequence/kit wagmi [email protected] viem 0xsequence @tanstack/react-query
```

### Setting up the Library
Expand All @@ -33,8 +33,7 @@ React apps must be wrapped by a Wagmi client and the KitWalletProvider component

```js
import MyPage from './components/MyPage'
import { KitProvider } from '@0xsequence/kit'
import { getDefaultConnectors } from '@0xsequence/kit-connectors'
import { KitProvider, getDefaultConnectors } from '@0xsequence/kit'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import { createConfig, http, WagmiProvider } from 'wagmi'
import { mainnet, polygon, Chain } from 'wagmi/chains'
Expand Down Expand Up @@ -164,12 +163,11 @@ The settings are described in more detailed in the Sequence Kit documentation.

## Packages

| Package | Description | Docs |
| ----------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| [@0xsequence/kit](https://github.com/0xsequence/kit/tree/master/packages/kit) | Core package for Sequence Kit | [Read more](https://github.com/0xsequence/kit/blob/master/packages/kit/README.md) |
| [@0xsequence/kit-connectors](https://github.com/0xsequence/kit/tree/master/packages/connectors) | Connectors for sequence kit including popular web3 wallets and social logins | [Read more](https://github.com/0xsequence/kit/blob/master/packages/connectors/README.md) |
| [@0xsequence/kit-wallet](https://github.com/0xsequence/kit/tree/master/packages/wallet) | Embedded wallets for viewing and sending coins and collectibles | [Read more](https://github.com/0xsequence/kit/blob/master/packages/wallet/README.md) |
| [@0xsequence/kit-checkout](https://github.com/0xsequence/kit/tree/master/packages/checkout) | Checkout modal with fiat onramp | [Read more](https://github.com/0xsequence/kit/blob/master/packages/checkout/README.md) |
| Package | Description | Docs |
| ------------------------------------------------------------------------------------------- | --------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| [@0xsequence/kit](https://github.com/0xsequence/kit/tree/master/packages/kit) | Core package for Sequence Kit | [Read more](https://github.com/0xsequence/kit/blob/master/packages/kit/README.md) |
| [@0xsequence/kit-wallet](https://github.com/0xsequence/kit/tree/master/packages/wallet) | Embedded wallets for viewing and sending coins and collectibles | [Read more](https://github.com/0xsequence/kit/blob/master/packages/wallet/README.md) |
| [@0xsequence/kit-checkout](https://github.com/0xsequence/kit/tree/master/packages/checkout) | Checkout modal with fiat onramp | [Read more](https://github.com/0xsequence/kit/blob/master/packages/checkout/README.md) |

## Examples

Expand All @@ -191,7 +189,6 @@ The React example can be used to test the library locally.
```js
"@0xsequence/kit": "workspace:*",
"@0xsequence/kit-checkout": "workspace:*",
"@0xsequence/kit-connectors": "workspace:*",
"@0xsequence/kit-wallet": "workspace:*",
```

Expand Down
2 changes: 1 addition & 1 deletion examples/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"peerDependencies": {
"@0xsequence/design-system": ">= 1.7.3",
"@0xsequence/network": "*",
"@0xsequence/network": ">= 1.9.36",
"wagmi": "*"
},
"private": true
Expand Down
3 changes: 1 addition & 2 deletions examples/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
"@0xsequence/design-system": "^1.7.3",
"@0xsequence/kit": "workspace:*",
"@0xsequence/kit-checkout": "workspace:*",
"@0xsequence/kit-connectors": "workspace:*",
"@0xsequence/kit-wallet": "workspace:*",
"@0xsequence/kit-example-shared-components": "workspace:*",
"@0xsequence/network": "^1.9.34",
"@0xsequence/network": "^1.9.36",
"@tanstack/react-query": "^5.37.1",
"next": "14.2.3",
"react": "^18.3.1",
Expand Down
3 changes: 1 addition & 2 deletions examples/next/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { KitConfig, getKitConnectWallets } from '@0xsequence/kit'
import { getDefaultConnectors, getDefaultWaasConnectors, mock } from '@0xsequence/kit-connectors'
import { KitConfig, getKitConnectWallets, getDefaultConnectors, getDefaultWaasConnectors, mock } from '@0xsequence/kit'
import { findNetworkConfig, allNetworks } from '@0xsequence/network'
import { Transport, zeroAddress } from 'viem'
import { cookieStorage, createConfig, createStorage, http } from 'wagmi'
Expand Down
3 changes: 1 addition & 2 deletions examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
"@0xsequence/design-system": "^1.7.3",
"@0xsequence/kit": "workspace:*",
"@0xsequence/kit-checkout": "workspace:*",
"@0xsequence/kit-connectors": "workspace:*",
"@0xsequence/kit-wallet": "workspace:*",
"@0xsequence/kit-example-shared-components": "workspace:*",
"@0xsequence/network": "^1.9.34",
"@0xsequence/network": "^1.9.36",
"@tanstack/react-query": "^5.37.1",
"framer-motion": "^8.5.2",
"react": "^18.3.1",
Expand Down
3 changes: 1 addition & 2 deletions examples/react/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { KitConfig, getKitConnectWallets } from '@0xsequence/kit'
import { getDefaultConnectors, getDefaultWaasConnectors, mock } from '@0xsequence/kit-connectors'
import { KitConfig, getKitConnectWallets, getDefaultConnectors, getDefaultWaasConnectors, mock } from '@0xsequence/kit'
import { findNetworkConfig, allNetworks } from '@0xsequence/network'
import { Transport, zeroAddress } from 'viem'
import { createConfig, http } from 'wagmi'
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
},
"devDependencies": {
"@0xsequence/kit": "workspace:*",
"@0xsequence/kit-connectors": "workspace:*",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.25.2",
"@types/node": "^20.12.12",
Expand Down
10 changes: 5 additions & 5 deletions packages/checkout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@0xsequence/api": "^1.9.34",
"@0xsequence/indexer": "^1.9.34",
"@0xsequence/metadata": "^1.9.34",
"@0xsequence/network": "^1.9.34",
"@0xsequence/api": "^1.9.36",
"@0xsequence/indexer": "^1.9.36",
"@0xsequence/metadata": "^1.9.36",
"@0xsequence/network": "^1.9.36",
"@paperxyz/react-client-sdk": "^1.1.3",
"@tanstack/react-query": "^5.37.1",
"0xsequence": "^1.9.34",
"0xsequence": "^1.9.36",
"react-copy-to-clipboard": "^5.1.0"
},
"peerDependencies": {
Expand Down
233 changes: 0 additions & 233 deletions packages/connectors/CHANGELOG.md

This file was deleted.

Loading

0 comments on commit adff797

Please sign in to comment.