@ikonai/sdk-react-ui 0.0.34 → 0.0.37

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": "0.0.34",
3
+ "version": "0.0.37",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -17,9 +17,9 @@ export interface UiRenderContext {
17
17
  /** Dispatch an action with optional payload */
18
18
  dispatchAction(actionId: string, payload?: unknown): void;
19
19
  /** The Ikon client instance */
20
- client?: IkonClient;
20
+ client?: IkonClient | null;
21
21
  /** Video playback API */
22
- video?: IkonVideoPlayback;
22
+ video?: IkonVideoPlayback | null;
23
23
  /** The store instance for per-node subscriptions */
24
24
  store: UiStreamStore;
25
25
  /** The component library for resolving renderers */
@@ -15,7 +15,7 @@ export interface UiRendererProps {
15
15
  readonly viewId?: string;
16
16
  readonly emptyFallback?: ReactNode;
17
17
  readonly onAction?: (actionId: string, payloadJson: string) => void;
18
- readonly client?: IkonClient;
19
- readonly video?: IkonVideoPlayback;
18
+ readonly client?: IkonClient | null;
19
+ readonly video?: IkonVideoPlayback | null;
20
20
  }
21
21
  export declare const UiRenderer: import('react').NamedExoticComponent<UiRendererProps>;
package/surface.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { UIStreamCategories } from '../../../shared/protocol/src/index.ts';
2
2
  import { UiStreamStore } from '../../sdk-ui/src/index.ts';
3
3
  import { UiComponentLibrary } from './renderer';
4
- import { IkonClient, IkonVideoPlayback } from '../../sdk/src/index.ts';
4
+ import { IkonClient } from '../../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 {
@@ -11,10 +11,9 @@ export interface IkonUiStoreEntry {
11
11
  export declare function isIkonUiCategoryMatch(entryCategory: IkonUiCategory, targetCategory: IkonUiCategory): boolean;
12
12
  export interface IkonUiSurfaceProps {
13
13
  stores: ReadonlyMap<string, IkonUiStoreEntry>;
14
- library: UiComponentLibrary;
14
+ registry: UiComponentLibrary;
15
15
  category?: IkonUiCategory;
16
16
  onAction?: (actionId: string, payload?: string) => void;
17
- client?: IkonClient;
18
- video?: IkonVideoPlayback;
17
+ client?: IkonClient | null;
19
18
  }
20
19
  export declare const IkonUiSurface: import('react').NamedExoticComponent<IkonUiSurfaceProps>;