@push.rocks/smartbrowser 3.0.0 → 4.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/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/classes.livebrowsercanvasrenderer.d.ts +25 -5
- package/dist_ts_web/classes.livebrowsercanvasrenderer.js +385 -136
- package/dist_ts_web/interfaces.livebrowsercanvas.d.ts +18 -6
- package/package.json +3 -3
- package/readme.hints.md +11 -6
- package/readme.md +19 -7
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/classes.livebrowsercanvasrenderer.ts +483 -149
- package/ts_web/interfaces.livebrowsercanvas.ts +34 -5
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@push.rocks/smartbrowser',
|
|
6
|
-
version: '
|
|
6
|
+
version: '4.0.0',
|
|
7
7
|
description: 'A simplified Puppeteer wrapper for easy automation and testing tasks.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSwwQkFBMEI7SUFDaEMsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHVFQUF1RTtDQUNyRixDQUFBIn0=
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@push.rocks/smartbrowser',
|
|
6
|
-
version: '
|
|
6
|
+
version: '4.0.0',
|
|
7
7
|
description: 'A simplified Puppeteer wrapper for easy automation and testing tasks.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHNfd2ViLzAwX2NvbW1pdGluZm9fZGF0YS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILE1BQU0sQ0FBQyxNQUFNLFVBQVUsR0FBRztJQUN4QixJQUFJLEVBQUUsMEJBQTBCO0lBQ2hDLE9BQU8sRUFBRSxPQUFPO0lBQ2hCLFdBQVcsRUFBRSx1RUFBdUU7Q0FDckYsQ0FBQSJ9
|
|
@@ -19,9 +19,11 @@ export declare class LiveBrowserCanvasRenderer {
|
|
|
19
19
|
private lifecycleTail;
|
|
20
20
|
private runEpoch;
|
|
21
21
|
private running;
|
|
22
|
+
private suspended;
|
|
22
23
|
private stopping;
|
|
23
|
-
private
|
|
24
|
-
private
|
|
24
|
+
private interruptionRequested;
|
|
25
|
+
private runController?;
|
|
26
|
+
private operationControllers;
|
|
25
27
|
private acceptingFrames;
|
|
26
28
|
private state?;
|
|
27
29
|
private unsubscribe?;
|
|
@@ -35,6 +37,7 @@ export declare class LiveBrowserCanvasRenderer {
|
|
|
35
37
|
private queuedFrame?;
|
|
36
38
|
private frameProcessingPromise?;
|
|
37
39
|
private acknowledgementPromises;
|
|
40
|
+
private rawDecodeSettlementPromises;
|
|
38
41
|
private inputBlocked;
|
|
39
42
|
private inputCommands;
|
|
40
43
|
private inputProcessing;
|
|
@@ -53,8 +56,17 @@ export declare class LiveBrowserCanvasRenderer {
|
|
|
53
56
|
private resizeFence?;
|
|
54
57
|
constructor(optionsArg: ILiveBrowserCanvasRendererOptions);
|
|
55
58
|
get isRunning(): boolean;
|
|
59
|
+
get isSuspended(): boolean;
|
|
56
60
|
start(): Promise<void>;
|
|
57
61
|
stop(): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Aborts the current transport generation without replaying input recovery.
|
|
64
|
+
*/
|
|
65
|
+
suspend(): Promise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* Starts a new transport generation that requires new state and a new frame.
|
|
68
|
+
*/
|
|
69
|
+
resume(): Promise<void>;
|
|
58
70
|
/**
|
|
59
71
|
* Sends arbitrary committed text, including text produced by an external IME.
|
|
60
72
|
*/
|
|
@@ -65,7 +77,10 @@ export declare class LiveBrowserCanvasRenderer {
|
|
|
65
77
|
*/
|
|
66
78
|
syncViewport(): void;
|
|
67
79
|
private enqueueLifecycle;
|
|
68
|
-
private
|
|
80
|
+
private startRun;
|
|
81
|
+
private interruptRun;
|
|
82
|
+
private finishRun;
|
|
83
|
+
private restoreCanvasAndFocus;
|
|
69
84
|
private installDomListeners;
|
|
70
85
|
private installResizeObserver;
|
|
71
86
|
private handleEvent;
|
|
@@ -104,11 +119,16 @@ export declare class LiveBrowserCanvasRenderer {
|
|
|
104
119
|
private clearCanvas;
|
|
105
120
|
private callFrameRendered;
|
|
106
121
|
private reportError;
|
|
107
|
-
private
|
|
122
|
+
private requestSuspend;
|
|
108
123
|
private validateTimeout;
|
|
109
124
|
private runClientOperation;
|
|
110
|
-
private
|
|
125
|
+
private runAbortableOperation;
|
|
111
126
|
private decodeFrame;
|
|
127
|
+
private isRunActive;
|
|
128
|
+
private validateFrame;
|
|
129
|
+
private validateViewport;
|
|
130
|
+
private validateProtocolInteger;
|
|
131
|
+
private validateProtocolNumber;
|
|
112
132
|
private releasePointerCapture;
|
|
113
133
|
private releasePointerCaptures;
|
|
114
134
|
}
|