@aptos-labs/wallet-adapter-ant-design 1.2.5 → 2.0.0

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @aptos-labs/wallet-adapter-ant-design
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 31e0084: Support TypeScript SDK V2. Fully compatible with existing SDK V1 and Wallet Adapter V1
8
+ but with a full SDK V2 support for the dapp.
9
+
10
+ - Add support for SDK V2 input types
11
+ - `signAndSubmitTransaction()` accept only SDK V2 transaction input type
12
+ - Implement a `submitTransaction()` function for multi signers transactions
13
+ - `signTransaction()` to support both SDK V1 and V2 versions
14
+ - Convert wallet `SignedTransaction` response from `signTransaction()` to TS SDK V2 `AccountAuthenticator`
15
+ - Demo app to demonstrate different trnsaction flows - single signer, sponsor and multi agent transactions
16
+ - Reject promise on core and/or provider errors instead of just returning `false`
17
+ - Use `@aptos-labs/ts-sdk@experimental` version `0.0.7`
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [31e0084]
22
+ - @aptos-labs/wallet-adapter-react@2.0.0
23
+
24
+ ## 1.2.7
25
+
26
+ ### Patch Changes
27
+
28
+ - dd6e1ed: Moves dependencies to peer dependencies as needed
29
+ - Updated dependencies [7acfa69]
30
+ - Updated dependencies [dd6e1ed]
31
+ - @aptos-labs/wallet-adapter-react@1.4.0
32
+
3
33
  ## 1.2.5
4
34
 
5
35
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
1
2
  import { Dispatch, SetStateAction } from 'react';
2
3
 
3
- declare type WalletSelectorProps = {
4
+ type WalletSelectorProps = {
4
5
  isModalOpen?: boolean;
5
6
  setModalOpen?: Dispatch<SetStateAction<boolean>>;
6
7
  };
7
- declare function WalletSelector({ isModalOpen, setModalOpen, }: WalletSelectorProps): JSX.Element;
8
+ declare function WalletSelector({ isModalOpen, setModalOpen, }: WalletSelectorProps): react_jsx_runtime.JSX.Element;
8
9
 
9
10
  export { WalletSelector };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptos-labs/wallet-adapter-ant-design",
3
- "version": "1.2.5",
3
+ "version": "2.0.0",
4
4
  "description": "Aptos Wallet Adapter ant-design",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -43,8 +43,10 @@
43
43
  "@aptos-labs/wallet-adapter-tsconfig": "0.0.0"
44
44
  },
45
45
  "dependencies": {
46
- "@aptos-labs/wallet-adapter-react": "1.3.2",
47
- "antd": "^5.1.2",
46
+ "@aptos-labs/wallet-adapter-react": "^2.0.0",
47
+ "antd": "^5.1.2"
48
+ },
49
+ "peerDependencies": {
48
50
  "react": "^18",
49
51
  "react-dom": "^18"
50
52
  },
@@ -4,8 +4,8 @@ import {
4
4
  isRedirectable,
5
5
  useWallet,
6
6
  Wallet,
7
- WalletName,
8
7
  WalletReadyState,
8
+ WalletName,
9
9
  } from "@aptos-labs/wallet-adapter-react";
10
10
  import "./styles.css";
11
11
  import { truncateAddress } from "./utils";