@ikonai/sdk-react-ui 1.0.80 → 1.1.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.
- package/app/boot-snapshot-variant.d.ts +8 -0
- package/app/connection-state-renderer.d.ts +1 -1
- package/app/use-ikon-app.d.ts +10 -2
- package/app/use-ikon-debug.d.ts +1 -1
- package/auth/auth-context.d.ts +1 -1
- package/auth/auth-service.d.ts +4 -2
- package/auth/index.d.ts +1 -1
- package/auth/storage.d.ts +8 -0
- package/auth/types.d.ts +16 -4
- package/auth/use-auth-guard.d.ts +10 -0
- package/debug/debug-overlay.d.ts +1 -1
- package/hooks/use-ikon-reactive.d.ts +1 -1
- package/hooks/use-reactive.d.ts +1 -1
- package/i18n/i18n.d.ts +1 -1
- package/ikon-ui.d.ts +2 -2
- package/index.d.ts +2 -2
- package/index.js +3887 -3933
- package/motion/motion-controller.d.ts +1 -1
- package/package.json +1 -1
- package/parallax-view.d.ts +2 -2
- package/renderer/types.d.ts +8 -8
- package/renderer/ui-renderer.d.ts +3 -3
- package/renderer/use-root-view.d.ts +1 -1
- package/renderer/use-ui-node.d.ts +1 -1
- package/renderer/use-ui-store.d.ts +1 -1
- package/surface.d.ts +4 -4
- package/use-ikon-styles.d.ts +1 -1
- package/vite.config.d.ts +2 -0
package/package.json
CHANGED
package/parallax-view.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IkonClient } from '
|
|
1
|
+
import { IkonClient } from '../sdk/sdk/src/index.ts';
|
|
2
2
|
import { IkonUiStoreEntry } from './surface';
|
|
3
3
|
import { UiComponentLibrary } from './renderer';
|
|
4
4
|
/**
|
|
@@ -24,4 +24,4 @@ export interface ParallaxViewProps {
|
|
|
24
24
|
/** Optional handler for ParallaxView-internal action dispatches. */
|
|
25
25
|
onAction?: (actionId: string, payload?: string) => void;
|
|
26
26
|
}
|
|
27
|
-
export declare function ParallaxView({ mount, stores, registry, client, onAction }: ParallaxViewProps): import("react
|
|
27
|
+
export declare function ParallaxView({ mount, stores, registry, client, onAction }: ParallaxViewProps): import("react").JSX.Element;
|
package/renderer/types.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { UIPayload } from '
|
|
2
|
-
import { HandlerCache, UiNode, UiStreamStore } from '
|
|
3
|
-
import { IkonClient, IkonVideoPlayback } from '
|
|
1
|
+
import { UIPayload } from '../../shared/protocol/src/index.ts';
|
|
2
|
+
import { HandlerCache, UiNode, UiStreamStore } from '../../sdk/sdk-ui/src/index.ts';
|
|
3
|
+
import { IkonClient, IkonVideoPlayback } from '../../sdk/sdk/src/index.ts';
|
|
4
4
|
import { ComponentType, ReactNode } from 'react';
|
|
5
|
-
export { type UiUpdateType, type UiNodeProps, type UiNode, type UiNodeDiff, type UiSnapshot, type UiFullSnapshot, type UiDiffSnapshot, type UiSnapshotMetadata, type TextDelta, type ParsedUiUpdate, type UiStoreSnapshot, } from '
|
|
5
|
+
export { type UiUpdateType, type UiNodeProps, type UiNode, type UiNodeDiff, type UiSnapshot, type UiFullSnapshot, type UiDiffSnapshot, type UiSnapshotMetadata, type TextDelta, type ParsedUiUpdate, type UiStoreSnapshot, } from '../../sdk/sdk-ui/src/index.ts';
|
|
6
6
|
/**
|
|
7
7
|
* Context for rendering UI nodes.
|
|
8
8
|
* Provides access to payloads, action dispatch, and rendering utilities.
|
|
9
9
|
*/
|
|
10
10
|
export interface UiRenderContext {
|
|
11
11
|
/** Get a payload by key */
|
|
12
|
-
getPayload(key: string)
|
|
12
|
+
getPayload: (key: string) => UIPayload | undefined;
|
|
13
13
|
/** Render child nodes (for backward compatibility) */
|
|
14
|
-
renderChildren(nodes: readonly UiNode[])
|
|
14
|
+
renderChildren: (nodes: readonly UiNode[]) => ReactNode;
|
|
15
15
|
/** Render a view by ID */
|
|
16
|
-
renderView(viewId: string)
|
|
16
|
+
renderView: (viewId: string) => ReactNode;
|
|
17
17
|
/** Dispatch an action with optional payload */
|
|
18
|
-
dispatchAction(actionId: string, payload?: unknown)
|
|
18
|
+
dispatchAction: (actionId: string, payload?: unknown) => void;
|
|
19
19
|
/** The Ikon client instance */
|
|
20
20
|
client?: IkonClient | null;
|
|
21
21
|
/** Video playback API */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IkonClient, IkonVideoPlayback } from '
|
|
2
|
-
import { UiStreamStore } from '
|
|
1
|
+
import { IkonClient, IkonVideoPlayback } from '../../sdk/sdk/src/index.ts';
|
|
2
|
+
import { UiStreamStore } from '../../sdk/sdk-ui/src/index.ts';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
import { UiComponentLibrary, UiNode, UiRenderContext } from './types';
|
|
5
5
|
/**
|
|
@@ -18,4 +18,4 @@ export interface UiRendererProps {
|
|
|
18
18
|
readonly client?: IkonClient | null;
|
|
19
19
|
readonly video?: IkonVideoPlayback | null;
|
|
20
20
|
}
|
|
21
|
-
export declare const UiRenderer: import('react').
|
|
21
|
+
export declare const UiRenderer: import('react').MemoExoticComponent<({ store, library, viewId, emptyFallback, onAction, client, video }: UiRendererProps) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null>;
|
package/surface.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UIStreamCategories } from '
|
|
2
|
-
import { UiStreamStore } from '
|
|
1
|
+
import { UIStreamCategories } from '../shared/protocol/src/index.ts';
|
|
2
|
+
import { UiStreamStore } from '../sdk/sdk-ui/src/index.ts';
|
|
3
3
|
import { UiComponentLibrary } from './renderer';
|
|
4
|
-
import { IkonClient } from '
|
|
4
|
+
import { IkonClient } from '../sdk/sdk/src/index.ts';
|
|
5
5
|
export declare const IKON_UI_STREAM_CATEGORY: "ikon-ui";
|
|
6
6
|
export type IkonUiCategory = UIStreamCategories | typeof IKON_UI_STREAM_CATEGORY | (string & {});
|
|
7
7
|
export interface IkonUiStoreEntry {
|
|
@@ -16,4 +16,4 @@ export interface IkonUiSurfaceProps {
|
|
|
16
16
|
onAction?: (actionId: string, payload?: string) => void;
|
|
17
17
|
client?: IkonClient | null;
|
|
18
18
|
}
|
|
19
|
-
export declare const IkonUiSurface: import('react').
|
|
19
|
+
export declare const IkonUiSurface: import('react').MemoExoticComponent<({ stores, registry, category, onAction, client }: IkonUiSurfaceProps) => import("react").JSX.Element | null>;
|
package/use-ikon-styles.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UiStyleListener, UiStyleDeleteListener, UiStylePayload } from '
|
|
1
|
+
import { UiStyleListener, UiStyleDeleteListener, UiStylePayload } from '../sdk/sdk-ui/src/index.ts';
|
|
2
2
|
export interface IkonUiStyleSource {
|
|
3
3
|
getUiStyles(): Iterable<UiStylePayload> | readonly UiStylePayload[];
|
|
4
4
|
subscribeToStyles(listener: UiStyleListener): () => void;
|
package/vite.config.d.ts
ADDED