@ikonai/sdk-react-ui 1.0.65 → 1.0.67

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.
@@ -76,6 +76,12 @@ export interface UseIkonAppOptions {
76
76
  * When false, proxy types are excluded.
77
77
  */
78
78
  proxy?: boolean;
79
+ /**
80
+ * Persist the last rendered UI to `localStorage` and re-seed it on the next load so the cached
81
+ * tree paints before the WebSocket connects (return-visit fast paint). Default: true. The cache
82
+ * is keyed per app + user and pruned across users on a shared device.
83
+ */
84
+ uiCache?: boolean;
79
85
  }
80
86
  /**
81
87
  * Result returned by the useIkonApp hook.
package/ikon-ui.d.ts CHANGED
@@ -1,9 +1,11 @@
1
1
  import { IkonClient } from '../../sdk/src/index.ts';
2
- import { IkonUiCore, IkonUiStreamListener, UiStyleListener, UiStyleDeleteListener, UiStylePayload } from '../../sdk-ui/src/index.ts';
2
+ import { IkonUiCore, IkonUiCoreConfig, IkonUiStreamListener, UiStyleListener, UiStyleDeleteListener, UiStylePayload } from '../../sdk-ui/src/index.ts';
3
3
  import { IkonUiStoreEntry } from './surface';
4
4
  export interface IkonUiConfig {
5
5
  client?: IkonClient | null;
6
6
  core?: IkonUiCore;
7
+ /** Last-snapshot cache config, forwarded to the owned IkonUiCore. Ignored when `core` is supplied. */
8
+ cache?: IkonUiCoreConfig['cache'];
7
9
  }
8
10
  type IkonUiListener = IkonUiStreamListener;
9
11
  export declare class IkonUi {