@ikonai/sdk 1.0.8 → 1.0.10
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/client/connection-state.d.ts +1 -1
- package/client/ikon-client.d.ts +6 -6
- package/connection/urls.d.ts +5 -0
- package/index.js +650 -646
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Connection state managed by IkonClient.
|
|
3
3
|
* The SDK internally manages UI-related states with timers.
|
|
4
4
|
*/
|
|
5
|
-
export type ConnectionState = 'idle' | '
|
|
5
|
+
export type ConnectionState = 'idle' | 'waitingForExternalConnectUrl' | 'connecting' | 'connectingSlow' | 'connected' | 'reconnecting' | 'offline' | 'offlineError';
|
|
6
6
|
/**
|
|
7
7
|
* Check if the state indicates the client is actively trying to connect.
|
|
8
8
|
*/
|
package/client/ikon-client.d.ts
CHANGED
|
@@ -109,8 +109,8 @@ export declare class IkonClient {
|
|
|
109
109
|
private nextProtocolSendPortId;
|
|
110
110
|
private readonly _media;
|
|
111
111
|
private _mediaCapture;
|
|
112
|
-
private
|
|
113
|
-
private
|
|
112
|
+
private _waitForExternalConnectUrl;
|
|
113
|
+
private _externalConnectUrlCleanup;
|
|
114
114
|
/**
|
|
115
115
|
* SDK-provided media pipelines (audio/video).
|
|
116
116
|
*
|
|
@@ -279,12 +279,12 @@ export declare class IkonClient {
|
|
|
279
279
|
*/
|
|
280
280
|
private handleJoined;
|
|
281
281
|
/**
|
|
282
|
-
* Set up listener for external
|
|
282
|
+
* Set up listener for external connect URL from parent window.
|
|
283
283
|
* Returns cleanup function to remove the listener.
|
|
284
284
|
*/
|
|
285
|
-
private
|
|
285
|
+
private setupExternalConnectUrlListener;
|
|
286
286
|
/**
|
|
287
|
-
* Handle external
|
|
287
|
+
* Handle external connect URL injection from parent window.
|
|
288
288
|
*/
|
|
289
|
-
private
|
|
289
|
+
private handleExternalConnectUrl;
|
|
290
290
|
}
|
package/connection/urls.d.ts
CHANGED
|
@@ -49,6 +49,11 @@ export declare function deriveAuthUrl(): string;
|
|
|
49
49
|
* Parse URL query parameters.
|
|
50
50
|
*/
|
|
51
51
|
export declare function parseQueryParams(): Record<string, string>;
|
|
52
|
+
/**
|
|
53
|
+
* Parse external connect URL from query parameter for shareable preview links.
|
|
54
|
+
* Returns the connect URL if present in the URL query string, undefined otherwise.
|
|
55
|
+
*/
|
|
56
|
+
export declare function parseExternalConnectUrlFromQuery(): string | undefined;
|
|
52
57
|
/**
|
|
53
58
|
* Result of parsing URL path and query parameters.
|
|
54
59
|
*/
|