@ikonai/sdk-react-ui 1.0.51 → 1.0.53
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/auth/types.d.ts +1 -1
- package/hooks/index.d.ts +1 -0
- package/hooks/use-ikon-reactive.d.ts +14 -0
- package/index.d.ts +2 -1
- package/index.js +422 -391
- package/package.json +1 -1
- package/parallax-view.d.ts +27 -0
package/auth/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* All supported login methods.
|
|
3
3
|
*/
|
|
4
|
-
export type LoginMethod = 'google' | 'facebook' | 'apple' | 'microsoft' | 'linkedin' | 'github' | 'email' | 'passkey' | 'guest';
|
|
4
|
+
export type LoginMethod = 'google' | 'facebook' | 'apple' | 'microsoft' | 'signicat' | 'linkedin' | 'github' | 'email' | 'passkey' | 'guest';
|
|
5
5
|
/**
|
|
6
6
|
* Authenticated user information.
|
|
7
7
|
*/
|
package/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IkonClient } from '../../../sdk/src/index.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Subscribe to a server-side <c>Reactive<T></c> and re-render whenever
|
|
4
|
+
* the value changes. The hook returns the current value, starting from the
|
|
5
|
+
* initial snapshot fetched on first render.
|
|
6
|
+
*
|
|
7
|
+
* Pass <c>null</c> for <c>client</c> while the connection is still bootstrapping
|
|
8
|
+
* — the hook will resubscribe automatically once a connected client is provided.
|
|
9
|
+
*
|
|
10
|
+
* The wire is identical to <c>client.reactiveRegistry.subscribe()</c> — this is
|
|
11
|
+
* a thin React-shaped wrapper that handles the <c>useEffect</c> cleanup and
|
|
12
|
+
* <c>useState</c> plumbing.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useIkonReactive<T>(client: IkonClient | null | undefined, stableId: string, initialValue: T): T;
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { IkonUi, type IkonUiConfig } from './ikon-ui';
|
|
2
2
|
export { IkonUiRegistry, createIkonUiRegistry, type IkonUiComponentResolver, type IkonUiModuleLoader, type IkonUiModuleLoaderResult } from './ikon-ui-registry';
|
|
3
3
|
export { IkonUiSurface, IKON_UI_STREAM_CATEGORY, isIkonUiCategoryMatch, type IkonUiCategory, type IkonUiStoreEntry } from './surface';
|
|
4
|
+
export { ParallaxView, type ParallaxViewProps } from './parallax-view';
|
|
4
5
|
export { useIkonStyles, type IkonUiStyleSource } from './use-ikon-styles';
|
|
5
6
|
export { useIkonUiStores } from './use-ikon-ui-stores';
|
|
6
7
|
export { parseIkonUiInitPayload, normalizeIkonUiModuleList, readIkonUiModules, readIkonUiModulesFromSources, areIkonUiModuleListsEqual, type IkonUiInitInstruction, type IkonUiInitModulePayload, type IkonUiModuleList } from './modules';
|
|
@@ -13,6 +14,6 @@ export { UiStreamStore, type UiStylePayload } from '../../sdk-ui/src/index.ts';
|
|
|
13
14
|
export { renderMotionLetters } from './shared/render-motion-letters';
|
|
14
15
|
export { type AuthConfig, type AuthContextValue, type AuthSession, type AuthState, type AuthUser, type LoginMethod, clearAuthSession, loadAuthSession, saveAuthSession, sessionToUser, authenticateAnonymous, buildOAuthRedirectUrl, clearOAuthParams, parseOAuthCallback, parseOAuthError, sendLoginCode, verifyLoginCode, type OAuthCallbackResult, type SendLoginCodeOptions, type VerifyLoginCodeOptions, AuthProvider, useAuth, useAuthOptional, type AuthProviderProps, useAuthGuard, type UseAuthGuardOptions, type UseAuthGuardResult, } from './auth';
|
|
15
16
|
export { ConnectionStateRenderer, type ConnectedRenderProps, type ConnectionStateRendererProps, useIkonApp, type IkonUiModuleRegistration, type UseIkonAppOptions, type UseIkonAppResult, } from './app';
|
|
16
|
-
export { useLazyFont, useToasts, type Toast } from './hooks';
|
|
17
|
+
export { useLazyFont, useToasts, useIkonReactive, type Toast } from './hooks';
|
|
17
18
|
export { I18nProvider, useI18n, type I18nContextValue, type I18nProviderProps } from './i18n';
|
|
18
19
|
export { InspectOverlay, type InspectElementPayload } from './inspect/inspect-overlay';
|