@tarojs/components 3.5.6-alpha.2 → 3.5.7

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 (217) hide show
  1. package/dist/cjs/helper-db78e01a.js +19 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/taro-ad-core.cjs.entry.js +3 -1
  4. package/dist/cjs/taro-ad-custom-core.cjs.entry.js +3 -1
  5. package/dist/cjs/taro-camera-core.cjs.entry.js +3 -1
  6. package/dist/cjs/taro-components.cjs.js +1 -1
  7. package/dist/cjs/taro-editor-core.cjs.entry.js +3 -1
  8. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +3 -1
  9. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +3 -1
  10. package/dist/cjs/taro-live-player-core.cjs.entry.js +3 -1
  11. package/dist/cjs/taro-live-pusher-core.cjs.entry.js +3 -1
  12. package/dist/cjs/taro-map-core.cjs.entry.js +3 -1
  13. package/dist/cjs/taro-match-media-core.cjs.entry.js +3 -1
  14. package/dist/cjs/taro-movable-view-core.cjs.entry.js +2 -2
  15. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +3 -1
  16. package/dist/cjs/taro-official-account-core.cjs.entry.js +3 -1
  17. package/dist/cjs/taro-open-data-core.cjs.entry.js +3 -1
  18. package/dist/cjs/taro-page-container-core.cjs.entry.js +3 -1
  19. package/dist/cjs/taro-page-meta-core.cjs.entry.js +3 -1
  20. package/dist/cjs/taro-root-portal-core.cjs.entry.js +3 -1
  21. package/dist/cjs/taro-share-element-core.cjs.entry.js +3 -1
  22. package/dist/cjs/taro-slot-core.cjs.entry.js +3 -1
  23. package/dist/cjs/taro-voip-room-core.cjs.entry.js +3 -1
  24. package/dist/collection/components/ad/ad.js +2 -2
  25. package/dist/collection/components/ad-custom/ad-custom.js +2 -2
  26. package/dist/collection/components/camera/camera.js +2 -2
  27. package/dist/collection/components/editor/editor.js +2 -2
  28. package/dist/collection/components/functional-page-navigator/functional-page-navigator.js +2 -2
  29. package/dist/collection/components/keyboard-accessory/keyboard-accessory.js +2 -2
  30. package/dist/collection/components/live-player/live-player.js +2 -2
  31. package/dist/collection/components/live-pusher/live-pusher.js +2 -2
  32. package/dist/collection/components/map/map.js +2 -2
  33. package/dist/collection/components/match-media/match-media.js +2 -2
  34. package/dist/collection/components/movable-area/movable-view.js +2 -4
  35. package/dist/collection/components/navigation-bar/navigation-bar.js +2 -2
  36. package/dist/collection/components/official-account/official-account.js +2 -2
  37. package/dist/collection/components/open-data/open-data.js +2 -2
  38. package/dist/collection/components/page-container/page-container.js +2 -2
  39. package/dist/collection/components/page-meta/page-meta.js +2 -2
  40. package/dist/collection/components/root-portal/root-portal.js +2 -2
  41. package/dist/collection/components/share-element/share-element.js +2 -2
  42. package/dist/collection/components/slot/slot.js +2 -2
  43. package/dist/collection/components/voip-room/voip-room.js +2 -2
  44. package/dist/collection/utils/helper.js +10 -0
  45. package/dist/collection/utils/index.js +1 -0
  46. package/dist/esm/helper-3d0ecf0f.js +13 -0
  47. package/dist/esm/loader.js +1 -1
  48. package/dist/esm/taro-ad-core.entry.js +3 -1
  49. package/dist/esm/taro-ad-custom-core.entry.js +3 -1
  50. package/dist/esm/taro-camera-core.entry.js +3 -1
  51. package/dist/esm/taro-components.js +1 -1
  52. package/dist/esm/taro-editor-core.entry.js +3 -1
  53. package/dist/esm/taro-functional-page-navigator-core.entry.js +3 -1
  54. package/dist/esm/taro-keyboard-accessory-core.entry.js +3 -1
  55. package/dist/esm/taro-live-player-core.entry.js +3 -1
  56. package/dist/esm/taro-live-pusher-core.entry.js +3 -1
  57. package/dist/esm/taro-map-core.entry.js +3 -1
  58. package/dist/esm/taro-match-media-core.entry.js +3 -1
  59. package/dist/esm/taro-movable-view-core.entry.js +3 -3
  60. package/dist/esm/taro-navigation-bar-core.entry.js +3 -1
  61. package/dist/esm/taro-official-account-core.entry.js +3 -1
  62. package/dist/esm/taro-open-data-core.entry.js +3 -1
  63. package/dist/esm/taro-page-container-core.entry.js +3 -1
  64. package/dist/esm/taro-page-meta-core.entry.js +3 -1
  65. package/dist/esm/taro-root-portal-core.entry.js +3 -1
  66. package/dist/esm/taro-share-element-core.entry.js +3 -1
  67. package/dist/esm/taro-slot-core.entry.js +3 -1
  68. package/dist/esm/taro-voip-room-core.entry.js +3 -1
  69. package/dist/esm-es5/helper-3d0ecf0f.js +1 -0
  70. package/dist/esm-es5/loader.js +1 -1
  71. package/dist/esm-es5/taro-ad-core.entry.js +1 -1
  72. package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
  73. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  74. package/dist/esm-es5/taro-components.js +1 -1
  75. package/dist/esm-es5/taro-editor-core.entry.js +1 -1
  76. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
  77. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
  78. package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
  79. package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
  80. package/dist/esm-es5/taro-map-core.entry.js +1 -1
  81. package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
  82. package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
  83. package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
  84. package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
  85. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  86. package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
  87. package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
  88. package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
  89. package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
  90. package/dist/esm-es5/taro-slot-core.entry.js +1 -1
  91. package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
  92. package/dist/taro-components/p-028e2728.entry.js +1 -0
  93. package/dist/taro-components/p-0380841f.system.js +1 -1
  94. package/dist/taro-components/p-06178a0c.entry.js +1 -0
  95. package/dist/taro-components/p-07294134.system.entry.js +1 -0
  96. package/dist/taro-components/p-075458e5.system.entry.js +1 -0
  97. package/dist/taro-components/p-15e45ed6.system.js +1 -0
  98. package/dist/taro-components/p-2ec47545.entry.js +1 -0
  99. package/dist/taro-components/p-3e11c8cc.system.entry.js +1 -0
  100. package/dist/taro-components/p-4cf436f9.entry.js +1 -0
  101. package/dist/taro-components/p-4d826fb7.entry.js +1 -0
  102. package/dist/taro-components/p-55266a1f.entry.js +1 -0
  103. package/dist/taro-components/p-57a2a441.entry.js +1 -0
  104. package/dist/taro-components/p-59d93770.entry.js +1 -0
  105. package/dist/taro-components/p-5a374cb9.entry.js +1 -0
  106. package/dist/taro-components/p-62fc514e.entry.js +1 -0
  107. package/dist/taro-components/p-6800ac6f.entry.js +1 -0
  108. package/dist/taro-components/p-6a96da58.js +1 -0
  109. package/dist/taro-components/p-6aa557f0.entry.js +1 -0
  110. package/dist/taro-components/p-6ad59489.system.entry.js +1 -0
  111. package/dist/taro-components/p-733cc64a.system.entry.js +1 -0
  112. package/dist/taro-components/p-7374537f.entry.js +1 -0
  113. package/dist/taro-components/p-7d329ab0.entry.js +1 -0
  114. package/dist/taro-components/p-7e960ac3.system.entry.js +1 -0
  115. package/dist/taro-components/p-8e2b048e.system.entry.js +1 -0
  116. package/dist/taro-components/p-9234cc1d.entry.js +1 -0
  117. package/dist/taro-components/p-93eed5d7.system.entry.js +1 -0
  118. package/dist/taro-components/p-9e1572c5.system.entry.js +1 -0
  119. package/dist/taro-components/p-afbcd093.entry.js +1 -0
  120. package/dist/taro-components/p-b11aaf69.system.entry.js +1 -0
  121. package/dist/taro-components/p-b1ae9401.entry.js +1 -0
  122. package/dist/taro-components/p-b60820b4.entry.js +1 -0
  123. package/dist/taro-components/p-b7681c76.system.entry.js +1 -0
  124. package/dist/taro-components/p-c5fd5c7f.system.entry.js +1 -0
  125. package/dist/taro-components/p-c92bafb6.system.entry.js +1 -0
  126. package/dist/taro-components/p-c93bb915.system.entry.js +1 -0
  127. package/dist/taro-components/p-cf048af9.entry.js +1 -0
  128. package/dist/taro-components/p-d075934f.system.entry.js +1 -0
  129. package/dist/taro-components/p-d4da725f.system.entry.js +1 -0
  130. package/dist/taro-components/p-d5f3080c.entry.js +1 -0
  131. package/dist/taro-components/p-d6662ab3.system.entry.js +1 -0
  132. package/dist/taro-components/p-f2803c2e.system.entry.js +1 -0
  133. package/dist/taro-components/p-f4ea8a56.system.entry.js +1 -0
  134. package/dist/taro-components/p-f7c80795.system.entry.js +1 -0
  135. package/dist/taro-components/taro-components.esm.js +1 -1
  136. package/dist/types/components/ad/ad.d.ts +2 -1
  137. package/dist/types/components/ad-custom/ad-custom.d.ts +2 -1
  138. package/dist/types/components/camera/camera.d.ts +2 -1
  139. package/dist/types/components/editor/editor.d.ts +2 -1
  140. package/dist/types/components/functional-page-navigator/functional-page-navigator.d.ts +2 -1
  141. package/dist/types/components/keyboard-accessory/keyboard-accessory.d.ts +2 -1
  142. package/dist/types/components/live-player/live-player.d.ts +2 -1
  143. package/dist/types/components/live-pusher/live-pusher.d.ts +2 -1
  144. package/dist/types/components/map/map.d.ts +2 -1
  145. package/dist/types/components/match-media/match-media.d.ts +2 -1
  146. package/dist/types/components/navigation-bar/navigation-bar.d.ts +2 -1
  147. package/dist/types/components/official-account/official-account.d.ts +2 -1
  148. package/dist/types/components/open-data/open-data.d.ts +2 -1
  149. package/dist/types/components/page-container/page-container.d.ts +2 -1
  150. package/dist/types/components/page-meta/page-meta.d.ts +2 -1
  151. package/dist/types/components/root-portal/root-portal.d.ts +2 -1
  152. package/dist/types/components/share-element/share-element.d.ts +2 -1
  153. package/dist/types/components/slot/slot.d.ts +2 -1
  154. package/dist/types/components/voip-room/voip-room.d.ts +2 -1
  155. package/dist/types/utils/helper.d.ts +1 -0
  156. package/dist/types/utils/index.d.ts +1 -0
  157. package/mini/index.js +1 -0
  158. package/package.json +7 -5
  159. package/types/Button.d.ts +0 -1
  160. package/types/Camera.d.ts +41 -9
  161. package/types/Canvas.d.ts +0 -11
  162. package/types/CoverImage.d.ts +0 -1
  163. package/types/CoverView.d.ts +0 -1
  164. package/types/Image.d.ts +0 -11
  165. package/types/Input.d.ts +0 -1
  166. package/types/Map.d.ts +1 -29
  167. package/types/MovableView.d.ts +24 -27
  168. package/types/NavigationBar.d.ts +1 -1
  169. package/types/PickerView.d.ts +0 -2
  170. package/types/ScrollView.d.ts +1 -19
  171. package/types/Swiper.d.ts +0 -9
  172. package/types/Switch.d.ts +0 -1
  173. package/types/Textarea.d.ts +0 -2
  174. package/types/Video.d.ts +0 -15
  175. package/types/View.d.ts +1 -20
  176. package/dist/collection/utils/json-schema-to-types.js +0 -224
  177. package/dist/taro-components/p-0414632d.system.entry.js +0 -1
  178. package/dist/taro-components/p-10e5df98.system.entry.js +0 -1
  179. package/dist/taro-components/p-14058364.system.entry.js +0 -1
  180. package/dist/taro-components/p-1a638246.system.entry.js +0 -1
  181. package/dist/taro-components/p-1e530acd.entry.js +0 -1
  182. package/dist/taro-components/p-22e33350.entry.js +0 -1
  183. package/dist/taro-components/p-24a66088.system.entry.js +0 -1
  184. package/dist/taro-components/p-2fd0250d.system.entry.js +0 -1
  185. package/dist/taro-components/p-3c7cdf6f.entry.js +0 -1
  186. package/dist/taro-components/p-410d449f.entry.js +0 -1
  187. package/dist/taro-components/p-443fb8b0.entry.js +0 -1
  188. package/dist/taro-components/p-44fa48b9.system.entry.js +0 -1
  189. package/dist/taro-components/p-481a8bc1.system.entry.js +0 -1
  190. package/dist/taro-components/p-49b64020.entry.js +0 -1
  191. package/dist/taro-components/p-4e8d4a72.system.entry.js +0 -1
  192. package/dist/taro-components/p-4f0e98c0.system.entry.js +0 -1
  193. package/dist/taro-components/p-4f805045.entry.js +0 -1
  194. package/dist/taro-components/p-5e3bd0db.system.entry.js +0 -1
  195. package/dist/taro-components/p-6da73376.entry.js +0 -1
  196. package/dist/taro-components/p-7325d380.entry.js +0 -1
  197. package/dist/taro-components/p-77ad7941.entry.js +0 -1
  198. package/dist/taro-components/p-7ab91097.entry.js +0 -1
  199. package/dist/taro-components/p-7b96cec3.system.entry.js +0 -1
  200. package/dist/taro-components/p-7e23b551.entry.js +0 -1
  201. package/dist/taro-components/p-7f0a12a9.entry.js +0 -1
  202. package/dist/taro-components/p-840ef0c3.system.entry.js +0 -1
  203. package/dist/taro-components/p-89c876a6.system.entry.js +0 -1
  204. package/dist/taro-components/p-90a6c15a.entry.js +0 -1
  205. package/dist/taro-components/p-95a36917.entry.js +0 -1
  206. package/dist/taro-components/p-9965cf11.system.entry.js +0 -1
  207. package/dist/taro-components/p-9fcb40a3.entry.js +0 -1
  208. package/dist/taro-components/p-a8c9b126.system.entry.js +0 -1
  209. package/dist/taro-components/p-aa5d45de.system.entry.js +0 -1
  210. package/dist/taro-components/p-b3693ca2.system.entry.js +0 -1
  211. package/dist/taro-components/p-b83c3eca.system.entry.js +0 -1
  212. package/dist/taro-components/p-c0c8b2be.entry.js +0 -1
  213. package/dist/taro-components/p-c8da5c10.entry.js +0 -1
  214. package/dist/taro-components/p-d72075ef.system.entry.js +0 -1
  215. package/dist/taro-components/p-db1f2db7.entry.js +0 -1
  216. package/dist/taro-components/p-e3f39099.entry.js +0 -1
  217. package/dist/types/utils/json-schema-to-types.d.ts +0 -25
