zigap-utils 3.1.0-preview.4 → 3.1.0-preview.6

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.
@@ -0,0 +1,2 @@
1
+ export declare const logDeeplinkSignal: (event: string, extra?: string) => void;
2
+ export declare const installDeeplinkSignalProbes: () => void;
@@ -41,6 +41,7 @@ export type ResumeAction = 'resume' | 'noop' | 'timeout';
41
41
  * 그 외(진행중 + 화면 보임 + 시간 내) → resume (이어서 진행)
42
42
  */
43
43
  export declare const computeResumeAction: (snapshot: DeeplinkSnapshot | null | undefined, visibilityState: string, now?: number, timeoutMs?: number) => ResumeAction;
44
+ export declare const resolveForegroundVisibility: (visibilityState: string, hasFocus: boolean) => string;
44
45
  /** 진행중('pending') 상태의 스냅샷 객체를 만든다 (순수). type='login'/'signMessage' 동일 구조(type-무관). */
45
46
  export declare const makeSnapshot: (roomId: string, nonce: string, type: DeeplinkEnvelopeType | string) => DeeplinkSnapshot;
46
47
  /**
@@ -17,6 +17,8 @@ declare class SocketService {
17
17
  isConnected(): boolean;
18
18
  onceConnect(callback: () => void): void;
19
19
  offConnect(callback: () => void): void;
20
+ onReconnect(callback: () => void): void;
21
+ offReconnect(callback: () => void): void;
20
22
  onMessageReceived(type: string, callback: (message: any) => void): void;
21
23
  offMessageReceived(type: string): void;
22
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigap-utils",
3
- "version": "3.1.0-preview.4",
3
+ "version": "3.1.0-preview.6",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",