@open-wxa/wxa-runner-core 0.12.3 → 0.13.0

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.
@@ -26,6 +26,8 @@ interface AppInfo {
26
26
  wxConfig: Record<string, any>;
27
27
  pages: string[];
28
28
  device: DeviceProfile;
29
+ /** navigateTo / navigateBack 时滑动页面内容,默认 false */
30
+ pageTransition?: boolean;
29
31
  /** 开启了 --devtools-login */
30
32
  devtoolsLogin?: boolean;
31
33
  /** 开发服务器提供 WebSocket 请求头转发;静态查看器未提供时保持直连 */
@@ -26,6 +26,8 @@ interface AppInfo {
26
26
  wxConfig: Record<string, any>;
27
27
  pages: string[];
28
28
  device: DeviceProfile;
29
+ /** navigateTo / navigateBack 时滑动页面内容,默认 false */
30
+ pageTransition?: boolean;
29
31
  /** 开启了 --devtools-login */
30
32
  devtoolsLogin?: boolean;
31
33
  /** 开发服务器提供 WebSocket 请求头转发;静态查看器未提供时保持直连 */
package/dist/setup.d.mts CHANGED
@@ -1 +1 @@
1
- export { K as KnownMocks, M as MockConfig, d as MockRequest, e as MockResponse, f as MockValue, N as NetworkConfig, R as RouteHandler, S as SetupApi, g as SetupConfig, h as SetupContext, i as SetupDefinition, k as SetupEnv, U as UserInfo, l as defineSetup } from './setup--EIOgQvG.mjs';
1
+ export { K as KnownMocks, M as MockConfig, d as MockRequest, e as MockResponse, f as MockValue, N as NetworkConfig, R as RouteHandler, S as SetupApi, g as SetupConfig, h as SetupContext, i as SetupDefinition, k as SetupEnv, U as UserInfo, l as defineSetup } from './setup-DnirrFJk.mjs';
package/dist/setup.d.ts CHANGED
@@ -1 +1 @@
1
- export { K as KnownMocks, M as MockConfig, d as MockRequest, e as MockResponse, f as MockValue, N as NetworkConfig, R as RouteHandler, S as SetupApi, g as SetupConfig, h as SetupContext, i as SetupDefinition, k as SetupEnv, U as UserInfo, l as defineSetup } from './setup--EIOgQvG.js';
1
+ export { K as KnownMocks, M as MockConfig, d as MockRequest, e as MockResponse, f as MockValue, N as NetworkConfig, R as RouteHandler, S as SetupApi, g as SetupConfig, h as SetupContext, i as SetupDefinition, k as SetupEnv, U as UserInfo, l as defineSetup } from './setup-DnirrFJk.js';
@@ -1,5 +1,5 @@
1
- import { a as WxaTestApi } from './testApi-CoYw0cPm.mjs';
2
- import './setup--EIOgQvG.mjs';
1
+ import { a as WxaTestApi } from './testApi-BqpWSa3B.mjs';
2
+ import './setup-DnirrFJk.mjs';
3
3
 
4
4
  /**
5
5
  * window.__wxa_test_api__ 的全局类型声明,供测试代码按需引用:
@@ -19,7 +19,7 @@ declare global {
19
19
  __wxa_before_launch__?: (api: WxaTestApi) => unknown;
20
20
  /**
21
21
  * 由测试工具在页面脚本执行前设为 true,这次打开的小程序里 web-view 的网页在新窗口打开,
22
- * 同开发服务器的 webViewWindow 选项(--webview-window)
22
+ * 同开发服务器的 webViewWindow 选项(配置文件 wxa.config.ts 的 webViewWindow)
23
23
  */
24
24
  __wxa_webview_window__?: boolean;
25
25
  /**
@@ -1,5 +1,5 @@
1
- import { a as WxaTestApi } from './testApi-BfzCTOhg.js';
2
- import './setup--EIOgQvG.js';
1
+ import { a as WxaTestApi } from './testApi-CnKR1f3R.js';
2
+ import './setup-DnirrFJk.js';
3
3
 
4
4
  /**
5
5
  * window.__wxa_test_api__ 的全局类型声明,供测试代码按需引用:
@@ -19,7 +19,7 @@ declare global {
19
19
  __wxa_before_launch__?: (api: WxaTestApi) => unknown;
20
20
  /**
21
21
  * 由测试工具在页面脚本执行前设为 true,这次打开的小程序里 web-view 的网页在新窗口打开,
22
- * 同开发服务器的 webViewWindow 选项(--webview-window)
22
+ * 同开发服务器的 webViewWindow 选项(配置文件 wxa.config.ts 的 webViewWindow)
23
23
  */
24
24
  __wxa_webview_window__?: boolean;
25
25
  /**
@@ -1,4 +1,4 @@
1
- import { d as MockRequest, j as FrameKind, a as ApiHandler, b as ApiResult, R as RouteHandler } from './setup--EIOgQvG.mjs';
1
+ import { d as MockRequest, j as FrameKind, a as ApiHandler, b as ApiResult, R as RouteHandler } from './setup-DnirrFJk.mjs';
2
2
 
3
3
  /**
4
4
  * 网络 API:wx.request / downloadFile / uploadFile / connectSocket
@@ -28,7 +28,7 @@ interface RecordedRequest extends MockRequest {
28
28
  * - 网页和宿主域名不同时,浏览器按跨站嵌入处理:SameSite 为 Lax、Strict 或没写的 Cookie 存不下、也不发送,
29
29
  * 网页的登录态因此失效。微信里 web-view 是独立的原生网页视图,没有这个问题
30
30
  *
31
- * 新窗口模式(--webview-window)把网页放到新窗口里打开,网页是顶层页面,绕开这两个限制,见 WebViewWindows
31
+ * 新窗口模式(配置文件的 webViewWindow)把网页放到新窗口里打开,网页是顶层页面,绕开这两个限制,见 WebViewWindows
32
32
  */
33
33
 
34
34
  /** web-view 当前显示的网页,供测试 API 查询 */
@@ -149,7 +149,7 @@ interface WxaTestApi {
149
149
  /** 清空小程序的 Storage。基础库会缓存读过的值,小程序启动后再清空,已读过的 key 可能仍读到旧值 */
150
150
  clearStorage(): void;
151
151
  /**
152
- * 逻辑层、渲染层的运行时错误,以及业务代码调用过的未实现 wx API(api 为 API 名称,每个 API 记一次)。
152
+ * 逻辑层、渲染层的运行时错误(包括被基础库捕获、只打印到控制台的),以及业务代码调用过的未实现 wx API(api 为 API 名称,每个 API 记一次)。
153
153
  * 这些都不会让测试失败,需要自己检查
154
154
  */
155
155
  errors(): FrameError[];
@@ -1,4 +1,4 @@
1
- import { d as MockRequest, j as FrameKind, a as ApiHandler, b as ApiResult, R as RouteHandler } from './setup--EIOgQvG.js';
1
+ import { d as MockRequest, j as FrameKind, a as ApiHandler, b as ApiResult, R as RouteHandler } from './setup-DnirrFJk.js';
2
2
 
3
3
  /**
4
4
  * 网络 API:wx.request / downloadFile / uploadFile / connectSocket
@@ -28,7 +28,7 @@ interface RecordedRequest extends MockRequest {
28
28
  * - 网页和宿主域名不同时,浏览器按跨站嵌入处理:SameSite 为 Lax、Strict 或没写的 Cookie 存不下、也不发送,
29
29
  * 网页的登录态因此失效。微信里 web-view 是独立的原生网页视图,没有这个问题
30
30
  *
31
- * 新窗口模式(--webview-window)把网页放到新窗口里打开,网页是顶层页面,绕开这两个限制,见 WebViewWindows
31
+ * 新窗口模式(配置文件的 webViewWindow)把网页放到新窗口里打开,网页是顶层页面,绕开这两个限制,见 WebViewWindows
32
32
  */
33
33
 
34
34
  /** web-view 当前显示的网页,供测试 API 查询 */
@@ -149,7 +149,7 @@ interface WxaTestApi {
149
149
  /** 清空小程序的 Storage。基础库会缓存读过的值,小程序启动后再清空,已读过的 key 可能仍读到旧值 */
150
150
  clearStorage(): void;
151
151
  /**
152
- * 逻辑层、渲染层的运行时错误,以及业务代码调用过的未实现 wx API(api 为 API 名称,每个 API 记一次)。
152
+ * 逻辑层、渲染层的运行时错误(包括被基础库捕获、只打印到控制台的),以及业务代码调用过的未实现 wx API(api 为 API 名称,每个 API 记一次)。
153
153
  * 这些都不会让测试失败,需要自己检查
154
154
  */
155
155
  errors(): FrameError[];
package/dist/web.d.mts CHANGED
@@ -19,6 +19,8 @@ interface AppInfo {
19
19
  wxConfig: Record<string, any>;
20
20
  pages: string[];
21
21
  device: DeviceProfile;
22
+ /** navigateTo / navigateBack 时滑动页面内容,默认 false */
23
+ pageTransition?: boolean;
22
24
  /** 开启了 --devtools-login */
23
25
  devtoolsLogin?: boolean;
24
26
  /** 开发服务器提供 WebSocket 请求头转发;静态查看器未提供时保持直连 */
package/dist/web.d.ts CHANGED
@@ -19,6 +19,8 @@ interface AppInfo {
19
19
  wxConfig: Record<string, any>;
20
20
  pages: string[];
21
21
  device: DeviceProfile;
22
+ /** navigateTo / navigateBack 时滑动页面内容,默认 false */
23
+ pageTransition?: boolean;
22
24
  /** 开启了 --devtools-login */
23
25
  devtoolsLogin?: boolean;
24
26
  /** 开发服务器提供 WebSocket 请求头转发;静态查看器未提供时保持直连 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wxa/wxa-runner-core",
3
- "version": "0.12.3",
3
+ "version": "0.13.0",
4
4
  "description": "Dev server and browser runtime that run WeChat mini-programs on the official base library",
5
5
  "license": "MIT",
6
6
  "author": "open-wxa",
@@ -59,8 +59,8 @@
59
59
  "less": "^4.9.1",
60
60
  "sass": "~1.99.0",
61
61
  "ws": "^8.14.2",
62
- "@open-wxa/wxa-runner-compiler": "0.12.3",
63
- "@open-wxa/wxa-runner-extractor": "0.12.3"
62
+ "@open-wxa/wxa-runner-compiler": "0.13.0",
63
+ "@open-wxa/wxa-runner-extractor": "0.13.0"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/express": "^4.17.21",