@ckb-ccc/connector-react 0.0.12-alpha.0 → 0.0.12-alpha.4
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/dist/advanced.d.ts +2 -2
- package/dist/advanced.d.ts.map +1 -1
- package/dist/advanced.js +2 -2
- package/dist/barrel.d.ts +2 -2
- package/dist/barrel.d.ts.map +1 -1
- package/dist/barrel.js +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/useCcc.d.ts.map +1 -1
- package/dist/hooks/useCcc.js +1 -1
- package/dist/hooks/useSigner.d.ts +1 -1
- package/dist/hooks/useSigner.d.ts.map +1 -1
- package/dist/hooks/useSigner.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/package.json +3 -3
- package/src/advanced.ts +2 -2
- package/src/barrel.ts +2 -2
- package/src/hooks/index.ts +2 -2
- package/src/hooks/useCcc.tsx +3 -3
- package/src/hooks/useSigner.tsx +2 -2
- package/src/index.ts +2 -2
package/dist/advanced.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./advancedBarrel";
|
|
2
|
-
export * as cccA from "./advancedBarrel";
|
|
1
|
+
export * from "./advancedBarrel.js";
|
|
2
|
+
export * as cccA from "./advancedBarrel.js";
|
|
3
3
|
//# sourceMappingURL=advanced.d.ts.map
|
package/dist/advanced.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../src/advanced.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../src/advanced.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAC"}
|
package/dist/advanced.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./advancedBarrel";
|
|
2
|
-
export * as cccA from "./advancedBarrel";
|
|
1
|
+
export * from "./advancedBarrel.js";
|
|
2
|
+
export * as cccA from "./advancedBarrel.js";
|
package/dist/barrel.d.ts
CHANGED
package/dist/barrel.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../src/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,
|
|
1
|
+
{"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../src/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
|
package/dist/barrel.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export * from "@ckb-ccc/connector/barrel";
|
|
2
|
-
export * from "./components";
|
|
3
|
-
export * from "./hooks";
|
|
2
|
+
export * from "./components/index.js";
|
|
3
|
+
export * from "./hooks/index.js";
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./useCcc";
|
|
2
|
-
export * from "./useSigner";
|
|
1
|
+
export * from "./useCcc.js";
|
|
2
|
+
export * from "./useSigner.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./useCcc";
|
|
2
|
-
export * from "./useSigner";
|
|
1
|
+
export * from "./useCcc.js";
|
|
2
|
+
export * from "./useSigner.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCcc.d.ts","sourceRoot":"","sources":["../../src/hooks/useCcc.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
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,KAMN,MAAM,OAAO,CAAC;AAef,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EACR,cAAc,EACd,IAAI,EACJ,IAAI,EACJ,YAAY,EACZ,aAAa,EACb,iBAAiB,GAClB,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,cAAc,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,CACb,UAAU,EAAE,GAAG,CAAC,UAAU,EAC1B,MAAM,EAAE,GAAG,CAAC,MAAM,KACf,OAAO,CAAC,OAAO,CAAC,CAAC;IACtB,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,GAAG,CAAC,iBAAiB,EAAE,CAAC;CAC7C,qBAsEA;AAED,wBAAgB,MAAM;;;;;;;EAQrB"}
|
package/dist/hooks/useCcc.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ccc } from "@ckb-ccc/connector";
|
|
2
2
|
import React, { createContext, useCallback, useEffect, useMemo, useState, } from "react";
|
|
3
|
-
import { Connector } from "../components";
|
|
3
|
+
import { Connector } from "../components/index.js";
|
|
4
4
|
const CCC_CONTEXT = createContext(undefined);
|
|
5
5
|
export function Provider({ children, connectorProps, name, icon, signerFilter, defaultClient, preferredNetworks, }) {
|
|
6
6
|
const [ref, setRef] = useState(null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSigner.d.ts","sourceRoot":"","sources":["../../src/hooks/useSigner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useSigner.d.ts","sourceRoot":"","sources":["../../src/hooks/useSigner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAGzC,wBAAgB,SAAS,IAAI,GAAG,CAAC,MAAM,GAAG,SAAS,CAElD"}
|
package/dist/hooks/useSigner.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./barrel";
|
|
2
|
-
export * as ccc from "./barrel";
|
|
1
|
+
export * from "./barrel.js";
|
|
2
|
+
export * as ccc from "./barrel.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./barrel";
|
|
2
|
-
export * as ccc from "./barrel";
|
|
1
|
+
export * from "./barrel.js";
|
|
2
|
+
export * as ccc from "./barrel.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckb-ccc/connector-react",
|
|
3
|
-
"version": "0.0.12-alpha.
|
|
3
|
+
"version": "0.0.12-alpha.4",
|
|
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",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@ckb-ccc/connector": "0.0.12-alpha.
|
|
42
|
+
"@ckb-ccc/connector": "0.0.12-alpha.4",
|
|
43
43
|
"@lit/react": "^1.0.5",
|
|
44
44
|
"react": "^18"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "e40082930923fe770bdb570ae4815edfc70c49a8"
|
|
47
47
|
}
|
package/src/advanced.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./advancedBarrel";
|
|
2
|
-
export * as cccA from "./advancedBarrel";
|
|
1
|
+
export * from "./advancedBarrel.js";
|
|
2
|
+
export * as cccA from "./advancedBarrel.js";
|
package/src/barrel.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export * from "@ckb-ccc/connector/barrel";
|
|
2
|
-
export * from "./components";
|
|
3
|
-
export * from "./hooks";
|
|
2
|
+
export * from "./components/index.js";
|
|
3
|
+
export * from "./hooks/index.js";
|
package/src/hooks/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./useCcc";
|
|
2
|
-
export * from "./useSigner";
|
|
1
|
+
export * from "./useCcc.js";
|
|
2
|
+
export * from "./useSigner.js";
|
package/src/hooks/useCcc.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ccc } from "@ckb-ccc/connector";
|
|
2
2
|
import React, {
|
|
3
3
|
createContext,
|
|
4
4
|
useCallback,
|
|
@@ -6,7 +6,7 @@ import React, {
|
|
|
6
6
|
useMemo,
|
|
7
7
|
useState,
|
|
8
8
|
} from "react";
|
|
9
|
-
import { Connector } from "../components";
|
|
9
|
+
import { Connector } from "../components/index.js";
|
|
10
10
|
|
|
11
11
|
const CCC_CONTEXT = createContext<
|
|
12
12
|
| {
|
|
@@ -40,7 +40,7 @@ export function Provider({
|
|
|
40
40
|
defaultClient?: ccc.Client;
|
|
41
41
|
preferredNetworks?: ccc.NetworkPreference[];
|
|
42
42
|
}) {
|
|
43
|
-
const [ref, setRef] = useState<WebComponentConnector | null>(null);
|
|
43
|
+
const [ref, setRef] = useState<ccc.WebComponentConnector | null>(null);
|
|
44
44
|
const [isOpen, setIsOpen] = useState(false);
|
|
45
45
|
const [_, setFlag] = useState(0);
|
|
46
46
|
|
package/src/hooks/useSigner.tsx
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./barrel";
|
|
2
|
-
export * as ccc from "./barrel";
|
|
1
|
+
export * from "./barrel.js";
|
|
2
|
+
export * as ccc from "./barrel.js";
|