Skip to content

Commit f606c86

Browse files
authored
Merge pull request #73 from blocknative/develop
Release 0.2.9
2 parents f48cdfc + 4657e5d commit f606c86

19 files changed

+1425
-217
lines changed

.babelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets": [
3+
["@babel/env", { "modules": false, "useBuiltIns": "entry", "corejs": 3 }]
4+
]
5+
}

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
- run: sudo npm i -g npm-cli-login
2929
- run: NPM_USER=$NPM_USERNAME NPM_EMAIL=$NPM_EMAIL NPM_PASS=$NPM_PASSWORD npm-cli-login
3030
- run: npm publish --dry-run
31-
- run: gzip -9 ./dist/bnc-onboard.js
32-
- run: mv ./dist/bnc-onboard.js.gz ./dist/bnc-onboard.js
31+
- run: gzip -9 ./dist/onboard.umd.js
32+
- run: mv ./dist/onboard.umd.js.gz ./dist/onboard.umd.js
3333
- run: ls -al
3434
- run: echo export VERSION=`awk '/version/{gsub(/("|",)/,"",$2);print $2};' package.json | sed 's/\./-/g'` >> $BASH_ENV
3535
- run: mkdir /root/project/deploy-temp
@@ -48,8 +48,8 @@ jobs:
4848
- run: sudo npm i -g add npm-cli-login
4949
- run: NPM_USER=$NPM_USERNAME NPM_EMAIL=$NPM_EMAIL NPM_PASS=$NPM_PASSWORD npm-cli-login
5050
- run: npm publish
51-
- run: gzip -9 ./dist/bnc-onboard.js
52-
- run: mv ./dist/bnc-onboard.js.gz ./dist/bnc-onboard.js
51+
- run: gzip -9 ./dist/onboard.umd.js
52+
- run: mv ./dist/onboard.umd.js.gz ./dist/onboard.umd.js
5353
- run: ls -al
5454
- run: echo export VERSION=`awk '/version/{gsub(/("|",)/,"",$2);print $2};' package.json | sed 's/\./-/g'` >> $BASH_ENV
5555
- run: mkdir /root/project/deploy-temp

package.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "bnc-onboard",
3-
"version": "0.2.8",
3+
"version": "0.2.9",
44
"description": "Onboard users to web3 by allowing them to select a wallet, get that wallet ready to transact and have access to synced wallet state.",
55
"keywords": [
66
"ethereum",
77
"web3",
88
"blocknative",
99
"wallet"
1010
],
11-
"main": "dist/bnc-onboard.js",
12-
"module": "dist/bnc-onboard.es5.js",
11+
"main": "dist/onboard.umd.js",
12+
"module": "dist/onboard.esm.js",
1313
"typings": "dist/src/onboard.d.ts",
1414
"files": [
1515
"dist"
@@ -21,17 +21,20 @@
2121
},
2222
"license": "MIT",
2323
"devDependencies": {
24+
"@babel/cli": "^7.7.0",
25+
"@babel/core": "^7.5.5",
26+
"@babel/preset-env": "^7.5.5",
27+
"@joseph184/rollup-plugin-node-builtins": "^2.1.4",
2428
"@pyoner/svelte-ts-preprocess": "^1.2.1",
29+
"@rollup/plugin-json": "^4.0.0",
2530
"@types/node": "^12.12.3",
26-
"@joseph184/rollup-plugin-node-builtins": "^2.1.4",
31+
"babel-plugin-external-helpers": "^6.18.0",
2732
"rollup": "^1.12.0",
2833
"rollup-plugin-commonjs": "^10.0.0",
2934
"rollup-plugin-img": "^1.1.0",
30-
"rollup-plugin-json": "^4.0.0",
3135
"rollup-plugin-node-globals": "^1.4.0",
3236
"rollup-plugin-node-resolve": "^5.2.0",
3337
"rollup-plugin-svelte": "^5.0.3",
34-
"rollup-plugin-terser": "^4.0.4",
3538
"rollup-plugin-typescript2": "0.21.0",
3639
"svelte": "^3.12.1",
3740
"svelte-i18n": "^1.1.2-beta",
@@ -49,7 +52,7 @@
4952
"squarelink": "^1.1.3"
5053
},
5154
"scripts": {
52-
"build": "rollup -c",
55+
"build": "rollup -c && babel dist/onboard.esm.js --out-file dist/onboard.esm.js && babel dist/onboard.umd.js --out-file dist/onboard.umd.js --minified",
5356
"test": "echo \"TBD\" && exit 0"
5457
}
5558
}

rollup.config.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import svelte from "rollup-plugin-svelte"
22
import resolve from "rollup-plugin-node-resolve"
3-
import json from "rollup-plugin-json"
3+
import json from "@rollup/plugin-json"
44
import image from "rollup-plugin-img"
55
import commonjs from "rollup-plugin-commonjs"
66
import globals from "rollup-plugin-node-globals"
77
import builtins from "@joseph184/rollup-plugin-node-builtins"
8-
import { terser } from "rollup-plugin-terser"
98
import typescript from "rollup-plugin-typescript2"
109

