wevu 7.1.0 → 7.1.2

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 (351) hide show
  1. package/dist/alipay/jsx-runtime.d.mts +2 -3
  2. package/dist/dev/package.mjs +1 -1
  3. package/dist/dev/router/createRouter.mjs +16 -3
  4. package/dist/dev/router/createRouter.mjs.map +1 -1
  5. package/dist/dev/router/useRoute.mjs +23 -5
  6. package/dist/dev/router/useRoute.mjs.map +1 -1
  7. package/dist/dev/runtime/platform.mjs +18 -1
  8. package/dist/dev/runtime/platform.mjs.map +1 -1
  9. package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs +4 -2
  10. package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs.map +1 -1
  11. package/dist/dev/runtime/templateRefTypes.d.mts +3 -3
  12. package/dist/dev/runtime/vueCompat/router.d.mts +5 -4
  13. package/dist/dev/runtime/vueCompat/router.mjs +18 -13
  14. package/dist/dev/runtime/vueCompat/router.mjs.map +1 -1
  15. package/dist/miniprogram/jsx-runtime.d.mts +2 -3
  16. package/dist/package.mjs +1 -1
  17. package/dist/router/createRouter.mjs +1 -1
  18. package/dist/router/useRoute.mjs +1 -1
  19. package/dist/runtime/platform.mjs +1 -1
  20. package/dist/runtime/register/runtimeInstance/setupPhase.mjs +1 -1
  21. package/dist/runtime/templateRefTypes.d.mts +3 -3
  22. package/dist/runtime/vueCompat/router.d.mts +5 -4
  23. package/dist/runtime/vueCompat/router.mjs +1 -1
  24. package/dist/tt/jsx-runtime.d.mts +2 -3
  25. package/dist/weapp/jsx-runtime.d.mts +2 -3
  26. package/package.json +12 -8
  27. package/dist/alipayIntrinsicElements/base.d.mts +0 -4
  28. package/dist/alipayIntrinsicElements/elements/button.d.mts +0 -29
  29. package/dist/alipayIntrinsicElements/elements/camera.d.mts +0 -18
  30. package/dist/alipayIntrinsicElements/elements/canvas.d.mts +0 -20
  31. package/dist/alipayIntrinsicElements/elements/checkbox-group.d.mts +0 -11
  32. package/dist/alipayIntrinsicElements/elements/checkbox.d.mts +0 -14
  33. package/dist/alipayIntrinsicElements/elements/contact-button.d.mts +0 -15
  34. package/dist/alipayIntrinsicElements/elements/cover-image.d.mts +0 -11
  35. package/dist/alipayIntrinsicElements/elements/cover-view.d.mts +0 -11
  36. package/dist/alipayIntrinsicElements/elements/error-view.d.mts +0 -14
  37. package/dist/alipayIntrinsicElements/elements/form.d.mts +0 -12
  38. package/dist/alipayIntrinsicElements/elements/icon.d.mts +0 -11
  39. package/dist/alipayIntrinsicElements/elements/image.d.mts +0 -17
  40. package/dist/alipayIntrinsicElements/elements/input.d.mts +0 -31
  41. package/dist/alipayIntrinsicElements/elements/join-group-chat.d.mts +0 -9
  42. package/dist/alipayIntrinsicElements/elements/label.d.mts +0 -9
  43. package/dist/alipayIntrinsicElements/elements/lifestyle.d.mts +0 -11
  44. package/dist/alipayIntrinsicElements/elements/lottie.d.mts +0 -25
  45. package/dist/alipayIntrinsicElements/elements/map.d.mts +0 -44
  46. package/dist/alipayIntrinsicElements/elements/match-media.d.mts +0 -15
  47. package/dist/alipayIntrinsicElements/elements/movable-area.d.mts +0 -9
  48. package/dist/alipayIntrinsicElements/elements/movable-view.d.mts +0 -32
  49. package/dist/alipayIntrinsicElements/elements/navigator.d.mts +0 -13
  50. package/dist/alipayIntrinsicElements/elements/page-container.d.mts +0 -27
  51. package/dist/alipayIntrinsicElements/elements/page-meta.d.mts +0 -19
  52. package/dist/alipayIntrinsicElements/elements/picker-view-column.d.mts +0 -7
  53. package/dist/alipayIntrinsicElements/elements/picker-view.d.mts +0 -18
  54. package/dist/alipayIntrinsicElements/elements/picker.d.mts +0 -15
  55. package/dist/alipayIntrinsicElements/elements/progress.d.mts +0 -14
  56. package/dist/alipayIntrinsicElements/elements/radio-group.d.mts +0 -11
  57. package/dist/alipayIntrinsicElements/elements/radio.d.mts +0 -12
  58. package/dist/alipayIntrinsicElements/elements/rich-text.d.mts +0 -17
  59. package/dist/alipayIntrinsicElements/elements/root-portal.d.mts +0 -9
  60. package/dist/alipayIntrinsicElements/elements/scroll-view.d.mts +0 -29
  61. package/dist/alipayIntrinsicElements/elements/share-element.d.mts +0 -12
  62. package/dist/alipayIntrinsicElements/elements/slider.d.mts +0 -23
  63. package/dist/alipayIntrinsicElements/elements/subscribe-message.d.mts +0 -11
  64. package/dist/alipayIntrinsicElements/elements/swiper-item.d.mts +0 -7
  65. package/dist/alipayIntrinsicElements/elements/swiper.d.mts +0 -36
  66. package/dist/alipayIntrinsicElements/elements/switch.d.mts +0 -15
  67. package/dist/alipayIntrinsicElements/elements/text.d.mts +0 -12
  68. package/dist/alipayIntrinsicElements/elements/textarea.d.mts +0 -24
  69. package/dist/alipayIntrinsicElements/elements/video.d.mts +0 -39
  70. package/dist/alipayIntrinsicElements/elements/view.d.mts +0 -29
  71. package/dist/alipayIntrinsicElements/elements/web-view.d.mts +0 -13
  72. package/dist/alipayIntrinsicElements.d.mts +0 -94
  73. package/dist/dev/alipayIntrinsicElements/base.d.mts +0 -5
  74. package/dist/dev/alipayIntrinsicElements/elements/button.d.mts +0 -30
  75. package/dist/dev/alipayIntrinsicElements/elements/camera.d.mts +0 -19
  76. package/dist/dev/alipayIntrinsicElements/elements/canvas.d.mts +0 -21
  77. package/dist/dev/alipayIntrinsicElements/elements/checkbox-group.d.mts +0 -12
  78. package/dist/dev/alipayIntrinsicElements/elements/checkbox.d.mts +0 -15
  79. package/dist/dev/alipayIntrinsicElements/elements/contact-button.d.mts +0 -16
  80. package/dist/dev/alipayIntrinsicElements/elements/cover-image.d.mts +0 -12
  81. package/dist/dev/alipayIntrinsicElements/elements/cover-view.d.mts +0 -12
  82. package/dist/dev/alipayIntrinsicElements/elements/error-view.d.mts +0 -15
  83. package/dist/dev/alipayIntrinsicElements/elements/form.d.mts +0 -13
  84. package/dist/dev/alipayIntrinsicElements/elements/icon.d.mts +0 -12
  85. package/dist/dev/alipayIntrinsicElements/elements/image.d.mts +0 -18
  86. package/dist/dev/alipayIntrinsicElements/elements/input.d.mts +0 -32
  87. package/dist/dev/alipayIntrinsicElements/elements/join-group-chat.d.mts +0 -10
  88. package/dist/dev/alipayIntrinsicElements/elements/label.d.mts +0 -10
  89. package/dist/dev/alipayIntrinsicElements/elements/lifestyle.d.mts +0 -12
  90. package/dist/dev/alipayIntrinsicElements/elements/lottie.d.mts +0 -26
  91. package/dist/dev/alipayIntrinsicElements/elements/map.d.mts +0 -45
  92. package/dist/dev/alipayIntrinsicElements/elements/match-media.d.mts +0 -16
  93. package/dist/dev/alipayIntrinsicElements/elements/movable-area.d.mts +0 -10
  94. package/dist/dev/alipayIntrinsicElements/elements/movable-view.d.mts +0 -33
  95. package/dist/dev/alipayIntrinsicElements/elements/navigator.d.mts +0 -14
  96. package/dist/dev/alipayIntrinsicElements/elements/page-container.d.mts +0 -28
  97. package/dist/dev/alipayIntrinsicElements/elements/page-meta.d.mts +0 -20
  98. package/dist/dev/alipayIntrinsicElements/elements/picker-view-column.d.mts +0 -8
  99. package/dist/dev/alipayIntrinsicElements/elements/picker-view.d.mts +0 -19
  100. package/dist/dev/alipayIntrinsicElements/elements/picker.d.mts +0 -16
  101. package/dist/dev/alipayIntrinsicElements/elements/progress.d.mts +0 -15
  102. package/dist/dev/alipayIntrinsicElements/elements/radio-group.d.mts +0 -12
  103. package/dist/dev/alipayIntrinsicElements/elements/radio.d.mts +0 -13
  104. package/dist/dev/alipayIntrinsicElements/elements/rich-text.d.mts +0 -18
  105. package/dist/dev/alipayIntrinsicElements/elements/root-portal.d.mts +0 -10
  106. package/dist/dev/alipayIntrinsicElements/elements/scroll-view.d.mts +0 -30
  107. package/dist/dev/alipayIntrinsicElements/elements/share-element.d.mts +0 -13
  108. package/dist/dev/alipayIntrinsicElements/elements/slider.d.mts +0 -24
  109. package/dist/dev/alipayIntrinsicElements/elements/subscribe-message.d.mts +0 -12
  110. package/dist/dev/alipayIntrinsicElements/elements/swiper-item.d.mts +0 -8
  111. package/dist/dev/alipayIntrinsicElements/elements/swiper.d.mts +0 -37
  112. package/dist/dev/alipayIntrinsicElements/elements/switch.d.mts +0 -16
  113. package/dist/dev/alipayIntrinsicElements/elements/text.d.mts +0 -13
  114. package/dist/dev/alipayIntrinsicElements/elements/textarea.d.mts +0 -25
  115. package/dist/dev/alipayIntrinsicElements/elements/video.d.mts +0 -40
  116. package/dist/dev/alipayIntrinsicElements/elements/view.d.mts +0 -30
  117. package/dist/dev/alipayIntrinsicElements/elements/web-view.d.mts +0 -14
  118. package/dist/dev/alipayIntrinsicElements.d.mts +0 -94
  119. package/dist/dev/jsx-runtime.d.mts +0 -44
  120. package/dist/dev/ttIntrinsicElements/base.d.mts +0 -5
  121. package/dist/dev/ttIntrinsicElements/elements/ad.d.mts +0 -8
  122. package/dist/dev/ttIntrinsicElements/elements/aweme-data.d.mts +0 -15
  123. package/dist/dev/ttIntrinsicElements/elements/aweme-user-card.d.mts +0 -16
  124. package/dist/dev/ttIntrinsicElements/elements/button.d.mts +0 -23
  125. package/dist/dev/ttIntrinsicElements/elements/camera.d.mts +0 -19
  126. package/dist/dev/ttIntrinsicElements/elements/canvas.d.mts +0 -16
  127. package/dist/dev/ttIntrinsicElements/elements/checkbox-group.d.mts +0 -12
  128. package/dist/dev/ttIntrinsicElements/elements/checkbox.d.mts +0 -12
  129. package/dist/dev/ttIntrinsicElements/elements/draw-ad.d.mts +0 -16
  130. package/dist/dev/ttIntrinsicElements/elements/form.d.mts +0 -14
  131. package/dist/dev/ttIntrinsicElements/elements/icon.d.mts +0 -11
  132. package/dist/dev/ttIntrinsicElements/elements/image.d.mts +0 -16
  133. package/dist/dev/ttIntrinsicElements/elements/input.d.mts +0 -32
  134. package/dist/dev/ttIntrinsicElements/elements/label.d.mts +0 -10
  135. package/dist/dev/ttIntrinsicElements/elements/live-player.d.mts +0 -19
  136. package/dist/dev/ttIntrinsicElements/elements/live-preview.d.mts +0 -13
  137. package/dist/dev/ttIntrinsicElements/elements/map.d.mts +0 -36
  138. package/dist/dev/ttIntrinsicElements/elements/mask.d.mts +0 -8
  139. package/dist/dev/ttIntrinsicElements/elements/match-media.d.mts +0 -16
  140. package/dist/dev/ttIntrinsicElements/elements/movable-area.d.mts +0 -10
  141. package/dist/dev/ttIntrinsicElements/elements/movable-view.d.mts +0 -27
  142. package/dist/dev/ttIntrinsicElements/elements/navigator.d.mts +0 -16
  143. package/dist/dev/ttIntrinsicElements/elements/open-data.d.mts +0 -15
  144. package/dist/dev/ttIntrinsicElements/elements/picker-view-column.d.mts +0 -8
  145. package/dist/dev/ttIntrinsicElements/elements/picker-view.d.mts +0 -19
  146. package/dist/dev/ttIntrinsicElements/elements/picker.d.mts +0 -22
  147. package/dist/dev/ttIntrinsicElements/elements/progress.d.mts +0 -16
  148. package/dist/dev/ttIntrinsicElements/elements/radio-group.d.mts +0 -12
  149. package/dist/dev/ttIntrinsicElements/elements/radio.d.mts +0 -12
  150. package/dist/dev/ttIntrinsicElements/elements/rich-text.d.mts +0 -10
  151. package/dist/dev/ttIntrinsicElements/elements/rtc-room.d.mts +0 -13
  152. package/dist/dev/ttIntrinsicElements/elements/scroll-view.d.mts +0 -32
  153. package/dist/dev/ttIntrinsicElements/elements/slider.d.mts +0 -19
  154. package/dist/dev/ttIntrinsicElements/elements/swiper-item.d.mts +0 -10
  155. package/dist/dev/ttIntrinsicElements/elements/swiper.d.mts +0 -27
  156. package/dist/dev/ttIntrinsicElements/elements/switch.d.mts +0 -14
  157. package/dist/dev/ttIntrinsicElements/elements/text.d.mts +0 -12
  158. package/dist/dev/ttIntrinsicElements/elements/textarea.d.mts +0 -34
  159. package/dist/dev/ttIntrinsicElements/elements/video.d.mts +0 -58
  160. package/dist/dev/ttIntrinsicElements/elements/view.d.mts +0 -15
  161. package/dist/dev/ttIntrinsicElements/elements/web-view.d.mts +0 -15
  162. package/dist/dev/ttIntrinsicElements.d.mts +0 -88
  163. package/dist/dev/weappIntrinsicElements/base.d.mts +0 -5
  164. package/dist/dev/weappIntrinsicElements/elements/ad-custom.d.mts +0 -14
  165. package/dist/dev/weappIntrinsicElements/elements/ad.d.mts +0 -17
  166. package/dist/dev/weappIntrinsicElements/elements/audio.d.mts +0 -21
  167. package/dist/dev/weappIntrinsicElements/elements/block.d.mts +0 -8
  168. package/dist/dev/weappIntrinsicElements/elements/button.d.mts +0 -42
  169. package/dist/dev/weappIntrinsicElements/elements/camera.d.mts +0 -19
  170. package/dist/dev/weappIntrinsicElements/elements/canvas.d.mts +0 -19
  171. package/dist/dev/weappIntrinsicElements/elements/checkbox-group.d.mts +0 -11
  172. package/dist/dev/weappIntrinsicElements/elements/checkbox.d.mts +0 -13
  173. package/dist/dev/weappIntrinsicElements/elements/cover-image.d.mts +0 -14
  174. package/dist/dev/weappIntrinsicElements/elements/cover-view.d.mts +0 -10
  175. package/dist/dev/weappIntrinsicElements/elements/editor.d.mts +0 -23
  176. package/dist/dev/weappIntrinsicElements/elements/form.d.mts +0 -17
  177. package/dist/dev/weappIntrinsicElements/elements/functional-page-navigator.d.mts +0 -16
  178. package/dist/dev/weappIntrinsicElements/elements/icon.d.mts +0 -12
  179. package/dist/dev/weappIntrinsicElements/elements/image.d.mts +0 -19
  180. package/dist/dev/weappIntrinsicElements/elements/import.d.mts +0 -10
  181. package/dist/dev/weappIntrinsicElements/elements/include.d.mts +0 -10
  182. package/dist/dev/weappIntrinsicElements/elements/input.d.mts +0 -47
  183. package/dist/dev/weappIntrinsicElements/elements/keyboard-accessory.d.mts +0 -8
  184. package/dist/dev/weappIntrinsicElements/elements/label.d.mts +0 -10
  185. package/dist/dev/weappIntrinsicElements/elements/live-player.d.mts +0 -36
  186. package/dist/dev/weappIntrinsicElements/elements/live-pusher.d.mts +0 -58
  187. package/dist/dev/weappIntrinsicElements/elements/map.d.mts +0 -106
  188. package/dist/dev/weappIntrinsicElements/elements/match-media.d.mts +0 -16
  189. package/dist/dev/weappIntrinsicElements/elements/movable-area.d.mts +0 -27
  190. package/dist/dev/weappIntrinsicElements/elements/movable-view.d.mts +0 -27
  191. package/dist/dev/weappIntrinsicElements/elements/navigation-bar.d.mts +0 -15
  192. package/dist/dev/weappIntrinsicElements/elements/navigator.d.mts +0 -26
  193. package/dist/dev/weappIntrinsicElements/elements/official-account.d.mts +0 -14
  194. package/dist/dev/weappIntrinsicElements/elements/open-data.d.mts +0 -16
  195. package/dist/dev/weappIntrinsicElements/elements/page-container.d.mts +0 -26
  196. package/dist/dev/weappIntrinsicElements/elements/page-meta.d.mts +0 -24
  197. package/dist/dev/weappIntrinsicElements/elements/picker-view-column.d.mts +0 -19
  198. package/dist/dev/weappIntrinsicElements/elements/picker-view.d.mts +0 -19
  199. package/dist/dev/weappIntrinsicElements/elements/picker.d.mts +0 -24
  200. package/dist/dev/weappIntrinsicElements/elements/progress.d.mts +0 -22
  201. package/dist/dev/weappIntrinsicElements/elements/radio-group.d.mts +0 -11
  202. package/dist/dev/weappIntrinsicElements/elements/radio.d.mts +0 -13
  203. package/dist/dev/weappIntrinsicElements/elements/rich-text.d.mts +0 -17
  204. package/dist/dev/weappIntrinsicElements/elements/scroll-view.d.mts +0 -64
  205. package/dist/dev/weappIntrinsicElements/elements/share-element.d.mts +0 -17
  206. package/dist/dev/weappIntrinsicElements/elements/slider.d.mts +0 -24
  207. package/dist/dev/weappIntrinsicElements/elements/slot.d.mts +0 -10
  208. package/dist/dev/weappIntrinsicElements/elements/swiper-item.d.mts +0 -11
  209. package/dist/dev/weappIntrinsicElements/elements/swiper.d.mts +0 -40
  210. package/dist/dev/weappIntrinsicElements/elements/switch.d.mts +0 -15
  211. package/dist/dev/weappIntrinsicElements/elements/template.d.mts +0 -12
  212. package/dist/dev/weappIntrinsicElements/elements/text.d.mts +0 -15
  213. package/dist/dev/weappIntrinsicElements/elements/textarea.d.mts +0 -41
  214. package/dist/dev/weappIntrinsicElements/elements/video.d.mts +0 -72
  215. package/dist/dev/weappIntrinsicElements/elements/view.d.mts +0 -15
  216. package/dist/dev/weappIntrinsicElements/elements/voip-room.d.mts +0 -15
  217. package/dist/dev/weappIntrinsicElements/elements/web-view.d.mts +0 -14
  218. package/dist/dev/weappIntrinsicElements.d.mts +0 -114
  219. package/dist/miniprogramIntrinsicElements/base.d.mts +0 -4
  220. package/dist/miniprogramIntrinsicElements/elements/button.d.mts +0 -23
  221. package/dist/miniprogramIntrinsicElements/elements/camera.d.mts +0 -18
  222. package/dist/miniprogramIntrinsicElements/elements/canvas.d.mts +0 -16
  223. package/dist/miniprogramIntrinsicElements/elements/checkbox-group.d.mts +0 -12
  224. package/dist/miniprogramIntrinsicElements/elements/checkbox.d.mts +0 -13
  225. package/dist/miniprogramIntrinsicElements/elements/form.d.mts +0 -13
  226. package/dist/miniprogramIntrinsicElements/elements/icon.d.mts +0 -12
  227. package/dist/miniprogramIntrinsicElements/elements/image.d.mts +0 -16
  228. package/dist/miniprogramIntrinsicElements/elements/input.d.mts +0 -29
  229. package/dist/miniprogramIntrinsicElements/elements/label.d.mts +0 -11
  230. package/dist/miniprogramIntrinsicElements/elements/map.d.mts +0 -31
  231. package/dist/miniprogramIntrinsicElements/elements/match-media.d.mts +0 -13
  232. package/dist/miniprogramIntrinsicElements/elements/movable-area.d.mts +0 -9
  233. package/dist/miniprogramIntrinsicElements/elements/movable-view.d.mts +0 -26
  234. package/dist/miniprogramIntrinsicElements/elements/navigator.d.mts +0 -15
  235. package/dist/miniprogramIntrinsicElements/elements/picker-view-column.d.mts +0 -9
  236. package/dist/miniprogramIntrinsicElements/elements/picker-view.d.mts +0 -20
  237. package/dist/miniprogramIntrinsicElements/elements/picker.d.mts +0 -14
  238. package/dist/miniprogramIntrinsicElements/elements/progress.d.mts +0 -12
  239. package/dist/miniprogramIntrinsicElements/elements/radio-group.d.mts +0 -12
  240. package/dist/miniprogramIntrinsicElements/elements/radio.d.mts +0 -13
  241. package/dist/miniprogramIntrinsicElements/elements/rich-text.d.mts +0 -11
  242. package/dist/miniprogramIntrinsicElements/elements/scroll-view.d.mts +0 -22
  243. package/dist/miniprogramIntrinsicElements/elements/slider.d.mts +0 -19
  244. package/dist/miniprogramIntrinsicElements/elements/swiper-item.d.mts +0 -9
  245. package/dist/miniprogramIntrinsicElements/elements/swiper.d.mts +0 -24
  246. package/dist/miniprogramIntrinsicElements/elements/switch.d.mts +0 -14
  247. package/dist/miniprogramIntrinsicElements/elements/text.d.mts +0 -13
  248. package/dist/miniprogramIntrinsicElements/elements/textarea.d.mts +0 -23
  249. package/dist/miniprogramIntrinsicElements/elements/video.d.mts +0 -29
  250. package/dist/miniprogramIntrinsicElements/elements/view.d.mts +0 -16
  251. package/dist/miniprogramIntrinsicElements/elements/web-view.d.mts +0 -15
  252. package/dist/miniprogramIntrinsicElements.d.mts +0 -70
  253. package/dist/ttIntrinsicElements/base.d.mts +0 -4
  254. package/dist/ttIntrinsicElements/elements/ad.d.mts +0 -7
  255. package/dist/ttIntrinsicElements/elements/aweme-data.d.mts +0 -14
  256. package/dist/ttIntrinsicElements/elements/aweme-user-card.d.mts +0 -15
  257. package/dist/ttIntrinsicElements/elements/button.d.mts +0 -22
  258. package/dist/ttIntrinsicElements/elements/camera.d.mts +0 -18
  259. package/dist/ttIntrinsicElements/elements/canvas.d.mts +0 -15
  260. package/dist/ttIntrinsicElements/elements/checkbox-group.d.mts +0 -11
  261. package/dist/ttIntrinsicElements/elements/checkbox.d.mts +0 -11
  262. package/dist/ttIntrinsicElements/elements/draw-ad.d.mts +0 -15
  263. package/dist/ttIntrinsicElements/elements/form.d.mts +0 -13
  264. package/dist/ttIntrinsicElements/elements/icon.d.mts +0 -10
  265. package/dist/ttIntrinsicElements/elements/image.d.mts +0 -15
  266. package/dist/ttIntrinsicElements/elements/input.d.mts +0 -31
  267. package/dist/ttIntrinsicElements/elements/label.d.mts +0 -9
  268. package/dist/ttIntrinsicElements/elements/live-player.d.mts +0 -18
  269. package/dist/ttIntrinsicElements/elements/live-preview.d.mts +0 -12
  270. package/dist/ttIntrinsicElements/elements/map.d.mts +0 -35
  271. package/dist/ttIntrinsicElements/elements/mask.d.mts +0 -7
  272. package/dist/ttIntrinsicElements/elements/match-media.d.mts +0 -15
  273. package/dist/ttIntrinsicElements/elements/movable-area.d.mts +0 -9
  274. package/dist/ttIntrinsicElements/elements/movable-view.d.mts +0 -26
  275. package/dist/ttIntrinsicElements/elements/navigator.d.mts +0 -15
  276. package/dist/ttIntrinsicElements/elements/open-data.d.mts +0 -14
  277. package/dist/ttIntrinsicElements/elements/picker-view-column.d.mts +0 -7
  278. package/dist/ttIntrinsicElements/elements/picker-view.d.mts +0 -18
  279. package/dist/ttIntrinsicElements/elements/picker.d.mts +0 -21
  280. package/dist/ttIntrinsicElements/elements/progress.d.mts +0 -15
  281. package/dist/ttIntrinsicElements/elements/radio-group.d.mts +0 -11
  282. package/dist/ttIntrinsicElements/elements/radio.d.mts +0 -11
  283. package/dist/ttIntrinsicElements/elements/rich-text.d.mts +0 -9
  284. package/dist/ttIntrinsicElements/elements/rtc-room.d.mts +0 -12
  285. package/dist/ttIntrinsicElements/elements/scroll-view.d.mts +0 -31
  286. package/dist/ttIntrinsicElements/elements/slider.d.mts +0 -18
  287. package/dist/ttIntrinsicElements/elements/swiper-item.d.mts +0 -9
  288. package/dist/ttIntrinsicElements/elements/swiper.d.mts +0 -26
  289. package/dist/ttIntrinsicElements/elements/switch.d.mts +0 -13
  290. package/dist/ttIntrinsicElements/elements/text.d.mts +0 -11
  291. package/dist/ttIntrinsicElements/elements/textarea.d.mts +0 -33
  292. package/dist/ttIntrinsicElements/elements/video.d.mts +0 -57
  293. package/dist/ttIntrinsicElements/elements/view.d.mts +0 -14
  294. package/dist/ttIntrinsicElements/elements/web-view.d.mts +0 -14
  295. package/dist/ttIntrinsicElements.d.mts +0 -88
  296. package/dist/weappIntrinsicElements/base.d.mts +0 -4
  297. package/dist/weappIntrinsicElements/elements/ad-custom.d.mts +0 -13
  298. package/dist/weappIntrinsicElements/elements/ad.d.mts +0 -16
  299. package/dist/weappIntrinsicElements/elements/audio.d.mts +0 -20
  300. package/dist/weappIntrinsicElements/elements/block.d.mts +0 -7
  301. package/dist/weappIntrinsicElements/elements/button.d.mts +0 -41
  302. package/dist/weappIntrinsicElements/elements/camera.d.mts +0 -18
  303. package/dist/weappIntrinsicElements/elements/canvas.d.mts +0 -18
  304. package/dist/weappIntrinsicElements/elements/checkbox-group.d.mts +0 -10
  305. package/dist/weappIntrinsicElements/elements/checkbox.d.mts +0 -12
  306. package/dist/weappIntrinsicElements/elements/cover-image.d.mts +0 -13
  307. package/dist/weappIntrinsicElements/elements/cover-view.d.mts +0 -9
  308. package/dist/weappIntrinsicElements/elements/editor.d.mts +0 -22
  309. package/dist/weappIntrinsicElements/elements/form.d.mts +0 -16
  310. package/dist/weappIntrinsicElements/elements/functional-page-navigator.d.mts +0 -15
  311. package/dist/weappIntrinsicElements/elements/icon.d.mts +0 -11
  312. package/dist/weappIntrinsicElements/elements/image.d.mts +0 -18
  313. package/dist/weappIntrinsicElements/elements/import.d.mts +0 -9
  314. package/dist/weappIntrinsicElements/elements/include.d.mts +0 -9
  315. package/dist/weappIntrinsicElements/elements/input.d.mts +0 -46
  316. package/dist/weappIntrinsicElements/elements/keyboard-accessory.d.mts +0 -7
  317. package/dist/weappIntrinsicElements/elements/label.d.mts +0 -9
  318. package/dist/weappIntrinsicElements/elements/live-player.d.mts +0 -35
  319. package/dist/weappIntrinsicElements/elements/live-pusher.d.mts +0 -57
  320. package/dist/weappIntrinsicElements/elements/map.d.mts +0 -105
  321. package/dist/weappIntrinsicElements/elements/match-media.d.mts +0 -15
  322. package/dist/weappIntrinsicElements/elements/movable-area.d.mts +0 -26
  323. package/dist/weappIntrinsicElements/elements/movable-view.d.mts +0 -26
  324. package/dist/weappIntrinsicElements/elements/navigation-bar.d.mts +0 -14
  325. package/dist/weappIntrinsicElements/elements/navigator.d.mts +0 -25
  326. package/dist/weappIntrinsicElements/elements/official-account.d.mts +0 -13
  327. package/dist/weappIntrinsicElements/elements/open-data.d.mts +0 -15
  328. package/dist/weappIntrinsicElements/elements/page-container.d.mts +0 -25
  329. package/dist/weappIntrinsicElements/elements/page-meta.d.mts +0 -23
  330. package/dist/weappIntrinsicElements/elements/picker-view-column.d.mts +0 -18
  331. package/dist/weappIntrinsicElements/elements/picker-view.d.mts +0 -18
  332. package/dist/weappIntrinsicElements/elements/picker.d.mts +0 -23
  333. package/dist/weappIntrinsicElements/elements/progress.d.mts +0 -21
  334. package/dist/weappIntrinsicElements/elements/radio-group.d.mts +0 -10
  335. package/dist/weappIntrinsicElements/elements/radio.d.mts +0 -12
  336. package/dist/weappIntrinsicElements/elements/rich-text.d.mts +0 -16
  337. package/dist/weappIntrinsicElements/elements/scroll-view.d.mts +0 -63
  338. package/dist/weappIntrinsicElements/elements/share-element.d.mts +0 -16
  339. package/dist/weappIntrinsicElements/elements/slider.d.mts +0 -23
  340. package/dist/weappIntrinsicElements/elements/slot.d.mts +0 -9
  341. package/dist/weappIntrinsicElements/elements/swiper-item.d.mts +0 -10
  342. package/dist/weappIntrinsicElements/elements/swiper.d.mts +0 -39
  343. package/dist/weappIntrinsicElements/elements/switch.d.mts +0 -14
  344. package/dist/weappIntrinsicElements/elements/template.d.mts +0 -11
  345. package/dist/weappIntrinsicElements/elements/text.d.mts +0 -14
  346. package/dist/weappIntrinsicElements/elements/textarea.d.mts +0 -40
  347. package/dist/weappIntrinsicElements/elements/video.d.mts +0 -71
  348. package/dist/weappIntrinsicElements/elements/view.d.mts +0 -14
  349. package/dist/weappIntrinsicElements/elements/voip-room.d.mts +0 -14
  350. package/dist/weappIntrinsicElements/elements/web-view.d.mts +0 -13
  351. package/dist/weappIntrinsicElements.d.mts +0 -114
