@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonai/sdk-react-ui",
3
- "version": "1.0.51",
3
+ "version": "1.0.53",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -0,0 +1,27 @@
1
+ import { IkonClient } from '../../sdk/src/index.ts';
2
+ import { IkonUiStoreEntry } from './surface';
3
+ import { UiComponentLibrary } from './renderer';
4
+ /**
5
+ * Mounts a named Parallax sub-tree into a host-controlled container.
6
+ *
7
+ * Use this to embed a server-rendered Parallax region inside a hand-authored
8
+ * React page (e.g. shadcn). The host React tree fully owns layout and
9
+ * surrounding markup; this component renders only the matching Parallax stream.
10
+ *
11
+ * The <c>mount</c> prop selects which mount the C# app declares via
12
+ * <c>IAppBase.Mounts</c>. <c>{`<ParallaxView mount="aiCanvas" />`}</c> renders
13
+ * the stream the server emits under <c>MountScope("aiCanvas")</c>.
14
+ */
15
+ export interface ParallaxViewProps {
16
+ /** Mount id declared by the C# app's <c>IAppBase.Mounts</c>. */
17
+ mount: string;
18
+ /** Stream stores map — typically obtained via <c>useIkonUiStores(ikonUi)</c>. */
19
+ stores: ReadonlyMap<string, IkonUiStoreEntry>;
20
+ /** Component library that resolves Parallax UI nodes to React elements. */
21
+ registry: UiComponentLibrary;
22
+ /** Connected Ikon client; required for media-bearing UIs (video, audio). */
23
+ client?: IkonClient | null;
24
+ /** Optional handler for ParallaxView-internal action dispatches. */
25
+ onAction?: (actionId: string, payload?: string) => void;
26
+ }
27
+ export declare function ParallaxView({ mount, stores, registry, client, onAction }: ParallaxViewProps): import("react/jsx-runtime").JSX.Element;