From 89b395bae631bbd2e23c1cdebef15a6403b516de Mon Sep 17 00:00:00 2001 From: Chris Meisl Date: Wed, 10 Apr 2019 19:34:47 -0600 Subject: [PATCH] release 0.5.2 (#87) * 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 --- README.md | 6 +++--- package.json | 2 +- src/js/index.js | 2 +- src/js/views/dom.js | 7 +++++-- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f3fe07a8..b13c3e8d 100644 --- a/README.md +++ b/README.md @@ -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 `` ```html - + - + ``` ### Initialize the Library diff --git a/package.json b/package.json index f7a85480..d043f33f 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/js/index.js b/src/js/index.js index 7c39f6a1..0f42b734 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -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 }) diff --git a/src/js/views/dom.js b/src/js/views/dom.js index f742f712..3f951d7b 100644 --- a/src/js/views/dom.js +++ b/src/js/views/dom.js @@ -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 `

Powered by @@ -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 `