@ckb-ccc/connector 0.0.12-alpha.1 → 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.
Files changed (59) hide show
  1. package/dist/advanced.d.ts +2 -2
  2. package/dist/advanced.d.ts.map +1 -1
  3. package/dist/advanced.js +2 -2
  4. package/dist/advancedBarrel.d.ts +1 -1
  5. package/dist/advancedBarrel.d.ts.map +1 -1
  6. package/dist/advancedBarrel.js +1 -1
  7. package/dist/assets/chains/btc.svg.js +1 -1
  8. package/dist/assets/chains/ckb.svg.js +1 -1
  9. package/dist/assets/chains/eth.svg.js +1 -1
  10. package/dist/assets/chains/index.d.ts +4 -4
  11. package/dist/assets/chains/index.d.ts.map +1 -1
  12. package/dist/assets/chains/index.js +4 -4
  13. package/dist/assets/chains/nostr.svg.js +1 -1
  14. package/dist/assets/close.svg.js +1 -1
  15. package/dist/assets/diconnect.svg.js +1 -1
  16. package/dist/assets/left.svg.js +1 -1
  17. package/dist/assets/retry.svg.js +1 -1
  18. package/dist/barrel.d.ts +3 -3
  19. package/dist/barrel.d.ts.map +1 -1
  20. package/dist/barrel.js +3 -3
  21. package/dist/components/dialog.d.ts.map +1 -1
  22. package/dist/components/dialog.js +3 -2
  23. package/dist/components/index.d.ts +4 -4
  24. package/dist/components/index.d.ts.map +1 -1
  25. package/dist/components/index.js +4 -4
  26. package/dist/connector/index.js +1 -1
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +2 -2
  30. package/dist/scenes/connected.js +3 -3
  31. package/dist/scenes/index.d.ts +2 -2
  32. package/dist/scenes/index.d.ts.map +1 -1
  33. package/dist/scenes/index.js +2 -2
  34. package/dist/scenes/selecting/connecting.js +1 -1
  35. package/dist/scenes/selecting/index.js +3 -3
  36. package/dist/scenes/selecting/signers.d.ts.map +1 -1
  37. package/dist/scenes/selecting/signers.js +1 -1
  38. package/package.json +3 -3
  39. package/src/advanced.ts +2 -2
  40. package/src/advancedBarrel.ts +1 -1
  41. package/src/assets/chains/btc.svg.ts +1 -1
  42. package/src/assets/chains/ckb.svg.ts +1 -1
  43. package/src/assets/chains/eth.svg.ts +1 -1
  44. package/src/assets/chains/index.ts +4 -4
  45. package/src/assets/chains/nostr.svg.ts +1 -1
  46. package/src/assets/close.svg.ts +1 -1
  47. package/src/assets/diconnect.svg.ts +1 -1
  48. package/src/assets/left.svg.ts +1 -1
  49. package/src/assets/retry.svg.ts +1 -1
  50. package/src/barrel.ts +3 -3
  51. package/src/components/dialog.ts +3 -2
  52. package/src/components/index.ts +4 -4
  53. package/src/connector/index.ts +2 -2
  54. package/src/index.ts +2 -2
  55. package/src/scenes/connected.ts +3 -3
  56. package/src/scenes/index.ts +2 -2
  57. package/src/scenes/selecting/connecting.ts +1 -1
  58. package/src/scenes/selecting/index.ts +3 -3
  59. package/src/scenes/selecting/signers.ts +6 -1
@@ -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";
@@ -1,3 +1,3 @@
1
1
  export * from "@ckb-ccc/ccc/advancedBarrel";
2
- export * from "./scenes";
2
+ export * from "./scenes/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,6BAA6B,CAAC;AAC5C,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"advancedBarrel.d.ts","sourceRoot":"","sources":["../src/advancedBarrel.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC"}
@@ -1,2 +1,2 @@
1
1
  export * from "@ckb-ccc/ccc/advancedBarrel";
2
- export * from "./scenes";
2
+ export * from "./scenes/index.js";
@@ -1,2 +1,2 @@
1
- import { encodeSvgToImgSrc } from "../utils";
1
+ import { encodeSvgToImgSrc } from "../utils.js";
2
2
  export const BTC_SVG = encodeSvgToImgSrc('<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" height="64" width="64" version="1.1"><link xmlns="" type="text/css" rel="stylesheet" id="dark-mode-custom-link"/><link xmlns="" type="text/css" rel="stylesheet" id="dark-mode-general-link"/><style xmlns="" lang="en" type="text/css" id="dark-mode-custom-style"/><style xmlns="" lang="en" type="text/css" id="dark-mode-native-style"/><style xmlns="" lang="en" type="text/css" id="dark-mode-native-sheet"/><script xmlns=""/><g transform="translate(0.00630876,-0.00301984)"><path fill="#f7931a" d="m63.033,39.744c-4.274,17.143-21.637,27.576-38.782,23.301-17.138-4.274-27.571-21.638-23.295-38.78,4.272-17.145,21.635-27.579,38.775-23.305,17.144,4.274,27.576,21.64,23.302,38.784z"/><path fill="#FFF" d="m46.103,27.444c0.637-4.258-2.605-6.547-7.038-8.074l1.438-5.768-3.511-0.875-1.4,5.616c-0.923-0.23-1.871-0.447-2.813-0.662l1.41-5.653-3.509-0.875-1.439,5.766c-0.764-0.174-1.514-0.346-2.242-0.527l0.004-0.018-4.842-1.209-0.934,3.75s2.605,0.597,2.55,0.634c1.422,0.355,1.679,1.296,1.636,2.042l-1.638,6.571c0.098,0.025,0.225,0.061,0.365,0.117-0.117-0.029-0.242-0.061-0.371-0.092l-2.296,9.205c-0.174,0.432-0.615,1.08-1.609,0.834,0.035,0.051-2.552-0.637-2.552-0.637l-1.743,4.019,4.569,1.139c0.85,0.213,1.683,0.436,2.503,0.646l-1.453,5.834,3.507,0.875,1.439-5.772c0.958,0.26,1.888,0.5,2.798,0.726l-1.434,5.745,3.511,0.875,1.453-5.823c5.987,1.133,10.489,0.676,12.384-4.739,1.527-4.36-0.076-6.875-3.226-8.515,2.294-0.529,4.022-2.038,4.483-5.155zm-8.022,11.249c-1.085,4.36-8.426,2.003-10.806,1.412l1.928-7.729c2.38,0.594,10.012,1.77,8.878,6.317zm1.086-11.312c-0.99,3.966-7.1,1.951-9.082,1.457l1.748-7.01c1.982,0.494,8.365,1.416,7.334,5.553z"/></g><script xmlns=""/></svg>');
