Skip to content

Commit

Permalink
v2.1.4: updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
linkielink committed Nov 3, 2023
1 parent 3938d42 commit 6de611c
Show file tree
Hide file tree
Showing 6 changed files with 329 additions and 387 deletions.
2 changes: 1 addition & 1 deletion dist/components/ui/BaseModal.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@marsprotocol/wallet-connector",
"version": "2.1.3",
"version": "2.1.4",
"repository": {
"type": "git",
"url": "git+https://github.com/mars-protocol/wallet-connector.git"
Expand Down Expand Up @@ -28,46 +28,46 @@
"format": "eslint . --fix"
},
"dependencies": {
"@cosmjs/cosmwasm-stargate": "^0.31.1",
"@delphi-labs/shuttle-react": "^3.9.0",
"@keplr-wallet/cosmos": "^0.12.23",
"axios": "^1.5.0",
"@cosmjs/cosmwasm-stargate": "^0.31.3",
"@delphi-labs/shuttle-react": "^3.10.0",
"@keplr-wallet/cosmos": "^0.12.39",
"axios": "^1.6.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-device-detect": "^2.2.3",
"react-modal": "^3.16.1",
"react-qr-code": "^2.0.12"
},
"devDependencies": {
"webpack": "^5.88.2",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4",
"webpack-node-externals": "^3.0.0",
"@keplr-wallet/types": "^0.12.23",
"@types/node": "^20.6.0",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@types/react-modal": "^3.16.0",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"autoprefixer": "^10.4.15",
"@keplr-wallet/types": "^0.12.39",
"@types/node": "^20.8.10",
"@types/react": "^18.2.34",
"@types/react-dom": "^18.2.14",
"@types/react-modal": "^3.16.2",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"autoprefixer": "^10.4.16",
"buffer": "^6.0.3",
"crypto-browserify": "^3.12.0",
"eslint": "^8.49.0",
"eslint": "^8.52.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-unused-imports": "^3.0.0",
"path-browserify": "^1.0.1",
"postcss": "^8.4.29",
"postcss": "^8.4.31",
"prettier": "^3.0.3",
"process": "^0.11.10",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"secretjs": "^1.9.3",
"secretjs": "^1.12.0",
"stream-browserify": "^3.0.0",
"ts-loader": "^9.4.4",
"ts-loader": "^9.5.0",
"typescript": "^5.2.2",
"url-loader": "^4.1.1"
},
Expand Down
13 changes: 8 additions & 5 deletions src/components/ui/BaseModal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, {
import {
ComponentType,
FunctionComponent,
PropsWithChildren,
ReactElement,
Expand Down Expand Up @@ -32,11 +33,13 @@ export const BaseModal: FunctionComponent<BaseModalProps> = ({
ReactModal.setAppElement("body")
}, [])

const ModalSafeForReact18 = ReactModal as ComponentType<ReactModal["props"]>

return (
<ReactModal
<ModalSafeForReact18
ariaHideApp={false}
className={classNames?.modalContent ?? "_"}
contentElement={(props, children) => (
contentElement={(props) => (
<div style={baseModalStyles.modalContent} {...props}>
{children}
</div>
Expand All @@ -47,7 +50,7 @@ export const BaseModal: FunctionComponent<BaseModalProps> = ({
onClose?.()
}}
overlayClassName={classNames?.modalOverlay ?? "_"}
overlayElement={(props, children) => (
overlayElement={(props) => (
<div style={baseModalStyles.modalOverlay} {...props}>
{children}
</div>
Expand Down Expand Up @@ -90,6 +93,6 @@ export const BaseModal: FunctionComponent<BaseModalProps> = ({
)}
{children}
</>
</ReactModal>
</ModalSafeForReact18>
)
}
Loading

0 comments on commit 6de611c

Please sign in to comment.