@@ -1 +1 @@
1
- import{getMiniProgramGlobalObject as e}from"../runtime/platform.mjs";import{setActiveRouter as t}from"./instance.mjs";import{DEFAULT_INITIAL_NAVIGATION_TIMEOUT as n,registerInitialNavigationRunner as r}from"./initialNavigation.mjs";import{installRouteStateSyncOnNativeRouter as i,notifyRouteStateSync as a}from"./routeSync.mjs";import{resolvePath as o}from"../routerInternal/path.mjs";import{parseQuery as s,stringifyQuery as c}from"../routerInternal/query.mjs";import{resolveCurrentRoute as l}from"../routerInternal/location.mjs";import{resolveNamedRouteLocation as u}from"../routerInternal/params.mjs";import{mergeMatchedRouteMeta as ee,resolveMatchedRouteRecord as te}from"../routerInternal/matching.mjs";import{warnDuplicateRouteEntries as ne}from"../routerInternal/recordsWarnings.mjs";import{createNamedRouteLookup as re,resolveRouteOptionEntries as ie}from"../routerInternal/records.mjs";import{cloneRouteMeta as ae,cloneRouteParams as oe,createRouterOptionsSnapshot as d,normalizeRouteRecordMatched as se,snapshotRouteLocation as f}from"../routerInternal/snapshots.mjs";import{createNavigationResultController as p}from"./navigationResult.mjs";import{resolveBackNavigationTarget as m,runBackNavigationGuards as ce}from"./backNavigation.mjs";import{navigateWithTarget as le}from"./navigationTarget.mjs";import{createNavigationApi as ue}from"./navigationApi.mjs";import{resolveRouteLocation as de}from"./resolve.mjs";import{createRouteRegistry as fe}from"./routeRegistry.mjs";import{createRouteStateController as pe,useNativeRouter as h}from"./useRoute.mjs";function g(g={}){var _,v,y,b,x,S,C;let w=h();i(e());let T=new Set,E=new Set,D=new Set,O=new Set,k=(_=g.maxRedirects)==null?10:_,A=g.initialNavigationMode===`blocking`?`blocking`:`eager`,j=Number.isFinite(g.initialNavigationTimeout)&&((v=g.initialNavigationTimeout)==null?0:v)>0?Math.max(1,Math.trunc(g.initialNavigationTimeout)):n,M=(y=g.paramsMode)==null?`loose`:y,N=(b=g.rejectOnError)==null||b,P={parseQuery:(x=g.parseQuery)==null?s:x,stringifyQuery:(S=g.stringifyQuery)==null?c:S},F=Promise.resolve(),I=ie(g);ne(I);let L=re(I),R=((C=g.tabBarEntries)==null?[]:C).map(e=>o(e,``)).filter(Boolean),z=new Set(R),B=fe(L),V=0,H,U,W,me=d(R,B.getRoutes(),M,k,A,j,P,N);function G(e){let t={...e};t.href=t.fullPath;let n=te(t,L);if(n){let e=n.record;t.name===void 0&&(t.name=e.name);let r=ee(n.matchedRecords);r!==void 0&&(t.meta=ae(r)),n.params&&Object.keys(t.params).length===0&&(t.params=oe(n.params)),t.matched=n.matchedRecords.map((e,t,r)=>{let i=t===r.length-1?n.matchedPath:void 0;return se(e,i)})}else t.matched=[];return t}function K(e,t){let n=typeof e==`string`?e:u(e,L,M);return G(de(n,t,P))}let q,J;function he(e){return e.source===`page`||e.source===`native`&&e.method===`navigateBack`}function ge(e,t){if(V>0||!he(t)||W!==void 0)return;if(U!==void 0){let t=U;if(U=void 0,e.fullPath===t)return}if(e.fullPath===q.fullPath)return;W=e.fullPath;let n=f(q);ce({target:e,from:n,nativeRouter:w,beforeEachGuards:T,beforeResolveGuards:E,resolveWithCodec:K}).then(e=>J==null?void 0:J(e)).finally(()=>{W=void 0})}q=pe({beforeRouteStateSync:ge,resolveRoute:G}).route;function _e(e){return K(e,q.path)}let Y=p({afterEachHooks:D,errorHandlers:O,nativeRouter:w,rejectOnError:N});J=Y.emitNavigationAfterEach;let X=ue({nativeRouter:w,route:q,routeResolveCodec:P,namedRouteLookup:L,beforeEachGuards:T,beforeResolveGuards:E,maxRedirects:k,tabBarPathSet:z,resolveWithCodec:K,settleNavigationResult:Y.settleNavigationResult});async function Z(e,t){let n=q.fullPath;t&&(H=t),V+=1;try{let t=await e();return q.fullPath!==n&&(U=q.fullPath),t}finally{--V,V<=0&&(H=void 0)}}function Q(e){try{return K(e,q.path).fullPath}catch(e){return}}async function ve(e,t,n=()=>!0){return Z(async()=>{let r=f(q),i=G(l(t,e));if(!i.path)return;if(H===i.fullPath){a({route:i,source:`router`});return}let o=await le({mode:`push`,target:i,from:r,nativeRouter:w,routeResolveCodec:P,namedRouteLookup:L,beforeEachGuards:T,beforeResolveGuards:E,maxRedirects:k,tabBarPathSet:z,resolveWithCodec:K,executeNative:!1,allowSameLocation:!0});if(n())return Y.settleNavigationResult(o)})}function ye(e){return T.add(e),()=>{T.delete(e)}}function be(e){return E.add(e),()=>{E.delete(e)}}function xe(e){return D.add(e),()=>{D.delete(e)}}function Se(e){return O.add(e),()=>{O.delete(e)}}let $={nativeRouter:w,options:me,currentRoute:q,install(e){var n;t($);let r=e==null||(n=e.config)==null?void 0:n.globalProperties;r&&(r.$router=$)},resolve:_e,isReady(){return F},push:e=>Z(()=>X.push(e),Q(e)),replace:e=>Z(()=>X.replace(e),Q(e)),back:e=>{var t;return Z(()=>X.back(e),(t=m(e==null?1:e,q,K))==null?void 0:t.fullPath)},go:e=>{var t;return Z(()=>X.go(e),e<0?(t=m(Math.abs(e),q,K))==null?void 0:t.fullPath:void 0)},forward:()=>Z(()=>X.forward()),hasRoute:B.hasRoute,getRoutes:B.getRoutes,addRoute:B.addRoute,removeRoute:B.removeRoute,clearRoutes:B.clearRoutes,beforeEach:ye,beforeResolve:be,afterEach:xe,onError:Se};return t($),r($,ve,j,A),$}export{g as createRouter};
1
+ import{getCurrentMiniProgramTabBarPagePaths as e,getMiniProgramGlobalObject as t}from"../runtime/platform.mjs";import{setActiveRouter as n}from"./instance.mjs";import{DEFAULT_INITIAL_NAVIGATION_TIMEOUT as r,registerInitialNavigationRunner as i}from"./initialNavigation.mjs";import{installRouteStateSyncOnNativeRouter as a,notifyRouteStateSync as o}from"./routeSync.mjs";import{resolvePath as ee}from"../routerInternal/path.mjs";import{parseQuery as te,stringifyQuery as ne}from"../routerInternal/query.mjs";import{resolveCurrentRoute as re}from"../routerInternal/location.mjs";import{resolveNamedRouteLocation as s}from"../routerInternal/params.mjs";import{mergeMatchedRouteMeta as ie,resolveMatchedRouteRecord as ae}from"../routerInternal/matching.mjs";import{warnDuplicateRouteEntries as oe}from"../routerInternal/recordsWarnings.mjs";import{createNamedRouteLookup as se,resolveRouteOptionEntries as ce}from"../routerInternal/records.mjs";import{cloneRouteMeta as le,cloneRouteParams as ue,createNativeRouteUrl as de,createRouterOptionsSnapshot as fe,normalizeRouteRecordMatched as pe,snapshotRouteLocation as c}from"../routerInternal/snapshots.mjs";import{NavigationFailureType as me}from"./types.mjs";import{createNavigationFailure as l,executeNavigationMethod as u}from"./navigationCore.mjs";import{createNavigationResultController as d}from"./navigationResult.mjs";import{resolveBackNavigationTarget as f,runBackNavigationGuards as he}from"./backNavigation.mjs";import{navigateWithTarget as ge}from"./navigationTarget.mjs";import{createNavigationApi as _e}from"./navigationApi.mjs";import{resolveRouteLocation as ve}from"./resolve.mjs";import{createRouteRegistry as ye}from"./routeRegistry.mjs";import{createRouteStateController as p,useNativeRouter as m}from"./useRoute.mjs";function h(h={}){var g,_,v,y,b,x,S;let C=m();a(t());let w=new Set,T=new Set,E=new Set,D=new Set,O=(g=h.maxRedirects)==null?10:g,k=h.initialNavigationMode===`blocking`?`blocking`:`eager`,A=Number.isFinite(h.initialNavigationTimeout)&&((_=h.initialNavigationTimeout)==null?0:_)>0?Math.max(1,Math.trunc(h.initialNavigationTimeout)):r,j=(v=h.paramsMode)==null?`loose`:v,M=(y=h.rejectOnError)==null||y,N={parseQuery:(b=h.parseQuery)==null?te:b,stringifyQuery:(x=h.stringifyQuery)==null?ne:x},P=Promise.resolve(),F=ce(h);oe(F);let I=se(F),L=((S=h.tabBarEntries)==null?e():S).map(e=>ee(e,``)).filter(Boolean),R=new Set(L),z=ye(I),B=0,V,H,U,be=fe(L,z.getRoutes(),j,O,k,A,N,M);function W(e){let t={...e};t.href=t.fullPath;let n=ae(t,I);if(n){let e=n.record;t.name===void 0&&(t.name=e.name);let r=ie(n.matchedRecords);r!==void 0&&(t.meta=le(r)),n.params&&Object.keys(t.params).length===0&&(t.params=ue(n.params)),t.matched=n.matchedRecords.map((e,t,r)=>{let i=t===r.length-1?n.matchedPath:void 0;return pe(e,i)})}else t.matched=[];return t}function G(e,t){let n=typeof e==`string`?e:s(e,I,j);return W(ve(n,t,N))}let K,q;function xe(e){return e.source===`page`||e.source===`native`&&e.method===`navigateBack`}function J(e,t){if(B>0||!xe(t)||U!==void 0)return;if(H!==void 0){let t=H;if(H=void 0,e.fullPath===t)return}if(e.fullPath===K.fullPath)return;U=e.fullPath;let n=c(K);he({target:e,from:n,nativeRouter:C,beforeEachGuards:w,beforeResolveGuards:T,resolveWithCodec:G}).then(e=>q==null?void 0:q(e)).finally(()=>{U=void 0})}K=p({beforeRouteStateSync:J,resolveRoute:W}).route;function Se(e){return G(e,K.path)}let Y=d({afterEachHooks:E,errorHandlers:D,nativeRouter:C,rejectOnError:M});q=Y.emitNavigationAfterEach;let X=_e({nativeRouter:C,route:K,routeResolveCodec:N,namedRouteLookup:I,beforeEachGuards:w,beforeResolveGuards:T,maxRedirects:O,tabBarPathSet:R,resolveWithCodec:G,settleNavigationResult:Y.settleNavigationResult});async function Z(e,t){let n=K.fullPath;t&&(V=t),B+=1;try{let t=await e();return K.fullPath!==n&&(H=K.fullPath),t}finally{--B,B<=0&&(V=void 0)}}function Q(e){try{return G(e,K.path).fullPath}catch(e){return}}async function Ce(e,t,n=()=>!0){return Z(async()=>{let r=c(K),i=W(re(t,e));if(!i.path)return;if(V===i.fullPath){o({route:i,source:`router`});return}let a=await ge({mode:`push`,target:i,from:r,nativeRouter:C,routeResolveCodec:N,namedRouteLookup:I,beforeEachGuards:w,beforeResolveGuards:T,maxRedirects:O,tabBarPathSet:R,resolveWithCodec:G,executeNative:!1,allowSameLocation:!0});if(n()){if(k===`blocking`&&a.to&&a.to.fullPath!==i.fullPath){let e=a.to,t=R.has(e.path)?C.switchTab:C.redirectTo;return await u(t,{url:de(e,N.stringifyQuery)},e,r)||(o({route:e,source:`router`}),l(me.cancelled,e,r))}return Y.settleNavigationResult(a)}})}function we(e){return w.add(e),()=>{w.delete(e)}}function Te(e){return T.add(e),()=>{T.delete(e)}}function Ee(e){return E.add(e),()=>{E.delete(e)}}function De(e){return D.add(e),()=>{D.delete(e)}}let $={nativeRouter:C,options:be,currentRoute:K,install(e){var t;n($);let r=e==null||(t=e.config)==null?void 0:t.globalProperties;r&&(r.$router=$)},resolve:Se,isReady(){return P},push:e=>Z(()=>X.push(e),Q(e)),replace:e=>Z(()=>X.replace(e),Q(e)),back:e=>{var t;return Z(()=>X.back(e),(t=f(e==null?1:e,K,G))==null?void 0:t.fullPath)},go:e=>{var t;return Z(()=>X.go(e),e<0?(t=f(Math.abs(e),K,G))==null?void 0:t.fullPath:void 0)},forward:()=>Z(()=>X.forward()),hasRoute:z.hasRoute,getRoutes:z.getRoutes,addRoute:z.addRoute,removeRoute:z.removeRoute,clearRoutes:z.clearRoutes,beforeEach:we,beforeResolve:Te,afterEach:Ee,onError:De};return n($),i($,Ce,A,k),$}export{h as createRouter};
@@ -1 +1 @@
1
- import{reactive as e}from"../reactivity/reactive.mjs";import{readonly as t}from"../reactivity/readonly.mjs";import{getCurrentMiniProgramPages as n}from"../runtime/platform.mjs";import{getCurrentSetupContext as r}from"../runtime/hooks/base.mjs";import{onLoad as i,onReady as a,onRouteDone as o,onShow as s,onUnload as c}from"../runtime/hooks/register.mjs";import{getActiveRouter as l}from"./instance.mjs";import{registerRouteStateSyncHandler as u}from"./routeSync.mjs";import{resolveCurrentRoute as d,resolvePageRoute as f}from"../routerInternal/location.mjs";import{cloneLocationQuery as p,cloneRouteLocationRedirectedFrom as m,cloneRouteMeta as h,cloneRouteParams as g,cloneRouteRecordMatchedList as _}from"../routerInternal/snapshots.mjs";import{useNativePageRouter as v,useNativeRouter as y}from"../runtime/vueCompat/router.mjs";import{resolveRouteLocation as b}from"./resolve.mjs";import{WEVU_NATIVE_INSTANCE_KEY as x}from"@weapp-core/constants";function S(e){return typeof e.route==`string`||typeof e.__route__==`string`}function C(e){let t=e[x];return t&&typeof t==`object`?t:e}function w(e,t,r){if((r==null?void 0:r.source)===`router`||!t)return!0;let i=C(e);if(r!=null&&r.page)return r.page===i;let a=n();return a[a.length-1]===i}function T(e,t){e.path=t.path,e.fullPath=t.fullPath,e.query=p(t.query),e.hash=t.hash,e.params=g(t.params),t.name===void 0?delete e.name:e.name=t.name,t.meta===void 0?delete e.meta:e.meta=h(t.meta),t.href===void 0?delete e.href:e.href=t.href,t.matched===void 0?delete e.matched:e.matched=_(t.matched),t.redirectedFrom===void 0?delete e.redirectedFrom:e.redirectedFrom=m(t.redirectedFrom)}function E(m={}){var h;let _=r();if(!_)throw Error(`useRoute() 必须在 setup() 的同步阶段调用`);let v=_.instance,y=C(v),x=(h=m.resolveRoute)==null?(e=>{var t,n;return(t=(n=l())==null?void 0:n.resolve(e))==null?e:t}):h,E=x(d(void 0,v)),D=S(y)||n().includes(y),O=e({path:E.path,fullPath:E.fullPath,query:p(E.query),hash:E.hash,params:g(E.params)});T(O,E);function k(e,t,n){let r=x(t||d(e,v));if(n){var i;(i=m.beforeRouteStateSync)==null||i.call(m,r,n)}T(O,r)}i(e=>{k(e)}),a(()=>{k()}),s(()=>{k()}),o(()=>{k()});let A=u(e=>{if(w(v,D,e)){if(e!=null&&e.route){k(void 0,e.route,e);return}if(e!=null&&e.url){k(void 0,b(e.url,O.path),e);return}if(e!=null&&e.page){k(void 0,f(e.page),e);return}k(void 0,void 0,e)}});return c(()=>{A()}),{route:t(O)}}function D(e={}){return E(e).route}function O(){return y()}function k(){return v()}export{E as createRouteStateController,k as useNativePageRouter,O as useNativeRouter,D as useRoute};
1
+ import{reactive as e}from"../reactivity/reactive.mjs";import{readonly as t}from"../reactivity/readonly.mjs";import{getCurrentMiniProgramPages as n}from"../runtime/platform.mjs";import{getCurrentSetupContext as r}from"../runtime/hooks/base.mjs";import{onLoad as i,onReady as a,onRouteDone as o,onShow as s,onUnload as c}from"../runtime/hooks/register.mjs";import{getActiveRouter as l}from"./instance.mjs";import{registerRouteStateSyncHandler as u}from"./routeSync.mjs";import{resolveCurrentRoute as d,resolvePageRoute as f}from"../routerInternal/location.mjs";import{cloneLocationQuery as p,cloneRouteLocationRedirectedFrom as m,cloneRouteMeta as h,cloneRouteParams as g,cloneRouteRecordMatchedList as _}from"../routerInternal/snapshots.mjs";import{useNativePageRouter as v,useNativeRouter as y}from"../runtime/vueCompat/router.mjs";import{resolveRouteLocation as b}from"./resolve.mjs";import{WEVU_NATIVE_INSTANCE_KEY as x}from"@weapp-core/constants";function S(e){return typeof e.route==`string`||typeof e.__route__==`string`}function C(e){let t=e[x];return t&&typeof t==`object`?t:e}function w(e,t,r){if((r==null?void 0:r.source)===`router`||!t)return!0;let i=C(e);if(r!=null&&r.page)return r.page===i;let a=n();return a[a.length-1]===i}function T(e,t){e.path=t.path,e.fullPath=t.fullPath,e.query=p(t.query),e.hash=t.hash,e.params=g(t.params),t.name===void 0?delete e.name:e.name=t.name,t.meta===void 0?delete e.meta:e.meta=h(t.meta),t.href===void 0?delete e.href:e.href=t.href,t.matched===void 0?delete e.matched:e.matched=_(t.matched),t.redirectedFrom===void 0?delete e.redirectedFrom:e.redirectedFrom=m(t.redirectedFrom)}function E(m={}){var h;let _=r(),v=_!=null&&_.instance&&typeof _.instance==`object`?_.instance:void 0,y=(h=m.resolveRoute)==null?(e=>{var t,n;return(t=(n=l())==null?void 0:n.resolve(e))==null?e:t}):h,x=y(d(void 0,v)),E=e({path:x.path,fullPath:x.fullPath,query:p(x.query),hash:x.hash,params:g(x.params)});T(E,x);function D(e,t,n){let r=y(t||d(e,v));if(n){var i;(i=m.beforeRouteStateSync)==null||i.call(m,r,n)}T(E,r)}if(!v)return u(e=>{if(e!=null&&e.route){D(void 0,e.route,e);return}if(e!=null&&e.url){D(void 0,b(e.url,E.path),e);return}if(e!=null&&e.page){D(void 0,f(e.page),e);return}D(void 0,void 0,e)}),{route:t(E)};let O=v,k=C(O),A=S(k)||n().includes(k);i(e=>{D(e)}),a(()=>{D()}),s(()=>{D()}),o(()=>{D()});let j=u(e=>{if(w(O,A,e)){if(e!=null&&e.route){D(void 0,e.route,e);return}if(e!=null&&e.url){D(void 0,b(e.url,E.path),e);return}if(e!=null&&e.page){D(void 0,f(e.page),e);return}D(void 0,void 0,e)}});return c(()=>{j()}),{route:t(E)}}function D(e={}){return E(e).route}function O(){return y()}function k(){return v()}export{E as createRouteStateController,k as useNativePageRouter,O as useNativeRouter,D as useRoute};
@@ -1 +1 @@
1
- import{getMiniProgramPlatformByRuntimeGlobalKey as e,getMiniProgramRuntimeCapabilities as t,getMiniProgramRuntimeGlobalKey as n,getMiniProgramRuntimeGlobalKeys as r,getMiniProgramRuntimeHostConfigKey as i,resolveMiniProgramPlatform as a,supportsMiniProgramRuntimeCapability as o}from"@weapp-core/shared/platforms";const s=[`switchTab`,`reLaunch`,`redirectTo`,`navigateTo`,`navigateBack`];function c(){if(!(typeof globalThis>`u`))return globalThis}function l(){if(typeof my<`u`)return my}function u(){var t;let n=c(),i=(t=import.meta.env)==null?void 0:t.PLATFORM,o=a(i);if(o)return o;for(let t of r())if(n!=null&&n[t])return e(t)}function d(){return t(u())}function f(e){return o(u(),e)}function p(){var e,t,r,i;if(!f(`globalPageStack`))return[];let a=c(),o=u(),s=o?n(o):void 0,d=(e=(t=s?a==null||(r=a[s])==null?void 0:r.getCurrentPages:void 0)==null?(i=l())==null?void 0:i.getCurrentPages:t)==null?a==null?void 0:a.getCurrentPages:e;if(typeof d!=`function`)return[];try{let e=d();return Array.isArray(e)?e:[]}catch(e){return[]}}function m(){let e=c(),t=i(u()),n=e==null?void 0:e[t];return n&&typeof n==`object`?n:void 0}function h(e){var t;let i=c(),o=e==null?(t=import.meta.env)==null?void 0:t.PLATFORM:e,s=a(o);if(s){var u;let e=n(s);return(u=i==null?void 0:i[e])==null?s===`alipay`?l():void 0:u}for(let e of r()){let t=i==null?void 0:i[e];if(t)return t}}function g(){var e;return(e=h())==null?c():e}function _(){var e;return(e=g())==null||(e=e.console)==null?void 0:e.warn}function v(){if(!f(`globalRouterApi`))return;let e=h();if(!e)return;let t=Object.create(null);for(let n of s){let r=e[n];if(typeof r!=`function`)return;t[n]=(...t)=>r.apply(e,t)}return t}function y(){var e;return(e=h())==null?c():e}export{v as getCurrentMiniProgramGlobalRouter,m as getCurrentMiniProgramHostConfig,p as getCurrentMiniProgramPages,d as getCurrentMiniProgramRuntimeCapabilities,h as getMiniProgramGlobalObject,_ as getMiniProgramRuntimeConsoleWarn,g as getMiniProgramRuntimeGlobalObject,y as getScopedSlotHostGlobalObject,u as resolveCurrentMiniProgramPlatform,f as supportsCurrentMiniProgramRuntimeCapability};
1
+ import{getMiniProgramPlatformByRuntimeGlobalKey as e,getMiniProgramRuntimeCapabilities as t,getMiniProgramRuntimeGlobalKey as n,getMiniProgramRuntimeGlobalKeys as r,getMiniProgramRuntimeHostConfigKey as i,resolveMiniProgramPlatform as a,supportsMiniProgramRuntimeCapability as o}from"@weapp-core/shared/platforms";const s=[`switchTab`,`reLaunch`,`redirectTo`,`navigateTo`,`navigateBack`];function c(){if(!(typeof globalThis>`u`))return globalThis}function l(){if(typeof my<`u`)return my}function u(){var t;let n=c(),i=(t=import.meta.env)==null?void 0:t.PLATFORM,o=a(i);if(o)return o;for(let t of r())if(n!=null&&n[t])return e(t)}function d(){return t(u())}function f(e){return o(u(),e)}function p(){var e,t,r,i;if(!f(`globalPageStack`))return[];let a=c(),o=u(),s=o?n(o):void 0,d=(e=(t=s?a==null||(r=a[s])==null?void 0:r.getCurrentPages:void 0)==null?(i=l())==null?void 0:i.getCurrentPages:t)==null?a==null?void 0:a.getCurrentPages:e;if(typeof d!=`function`)return[];try{let e=d();return Array.isArray(e)?e:[]}catch(e){return[]}}function m(){let e=c(),t=i(u()),n=e==null?void 0:e[t];return n&&typeof n==`object`?n:void 0}function h(e){var t;let i=c(),o=e==null?(t=import.meta.env)==null?void 0:t.PLATFORM:e,s=a(o);if(s){var u;let e=n(s);return(u=i==null?void 0:i[e])==null?s===`alipay`?l():void 0:u}for(let e of r()){let t=i==null?void 0:i[e];if(t)return t}}function g(){var e;return(e=h())==null?c():e}function _(){var e;return(e=g())==null||(e=e.console)==null?void 0:e.warn}function v(){if(!f(`globalRouterApi`))return;let e=h();if(!e)return;let t=Object.create(null);for(let n of s){let r=e[n];if(typeof r!=`function`)return;t[n]=(...t)=>r.apply(e,t)}return t}function y(){let e=m(),t=e==null?void 0:e.tabBar;if(!t||typeof t!=`object`||!(`list`in t)||!Array.isArray(t.list))return[];let n=[];for(let e of t.list){if(!e||typeof e!=`object`||!(`pagePath`in e))continue;let t=e.pagePath;typeof t==`string`&&t&&n.push(t)}return n}function b(){var e;return(e=h())==null?c():e}export{v as getCurrentMiniProgramGlobalRouter,m as getCurrentMiniProgramHostConfig,p as getCurrentMiniProgramPages,d as getCurrentMiniProgramRuntimeCapabilities,y as getCurrentMiniProgramTabBarPagePaths,h as getMiniProgramGlobalObject,_ as getMiniProgramRuntimeConsoleWarn,g as getMiniProgramRuntimeGlobalObject,b as getScopedSlotHostGlobalObject,u as resolveCurrentMiniProgramPlatform,f as supportsCurrentMiniProgramRuntimeCapability};
@@ -1 +1 @@
1
- import{effectScope as e}from"../../../reactivity/core.mjs";import{toRaw as t}from"../../../reactivity/reactive/shared.mjs";import{shallowReactive as n}from"../../../reactivity/reactive/shallow.mjs";import{isReactive as r}from"../../../reactivity/reactive.mjs";import{setCurrentInstance as i,setCurrentSetupContext as a}from"../../hooks/base.mjs";import{hasOwn as o}from"../../../utils.mjs";import{hasTrackableSetupBinding as s}from"../../setupTracking.mjs";import{normalizeEmitEventName as c,normalizeEmitPayload as l}from"../../emit.mjs";import{attachRuntimeSlots as u,ensureSetupContextInstance as d,safeMarkNoSetData as f}from"./setupContext.mjs";import{runSetupFunction as p}from"../setup.mjs";import{attachRuntimeSetupState as m,ensureRuntimeProps as h}from"./utils.mjs";import{WEVU_ATTRS_KEY as g,WEVU_EFFECT_SCOPE_KEY as _,WEVU_EXPOSED_KEY as v,WEVU_PROP_KEYS_KEY as y}from"@weapp-core/constants";let b=0;function x(e,t){let n=e,r={proxy:{configurable:!0,enumerable:!1,value:t,writable:!1},$:{configurable:!0,enumerable:!1,value:e,writable:!1},uid:{configurable:!0,enumerable:!1,value:++b,writable:!1},exposed:{configurable:!0,enumerable:!1,get:()=>e[v]}};for(let[e,t]of Object.entries(r))try{Object.defineProperty(n,e,t)}catch(r){`value`in t&&(n[e]=t.value)}let i={$:{configurable:!0,enumerable:!1,value:e,writable:!1},$el:{configurable:!0,enumerable:!1,value:e,writable:!1}};for(let[e,n]of Object.entries(i))try{Object.defineProperty(t,e,n)}catch(r){t[e]=n.value}}function S(e){return e.startsWith(`__wv_`)}function C(b){var C;let{target:w,runtime:T,runtimeWithDefaults:E,runtimeState:D,runtimeProxy:O,setup:k}=b,A=w.properties||{},j=h(w,D,A),M=n(Object.create(null)),N=new Set(Array.isArray(w[y])?w[y]:[]),P=e=>typeof D==`object`&&!!D&&o(D,e);(()=>{let e=w.properties&&typeof w.properties==`object`?w.properties:void 0;for(let t of Object.keys(M))(!e||!o(e,t)||S(t)||N.has(t)||P(t))&&delete M[t];if(e)for(let[t,n]of Object.entries(e))S(t)||N.has(t)||P(t)||(M[t]=n)})();try{Object.defineProperty(w,g,{value:M,configurable:!0,enumerable:!1,writable:!1})}catch(e){w[g]=M}let F=d(w,E);x(w,F);let I=u(D,j),L=(C=E.setupState)==null?Object.create(null):C;m(D,L);let R=f({props:j,runtime:E,state:D,proxy:O,bindModel:T.bindModel.bind(E),watch:T.watch.bind(E),instance:F,emit:(e,...t)=>{let{detail:n,options:r}=l(t),i=c(e);F.triggerEvent(i,n,r)},expose:e=>{w[v]=e},attrs:M,slots:I}),z=e(!0);w[_]=z,i(w),a(R);try{let e=z.run(()=>p(k,j,R)),n=!1;if(e&&typeof e==`object`){let i=T.setupState&&typeof T.setupState==`object`?r(T.setupState)?t(T.setupState):T.setupState:Object.create(null);Object.keys(e).forEach(t=>{let r=e[t];if(typeof r==`function`)T.methods[t]=(...e)=>r.apply(T.proxy,e),T.state[t]=(...e)=>r.apply(T.proxy,e),n=!0;else{if(s(r)){var a;(a=T.__wevu_trackSetupReactiveKey)==null||a.call(T,t)}T.state[t]=r,i[t]=r}})}if(n){var B;(B=T.__wevu_touchSetupMethodsVersion)==null||B.call(T)}}finally{a(void 0),i(void 0)}}export{C as runRuntimeSetupPhase};
1
+ import{effectScope as e}from"../../../reactivity/core.mjs";import{toRaw as t}from"../../../reactivity/reactive/shared.mjs";import{shallowReactive as n}from"../../../reactivity/reactive/shallow.mjs";import{isReactive as r}from"../../../reactivity/reactive.mjs";import{setCurrentInstance as i,setCurrentSetupContext as a}from"../../hooks/base.mjs";import{hasOwn as o}from"../../../utils.mjs";import{hasTrackableSetupBinding as s}from"../../setupTracking.mjs";import{normalizeEmitEventName as c,normalizeEmitPayload as l}from"../../emit.mjs";import{attachRuntimeSlots as u,ensureSetupContextInstance as d,safeMarkNoSetData as f}from"./setupContext.mjs";import{runSetupFunction as p}from"../setup.mjs";import{attachRuntimeSetupState as m,ensureRuntimeProps as h}from"./utils.mjs";import{WEVU_ATTRS_KEY as g,WEVU_EFFECT_SCOPE_KEY as _,WEVU_EXPOSED_KEY as v,WEVU_PROP_KEYS_KEY as y}from"@weapp-core/constants";let b=0;function x(e,t){let n=e,r={proxy:{configurable:!0,enumerable:!1,value:t,writable:!1},$:{configurable:!0,enumerable:!1,value:e,writable:!1},uid:{configurable:!0,enumerable:!1,value:++b,writable:!1},exposed:{configurable:!0,enumerable:!1,get:()=>e[v]}};for(let[e,t]of Object.entries(r))try{Object.defineProperty(n,e,t)}catch(r){`value`in t&&(n[e]=t.value)}let i={$:{configurable:!0,enumerable:!1,value:e,writable:!1},$el:{configurable:!0,enumerable:!1,value:e,writable:!1}};for(let[e,n]of Object.entries(i))try{Object.defineProperty(t,e,n)}catch(r){t[e]=n.value}}function S(e){return e.startsWith(`__wv_`)}function C(b){var C;let{target:w,runtime:T,runtimeWithDefaults:E,runtimeState:D,runtimeProxy:O,setup:k}=b,A=w.properties||{},j=h(w,D,A),M=n(Object.create(null)),N=new Set(Array.isArray(w[y])?w[y]:[]),P=e=>typeof D==`object`&&!!D&&o(D,e);(()=>{let e=w.properties&&typeof w.properties==`object`?w.properties:void 0;for(let t of Object.keys(M))(!e||!o(e,t)||S(t)||N.has(t)||P(t))&&delete M[t];if(e)for(let[t,n]of Object.entries(e))S(t)||N.has(t)||P(t)||(M[t]=n)})();try{Object.defineProperty(w,g,{value:M,configurable:!0,enumerable:!1,writable:!1})}catch(e){w[g]=M}let F=d(w,E);x(w,F);let I=u(D,j),L=(C=E.setupState)==null?Object.create(null):C;m(D,L);let R=f({props:j,runtime:E,state:D,proxy:O,bindModel:T.bindModel.bind(E),watch:T.watch.bind(E),instance:F,emit:(e,...t)=>{let{detail:n,options:r}=l(t),i=c(e);F.triggerEvent(i,n,r)},expose:e=>{w[v]=e},attrs:M,slots:I}),z=e(!0);w[_]=z,i(w),a(R);try{let e=z.run(()=>p(k,j,R)),n=!1;if(e&&typeof e==`object`){let i=T.setupState&&typeof T.setupState==`object`?r(T.setupState)?t(T.setupState):T.setupState:Object.create(null);Object.keys(e).forEach(t=>{let r=e[t];if(typeof r==`function`){let e=(...e)=>r.apply(T.proxy,e);T.methods[t]=e,T.state[t]=e,i[t]=e,n=!0}else{if(s(r)){var a;(a=T.__wevu_trackSetupReactiveKey)==null||a.call(T,t)}T.state[t]=r,i[t]=r}})}if(n){var B;(B=T.__wevu_touchSetupMethodsVersion)==null||B.call(T)}}finally{a(void 0),i(void 0)}}export{C as runRuntimeSetupPhase};
@@ -1,7 +1,7 @@
1
- import { AlipayIntrinsicElements } from "../alipayIntrinsicElements.mjs";
2
- import { TtIntrinsicElements } from "../ttIntrinsicElements.mjs";
3
- import { WeappIntrinsicElements } from "../weappIntrinsicElements.mjs";
4
1
  import { TemplateRefValue } from "./types.mjs";
