@push.rocks/smartbrowser 3.0.0 → 4.0.1

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.
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@push.rocks/smartbrowser',
6
- version: '3.0.0',
6
+ version: '4.0.1',
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: '3.0.0',
6
+ version: '4.0.1',
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 stopRequested;
24
- private terminallyStopped;
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 stopRun;
80
+ private startRun;
81
+ private interruptRun;
82
+ private finishRun;
83
+ private restoreCanvasAndFocus;
69
84
  private installDomListeners;
70
85
  private installResizeObserver;
71
86
  private handleEvent;
@@ -96,6 +111,7 @@ export declare class LiveBrowserCanvasRenderer {
96
111
  private tryInputRelease;
97
112
  private reportInputReleaseError;
98
113
  private queueViewport;
114
+ private normalizeGeneratedViewport;
99
115
  private ensureViewportProcessor;
100
116
  private processViewportQueue;
101
117
  private updateInputAvailability;
@@ -104,11 +120,16 @@ export declare class LiveBrowserCanvasRenderer {
104
120
  private clearCanvas;
105
121
  private callFrameRendered;
106
122
  private reportError;
107
- private requestStop;
123
+ private requestSuspend;
108
124
  private validateTimeout;
109
125
  private runClientOperation;
110
- private withTimeout;
126
+ private runAbortableOperation;
111
127
  private decodeFrame;
128
+ private isRunActive;
129
+ private validateFrame;
130
+ private validateViewport;
131
+ private validateProtocolInteger;
132
+ private validateProtocolNumber;
112
133
  private releasePointerCapture;
113
134
  private releasePointerCaptures;
114
135
  }