@nexus-cross/connect-kit-core 1.4.0-beta.6 → 2.4.0-beta.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +19 -0
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -222,6 +222,25 @@ interface CrossConnectKitConfig {
222
222
  * `embeddedProjectId`(미설정 시 `crossProjectId` fallback)를 사용한다.
223
223
  */
224
224
  kycEnabled?: boolean;
225
+ /**
226
+ * ONEpop(소셜 핸들 드롭) 마스터 토글. default false.
227
+ *
228
+ * true이면 이 토글 **하나로** ONEpop이 특별한 추가 설정 없이 동작한다:
229
+ * - `ConnectButton`이 WalletInfo에 `showOnePop`을 켜서 액션 행 ONEpop
230
+ * 카드와 진입 화면을 노출한다 (prop으로 `showOnePop`을 명시하면 우선).
231
+ * - ONEpop 화면에 표시할 `onePopSummary`(수령 대기 수/합계, X 연결 여부,
232
+ * 최근 활동)를 `@nexus-cross/pop`으로 조회해 자동 주입한다(fallback).
233
+ * one-pop-api `/drops`·`/histories`는 cross-auth SIWE JWT를 요구하므로
234
+ * **사용자가 ONEpop 화면을 실제로 열 때** 서명을 한 번 요청하고, 발급된
235
+ * 토큰은 세션 동안 주소별로 재사용한다. DApp이 `onePopSummary`를 직접
236
+ * 주입하면 조회를 건너뛴다.
237
+ * - 화면의 액션(Send POP / Claim POPs / Activity / 배너)은 ONEpop 서비스
238
+ * 웹 딥링크가 기본 동작이고, `onOnePopSend` 등 콜백 주입 시 그것이
239
+ * 우선한다.
240
+ *
241
+ * false(기본)면 ONEpop 카드/화면이 렌더되지 않고 조회도 하지 않는다.
242
+ */
243
+ onePopEnabled?: boolean;
225
244
  /**
226
245
  * When `true`, the kit switches the wallet to {@link defaultNetwork}
227
246
  * exactly once right after a connection is established. External
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexus-cross/connect-kit-core",
3
- "version": "1.4.0-beta.6",
3
+ "version": "2.4.0-beta.1",
4
4
  "description": "Core domain logic for @nexus-cross/connect-kit — types, ports, utilities",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -20,7 +20,7 @@
20
20
  "access": "public"
21
21
  },
22
22
  "dependencies": {
23
- "@nexus-cross/onramp": "1.4.0-beta.6"
23
+ "@nexus-cross/onramp": "2.4.0-beta.1"
24
24
  },
25
25
  "devDependencies": {
26
26
  "tsup": "^8.4.0",