@tarojs/components 3.5.6-alpha.2 → 3.5.7-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) 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-area-core.cjs.entry.js +1 -1
  15. package/dist/cjs/taro-movable-view-core.cjs.entry.js +2 -2
  16. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +3 -1
  17. package/dist/cjs/taro-official-account-core.cjs.entry.js +3 -1
  18. package/dist/cjs/taro-open-data-core.cjs.entry.js +3 -1
  19. package/dist/cjs/taro-page-container-core.cjs.entry.js +3 -1
  20. package/dist/cjs/taro-page-meta-core.cjs.entry.js +3 -1
  21. package/dist/cjs/taro-root-portal-core.cjs.entry.js +3 -1
  22. package/dist/cjs/taro-share-element-core.cjs.entry.js +3 -1
  23. package/dist/cjs/taro-slot-core.cjs.entry.js +3 -1
  24. package/dist/cjs/taro-voip-room-core.cjs.entry.js +3 -1
  25. package/dist/collection/components/ad/ad.js +2 -2
  26. package/dist/collection/components/ad-custom/ad-custom.js +2 -2
  27. package/dist/collection/components/camera/camera.js +2 -2
  28. package/dist/collection/components/editor/editor.js +2 -2
  29. package/dist/collection/components/functional-page-navigator/functional-page-navigator.js +2 -2
  30. package/dist/collection/components/keyboard-accessory/keyboard-accessory.js +2 -2
  31. package/dist/collection/components/live-player/live-player.js +2 -2
  32. package/dist/collection/components/live-pusher/live-pusher.js +2 -2
  33. package/dist/collection/components/map/map.js +2 -2
  34. package/dist/collection/components/match-media/match-media.js +2 -2
  35. package/dist/collection/components/movable-area/area.css +2 -2
  36. package/dist/collection/components/movable-area/movable-view.js +2 -4
  37. package/dist/collection/components/navigation-bar/navigation-bar.js +2 -2
  38. package/dist/collection/components/official-account/official-account.js +2 -2
  39. package/dist/collection/components/open-data/open-data.js +2 -2
  40. package/dist/collection/components/page-container/page-container.js +2 -2
  41. package/dist/collection/components/page-meta/page-meta.js +2 -2
  42. package/dist/collection/components/root-portal/root-portal.js +2 -2
  43. package/dist/collection/components/share-element/share-element.js +2 -2
  44. package/dist/collection/components/slot/slot.js +2 -2
  45. package/dist/collection/components/voip-room/voip-room.js +2 -2
  46. package/dist/collection/utils/helper.js +10 -0
  47. package/dist/collection/utils/index.js +1 -0
  48. package/dist/esm/helper-3d0ecf0f.js +13 -0
  49. package/dist/esm/loader.js +1 -1
  50. package/dist/esm/taro-ad-core.entry.js +3 -1
  51. package/dist/esm/taro-ad-custom-core.entry.js +3 -1
  52. package/dist/esm/taro-camera-core.entry.js +3 -1
  53. package/dist/esm/taro-components.js +1 -1
  54. package/dist/esm/taro-editor-core.entry.js +3 -1
  55. package/dist/esm/taro-functional-page-navigator-core.entry.js +3 -1
  56. package/dist/esm/taro-keyboard-accessory-core.entry.js +3 -1
  57. package/dist/esm/taro-live-player-core.entry.js +3 -1
  58. package/dist/esm/taro-live-pusher-core.entry.js +3 -1
  59. package/dist/esm/taro-map-core.entry.js +3 -1
  60. package/dist/esm/taro-match-media-core.entry.js +3 -1
  61. package/dist/esm/taro-movable-area-core.entry.js +1 -1
  62. package/dist/esm/taro-movable-view-core.entry.js +3 -3
  63. package/dist/esm/taro-navigation-bar-core.entry.js +3 -1
  64. package/dist/esm/taro-official-account-core.entry.js +3 -1
  65. package/dist/esm/taro-open-data-core.entry.js +3 -1
  66. package/dist/esm/taro-page-container-core.entry.js +3 -1
  67. package/dist/esm/taro-page-meta-core.entry.js +3 -1
  68. package/dist/esm/taro-root-portal-core.entry.js +3 -1
  69. package/dist/esm/taro-share-element-core.entry.js +3 -1
  70. package/dist/esm/taro-slot-core.entry.js +3 -1
  71. package/dist/esm/taro-voip-room-core.entry.js +3 -1
  72. package/dist/esm-es5/helper-3d0ecf0f.js +1 -0
  73. package/dist/esm-es5/loader.js +1 -1
  74. package/dist/esm-es5/taro-ad-core.entry.js +1 -1
  75. package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
  76. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  77. package/dist/esm-es5/taro-components.js +1 -1
  78. package/dist/esm-es5/taro-editor-core.entry.js +1 -1
  79. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
  80. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
  81. package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
  82. package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
  83. package/dist/esm-es5/taro-map-core.entry.js +1 -1
  84. package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
  85. package/dist/esm-es5/taro-movable-area-core.entry.js +1 -1
  86. package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
  87. package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
  88. package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
  89. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  90. package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
  91. package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
  92. package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
  93. package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
  94. package/dist/esm-es5/taro-slot-core.entry.js +1 -1
  95. package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
  96. package/dist/taro-components/p-028e2728.entry.js +1 -0
  97. package/dist/taro-components/p-0380841f.system.js +1 -1
  98. package/dist/taro-components/p-06178a0c.entry.js +1 -0
  99. package/dist/taro-components/p-07294134.system.entry.js +1 -0
  100. package/dist/taro-components/p-075458e5.system.entry.js +1 -0
  101. package/dist/taro-components/p-15e45ed6.system.js +1 -0
  102. package/dist/taro-components/p-2ec47545.entry.js +1 -0
  103. package/dist/taro-components/p-3e11c8cc.system.entry.js +1 -0
  104. package/dist/taro-components/{p-f8b9c4b0.entry.js → p-42630f45.entry.js} +1 -1
  105. package/dist/taro-components/p-4cf436f9.entry.js +1 -0
  106. package/dist/taro-components/p-4d826fb7.entry.js +1 -0
  107. package/dist/taro-components/p-55266a1f.entry.js +1 -0
  108. package/dist/taro-components/p-57a2a441.entry.js +1 -0
  109. package/dist/taro-components/p-59d93770.entry.js +1 -0
  110. package/dist/taro-components/p-5a374cb9.entry.js +1 -0
  111. package/dist/taro-components/p-62fc514e.entry.js +1 -0
  112. package/dist/taro-components/p-6800ac6f.entry.js +1 -0
  113. package/dist/taro-components/p-6a96da58.js +1 -0
  114. package/dist/taro-components/p-6aa557f0.entry.js +1 -0
  115. package/dist/taro-components/p-6ad59489.system.entry.js +1 -0
  116. package/dist/taro-components/p-733cc64a.system.entry.js +1 -0
  117. package/dist/taro-components/p-7374537f.entry.js +1 -0
  118. package/dist/taro-components/p-7d329ab0.entry.js +1 -0
  119. package/dist/taro-components/p-7e960ac3.system.entry.js +1 -0
  120. package/dist/taro-components/p-8e2b048e.system.entry.js +1 -0
  121. package/dist/taro-components/p-9234cc1d.entry.js +1 -0
  122. package/dist/taro-components/p-93eed5d7.system.entry.js +1 -0
  123. package/dist/taro-components/p-9e1572c5.system.entry.js +1 -0
  124. package/dist/taro-components/p-afbcd093.entry.js +1 -0
  125. package/dist/taro-components/p-b11aaf69.system.entry.js +1 -0
  126. package/dist/taro-components/p-b1ae9401.entry.js +1 -0
  127. package/dist/taro-components/p-b60820b4.entry.js +1 -0
  128. package/dist/taro-components/p-b7681c76.system.entry.js +1 -0
  129. package/dist/taro-components/p-c5fd5c7f.system.entry.js +1 -0
  130. package/dist/taro-components/p-c92bafb6.system.entry.js +1 -0
  131. package/dist/taro-components/p-c93bb915.system.entry.js +1 -0
  132. package/dist/taro-components/p-cf048af9.entry.js +1 -0
  133. package/dist/taro-components/p-d075934f.system.entry.js +1 -0
  134. package/dist/taro-components/p-d4da725f.system.entry.js +1 -0
  135. package/dist/taro-components/p-d5f3080c.entry.js +1 -0
  136. package/dist/taro-components/p-d6662ab3.system.entry.js +1 -0
  137. package/dist/taro-components/p-f2803c2e.system.entry.js +1 -0
  138. package/dist/taro-components/p-f4ea8a56.system.entry.js +1 -0
  139. package/dist/taro-components/{p-1c775a11.system.entry.js → p-f5f1c3b7.system.entry.js} +1 -1
  140. package/dist/taro-components/p-f7c80795.system.entry.js +1 -0
  141. package/dist/taro-components/taro-components.esm.js +1 -1
  142. package/dist/types/components/ad/ad.d.ts +2 -1
  143. package/dist/types/components/ad-custom/ad-custom.d.ts +2 -1
  144. package/dist/types/components/camera/camera.d.ts +2 -1
  145. package/dist/types/components/editor/editor.d.ts +2 -1
  146. package/dist/types/components/functional-page-navigator/functional-page-navigator.d.ts +2 -1
  147. package/dist/types/components/keyboard-accessory/keyboard-accessory.d.ts +2 -1
  148. package/dist/types/components/live-player/live-player.d.ts +2 -1
  149. package/dist/types/components/live-pusher/live-pusher.d.ts +2 -1
  150. package/dist/types/components/map/map.d.ts +2 -1
  151. package/dist/types/components/match-media/match-media.d.ts +2 -1
  152. package/dist/types/components/navigation-bar/navigation-bar.d.ts +2 -1
  153. package/dist/types/components/official-account/official-account.d.ts +2 -1
  154. package/dist/types/components/open-data/open-data.d.ts +2 -1
  155. package/dist/types/components/page-container/page-container.d.ts +2 -1
  156. package/dist/types/components/page-meta/page-meta.d.ts +2 -1
  157. package/dist/types/components/root-portal/root-portal.d.ts +2 -1
  158. package/dist/types/components/share-element/share-element.d.ts +2 -1
  159. package/dist/types/components/slot/slot.d.ts +2 -1
  160. package/dist/types/components/voip-room/voip-room.d.ts +2 -1
  161. package/dist/types/utils/helper.d.ts +1 -0
  162. package/dist/types/utils/index.d.ts +1 -0
  163. package/mini/index.js +1 -0
  164. package/package.json +8 -7
  165. package/types/Ad.d.ts +0 -1
  166. package/types/Button.d.ts +3 -7
  167. package/types/Camera.d.ts +40 -8
  168. package/types/Canvas.d.ts +1 -17
  169. package/types/CoverImage.d.ts +0 -1
  170. package/types/CoverView.d.ts +0 -1
  171. package/types/Image.d.ts +0 -11
  172. package/types/Input.d.ts +3 -4
  173. package/types/LivePlayer.d.ts +6 -0
  174. package/types/Map.d.ts +13 -46
  175. package/types/MovableView.d.ts +21 -33
  176. package/types/NavigationBar.d.ts +1 -1
  177. package/types/PageContainer.d.ts +1 -4
  178. package/types/Picker.d.ts +1 -5
  179. package/types/PickerView.d.ts +2 -14
  180. package/types/ScrollView.d.ts +22 -23
  181. package/types/Swiper.d.ts +0 -9
  182. package/types/Switch.d.ts +0 -1
  183. package/types/Textarea.d.ts +0 -2
  184. package/types/Video.d.ts +14 -18
  185. package/types/View.d.ts +1 -20
  186. package/types/VoipRoom.d.ts +1 -1
  187. package/types/WebView.d.ts +6 -0
  188. package/dist/collection/utils/json-schema-to-types.js +0 -224
  189. package/dist/taro-components/p-0414632d.system.entry.js +0 -1
  190. package/dist/taro-components/p-10e5df98.system.entry.js +0 -1
  191. package/dist/taro-components/p-14058364.system.entry.js +0 -1
  192. package/dist/taro-components/p-1a638246.system.entry.js +0 -1
  193. package/dist/taro-components/p-1e530acd.entry.js +0 -1
  194. package/dist/taro-components/p-22e33350.entry.js +0 -1
  195. package/dist/taro-components/p-24a66088.system.entry.js +0 -1
  196. package/dist/taro-components/p-2fd0250d.system.entry.js +0 -1
  197. package/dist/taro-components/p-3c7cdf6f.entry.js +0 -1
  198. package/dist/taro-components/p-410d449f.entry.js +0 -1
  199. package/dist/taro-components/p-443fb8b0.entry.js +0 -1
  200. package/dist/taro-components/p-44fa48b9.system.entry.js +0 -1
  201. package/dist/taro-components/p-481a8bc1.system.entry.js +0 -1
  202. package/dist/taro-components/p-49b64020.entry.js +0 -1
  203. package/dist/taro-components/p-4e8d4a72.system.entry.js +0 -1
  204. package/dist/taro-components/p-4f0e98c0.system.entry.js +0 -1
  205. package/dist/taro-components/p-4f805045.entry.js +0 -1
  206. package/dist/taro-components/p-5e3bd0db.system.entry.js +0 -1
  207. package/dist/taro-components/p-6da73376.entry.js +0 -1
  208. package/dist/taro-components/p-7325d380.entry.js +0 -1
  209. package/dist/taro-components/p-77ad7941.entry.js +0 -1
  210. package/dist/taro-components/p-7ab91097.entry.js +0 -1
  211. package/dist/taro-components/p-7b96cec3.system.entry.js +0 -1
  212. package/dist/taro-components/p-7e23b551.entry.js +0 -1
  213. package/dist/taro-components/p-7f0a12a9.entry.js +0 -1
  214. package/dist/taro-components/p-840ef0c3.system.entry.js +0 -1
  215. package/dist/taro-components/p-89c876a6.system.entry.js +0 -1
  216. package/dist/taro-components/p-90a6c15a.entry.js +0 -1
  217. package/dist/taro-components/p-95a36917.entry.js +0 -1
  218. package/dist/taro-components/p-9965cf11.system.entry.js +0 -1
  219. package/dist/taro-components/p-9fcb40a3.entry.js +0 -1
  220. package/dist/taro-components/p-a8c9b126.system.entry.js +0 -1
  221. package/dist/taro-components/p-aa5d45de.system.entry.js +0 -1
  222. package/dist/taro-components/p-b3693ca2.system.entry.js +0 -1
  223. package/dist/taro-components/p-b83c3eca.system.entry.js +0 -1
  224. package/dist/taro-components/p-c0c8b2be.entry.js +0 -1
  225. package/dist/taro-components/p-c8da5c10.entry.js +0 -1
  226. package/dist/taro-components/p-d72075ef.system.entry.js +0 -1
  227. package/dist/taro-components/p-db1f2db7.entry.js +0 -1
  228. package/dist/taro-components/p-e3f39099.entry.js +0 -1
  229. package/dist/types/utils/json-schema-to-types.d.ts +0 -25