2
+ import { AlipayIntrinsicElements } from "@weapp-core/types/alipay";
3
+ import { TtIntrinsicElements } from "@weapp-core/types/tt";
4
+ import { WeappIntrinsicElements } from "@weapp-core/types/weapp";
5
5
  //#region src/runtime/templateRefTypes.d.ts
6
6
  type MiniProgramTemplateRefTagName = keyof AlipayIntrinsicElements | keyof TtIntrinsicElements | keyof WeappIntrinsicElements;
7
7
  type MiniProgramTemplateRefElements = { [K in MiniProgramTemplateRefTagName]: TemplateRefValue; };
@@ -3,22 +3,23 @@ import "../types.mjs";
3
3
  //#region src/runtime/vueCompat/router.d.ts
4
4
  type RuntimeRouter = SetupContextRouter;
5
5
  /**
6
- * 在 setup 中获取与当前组件路径语义一致的原生 Router 对象。
6
+ * 获取与当前组件路径语义一致的原生 Router 对象。
7
7
  *
8
8
  * - 优先使用实例上的 `this.router`(组件路径语义)。
9
9
  * - 不可用时回退到 `this.pageRouter`。
10
- * - 低版本基础库再回退到宿主全局路由方法。
10
+ * - App setup 或低版本基础库再回退到宿主全局路由方法。
11
+ * - 无 setup 上下文且宿主全局路由可用时,仍可创建应用级路由器。
11
12
  *
12
13
  * 如需更贴近 Vue Router 的高阶能力(导航守卫、失败类型、统一解析),
13
14
  * 推荐改用 `wevu/router` 子入口的 `useRouter()`。
14
15
  */
