@tarojs/components 3.5.5 → 3.5.6

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.
Files changed (73) hide show
  1. package/dist/cjs/taro-input-core.cjs.entry.js +24 -3
  2. package/dist/cjs/taro-video-control_3.cjs.entry.js +21 -3
  3. package/dist/collection/components/input/input.js +24 -3
  4. package/dist/collection/components/video/video.js +23 -3
  5. package/dist/collection/utils/json-schema-to-types.js +224 -0
  6. package/dist/esm/taro-input-core.entry.js +24 -3
  7. package/dist/esm/taro-video-control_3.entry.js +21 -3
  8. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  9. package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
  10. package/dist/taro-components/p-0380841f.system.js +1 -1
  11. package/dist/taro-components/p-232ebfae.system.entry.js +1 -0
  12. package/dist/taro-components/{p-7e8943d8.entry.js → p-3744e978.entry.js} +1 -1
  13. package/dist/taro-components/p-56c86512.entry.js +1 -0
  14. package/dist/taro-components/{p-ed8c1bb8.system.entry.js → p-f81a74bb.system.entry.js} +1 -1
  15. package/dist/taro-components/taro-components.esm.js +1 -1
  16. package/dist/types/components/input/input.d.ts +1 -0
  17. package/dist/types/utils/json-schema-to-types.d.ts +25 -0
  18. package/dist-h5/react/components/index.js +5 -5
  19. package/package.json +9 -5
  20. package/types/Ad.d.ts +99 -9
  21. package/types/AdCustom.d.ts +1 -3
  22. package/types/Audio.d.ts +16 -16
  23. package/types/Block.d.ts +0 -2
  24. package/types/Button.d.ts +187 -47
  25. package/types/Camera.d.ts +20 -18
  26. package/types/Canvas.d.ts +52 -13
  27. package/types/Checkbox.d.ts +13 -10
  28. package/types/CheckboxGroup.d.ts +5 -7
  29. package/types/CoverImage.d.ts +44 -5
  30. package/types/CoverView.d.ts +34 -10
  31. package/types/Editor.d.ts +4 -6
  32. package/types/Form.d.ts +23 -7
  33. package/types/FunctionalPageNavigator.d.ts +5 -3
  34. package/types/Icon.d.ts +19 -7
  35. package/types/Image.d.ts +71 -14
  36. package/types/Input.d.ts +44 -33
  37. package/types/Label.d.ts +0 -3
  38. package/types/LivePlayer.d.ts +80 -24
  39. package/types/LivePusher.d.ts +78 -37
  40. package/types/Map.d.ts +208 -66
  41. package/types/MatchMedia.d.ts +8 -10
  42. package/types/MovableArea.d.ts +1 -3
  43. package/types/MovableView.d.ts +88 -30
  44. package/types/NavigationBar.d.ts +0 -2
  45. package/types/Navigator.d.ts +35 -18
  46. package/types/OfficialAccount.d.ts +10 -3
  47. package/types/OpenData.d.ts +35 -6
  48. package/types/PageContainer.d.ts +13 -10
  49. package/types/PageMeta.d.ts +27 -13
  50. package/types/Picker.d.ts +50 -14
  51. package/types/PickerView.d.ts +31 -13
  52. package/types/PickerViewColumn.d.ts +0 -2
  53. package/types/Progress.d.ts +17 -14
  54. package/types/Radio.d.ts +16 -6
  55. package/types/RadioGroup.d.ts +6 -4
  56. package/types/RichText.d.ts +53 -5
  57. package/types/RootPortal.d.ts +2 -1
  58. package/types/ScrollView.d.ts +82 -19
  59. package/types/ShareElement.d.ts +5 -7
  60. package/types/Slider.d.ts +41 -17
  61. package/types/Swiper.d.ts +100 -22
  62. package/types/SwiperItem.d.ts +6 -3
  63. package/types/Switch.d.ts +22 -8
  64. package/types/Text.d.ts +10 -6
  65. package/types/Textarea.d.ts +61 -28
  66. package/types/Video.d.ts +331 -50
  67. package/types/View.d.ts +122 -9
  68. package/types/VoipRoom.d.ts +6 -9
  69. package/types/WebView.d.ts +9 -7
  70. package/types/common.d.ts +1 -1
  71. package/types/index.vue3.d.ts +261 -138
  72. package/dist/taro-components/p-1b356f4d.entry.js +0 -1
  73. package/dist/taro-components/p-a39276ff.system.entry.js +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-63a0c6b0",[[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],swiperWrapper:[32],swiper:[32],isWillLoadCalled:[32],observer:[32],observerFirst:[32],observerLast:[32]}],[0,"taro-swiper-item-core",{itemId:[1,"item-id"]}]]],["p-7ab91097",[[0,"taro-ad-core"]]],["p-9fcb40a3",[[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-7f93fa08",[[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]},[[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-4f805045",[[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-db1f2db7",[[0,"taro-editor-core"]]],["p-ab1256fe",[[4,"taro-form-core",{slotParent:[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-95a36917",[[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-1b356f4d",[[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-443fb8b0",[[0,"taro-keyboard-accessory-core"]]],["p-b7639674",[[4,"taro-label-core",{for:[1]}]]],["p-c0c8b2be",[[0,"taro-live-player-core"]]],["p-e3f39099",[[0,"taro-live-pusher-core"]]],["p-3c7cdf6f",[[0,"taro-map-core"]]],["p-22e33350",[[0,"taro-match-media-core"]]],["p-f8b9c4b0",[[0,"taro-movable-area-core",{scaleArea:[4,"scale-area"]}]]],["p-1e530acd",[[4,"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-7e23b551",[[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-90a6c15a",[[0,"taro-official-account-core"]]],["p-c8da5c10",[[0,"taro-open-data-core"]]],["p-77ad7941",[[0,"taro-page-container-core"]]],["p-6da73376",[[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-410d449f",[[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-7325d380",[[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-7f0a12a9",[[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-5a2305e7",[[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-49b64020",[[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-7e8943d8",[[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)));
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-63a0c6b0",[[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],swiperWrapper:[32],swiper:[32],isWillLoadCalled:[32],observer:[32],observerFirst:[32],observerLast:[32]}],[0,"taro-swiper-item-core",{itemId:[1,"item-id"]}]]],["p-7ab91097",[[0,"taro-ad-core"]]],["p-9fcb40a3",[[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-7f93fa08",[[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]},[[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-4f805045",[[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-db1f2db7",[[0,"taro-editor-core"]]],["p-ab1256fe",[[4,"taro-form-core",{slotParent:[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-95a36917",[[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-443fb8b0",[[0,"taro-keyboard-accessory-core"]]],["p-b7639674",[[4,"taro-label-core",{for:[1]}]]],["p-c0c8b2be",[[0,"taro-live-player-core"]]],["p-e3f39099",[[0,"taro-live-pusher-core"]]],["p-3c7cdf6f",[[0,"taro-map-core"]]],["p-22e33350",[[0,"taro-match-media-core"]]],["p-f8b9c4b0",[[0,"taro-movable-area-core",{scaleArea:[4,"scale-area"]}]]],["p-1e530acd",[[4,"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-7e23b551",[[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-90a6c15a",[[0,"taro-official-account-core"]]],["p-c8da5c10",[[0,"taro-open-data-core"]]],["p-77ad7941",[[0,"taro-page-container-core"]]],["p-6da73376",[[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-410d449f",[[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-7325d380",[[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-7f0a12a9",[[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-5a2305e7",[[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-49b64020",[[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-3744e978",[[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)));
@@ -35,5 +35,6 @@ export declare class Input implements ComponentInterface {
35
35
  handleChange: (e: TaroEvent<HTMLInputElement>) => void;
36
36
  handleKeyDown: (e: TaroEvent<HTMLInputElement> & KeyboardEvent) => void;
37
37
  handleComposition: (e: any) => void;
38
+ handleBeforeinput: (e: any) => void;
38
39
  render(): any;
39
40
  }
@@ -0,0 +1,25 @@
1
+ declare const MINI_APP_TYPES: readonly ["weapp", "alipay", "swan", "tt", "qq", "jd"];
2
+ declare class GenerateTypes {
3
+ jsonSchemas: any;
4
+ componentName: any;
5
+ constructor(componentName: any);
6
+ getMissingProps(props: {
7
+ [key in typeof MINI_APP_TYPES[number]]?: string[];
8
+ }): {};
9
+ convertProps(props: any): {};
10
+ updateComment(ast: any): {
11
+ existProps: {
12
+ weapp?: string[] | undefined;
13
+ alipay?: string[] | undefined;
14
+ swan?: string[] | undefined;
15
+ tt?: string[] | undefined;
16
+ qq?: string[] | undefined;
17
+ jd?: string[] | undefined;
18
+ };
19
+ ast: any;
20
+ };
21
+ addProps(ast: any, props: any): void;
22
+ formatJSDoc(ast: any): void;
23
+ exec(): void;
24
+ }
25
+ export default GenerateTypes;
@@ -37,12 +37,14 @@ export var Switch = reactifyWc('taro-switch-core');
37
37
  export var Textarea = reactifyWc('taro-textarea-core'); // 导航
38
38
 
39
39
  export var FunctionalPageNavigator = reactifyWc('taro-functional-page-navigator-core');
40
- export var Navigator = reactifyWc('taro-navigator-core'); // 媒体组件
40
+ export var Navigator = reactifyWc('taro-navigator-core');
41
+ export var NavigationBar = reactifyWc('taro-navigation-bar-core'); // 媒体组件
41
42
 
42
43
  export var Audio = reactifyWc('taro-audio-core');
43
44
  export var Camera = reactifyWc('taro-camera-core');
44
45
  export var Image = reactifyWc('taro-image-core');
45
46
  export var LivePlayer = reactifyWc('taro-live-player-core');
47
+ export var LivePusher = reactifyWc('taro-live-pusher-core');
46
48
  export var Video = reactifyWc('taro-video-core');
47
49
  export var VoipRoom = reactifyWc('taro-voip-room-core'); // 地图
48
50
 
@@ -50,13 +52,11 @@ export var Map = reactifyWc('taro-map-core'); // 画布
50
52
 
51
53
  export var Canvas = reactifyWc('taro-canvas-core'); // 开放能力
52
54
 
53
- export var WebView = reactifyWc('taro-web-view-core');
54
55
  export var Ad = reactifyWc('taro-ad-core');
55
56
  export var AdCustom = reactifyWc('taro-ad-custom-core');
56
57
  export var OfficialAccount = reactifyWc('taro-official-account-core');
57
- export var OpenData = reactifyWc('taro-open-data-core'); // 导航栏
58
-
59
- export var NavigationBar = reactifyWc('taro-navigation-bar-core'); // 页面属性配置节点
58
+ export var OpenData = reactifyWc('taro-open-data-core');
59
+ export var WebView = reactifyWc('taro-web-view-core'); // 页面属性配置节点
60
60
 
61
61
  export var PageMeta = reactifyWc('taro-page-meta-core'); // 其他
62
62
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/components",
3
- "version": "3.5.5",
3
+ "version": "3.5.6",
4
4
  "description": "",
5
5
  "browser": "dist/index.js",
6
6
  "main:h5": "dist/index.js",
@@ -32,8 +32,8 @@
32
32
  "dependencies": {
33
33
  "@stencil/core": "~2.13.0",
34
34
  "@stencil/sass": "1.5.2",
35
- "@tarojs/taro": "3.5.5",
36
- "@tarojs/router": "3.5.5",
35
+ "@tarojs/router": "3.5.6",
36
+ "@tarojs/taro": "3.5.6",
37
37
  "better-scroll": "^1.14.1",
38
38
  "classnames": "^2.2.5",
39
39
  "hls.js": "^1.1.5",
@@ -43,9 +43,13 @@
43
43
  "weui": "^1.1.2"
44
44
  },
45
45
  "devDependencies": {
46
+ "@types/node": "^14.14.31",
46
47
  "css-loader": "3.4.2",
48
+ "humps": "^2.0.1",
47
49
  "jquery": "^3.4.1",
48
50
  "karmatic": "^2.1.0",
51
+ "lodash": "^4.17.21",
52
+ "miniapp-types": "1.1.8",
49
53
  "react": "^17.0.2",
50
54
  "react-dom": "^17.0.2",
51
55
  "simulant": "^0.2.2",
@@ -66,8 +70,8 @@
66
70
  },
67
71
  "scripts": {
68
72
  "build-h5": "babel -d dist-h5 h5",
69
- "build": "pnpm run build-h5 & stencil build --config stencil.config.ts",
70
- "dev": "stencil build --config stencil.config.ts --watch",
73
+ "build": "pnpm run build-h5 & cross-env NODE_ENV=production stencil build --config stencil.config.ts",
74
+ "dev": "cross-env NODE_ENV=development stencil build --config stencil.config.ts --watch",
71
75
  "test": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
72
76
  "test:ci": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
73
77
  "test:debug": "karmatic debug --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
package/types/Ad.d.ts CHANGED
@@ -1,9 +1,8 @@
1
1
  import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction } from './common'
3
-
4
3
  interface AdProps extends StandardProps {
5
4
  /** 广告单元id,可在[小程序管理后台](https://mp.weixin.qq.com/)的流量主模块新建
6
- * @supported weapp, tt
5
+ * @supported weapp, tt, qq
7
6
  */
8
7
  unitId: string
9
8
 
@@ -23,25 +22,105 @@ interface AdProps extends StandardProps {
23
22
  adTheme?: 'white' | 'black'
24
23
 
25
24
  /** 广告加载成功的回调
26
- * @supported weapp, tt
25
+ * @supported weapp, swan, tt, qq
27
26
  */
28
27
  onLoad?: CommonEventFunction
29
28
 
30
- /** 当广告发生错误时,触发的事件,可以通过该事件获取错误码及原因,事件对象event.detail = {errCode: 1002}
31
- * @supported weapp, tt
29
+ /** 当广告发生错误时,触发的事件,可以通过该事件获取错误码及原因,事件对象 event.detail = {errCode: 1002}
30
+ * @supported weapp, swan, tt, qq
32
31
  */
33
32
  onError?: CommonEventFunction<AdProps.onErrorEventDetail>
34
33
 
35
34
  /** 广告关闭的回调
36
- * @supported weapp, tt
35
+ * @supported weapp, swan, tt
37
36
  */
38
37
  onClose?: CommonEventFunction
39
- }
40
38
 
39
+ /** 小程序应用 ID
40
+ * @supported swan
41
+ */
42
+ appid?: string
43
+
44
+ /** 小程序广告位 ID
45
+ * @supported swan
46
+ */
47
+ apid?: string
48
+
49
+ /** 广告类型:banner、feed ,需和百青藤平台上的代码位类型相匹配
50
+ * @supported swan, tt, qq
51
+ * @default feed
52
+ */
53
+ type?: string
54
+
55
+ /** 更改该属性,可以触发广告刷新
56
+ * @supported swan
57
+ */
58
+ updatetime?: string
59
+
60
+ /** 贴片类型广告播放期间触发
61
+ * @supported swan
62
+ */
63
+ onStatus?: CommonEventFunction
64
+
65
+ /** 广告是否在屏幕中固定展示
66
+ * @supported tt
67
+ */
68
+ fixed?: string
69
+
70
+ /** 广告的缩放比例,100 为标准尺寸
71
+ * @supported tt
72
+ * @default 100
73
+ */
74
+ scale?: string
75
+
76
+ /** type 为 feeds 时广告左边距(px),必须大于 0
77
+ * @supported qq
78
+ */
79
+ adLeft?: string
80
+
81
+ /** type 为 feeds 时广告上边距(px),必须大于 0
82
+ * @supported qq
83
+ */
84
+ adTop?: string
85
+
86
+ /** type 为 feeds 时广告宽度(px),默认 100%,最大值为屏幕宽度,最小值为 265
87
+ * @supported qq
88
+ */
89
+ adWidth?: string
90
+
91
+ /** type 为 feeds 时广告高度(px),最小 85,最大 160
92
+ * @supported qq
93
+ */
94
+ adHeight?: string
95
+
96
+ /** type 为 block 时请求积木广告数量(展示以实际拉取广告数量为准)
97
+ * @supported qq
98
+ * @default 1
99
+ */
100
+ blockSize?: string
101
+
102
+ /** type 为 block 时请求积木广告排列方向
103
+ * @supported qq
104
+ * @default landscape
105
+ */
106
+ blockOrientation?: 'vertical' | 'landscape'
107
+
108
+ /** 开发者工具下,type 为 banner 时,指定 banner 广告展示三图文还是单图
109
+ * @supported qq
110
+ * @default three
111
+ */
112
+ testBannerType?: 'one' | 'three'
113
+
114
+ /** type 为 feeds 时广告实际宽高回调
115
+ * @supported qq
116
+ */
117
+ onSize?: CommonEventFunction<AdProps.onSizeEventDetail>
118
+ }
41
119
  declare namespace AdProps {
42
120
  interface onErrorEventDetail {
43
121
  errCode: keyof AdErrCode
44
122
  }
123
+
45
124
  /**
46
125
  * 广告错误码
47
126
  *
@@ -55,55 +134,67 @@ declare namespace AdProps {
55
134
  * @solution 一般情况下忽略一段时间即可恢复。
56
135
  */
57
136
  1000
137
+
58
138
  /**
59
139
  * @illustrate 参数错误
60
140
  * @reason 使用方法错误
61
141
  * @solution 可以前往 developers.weixin.qq.com 确认具体教程(小程序和小游戏分别有各自的教程,可以在顶部选项中,“设计”一栏的右侧进行切换。
62
142
  */
63
143
  1001
144
+
64
145
  /**
65
146
  * @illustrate 广告单元无效
66
147
  * @reason 可能是拼写错误、或者误用了其他APP的广告ID
67
148
  * @solution 请重新前往 mp.weixin.qq.com 确认广告位ID。
68
149
  */
69
150
  1002
151
+
70
152
  /**
71
153
  * @illustrate 内部错误
72
154
  * @reason 该项错误不是开发者的异常情况
73
155
  * @solution 一般情况下忽略一段时间即可恢复。
74
156
  */
75
157
  1003
158
+
76
159
  /**
77
160
  * @illustrate 无合适的广告
78
161
  * @reason 广告不是每一次都会出现,这次没有出现可能是由于该用户不适合浏览广告
79
162
  * @solution 属于正常情况,且开发者需要针对这种情况做形态上的兼容。
80
163
  */
81
164
  1004
165
+
82
166
  /**
83
167
  * @illustrate 广告组件审核中
84
168
  * @reason 你的广告正在被审核,无法展现广告
85
169
  * @solution 请前往 mp.weixin.qq.com 确认审核状态,且开发者需要针对这种情况做形态上的兼容。
86
170
  */
87
171
  1005
172
+
88
173
  /**
89
174
  * @illustrate 广告组件被驳回
90
175
  * @reason 你的广告审核失败,无法展现广告
91
176
  * @solution 请前往 mp.weixin.qq.com 确认审核状态,且开发者需要针对这种情况做形态上的兼容。
92
177
  */
93
178
  1006
179
+
94
180
  /**
95
181
  * @illustrate 广告组件被封禁
96
182
  * @reason 你的广告能力已经被封禁,封禁期间无法展现广告
97
183
  * @solution 请前往 mp.weixin.qq.com 确认小程序广告封禁状态。
98
184
  */
99
185
  1007
186
+
100
187
  /**
101
188
  * @illustrate 广告单元已关闭
102
189
  * @reason 该广告位的广告能力已经被关闭
103
190
  * @solution 请前往 mp.weixin.qq.com 重新打开对应广告位的展现。
104
191
  */
105
192
  1008
106
- // [key: number]: string
193
+ }
194
+
195
+ interface onSizeEventDetail {
196
+ width: number
197
+ height: number
107
198
  }
108
199
  }
109
200
 
@@ -141,5 +232,4 @@ declare namespace AdProps {
141
232
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/ad.html
142
233
  */
143
234
  declare const Ad: ComponentType<AdProps>
144
-
145
235
  export { Ad, AdProps }
@@ -1,7 +1,6 @@
1
1
  import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction } from './common'
3
3
  import { AdProps } from './Ad'
4
-
5
4
  interface AdCustomProps extends StandardProps {
6
5
  /** 广告单元id,可在[小程序管理后台](https://mp.weixin.qq.com/)的流量主模块新建
7
6
  * @supported weapp
@@ -18,7 +17,7 @@ interface AdCustomProps extends StandardProps {
18
17
  */
19
18
  onLoad?: CommonEventFunction
20
19
 
21
- /** 当广告发生错误时,触发的事件,可以通过该事件获取错误码及原因,事件对象event.detail = {errCode: 1002}
20
+ /** 当广告发生错误时,触发的事件,可以通过该事件获取错误码及原因
22
21
  * @supported weapp
23
22
  */
24
23
  onError?: CommonEventFunction<AdProps.onErrorEventDetail>
@@ -46,5 +45,4 @@ interface AdCustomProps extends StandardProps {
46
45
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/ad.html
47
46
  */
48
47
  declare const AdCustom: ComponentType<AdCustomProps>
49
-
50
48
  export { AdCustom, AdCustomProps }
package/types/Audio.d.ts CHANGED
@@ -1,75 +1,73 @@
1
1
  import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction } from './common'
3
-
4
3
  interface AudioProps extends StandardProps {
5
4
  /** audio 组件的唯一标识符
6
- * @supported weapp
5
+ * @supported weapp, swan, qq
7
6
  */
8
7
  id?: string
9
8
 
10
9
  /** 要播放音频的资源地址
11
- * @supported weapp, h5, swan
10
+ * @supported weapp, swan, qq, h5
12
11
  */
13
12
  src?: string
14
13
 
15
14
  /** 是否循环播放
16
15
  * @default false
17
- * @supported weapp, h5, swan
16
+ * @supported weapp, swan, qq, h5
18
17
  */
19
18
  loop?: boolean
20
19
 
21
20
  /** 是否静音播放
22
21
  * @default false
23
22
  * @supported h5
24
- * @deprecated
25
23
  */
26
24
  muted?: boolean
27
25
 
28
26
  /** 是否显示默认控件
29
27
  * @default false
30
- * @supported weapp, h5, swan
28
+ * @supported weapp, swan, qq, h5
31
29
  */
32
30
  controls?: boolean
33
31
 
34
32
  /** 默认控件上的音频封面的图片资源地址,如果 controls 属性值为 false 则设置 poster 无效
35
- * @supported weapp, swan
33
+ * @supported weapp, swan, qq
36
34
  */
37
35
  poster?: string
38
36
 
39
37
  /** 默认控件上的音频名字,如果 controls 属性值为 false 则设置 name 无效
40
38
  * @default "未知音频"
41
- * @supported weapp
39
+ * @supported weapp, swan, qq
42
40
  */
43
41
  name?: string
44
42
 
45
43
  /** 默认控件上的作者名字,如果 controls 属性值为 false 则设置 author 无效
46
44
  * @default "未知作者"
47
- * @supported weapp
45
+ * @supported weapp, swan, qq
48
46
  */
49
47
  author?: string
50
48
 
51
49
  /** 当发生错误时触发 error 事件,detail = {errMsg: MediaError.code}
52
- * @supported weapp, h5, swan
50
+ * @supported weapp, swan, qq, h5
53
51
  */
54
52
  onError?: CommonEventFunction<AudioProps.onErrorEventDetail>
55
53
 
56
54
  /** 当开始/继续播放时触发play事件
57
- * @supported weapp, h5, swan
55
+ * @supported weapp, swan, qq, h5
58
56
  */
59
57
  onPlay?: CommonEventFunction
60
58
 
61
59
  /** 当暂停播放时触发 pause 事件
62
- * @supported weapp, h5, swan
60
+ * @supported weapp, swan, qq, h5
63
61
  */
64
62
  onPause?: CommonEventFunction
65
63
 
66
64
  /** 当播放进度改变时触发 timeupdate 事件,detail = {currentTime, duration}
67
- * @supported weapp, h5, swan
65
+ * @supported weapp, swan, qq, h5
68
66
  */
69
67
  onTimeUpdate?: CommonEventFunction<AudioProps.onTimeUpdateEventDetail>
70
68
 
71
69
  /** 当播放到末尾时触发 ended 事件
72
- * @supported weapp, h5, swan
70
+ * @supported weapp, swan, qq, h5
73
71
  */
74
72
  onEnded?: CommonEventFunction
75
73
 
@@ -78,7 +76,6 @@ interface AudioProps extends StandardProps {
78
76
  */
79
77
  nativeProps?: Record<string, unknown>
80
78
  }
81
-
82
79
  declare namespace AudioProps {
83
80
  interface onErrorEventDetail {
84
81
  errMsg: keyof MediaError.Code
@@ -86,6 +83,7 @@ declare namespace AudioProps {
86
83
  interface onTimeUpdateEventDetail {
87
84
  /** 当前时间 */
88
85
  currentTime: number
86
+
89
87
  /** 持续时间 */
90
88
  duration: number
91
89
  }
@@ -93,10 +91,13 @@ declare namespace AudioProps {
93
91
  interface Code {
94
92
  /** 获取资源被用户禁止 */
95
93
  1
94
+
96
95
  /** 网络错误 */
97
96
  2
97
+
98
98
  /** 解码错误 */
99
99
  3
100
+
100
101
  /** 不合适资源 */
101
102
  4
102
103
  }
@@ -149,5 +150,4 @@ declare namespace AudioProps {
149
150
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/audio.html
150
151
  */
151
152
  declare const Audio: ComponentType<AudioProps>
152
-
153
153
  export { Audio, AudioProps }
package/types/Block.d.ts CHANGED
@@ -1,11 +1,9 @@
1
1
  import { ComponentType } from 'react'
2
2
  import { StandardProps } from './common'
3
-
4
3
  type BlockProps = StandardProps
5
4
 
6
5
  /**
7
6
  * @ignore
8
7
  */
9
8
  declare const Block: ComponentType<BlockProps>
10
-
11
9
  export { Block, BlockProps }