Skip to content

Commit

Permalink
Merge pull request #452 from near/dev
Browse files Browse the repository at this point in the history
v7.0.2 Release (dev -> main)
  • Loading branch information
DamirSQA authored Sep 12, 2022
2 parents a78588b + b9ca53b commit d4c1566
Show file tree
Hide file tree
Showing 19 changed files with 49 additions and 32 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "near-wallet-selector",
"version": "7.0.1",
"version": "7.0.2",
"description": "NEAR Wallet Selector makes it easy for users to interact with your dApp by providing an abstraction over various wallets within the NEAR ecosystem",
"keywords": [
"near",
Expand Down Expand Up @@ -154,4 +154,4 @@
"typescript": "~4.7.2",
"uuid": "^8.3.2"
}
}
}
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@near-wallet-selector/core",
"version": "7.0.1",
"version": "7.0.2",
"peerDependencies": {
"near-api-js": "^0.44.2"
}
}
}
4 changes: 2 additions & 2 deletions packages/default-wallets/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@near-wallet-selector/default-wallets",
"version": "7.0.1"
}
"version": "7.0.2"
}
4 changes: 2 additions & 2 deletions packages/ledger/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@near-wallet-selector/ledger",
"version": "7.0.1",
"version": "7.0.2",
"peerDependencies": {
"near-api-js": "^0.44.2"
}
}
}
4 changes: 2 additions & 2 deletions packages/math-wallet/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@near-wallet-selector/math-wallet",
"version": "7.0.1",
"version": "7.0.2",
"peerDependencies": {
"near-api-js": "^0.44.2"
}
}
}
4 changes: 2 additions & 2 deletions packages/meteor-wallet/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@near-wallet-selector/meteor-wallet",
"version": "7.0.1",
"version": "7.0.2",
"peerDependencies": {
"near-api-js": "^0.44.2"
}
}
}
4 changes: 2 additions & 2 deletions packages/modal-ui-js/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@near-wallet-selector/modal-ui-js",
"version": "7.0.1"
}
"version": "7.0.2"
}
6 changes: 5 additions & 1 deletion packages/modal-ui-js/src/lib/components/GetAWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ export async function renderGetAWallet() {
</div>
`;

const filteredModules = modalState.modules.slice(0, 3);
const filterByType = (item: { type: string }) => {
return item.type !== "bridge" && item.type !== "hardware";
};

const filteredModules = modalState.modules.filter(filterByType).slice(0, 3);

for (let i = 0; i < filteredModules.length; i++) {
document.getElementById("wallets")?.insertAdjacentHTML(
Expand Down
4 changes: 4 additions & 0 deletions packages/modal-ui-js/src/lib/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1117,6 +1117,10 @@
text-align: center;
}

.nws-modal-wrapper .nws-modal .nws-modal-body button.get-wallet {
background-color: var(--wallet-selector-home-button-bg, var(--content-bg));
}

.nws-modal-wrapper .wallet-not-installed-wrapper>p {
margin: 20px 0px 30px 0px;
max-width: 500px;
Expand Down
4 changes: 2 additions & 2 deletions packages/modal-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@near-wallet-selector/modal-ui",
"version": "7.0.1"
}
"version": "7.0.2"
}
6 changes: 5 additions & 1 deletion packages/modal-ui/src/lib/components/WalletHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ export const WalletHome: React.FC<WalletHomeProps> = ({

useEffect(() => {
const subscription = selector.store.observable.subscribe((state) => {
const filteredModules = state.modules.slice(0, 3);
const filterByType = (item: { type: string }) => {
return item.type !== "bridge" && item.type !== "hardware";
};

const filteredModules = state.modules.filter(filterByType).slice(0, 3);

setModules(filteredModules);
});
Expand Down
5 changes: 5 additions & 0 deletions packages/modal-ui/src/lib/components/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,7 @@


@media (max-width: 768px) {

.nws-modal-wrapper .nws-modal .wallet-home-wrapper .wallet-info-wrapper {
margin-top: 45px;
}
Expand Down Expand Up @@ -1120,6 +1121,10 @@
max-width: 500px;
}

.nws-modal-wrapper .nws-modal .nws-modal-body button.get-wallet {
background-color: var(--wallet-selector-home-button-bg, var(--content-bg));
}

.nws-modal-wrapper .nws-modal .modal-right .nws-modal-body .what-wallet-hide {
display: none;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/my-near-wallet/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@near-wallet-selector/my-near-wallet",
"version": "7.0.1",
"version": "7.0.2",
"peerDependencies": {
"near-api-js": "^0.44.2"
}
}
}
4 changes: 2 additions & 2 deletions packages/near-wallet/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@near-wallet-selector/near-wallet",
"version": "7.0.1"
}
"version": "7.0.2"
}
4 changes: 2 additions & 2 deletions packages/nightly-connect/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@near-wallet-selector/nightly-connect",
"version": "7.0.1",
"version": "7.0.2",
"peerDependencies": {
"near-api-js": "^0.44.2"
}
}
}
4 changes: 2 additions & 2 deletions packages/nightly/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@near-wallet-selector/nightly",
"version": "7.0.1",
"version": "7.0.2",
"peerDependencies": {
"near-api-js": "^0.44.2"
}
}
}
4 changes: 2 additions & 2 deletions packages/sender/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@near-wallet-selector/sender",
"version": "7.0.1",
"version": "7.0.2",
"peerDependencies": {
"near-api-js": "^0.44.2"
}
}
}
4 changes: 2 additions & 2 deletions packages/wallet-connect/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@near-wallet-selector/wallet-connect",
"version": "7.0.1"
}
"version": "7.0.2"
}
4 changes: 2 additions & 2 deletions packages/wallet-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@near-wallet-selector/wallet-utils",
"version": "7.0.1",
"version": "7.0.2",
"peerDependencies": {
"near-api-js": "^0.44.2"
}
}
}

0 comments on commit d4c1566

Please sign in to comment.