@nexus-cross/crossx-sdk-core 3.0.0-beta.2 → 3.0.0-beta.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.
@@ -46,7 +46,7 @@ export declare const PIN_KEY_CACHE_TTL_MS: number;
46
46
  */
47
47
  export declare const PIN_KEY_PROBE_RETRY_MS: number;
48
48
  /** Token History API clientVersion (registerTokenHistory 호출 시 전송) */
49
- export declare const SDK_CLIENT_VERSION = "crossx-sdk-js/3.0.0-beta.2";
49
+ export declare const SDK_CLIENT_VERSION = "crossx-sdk-js/3.0.0-beta.3";
50
50
  /**
51
51
  * 게이트웨이 요청마다 SDK 버전을 실어 보내는 헤더. 값은 {@link SDK_CLIENT_VERSION}.
52
52
  * 게이트웨이(walletGatewayUrl)로 가는 요청에만 붙는다 — 체인 RPC·인증 서버·CDN 은
@@ -46,6 +46,10 @@ export interface SDKMessages {
46
46
  login_selector_subtitle: string;
47
47
  login_selector_google: string;
48
48
  login_selector_apple: string;
49
+ /** 원아이디 로그인 버튼 (walletServer 'one-wallet', DEV2TF-2771) */
50
+ login_selector_oneid: string;
51
+ /** 원아이디만 고를 때 부제 */
52
+ login_selector_subtitle_oneid: string;
49
53
  login_selector_or: string;
50
54
  /** {tos}와 {pp} 자리표시자가 각각 Terms of Service / Privacy Policy 링크로 치환됩니다. */
51
55
  login_selector_terms_template: string;
@@ -1,4 +1,4 @@
1
- import { ConnectOtherWalletItem, LoginSelectorResult, PinKeyboardOption, SDKThemeTokens, SelectWalletOptions } from '../types';
1
+ import { ConnectOtherWalletItem, LoginSelectorMethod, LoginSelectorResult, PinKeyboardOption, SDKThemeTokens, SelectWalletOptions } from '../types';
2
2
  import { SDKMessages } from '../i18n';
3
3
 
4
4
  /** 모든 컨펌 상세에 공통으로 포함되는 UI 메타 필드 */
@@ -92,10 +92,12 @@ export interface ConfirmationPort {
92
92
  /**
93
93
  * 로그인 프로바이더 선택 UI를 표시합니다.
94
94
  * @param options.connectOtherWallets 비어 있지 않으면 "Connect with Other Wallets" 카드(단일 버튼)와 지원 지갑 설명을 표시. 외부 지갑 선택 시 `walletId`는 목록의 첫 항목입니다.
95
- * @returns OAuth 선택, 외부 지갑 선택(`walletId`), 또는 null(취소)
95
+ * @param options.methods 보일 로그인 수단. 기본 `['apple', 'google']`. one-wallet 은 `['oneid']` (DEV2TF-2771)
96
+ * @returns OAuth 선택, 원아이디 선택, 외부 지갑 선택(`walletId`), 또는 null(취소)
96
97
  */
97
98
  showLoginSelector(options?: {
98
99
  connectOtherWallets?: ConnectOtherWalletItem[];
100
+ methods?: readonly LoginSelectorMethod[];
99
101
  }): Promise<LoginSelectorResult | null>;
100
102
  /**
101
103
  * 기존 지갑 발견 시 마이그레이션 안내 UI를 표시합니다.
@@ -151,7 +151,13 @@ export type LoginSelectorResult = {
151
151
  } | {
152
152
  type: 'external';
153
153
  walletId: string;
154
+ }
155
+ /** 원아이디 로그인 선택 (walletServer 'one-wallet', DEV2TF-2771) */
156
+ | {
157
+ type: 'oneid';
154
158
  };
159
+ /** 로그인 선택 화면에 보일 수단. 기본은 Apple · Google */
160
+ export type LoginSelectorMethod = 'apple' | 'google' | 'oneid';
155
161
  /**
156
162
  * 서명/트랜잭션 공통 옵션
157
163
  */