@ikonai/sdk-react-ui 1.0.6 → 1.0.8
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/app/use-ikon-app.d.ts +20 -10
- package/hooks/index.d.ts +1 -0
- package/hooks/use-toasts.d.ts +10 -0
- package/index.d.ts +1 -1
- package/index.js +871 -813
- package/package.json +1 -1
package/app/use-ikon-app.d.ts
CHANGED
|
@@ -1,16 +1,30 @@
|
|
|
1
|
-
import { AudioConfig, ConnectionState,
|
|
1
|
+
import { AudioConfig, ConnectionState, IkonClient, MediaSessionConfig, TimeoutConfig, VideoConfig } from '../../../sdk/src/index.ts';
|
|
2
2
|
import { RefObject } from 'react';
|
|
3
|
-
import { AuthConfig } from '../auth/types';
|
|
3
|
+
import { AuthConfig, LoginMethod } from '../auth/types';
|
|
4
4
|
import { IkonUiRegistry } from '../ikon-ui-registry';
|
|
5
5
|
import { IkonUi } from '../ikon-ui';
|
|
6
6
|
import { IkonUiStoreEntry } from '../surface';
|
|
7
|
+
declare global {
|
|
8
|
+
interface Window {
|
|
9
|
+
__IKON_AUTH_CONFIG__?: {
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
methods: LoginMethod[];
|
|
12
|
+
spaceId: string;
|
|
13
|
+
};
|
|
14
|
+
__IKON_LOCAL_IKON_SERVER_CONFIG__?: {
|
|
15
|
+
enabled: boolean;
|
|
16
|
+
host: string;
|
|
17
|
+
port: number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
7
21
|
/**
|
|
8
22
|
* Configuration for local server mode.
|
|
9
23
|
*/
|
|
10
24
|
export interface LocalServerConfig {
|
|
11
25
|
enabled: boolean;
|
|
12
26
|
host?: string;
|
|
13
|
-
|
|
27
|
+
port?: number;
|
|
14
28
|
}
|
|
15
29
|
/**
|
|
16
30
|
* Module registration function type.
|
|
@@ -21,9 +35,10 @@ export type IkonUiModuleRegistration = (registry: IkonUiRegistry) => void;
|
|
|
21
35
|
*/
|
|
22
36
|
export interface UseIkonAppOptions {
|
|
23
37
|
/**
|
|
24
|
-
* Authentication configuration.
|
|
38
|
+
* Authentication configuration. If not provided, auto-detected from runtime global.
|
|
39
|
+
* Pass null to explicitly disable auth.
|
|
25
40
|
*/
|
|
26
|
-
authConfig
|
|
41
|
+
authConfig?: AuthConfig | null;
|
|
27
42
|
/**
|
|
28
43
|
* Local server configuration. If not provided, cloud mode is assumed.
|
|
29
44
|
*/
|
|
@@ -76,11 +91,6 @@ export interface UseIkonAppOptions {
|
|
|
76
91
|
* Shared across audio and video playback.
|
|
77
92
|
*/
|
|
78
93
|
mediaSession?: MediaSessionConfig;
|
|
79
|
-
/**
|
|
80
|
-
* Debug configuration passed to IkonClient.
|
|
81
|
-
* If not provided, SDK defaults are used.
|
|
82
|
-
*/
|
|
83
|
-
debug?: DebugConfig;
|
|
84
94
|
}
|
|
85
95
|
/**
|
|
86
96
|
* Result returned by the useIkonApp hook.
|
package/hooks/index.d.ts
CHANGED
package/index.d.ts
CHANGED
|
@@ -13,5 +13,5 @@ export { UiStreamStore, type UiStylePayload } from '../../sdk-ui/src/index.ts';
|
|
|
13
13
|
export { renderMotionLetters } from './shared/render-motion-letters';
|
|
14
14
|
export { type AuthConfig, type AuthContextValue, type AuthSession, type AuthState, type AuthUser, type LoginMethod, clearAuthSession, loadAuthSession, saveAuthSession, sessionToUser, authenticateAnonymous, buildOAuthRedirectUrl, clearOAuthParams, parseOAuthCallback, parseOAuthError, sendMagicLink, type OAuthCallbackResult, type SendMagicLinkOptions, AuthProvider, useAuth, useAuthOptional, type AuthProviderProps, useAuthGuard, type UseAuthGuardOptions, type UseAuthGuardResult, } from './auth';
|
|
15
15
|
export { ConnectionStateRenderer, type ConnectedRenderProps, type ConnectionStateRendererProps, useIkonApp, type IkonUiModuleRegistration, type LocalServerConfig, type UseIkonAppOptions, type UseIkonAppResult, } from './app';
|
|
16
|
-
export { useLazyFont } from './hooks';
|
|
16
|
+
export { useLazyFont, useToasts, type Toast } from './hooks';
|
|
17
17
|
export { I18nProvider, useI18n, type I18nContextValue, type I18nProviderProps } from './i18n';
|