@@ -1,2 +1,2 @@
1
- import { encodeSvgToImgSrc } from "../utils";
1
+ import { encodeSvgToImgSrc } from "../utils.js";
2
2
  export const CKB_SVG = encodeSvgToImgSrc('<svg width="668" height="666.66669" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"><polygon points="170.265,206.318 223.416,206.318 223.416,93.897 264.161,93.897 170.265,0 " transform="matrix(1.8256046,0,0,1.8256046,-166.4037,144.47964)" /><polygon points="324.79,112.422 284.046,112.422 377.941,206.318 377.941,0 324.79,0 " transform="matrix(1.8256046,0,0,1.8256046,-166.4037,144.47964)" /></svg>');
@@ -1,2 +1,2 @@
1
- import { encodeSvgToImgSrc } from "../utils";
1
+ import { encodeSvgToImgSrc } from "../utils.js";
2
2
  export const ETH_SVG = encodeSvgToImgSrc('<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_46_558)"><circle cx="16" cy="16" r="16" fill="#627EEA"/><path d="M15.9957 20.4203L9.14282 16.3876L15.9957 5.14258V20.4203Z" fill="white"/><path d="M15.9957 26.8573L9.30029 17.396L15.9957 21.3511V26.8573Z" fill="white"/><path d="M16.2319 20.4203L23.0849 16.3876L16.2319 5.14258V20.4203Z" fill="#C1CCF7"/><path d="M16.3107 26.8573L23.0848 17.396L16.3107 21.3511V26.8573Z" fill="#C1CCF7"/></g><defs><clipPath id="clip0_46_558"><rect width="32" height="32" fill="white"/></clipPath></defs></svg>');
@@ -1,5 +1,5 @@
1
- export * from "./btc.svg";
2
- export * from "./ckb.svg";
3
- export * from "./eth.svg";
4
- export * from "./nostr.svg";
1
+ export * from "./btc.svg.js";
2
+ export * from "./ckb.svg.js";
3
+ export * from "./eth.svg.js";
4
+ export * from "./nostr.svg.js";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/assets/chains/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/assets/chains/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"}
@@ -1,4 +1,4 @@
1
- export * from "./btc.svg";
2
- export * from "./ckb.svg";
3
- export * from "./eth.svg";
4
- export * from "./nostr.svg";
1
+ export * from "./btc.svg.js";
2
+ export * from "./ckb.svg.js";
3
+ export * from "./eth.svg.js";
4
+ export * from "./nostr.svg.js";
@@ -1,2 +1,2 @@
1
- import { encodeSvgToImgSrc } from "../utils";
1
+ import { encodeSvgToImgSrc } from "../utils.js";
2
2
  export const NOSTR_SVG = encodeSvgToImgSrc('<svg version="1.1" id="_8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 256 256" style="enable-background:new 0 0 256 256;" xml:space="preserve"><style type="text/css">.st0{fill:none;} .st1{fill:#FFFFFF;} .st2{fill:#662482;}</style><g><path class="st0" d="M0,0v256h256V0H0z M231.2,159.2c0,20.7,0,31.1-3.5,42.2c-4.4,12.2-14,21.8-26.2,26.2 c-11.1,3.5-21.5,3.5-42.2,3.5H96.8c-20.7,0-31.1,0-42.2-3.5c-12.2-4.4-21.8-14-26.2-26.2c-3.5-11.1-3.5-21.5-3.5-42.2V96.8 c0-20.7,0-31.1,3.5-42.2c4.4-12.2,14-21.8,26.2-26.2c11.2-3.5,21.5-3.5,42.2-3.5h62.5c20.7,0,31.1,0,42.2,3.5 c12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z"/> <circle class="st1" cx="137.9" cy="99" r="12.1"/><path class="st1" d="M210.8,115.9c0-47.3-27.7-68.7-64.4-68.7c-16.4,0-31,4.4-42.4,12.5c-3.8,2.7-9,0.1-9-4.5 c0-3.1-2.5-5.7-5.7-5.7H57.7c-3.1,0-5.7,2.5-5.7,5.7v144c0,3.1,2.5,5.7,5.7,5.7h33.7c3.1,0,5.6-2.5,5.6-5.6v-8.4 c0-62.8-33.2-109.8-0.4-116c30-5.7,64.1-3,64.5,20.1c0,2,0.3,8,8.6,11.2c5,2,12.6,2.6,22.6,2.4c0,0,9.1-0.7,9.1,8.5 c0,11.5-20.4,10.7-20.4,10.7c-6.7,0.3-22.6-1.5-31.7,1.2c-4.8,1.5-9,4.2-11.5,9.1c-4.2,8.3-6.2,26.5-6.5,45.5v15.5 c0,3.1,2.5,5.7,5.7,5.7h68c3.1,0,5.7-2.5,5.7-5.7l0,0V115.9z"/><path class="st2" d="M227.6,54.6c-4.4-12.2-14-21.8-26.2-26.2c-11.1-3.5-21.5-3.5-42.2-3.5H96.8c-20.7,0-31.1,0-42.2,3.5 c-12.2,4.4-21.8,14-26.2,26.2c-3.5,11.2-3.5,21.5-3.5,42.2v62.5c0,20.7,0,31.1,3.5,42.2c4.4,12.2,14,21.8,26.2,26.2 c11.2,3.5,21.5,3.5,42.2,3.5h62.5c20.7,0,31.1,0,42.2-3.5c12.2-4.4,21.8-14,26.2-26.2c3.5-11.1,3.5-21.5,3.5-42.2V96.8 C231.2,76.1,231.2,65.7,227.6,54.6z M205.1,204.8h-68c-3.1,0-5.7-2.5-5.7-5.7v-15.5c0.3-19,2.3-37.2,6.5-45.5 c2.5-5,6.7-7.7,11.5-9.1c9-2.7,24.9-0.9,31.7-1.2c0,0,20.4,0.8,20.4-10.7c0-9.3-9.1-8.5-9.1-8.5c-10,0.3-17.7-0.4-22.6-2.4 c-8.3-3.3-8.6-9.2-8.6-11.2c-0.4-23.1-34.5-25.9-64.5-20.1c-32.8,6.2,0.4,53.3,0.4,116v8.4c-0.1,3.1-2.5,5.6-5.6,5.6H57.7 c-3.1,0-5.7-2.5-5.7-5.7v-144c0-3.1,2.5-5.7,5.7-5.7h31.7c3.1,0,5.7,2.5,5.7,5.7c0,4.7,5.2,7.2,9,4.5c11.4-8.2,26-12.5,42.4-12.5 c36.7,0,64.4,21.4,64.4,68.7v83.2l0,0C210.8,202.3,208.3,204.8,205.1,204.8z M125.7,99c0-6.7,5.4-12.1,12.1-12.1S150,92.3,150,99 s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"/></g></svg>');
