Skip to content

Commit

Permalink
release 0.5.2 (#87)
Browse files Browse the repository at this point in the history
* added uuid for each transaction, general refactoring (#71)

* added uuid for each transaction, general refactoring

* update to version 0.5.1

* Filter the state object (#68)

* Filtered the state object returned from getState to just the essential pieces of state that would be required by a dapp dev

* added missing parameter minimumBalance and reordered parameters in readme

* fixed image bug for browser onboarding (#75)

* added check to not render iframe if user is on mobile and mobile isn't blocked so that touch events work correctly on mobile (#74)

* made txRepeat notification persist when txConfirmReminder notification is shown (#78)

* Added inline custom tx messages (#79)

* Enhancement/dark mode option (#77)

* added darkMode option to config

* Added new light blocknative logo, made sure basic modal is set to dark mode as well

* fixed focus text color

* added new darkmode assets for browser and mobile not supported modals

* Enhancement/position notifications (#81)

* Added config option to position transaction notifications

* subtle tweaks to UI

* fixed typo in readme

* fixed transaction timer bug (#83)

* fixed destructuring so that it wouldn't error when no style property in the provided config (#86)

* update to 0.5.2
  • Loading branch information
cmeisl authored Apr 11, 2019
1 parent b97445a commit 89b395b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ yarn add bnc-assist
#### Script Tag

The library uses [semantic versioning](https://semver.org/spec/v2.0.0.html).
The current version is 0.5.1.
The current version is 0.5.2.
There are minified and non-minified versions.
Put this script at the top of your `<head>`

```html
<script src="https://assist.blocknative.com/0-5-1/assist.js"></script>
<script src="https://assist.blocknative.com/0-5-2/assist.js"></script>

<!-- OR... -->

<script src="https://assist.blocknative.com/0-5-1/assist.min.js"></script>
<script src="https://assist.blocknative.com/0-5-2/assist.min.js"></script>
```

### Initialize the Library
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bnc-assist",
"version": "0.5.1",
"version": "0.5.2",
"description": "Blocknative Assist js library for Dapp developers",
"main": "lib/assist.min.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
import assistStyles from '../css/styles.css'

// Library Version - if changing, also need to change in package.json
const version = '0.5.1'
const version = '0.5.2'

function init(config) {
updateState({ version })
Expand Down
7 changes: 5 additions & 2 deletions src/js/views/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ export function browserLogos() {

export function onboardBranding() {
const { blockNativeLogo, blockNativeLogoLight } = imageSrc
const { darkMode } = state.config.style
const { style } = state.config
const darkMode = style && style.darkMode

return `
<div class="bn-onboarding-branding">
<p>Powered by
Expand All @@ -141,7 +143,8 @@ export function onboardBranding() {

export function notSupportedModal(type) {
const info = notSupported[`${type}NotSupported`]
const { darkMode } = state.config.style
const { style } = state.config
const darkMode = style && style.darkMode

return `
<div id="bn-${type}-not-supported" class="bn-onboard">
Expand Down

0 comments on commit 89b395b

Please sign in to comment.