@ckb-ccc/joy-id 0.0.10-alpha.6 → 0.0.10-alpha.8

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.
Files changed (62) hide show
  1. package/dist/advanced.d.ts +1 -1
  2. package/dist/advanced.d.ts.map +1 -1
  3. package/dist/advanced.js +1 -1
  4. package/dist/advancedBarrel.d.ts +2 -2
  5. package/dist/advancedBarrel.d.ts.map +1 -1
  6. package/dist/advancedBarrel.js +2 -2
  7. package/dist/barrel.d.ts +5 -5
  8. package/dist/barrel.d.ts.map +1 -1
  9. package/dist/barrel.js +5 -5
  10. package/dist/btc/index.d.ts +1 -1
  11. package/dist/btc/index.d.ts.map +1 -1
  12. package/dist/btc/index.js +2 -2
  13. package/dist/ckb/index.d.ts +1 -1
  14. package/dist/ckb/index.d.ts.map +1 -1
  15. package/dist/ckb/index.js +2 -2
  16. package/dist/evm/index.d.ts +1 -1
  17. package/dist/evm/index.d.ts.map +1 -1
  18. package/dist/evm/index.js +2 -2
  19. package/dist/index.d.ts +1 -1
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +1 -1
  22. package/dist/nostr/index.d.ts +1 -1
  23. package/dist/nostr/index.d.ts.map +1 -1
  24. package/dist/nostr/index.js +2 -2
  25. package/dist/package.json +3 -0
  26. package/dist/signerFactory/index.js +4 -4
  27. package/dist.commonjs/advanced.d.ts +1 -1
  28. package/dist.commonjs/advanced.d.ts.map +1 -1
  29. package/dist.commonjs/advanced.js +1 -1
  30. package/dist.commonjs/advancedBarrel.d.ts +2 -2
  31. package/dist.commonjs/advancedBarrel.d.ts.map +1 -1
  32. package/dist.commonjs/advancedBarrel.js +2 -2
  33. package/dist.commonjs/barrel.d.ts +5 -5
  34. package/dist.commonjs/barrel.d.ts.map +1 -1
  35. package/dist.commonjs/barrel.js +5 -5
  36. package/dist.commonjs/btc/index.d.ts +1 -1
  37. package/dist.commonjs/btc/index.d.ts.map +1 -1
  38. package/dist.commonjs/btc/index.js +5 -5
  39. package/dist.commonjs/ckb/index.d.ts +1 -1
  40. package/dist.commonjs/ckb/index.d.ts.map +1 -1
  41. package/dist.commonjs/ckb/index.js +6 -6
  42. package/dist.commonjs/evm/index.d.ts +1 -1
  43. package/dist.commonjs/evm/index.d.ts.map +1 -1
  44. package/dist.commonjs/evm/index.js +5 -5
  45. package/dist.commonjs/index.d.ts +1 -1
  46. package/dist.commonjs/index.d.ts.map +1 -1
  47. package/dist.commonjs/index.js +1 -1
  48. package/dist.commonjs/nostr/index.d.ts +1 -1
  49. package/dist.commonjs/nostr/index.d.ts.map +1 -1
  50. package/dist.commonjs/nostr/index.js +5 -5
  51. package/dist.commonjs/package.json +3 -0
  52. package/dist.commonjs/signerFactory/index.js +10 -10
  53. package/package.json +5 -4
  54. package/src/advanced.ts +1 -1
  55. package/src/advancedBarrel.ts +2 -2
  56. package/src/barrel.ts +5 -5
  57. package/src/btc/index.ts +2 -2
  58. package/src/ckb/index.ts +2 -2
  59. package/src/evm/index.ts +2 -2
  60. package/src/index.ts +1 -1
  61. package/src/nostr/index.ts +2 -2
  62. package/src/signerFactory/index.ts +4 -4
@@ -1,2 +1,2 @@
1
- export * as JoyIdA from "./advancedBarrel";
1
+ export * as JoyIdA from "./advancedBarrel.js";
2
2
  //# sourceMappingURL=advanced.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../src/advanced.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../src/advanced.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC"}
package/dist/advanced.js CHANGED
@@ -1 +1 @@
1
- export * as JoyIdA from "./advancedBarrel";
1
+ export * as JoyIdA from "./advancedBarrel.js";
@@ -1,3 +1,3 @@
1
- export * from "./common";
2
- export * from "./connectionsStorage";
1
+ export * from "./common/index.js";
2
+ export * from "./connectionsStorage/index.js";
3
3
  //# sourceMappingURL=advancedBarrel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"advancedBarrel.d.ts","sourceRoot":"","sources":["../src/advancedBarrel.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"advancedBarrel.d.ts","sourceRoot":"","sources":["../src/advancedBarrel.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC"}
@@ -1,2 +1,2 @@
1
- export * from "./common";
2
- export * from "./connectionsStorage";
1
+ export * from "./common/index.js";
2
+ export * from "./connectionsStorage/index.js";
package/dist/barrel.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export * from "./btc";
2
- export * from "./ckb";
3
- export * from "./evm";
4
- export * from "./nostr";
5
- export * from "./signerFactory";
1
+ export * from "./btc/index.js";
2
+ export * from "./ckb/index.js";
3
+ export * from "./evm/index.js";
4
+ export * from "./nostr/index.js";
5
+ export * from "./signerFactory/index.js";
6
6
  //# sourceMappingURL=barrel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../src/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../src/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC"}