@@ -1,2 +1,2 @@
1
- import { encodeSvgToImgSrc } from "./utils";
1
+ import { encodeSvgToImgSrc } from "./utils.js";
2
2
  export const CLOSE_SVG = encodeSvgToImgSrc('<svg width="12" height="12" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"><path d="M10.8989 1.0512C10.5085 0.660741 9.87543 0.660703 9.48493 1.05111L5.94897 4.58624L2.41397 1.05124C2.0235 0.660772 1.39043 0.660773 0.999968 1.05124C0.609503 1.4417 0.609503 2.07477 0.999969 2.46524L4.53497 6.00024L0.999968 9.53524C0.609503 9.9257 0.609503 10.5588 0.999968 10.9492C1.39043 11.3397 2.0235 11.3397 2.41397 10.9492L5.94897 7.41424L9.48493 10.9494C9.87543 11.3398 10.5085 11.3397 10.8989 10.9493C11.2894 10.5588 11.2894 9.92568 10.8989 9.5352L7.36397 6.00024L10.8989 2.46528C11.2894 2.07479 11.2894 1.44168 10.8989 1.0512Z"/></svg>');
@@ -1,2 +1,2 @@
1
- import { encodeSvgToImgSrc } from "./utils";
1
+ import { encodeSvgToImgSrc } from "./utils.js";
2
2
  export const DISCONNECT_SVG = encodeSvgToImgSrc('<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect width="32" height="32" rx="8" fill="#DDDDDD"/><path d="M20.375 16.875H14.25V15.125H20.375L19.5 13.375H21.25L23 16L21.25 18.625H19.5L20.375 16.875ZM20.9509 11.051L19.7128 12.2886C19.226 11.8 18.6473 11.4125 18.0101 11.1484C17.3729 10.8844 16.6897 10.749 16 10.75C13.1006 10.75 10.75 13.1006 10.75 16C10.75 18.8994 13.1006 21.25 16 21.25C17.4107 21.25 18.7309 20.6923 19.71 19.7147L20.9462 20.9532C20.297 21.6031 19.5259 22.1184 18.6771 22.4696C17.8283 22.8209 16.9186 23.0011 16 23C12.1341 23 9 19.8659 9 16C9 12.1341 12.1341 9 16 9C17.8816 9 19.647 9.74667 20.9509 11.051Z" fill="#666666"/></svg>');
@@ -1,2 +1,2 @@
1
- import { encodeSvgToImgSrc } from "./utils";
1
+ import { encodeSvgToImgSrc } from "./utils.js";
2
2
  export const LEFT_SVG = encodeSvgToImgSrc('<svg width="8" height="14" viewBox="0 0 8 14" xmlns="http://www.w3.org/2000/svg"><path d="M6.74554 13.5C6.54646 13.5 6.35454 13.4177 6.21275 13.2695L0.720203 7.55253C0.426599 7.24573 0.426599 6.75035 0.720203 6.44355L6.21275 0.725059C6.50779 0.422747 6.98185 0.42574 7.27402 0.729549C7.5662 1.03485 7.56763 1.52723 7.27832 1.83404L2.31999 6.99729L7.27975 12.162C7.49459 12.3865 7.55904 12.7233 7.44303 13.0166C7.32415 13.3084 7.0506 13.5 6.74554 13.5Z" stroke="#1E1E1E" stroke-width="1"/></svg>');
