Skip to content

Commit

Permalink
Update Notify section on the docs site and within readme (#1612)
Browse files Browse the repository at this point in the history
* Update notify docs on docs site and within readme

* Update notify api docs

* Add screenshots

* Update signup link

* Remove export from types in docs
  • Loading branch information
Adamj1232 authored Mar 29, 2023
1 parent 10b07be commit 86726db
Show file tree
Hide file tree
Showing 12 changed files with 482 additions and 398 deletions.
Binary file added assets/notify-custom-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/notify-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/notify-preflight-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/lib/assets/notify-custom-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/lib/assets/notify-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/lib/assets/notify-preflight-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
257 changes: 181 additions & 76 deletions docs/src/routes/docs/[...3]modules/core.md

Large diffs are not rendered by default.

366 changes: 138 additions & 228 deletions docs/yarn.lock

Large diffs are not rendered by default.

226 changes: 136 additions & 90 deletions packages/core/README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/core",
"version": "2.16.0",
"version": "2.16.1-alpha.1",
"description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
"keywords": [
"Ethereum",
Expand Down
27 changes: 25 additions & 2 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,36 @@ export type NotifyOptions = {
export type Notification = {
id: string
key: string
type: NotificationType
network: Network
startTime?: number
eventCode: string
/**
* to completely customize the message shown
*/
message: string
/**
* handle codes in your own way - see codes here under the notify
* prop default en file at ./packages/core/src/i18n/en.json
*/
eventCode: string
/**
* icon type displayed (see `NotificationType` below for options)
*/
type: NotificationType
/**
* time (in ms) after which the notification will be dismissed. If set
* to `0` the notification will remain on screen until the user dismisses the
* notification, refreshes the page or navigates away from the site
* with the notifications
*/
autoDismiss: number
/**
* add link to the transaction hash. For instance, a link to the
* transaction on etherscan
*/
link?: string
/**
* onClick handler for when user clicks the notification element
*/
onClick?: (event: Event) => void
}

Expand Down
2 changes: 1 addition & 1 deletion packages/demo/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
// },
// Sign up for your free api key at www.Blocknative.com
apiKey,
theme: 'system'
// theme: 'system'
})
// Subscribe to wallet updates
Expand Down

0 comments on commit 86726db

Please sign in to comment.