@ikonai/sdk-ui 1.0.41 → 1.0.43
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-DNTNCumg.js +2674 -0
- package/index.d.ts +1 -1
- package/index.js +1623 -1758
- package/package.json +1 -1
- package/ui-store-ops.d.ts +1 -4
- package/ui-store.d.ts +0 -4
- package/ui-types.d.ts +0 -22
- package/assets/ui-worker-RrFBjoKd.js +0 -2832
package/package.json
CHANGED
package/ui-store-ops.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UIPayload } from '../../../shared/protocol/src/index.ts';
|
|
2
|
-
import { UiNode
|
|
2
|
+
import { UiNode } from './ui-types';
|
|
3
3
|
export interface UiStreamSnapshotWire {
|
|
4
4
|
streamId: string;
|
|
5
5
|
category?: string;
|
|
@@ -7,7 +7,6 @@ export interface UiStreamSnapshotWire {
|
|
|
7
7
|
rootViewId?: string;
|
|
8
8
|
views: Array<[viewId: string, node: UiNode]>;
|
|
9
9
|
payloads: Array<[key: string, payload: UIPayload]>;
|
|
10
|
-
optimisticPatches: Array<[viewId: string, patches: UiOptimisticPatchState[]]>;
|
|
11
10
|
}
|
|
12
11
|
export type UiStoreOp = {
|
|
13
12
|
type: 'ReplaceStreamSnapshot';
|
|
@@ -22,8 +21,6 @@ export type UiStoreOp = {
|
|
|
22
21
|
deleteViews?: string[];
|
|
23
22
|
upsertPayloads?: Array<[key: string, payload: UIPayload]>;
|
|
24
23
|
deletePayloads?: string[];
|
|
25
|
-
upsertOptimisticPatches?: Array<[viewId: string, patches: UiOptimisticPatchState[]]>;
|
|
26
|
-
deleteOptimisticPatchesForViews?: string[];
|
|
27
24
|
category?: string;
|
|
28
25
|
} | {
|
|
29
26
|
type: 'SetStreamCategory';
|
package/ui-store.d.ts
CHANGED
|
@@ -20,12 +20,8 @@ export declare class UiStreamStore {
|
|
|
20
20
|
private readonly nodeVersions;
|
|
21
21
|
private structureChanged;
|
|
22
22
|
private viewsDirty;
|
|
23
|
-
private patchesDirty;
|
|
24
23
|
private payloadsDirty;
|
|
25
24
|
readonly handlerCache: HandlerCache;
|
|
26
|
-
private getSortedPatches;
|
|
27
|
-
private buildPatchCacheKey;
|
|
28
|
-
private invalidatePatchCache;
|
|
29
25
|
apply(update: ParsedUiUpdate): boolean;
|
|
30
26
|
replaceFromWire(wire: UiStreamSnapshotWire): boolean;
|
|
31
27
|
patchFromOp(op: Extract<UiStoreOp, {
|
package/ui-types.d.ts
CHANGED
|
@@ -58,34 +58,12 @@ export interface UiNodeDiff {
|
|
|
58
58
|
}
|
|
59
59
|
export interface UiSnapshotMetadata {
|
|
60
60
|
readonly viewId: string;
|
|
61
|
-
readonly optimisticActionId?: string | null;
|
|
62
|
-
readonly isOptimistic?: boolean;
|
|
63
61
|
readonly isUpdate?: boolean;
|
|
64
|
-
readonly optimisticPatch?: UiOptimisticPatchMetadata;
|
|
65
|
-
readonly optimisticReconcile?: UiOptimisticReconcileMetadata;
|
|
66
|
-
}
|
|
67
|
-
export interface UiOptimisticPatchMetadata {
|
|
68
|
-
readonly id: string;
|
|
69
|
-
readonly actionId: string;
|
|
70
|
-
readonly ordinal: number;
|
|
71
|
-
readonly baseVersion: number;
|
|
72
|
-
readonly supersedes?: readonly string[];
|
|
73
|
-
}
|
|
74
|
-
export interface UiOptimisticReconcileMetadata {
|
|
75
|
-
readonly baseVersion: number;
|
|
76
|
-
readonly drop?: readonly string[];
|
|
77
|
-
}
|
|
78
|
-
export interface UiOptimisticPatchState {
|
|
79
|
-
readonly id: string;
|
|
80
|
-
readonly actionId: string;
|
|
81
|
-
readonly ordinal: number;
|
|
82
|
-
readonly baseVersion: number;
|
|
83
62
|
}
|
|
84
63
|
export interface UiStoreSnapshot {
|
|
85
64
|
readonly rootViewId?: string;
|
|
86
65
|
readonly views: ReadonlyMap<string, UiNode>;
|
|
87
66
|
readonly payloads: ReadonlyMap<string, UIPayload>;
|
|
88
|
-
readonly optimisticPatches: ReadonlyMap<string, readonly UiOptimisticPatchState[]>;
|
|
89
67
|
readonly version?: number;
|
|
90
68
|
}
|
|
91
69
|
interface UiSnapshotBase {
|