package/dist/barrel.js CHANGED
@@ -1,5 +1,5 @@
1
- export * from "./btc";
2
- export * from "./ckb";
3
- export * from "./evm";
4
- export * from "./nostr";
5
- export * from "./signerFactory";
1
+ export * from "./btc/index.js";
2
+ export * from "./ckb/index.js";
3
+ export * from "./evm/index.js";
4
+ export * from "./nostr/index.js";
5
+ export * from "./signerFactory/index.js";
@@ -1,5 +1,5 @@
1
1
  import { ccc } from "@ckb-ccc/core";
2
- import { ConnectionsRepo } from "../connectionsStorage";
2
+ import { ConnectionsRepo } from "../connectionsStorage/index.js";
3
3
  /**
4
4
  * Class representing a Bitcoin signer that extends SignerBtc from @ckb-ccc/core.
5
5
  * @class
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/btc/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAGpC,OAAO,EAEL,eAAe,EAEhB,MAAM,uBAAuB,CAAC;AAE/B;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,GAAG,CAAC,SAAS;aA6B5B,IAAI,EAAE,MAAM;aACZ,IAAI,EAAE,MAAM;IAC5B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;aAYlB,WAAW,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM;IACvD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;IACzB,OAAO,CAAC,QAAQ,CAAC,eAAe;IA5ClC,OAAO,CAAC,UAAU,CAAC,CAAa;IAChC,OAAO,CAAC,OAAO,CAAgB;IAE/B;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;IAQxB;;;;;;;;OAQG;gBAED,MAAM,EAAE,GAAG,CAAC,MAAM,EACF,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACX,iBAAiB,GAAE,GAAG,CAAC,iBAAiB,EAWxD,EACe,WAAW,GAAE,MAAM,GAAG,QAAQ,GAAG,MAAe,EAC/C,OAAO,CAAC,oBAAQ,EAChB,eAAe,GAAE,eAAmD;IAKvF;;;;OAIG;IACH,OAAO,CAAC,SAAS;IA6BX,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IASjC;;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AAC,IAAI,CAAC;IASjC;;;OAGG;IACG,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC;IAKtC;;;OAGG;IACG,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC;IAKzC;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IA+B9B;;;OAGG;IACG,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAYrC;;;;OAIG;IACG,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;CAsBvE"}
package/dist/btc/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ccc } from "@ckb-ccc/core";
2
2
  import { DappRequestType, buildJoyIDURL } from "@joyid/common";
3
- import { createPopup } from "../common";
4
- import { ConnectionsRepoLocalStorage, } from "../connectionsStorage";
3
+ import { createPopup } from "../common/index.js";
4
+ import { ConnectionsRepoLocalStorage, } from "../connectionsStorage/index.js";
5
5
  /**
6
6
  * Class representing a Bitcoin signer that extends SignerBtc from @ckb-ccc/core.
7
7
  * @class
@@ -1,5 +1,5 @@
1
1
  import { ccc } from "@ckb-ccc/core";
2
- import { ConnectionsRepo } from "../connectionsStorage";
2
+ import { ConnectionsRepo } from "../connectionsStorage/index.js";
3
3
  /**
4
4
  * Class representing a CKB signer that extends Signer from @ckb-ccc/core.
5
5
  * @class
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ckb/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAIpC,OAAO,EAEL,eAAe,EAEhB,MAAM,uBAAuB,CAAC;AAE/B;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,GAAG,CAAC,MAAM;IA4CrC,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC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,IAAI,OAAO,CAAC,MAAM,CAAC;IAI3C;;;OAGG;IACG,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC;IAQpC;;;OAGG;IACG,aAAa,IAAI,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;IAO3C;;;OAGG;IACG,cAAc,IAAI,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;IAI9C;;;;OAIG;IACG,kBAAkB,CACtB,MAAM,EAAE,GAAG,CAAC,eAAe,GAC1B,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC;IAmB3B;;;;;;OAMG;YACW,2BAA2B;IAuCzC;;;;OAIG;IACG,mBAAmB,CACvB,MAAM,EAAE,GAAG,CAAC,eAAe,GAC1B,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC;IA8C3B;;;;OAIG;IACG,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;IA2BtE;;;;OAIG;YACW,cAAc;IAU5B;;;;OAIG;YACW,iBAAiB;CAMhC"}
package/dist/ckb/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { ccc } from "@ckb-ccc/core";
2
2
  import { Aggregator } from "@joyid/ckb";
3
3
  import { DappRequestType, buildJoyIDURL } from "@joyid/common";
4
- import { createPopup } from "../common";
5
- import { ConnectionsRepoLocalStorage, } from "../connectionsStorage";
4
+ import { createPopup } from "../common/index.js";
5
+ import { ConnectionsRepoLocalStorage, } from "../connectionsStorage/index.js";
6
6
  /**
7
7
  * Class representing a CKB signer that extends Signer from @ckb-ccc/core.
8
8
  * @class
@@ -1,5 +1,5 @@
1
1
  import { ccc } from "@ckb-ccc/core";
2
- import { ConnectionsRepo } from "../connectionsStorage";
2
+ import { ConnectionsRepo } from "../connectionsStorage/index.js";
3
3
  /**
4
4
  * Class representing an EVM signer that extends SignerEvm from @ckb-ccc/core.
5
5
  * @class
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"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,qBAAa,SAAU,SAAQ,GAAG,CAAC,SAAS;IA2BxC,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;IACzB,OAAO,CAAC,QAAQ,CAAC,eAAe;IA7BlC,OAAO,CAAC,UAAU,CAAC,CAAa;IAEhC;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;IAQxB;;;;;;;OAOG;gBAED,MAAM,EAAE,GAAG,CAAC,MAAM,EACD,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,oBAAQ,EAChB,eAAe,GAAE,eAAmD;IAKvF;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAajB;;;OAGG;IACG,aAAa,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC;IAIvC;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAgBxB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAOjC;;;OAGG;IACG,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAQrC;;;;OAIG;IACG,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC;IAuBvE;;;;OAIG;YACW,cAAc;IAU5B;;;;OAIG;YACW,iBAAiB;CAMhC"}
package/dist/evm/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ccc } from "@ckb-ccc/core";
2
2
  import { DappRequestType, buildJoyIDURL } from "@joyid/common";
3
- import { createPopup } from "../common";
4
- import { ConnectionsRepoLocalStorage, } from "../connectionsStorage";
3
+ import { createPopup } from "../common/index.js";
4
+ import { ConnectionsRepoLocalStorage, } from "../connectionsStorage/index.js";
5
5
  /**
6
6
  * Class representing an EVM signer that extends SignerEvm from @ckb-ccc/core.
7
7
  * @class
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * as JoyId from "./barrel";
1
+ export * as JoyId from "./barrel.js";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC"}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export * as JoyId from "./barrel";
1
+ export * as JoyId from "./barrel.js";
@@ -1,5 +1,5 @@
1
1
  import { ccc } from "@ckb-ccc/core";
2
- import { ConnectionsRepo } from "../connectionsStorage";
2
+ import { ConnectionsRepo } from "../connectionsStorage/index.js";
3
3
  /**
4
4
  * Class representing a Nostr signer that extends SignerNostr from @ckb-ccc/core.
5
5
  * @class
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/nostr/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAGpC,OAAO,EAEL,eAAe,EAEhB,MAAM,uBAAuB,CAAC;AAE/B;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,GAAG,CAAC,WAAW;IA2B5C,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;IACzB,OAAO,CAAC,QAAQ,CAAC,eAAe;IA7BlC,OAAO,CAAC,UAAU,CAAC,CAAa;IAEhC;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;IAQxB;;;;;;;OAOG;gBAED,MAAM,EAAE,GAAG,CAAC,MAAM,EACD,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,oBAAQ,EAChB,eAAe,GAAE,eAAmD;IAKvF;;;;OAI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C;IAS/B,iBAAiB,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC;IAIrC,cAAc,CAClB,KAAK,EAAE,GAAG,CAAC,UAAU,GACpB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAYpC;;;;OAIG;YACW,cAAc;IAU5B;;;;OAIG;YACW,iBAAiB;CAMhC"}
@@ -1,7 +1,7 @@
1
1
  import { ccc } from "@ckb-ccc/core";
2
2
  import { DappRequestType, buildJoyIDURL } from "@joyid/common";
3
- import { createPopup } from "../common";
4
- import { ConnectionsRepoLocalStorage, } from "../connectionsStorage";
3
+ import { createPopup } from "../common/index.js";
4
+ import { ConnectionsRepoLocalStorage, } from "../connectionsStorage/index.js";
5
5
  /**
6
6
  * Class representing a Nostr signer that extends SignerNostr from @ckb-ccc/core.
7
7
  * @class
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -1,9 +1,9 @@
1
1
  import { ccc } from "@ckb-ccc/core";
2
2
  import { isStandaloneBrowser } from "@joyid/common";
3
- import { BitcoinSigner } from "../btc";
4
- import { CkbSigner } from "../ckb";
5
- import { EvmSigner } from "../evm";
6
- import { NostrSigner } from "../nostr";
3
+ import { BitcoinSigner } from "../btc/index.js";
4
+ import { CkbSigner } from "../ckb/index.js";
5
+ import { EvmSigner } from "../evm/index.js";
6
+ import { NostrSigner } from "../nostr/index.js";
7
7
  /**
8
8
  * Gets the JoyID signers based on the client, name, and icon.
9
9
  * If the browser is standalone or a webview, returns SignerAlwaysError instances.
@@ -1,2 +1,2 @@
1
- export * as JoyIdA from "./advancedBarrel";
1
+ export * as JoyIdA from "./advancedBarrel.js";
2
2
  //# sourceMappingURL=advanced.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../src/advanced.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../src/advanced.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC"}
@@ -24,4 +24,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.JoyIdA = void 0;
27
- exports.JoyIdA = __importStar(require("./advancedBarrel"));
27
+ exports.JoyIdA = __importStar(require("./advancedBarrel.js"));
@@ -1,3 +1,3 @@
1
- export * from "./common";
2
- export * from "./connectionsStorage";
1
+ export * from "./common/index.js";
2
+ export * from "./connectionsStorage/index.js";
3
3
  //# sourceMappingURL=advancedBarrel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"advancedBarrel.d.ts","sourceRoot":"","sources":["../src/advancedBarrel.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"advancedBarrel.d.ts","sourceRoot":"","sources":["../src/advancedBarrel.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC"}
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./common"), exports);
18
- __exportStar(require("./connectionsStorage"), exports);
17
+ __exportStar(require("./common/index.js"), exports);
18
+ __exportStar(require("./connectionsStorage/index.js"), exports);
@@ -1,6 +1,6 @@
1
- export * from "./btc";
2
- export * from "./ckb";
3
- export * from "./evm";
4
- export * from "./nostr";
5
- export * from "./signerFactory";
1
+ export * from "./btc/index.js";
2
+ export * from "./ckb/index.js";
3
+ export * from "./evm/index.js";
4
+ export * from "./nostr/index.js";
5
+ export * from "./signerFactory/index.js";
6
6
  //# sourceMappingURL=barrel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../src/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../src/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC"}
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./btc"), exports);
18
- __exportStar(require("./ckb"), exports);
19
- __exportStar(require("./evm"), exports);
20
- __exportStar(require("./nostr"), exports);
21
- __exportStar(require("./signerFactory"), exports);
17
+ __exportStar(require("./btc/index.js"), exports);
18
+ __exportStar(require("./ckb/index.js"), exports);
19
+ __exportStar(require("./evm/index.js"), exports);
20
+ __exportStar(require("./nostr/index.js"), exports);
21
+ __exportStar(require("./signerFactory/index.js"), exports);
@@ -1,5 +1,5 @@
1
1
  import { ccc } from "@ckb-ccc/core";
2
- import { ConnectionsRepo } from "../connectionsStorage";
2
+ import { ConnectionsRepo } from "../connectionsStorage/index.js";
3
3
  /**
4
4
  * Class representing a Bitcoin signer that extends SignerBtc from @ckb-ccc/core.
5
5
  * @class
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/btc/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAGpC,OAAO,EAEL,eAAe,EAEhB,MAAM,uBAAuB,CAAC;A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hB,MAAM,gCAAgC,CAAC;AAExC;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,GAAG,CAAC,SAAS;aA6B5B,IAAI,EAAE,MAAM;aACZ,IAAI,EAAE,MAAM;IAC5B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;aAYlB,WAAW,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM;IACvD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;IACzB,OAAO,CAAC,QAAQ,CAAC,eAAe;IA5ClC,OAAO,CAAC,UAAU,CAAC,CAAa;IAChC,OAAO,CAAC,OAAO,CAAgB;IAE/B;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;IAQxB;;;;;;;;OAQG;gBAED,MAAM,EAAE,GAAG,CAAC,MAAM,EACF,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACX,iBAAiB,GAAE,GAAG,CAAC,iBAAiB,EAWxD,EACe,WAAW,GAAE,MAAM,GAAG,QAAQ,GAAG,MAAe,EAC/C,OAAO,CAAC,oBAAQ,EAChB,eAAe,GAAE,eAAmD;IAKvF;;;;OAIG;IACH,OAAO,CAAC,SAAS;IA6BX,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IASjC;;;OAGG;IACG,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC;IAKtC;;;OAGG;IACG,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC;IAKzC;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IA+B9B;;;OAGG;IACG,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAYrC;;;;OAIG;IACG,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;CAsBvE"}
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BitcoinSigner = void 0;
4
4
  const core_1 = require("@ckb-ccc/core");
5
5
  const common_1 = require("@joyid/common");
6
- const common_2 = require("../common");
7
- const connectionsStorage_1 = require("../connectionsStorage");
6
+ const index_js_1 = require("../common/index.js");
7
+ const index_js_2 = require("../connectionsStorage/index.js");
8
8
  /**
9
9
  * Class representing a Bitcoin signer that extends SignerBtc from @ckb-ccc/core.
10
10
  * @class
@@ -43,7 +43,7 @@ class BitcoinSigner extends core_1.ccc.SignerBtc {
43
43
  signerType: core_1.ccc.SignerType.BTC,
44
44
  network: "btcTestnet",
45
45
  },
46
- ], addressType = "auto", _appUri, connectionsRepo = new connectionsStorage_1.ConnectionsRepoLocalStorage()) {
46
+ ], addressType = "auto", _appUri, connectionsRepo = new index_js_2.ConnectionsRepoLocalStorage()) {
47
47
  super(client);
48
48
  this.name = name;
49
49
  this.icon = icon;
@@ -105,7 +105,7 @@ class BitcoinSigner extends core_1.ccc.SignerBtc {
105
105
  */