@@ -1,2 +1,2 @@
1
- import { encodeSvgToImgSrc } from "./utils";
1
+ import { encodeSvgToImgSrc } from "./utils.js";
2
2
  export const RETRY_SVG = encodeSvgToImgSrc('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.398 1.16864C11.0369 1.16864 10.7961 1.41021 10.7961 1.77256V2.37648C10.1941 1.531 9.35141 0.866684 8.38828 0.504333C5.37851 -0.82429 1.82699 0.564725 0.502691 3.58432C-0.821607 6.60392 0.562886 10.167 3.57265 11.4957C6.58242 12.8243 10.1339 11.4353 11.4582 8.41568H11.398C11.398 8.05333 11.1573 7.81176 10.7961 7.81176C10.4349 7.81176 10.1941 8.05333 10.1941 8.41568H10.1339C9.59219 9.32156 8.80965 10.0463 7.78633 10.469C5.31832 11.4957 2.54933 10.2878 1.52601 7.81176C0.502691 5.33569 1.7066 2.49727 4.17461 1.531C6.40183 0.564725 8.93004 1.531 10.1339 3.58432H8.99023C8.62906 3.58432 8.38828 3.82589 8.38828 4.18824C8.38828 4.55059 8.62906 4.79216 8.99023 4.79216H11.398C11.7592 4.79216 12 4.55059 12 4.18824V1.77256C12 1.41021 11.7592 1.16864 11.398 1.16864Z" fill="#1E1E1E"/></svg>');
package/dist/barrel.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "@ckb-ccc/ccc/barrel";
2
- export * from "./connector";
3
- import "./components";
4
- import "./scenes";
2
+ export * from "./connector/index.js";
3
+ import "./components/index.js";
4
+ import "./scenes/index.js";
5
5
  //# sourceMappingURL=barrel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../src/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAE5B,OAAO,cAAc,CAAC;AACtB,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../src/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AAErC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,mBAAmB,CAAC"}
package/dist/barrel.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from "@ckb-ccc/ccc/barrel";
2
- export * from "./connector";
3
- import "./components";
4
- import "./scenes";
2
+ export * from "./connector/index.js";
3
+ import "./components/index.js";
4
+ import "./scenes/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAK5C,qBACa,MAAO,SAAQ,UAAU;IAE7B,OAAO,EAAE,GAAG,GAAG,SAAS,CAAC;IAEzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEvB,MAAM;IA6BN,MAAM,CAAC,MAAM,0BAsDX;CACH"}
1
+ {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAK5C,qBACa,MAAO,SAAQ,UAAU;IAE7B,OAAO,EAAE,GAAG,GAAG,SAAS,CAAC;IAEzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEvB,MAAM;IA6BN,MAAM,CAAC,MAAM,0BAuDX;CACH"}
@@ -66,7 +66,6 @@ Dialog.styles = css `
66
66
  .header-divider {
67
67
  padding-bottom: 1rem;
68
68
  border-bottom: 1px solid var(--divider);
69
- margin-bottom: 0.3rem;
70
69
  }
71
70
 
72
71
  .close,
@@ -84,11 +83,13 @@ Dialog.styles = css `
84
83
  }
85
84
 
86
85
  .body {
87
- padding: 0 1.3rem 1rem;
86
+ padding: 0.3rem 1.3rem 1rem;
88
87
  min-width: 20rem;
89
88
  display: flex;
90
89
  flex-direction: column;
91
90
  align-items: center;
91
+ max-height: 80vh;
92
+ overflow-y: auto;
92
93
  }
