@nexus-cross/crossx-sdk-core 2.3.10-beta.1 → 2.3.10-beta.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/core/constants.d.ts +1 -1
- package/dist/crossx.global +11 -9
- package/dist/index.cjs +15 -13
- package/dist/index.js +20 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ class h extends Error {
|
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
const Rt = 2e3, je = 6e4, Ct = 1e3, Pt = 1e4, Nt = "0x77359400", Ye = "0x3B9ACA00", Xe = 130, Fe = 6, Je = 18, Ze = 3e4, Ot = 5 * 60 * 1e3, Lt = 30 * 1e3, Ne = 100, Dt = "crossx-sdk-js/2.3.10-beta.
|
|
19
|
+
const Rt = 2e3, je = 6e4, Ct = 1e3, Pt = 1e4, Nt = "0x77359400", Ye = "0x3B9ACA00", Xe = 130, Fe = 6, Je = 18, Ze = 3e4, Ot = 5 * 60 * 1e3, Lt = 30 * 1e3, Ne = 100, Dt = "crossx-sdk-js/2.3.10-beta.2", Be = "ONEwallet";
|
|
20
20
|
var ge = /* @__PURE__ */ ((i) => (i.MetaMask = "io.metamask", i.Binance = "com.binance.wallet", i.CROSSx = "crossx", i))(ge || {});
|
|
21
21
|
const Mt = {
|
|
22
22
|
"io.metamask": "MetaMask",
|
|
@@ -2547,7 +2547,7 @@ const ne = class ne extends Yt {
|
|
|
2547
2547
|
}
|
|
2548
2548
|
async _doInitialize(e) {
|
|
2549
2549
|
var r, t;
|
|
2550
|
-
c.log("[CROSSx SDK] v2.3.10-beta.
|
|
2550
|
+
c.log("[CROSSx SDK] v2.3.10-beta.2 초기화 중..."), this.confirmation.setMessages(X(this._config.locale));
|
|
2551
2551
|
try {
|
|
2552
2552
|
const s = We();
|
|
2553
2553
|
this.internalConfig.oauthServiceUrl = s.oauthServiceUrl, this.internalConfig.authApiUrl = s.authApiUrl, this.internalConfig.walletGatewayUrl = s.walletGatewayUrl, this.adapterConfig.gatewayUrl = s.walletGatewayUrl, (t = (r = this.crypto).setJWKSEndpoint) == null || t.call(r, `${s.authApiUrl}/.well-known/jwks.json`);
|
|
@@ -2583,7 +2583,7 @@ const ne = class ne extends Yt {
|
|
|
2583
2583
|
throw u;
|
|
2584
2584
|
}
|
|
2585
2585
|
}
|
|
2586
|
-
return this.initialized = !0, c.info("[CROSSx SDK] v2.3.10-beta.
|
|
2586
|
+
return this.initialized = !0, c.info("[CROSSx SDK] v2.3.10-beta.2 초기화 완료"), this.emit("initialized", { restored: !!(l != null && l.success) }), l ?? null;
|
|
2587
2587
|
} catch (s) {
|
|
2588
2588
|
throw new h(d.AUTH_NOT_INITIALIZED, "SDK 초기화에 실패했습니다", s);
|
|
2589
2589
|
}
|
|
@@ -2603,7 +2603,7 @@ const ne = class ne extends Yt {
|
|
|
2603
2603
|
c.log("[CROSSx] RN Bridge 감지 — Handshake 시도"), c.info("[CROSSx][RNBridge trace] Bootstrap config", {
|
|
2604
2604
|
appId: this._config.projectId,
|
|
2605
2605
|
appVersion: "1.0.0",
|
|
2606
|
-
sdkVersion: "2.3.10-beta.
|
|
2606
|
+
sdkVersion: "2.3.10-beta.2",
|
|
2607
2607
|
keyId: "key-id-1",
|
|
2608
2608
|
userIdHash: "user-hash-placeholder",
|
|
2609
2609
|
projectId: this._config.projectId
|
|
@@ -2611,7 +2611,7 @@ const ne = class ne extends Yt {
|
|
|
2611
2611
|
const e = new j({
|
|
2612
2612
|
appId: this._config.projectId,
|
|
2613
2613
|
appVersion: "1.0.0",
|
|
2614
|
-
sdkVersion: "2.3.10-beta.
|
|
2614
|
+
sdkVersion: "2.3.10-beta.2",
|
|
2615
2615
|
keyId: "key-id-1",
|
|
2616
2616
|
userIdHash: "user-hash-placeholder",
|
|
2617
2617
|
projectId: this._config.projectId
|
|
@@ -5404,6 +5404,8 @@ const nt = "__crossx-confirm-style", F = "__crossx-confirm-overlay", Tr = {
|
|
|
5404
5404
|
border: "rgba(0,0,0,0.07)",
|
|
5405
5405
|
borderMedium: "rgba(0,0,0,0.18)",
|
|
5406
5406
|
titleColor: "#000000",
|
|
5407
|
+
contentHigh: "rgba(0,0,0,0.85)",
|
|
5408
|
+
// Figma content/high
|
|
5407
5409
|
subtitleColor: "rgba(0,0,0,0.65)",
|
|
5408
5410
|
labelColor: "rgba(0,0,0,0.65)",
|
|
5409
5411
|
valueColor: "#000000",
|
|
@@ -5435,6 +5437,8 @@ const nt = "__crossx-confirm-style", F = "__crossx-confirm-overlay", Tr = {
|
|
|
5435
5437
|
border: "rgba(255,255,255,0.07)",
|
|
5436
5438
|
borderMedium: "rgba(255,255,255,0.18)",
|
|
5437
5439
|
titleColor: "#FFFFFF",
|
|
5440
|
+
contentHigh: "rgba(255,255,255,0.85)",
|
|
5441
|
+
// Figma content/high
|
|
5438
5442
|
subtitleColor: "rgba(255,255,255,0.65)",
|
|
5439
5443
|
labelColor: "rgba(255,255,255,0.65)",
|
|
5440
5444
|
valueColor: "#FFFFFF",
|
|
@@ -5478,7 +5482,9 @@ function at(i, e) {
|
|
|
5478
5482
|
titleColor: t.textIconPrimary,
|
|
5479
5483
|
valueColor: t.textIconPrimary,
|
|
5480
5484
|
pillAmtColor: t.textIconPrimary,
|
|
5481
|
-
closeColor: t.textIconPrimary
|
|
5485
|
+
closeColor: t.textIconPrimary,
|
|
5486
|
+
// Content/high 는 highest 의 85% 이지만 임의 색상의 알파를 계산할 수 없어 그대로 사용
|
|
5487
|
+
contentHigh: t.textIconPrimary
|
|
5482
5488
|
},
|
|
5483
5489
|
...t.textIconSecondary !== void 0 && { subtitleColor: t.textIconSecondary },
|
|
5484
5490
|
...t.textIconTertiary !== void 0 && {
|
|
@@ -6596,15 +6602,17 @@ const Rr = `
|
|
|
6596
6602
|
margin: 0;
|
|
6597
6603
|
width: 100%;
|
|
6598
6604
|
}
|
|
6605
|
+
/* Figma: 본문은 Content/medium(--cx-subtitle), 링크는 한 단계 진한 본문색 + 상시 밑줄 */
|
|
6599
6606
|
.__crossx-login-terms-link {
|
|
6600
|
-
color: var(--cx-
|
|
6601
|
-
text-decoration:
|
|
6607
|
+
color: var(--cx-content-high);
|
|
6608
|
+
text-decoration: underline;
|
|
6609
|
+
text-underline-position: from-font;
|
|
6602
6610
|
}
|
|
6603
6611
|
.__crossx-login-terms-link:hover,
|
|
6604
6612
|
.__crossx-login-terms-link:focus,
|
|
6605
6613
|
.__crossx-login-terms-link:active {
|
|
6606
|
-
color: var(--cx-
|
|
6607
|
-
text-decoration:
|
|
6614
|
+
color: var(--cx-content-high) !important;
|
|
6615
|
+
text-decoration: underline !important;
|
|
6608
6616
|
opacity: 1 !important;
|
|
6609
6617
|
background: none !important;
|
|
6610
6618
|
box-shadow: none !important;
|
|
@@ -8371,6 +8379,7 @@ function H(i) {
|
|
|
8371
8379
|
`--cx-border:${i.border}`,
|
|
8372
8380
|
`--cx-border-medium:${i.borderMedium}`,
|
|
8373
8381
|
`--cx-title:${i.titleColor}`,
|
|
8382
|
+
`--cx-content-high:${i.contentHigh}`,
|
|
8374
8383
|
`--cx-subtitle:${i.subtitleColor}`,
|
|
8375
8384
|
`--cx-label:${i.labelColor}`,
|
|
8376
8385
|
`--cx-value:${i.valueColor}`,
|
|
@@ -8865,7 +8874,7 @@ function gs(i, e = [], r) {
|
|
|
8865
8874
|
</button>
|
|
8866
8875
|
</div>${n}
|
|
8867
8876
|
<p class="__crossx-login-terms">
|
|
8868
|
-
${((r == null ? void 0 : r.login_selector_terms_template) ?? "By continuing, you agree to NEXUS {tos} and consent to its {pp}").replace("{tos}", `<a class="__crossx-login-terms-link" href="https://terms.
|
|
8877
|
+
${((r == null ? void 0 : r.login_selector_terms_template) ?? "By continuing, you agree to NEXUS {tos} and consent to its {pp}").replace("{tos}", `<a class="__crossx-login-terms-link" href="https://terms.onechain.nexus/docs/terms-july-23-2026" target="_blank" rel="noopener noreferrer">${w((r == null ? void 0 : r.login_selector_terms_tos) ?? "Terms of Service")}</a>`).replace("{pp}", `<a class="__crossx-login-terms-link" href="https://terms.onechain.nexus/docs/pp-july-23-2026" target="_blank" rel="noopener noreferrer">${w((r == null ? void 0 : r.login_selector_terms_pp) ?? "Privacy Policy.")}</a>`)}
|
|
8869
8878
|
</p>
|
|
8870
8879
|
</div>
|
|
8871
8880
|
</div>
|