hd-wallet-ui 1.2.2 → 1.2.3
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/package.json +2 -2
- package/src/app.js +6 -6
- package/src/template.js +3 -4
- package/styles/main.css +13 -22
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hd-wallet-ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "HD Wallet modal UI — login, keys, identity, trust map, and security bond. Attach to any button in your app.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/app.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"buffer": "^6.0.3",
|
|
36
36
|
"flatbuffers": "^25.9.23",
|
|
37
37
|
"flatc-wasm": "^25.12.19-wasm.43",
|
|
38
|
-
"hd-wallet-wasm": "^1.2.
|
|
38
|
+
"hd-wallet-wasm": "^1.2.3",
|
|
39
39
|
"qrcode": "^1.5.3",
|
|
40
40
|
"spacedatastandards.org": "^23.3.3-0.3.4",
|
|
41
41
|
"vcard-cryptoperson": "^1.1.11"
|
package/src/app.js
CHANGED
|
@@ -1297,9 +1297,10 @@ async function scanActiveAccounts() {
|
|
|
1297
1297
|
updateWalletBondTotal();
|
|
1298
1298
|
|
|
1299
1299
|
const statusEl = $('wallet-scan-status');
|
|
1300
|
-
const
|
|
1300
|
+
const barEl = $('wallet-scan-bar');
|
|
1301
1301
|
const scanBtn = $('wallet-scan-btn');
|
|
1302
|
-
if (statusEl) statusEl.style.display = '
|
|
1302
|
+
if (statusEl) statusEl.style.display = 'block';
|
|
1303
|
+
if (barEl) barEl.style.width = '0%';
|
|
1303
1304
|
if (scanBtn) scanBtn.disabled = true;
|
|
1304
1305
|
|
|
1305
1306
|
try {
|
|
@@ -1329,10 +1330,9 @@ async function scanActiveAccounts() {
|
|
|
1329
1330
|
});
|
|
1330
1331
|
});
|
|
1331
1332
|
|
|
1332
|
-
for (
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
}
|
|
1333
|
+
for (let ti = 0; ti < targets.length; ti++) {
|
|
1334
|
+
const target = targets[ti];
|
|
1335
|
+
if (barEl) barEl.style.width = Math.round(((ti + 1) / targets.length) * 100) + '%';
|
|
1336
1336
|
|
|
1337
1337
|
let derived;
|
|
1338
1338
|
try {
|
package/src/template.js
CHANGED
|
@@ -70,10 +70,9 @@ export function getModalHTML() {
|
|
|
70
70
|
</button>
|
|
71
71
|
</div>
|
|
72
72
|
|
|
73
|
-
<!-- Scan
|
|
74
|
-
<div id="wallet-scan-status" class="
|
|
75
|
-
<div class="wallet-scan-
|
|
76
|
-
<span id="wallet-scan-label">Scanning derivation paths...</span>
|
|
73
|
+
<!-- Scan Progress Bar -->
|
|
74
|
+
<div id="wallet-scan-status" class="wallet-scan-progress" style="display:none;">
|
|
75
|
+
<div id="wallet-scan-bar" class="wallet-scan-bar"></div>
|
|
77
76
|
</div>
|
|
78
77
|
|
|
79
78
|
<!-- Token List -->
|
package/styles/main.css
CHANGED
|
@@ -2081,30 +2081,21 @@ body:has(.modal.active) .nav-bar {
|
|
|
2081
2081
|
cursor: not-allowed;
|
|
2082
2082
|
}
|
|
2083
2083
|
|
|
2084
|
-
/* Scan
|
|
2085
|
-
.
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
margin-bottom:
|
|
2091
|
-
font-size: 12px;
|
|
2092
|
-
color: var(--muted);
|
|
2093
|
-
background: var(--white-05);
|
|
2094
|
-
border-radius: 12px;
|
|
2095
|
-
}
|
|
2096
|
-
|
|
2097
|
-
.wallet-scan-spinner {
|
|
2098
|
-
width: 14px;
|
|
2099
|
-
height: 14px;
|
|
2100
|
-
border: 2px solid var(--glass-border);
|
|
2101
|
-
border-top-color: #AB82FF;
|
|
2102
|
-
border-radius: 50%;
|
|
2103
|
-
animation: spin 0.8s linear infinite;
|
|
2084
|
+
/* Scan Progress Bar */
|
|
2085
|
+
.wallet-scan-progress {
|
|
2086
|
+
height: 2px;
|
|
2087
|
+
background: var(--glass-border);
|
|
2088
|
+
border-radius: 1px;
|
|
2089
|
+
overflow: hidden;
|
|
2090
|
+
margin-bottom: 4px;
|
|
2104
2091
|
}
|
|
2105
2092
|
|
|
2106
|
-
|
|
2107
|
-
|
|
2093
|
+
.wallet-scan-bar {
|
|
2094
|
+
height: 100%;
|
|
2095
|
+
width: 0%;
|
|
2096
|
+
background: #22c55e;
|
|
2097
|
+
border-radius: 1px;
|
|
2098
|
+
transition: width 0.3s ease;
|
|
2108
2099
|
}
|
|
2109
2100
|
|
|
2110
2101
|
/* Token List */
|