@mearl/client 2.8.0 → 2.8.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.
package/dist/commands.d.ts
CHANGED
|
@@ -501,7 +501,7 @@ export declare const COMMANDS: readonly [{
|
|
|
501
501
|
}, {
|
|
502
502
|
readonly name: "appProfile";
|
|
503
503
|
readonly type: "string";
|
|
504
|
-
readonly description: "开 tab 即进入 App 容器模拟态(客户端 UA + JSBridge 托管 + iframe
|
|
504
|
+
readonly description: "开 tab 即进入 App 容器模拟态(客户端 UA + JSBridge 托管 + iframe 容器栈 + 自适应系统标题栏,首屏即容器态)。系统栏由 iframe 外层统一渲染,并根据页面协议与桥调用切换普通、沉浸或隐藏状态;档案名同 set_app_profile,如 \"fliggy\"";
|
|
505
505
|
}];
|
|
506
506
|
readonly examples: ["tab_open --payload '{\"url\":\"https://example.com\"}'", "tab_open --payload '{\"url\":\"https://example.com/page\",\"reuse\":\"prefer\",\"match\":{\"ignoreSearch\":true}}'", "tab_open --payload '{\"url\":\"https://m.example.com\",\"emulation\":{\"preset\":\"iphone-15-pro\"}}'", "tab_open --payload '{\"url\":\"https://market.m.taobao.com/app/trip/rx-home/pages/home\",\"appProfile\":\"fliggy\"}'", "tab_open --payload '{\"url\":\"https://example.com\",\"group\":\"验证任务\"}'"];
|
|
507
507
|
}, {
|
|
@@ -930,7 +930,7 @@ export declare const COMMANDS: readonly [{
|
|
|
930
930
|
readonly examples: ["set_device_emulation --payload '{\"enabled\":true,\"preset\":\"iphone-15-pro\"}'", "set_device_emulation --payload '{\"enabled\":true,\"preset\":\"pixel-8\",\"orientation\":\"landscape\"}'", "set_device_emulation --payload '{\"enabled\":false}'"];
|
|
931
931
|
}, {
|
|
932
932
|
readonly name: "set_app_profile";
|
|
933
|
-
readonly description: "把目标 tab 切换为 App 容器模拟态(客户端 UA + JSBridge 托管 + 页面跳转 iframe 容器栈 + scheme
|
|
933
|
+
readonly description: "把目标 tab 切换为 App 容器模拟态(客户端 UA + JSBridge 托管 + 页面跳转 iframe 容器栈 + scheme 唤端映射 + 自适应系统标题栏),系统栏由 iframe 外层统一渲染,并根据页面协议与桥调用切换普通、沉浸或隐藏状态;用于桌面浏览器近似实机验证 App 内 H5,需保持调试控制才持续生效";
|
|
934
934
|
readonly params: [{
|
|
935
935
|
readonly name: "enabled";
|
|
936
936
|
readonly type: "boolean";
|
package/dist/commands.js
CHANGED
|
@@ -408,7 +408,7 @@ export const COMMANDS = [
|
|
|
408
408
|
{
|
|
409
409
|
name: 'appProfile',
|
|
410
410
|
type: 'string',
|
|
411
|
-
description: '开 tab 即进入 App 容器模拟态(客户端 UA + JSBridge 托管 + iframe
|
|
411
|
+
description: '开 tab 即进入 App 容器模拟态(客户端 UA + JSBridge 托管 + iframe 容器栈 + 自适应系统标题栏,首屏即容器态)。系统栏由 iframe 外层统一渲染,并根据页面协议与桥调用切换普通、沉浸或隐藏状态;档案名同 set_app_profile,如 "fliggy"',
|
|
412
412
|
},
|
|
413
413
|
],
|
|
414
414
|
examples: [
|
|
@@ -834,7 +834,7 @@ export const COMMANDS = [
|
|
|
834
834
|
},
|
|
835
835
|
{
|
|
836
836
|
name: 'set_app_profile',
|
|
837
|
-
description: '把目标 tab 切换为 App 容器模拟态(客户端 UA + JSBridge 托管 + 页面跳转 iframe 容器栈 + scheme
|
|
837
|
+
description: '把目标 tab 切换为 App 容器模拟态(客户端 UA + JSBridge 托管 + 页面跳转 iframe 容器栈 + scheme 唤端映射 + 自适应系统标题栏),系统栏由 iframe 外层统一渲染,并根据页面协议与桥调用切换普通、沉浸或隐藏状态;用于桌面浏览器近似实机验证 App 内 H5,需保持调试控制才持续生效',
|
|
838
838
|
params: [
|
|
839
839
|
{ name: 'enabled', type: 'boolean', required: true, description: 'true=启用,false=清除' },
|
|
840
840
|
{
|
|
@@ -289,7 +289,8 @@ export interface TabOpenParams {
|
|
|
289
289
|
group?: string;
|
|
290
290
|
/**
|
|
291
291
|
* 客户端容器模拟档案名(如 'fliggy')。打开后即按该 App 的 WebView 环境渲染:
|
|
292
|
-
* 移动视口 + 容器 UA + JSBridge
|
|
292
|
+
* 移动视口 + 容器 UA + JSBridge 托管 + 自适应系统标题栏。系统栏由 iframe 外层统一渲染,
|
|
293
|
+
* 并根据页面协议与桥调用切换普通、沉浸或隐藏状态。可用档案见 APP_PROFILE_NAMES。
|
|
293
294
|
*/
|
|
294
295
|
appProfile?: AppProfileName;
|
|
295
296
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mearl/client",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.1",
|
|
4
4
|
"description": "Unified Mearl SDK & CLI for local and remote browsers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"fastest-levenshtein": "^1.0.16",
|
|
53
53
|
"ws": "^8.18.0",
|
|
54
|
-
"@mearl/cloud-types": "2.8.
|
|
54
|
+
"@mearl/cloud-types": "2.8.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/node": "^24.9.1",
|