Detalhes do pacote

@metamask/sdk-install-modal-web

MetaMask1.1m0.32.1

MetaMask SDK Install Modal for Web

readme (leia-me)

MetaMask SDK

codecov

MetaMask SDK enables developers to easily connect their dapps with the MetaMask browser extension and MetaMask Mobile.

It supports the following dapp platforms:

Read more about setting up MetaMask SDK and MetaMask SDK concepts.

This repository contains the JavaScript SDK and examples. You can also see the Android SDK repository and the iOS SDK repository.

Features

  • Session persistence
  • Multi MetaMask provider (let user choose between browser extension and mobile wallet)
  • Batch RPC calls (send multiple requests to your wallet at once)
  • Read-only RPC calls and Infura integration
  • Wagmi hook integration (alpha)
  • i18n
  • Full modal UI customization
  • Smart contract library (coming soon)

Get started

Install the SDK:

yarn add @metamask/sdk

or

npm i @metamask/sdk

Web dapps

See the following examples:

Read the documentation for using the SDK with JavaScript for more information.

React Native

We recommend using React Native v0.71.4 or higher to avoid performance issues on Android.

See the React Native example and read the documentation for using the SDK with React Native for more information.

Node.js

See the Node.js example and read the documentation for using the SDK with Node.js for more information.

Electron

See the Electron example and read the documentation for using the SDK with Electron for more information.

SDK options

See the full list of JavaScript SDK options.

Contributing

To contribute to MetaMask SDK, see the contribution guidelines.

Contacts

Fill out this form for a complimentary design optimization workshop.

changelog (log de mudanças)

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

0.32.1

Added

  • chore: updates assets (#1220)

0.32.0

Added

  • feat: setup stencil development environment with component preview (#1196)

Fixed

  • fix: user rejection bug (#1202)

0.31.5

Added

  • chore: add analytics to install modal (#1189)

Fixed

  • fix: correct event handler binding in modal components (#1191)
  • fix: remove console log when render install modal (#1190)

0.31.2

Fixed

  • Set initial modal tab based on preferDesktop option (#1158)

0.31.1

Changed

  • fix: Tell webpack about dynamic import + fixed polyfills (#1151)

0.31.0

Changed

  • refactor(sdk-install-modal-web): migrate from i18next to custom SimpleI18n implementation (#1141)
  • refactor(sdk-install-modal-web): migrate to StencilJS + Lazy Loading (#1139)
  • style: add inline styles to div elements (#1138)
  • refactor: replace qr-code-styling with smaller library (#1129)

0.30.2

Uncategorized

  • align version with sdk

0.30.0

0.29.2

Added

  • chore: bump .change files to 0.29.2 (#1071)

0.29.1

Added

  • feat: bump versions for publishing (#1068)

0.28.1

Added

0.26.5

Added

  • chore: update peerDependencies of ‘@metamask/sdk-install-modal-web’ to resolve installation warnings (#927)

0.26.4

Added

  • chore: update SDK dependencies to resolve version conflicts (#921)

0.26.0

Added

  • feat: add script to align version before publishing (#902)

0.20.4

Added

  • chore: update prepare-preview-builds CI job (#869)

0.20.2

Added

  • skip version because of publishing issue

0.20.1

Added

  • feat: trigger new version (#840)
  • Revert "Release 63.0.0" (#839)
  • Release 62.0.0 (#838)
  • Revert "feat: release 62.0.0" (#837)
  • feat: release 62.0.0 (#836)

0.20.0

Added

  • feat: align version (#835)

0.18.5

Added

  • fix: preferDesktop and onboarding (#807)

0.17.0

Added

  • chore: disable logs when running unit tests in CI (#727)

0.16.0

Added

  • feat: activate sourcemap support in all packages and resolve issues (#730)
  • chore: reduce the bundle size (#725)
  • feat: sdk bundle size opt methodology (#722)

0.15.0

Added

  • chore: sourcemaps (#687)
  • Revert "Release 48.0.0" (#686)
  • Release 48.0.0 (#684)
  • feat: disable sourcemaps (#678)

0.14.1

Added

  • Force align package version to sdk

0.13.0

Added

  • Force align package version to sdk

0.12.2

Added

  • feat: optimize rollup builds (#496)

0.12.1

Added

  • Force align package version to sdk

0.12.0

Added

  • Force align package version to sdk

0.11.1

Added

  • Force align package version to sdk

0.11.0

Added

  • feat: rename metamask_chainRPCs to metamask_batch and add unit tests (#440)

0.10.0

Added

  • Force align package version to sdk

0.9.0

Added

  • feat: add sdk version and change modal order (#405)
  • feat: implementing internationalization via i18next package (#403)
  • fix: modal cleanup and otp selection (#402)

0.7.0

Added

  • feat: rpc read only calls and infura provider (#353)
  • feat: extend the time we resume the session without showing OTP (#348)
  • feat: add codecov to CI (#343)

0.6.2

Added

  • fix: edge case when modal not fully resetting after termination (#339)

0.6.1

Added

  • feat: align versions(#323)

0.6.0

Added

  • feat: trigger pipeline detection (#307)

0.5.1

Added

  • feat: optimize modal rendering and re-use existing node (#206)

0.3.3

Added

  • [FEAT] choose between extension and mobile wallet (#146)
  • [fix] #145 missing css color (#149)

0.3.2

Added

  • [FEAT] add nextjs demo project in examples/ (#123)

0.3.0

Added

  • feat(sdk-install-modal): add umd support (#122)
  • fix: invalid types for sdk-install-modal-web (#117)
  • [FEAT] sdk react toolkits (Part1) (#116)
  • [REFACTOR]: install modal web (#114)
  • Release 1.0.0 (#107)
  • Revert "Release 1.0.0" (#105)
  • Release 1.0.0 (#103)
  • Update GitHub actions workflows (#102)
  • [FEAT] Yarn v3 migration (#100)