@ikonai/sdk-react-ui 1.8.0 → 1.10.0
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/connection-state-renderer.d.ts +4 -4
- package/app/connection-state-renderer.spec.d.ts +1 -0
- package/app/ikon-app.d.ts +3 -3
- package/app/ikon-app.spec.d.ts +1 -0
- package/app/use-ikon-app.d.ts +6 -8
- package/app/use-ikon-debug.d.ts +1 -1
- package/auth/index.d.ts +1 -1
- package/auth/oauth-continuation.d.ts +15 -1
- package/index.d.ts +1 -1
- package/index.js +679 -630
- package/package.json +1 -1
- package/parallax-view.d.ts +2 -2
- package/renderer/index.d.ts +1 -1
- package/renderer/types.d.ts +12 -1
- package/renderer/ui-renderer.d.ts +2 -2
- package/surface.d.ts +2 -2
- package/theme/ikon-app.css +3 -1
package/package.json
CHANGED
package/parallax-view.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IkonClient } from '../sdk/sdk/src/index.ts';
|
|
2
2
|
import { IkonUiStoreEntry } from './surface';
|
|
3
|
-
import { UiComponentLibrary } from './renderer';
|
|
3
|
+
import { DispatchActionOptions, UiComponentLibrary } from './renderer';
|
|
4
4
|
/**
|
|
5
5
|
* Mounts a named Parallax sub-tree into a host-controlled container.
|
|
6
6
|
*
|
|
@@ -22,6 +22,6 @@ export interface ParallaxViewProps {
|
|
|
22
22
|
/** Connected Ikon client; required for media-bearing UIs (video, audio). */
|
|
23
23
|
client?: IkonClient | null;
|
|
24
24
|
/** Optional handler for ParallaxView-internal action dispatches. */
|
|
25
|
-
onAction?: (actionId: string, payload?: string) => void;
|
|
25
|
+
onAction?: (actionId: string, payload?: string, options?: DispatchActionOptions) => void;
|
|
26
26
|
}
|
|
27
27
|
export declare function ParallaxView({ mount, stores, registry, client, onAction }: ParallaxViewProps): import("react").JSX.Element;
|
package/renderer/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export { UiComponentRegistry, createComponentLibrary, } from './component-librar
|
|
|
3
3
|
export { useUiStore } from './use-ui-store';
|
|
4
4
|
export { useUiNode } from './use-ui-node';
|
|
5
5
|
export { useRootView } from './use-root-view';
|
|
6
|
-
export type { UiComponentRenderer, UiComponentLibrary, UiNode, UiRenderContext, UiComponentRendererProps, ParsedUiUpdate, UiSnapshot, UiFullSnapshot, UiDiffSnapshot, UiNodeDiff, TextDelta, UiNodeProps, UiUpdateType, UiStoreSnapshot, } from './types';
|
|
6
|
+
export type { DispatchActionOptions, UiComponentRenderer, UiComponentLibrary, UiNode, UiRenderContext, UiComponentRendererProps, ParsedUiUpdate, UiSnapshot, UiFullSnapshot, UiDiffSnapshot, UiNodeDiff, TextDelta, UiNodeProps, UiUpdateType, UiStoreSnapshot, } from './types';
|
package/renderer/types.d.ts
CHANGED
|
@@ -3,6 +3,17 @@ import { HandlerCache, UiNode, UiStreamStore } from '../../sdk/sdk-ui/src/index.
|
|
|
3
3
|
import { IkonClient, IkonVideoPlayback } from '../../sdk/sdk/src/index.ts';
|
|
4
4
|
import { ComponentType, ReactNode } from 'react';
|
|
5
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
|
+
/** How a dispatched action should be treated when the server cannot run it. */
|
|
7
|
+
export interface DispatchActionOptions {
|
|
8
|
+
/**
|
|
9
|
+
* The dispatch is the component's own bookkeeping rather than something a person did, so a
|
|
10
|
+
* server refusal is not worth a person's attention. A controlled overlay reports itself closed
|
|
11
|
+
* as it unmounts; when the whole subtree is being removed the server has already retired that
|
|
12
|
+
* action, and the refusal that comes back describes a state it reached on its own. Failures of
|
|
13
|
+
* a best-effort dispatch are logged at debug instead of error.
|
|
14
|
+
*/
|
|
15
|
+
bestEffort?: boolean;
|
|
16
|
+
}
|
|
6
17
|
/**
|
|
7
18
|
* Context for rendering UI nodes.
|
|
8
19
|
* Provides access to payloads, action dispatch, and rendering utilities.
|
|
@@ -15,7 +26,7 @@ export interface UiRenderContext {
|
|
|
15
26
|
/** Render a view by ID */
|
|
16
27
|
renderView: (viewId: string) => ReactNode;
|
|
17
28
|
/** Dispatch an action with optional payload */
|
|
18
|
-
dispatchAction: (actionId: string, payload?: unknown) => void;
|
|
29
|
+
dispatchAction: (actionId: string, payload?: unknown, options?: DispatchActionOptions) => void;
|
|
19
30
|
/** The Ikon client instance */
|
|
20
31
|
client?: IkonClient | null;
|
|
21
32
|
/** Video playback API */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IkonClient, IkonVideoPlayback } from '../../sdk/sdk/src/index.ts';
|
|
2
2
|
import { UiStreamStore } from '../../sdk/sdk-ui/src/index.ts';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
-
import { UiComponentLibrary, UiNode, UiRenderContext } from './types';
|
|
4
|
+
import { DispatchActionOptions, UiComponentLibrary, UiNode, UiRenderContext } from './types';
|
|
5
5
|
/**
|
|
6
6
|
* Render children nodes by their IDs.
|
|
7
7
|
* Used by component renderers to render their children.
|
|
@@ -14,7 +14,7 @@ export interface UiRendererProps {
|
|
|
14
14
|
readonly library: UiComponentLibrary;
|
|
15
15
|
readonly viewId?: string;
|
|
16
16
|
readonly emptyFallback?: ReactNode;
|
|
17
|
-
readonly onAction?: (actionId: string, payloadJson: string) => void;
|
|
17
|
+
readonly onAction?: (actionId: string, payloadJson: string, options?: DispatchActionOptions) => void;
|
|
18
18
|
readonly client?: IkonClient | null;
|
|
19
19
|
readonly video?: IkonVideoPlayback | null;
|
|
20
20
|
}
|
package/surface.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UIStreamCategories } from '../shared/protocol/src/index.ts';
|
|
2
2
|
import { UiStreamStore } from '../sdk/sdk-ui/src/index.ts';
|
|
3
|
-
import { UiComponentLibrary } from './renderer';
|
|
3
|
+
import { DispatchActionOptions, UiComponentLibrary } from './renderer';
|
|
4
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 & {});
|
|
@@ -13,7 +13,7 @@ export interface IkonUiSurfaceProps {
|
|
|
13
13
|
stores: ReadonlyMap<string, IkonUiStoreEntry>;
|
|
14
14
|
registry: UiComponentLibrary;
|
|
15
15
|
category?: IkonUiCategory;
|
|
16
|
-
onAction?: (actionId: string, payload?: string) => void;
|
|
16
|
+
onAction?: (actionId: string, payload?: string, options?: DispatchActionOptions) => void;
|
|
17
17
|
client?: IkonClient | null;
|
|
18
18
|
}
|
|
19
19
|
export declare const IkonUiSurface: import('react').MemoExoticComponent<({ stores, registry, category, onAction, client }: IkonUiSurfaceProps) => import("react").JSX.Element | null>;
|
package/theme/ikon-app.css
CHANGED
|
@@ -103,8 +103,10 @@
|
|
|
103
103
|
padding: 24px;
|
|
104
104
|
z-index: 9999;
|
|
105
105
|
background: var(--ikon-overlay-scrim);
|
|
106
|
-
|
|
106
|
+
/* The prefixed form first: the minifier folds this pair into whichever is written last, and
|
|
107
|
+
Chromium has dropped `-webkit-backdrop-filter`, so standard-last is the one that blurs. */
|
|
107
108
|
-webkit-backdrop-filter: blur(8px);
|
|
109
|
+
backdrop-filter: blur(8px);
|
|
108
110
|
animation: ikon-fade-in 0.4s ease-out;
|
|
109
111
|
}
|
|
110
112
|
|