@ckb-ccc/connector 1.0.34 → 1.1.1
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 +19 -0
- package/dist/components/button-pill.js +9 -9
- package/dist/components/button.js +9 -9
- package/dist/components/copy-button.js +18 -18
- package/dist/components/dialog.js +3 -3
- package/dist/connector/index.js +3 -3
- package/dist/scenes/connected.js +6 -6
- package/dist/scenes/selecting/index.js +6 -6
- package/package.json +11 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @ckb-ccc/connector
|
|
2
2
|
|
|
3
|
+
## 1.1.1
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- Updated dependencies []:
|
|
7
|
+
- @ckb-ccc/ccc@1.2.1
|
|
8
|
+
|
|
9
|
+
## 1.1.0
|
|
10
|
+
### Minor Changes
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- [#381](https://github.com/ckb-devrel/ccc/pull/381) [`46cc045`](https://github.com/ckb-devrel/ccc/commit/46cc045a3eefe9ba6625482dc7f740a0c59c99d4) Thanks [@Hanssen0](https://github.com/Hanssen0)! - chore: bump packages
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [[`46cc045`](https://github.com/ckb-devrel/ccc/commit/46cc045a3eefe9ba6625482dc7f740a0c59c99d4)]:
|
|
20
|
+
- @ckb-ccc/ccc@1.2.0
|
|
21
|
+
|
|
3
22
|
## 1.0.34
|
|
4
23
|
### Patch Changes
|
|
5
24
|
|
|
@@ -7,14 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { css, html, LitElement } from "lit";
|
|
8
8
|
import { customElement } from "lit/decorators.js";
|
|
9
9
|
let ButtonPill = class ButtonPill extends LitElement {
|
|
10
|
-
|
|
11
|
-
this.dispatchEvent(new Event("updated", { bubbles: true, composed: true }));
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return html `<button><slot></slot></button>`;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
ButtonPill.styles = css `
|
|
10
|
+
static { this.styles = css `
|
|
18
11
|
button {
|
|
19
12
|
background: none;
|
|
20
13
|
color: inherit;
|
|
@@ -48,7 +41,14 @@ ButtonPill.styles = css `
|
|
|
48
41
|
height: 0.8rem;
|
|
49
42
|
margin-right: 0.5rem;
|
|
50
43
|
}
|
|
51
|
-
`;
|
|
44
|
+
`; }
|
|
45
|
+
updated() {
|
|
46
|
+
this.dispatchEvent(new Event("updated", { bubbles: true, composed: true }));
|
|
47
|
+
}
|
|
48
|
+
render() {
|
|
49
|
+
return html `<button><slot></slot></button>`;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
52
|
ButtonPill = __decorate([
|
|
53
53
|
customElement("ccc-button-pill")
|
|
54
54
|
], ButtonPill);
|
|
@@ -7,14 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { css, html, LitElement } from "lit";
|
|
8
8
|
import { customElement } from "lit/decorators.js";
|
|
9
9
|
let Button = class Button extends LitElement {
|
|
10
|
-
|
|
11
|
-
this.dispatchEvent(new Event("updated", { bubbles: true, composed: true }));
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return html `<button><slot></slot></button>`;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
Button.styles = css `
|
|
10
|
+
static { this.styles = css `
|
|
18
11
|
:host {
|
|
19
12
|
width: 100%;
|
|
20
13
|
}
|
|
@@ -54,7 +47,14 @@ Button.styles = css `
|
|
|
54
47
|
margin-right: 1rem;
|
|
55
48
|
border-radius: 0.4rem;
|
|
56
49
|
}
|
|
57
|
-
`;
|
|
50
|
+
`; }
|
|
51
|
+
updated() {
|
|
52
|
+
this.dispatchEvent(new Event("updated", { bubbles: true, composed: true }));
|
|
53
|
+
}
|
|
54
|
+
render() {
|
|
55
|
+
return html `<button><slot></slot></button>`;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
58
|
Button = __decorate([
|
|
59
59
|
customElement("ccc-button")
|
|
60
60
|
], Button);
|
|
@@ -19,6 +19,24 @@ let CopyButton = class CopyButton extends LitElement {
|
|
|
19
19
|
return window.navigator.clipboard.writeText(this.value);
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
+
static { this.styles = css `
|
|
23
|
+
:host {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
}
|
|
28
|
+
.copy {
|
|
29
|
+
width: 1em;
|
|
30
|
+
height: 1em;
|
|
31
|
+
fill: currentColor;
|
|
32
|
+
}
|
|
33
|
+
.check {
|
|
34
|
+
width: 0.7em;
|
|
35
|
+
height: 0.7em;
|
|
36
|
+
margin-left: 0.15em;
|
|
37
|
+
fill: currentColor;
|
|
38
|
+
}
|
|
39
|
+
`; }
|
|
22
40
|
updated() {
|
|
23
41
|
this.dispatchEvent(new Event("updated", { bubbles: true, composed: true }));
|
|
24
42
|
}
|
|
@@ -46,24 +64,6 @@ let CopyButton = class CopyButton extends LitElement {
|
|
|
46
64
|
`;
|
|
47
65
|
}
|
|
48
66
|
};
|
|
49
|
-
CopyButton.styles = css `
|
|
50
|
-
:host {
|
|
51
|
-
display: flex;
|
|
52
|
-
align-items: center;
|
|
53
|
-
cursor: pointer;
|
|
54
|
-
}
|
|
55
|
-
.copy {
|
|
56
|
-
width: 1em;
|
|
57
|
-
height: 1em;
|
|
58
|
-
fill: currentColor;
|
|
59
|
-
}
|
|
60
|
-
.check {
|
|
61
|
-
width: 0.7em;
|
|
62
|
-
height: 0.7em;
|
|
63
|
-
margin-left: 0.15em;
|
|
64
|
-
fill: currentColor;
|
|
65
|
-
}
|
|
66
|
-
`;
|
|
67
67
|
__decorate([
|
|
68
68
|
property()
|
|
69
69
|
], CopyButton.prototype, "value", void 0);
|
|
@@ -38,8 +38,7 @@ let Dialog = class Dialog extends LitElement {
|
|
|
38
38
|
</div>
|
|
39
39
|
`;
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
Dialog.styles = css `
|
|
41
|
+
static { this.styles = css `
|
|
43
42
|
.primary-icon {
|
|
44
43
|
color: var(--icon-primary);
|
|
45
44
|
}
|
|
@@ -100,7 +99,8 @@ Dialog.styles = css `
|
|
|
100
99
|
max-height: 80vh;
|
|
101
100
|
overflow-y: auto;
|
|
102
101
|
}
|
|
103
|
-
`;
|
|
102
|
+
`; }
|
|
103
|
+
};
|
|
104
104
|
__decorate([
|
|
105
105
|
property()
|
|
106
106
|
], Dialog.prototype, "canBack", void 0);
|
package/dist/connector/index.js
CHANGED
|
@@ -140,8 +140,7 @@ let WebComponentConnector = class WebComponentConnector extends LitElement {
|
|
|
140
140
|
}
|
|
141
141
|
this.mainRef.value.style.height = `${this.bodyRef.value?.clientHeight ?? 0}px`;
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
WebComponentConnector.styles = css `
|
|
143
|
+
static { this.styles = css `
|
|
145
144
|
:host {
|
|
146
145
|
width: 100vw;
|
|
147
146
|
height: 100vh;
|
|
@@ -166,7 +165,8 @@ WebComponentConnector.styles = css `
|
|
|
166
165
|
overflow: hidden;
|
|
167
166
|
transition: height 0.15s ease-out;
|
|
168
167
|
}
|
|
169
|
-
`;
|
|
168
|
+
`; }
|
|
169
|
+
};
|
|
170
170
|
__decorate([
|
|
171
171
|
property()
|
|
172
172
|
], WebComponentConnector.prototype, "hideMark", void 0);
|
package/dist/scenes/connected.js
CHANGED
|
@@ -137,11 +137,7 @@ let ConnectedScene = class ConnectedScene extends LitElement {
|
|
|
137
137
|
</ccc-dialog>
|
|
138
138
|
`;
|
|
139
139
|
}
|
|
140
|
-
|
|
141
|
-
this.dispatchEvent(new Event("updated", { bubbles: true, composed: true }));
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
ConnectedScene.styles = css `
|
|
140
|
+
static { this.styles = css `
|
|
145
141
|
:host {
|
|
146
142
|
width: 100%;
|
|
147
143
|
display: flex;
|
|
@@ -270,7 +266,11 @@ ConnectedScene.styles = css `
|
|
|
270
266
|
.mark:hover {
|
|
271
267
|
opacity: 0.5;
|
|
272
268
|
}
|
|
273
|
-
`;
|
|
269
|
+
`; }
|
|
270
|
+
updated() {
|
|
271
|
+
this.dispatchEvent(new Event("updated", { bubbles: true, composed: true }));
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
274
|
__decorate([
|
|
275
275
|
property()
|
|
276
276
|
], ConnectedScene.prototype, "hideMark", void 0);
|
|
@@ -81,11 +81,7 @@ let SelectingScene = class SelectingScene extends LitElement {
|
|
|
81
81
|
this.selectedSigner = undefined;
|
|
82
82
|
this.connectingError = undefined;
|
|
83
83
|
}
|
|
84
|
-
|
|
85
|
-
this.dispatchEvent(new Event("updated", { bubbles: true, composed: true }));
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
SelectingScene.styles = css `
|
|
84
|
+
static { this.styles = css `
|
|
89
85
|
.primary-icon {
|
|
90
86
|
color: var(--icon-primary);
|
|
91
87
|
}
|
|
@@ -143,7 +139,11 @@ SelectingScene.styles = css `
|
|
|
143
139
|
.text-center {
|
|
144
140
|
text-align: center;
|
|
145
141
|
}
|
|
146
|
-
`;
|
|
142
|
+
`; }
|
|
143
|
+
updated() {
|
|
144
|
+
this.dispatchEvent(new Event("updated", { bubbles: true, composed: true }));
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
147
|
__decorate([
|
|
148
148
|
property()
|
|
149
149
|
], SelectingScene.prototype, "wallets", void 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckb-ccc/connector",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "CCC - CKBer's Codebase. Common Chains Connector UI",
|
|
5
5
|
"author": "Hanssen0 <hanssen0@hanssen0.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,25 +19,24 @@
|
|
|
19
19
|
"./advanced": "./dist/advanced.js"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@eslint/js": "^
|
|
23
|
-
"eslint": "^
|
|
22
|
+
"@eslint/js": "^10.0.1",
|
|
23
|
+
"eslint": "^10.5.0",
|
|
24
24
|
"eslint-config-prettier": "^10.1.8",
|
|
25
|
-
"eslint-plugin-prettier": "^5.5.
|
|
26
|
-
"prettier": "^3.
|
|
27
|
-
"prettier-plugin-organize-imports": "^4.
|
|
28
|
-
"
|
|
29
|
-
"typescript": "^
|
|
30
|
-
"typescript-eslint": "^8.41.0"
|
|
25
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
26
|
+
"prettier": "^3.8.4",
|
|
27
|
+
"prettier-plugin-organize-imports": "^4.3.0",
|
|
28
|
+
"typescript": "^6.0.3",
|
|
29
|
+
"typescript-eslint": "^8.61.1"
|
|
31
30
|
},
|
|
32
31
|
"publishConfig": {
|
|
33
32
|
"access": "public"
|
|
34
33
|
},
|
|
35
34
|
"dependencies": {
|
|
36
|
-
"lit": "^3.3.
|
|
37
|
-
"@ckb-ccc/ccc": "1.1
|
|
35
|
+
"lit": "^3.3.3",
|
|
36
|
+
"@ckb-ccc/ccc": "1.2.1"
|
|
38
37
|
},
|
|
39
38
|
"scripts": {
|
|
40
|
-
"build": "
|
|
39
|
+
"build": "tsc",
|
|
41
40
|
"lint": "eslint ./src",
|
|
42
41
|
"format": "prettier --write . && eslint --fix ./src"
|
|
43
42
|
}
|