FediInjectionProvider
Deprecated
The @fedibtc/ui library that provided this component is deprecated. Use the window.webln, window.nostr, and window.fedi APIs directly instead. See the Integration Guide for details.
The FediInjectionProvider was a React component that initialized and provided webln, nostr, and fedi APIs from the window object. The same APIs are now available directly on window when running inside Fedi's in-app browser.
Migration
Replace FediInjectionProvider usage with direct window API calls:
// Before (deprecated @fedibtc/ui)
// import { useFediInjection } from "@fedibtc/ui"
// const { webln, nostr, fedi } = useFediInjection()
// After (use window APIs directly)
await window.webln.enable()
const invoice = await window.webln.makeInvoice({ amount: 10 })
const pubkey = await window.nostr.getPublicKey()
const signedEvent = await window.nostr.signEvent(event)
const member = await window.fedi.getAuthenticatedMember()
const { notes } = await window.fedi.generateEcash({ amount: 10 })
See the Integration Guide for the complete API reference.