@phpsandbox/sdk 0.0.43 → 0.0.44

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.
@@ -4983,6 +4983,13 @@ var PHPSandbox = (() => {
4983
4983
  async fetch(request) {
4984
4984
  return this.sendAndWaitFor("fetch", "fetchResult", request);
4985
4985
  }
4986
+ /**
4987
+ * Capture the current beacon document, optionally clipped to a viewport or document rectangle.
4988
+ */
4989
+ async captureScreenshot(request = {}) {
4990
+ const timeoutMs = (request.timeout || 3e4) + 5e3;
4991
+ return this.sendAndWaitFor("captureScreenshot", "screenshotResult", request, timeoutMs);
4992
+ }
4986
4993
  /**
4987
4994
  * Debug a page (navigate and capture debug information). It loads
4988
4995
  * the page fresh in the IFRAME so that we can capture the latest state.