wevu 7.0.3 → 7.1.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 (731) hide show
  1. package/README.md +20 -4
  2. package/dist/alipay/jsx-runtime.d.mts +13 -0
  3. package/dist/alipay/jsx-runtime.mjs +1 -0
  4. package/dist/alipayIntrinsicElements/base.d.mts +4 -0
  5. package/dist/alipayIntrinsicElements/elements/button.d.mts +29 -0
  6. package/dist/alipayIntrinsicElements/elements/camera.d.mts +18 -0
  7. package/dist/alipayIntrinsicElements/elements/canvas.d.mts +20 -0
  8. package/dist/alipayIntrinsicElements/elements/checkbox-group.d.mts +11 -0
  9. package/dist/alipayIntrinsicElements/elements/checkbox.d.mts +14 -0
  10. package/dist/alipayIntrinsicElements/elements/contact-button.d.mts +15 -0
  11. package/dist/alipayIntrinsicElements/elements/cover-image.d.mts +11 -0
  12. package/dist/alipayIntrinsicElements/elements/cover-view.d.mts +11 -0
  13. package/dist/alipayIntrinsicElements/elements/error-view.d.mts +14 -0
  14. package/dist/alipayIntrinsicElements/elements/form.d.mts +12 -0
  15. package/dist/alipayIntrinsicElements/elements/icon.d.mts +11 -0
  16. package/dist/alipayIntrinsicElements/elements/image.d.mts +17 -0
  17. package/dist/alipayIntrinsicElements/elements/input.d.mts +31 -0
  18. package/dist/alipayIntrinsicElements/elements/join-group-chat.d.mts +9 -0
  19. package/dist/alipayIntrinsicElements/elements/label.d.mts +9 -0
  20. package/dist/alipayIntrinsicElements/elements/lifestyle.d.mts +11 -0
  21. package/dist/alipayIntrinsicElements/elements/lottie.d.mts +25 -0
  22. package/dist/alipayIntrinsicElements/elements/map.d.mts +44 -0
  23. package/dist/alipayIntrinsicElements/elements/match-media.d.mts +15 -0
  24. package/dist/alipayIntrinsicElements/elements/movable-area.d.mts +9 -0
  25. package/dist/alipayIntrinsicElements/elements/movable-view.d.mts +32 -0
  26. package/dist/alipayIntrinsicElements/elements/navigator.d.mts +13 -0
  27. package/dist/alipayIntrinsicElements/elements/page-container.d.mts +27 -0
  28. package/dist/alipayIntrinsicElements/elements/page-meta.d.mts +19 -0
  29. package/dist/alipayIntrinsicElements/elements/picker-view-column.d.mts +7 -0
  30. package/dist/alipayIntrinsicElements/elements/picker-view.d.mts +18 -0
  31. package/dist/alipayIntrinsicElements/elements/picker.d.mts +15 -0
  32. package/dist/alipayIntrinsicElements/elements/progress.d.mts +14 -0
  33. package/dist/alipayIntrinsicElements/elements/radio-group.d.mts +11 -0
  34. package/dist/alipayIntrinsicElements/elements/radio.d.mts +12 -0
  35. package/dist/alipayIntrinsicElements/elements/rich-text.d.mts +17 -0
  36. package/dist/alipayIntrinsicElements/elements/root-portal.d.mts +9 -0
  37. package/dist/alipayIntrinsicElements/elements/scroll-view.d.mts +29 -0
  38. package/dist/alipayIntrinsicElements/elements/share-element.d.mts +12 -0
  39. package/dist/alipayIntrinsicElements/elements/slider.d.mts +23 -0
  40. package/dist/alipayIntrinsicElements/elements/subscribe-message.d.mts +11 -0
  41. package/dist/alipayIntrinsicElements/elements/swiper-item.d.mts +7 -0
  42. package/dist/alipayIntrinsicElements/elements/swiper.d.mts +36 -0
  43. package/dist/alipayIntrinsicElements/elements/switch.d.mts +15 -0
  44. package/dist/alipayIntrinsicElements/elements/text.d.mts +12 -0
  45. package/dist/alipayIntrinsicElements/elements/textarea.d.mts +24 -0
  46. package/dist/alipayIntrinsicElements/elements/video.d.mts +39 -0
  47. package/dist/alipayIntrinsicElements/elements/view.d.mts +29 -0
  48. package/dist/alipayIntrinsicElements/elements/web-view.d.mts +13 -0
  49. package/dist/alipayIntrinsicElements.d.mts +94 -0
  50. package/dist/dev/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/defineProperty.mjs +1 -1
  51. package/dist/dev/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/toPrimitive.mjs +1 -1
  52. package/dist/dev/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/toPropertyKey.mjs +1 -1
  53. package/dist/dev/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/typeof.mjs +1 -1
  54. package/dist/dev/alipayIntrinsicElements/base.d.mts +5 -0
  55. package/dist/dev/alipayIntrinsicElements/elements/button.d.mts +30 -0
  56. package/dist/dev/alipayIntrinsicElements/elements/camera.d.mts +19 -0
  57. package/dist/dev/alipayIntrinsicElements/elements/canvas.d.mts +21 -0
  58. package/dist/dev/alipayIntrinsicElements/elements/checkbox-group.d.mts +12 -0
  59. package/dist/dev/alipayIntrinsicElements/elements/checkbox.d.mts +15 -0
  60. package/dist/dev/alipayIntrinsicElements/elements/contact-button.d.mts +16 -0
  61. package/dist/dev/alipayIntrinsicElements/elements/cover-image.d.mts +12 -0
  62. package/dist/dev/alipayIntrinsicElements/elements/cover-view.d.mts +12 -0
  63. package/dist/dev/alipayIntrinsicElements/elements/error-view.d.mts +15 -0
  64. package/dist/dev/alipayIntrinsicElements/elements/form.d.mts +13 -0
  65. package/dist/dev/alipayIntrinsicElements/elements/icon.d.mts +12 -0
  66. package/dist/dev/alipayIntrinsicElements/elements/image.d.mts +18 -0
  67. package/dist/dev/alipayIntrinsicElements/elements/input.d.mts +32 -0
  68. package/dist/dev/alipayIntrinsicElements/elements/join-group-chat.d.mts +10 -0
  69. package/dist/dev/alipayIntrinsicElements/elements/label.d.mts +10 -0
  70. package/dist/dev/alipayIntrinsicElements/elements/lifestyle.d.mts +12 -0
  71. package/dist/dev/alipayIntrinsicElements/elements/lottie.d.mts +26 -0
  72. package/dist/dev/alipayIntrinsicElements/elements/map.d.mts +45 -0
  73. package/dist/dev/alipayIntrinsicElements/elements/match-media.d.mts +16 -0
  74. package/dist/dev/alipayIntrinsicElements/elements/movable-area.d.mts +10 -0
  75. package/dist/dev/alipayIntrinsicElements/elements/movable-view.d.mts +33 -0
  76. package/dist/dev/alipayIntrinsicElements/elements/navigator.d.mts +14 -0
  77. package/dist/dev/alipayIntrinsicElements/elements/page-container.d.mts +28 -0
  78. package/dist/dev/alipayIntrinsicElements/elements/page-meta.d.mts +20 -0
  79. package/dist/dev/alipayIntrinsicElements/elements/picker-view-column.d.mts +8 -0
  80. package/dist/dev/alipayIntrinsicElements/elements/picker-view.d.mts +19 -0
  81. package/dist/dev/alipayIntrinsicElements/elements/picker.d.mts +16 -0
  82. package/dist/dev/alipayIntrinsicElements/elements/progress.d.mts +15 -0
  83. package/dist/dev/alipayIntrinsicElements/elements/radio-group.d.mts +12 -0
  84. package/dist/dev/alipayIntrinsicElements/elements/radio.d.mts +13 -0
  85. package/dist/dev/alipayIntrinsicElements/elements/rich-text.d.mts +18 -0
  86. package/dist/dev/alipayIntrinsicElements/elements/root-portal.d.mts +10 -0
  87. package/dist/dev/alipayIntrinsicElements/elements/scroll-view.d.mts +30 -0
  88. package/dist/dev/alipayIntrinsicElements/elements/share-element.d.mts +13 -0
  89. package/dist/dev/alipayIntrinsicElements/elements/slider.d.mts +24 -0
  90. package/dist/dev/alipayIntrinsicElements/elements/subscribe-message.d.mts +12 -0
  91. package/dist/dev/alipayIntrinsicElements/elements/swiper-item.d.mts +8 -0
  92. package/dist/dev/alipayIntrinsicElements/elements/swiper.d.mts +37 -0
  93. package/dist/dev/alipayIntrinsicElements/elements/switch.d.mts +16 -0
  94. package/dist/dev/alipayIntrinsicElements/elements/text.d.mts +13 -0
  95. package/dist/dev/alipayIntrinsicElements/elements/textarea.d.mts +25 -0
  96. package/dist/dev/alipayIntrinsicElements/elements/video.d.mts +40 -0
  97. package/dist/dev/alipayIntrinsicElements/elements/view.d.mts +30 -0
  98. package/dist/dev/alipayIntrinsicElements/elements/web-view.d.mts +14 -0
  99. package/dist/dev/alipayIntrinsicElements.d.mts +94 -0
  100. package/dist/dev/api/vitest/setup.d.mts +1 -0
  101. package/dist/dev/api/vitest.d.mts +1 -0
  102. package/dist/dev/api.d.mts +1 -0
  103. package/dist/dev/compiler.d.mts +1 -0
  104. package/dist/dev/fetch.d.mts +9 -0
  105. package/dist/dev/index.d.mts +72 -0
  106. package/dist/dev/index.mjs +12 -15
  107. package/dist/dev/internal-reactivity.d.mts +18 -0
  108. package/dist/dev/internal-reactivity.mjs +3 -2
  109. package/dist/dev/internal-runtime.d.mts +44 -0
  110. package/dist/dev/internal-runtime.mjs +19 -14
  111. package/dist/dev/internal-template.d.mts +2 -0
  112. package/dist/dev/jsx-runtime.d.mts +44 -0
  113. package/dist/dev/jsxTypes.d.mts +9 -0
  114. package/dist/dev/macros/shared.d.mts +81 -0
  115. package/dist/dev/macros.d.mts +71 -0
  116. package/dist/dev/package.mjs +1 -1
  117. package/dist/dev/reactivity/asyncDerivation.d.mts +41 -0
  118. package/dist/dev/reactivity/asyncDerivation.mjs +130 -0
  119. package/dist/dev/reactivity/asyncDerivation.mjs.map +1 -0
  120. package/dist/dev/reactivity/computed.d.mts +21 -0
  121. package/dist/dev/reactivity/computed.mjs +2 -2
  122. package/dist/dev/reactivity/computed.mjs.map +1 -1
  123. package/dist/dev/reactivity/core.d.mts +35 -0
  124. package/dist/dev/reactivity/core.mjs +156 -32
  125. package/dist/dev/reactivity/core.mjs.map +1 -1
  126. package/dist/dev/reactivity/index.d.mts +16 -0
  127. package/dist/dev/reactivity/reactive/mutation.d.mts +21 -0
  128. package/dist/dev/reactivity/reactive/patch.d.mts +18 -0
  129. package/dist/dev/reactivity/reactive/shallow.d.mts +22 -0
  130. package/dist/dev/reactivity/reactive/shared.d.mts +4 -0
  131. package/dist/dev/reactivity/reactive.d.mts +42 -0
  132. package/dist/dev/reactivity/readonly.d.mts +27 -0
  133. package/dist/dev/reactivity/readonly.mjs.map +1 -1
  134. package/dist/dev/reactivity/ref.d.mts +27 -0
  135. package/dist/dev/reactivity/ref.mjs +1 -1
  136. package/dist/dev/reactivity/shallowRef.d.mts +19 -0
  137. package/dist/dev/reactivity/toRefs.d.mts +43 -0
  138. package/dist/dev/reactivity/traverse.d.mts +8 -0
  139. package/dist/dev/reactivity/watch/types.d.mts +43 -0
  140. package/dist/dev/reactivity/watch.d.mts +22 -0
  141. package/dist/dev/router/createRouter.d.mts +8 -0
  142. package/dist/dev/router/navigationCore.d.mts +6 -0
  143. package/dist/dev/router/resolve.d.mts +6 -0
  144. package/dist/dev/router/routeSync.d.mts +1 -0
  145. package/dist/dev/router/routeSync.mjs +8 -2
  146. package/dist/dev/router/routeSync.mjs.map +1 -1
  147. package/dist/dev/router/types.d.mts +172 -0
  148. package/dist/dev/router/useRoute.d.mts +19 -0
  149. package/dist/dev/router/useRoute.mjs +14 -7
  150. package/dist/dev/router/useRoute.mjs.map +1 -1
  151. package/dist/dev/router/useRouter.d.mts +8 -0
  152. package/dist/dev/router.d.mts +10 -0
  153. package/dist/dev/routerInternal/query.d.mts +7 -0
  154. package/dist/dev/routerInternal/types.d.mts +9 -0
  155. package/dist/dev/runtime/app/computed.mjs +2 -2
  156. package/dist/dev/runtime/app/computed.mjs.map +1 -1
  157. package/dist/dev/runtime/app/context.mjs +8 -2
  158. package/dist/dev/runtime/app/context.mjs.map +1 -1
  159. package/dist/dev/runtime/app/diagnostics.mjs +12 -0
  160. package/dist/dev/runtime/app/diagnostics.mjs.map +1 -1
  161. package/dist/dev/runtime/app/mount.mjs +31 -28
  162. package/dist/dev/runtime/app/mount.mjs.map +1 -1
  163. package/dist/dev/runtime/app/pending.d.mts +10 -0
  164. package/dist/dev/runtime/app/setData/commitTracker.d.mts +13 -0
  165. package/dist/dev/runtime/app/setData/commitTracker.mjs +265 -0
  166. package/dist/dev/runtime/app/setData/commitTracker.mjs.map +1 -0
  167. package/dist/dev/runtime/app/setData/patchScheduler.mjs +47 -51
  168. package/dist/dev/runtime/app/setData/patchScheduler.mjs.map +1 -1
  169. package/dist/dev/runtime/app/setData/scheduler.d.mts +51 -0
  170. package/dist/dev/runtime/app/setData/scheduler.mjs +98 -111
  171. package/dist/dev/runtime/app/setData/scheduler.mjs.map +1 -1
  172. package/dist/dev/runtime/app/setData/snapshot.mjs +11 -1
  173. package/dist/dev/runtime/app/setData/snapshot.mjs.map +1 -1
  174. package/dist/dev/runtime/app.d.mts +8 -0
  175. package/dist/dev/runtime/app.mjs +18 -6
  176. package/dist/dev/runtime/app.mjs.map +1 -1
  177. package/dist/dev/runtime/bindingManifest.mjs +105 -0
  178. package/dist/dev/runtime/bindingManifest.mjs.map +1 -0
  179. package/dist/dev/runtime/capabilities.d.mts +75 -0
  180. package/dist/dev/runtime/capabilities.mjs +40 -0
  181. package/dist/dev/runtime/capabilities.mjs.map +1 -0
  182. package/dist/dev/runtime/css.d.mts +14 -0
  183. package/dist/dev/runtime/defaults.d.mts +12 -0
  184. package/dist/dev/runtime/define/componentDefinition.mjs +3 -0
  185. package/dist/dev/runtime/define/componentDefinition.mjs.map +1 -1
  186. package/dist/dev/runtime/define/optionsApi.mjs +1 -1
  187. package/dist/dev/runtime/define/props.mjs +30 -60
  188. package/dist/dev/runtime/define/props.mjs.map +1 -1
  189. package/dist/dev/runtime/define/scopedSlotOptions.mjs +37 -21
  190. package/dist/dev/runtime/define/scopedSlotOptions.mjs.map +1 -1
  191. package/dist/dev/runtime/define.d.mts +118 -0
  192. package/dist/dev/runtime/define.mjs +32 -44
  193. package/dist/dev/runtime/define.mjs.map +1 -1
  194. package/dist/dev/runtime/diff.mjs +1 -1
  195. package/dist/dev/runtime/disposables.d.mts +31 -0
  196. package/dist/dev/runtime/elementIntersectionObserver.d.mts +26 -0
  197. package/dist/dev/runtime/features/inlineEvents.d.mts +7 -0
  198. package/dist/dev/runtime/features/inlineEvents.mjs +25 -0
  199. package/dist/dev/runtime/features/inlineEvents.mjs.map +1 -0
  200. package/dist/dev/runtime/features/layout.d.mts +7 -0
  201. package/dist/dev/runtime/features/layout.mjs +44 -0
  202. package/dist/dev/runtime/features/layout.mjs.map +1 -0
  203. package/dist/dev/runtime/features/patchStrategy.d.mts +7 -0
  204. package/dist/dev/runtime/features/patchStrategy.mjs +129 -0
  205. package/dist/dev/runtime/features/patchStrategy.mjs.map +1 -0
  206. package/dist/dev/runtime/features/publicLayout.d.mts +24 -0
  207. package/dist/dev/runtime/features/publicLayout.mjs +81 -0
  208. package/dist/dev/runtime/features/publicLayout.mjs.map +1 -0
  209. package/dist/dev/runtime/features/scopedSlots.d.mts +23 -0
  210. package/dist/dev/runtime/features/scopedSlots.mjs +88 -0
  211. package/dist/dev/runtime/features/scopedSlots.mjs.map +1 -0
  212. package/dist/dev/runtime/features/setDataHighFrequencyWarning.d.mts +7 -0
  213. package/dist/dev/runtime/features/setDataHighFrequencyWarning.mjs +15 -0
  214. package/dist/dev/runtime/features/setDataHighFrequencyWarning.mjs.map +1 -0
  215. package/dist/dev/runtime/features/templateRefs.d.mts +7 -0
  216. package/dist/dev/runtime/features/templateRefs.mjs +39 -0
  217. package/dist/dev/runtime/features/templateRefs.mjs.map +1 -0
  218. package/dist/dev/runtime/hooks/base.d.mts +27 -0
  219. package/dist/dev/runtime/hooks/register.d.mts +30 -0
  220. package/dist/dev/runtime/hooks/vue.d.mts +52 -0
  221. package/dist/dev/runtime/hooks/vue.mjs +3 -5
  222. package/dist/dev/runtime/hooks/vue.mjs.map +1 -1
  223. package/dist/dev/runtime/hooks.d.mts +4 -0
  224. package/dist/dev/runtime/index.d.mts +46 -0
  225. package/dist/dev/runtime/inlineDataset.mjs +75 -0
  226. package/dist/dev/runtime/inlineDataset.mjs.map +1 -0
  227. package/dist/dev/runtime/intersectionObserver.d.mts +14 -0
  228. package/dist/dev/runtime/jsxIsland.d.mts +37 -0
  229. package/dist/dev/runtime/jsxIsland.mjs.map +1 -1
  230. package/dist/dev/runtime/layoutBridge.d.mts +55 -0
  231. package/dist/dev/runtime/layoutBridge.mjs.map +1 -1
  232. package/dist/dev/runtime/noSetData.d.mts +5 -0
  233. package/dist/dev/runtime/pageEnvironment.d.mts +50 -0
  234. package/dist/dev/runtime/pageLayout.d.mts +25 -0
  235. package/dist/dev/runtime/pageLayout.mjs.map +1 -1
  236. package/dist/dev/runtime/pageScroll.d.mts +29 -0
  237. package/dist/dev/runtime/provide.d.mts +60 -0
  238. package/dist/dev/runtime/provideStore.d.mts +7 -0
  239. package/dist/dev/runtime/publicRuntime.d.mts +22 -0
  240. package/dist/dev/runtime/publicRuntime.mjs +91 -0
  241. package/dist/dev/runtime/publicRuntime.mjs.map +1 -0
  242. package/dist/dev/runtime/pullDownRefresh.d.mts +12 -0
  243. package/dist/dev/runtime/register/app.d.mts +14 -0
  244. package/dist/dev/runtime/register/app.mjs +7 -10
  245. package/dist/dev/runtime/register/app.mjs.map +1 -1
  246. package/dist/dev/runtime/register/component/lifecycle.mjs +22 -6
  247. package/dist/dev/runtime/register/component/lifecycle.mjs.map +1 -1
  248. package/dist/dev/runtime/register/component/methods.mjs +7 -10
  249. package/dist/dev/runtime/register/component/methods.mjs.map +1 -1
  250. package/dist/dev/runtime/register/component/options.mjs.map +1 -1
  251. package/dist/dev/runtime/register/component/registerDefinition.mjs +64 -69
  252. package/dist/dev/runtime/register/component/registerDefinition.mjs.map +1 -1
  253. package/dist/dev/runtime/register/component.d.mts +17 -0
  254. package/dist/dev/runtime/register/inline.d.mts +15 -0
  255. package/dist/dev/runtime/register/inline.mjs +4 -64
  256. package/dist/dev/runtime/register/inline.mjs.map +1 -1
  257. package/dist/dev/runtime/register/runtimeInstance/setupContext.mjs +16 -2
  258. package/dist/dev/runtime/register/runtimeInstance/setupContext.mjs.map +1 -1
  259. package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs +0 -4
  260. package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs.map +1 -1
  261. package/dist/dev/runtime/register/runtimeInstance/setupSnapshot.mjs +26 -0
  262. package/dist/dev/runtime/register/runtimeInstance/setupSnapshot.mjs.map +1 -0
  263. package/dist/dev/runtime/register/runtimeInstance/utils.mjs.map +1 -1
  264. package/dist/dev/runtime/register/runtimeInstance.d.mts +26 -0
  265. package/dist/dev/runtime/register/runtimeInstance.mjs +402 -160
  266. package/dist/dev/runtime/register/runtimeInstance.mjs.map +1 -1
  267. package/dist/dev/runtime/register/setDataFrequencyWarning.mjs.map +1 -1
  268. package/dist/dev/runtime/register/setup.d.mts +11 -0
  269. package/dist/dev/runtime/register/snapshot.mjs +6 -10
  270. package/dist/dev/runtime/register/snapshot.mjs.map +1 -1
  271. package/dist/dev/runtime/register/watch.d.mts +12 -0
  272. package/dist/dev/runtime/register.d.mts +5 -0
  273. package/dist/dev/runtime/scopedSlots.mjs +1 -1
  274. package/dist/dev/runtime/scopedSlots.mjs.map +1 -1
  275. package/dist/dev/runtime/selectorQuery.d.mts +54 -0
  276. package/dist/dev/runtime/selectorQuery.mjs +5 -0
  277. package/dist/dev/runtime/selectorQuery.mjs.map +1 -1
  278. package/dist/dev/runtime/teardown.mjs +18 -0
  279. package/dist/dev/runtime/teardown.mjs.map +1 -0
  280. package/dist/dev/runtime/template.d.mts +6 -0
  281. package/dist/dev/runtime/templateRefTypes.d.mts +12 -0
  282. package/dist/dev/runtime/templateRefs/helpers.mjs.map +1 -1
  283. package/dist/dev/runtime/templateRefs.mjs +187 -118
  284. package/dist/dev/runtime/templateRefs.mjs.map +1 -1
  285. package/dist/dev/runtime/types/core.d.mts +35 -0
  286. package/dist/dev/runtime/types/miniprogram.d.mts +84 -0
  287. package/dist/dev/runtime/types/miniprogramHost.d.mts +45 -0
  288. package/dist/dev/runtime/types/miniprogramHostSources.d.mts +112 -0
  289. package/dist/dev/runtime/types/options.d.mts +136 -0
  290. package/dist/dev/runtime/types/props/propTypes.d.mts +79 -0
  291. package/dist/dev/runtime/types/props/router.d.mts +51 -0
  292. package/dist/dev/runtime/types/props/setup.d.mts +96 -0
  293. package/dist/dev/runtime/types/props.d.mts +4 -0
  294. package/dist/dev/runtime/types/runtime.d.mts +59 -0
  295. package/dist/dev/runtime/types/setData.d.mts +237 -0
  296. package/dist/dev/runtime/types.d.mts +29 -0
  297. package/dist/dev/runtime/uniAppHost.d.mts +8 -0
  298. package/dist/dev/runtime/updatePerformance.d.mts +13 -0
  299. package/dist/dev/runtime/use.d.mts +13 -0
  300. package/dist/dev/runtime/vueCompat/context.d.mts +8 -0
  301. package/dist/dev/runtime/vueCompat/model.d.mts +30 -0
  302. package/dist/dev/runtime/vueCompat/router.d.mts +28 -0
  303. package/dist/dev/runtime/vueCompat/templateRef.d.mts +9 -0
  304. package/dist/dev/runtime/vueCompat/templateRef.mjs +2 -0
  305. package/dist/dev/runtime/vueCompat/templateRef.mjs.map +1 -1
  306. package/dist/dev/runtime/vueCompat.d.mts +5 -0
  307. package/dist/dev/scheduler.d.mts +4 -0
  308. package/dist/dev/store/base.mjs +12 -18
  309. package/dist/dev/store/base.mjs.map +1 -1
  310. package/dist/dev/store/define/optionsStyle.mjs +13 -23
  311. package/dist/dev/store/define/optionsStyle.mjs.map +1 -1
  312. package/dist/dev/store/define/setupStyle.mjs +14 -24
  313. package/dist/dev/store/define/setupStyle.mjs.map +1 -1
  314. package/dist/dev/store/define/shared.mjs +44 -1
  315. package/dist/dev/store/define/shared.mjs.map +1 -1
  316. package/dist/dev/store/define.d.mts +28 -0
  317. package/dist/dev/store/define.mjs.map +1 -1
  318. package/dist/dev/store/manager.d.mts +8 -0
  319. package/dist/dev/store/storeToRefs.d.mts +13 -0
  320. package/dist/dev/store/types.d.mts +70 -0
  321. package/dist/dev/store.d.mts +5 -0
  322. package/dist/dev/ttIntrinsicElements/base.d.mts +5 -0
  323. package/dist/dev/ttIntrinsicElements/elements/ad.d.mts +8 -0
  324. package/dist/dev/ttIntrinsicElements/elements/aweme-data.d.mts +15 -0
  325. package/dist/dev/ttIntrinsicElements/elements/aweme-user-card.d.mts +16 -0
  326. package/dist/dev/ttIntrinsicElements/elements/button.d.mts +23 -0
  327. package/dist/dev/ttIntrinsicElements/elements/camera.d.mts +19 -0
  328. package/dist/dev/ttIntrinsicElements/elements/canvas.d.mts +16 -0
  329. package/dist/dev/ttIntrinsicElements/elements/checkbox-group.d.mts +12 -0
  330. package/dist/dev/ttIntrinsicElements/elements/checkbox.d.mts +12 -0
  331. package/dist/dev/ttIntrinsicElements/elements/draw-ad.d.mts +16 -0
  332. package/dist/dev/ttIntrinsicElements/elements/form.d.mts +14 -0
  333. package/dist/dev/ttIntrinsicElements/elements/icon.d.mts +11 -0
  334. package/dist/dev/ttIntrinsicElements/elements/image.d.mts +16 -0
  335. package/dist/dev/ttIntrinsicElements/elements/input.d.mts +32 -0
  336. package/dist/dev/ttIntrinsicElements/elements/label.d.mts +10 -0
  337. package/dist/dev/ttIntrinsicElements/elements/live-player.d.mts +19 -0
  338. package/dist/dev/ttIntrinsicElements/elements/live-preview.d.mts +13 -0
  339. package/dist/dev/ttIntrinsicElements/elements/map.d.mts +36 -0
  340. package/dist/dev/ttIntrinsicElements/elements/mask.d.mts +8 -0
  341. package/dist/dev/ttIntrinsicElements/elements/match-media.d.mts +16 -0
  342. package/dist/dev/ttIntrinsicElements/elements/movable-area.d.mts +10 -0
  343. package/dist/dev/ttIntrinsicElements/elements/movable-view.d.mts +27 -0
  344. package/dist/dev/ttIntrinsicElements/elements/navigator.d.mts +16 -0
  345. package/dist/dev/ttIntrinsicElements/elements/open-data.d.mts +15 -0
  346. package/dist/dev/ttIntrinsicElements/elements/picker-view-column.d.mts +8 -0
  347. package/dist/dev/ttIntrinsicElements/elements/picker-view.d.mts +19 -0
  348. package/dist/dev/ttIntrinsicElements/elements/picker.d.mts +22 -0
  349. package/dist/dev/ttIntrinsicElements/elements/progress.d.mts +16 -0
  350. package/dist/dev/ttIntrinsicElements/elements/radio-group.d.mts +12 -0
  351. package/dist/dev/ttIntrinsicElements/elements/radio.d.mts +12 -0
  352. package/dist/dev/ttIntrinsicElements/elements/rich-text.d.mts +10 -0
  353. package/dist/dev/ttIntrinsicElements/elements/rtc-room.d.mts +13 -0
  354. package/dist/dev/ttIntrinsicElements/elements/scroll-view.d.mts +32 -0
  355. package/dist/dev/ttIntrinsicElements/elements/slider.d.mts +19 -0
  356. package/dist/dev/ttIntrinsicElements/elements/swiper-item.d.mts +10 -0
  357. package/dist/dev/ttIntrinsicElements/elements/swiper.d.mts +27 -0
  358. package/dist/dev/ttIntrinsicElements/elements/switch.d.mts +14 -0
  359. package/dist/dev/ttIntrinsicElements/elements/text.d.mts +12 -0
  360. package/dist/dev/ttIntrinsicElements/elements/textarea.d.mts +34 -0
  361. package/dist/dev/ttIntrinsicElements/elements/video.d.mts +58 -0
  362. package/dist/dev/ttIntrinsicElements/elements/view.d.mts +15 -0
  363. package/dist/dev/ttIntrinsicElements/elements/web-view.d.mts +15 -0
  364. package/dist/dev/ttIntrinsicElements.d.mts +88 -0
  365. package/dist/dev/version.d.mts +4 -0
  366. package/dist/dev/vue-augment.d.mts +8 -0
  367. package/dist/dev/vue-demi.d.mts +87 -0
  368. package/dist/dev/vue-demi.mjs +12 -15
  369. package/dist/dev/vue-demi.mjs.map +1 -1
  370. package/dist/dev/vue-types.d.mts +19 -0
  371. package/dist/dev/weappIntrinsicElements/base.d.mts +5 -0
  372. package/dist/dev/weappIntrinsicElements/elements/ad-custom.d.mts +14 -0
  373. package/dist/dev/weappIntrinsicElements/elements/ad.d.mts +17 -0
  374. package/dist/dev/weappIntrinsicElements/elements/audio.d.mts +21 -0
  375. package/dist/dev/weappIntrinsicElements/elements/block.d.mts +8 -0
  376. package/dist/dev/weappIntrinsicElements/elements/button.d.mts +42 -0
  377. package/dist/dev/weappIntrinsicElements/elements/camera.d.mts +19 -0
  378. package/dist/dev/weappIntrinsicElements/elements/canvas.d.mts +19 -0
  379. package/dist/dev/weappIntrinsicElements/elements/checkbox-group.d.mts +11 -0
  380. package/dist/dev/weappIntrinsicElements/elements/checkbox.d.mts +13 -0
  381. package/dist/dev/weappIntrinsicElements/elements/cover-image.d.mts +14 -0
  382. package/dist/dev/weappIntrinsicElements/elements/cover-view.d.mts +10 -0
  383. package/dist/dev/weappIntrinsicElements/elements/editor.d.mts +23 -0
  384. package/dist/dev/weappIntrinsicElements/elements/form.d.mts +17 -0
  385. package/dist/dev/weappIntrinsicElements/elements/functional-page-navigator.d.mts +16 -0
  386. package/dist/dev/weappIntrinsicElements/elements/icon.d.mts +12 -0
  387. package/dist/dev/weappIntrinsicElements/elements/image.d.mts +19 -0
  388. package/dist/dev/weappIntrinsicElements/elements/import.d.mts +10 -0
  389. package/dist/dev/weappIntrinsicElements/elements/include.d.mts +10 -0
  390. package/dist/dev/weappIntrinsicElements/elements/input.d.mts +47 -0
  391. package/dist/dev/weappIntrinsicElements/elements/keyboard-accessory.d.mts +8 -0
  392. package/dist/dev/weappIntrinsicElements/elements/label.d.mts +10 -0
  393. package/dist/dev/weappIntrinsicElements/elements/live-player.d.mts +36 -0
  394. package/dist/dev/weappIntrinsicElements/elements/live-pusher.d.mts +58 -0
  395. package/dist/dev/weappIntrinsicElements/elements/map.d.mts +106 -0
  396. package/dist/dev/weappIntrinsicElements/elements/match-media.d.mts +16 -0
  397. package/dist/dev/weappIntrinsicElements/elements/movable-area.d.mts +27 -0
  398. package/dist/dev/weappIntrinsicElements/elements/movable-view.d.mts +27 -0
  399. package/dist/dev/weappIntrinsicElements/elements/navigation-bar.d.mts +15 -0
  400. package/dist/dev/weappIntrinsicElements/elements/navigator.d.mts +26 -0
  401. package/dist/dev/weappIntrinsicElements/elements/official-account.d.mts +14 -0
  402. package/dist/dev/weappIntrinsicElements/elements/open-data.d.mts +16 -0
  403. package/dist/dev/weappIntrinsicElements/elements/page-container.d.mts +26 -0
  404. package/dist/dev/weappIntrinsicElements/elements/page-meta.d.mts +24 -0
  405. package/dist/dev/weappIntrinsicElements/elements/picker-view-column.d.mts +19 -0
  406. package/dist/dev/weappIntrinsicElements/elements/picker-view.d.mts +19 -0
  407. package/dist/dev/weappIntrinsicElements/elements/picker.d.mts +24 -0
  408. package/dist/dev/weappIntrinsicElements/elements/progress.d.mts +22 -0
  409. package/dist/dev/weappIntrinsicElements/elements/radio-group.d.mts +11 -0
  410. package/dist/dev/weappIntrinsicElements/elements/radio.d.mts +13 -0
  411. package/dist/dev/weappIntrinsicElements/elements/rich-text.d.mts +17 -0
  412. package/dist/dev/weappIntrinsicElements/elements/scroll-view.d.mts +64 -0
  413. package/dist/dev/weappIntrinsicElements/elements/share-element.d.mts +17 -0
  414. package/dist/dev/weappIntrinsicElements/elements/slider.d.mts +24 -0
  415. package/dist/dev/weappIntrinsicElements/elements/slot.d.mts +10 -0
  416. package/dist/dev/weappIntrinsicElements/elements/swiper-item.d.mts +11 -0
  417. package/dist/dev/weappIntrinsicElements/elements/swiper.d.mts +40 -0
  418. package/dist/dev/weappIntrinsicElements/elements/switch.d.mts +15 -0
  419. package/dist/dev/weappIntrinsicElements/elements/template.d.mts +12 -0
  420. package/dist/dev/weappIntrinsicElements/elements/text.d.mts +15 -0
  421. package/dist/dev/weappIntrinsicElements/elements/textarea.d.mts +41 -0
  422. package/dist/dev/weappIntrinsicElements/elements/video.d.mts +72 -0
  423. package/dist/dev/weappIntrinsicElements/elements/view.d.mts +15 -0
  424. package/dist/dev/weappIntrinsicElements/elements/voip-room.d.mts +15 -0
  425. package/dist/dev/weappIntrinsicElements/elements/web-view.d.mts +14 -0
  426. package/dist/dev/weappIntrinsicElements.d.mts +114 -0
  427. package/dist/dev/web-apis.d.mts +3 -0
  428. package/dist/fetch.d.mts +4 -4
  429. package/dist/index.d.mts +13 -14
  430. package/dist/index.mjs +1 -1
  431. package/dist/internal-reactivity.d.mts +2 -1
  432. package/dist/internal-reactivity.mjs +1 -1
  433. package/dist/internal-runtime.d.mts +13 -6
  434. package/dist/internal-runtime.mjs +1 -1
  435. package/dist/jsx-runtime.d.mts +51 -14
  436. package/dist/jsxTypes.d.mts +8 -0
  437. package/dist/macros/shared.d.mts +14 -15
  438. package/dist/macros.d.mts +22 -22
  439. package/dist/miniprogram/jsx-runtime.d.mts +13 -0
  440. package/dist/miniprogram/jsx-runtime.mjs +1 -0
  441. package/dist/miniprogramIntrinsicElements/base.d.mts +4 -0
  442. package/dist/miniprogramIntrinsicElements/elements/button.d.mts +23 -0
  443. package/dist/miniprogramIntrinsicElements/elements/camera.d.mts +18 -0
  444. package/dist/miniprogramIntrinsicElements/elements/canvas.d.mts +16 -0
  445. package/dist/miniprogramIntrinsicElements/elements/checkbox-group.d.mts +12 -0
  446. package/dist/miniprogramIntrinsicElements/elements/checkbox.d.mts +13 -0
  447. package/dist/miniprogramIntrinsicElements/elements/form.d.mts +13 -0
  448. package/dist/miniprogramIntrinsicElements/elements/icon.d.mts +12 -0
  449. package/dist/miniprogramIntrinsicElements/elements/image.d.mts +16 -0
  450. package/dist/miniprogramIntrinsicElements/elements/input.d.mts +29 -0
  451. package/dist/miniprogramIntrinsicElements/elements/label.d.mts +11 -0
  452. package/dist/miniprogramIntrinsicElements/elements/map.d.mts +31 -0
  453. package/dist/miniprogramIntrinsicElements/elements/match-media.d.mts +13 -0
  454. package/dist/miniprogramIntrinsicElements/elements/movable-area.d.mts +9 -0
  455. package/dist/miniprogramIntrinsicElements/elements/movable-view.d.mts +26 -0
  456. package/dist/miniprogramIntrinsicElements/elements/navigator.d.mts +15 -0
  457. package/dist/miniprogramIntrinsicElements/elements/picker-view-column.d.mts +9 -0
  458. package/dist/miniprogramIntrinsicElements/elements/picker-view.d.mts +20 -0
  459. package/dist/miniprogramIntrinsicElements/elements/picker.d.mts +14 -0
  460. package/dist/miniprogramIntrinsicElements/elements/progress.d.mts +12 -0
  461. package/dist/miniprogramIntrinsicElements/elements/radio-group.d.mts +12 -0
  462. package/dist/miniprogramIntrinsicElements/elements/radio.d.mts +13 -0
  463. package/dist/miniprogramIntrinsicElements/elements/rich-text.d.mts +11 -0
  464. package/dist/miniprogramIntrinsicElements/elements/scroll-view.d.mts +22 -0
  465. package/dist/miniprogramIntrinsicElements/elements/slider.d.mts +19 -0
  466. package/dist/miniprogramIntrinsicElements/elements/swiper-item.d.mts +9 -0
  467. package/dist/miniprogramIntrinsicElements/elements/swiper.d.mts +24 -0
  468. package/dist/miniprogramIntrinsicElements/elements/switch.d.mts +14 -0
  469. package/dist/miniprogramIntrinsicElements/elements/text.d.mts +13 -0
  470. package/dist/miniprogramIntrinsicElements/elements/textarea.d.mts +23 -0
  471. package/dist/miniprogramIntrinsicElements/elements/video.d.mts +29 -0
  472. package/dist/miniprogramIntrinsicElements/elements/view.d.mts +16 -0
  473. package/dist/miniprogramIntrinsicElements/elements/web-view.d.mts +15 -0
  474. package/dist/miniprogramIntrinsicElements.d.mts +70 -0
  475. package/dist/package.mjs +1 -1
  476. package/dist/reactivity/asyncDerivation.d.mts +40 -0
  477. package/dist/reactivity/asyncDerivation.mjs +1 -0
  478. package/dist/reactivity/computed.d.mts +8 -9
  479. package/dist/reactivity/computed.mjs +1 -1
  480. package/dist/reactivity/core.d.mts +15 -15
  481. package/dist/reactivity/core.mjs +1 -1
  482. package/dist/reactivity/index.d.mts +2 -1
  483. package/dist/reactivity/reactive/mutation.d.mts +6 -7
  484. package/dist/reactivity/reactive/patch.d.mts +4 -5
  485. package/dist/reactivity/reactive/shallow.d.mts +3 -4
  486. package/dist/reactivity/reactive/shared.d.mts +2 -3
  487. package/dist/reactivity/reactive.d.mts +6 -6
  488. package/dist/reactivity/readonly.d.mts +7 -8
  489. package/dist/reactivity/ref.d.mts +14 -15
  490. package/dist/reactivity/ref.mjs +1 -1
  491. package/dist/reactivity/shallowRef.d.mts +5 -6
  492. package/dist/reactivity/toRefs.d.mts +5 -6
  493. package/dist/reactivity/traverse.d.mts +2 -3
  494. package/dist/reactivity/watch/types.d.mts +18 -19
  495. package/dist/reactivity/watch.d.mts +8 -8
  496. package/dist/router/createRouter.d.mts +2 -3
  497. package/dist/router/navigationCore.d.mts +3 -4
  498. package/dist/router/resolve.d.mts +2 -3
  499. package/dist/router/routeSync.mjs +1 -1
  500. package/dist/router/types.d.mts +38 -39
  501. package/dist/router/useRoute.d.mts +5 -6
  502. package/dist/router/useRoute.mjs +1 -1
  503. package/dist/router/useRouter.d.mts +2 -3
  504. package/dist/routerInternal/query.d.mts +3 -4
  505. package/dist/routerInternal/types.d.mts +2 -3
  506. package/dist/runtime/app/computed.mjs +1 -1
  507. package/dist/runtime/app/context.mjs +1 -1
  508. package/dist/runtime/app/diagnostics.mjs +1 -1
  509. package/dist/runtime/app/mount.mjs +1 -1
  510. package/dist/runtime/app/pending.d.mts +3 -4
  511. package/dist/runtime/app/setData/commitTracker.d.mts +12 -0
  512. package/dist/runtime/app/setData/commitTracker.mjs +1 -0
  513. package/dist/runtime/app/setData/patchScheduler.mjs +1 -1
  514. package/dist/runtime/app/setData/scheduler.d.mts +50 -0
  515. package/dist/runtime/app/setData/scheduler.mjs +1 -1
  516. package/dist/runtime/app/setData/snapshot.mjs +1 -1
  517. package/dist/runtime/app.d.mts +2 -3
  518. package/dist/runtime/app.mjs +1 -1
  519. package/dist/runtime/bindingManifest.mjs +1 -0
  520. package/dist/runtime/capabilities.d.mts +74 -0
  521. package/dist/runtime/capabilities.mjs +1 -0
  522. package/dist/runtime/css.d.mts +3 -4
  523. package/dist/runtime/defaults.d.mts +5 -6
  524. package/dist/runtime/define/componentDefinition.mjs +1 -1
  525. package/dist/runtime/define/optionsApi.mjs +1 -1
  526. package/dist/runtime/define/props.mjs +1 -1
  527. package/dist/runtime/define/scopedSlotOptions.mjs +1 -1
  528. package/dist/runtime/define.d.mts +18 -27
  529. package/dist/runtime/define.mjs +1 -1
  530. package/dist/runtime/diff.mjs +1 -1
  531. package/dist/runtime/disposables.d.mts +6 -7
  532. package/dist/runtime/elementIntersectionObserver.d.mts +5 -6
  533. package/dist/runtime/features/inlineEvents.d.mts +6 -0
  534. package/dist/runtime/features/inlineEvents.mjs +1 -0
  535. package/dist/runtime/features/layout.d.mts +6 -0
  536. package/dist/runtime/features/layout.mjs +1 -0
  537. package/dist/runtime/features/patchStrategy.d.mts +6 -0
  538. package/dist/runtime/features/patchStrategy.mjs +1 -0
  539. package/dist/runtime/features/publicLayout.d.mts +23 -0
  540. package/dist/runtime/features/publicLayout.mjs +1 -0
  541. package/dist/runtime/features/scopedSlots.d.mts +22 -0
  542. package/dist/runtime/features/scopedSlots.mjs +1 -0
  543. package/dist/runtime/features/setDataHighFrequencyWarning.d.mts +6 -0
  544. package/dist/runtime/features/setDataHighFrequencyWarning.mjs +1 -0
  545. package/dist/runtime/features/templateRefs.d.mts +6 -0
  546. package/dist/runtime/features/templateRefs.mjs +1 -0
  547. package/dist/runtime/hooks/base.d.mts +7 -8
  548. package/dist/runtime/hooks/register.d.mts +26 -27
  549. package/dist/runtime/hooks/vue.d.mts +13 -15
  550. package/dist/runtime/hooks/vue.mjs +1 -1
  551. package/dist/runtime/index.d.mts +12 -14
  552. package/dist/runtime/inlineDataset.mjs +1 -0
  553. package/dist/runtime/intersectionObserver.d.mts +4 -5
  554. package/dist/runtime/jsxIsland.d.mts +20 -25
  555. package/dist/runtime/layoutBridge.d.mts +12 -17
  556. package/dist/runtime/noSetData.d.mts +3 -4
  557. package/dist/runtime/pageEnvironment.d.mts +9 -10
  558. package/dist/runtime/pageLayout.d.mts +9 -11
  559. package/dist/runtime/pageScroll.d.mts +4 -5
  560. package/dist/runtime/provide.d.mts +7 -7
  561. package/dist/runtime/provideStore.d.mts +2 -3
  562. package/dist/runtime/publicRuntime.d.mts +21 -0
  563. package/dist/runtime/publicRuntime.mjs +1 -0
  564. package/dist/runtime/pullDownRefresh.d.mts +4 -5
  565. package/dist/runtime/register/app.d.mts +2 -3
  566. package/dist/runtime/register/app.mjs +1 -1
  567. package/dist/runtime/register/component/lifecycle.mjs +1 -1
  568. package/dist/runtime/register/component/methods.mjs +1 -1
  569. package/dist/runtime/register/component/registerDefinition.mjs +1 -1
  570. package/dist/runtime/register/component.d.mts +2 -3
  571. package/dist/runtime/register/inline.d.mts +3 -4
  572. package/dist/runtime/register/inline.mjs +1 -1
  573. package/dist/runtime/register/runtimeInstance/setupContext.mjs +1 -1
  574. package/dist/runtime/register/runtimeInstance/setupPhase.mjs +1 -1
  575. package/dist/runtime/register/runtimeInstance/setupSnapshot.mjs +1 -0
  576. package/dist/runtime/register/runtimeInstance.d.mts +4 -5
  577. package/dist/runtime/register/runtimeInstance.mjs +1 -1
  578. package/dist/runtime/register/setup.d.mts +2 -3
  579. package/dist/runtime/register/snapshot.mjs +1 -1
  580. package/dist/runtime/register/watch.d.mts +3 -4
  581. package/dist/runtime/scopedSlots.mjs +1 -1
  582. package/dist/runtime/selectorQuery.d.mts +15 -16
  583. package/dist/runtime/selectorQuery.mjs +1 -1
  584. package/dist/runtime/teardown.mjs +1 -0
  585. package/dist/runtime/template.d.mts +4 -5
  586. package/dist/runtime/templateRefTypes.d.mts +7 -3
  587. package/dist/runtime/templateRefs.mjs +1 -1
  588. package/dist/runtime/types/core.d.mts +9 -10
  589. package/dist/runtime/types/miniprogram.d.mts +13 -10
  590. package/dist/runtime/types/miniprogramHost.d.mts +41 -41
  591. package/dist/runtime/types/miniprogramHostSources.d.mts +21 -22
  592. package/dist/runtime/types/options.d.mts +8 -9
  593. package/dist/runtime/types/props/propTypes.d.mts +16 -17
  594. package/dist/runtime/types/props/router.d.mts +13 -14
  595. package/dist/runtime/types/props/setup.d.mts +7 -8
  596. package/dist/runtime/types/props.d.mts +1 -1
  597. package/dist/runtime/types/runtime.d.mts +7 -8
  598. package/dist/runtime/types/setData.d.mts +21 -5
  599. package/dist/runtime/types.d.mts +10 -10
  600. package/dist/runtime/uniAppHost.d.mts +2 -3
  601. package/dist/runtime/updatePerformance.d.mts +5 -6
  602. package/dist/runtime/use.d.mts +3 -4
  603. package/dist/runtime/vueCompat/context.d.mts +4 -5
  604. package/dist/runtime/vueCompat/model.d.mts +9 -10
  605. package/dist/runtime/vueCompat/router.d.mts +3 -4
  606. package/dist/runtime/vueCompat/templateRef.d.mts +4 -5
  607. package/dist/runtime/vueCompat/templateRef.mjs +1 -1
  608. package/dist/scheduler.d.mts +2 -3
  609. package/dist/store/base.mjs +1 -1
  610. package/dist/store/define/optionsStyle.mjs +1 -1
  611. package/dist/store/define/setupStyle.mjs +1 -1
  612. package/dist/store/define/shared.mjs +1 -1
  613. package/dist/store/define.d.mts +12 -11
  614. package/dist/store/manager.d.mts +2 -3
  615. package/dist/store/storeToRefs.d.mts +3 -4
  616. package/dist/store/types.d.mts +12 -13
  617. package/dist/tt/jsx-runtime.d.mts +13 -0
  618. package/dist/tt/jsx-runtime.mjs +1 -0
  619. package/dist/ttIntrinsicElements/base.d.mts +4 -0
  620. package/dist/ttIntrinsicElements/elements/ad.d.mts +7 -0
  621. package/dist/ttIntrinsicElements/elements/aweme-data.d.mts +14 -0
  622. package/dist/ttIntrinsicElements/elements/aweme-user-card.d.mts +15 -0
  623. package/dist/ttIntrinsicElements/elements/button.d.mts +22 -0
  624. package/dist/ttIntrinsicElements/elements/camera.d.mts +18 -0
  625. package/dist/ttIntrinsicElements/elements/canvas.d.mts +15 -0
  626. package/dist/ttIntrinsicElements/elements/checkbox-group.d.mts +11 -0
  627. package/dist/ttIntrinsicElements/elements/checkbox.d.mts +11 -0
  628. package/dist/ttIntrinsicElements/elements/draw-ad.d.mts +15 -0
  629. package/dist/ttIntrinsicElements/elements/form.d.mts +13 -0
  630. package/dist/ttIntrinsicElements/elements/icon.d.mts +10 -0
  631. package/dist/ttIntrinsicElements/elements/image.d.mts +15 -0
  632. package/dist/ttIntrinsicElements/elements/input.d.mts +31 -0
  633. package/dist/ttIntrinsicElements/elements/label.d.mts +9 -0
  634. package/dist/ttIntrinsicElements/elements/live-player.d.mts +18 -0
  635. package/dist/ttIntrinsicElements/elements/live-preview.d.mts +12 -0
  636. package/dist/ttIntrinsicElements/elements/map.d.mts +35 -0
  637. package/dist/ttIntrinsicElements/elements/mask.d.mts +7 -0
  638. package/dist/ttIntrinsicElements/elements/match-media.d.mts +15 -0
  639. package/dist/ttIntrinsicElements/elements/movable-area.d.mts +9 -0
  640. package/dist/ttIntrinsicElements/elements/movable-view.d.mts +26 -0
  641. package/dist/ttIntrinsicElements/elements/navigator.d.mts +15 -0
  642. package/dist/ttIntrinsicElements/elements/open-data.d.mts +14 -0
  643. package/dist/ttIntrinsicElements/elements/picker-view-column.d.mts +7 -0
  644. package/dist/ttIntrinsicElements/elements/picker-view.d.mts +18 -0
  645. package/dist/ttIntrinsicElements/elements/picker.d.mts +21 -0
  646. package/dist/ttIntrinsicElements/elements/progress.d.mts +15 -0
  647. package/dist/ttIntrinsicElements/elements/radio-group.d.mts +11 -0
  648. package/dist/ttIntrinsicElements/elements/radio.d.mts +11 -0
  649. package/dist/ttIntrinsicElements/elements/rich-text.d.mts +9 -0
  650. package/dist/ttIntrinsicElements/elements/rtc-room.d.mts +12 -0
  651. package/dist/ttIntrinsicElements/elements/scroll-view.d.mts +31 -0
  652. package/dist/ttIntrinsicElements/elements/slider.d.mts +18 -0
  653. package/dist/ttIntrinsicElements/elements/swiper-item.d.mts +9 -0
  654. package/dist/ttIntrinsicElements/elements/swiper.d.mts +26 -0
  655. package/dist/ttIntrinsicElements/elements/switch.d.mts +13 -0
  656. package/dist/ttIntrinsicElements/elements/text.d.mts +11 -0
  657. package/dist/ttIntrinsicElements/elements/textarea.d.mts +33 -0
  658. package/dist/ttIntrinsicElements/elements/video.d.mts +57 -0
  659. package/dist/ttIntrinsicElements/elements/view.d.mts +14 -0
  660. package/dist/ttIntrinsicElements/elements/web-view.d.mts +14 -0
  661. package/dist/ttIntrinsicElements.d.mts +88 -0
  662. package/dist/version.d.mts +2 -3
  663. package/dist/vue-augment.d.mts +2 -1
  664. package/dist/vue-demi.d.mts +17 -18
  665. package/dist/vue-demi.mjs +1 -1
  666. package/dist/vue-types.d.mts +2 -2
  667. package/dist/weapp/jsx-runtime.d.mts +13 -0
  668. package/dist/weapp/jsx-runtime.mjs +1 -0
  669. package/dist/weappIntrinsicElements/base.d.mts +3 -21
  670. package/dist/weappIntrinsicElements/elements/ad-custom.d.mts +6 -6
  671. package/dist/weappIntrinsicElements/elements/ad.d.mts +7 -7
  672. package/dist/weappIntrinsicElements/elements/audio.d.mts +9 -9
  673. package/dist/weappIntrinsicElements/elements/block.d.mts +3 -4
  674. package/dist/weappIntrinsicElements/elements/button.d.mts +18 -17
  675. package/dist/weappIntrinsicElements/elements/camera.d.mts +12 -12
  676. package/dist/weappIntrinsicElements/elements/canvas.d.mts +10 -10
  677. package/dist/weappIntrinsicElements/elements/checkbox-group.d.mts +6 -9
  678. package/dist/weappIntrinsicElements/elements/checkbox.d.mts +3 -4
  679. package/dist/weappIntrinsicElements/elements/cover-image.d.mts +9 -6
  680. package/dist/weappIntrinsicElements/elements/cover-view.d.mts +3 -4
  681. package/dist/weappIntrinsicElements/elements/editor.d.mts +9 -9
  682. package/dist/weappIntrinsicElements/elements/form.d.mts +7 -7
  683. package/dist/weappIntrinsicElements/elements/functional-page-navigator.d.mts +9 -9
  684. package/dist/weappIntrinsicElements/elements/icon.d.mts +3 -4
  685. package/dist/weappIntrinsicElements/elements/image.d.mts +7 -7
  686. package/dist/weappIntrinsicElements/elements/import.d.mts +3 -4
  687. package/dist/weappIntrinsicElements/elements/include.d.mts +3 -4
  688. package/dist/weappIntrinsicElements/elements/input.d.mts +17 -18
  689. package/dist/weappIntrinsicElements/elements/keyboard-accessory.d.mts +3 -4
  690. package/dist/weappIntrinsicElements/elements/label.d.mts +3 -4
  691. package/dist/weappIntrinsicElements/elements/live-player.d.mts +18 -18
  692. package/dist/weappIntrinsicElements/elements/live-pusher.d.mts +19 -19
  693. package/dist/weappIntrinsicElements/elements/map.d.mts +18 -18
  694. package/dist/weappIntrinsicElements/elements/match-media.d.mts +3 -4
  695. package/dist/weappIntrinsicElements/elements/movable-area.d.mts +8 -8
  696. package/dist/weappIntrinsicElements/elements/movable-view.d.mts +8 -8
  697. package/dist/weappIntrinsicElements/elements/navigation-bar.d.mts +3 -4
  698. package/dist/weappIntrinsicElements/elements/navigator.d.mts +10 -10
  699. package/dist/weappIntrinsicElements/elements/official-account.d.mts +6 -6
  700. package/dist/weappIntrinsicElements/elements/open-data.d.mts +5 -5
  701. package/dist/weappIntrinsicElements/elements/page-container.d.mts +11 -11
  702. package/dist/weappIntrinsicElements/elements/page-meta.d.mts +7 -7
  703. package/dist/weappIntrinsicElements/elements/picker-view-column.d.mts +7 -7
  704. package/dist/weappIntrinsicElements/elements/picker-view.d.mts +7 -7
  705. package/dist/weappIntrinsicElements/elements/picker.d.mts +9 -9
  706. package/dist/weappIntrinsicElements/elements/progress.d.mts +5 -5
  707. package/dist/weappIntrinsicElements/elements/radio-group.d.mts +6 -9
  708. package/dist/weappIntrinsicElements/elements/radio.d.mts +3 -4
  709. package/dist/weappIntrinsicElements/elements/rich-text.d.mts +6 -7
  710. package/dist/weappIntrinsicElements/elements/scroll-view.d.mts +20 -25
  711. package/dist/weappIntrinsicElements/elements/share-element.d.mts +5 -7
  712. package/dist/weappIntrinsicElements/elements/slider.d.mts +6 -6
  713. package/dist/weappIntrinsicElements/elements/slot.d.mts +3 -4
  714. package/dist/weappIntrinsicElements/elements/swiper-item.d.mts +6 -38
  715. package/dist/weappIntrinsicElements/elements/swiper.d.mts +11 -14
  716. package/dist/weappIntrinsicElements/elements/switch.d.mts +5 -5
  717. package/dist/weappIntrinsicElements/elements/template.d.mts +3 -4
  718. package/dist/weappIntrinsicElements/elements/text.d.mts +5 -6
  719. package/dist/weappIntrinsicElements/elements/textarea.d.mts +16 -16
  720. package/dist/weappIntrinsicElements/elements/video.d.mts +24 -24
  721. package/dist/weappIntrinsicElements/elements/view.d.mts +5 -4
  722. package/dist/weappIntrinsicElements/elements/voip-room.d.mts +7 -7
  723. package/dist/weappIntrinsicElements/elements/web-view.d.mts +7 -7
  724. package/dist/weappIntrinsicElements.d.mts +111 -150
  725. package/package.json +19 -19
  726. package/dist/dev/jsx-runtime.mjs +0 -1
  727. package/dist/runtime/templateRefs.d.mts +0 -11
  728. /package/dist/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/defineProperty.mjs +0 -0
  729. /package/dist/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/toPrimitive.mjs +0 -0
  730. /package/dist/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/toPropertyKey.mjs +0 -0
  731. /package/dist/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/typeof.mjs +0 -0
