From 07525e7083018b63ebadeeb0182365bd5af82bea Mon Sep 17 00:00:00 2001 From: konka <1094918@gmail.com> Date: Mon, 30 Oct 2023 20:05:39 +0800 Subject: [PATCH 1/9] =?UTF-8?q?fix(weapp):=20=E5=AE=8C=E5=96=84=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=B0=8F=E7=A8=8B=E5=BA=8F=E8=A7=86=E9=A2=91=E5=8F=B7?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E7=BB=84=E4=BB=B6=E7=9A=84=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=EF=BC=8Cfix=20#14608?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(weapp): add feed-token to channel-video component #14608 * fix(weapp): 修复微信小程序视频号组件相关属性 --------- Co-authored-by: chenjiajian <798095202@qq.com> --- .../taro-components/types/ChannelVideo.d.ts | 4 +- .../__snapshots__/babel.spec.ts.snap | 11 ++-- .../__snapshots__/common-style.spec.ts.snap | 11 ++-- .../compiler-macros.spec.ts.snap | 11 ++-- .../__snapshots__/config.spec.ts.snap | 33 ++++++----- .../__snapshots__/css-modules.spec.ts.snap | 22 ++++---- .../__snapshots__/custom-tabbar.spec.ts.snap | 11 ++-- .../__snapshots__/parse-html.spec.ts.snap | 11 ++-- .../__snapshots__/prerender.spec.ts.snap | 33 ++++++----- .../__tests__/__snapshots__/qq.spec.ts.snap | 22 ++++---- .../__snapshots__/react.spec.ts.snap | 11 ++-- .../__tests__/__snapshots__/sass.spec.ts.snap | 44 ++++++++------- .../__snapshots__/subpackages.spec.ts.snap | 11 ++-- .../__snapshots__/tabbar.spec.ts.snap | 11 ++-- .../__tests__/__snapshots__/ts.spec.ts.snap | 11 ++-- .../__tests__/__snapshots__/vue.spec.ts.snap | 11 ++-- .../__tests__/__snapshots__/vue3.spec.ts.snap | 11 ++-- .../__snapshots__/wx-hybrid.spec.ts.snap | 11 ++-- packages/taro-weapp/src/components.ts | 11 ++-- .../__snapshots__/babel.spec.ts.snap | 11 ++-- .../compiler-macros.spec.ts.snap | 11 ++-- .../__snapshots__/config.spec.ts.snap | 44 ++++++++------- .../__snapshots__/css-modules.spec.ts.snap | 22 ++++---- .../__snapshots__/framework.spec.ts.snap | 44 ++++++++------- .../__snapshots__/parse-html.spec.ts.snap | 11 ++-- .../__snapshots__/prerender.spec.ts.snap | 33 ++++++----- .../__tests__/__snapshots__/sass.spec.ts.snap | 55 ++++++++++--------- .../__snapshots__/subpackages.spec.ts.snap | 11 ++-- .../__snapshots__/tabbar.spec.ts.snap | 22 ++++---- .../__tests__/__snapshots__/ts.spec.ts.snap | 11 ++-- .../__snapshots__/wx-hybrid.spec.ts.snap | 11 ++-- 31 files changed, 320 insertions(+), 267 deletions(-) diff --git a/packages/taro-components/types/ChannelVideo.d.ts b/packages/taro-components/types/ChannelVideo.d.ts index 54fd872c5d2a..a5cb6bf153f2 100644 --- a/packages/taro-components/types/ChannelVideo.d.ts +++ b/packages/taro-components/types/ChannelVideo.d.ts @@ -1,7 +1,7 @@ import { ComponentType } from 'react' import { StandardProps, CommonEventFunction } from './common' interface ChannelVideoProps extends StandardProps { - /** 视频 feedId + /** 仅视频号视频与小程序同主体时生效。若内嵌非同主体视频,请使用 feed-token。 * @supported weapp */ feedId: string @@ -29,7 +29,7 @@ interface ChannelVideoProps extends StandardProps { * @default false */ autoplay?: boolean - /** 仅内嵌小程序非同主体视频号视频时使用,获取方式参考本指引。 + /** 仅内嵌小程序非同主体视频号视频时使用,获取方式参考[本指引](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/channels-activity.html#feed-token)。 * @supported weapp */ feedToken?: string diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/babel.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/babel.spec.ts.snap index d9b2ecc84a44..0f31d4495ab5 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/babel.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/babel.spec.ts.snap @@ -473,16 +473,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/common-style.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/common-style.spec.ts.snap index 078498fec92c..ecbf02d50af2 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/common-style.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/common-style.spec.ts.snap @@ -476,16 +476,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap index 3b2d550717dc..cf595aefeb27 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap @@ -473,16 +473,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/config.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/config.spec.ts.snap index 125e7ba956de..710a5855d00c 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/config.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/config.spec.ts.snap @@ -473,16 +473,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -2208,16 +2209,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -3897,16 +3899,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap index 47033e71d282..996f76775a3e 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap @@ -475,16 +475,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -2068,16 +2069,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/custom-tabbar.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/custom-tabbar.spec.ts.snap index 5b37b709fcdd..98877928bab7 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/custom-tabbar.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/custom-tabbar.spec.ts.snap @@ -436,16 +436,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap index a3ea7842ec61..fc717e75a123 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap @@ -473,16 +473,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap index c9d2ce129e7b..2be0bdc65b29 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap @@ -473,16 +473,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -3440,16 +3441,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -6407,16 +6409,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/qq.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/qq.spec.ts.snap index 08dd278c0307..1cfb8d75d406 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/qq.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/qq.spec.ts.snap @@ -498,16 +498,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -2736,16 +2737,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/react.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/react.spec.ts.snap index 7314b3bacd52..9a25f6b80b5e 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/react.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/react.spec.ts.snap @@ -473,16 +473,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/sass.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/sass.spec.ts.snap index f50bceccfd85..417326cae214 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/sass.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/sass.spec.ts.snap @@ -473,16 +473,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -2049,16 +2050,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -3625,16 +3627,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -5201,16 +5204,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap index c2589ec29c5e..c708f411a2bc 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap @@ -436,16 +436,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap index 6e226b2a529e..7a7151d18b7a 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap @@ -1755,16 +1755,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/ts.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/ts.spec.ts.snap index 6ef2513cd251..28532a06d70a 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/ts.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/ts.spec.ts.snap @@ -473,16 +473,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/vue.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/vue.spec.ts.snap index 24b85fc8ab7a..6d35a6008829 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/vue.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/vue.spec.ts.snap @@ -469,16 +469,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/vue3.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/vue3.spec.ts.snap index 96113d7bafac..5c0beba602db 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/vue3.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/vue3.spec.ts.snap @@ -471,16 +471,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap index e72378c03b45..5661c2b40ef5 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap @@ -434,16 +434,17 @@ require("./taro"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-weapp/src/components.ts b/packages/taro-weapp/src/components.ts index 4611c4f88e24..2fdc897dafa0 100644 --- a/packages/taro-weapp/src/components.ts +++ b/packages/taro-weapp/src/components.ts @@ -391,16 +391,17 @@ export const components = { KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + 'feed-id': _empty, + 'finder-user-name': _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + 'feed-id': _empty, + 'finder-user-name': _empty, + 'feed-token':_empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + 'object-fit': "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/babel.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/babel.spec.ts.snap index e63a39a18789..2a5dbca4eaa9 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/babel.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/babel.spec.ts.snap @@ -459,16 +459,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap index de56e4bbbde9..ebf48807f86e 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap @@ -459,16 +459,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/config.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/config.spec.ts.snap index fcd357bd7723..37922a0c0cf0 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/config.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/config.spec.ts.snap @@ -459,16 +459,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -2272,16 +2273,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -4196,16 +4198,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -6021,16 +6024,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap index 7dd8c19747df..6a0cfb88eb3b 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap @@ -459,16 +459,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -2280,16 +2281,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/framework.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/framework.spec.ts.snap index db7ef5a94453..aecce21cd232 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/framework.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/framework.spec.ts.snap @@ -456,16 +456,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -2496,16 +2497,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -4899,16 +4901,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -6643,16 +6646,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap index c0c7697441e4..1bc28b845b20 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap @@ -456,16 +456,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap index cdc5c59ffa51..1597b1893b1e 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap @@ -456,16 +456,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -3534,16 +3535,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -6612,16 +6614,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/sass.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/sass.spec.ts.snap index b6f7ed93540e..75ce017b3d56 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/sass.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/sass.spec.ts.snap @@ -459,16 +459,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -2233,16 +2234,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -4043,16 +4045,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -5853,16 +5856,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -7663,16 +7667,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap index 4f8be9b3af75..d78cbca4104e 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap @@ -459,16 +459,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap index 91ea57c50cca..cc308c880bd3 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap @@ -456,16 +456,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} @@ -3772,16 +3773,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/ts.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/ts.spec.ts.snap index ae96ae89af1b..5ecc9c823ab8 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/ts.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/ts.spec.ts.snap @@ -459,16 +459,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap index 5e46a089c6e3..3486307ff783 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap @@ -454,16 +454,17 @@ require("./runtime"); KeyboardAccessory: {}, RootPortal: {}, ChannelLive: { - feedId: _empty, - finderUserName: _empty + "feed-id": _empty, + "finder-user-name": _empty }, ChannelVideo: { - feedId: _empty, - finderUserName: _empty, + "feed-id": _empty, + "finder-user-name": _empty, + "feed-token": _empty, autoplay: _false, loop: _false, muted: _false, - objectFit: "'contain'", + "object-fit": "'contain'", bindError: _empty }, Snapshot: {} From 818d8302e7ab404a81eddd9326d09dddf3eb8b2c Mon Sep 17 00:00:00 2001 From: tangbzai <47456577+tangbzai@users.noreply.github.com> Date: Fri, 13 Oct 2023 11:02:21 +0800 Subject: [PATCH 2/9] =?UTF-8?q?types:=20=E6=A0=B9=E6=8D=AE=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E8=A1=A5=E5=85=85=E9=85=8D=E7=BD=AE=20enableSourceMap?= =?UTF-8?q?=20=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro/types/compile/config/h5.d.ts | 3 +++ packages/taro/types/compile/config/mini.d.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/packages/taro/types/compile/config/h5.d.ts b/packages/taro/types/compile/config/h5.d.ts index 8a7d22ad2a01..bffca29af4f1 100644 --- a/packages/taro/types/compile/config/h5.d.ts +++ b/packages/taro/types/compile/config/h5.d.ts @@ -44,6 +44,9 @@ export interface IH5Config { /** 预览服务的配置,可以更改端口等参数。具体配置参考 [webpack-dev-server](https://webpack.js.org/configuration/dev-server) */ devServer?: webpackDevServer.Configuration + /** 用于控制是否生成 js、css 对应的 sourceMap (默认值:watch 模式下为 true,否则为 false) */ + enableSourceMap?: boolean + /** 具体配置请参考 [Webpack devtool](https://webpack.js.org/configuration/devtool/#devtool) 配置 (默认值:'cheap-module-eval-source-map')*/ sourceMapType?: | 'none' diff --git a/packages/taro/types/compile/config/mini.d.ts b/packages/taro/types/compile/config/mini.d.ts index bb2aff4b828f..c3ba5d0c73b2 100644 --- a/packages/taro/types/compile/config/mini.d.ts +++ b/packages/taro/types/compile/config/mini.d.ts @@ -13,6 +13,9 @@ interface Runtime { } export interface IMiniAppConfig { + /** 用于控制是否生成 js、css 对应的 sourceMap (默认值:watch 模式下为 true,否则为 false) */ + enableSourceMap?: boolean + /** 默认值:'cheap-module-source-map', 具体参考[Webpack devtool 配置](https://webpack.js.org/configuration/devtool/#devtool) */ sourceMapType?: string From f31b4161f9fc65d8acad48e026344b3154e093d0 Mon Sep 17 00:00:00 2001 From: TheKonka <1094918@gmail.com> Date: Tue, 17 Oct 2023 11:27:48 +0800 Subject: [PATCH 3/9] fix(tt): `Input` attribute replenishment #14650 --- .../src/__tests__/__snapshots__/bytedance.spec.ts.snap | 6 ++++++ packages/taro-tt/src/components.ts | 6 ++++++ .../src/__tests__/__snapshots__/mini-platform.spec.ts.snap | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/bytedance.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/bytedance.spec.ts.snap index 0812c4876711..a6c936d5e270 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/bytedance.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/bytedance.spec.ts.snap @@ -111,6 +111,12 @@ require("./taro"); Icon: { size: "24" }, + Input: { + "adjust-position": _true, + "hold-keyboard": _false, + "clue-type": "0", + bindKeyboardHeightChange: _empty + }, Button: { bindGetPhoneNumber: _empty, "data-channel": _empty, diff --git a/packages/taro-tt/src/components.ts b/packages/taro-tt/src/components.ts index 5af1c2fb5016..ad2b0cfcf71a 100644 --- a/packages/taro-tt/src/components.ts +++ b/packages/taro-tt/src/components.ts @@ -9,6 +9,12 @@ export const components = { Icon: { size: '24' }, + Input: { + 'adjust-position': _true, + 'hold-keyboard': _false, + 'clue-type': '0', + bindKeyboardHeightChange: _empty, + }, Button: { bindGetPhoneNumber: _empty, 'data-channel': _empty, diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/mini-platform.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/mini-platform.spec.ts.snap index 4c35ff630202..3b98622bdb44 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/mini-platform.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/mini-platform.spec.ts.snap @@ -1774,6 +1774,12 @@ require("./runtime"); Icon: { size: "24" }, + Input: { + "adjust-position": _true, + "hold-keyboard": _false, + "clue-type": "0", + bindKeyboardHeightChange: _empty + }, Button: { bindGetPhoneNumber: _empty, "data-channel": _empty, From 75cefbb62030d15dde8f746742981f5f82ad0449 Mon Sep 17 00:00:00 2001 From: konka <1094918@gmail.com> Date: Mon, 30 Oct 2023 21:52:08 +0800 Subject: [PATCH 4/9] fix(weapp): `LivePlayer` attribute replenishment (#14668) --- .../taro-components/types/LivePlayer.d.ts | 10 +++-- .../__snapshots__/babel.spec.ts.snap | 8 +++- .../__snapshots__/common-style.spec.ts.snap | 8 +++- .../compiler-macros.spec.ts.snap | 8 +++- .../__snapshots__/config.spec.ts.snap | 24 +++++++++-- .../__snapshots__/css-modules.spec.ts.snap | 16 +++++++- .../__snapshots__/custom-tabbar.spec.ts.snap | 8 +++- .../__snapshots__/parse-html.spec.ts.snap | 8 +++- .../__snapshots__/prerender.spec.ts.snap | 24 +++++++++-- .../__tests__/__snapshots__/qq.spec.ts.snap | 16 +++++++- .../__snapshots__/react.spec.ts.snap | 8 +++- .../__tests__/__snapshots__/sass.spec.ts.snap | 32 +++++++++++++-- .../__snapshots__/subpackages.spec.ts.snap | 8 +++- .../__snapshots__/tabbar.spec.ts.snap | 8 +++- .../__tests__/__snapshots__/ts.spec.ts.snap | 8 +++- .../__tests__/__snapshots__/vue.spec.ts.snap | 8 +++- .../__tests__/__snapshots__/vue3.spec.ts.snap | 8 +++- .../__snapshots__/wx-hybrid.spec.ts.snap | 8 +++- packages/taro-weapp/src/components.ts | 10 ++++- .../__snapshots__/babel.spec.ts.snap | 8 +++- .../compiler-macros.spec.ts.snap | 8 +++- .../__snapshots__/config.spec.ts.snap | 32 +++++++++++++-- .../__snapshots__/css-modules.spec.ts.snap | 16 +++++++- .../__snapshots__/framework.spec.ts.snap | 32 +++++++++++++-- .../__snapshots__/parse-html.spec.ts.snap | 8 +++- .../__snapshots__/prerender.spec.ts.snap | 24 +++++++++-- .../__tests__/__snapshots__/sass.spec.ts.snap | 40 ++++++++++++++++--- .../__snapshots__/subpackages.spec.ts.snap | 8 +++- .../__snapshots__/tabbar.spec.ts.snap | 16 +++++++- .../__tests__/__snapshots__/ts.spec.ts.snap | 8 +++- .../__snapshots__/wx-hybrid.spec.ts.snap | 8 +++- 31 files changed, 378 insertions(+), 58 deletions(-) diff --git a/packages/taro-components/types/LivePlayer.d.ts b/packages/taro-components/types/LivePlayer.d.ts index 6f235f9c105f..c215bedfcc48 100644 --- a/packages/taro-components/types/LivePlayer.d.ts +++ b/packages/taro-components/types/LivePlayer.d.ts @@ -61,10 +61,12 @@ interface LivePlayerProps extends StandardProps { */ pictureInPictureMode?: ('push' | 'pop')[] | 'push' | 'pop' | '' /** 当跳转到其它微信原生页面时,是否自动暂停本页面的实时音视频播放 + * @default true * @supported weapp, qq */ - autoPauseIfOpenNative?: string - /** 格式固定为 https://servicewechat.com/{appid}/{version}/page-frame.html,其中 {appid} 为小程序的 appid,{version} 为小程序的版本号,版本号为 0 表示为开发版、体验版以及审核版本,版本号为 devtools 表示为开发者工具,其余为正式版本; + autoPauseIfOpenNative?: boolean + /** 格式固定为 https://servicewechat.com/{appid}/{version}/page-frame.html ,其中 {appid} 为小程序的 appid,{version} 为小程序的版本号,版本号为 0 表示为开发版、体验版以及审核版本,版本号为 devtools 表示为开发者工具,其余为正式版本; + * @default 'no-referrer' * @supported weapp */ referrerPolicy?: 'origin' | 'no-referrer' @@ -125,11 +127,11 @@ interface LivePlayerProps extends StandardProps { /** 用户选择投屏设备时触发 detail = { state: "success"/"fail" } * @supported weapp */ - onCastingUserSelect?: CommonEventFunction + onCastingUserSelect?: CommonEventFunction<{ state: 'success' | 'fail' }> /** 投屏成功/失败时触发 detail = { type, state: "success"/"fail" } * @supported weapp */ - onCastingStateChange?: CommonEventFunction + onCastingStateChange?: CommonEventFunction<{ type: any, state: 'success' | 'fail' }> /** 投屏被中断时触发 * @supported weapp */ diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/babel.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/babel.spec.ts.snap index 0f31d4495ab5..d8c245fd2ef2 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/babel.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/babel.spec.ts.snap @@ -273,12 +273,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/common-style.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/common-style.spec.ts.snap index ecbf02d50af2..729bff4cf3b4 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/common-style.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/common-style.spec.ts.snap @@ -276,12 +276,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap index cf595aefeb27..714f1a760486 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap @@ -273,12 +273,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/config.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/config.spec.ts.snap index 710a5855d00c..2d1368f96121 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/config.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/config.spec.ts.snap @@ -273,12 +273,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -2009,12 +2015,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -3699,12 +3711,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap index 996f76775a3e..8612bb02fcae 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap @@ -275,12 +275,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -1869,12 +1875,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/custom-tabbar.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/custom-tabbar.spec.ts.snap index 98877928bab7..e50fa47266fe 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/custom-tabbar.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/custom-tabbar.spec.ts.snap @@ -236,12 +236,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap index fc717e75a123..3692a208d6d7 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap @@ -273,12 +273,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap index 2be0bdc65b29..3d4ae02d5182 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap @@ -273,12 +273,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -3241,12 +3247,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -6209,12 +6221,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/qq.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/qq.spec.ts.snap index 1cfb8d75d406..8a51173d6319 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/qq.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/qq.spec.ts.snap @@ -298,12 +298,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -2537,12 +2543,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/react.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/react.spec.ts.snap index 9a25f6b80b5e..a15694d4a5ad 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/react.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/react.spec.ts.snap @@ -273,12 +273,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/sass.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/sass.spec.ts.snap index 417326cae214..92eb143efeed 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/sass.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/sass.spec.ts.snap @@ -273,12 +273,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -1850,12 +1856,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -3427,12 +3439,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -5004,12 +5022,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap index c708f411a2bc..4c1bb7dabbed 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap @@ -236,12 +236,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap index 7a7151d18b7a..cfde9c5f6c94 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap @@ -1555,12 +1555,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/ts.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/ts.spec.ts.snap index 28532a06d70a..572cb9e1a73f 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/ts.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/ts.spec.ts.snap @@ -273,12 +273,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/vue.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/vue.spec.ts.snap index 6d35a6008829..42ea62d565a3 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/vue.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/vue.spec.ts.snap @@ -269,12 +269,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/vue3.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/vue3.spec.ts.snap index 5c0beba602db..4159c088f848 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/vue3.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/vue3.spec.ts.snap @@ -271,12 +271,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap index 5661c2b40ef5..7c1358fd8715 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap @@ -234,12 +234,18 @@ require("./taro"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-weapp/src/components.ts b/packages/taro-weapp/src/components.ts index 2fdc897dafa0..d5587503640b 100644 --- a/packages/taro-weapp/src/components.ts +++ b/packages/taro-weapp/src/components.ts @@ -126,7 +126,7 @@ export const components = { 'refresher-two-level-enabled': _false, 'refresher-two-level-triggered': _false, 'refresher-two-level-threshold': '150', - 'refresher-two-level-close-threshold':'80', + 'refresher-two-level-close-threshold': '80', 'refresher-two-level-scroll-enabled': _false, 'refresher-ballistic-refresh-enabled': _false, 'refresher-two-level-pinned': _false, @@ -185,12 +185,18 @@ export const components = { 'auto-pause-if-navigate': _true, 'auto-pause-if-open-native': _true, 'picture-in-picture-mode': '[]', + 'enable-auto-rotation': _false, + 'referrer-policy': "'no-referrer'", + 'enable-casting': _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/babel.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/babel.spec.ts.snap index 2a5dbca4eaa9..e01646a611e3 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/babel.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/babel.spec.ts.snap @@ -259,12 +259,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap index ebf48807f86e..2e80ba255d10 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap @@ -259,12 +259,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/config.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/config.spec.ts.snap index 37922a0c0cf0..74d11cc1777c 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/config.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/config.spec.ts.snap @@ -259,12 +259,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -2073,12 +2079,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -3998,12 +4010,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -5824,12 +5842,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap index 6a0cfb88eb3b..43cebc5dfb17 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap @@ -259,12 +259,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -2081,12 +2087,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/framework.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/framework.spec.ts.snap index aecce21cd232..c6b3f0e84372 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/framework.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/framework.spec.ts.snap @@ -256,12 +256,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -2297,12 +2303,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -4701,12 +4713,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -6446,12 +6464,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap index 1bc28b845b20..2706b619e2a4 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap @@ -256,12 +256,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap index 1597b1893b1e..335f3e1a4050 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap @@ -256,12 +256,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -3335,12 +3341,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -6414,12 +6426,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/sass.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/sass.spec.ts.snap index 75ce017b3d56..87aecc29d5c2 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/sass.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/sass.spec.ts.snap @@ -259,12 +259,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -2034,12 +2040,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -3845,12 +3857,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -5656,12 +5674,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -7467,12 +7491,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap index d78cbca4104e..06ad36a07ff3 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap @@ -259,12 +259,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap index cc308c880bd3..11d53a499109 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap @@ -256,12 +256,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, @@ -3573,12 +3579,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/ts.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/ts.spec.ts.snap index 5ecc9c823ab8..19e2b323f77b 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/ts.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/ts.spec.ts.snap @@ -259,12 +259,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap index 3486307ff783..ba02b1f31422 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap @@ -254,12 +254,18 @@ require("./runtime"); "auto-pause-if-navigate": _true, "auto-pause-if-open-native": _true, "picture-in-picture-mode": "[]", + "enable-auto-rotation": _false, + "referrer-policy": "'no-referrer'", + "enable-casting": _false, bindstatechange: _empty, bindfullscreenchange: _empty, bindnetstatus: _empty, bindAudioVolumeNotify: _empty, bindEnterPictureInPicture: _empty, - bindLeavePictureInPicture: _empty + bindLeavePictureInPicture: _empty, + bindCastingUserSelect: _empty, + bindCastingStateChange: _empty, + bindCastingInterrupt: _empty }, Video: { title: _empty, From 4cf28476f5f30b38a07c5e1d19435169fc76a9ab Mon Sep 17 00:00:00 2001 From: ZakaryCode Date: Mon, 30 Oct 2023 10:37:37 +0800 Subject: [PATCH 5/9] refactor(types): sync components types --- .github/workflows/sync-components-types.yml | 1 + packages/taro/types/api/ui/fonts.d.ts | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sync-components-types.yml b/.github/workflows/sync-components-types.yml index 3e8156dce653..79770403f80f 100644 --- a/.github/workflows/sync-components-types.yml +++ b/.github/workflows/sync-components-types.yml @@ -20,6 +20,7 @@ jobs: fetch-depth: 1 path: .taro-docs - run : | + cp .taro-docs/packages/taro/types/* packages/taro/types cp .taro-docs/packages/taro-components/types/* packages/taro-components/types rm -rf .taro-docs diff --git a/packages/taro/types/api/ui/fonts.d.ts b/packages/taro/types/api/ui/fonts.d.ts index 11826e47157c..fdde5cca7887 100644 --- a/packages/taro/types/api/ui/fonts.d.ts +++ b/packages/taro/types/api/ui/fonts.d.ts @@ -54,13 +54,14 @@ declare module '../../index' { /** 动态加载网络字体。文件地址需为下载类型。iOS 仅支持 https 格式文件地址。 * * 注意: - * 1. 字体文件返回的 contet-type 参考 [font](https://www.iana.org/assignments/media-types/media-types.xhtml#font),格式不正确时会解析失败。 + * 1. 字体文件返回的 context-type 参考 [font](https://www.iana.org/assignments/media-types/media-types.xhtml#font),格式不正确时会解析失败。 * 2. 字体链接必须是https(ios不支持http) * 3. 字体链接必须是同源下的,或开启了cors支持,小程序的域名是`servicewechat.com` * 4. canvas等原生组件不支持使用接口添加的字体 - * 5. 工具里提示 Faild to load font可以忽略 - * @supported weapp, h5 + * 5. 工具里提示 Failed to load font 可以忽略 + * @supported weapp, alipay, h5 * @h5 不支持 global (默认全局加载) + * @alipay source 地址格式为 `url('https://...')`,而不是单纯 URL 地址 * @example * ```tsx * Taro.loadFontFace({ From b336e827624b99d531754c6e957cad57c28bd020 Mon Sep 17 00:00:00 2001 From: TheKonka <1094918@gmail.com> Date: Tue, 17 Oct 2023 15:08:01 +0800 Subject: [PATCH 6/9] fix(weapp): `Map` attribute replenishment #14634 --- packages/taro-components/types/Map.d.ts | 49 +++++++++++++++++-- .../__snapshots__/babel.spec.ts.snap | 7 +++ .../__snapshots__/common-style.spec.ts.snap | 7 +++ .../compiler-macros.spec.ts.snap | 7 +++ .../__snapshots__/config.spec.ts.snap | 21 ++++++++ .../__snapshots__/css-modules.spec.ts.snap | 14 ++++++ .../__snapshots__/custom-tabbar.spec.ts.snap | 7 +++ .../__snapshots__/parse-html.spec.ts.snap | 7 +++ .../__snapshots__/prerender.spec.ts.snap | 21 ++++++++ .../__tests__/__snapshots__/qq.spec.ts.snap | 14 ++++++ .../__snapshots__/react.spec.ts.snap | 7 +++ .../__tests__/__snapshots__/sass.spec.ts.snap | 28 +++++++++++ .../__snapshots__/subpackages.spec.ts.snap | 7 +++ .../__snapshots__/tabbar.spec.ts.snap | 7 +++ .../__tests__/__snapshots__/ts.spec.ts.snap | 7 +++ .../__tests__/__snapshots__/vue.spec.ts.snap | 7 +++ .../__tests__/__snapshots__/vue3.spec.ts.snap | 7 +++ .../__snapshots__/wx-hybrid.spec.ts.snap | 7 +++ packages/taro-weapp/src/components.ts | 7 +++ .../__snapshots__/babel.spec.ts.snap | 7 +++ .../compiler-macros.spec.ts.snap | 7 +++ .../__snapshots__/config.spec.ts.snap | 28 +++++++++++ .../__snapshots__/css-modules.spec.ts.snap | 14 ++++++ .../__snapshots__/framework.spec.ts.snap | 28 +++++++++++ .../__snapshots__/parse-html.spec.ts.snap | 7 +++ .../__snapshots__/prerender.spec.ts.snap | 21 ++++++++ .../__tests__/__snapshots__/sass.spec.ts.snap | 35 +++++++++++++ .../__snapshots__/subpackages.spec.ts.snap | 7 +++ .../__snapshots__/tabbar.spec.ts.snap | 14 ++++++ .../__tests__/__snapshots__/ts.spec.ts.snap | 7 +++ .../__snapshots__/wx-hybrid.spec.ts.snap | 7 +++ 31 files changed, 417 insertions(+), 3 deletions(-) diff --git a/packages/taro-components/types/Map.d.ts b/packages/taro-components/types/Map.d.ts index 3a2d2f185513..ff21beb21d7e 100644 --- a/packages/taro-components/types/Map.d.ts +++ b/packages/taro-components/types/Map.d.ts @@ -30,8 +30,9 @@ interface MapProps extends StandardProps { * @supported weapp, alipay, swan, tt, qq, jd */ markers?: MapProps.marker[] - /** 标记点 + /** **即将移除,请使用 markers** * @supported weapp + * @deprecated */ covers?: any[] /** 路线 @@ -217,14 +218,38 @@ interface MapProps extends StandardProps { * @supported weapp, swan, qq */ onPoiTap?: CommonEventFunction + /** 点击地图路线时触发,e.detail = {longitude, latitude} + * @supported weapp, swan, qq + */ + onPolylineTap?: CommonEventFunction + /** 地图能力生效时触发,e.detail = {ability, errCode, errMsg} + * @supported weapp + */ + onAbilitySuccess?: CommonEventFunction + /** 地图能力失败时触发,e.detail = {ability, errCode, errMsg} + * @supported weapp + */ + onAbilityFailed?: CommonEventFunction + /** 地图鉴权结果成功时触发,e.detail = {errCode, errMsg} + * @supported weapp + */ + onAuthSuccess?: CommonEventFunction<{ errCode: number; errMsg: string }> + /** MapContext.moveAlong 插值动画时触发。e.detail = {markerId, longitude, latitude, animationStatus: "interpolating" | "complete"} + * @supported weapp + */ + onInterpolatePoint?: CommonEventFunction + /** 组件错误时触发,例如创建或鉴权失败,e.detail = {longitude, latitude} + * @supported weapp + */ + onError: CommonEventFunction /** 点击标记点对应的气泡时触发e.detail = {markerId} * @supported weapp, swan, tt, jd */ - onCallOutTap?: CommonEventFunction + onCallOutTap?: CommonEventFunction /** 点击定位标时触发,e.detail = {longitude, latitude} * @supported weapp, tt */ - onAnchorPointTap?: CommonEventFunction + onAnchorPointTap?: CommonEventFunction /** 点击 panel 时触发。 * @supported alipay */ @@ -612,6 +637,24 @@ declare namespace MapProps { longitude: number latitude: number } + + interface onPolylineTapEventDetail { + polylineId: number + longitude: number + latitude: number + } + interface onAbilityEventDetail { + ability: string + errCode: number + errMsg: string + } + + interface onInterpolatePointEventDetail { + markerId: number + longitude: number + latitude: number + animationStatus: 'interpolating' | 'complete' + } } /** 地图。相关api Taro.createMapContext。 * @classification maps diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/babel.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/babel.spec.ts.snap index d8c245fd2ef2..2319373d181a 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/babel.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/babel.spec.ts.snap @@ -117,6 +117,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -128,6 +129,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/common-style.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/common-style.spec.ts.snap index 729bff4cf3b4..1d1a568e6922 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/common-style.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/common-style.spec.ts.snap @@ -120,6 +120,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -131,6 +132,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap index 714f1a760486..1dbca9ee1ec6 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap @@ -117,6 +117,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -128,6 +129,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/config.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/config.spec.ts.snap index 2d1368f96121..08b3018414ec 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/config.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/config.spec.ts.snap @@ -117,6 +117,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -128,6 +129,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -1859,6 +1866,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -1870,6 +1878,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -3555,6 +3569,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -3566,6 +3581,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap index 8612bb02fcae..604e3fffd550 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap @@ -119,6 +119,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -130,6 +131,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -1719,6 +1726,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -1730,6 +1738,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/custom-tabbar.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/custom-tabbar.spec.ts.snap index e50fa47266fe..f07897e826ee 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/custom-tabbar.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/custom-tabbar.spec.ts.snap @@ -80,6 +80,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -91,6 +92,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap index 3692a208d6d7..70c137605fbd 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap @@ -117,6 +117,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -128,6 +129,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap index 3d4ae02d5182..e2806b57a133 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap @@ -117,6 +117,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -128,6 +129,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -3091,6 +3098,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -3102,6 +3110,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -6065,6 +6079,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -6076,6 +6091,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/qq.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/qq.spec.ts.snap index 8a51173d6319..10c6624c5bdf 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/qq.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/qq.spec.ts.snap @@ -142,6 +142,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -153,6 +154,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -2387,6 +2394,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -2398,6 +2406,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/react.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/react.spec.ts.snap index a15694d4a5ad..d5329f7b1113 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/react.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/react.spec.ts.snap @@ -117,6 +117,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -128,6 +129,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/sass.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/sass.spec.ts.snap index 92eb143efeed..34361664806c 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/sass.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/sass.spec.ts.snap @@ -117,6 +117,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -128,6 +129,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -1700,6 +1707,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -1711,6 +1719,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -3283,6 +3297,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -3294,6 +3309,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -4866,6 +4887,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -4877,6 +4899,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap index 4c1bb7dabbed..d0bfda4ececa 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap @@ -80,6 +80,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -91,6 +92,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap index cfde9c5f6c94..81f276e5c346 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap @@ -1399,6 +1399,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -1410,6 +1411,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/ts.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/ts.spec.ts.snap index 572cb9e1a73f..7d6e56f103ac 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/ts.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/ts.spec.ts.snap @@ -117,6 +117,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -128,6 +129,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/vue.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/vue.spec.ts.snap index 42ea62d565a3..87844c97f640 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/vue.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/vue.spec.ts.snap @@ -113,6 +113,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -124,6 +125,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/vue3.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/vue3.spec.ts.snap index 4159c088f848..729dde7bb57b 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/vue3.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/vue3.spec.ts.snap @@ -115,6 +115,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -126,6 +127,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap index 7c1358fd8715..fb76518314c5 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap @@ -78,6 +78,7 @@ require("./taro"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -89,6 +90,12 @@ require("./taro"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-weapp/src/components.ts b/packages/taro-weapp/src/components.ts index d5587503640b..e2faef78b6bb 100644 --- a/packages/taro-weapp/src/components.ts +++ b/packages/taro-weapp/src/components.ts @@ -29,6 +29,7 @@ export const components = { 'show-compass': _false, 'show-scale': _false, 'enable-overlooking': _false, + 'enable-auto-max-overlooking': _false, 'enable-zoom': _true, 'enable-scroll': _true, 'enable-rotate': _false, @@ -40,6 +41,12 @@ export const components = { bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/babel.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/babel.spec.ts.snap index e01646a611e3..d4175de429ef 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/babel.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/babel.spec.ts.snap @@ -103,6 +103,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -114,6 +115,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap index 2e80ba255d10..4748d00e2565 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap @@ -103,6 +103,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -114,6 +115,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/config.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/config.spec.ts.snap index 74d11cc1777c..456f1c53f47b 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/config.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/config.spec.ts.snap @@ -103,6 +103,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -114,6 +115,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -1923,6 +1930,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -1934,6 +1942,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -3854,6 +3868,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -3865,6 +3880,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -5686,6 +5707,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -5697,6 +5719,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap index 43cebc5dfb17..6d50e95ecdc2 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap @@ -103,6 +103,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -114,6 +115,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -1931,6 +1938,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -1942,6 +1950,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/framework.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/framework.spec.ts.snap index c6b3f0e84372..104f2c88c69c 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/framework.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/framework.spec.ts.snap @@ -100,6 +100,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -111,6 +112,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -2147,6 +2154,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -2158,6 +2166,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -4557,6 +4571,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -4568,6 +4583,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -6308,6 +6329,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -6319,6 +6341,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap index 2706b619e2a4..a2387854c835 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap @@ -100,6 +100,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -111,6 +112,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap index 335f3e1a4050..3fc406e5eaec 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap @@ -100,6 +100,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -111,6 +112,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -3185,6 +3192,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -3196,6 +3204,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -6270,6 +6284,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -6281,6 +6296,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/sass.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/sass.spec.ts.snap index 87aecc29d5c2..d6485c51f6b1 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/sass.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/sass.spec.ts.snap @@ -103,6 +103,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -114,6 +115,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -1884,6 +1891,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -1895,6 +1903,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -3701,6 +3715,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -3712,6 +3727,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -5518,6 +5539,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -5529,6 +5551,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -7335,6 +7363,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -7346,6 +7375,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap index 06ad36a07ff3..87ca57b37ec8 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap @@ -103,6 +103,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -114,6 +115,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap index 11d53a499109..c079084dbfe1 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap @@ -100,6 +100,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -111,6 +112,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { @@ -3423,6 +3430,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -3434,6 +3442,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/ts.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/ts.spec.ts.snap index 19e2b323f77b..719196c8591b 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/ts.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/ts.spec.ts.snap @@ -103,6 +103,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -114,6 +115,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap index ba02b1f31422..0cafd55da6a9 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap @@ -98,6 +98,7 @@ require("./runtime"); "show-compass": _false, "show-scale": _false, "enable-overlooking": _false, + "enable-auto-max-overlooking": _false, "enable-zoom": _true, "enable-scroll": _true, "enable-rotate": _false, @@ -109,6 +110,12 @@ require("./runtime"); bindLabelTap: _empty, bindRegionChange: _empty, bindPoiTap: _empty, + bindPolylineTap: _empty, + bindAbilitySuccess: _empty, + bindAbilityFailed: _empty, + bindAuthSuccess: _empty, + bindInterpolatePoint: _empty, + bindError: _empty, bindAnchorPointTap: _empty }, Button: { From 27aa3a82d4a99fb2f42d8a75c54499e656f20050 Mon Sep 17 00:00:00 2001 From: chenjiajian <798095202@qq.com> Date: Tue, 31 Oct 2023 14:55:58 +0800 Subject: [PATCH 7/9] =?UTF-8?q?fix(plugin-inject):=20=E4=BF=AE=E5=A4=8D=20?= =?UTF-8?q?Vue2=20=E4=BD=BF=E7=94=A8=20componentsMap=20=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=97=B6=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?#13299=20#14520=20(#14607)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(plugin-inject): 修复 Vue2 使用 componentsMap 配置时报错的问题,#13299 #14520 * fix(plugin-inject): 开启 treeshake --------- Co-authored-by: xuanzebin <38971117+xuanzebin@users.noreply.github.com> --- packages/taro-plugin-inject/package.json | 3 ++- packages/taro-plugin-inject/src/index.ts | 20 ++++++++++++-------- pnpm-lock.yaml | 2 ++ 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/packages/taro-plugin-inject/package.json b/packages/taro-plugin-inject/package.json index bc5bb676a5a8..e0d88dffd393 100644 --- a/packages/taro-plugin-inject/package.json +++ b/packages/taro-plugin-inject/package.json @@ -26,7 +26,8 @@ }, "dependencies": { "@tarojs/service": "workspace:*", - "@tarojs/shared": "workspace:*" + "@tarojs/shared": "workspace:*", + "@tarojs/helper": "workspace:*" }, "devDependencies": { "rollup": "^2.79.0", diff --git a/packages/taro-plugin-inject/src/index.ts b/packages/taro-plugin-inject/src/index.ts index b0ec7747340a..ac53c4030d1a 100644 --- a/packages/taro-plugin-inject/src/index.ts +++ b/packages/taro-plugin-inject/src/index.ts @@ -1,4 +1,5 @@ +import { esbuild } from '@tarojs/helper' import { isArray, isFunction, isObject, isString } from '@tarojs/shared' import * as path from 'path' @@ -20,12 +21,6 @@ export interface IOptions { export default (ctx: IPluginContext, options: IOptions) => { const fs = ctx.helper.fs - ctx.modifyWebpackChain(({ chain }) => { - if(options.componentsMap){ - chain.optimization.providedExports(false) - } - }) - ctx.registerMethod({ name: 'onSetupClose', fn (platform: TaroPlatformBase) { @@ -41,7 +36,7 @@ export default (ctx: IPluginContext, options: IOptions) => { const template = platform.template if(!template) return - + if (isArray(voidComponents)) { voidComponents.forEach(el => template.voidElements.add(el)) } else if (isFunction(voidComponents)) { @@ -89,10 +84,19 @@ function injectRuntimePath (platform: TaroPlatformBase) { } function injectComponentsReact (fs, taroComponentsPath, componentsMap) { - fs.writeFileSync(path.resolve(__dirname, '../dist/components-react.js'), ` + const filePath = path.resolve(__dirname, '../dist/components-react.js') + fs.writeFileSync(filePath, ` export * from '${taroComponentsPath}' ${Object.keys(componentsMap).map((key) => `export const ${key} = '${componentsMap[key]}'`).join('\n')} `) + // 提前使用 esbuild 进行 bundle,避免 Webpack 分析过程中的错误,#13299 #14520 + const result = esbuild.buildSync({ + entryPoints: [filePath], + bundle: true, + write: false, + format: 'esm', + }) + fs.writeFileSync(filePath, result.outputFiles[0].text) } function injectComponents (fs, components) { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index efd3b7c5865d..2a2cae1affe2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1392,12 +1392,14 @@ importers: packages/taro-plugin-inject: specifiers: + '@tarojs/helper': workspace:* '@tarojs/service': workspace:* '@tarojs/shared': workspace:* rollup: ^2.79.0 rollup-plugin-ts: ^3.0.2 typescript: ^4.7.4 dependencies: + '@tarojs/helper': link:../taro-helper '@tarojs/service': link:../taro-service '@tarojs/shared': link:../shared devDependencies: From 2f8c8642a3fc98f541de6d9185243e6939194267 Mon Sep 17 00:00:00 2001 From: konka <1094918@gmail.com> Date: Tue, 31 Oct 2023 16:38:42 +0800 Subject: [PATCH 8/9] fix(alipay): support root-portal component (#14171) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(alipay): support root-portal component #14168 * test: update snapshot * fix(weapp): 修复微信小程序 RootPortal 不能正确使用的问题 * fix: lint * fix: update snapshot --------- Co-authored-by: 大喵 Co-authored-by: chenjiajian <798095202@qq.com> --- packages/taro-alipay/src/components-react.ts | 1 + packages/taro-alipay/src/components.ts | 3 +++ .../__snapshots__/alipay.spec.ts.snap | 3 +++ .../__snapshots__/babel.spec.ts.snap | 4 +++- .../__snapshots__/common-style.spec.ts.snap | 4 +++- .../compiler-macros.spec.ts.snap | 4 +++- .../__snapshots__/config.spec.ts.snap | 12 ++++++++--- .../__snapshots__/css-modules.spec.ts.snap | 8 ++++++-- .../__snapshots__/custom-tabbar.spec.ts.snap | 4 +++- .../__snapshots__/parse-html.spec.ts.snap | 4 +++- .../__snapshots__/prerender.spec.ts.snap | 12 ++++++++--- .../__tests__/__snapshots__/qq.spec.ts.snap | 8 ++++++-- .../__snapshots__/react.spec.ts.snap | 4 +++- .../__tests__/__snapshots__/sass.spec.ts.snap | 16 +++++++++++---- .../__snapshots__/subpackages.spec.ts.snap | 4 +++- .../__snapshots__/tabbar.spec.ts.snap | 7 ++++++- .../__tests__/__snapshots__/ts.spec.ts.snap | 4 +++- .../__tests__/__snapshots__/vue.spec.ts.snap | 4 +++- .../__tests__/__snapshots__/vue3.spec.ts.snap | 4 +++- .../__snapshots__/wx-hybrid.spec.ts.snap | 4 +++- packages/taro-weapp/src/components.ts | 4 +++- .../__snapshots__/babel.spec.ts.snap | 4 +++- .../compiler-macros.spec.ts.snap | 4 +++- .../__snapshots__/config.spec.ts.snap | 16 +++++++++++---- .../__snapshots__/css-modules.spec.ts.snap | 8 ++++++-- .../__snapshots__/framework.spec.ts.snap | 16 +++++++++++---- .../__snapshots__/mini-platform.spec.ts.snap | 3 +++ .../__snapshots__/parse-html.spec.ts.snap | 4 +++- .../__snapshots__/prerender.spec.ts.snap | 12 ++++++++--- .../__tests__/__snapshots__/sass.spec.ts.snap | 20 ++++++++++++++----- .../__snapshots__/subpackages.spec.ts.snap | 4 +++- .../__snapshots__/tabbar.spec.ts.snap | 11 ++++++++-- .../__tests__/__snapshots__/ts.spec.ts.snap | 4 +++- .../__snapshots__/wx-hybrid.spec.ts.snap | 4 +++- 34 files changed, 175 insertions(+), 53 deletions(-) diff --git a/packages/taro-alipay/src/components-react.ts b/packages/taro-alipay/src/components-react.ts index 069a5d0ac356..c9844fb8d3c5 100644 --- a/packages/taro-alipay/src/components-react.ts +++ b/packages/taro-alipay/src/components-react.ts @@ -7,3 +7,4 @@ export const ContactButton = 'contact-button' export const ArCamera = 'ar-camera' export const PageContainer = 'page-container' export const ShareElement = 'share-element' +export const RootPortal = 'root-portal' diff --git a/packages/taro-alipay/src/components.ts b/packages/taro-alipay/src/components.ts index fb77fcf6862f..4a9d704dd405 100644 --- a/packages/taro-alipay/src/components.ts +++ b/packages/taro-alipay/src/components.ts @@ -187,4 +187,7 @@ export const components = { duration: '300', 'easing-function': singleQuote('ease-out'), }, + RootPortal: { + enable: 'true' + } } diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/alipay.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/alipay.spec.ts.snap index cdaabece19dc..6483ab2c0a91 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/alipay.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/alipay.spec.ts.snap @@ -756,6 +756,9 @@ require("./taro"); transform: "false", duration: "300", "easing-function": Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])("ease-out") + }, + RootPortal: { + enable: "true" } }; var BUBBLE_EVENTS = new Set([ "touchStart", "touchMove", "touchEnd", "touchCancel", "tap", "longTap" ]); diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/babel.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/babel.spec.ts.snap index 2319373d181a..4e15ccc3f9e8 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/babel.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/babel.spec.ts.snap @@ -484,7 +484,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/common-style.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/common-style.spec.ts.snap index 1d1a568e6922..ab4c59d2707e 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/common-style.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/common-style.spec.ts.snap @@ -487,7 +487,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap index 1dbca9ee1ec6..0eed2666a1c4 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap @@ -484,7 +484,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/config.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/config.spec.ts.snap index 08b3018414ec..f8e73a222ed1 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/config.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/config.spec.ts.snap @@ -484,7 +484,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -2233,7 +2235,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -3936,7 +3940,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap index 604e3fffd550..53f7545cf198 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap @@ -486,7 +486,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -2093,7 +2095,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/custom-tabbar.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/custom-tabbar.spec.ts.snap index f07897e826ee..5ef4800b72bb 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/custom-tabbar.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/custom-tabbar.spec.ts.snap @@ -447,7 +447,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap index 70c137605fbd..d04559fd08a4 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap @@ -484,7 +484,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap index e2806b57a133..f2d07697cd3e 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap @@ -484,7 +484,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -3465,7 +3467,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -6446,7 +6450,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/qq.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/qq.spec.ts.snap index 10c6624c5bdf..c840936c4bbb 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/qq.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/qq.spec.ts.snap @@ -509,7 +509,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -2761,7 +2763,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/react.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/react.spec.ts.snap index d5329f7b1113..fa22d09e3cda 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/react.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/react.spec.ts.snap @@ -484,7 +484,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/sass.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/sass.spec.ts.snap index 34361664806c..83e5f9dc4c04 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/sass.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/sass.spec.ts.snap @@ -484,7 +484,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -2074,7 +2076,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -3664,7 +3668,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -5254,7 +5260,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap index d0bfda4ececa..2b89ac3cde3e 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap @@ -447,7 +447,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap index 81f276e5c346..b7933c029cf9 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap @@ -756,6 +756,9 @@ require("./taro"); transform: "false", duration: "300", "easing-function": Object(_tarojs_shared__WEBPACK_IMPORTED_MODULE_0__["singleQuote"])("ease-out") + }, + RootPortal: { + enable: "true" } }; var BUBBLE_EVENTS = new Set([ "touchStart", "touchMove", "touchEnd", "touchCancel", "tap", "longTap" ]); @@ -1766,7 +1769,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/ts.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/ts.spec.ts.snap index 7d6e56f103ac..a0de0bd8f30d 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/ts.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/ts.spec.ts.snap @@ -484,7 +484,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/vue.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/vue.spec.ts.snap index 87844c97f640..f0e769397945 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/vue.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/vue.spec.ts.snap @@ -480,7 +480,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/vue3.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/vue3.spec.ts.snap index 729dde7bb57b..158fd7b6ba87 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/vue3.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/vue3.spec.ts.snap @@ -482,7 +482,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-mini-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap b/packages/taro-mini-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap index fb76518314c5..2be0088101bb 100644 --- a/packages/taro-mini-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap +++ b/packages/taro-mini-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap @@ -445,7 +445,9 @@ require("./taro"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-weapp/src/components.ts b/packages/taro-weapp/src/components.ts index e2faef78b6bb..38718ccaeab8 100644 --- a/packages/taro-weapp/src/components.ts +++ b/packages/taro-weapp/src/components.ts @@ -402,7 +402,9 @@ export const components = { 'easing-function': "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { 'feed-id': _empty, 'finder-user-name': _empty diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/babel.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/babel.spec.ts.snap index d4175de429ef..49c5d3cf3631 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/babel.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/babel.spec.ts.snap @@ -470,7 +470,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap index 4748d00e2565..5c4a9f72ed07 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/compiler-macros.spec.ts.snap @@ -470,7 +470,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/config.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/config.spec.ts.snap index 456f1c53f47b..b106944d0bf8 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/config.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/config.spec.ts.snap @@ -470,7 +470,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -2297,7 +2299,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -4235,7 +4239,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -6074,7 +6080,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap index 6d50e95ecdc2..070e8a83a50e 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/css-modules.spec.ts.snap @@ -470,7 +470,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -2305,7 +2307,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/framework.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/framework.spec.ts.snap index 104f2c88c69c..b26886af9e25 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/framework.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/framework.spec.ts.snap @@ -467,7 +467,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -2521,7 +2523,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -4938,7 +4942,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -6696,7 +6702,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/mini-platform.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/mini-platform.spec.ts.snap index 3b98622bdb44..2eb51b844e85 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/mini-platform.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/mini-platform.spec.ts.snap @@ -725,6 +725,9 @@ require("./runtime"); transform: "false", duration: "300", "easing-function": singleQuote("ease-out") + }, + RootPortal: { + enable: "true" } }; var BUBBLE_EVENTS = new Set([ "touchStart", "touchMove", "touchEnd", "touchCancel", "tap", "longTap" ]); diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap index a2387854c835..436d56563f97 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/parse-html.spec.ts.snap @@ -467,7 +467,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap index 3fc406e5eaec..18b7747e8c7d 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/prerender.spec.ts.snap @@ -467,7 +467,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -3559,7 +3561,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -6651,7 +6655,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/sass.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/sass.spec.ts.snap index d6485c51f6b1..ac40a36fb9b1 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/sass.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/sass.spec.ts.snap @@ -470,7 +470,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -2258,7 +2260,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -4082,7 +4086,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -5906,7 +5912,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -7730,7 +7738,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap index 87ca57b37ec8..7e73687663bf 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/subpackages.spec.ts.snap @@ -470,7 +470,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap index c079084dbfe1..f202c878def5 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap @@ -467,7 +467,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty @@ -2708,6 +2710,9 @@ require("./runtime"); transform: "false", duration: "300", "easing-function": singleQuote("ease-out") + }, + RootPortal: { + enable: "true" } }; var BUBBLE_EVENTS = new Set([ "touchStart", "touchMove", "touchEnd", "touchCancel", "tap", "longTap" ]); @@ -3797,7 +3802,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/ts.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/ts.spec.ts.snap index 719196c8591b..0ecf37bc239b 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/ts.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/ts.spec.ts.snap @@ -470,7 +470,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty diff --git a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap index 0cafd55da6a9..17c581142ca1 100644 --- a/packages/taro-webpack5-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap +++ b/packages/taro-webpack5-runner/src/__tests__/__snapshots__/wx-hybrid.spec.ts.snap @@ -465,7 +465,9 @@ require("./runtime"); "easing-function": "'ease-out'" }, KeyboardAccessory: {}, - RootPortal: {}, + RootPortal: { + enable: _true + }, ChannelLive: { "feed-id": _empty, "finder-user-name": _empty From 8354b774a8160d2b2006e57bdee59a306a0937b4 Mon Sep 17 00:00:00 2001 From: tangcq-code <57692251+tangcq-code@users.noreply.github.com> Date: Wed, 1 Nov 2023 11:16:21 +0800 Subject: [PATCH 9/9] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dbabel-plugin-trans?= =?UTF-8?q?form-taroapi=E6=8F=92=E4=BB=B6=E5=AF=B9canIUse=E5=85=A5?= =?UTF-8?q?=E5=8F=82scheme=E5=A4=84=E7=90=86=E9=97=AE=E9=A2=98=20(#14717)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 修复babel-plugin-transform-taroapi插件对canIUse入参scheme处理问题 * fix: 增加测试样例 * fix: 修改lint问题 --------- Co-authored-by: Zakary --- .../__mocks__/harmony-definition.json | 2955 +++++++++++++++++ .../__snapshots__/harmony.spec.ts.snap | 103 + .../__tests__/harmony.spec.ts | 220 ++ .../src/index.ts | 4 +- 4 files changed, 3280 insertions(+), 2 deletions(-) create mode 100644 packages/babel-plugin-transform-taroapi/__tests__/__mocks__/harmony-definition.json create mode 100644 packages/babel-plugin-transform-taroapi/__tests__/__snapshots__/harmony.spec.ts.snap create mode 100644 packages/babel-plugin-transform-taroapi/__tests__/harmony.spec.ts diff --git a/packages/babel-plugin-transform-taroapi/__tests__/__mocks__/harmony-definition.json b/packages/babel-plugin-transform-taroapi/__tests__/__mocks__/harmony-definition.json new file mode 100644 index 000000000000..65d2b021cdb3 --- /dev/null +++ b/packages/babel-plugin-transform-taroapi/__tests__/__mocks__/harmony-definition.json @@ -0,0 +1,2955 @@ +{ + "apis": { + "Behavior": "*", + "getEnv": "*", + "ENV_TYPE": "*", + "Link": "*", + "interceptors": "*", + "interceptorify": "*", + "Current": "*", + "options": "*", + "eventCenter": "*", + "Events": "*", + "preload": "*", + "taro": "*", + "requirePlugin": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "initPxTransform": { + "object": "{ designWidth?: number; deviceRatio?: TDeviceRatio; baseFontSize?: number; unitPrecision?: number; targetUnit?: string; }", + "success": "void" + }, + "pxTransform": { + "object": "number", + "success": "void", + "return": "*" + }, + "canIUseWebp": { + "object": "void", + "success": "void", + "return": "boolean" + }, + "getAppInfo": { + "object": "void", + "success": "void", + "return": "{ platform: string; taroVersion: string; designWidth: any; }" + }, + "createRewardedVideoAd": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "createInterstitialAd": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "stopFaceDetect": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "initFaceDetect": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "faceDetect": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getInferenceEnvInfo": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "createInferenceSession": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "isVKSupport": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "createVKSession": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getOpenUserInfo": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "tradePay": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "env": {}, + "arrayBufferToBase64": "*", + "base64ToArrayBuffer": "*", + "getUserCryptoManager": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "setEnableDebug": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getRealtimeLogManager": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getLogManager": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "reportPerformance": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getPerformance": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "preloadWebview": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "preloadSkylineView": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "preloadAssets": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "openSystemBluetoothSetting": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "openAppAuthorizeSetting": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getWindowInfo": { + "object": "void", + "success": "void", + "return": "Result" + }, + "getSystemSetting": { + "object": "void", + "success": "void", + "return": "Result" + }, + "getDeviceInfo": { + "object": "void", + "success": "void", + "return": "Result" + }, + "getAppBaseInfo": { + "object": "void", + "success": "void", + "return": "Result" + }, + "getAppAuthorizeSetting": { + "object": "void", + "success": "void", + "return": "Result" + }, + "getSystemInfoSync": { + "object": "void", + "success": "void", + "return": "Result" + }, + "getSystemInfoAsync": { + "object": "Option", + "success": "void", + "return": "Promise" + }, + "getSystemInfo": { + "object": "Option", + "success": "void", + "return": "Promise" + }, + "getSkylineInfoSync": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getSkylineInfo": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getRendererUserAgent": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "updateWeChatApp": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getUpdateManager": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onUnhandledRejection": { + "callback": "Result" + }, + "onThemeChange": { + "callback": "Result" + }, + "onPageNotFound": { + "callback": "Result" + }, + "onLazyLoadError": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onError": { + "callback": "string | ErrorEvent | Error" + }, + "onAudioInterruptionEnd": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onAudioInterruptionBegin": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onAppShow": { + "callback": "CallbackResult" + }, + "onAppHide": { + "callback": "CallbackResult" + }, + "offUnhandledRejection": { + "callback": "Result" + }, + "offThemeChange": { + "callback": "Result" + }, + "offPageNotFound": { + "callback": "Result" + }, + "offLazyLoadError": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offError": { + "callback": "string | ErrorEvent | Error" + }, + "offAudioInterruptionEnd": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offAudioInterruptionBegin": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offAppShow": { + "callback": "CallbackResult" + }, + "offAppHide": { + "callback": "CallbackResult" + }, + "getLaunchOptionsSync": { + "object": "void", + "success": "void", + "return": "LaunchOptions" + }, + "getEnterOptionsSync": { + "object": "void", + "success": "void", + "return": "EnterOptions" + }, + "createOffscreenCanvas": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "createCanvasContext": { + "object": "string", + "success": "void", + "return": "CanvasContext" + }, + "canvasToTempFilePath": { + "object": "Option", + "success": "void", + "return": "Promise" + }, + "canvasPutImageData": { + "object": "Option", + "success": "void", + "return": "Promise" + }, + "canvasGetImageData": { + "object": "Option", + "success": "void", + "return": "Promise" + }, + "reportMonitor": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "reportAnalytics": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "reportEvent": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getExptInfoSync": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "stopAccelerometer": { + "object": "Option", + "success": "void", + "return": "Promise" + }, + "startAccelerometer": { + "object": "Option", + "success": "void", + "return": "Promise" + }, + "onAccelerometerChange": { + "callback": "Result" + }, + "offAccelerometerChange": { + "callback": "Result" + }, + "checkIsOpenAccessibility": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getBatteryInfoSync": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getBatteryInfo": { + "object": "Option", + "success": "void", + "return": "Promise" + }, + "stopBluetoothDevicesDiscovery": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "startBluetoothDevicesDiscovery": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "openBluetoothAdapter": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onBluetoothDeviceFound": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onBluetoothAdapterStateChange": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offBluetoothDeviceFound": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offBluetoothAdapterStateChange": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "makeBluetoothPair": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "isBluetoothDevicePaired": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getConnectedBluetoothDevices": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getBluetoothDevices": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getBluetoothAdapterState": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "closeBluetoothAdapter": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "writeBLECharacteristicValue": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "setBLEMTU": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "readBLECharacteristicValue": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onBLEMTUChange": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onBLEConnectionStateChange": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onBLECharacteristicValueChange": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offBLEMTUChange": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offBLEConnectionStateChange": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offBLECharacteristicValueChange": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "notifyBLECharacteristicValueChange": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getBLEMTU": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getBLEDeviceServices": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getBLEDeviceRSSI": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getBLEDeviceCharacteristics": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "createBLEConnection": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "closeBLEConnection": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onBLEPeripheralConnectionStateChanged": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offBLEPeripheralConnectionStateChanged": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "createBLEPeripheralServer": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "addPhoneRepeatCalendar": { + "object": "Option", + "success": "void", + "return": "Promise" + }, + "addPhoneCalendar": { + "object": "Option", + "success": "void", + "return": "Promise" + }, + "setClipboardData": { + "object": "Option", + "success": "void", + "return": "Promise" + }, + "getClipboardData": { + "object": "Option", + "success": "void", + "return": "Promise" + }, + "stopCompass": { + "object": "Option", + "success": "void", + "return": "Promise" + }, + "startCompass": { + "object": "Option", + "success": "void", + "return": "Promise" + }, + "onCompassChange": { + "callback": "OnCompassChangeCallbackResult" + }, + "offCompassChange": { + "callback": "OnCompassChangeCallbackResult" + }, + "chooseContact": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "addPhoneContact": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getRandomValues": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "stopGyroscope": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "startGyroscope": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onGyroscopeChange": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offGyroscopeChange": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "stopBeaconDiscovery": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "startBeaconDiscovery": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onBeaconUpdate": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onBeaconServiceChange": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offBeaconUpdate": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offBeaconServiceChange": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getBeacons": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onKeyboardHeightChange": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offKeyboardHeightChange": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "hideKeyboard": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getSelectedTextRange": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onMemoryWarning": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offMemoryWarning": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "stopDeviceMotionListening": { + "object": "Option", + "success": "void" + }, + "startDeviceMotionListening": { + "object": "Option", + "success": "void" + }, + "onDeviceMotionChange": { + "callback": "CallbackResult" + }, + "offDeviceMotionChange": { + "callback": "CallbackResult" + }, + "getNetworkType": { + "object": "Option", + "success": "void", + "return": "Promise" + }, + "onNetworkWeakChange": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onNetworkStatusChange": { + "callback": "CallbackResult" + }, + "offNetworkWeakChange": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offNetworkStatusChange": { + "callback": "CallbackResult" + }, + "getLocalIPAddress": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "stopHCE": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "startHCE": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "sendHCEMessage": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onHCEMessage": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offHCEMessage": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getNFCAdapter": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getHCEState": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "makePhoneCall": { + "object": "Option", + "success": "void", + "return": "Promise" + }, + "scanCode": { + "object": "Partial<{ needResult: number; }>", + "success": "void", + "return": "Promise" + }, + "setVisualEffectOnCapture": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "setScreenBrightness": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "setKeepScreenOn": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onUserCaptureScreen": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offUserCaptureScreen": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getScreenBrightness": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onScreenRecordingStateChanged": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offScreenRecordingStateChanged": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getScreenRecordingState": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "sendSms": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "vibrateShort": { + "object": "Option", + "success": "void", + "return": "Promise" + }, + "vibrateLong": { + "object": "Option", + "success": "void", + "return": "Promise" + }, + "stopWifi": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "startWifi": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "setWifiList": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onWifiConnectedWithPartialInfo": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onWifiConnected": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onGetWifiList": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offWifiConnectedWithPartialInfo": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offWifiConnected": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offGetWifiList": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getWifiList": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getConnectedWifi": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "connectWifi": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getExtConfigSync": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getExtConfig": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "saveFileToDisk": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "saveFile": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "removeSavedFile": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "openDocument": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getSavedFileList": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getSavedFileInfo": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getFileSystemManager": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getFileInfo": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getApp": { + "object": "*", + "success": "void", + "return": "Instance" + }, + "getCurrentInstance": { + "object": "void", + "success": "void", + "return": "Current" + }, + "stopLocationUpdate": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "startLocationUpdateBackground": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "startLocationUpdate": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "openLocation": { + "object": "Partial<{ scale: number; }>", + "success": "void", + "return": "Promise" + }, + "onLocationChangeError": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "onLocationChange": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offLocationChangeError": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "offLocationChange": { + "object": "*", + "success": "void", + "return": "Promise & Record & CallbackResult>" + }, + "getLocation": { + "object": "Partial