106
106
  async connect() {
107
107
  const config = this.getConfig();
108
- const res = await (0, common_2.createPopup)((0, common_1.buildJoyIDURL)(config, "popup", "/auth"), {
108
+ const res = await (0, index_js_1.createPopup)((0, common_1.buildJoyIDURL)(config, "popup", "/auth"), {
109
109
  ...config,
110
110
  type: common_1.DappRequestType.Auth,
111
111
  });
@@ -148,7 +148,7 @@ class BitcoinSigner extends core_1.ccc.SignerBtc {
148
148
  const { address } = this.assertConnection();
149
149
  const challenge = typeof message === "string" ? message : core_1.ccc.hexFrom(message).slice(2);
150
150
  const config = this.getConfig();
151
- const { signature } = await (0, common_2.createPopup)((0, common_1.buildJoyIDURL)({
151
+ const { signature } = await (0, index_js_1.createPopup)((0, common_1.buildJoyIDURL)({
152
152
  ...config,
153
153
  challenge,
154
154
  address,
@@ -1,5 +1,5 @@
1
1
  import { ccc } from "@ckb-ccc/core";
2
- import { ConnectionsRepo } from "../connectionsStorage";
2
+ import { ConnectionsRepo } from "../connectionsStorage/index.js";
3
3
  /**
4
4
  * Class representing a CKB signer that extends Signer from @ckb-ccc/core.
5
5
  * @class
@@ -1 +1 @@
1
- {"version":3,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OAAO,CAAC,oBAAQ,EAChB,cAAc,CAAC,oBAAQ,EACvB,eAAe,GAAE,eAAmD;IAKvF;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAYjB;;;;OAIG;IACH,OAAO,CAAC,gBAAgB;IAUxB;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAgBxB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAOjC;;;OAGG;IACG,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAQrC;;;OAGG;IACG,kBAAkB,IAAI,OAAO,CAAC,MAAM,CAAC;IAI3C;;;OAGG;IACG,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC;IAQpC;;;OAGG;IACG,aAAa,IAAI,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;IAO3C;;;OAGG;IACG,cAAc,IAAI,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;IAI9C;;;;OAIG;IACG,kBAAkB,CACtB,MAAM,EAAE,GAAG,CAAC,eAAe,GAC1B,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC;IAmB3B;;;;;;OAMG;YACW,2BAA2B;IAuCzC;;;;OAIG;IACG,mBAAmB,CACvB,MAAM,EAAE,GAAG,CAAC,eAAe,GAC1B,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC;IA8C3B;;;;OAIG;IACG,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;IA2BtE;;;;OAIG;YACW,cAAc;IAU5B;;;;OAIG;YACW,iBAAiB;CAMhC"}
@@ -4,8 +4,8 @@ exports.CkbSigner = void 0;
4
4
  const core_1 = require("@ckb-ccc/core");
5
5
  const ckb_1 = require("@joyid/ckb");
6
6
  const common_1 = require("@joyid/common");
7
- const common_2 = require("../common");
8
- const connectionsStorage_1 = require("../connectionsStorage");
7
+ const index_js_1 = require("../common/index.js");
8
+ const index_js_2 = require("../connectionsStorage/index.js");
9
9
  /**
10
10
  * Class representing a CKB signer that extends Signer from @ckb-ccc/core.
11
11
  * @class
@@ -47,7 +47,7 @@ class CkbSigner extends core_1.ccc.Signer {
47
47
  * @param {string} [_aggregatorUri] - The aggregator URI.
48
48
  * @param {ConnectionsRepo} [connectionsRepo=new ConnectionsRepoLocalStorage()] - The connections repository.
49
49
  */
50
- constructor(client, name, icon, _appUri, _aggregatorUri, connectionsRepo = new connectionsStorage_1.ConnectionsRepoLocalStorage()) {
50
+ constructor(client, name, icon, _appUri, _aggregatorUri, connectionsRepo = new index_js_2.ConnectionsRepoLocalStorage()) {
51
51
  super(client);
52
52
  this.name = name;
53
53
  this.icon = icon;
@@ -89,7 +89,7 @@ class CkbSigner extends core_1.ccc.Signer {
89
89
  */
90
90
  async connect() {
91
91
  const config = this.getConfig();
92
- const res = await (0, common_2.createPopup)((0, common_1.buildJoyIDURL)(config, "popup", "/auth"), {
92
+ const res = await (0, index_js_1.createPopup)((0, common_1.buildJoyIDURL)(config, "popup", "/auth"), {
93
93
  ...config,
94
94
  type: common_1.DappRequestType.Auth,
95
95
  });
@@ -222,7 +222,7 @@ class CkbSigner extends core_1.ccc.Signer {
222
222
  i.outputData = undefined;
223
223
  });
224
224
  const config = this.getConfig();
225
- const res = await (0, common_2.createPopup)((0, common_1.buildJoyIDURL)({
225
+ const res = await (0, index_js_1.createPopup)((0, common_1.buildJoyIDURL)({
226
226
  ...config,
227
227
  tx: JSON.parse(tx.stringify()),
228
228
  signerAddress: (await this.assertConnection()).address,
@@ -242,7 +242,7 @@ class CkbSigner extends core_1.ccc.Signer {
242
242
  const { address } = await this.assertConnection();
243
243
  const challenge = typeof message === "string" ? message : core_1.ccc.hexFrom(message).slice(2);
244
244
  const config = this.getConfig();
245
- const res = await (0, common_2.createPopup)((0, common_1.buildJoyIDURL)({
245
+ const res = await (0, index_js_1.createPopup)((0, common_1.buildJoyIDURL)({
246
246
  ...config,
247
247
  challenge,
248
248
  isData: typeof message !== "string",
@@ -1,5 +1,5 @@
1
1
  import { ccc } from "@ckb-ccc/core";
2
- import { ConnectionsRepo } from "../connectionsStorage";
2
+ import { ConnectionsRepo } from "../connectionsStorage/index.js";
3
3
  /**
4
4
  * Class representing an EVM signer that extends SignerEvm from @ckb-ccc/core.
5
5
  * @class
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/evm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAGpC,OAAO,EAEL,eAAe,EAEhB,MAAM,uBAAuB,CAAC;AAE/B;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,GAAG,CAAC,SAAS;IA2BxC,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;IACzB,OAAO,CAAC,QAAQ,CAAC,eAAe;IA7BlC,OAAO,CAAC,UAAU,CAAC,CAAa;IAEhC;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;IAQxB;;;;;;;OAOG;gBAED,MAAM,EAAE,GAAG,CAAC,MAAM,EACD,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,oBAAQ,EAChB,eAAe,GAAE,eAAmD;IAKvF;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAajB;;;OAGG;IACG,aAAa,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC;IAIvC;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAgBxB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAOjC;;;OAGG;IACG,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAQrC;;;;OAIG;IACG,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC;IAuBvE;;;;OAIG;YACW,cAAc;IAU5B;;;;OAIG;YACW,iBAAiB;CAMhC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/evm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAGpC,OAAO,EAEL,eAAe,EAEhB,MAAM,gCAAgC,CAAC;AAExC;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,GAAG,CAAC,SAAS;IA2BxC,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;IACzB,OAAO,CAAC,QAAQ,CAAC,eAAe;IA7BlC,OAAO,CAAC,UAAU,CAAC,CAAa;IAEhC;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;IAQxB;;;;;;;OAOG;gBAED,MAAM,EAAE,GAAG,CAAC,MAAM,EACD,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,oBAAQ,EAChB,eAAe,GAAE,eAAmD;IAKvF;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAajB;;;OAGG;IACG,aAAa,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC;IAIvC;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAgBxB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAOjC;;;OAGG;IACG,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAQrC;;;;OAIG;IACG,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC;IAuBvE;;;;OAIG;YACW,cAAc;IAU5B;;;;OAIG;YACW,iBAAiB;CAMhC"}
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EvmSigner = void 0;
4
4
  const core_1 = require("@ckb-ccc/core");
5
5
  const common_1 = require("@joyid/common");
6
- const common_2 = require("../common");
7
- const connectionsStorage_1 = require("../connectionsStorage");
6
+ const index_js_1 = require("../common/index.js");
7
+ const index_js_2 = require("../connectionsStorage/index.js");
8
8
  /**
9
9
  * Class representing an EVM signer that extends SignerEvm from @ckb-ccc/core.
10
10
  * @class
@@ -31,7 +31,7 @@ class EvmSigner extends core_1.ccc.SignerEvm {
31
31
  * @param appUri - The application URI.
32
32
  * @param connectionsRepo - The connections repository.
33
33
  */
34
- constructor(client, name, icon, _appUri, connectionsRepo = new connectionsStorage_1.ConnectionsRepoLocalStorage()) {
34
+ constructor(client, name, icon, _appUri, connectionsRepo = new index_js_2.ConnectionsRepoLocalStorage()) {
35
35
  super(client);
36
36
  this.name = name;
37
37
  this.icon = icon;
@@ -67,7 +67,7 @@ class EvmSigner extends core_1.ccc.SignerEvm {
67
67
  */
68
68
  async connect() {
69
69
  const config = this.getConfig();
70
- const res = await (0, common_2.createPopup)((0, common_1.buildJoyIDURL)(config, "popup", "/auth"), {
70
+ const res = await (0, index_js_1.createPopup)((0, common_1.buildJoyIDURL)(config, "popup", "/auth"), {
71
71
  ...config,
72
72
  type: common_1.DappRequestType.Auth,
73
73
  });
@@ -103,7 +103,7 @@ class EvmSigner extends core_1.ccc.SignerEvm {
103
103
  const { address } = this.assertConnection();
104
104
  const challenge = typeof message === "string" ? message : core_1.ccc.hexFrom(message).slice(2);
105
105
  const config = this.getConfig();
106
- const { signature } = await (0, common_2.createPopup)((0, common_1.buildJoyIDURL)({
106
+ const { signature } = await (0, index_js_1.createPopup)((0, common_1.buildJoyIDURL)({
107
107
  ...config,
108
108
  challenge,
109
109
  isData: typeof message !== "string",
@@ -1,2 +1,2 @@
1
- export * as JoyId from "./barrel";
1
+ export * as JoyId from "./barrel.js";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC"}
@@ -24,4 +24,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.JoyId = void 0;
27
- exports.JoyId = __importStar(require("./barrel"));
27
+ exports.JoyId = __importStar(require("./barrel.js"));
@@ -1,5 +1,5 @@
1
1
  import { ccc } from "@ckb-ccc/core";
2
- import { ConnectionsRepo } from "../connectionsStorage";
2
+ import { ConnectionsRepo } from "../connectionsStorage/index.js";
3
3
  /**
4
4
  * Class representing a Nostr signer that extends SignerNostr from @ckb-ccc/core.
5
5
  * @class
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/nostr/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAGpC,OAAO,EAEL,eAAe,EAEhB,MAAM,uBAAuB,CAAC;AAE/B;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,GAAG,CAAC,WAAW;IA2B5C,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;IACzB,OAAO,CAAC,QAAQ,CAAC,eAAe;IA7BlC,OAAO,CAAC,UAAU,CAAC,CAAa;IAEhC;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;IAQxB;;;;;;;OAOG;gBAED,MAAM,EAAE,GAAG,CAAC,MAAM,EACD,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,oBAAQ,EAChB,eAAe,GAAE,eAAmD;IAKvF;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAajB;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAexB,UAAU,I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AG,CAAC,UAAU,GACpB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAYpC;;;;OAIG;YACW,cAAc;IAU5B;;;;OAIG;YACW,iBAAiB;CAMhC"}
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NostrSigner = void 0;
4
4
  const core_1 = require("@ckb-ccc/core");
5
5
  const common_1 = require("@joyid/common");
6
- const common_2 = require("../common");
7
- const connectionsStorage_1 = require("../connectionsStorage");
6
+ const index_js_1 = require("../common/index.js");
7
+ const index_js_2 = require("../connectionsStorage/index.js");
8
8
  /**
9
9
  * Class representing a Nostr signer that extends SignerNostr from @ckb-ccc/core.
10
10
  * @class
@@ -31,7 +31,7 @@ class NostrSigner extends core_1.ccc.SignerNostr {
31
31
  * @param appUri - The application URI.
32
32
  * @param connectionsRepo - The connections repository.
33
33
  */
34
- constructor(client, name, icon, _appUri, connectionsRepo = new connectionsStorage_1.ConnectionsRepoLocalStorage()) {
34
+ constructor(client, name, icon, _appUri, connectionsRepo = new index_js_2.ConnectionsRepoLocalStorage()) {
35
35
  super(client);
36
36
  this.name = name;
37
37
  this.icon = icon;
@@ -60,7 +60,7 @@ class NostrSigner extends core_1.ccc.SignerNostr {
60
60
  */
61
61
  async connect() {
62
62
  const config = this.getConfig();
63
- const res = await (0, common_2.createPopup)((0, common_1.buildJoyIDURL)(config, "popup", "/auth"), {
63
+ const res = await (0, index_js_1.createPopup)((0, common_1.buildJoyIDURL)(config, "popup", "/auth"), {
64
64
  ...config,
65
65
  type: common_1.DappRequestType.Auth,
66
66
  });
@@ -92,7 +92,7 @@ class NostrSigner extends core_1.ccc.SignerNostr {
92
92
  }
93
93
  async signNostrEvent(event) {
94
94
  const config = this.getConfig();
95
- const res = await (0, common_2.createPopup)((0, common_1.buildJoyIDURL)({ ...config, event }, "popup", "/sign-nostr-event"), {
95
+ const res = await (0, index_js_1.createPopup)((0, common_1.buildJoyIDURL)({ ...config, event }, "popup", "/sign-nostr-event"), {
96
96
  ...config,
97
97
  type: common_1.DappRequestType.SignNostrEvent,
98
98
  });
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getJoyIdSigners = void 0;
4
4
  const core_1 = require("@ckb-ccc/core");
5
5
  const common_1 = require("@joyid/common");
6
- const btc_1 = require("../btc");
7
- const ckb_1 = require("../ckb");
8
- const evm_1 = require("../evm");
9
- const nostr_1 = require("../nostr");
6
+ const index_js_1 = require("../btc/index.js");
7
+ const index_js_2 = require("../ckb/index.js");
8
+ const index_js_3 = require("../evm/index.js");
9
+ const index_js_4 = require("../nostr/index.js");
10
10
  /**
11
11
  * Gets the JoyID signers based on the client, name, and icon.
12
12
  * If the browser is standalone or a webview, returns SignerAlwaysError instances.
@@ -26,27 +26,27 @@ function getJoyIdSigners(client, name, icon, preferredNetworks) {
26
26
  return [
27
27
  {
28
28
  name: "CKB",
29
- signer: new ckb_1.CkbSigner(client, name, icon),
29
+ signer: new index_js_2.CkbSigner(client, name, icon),
30
30
  },
31
31
  {
32
32
  name: "BTC",
33
- signer: new btc_1.BitcoinSigner(client, name, icon, preferredNetworks),
33
+ signer: new index_js_1.BitcoinSigner(client, name, icon, preferredNetworks),
34
34
  },
35
35
  {
36
36
  name: "Nostr",
37
- signer: new nostr_1.NostrSigner(client, name, icon),
37
+ signer: new index_js_4.NostrSigner(client, name, icon),
38
38
  },
39
39
  {
40
40
  name: "EVM",
41
- signer: new evm_1.EvmSigner(client, name, icon),
41
+ signer: new index_js_3.EvmSigner(client, name, icon),
42
42
  },
43
43
  {
44
44
  name: "BTC (P2WPKH)",
45
- signer: new btc_1.BitcoinSigner(client, name, icon, preferredNetworks, "p2wpkh"),
45
+ signer: new index_js_1.BitcoinSigner(client, name, icon, preferredNetworks, "p2wpkh"),
46
46
  },
47
47
  {
48
48
  name: "BTC (P2TR)",
49
- signer: new btc_1.BitcoinSigner(client, name, icon, preferredNetworks, "p2tr"),
49
+ signer: new index_js_1.BitcoinSigner(client, name, icon, preferredNetworks, "p2tr"),
50
50
  },
51
51
  ];
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckb-ccc/joy-id",
3
- "version": "0.0.10-alpha.6",
3
+ "version": "0.0.10-alpha.8",
4
4
  "description": "Connector's support for JoyID",
5
5
  "author": "Hanssen0 <hanssen0@hanssen0.com>",
6
6
  "license": "MIT",
@@ -19,12 +19,13 @@
19
19
  }
20
20
  },
21
21
  "scripts": {
22
- "build": "rimraf ./dist && rimraf ./dist.commonjs && tsc && tsc --project tsconfig.commonjs.json",
22
+ "build": "rimraf ./dist && rimraf ./dist.commonjs && tsc && tsc --project tsconfig.commonjs.json && copyfiles -u 2 misc/basedirs/**/* .",
23
23
  "lint": "eslint",
24
24
  "format": "prettier --write . && eslint --fix"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@eslint/js": "^9.1.1",
28
+ "copyfiles": "^2.4.1",
28
29
  "eslint": "^9.1.0",
29
30
  "eslint-config-prettier": "^9.1.0",
30
31
  "eslint-plugin-prettier": "^5.1.3",
@@ -38,9 +39,9 @@
38
39
  "access": "public"
39
40
  },
40
41
  "dependencies": {
41
- "@ckb-ccc/core": "0.0.10-alpha.6",
42
+ "@ckb-ccc/core": "0.0.10-alpha.8",
42
43
  "@joyid/ckb": "^1.0.1",
43
44
  "@joyid/common": "^0.2.0"
44
45
  },
45
- "gitHead": "16cf49da60cb01f0f0903fccc0d597d8de54f905"
46
+ "gitHead": "b7481af6b71cd5d525462984750c9f0cb20800af"
46
47
  }
package/src/advanced.ts CHANGED
@@ -1 +1 @@
1
- export * as JoyIdA from "./advancedBarrel";
1
+ export * as JoyIdA from "./advancedBarrel.js";
@@ -1,2 +1,2 @@
1
- export * from "./common";
2
- export * from "./connectionsStorage";
1
+ export * from "./common/index.js";
2
+ export * from "./connectionsStorage/index.js";
package/src/barrel.ts CHANGED
@@ -1,5 +1,5 @@
1
- export * from "./btc";
2
- export * from "./ckb";
3
- export * from "./evm";
4
- export * from "./nostr";
5
- export * from "./signerFactory";
1
+ export * from "./btc/index.js";
2
+ export * from "./ckb/index.js";
3
+ export * from "./evm/index.js";
4
+ export * from "./nostr/index.js";
5
+ export * from "./signerFactory/index.js";
package/src/btc/index.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { ccc } from "@ckb-ccc/core";
2
2
  import { DappRequestType, buildJoyIDURL } from "@joyid/common";
3
- import { createPopup } from "../common";
3
+ import { createPopup } from "../common/index.js";
4
4
  import {
5
5
  Connection,
6
6
  ConnectionsRepo,
7
7
  ConnectionsRepoLocalStorage,
8
- } from "../connectionsStorage";
8
+ } from "../connectionsStorage/index.js";
9
9
 
10
10
  /**
11
11
  * Class representing a Bitcoin signer that extends SignerBtc from @ckb-ccc/core.
package/src/ckb/index.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { ccc } from "@ckb-ccc/core";
2
2
  import { Aggregator } from "@joyid/ckb";
3
3
  import { DappRequestType, buildJoyIDURL } from "@joyid/common";
4
- import { createPopup } from "../common";
4
+ import { createPopup } from "../common/index.js";
5
5
  import {
6
6
  Connection,
7
7
  ConnectionsRepo,
8
8
  ConnectionsRepoLocalStorage,
9
- } from "../connectionsStorage";
9
+ } from "../connectionsStorage/index.js";
10
10
 
11
11
  /**
12
12
  * Class representing a CKB signer that extends Signer from @ckb-ccc/core.
package/src/evm/index.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { ccc } from "@ckb-ccc/core";
2
2
  import { DappRequestType, buildJoyIDURL } from "@joyid/common";
3
- import { createPopup } from "../common";
3
+ import { createPopup } from "../common/index.js";
4
4
  import {
5
5
  Connection,
6
6
  ConnectionsRepo,
7
7
  ConnectionsRepoLocalStorage,
8
- } from "../connectionsStorage";
8
+ } from "../connectionsStorage/index.js";
9
9
 
10
10
  /**
11
11
  * Class representing an EVM signer that extends SignerEvm from @ckb-ccc/core.
package/src/index.ts CHANGED
@@ -1 +1 @@
1
- export * as JoyId from "./barrel";
1
+ export * as JoyId from "./barrel.js";
@@ -1,11 +1,11 @@
1
1
  import { ccc } from "@ckb-ccc/core";
2
2
  import { DappRequestType, buildJoyIDURL } from "@joyid/common";
3
- import { createPopup } from "../common";
3
+ import { createPopup } from "../common/index.js";
4
4
  import {
5
5
  Connection,
6
6
  ConnectionsRepo,
7
7
  ConnectionsRepoLocalStorage,
8
- } from "../connectionsStorage";
8
+ } from "../connectionsStorage/index.js";
9
9
 
10
10
  /**
11
11
  * Class representing a Nostr signer that extends SignerNostr from @ckb-ccc/core.
@@ -1,9 +1,9 @@
1
1
  import { ccc } from "@ckb-ccc/core";
2
2
  import { isStandaloneBrowser } from "@joyid/common";
3
- import { BitcoinSigner } from "../btc";
4
- import { CkbSigner } from "../ckb";
5
- import { EvmSigner } from "../evm";
6
- import { NostrSigner } from "../nostr";
3
+ import { BitcoinSigner } from "../btc/index.js";
4
+ import { CkbSigner } from "../ckb/index.js";
5
+ import { EvmSigner } from "../evm/index.js";
6
+ import { NostrSigner } from "../nostr/index.js";
7
7
 
8
8
  /**
9
9
  * Gets the JoyID signers based on the client, name, and icon.