@mearl/client 2.7.0 → 2.7.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.
@@ -480,7 +480,7 @@ export declare const COMMANDS: readonly [{
480
480
  readonly examples: ["page_click --payload '{\"text\":\"提交\"}'", "page_click --payload '{\"text\":\"退款明细\",\"role\":\"button\"}'", "page_click --payload '{\"text\":\"确定\",\"scope\":\"@e12\"}'", "page_click --payload '{\"selector\":\"@e3\"}'", "page_click --payload '{\"selector\":\".submit-btn\"}'", "page_click --payload '{\"selector\":\".gesture-btn\",\"clickMode\":\"touch\"}'", "page_click --payload '{\"point\":{\"x\":336,\"y\":117}}'"];
481
481
  }, {
482
482
  readonly name: "page_drag";
483
- readonly description: "在页面内执行可信拖动手势;from/to 均可使用视口坐标或 CSS/@ref,auto 按设备模拟状态选择 mouse/touch,并默认观察拖动后的页面变化";
483
+ readonly description: "在页面内执行拖动;from/to 均可使用视口坐标或 CSS/@ref,auto 在可见页使用可信 mouse/touch、隐藏页使用 DOM 模拟,并默认观察拖动后的页面变化";
484
484
  readonly params: [{
485
485
  readonly name: "from";
486
486
  readonly type: "string | { x: number; y: number }";
@@ -493,8 +493,8 @@ export declare const COMMANDS: readonly [{
493
493
  readonly description: "终点:原生 CSS、@eN ref,或 { x, y } 视口坐标(CSS 像素)";
494
494
  }, {
495
495
  readonly name: "dragMode";
496
- readonly type: "\"auto\" | \"mouse\" | \"touch\"";
497
- readonly description: "拖动输入类型;默认 auto,移动模拟页使用 touch,其余使用 mouse";
496
+ readonly type: "\"auto\" | \"dom\" | \"mouse\" | \"touch\"";
497
+ readonly description: "拖动输入类型;默认 auto,可见页按设备使用可信输入、隐藏页使用 DOM 模拟;dom 可显式强制后台模拟";
498
498
  }, {
499
499
  readonly name: "durationMs";
500
500
  readonly type: "number";
package/dist/commands.js CHANGED
@@ -428,7 +428,7 @@ export const COMMANDS = [
428
428
  },
429
429
  {
430
430
  name: 'page_drag',
431
- description: '在页面内执行可信拖动手势;from/to 均可使用视口坐标或 CSS/@ref,auto 按设备模拟状态选择 mouse/touch,并默认观察拖动后的页面变化',
431
+ description: '在页面内执行拖动;from/to 均可使用视口坐标或 CSS/@ref,auto 在可见页使用可信 mouse/touch、隐藏页使用 DOM 模拟,并默认观察拖动后的页面变化',
432
432
  params: [
433
433
  {
434
434
  name: 'from',
@@ -444,8 +444,8 @@ export const COMMANDS = [
444
444
  },
445
445
  {
446
446
  name: 'dragMode',
447
- type: '"auto" | "mouse" | "touch"',
448
- description: '拖动输入类型;默认 auto,移动模拟页使用 touch,其余使用 mouse',
447
+ type: '"auto" | "dom" | "mouse" | "touch"',
448
+ description: '拖动输入类型;默认 auto,可见页按设备使用可信输入、隐藏页使用 DOM 模拟;dom 可显式强制后台模拟',
449
449
  },
450
450
  {
451
451
  name: 'durationMs',
@@ -325,7 +325,7 @@ export interface PageDragParams {
325
325
  tabId?: number;
326
326
  from: PageDragEndpoint;
327
327
  to: PageDragEndpoint;
328
- dragMode?: 'auto' | 'mouse' | 'touch';
328
+ dragMode?: 'auto' | 'dom' | 'mouse' | 'touch';
329
329
  durationMs?: number;
330
330
  observe?: PageObservationWaitOptions | false;
331
331
  diagnostics?: PageDiagnosticsSetting;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mearl/client",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "Unified Mearl SDK & CLI for local and remote browsers",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "ws": "^8.18.0",
52
- "@mearl/cloud-types": "2.7.0"
52
+ "@mearl/cloud-types": "2.7.1"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/node": "^24.9.1",