@@ -0,0 +1 @@
1
+ var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(e){return u([t,e])}}function u(s){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(a=s[0]&2?r["return"]:s[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;if(r=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;r=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1];a=s;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(s);break}if(a[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(t){s=[6,t];r=0}finally{i=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-44cbb351.system.js"],(function(t){"use strict";var e,n,i,r,a;return{setters:[function(t){e=t.r;n=t.c;i=t.h;r=t.g;a=t.H}],execute:function(){var s="taro-movable-view-core{display:inline-block;position:absolute;left:0;top:0;width:10px;height:10px}";var o=undefined&&undefined.__awaiter||function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function s(t){try{u(i.next(t))}catch(t){a(t)}}function o(t){try{u(i["throw"](t))}catch(t){a(t)}}function u(t){t.done?n(t.value):r(t.value).then(s,o)}u((i=i.apply(t,e||[])).next())}))};var u=t("taro_movable_view_core",function(){function t(t){var i=this;e(this,t);this.onChange=n(this,"change",7);this.onScale=n(this,"scale",7);this.onHTouchMove=n(this,"htouchmove",7);this.onVTouchMove=n(this,"vtouchmove",7);this.x=0;this.y=0;this.direction="none";this.outOfBounds=false;this.inertia=false;this.friction=2;this.damping=20;this.disabled=false;this.scale=false;this.scaleMin=.5;this.scaleMax=10;this.scaleValue=1;this.animation=true;this.translateX=0;this.translateY=0;this.origin={x:0,y:0};this.area={width:0,height:0};this.originScale=1;this.currentScale=1;this.width=0;this.height=0;this.minX=0;this.minY=0;this.maxX=0;this.maxY=0;this.baseX=0;this.baseY=0;this.offset={x:0,y:0};this.scaleOffset={x:0,y:0};this.getLimitXY=function(t,e){var n=false;t>i.maxX?(t=i.maxX,n=true):t<i.minX&&(t=i.minX,n=true);e>i.maxY?(e=i.maxY,n=true):e<i.minY&&(e=i.minY,n=true);return{x:t,y:e,outOfBounds:n}};this.animationTo=function(t,e,n,r,a,s,o){if(i.animation){i.setTransform(t,e,n,r,a,s);o===null||o===void 0?void 0:o()}else{i.setTransform(t,e,n,r,a,s)}};this.setTransform=function(t,e,n,r,a,s){t=Number(t.toFixed(1));e=Number(e.toFixed(1));n=Number((n!==null&&n!==void 0?n:i.currentScale).toFixed(3));if(!i.outOfBounds){var o=i.getLimitXY(t,e);t=o.x;e=o.y}var u=function(t,e){return+((1e3*t-1e3*e)/1e3).toFixed(1)};var c=u(t,i.scaleOffset.x);var l=u(e,i.scaleOffset.y);if(i.translateX!==t||i.translateY!==e){!a&&i.onChange.emit({x:c,y:l,source:r})}if(n!==i.currentScale){s&&i.onScale.emit({scale:n,x:c,y:l})}var h="translateX("+t+"px) translateY("+e+"px) translateZ(0px) scale("+n+")";i.element.style.transform=h;i.element.style.webkitTransform=h;i.translateX=t;i.translateY=e;i.currentScale=n};this.updateOffset=function(){var t=function(e,n){if(e===n||!e.offsetParent){return{left:0,top:0}}var i=t(e.offsetParent,n);return{left:e.offsetLeft+i.left,top:e.offsetTop+i.top}};if(!i.parent){return}var e=t(i.element,i.parent);i.offset.x=e.left;i.offset.y=e.top};this.updateScaleOffset=function(t){if(t===void 0){t=i.currentScale}var e=i.element.getBoundingClientRect();i.height=e.height/i.currentScale;i.width=e.width/i.currentScale;i.scaleOffset.x=(i.width*t-i.width)/2;i.scaleOffset.y=(i.height*t-i.height)/2};this.updateBoundary=function(){var t=0-i.offset.x+i.scaleOffset.x;var e=i.area.width-i.width-i.offset.x-i.scaleOffset.x;i.minX=Math.min(t,e);i.maxX=Math.max(t,e);var n=0-i.offset.y+i.scaleOffset.y;var r=i.area.height-i.height-i.offset.y-i.scaleOffset.y;i.minY=Math.min(n,r);i.maxY=Math.max(n,r)};this.updateScale=function(t,e,n){if(!i.scale){return}var r=i.adjustScale(t);i.updateScaleOffset(r);i.updateBoundary();var a=i.getLimitXY(i.translateX,i.translateY),s=a.x,o=a.y;if(e){i.animationTo(s,o,r,"",true,true,n)}else if(!i.updating){i.updating=true;requestAnimationFrame((function(){i.setTransform(s,o,r,"",true,true);i.updating=false}))}};this.setOriginScale=function(t){i.originScale=t};this.adjustScale=function(t){return Math.min(10,i.scaleMax,Math.max(.5,i.scaleMin,t))};this.handleTouchStart=function(t){var e=t.touches;if(i.disabled||e.length>1||!i.element){return}var n=e[0];i.touching=true;i.firstMoveFireEvent=false;i.origin.x=n.screenX;i.origin.y=n.screenY;i.baseX=i.translateX;i.baseY=i.translateY;i.element.style.willChange="transform"};this.handleTouchMove=function(t){var e=t.touches;if(i.disabled||!i.element||i.scaling||!i.touching||e.length>1){return}t.preventDefault();var n=e[0];var r=n.screenX-i.origin.x;var a=n.screenY-i.origin.y;i.setTransform(i.xMove?r+i.baseX:0,i.yMove?a+i.baseY:0);if(!i.firstMoveFireEvent){i.firstMoveFireEvent=true;var s=Math.abs(r)>Math.abs(a)?i.onHTouchMove:i.onVTouchMove;s.emit({originalEvent:t,bubbles:false,capturePhase:false,composed:true,extraFields:{touches:t.touches||{},changedTouches:t.changedTouches||{}}})}};this.handleTouchEnd=function(t){var e=t.changedTouches[0];if(i.disabled||!i.touching||!e){return}i.touching=false;var n=e.screenX-i.origin.x;var r=e.screenY-i.origin.y;i.setTransform(i.xMove?n+i.baseX:0,i.yMove?r+i.baseY:0)}}t.prototype.watchX=function(t){this.setTransform(parseFloat(""+(t||0)),this.translateY)};t.prototype.watchY=function(t){this.setTransform(this.translateX,parseFloat(""+(t||0)))};t.prototype.watchScaleMinOrMax=function(){if(!this.scale)return false;this.updateScale(this.currentScale,true);this.setOriginScale(this.currentScale)};t.prototype.watchScaleValue=function(t){if(!this.scale){return false}this.updateScale(t,true);this.setOriginScale(t);return t};t.prototype.setParent=function(t){var e=t.element,n=t.area;return o(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){t=this.scale?this.scaleValue:1;this.area=n;this.parent=e;this.updateOffset();this.updateScaleOffset(t);this.updateBoundary();this.setTransform(Number(this.x)+this.scaleOffset.x,Number(this.y)+this.scaleOffset.y,t,"",true);this.setOriginScale(t);return[2]}))}))};t.prototype.endScale=function(){return o(this,void 0,void 0,(function(){return __generator(this,(function(t){this.scaling=false;this.setOriginScale(this.currentScale);return[2]}))}))};t.prototype.setScale=function(t){return o(this,void 0,void 0,(function(){return __generator(this,(function(e){if(!this.scale){return[2]}this.scaling=true;this.updateScale(t*this.originScale);return[2]}))}))};t.prototype.connectedCallback=function(){var t=this;this.observer=new MutationObserver((function(e){e.forEach((function(e){var n=e.attributeName;if(n&&["class","style"].includes(n)){var i=e.oldValue;var r=e.target.getAttribute(n);if(i===r){return}var a=function(t){return t===null||t===void 0?void 0:t.split(";").filter((function(t){return!["transform","will-change"].find((function(e){return t.trim().startsWith(e)}))})).join(";")};if(n==="style"&&a(r)===a(i)){return}t.updateOffset();t.updateScaleOffset();t.updateBoundary();t.setTransform(t.translateX,t.translateY)}}))}));this.observer.observe(this.element,{attributes:true,attributeOldValue:true})};t.prototype.disconnectedCallback=function(){var t;(t=this.observer)===null||t===void 0?void 0:t.disconnect()};t.prototype.componentDidLoad=function(){this.element.style.transformOrigin="center";this.xMove=["horizontal","all"].includes(this.direction);this.yMove=["vertical","all"].includes(this.direction);if(this.friction<=0){this.friction=2}if(this.x||this.y){var t=parseFloat(""+(this.x||0));var e=parseFloat(""+(this.y||0));this.setTransform(t,e)}};t.prototype.render=function(){return i(a,{onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd})};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{x:["watchX"],y:["watchY"],scaleMin:["watchScaleMinOrMax"],scaleMax:["watchScaleMinOrMax"],scaleValue:["watchScaleValue"]}},enumerable:false,configurable:true});return t}());u.style=s}}}));
@@ -0,0 +1 @@
1
+ import{r,h as o,H as s}from"./p-059912fd.js";import{n as a}from"./p-6a96da58.js";import"@tarojs/taro";let t=class{constructor(o){r(this,o)}componentDidLoad(){a("KeyboardAccessory",this)}render(){return o(s,null)}};export{t as taro_keyboard_accessory_core}
@@ -0,0 +1 @@
1
+ System.register(["./p-44cbb351.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var n,o,r,e;return{setters:[function(t){n=t.r;o=t.h;r=t.H},function(t){e=t.n},function(){}],execute:function(){var s=t("taro_root_portal_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){e("RootPortal",this)};t.prototype.render=function(){return o(r,null)};return t}())}}}));
@@ -0,0 +1 @@
1
+ import{r,h as o,H as t}from"./p-059912fd.js";import{n as a}from"./p-6a96da58.js";import"@tarojs/taro";let s=class{constructor(o){r(this,o)}componentDidLoad(){a("PageContainer",this)}render(){return o(t,null)}};export{s as taro_page_container_core}
@@ -0,0 +1 @@
1
+ import{r as o,h as r,H as t}from"./p-059912fd.js";import{n as a}from"./p-6a96da58.js";import"@tarojs/taro";let s=class{constructor(r){o(this,r)}componentDidLoad(){a("RootPortal",this)}render(){return r(t,null)}};export{s as taro_root_portal_core}
@@ -0,0 +1 @@
1
+ System.register(["./p-44cbb351.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var n,e,o,r;return{setters:[function(t){n=t.r;e=t.h;o=t.H},function(t){r=t.n},function(){}],execute:function(){var s=t("taro_ad_custom_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){r("AdCustom",this)};t.prototype.render=function(){return e(o,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,o,r;return{setters:[function(t){n=t.r;e=t.h;o=t.H},function(t){r=t.n},function(){}],execute:function(){var i=t("taro_functional_page_navigator_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){r("FunctionalPageNavigator",this)};t.prototype.render=function(){return e(o,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,o,r;return{setters:[function(t){n=t.r;e=t.h;o=t.H},function(t){r=t.n},function(){}],execute:function(){var s=t("taro_slot_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){r("Slot",this)};t.prototype.render=function(){return e(o,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,r,e,o;return{setters:[function(t){n=t.r;r=t.h;e=t.H},function(t){o=t.n},function(){}],execute:function(){var i=t("taro_navigation_bar_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){o("NavigationBar",this)};t.prototype.render=function(){return r(e,null)};return t}())}}}));
@@ -0,0 +1 @@
1
+ import{r as a,h as o,H as r}from"./p-059912fd.js";import{n as t}from"./p-6a96da58.js";import"@tarojs/taro";let n=class{constructor(o){a(this,o)}componentDidLoad(){t("FunctionalPageNavigator",this)}render(){return o(r,null)}};export{n as taro_functional_page_navigator_core}
@@ -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 i=t("taro_live_player_core",function(){function t(t){e(this,t)}t.prototype.componentDidLoad=function(){o("LivePlayer",this)};t.prototype.render=function(){return n(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 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 i=t("taro_editor_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){o("Editor",this)};t.prototype.render=function(){return e(r,null)};return t}())}}}));
@@ -0,0 +1 @@
1
+ import{r,h as o,H as t}from"./p-059912fd.js";import{n as s}from"./p-6a96da58.js";import"@tarojs/taro";let a=class{constructor(o){r(this,o)}componentDidLoad(){s("Editor",this)}render(){return o(t,null)}};export{a as taro_editor_core}
@@ -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_page_meta_core",function(){function t(t){e(this,t)}t.prototype.componentDidLoad=function(){o("PageMeta",this)};t.prototype.render=function(){return n(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 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}())}}}));
@@ -1 +1 @@
1
- System.register(["./p-44cbb351.system.js"],(function(e){"use strict";var t,n,a,i;return{setters:[function(e){t=e.r;n=e.h;a=e.g;i=e.H}],execute:function(){var r="taro-movable-area-core{display:block;height:10px;width:10px;position:relative}";var o=e("taro_movable_area_core",function(){function e(e){var n=this;t(this,e);this.views=[];this.scaleLength=0;this.viewsChanged=function(){n.views=[];var e=n.element.querySelectorAll("taro-movable-view-core");Array.from(e).forEach((function(e){n.views.push(e)}));n.updateArea()};this.handleTouchStart=function(e){var t=e.touches;if(!t||t.length<=1){return}var a={width:t[1].pageX-t[0].pageX,height:t[1].pageY-t[0].pageY};n.scaleLength=Math.sqrt(a.width*a.width+a.height*a.height);if(n.scaleArea){return}var i=function(e,t){var n=function(e,t){if(!(e=e.parentNode)){return false}return(!(e instanceof HTMLElement)||e!==document.body)&&(e===t||e===t.element||e.element===t||n(e,t))};for(var a=0;a<t.length;a++){var i=t[a];if(e===i["element"]||n(e,i)){return i}}};var r=i(t[0].target,n.views);var o=i(t[1].target,n.views);n.scaleTarget=r&&r===o?r:undefined};this.handleTouchMove=function(e){var t=e.touches;if(!t||t.length<=1){return}e.preventDefault();var a={width:t[1].pageX-t[0].pageX,height:t[1].pageY-t[0].pageY};if(n.scaleLength>0){n.updateScale(Math.sqrt(a.width*a.width+a.height*a.height)/n.scaleLength)}};this.handleTouchEnd=function(e){var t,a;if(e.touches&&e.touches.length||!e.changedTouches){return}n.scaleLength=0;if(n.scaleArea){n.views.forEach((function(e){var t;(t=e["endScale"])===null||t===void 0?void 0:t.call(e)}))}else{(a=(t=n.scaleTarget)===null||t===void 0?void 0:t["endScale"])===null||a===void 0?void 0:a.call(t)}n.scaleTarget=undefined};this.updateScale=function(e){var t,a;if(!e||e===1){return}if(n.scaleArea){n.views.forEach((function(t){var n;(n=t["setScale"])===null||n===void 0?void 0:n.call(t,e)}))}else{(a=(t=n.scaleTarget)===null||t===void 0?void 0:t["setScale"])===null||a===void 0?void 0:a.call(t,e)}};this.updateArea=function(){var e=window.getComputedStyle(n.element);var t=n.element.getBoundingClientRect();var a=["Left","Right"].map((function(t){return parseFloat(e["border"+t+"Width"])+parseFloat(e["padding"+t])}));var i=["Top","Bottom"].map((function(t){return parseFloat(e["border"+t+"Width"])+parseFloat(e["padding"+t])}));n.views.forEach((function(e){var r;(r=e["setParent"])===null||r===void 0?void 0:r.call(e,{element:n.element,area:{height:t.height-i[0]-i[1],width:t.width-a[0]-a[1]}})}))}}e.prototype.connectedCallback=function(){var e=this;this.observer=new MutationObserver((function(t){t.forEach((function(t){var n,a;if(t.attributeName==="class"||t.attributeName==="style"){var i=e.element.offsetWidth;var r=e.element.offsetHeight;if(i!==((n=e.offset)===null||n===void 0?void 0:n.width)||r!==((a=e.offset)===null||a===void 0?void 0:a.height)){e.updateArea()}e.offset={width:i,height:r}}}))}));this.observer.observe(this.element,{attributes:true})};e.prototype.disconnectedCallback=function(){var e;(e=this.observer)===null||e===void 0?void 0:e.disconnect()};e.prototype.componentDidLoad=function(){this.viewsChanged()};e.prototype.render=function(){return n(i,{onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd})};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());o.style=r}}}));
1
+ System.register(["./p-44cbb351.system.js"],(function(e){"use strict";var t,n,a,i;return{setters:[function(e){t=e.r;n=e.h;a=e.g;i=e.H}],execute:function(){var r="taro-movable-area-core{display:block;position:relative;width:10px;height:10px}";var o=e("taro_movable_area_core",function(){function e(e){var n=this;t(this,e);this.views=[];this.scaleLength=0;this.viewsChanged=function(){n.views=[];var e=n.element.querySelectorAll("taro-movable-view-core");Array.from(e).forEach((function(e){n.views.push(e)}));n.updateArea()};this.handleTouchStart=function(e){var t=e.touches;if(!t||t.length<=1){return}var a={width:t[1].pageX-t[0].pageX,height:t[1].pageY-t[0].pageY};n.scaleLength=Math.sqrt(a.width*a.width+a.height*a.height);if(n.scaleArea){return}var i=function(e,t){var n=function(e,t){if(!(e=e.parentNode)){return false}return(!(e instanceof HTMLElement)||e!==document.body)&&(e===t||e===t.element||e.element===t||n(e,t))};for(var a=0;a<t.length;a++){var i=t[a];if(e===i["element"]||n(e,i)){return i}}};var r=i(t[0].target,n.views);var o=i(t[1].target,n.views);n.scaleTarget=r&&r===o?r:undefined};this.handleTouchMove=function(e){var t=e.touches;if(!t||t.length<=1){return}e.preventDefault();var a={width:t[1].pageX-t[0].pageX,height:t[1].pageY-t[0].pageY};if(n.scaleLength>0){n.updateScale(Math.sqrt(a.width*a.width+a.height*a.height)/n.scaleLength)}};this.handleTouchEnd=function(e){var t,a;if(e.touches&&e.touches.length||!e.changedTouches){return}n.scaleLength=0;if(n.scaleArea){n.views.forEach((function(e){var t;(t=e["endScale"])===null||t===void 0?void 0:t.call(e)}))}else{(a=(t=n.scaleTarget)===null||t===void 0?void 0:t["endScale"])===null||a===void 0?void 0:a.call(t)}n.scaleTarget=undefined};this.updateScale=function(e){var t,a;if(!e||e===1){return}if(n.scaleArea){n.views.forEach((function(t){var n;(n=t["setScale"])===null||n===void 0?void 0:n.call(t,e)}))}else{(a=(t=n.scaleTarget)===null||t===void 0?void 0:t["setScale"])===null||a===void 0?void 0:a.call(t,e)}};this.updateArea=function(){var e=window.getComputedStyle(n.element);var t=n.element.getBoundingClientRect();var a=["Left","Right"].map((function(t){return parseFloat(e["border"+t+"Width"])+parseFloat(e["padding"+t])}));var i=["Top","Bottom"].map((function(t){return parseFloat(e["border"+t+"Width"])+parseFloat(e["padding"+t])}));n.views.forEach((function(e){var r;(r=e["setParent"])===null||r===void 0?void 0:r.call(e,{element:n.element,area:{height:t.height-i[0]-i[1],width:t.width-a[0]-a[1]}})}))}}e.prototype.connectedCallback=function(){var e=this;this.observer=new MutationObserver((function(t){t.forEach((function(t){var n,a;if(t.attributeName==="class"||t.attributeName==="style"){var i=e.element.offsetWidth;var r=e.element.offsetHeight;if(i!==((n=e.offset)===null||n===void 0?void 0:n.width)||r!==((a=e.offset)===null||a===void 0?void 0:a.height)){e.updateArea()}e.offset={width:i,height:r}}}))}));this.observer.observe(this.element,{attributes:true})};e.prototype.disconnectedCallback=function(){var e;(e=this.observer)===null||e===void 0?void 0:e.disconnect()};e.prototype.componentDidLoad=function(){this.viewsChanged()};e.prototype.render=function(){return n(i,{onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd})};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());o.style=r}}}));
@@ -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-42630f45",[[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-alpha.0",
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-alpha.0",
36
+ "@tarojs/taro": "3.5.7-alpha.0",
37
37
  "better-scroll": "^1.14.1",
38
38
  "classnames": "^2.2.5",
39
39
  "hls.js": "^1.1.5",
@@ -49,11 +49,11 @@
49
49
  "jquery": "^3.4.1",
50
50
  "karmatic": "^2.1.0",
51
51
  "lodash": "^4.17.21",
52
- "miniapp-types": "1.1.8",
53
- "react": "^17.0.2",
54
- "react-dom": "^17.0.2",
52
+ "miniapp-types": "latest",
55
53
  "simulant": "^0.2.2",
56
54
  "style-loader": "1.3.0",
55
+ "ts-node": "^10.9.1",
56
+ "typescript": "^4.7.4",
57
57
  "webpack": "4.46.0",
58
58
  "workbox-build": "4.3.1"
59
59
  },
@@ -75,6 +75,7 @@
75
75
  "test": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
76
76
  "test:ci": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
77
77
  "test:debug": "karmatic debug --files '__tests__/setup.js,__tests__/**.spec.js' --coverage false",
78
- "test:coverage": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js'"
78
+ "test:coverage": "karmatic --files '__tests__/setup.js,__tests__/**.spec.js'",
79
+ "sync:types": "ts-node scripts/json-schema-to-types.ts"
79
80
  }
80
81
  }
package/types/Ad.d.ts CHANGED
@@ -191,7 +191,6 @@ declare namespace AdProps {
191
191
  */
192
192
  1008
193
193
  }
194
-
195
194
  interface onSizeEventDetail {
196
195
  width: number
197
196
  height: number
package/types/Button.d.ts CHANGED
@@ -135,7 +135,7 @@ interface ButtonProps extends StandardProps {
135
135
  /** 用户点击该按钮时,会返回获取到的用户信息,回调的detail数据与 Taro.getUserInfo 返回的一致
136
136
  *
137
137
  * 生效时机: `open-type="getUserInfo"`
138
- * @supported weapp, swan, qq, jd
138
+ * @supported weapp, alipay, swan, qq, jd
139
139
  */
140
140
  onGetUserInfo?: CommonEventFunction<ButtonProps.onGetUserInfoEventDetail>
141
141
 
@@ -156,7 +156,7 @@ interface ButtonProps extends StandardProps {
156
156
  /** 获取用户手机号回调
157
157
  *
158
158
  * 生效时机:`open-type="getphonenumber"`
159
- * @supported weapp, swan, tt, jd
159
+ * @supported weapp, alipay, swan, tt, jd
160
160
  */
161
161
  onGetPhoneNumber?: CommonEventFunction<ButtonProps.onGetPhoneNumberEventDetail>
162
162
 
@@ -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<{
@@ -331,10 +330,7 @@ declare namespace ButtonProps {
331
330
  }
332
331
 
333
332
  /** open-type 的合法值 */
334
- type OpenType =
335
- | keyof openTypeKeys['weapp']
336
- | keyof openTypeKeys['alipay']
337
- | keyof openTypeKeys['qq']
333
+ type OpenType = keyof openTypeKeys['weapp'] | keyof openTypeKeys['alipay'] | keyof openTypeKeys['qq']
338
334
 
339
335
  /** open-type 的合法值 */
340
336
  interface openTypeKeys {
package/types/Camera.d.ts CHANGED
@@ -3,7 +3,7 @@ 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, alipay, tt, qq, jd, rn
7
7
  */
8
8
  mode?: keyof CameraProps.Mode
9
9
 
@@ -15,30 +15,36 @@ interface CameraProps extends StandardProps {
15
15
 
16
16
  /** 摄像头朝向
17
17
  * @default "back"
18
- * @supported weapp, swan, tt, qq, jd, rn
18
+ * @supported weapp, alipay, swan, tt, qq, jd, rn
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, alipay, swan, tt, qq, jd, rn
25
25
  */
26
26
  flash?: keyof CameraProps.Flash
27
27
 
28
28
  /** 指定期望的相机帧数据尺寸
29
29
  * @default "medium"
30
- * @supported weapp, tt
30
+ * @supported weapp, alipay, tt
31
31
  */
32
32
  frameSize?: keyof CameraProps.FrameSize
33
33
 
34
+ /** 相机拍照,录制的分辨率。
35
+ * @supported alipay
36
+ * @default "720P"
37
+ */
38
+ outputDimension?: '360P' | '540P' | '720P' | '1080P' | 'max'
39
+
34
40
  /** 摄像头在非正常终止时触发,
35
41
  * 如退出后台等情况
36
- * @supported weapp, swan, tt, qq, jd, rn
42
+ * @supported weapp, alipay, swan, tt, qq, jd, rn
37
43
  */
38
44
  onStop?: CommonEventFunction
39
45
 
40
46
  /** 用户不允许使用摄像头时触发
41
- * @supported weapp, swan, tt, qq, jd, rn
47
+ * @supported weapp, alipay, swan, tt, qq, jd, rn
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, alipay, tt, qq, rn
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
@@ -1,10 +1,5 @@
1
1
  import { ComponentType } from 'react'
2
- import {
3
- StandardProps,
4
- CommonEventFunction,
5
- CanvasTouchEventFunction,
6
- CanvasTouchEvent,
7
- } from './common'
2
+ import { StandardProps, CommonEventFunction, CanvasTouchEventFunction, CanvasTouchEvent } from './common'
8
3
  interface CanvasProps extends StandardProps<any, CanvasTouchEvent> {
9
4
  /** 指定 canvas 类型,支持 2d 和 webgl
10
5
  * @supported weapp, alipay, tt
@@ -63,16 +58,6 @@ interface CanvasProps extends StandardProps<any, CanvasTouchEvent> {
63
58
  */
64
59
  id?: string
65
60
 
66
- /** -
67
- * @supported alipay
68
- */
69
- style?: string
70
-
71
- /** -
72
- * @supported alipay
73
- */
74
- class?: string
75
-
76
61
  /**
77
62
  * @supported alipay
78
63
  */
@@ -89,7 +74,6 @@ interface CanvasProps extends StandardProps<any, CanvasTouchEvent> {
89
74
  onTap?: CommonEventFunction
90
75
 
91
76
  /** canvas 组件初始化成功触发。
92
- * 版本要求:基础库 2.7.0 及以上
93
77
  * @supported alipay
94
78
  */
95
79
  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