@tarojs/components 3.5.11 → 3.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +36 -0
- package/dist/collection/components/swiper/swiper-item.js +37 -2
- package/dist/esm/taro-swiper-core_2.entry.js +36 -0
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/taro-components/p-0380841f.system.js +1 -1
- package/dist/taro-components/{p-0152fd40.system.entry.js → p-d8a10125.system.entry.js} +1 -1
- package/dist/taro-components/{p-c3bcd3b7.entry.js → p-eeb6de57.entry.js} +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/types/components/swiper/swiper-item.d.ts +2 -0
- package/package.json +4 -4
- package/types/ChannelLive.d.ts +22 -0
- package/types/Form.d.ts +6 -0
- package/types/Input.d.ts +1 -0
- package/types/LivePusher.d.ts +15 -0
- package/types/ShareElement.d.ts +0 -5
- package/types/Textarea.d.ts +1 -0
- package/types/Video.d.ts +6 -0
- package/types/index.d.ts +1 -0
- package/virtual-list/index.d.ts +0 -1
- package/virtual-list/react/index.d.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-059912fd.js";(()=>{const o=import.meta.url,r={};return""!==o&&(r.resourcesUrl=new URL(".",o).href),e(r)})().then((e=>o([["p-92699438",[[4,"taro-checkbox-core",{name:[1],value:[1],color:[1],id:[1025],checked:[4],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-checkbox-group-core",{name:[8]},[[0,"checkboxchange","function"]]]]],["p-fec6ac36",[[4,"taro-radio-core",{name:[1],value:[1],id:[1025],checked:[1028],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-radio-group-core",{name:[8]},[[0,"radiochange","function"]]]]],["p-
|
|
1
|
+
import{p as e,b as o}from"./p-059912fd.js";(()=>{const o=import.meta.url,r={};return""!==o&&(r.resourcesUrl=new URL(".",o).href),e(r)})().then((e=>o([["p-92699438",[[4,"taro-checkbox-core",{name:[1],value:[1],color:[1],id:[1025],checked:[4],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-checkbox-group-core",{name:[8]},[[0,"checkboxchange","function"]]]]],["p-fec6ac36",[[4,"taro-radio-core",{name:[1],value:[1],id:[1025],checked:[1028],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-radio-group-core",{name:[8]},[[0,"radiochange","function"]]]]],["p-eeb6de57",[[4,"taro-swiper-core",{indicatorDots:[4,"indicator-dots"],indicatorColor:[1,"indicator-color"],indicatorActiveColor:[1,"indicator-active-color"],autoplay:[4],current:[2],interval:[2],duration:[2],circular:[4],vertical:[4],previousMargin:[1,"previous-margin"],nextMargin:[1,"next-margin"],displayMultipleItems:[2,"display-multiple-items"],full:[4],zoom:[4],swiperWrapper:[32],swiper:[32],isWillLoadCalled:[32],observer:[32],observerFirst:[32],observerLast:[32]}],[0,"taro-swiper-item-core",{itemId:[1,"item-id"]}]]],["p-2ec47545",[[0,"taro-ad-core"]]],["p-7d329ab0",[[0,"taro-ad-custom-core"]]],["p-8c8be53b",[[0,"taro-audio-core",{src:[1],controls:[4],autoplay:[4],loop:[4],muted:[4],nativeProps:[16]}]]],["p-72f858e4",[[0,"taro-block-core"]]],["p-3549b6d2",[[4,"taro-button-core",{disabled:[4],hoverClass:[1,"hover-class"],type:[1],hoverStartTime:[2,"hover-start-time"],hoverStayTime:[2,"hover-stay-time"],size:[1],plain:[4],loading:[4],formType:[1,"form-type"],hover:[32],touch:[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-9234cc1d",[[0,"taro-camera-core"]]],["p-ff84986d",[[0,"taro-canvas-core",{canvasId:[1,"canvas-id"],nativeProps:[16]}]]],["p-ffefd74f",[[0,"taro-cover-image-core",{src:[1],nativeProps:[16]}]]],["p-362998cf",[[4,"taro-cover-view-core",{animation:[1],hoverClass:[1,"hover-class"],hoverStartTime:[2,"hover-start-time"],hoverStayTime:[2,"hover-stay-time"],hover:[32],touch:[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-8aea3de3",[[0,"taro-custom-wrapper-core"]]],["p-d5f3080c",[[0,"taro-editor-core"]]],["p-ab1256fe",[[4,"taro-form-core",{slotParent:[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-cf048af9",[[0,"taro-functional-page-navigator-core"]]],["p-b2800ccd",[[0,"taro-icon-core",{type:[1],size:[8],color:[1]}]]],["p-888fac99",[[0,"taro-image-core",{src:[1],mode:[1],lazyLoad:[4,"lazy-load"],nativeProps:[16],aspectFillMode:[32]}]]],["p-56c86512",[[0,"taro-input-core",{value:[1],type:[1],password:[4],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],confirmType:[1,"confirm-type"],name:[1],nativeProps:[16]}]]],["p-afbcd093",[[0,"taro-keyboard-accessory-core"]]],["p-b7639674",[[4,"taro-label-core",{for:[1]}]]],["p-55266a1f",[[0,"taro-live-player-core"]]],["p-028e2728",[[0,"taro-live-pusher-core"]]],["p-6aa557f0",[[0,"taro-map-core"]]],["p-7374537f",[[0,"taro-match-media-core"]]],["p-42630f45",[[0,"taro-movable-area-core",{scaleArea:[4,"scale-area"]}]]],["p-4262d1b6",[[0,"taro-movable-view-core",{x:[8],y:[8],direction:[1],outOfBounds:[4,"out-of-bounds"],inertia:[4],friction:[2],damping:[2],disabled:[4],scale:[4],scaleMin:[2,"scale-min"],scaleMax:[2,"scale-max"],scaleValue:[2,"scale-value"],animation:[4],setParent:[64],endScale:[64],setScale:[64]}]]],["p-57a2a441",[[0,"taro-navigation-bar-core"]]],["p-3c6090fd",[[0,"taro-navigator-core",{hoverClass:[1,"hover-class"],url:[1],openType:[1,"open-type"],isHover:[4,"is-hover"],delta:[2]},[[0,"click","onClick"]]]]],["p-62fc514e",[[0,"taro-official-account-core"]]],["p-5a374cb9",[[0,"taro-open-data-core"]]],["p-b1ae9401",[[0,"taro-page-container-core"]]],["p-4d826fb7",[[0,"taro-page-meta-core"]]],["p-9a0e70b1",[[0,"taro-picker-view-column-core",{col:[1],initialPosition:[1,"initial-position"],paddingVertical:[2,"padding-vertical"],isInit:[32],isMove:[32]},[[1,"scroll","onScroll"],[1,"mouseup","onMouseEnd"],[1,"mouseout","onMouseEnd"],[1,"mouseleave","onMouseEnd"],[1,"touchend","onTouchEnd"]]]]],["p-9b39a940",[[4,"taro-picker-view-core",{indicatorStyle:[1,"indicator-style"],indicatorClass:[1,"indicator-class"],value:[16],maskStyle:[1,"mask-style"],maskClass:[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["p-b3b677fc",[[0,"taro-progress-core",{percent:[2],showInfo:[4,"show-info"],borderRadius:[8,"border-radius"],fontSize:[8,"font-size"],strokeWidth:[8,"stroke-width"],activeColor:[1,"active-color"],backgroundColor:[1,"background-color"],active:[4]}]]],["p-eec00033",[[4,"taro-pull-to-refresh",{prefixCls:[1,"prefix-cls"],distanceToRefresh:[2,"distance-to-refresh"],damping:[2],indicator:[16],currSt:[32],dragOnEdge:[32]}]]],["p-7407013d",[[0,"taro-rich-text-core",{nodes:[1]}]]],["p-b60820b4",[[0,"taro-root-portal-core"]]],["p-ef006b23",[[4,"taro-scroll-view-core",{scrollX:[4,"scroll-x"],scrollY:[4,"scroll-y"],upperThreshold:[8,"upper-threshold"],lowerThreshold:[8,"lower-threshold"],mpScrollTop:[8,"scroll-top"],mpScrollLeft:[8,"scroll-left"],mpScrollIntoView:[1,"scroll-into-view"],scrollWithAnimation:[4,"scroll-with-animation"]}]]],["p-4cf436f9",[[0,"taro-share-element-core"]]],["p-886571e5",[[0,"taro-slider-core",{min:[2],max:[2],step:[2],disabled:[4],value:[1026],activeColor:[1,"active-color"],backgroundColor:[1,"background-color"],blockSize:[2,"block-size"],blockColor:[1,"block-color"],showValue:[4,"show-value"],name:[1],val:[32],totalWidth:[32],touching:[32],ogX:[32],touchId:[32],percent:[32],ogPercent:[32],isWillLoadCalled:[32]}]]],["p-59d93770",[[0,"taro-slot-core"]]],["p-4ada10aa",[[0,"taro-switch-core",{type:[1],checked:[4],color:[1],name:[1],disabled:[4],nativeProps:[16],isChecked:[32],isWillLoadCalled:[32]}]]],["p-5733124c",[[0,"taro-tabbar",{conf:[16],list:[32],borderStyle:[32],backgroundColor:[32],color:[32],selectedColor:[32],selectedIndex:[32],status:[32]}]]],["p-dff55efd",[[4,"taro-text-core",{selectable:[4]}]]],["p-bd706d39",[[0,"taro-textarea-core",{value:[1],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],autoHeight:[4,"auto-height"],name:[1],nativeProps:[16],line:[32]}]]],["p-8b1dfd32",[[4,"taro-view-core",{animation:[1],hoverClass:[1,"hover-class"],hoverStartTime:[2,"hover-start-time"],hoverStayTime:[2,"hover-stay-time"],hover:[32],touch:[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-06178a0c",[[0,"taro-voip-room-core"]]],["p-25df0ce9",[[0,"taro-web-view-core",{src:[1]}]]],["p-fa2a9bab",[[4,"taro-picker-core",{mode:[1],disabled:[4],range:[16],rangeKey:[1,"range-key"],value:[8],start:[1],end:[1],fields:[1],name:[1],pickerValue:[32],height:[32],hidden:[32],fadeOut:[32],isWillLoadCalled:[32]}],[0,"taro-picker-group",{mode:[1],range:[16],rangeKey:[1,"range-key"],height:[2],columnId:[1,"column-id"],updateHeight:[16],onColumnChange:[16],updateDay:[16],startY:[32],preY:[32],hadMove:[32],touchEnd:[32],isMove:[32]},[[1,"mousedown","onMouseDown"],[1,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-99d17a1a",[[0,"taro-video-core",{src:[1],duration:[2],controls:[4],autoplay:[4],loop:[4],muted:[4],initialTime:[2,"initial-time"],poster:[1],objectFit:[1,"object-fit"],showProgress:[4,"show-progress"],showFullscreenBtn:[4,"show-fullscreen-btn"],showPlayBtn:[4,"show-play-btn"],showCenterPlayBtn:[4,"show-center-play-btn"],showMuteBtn:[4,"show-mute-btn"],danmuList:[16],danmuBtn:[4,"danmu-btn"],enableDanmu:[4,"enable-danmu"],enablePlayGesture:[4,"enable-play-gesture"],enableProgressGesture:[4,"enable-progress-gesture"],vslideGesture:[4,"vslide-gesture"],vslideGestureInFullscreen:[4,"vslide-gesture-in-fullscreen"],nativeProps:[16],_duration:[32],_enableDanmu:[32],isPlaying:[32],isFirst:[32],isFullScreen:[32],fullScreenTimestamp:[32],isMute:[32],play:[64],pause:[64],stop:[64],seek:[64],requestFullScreen:[64],exitFullScreen:[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{controls:[4],currentTime:[2,"current-time"],duration:[2],isPlaying:[4,"is-playing"],pauseFunc:[16],playFunc:[16],seekFunc:[16],showPlayBtn:[4,"show-play-btn"],showProgress:[4,"show-progress"],setProgressBall:[64],toggleVisibility:[64],getIsDraggingProgressBall:[64],setCurrentTime:[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{enable:[4],danmuList:[32],sendDanmu:[64],tick:[64]}]]]],e)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.12",
|
|
4
4
|
"description": "Taro 组件库",
|
|
5
5
|
"browser": "dist/index.js",
|
|
6
6
|
"main:h5": "dist/index.js",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"resolve-pathname": "^3.0.0",
|
|
37
37
|
"swiper": "6.8.0",
|
|
38
38
|
"weui": "^1.1.2",
|
|
39
|
-
"@tarojs/router": "3.5.
|
|
40
|
-
"@tarojs/taro": "3.5.
|
|
39
|
+
"@tarojs/router": "3.5.12",
|
|
40
|
+
"@tarojs/taro": "3.5.12"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@babel/generator": "^7.14.5",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"jquery": "^3.4.1",
|
|
54
54
|
"karmatic": "^2.1.0",
|
|
55
55
|
"lodash": "^4.17.21",
|
|
56
|
-
"miniapp-types": "1.
|
|
56
|
+
"miniapp-types": "1.2.0",
|
|
57
57
|
"simulant": "^0.2.2",
|
|
58
58
|
"style-loader": "1.3.0",
|
|
59
59
|
"ts-node": "^10.9.1",
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
import { StandardProps } from './common'
|
|
3
|
+
|
|
4
|
+
interface ChannelLiveProps extends StandardProps {
|
|
5
|
+
/** 视频 feedId
|
|
6
|
+
* @supported weapp
|
|
7
|
+
*/
|
|
8
|
+
feedId: string
|
|
9
|
+
|
|
10
|
+
/** 视频号 id,以“sph”开头的id,可在视频号助手获取。视频号必须与当前小程序相同主体。
|
|
11
|
+
* @supported weapp
|
|
12
|
+
*/
|
|
13
|
+
finderUserName: string
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 小程序内嵌视频号直播组件,展示视频号直播状态和封面,并无弹窗跳转至视频号。注意:使用该组件打开的视频号视频需要与小程序的主体一致。
|
|
18
|
+
* @supported weapp
|
|
19
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/channel-live.html
|
|
20
|
+
*/
|
|
21
|
+
declare const ChannelLive: ComponentType<ChannelLiveProps>
|
|
22
|
+
export { ChannelLive, ChannelLiveProps }
|
package/types/Form.d.ts
CHANGED
|
@@ -36,6 +36,12 @@ interface FormProps extends StandardProps {
|
|
|
36
36
|
*/
|
|
37
37
|
subscribeId?: string
|
|
38
38
|
|
|
39
|
+
/** 是否开启免授权订阅。report-type 为 subscribe,template-id 与 subscribe-id 必填时设置该属性生效。
|
|
40
|
+
* 注意:只有白名单内小程序可使用此功能。
|
|
41
|
+
* @supported swan
|
|
42
|
+
*/
|
|
43
|
+
skipSubscribeAuthorize?: boolean
|
|
44
|
+
|
|
39
45
|
/** 携带 form 中的数据触发 submit 事件
|
|
40
46
|
* @supported weapp, alipay, swan, tt, qq, jd, rn
|
|
41
47
|
*/
|
package/types/Input.d.ts
CHANGED
package/types/LivePusher.d.ts
CHANGED
|
@@ -23,6 +23,12 @@ interface LivePusherProps extends StandardProps {
|
|
|
23
23
|
*/
|
|
24
24
|
autopush?: boolean
|
|
25
25
|
|
|
26
|
+
/** 自定义渲染,允许开发者自行处理所采集的视频帧
|
|
27
|
+
* @default false
|
|
28
|
+
* @supported weapp
|
|
29
|
+
*/
|
|
30
|
+
enableVideoCustomRender?: boolean
|
|
31
|
+
|
|
26
32
|
/** 是否静音。即将废弃,可用 enable-mic 替代
|
|
27
33
|
* @default false
|
|
28
34
|
* @deprecated
|
|
@@ -191,6 +197,12 @@ interface LivePusherProps extends StandardProps {
|
|
|
191
197
|
*/
|
|
192
198
|
pictureInPictureMode?: string | any[]
|
|
193
199
|
|
|
200
|
+
/** 自定义渲染,允许开发者自行处理所采集的视频帧,详见LivePusherContext
|
|
201
|
+
* @supported weapp
|
|
202
|
+
* @default false
|
|
203
|
+
*/
|
|
204
|
+
enableVideoCustomRender?: boolean
|
|
205
|
+
|
|
194
206
|
/** 状态变化事件,detail = {code}
|
|
195
207
|
* @supported weapp, qq
|
|
196
208
|
*/
|
|
@@ -287,6 +299,9 @@ declare namespace LivePusherProps {
|
|
|
287
299
|
|
|
288
300
|
/** audioVolumeType 的合法值 */
|
|
289
301
|
interface AudioVolumeType {
|
|
302
|
+
/** 自动 */
|
|
303
|
+
auto
|
|
304
|
+
|
|
290
305
|
/** 媒体音量 */
|
|
291
306
|
media
|
|
292
307
|
|
package/types/ShareElement.d.ts
CHANGED
package/types/Textarea.d.ts
CHANGED
package/types/Video.d.ts
CHANGED
|
@@ -285,6 +285,7 @@ interface VideoProps extends StandardProps {
|
|
|
285
285
|
/** 使用原生
|
|
286
286
|
* @default true
|
|
287
287
|
* @supported alipay
|
|
288
|
+
* @ignore
|
|
288
289
|
*/
|
|
289
290
|
enableNative?: boolean
|
|
290
291
|
|
|
@@ -352,6 +353,11 @@ interface VideoProps extends StandardProps {
|
|
|
352
353
|
*/
|
|
353
354
|
preferredPeakBitRate?: number
|
|
354
355
|
|
|
356
|
+
/** 是否为直播源
|
|
357
|
+
* @supported weapp
|
|
358
|
+
*/
|
|
359
|
+
isLive?: boolean
|
|
360
|
+
|
|
355
361
|
/** 当开始/继续播放时触发 play 事件
|
|
356
362
|
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn
|
|
357
363
|
*/
|
package/types/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export { NavigationBar } from './NavigationBar'
|
|
|
51
51
|
/** 媒体组件 */
|
|
52
52
|
export { Audio } from './Audio'
|
|
53
53
|
export { Camera } from './Camera'
|
|
54
|
+
export { ChannelLive } from './ChannelLive'
|
|
54
55
|
export { Image } from './Image'
|
|
55
56
|
export { LivePlayer } from './LivePlayer'
|
|
56
57
|
export { LivePusher } from './LivePusher'
|
package/virtual-list/index.d.ts
CHANGED