93
94
  `;
94
95
  __decorate([
@@ -1,5 +1,5 @@
1
- import "./button";
2
- import "./button-pill";
3
- import "./copy-button";
4
- import "./dialog";
1
+ import "./button-pill.js";
2
+ import "./button.js";
3
+ import "./copy-button.js";
4
+ import "./dialog.js";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAC;AAClB,OAAO,eAAe,CAAC;AACvB,OAAO,eAAe,CAAC;AACvB,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,aAAa,CAAC;AACrB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,aAAa,CAAC"}
@@ -1,4 +1,4 @@
1
- import "./button";
2
- import "./button-pill";
3
- import "./copy-button";
4
- import "./dialog";
1
+ import "./button-pill.js";
2
+ import "./button.js";
3
+ import "./copy-button.js";
4
+ import "./dialog.js";
@@ -8,7 +8,7 @@ import { ccc } from "@ckb-ccc/ccc";
8
8
  import { LitElement, css, html } from "lit";
9
9
  import { customElement, property, state } from "lit/decorators.js";
10
10
  import { createRef, ref } from "lit/directives/ref.js";
11
- import { SignersController } from "../signers";
11
+ import { SignersController } from "../signers/index.js";
12
12
  let WebComponentConnector = class WebComponentConnector extends LitElement {
13
13
  constructor() {
14
14
  super(...arguments);
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";
@@ -7,9 +7,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  import { ccc } from "@ckb-ccc/ccc";
8
8
  import { css, html, LitElement } from "lit";
9
9
  import { customElement, property, state } from "lit/decorators.js";
10
- import { CKB_SVG } from "../assets/chains";
11
- import { DISCONNECT_SVG } from "../assets/diconnect.svg";
12
- import { signerTypeToIcon } from "./selecting/signers";
10
+ import { CKB_SVG } from "../assets/chains/index.js";
11
+ import { DISCONNECT_SVG } from "../assets/diconnect.svg.js";
12
+ import { signerTypeToIcon } from "./selecting/signers.js";
13
13
  export function formatString(str, l = 9, r = 6) {
14
14
  if (str && str.length > l + r + 3) {
15
15
  return `${str.slice(0, l)}...${str.slice(-r)}`;
@@ -1,3 +1,3 @@
1
- import "./connected";
2
- import "./selecting";
1
+ import "./connected.js";
2
+ import "./selecting/index.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scenes/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scenes/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,CAAC;AACxB,OAAO,sBAAsB,CAAC"}
@@ -1,2 +1,2 @@
1
- import "./connected";
2
- import "./selecting";
1
+ import "./connected.js";
2
+ import "./selecting/index.js";
@@ -1,5 +1,5 @@
1
1
  import { html } from "lit";
2
- import { RETRY_SVG } from "../../assets/retry.svg";
2
+ import { RETRY_SVG } from "../../assets/retry.svg.js";
3
3
  export function generateConnectingScene(wallet, signer, error, onSignerSelected) {
4
4
  return [
5
5
  wallet.name,
@@ -6,9 +6,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { css, html, LitElement } from "lit";
8
8
  import { customElement, property, state } from "lit/decorators.js";
9
- import { generateConnectingScene } from "./connecting";
10
- import { generateSignersScene } from "./signers";
11
- import { generateWalletsScene } from "./wallets";
9
+ import { generateConnectingScene } from "./connecting.js";
10
+ import { generateSignersScene } from "./signers.js";
11
+ import { generateWalletsScene } from "./wallets.js";
12
12
  export class ConnectedEvent extends Event {
13
13
  constructor(walletName, signerName) {
14
14
  super("connected");
@@ -1 +1 @@
1
- {"version":3,"file":"signers.d.ts","sourceRoot":"","sources":["../../../src/scenes/selecting/signers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAKnC,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,CAAC,UAAU,GAAG,MAAM,CAO7D;AAED,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,GAAG,CAAC,iBAAiB,EAC7B,gBAAgB,EAAE,CAChB,MAAM,EAAE,GAAG,CAAC,iBAAiB,EAC7B,MAAM,EAAE,GAAG,CAAC,UAAU,KACnB,OAAO,gDA4Bb"}
1
+ {"version":3,"file":"signers.d.ts","sourceRoot":"","sources":["../../../src/scenes/selecting/signers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAUnC,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,CAAC,UAAU,GAAG,MAAM,CAO7D;AAED,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,GAAG,CAAC,iBAAiB,EAC7B,gBAAgB,EAAE,CAChB,MAAM,EAAE,GAAG,CAAC,iBAAiB,EAC7B,MAAM,EAAE,GAAG,CAAC,UAAU,KACnB,OAAO,gDA4Bb"}
@@ -1,7 +1,7 @@
1
1
  import { ccc } from "@ckb-ccc/ccc";
2
2
  import { html } from "lit";
3
3
  import { repeat } from "lit/directives/repeat.js";
4
- import { BTC_SVG, CKB_SVG, ETH_SVG, NOSTR_SVG } from "../../assets/chains";
4
+ import { BTC_SVG, CKB_SVG, ETH_SVG, NOSTR_SVG, } from "../../assets/chains/index.js";
5
5
  export function signerTypeToIcon(type) {
6
6
  return {
7
7
  [ccc.SignerType.BTC]: BTC_SVG,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckb-ccc/connector",
3
- "version": "0.0.12-alpha.1",
3
+ "version": "0.0.12-alpha.4",
4
4
  "description": "CCC - CKBer's Codebase. Common Chains Connector UI",
5
5
  "author": "Hanssen0 <hanssen0@hanssen0.com>",
6
6
  "license": "MIT",
@@ -38,8 +38,8 @@
38
38
  "access": "public"
39
39
  },
40
40
  "dependencies": {
41
- "@ckb-ccc/ccc": "0.0.12-alpha.1",
41
+ "@ckb-ccc/ccc": "0.0.12-alpha.4",
42
42
  "lit": "^3.1.3"
43
43
  },
44
- "gitHead": "22b1e1e4c7e56c8a6e9f699f54193cbec7d30a8b"
44
+ "gitHead": "e40082930923fe770bdb570ae4815edfc70c49a8"
45
45
  }
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";
@@ -1,2 +1,2 @@
1
1
  export * from "@ckb-ccc/ccc/advancedBarrel";
2
- export * from "./scenes";
2
+ export * from "./scenes/index.js";
@@ -1,4 +1,4 @@
1
- import { encodeSvgToImgSrc } from "../utils";
1
+ import { encodeSvgToImgSrc } from "../utils.js";
2
2
 
3
3
  export const BTC_SVG = encodeSvgToImgSrc(
4
4
  '<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" height="64" width="64" version="1.1"><link xmlns="" type="text/css" rel="stylesheet" id="dark-mode-custom-link"/><link xmlns="" type="text/css" rel="stylesheet" id="dark-mode-general-link"/><style xmlns="" lang="en" type="text/css" id="dark-mode-custom-style"/><style xmlns="" lang="en" type="text/css" id="dark-mode-native-style"/><style xmlns="" lang="en" type="text/css" id="dark-mode-native-sheet"/><script xmlns=""/><g transform="translate(0.00630876,-0.00301984)"><path fill="#f7931a" d="m63.033,39.744c-4.274,17.143-21.637,27.576-38.782,23.301-17.138-4.274-27.571-21.638-23.295-38.78,4.272-17.145,21.635-27.579,38.775-23.305,17.144,4.274,27.576,21.64,23.302,38.784z"/><path fill="#FFF" d="m46.103,27.444c0.637-4.258-2.605-6.547-7.038-8.074l1.438-5.768-3.511-0.875-1.4,5.616c-0.923-0.23-1.871-0.447-2.813-0.662l1.41-5.653-3.509-0.875-1.439,5.766c-0.764-0.174-1.514-0.346-2.242-0.527l0.004-0.018-4.842-1.209-0.934,3.75s2.605,0.597,2.55,0.634c1.422,0.355,1.679,1.296,1.636,2.042l-1.638,6.571c0.098,0.025,0.225,0.061,0.365,0.117-0.117-0.029-0.242-0.061-0.371-0.092l-2.296,9.205c-0.174,0.432-0.615,1.08-1.609,0.834,0.035,0.051-2.552-0.637-2.552-0.637l-1.743,4.019,4.569,1.139c0.85,0.213,1.683,0.436,2.503,0.646l-1.453,5.834,3.507,0.875,1.439-5.772c0.958,0.26,1.888,0.5,2.798,0.726l-1.434,5.745,3.511,0.875,1.453-5.823c5.987,1.133,10.489,0.676,12.384-4.739,1.527-4.36-0.076-6.875-3.226-8.515,2.294-0.529,4.022-2.038,4.483-5.155zm-8.022,11.249c-1.085,4.36-8.426,2.003-10.806,1.412l1.928-7.729c2.38,0.594,10.012,1.77,8.878,6.317zm1.086-11.312c-0.99,3.966-7.1,1.951-9.082,1.457l1.748-7.01c1.982,0.494,8.365,1.416,7.334,5.553z"/></g><script xmlns=""/></svg>',
@@ -1,4 +1,4 @@
1
- import { encodeSvgToImgSrc } from "../utils";
1
+ import { encodeSvgToImgSrc } from "../utils.js";
2
2
 
3
3
  export const CKB_SVG = encodeSvgToImgSrc(
4
4
  '<svg width="668" height="666.66669" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"><polygon points="170.265,206.318 223.416,206.318 223.416,93.897 264.161,93.897 170.265,0 " transform="matrix(1.8256046,0,0,1.8256046,-166.4037,144.47964)" /><polygon points="324.79,112.422 284.046,112.422 377.941,206.318 377.941,0 324.79,0 " transform="matrix(1.8256046,0,0,1.8256046,-166.4037,144.47964)" /></svg>',
@@ -1,4 +1,4 @@
1
- import { encodeSvgToImgSrc } from "../utils";
1
+ import { encodeSvgToImgSrc } from "../utils.js";
2
2
 
3
3
  export const ETH_SVG = encodeSvgToImgSrc(
4
4
  '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_46_558)"><circle cx="16" cy="16" r="16" fill="#627EEA"/><path d="M15.9957 20.4203L9.14282 16.3876L15.9957 5.14258V20.4203Z" fill="white"/><path d="M15.9957 26.8573L9.30029 17.396L15.9957 21.3511V26.8573Z" fill="white"/><path d="M16.2319 20.4203L23.0849 16.3876L16.2319 5.14258V20.4203Z" fill="#C1CCF7"/><path d="M16.3107 26.8573L23.0848 17.396L16.3107 21.3511V26.8573Z" fill="#C1CCF7"/></g><defs><clipPath id="clip0_46_558"><rect width="32" height="32" fill="white"/></clipPath></defs></svg>',
@@ -1,4 +1,4 @@
1
- export * from "./btc.svg";
2
- export * from "./ckb.svg";
3
- export * from "./eth.svg";
4
- export * from "./nostr.svg";
1
+ export * from "./btc.svg.js";
2
+ export * from "./ckb.svg.js";
3
+ export * from "./eth.svg.js";
4
+ export * from "./nostr.svg.js";
@@ -1,4 +1,4 @@
1
- import { encodeSvgToImgSrc } from "../utils";
1
+ import { encodeSvgToImgSrc } from "../utils.js";
2
2
 
3
3
  export const NOSTR_SVG = encodeSvgToImgSrc(
4
4
  '<svg version="1.1" id="_8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 256 256" style="enable-background:new 0 0 256 256;" xml:space="preserve"><style type="text/css">.st0{fill:none;} .st1{fill:#FFFFFF;} .st2{fill:#662482;}</style><g><path class="st0" d="M0,0v256h256V0H0z M231.2,159.2c0,20.7,0,31.1-3.5,42.2c-4.4,12.2-14,21.8-26.2,26.2 c-11.1,3.5-21.5,3.5-42.2,3.5H96.8c-20.7,0-31.1,0-42.2-3.5c-12.2-4.4-21.8-14-26.2-26.2c-3.5-11.1-3.5-21.5-3.5-42.2V96.8 c0-20.7,0-31.1,3.5-42.2c4.4-12.2,14-21.8,26.2-26.2c11.2-3.5,21.5-3.5,42.2-3.5h62.5c20.7,0,31.1,0,42.2,3.5 c12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z"/> <circle class="st1" cx="137.9" cy="99" r="12.1"/><path class="st1" d="M210.8,115.9c0-47.3-27.7-68.7-64.4-68.7c-16.4,0-31,4.4-42.4,12.5c-3.8,2.7-9,0.1-9-4.5 c0-3.1-2.5-5.7-5.7-5.7H57.7c-3.1,0-5.7,2.5-5.7,5.7v144c0,3.1,2.5,5.7,5.7,5.7h33.7c3.1,0,5.6-2.5,5.6-5.6v-8.4 c0-62.8-33.2-109.8-0.4-116c30-5.7,64.1-3,64.5,20.1c0,2,0.3,8,8.6,11.2c5,2,12.6,2.6,22.6,2.4c0,0,9.1-0.7,9.1,8.5 c0,11.5-20.4,10.7-20.4,10.7c-6.7,0.3-22.6-1.5-31.7,1.2c-4.8,1.5-9,4.2-11.5,9.1c-4.2,8.3-6.2,26.5-6.5,45.5v15.5 c0,3.1,2.5,5.7,5.7,5.7h68c3.1,0,5.7-2.5,5.7-5.7l0,0V115.9z"/><path class="st2" d="M227.6,54.6c-4.4-12.2-14-21.8-26.2-26.2c-11.1-3.5-21.5-3.5-42.2-3.5H96.8c-20.7,0-31.1,0-42.2,3.5 c-12.2,4.4-21.8,14-26.2,26.2c-3.5,11.2-3.5,21.5-3.5,42.2v62.5c0,20.7,0,31.1,3.5,42.2c4.4,12.2,14,21.8,26.2,26.2 c11.2,3.5,21.5,3.5,42.2,3.5h62.5c20.7,0,31.1,0,42.2-3.5c12.2-4.4,21.8-14,26.2-26.2c3.5-11.1,3.5-21.5,3.5-42.2V96.8 C231.2,76.1,231.2,65.7,227.6,54.6z M205.1,204.8h-68c-3.1,0-5.7-2.5-5.7-5.7v-15.5c0.3-19,2.3-37.2,6.5-45.5 c2.5-5,6.7-7.7,11.5-9.1c9-2.7,24.9-0.9,31.7-1.2c0,0,20.4,0.8,20.4-10.7c0-9.3-9.1-8.5-9.1-8.5c-10,0.3-17.7-0.4-22.6-2.4 c-8.3-3.3-8.6-9.2-8.6-11.2c-0.4-23.1-34.5-25.9-64.5-20.1c-32.8,6.2,0.4,53.3,0.4,116v8.4c-0.1,3.1-2.5,5.6-5.6,5.6H57.7 c-3.1,0-5.7-2.5-5.7-5.7v-144c0-3.1,2.5-5.7,5.7-5.7h31.7c3.1,0,5.7,2.5,5.7,5.7c0,4.7,5.2,7.2,9,4.5c11.4-8.2,26-12.5,42.4-12.5 c36.7,0,64.4,21.4,64.4,68.7v83.2l0,0C210.8,202.3,208.3,204.8,205.1,204.8z M125.7,99c0-6.7,5.4-12.1,12.1-12.1S150,92.3,150,99 s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"/></g></svg>',
@@ -1,4 +1,4 @@
1
- import { encodeSvgToImgSrc } from "./utils";
1
+ import { encodeSvgToImgSrc } from "./utils.js";
2
2
 
3
3
  export const CLOSE_SVG = encodeSvgToImgSrc(
4
4
  '<svg width="12" height="12" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"><path d="M10.8989 1.0512C10.5085 0.660741 9.87543 0.660703 9.48493 1.05111L5.94897 4.58624L2.41397 1.05124C2.0235 0.660772 1.39043 0.660773 0.999968 1.05124C0.609503 1.4417 0.609503 2.07477 0.999969 2.46524L4.53497 6.00024L0.999968 9.53524C0.609503 9.9257 0.609503 10.5588 0.999968 10.9492C1.39043 11.3397 2.0235 11.3397 2.41397 10.9492L5.94897 7.41424L9.48493 10.9494C9.87543 11.3398 10.5085 11.3397 10.8989 10.9493C11.2894 10.5588 11.2894 9.92568 10.8989 9.5352L7.36397 6.00024L10.8989 2.46528C11.2894 2.07479 11.2894 1.44168 10.8989 1.0512Z"/></svg>',
@@ -1,4 +1,4 @@
1
- import { encodeSvgToImgSrc } from "./utils";
1
+ import { encodeSvgToImgSrc } from "./utils.js";
2
2
 
3
3
  export const DISCONNECT_SVG = encodeSvgToImgSrc(
4
4
  '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect width="32" height="32" rx="8" fill="#DDDDDD"/><path d="M20.375 16.875H14.25V15.125H20.375L19.5 13.375H21.25L23 16L21.25 18.625H19.5L20.375 16.875ZM20.9509 11.051L19.7128 12.2886C19.226 11.8 18.6473 11.4125 18.0101 11.1484C17.3729 10.8844 16.6897 10.749 16 10.75C13.1006 10.75 10.75 13.1006 10.75 16C10.75 18.8994 13.1006 21.25 16 21.25C17.4107 21.25 18.7309 20.6923 19.71 19.7147L20.9462 20.9532C20.297 21.6031 19.5259 22.1184 18.6771 22.4696C17.8283 22.8209 16.9186 23.0011 16 23C12.1341 23 9 19.8659 9 16C9 12.1341 12.1341 9 16 9C17.8816 9 19.647 9.74667 20.9509 11.051Z" fill="#666666"/></svg>',
@@ -1,4 +1,4 @@
1
- import { encodeSvgToImgSrc } from "./utils";
1
+ import { encodeSvgToImgSrc } from "./utils.js";
2
2
 
3
3
  export const LEFT_SVG = encodeSvgToImgSrc(
4
4
  '<svg width="8" height="14" viewBox="0 0 8 14" xmlns="http://www.w3.org/2000/svg"><path d="M6.74554 13.5C6.54646 13.5 6.35454 13.4177 6.21275 13.2695L0.720203 7.55253C0.426599 7.24573 0.426599 6.75035 0.720203 6.44355L6.21275 0.725059C6.50779 0.422747 6.98185 0.42574 7.27402 0.729549C7.5662 1.03485 7.56763 1.52723 7.27832 1.83404L2.31999 6.99729L7.27975 12.162C7.49459 12.3865 7.55904 12.7233 7.44303 13.0166C7.32415 13.3084 7.0506 13.5 6.74554 13.5Z" stroke="#1E1E1E" stroke-width="1"/></svg>',
@@ -1,4 +1,4 @@
1
- import { encodeSvgToImgSrc } from "./utils";
1
+ import { encodeSvgToImgSrc } from "./utils.js";
2
2
 
3
3
  export const RETRY_SVG = encodeSvgToImgSrc(
4
4
  '<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.398 1.16864C11.0369 1.16864 10.7961 1.41021 10.7961 1.77256V2.37648C10.1941 1.531 9.35141 0.866684 8.38828 0.504333C5.37851 -0.82429 1.82699 0.564725 0.502691 3.58432C-0.821607 6.60392 0.562886 10.167 3.57265 11.4957C6.58242 12.8243 10.1339 11.4353 11.4582 8.41568H11.398C11.398 8.05333 11.1573 7.81176 10.7961 7.81176C10.4349 7.81176 10.1941 8.05333 10.1941 8.41568H10.1339C9.59219 9.32156 8.80965 10.0463 7.78633 10.469C5.31832 11.4957 2.54933 10.2878 1.52601 7.81176C0.502691 5.33569 1.7066 2.49727 4.17461 1.531C6.40183 0.564725 8.93004 1.531 10.1339 3.58432H8.99023C8.62906 3.58432 8.38828 3.82589 8.38828 4.18824C8.38828 4.55059 8.62906 4.79216 8.99023 4.79216H11.398C11.7592 4.79216 12 4.55059 12 4.18824V1.77256C12 1.41021 11.7592 1.16864 11.398 1.16864Z" fill="#1E1E1E"/></svg>',
package/src/barrel.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "@ckb-ccc/ccc/barrel";
2
- export * from "./connector";
2
+ export * from "./connector/index.js";
3
3
 
4
- import "./components";
5
- import "./scenes";
4
+ import "./components/index.js";
5
+ import "./scenes/index.js";
@@ -69,7 +69,6 @@ export class Dialog extends LitElement {
69
69
  .header-divider {
70
70
  padding-bottom: 1rem;
71
71
  border-bottom: 1px solid var(--divider);
72
- margin-bottom: 0.3rem;
73
72
  }
74
73
 
75
74
  .close,
@@ -87,11 +86,13 @@ export class Dialog extends LitElement {
87
86
  }
88
87
 
89
88
  .body {
90
- padding: 0 1.3rem 1rem;
89
+ padding: 0.3rem 1.3rem 1rem;
91
90
  min-width: 20rem;
92
91
  display: flex;
93
92
  flex-direction: column;
94
93
  align-items: center;
94
+ max-height: 80vh;
95
+ overflow-y: auto;
95
96
  }
96
97
  `;
