diff --git a/package.json b/package.json index 613e49f04..eb29275d4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "near-wallet-selector", - "version": "8.1.1", + "version": "8.1.4", "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", @@ -88,11 +88,11 @@ "@ledgerhq/hw-transport": "6.27.1", "@ledgerhq/hw-transport-webhid": "6.27.1", "@metamask/detect-provider": "^2.0.0", - "@meteorwallet/sdk": "^0.6.0", + "@meteorwallet/sdk": "^0.8.0", "@nightlylabs/connect-near": "0.0.15", - "@walletconnect/sign-client": "2.7.2", + "@walletconnect/sign-client": "2.7.8", "@web3modal/standalone": "^2.2.2", - "better-sqlite3": "^8.2.0", + "better-sqlite3": "^8.4.0", "big.js": "^6.1.1", "bn.js": "^5.2.0", "bs58": "^5.0.0", @@ -115,7 +115,7 @@ "rxjs": "^7.8.1", "stream-browserify": "^3.0.0", "stream-http": "^3.2.0", - "tslib": "^2.3.0", + "tslib": "^2.5.2", "tweetnacl": "^1.0.3", "tweetnacl-util": "^0.15.1", "url": "^0.11.0", @@ -163,7 +163,7 @@ "@types/w3c-web-usb": "^1.0.5", "@typescript-eslint/eslint-plugin": "5.13.0", "@typescript-eslint/parser": "5.13.0", - "@walletconnect/types": "^2.7.2", + "@walletconnect/types": "^2.7.8", "babel-jest": "27.2.3", "cypress": "^9.1.0", "eslint": "~8.15.0", diff --git a/packages/account-export/README.md b/packages/account-export/README.md index 0b80f3ca0..77c081d49 100644 --- a/packages/account-export/README.md +++ b/packages/account-export/README.md @@ -1,6 +1,6 @@ # @near-wallet-selector/account-export -This is the Export Selector UI package for NEAR Wallet Selector. +This is the Account Export Selector UI package for NEAR Wallet Selector. ## Installation and Usage @@ -45,9 +45,14 @@ modal.show(); - `description` (`string?`): Define a custom description in the UI. - `onComplete` (`(accounts: Array) => void`): Triggers when the user completes the flow. By default it is not set. -## Styles & Customizing CSS +### Supported Wallets + - [Nightly Wallet](https://github.com/near/wallet-selector/blob/main/packages/nightly/src/lib/nightly.ts#L224) + - [Meteor Wallet](https://github.com/near/wallet-selector/blob/main/packages/meteor-wallet/src/lib/meteor-wallet.ts#L204) + - [Welldone Wallet](https://github.com/near/wallet-selector/blob/main/packages/welldone-wallet/src/lib/welldone.ts#L335) + - [Here Wallet](https://github.com/near/wallet-selector/blob/main/packages/here-wallet/src/lib/selector.ts#LL42) + - [My Near Wallet](https://github.com/near/wallet-selector/blob/main/packages/my-near-wallet/src/lib/my-near-wallet.ts#L227) -Import modal css styles: +## Styles & Customizing CSS ### React & Vue diff --git a/packages/account-export/package.json b/packages/account-export/package.json index fefbf766c..d7b239734 100644 --- a/packages/account-export/package.json +++ b/packages/account-export/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/account-export", - "version": "8.1.1", + "version": "8.1.4", "description": "This is the Export Selector UI package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/account-export/src/lib/components/AccountSelect.tsx b/packages/account-export/src/lib/components/AccountSelect.tsx index 9fa395a9e..a82dcabd4 100644 --- a/packages/account-export/src/lib/components/AccountSelect.tsx +++ b/packages/account-export/src/lib/components/AccountSelect.tsx @@ -1,4 +1,5 @@ import type { ReactElement } from "react"; +import { useEffect } from "react"; import React, { Fragment } from "react"; import { translate } from "@near-wallet-selector/core"; import { ModalHeader } from "./ModalHeader"; @@ -89,6 +90,14 @@ export const AccountSelect: React.FC = ({ ? translate("modal.exportAccounts.selectAccounts.deselectAll") : translate("modal.exportAccounts.selectAccounts.selectAll"); + useEffect(() => { + // Select all available accounts by default + if (!selectedAccounts.length) { + setSelectedAccounts(accountsWithDetail.map(({ accountId }) => accountId)); + } + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [accountsWithDetail.length]); + return (
@@ -108,63 +117,70 @@ export const AccountSelect: React.FC = ({
) : ( <> - - {selectLabel} - -
- {accountsWithDetail.map(({ accountId }) => ( -
-
- { - onAccountSelect(accountId, e.target.checked); - }} - checked={selectedAccounts.includes(accountId)} - type="checkbox" - id={accountId} - name={accountId} - value={accountId} - /> - +
+ + {selectLabel} + +
+ {accountsWithDetail.map(({ accountId }) => ( +
+
+ { + onAccountSelect(accountId, e.target.checked); + }} + checked={selectedAccounts.includes(accountId)} + type="checkbox" + id={accountId} + name={accountId} + value={accountId} + /> + +
-
- ))} + ))} +
+ {disabledAccounts.length > 0 && ( + <> + + {translate( + "modal.exportAccounts.selectAccounts.unavailable" + )} + +
+ {disabledAccounts.map( + ({ accountId, type, hasBalance }) => ( +
+
+ { + onAccountSelect(accountId, e.target.checked); + }} + checked={selectedAccounts.includes(accountId)} + type="checkbox" + id={accountId} + name={accountId} + value={accountId} + disabled + /> + +
+
+ ) + )} +
+ + )} +
- {disabledAccounts.length > 0 && ( - <> - - {translate( - "modal.exportAccounts.selectAccounts.unavailable" - )} - -
- {disabledAccounts.map(({ accountId, type, hasBalance }) => ( -
-
- { - onAccountSelect(accountId, e.target.checked); - }} - checked={selectedAccounts.includes(accountId)} - type="checkbox" - id={accountId} - name={accountId} - value={accountId} - disabled - /> - -
-
- ))} -
- - )} -
-

