@ckb-ccc/connector-react 0.0.12-alpha.1 → 0.0.12-alpha.5

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.
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../src/advanced.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,OAAO,KAAK,IAAI,MAAM,kBAAkB,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
@@ -1,4 +1,4 @@
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";
4
4
  //# sourceMappingURL=barrel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../src/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,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";
@@ -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,UAAU,CAAC;AACzB,cAAc,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"}
@@ -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,EAAyB,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAChE,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"}
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"}
@@ -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,3 +1,3 @@
1
- import { ccc } from "..";
1
+ import { ccc } from "@ckb-ccc/connector";
2
2
  export declare function useSigner(): ccc.Signer | undefined;
3
3
  //# sourceMappingURL=useSigner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSigner.d.ts","sourceRoot":"","sources":["../../src/hooks/useSigner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,IAAI,CAAC;AAGzB,wBAAgB,SAAS,IAAI,GAAG,CAAC,MAAM,GAAG,SAAS,CAElD"}
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"}
@@ -1,4 +1,4 @@
1
- import { useCcc } from "./useCcc";
1
+ import { useCcc } from "./useCcc.js";
2
2
  export function useSigner() {
3
3
  return useCcc().signerInfo?.signer;
4
4
  }
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,OAAO,KAAK,GAAG,MAAM,UAAU,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.1",
3
+ "version": "0.0.12-alpha.5",
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.1",
42
+ "@ckb-ccc/connector": "0.0.12-alpha.5",
43
43
  "@lit/react": "^1.0.5",
44
44
  "react": "^18"
45
45
  },
46
- "gitHead": "22b1e1e4c7e56c8a6e9f699f54193cbec7d30a8b"
46
+ "gitHead": "79a366a6cb8d308f4055080b3d7a7e67f2d61317"
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";
@@ -1,2 +1,2 @@
1
- export * from "./useCcc";
2
- export * from "./useSigner";
1
+ export * from "./useCcc.js";
2
+ export * from "./useSigner.js";
@@ -1,4 +1,4 @@
1
- import { WebComponentConnector, ccc } from "@ckb-ccc/connector";
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
 
@@ -1,5 +1,5 @@
1
- import { ccc } from "..";
2
- import { useCcc } from "./useCcc";
1
+ import { ccc } from "@ckb-ccc/connector";
2
+ import { useCcc } from "./useCcc.js";
3
3
 
4
4
  export function useSigner(): ccc.Signer | undefined {
5
5
  return useCcc().signerInfo?.signer;
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";