@nexus-cross/crossx-sdk-core 1.4.2-beta.1 → 1.4.2
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/dist/index.js
CHANGED
|
@@ -978,7 +978,7 @@ const te = class te extends Zs {
|
|
|
978
978
|
}
|
|
979
979
|
async _doInitialize(e) {
|
|
980
980
|
var s, t;
|
|
981
|
-
d.log("[CROSSx SDK] v1.4.
|
|
981
|
+
d.log("[CROSSx SDK] v1.4.2 초기화 중..."), this.confirmation.setMessages(fe(this._config.locale));
|
|
982
982
|
try {
|
|
983
983
|
const n = er();
|
|
984
984
|
this.internalConfig.oauthServiceUrl = n.oauthServiceUrl, this.internalConfig.authApiUrl = n.authApiUrl, this.internalConfig.walletGatewayUrl = n.walletGatewayUrl, this.adapterConfig.gatewayUrl = n.walletGatewayUrl, (t = (s = this.crypto).setJWKSEndpoint) == null || t.call(s, `${n.authApiUrl}/.well-known/jwks.json`);
|
|
@@ -993,7 +993,7 @@ const te = class te extends Zs {
|
|
|
993
993
|
d.log("[CROSSx] initialize: 비밀번호 입력 취소 — 지갑 미로드 상태로 계속");
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
|
-
return this.initialized = !0, d.info("[CROSSx SDK] v1.4.
|
|
996
|
+
return this.initialized = !0, d.info("[CROSSx SDK] v1.4.2 초기화 완료"), this.emit("initialized", { restored: !!(i != null && i.success) }), i ?? null;
|
|
997
997
|
} catch (n) {
|
|
998
998
|
throw new g(h.AUTH_NOT_INITIALIZED, "SDK 초기화에 실패했습니다", n);
|
|
999
999
|
}
|
|
@@ -6812,6 +6812,21 @@ const En = `
|
|
|
6812
6812
|
transform: none !important;
|
|
6813
6813
|
background: var(--cx-pill-bg) !important;
|
|
6814
6814
|
}
|
|
6815
|
+
.__crossx-wallet-idx {
|
|
6816
|
+
display: inline-flex;
|
|
6817
|
+
align-items: center;
|
|
6818
|
+
justify-content: center;
|
|
6819
|
+
min-width: 24px;
|
|
6820
|
+
height: 24px;
|
|
6821
|
+
padding: 0 6px;
|
|
6822
|
+
font-size: 12px;
|
|
6823
|
+
font-weight: 700;
|
|
6824
|
+
line-height: 1;
|
|
6825
|
+
color: var(--cx-primary);
|
|
6826
|
+
background: color-mix(in srgb, var(--cx-primary) 12%, transparent);
|
|
6827
|
+
border-radius: 6px;
|
|
6828
|
+
flex-shrink: 0;
|
|
6829
|
+
}
|
|
6815
6830
|
.__crossx-wallet-addr {
|
|
6816
6831
|
font-size: 16px;
|
|
6817
6832
|
font-weight: 600;
|
|
@@ -7899,6 +7914,7 @@ function Gn(r, e, s) {
|
|
|
7899
7914
|
const t = s == null ? void 0 : s.toLowerCase(), n = r.map((o) => {
|
|
7900
7915
|
const a = t && o.address.toLowerCase() === t;
|
|
7901
7916
|
return `<button class="__crossx-wallet-item" data-wallet-index="${o.index}" data-wallet-address="${L(o.address)}">
|
|
7917
|
+
<span class="__crossx-wallet-idx">${o.index + 1}</span>
|
|
7902
7918
|
<span class="__crossx-wallet-addr">${re(o.address)}</span>${a ? '<span class="__crossx-wallet-selected">selected</span>' : ""}
|
|
7903
7919
|
</button>`;
|
|
7904
7920
|
}).join(""), i = document.createElement("div");
|
|
@@ -8385,7 +8401,7 @@ class ri {
|
|
|
8385
8401
|
const I = o.querySelector("#__crossx-wallet-list");
|
|
8386
8402
|
if (I) {
|
|
8387
8403
|
const P = document.createElement("button");
|
|
8388
|
-
P.className = "__crossx-wallet-item", P.dataset.walletIndex = String(y.index), P.dataset.walletAddress = y.address, P.innerHTML = `<span class="__crossx-wallet-addr">${re(y.address)}</span>`, P.addEventListener("click", () => u(y)), I.appendChild(P), P.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
8404
|
+
P.className = "__crossx-wallet-item", P.dataset.walletIndex = String(y.index), P.dataset.walletAddress = y.address, P.innerHTML = `<span class="__crossx-wallet-idx">${y.index + 1}</span><span class="__crossx-wallet-addr">${re(y.address)}</span>`, P.addEventListener("click", () => u(y)), I.appendChild(P), P.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
8389
8405
|
}
|
|
8390
8406
|
} catch {
|
|
8391
8407
|
} finally {
|