97
98
  }
@@ -1,4 +1,4 @@
1
- import "./button";
2
- import "./button-pill";
3
- import "./copy-button";
4
- import "./dialog";
1
+ import "./button-pill.js";
2
+ import "./button.js";
3
+ import "./copy-button.js";
4
+ import "./dialog.js";
@@ -2,8 +2,8 @@ import { ccc } from "@ckb-ccc/ccc";
2
2
  import { LitElement, PropertyValues, css, html } from "lit";
3
3
  import { customElement, property, state } from "lit/decorators.js";
4
4
  import { Ref, createRef, ref } from "lit/directives/ref.js";
5
- import { ConnectedEvent } from "../scenes/selecting";
6
- import { SignersController } from "../signers";
5
+ import { ConnectedEvent } from "../scenes/selecting/index.js";
6
+ import { SignersController } from "../signers/index.js";
7
7
 
8
8
  @customElement("ccc-connector")
9
9
  export class WebComponentConnector extends LitElement {
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";
@@ -1,9 +1,9 @@
1
1
  import { ccc } from "@ckb-ccc/ccc";
2
2
  import { css, html, LitElement, PropertyValues } from "lit";
3
3
  import { customElement, property, state } from "lit/decorators.js";
4
- import { CKB_SVG } from "../assets/chains";
5
- import { DISCONNECT_SVG } from "../assets/diconnect.svg";
6
- import { signerTypeToIcon } from "./selecting/signers";
4
+ import { CKB_SVG } from "../assets/chains/index.js";
5
+ import { DISCONNECT_SVG } from "../assets/diconnect.svg.js";
6
+ import { signerTypeToIcon } from "./selecting/signers.js";
7
7
 
8
8
  export function formatString(
9
9
  str: string | undefined,
@@ -1,2 +1,2 @@
1
- import "./connected";
2
- import "./selecting";
1
+ import "./connected.js";
2
+ import "./selecting/index.js";
@@ -1,6 +1,6 @@
1
1
  import { ccc } from "@ckb-ccc/ccc";
2
2
  import { html } from "lit";
3
- import { RETRY_SVG } from "../../assets/retry.svg";
3
+ import { RETRY_SVG } from "../../assets/retry.svg.js";
4
4
 
5
5
  export function generateConnectingScene(
6
6
  wallet: ccc.WalletWithSigners,
@@ -1,9 +1,9 @@
1
1
  import { ccc } from "@ckb-ccc/ccc";
2
2
  import { css, html, LitElement } from "lit";
3
3
  import { customElement, property, state } from "lit/decorators.js";
4
- import { generateConnectingScene } from "./connecting";
5
- import { generateSignersScene } from "./signers";
6
- import { generateWalletsScene } from "./wallets";
4
+ import { generateConnectingScene } from "./connecting.js";
5
+ import { generateSignersScene } from "./signers.js";
6
+ import { generateWalletsScene } from "./wallets.js";
7
7
 
8
8
  export class ConnectedEvent extends Event {
9
9
  constructor(
@@ -1,7 +1,12 @@
1
1
  import { ccc } from "@ckb-ccc/ccc";
2
2
  import { html } from "lit";
3
3
  import { repeat } from "lit/directives/repeat.js";
4
- import { BTC_SVG, CKB_SVG, ETH_SVG, NOSTR_SVG } from "../../assets/chains";
4
+ import {
5
+ BTC_SVG,
6
+ CKB_SVG,
7
+ ETH_SVG,
8
+ NOSTR_SVG,
9
+ } from "../../assets/chains/index.js";
5
10
 
6
11
  export function signerTypeToIcon(type: ccc.SignerType): string {
7
12
  return {