@@ -1,5 +1,5 @@
1
1
  //#region src/reactivity/reactive/patch.d.ts
2
- interface PrelinkReactiveTreeOptions {
2
+ export interface PrelinkReactiveTreeOptions {
3
3
  shouldIncludeTopKey?: (key: string) => boolean;
4
4
  maxDepth?: number;
5
5
  maxKeys?: number;
@@ -8,11 +8,10 @@ interface PrelinkReactiveTreeOptions {
8
8
  * 预链接响应式树结构,供运行时差量路径追踪使用。
9
9
  * @internal
10
10
  */
11
- declare function prelinkReactiveTree(root: object, options?: PrelinkReactiveTreeOptions): void;
11
+ export declare function prelinkReactiveTree(root: object, options?: PrelinkReactiveTreeOptions): void;
12
12
  /**
13
13
  * 让 effect 订阅整个对象的“版本号”,无需深度遍历即可对任何字段变化做出响应。
14
14
  * @internal
15
15
  */
16
- declare function touchReactive(target: object): void;
17
- //#endregion
18
- export { PrelinkReactiveTreeOptions, prelinkReactiveTree, touchReactive };
16
+ export declare function touchReactive(target: object): void;
17
+ //#endregion
@@ -13,10 +13,9 @@
13
13
  * state.nested = { count: 1 } // 会触发 effect(顶层属性变更)
14
14
  * ```
15
15
  */
16
- declare function shallowReactive<T extends object>(target: T): T;
16
+ export declare function shallowReactive<T extends object>(target: T): T;
17
17
  /**
18
18
  * 判断一个值是否为 shallowReactive 创建的浅层响应式对象
19
19
  */
20
- declare function isShallowReactive(value: unknown): boolean;
21
- //#endregion
22
- export { isShallowReactive, shallowReactive };
20
+ export declare function isShallowReactive(value: unknown): boolean;
21
+ //#endregion
@@ -1,4 +1,3 @@
1
1
  //#region src/reactivity/reactive/shared.d.ts
2
- declare function toRaw<T>(observed: T): T;
3
- //#endregion
4
- export { toRaw };
2
+ export declare function toRaw<T>(observed: T): T;
3
+ //#endregion
@@ -7,9 +7,9 @@ import { toRaw } from "./reactive/shared.mjs";
7
7
  * 读取响应式版本号(框架内部调试能力)。
8
8
  * @internal
9
9
  */
10
- declare function getReactiveVersion(target: object): number;
11
- declare function reactive<T extends object>(target: T): T;
12
- declare function isReactive(value: unknown): boolean;
10
+ export declare function getReactiveVersion(target: object): number;
11
+ export declare function reactive<T extends object>(target: T): T;
12
+ export declare function isReactive(value: unknown): boolean;
13
13
  /**
14
14
  * 标记对象为“原始”状态,后续不会被转换为响应式,返回原对象本身。
15
15
  *
@@ -29,13 +29,13 @@ declare function isReactive(value: unknown): boolean;
29
29
  * state.foo // 不是响应式对象
30
30
  * ```
31
31
  */
32
- declare function markRaw<T extends object>(value: T): T;
32
+ export declare function markRaw<T extends object>(value: T): T;
33
33
  /**
34
34
  * 判断某个值是否被标记为原始(即不应转换为响应式)。
35
35
  *
36
36
  * @param value 待检测的值
37
37
  * @returns 若含有跳过标记则返回 true
38
38
  */
39
- declare function isRaw(value: unknown): boolean;
39
+ export declare function isRaw(value: unknown): boolean;
40
40
  //#endregion
41
- export { type MutationKind, type MutationOp, type MutationRecord, type PrelinkReactiveTreeOptions, addMutationRecorder, getReactiveVersion, isRaw, isReactive, isShallowReactive, markRaw, prelinkReactiveTree, reactive, removeMutationRecorder, shallowReactive, toRaw, touchReactive };
41
+ export { type MutationKind, type MutationOp, type MutationRecord, type PrelinkReactiveTreeOptions, addMutationRecorder, isShallowReactive, prelinkReactiveTree, removeMutationRecorder, shallowReactive, toRaw, touchReactive };
@@ -5,23 +5,22 @@ import { Ref } from "./ref.mjs";
5
5
  * 选择浅层而非深层递归,是为了在小程序环境中保持实现和运行时开销最小,
6
6
  * 仅阻止直接属性写入/删除,嵌套对象仍按原样透传。
7
7
  */
8
- declare function readonly<T extends object>(target: T): T;
9
- declare function readonly<T>(target: Ref<T>): Readonly<Ref<T>>;
8
+ export declare function readonly<T extends object>(target: T): Readonly<T>;
9
+ export declare function readonly<T>(target: Ref<T>): Readonly<Ref<T>>;
10
10
  /**
11
11
  * 与 Vue 3 的 `shallowReadonly()` 对齐。
12
12
  *
13
13
  * 当前 wevu 的只读语义本身就是浅层只读,因此这里直接复用同一套实现,
14
14
  * 让依赖 Vue 兼容 API 的代码可以无缝迁移。
15
15
  */
16
- declare function shallowReadonly<T extends object>(target: T): Readonly<T>;
17
- declare function shallowReadonly<T>(target: Ref<T>): Readonly<Ref<T>>;
16
+ export declare function shallowReadonly<T extends object>(target: T): Readonly<T>;
17
+ export declare function shallowReadonly<T>(target: Ref<T>): Readonly<Ref<T>>;
18
18
  /**
19
19
  * 判断值是否为只读代理或只读 ref 包装。
20
20
  */
21
- declare function isReadonly(value: unknown): boolean;
21
+ export declare function isReadonly(value: unknown): boolean;
22
22
  /**
23
23
  * 判断值是否为响应式代理或只读代理。
24
24
  */
25
- declare function isProxy(value: unknown): boolean;
26
- //#endregion
27
- export { isProxy, isReadonly, readonly, shallowReadonly };
25
+ export declare function isProxy(value: unknown): boolean;
26
+ //#endregion
@@ -1,27 +1,26 @@
1
1
  import { ComputedRef, WritableComputedRef } from "./computed.mjs";
2
2
  import { Ref as Ref$1, ShallowRef as ShallowRef$1 } from "../vue-types.mjs";
3
3
  //#region src/reactivity/ref.d.ts
4
- type Ref<T = any, S = T> = Ref$1<T, S>;
5
- type ShallowRef<T = any> = ShallowRef$1<T>;
6
- type MaybeRef<T = any> = T | Ref<T> | ShallowRef<T> | WritableComputedRef<T>;
7
- type MaybeRefOrGetter<T = any> = MaybeRef<T> | ComputedRef<T> | (() => T);
8
- declare function isRef(value: unknown): value is Ref<any>;
9
- declare function ref<T = any>(): Ref<T | undefined>;
10
- declare function ref<T>(value: T): Ref<T>;
11
- declare function unref<T>(value: MaybeRef<T> | ComputedRef<T>): T;
12
- declare function toValue<T>(source: MaybeRefOrGetter<T>): T;
4
+ export type Ref<T = any, S = T> = Ref$1<T, S>;
5
+ export type ShallowRef<T = any> = ShallowRef$1<T>;
6
+ export type MaybeRef<T = any> = T | Ref<T> | ShallowRef<T> | WritableComputedRef<T>;
7
+ export type MaybeRefOrGetter<T = any> = MaybeRef<T> | ComputedRef<T> | (() => T);
8
+ export declare function isRef(value: unknown): value is Ref<any>;
9
+ export declare function ref<T = any>(): Ref<T | undefined>;
10
+ export declare function ref<T>(value: T): Ref<T>;
11
+ export declare function unref<T>(value: MaybeRef<T> | ComputedRef<T>): T;
12
+ export declare function toValue<T>(source: MaybeRefOrGetter<T>): T;
13
13
  /**
14
14
  * 自定义 ref 工厂:用于创建可显式控制 track/trigger 的自定义 ref
15
15
  */
16
- type CustomRefFactory<T> = (track: () => void, trigger: () => void) => {
16
+ export type CustomRefFactory<T> = (track: () => void, trigger: () => void) => {
17
17
  get: () => T;
18
18
  set: (value: T) => void;
19
19
  };
20
- interface CustomRefOptions<T> {
20
+ export interface CustomRefOptions<T> {
21
21
  get: () => T;
22
22
  set: (value: T) => void;
23
23
  }
24
- type CustomRefSource<T> = CustomRefFactory<T> | CustomRefOptions<T>;
25
- declare function customRef<T>(factory: CustomRefSource<T>, defaultValue?: T): Ref<T>;
26
- //#endregion
27
- export { CustomRefFactory, CustomRefOptions, CustomRefSource, MaybeRef, MaybeRefOrGetter, Ref, ShallowRef, customRef, isRef, ref, toValue, unref };
24
+ export type CustomRefSource<T> = CustomRefFactory<T> | CustomRefOptions<T>;
25
+ export declare function customRef<T>(factory: CustomRefSource<T>, defaultValue?: T): Ref<T>;
26
+ //#endregion
@@ -1 +1 @@
1
- import e from"../_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/defineProperty.mjs";import{trackEffects as t,triggerEffects as n}from"./core.mjs";import{convertToReactive as r,markRaw as i}from"./reactive.mjs";const a=`__v_isRef`;function o(e){try{Object.defineProperty(e,a,{value:!0,configurable:!0})}catch(t){e[a]=!0}return e}function s(e){return!!(e&&typeof e==`object`&&e.__v_isRef===!0)}var c=class{constructor(t){e(this,`_value`,void 0),e(this,`_rawValue`,void 0),e(this,`dep`,void 0),o(this),this._rawValue=t,this._value=r(t)}get value(){return this.dep||(this.dep=new Set),t(this.dep),this._value}set value(e){Object.is(e,this._rawValue)||(this._rawValue=e,this._value=r(e),this.dep&&n(this.dep))}};function l(e){return s(e)?e:i(new c(e))}function u(e){return s(e)?e.value:e}function d(e){return typeof e==`function`?e():u(e)}var f=class{constructor(r,i){e(this,`_getValue`,void 0),e(this,`_setValue`,void 0),e(this,`dep`,void 0),o(this);let a=i,s=()=>{this.dep||(this.dep=new Set),t(this.dep)},c=()=>{this.dep&&n(this.dep)},l=e=>e===void 0&&a!==void 0?a:e;if(typeof r==`function`){let e=r(s,c);this._getValue=()=>l(e.get()),this._setValue=t=>e.set(t);return}let u=r;this._getValue=()=>(s(),l(u.get())),this._setValue=e=>{u.set(e),c()}}get value(){return this._getValue()}set value(e){this._setValue(e)}};function p(e,t){return i(new f(e,t))}export{a as RefFlag,p as customRef,s as isRef,o as markAsRef,l as ref,d as toValue,u as unref};
1
+ import e from"../_virtual/_@oxc-project_runtime@0.149.0/helpers/esm/defineProperty.mjs";import{trackEffects as t,triggerEffects as n}from"./core.mjs";import{convertToReactive as r,markRaw as i}from"./reactive.mjs";const a=`__v_isRef`;function o(e){try{Object.defineProperty(e,a,{value:!0,configurable:!0})}catch(t){e[a]=!0}return e}function s(e){return!!(e&&typeof e==`object`&&e.__v_isRef===!0)}var c=class{constructor(t){e(this,`_value`,void 0),e(this,`_rawValue`,void 0),e(this,`dep`,void 0),o(this),this._rawValue=t,this._value=r(t)}get value(){return this.dep||(this.dep=new Set),t(this.dep),this._value}set value(e){Object.is(e,this._rawValue)||(this._rawValue=e,this._value=r(e),this.dep&&n(this.dep))}};function l(e){return s(e)?e:i(new c(e))}function u(e){return s(e)?e.value:e}function d(e){return typeof e==`function`?e():u(e)}var f=class{constructor(r,i){e(this,`_getValue`,void 0),e(this,`_setValue`,void 0),e(this,`dep`,void 0),o(this);let a=i,s=()=>{this.dep||(this.dep=new Set),t(this.dep)},c=()=>{this.dep&&n(this.dep)},l=e=>e===void 0&&a!==void 0?a:e;if(typeof r==`function`){let e=r(s,c);this._getValue=()=>l(e.get()),this._setValue=t=>e.set(t);return}let u=r;this._getValue=()=>(s(),l(u.get())),this._setValue=e=>{u.set(e),c()}}get value(){return this._getValue()}set value(e){this._setValue(e)}};function p(e,t){return i(new f(e,t))}export{a as RefFlag,p as customRef,s as isRef,o as markAsRef,l as ref,d as toValue,u as unref};
@@ -1,19 +1,18 @@
1
1
  import { Ref } from "./ref.mjs";
2
2
  //#region src/reactivity/shallowRef.d.ts
3
- declare function shallowRef<T>(value: T): Ref<T>;
4
- declare function shallowRef<T>(value: T, defaultValue: T): Ref<T>;
3
+ export declare function shallowRef<T>(value: T): Ref<T>;
4
+ export declare function shallowRef<T>(value: T, defaultValue: T): Ref<T>;
5
5
  /**
6
6
  * 判断传入值是否为浅层 ref。
7
7
  *
8
8
  * @param r 待判断的值
9
9
  * @returns 若为浅层 ref 则返回 true
10
10
  */
11
- declare function isShallowRef(r: any): r is Ref<any>;
11
+ export declare function isShallowRef(r: any): r is Ref<any>;
12
12
  /**
13
13
  * 主动触发一次浅层 ref 的更新(无需深度比较)。
14
14
  *
15
15
  * @param ref 需要触发的 ref
16
16
  */
17
- declare function triggerRef<T>(ref: Ref<T>): void;
18
- //#endregion
19
- export { isShallowRef, shallowRef, triggerRef };
17
+ export declare function triggerRef<T>(ref: Ref<T>): void;
18
+ //#endregion
@@ -16,8 +16,8 @@ import { Ref } from "./ref.mjs";
16
16
  * console.log(state.foo) // 2
17
17
  * ```
18
18
  */
19
- declare function toRef<T extends object, K extends keyof T>(object: T, key: K): ToRef<T[K]>;
20
- declare function toRef<T extends object, K extends keyof T>(object: T, key: K, defaultValue: T[K]): ToRef<T[K]>;
19
+ export declare function toRef<T extends object, K extends keyof T>(object: T, key: K): ToRef<T[K]>;
20
+ export declare function toRef<T extends object, K extends keyof T>(object: T, key: K, defaultValue: T[K]): ToRef<T[K]>;
21
21
  /**
22
22
  * 将一个响应式对象转换成“同结构的普通对象”,其中每个字段都是指向原对象对应属性的 ref。
23
23
  *
@@ -33,11 +33,10 @@ declare function toRef<T extends object, K extends keyof T>(object: T, key: K, d
33
33
  * state.foo // 2
34
34
  * ```
35
35
  */
36
- declare function toRefs<T extends object>(object: T): ToRefs<T>;
36
+ export declare function toRefs<T extends object>(object: T): ToRefs<T>;
37
37
  /**
38
38
  * toRefs 返回值的类型辅助
39
39
  */
40
40
  type ToRef<T> = T extends Ref<any> ? T : Ref<T>;
41
- type ToRefs<T extends object> = { [K in keyof T]: ToRef<T[K]>; };
42
- //#endregion
43
- export { ToRefs, toRef, toRefs };
41
+ export type ToRefs<T extends object> = { [K in keyof T]: ToRef<T[K]>; };
42
+ //#endregion
@@ -3,6 +3,5 @@
3
3
  * 深度遍历工具(框架内部依赖收集使用)。
4
4
  * @internal
5
5
  */
6
- declare function traverse(value: any, depth?: number, seen?: Map<object, number>): any;
7
- //#endregion
8
- export { traverse };
6
+ export declare function traverse(value: any, depth?: number, seen?: Map<object, number>): any;
7
+ //#endregion
@@ -1,43 +1,42 @@
1
1
  import { Ref } from "../ref.mjs";
2
2
  import { ComputedRef } from "../computed.mjs";
3
3
  //#region src/reactivity/watch/types.d.ts
4
- type OnCleanup = (cleanupFn: () => void) => void;
5
- type WatchEffect = (onCleanup: OnCleanup) => void;
6
- type WatchSource<T = any> = Ref<T> | ComputedRef<T> | (() => T);
7
- type WatchCallback<V = any, OV = any> = (value: V, oldValue: OV, onCleanup: OnCleanup) => void;
8
- type WatchScheduler = (job: () => void, isFirstRun: boolean) => void;
9
- type MaybeUndefined<T, Immediate> = Immediate extends true ? T | undefined : T;
10
- type MultiWatchSources = (WatchSource<unknown> | object)[];
11
- type MapSources<T, Immediate> = { [K in keyof T]: T[K] extends WatchSource<infer V> ? MaybeUndefined<V, Immediate> : T[K] extends object ? MaybeUndefined<T[K], Immediate> : never; };
12
- type WatchSourceValue<S> = S extends WatchSource<infer V> ? V : S extends object ? S : never;
13
- type WatchSources<T = any> = WatchSource<T> | ReadonlyArray<WatchSource<unknown> | object> | (T extends object ? T : never);
4
+ export type OnCleanup = (cleanupFn: () => void) => void;
5
+ export type WatchEffect = (onCleanup: OnCleanup) => void;
6
+ export type WatchSource<T = any> = Ref<T> | ComputedRef<T> | (() => T);
7
+ export type WatchCallback<V = any, OV = any> = (value: V, oldValue: OV, onCleanup: OnCleanup) => void;
8
+ export type WatchScheduler = (job: () => void, isFirstRun: boolean) => void;
9
+ export type MaybeUndefined<T, Immediate> = Immediate extends true ? T | undefined : T;
10
+ export type MultiWatchSources = (WatchSource<unknown> | object)[];
11
+ export type MapSources<T, Immediate> = { [K in keyof T]: T[K] extends WatchSource<infer V> ? MaybeUndefined<V, Immediate> : T[K] extends object ? MaybeUndefined<T[K], Immediate> : never; };
12
+ export type WatchSourceValue<S> = S extends WatchSource<infer V> ? V : S extends object ? S : never;
13
+ export type WatchSources<T = any> = WatchSource<T> | ReadonlyArray<WatchSource<unknown> | object> | (T extends object ? T : never);
14
14
  type IsTuple<T extends ReadonlyArray<any>> = number extends T['length'] ? false : true;
15
- type WatchMultiSources<T extends ReadonlyArray<WatchSource<unknown> | object>> = IsTuple<T> extends true ? { [K in keyof T]: WatchSourceValue<T[K]>; } : Array<WatchSourceValue<T[number]>>;
16
- interface WatchEffectOptions {
15
+ export type WatchMultiSources<T extends ReadonlyArray<WatchSource<unknown> | object>> = IsTuple<T> extends true ? { [K in keyof T]: WatchSourceValue<T[K]>; } : Array<WatchSourceValue<T[number]>>;
16
+ export interface WatchEffectOptions {
17
17
  flush?: 'pre' | 'post' | 'sync';
18
18
  }
19
- interface WatchOptions<Immediate extends boolean = false> extends WatchEffectOptions {
19
+ export interface WatchOptions<Immediate extends boolean = false> extends WatchEffectOptions {
20
20
  immediate?: Immediate;
21
21
  deep?: boolean | number;
22
22
  once?: boolean;
23
23
  scheduler?: WatchScheduler;
24
24
  }
25
- interface WatchStopHandle {
25
+ export interface WatchStopHandle {
26
26
  (): void;
27
27
  stop: () => void;
28
28
  pause: () => void;
29
29
  resume: () => void;
30
30
  }
31
- type DeepWatchStrategy = 'version' | 'traverse';
31
+ export type DeepWatchStrategy = 'version' | 'traverse';
32
32
  /**
33
33
  * 设置深度 watch 内部策略(测试/框架内部使用)。
34
34
  * @internal
35
35
  */
36
- declare function setDeepWatchStrategy(strategy: DeepWatchStrategy): void;
36
+ export declare function setDeepWatchStrategy(strategy: DeepWatchStrategy): void;
37
37
  /**
38
38
  * 获取深度 watch 内部策略(测试/框架内部使用)。
39
39
  * @internal
40
40
  */
41
- declare function getDeepWatchStrategy(): DeepWatchStrategy;
42
- //#endregion
43
- export { DeepWatchStrategy, MapSources, MaybeUndefined, MultiWatchSources, OnCleanup, WatchCallback, WatchEffect, WatchEffectOptions, WatchMultiSources, WatchOptions, WatchScheduler, WatchSource, WatchSourceValue, WatchSources, WatchStopHandle, getDeepWatchStrategy, setDeepWatchStrategy };
41
+ export declare function getDeepWatchStrategy(): DeepWatchStrategy;
42
+ //#endregion
@@ -1,21 +1,21 @@
1
1
  import { DeepWatchStrategy, MapSources, MaybeUndefined, MultiWatchSources, OnCleanup, WatchCallback, WatchEffect, WatchEffectOptions, WatchMultiSources, WatchOptions, WatchScheduler, WatchSource, WatchSourceValue, WatchSources, WatchStopHandle, getDeepWatchStrategy, setDeepWatchStrategy } from "./watch/types.mjs";
2
2
  //#region src/reactivity/watch.d.ts
3
- declare function watch<T, Immediate extends Readonly<boolean> = false>(source: WatchSource<T>, cb: WatchCallback<T, MaybeUndefined<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle;
4
- declare function watch<T extends object, Immediate extends Readonly<boolean> = false>(source: T extends ReadonlyArray<any> ? never : T, cb: WatchCallback<T, MaybeUndefined<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle;
5
- declare function watch<T extends Readonly<MultiWatchSources>, Immediate extends Readonly<boolean> = false>(source: readonly [...T] | T, cb: WatchCallback<MapSources<T, false>, MapSources<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle;
6
- declare function watch<T extends MultiWatchSources, Immediate extends Readonly<boolean> = false>(source: [...T], cb: WatchCallback<MapSources<T, false>, MapSources<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle;
3
+ export declare function watch<T, Immediate extends Readonly<boolean> = false>(source: WatchSource<T>, cb: WatchCallback<T, MaybeUndefined<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle;
4
+ export declare function watch<T extends object, Immediate extends Readonly<boolean> = false>(source: T extends ReadonlyArray<any> ? never : T, cb: WatchCallback<T, MaybeUndefined<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle;
5
+ export declare function watch<T extends Readonly<MultiWatchSources>, Immediate extends Readonly<boolean> = false>(source: readonly [...T] | T, cb: WatchCallback<MapSources<T, false>, MapSources<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle;
6
+ export declare function watch<T extends MultiWatchSources, Immediate extends Readonly<boolean> = false>(source: [...T], cb: WatchCallback<MapSources<T, false>, MapSources<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle;
7
7
  /**
8
8
  * watchEffect 注册一个响应式副作用,可选清理函数。
9
9
  * 副作用会立即执行,并在依赖变化时重新运行。
10
10
  */
11
- declare function watchEffect(effectFn: WatchEffect, options?: WatchEffectOptions): WatchStopHandle;
11
+ export declare function watchEffect(effectFn: WatchEffect, options?: WatchEffectOptions): WatchStopHandle;
12
12
  /**
13
13
  * 以后置刷新的方式运行副作用,与 Vue 的 `watchPostEffect()` 兼容。
14
14
  */
15
- declare function watchPostEffect(effectFn: WatchEffect, options?: Omit<WatchEffectOptions, 'flush'>): WatchStopHandle;
15
+ export declare function watchPostEffect(effectFn: WatchEffect, options?: Omit<WatchEffectOptions, 'flush'>): WatchStopHandle;
16
16
  /**
17
17
  * 以同步刷新的方式运行副作用,与 Vue 的 `watchSyncEffect()` 兼容。
18
18
  */
19
- declare function watchSyncEffect(effectFn: WatchEffect, options?: Omit<WatchEffectOptions, 'flush'>): WatchStopHandle;
19
+ export declare function watchSyncEffect(effectFn: WatchEffect, options?: Omit<WatchEffectOptions, 'flush'>): WatchStopHandle;
20
20
  //#endregion
21
- export { type MapSources, type MaybeUndefined, type MultiWatchSources, type OnCleanup, type WatchCallback, type WatchEffect, type WatchEffectOptions, type WatchMultiSources, type WatchOptions, type WatchScheduler, type WatchSource, type WatchSourceValue, type WatchSources, type WatchStopHandle, getDeepWatchStrategy, setDeepWatchStrategy, watch, watchEffect, watchPostEffect, watchSyncEffect };
21
+ export { type MapSources, type MaybeUndefined, type MultiWatchSources, type OnCleanup, type WatchCallback, type WatchEffect, type WatchEffectOptions, type WatchMultiSources, type WatchOptions, type WatchScheduler, type WatchSource, type WatchSourceValue, type WatchSources, type WatchStopHandle, getDeepWatchStrategy, setDeepWatchStrategy };
@@ -3,6 +3,5 @@ import { RouterNavigation, UseRouterOptions } from "./types.mjs";
3
3
  /**
4
4
  * @description 创建高阶路由导航器(对齐 Vue Router 的 createRouter 心智)
5
5
  */
6
- declare function createRouter(options?: UseRouterOptions): RouterNavigation;
7
- //#endregion
8
- export { createRouter };
6
+ export declare function createRouter(options?: UseRouterOptions): RouterNavigation;
7
+ //#endregion
@@ -1,6 +1,5 @@
1
1
  import { NavigationFailure, NavigationFailureTypeValue, RouteLocationNormalizedLoaded } from "./types.mjs";
2
2
  //#region src/router/navigationCore.d.ts
3
- declare function createNavigationFailure(type: NavigationFailureTypeValue, to?: RouteLocationNormalizedLoaded, from?: RouteLocationNormalizedLoaded, cause?: unknown): NavigationFailure;
4
- declare function isNavigationFailure(error: unknown, type?: NavigationFailureTypeValue): error is NavigationFailure;
5
- //#endregion
6
- export { createNavigationFailure, isNavigationFailure };
3
+ export declare function createNavigationFailure(type: NavigationFailureTypeValue, to?: RouteLocationNormalizedLoaded, from?: RouteLocationNormalizedLoaded, cause?: unknown): NavigationFailure;
4
+ export declare function isNavigationFailure(error: unknown, type?: NavigationFailureTypeValue): error is NavigationFailure;
5
+ //#endregion
@@ -1,6 +1,5 @@
1
1
  import { RouteResolveCodec } from "../routerInternal/types.mjs";
2
2
  import { RouteLocationNormalizedLoaded, RouteLocationRaw } from "./types.mjs";
3
3
  //#region src/router/resolve.d.ts
4
- declare function resolveRouteLocation(to: RouteLocationRaw, currentPath?: string, codec?: RouteResolveCodec): RouteLocationNormalizedLoaded;
5
- //#endregion
6
- export { resolveRouteLocation };
4
+ export declare function resolveRouteLocation(to: RouteLocationRaw, currentPath?: string, codec?: RouteResolveCodec): RouteLocationNormalizedLoaded;
5
+ //#endregion
@@ -1 +1 @@
1
- const e=[`switchTab`,`reLaunch`,`redirectTo`,`navigateTo`,`navigateBack`],t=new Set,n=new WeakSet;function r(e){return t.add(e),()=>{t.delete(e)}}function i(e){for(let n of t)try{n(e)}catch(e){}}function a(e,t){if(e===`navigateBack`)return{method:e,source:`native`};if(t&&typeof t==`object`){let n=t.url;if(typeof n==`string`)return{method:e,source:`native`,url:n}}return{method:e,source:`native`}}function o(t){if(!t||typeof t!=`object`)return;let r=t;if(!n.has(r)){n.add(r);for(let t of e){let e=r[t];typeof e==`function`&&(r[t]=function(n,...r){let o=!1,s=()=>{o||(o=!0,i(a(t,n)))},c=n&&typeof n==`object`?{...n,success:(...e)=>{s();let t=n.success;return typeof t==`function`?t(...e):void 0}}:n,l=e.call(this,c,...r);return l&&typeof l.then==`function`&&l.then(s,()=>{}),l})}}}export{o as installRouteStateSyncOnNativeRouter,i as notifyRouteStateSync,r as registerRouteStateSyncHandler};
1
+ import{getCurrentMiniProgramPages as e}from"../runtime/platform.mjs";const t=[`switchTab`,`reLaunch`,`redirectTo`,`navigateTo`,`navigateBack`],n=new Set,r=new WeakSet;function i(e){return n.add(e),()=>{n.delete(e)}}function a(e){for(let t of n)try{t(e)}catch(e){}}function o(e,t,n){if(e===`navigateBack`)return{method:e,source:`native`};if(t&&typeof t==`object`){let r=t.url;if(typeof r==`string`)return{method:e,page:n,source:`native`,url:r}}return{method:e,page:n,source:`native`}}function s(n){if(!n||typeof n!=`object`)return;let i=n;if(!r.has(i)){r.add(i);for(let n of t){let t=i[n];typeof t==`function`&&(i[n]=function(r,...i){let s=e(),c=s[s.length-1],l=!1,u=()=>{l||(l=!0,a(o(n,r,c)))},d=r&&typeof r==`object`?{...r,success:(...e)=>{u();let t=r.success;return typeof t==`function`?t(...e):void 0}}:r,f=t.call(this,d,...i);return f&&typeof f.then==`function`&&f.then(u,()=>{}),f})}}}export{s as installRouteStateSyncOnNativeRouter,a as notifyRouteStateSync,i as registerRouteStateSyncHandler};
@@ -1,23 +1,23 @@
1
1
  import { SetupContextRouter, TypedRouterTabBarUrl } from "../runtime/types/props/router.mjs";
2
2
  import "../runtime/types/props.mjs";
3
3
  //#region src/router/types.d.ts
4
- type LocationQueryValue = string | null;
5
- type LocationQueryValueRaw = LocationQueryValue | number | boolean | undefined;
6
- type LocationQuery = Record<string, LocationQueryValue | LocationQueryValue[]>;
7
- type LocationQueryRaw = Record<string, LocationQueryValueRaw | LocationQueryValueRaw[]>;
8
- type RouteParamValue = string;
9
- type RouteParamValueRaw = RouteParamValue | number | boolean | null | undefined;
10
- type RouteParams = Record<string, RouteParamValue | RouteParamValue[]>;
11
- type RouteParamsRaw = Record<string, RouteParamValueRaw | RouteParamValueRaw[]>;
12
- type RouteParamsMode = 'loose' | 'strict';
13
- type RouteQueryParser = (search: string) => LocationQueryRaw | LocationQuery;
14
- type RouteQueryStringifier = (query: LocationQueryRaw | LocationQuery) => string;
15
- type RouteMeta = Record<string, unknown>;
16
- interface NamedRouteRecord {
4
+ export type LocationQueryValue = string | null;
5
+ export type LocationQueryValueRaw = LocationQueryValue | number | boolean | undefined;
6
+ export type LocationQuery = Record<string, LocationQueryValue | LocationQueryValue[]>;
7
+ export type LocationQueryRaw = Record<string, LocationQueryValueRaw | LocationQueryValueRaw[]>;
8
+ export type RouteParamValue = string;
9
+ export type RouteParamValueRaw = RouteParamValue | number | boolean | null | undefined;
10
+ export type RouteParams = Record<string, RouteParamValue | RouteParamValue[]>;
11
+ export type RouteParamsRaw = Record<string, RouteParamValueRaw | RouteParamValueRaw[]>;
12
+ export type RouteParamsMode = 'loose' | 'strict';
13
+ export type RouteQueryParser = (search: string) => LocationQueryRaw | LocationQuery;
14
+ export type RouteQueryStringifier = (query: LocationQueryRaw | LocationQuery) => string;
15
+ export type RouteMeta = Record<string, unknown>;
16
+ export interface NamedRouteRecord {
17
17
  name: string;
18
18
  path: string;
19
19
  }
20
- interface RouteRecordInput {
20
+ export interface RouteRecordInput {
21
21
  name?: string;
22
22
  path: string;
23
23
  meta?: RouteMeta;
@@ -26,8 +26,8 @@ interface RouteRecordInput {
26
26
  beforeEnter?: NavigationGuard | readonly NavigationGuard[];
27
27
  redirect?: RouteRecordRedirect;
28
28
  }
29
- type NamedRoutes = Readonly<Record<string, string>> | readonly RouteRecordRaw[];
30
- type RouteLocationRaw = string | {
29
+ export type NamedRoutes = Readonly<Record<string, string>> | readonly RouteRecordRaw[];
30
+ export type RouteLocationRaw = string | {
31
31
  path?: string;
32
32
  fullPath?: string;
33
33
  query?: LocationQueryRaw;
@@ -35,7 +35,7 @@ type RouteLocationRaw = string | {
35
35
  name?: string;
36
36
  params?: RouteParamsRaw;
37
37
  };
38
- interface RouteLocationNormalizedLoaded {
38
+ export interface RouteLocationNormalizedLoaded {
39
39
  path: string;
40
40
  fullPath: string;
41
41
  query: LocationQuery;
@@ -47,37 +47,37 @@ interface RouteLocationNormalizedLoaded {
47
47
  redirectedFrom?: RouteLocationRedirectedFrom;
48
48
  params: RouteParams;
49
49
  }
50
- declare const NavigationFailureType: {
50
+ export declare const NavigationFailureType: {
51
51
  readonly unknown: 1;
52
52
  readonly aborted: 4;
53
53
  readonly cancelled: 8;
54
54
  readonly duplicated: 16;
55
55
  };
56
- type NavigationFailureTypeValue = (typeof NavigationFailureType)[keyof typeof NavigationFailureType];
57
- interface NavigationFailure extends Error {
56
+ export type NavigationFailureTypeValue = (typeof NavigationFailureType)[keyof typeof NavigationFailureType];
57
+ export interface NavigationFailure extends Error {
58
58
  readonly __wevuNavigationFailure: true;
59
59
  readonly type: NavigationFailureTypeValue;
60
60
  readonly to?: RouteLocationNormalizedLoaded;
61
61
  readonly from?: RouteLocationNormalizedLoaded;
62
62
  readonly cause?: unknown;
63
63
  }
64
- type NavigationMode = 'push' | 'replace' | 'back';
65
- type InitialNavigationMode = 'eager' | 'blocking';
66
- interface NavigationRedirect {
64
+ export type NavigationMode = 'push' | 'replace' | 'back';
65
+ export type InitialNavigationMode = 'eager' | 'blocking';
66
+ export interface NavigationRedirect {
67
67
  to: RouteLocationRaw;
68
68
  replace?: boolean;
69
69
  }
70
- type RouteRecordRedirect = RouteLocationRaw | NavigationRedirect | ((to: RouteLocationNormalizedLoaded, from: RouteLocationNormalizedLoaded) => RouteLocationRaw | NavigationRedirect | Promise<RouteLocationRaw | NavigationRedirect>);
71
- interface RouteRecordRaw extends Omit<RouteRecordInput, 'name' | 'children'>, NamedRouteRecord {
70
+ export type RouteRecordRedirect = RouteLocationRaw | NavigationRedirect | ((to: RouteLocationNormalizedLoaded, from: RouteLocationNormalizedLoaded) => RouteLocationRaw | NavigationRedirect | Promise<RouteLocationRaw | NavigationRedirect>);
71
+ export interface RouteRecordRaw extends Omit<RouteRecordInput, 'name' | 'children'>, NamedRouteRecord {
72
72
  children?: readonly RouteRecordRaw[];
73
73
  }
74
- interface RouteRecordMatched {
74
+ export interface RouteRecordMatched {
75
75
  name: string;
76
76
  path: string;
77
77
  aliasPath?: string;
78
78
  meta?: RouteMeta;
79
79
  }
80
- interface RouteLocationRedirectedFrom {
80
+ export interface RouteLocationRedirectedFrom {
81
81
  path: string;
82
82
  fullPath: string;
83
83
  query: LocationQuery;
@@ -88,31 +88,31 @@ interface RouteLocationRedirectedFrom {
88
88
  matched?: readonly RouteRecordMatched[];
89
89
  params: RouteParams;
90
90
  }
91
- type NavigationGuardResult = void | boolean | NavigationFailure | RouteLocationRaw | NavigationRedirect;
92
- type NavigationGuard = (to: RouteLocationNormalizedLoaded | undefined, from: RouteLocationNormalizedLoaded, context?: NavigationGuardContext) => NavigationGuardResult | Promise<NavigationGuardResult>;
93
- type NavigationAfterEach = (to: RouteLocationNormalizedLoaded | undefined, from: RouteLocationNormalizedLoaded, failure?: NavigationFailure, context?: NavigationAfterEachContext) => void | Promise<void>;
94
- interface NavigationGuardContext {
91
+ export type NavigationGuardResult = void | boolean | NavigationFailure | RouteLocationRaw | NavigationRedirect;
92
+ export type NavigationGuard = (to: RouteLocationNormalizedLoaded | undefined, from: RouteLocationNormalizedLoaded, context?: NavigationGuardContext) => NavigationGuardResult | Promise<NavigationGuardResult>;
93
+ export type NavigationAfterEach = (to: RouteLocationNormalizedLoaded | undefined, from: RouteLocationNormalizedLoaded, failure?: NavigationFailure, context?: NavigationAfterEachContext) => void | Promise<void>;
94
+ export interface NavigationGuardContext {
95
95
  readonly mode: NavigationMode;
96
96
  readonly to?: RouteLocationNormalizedLoaded;
97
97
  readonly from: RouteLocationNormalizedLoaded;
98
98
  readonly nativeRouter: SetupContextRouter;
99
99
  }
100
- interface NavigationAfterEachContext {
100
+ export interface NavigationAfterEachContext {
101
101
  readonly mode: NavigationMode;
102
102
  readonly to?: RouteLocationNormalizedLoaded;
103
103
  readonly from: RouteLocationNormalizedLoaded;
104
104
  readonly nativeRouter: SetupContextRouter;
105
105
  readonly failure?: NavigationFailure;
106
106
  }
107
- interface NavigationErrorContext {
107
+ export interface NavigationErrorContext {
108
108
  readonly mode: NavigationMode;
109
109
  readonly to?: RouteLocationNormalizedLoaded;
110
110
  readonly from: RouteLocationNormalizedLoaded;
111
111
  readonly nativeRouter: SetupContextRouter;
112
112
  readonly failure: NavigationFailure;
113
113
  }
114
- type NavigationErrorHandler = (error: unknown, context: NavigationErrorContext) => void | Promise<void>;
115
- interface UseRouterOptions {
114
+ export type NavigationErrorHandler = (error: unknown, context: NavigationErrorContext) => void | Promise<void>;
115
+ export interface UseRouterOptions {
116
116
  tabBarEntries?: readonly (TypedRouterTabBarUrl | string)[];
117
117
  /**
118
118
  * Vue Router 对齐入口:推荐使用 `routes`
@@ -142,7 +142,7 @@ interface UseRouterOptions {
142
142
  */
143
143
  rejectOnError?: boolean;
144
144
  }
145
- interface RouterNavigation {
145
+ export interface RouterNavigation {
146
146
  readonly nativeRouter: SetupContextRouter;
147
147
  readonly options: Readonly<UseRouterOptions>;
148
148
  readonly currentRoute: Readonly<RouteLocationNormalizedLoaded>;
@@ -164,9 +164,8 @@ interface RouterNavigation {
164
164
  afterEach: (hook: NavigationAfterEach) => () => void;
165
165
  onError: (handler: NavigationErrorHandler) => () => void;
166
166
  }
167
- interface AddRoute {
167
+ export interface AddRoute {
168
168
  (route: RouteRecordRaw): () => void;
169
169
  (parentName: string, route: RouteRecordRaw): () => void;
170
170
  }
171
- //#endregion
172
- export { AddRoute, InitialNavigationMode, LocationQuery, LocationQueryRaw, LocationQueryValue, LocationQueryValueRaw, NamedRouteRecord, NamedRoutes, NavigationAfterEach, NavigationAfterEachContext, NavigationErrorContext, NavigationErrorHandler, NavigationFailure, NavigationFailureType, NavigationFailureTypeValue, NavigationGuard, NavigationGuardContext, NavigationGuardResult, NavigationMode, NavigationRedirect, RouteLocationNormalizedLoaded, RouteLocationRaw, RouteLocationRedirectedFrom, RouteMeta, RouteParamValue, RouteParamValueRaw, RouteParams, RouteParamsMode, RouteParamsRaw, RouteQueryParser, RouteQueryStringifier, RouteRecordInput, RouteRecordMatched, RouteRecordRaw, RouteRecordRedirect, RouterNavigation, UseRouterOptions };
171
+ //#endregion
@@ -3,17 +3,16 @@ import "../runtime/types/props.mjs";
3
3
  import { RouteLocationNormalizedLoaded } from "./types.mjs";
4
4
  import "./routeSync.mjs";
5
5
  //#region src/router/useRoute.d.ts
6
- interface UseRouteOptions {
6
+ export interface UseRouteOptions {
7
7
  resolveRoute?: (route: RouteLocationNormalizedLoaded) => RouteLocationNormalizedLoaded;
8
8
  }
9
- declare function useRoute(options?: UseRouteOptions): Readonly<RouteLocationNormalizedLoaded>;
9
+ export declare function useRoute(options?: UseRouteOptions): Readonly<RouteLocationNormalizedLoaded>;
10
10
  /**
11
11
  * @description 获取当前组件路径语义的原生 Router
12
12
  */
13
- declare function useNativeRouter(): SetupContextRouter;
13
+ export declare function useNativeRouter(): SetupContextRouter;
14
14
  /**
15
15
  * @description 获取当前页面路径语义的原生 Page Router
16
16
  */
17
- declare function useNativePageRouter(): SetupContextRouter;
18
- //#endregion
19
- export { UseRouteOptions, useNativePageRouter, useNativeRouter, useRoute };
17
+ export declare function useNativePageRouter(): SetupContextRouter;
18
+ //#endregion
@@ -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";function x(e){return typeof e.route==`string`||typeof e.__route__==`string`}function S(e,t,r){if((r==null?void 0:r.source)===`router`||!t)return!0;if(r!=null&&r.page)return r.page===e;let i=n();return i[i.length-1]===e}function C(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 w(m={}){var h;let _=r();if(!_)throw Error(`useRoute() 必须在 setup() 的同步阶段调用`);let v=_.instance,y=(h=m.resolveRoute)==null?(e=>{var t,n;return(t=(n=l())==null?void 0:n.resolve(e))==null?e:t}):h,w=y(d(void 0,v)),T=x(v)||n().includes(v),E=e({path:w.path,fullPath:w.fullPath,query:p(w.query),hash:w.hash,params:g(w.params)});C(E,w);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)}C(E,r)}i(e=>{D(e)}),a(()=>{D()}),s(()=>{D()}),o(()=>{D()});let O=u(e=>{if(S(v,T,e)){if(e!=null&&e.route){D(void 0,e.route,e);return}if(e!=null&&e.page){D(void 0,f(e.page),e);return}if(e!=null&&e.url){D(void 0,b(e.url,E.path),e);return}D(void 0,void 0,e)}});return c(()=>{O()}),{route:t(E)}}function T(e={}){return w(e).route}function E(){return y()}function D(){return v()}export{w as createRouteStateController,D as useNativePageRouter,E as useNativeRouter,T 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();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};
@@ -3,6 +3,5 @@ import { RouterNavigation } from "./types.mjs";
3
3
  /**
4
4
  * @description 获取当前已创建的路由实例。
5
5
  */
6
- declare function useRouter(): RouterNavigation;
7
- //#endregion
8
- export { useRouter };
6
+ export declare function useRouter(): RouterNavigation;
7
+ //#endregion
@@ -1,7 +1,6 @@
1
1
  import { LocationQuery, LocationQueryRaw } from "../router/types.mjs";
2
2
  import "../router.mjs";
3
3
  //#region src/routerInternal/query.d.ts
4
- declare function parseQuery(search: string): LocationQuery;
5
- declare function stringifyQuery(query?: LocationQueryRaw | LocationQuery): string;
6
- //#endregion
7
- export { parseQuery, stringifyQuery };
4
+ export declare function parseQuery(search: string): LocationQuery;
5
+ export declare function stringifyQuery(query?: LocationQueryRaw | LocationQuery): string;
6
+ //#endregion
@@ -1,9 +1,8 @@
1
1
  import { RouteQueryParser, RouteQueryStringifier } from "../router/types.mjs";
2
2
  import "../router.mjs";
3
3
  //#region src/routerInternal/types.d.ts
4
- interface RouteResolveCodec {
4
+ export interface RouteResolveCodec {
5
5
  parseQuery: RouteQueryParser;
6
6
  stringifyQuery: RouteQueryStringifier;
7
7
  }
8
- //#endregion
9
- export { RouteResolveCodec };
8
+ //#endregion
@@ -1 +1 @@
1
- import{effect as e,track as t,trigger as n}from"../../reactivity/core.mjs";import{markAsRef as r}from"../../reactivity/ref.mjs";function i(i){let a=Object.create(null),o=Object.create(null),s=new Set;return{computedRefs:a,computedSetters:o,dirtyComputedKeys:s,createTrackedComputed:(a,o,c)=>{let l,u=!0,d,f={get value(){return u&&(l=d(),u=!1),t(f,`value`),l},set value(e){if(!c)throw Error(`计算属性是只读的`);c(e)}};return r(f),d=e(o,{lazy:!0,scheduler:()=>{u||(u=!0,i.setDataStrategy===`patch`&&i.includeComputed&&s.add(a),n(f,`value`))}}),f},computedProxy:new Proxy({},{get(e,t){if(typeof t==`string`&&a[t])return a[t].value},has(e,t){return typeof t==`string`&&!!a[t]},ownKeys(){return Object.keys(a)},getOwnPropertyDescriptor(e,t){if(typeof t==`string`&&a[t])return{configurable:!0,enumerable:!0,value:a[t].value}}})}}export{i as createComputedAccessors};
1
+ import{createComputedEffect as e,track as t,trigger as n}from"../../reactivity/core.mjs";import{markAsRef as r}from"../../reactivity/ref.mjs";function i(i){let a=Object.create(null),o=Object.create(null),s=new Set;return{computedRefs:a,computedSetters:o,dirtyComputedKeys:s,createTrackedComputed:(a,o,c)=>{let l,u=!0,d,f={get value(){return u&&(l=d(),u=!1),t(f,`value`),l},set value(e){if(!c)throw Error(`计算属性是只读的`);c(e)}};return r(f),d=e(o,{lazy:!0,scheduler:()=>{u||(u=!0,i.setDataStrategy===`patch`&&i.includeComputed&&s.add(a),n(f,`value`))}}),f},computedProxy:new Proxy({},{get(e,t){if(typeof t==`string`&&a[t])return a[t].value},has(e,t){return typeof t==`string`&&!!a[t]},ownKeys(){return Object.keys(a)},getOwnPropertyDescriptor(e,t){if(typeof t==`string`&&a[t])return{configurable:!0,enumerable:!0,value:a[t].value}}})}}export{i as createComputedAccessors};