storacha-network / w3ui

👩‍🎤 Headless, type-safe, UI components for the next generation Web3.Storage APIs.
Other
63 stars 25 forks source link

feat: simplify #591

Closed alanshaw closed 7 months ago

alanshaw commented 7 months ago

This PR introduces 2 new packages that we can switch to using provided they look good to folks.

  1. @w3ui/core - basically a createClient method and an interface for the core reactive state.
  2. @w3ui/react - React adapter that provides a Provider for the core reactive state and some React based headless components that use the Provider.

Eventually we would have a @w3ui/solid and @w3ui/vue...

Rationale

I wanted to add space usage reports and filecoin info but had to update the access client and w3up-client. This meant that I would have had to make many breaking changes to the old modules, which were exposing methods like createSpace etc. - which are essentially proxies for client methods...Instead I thought that a clean slate that allowed us to more easily update the client in the future without causing massive refactors in w3ui would be beneficial.

Goals

Non-goals