@coinswap-app/uikit 1.0.14 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ export * from "./widgets/WalletModal";
2
+ export * from "./widgets/DisclaimerModal";
3
+ export * from "./widgets/ConnectVerifyPanel";
@@ -1,14 +1,14 @@
1
1
  import React from "react";
2
2
  import { ContextData } from "../../../util/types";
3
- import { ConnectorNames, Login } from "../../WalletModal/types";
3
+ import type { Login, ConnectorNames } from "../../WalletModal/types";
4
4
  interface Props {
5
5
  account?: string;
6
- login: Login;
7
- logout: () => void;
8
- handleLogin: (connectorId: ConnectorNames, title: string) => void;
6
+ login?: Login | (() => void);
7
+ logout?: () => void;
8
+ handleLogin?: (connectorId: ConnectorNames, title: string) => void;
9
9
  translations?: (key: string, data?: ContextData) => string;
10
- setIsConnectWalletPanelOpen: (isOpen: boolean) => void;
11
- isUserVerified: boolean;
10
+ setIsConnectWalletPanelOpen?: (isOpen: boolean) => void;
11
+ isUserVerified?: boolean;
12
12
  }
13
13
  declare const UserBlock: React.FC<Props>;
14
14
  export default UserBlock;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinswap-app/uikit",
3
- "version": "1.0.14",
3
+ "version": "1.0.17",
4
4
  "description": "Set of UI components for CoinSwap projects",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -84,10 +84,11 @@
84
84
  "react": "^18.0.0",
85
85
  "react-dom": "^18.0.0",
86
86
  "react-router-dom": "^5.2.0",
87
- "styled-components": "^6.0.0"
87
+ "styled-components": "^6.0.0",
88
+ "@web3-react/core": "^8.2.3"
88
89
  },
89
90
  "dependencies": {
90
- "@coinswap-app/sdk": "^1.0.0",
91
+ "@coinswap-app/sdk": "^1.1.0",
91
92
  "@emotion/react": "^11.14.0",
92
93
  "@emotion/styled": "^11.14.1",
93
94
  "@mui/material": "^7.3.6",
@@ -96,7 +97,6 @@
96
97
  "@types/lodash": "^4.17.13",
97
98
  "@types/react-slick": "^0.23.13",
98
99
  "@types/styled-system": "^5.1.25",
99
- "@web3-react/core": "^8.2.0",
100
100
  "bignumber.js": "^9.1.3",
101
101
  "contentful": "^11.0.0",
102
102
  "date-fns": "^4.1.0",