@ckb-ccc/connector-react 2.1.6-next.0 → 2.2.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 +14 -9
- package/dist/hooks/useCcc.d.ts +2 -1
- package/dist/hooks/useCcc.d.ts.map +1 -1
- package/dist/hooks/useCcc.js +2 -2
- package/package.json +2 -2
- package/src/hooks/useCcc.tsx +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
# @ckb-ccc/connector-react
|
|
2
2
|
|
|
3
|
-
## 2.
|
|
3
|
+
## 2.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#552](https://github.com/ckb-devrel/ccc/pull/552) [`ab98c7a`](https://github.com/ckb-devrel/ccc/commit/ab98c7a772226cef78e865f6b37e83e7e2f57d66) Thanks [@Hanssen0](https://github.com/Hanssen0)! - Add a `hideKhie` option to hide the Khie wallet connection entry.
|
|
4
8
|
|
|
5
9
|
### Patch Changes
|
|
6
10
|
|
|
7
|
-
- Updated dependencies []:
|
|
8
|
-
- @ckb-ccc/connector@2.
|
|
11
|
+
- Updated dependencies [[`ab98c7a`](https://github.com/ckb-devrel/ccc/commit/ab98c7a772226cef78e865f6b37e83e7e2f57d66), [`c544a91`](https://github.com/ckb-devrel/ccc/commit/c544a9102098771cd54cf8708b91c1ac9afc6cde)]:
|
|
12
|
+
- @ckb-ccc/connector@2.3.0
|
|
13
|
+
|
|
14
|
+
## 2.1.6
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [[`087c24a`](https://github.com/ckb-devrel/ccc/commit/087c24a0336bf923a3bdadb1ed1769daf0bdd0bd), [`cd3d8b7`](https://github.com/ckb-devrel/ccc/commit/cd3d8b7db0a4662851fe4907902f7fb69fce3da6)]:
|
|
19
|
+
- @ckb-ccc/connector@2.2.4
|
|
9
20
|
|
|
10
21
|
## 2.1.5
|
|
11
22
|
|
|
@@ -94,12 +105,6 @@
|
|
|
94
105
|
- Updated dependencies []:
|
|
95
106
|
- @ckb-ccc/connector@1.1.7
|
|
96
107
|
|
|
97
|
-
## 1.1.7-next.0
|
|
98
|
-
### Patch Changes
|
|
99
|
-
|
|
100
|
-
- Updated dependencies []:
|
|
101
|
-
- @ckb-ccc/connector@1.1.7-next.0
|
|
102
|
-
|
|
103
108
|
## 1.1.6
|
|
104
109
|
### Patch Changes
|
|
105
110
|
|
package/dist/hooks/useCcc.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ccc } from "@ckb-ccc/connector";
|
|
2
2
|
import React, { HTMLAttributes, ReactNode } from "react";
|
|
3
|
-
export declare function Provider({ children, connectorProps, hideMark, name, icon, khieRelayAddress, signerFilter, signersController, defaultClient, clientOptions, }: {
|
|
3
|
+
export declare function Provider({ children, connectorProps, hideMark, hideKhie, name, icon, khieRelayAddress, signerFilter, signersController, defaultClient, clientOptions, }: {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
connectorProps?: HTMLAttributes<{}>;
|
|
6
6
|
hideMark?: boolean;
|
|
7
|
+
hideKhie?: boolean;
|
|
7
8
|
name?: string;
|
|
8
9
|
icon?: string;
|
|
9
10
|
khieRelayAddress?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCcc.d.ts","sourceRoot":"","sources":["../../src/hooks/useCcc.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,KAAK,EAAE,EAEZ,cAAc,EACd,SAAS,EAQV,MAAM,OAAO,CAAC;AAiDf,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,aAAa,GACd,EAAE;IACD,QAAQ,EAAE,SAA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C,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,CACb,UAAU,EAAE,GAAG,CAAC,UAAU,EAC1B,MAAM,EAAE,GAAG,CAAC,MAAM,KACf,OAAO,CAAC,OAAO,CAAC,CAAC;IACtB,iBAAiB,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC;IAC1C,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACvE,4BAyIA;AAED,wBAAgB,MAAM;YA7MR,OAAO;UACT,MAAM,OAAO;WACZ,MAAM,OAAO;gBACR,MAAM,OAAO;eACd,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI;YACzC,GAAG,CAAC,MAAM;aACT,GAAG,CAAC,MAAM;iBACN,GAAG,CAAC,UAAU;EA8MhC"}
|
package/dist/hooks/useCcc.js
CHANGED
|
@@ -19,7 +19,7 @@ class SignersControllerWithFilter extends ccc.SignersController {
|
|
|
19
19
|
return super.addSigner(walletName, icon, signerInfo, context);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
export function Provider({ children, connectorProps, hideMark, name, icon, khieRelayAddress, signerFilter, signersController, defaultClient, clientOptions, }) {
|
|
22
|
+
export function Provider({ children, connectorProps, hideMark, hideKhie, name, icon, khieRelayAddress, signerFilter, signersController, defaultClient, clientOptions, }) {
|
|
23
23
|
const [ref, setRef] = useState(null);
|
|
24
24
|
const connectionOwner = useRef(undefined);
|
|
25
25
|
const [connection, setConnection] = useState();
|
|
@@ -89,7 +89,7 @@ export function Provider({ children, connectorProps, hideMark, name, icon, khieR
|
|
|
89
89
|
wallet: connection?.wallet,
|
|
90
90
|
signerInfo: connection?.signerInfo,
|
|
91
91
|
} },
|
|
92
|
-
React.createElement(Connector, { client: client, hideMark: hideMark, name: name, icon: icon, khieRelayAddress: khieRelayAddress, signersController: signersController ?? defaultSignersController, ref: setRef, onClose: close, onConnection: onConnection, clientOptions: clientOptions, ...connectorProps,
|
|
92
|
+
React.createElement(Connector, { client: client, hideMark: hideMark, hideKhie: hideKhie, name: name, icon: icon, khieRelayAddress: khieRelayAddress, signersController: signersController ?? defaultSignersController, ref: setRef, onClose: close, onConnection: onConnection, clientOptions: clientOptions, ...connectorProps,
|
|
93
93
|
style: {
|
|
94
94
|
zIndex: 999,
|
|
95
95
|
...(isOpen ? {} : { display: "none" }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckb-ccc/connector-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "CCC - CKBer's Codebase. Common Chains Connector UI Component for React",
|
|
5
5
|
"author": "Hanssen0 <hanssen0@hanssen0.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@lit/react": "^1.0.8",
|
|
37
|
-
"@ckb-ccc/connector": "2.
|
|
37
|
+
"@ckb-ccc/connector": "2.3.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@types/react": ">=16",
|
package/src/hooks/useCcc.tsx
CHANGED
|
@@ -63,6 +63,7 @@ export function Provider({
|
|
|
63
63
|
children,
|
|
64
64
|
connectorProps,
|
|
65
65
|
hideMark,
|
|
66
|
+
hideKhie,
|
|
66
67
|
name,
|
|
67
68
|
icon,
|
|
68
69
|
khieRelayAddress,
|
|
@@ -74,6 +75,7 @@ export function Provider({
|
|
|
74
75
|
children: ReactNode;
|
|
75
76
|
connectorProps?: HTMLAttributes<{}>;
|
|
76
77
|
hideMark?: boolean;
|
|
78
|
+
hideKhie?: boolean;
|
|
77
79
|
name?: string;
|
|
78
80
|
icon?: string;
|
|
79
81
|
khieRelayAddress?: string;
|
|
@@ -184,6 +186,7 @@ export function Provider({
|
|
|
184
186
|
<Connector
|
|
185
187
|
client={client}
|
|
186
188
|
hideMark={hideMark}
|
|
189
|
+
hideKhie={hideKhie}
|
|
187
190
|
name={name}
|
|
188
191
|
icon={icon}
|
|
189
192
|
khieRelayAddress={khieRelayAddress}
|