2.0.7 • Published 11 months ago

@peerme/extensions v2.0.7

Weekly downloads
-
License
-
Repository
github
Last release
11 months ago

Peerme Extensions

Extensions (Apps & Widgets) for the DAOs on peerme.io. For a general overview, please visit our Knowledge Base.

npm (scoped)

Available Extensions

Create your App

Please get in touch or create a Github Issue before starting to work on your integration!

Overview

  1. Fork this repository & work on it locally
  2. Make a copy of extensions/_template and adapt it to your needs
  3. Register your extension in extensions/config.ts
  4. Start & keep working inside this directory
  5. Create a pull request with your changes to this repository when done

Guidelines

  • Don't pull in any dependencies that are not absolutely necessary.
  • Only work inside the working directory of your extension

Installation

To install the repository run:

npm install

Run the Dev-Server

To start working, run the development server which opens a NextJs app with a development environment:

npm run dev

Framework

The Extension Framework provides developers with useful components & utilities to quickly develop their integrations.

By default, each App makes use of the useApp hook which exposes useful functions to hook into the main peerme.io application for DAOs:

  • app.requestProposalAction: assemble a transaction/smart contract call to be attached to a proposal
  • showToast(message, type): show a toast message to the user

To use these app hook functions in child components, simply pass it to them as a prop with type AppHook.

UI Components you can use from src/ui/elements:

  • <AppSection />: use to structure your app in sections

UI Components you can use from @peerme/web-ui:

Form components:

  • <Button />
  • <Input />
  • <Textarea />
  • <Editor />: use to collect formatted text input (HTML)
  • <Select />
  • <Dropdown />
  • <LinkButton />
  • <Pagination />
  • <RadioGroup />
  • <Switch />
  • <Slider />
  • <UserSelector />: use select a user (recommended when asking for e.g. blockchain address)
  • <EntitySelector />: use to select a registered DAO
  • <PaymentSelector />: use to select assets from the DAO Vault

User components:

  • <AddressPresenter />: use to show blockchain addresses with link to the MultiversX Explorer

Feedback components:

  • <Alert />
  • <Tooltip />

Loaders components:

  • <EllipsisLoader />
2.0.3

1 year ago

2.0.2

1 year ago

2.0.5

11 months ago

2.0.7

11 months ago

2.0.6

11 months ago

2.0.1

1 year ago

2.0.0

1 year ago

1.13.2

1 year ago

1.13.1

1 year ago

1.13.0

1 year ago

1.12.3

1 year ago

1.12.2

1 year ago

1.12.0

1 year ago

1.11.0

1 year ago

1.11.1

1 year ago

1.10.7

1 year ago

1.10.6

1 year ago

1.10.4

2 years ago

1.10.3

2 years ago

1.10.2

2 years ago

1.8.2

2 years ago

1.8.1

2 years ago

1.8.0

2 years ago

1.7.10

2 years ago

1.7.9

2 years ago

1.7.8

2 years ago

1.7.7

2 years ago

1.7.6

2 years ago

1.7.5

2 years ago

1.7.4

2 years ago

1.7.3

2 years ago

1.9.0

2 years ago

1.7.2

2 years ago

1.8.8

2 years ago

1.8.7

2 years ago

1.8.6

2 years ago

1.8.5

2 years ago

1.8.4

2 years ago

1.8.3

2 years ago

1.10.1

2 years ago

1.10.0

2 years ago

1.6.4

2 years ago

1.7.0

2 years ago

1.5.5

2 years ago

1.6.3

2 years ago

1.5.4

2 years ago

1.6.2

2 years ago

1.5.3

2 years ago

1.6.1

2 years ago

1.4.3

2 years ago

1.3.4

2 years ago

1.6.0

2 years ago

1.5.1

2 years ago

1.4.2

2 years ago

1.3.3

2 years ago

1.5.0

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.5.7

2 years ago

1.5.6

2 years ago

1.3.2

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago