Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs Release Favicon Update #1613

Merged
merged 6 commits into from
Mar 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
2 changes: 1 addition & 1 deletion docs/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/x-icon" href="%sveltekit.assets%/favicon.png" />
<link rel="icon" type="image/x-icon" href="https://www.blocknative.com/hubfs/Icons%20and%20Illustrations/blocknative%20favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%

Expand Down
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.

2 changes: 1 addition & 1 deletion docs/src/routes/docs/[...4]wallets/injected.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Injected Wallets

This module lets web3-onboard automatically detect Browser Injected Wallets such as Metamask or Coinbase Wallet. We recommend you install this module to get the most out of your w3o implementation. This module supports [EIP-1193](https://eips.ethereum.org/EIPS/eip-1193) and [recognizes many injected wallets natively](https://onboard.blocknative.com/docs/packages/injected#injected-wallets-supported-natively).
This module lets web3-onboard automatically detect Browser Injected Wallets such as Metamask or Coinbase Wallet. We recommend you install this module to get the most out of your w3o implementation. This module supports [EIP-1193](https://eips.ethereum.org/EIPS/eip-1193) and [recognizes many injected wallets natively](#injected-wallets-supported-natively).

Note: Make sure to install the core module before installing other modules to w3o.

Expand Down
Binary file removed docs/static/favicon.png
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10809,4 +10809,4 @@ yn@3.1.1:
yocto-queue@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
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