@ckb-ccc/connector 0.0.14-alpha.3 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @ckb-ccc/connector
2
2
 
3
+ ## 0.0.14
4
+
5
+ ### Patch Changes
6
+
7
+ - [#56](https://github.com/ckb-ecofund/ccc/pull/56) [`b4aa690`](https://github.com/ckb-ecofund/ccc/commit/b4aa69085d69fc0953629fd907212922d7d106dd) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(connector): manage button
8
+
9
+ - [#56](https://github.com/ckb-ecofund/ccc/pull/56) [`f13f4d3`](https://github.com/ckb-ecofund/ccc/commit/f13f4d319ca66b571029a65e945e3a038bfeea25) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Signer.findTransactions
10
+
11
+ - [#48](https://github.com/ckb-ecofund/ccc/pull/48) [`4fb114b`](https://github.com/ckb-ecofund/ccc/commit/4fb114bc421c7250eed7388c16f1c026875153e6) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(okx): make okx wallet happy
12
+
13
+ - [#54](https://github.com/ckb-ecofund/ccc/pull/54) [`3f49876`](https://github.com/ckb-ecofund/ccc/commit/3f49876826f5a9eeff8d14c7d8d7b9cf2cea0f32) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(connector): useless back button
14
+
15
+ - [#53](https://github.com/ckb-ecofund/ccc/pull/53) [`32bffff`](https://github.com/ckb-ecofund/ccc/commit/32bffff407934ec5d16bf7c5701b128d8b29c452) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(connector): select client
16
+
17
+ - Updated dependencies [[`f13f4d3`](https://github.com/ckb-ecofund/ccc/commit/f13f4d319ca66b571029a65e945e3a038bfeea25), [`4fb114b`](https://github.com/ckb-ecofund/ccc/commit/4fb114bc421c7250eed7388c16f1c026875153e6)]:
18
+ - @ckb-ccc/ccc@0.0.14
19
+
3
20
  ## 0.0.14-alpha.3
4
21
 
5
22
  ### Patch Changes
@@ -1,2 +1,2 @@
1
- export declare const CLOSE_SVG: import("lit").TemplateResult;
1
+ export declare const CLOSE_SVG: import("lit").TemplateResult<1>;
2
2
  //# sourceMappingURL=close.svg.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"close.svg.d.ts","sourceRoot":"","sources":["../../src/assets/close.svg.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,8BAarB,CAAC"}
1
+ {"version":3,"file":"close.svg.d.ts","sourceRoot":"","sources":["../../src/assets/close.svg.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,iCAarB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { html } from "lit/static-html.js";
1
+ import { html } from "lit";
2
2
  export const CLOSE_SVG = html `
3
3
  <svg
4
4
  width="12"
@@ -1,2 +1,2 @@
1
- export declare const DISCONNECT_SVG: import("lit").TemplateResult;
1
+ export declare const DISCONNECT_SVG: import("lit").TemplateResult<1>;
2
2
  //# sourceMappingURL=diconnect.svg.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"diconnect.svg.d.ts","sourceRoot":"","sources":["../../src/assets/diconnect.svg.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,8BAc1B,CAAC"}
1
+ {"version":3,"file":"diconnect.svg.d.ts","sourceRoot":"","sources":["../../src/assets/diconnect.svg.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,iCAc1B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { html } from "lit/static-html.js";
1
+ import { html } from "lit";
2
2
  export const DISCONNECT_SVG = html `
3
3
  <svg
4
4
  width="32"
@@ -1,2 +1,2 @@
1
- export declare const LEFT_SVG: import("lit").TemplateResult;
1
+ export declare const LEFT_SVG: import("lit").TemplateResult<1>;
2
2
  //# sourceMappingURL=left.svg.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"left.svg.d.ts","sourceRoot":"","sources":["../../src/assets/left.svg.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,8BAcpB,CAAC"}
1
+ {"version":3,"file":"left.svg.d.ts","sourceRoot":"","sources":["../../src/assets/left.svg.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,iCAcpB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { html } from "lit/static-html.js";
1
+ import { html } from "lit";
2
2
  export const LEFT_SVG = html `
3
3
  <svg
4
4
  width="8"
@@ -1,2 +1,2 @@
1
- export declare const RETRY_SVG: import("lit").TemplateResult;
1
+ export declare const RETRY_SVG: import("lit").TemplateResult<1>;
2
2
  //# sourceMappingURL=retry.svg.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retry.svg.d.ts","sourceRoot":"","sources":["../../src/assets/retry.svg.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,8BAarB,CAAC"}
1
+ {"version":3,"file":"retry.svg.d.ts","sourceRoot":"","sources":["../../src/assets/retry.svg.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,iCAarB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { html } from "lit/static-html.js";
1
+ import { html } from "lit";
2
2
  export const RETRY_SVG = html `
3
3
  <svg
4
4
  width="12"
@@ -1,2 +1,2 @@
1
- export declare const SWAP_SVG: import("lit").TemplateResult;
1
+ export declare const SWAP_SVG: import("lit").TemplateResult<1>;
2
2
  //# sourceMappingURL=swap.svg.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"swap.svg.d.ts","sourceRoot":"","sources":["../../src/assets/swap.svg.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,8BAkCpB,CAAC"}
1
+ {"version":3,"file":"swap.svg.d.ts","sourceRoot":"","sources":["../../src/assets/swap.svg.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,iCAkCpB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { html } from "lit/static-html.js";
1
+ import { html } from "lit";
2
2
  export const SWAP_SVG = html `
3
3
  <svg
4
4
  width="13"
@@ -0,0 +1,2 @@
1
+ export declare const USER_SVG: import("lit").TemplateResult<1>;
2
+ //# sourceMappingURL=user.svg.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.svg.d.ts","sourceRoot":"","sources":["../../src/assets/user.svg.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,iCAgBpB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { html } from "lit";
2
+ export const USER_SVG = html `
3
+ <svg
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="24"
6
+ height="24"
7
+ viewBox="-3 -3 30 30"
8
+ fill="none"
9
+ stroke="currentColor"
10
+ stroke-width="2"
11
+ stroke-linecap="round"
12
+ stroke-linejoin="round"
13
+ class="primary-icon"
14
+ >
15
+ <path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" />
16
+ <circle cx="12" cy="7" r="4" />
17
+ </svg>
18
+ `;
@@ -1 +1 @@
1
- {"version":3,"file":"connected.d.ts","sourceRoot":"","sources":["../../src/scenes/connected.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAa,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAQ5D,qBAAa,iBAAkB,SAAQ,KAAK;IACvB,MAAM,EAAE,GAAG,CAAC,MAAM;gBAAlB,MAAM,EAAE,GAAG,CAAC,MAAM;CAGtC;AAED,wBAAgB,YAAY,CAC1B,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,CAAC,SAAI,EACL,CAAC,SAAI,GACJ,MAAM,GAAG,SAAS,CAKpB;AAED,qBACa,cAAe,SAAQ,UAAU;IAErC,MAAM,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC;IAEpB,aAAa,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAA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EhC,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAgBzD,MAAM;IAoGN,MAAM,CAAC,MAAM,0BAmHX;IAEF,OAAO;CAGR"}
@@ -11,6 +11,7 @@ import { repeat } from "lit/directives/repeat.js";
11
11
  import { CKB_SVG } from "../assets/chains/index.js";
12
12
  import { DISCONNECT_SVG } from "../assets/diconnect.svg.js";
13
13
  import { SWAP_SVG } from "../assets/swap.svg.js";
14
+ import { USER_SVG } from "../assets/user.svg.js";
14
15
  import { signerTypeToIcon } from "./selecting/signers.js";
15
16
  export class SelectClientEvent extends Event {
16
17
  constructor(client) {
@@ -82,10 +83,16 @@ let ConnectedScene = class ConnectedScene extends LitElement {
82
83
 
83
84
  <ccc-button
84
85
  class="mt-2"
86
+ @click=${() => window.open("https://mobit.app/", "_blank")}
87
+ >
88
+ ${USER_SVG} Manage
89
+ </ccc-button>
90
+
91
+ <ccc-button
92
+ class="mt-1"
85
93
  @click=${() => this.dispatchEvent(new Event("disconnect"))}
86
94
  >
87
- ${DISCONNECT_SVG}
88
- Disconnect
95
+ ${DISCONNECT_SVG} Disconnect
89
96
  </ccc-button>
90
97
 
91
98
  <div
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckb-ccc/connector",
3
- "version": "0.0.14-alpha.3",
3
+ "version": "0.0.14",
4
4
  "description": "CCC - CKBer's Codebase. Common Chains Connector UI",
5
5
  "author": "Hanssen0 <hanssen0@hanssen0.com>",
6
6
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "lit": "^3.1.3",
37
- "@ckb-ccc/ccc": "0.0.14-alpha.2"
37
+ "@ckb-ccc/ccc": "0.0.14"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "rimraf ./dist && tsc",
@@ -1,4 +1,4 @@
1
- import { html } from "lit/static-html.js";
1
+ import { html } from "lit";
2
2
 
3
3
  export const CLOSE_SVG = html`
4
4
  <svg
@@ -1,4 +1,4 @@
1
- import { html } from "lit/static-html.js";
1
+ import { html } from "lit";
2
2
 
3
3
  export const DISCONNECT_SVG = html`
4
4
  <svg
@@ -1,4 +1,4 @@
1
- import { html } from "lit/static-html.js";
1
+ import { html } from "lit";
2
2
 
3
3
  export const LEFT_SVG = html`
4
4
  <svg
@@ -1,4 +1,4 @@
1
- import { html } from "lit/static-html.js";
1
+ import { html } from "lit";
2
2
 
3
3
  export const RETRY_SVG = html`
4
4
  <svg
@@ -1,4 +1,4 @@
1
- import { html } from "lit/static-html.js";
1
+ import { html } from "lit";
2
2
 
3
3
  export const SWAP_SVG = html`
4
4
  <svg
@@ -0,0 +1,19 @@
1
+ import { html } from "lit";
2
+
3
+ export const USER_SVG = html`
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ width="24"
7
+ height="24"
8
+ viewBox="-3 -3 30 30"
9
+ fill="none"
10
+ stroke="currentColor"
11
+ stroke-width="2"
12
+ stroke-linecap="round"
13
+ stroke-linejoin="round"
14
+ class="primary-icon"
15
+ >
16
+ <path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" />
17
+ <circle cx="12" cy="7" r="4" />
18
+ </svg>
19
+ `;
@@ -5,6 +5,7 @@ import { repeat } from "lit/directives/repeat.js";
5
5
  import { CKB_SVG } from "../assets/chains/index.js";
6
6
  import { DISCONNECT_SVG } from "../assets/diconnect.svg.js";
7
7
  import { SWAP_SVG } from "../assets/swap.svg.js";
8
+ import { USER_SVG } from "../assets/user.svg.js";
8
9
  import { signerTypeToIcon } from "./selecting/signers.js";
9
10
 
10
11
  export class SelectClientEvent extends Event {
@@ -100,10 +101,16 @@ export class ConnectedScene extends LitElement {
100
101
 
101
102
  <ccc-button
102
103
  class="mt-2"
104
+ @click=${() => window.open("https://mobit.app/", "_blank")}
105
+ >
106
+ ${USER_SVG} Manage
107
+ </ccc-button>
108
+
109
+ <ccc-button
110
+ class="mt-1"
103
111
  @click=${() => this.dispatchEvent(new Event("disconnect"))}
104
112
  >
105
- ${DISCONNECT_SVG}
106
- Disconnect
113
+ ${DISCONNECT_SVG} Disconnect
107
114
  </ccc-button>
108
115
 
109
116
  <div