Catalog npm
Back to packageRELEASE DETAILS

1.0.10

npm

@0xfutbol/id

0xFutbol ID

identityprovidersreactweb3
Published11 Dec 2024
Direct dependencies4
Transitive dependenciesNot calculated

README

Current package documentation

@0xfutbol/id

A React component library with shared providers for 0xFutbol ID.

Installation

npm install @0xfutbol/id
# or
yarn add @0xfutbol/id
# or
pnpm add @0xfutbol/id

Usage

Basic Usage

import { OxFutbolIdProvider } from '@0xfutbol/id';
import '@0xfutbol/id/css'; // Import CSS if needed

function App() {
  return (
    <OxFutbolIdProvider>
      <YourApp />
    </OxFutbolIdProvider>
  );
}

Advanced Usage

import { OxFutbolIdProvider } from '@0xfutbol/id';
import { QueryClient } from '@tanstack/react-query';
import '@0xfutbol/id/css';

// Create a custom QueryClient
const queryClient = new QueryClient({
  defaultOptions: {
    queries: {
      staleTime: 5 * 60 * 1000, // 5 minutes
    },
  },
});

// Custom loading component
const LoadingSpinner = () => <div>Loading...</div>;

function App() {
  return (
    <OxFutbolIdProvider
      queryClient={queryClient}
      loadingComponent={<LoadingSpinner />}
      matchAppId="your-custom-app-id"
      matchWalletType="UserPasscode"
      thirdwebConfig={{
        // ThirdwebProvider configuration
        clientId: "your-client-id",
      }}
    >
      <YourApp />
    </OxFutbolIdProvider>
  );
}

API Reference

OxFutbolIdProvider

The main provider component that wraps your application.

Props

PropTypeDefaultDescription
childrenReact.ReactNode(required)The content to be wrapped by the provider
queryClientQueryClientnew QueryClient()Custom QueryClient instance
loadingComponentReact.ReactNodeCustom loading component
matchAppIdstring"pnh3wxqoqilsa1zy"MatchProvider appId
matchWalletType"Base" | "UserPasscode""Base"MatchProvider wallet type
thirdwebConfigThirdwebProviderProps{}ThirdwebProvider configuration

Peer Dependencies

This library has the following peer dependencies:

  • React (^16.8.0 || ^17.0.0 || ^18.0.0)
  • React DOM (^16.8.0 || ^17.0.0 || ^18.0.0)
  • @tanstack/react-query (^4.0.0 || ^5.0.0)
  • @rainbow-me/rainbowkit (^2.0.0) (optional)

License

ISC

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 4

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
ethers
Environment
{
  "local_name": "ethers",
  "alias": false,
  "peer_metadata": null
}
^6.13.2runtime
jsonwebtoken
Environment
{
  "local_name": "jsonwebtoken",
  "alias": false,
  "peer_metadata": null
}
^9.0.2runtime
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.6.2development
@types/jsonwebtoken
Environment
{
  "local_name": "@types/jsonwebtoken",
  "alias": false,
  "peer_metadata": null
}
^9.0.6development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "0d8b12d94c34c560f064b7324f088ac34f546e34",
  "tarball": "https://registry.npmjs.org/@0xfutbol/id/-/id-1.0.10.tgz",
  "fileCount": 6,
  "integrity": "sha512-edXWrqStjxJ4ri5ZeTLivr5agzhDGZ3NMCkIxeDb9srNB56MVM1niCj8UMGyDVydfnYguT9NEb/Hs0WxEDfmWA==",
  "signatures": [
    {
      "sig": "MEUCIQDbqtxS0b3jDDxJZMZZ8P/55H5efGBSCkIh9VBkasiSxgIgLAHwr5MFZmRVi3slmvY/HWkJi1IXlV5kMriKOJV0sJc=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 15168
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:38 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:fbb7eec02bca7aa7c8557a6cf015bf502437cfb2cbe3da8a10cf44153f99307e

Other collected versions

2.0.20023 Dec2.0.19916 Dec2.0.19415 Dec2.0.19315 Dec2.0.19215 Dec2.0.19115 DecView all collected versions →