1110
import {
@@ -28,10 +27,9 @@ export default [
2827
{
2928
input: "src/onboard.ts",
3029
output: {
31-
sourcemap: true,
3230
format: "umd",
3331
name: "onboard",
34-
file: "dist/bnc-onboard.js"
32+
file: "dist/onboard.umd.js"
3533
},
3634
moduleContext: id => {
3735
const thisAsWindowForModules = [
@@ -58,16 +56,14 @@ export default [
5856
commonjs(),
5957
globals(),
6058
builtins(),
61-
typescript(),
62-
terser()
59+
typescript()
6360
]
6461
},
6562
{
6663
input: "src/onboard.ts",
6764
output: {
68-
sourcemap: true,
6965
format: "es",
70-
file: "dist/bnc-onboard.es5.js"
66+
file: "dist/onboard.esm.js"
7167
},
7268
moduleContext: id => {
7369
const thisAsWindowForModules = [

src/components/Modal.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
/* .bn-onboard-modal */
1212
aside {
1313
display: flex;
14+
font-family: "Helvetica Neue";
1415
justify-content: center;
1516
align-items: center;
1617
position: absolute;
@@ -53,6 +54,7 @@
5354
top: 1.33em;
5455
right: 1.33em;
5556
font-size: inherit;
57+
font-family: inherit;
5658
border-radius: 5px;
5759
transition: background 200ms ease-in-out;
5860
display: flex;

src/components/ModalHeader.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
display: flex;
1111
align-items: center;
1212
font-size: inherit;
13-
margin-bottom: 0.66em;
13+
font-family: inherit;
1414
}
1515
1616
/* .bn-onboard-modal-content-header-icon */
@@ -19,16 +19,17 @@
1919
justify-content: center;
2020
align-items: center;
2121
font-size: inherit;
22+
font-family: inherit;
2223
padding: 0.6em;
2324
border-radius: 30px;
2425
background: #eeeeee;
2526
}
2627
2728
/* .bn-onboard-modal-content-header-heading */
2829
h3 {
29-
font-family: "Helvetica Neue";
3030
font-weight: bold;
3131
font-size: 1.33em;
32+
font-family: inherit;
3233
margin: 0 0 0 0.5em;
3334
}
3435
</style>

src/components/SelectedWallet.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@
1212
section {
1313
color: inherit;
1414
font-size: inherit;
15+
font-family: inherit;
1516
display: block;
1617
}
1718
1819
footer {
1920
display: flex;
2021
font-size: inherit;
22+
font-family: inherit;
2123
justify-content: space-between;
2224
}
2325
</style>

src/components/Wallets.svelte

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
flex-flow: row wrap;
1717
align-items: center;
1818
list-style-type: none;
19-
margin: 1em 0 0.66em 0;
19+
margin: 1em 0;
2020
max-height: 66vh;
2121
overflow-y: scroll;
2222
padding: 0;
@@ -27,18 +27,24 @@
2727
box-sizing: border-box;
2828
}
2929
30+
ul li {
31+
padding: 0 0.25em;
32+
}
33+
3034
div {
3135
width: 100%;
3236
display: flex;
3337
font-size: inherit;
38+
font-family: inherit;
3439
justify-content: center;
40+
margin-top: 1em;
3541
}
3642
3743
::-webkit-scrollbar {
3844
display: none;
3945
}
4046
41-
@media only screen and (max-width: 700px) {
47+
@media only screen and (max-width: 450px) {
4248
ul li {
4349
width: 100%;
4450
}
@@ -62,7 +68,7 @@
6268

6369
{#if modalData.secondaryWallets && !showingAllWalletModules}
6470
<div>
65-
<Button highlight={true} onclick={() => (showingAllWalletModules = true)}>
71+
<Button onclick={() => (showingAllWalletModules = true)}>
6672
Show More
6773
</Button>
6874
</div>

src/elements/Button.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<script lang="ts">
22
import { app } from "../stores";
3-
export let highlight: boolean = false;
43
export let onclick: () => void = () => {};
54
</script>
65

76
<style>
87
button {
98
background: inherit;
109
font-size: 0.889em;
10+
font-family: inherit;
1111
border: 1px solid #4a90e2;
1212
border-radius: 40px;
1313
padding: 0.55em 1.4em;

src/elements/IconButton.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
height: 40px;
4242
width: 40px;
4343
line-height: 40px;
44+
font-family: inherit;
4445
}
4546
4647
img {
@@ -50,12 +51,14 @@
5051
}
5152
5253
span {
54+
font-size: inherit;
5355
margin-left: 0.66em;
5456
font-weight: bold;
5557
text-align: left;
58+
font-family: inherit;
5659
}
5760
58-
@media only screen and (max-width: 700px) {
61+
@media only screen and (max-width: 450px) {
5962
button {
6063
width: 100%;
6164
}

0 commit comments

Comments
 (0)