@browserbasehq/stagehand 3.0.7-alpha-6a5496f17dbb716be1ee1aaa4e5ba9d8c723b30b → 3.0.7-alpha-0d2b398cd40b32a9ecaf28ede70853036b7c91bd

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/index.d.ts CHANGED
@@ -1533,63 +1533,32 @@ declare class Page {
1533
1533
  * on the top-level page target's session. Coordinates are relative to the
1534
1534
  * viewport origin (top-left). Does not scroll.
1535
1535
  */
1536
- click(x: number, y: number, options: {
1537
- button?: "left" | "right" | "middle";
1538
- clickCount?: number;
1539
- returnXpath: true;
1540
- }): Promise<string>;
1541
1536
  click(x: number, y: number, options?: {
1542
1537
  button?: "left" | "right" | "middle";
1543
1538
  clickCount?: number;
1544
- returnXpath?: false;
1545
- }): Promise<void>;
1546
- click(x: number, y: number, options: {
1547
- button?: "left" | "right" | "middle";
1548
- clickCount?: number;
1549
- returnXpath: boolean;
1550
- }): Promise<void | string>;
1539
+ returnXpath?: boolean;
1540
+ }): Promise<string>;
1551
1541
  /**
1552
1542
  * Hover at absolute page coordinates (CSS pixels).
1553
1543
  * Dispatches mouseMoved via CDP Input domain on the top-level page target's
1554
1544
  * session.
1555
1545
  */
1556
- hover(x: number, y: number, options: {
1557
- returnXpath: true;
1558
- }): Promise<string>;
1559
1546
  hover(x: number, y: number, options?: {
1560
- returnXpath?: false;
1561
- }): Promise<void>;
1562
- scroll(x: number, y: number, deltaX: number, deltaY: number, options: {
1563
- returnXpath: true;
1547
+ returnXpath?: boolean;
1564
1548
  }): Promise<string>;
1565
1549
  scroll(x: number, y: number, deltaX: number, deltaY: number, options?: {
1566
- returnXpath?: false;
1567
- }): Promise<void>;
1568
- scroll(x: number, y: number, deltaX: number, deltaY: number, options: {
1569
- returnXpath: boolean;
1570
- }): Promise<void | string>;
1550
+ returnXpath?: boolean;
1551
+ }): Promise<string>;
1571
1552
  /**
1572
1553
  * Drag from (fromX, fromY) to (toX, toY) using mouse events.
1573
1554
  * Sends mouseMoved → mousePressed → mouseMoved (steps) → mouseReleased.
1574
1555
  */
1575
- dragAndDrop(fromX: number, fromY: number, toX: number, toY: number, options: {
1576
- button?: "left" | "right" | "middle";
1577
- steps?: number;
1578
- delay?: number;
1579
- returnXpath: true;
1580
- }): Promise<[string, string]>;
1581
1556
  dragAndDrop(fromX: number, fromY: number, toX: number, toY: number, options?: {
1582
1557
  button?: "left" | "right" | "middle";
1583
1558
  steps?: number;
1584
1559
  delay?: number;
1585
- returnXpath?: false;
1586
- }): Promise<void>;
1587
- dragAndDrop(fromX: number, fromY: number, toX: number, toY: number, options: {
1588
- button?: "left" | "right" | "middle";
1589
- steps?: number;
1590
- delay?: number;
1591
- returnXpath: boolean;
1592
- }): Promise<void | [string, string]>;
1560
+ returnXpath?: boolean;
1561
+ }): Promise<[string, string]>;
1593
1562
  /**
1594
1563
  * Type a string by dispatching keyDown/keyUp events per character.
1595
1564
  * Focus must already be on the desired element. Uses CDP Input.dispatchKeyEvent
package/dist/index.js CHANGED
@@ -179,7 +179,7 @@ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")])
179
179
  var STAGEHAND_VERSION;
180
180
  var init_version = __esm({
181
181
  "lib/version.ts"() {
182
- STAGEHAND_VERSION = "3.0.7-alpha-6a5496f17dbb716be1ee1aaa4e5ba9d8c723b30b";
182
+ STAGEHAND_VERSION = "3.0.7-alpha-0d2b398cd40b32a9ecaf28ede70853036b7c91bd";
183
183
  }
184
184
  });
185
185
 
@@ -26247,7 +26247,7 @@ var init_page = __esm({
26247
26247
  clickCount: i2
26248
26248
  });
26249
26249
  }
26250
- if (options == null ? void 0 : options.returnXpath) return xpathResult != null ? xpathResult : "";
26250
+ return xpathResult != null ? xpathResult : "";
26251
26251
  });
26252
26252
  }
26253
26253
  hover(x2, y, options) {
@@ -26292,7 +26292,7 @@ var init_page = __esm({
26292
26292
  y,
26293
26293
  button: "none"
26294
26294
  });
26295
- if (options == null ? void 0 : options.returnXpath) return xpathResult != null ? xpathResult : "";
26295
+ return xpathResult != null ? xpathResult : "";
26296
26296
  });
26297
26297
  }
26298
26298
  scroll(x2, y, deltaX, deltaY, options) {
@@ -26320,7 +26320,7 @@ var init_page = __esm({
26320
26320
  deltaX,
26321
26321
  deltaY
26322
26322
  });
26323
- if (options == null ? void 0 : options.returnXpath) return xpathResult != null ? xpathResult : "";
26323
+ return xpathResult != null ? xpathResult : "";
26324
26324
  });
26325
26325
  }
26326
26326
  dragAndDrop(fromX, fromY, toX, toY, options) {
@@ -26394,7 +26394,7 @@ var init_page = __esm({
26394
26394
  buttons: buttonMask(button),
26395
26395
  clickCount: 1
26396
26396
  });
26397
- if (options == null ? void 0 : options.returnXpath) return [fromXpath != null ? fromXpath : "", toXpath != null ? toXpath : ""];
26397
+ return [fromXpath != null ? fromXpath : "", toXpath != null ? toXpath : ""];
26398
26398
  });
26399
26399
  }
26400
26400
  type(text, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@browserbasehq/stagehand",
3
- "version": "3.0.7-alpha-6a5496f17dbb716be1ee1aaa4e5ba9d8c723b30b",
3
+ "version": "3.0.7-alpha-0d2b398cd40b32a9ecaf28ede70853036b7c91bd",
4
4
  "description": "An AI web browsing framework focused on simplicity and extensibility.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",