@@ -0,0 +1 @@
1
+ System.register(["./p-44cbb351.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var n,o,e,r;return{setters:[function(t){n=t.r;o=t.h;e=t.H},function(t){r=t.n},function(){}],execute:function(){var i=t("taro_voip_room_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){r("VoipRoom",this)};t.prototype.render=function(){return o(e,null)};return t}())}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-44cbb351.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var n,e,r,o;return{setters:[function(t){n=t.r;e=t.h;r=t.H},function(t){o=t.n},function(){}],execute:function(){var s=t("taro_ad_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){o("Ad",this)};t.prototype.render=function(){return e(r,null)};return t}())}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-44cbb351.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var e,n,r,o;return{setters:[function(t){e=t.r;n=t.h;r=t.H},function(t){o=t.n},function(){}],execute:function(){var s=t("taro_keyboard_accessory_core",function(){function t(t){e(this,t)}t.prototype.componentDidLoad=function(){o("KeyboardAccessory",this)};t.prototype.render=function(){return n(r,null)};return t}())}}}));
@@ -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-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)));
1
+ import{p as e,b as o}from"./p-059912fd.js";(()=>{const o=import.meta.url,a={};return""!==o&&(a.resourcesUrl=new URL(".",o).href),e(a)})().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-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-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-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-f8b9c4b0",[[0,"taro-movable-area-core",{scaleArea:[4,"scale-area"]}]]],["p-6800ac6f",[[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-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-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-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)));
@@ -1,4 +1,5 @@
1
- export declare class Ad {
1
+ import { ComponentInterface } from '../../stencil-public-runtime';
2
+ export declare class Ad implements ComponentInterface {
2
3
  componentDidLoad(): void;
3
4
  render(): any;
4
5
  }
@@ -1,4 +1,5 @@
1
- export declare class AdCustom {
1
+ import { ComponentInterface } from '../../stencil-public-runtime';
2
+ export declare class AdCustom implements ComponentInterface {
2
3
  componentDidLoad(): void;
3
4
  render(): any;
4
5
  }
@@ -1,4 +1,5 @@
1
- export declare class Camera {
1
+ import { ComponentInterface } from '../../stencil-public-runtime';
2
+ export declare class Camera implements ComponentInterface {
2
3
  componentDidLoad(): void;
3
4
  render(): any;
4
5
  }
@@ -1,4 +1,5 @@
1
- export declare class Editor {
1
+ import { ComponentInterface } from '../../stencil-public-runtime';
2
+ export declare class Editor implements ComponentInterface {
2
3
  componentDidLoad(): void;
3
4
  render(): any;
4
5
  }
@@ -1,4 +1,5 @@
1
- export declare class FunctionalPageNavigator {
1
+ import { ComponentInterface } from '../../stencil-public-runtime';
2
+ export declare class FunctionalPageNavigator implements ComponentInterface {
2
3
  componentDidLoad(): void;
3
4
  render(): any;
4
5
  }
@@ -1,4 +1,5 @@
1
- export declare class KeyboardAccessory {
1
+ import { ComponentInterface } from '../../stencil-public-runtime';
2
+ export declare class KeyboardAccessory implements ComponentInterface {
2
3
  componentDidLoad(): void;
3
4
  render(): any;
4
5
  }
@@ -1,4 +1,5 @@
1
- export declare class LivePlayer {
1
+ import { ComponentInterface } from '../../stencil-public-runtime';
2
+ export declare class LivePlayer implements ComponentInterface {
2
3
  componentDidLoad(): void;
3
4
  render(): any;
4
5
  }
@@ -1,4 +1,5 @@
1
- export declare class LivePusher {
1
+ import { ComponentInterface } from '../../stencil-public-runtime';
2
+ export declare class LivePusher implements ComponentInterface {
2
3
  componentDidLoad(): void;
3
4
  render(): any;
4
5
  }
@@ -1,4 +1,5 @@
1
- export declare class Map {
1
+ import { ComponentInterface } from '../../stencil-public-runtime';
2
+ export declare class Map implements ComponentInterface {
2
3
  componentDidLoad(): void;
3
4
  render(): any;
4
5
  }
@@ -1,4 +1,5 @@
1
- export declare class MatchMedia {
1
+ import { ComponentInterface } from '../../stencil-public-runtime';
2
+ export declare class MatchMedia implements ComponentInterface {
2
3
  componentDidLoad(): void;
3
4
  render(): any;
4
5
  }
@@ -1,4 +1,5 @@
1
- export declare class NavigationBar {
1
+ import { ComponentInterface } from '../../stencil-public-runtime';
2
+ export declare class NavigationBar implements ComponentInterface {
2
3
  componentDidLoad(): void;
3
4
  render(): any;
4
5
  }
@@ -1,4 +1,5 @@
1
- export declare class OfficialAccount {
1
+ import { ComponentInterface } from '../../stencil-public-runtime';
2
+ export declare class OfficialAccount implements ComponentInterface {
2
3
  componentDidLoad(): void;
3
4
  render(): any;
4
5
  }
@@ -1,4 +1,5 @@
1
- export declare class OpenData {
1
+ import { ComponentInterface } from '../../stencil-public-runtime';
2
+ export declare class OpenData implements ComponentInterface {
2
3
  componentDidLoad(): void;
3
4
  render(): any;
4
5
  }
@@ -1,4 +1,5 @@
1
- export declare class PageContainer {
1
+ import { ComponentInterface } from '../../stencil-public-runtime';
2
+ export declare class PageContainer implements ComponentInterface {
2
3
  componentDidLoad(): void;
3
4
  render(): any;
4
5
  }
@@ -1,4 +1,5 @@
1
- export declare class PageMeta {
1
+ import { ComponentInterface } from '../../stencil-public-runtime';
2
+ export declare class PageMeta implements ComponentInterface {
2
3
  componentDidLoad(): void;
3
4
  render(): any;
4
5
  }
@@ -1,4 +1,5 @@
1
- export declare class RootPortal {
1
+ import { ComponentInterface } from '../../stencil-public-runtime';
2
+ export declare class RootPortal implements ComponentInterface {
2
3
  componentDidLoad(): void;
3
4
  render(): any;
4
5
  }
@@ -1,4 +1,5 @@
1
- export declare class ShareElement {
1
+ import { ComponentInterface } from '../../stencil-public-runtime';
2
+ export declare class ShareElement implements ComponentInterface {
2
3
  componentDidLoad(): void;
3
4
  render(): any;
4
5
  }
@@ -1,4 +1,5 @@
1
- export declare class Slot {
1
+ import { ComponentInterface } from '../../stencil-public-runtime';
2
+ export declare class Slot implements ComponentInterface {
2
3
  componentDidLoad(): void;
3
4
  render(): any;
4
5
  }
@@ -1,4 +1,5 @@
1
- export declare class VoipRoom {
1
+ import { ComponentInterface } from '../../stencil-public-runtime';
2
+ export declare class VoipRoom implements ComponentInterface {
2
3
  componentDidLoad(): void;
3
4
  render(): any;
4
5
  }
@@ -0,0 +1 @@
1
+ export declare function notSupport(name?: string, instance?: {}): void;
@@ -1,4 +1,5 @@
1
1
  export declare function throttle(fn: any, threshold?: number, scope?: any): (...args: any[]) => void;
2
2
  export declare function debounce(fn: any, ms?: number, scope?: any): (...args: any[]) => void;
3
+ export * from './helper';
3
4
  export * from './style';
4
5
  export * from './url';
package/mini/index.js CHANGED
@@ -36,4 +36,5 @@ export const WebView = 'web-view'
36
36
  export const Block = 'block'
37
37
  export const Map = 'map'
38
38
  export const Slot = 'slot'
39
+ export const NativeSlot = 'native-slot'
39
40
  export const CustomWrapper = 'custom-wrapper'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/components",
3
- "version": "3.5.6-alpha.2",
3
+ "version": "3.5.7",
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/router": "3.5.6-alpha.2",
36
- "@tarojs/taro": "3.5.6-alpha.2",
35
+ "@tarojs/router": "3.5.7",
36
+ "@tarojs/taro": "3.5.7",
37
37
  "better-scroll": "^1.14.1",
38
38
  "classnames": "^2.2.5",
39
39
  "hls.js": "^1.1.5",
@@ -49,11 +49,12 @@
49
49
  "jquery": "^3.4.1",
50
50
  "karmatic": "^2.1.0",
51
51
  "lodash": "^4.17.21",
52
- "miniapp-types": "1.1.8",
52
+ "miniapp-types": "latest",
53
53
  "react": "^17.0.2",
54
54
  "react-dom": "^17.0.2",
55
55
  "simulant": "^0.2.2",
56
56
  "style-loader": "1.3.0",
57
+ "ts-node": "^10.9.1",
57
58
  "webpack": "4.46.0",
58
59
  "workbox-build": "4.3.1"
59
60
  },
@@ -75,6 +76,7 @@
75
76
  "test": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
76
77
  "test:ci": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
77
78
  "test:debug": "karmatic debug --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
78
- "test:coverage": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js'"
79
+ "test:coverage": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js'",
80
+ "sync:types": "ts-node scripts/json-schema-to-types.ts"
79
81
  }
80
82
  }
package/types/Button.d.ts CHANGED
@@ -203,7 +203,6 @@ interface ButtonProps extends StandardProps {
203
203
  * 当点击按钮时触发。
204
204
  * event.detail = { followStatus },followStatus 合法值有 1、2、3,其中 1 表示已关注。2 表示用户不允许关注。3 表示发生未知错误;
205
205
  * 已知问题:基础库 1.0,当用户在点击按钮前已关注生活号,event.detail.followStatus 的值为 true。
206
- * 版本要求:基础库 1.11.0 及以上
207
206
  * @supported alipay
208
207
  */
209
208
  onFollowLifestyle?: CommonEventFunction<{
package/types/Camera.d.ts CHANGED
@@ -3,42 +3,48 @@ import { StandardProps, CommonEventFunction } from './common'
3
3
  interface CameraProps extends StandardProps {
4
4
  /** 模式,有效值为normal, scanCode
5
5
  * @default "normal"
6
- * @supported weapp, tt, qq, jd, rn
6
+ * @supported weapp, tt, qq, jd, rn, alipay
7
7
  */
8
8
  mode?: keyof CameraProps.Mode
9
9
 
10
10
  /** 分辨率,不支持动态修改
11
11
  * @default "medium"
12
- * @supported weapp, tt
12
+ * @supported weapp, tt, alipay
13
13
  */
14
14
  resolution?: keyof CameraProps.Resolution
15
15
 
16
16
  /** 摄像头朝向
17
17
  * @default "back"
18
- * @supported weapp, swan, tt, qq, jd, rn
18
+ * @supported weapp, swan, tt, qq, jd, rn, alipay
19
19
  */
20
20
  devicePosition?: keyof CameraProps.DevicePosition
21
21
 
22
22
  /** 闪光灯
23
23
  * @default "auto"
24
- * @supported weapp, swan, tt, qq, jd, rn
24
+ * @supported weapp, swan, tt, qq, jd, rn, alipay
25
25
  */
26
26
  flash?: keyof CameraProps.Flash
27
27
 
28
+ /** 相机拍照,录制的分辨率。有效值为 360P、540P、720P、1080P、max
29
+ * @default "720P"
30
+ * @supported alipay
31
+ */
32
+ outputDimension?: '360P'|'540P'|'720P'|'1080P'|'max'
33
+
28
34
  /** 指定期望的相机帧数据尺寸
29
35
  * @default "medium"
30
- * @supported weapp, tt
36
+ * @supported weapp, tt, alipay
31
37
  */
32
38
  frameSize?: keyof CameraProps.FrameSize
33
39
 
34
40
  /** 摄像头在非正常终止时触发,
35
41
  * 如退出后台等情况
36
- * @supported weapp, swan, tt, qq, jd, rn
42
+ * @supported weapp, swan, tt, qq, jd, rn, alipay
37
43
  */
38
44
  onStop?: CommonEventFunction
39
45
 
40
46
  /** 用户不允许使用摄像头时触发
41
- * @supported weapp, swan, tt, qq, jd, rn
47
+ * @supported weapp, swan, tt, qq, jd, rn, alipay
42
48
  */
43
49
  onError?: CommonEventFunction
44
50
 
@@ -47,11 +53,16 @@ interface CameraProps extends StandardProps {
47
53
  */
48
54
  onInitDone?: CommonEventFunction<CameraProps.onInitDoneEventDetail>
49
55
 
56
+ /** 相机初始化完成时触发
57
+ * @supported alipay
58
+ */
59
+ onReady?: CommonEventFunction<CameraProps.onInitDoneEventDetail>
60
+
50
61
  /** 在成功识别到一维码时触发,
51
62
  * 仅在 mode="scanCode" 时生效
52
- * @supported weapp, tt, qq, rn
63
+ * @supported weapp, tt, qq, rn, alipay
53
64
  */
54
- onScanCode?: CommonEventFunction
65
+ onScanCode?: CommonEventFunction<CameraProps.onScanCodeEventDetail>
55
66
  }
56
67
  declare namespace CameraProps {
57
68
  /** mode 的合法值 */
@@ -114,6 +125,27 @@ declare namespace CameraProps {
114
125
  /** 最大变焦 */
115
126
  maxZoom: number
116
127
  }
128
+
129
+ interface onScanCodeEventDetail {
130
+ /** 字符集 */
131
+ charSet: string
132
+
133
+ /** 原始数据
134
+ * @supported weapp
135
+ */
136
+ rawData: string
137
+
138
+ /** 码类型 */
139
+ type: string
140
+
141
+ /** 识别结果 */
142
+ result: string
143
+
144
+ /** 识别结果(完整)
145
+ * @supported alipay
146
+ */
147
+ fullResult: string
148
+ }
117
149
  }
118
150
 
119
151
  /** 系统相机
package/types/Canvas.d.ts CHANGED
@@ -63,16 +63,6 @@ interface CanvasProps extends StandardProps<any, CanvasTouchEvent> {
63
63
  */
64
64
  id?: string
65
65
 
66
- /** -
67
- * @supported alipay
68
- */
69
- style?: string
70
-
71
- /** -
72
- * @supported alipay
73
- */
74
- class?: string
75
-
76
66
  /**
77
67
  * @supported alipay
78
68
  */
@@ -89,7 +79,6 @@ interface CanvasProps extends StandardProps<any, CanvasTouchEvent> {
89
79
  onTap?: CommonEventFunction
90
80
 
91
81
  /** canvas 组件初始化成功触发。
92
- * 版本要求:基础库 2.7.0 及以上
93
82
  * @supported alipay
94
83
  */
95
84
  onReady?: CommonEventFunction
@@ -22,7 +22,6 @@ interface CoverImageProps extends StandardProps {
22
22
  referrerPolicy?: 'origin' | 'no-referrer'
23
23
 
24
24
  /** 点击事件回调。
25
- * 版本要求: 基础库 1.9.0 及以上
26
25
  * @supported alipay
27
26
  */
28
27
  onTap?: CommonEventFunction
@@ -8,7 +8,6 @@ interface CoverViewProps extends ViewProps {
8
8
  scrollTop?: number
9
9
 
10
10
  /** 点击事件回调。
11
- * 版本要求:基础库 1.9.0 及以上
12
11
  * @supported alipay
13
12
  */
14
13
  onTap?: CommonEventFunction
package/types/Image.d.ts CHANGED
@@ -58,18 +58,7 @@ interface ImageProps extends StandardProps {
58
58
  */
59
59
  nativeProps?: Record<string, unknown>
60
60
 
61
- /** 外部样式。
62
- * @supported alipay
63
- */
64
- class?: string
65
-
66
- /** 内联样式。
67
- * @supported alipay
68
- */
69
- style?: string
70
-
71
61
  /** 默认图片地址,若设置默认图片地址,会先显示默认图片,等 src 对应的图片加载成功后,再渲染对应的图片。
72
- * 版本要求: 基础库 1.19.0 及以上
73
62
  * @supported alipay
74
63
  */
75
64
  defaultSource?: string
package/types/Input.d.ts CHANGED
@@ -202,7 +202,6 @@ interface InputProps extends StandardProps, FormItemProps {
202
202
  name?: string
203
203
 
204
204
  /** 是否强制使用系统键盘和 Web-view 创建的 input 元素。为 true 时,confirm-type、confirm-hold 可能失效。
205
- * 版本要求:基础库 2.7.3 及以上
206
205
  * @supported alipay
207
206
  */
208
207
  alwaysSystem?: string
package/types/Map.d.ts CHANGED
@@ -234,19 +234,7 @@ interface MapProps extends StandardProps {
234
234
  */
235
235
  onAnchorPointTap?: CommonEventFunction
236
236
 
237
- /** 内联样式。
238
- * @supported alipay
239
- */
240
- style?: string
241
-
242
- /** 样式名。
243
- * @supported alipay
244
- */
245
- class?: string
246
-
247
237
  /** 覆盖物,多边形。
248
- *
249
- * 版本要求:基础库 1.10.0 及以上
250
238
  * @supported alipay
251
239
  */
252
240
  polygon?: string
@@ -255,37 +243,21 @@ interface MapProps extends StandardProps {
255
243
  *
256
244
  * default:默认样式
257
245
  * light:精简样式
258
- *
259
- * 版本要求:基础库 1.20.0 及以上
260
246
  * @supported alipay
261
247
  */
262
248
  customMapStyle?: string
263
249
 
264
250
  /** 基于 map 高级定制渲染,设置覆盖在地图上的 view。
265
- *
266
- * 版本要求:基础库 1.23.0 及以上
267
251
  * @supported alipay
268
252
  */
269
253
  panels?: string
270
254
 
271
255
  /** 点击 panel 时触发。
272
- *
273
- * {
274
- *
275
- *    panelId,
276
- *
277
- *    layoutId,
278
- *
279
- * }
280
- *
281
- * 版本要求:基础库 1.23.0 及以上
282
256
  * @supported alipay
283
257
  */
284
- onPanelTap?: CommonEventFunction
258
+ onPanelTap?: CommonEventFunction<{ panelId, layoutId }>
285
259
 
286
260
  /** 地图初始化完成即将开始渲染第一帧时触发。
287
- *
288
- * 版本要求:基础库 2.7.2 及以上
289
261
  * @supported alipay
290
262
  */
291
263
  onInitComplete?: CommonEventFunction
@@ -86,10 +86,10 @@ interface MovableViewProps extends Omit<StandardProps, 'animation'> {
86
86
  */
87
87
  onChange?: CommonEventFunction<MovableViewProps.onChangeEventDetail>
88
88
 
89
- /** 缩放过程中触发的事件
90
- * @supported weapp, alipay, swan, tt, qq
89
+ /** 拖动结束触发的事件
90
+ * @supported alipay
91
91
  */
92
- onScale?: CommonEventFunction<MovableViewProps.onScaleEventDetail>
92
+ onChangeEnd?: CommonEventFunction<MovableViewProps.onChangeEventDetail>
93
93
 
94
94
  /** 开始拖动时触发
95
95
  * @supported rn
@@ -101,28 +101,36 @@ interface MovableViewProps extends Omit<StandardProps, 'animation'> {
101
101
  */
102
102
  onDragEnd?: CommonEventFunction
103
103
 
104
- /** 初次手指触摸后移动为横向的移动时触发,如果 catch 此事件,则意味着 touchmove 事件也被catch
105
- * @supported weapp, tt
104
+ /** 触摸动作结束,事件会向父节点传递。
105
+ * @supported alipay
106
106
  */
107
- catchTouchmove?: CommonEventFunction
107
+ onDragEnd?: CommonEventFunction
108
+
109
+ /** 缩放过程中触发的事件
110
+ * @supported weapp, alipay, swan, tt, qq
111
+ */
112
+ onScale?: CommonEventFunction<MovableViewProps.onScaleEventDetail>
108
113
 
109
114
  /** 触摸动作开始,事件会向父节点传递。
110
- * 版本要求: 基础库 1.11.5 及以上
111
115
  * @supported alipay
112
116
  */
113
117
  onTouchStart?: CommonEventFunction
114
118
 
115
119
  /** 触摸动作开始,事件仅作用于组件,不向父节点传递。
116
- * 版本要求: 基础库 1.11.5 及以上
117
120
  * @supported alipay
118
121
  */
119
- catchTouchStart?: CommonEventFunction
122
+ onTouchMove?: CommonEventFunction
123
+
124
+ /** 手指触摸动作结束
125
+ * @supported h5
126
+ * @h5 此事件的触发顺序会因为当前事件机制引起组件内外注册的事件执行顺序不正常,外部注册的事件可能会优先于内部执行,如需保证执行顺序一致,需要在回调函数中包裹 setTimeout 临时处理
127
+ */
128
+ onTouchEnd?: TouchEventFunction
120
129
 
121
- /** 触摸移动事件,事件会向父节点传递。
122
- * 版本要求: 基础库 1.11.5 及以上
130
+ /** 触摸动作被打断,如来电提醒、弹窗。
123
131
  * @supported alipay
124
132
  */
125
- onTouchMove?: CommonEventFunction
133
+ onTouchCancel?: CommonEventFunction
126
134
 
127
135
  /** 初次手指触摸后移动为横向的移动,如果 catch 此事件,则意味着 touchmove 事件也被 catch
128
136
  * @supported swan
@@ -135,30 +143,19 @@ interface MovableViewProps extends Omit<StandardProps, 'animation'> {
135
143
  onVTouchMove?: TouchEventFunction
136
144
 
137
145
  /** 触摸移动事件,事件仅作用于组件,不向父节点传递。
138
- * 版本要求: 基础库 1.11.5 及以上
139
146
  * @supported alipay
140
147
  */
141
- catchTouchMove?: CommonEventFunction
148
+ catchTouchStart?: CommonEventFunction
142
149
 
143
- /** 触摸动作结束,事件会向父节点传递。
144
- * @supported alipay
150
+ /** 触摸移动事件,事件仅作用于组件,不向父节点传递。
151
+ * @supported weapp, tt, alipay
145
152
  */
146
- onTouchEnd?: CommonEventFunction
153
+ catchTouchMove?: CommonEventFunction
147
154
 
148
155
  /** 触摸动作结束,事件仅作用于组件,不向父节点传递。
149
156
  * @supported alipay
150
157
  */
151
158
  catchTouchEnd?: CommonEventFunction
152
-
153
- /** 触摸动作被打断,如来电提醒、弹窗。
154
- * @supported alipay
155
- */
156
- onTouchCancel?: CommonEventFunction
157
-
158
- /** 拖动结束触发的事件
159
- * @supported alipay
160
- */
161
- onChangeEnd?: CommonEventFunction<MovableViewProps.onChangeEventDetail>
162
159
  }
163
160
  declare namespace MovableViewProps {
164
161
  /** 拖动过程中触发的事件 */
@@ -37,7 +37,7 @@ interface NavigationBarProps extends StandardProps {
37
37
  /** 页面导航条配置节点,用于指定导航栏的一些属性。只能是 PageMeta 组件内的第一个节点,需要配合它一同使用。
38
38
  * 通过这个节点可以获得类似于调用 Taro.setNavigationBarTitle Taro.setNavigationBarColor 等接口调用的效果。
39
39
  * @supported weapp
40
- * @see https://developers.weixin.qq.com/miniprogram/dev/component/open-data.html
40
+ * @see https://developers.weixin.qq.com/miniprogram/dev/component/navigation-bar.html
41
41
  */
42
42
  declare const NavigationBar: ComponentType<NavigationBarProps>
43
43
  export { NavigationBar, NavigationBarProps }
@@ -58,13 +58,11 @@ interface PickerViewProps extends StandardProps {
58
58
  ariaLabel?: string
59
59
 
60
60
  /** 当滚动选择开始时候触发事件。
61
- * 版本要求: 基础库 2.7.23 及以上
62
61
  * @supported alipay
63
62
  */
64
63
  onPickerStart?: CommonEventFunction
65
64
 
66
65
  /** 当滚动选择结束时候触发事件。
67
- * 版本要求: 基础库 2.7.23 及以上
68
66
  * @supported alipay
69
67
  */
70
68
  onPickerEnd?: CommonEventFunction