15
16
  export declare function useNativeRouter(): RuntimeRouter;
16
17
  /**
17
- * 在 setup 中获取与当前页面路径语义一致的原生 Router 对象。
18
+ * 获取与当前页面路径语义一致的原生 Router 对象。
18
19
  *
19
20
  * - 优先使用实例上的 `this.pageRouter`(页面路径语义)。
20
21
  * - 不可用时回退到 `this.router`。
21
- * - 低版本基础库再回退到宿主全局路由方法。
22
+ * - App setup 或低版本基础库再回退到宿主全局路由方法。
22
23
  *
23
24
  * 如需更贴近 Vue Router 的高阶能力(导航守卫、失败类型、统一解析),
24
25
  * 推荐改用 `wevu/router` 子入口的 `useRouter()`。
@@ -1 +1 @@
1
- import{getCurrentMiniProgramGlobalRouter as e}from"../platform.mjs";import{getCurrentSetupContext as t}from"../hooks/base.mjs";import{notifyRouteStateSync as n}from"../../router/routeSync.mjs";import{createAbsoluteRoutePath as r,resolvePath as i}from"../../routerInternal/path.mjs";import{stringifyQuery as a}from"../../routerInternal/query.mjs";import{parsePathInput as o}from"../../routerInternal/location.mjs";const s=[`switchTab`,`reLaunch`,`redirectTo`,`navigateTo`,`navigateBack`],c=new WeakMap;function l(e){return!e||typeof e!=`object`?!1:s.every(t=>typeof e[t]==`function`)}function u(){return e()}function d(e){if(typeof e==`string`&&e)return i(e,``)||void 0}function f(e,t){let n=t===`pageRouter`?[e.route,e.__route__,e.is]:[e.is,e.route,e.__route__];for(let e of n){let t=d(e);if(t)return t}}function p(e,t){if(!t||!e.startsWith(`./`)&&!e.startsWith(`../`))return e;let{path:n,query:s,hash:c}=o(e),l=r(i(n,t)),u=a(s);return`${l}${u?`?${u}`:``}${c}`}function m(e,t){let r=t==null?``:t,i=c.get(e),a=i==null?void 0:i.get(r);if(a)return a;let o=Object.create(null);for(let r of s)o[r]=i=>{let a=e[r];if(r===`navigateBack`||!i||typeof i!=`object`)return a.call(e,i);let o=typeof i.url==`string`?p(i.url,t):i.url,s=i.success,c={...i,url:o,success:(...e)=>(typeof o==`string`&&n({method:r,source:`native`,url:o}),typeof s==`function`?s(...e):void 0)};return a.call(e,c)};let l=i==null?new Map:i;return l.set(r,o),c.set(e,l),o}function h(e,n,r){let i=t();if(!(i!=null&&i.instance))throw Error(`${r}() 必须在 setup() 的同步阶段调用`);let a=i.instance,o=f(a,e),s=a[e];if(l(s))return m(s,o);let c=a[n];if(l(c))return m(c,o);let d=u();if(d)return m(d,o);throw Error(`当前运行环境不支持 Router,请升级宿主基础库或检查平台路由能力`)}function g(){return h(`router`,`pageRouter`,`useNativeRouter`)}function _(){return h(`pageRouter`,`router`,`useNativePageRouter`)}export{_ as useNativePageRouter,g as useNativeRouter};
1
+ import{getCurrentMiniProgramGlobalRouter as e}from"../platform.mjs";import{getCurrentSetupContext as t}from"../hooks/base.mjs";import{notifyRouteStateSync as n}from"../../router/routeSync.mjs";import{createAbsoluteRoutePath as r,resolvePath as i}from"../../routerInternal/path.mjs";import{stringifyQuery as a}from"../../routerInternal/query.mjs";import{parsePathInput as o}from"../../routerInternal/location.mjs";const s=[`switchTab`,`reLaunch`,`redirectTo`,`navigateTo`,`navigateBack`],c=new WeakMap;function l(e){return!e||typeof e!=`object`?!1:s.every(t=>typeof e[t]==`function`)}function u(){return e()}function d(e){if(typeof e==`string`&&e)return i(e,``)||void 0}function f(e,t){let n=t===`pageRouter`?[e.route,e.__route__,e.is]:[e.is,e.route,e.__route__];for(let e of n){let t=d(e);if(t)return t}}function p(e,t){if(!t||!e.startsWith(`./`)&&!e.startsWith(`../`))return e;let{path:n,query:s,hash:c}=o(e),l=r(i(n,t)),u=a(s);return`${l}${u?`?${u}`:``}${c}`}function m(e,t){let r=t==null?``:t,i=c.get(e),a=i==null?void 0:i.get(r);if(a)return a;let o=Object.create(null);for(let r of s)o[r]=i=>{let a=e[r];if(r===`navigateBack`||!i||typeof i!=`object`)return a.call(e,i);let o=typeof i.url==`string`?p(i.url,t):i.url,s=i.success,c={...i,url:o,success:(...e)=>(typeof o==`string`&&n({method:r,source:`native`,url:o}),typeof s==`function`?s(...e):void 0)};return a.call(e,c)};let l=i==null?new Map:i;return l.set(r,o),c.set(e,l),o}function h(e,n,r){let i=t(),a=i!=null&&i.instance&&typeof i.instance==`object`?i.instance:void 0;if(a){let t=f(a,e),r=a[e];if(l(r))return m(r,t);let i=a[n];if(l(i))return m(i,t);let o=u();if(o)return m(o,t);throw Error(`当前运行环境不支持 Router,请升级宿主基础库或检查平台路由能力`)}let o=u();if(o)return m(o);throw Error(`${r}() 必须在 setup() 的同步阶段调用`)}function g(){return h(`router`,`pageRouter`,`useNativeRouter`)}function _(){return h(`pageRouter`,`router`,`useNativePageRouter`)}export{_ as useNativePageRouter,g as useNativeRouter};
@@ -1,13 +1,12 @@
1
- import { TtIntrinsicElementBaseAttributes } from "../ttIntrinsicElements/base.mjs";
2
- import { TtIntrinsicElements } from "../ttIntrinsicElements.mjs";
3
1
  import { JSX as JSX$1, WevuJsxChild, WevuJsxElement, WevuJsxEventHandler, WevuJsxGlobalComponents, WevuJsxGlobalComponents as WevuJsxGlobalComponents$1, WevuJsxHostAttributes } from "wevu/jsx-runtime";
2
+ import { TtIntrinsicElementBaseAttributes, TtIntrinsicElements, TtIntrinsicElements as TtIntrinsicElements$1 } from "@weapp-core/types/tt";
4
3
  //#region src/tt/jsx-runtime.d.ts
5
4
  export declare namespace JSX {
6
5
  type Element = JSX$1.Element;
7
6
  interface ElementClass extends JSX$1.ElementClass {}
8
7
  interface ElementAttributesProperty extends JSX$1.ElementAttributesProperty {}
9
8
  interface IntrinsicAttributes extends JSX$1.IntrinsicAttributes {}
10
- interface IntrinsicElements extends WevuJsxGlobalComponents$1, TtIntrinsicElements {}
9
+ interface IntrinsicElements extends WevuJsxGlobalComponents$1, TtIntrinsicElements$1 {}
11
10
  }
12
11
  //#endregion
13
12
  export type { TtIntrinsicElementBaseAttributes, TtIntrinsicElements, WevuJsxChild, WevuJsxElement, WevuJsxEventHandler, WevuJsxGlobalComponents, WevuJsxHostAttributes };
@@ -1,13 +1,12 @@
1
- import { WeappIntrinsicElementBaseAttributes } from "../weappIntrinsicElements/base.mjs";
2
- import { WeappIntrinsicElements } from "../weappIntrinsicElements.mjs";
3
1
  import { JSX as JSX$1, WevuJsxChild, WevuJsxElement, WevuJsxEventHandler, WevuJsxGlobalComponents, WevuJsxGlobalComponents as WevuJsxGlobalComponents$1, WevuJsxHostAttributes } from "wevu/jsx-runtime";
2
+ import { WeappIntrinsicElementBaseAttributes, WeappIntrinsicElements, WeappIntrinsicElements as WeappIntrinsicElements$1 } from "@weapp-core/types/weapp";
4
3
  //#region src/weapp/jsx-runtime.d.ts
5
4
  export declare namespace JSX {
6
5
  type Element = JSX$1.Element;
7
6
  interface ElementClass extends JSX$1.ElementClass {}
8
7
  interface ElementAttributesProperty extends JSX$1.ElementAttributesProperty {}
9
8
  interface IntrinsicAttributes extends JSX$1.IntrinsicAttributes {}
10
- interface IntrinsicElements extends WevuJsxGlobalComponents$1, WeappIntrinsicElements {}
9
+ interface IntrinsicElements extends WevuJsxGlobalComponents$1, WeappIntrinsicElements$1 {}
11
10
  }
12
11
  //#endregion
13
12
  export type { WeappIntrinsicElementBaseAttributes, WeappIntrinsicElements, WevuJsxChild, WevuJsxElement, WevuJsxEventHandler, WevuJsxGlobalComponents, WevuJsxHostAttributes };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wevu",
3
3
  "type": "module",
4
- "version": "7.1.0",
4
+ "version": "7.1.2",
5
5
  "description": "Vue 3 风格的小程序运行时,包含响应式、diff+setData 与轻量状态管理",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -15,15 +15,18 @@
15
15
  "url": "https://github.com/weapp-vite/weapp-vite/issues"
16
16
  },
17
17
  "keywords": [
18
+ "weapp-vite",
18
19
  "weapp",
19
- "mini-program",
20
20
  "wechat",
21
+ "mini-program",
22
+ "miniprogram",
21
23
  "vue3",
22
24
  "runtime",
23
25
  "reactivity",
24
26
  "setData",
25
27
  "pinia",
26
- "state-management"
28
+ "state-management",
29
+ "vue"
27
30
  ],
28
31
  "sideEffects": [
29
32
  "./dist/api/vitest/setup.mjs",
@@ -271,11 +274,12 @@
271
274
  }
272
275
  },
273
276
  "dependencies": {
274
- "@weapp-core/constants": "0.2.2",
275
- "@weapp-core/shared": "3.2.1",
276
- "@wevu/api": "0.3.1",
277
- "@wevu/compiler": "7.1.0",
278
- "@wevu/web-apis": "1.2.41",
277
+ "@weapp-core/constants": "0.2.3",
278
+ "@weapp-core/shared": "3.2.2",
279
+ "@weapp-core/types": "1.1.0",
280
+ "@wevu/api": "0.3.2",
281
+ "@wevu/compiler": "7.1.2",
282
+ "@wevu/web-apis": "1.2.42",
279
283
  "vue": "^3.5.42"
280
284
  },
281
285
  "scripts": {
@@ -1,4 +0,0 @@
1
- import { WevuJsxHostAttributes } from "../jsx-runtime.mjs";
2
- //#region src/alipayIntrinsicElements/base.d.ts
3
- export type AlipayIntrinsicElementBaseAttributes = WevuJsxHostAttributes;
4
- //#endregion
@@ -1,29 +0,0 @@
1
- import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
2
- import { AlipayIntrinsicElementBaseAttributes } from "../base.mjs";
3
- //#region src/alipayIntrinsicElements/elements/button.d.ts
4
- /**
5
- * @see https://opendocs.alipay.com/mini/component/button
6
- */
7
- export type AlipayIntrinsicElementButton = AlipayIntrinsicElementBaseAttributes & {
8
- disabled?: boolean;
9
- 'form-type'?: 'reset' | 'submit';
10
- 'hover-class'?: string;
11
- 'hover-start-time'?: number;
12
- 'hover-stay-time'?: number;
13
- 'hover-stop-propagation'?: boolean;
14
- loading?: boolean;
15
- onChooseAvatar?: WevuJsxEventHandler;
16
- onError?: WevuJsxEventHandler;
17
- onFollowLifestyle?: WevuJsxEventHandler;
18
- onGetAuthorize?: WevuJsxEventHandler;
19
- onGetPhoneNumber?: WevuJsxEventHandler;
20
- onGetUserInfo?: WevuJsxEventHandler;
21
- onTap?: WevuJsxEventHandler;
22
- 'open-type'?: 'chooseAvatar' | 'contactShare' | 'getAuthorize' | 'lifestyle' | 'share';
23
- plain?: boolean;
24
- 'public-id'?: string;
25
- scope?: 'phoneNumber';
26
- size?: 'default' | 'mini';
27
- type?: 'default' | 'primary' | 'warn';
28
- };
29
- //#endregion
@@ -1,18 +0,0 @@
1
- import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
2
- import { AlipayIntrinsicElementBaseAttributes } from "../base.mjs";
3
- //#region src/alipayIntrinsicElements/elements/camera.d.ts
4
- /**
5
- * @see https://opendocs.alipay.com/mini/03qegu
6
- */
7
- export type AlipayIntrinsicElementCamera = AlipayIntrinsicElementBaseAttributes & {
8
- 'device-position'?: string;
9
- flash?: string;
10
- 'frame-size'?: string;
11
- mode?: string;
12
- onError?: WevuJsxEventHandler;
13
- onReady?: WevuJsxEventHandler;
14
- onScanCode?: WevuJsxEventHandler;
15
- onStop?: WevuJsxEventHandler;
16
- 'output-dimension'?: string;
17
- };
18
- //#endregion
@@ -1,20 +0,0 @@
1
- import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
2
- import { AlipayIntrinsicElementBaseAttributes } from "../base.mjs";
3
- //#region src/alipayIntrinsicElements/elements/canvas.d.ts
4
- /**
5
- * @see https://opendocs.alipay.com/mini/component/canvas
6
- */
7
- export type AlipayIntrinsicElementCanvas = AlipayIntrinsicElementBaseAttributes & {
8
- 'disable-scroll'?: boolean;
9
- height?: string;
10
- onLongTap?: WevuJsxEventHandler;
11
- onReady?: WevuJsxEventHandler;
12
- onTap?: WevuJsxEventHandler;
13
- onTouchCancel?: WevuJsxEventHandler;
14
- onTouchEnd?: WevuJsxEventHandler;
15
- onTouchMove?: WevuJsxEventHandler;
16
- onTouchStart?: WevuJsxEventHandler;
17
- type?: string;
18
- width?: string;
19
- };
20
- //#endregion
@@ -1,11 +0,0 @@
1
- import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
2
- import { AlipayIntrinsicElementBaseAttributes } from "../base.mjs";
3
- //#region src/alipayIntrinsicElements/elements/checkbox-group.d.ts
4
- /**
5
- * @see https://opendocs.alipay.com/mini/component/checkbox-group
6
- */
7
- export type AlipayIntrinsicElementCheckboxGroup = AlipayIntrinsicElementBaseAttributes & {
8
- name?: string;
9
- onChange?: WevuJsxEventHandler;
10
- };
11
- //#endregion
@@ -1,14 +0,0 @@
1
- import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
2
- import { AlipayIntrinsicElementBaseAttributes } from "../base.mjs";
3
- //#region src/alipayIntrinsicElements/elements/checkbox.d.ts
4
- /**
5
- * @see https://opendocs.alipay.com/mini/component/checkbox
6
- */
7
- export type AlipayIntrinsicElementCheckbox = AlipayIntrinsicElementBaseAttributes & {
8
- checked?: boolean;
9
- color?: string;
10
- disabled?: boolean;
11
- onChange?: WevuJsxEventHandler;
12
- value?: string;
13
- };
14
- //#endregion
@@ -1,15 +0,0 @@
1
- import { AlipayIntrinsicElementBaseAttributes } from "../base.mjs";
2
- //#region src/alipayIntrinsicElements/elements/contact-button.d.ts
3
- /**
4
- * @see https://opendocs.alipay.com/mini/component/contact-button
5
- */
6
- export type AlipayIntrinsicElementContactButton = AlipayIntrinsicElementBaseAttributes & {
7
- 'alipay-card-no'?: string;
8
- color?: string;
9
- 'ext-info'?: string;
10
- icon?: unknown;
11
- scene?: string;
12
- size?: number;
13
- 'tnt-inst-id'?: string;
14
- };
15
- //#endregion
@@ -1,11 +0,0 @@
1
- import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
2
- import { AlipayIntrinsicElementBaseAttributes } from "../base.mjs";
3
- //#region src/alipayIntrinsicElements/elements/cover-image.d.ts
4
- /**
5
- * @see https://opendocs.alipay.com/mini/component/cover-image
6
- */
7
- export type AlipayIntrinsicElementCoverImage = AlipayIntrinsicElementBaseAttributes & {
8
- onTap?: WevuJsxEventHandler;
9
- src?: string;
10
- };
11
- //#endregion
@@ -1,11 +0,0 @@
1
- import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
2
- import { AlipayIntrinsicElementBaseAttributes } from "../base.mjs";
3
- //#region src/alipayIntrinsicElements/elements/cover-view.d.ts
4
- /**
5
- * @see https://opendocs.alipay.com/mini/component/cover-view
6
- */
7
- export type AlipayIntrinsicElementCoverView = AlipayIntrinsicElementBaseAttributes & {
8
- onTap?: WevuJsxEventHandler;
9
- penetrateGuesture?: boolean;
10
- };
11
- //#endregion
@@ -1,14 +0,0 @@
1
- import { AlipayIntrinsicElementBaseAttributes } from "../base.mjs";
2
- //#region src/alipayIntrinsicElements/elements/error-view.d.ts
3
- /**
4
- * @see https://opendocs.alipay.com/mini/component/error-view
5
- */
6
- export type AlipayIntrinsicElementErrorView = AlipayIntrinsicElementBaseAttributes & {
7
- fullscreen?: boolean;
8
- message?: string;
9
- 'message-color'?: unknown;
10
- title?: string;
11
- 'title-color'?: unknown;
12
- type?: string;
13
- };
14
- //#endregion
@@ -1,12 +0,0 @@
1
- import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
2
- import { AlipayIntrinsicElementBaseAttributes } from "../base.mjs";
3
- //#region src/alipayIntrinsicElements/elements/form.d.ts
4
- /**
5
- * @see https://opendocs.alipay.com/mini/component/form
6
- */
7
- export type AlipayIntrinsicElementForm = AlipayIntrinsicElementBaseAttributes & {
8
- onReset?: WevuJsxEventHandler;
9
- onSubmit?: WevuJsxEventHandler;
10
- 'report-submit'?: boolean;
11
- };
12
- //#endregion
@@ -1,11 +0,0 @@
1
- import { AlipayIntrinsicElementBaseAttributes } from "../base.mjs";
2
- //#region src/alipayIntrinsicElements/elements/icon.d.ts
3
- /**
4
- * @see https://opendocs.alipay.com/mini/component/icon
5
- */
6
- export type AlipayIntrinsicElementIcon = AlipayIntrinsicElementBaseAttributes & {
7
- color?: string;
8
- size?: number;
9
- type?: string;
10
- };
11
- //#endregion
@@ -1,17 +0,0 @@
1
- import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
2
- import { AlipayIntrinsicElementBaseAttributes } from "../base.mjs";
3
- //#region src/alipayIntrinsicElements/elements/image.d.ts
4
- /**
5
- * @see https://opendocs.alipay.com/mini/component/image
6
- */
7
- export type AlipayIntrinsicElementImage = AlipayIntrinsicElementBaseAttributes & {
8
- catchTap?: WevuJsxEventHandler;
9
- 'default-source'?: string;
10
- 'lazy-load'?: boolean;
11
- mode?: string;
12
- onError?: WevuJsxEventHandler;
13
- onLoad?: WevuJsxEventHandler;
14
- onTap?: WevuJsxEventHandler;
15
- src?: string;
16
- };
17
- //#endregion
@@ -1,31 +0,0 @@
1
- import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
2
- import { AlipayIntrinsicElementBaseAttributes } from "../base.mjs";
3
- //#region src/alipayIntrinsicElements/elements/input.d.ts
4
- /**
5
- * @see https://opendocs.alipay.com/mini/component/input
6
- */
7
- export type AlipayIntrinsicElementInput = AlipayIntrinsicElementBaseAttributes & {
8
- 'always-system'?: boolean;
9
- 'confirm-hold'?: boolean;
10
- 'confirm-type'?: 'done' | 'go' | 'next' | 'search' | 'send';
11
- controlled?: boolean;
12
- cursor?: number;
13
- disabled?: boolean;
14
- focus?: boolean;
15
- maxlength?: number;
16
- name?: string;
17
- onBlur?: WevuJsxEventHandler;
18
- onConfirm?: WevuJsxEventHandler;
19
- onFocus?: WevuJsxEventHandler;
20
- onInput?: WevuJsxEventHandler;
21
- password?: boolean;
22
- placeholder?: string;
23
- 'placeholder-class'?: string;
24
- 'placeholder-style'?: string;
25
- 'random-number'?: boolean;
26
- 'selection-end'?: number;
27
- 'selection-start'?: number;
28
- type?: 'digit' | 'digitpad' | 'idcard' | 'idcardpad' | 'nickname' | 'number' | 'numberpad' | 'text';
29
- value?: string;
30
- };
31
- //#endregion
@@ -1,9 +0,0 @@
1
- import { AlipayIntrinsicElementBaseAttributes } from "../base.mjs";
2
- //#region src/alipayIntrinsicElements/elements/join-group-chat.d.ts
3
- /**
4
- * @see https://opendocs.alipay.com/mini/05snwq
5
- */
6
- export type AlipayIntrinsicElementJoinGroupChat = AlipayIntrinsicElementBaseAttributes & {
7
- 'template-id'?: string;
8
- };
9
- //#endregion
@@ -1,9 +0,0 @@
1
- import { AlipayIntrinsicElementBaseAttributes } from "../base.mjs";
2
- //#region src/alipayIntrinsicElements/elements/label.d.ts
3
- /**
4
- * @see https://opendocs.alipay.com/mini/component/label
5
- */
6
- export type AlipayIntrinsicElementLabel = AlipayIntrinsicElementBaseAttributes & {
7
- for?: string;
8
- };
9
- //#endregion
@@ -1,11 +0,0 @@
1
- import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
2
- import { AlipayIntrinsicElementBaseAttributes } from "../base.mjs";
3
- //#region src/alipayIntrinsicElements/elements/lifestyle.d.ts
4
- /**
5
- * @see https://opendocs.alipay.com/mini/component/lifestyle
6
- */
7
- export type AlipayIntrinsicElementLifestyle = AlipayIntrinsicElementBaseAttributes & {
8
- onFollow?: WevuJsxEventHandler;
9
- 'public-id'?: string;
10
- };
11
- //#endregion
@@ -1,25 +0,0 @@
1
- import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
2
- import { AlipayIntrinsicElementBaseAttributes } from "../base.mjs";
3
- //#region src/alipayIntrinsicElements/elements/lottie.d.ts
4
- /**
5
- * @see https://opendocs.alipay.com/mini/component/lottie
6
- */
7
- export type AlipayIntrinsicElementLottie = AlipayIntrinsicElementBaseAttributes & {
8
- 'assets-path'?: string;
9
- 'auto-reverse'?: boolean;
10
- autoplay?: boolean;
11
- md5?: string;
12
- onAnimationCancel?: WevuJsxEventHandler;
13
- onAnimationEnd?: WevuJsxEventHandler;
14
- onAnimationRepeat?: WevuJsxEventHandler;
15
- onAnimationStart?: WevuJsxEventHandler;
16
- onDataFailed?: WevuJsxEventHandler;
17
- onDataLoadReady?: WevuJsxEventHandler;
18
- onDataReady?: WevuJsxEventHandler;
19
- optimize?: boolean;
20
- path?: string;
21
- placeholder?: string;
22
- 'repeat-count'?: number;
23
- speed?: unknown;
24
- };
25
- //#endregion
@@ -1,44 +0,0 @@
1
- import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
2
- import { AlipayIntrinsicElementBaseAttributes } from "../base.mjs";
3
- //#region src/alipayIntrinsicElements/elements/map.d.ts
4
- /**
5
- * @see https://opendocs.alipay.com/mini/component/map
6
- */
7
- export type AlipayIntrinsicElementMap = AlipayIntrinsicElementBaseAttributes & {
8
- circles?: unknown[];
9
- controls?: unknown[];
10
- 'custom-map-style'?: string;
11
- 'enable-building'?: boolean;
12
- 'enable-overlooking'?: boolean;
13
- 'enable-poi'?: boolean;
14
- 'enable-rotate'?: boolean;
15
- 'enable-satellite'?: boolean;
16
- 'enable-scroll'?: boolean;
17
- 'enable-traffic'?: boolean;
18
- 'enable-zoom'?: boolean;
19
- 'ground-overlays'?: unknown[];
20
- 'include-padding'?: Record<string, unknown>;
21
- 'include-points'?: unknown[];
22
- latitude?: number;
23
- longitude?: number;
24
- markers?: unknown[];
25
- onCalloutTap?: WevuJsxEventHandler;
26
- onControlTap?: WevuJsxEventHandler;
27
- onInitComplete?: WevuJsxEventHandler;
28
- onMarkerTap?: WevuJsxEventHandler;
29
- onPanelTap?: WevuJsxEventHandler;
30
- onRegionChange?: WevuJsxEventHandler;
31
- onTap?: WevuJsxEventHandler;
32
- panels?: unknown[];
33
- polygon?: unknown[];
34
- polyline?: unknown[];
35
- rotate?: number;
36
- scale?: number;
37
- setting?: Record<string, unknown>;
38
- 'show-compass'?: boolean;
39
- 'show-location'?: boolean;
40
- 'show-scale'?: boolean;
41
- skew?: number;
42
- 'tile-overlay'?: Record<string, unknown>;
43
- };
44
- //#endregion
@@ -1,15 +0,0 @@
1
- import { AlipayIntrinsicElementBaseAttributes } from "../base.mjs";
2
- //#region src/alipayIntrinsicElements/elements/match-media.d.ts
3
- /**
4
- * @see https://opendocs.alipay.com/mini/02ycxe
5
- */
6
- export type AlipayIntrinsicElementMatchMedia = AlipayIntrinsicElementBaseAttributes & {
7
- height?: number;
8
- 'max-height'?: number;
9
- 'max-width'?: number;
10
- 'min-height'?: number;
11
- 'min-width'?: number;
12
- orientation?: string;
13
- width?: number;
14
- };
15
- //#endregion
@@ -1,9 +0,0 @@
1
- import { AlipayIntrinsicElementBaseAttributes } from "../base.mjs";
2
- //#region src/alipayIntrinsicElements/elements/movable-area.d.ts
3
- /**
4
- * @see https://opendocs.alipay.com/mini/component/movable-area
5
- */
6
- export type AlipayIntrinsicElementMovableArea = AlipayIntrinsicElementBaseAttributes & {
7
- 'scale-area'?: boolean;
8
- };
9
- //#endregion