{translate("modal.exportAccounts.complete.descOne")}

-

{translate("modal.exportAccounts.complete.descTwo")}

+

+ {translate("modal.exportAccounts.complete.descOne")} +

+

+ {translate("modal.exportAccounts.complete.descTwo")} +

+ diff --git a/packages/account-export/src/lib/components/ExportAccount.tsx b/packages/account-export/src/lib/components/ExportAccount.tsx index 19334527a..ca8d36cc7 100644 --- a/packages/account-export/src/lib/components/ExportAccount.tsx +++ b/packages/account-export/src/lib/components/ExportAccount.tsx @@ -354,6 +354,7 @@ export const ExportAccount: React.FC = ({ onCloseModal={onCloseModal} onBack={showPassPhrase} onComplete={onTransferComplete} + onStartOver={onBack} /> )} diff --git a/packages/account-export/src/lib/components/Passphrase.tsx b/packages/account-export/src/lib/components/Passphrase.tsx index 7131eae67..93b620db4 100644 --- a/packages/account-export/src/lib/components/Passphrase.tsx +++ b/packages/account-export/src/lib/components/Passphrase.tsx @@ -56,25 +56,29 @@ export const Passphrase: React.FC = ({ {translate("modal.exportAccounts.getPassphrase.label")}
-
- - +
+
+ + +
diff --git a/packages/account-export/src/lib/styles.css b/packages/account-export/src/lib/styles.css index d4efed44e..2c86ad387 100644 --- a/packages/account-export/src/lib/styles.css +++ b/packages/account-export/src/lib/styles.css @@ -40,13 +40,21 @@ cursor: not-allowed; background-color: var(--wallet-selector-home-button-bg, var(--home-button-bg)); color: #606060; - border: none; + border: 1px solid transparent; } .nws-modal-wrapper .nws-modal .nws-modal-body button.middleButton.account-export-button { - width: 240px; - margin-bottom: 30px; + width: 300px; + margin: 0 auto; +} + +.nws-modal-wrapper .nws-modal .nws-modal-body button.middleButton.account-export-button.secondary { + background: var( --secondary-button-bg-color); + border: 1px solid var(--secondary-button-border-color); + border-radius: 4px; + color: var(--secondary-button-text-color); + margin-bottom: 10px; } .checkbox { @@ -137,9 +145,13 @@ .nws-modal-wrapper .nws-modal .nws-modal-body .click-to-copy { position: relative; cursor: copy; - background-color: transparent; + background-color: var(--wallet-selector-content-bg, var(--content-bg)); display: block; margin: 0 auto; + border-radius: 8px; + border: 1px solid var(--wallet-option-border-color, var(--sidebar-border-color)); + padding: 0; + filter: brightness(95%); } .nws-modal-wrapper .nws-modal .nws-modal-body .click-to-copy > .copy-success { @@ -180,7 +192,7 @@ .account-export .content { width: 100%; height: 100%; - padding: 40px 28px 0px; + padding: 25px 0 0 !important; display: flex; flex-direction: column; align-items: center; @@ -209,6 +221,12 @@ margin: 20px 0; } +.account-export .account-selection-container { + display: flex; + flex: 1; + flex-direction: column; +} + .account-export .account-select-all { width: 100%; text-align: left; @@ -229,7 +247,7 @@ flex-direction: row; align-items: center; width: 100%; - border-bottom: 1px solid #313030; + border-bottom: 1px solid rgba(60,60,60,0.22); } .account-export .account-selection .account-selection-row label { @@ -242,10 +260,14 @@ width: 399px; } +.account-export .checkbox .label { + font-size: 14px; +} + .account-export .passphrase-title { - font-size: 15px; + font-size: 14px; text-align: center; - font-weight: 500; + font-weight: 300; color: var(--wallet-selector-text-color, var(--text-color)); margin: 40px 0 30px; } @@ -254,21 +276,30 @@ display: flex; flex-direction: row; align-items: flex-start; - padding: 20px; - background: #272729; - border-radius: 8px; + background: transparent; word-break: break-word; text-align: center; filter: blur(4px); + padding: 20px; + border-radius: 5px; +} + +.account-export .passphrase-text:hover { + filter: none; +} + +.account-export .passphrase-check-container { + margin-bottom: 20px; } .account-export .passphrase-label { - font-size: 12px; + font-size: 10px; cursor: copy; color: var(--wallet-selector-text-color, var(--text-color)); + margin-top: 10px; } .complete-desc { @@ -277,6 +308,12 @@ margin-top: 10px; } +.complete-desc .content { + font-size: 14px; + width: 300px; + margin: 40px auto 0; +} + .nws-modal-wrapper .nws-modal .connecting-wrapper-err { height: 100%; } diff --git a/packages/coin98-wallet/package.json b/packages/coin98-wallet/package.json index 4257d96cb..44fad0136 100644 --- a/packages/coin98-wallet/package.json +++ b/packages/coin98-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/coin98-wallet", - "version": "8.1.1", + "version": "8.1.4", "description": "Coin 98 wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/coin98-wallet/src/lib/coin98-wallet.ts b/packages/coin98-wallet/src/lib/coin98-wallet.ts index a8c7cf0f0..5ce20c3a5 100644 --- a/packages/coin98-wallet/src/lib/coin98-wallet.ts +++ b/packages/coin98-wallet/src/lib/coin98-wallet.ts @@ -114,39 +114,8 @@ const Coin98Wallet: WalletBehaviourFactory = async ({ return getAccounts(); }, - async verifyOwner({ message }) { - const account = getActiveAccount(store.getState()); - - if (!account) { - throw new Error("No active account"); - } - - const accountId = account.accountId; - const pubKey = await _state.wallet.near.signer.getPublicKey(accountId); - const block = await provider.block({ finality: "final" }); - - const data = { - accountId, - message, - blockId: block.header.hash, - publicKey: Buffer.from(pubKey.data).toString("base64"), - keyType: pubKey.keyType, - }; - const encoded = JSON.stringify(data); - + async verifyOwner() { throw new Error(`Method not supported by ${metadata.name}`); - - const signed = await _state.wallet.near.signer.signMessage( - new Uint8Array(Buffer.from(encoded)), - accountId, - options.network.networkId - ); - - return { - ...data, - signature: Buffer.from(signed.signature).toString("base64"), - keyType: signed.publicKey.keyType, - }; }, async signAndSendTransaction({ signerId, receiverId, actions }) { diff --git a/packages/core/package.json b/packages/core/package.json index efc4f2a94..67d932750 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/core", - "version": "8.1.1", + "version": "8.1.4", "description": "This is the core package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/core/src/lib/locale/en.json b/packages/core/src/lib/locale/en.json index be73c3cfd..0121a994e 100644 --- a/packages/core/src/lib/locale/en.json +++ b/packages/core/src/lib/locale/en.json @@ -80,7 +80,7 @@ }, "selectAccounts": { "title": "Select Accounts to Transfer", - "button": "Get Passphrase", + "button": "Continue", "deselectAll": "Deselect All", "selectAll": "Select All", "unavailable": "Transfer Unavailable", @@ -92,6 +92,7 @@ "title": "Copy Temporary Password", "desc": "You’ll need to enter this password when you begin exporting your accounts to a different wallet.", "button": "Continue", + "transferButton": "Transfer Accounts", "label": "Click to Copy", "checkLabel": "I copied or wrote down the password" }, @@ -99,6 +100,7 @@ "title": "Complete the Transfer", "descOne": "You will now be redirected to the wallet you selected to complete the transfer.", "descTwo": "Once import part of process is completed from selected wallet, press button to complete the transfer process.", + "startOverButton": "Start Over", "button": "Complete" } } diff --git a/packages/default-wallets/README.md b/packages/default-wallets/README.md index 9a599e691..c0b12e1b7 100644 --- a/packages/default-wallets/README.md +++ b/packages/default-wallets/README.md @@ -4,7 +4,7 @@ This is the Default Wallets package for NEAR Wallet Selector. This is the list of default wallets: ->**Note**: This package does not contain any wallets by default. +> **⚠️ Package deprecated starting from `v8.1.4`. The package no longer holds a list of default wallets please install specific wallet packages from https://www.npmjs.com/org/near-wallet-selector ⚠️** ## Installation and Usage diff --git a/packages/default-wallets/package.json b/packages/default-wallets/package.json index 9b92f19f4..3362b281c 100644 --- a/packages/default-wallets/package.json +++ b/packages/default-wallets/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/default-wallets", - "version": "8.1.1", + "version": "8.1.4", "description": "Default wallets package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/finer-wallet/package.json b/packages/finer-wallet/package.json index 0c27c8c31..202c158cd 100644 --- a/packages/finer-wallet/package.json +++ b/packages/finer-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/finer-wallet", - "version": "8.1.1", + "version": "8.1.4", "description": "FiNER Wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/here-wallet/package.json b/packages/here-wallet/package.json index 449cbd675..d5eb3035d 100644 --- a/packages/here-wallet/package.json +++ b/packages/here-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/here-wallet", - "version": "8.1.1", + "version": "8.1.4", "description": "Here wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/ledger/package.json b/packages/ledger/package.json index 3883dadb4..164dc25a7 100644 --- a/packages/ledger/package.json +++ b/packages/ledger/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/ledger", - "version": "8.1.1", + "version": "8.1.4", "description": "Ledger package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/math-wallet/package.json b/packages/math-wallet/package.json index 6f2482e3c..8ee0a7883 100644 --- a/packages/math-wallet/package.json +++ b/packages/math-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/math-wallet", - "version": "8.1.1", + "version": "8.1.4", "description": "Math wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/meteor-wallet/package.json b/packages/meteor-wallet/package.json index fa32dc465..5a5789d40 100644 --- a/packages/meteor-wallet/package.json +++ b/packages/meteor-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/meteor-wallet", - "version": "8.1.1", + "version": "8.1.4", "description": "Meteor wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/modal-ui-js/package.json b/packages/modal-ui-js/package.json index 3592c9a81..20ad0e954 100644 --- a/packages/modal-ui-js/package.json +++ b/packages/modal-ui-js/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/modal-ui-js", - "version": "8.1.1", + "version": "8.1.4", "description": "Modal UI package for NEAR wallet Selector", "keywords": [ "near", diff --git a/packages/modal-ui/package.json b/packages/modal-ui/package.json index 94a588597..6140aa0de 100644 --- a/packages/modal-ui/package.json +++ b/packages/modal-ui/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/modal-ui", - "version": "8.1.1", + "version": "8.1.4", "description": "Modal UI package for NEAR wallet Selector", "keywords": [ "near", diff --git a/packages/my-near-wallet/package.json b/packages/my-near-wallet/package.json index f98fa68cc..b9e0ceaa8 100644 --- a/packages/my-near-wallet/package.json +++ b/packages/my-near-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/my-near-wallet", - "version": "8.1.1", + "version": "8.1.4", "description": "My Near Wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/my-near-wallet/src/lib/my-near-wallet.spec.ts b/packages/my-near-wallet/src/lib/my-near-wallet.spec.ts index 504adacc3..e304109cb 100644 --- a/packages/my-near-wallet/src/lib/my-near-wallet.spec.ts +++ b/packages/my-near-wallet/src/lib/my-near-wallet.spec.ts @@ -120,30 +120,6 @@ describe("signAndSendTransaction", () => { }); }); -describe("verifyOwner", () => { - it("verifies owner", async () => { - const { wallet } = await createMyNearWallet(); - - const replace = window.location.replace; - - await wallet.signIn({ contractId: "test.testnet" }); - - Object.defineProperty(window, "location", { - value: { replace: jest.fn() }, - }); - - const result = await wallet.verifyOwner({ - message: "message", - callbackUrl: "http://localhost", - }); - - expect(result).toBe(undefined); - expect(window.location.replace).toHaveBeenCalled(); - - window.location.replace = replace; - }); -}); - describe("buildImportAccountsUrl", () => { it("returns import url", async () => { const { wallet } = await createMyNearWallet(); diff --git a/packages/my-near-wallet/src/lib/my-near-wallet.ts b/packages/my-near-wallet/src/lib/my-near-wallet.ts index 9b3ea545f..d9e6ca35a 100644 --- a/packages/my-near-wallet/src/lib/my-near-wallet.ts +++ b/packages/my-near-wallet/src/lib/my-near-wallet.ts @@ -156,31 +156,8 @@ const MyNearWallet: WalletBehaviourFactory< return getAccounts(); }, - async verifyOwner({ message, callbackUrl, meta }) { - logger.log("verifyOwner", { message }); - - const account = _state.wallet.account(); - - if (!account) { - throw new Error("Wallet not signed in"); - } - const locationUrl = - typeof window !== "undefined" ? window.location.href : ""; - - const url = callbackUrl || locationUrl; - - if (!url) { - throw new Error(`The callbackUrl is missing for ${metadata.name}`); - } - - const encodedUrl = encodeURIComponent(url); - const extraMeta = meta ? `&meta=${meta}` : ""; - - window.location.replace( - `${params.walletUrl}/verify-owner?message=${message}&callbackUrl=${encodedUrl}${extraMeta}` - ); - - return; + async verifyOwner() { + throw new Error(`Method not supported by ${metadata.name}`); }, async signAndSendTransaction({ diff --git a/packages/narwallets/package.json b/packages/narwallets/package.json index c9a153b52..20dd0fac2 100644 --- a/packages/narwallets/package.json +++ b/packages/narwallets/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/narwallets", - "version": "8.1.1", + "version": "8.1.4", "description": "This is the Narwallets package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/near-snap/package.json b/packages/near-snap/package.json index b92f3b201..36a27cb3f 100644 --- a/packages/near-snap/package.json +++ b/packages/near-snap/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/near-snap", - "version": "8.1.1", + "version": "8.1.4", "description": "Metamask snap to interact with Near dapps.", "keywords": [ "near", diff --git a/packages/near-wallet/package.json b/packages/near-wallet/package.json index cb9e8e8ba..4b7147151 100644 --- a/packages/near-wallet/package.json +++ b/packages/near-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/near-wallet", - "version": "8.1.1", + "version": "8.1.4", "description": "Near Wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/nearfi/package.json b/packages/nearfi/package.json index 06418b7ed..b60316264 100644 --- a/packages/nearfi/package.json +++ b/packages/nearfi/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/nearfi", - "version": "8.1.1", + "version": "8.1.4", "description": "Nearfi package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/nearfi/src/lib/nearfi.ts b/packages/nearfi/src/lib/nearfi.ts index b59355545..e4fc958c3 100644 --- a/packages/nearfi/src/lib/nearfi.ts +++ b/packages/nearfi/src/lib/nearfi.ts @@ -9,6 +9,7 @@ import type { Optional, Account, } from "@near-wallet-selector/core"; +import { waitFor } from "@near-wallet-selector/core"; import type { InjectedNearFi } from "./injected-nearfi"; import icon from "./icon"; @@ -28,7 +29,9 @@ interface NearFiState { } const isInstalled = () => { - return !!window.nearFiWallet?.isNearFi; + return waitFor(() => !!window.nearFiWallet?.isNearFi, { timeout: 200 }).catch( + () => false + ); }; const setupNearFiState = (): NearFiState => { diff --git a/packages/neth/package.json b/packages/neth/package.json index 670cb85f7..98202d776 100644 --- a/packages/neth/package.json +++ b/packages/neth/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/neth", - "version": "8.1.1", + "version": "8.1.4", "description": "Control NEAR accounts with ETH accounts", "author": "mattlockyer", "keywords": [ diff --git a/packages/nightly-connect/package.json b/packages/nightly-connect/package.json index 9166b3ba1..c4e3741e1 100644 --- a/packages/nightly-connect/package.json +++ b/packages/nightly-connect/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/nightly-connect", - "version": "8.1.1", + "version": "8.1.4", "description": "Nightly connect package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/nightly/package.json b/packages/nightly/package.json index c344995bf..f2ecbd612 100644 --- a/packages/nightly/package.json +++ b/packages/nightly/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/nightly", - "version": "8.1.1", + "version": "8.1.4", "description": "Nightly wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/opto-wallet/package.json b/packages/opto-wallet/package.json index e0819391d..e1891f4bc 100644 --- a/packages/opto-wallet/package.json +++ b/packages/opto-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/opto-wallet", - "version": "8.1.1", + "version": "8.1.4", "description": "Opto wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/sender/package.json b/packages/sender/package.json index a39ab0b1c..61d452f96 100644 --- a/packages/sender/package.json +++ b/packages/sender/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/sender", - "version": "8.1.1", + "version": "8.1.4", "description": "Sender wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/wallet-connect/package.json b/packages/wallet-connect/package.json index 6c23ab7c7..2c1aeb760 100644 --- a/packages/wallet-connect/package.json +++ b/packages/wallet-connect/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/wallet-connect", - "version": "8.1.1", + "version": "8.1.4", "description": "Wallet Connect package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/wallet-utils/package.json b/packages/wallet-utils/package.json index f235ce141..565abf3a9 100644 --- a/packages/wallet-utils/package.json +++ b/packages/wallet-utils/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/wallet-utils", - "version": "8.1.1", + "version": "8.1.4", "description": "Wallet utils package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/welldone-wallet/package.json b/packages/welldone-wallet/package.json index cc0f9647c..69be67793 100644 --- a/packages/welldone-wallet/package.json +++ b/packages/welldone-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/welldone-wallet", - "version": "8.1.1", + "version": "8.1.4", "description": "Welldone wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/xdefi/package.json b/packages/xdefi/package.json index a5d74dfae..4b826e343 100644 --- a/packages/xdefi/package.json +++ b/packages/xdefi/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/xdefi", - "version": "8.1.1", + "version": "8.1.4", "description": "This is the XDEFI package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/scripts/release-packages.bash b/scripts/release-packages.bash index 8c6dcfaf6..67f09bb6f 100644 --- a/scripts/release-packages.bash +++ b/scripts/release-packages.bash @@ -6,7 +6,6 @@ TAG=latest npm publish dist/packages/core --tag "${TAG}" --otp "${OTP}" npm publish dist/packages/modal-ui --tag "${TAG}" --otp "${OTP}" npm publish dist/packages/modal-ui-js --tag "${TAG}" --otp "${OTP}" -npm publish dist/packages/default-wallets --tag "${TAG}" --otp "${OTP}" npm publish dist/packages/wallet-utils --tag "${TAG}" --otp "${OTP}" npm publish dist/packages/near-wallet --tag "${TAG}" --otp "${OTP}" npm publish dist/packages/my-near-wallet --tag "${TAG}" --otp "${OTP}" @@ -28,3 +27,6 @@ npm publish dist/packages/account-export --tag "${TAG}" --otp "${OTP}" npm publish dist/packages/narwallets --tag "${TAG}" --otp "${OTP}" npm publish dist/packages/xdefi --tag "${TAG}" --otp "${OTP}" npm publish dist/packages/near-snap --tag "${TAG}" --otp "${OTP}" + +# Commented script for default wallets to avoid publishing new versions since the package is now deprecated. +#npm publish dist/packages/default-wallets --tag "${TAG}" --otp "${OTP}" diff --git a/yarn.lock b/yarn.lock index 8f8f74e20..29ea35299 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2651,10 +2651,10 @@ resolved "https://registry.yarnpkg.com/@metamask/detect-provider/-/detect-provider-2.0.0.tgz#4bc2795e5e6f7d8b84b2e845058d2f222c99917d" integrity sha512-sFpN+TX13E9fdBDh9lvQeZdJn4qYoRb/6QF2oZZK/Pn559IhCFacPMU1rMuqyXoFQF3JSJfii2l98B87QDPeCQ== -"@meteorwallet/sdk@^0.6.0": - version "0.6.0" - resolved "https://registry.yarnpkg.com/@meteorwallet/sdk/-/sdk-0.6.0.tgz#006b77410a7874f0c9bfc0d693f199b561f39d19" - integrity sha512-oriaQ1gk1hpQx6V6BxsvUthDd0Bpmv3ho5Ap5pm9P0euEosWtFUVF1dTYndJE10qBG8yLW+EOOX1LZ8taXCiRA== +"@meteorwallet/sdk@^0.8.0": + version "0.8.0" + resolved "https://registry.yarnpkg.com/@meteorwallet/sdk/-/sdk-0.8.0.tgz#913732c1c5210a05e008a3aedc664b16c728f682" + integrity sha512-C0x9/20t+lCMUlKSPSAbPUWjz8Ls59NwWnz/qSJM5B4qCXN3OSCcrqmpbJpSVa2wCHFhK/HuOqaKlMCr0XsQ0w== dependencies: nanoid "3.3.4" query-string "^7.1.1" @@ -5005,14 +5005,15 @@ "@typescript-eslint/types" "5.30.5" eslint-visitor-keys "^3.3.0" -"@walletconnect/core@2.7.2": - version "2.7.2" - resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.7.2.tgz#698eb6178eaa17c804ca0ad3176035188b9db86b" - integrity sha512-gInSwh3uLpTEkDGArfOFoOVgiXW+zkZJpGqfARVi5fhSxsnL1jYNpqO2k8KAXUPfB4MIzLyaGruiaywncLAczA== +"@walletconnect/core@2.7.8": + version "2.7.8" + resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.7.8.tgz#e75329379cc61dc124c85619998a65eecabe4f53" + integrity sha512-Ptp1Jo9hv5mtrQMF/iC/RF/KHmYfO79DBLj77AV4PnJ5z6J0MRYepPKXKFEirOXR4OKCT5qCrPOiRtGvtNI+sg== dependencies: "@walletconnect/heartbeat" "1.2.1" - "@walletconnect/jsonrpc-provider" "^1.0.12" - "@walletconnect/jsonrpc-utils" "^1.0.7" + "@walletconnect/jsonrpc-provider" "1.0.13" + "@walletconnect/jsonrpc-types" "1.0.3" + "@walletconnect/jsonrpc-utils" "1.0.8" "@walletconnect/jsonrpc-ws-connection" "^1.0.11" "@walletconnect/keyvaluestorage" "^1.0.2" "@walletconnect/logger" "^2.0.1" @@ -5020,8 +5021,8 @@ "@walletconnect/relay-auth" "^1.0.4" "@walletconnect/safe-json" "^1.0.2" "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.7.2" - "@walletconnect/utils" "2.7.2" + "@walletconnect/types" "2.7.8" + "@walletconnect/utils" "2.7.8" events "^3.3.0" lodash.isequal "4.5.0" uint8arrays "^3.1.0" @@ -5050,15 +5051,23 @@ "@walletconnect/time" "^1.0.2" tslib "1.14.1" -"@walletconnect/jsonrpc-provider@^1.0.12": - version "1.0.12" - resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-provider/-/jsonrpc-provider-1.0.12.tgz#965408d99fc889d49c194cd207804282805f45ed" - integrity sha512-6uI2y5281gloZSzICOjk+CVC7CVu0MhtMt2Yzpj05lPb0pzm/bK2oZ2ibxwLerPrqpNt/5bIFVRmoOgPw1mHAQ== +"@walletconnect/jsonrpc-provider@1.0.13": + version "1.0.13" + resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-provider/-/jsonrpc-provider-1.0.13.tgz#9a74da648d015e1fffc745f0c7d629457f53648b" + integrity sha512-K73EpThqHnSR26gOyNEL+acEex3P7VWZe6KE12ZwKzAt2H4e5gldZHbjsu2QR9cLeJ8AXuO7kEMOIcRv1QEc7g== dependencies: - "@walletconnect/jsonrpc-utils" "^1.0.7" + "@walletconnect/jsonrpc-utils" "^1.0.8" "@walletconnect/safe-json" "^1.0.2" tslib "1.14.1" +"@walletconnect/jsonrpc-types@1.0.3", "@walletconnect/jsonrpc-types@^1.0.3": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.3.tgz#65e3b77046f1a7fa8347ae02bc1b841abe6f290c" + integrity sha512-iIQ8hboBl3o5ufmJ8cuduGad0CQm3ZlsHtujv9Eu16xq89q+BG7Nh5VLxxUgmtpnrePgFkTwXirCTkwJH1v+Yw== + dependencies: + keyvaluestorage-interface "^1.0.0" + tslib "1.14.1" + "@walletconnect/jsonrpc-types@^1.0.2": version "1.0.2" resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.2.tgz#b79519f679cd6a5fa4a1bea888f27c1916689a20" @@ -5067,13 +5076,13 @@ keyvaluestorage-interface "^1.0.0" tslib "1.14.1" -"@walletconnect/jsonrpc-utils@^1.0.6", "@walletconnect/jsonrpc-utils@^1.0.7": - version "1.0.7" - resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-utils/-/jsonrpc-utils-1.0.7.tgz#1812d17c784f1ec0735bf03d0884287f60bfa2ce" - integrity sha512-zJziApzUF/Il4VcwabnaU+0yo1QI4eUkYX99zmCVTHJvZOf2l0zjADf/OpKqWyeNFC3Io56Z/8uJHVtcNVvyFA== +"@walletconnect/jsonrpc-utils@1.0.8", "@walletconnect/jsonrpc-utils@^1.0.6", "@walletconnect/jsonrpc-utils@^1.0.8": + version "1.0.8" + resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-utils/-/jsonrpc-utils-1.0.8.tgz#82d0cc6a5d6ff0ecc277cb35f71402c91ad48d72" + integrity sha512-vdeb03bD8VzJUL6ZtzRYsFMq1eZQcM3EAzT0a3st59dyLfJ0wq+tKMpmGH7HlB7waD858UWgfIcudbPFsbzVdw== dependencies: "@walletconnect/environment" "^1.0.1" - "@walletconnect/jsonrpc-types" "^1.0.2" + "@walletconnect/jsonrpc-types" "^1.0.3" tslib "1.14.1" "@walletconnect/jsonrpc-ws-connection@^1.0.11": @@ -5137,19 +5146,19 @@ dependencies: tslib "1.14.1" -"@walletconnect/sign-client@2.7.2": - version "2.7.2" - resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.7.2.tgz#8ece418fb4995a366c0d097dd04f29b95256ae52" - integrity sha512-JOYPmrgR4YG4M2comNcXaa8cLIws0ZJj/SCpF0XJzRZP2+OXWouK19UaI32ROQrcwNodBNeYFRfT5hSM5xjfKg== +"@walletconnect/sign-client@2.7.8": + version "2.7.8" + resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.7.8.tgz#02a4030080d585bbc7772d77b102e3b6fa78e19b" + integrity sha512-na7VeXiOwM83w69s4kA5IeuL2SezwIbHfJsitmbtmsTLaX8Hnf7HwaJrNzrdhKpnEw8a+uG/xDTq+RYY50zf+A== dependencies: - "@walletconnect/core" "2.7.2" + "@walletconnect/core" "2.7.8" "@walletconnect/events" "^1.0.1" "@walletconnect/heartbeat" "1.2.1" - "@walletconnect/jsonrpc-utils" "^1.0.7" + "@walletconnect/jsonrpc-utils" "1.0.8" "@walletconnect/logger" "^2.0.1" "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.7.2" - "@walletconnect/utils" "2.7.2" + "@walletconnect/types" "2.7.8" + "@walletconnect/utils" "2.7.8" events "^3.3.0" "@walletconnect/time@^1.0.2": @@ -5159,33 +5168,32 @@ dependencies: tslib "1.14.1" -"@walletconnect/types@2.7.2", "@walletconnect/types@^2.7.2": - version "2.7.2" - resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.7.2.tgz#508d1755110864dee294f955e09b7da3f8ee0064" - integrity sha512-1O2UefakZpT0ErRfEAXY7Ls3qdUrKDky/DsK088xR6klyfkQOx+aSVH0fJYLhmnqPTuvp3lrqNbsDc0s6/6nvg== +"@walletconnect/types@2.7.8", "@walletconnect/types@^2.7.8": + version "2.7.8" + resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.7.8.tgz#681bd2a3c0e80fcda877a6b6aba09567b938c7a6" + integrity sha512-1ZucKd5F4Ws+O84Yl4tCzd+hcD3A9vnaimKyC753b7Jdtwg2dm21E6H9t34kOVsFjVdKt9qFrZ1LaVL7SZp59g== dependencies: "@walletconnect/events" "^1.0.1" "@walletconnect/heartbeat" "1.2.1" - "@walletconnect/jsonrpc-types" "^1.0.2" + "@walletconnect/jsonrpc-types" "1.0.3" "@walletconnect/keyvaluestorage" "^1.0.2" "@walletconnect/logger" "^2.0.1" events "^3.3.0" -"@walletconnect/utils@2.7.2": - version "2.7.2" - resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.7.2.tgz#71f2b9941a0592e155db9c7898a2e6a99f4c9a8d" - integrity sha512-b2lU/JoWqwCOLMudPSRTt3pliBnv6qQHCBWiMBYi1vL14AW3usO5QmK1wF90AVwpdPJ7wFZ6MgHymeWWfhYnGQ== +"@walletconnect/utils@2.7.8": + version "2.7.8" + resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.7.8.tgz#494647eb5ed1fa30363c6a127e1a76356e2780a5" + integrity sha512-W3GudJNZUlSdKJ7fyMqeDoM02Ffd7jmK6mxxmRGkxF6mf9ciIxEPDWl18JGkanp+EDK06PXLm4/64fraLkbJVQ== dependencies: "@stablelib/chacha20poly1305" "1.0.1" "@stablelib/hkdf" "1.0.1" "@stablelib/random" "^1.0.2" "@stablelib/sha256" "1.0.1" "@stablelib/x25519" "^1.0.3" - "@walletconnect/jsonrpc-utils" "^1.0.7" "@walletconnect/relay-api" "^1.0.9" "@walletconnect/safe-json" "^1.0.2" "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.7.2" + "@walletconnect/types" "2.7.8" "@walletconnect/window-getters" "^1.0.1" "@walletconnect/window-metadata" "^1.0.1" detect-browser "5.3.0" @@ -6058,10 +6066,10 @@ before-after-hook@^2.2.0: resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.2.2.tgz#a6e8ca41028d90ee2c24222f201c90956091613e" integrity sha512-3pZEU3NT5BFUo/AD5ERPWOgQOCZITni6iavr5AUw5AUwQjMlI0kzu5btnyD39AF0gUEsDPwJT+oY1ORBJijPjQ== -better-sqlite3@^8.2.0: - version "8.2.0" - resolved "https://registry.yarnpkg.com/better-sqlite3/-/better-sqlite3-8.2.0.tgz#4ef6185b88992723de7e00cfa67585ac59f320bd" - integrity sha512-8eTzxGk9535SB3oSNu0tQ6I4ZffjVCBUjKHN9QeeIFtphBX0sEd0NxAuglBNR9TO5ThnxBB7GqzfcYo9kjadJQ== +better-sqlite3@^8.4.0: + version "8.4.0" + resolved "https://registry.yarnpkg.com/better-sqlite3/-/better-sqlite3-8.4.0.tgz#aa27bbc6bb42bb438fc55c88b146fcfe5978fa76" + integrity sha512-NmsNW1CQvqMszu/CFAJ3pLct6NEFlNfuGM6vw72KHkjOD1UDnL96XNN1BMQc1hiHo8vE2GbOWQYIpZ+YM5wrZw== dependencies: bindings "^1.5.0" prebuild-install "^7.1.0" @@ -14281,7 +14289,7 @@ qs@~6.5.2: resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.3.tgz#3aeeffc91967ef6e35c0e488ef46fb296ab76aad" integrity sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA== -query-string@7.1.3: +query-string@7.1.3, query-string@^7.1.1: version "7.1.3" resolved "https://registry.yarnpkg.com/query-string/-/query-string-7.1.3.tgz#a1cf90e994abb113a325804a972d98276fe02328" integrity sha512-hh2WYhq4fi8+b+/2Kg9CEge4fDPvHS534aOOvOZeQ3+Vf2mCFsaFBYj0i+iXcAq6I9Vzp5fjMFBlONvayDC1qg== @@ -14291,16 +14299,6 @@ query-string@7.1.3: split-on-first "^1.0.0" strict-uri-encode "^2.0.0" -query-string@^7.1.1: - version "7.1.1" - resolved "https://registry.yarnpkg.com/query-string/-/query-string-7.1.1.tgz#754620669db978625a90f635f12617c271a088e1" - integrity sha512-MplouLRDHBZSG9z7fpuAAcI7aAYjDLhtsiVZsevsfaHWDS2IDdORKbSd1kWUA+V4zyva/HZoSfpwnYMMQDhb0w== - dependencies: - decode-uri-component "^0.2.0" - filter-obj "^1.1.0" - split-on-first "^1.0.0" - strict-uri-encode "^2.0.0" - querystring@0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" @@ -16215,11 +16213,16 @@ tslib@1.14.1, tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@2.4.0, tslib@^2, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.3.1, tslib@^2.4.0: +tslib@2.4.0: version "2.4.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3" integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ== +tslib@^2, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.3.1, tslib@^2.4.0, tslib@^2.5.2: + version "2.5.2" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.2.tgz#1b6f07185c881557b0ffa84b111a0106989e8338" + integrity sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA== + tsutils@^3.21.0: version "3.21.0" resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623"