@virtualdisplay.io/client 3.2.1 → 3.3.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/CHANGELOG.md +12 -0
- package/dist/index.d.ts +13 -1
- package/dist/virtualdisplay.client.cjs.js +3 -3
- package/dist/virtualdisplay.client.cjs.js.map +1 -1
- package/dist/virtualdisplay.client.es.js +40 -14
- package/dist/virtualdisplay.client.es.js.map +1 -1
- package/dist/virtualdisplay.client.umd.js +3 -3
- package/dist/virtualdisplay.client.umd.js.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [3.3.0](https://github.com/virtualdisplay-io/client/compare/v3.2.2...v3.3.0) (2025-07-07)
|
|
6
|
+
|
|
7
|
+
### ✨ Features
|
|
8
|
+
|
|
9
|
+
* add isInitial flag to StateMessage ([#50](https://github.com/virtualdisplay-io/client/issues/50)) ([8590354](https://github.com/virtualdisplay-io/client/commit/859035423e161f43791433baac203b2adb95c9fd))
|
|
10
|
+
|
|
11
|
+
## [3.2.2](https://github.com/virtualdisplay-io/client/compare/v3.2.1...v3.2.2) (2025-07-01)
|
|
12
|
+
|
|
13
|
+
### 🐛 Bug Fixes
|
|
14
|
+
|
|
15
|
+
* change default logger level to warn ([#49](https://github.com/virtualdisplay-io/client/issues/49)) ([a567db2](https://github.com/virtualdisplay-io/client/commit/a567db23a50173e3b167238af2197e545bda6320))
|
|
16
|
+
|
|
5
17
|
## [3.2.1](https://github.com/virtualdisplay-io/client/compare/v3.2.0...v3.2.1) (2025-06-30)
|
|
6
18
|
|
|
7
19
|
### 🐛 Bug Fixes
|
package/dist/index.d.ts
CHANGED
|
@@ -180,6 +180,7 @@ export declare const EVENT_NAMES: {
|
|
|
180
180
|
readonly MUTATION_MESSAGE: "mutation:message";
|
|
181
181
|
readonly MESSAGE_RECEIVED: "message:received";
|
|
182
182
|
readonly STATE_CHANGED: "state:changed";
|
|
183
|
+
readonly INITIAL_STATE_RECEIVED: "state:initial-received";
|
|
183
184
|
};
|
|
184
185
|
|
|
185
186
|
/**
|
|
@@ -320,6 +321,7 @@ export declare class ModelNode {
|
|
|
320
321
|
readonly name: string;
|
|
321
322
|
readonly type: NodeType;
|
|
322
323
|
private visible;
|
|
324
|
+
onChange?: () => void;
|
|
323
325
|
constructor(params: CreateNodeParams);
|
|
324
326
|
get isVisible(): boolean;
|
|
325
327
|
show(): void;
|
|
@@ -426,6 +428,7 @@ declare interface StateChangedEvent {
|
|
|
426
428
|
export declare interface StateMessage extends BaseMessage {
|
|
427
429
|
readonly type: typeof MESSAGE_TYPES.STATE;
|
|
428
430
|
readonly nodes: ModelNodeDto[];
|
|
431
|
+
readonly isInitial: boolean;
|
|
429
432
|
}
|
|
430
433
|
|
|
431
434
|
/**
|
|
@@ -435,6 +438,7 @@ export declare interface StateMessage extends BaseMessage {
|
|
|
435
438
|
declare class StateService {
|
|
436
439
|
private readonly nodes;
|
|
437
440
|
private readonly eventBus;
|
|
441
|
+
private hasReceivedInitialSync;
|
|
438
442
|
constructor(eventBus: EventBus);
|
|
439
443
|
private handleMessage;
|
|
440
444
|
private updateState;
|
|
@@ -444,7 +448,6 @@ declare class StateService {
|
|
|
444
448
|
getAllNodes(): ModelNode[];
|
|
445
449
|
get isReady(): boolean;
|
|
446
450
|
get nodeCount(): number;
|
|
447
|
-
private get hasInitialState();
|
|
448
451
|
clear(): void;
|
|
449
452
|
}
|
|
450
453
|
|
|
@@ -480,6 +483,15 @@ export declare class VirtualdisplayClient {
|
|
|
480
483
|
getNodeSelector(nodeId: string): NodeSelector | undefined;
|
|
481
484
|
getNode(id: string): ModelNode | undefined;
|
|
482
485
|
getNodes(): ModelNode[];
|
|
486
|
+
/**
|
|
487
|
+
* Check if the client has received initial state and is ready
|
|
488
|
+
*/
|
|
489
|
+
get isReady(): boolean;
|
|
490
|
+
/**
|
|
491
|
+
* Register a callback to be called when the client is ready
|
|
492
|
+
* If already ready, the callback is called immediately
|
|
493
|
+
*/
|
|
494
|
+
onReady(callback: () => void): void;
|
|
483
495
|
destroy(): void;
|
|
484
496
|
}
|
|
485
497
|
|