@ikonai/sdk-ui 0.0.42 → 1.0.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/assets/{ui-worker-CBwhM0DU.js → ui-worker-CcCXE6uz.js} +820 -642
- package/ikon-ui-core.d.ts +5 -0
- package/index.d.ts +1 -1
- package/index.js +1483 -1279
- package/package.json +1 -1
- package/ui-store.d.ts +2 -2
- package/ui-types.d.ts +33 -3
package/ikon-ui-core.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export interface IkonUICoreConfig {
|
|
|
12
12
|
export type IkonUiUpdateListener = (streamId: string, update: ParsedUiUpdate) => void;
|
|
13
13
|
export type IkonUiStreamListener = (streamId: string) => void;
|
|
14
14
|
export type UiStyleListener = (style: UiStylePayload) => void;
|
|
15
|
+
export type UiStyleDeleteListener = (styleIds: string[]) => void;
|
|
15
16
|
export interface UiStylePayload {
|
|
16
17
|
styleId: string;
|
|
17
18
|
css?: string;
|
|
@@ -25,6 +26,7 @@ export declare class IkonUICore {
|
|
|
25
26
|
private readonly uiStyles;
|
|
26
27
|
private readonly uiUpdateListeners;
|
|
27
28
|
private readonly uiStyleListeners;
|
|
29
|
+
private readonly uiStyleDeleteListeners;
|
|
28
30
|
private readonly uiStreamClearedListeners;
|
|
29
31
|
private readonly useUiWorker;
|
|
30
32
|
constructor(config?: IkonUICoreConfig);
|
|
@@ -32,6 +34,7 @@ export declare class IkonUICore {
|
|
|
32
34
|
subscribeToUiUpdates(listener: IkonUiUpdateListener): () => void;
|
|
33
35
|
subscribeToUiStreamCleared(listener: IkonUiStreamListener): () => void;
|
|
34
36
|
subscribeToUiStyles(listener: UiStyleListener): () => void;
|
|
37
|
+
subscribeToUiStyleDeletes(listener: UiStyleDeleteListener): () => void;
|
|
35
38
|
getUiStyles(): readonly UiStylePayload[];
|
|
36
39
|
private initialize;
|
|
37
40
|
private startUiWorker;
|
|
@@ -44,9 +47,11 @@ export declare class IkonUICore {
|
|
|
44
47
|
private handleUiUpdate;
|
|
45
48
|
private handleUiStyles;
|
|
46
49
|
private handleUiStylesBatch;
|
|
50
|
+
private handleUiStylesDelete;
|
|
47
51
|
private handleClearStream;
|
|
48
52
|
private notifyUiUpdate;
|
|
49
53
|
private notifyUiStyle;
|
|
54
|
+
private notifyUiStyleDelete;
|
|
50
55
|
private notifyUiStreamCleared;
|
|
51
56
|
private sendUiUpdateAck;
|
|
52
57
|
}
|
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { IkonUICore, type IkonUICoreConfig, type IkonUiStreamListener, type IkonUiUpdateListener, type UiStyleListener, type UiStylePayload } from './ikon-ui-core';
|
|
1
|
+
export { IkonUICore, type IkonUICoreConfig, type IkonUiStreamListener, type IkonUiUpdateListener, type UiStyleListener, type UiStyleDeleteListener, type UiStylePayload } from './ikon-ui-core';
|
|
2
2
|
export { UiStore, UiStreamStore, type StreamSnapshot } from './ui-store';
|
|
3
3
|
export { parseUiUpdate, UiUpdateParseError } from './parse-ui-update';
|
|
4
4
|
export { HandlerCache } from './handler-cache';
|