wevu 7.0.4 → 7.1.1

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 (403) hide show
  1. package/README.md +20 -4
  2. package/dist/alipay/jsx-runtime.d.mts +12 -0
  3. package/dist/alipay/jsx-runtime.mjs +1 -0
  4. package/dist/dev/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/defineProperty.mjs +1 -1
  5. package/dist/dev/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/toPrimitive.mjs +1 -1
  6. package/dist/dev/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/toPropertyKey.mjs +1 -1
  7. package/dist/dev/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/typeof.mjs +1 -1
  8. package/dist/dev/api/vitest/setup.d.mts +1 -0
  9. package/dist/dev/api/vitest.d.mts +1 -0
  10. package/dist/dev/api.d.mts +1 -0
  11. package/dist/dev/compiler.d.mts +1 -0
  12. package/dist/dev/fetch.d.mts +9 -0
  13. package/dist/dev/index.d.mts +72 -0
  14. package/dist/dev/index.mjs +12 -15
  15. package/dist/dev/internal-reactivity.d.mts +18 -0
  16. package/dist/dev/internal-reactivity.mjs +3 -2
  17. package/dist/dev/internal-runtime.d.mts +44 -0
  18. package/dist/dev/internal-runtime.mjs +19 -14
  19. package/dist/dev/internal-template.d.mts +2 -0
  20. package/dist/dev/jsxTypes.d.mts +9 -0
  21. package/dist/dev/macros/shared.d.mts +81 -0
  22. package/dist/dev/macros.d.mts +71 -0
  23. package/dist/dev/package.mjs +1 -1
  24. package/dist/dev/reactivity/asyncDerivation.d.mts +41 -0
  25. package/dist/dev/reactivity/asyncDerivation.mjs +130 -0
  26. package/dist/dev/reactivity/asyncDerivation.mjs.map +1 -0
  27. package/dist/dev/reactivity/computed.d.mts +21 -0
  28. package/dist/dev/reactivity/computed.mjs +2 -2
  29. package/dist/dev/reactivity/computed.mjs.map +1 -1
  30. package/dist/dev/reactivity/core.d.mts +35 -0
  31. package/dist/dev/reactivity/core.mjs +156 -32
  32. package/dist/dev/reactivity/core.mjs.map +1 -1
  33. package/dist/dev/reactivity/index.d.mts +16 -0
  34. package/dist/dev/reactivity/reactive/mutation.d.mts +21 -0
  35. package/dist/dev/reactivity/reactive/patch.d.mts +18 -0
  36. package/dist/dev/reactivity/reactive/shallow.d.mts +22 -0
  37. package/dist/dev/reactivity/reactive/shared.d.mts +4 -0
  38. package/dist/dev/reactivity/reactive.d.mts +42 -0
  39. package/dist/dev/reactivity/readonly.d.mts +27 -0
  40. package/dist/dev/reactivity/readonly.mjs.map +1 -1
  41. package/dist/dev/reactivity/ref.d.mts +27 -0
  42. package/dist/dev/reactivity/ref.mjs +1 -1
  43. package/dist/dev/reactivity/shallowRef.d.mts +19 -0
  44. package/dist/dev/reactivity/toRefs.d.mts +43 -0
  45. package/dist/dev/reactivity/traverse.d.mts +8 -0
  46. package/dist/dev/reactivity/watch/types.d.mts +43 -0
  47. package/dist/dev/reactivity/watch.d.mts +22 -0
  48. package/dist/dev/router/createRouter.d.mts +8 -0
  49. package/dist/dev/router/createRouter.mjs +16 -3
  50. package/dist/dev/router/createRouter.mjs.map +1 -1
  51. package/dist/dev/router/navigationCore.d.mts +6 -0
  52. package/dist/dev/router/resolve.d.mts +6 -0
  53. package/dist/dev/router/routeSync.d.mts +1 -0
  54. package/dist/dev/router/types.d.mts +172 -0
  55. package/dist/dev/router/useRoute.d.mts +19 -0
  56. package/dist/dev/router/useRoute.mjs +23 -5
  57. package/dist/dev/router/useRoute.mjs.map +1 -1
  58. package/dist/dev/router/useRouter.d.mts +8 -0
  59. package/dist/dev/router.d.mts +10 -0
  60. package/dist/dev/routerInternal/query.d.mts +7 -0
  61. package/dist/dev/routerInternal/types.d.mts +9 -0
  62. package/dist/dev/runtime/app/computed.mjs +2 -2
  63. package/dist/dev/runtime/app/computed.mjs.map +1 -1
  64. package/dist/dev/runtime/app/context.mjs +8 -2
  65. package/dist/dev/runtime/app/context.mjs.map +1 -1
  66. package/dist/dev/runtime/app/diagnostics.mjs +12 -0
  67. package/dist/dev/runtime/app/diagnostics.mjs.map +1 -1
  68. package/dist/dev/runtime/app/mount.mjs +31 -28
  69. package/dist/dev/runtime/app/mount.mjs.map +1 -1
  70. package/dist/dev/runtime/app/pending.d.mts +10 -0
  71. package/dist/dev/runtime/app/setData/commitTracker.d.mts +13 -0
  72. package/dist/dev/runtime/app/setData/commitTracker.mjs +265 -0
  73. package/dist/dev/runtime/app/setData/commitTracker.mjs.map +1 -0
  74. package/dist/dev/runtime/app/setData/patchScheduler.mjs +47 -51
  75. package/dist/dev/runtime/app/setData/patchScheduler.mjs.map +1 -1
  76. package/dist/dev/runtime/app/setData/scheduler.d.mts +51 -0
  77. package/dist/dev/runtime/app/setData/scheduler.mjs +98 -111
  78. package/dist/dev/runtime/app/setData/scheduler.mjs.map +1 -1
  79. package/dist/dev/runtime/app/setData/snapshot.mjs +11 -1
  80. package/dist/dev/runtime/app/setData/snapshot.mjs.map +1 -1
  81. package/dist/dev/runtime/app.d.mts +8 -0
  82. package/dist/dev/runtime/app.mjs +18 -6
  83. package/dist/dev/runtime/app.mjs.map +1 -1
  84. package/dist/dev/runtime/bindingManifest.mjs +105 -0
  85. package/dist/dev/runtime/bindingManifest.mjs.map +1 -0
  86. package/dist/dev/runtime/capabilities.d.mts +75 -0
  87. package/dist/dev/runtime/capabilities.mjs +40 -0
  88. package/dist/dev/runtime/capabilities.mjs.map +1 -0
  89. package/dist/dev/runtime/css.d.mts +14 -0
  90. package/dist/dev/runtime/defaults.d.mts +12 -0
  91. package/dist/dev/runtime/define/componentDefinition.mjs +3 -0
  92. package/dist/dev/runtime/define/componentDefinition.mjs.map +1 -1
  93. package/dist/dev/runtime/define/optionsApi.mjs +1 -1
  94. package/dist/dev/runtime/define/props.mjs +30 -60
  95. package/dist/dev/runtime/define/props.mjs.map +1 -1
  96. package/dist/dev/runtime/define/scopedSlotOptions.mjs +37 -21
  97. package/dist/dev/runtime/define/scopedSlotOptions.mjs.map +1 -1
  98. package/dist/dev/runtime/define.d.mts +118 -0
  99. package/dist/dev/runtime/define.mjs +32 -44
  100. package/dist/dev/runtime/define.mjs.map +1 -1
  101. package/dist/dev/runtime/diff.mjs +1 -1
  102. package/dist/dev/runtime/disposables.d.mts +31 -0
  103. package/dist/dev/runtime/elementIntersectionObserver.d.mts +26 -0
  104. package/dist/dev/runtime/features/inlineEvents.d.mts +7 -0
  105. package/dist/dev/runtime/features/inlineEvents.mjs +25 -0
  106. package/dist/dev/runtime/features/inlineEvents.mjs.map +1 -0
  107. package/dist/dev/runtime/features/layout.d.mts +7 -0
  108. package/dist/dev/runtime/features/layout.mjs +44 -0
  109. package/dist/dev/runtime/features/layout.mjs.map +1 -0
  110. package/dist/dev/runtime/features/patchStrategy.d.mts +7 -0
  111. package/dist/dev/runtime/features/patchStrategy.mjs +129 -0
  112. package/dist/dev/runtime/features/patchStrategy.mjs.map +1 -0
  113. package/dist/dev/runtime/features/publicLayout.d.mts +24 -0
  114. package/dist/dev/runtime/features/publicLayout.mjs +81 -0
  115. package/dist/dev/runtime/features/publicLayout.mjs.map +1 -0
  116. package/dist/dev/runtime/features/scopedSlots.d.mts +23 -0
  117. package/dist/dev/runtime/features/scopedSlots.mjs +88 -0
  118. package/dist/dev/runtime/features/scopedSlots.mjs.map +1 -0
  119. package/dist/dev/runtime/features/setDataHighFrequencyWarning.d.mts +7 -0
  120. package/dist/dev/runtime/features/setDataHighFrequencyWarning.mjs +15 -0
  121. package/dist/dev/runtime/features/setDataHighFrequencyWarning.mjs.map +1 -0
  122. package/dist/dev/runtime/features/templateRefs.d.mts +7 -0
  123. package/dist/dev/runtime/features/templateRefs.mjs +39 -0
  124. package/dist/dev/runtime/features/templateRefs.mjs.map +1 -0
  125. package/dist/dev/runtime/hooks/base.d.mts +27 -0
  126. package/dist/dev/runtime/hooks/register.d.mts +30 -0
  127. package/dist/dev/runtime/hooks/vue.d.mts +52 -0
  128. package/dist/dev/runtime/hooks/vue.mjs +3 -5
  129. package/dist/dev/runtime/hooks/vue.mjs.map +1 -1
  130. package/dist/dev/runtime/hooks.d.mts +4 -0
  131. package/dist/dev/runtime/index.d.mts +46 -0
  132. package/dist/dev/runtime/inlineDataset.mjs +75 -0
  133. package/dist/dev/runtime/inlineDataset.mjs.map +1 -0
  134. package/dist/dev/runtime/intersectionObserver.d.mts +14 -0
  135. package/dist/dev/runtime/jsxIsland.d.mts +37 -0
  136. package/dist/dev/runtime/jsxIsland.mjs.map +1 -1
  137. package/dist/dev/runtime/layoutBridge.d.mts +55 -0
  138. package/dist/dev/runtime/layoutBridge.mjs.map +1 -1
  139. package/dist/dev/runtime/noSetData.d.mts +5 -0
  140. package/dist/dev/runtime/pageEnvironment.d.mts +50 -0
  141. package/dist/dev/runtime/pageLayout.d.mts +25 -0
  142. package/dist/dev/runtime/pageLayout.mjs.map +1 -1
  143. package/dist/dev/runtime/pageScroll.d.mts +29 -0
  144. package/dist/dev/runtime/platform.mjs +18 -1
  145. package/dist/dev/runtime/platform.mjs.map +1 -1
  146. package/dist/dev/runtime/provide.d.mts +60 -0
  147. package/dist/dev/runtime/provideStore.d.mts +7 -0
  148. package/dist/dev/runtime/publicRuntime.d.mts +22 -0
  149. package/dist/dev/runtime/publicRuntime.mjs +91 -0
  150. package/dist/dev/runtime/publicRuntime.mjs.map +1 -0
  151. package/dist/dev/runtime/pullDownRefresh.d.mts +12 -0
  152. package/dist/dev/runtime/register/app.d.mts +14 -0
  153. package/dist/dev/runtime/register/app.mjs +7 -10
  154. package/dist/dev/runtime/register/app.mjs.map +1 -1
  155. package/dist/dev/runtime/register/component/lifecycle.mjs +22 -6
  156. package/dist/dev/runtime/register/component/lifecycle.mjs.map +1 -1
  157. package/dist/dev/runtime/register/component/methods.mjs +7 -10
  158. package/dist/dev/runtime/register/component/methods.mjs.map +1 -1
  159. package/dist/dev/runtime/register/component/options.mjs.map +1 -1
  160. package/dist/dev/runtime/register/component/registerDefinition.mjs +64 -69
  161. package/dist/dev/runtime/register/component/registerDefinition.mjs.map +1 -1
  162. package/dist/dev/runtime/register/component.d.mts +17 -0
  163. package/dist/dev/runtime/register/inline.d.mts +15 -0
  164. package/dist/dev/runtime/register/inline.mjs +4 -64
  165. package/dist/dev/runtime/register/inline.mjs.map +1 -1
  166. package/dist/dev/runtime/register/runtimeInstance/setupContext.mjs +1 -1
  167. package/dist/dev/runtime/register/runtimeInstance/setupContext.mjs.map +1 -1
  168. package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs +4 -6
  169. package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs.map +1 -1
  170. package/dist/dev/runtime/register/runtimeInstance/setupSnapshot.mjs +26 -0
  171. package/dist/dev/runtime/register/runtimeInstance/setupSnapshot.mjs.map +1 -0
  172. package/dist/dev/runtime/register/runtimeInstance/utils.mjs.map +1 -1
  173. package/dist/dev/runtime/register/runtimeInstance.d.mts +26 -0
  174. package/dist/dev/runtime/register/runtimeInstance.mjs +402 -160
  175. package/dist/dev/runtime/register/runtimeInstance.mjs.map +1 -1
  176. package/dist/dev/runtime/register/setDataFrequencyWarning.mjs.map +1 -1
  177. package/dist/dev/runtime/register/setup.d.mts +11 -0
  178. package/dist/dev/runtime/register/snapshot.mjs +6 -10
  179. package/dist/dev/runtime/register/snapshot.mjs.map +1 -1
  180. package/dist/dev/runtime/register/watch.d.mts +12 -0
  181. package/dist/dev/runtime/register.d.mts +5 -0
  182. package/dist/dev/runtime/scopedSlots.mjs +1 -1
  183. package/dist/dev/runtime/scopedSlots.mjs.map +1 -1
  184. package/dist/dev/runtime/selectorQuery.d.mts +54 -0
  185. package/dist/dev/runtime/selectorQuery.mjs +5 -0
  186. package/dist/dev/runtime/selectorQuery.mjs.map +1 -1
  187. package/dist/dev/runtime/teardown.mjs +18 -0
  188. package/dist/dev/runtime/teardown.mjs.map +1 -0
  189. package/dist/dev/runtime/template.d.mts +6 -0
  190. package/dist/dev/runtime/templateRefTypes.d.mts +12 -0
  191. package/dist/dev/runtime/templateRefs/helpers.mjs.map +1 -1
  192. package/dist/dev/runtime/templateRefs.mjs +187 -118
  193. package/dist/dev/runtime/templateRefs.mjs.map +1 -1
  194. package/dist/dev/runtime/types/core.d.mts +35 -0
  195. package/dist/dev/runtime/types/miniprogram.d.mts +84 -0
  196. package/dist/dev/runtime/types/miniprogramHost.d.mts +45 -0
  197. package/dist/dev/runtime/types/miniprogramHostSources.d.mts +112 -0
  198. package/dist/dev/runtime/types/options.d.mts +136 -0
  199. package/dist/dev/runtime/types/props/propTypes.d.mts +79 -0
  200. package/dist/dev/runtime/types/props/router.d.mts +51 -0
  201. package/dist/dev/runtime/types/props/setup.d.mts +96 -0
  202. package/dist/dev/runtime/types/props.d.mts +4 -0
  203. package/dist/dev/runtime/types/runtime.d.mts +59 -0
  204. package/dist/dev/runtime/types/setData.d.mts +237 -0
  205. package/dist/dev/runtime/types.d.mts +29 -0
  206. package/dist/dev/runtime/uniAppHost.d.mts +8 -0
  207. package/dist/dev/runtime/updatePerformance.d.mts +13 -0
  208. package/dist/dev/runtime/use.d.mts +13 -0
  209. package/dist/dev/runtime/vueCompat/context.d.mts +8 -0
  210. package/dist/dev/runtime/vueCompat/model.d.mts +30 -0
  211. package/dist/dev/runtime/vueCompat/router.d.mts +29 -0
  212. package/dist/dev/runtime/vueCompat/router.mjs +18 -13
  213. package/dist/dev/runtime/vueCompat/router.mjs.map +1 -1
  214. package/dist/dev/runtime/vueCompat/templateRef.d.mts +9 -0
  215. package/dist/dev/runtime/vueCompat/templateRef.mjs +2 -0
  216. package/dist/dev/runtime/vueCompat/templateRef.mjs.map +1 -1
  217. package/dist/dev/runtime/vueCompat.d.mts +5 -0
  218. package/dist/dev/scheduler.d.mts +4 -0
  219. package/dist/dev/store/base.mjs +12 -18
  220. package/dist/dev/store/base.mjs.map +1 -1
  221. package/dist/dev/store/define/optionsStyle.mjs +13 -23
  222. package/dist/dev/store/define/optionsStyle.mjs.map +1 -1
  223. package/dist/dev/store/define/setupStyle.mjs +14 -24
  224. package/dist/dev/store/define/setupStyle.mjs.map +1 -1
  225. package/dist/dev/store/define/shared.mjs +44 -1
  226. package/dist/dev/store/define/shared.mjs.map +1 -1
  227. package/dist/dev/store/define.d.mts +28 -0
  228. package/dist/dev/store/define.mjs.map +1 -1
  229. package/dist/dev/store/manager.d.mts +8 -0
  230. package/dist/dev/store/storeToRefs.d.mts +13 -0
  231. package/dist/dev/store/types.d.mts +70 -0
  232. package/dist/dev/store.d.mts +5 -0
  233. package/dist/dev/version.d.mts +4 -0
  234. package/dist/dev/vue-augment.d.mts +8 -0
  235. package/dist/dev/vue-demi.d.mts +87 -0
  236. package/dist/dev/vue-demi.mjs +12 -15
  237. package/dist/dev/vue-demi.mjs.map +1 -1
  238. package/dist/dev/vue-types.d.mts +19 -0
  239. package/dist/dev/web-apis.d.mts +3 -0
  240. package/dist/index.d.mts +13 -14
  241. package/dist/index.mjs +1 -1
  242. package/dist/internal-reactivity.d.mts +2 -1
  243. package/dist/internal-reactivity.mjs +1 -1
  244. package/dist/internal-runtime.d.mts +13 -6
  245. package/dist/internal-runtime.mjs +1 -1
  246. package/dist/jsx-runtime.d.mts +47 -9
  247. package/dist/jsxTypes.d.mts +8 -0
  248. package/dist/miniprogram/jsx-runtime.d.mts +12 -0
  249. package/dist/miniprogram/jsx-runtime.mjs +1 -0
  250. package/dist/package.mjs +1 -1
  251. package/dist/reactivity/asyncDerivation.d.mts +40 -0
  252. package/dist/reactivity/asyncDerivation.mjs +1 -0
  253. package/dist/reactivity/computed.mjs +1 -1
  254. package/dist/reactivity/core.d.mts +1 -0
  255. package/dist/reactivity/core.mjs +1 -1
  256. package/dist/reactivity/index.d.mts +2 -1
  257. package/dist/reactivity/readonly.d.mts +1 -1
  258. package/dist/reactivity/ref.mjs +1 -1
  259. package/dist/router/createRouter.mjs +1 -1
  260. package/dist/router/useRoute.mjs +1 -1
  261. package/dist/runtime/app/computed.mjs +1 -1
  262. package/dist/runtime/app/context.mjs +1 -1
  263. package/dist/runtime/app/diagnostics.mjs +1 -1
  264. package/dist/runtime/app/mount.mjs +1 -1
  265. package/dist/runtime/app/setData/commitTracker.d.mts +12 -0
  266. package/dist/runtime/app/setData/commitTracker.mjs +1 -0
  267. package/dist/runtime/app/setData/patchScheduler.mjs +1 -1
  268. package/dist/runtime/app/setData/scheduler.d.mts +50 -0
  269. package/dist/runtime/app/setData/scheduler.mjs +1 -1
  270. package/dist/runtime/app/setData/snapshot.mjs +1 -1
  271. package/dist/runtime/app.mjs +1 -1
  272. package/dist/runtime/bindingManifest.mjs +1 -0
  273. package/dist/runtime/capabilities.d.mts +74 -0
  274. package/dist/runtime/capabilities.mjs +1 -0
  275. package/dist/runtime/define/componentDefinition.mjs +1 -1
  276. package/dist/runtime/define/optionsApi.mjs +1 -1
  277. package/dist/runtime/define/props.mjs +1 -1
  278. package/dist/runtime/define/scopedSlotOptions.mjs +1 -1
  279. package/dist/runtime/define.d.mts +5 -13
  280. package/dist/runtime/define.mjs +1 -1
  281. package/dist/runtime/diff.mjs +1 -1
  282. package/dist/runtime/features/inlineEvents.d.mts +6 -0
  283. package/dist/runtime/features/inlineEvents.mjs +1 -0
  284. package/dist/runtime/features/layout.d.mts +6 -0
  285. package/dist/runtime/features/layout.mjs +1 -0
  286. package/dist/runtime/features/patchStrategy.d.mts +6 -0
  287. package/dist/runtime/features/patchStrategy.mjs +1 -0
  288. package/dist/runtime/features/publicLayout.d.mts +23 -0
  289. package/dist/runtime/features/publicLayout.mjs +1 -0
  290. package/dist/runtime/features/scopedSlots.d.mts +22 -0
  291. package/dist/runtime/features/scopedSlots.mjs +1 -0
  292. package/dist/runtime/features/setDataHighFrequencyWarning.d.mts +6 -0
  293. package/dist/runtime/features/setDataHighFrequencyWarning.mjs +1 -0
  294. package/dist/runtime/features/templateRefs.d.mts +6 -0
  295. package/dist/runtime/features/templateRefs.mjs +1 -0
  296. package/dist/runtime/hooks/vue.d.mts +1 -2
  297. package/dist/runtime/hooks/vue.mjs +1 -1
  298. package/dist/runtime/index.d.mts +12 -14
  299. package/dist/runtime/inlineDataset.mjs +1 -0
  300. package/dist/runtime/jsxIsland.d.mts +2 -6
  301. package/dist/runtime/layoutBridge.d.mts +5 -9
  302. package/dist/runtime/pageLayout.d.mts +3 -4
  303. package/dist/runtime/platform.mjs +1 -1
  304. package/dist/runtime/publicRuntime.d.mts +21 -0
  305. package/dist/runtime/publicRuntime.mjs +1 -0
  306. package/dist/runtime/register/app.mjs +1 -1
  307. package/dist/runtime/register/component/lifecycle.mjs +1 -1
  308. package/dist/runtime/register/component/methods.mjs +1 -1
  309. package/dist/runtime/register/component/registerDefinition.mjs +1 -1
  310. package/dist/runtime/register/inline.mjs +1 -1
  311. package/dist/runtime/register/runtimeInstance/setupContext.mjs +1 -1
  312. package/dist/runtime/register/runtimeInstance/setupPhase.mjs +1 -1
  313. package/dist/runtime/register/runtimeInstance/setupSnapshot.mjs +1 -0
  314. package/dist/runtime/register/runtimeInstance.mjs +1 -1
  315. package/dist/runtime/register/snapshot.mjs +1 -1
  316. package/dist/runtime/scopedSlots.mjs +1 -1
  317. package/dist/runtime/selectorQuery.mjs +1 -1
  318. package/dist/runtime/teardown.mjs +1 -0
  319. package/dist/runtime/templateRefTypes.d.mts +5 -2
  320. package/dist/runtime/templateRefs.mjs +1 -1
  321. package/dist/runtime/types/miniprogram.d.mts +3 -0
  322. package/dist/runtime/types/options.d.mts +2 -2
  323. package/dist/runtime/types/props.d.mts +1 -1
  324. package/dist/runtime/types/setData.d.mts +18 -1
  325. package/dist/runtime/types.d.mts +3 -3
  326. package/dist/runtime/vueCompat/router.d.mts +5 -4
  327. package/dist/runtime/vueCompat/router.mjs +1 -1
  328. package/dist/runtime/vueCompat/templateRef.mjs +1 -1
  329. package/dist/store/base.mjs +1 -1
  330. package/dist/store/define/optionsStyle.mjs +1 -1
  331. package/dist/store/define/setupStyle.mjs +1 -1
  332. package/dist/store/define/shared.mjs +1 -1
  333. package/dist/store/define.d.mts +10 -8
  334. package/dist/store/types.d.mts +4 -4
  335. package/dist/tt/jsx-runtime.d.mts +12 -0
  336. package/dist/tt/jsx-runtime.mjs +1 -0
  337. package/dist/vue-demi.d.mts +13 -14
  338. package/dist/vue-demi.mjs +1 -1
  339. package/dist/weapp/jsx-runtime.d.mts +12 -0
  340. package/dist/weapp/jsx-runtime.mjs +1 -0
  341. package/package.json +26 -22
  342. package/dist/dev/jsx-runtime.mjs +0 -1
  343. package/dist/runtime/templateRefs.d.mts +0 -10
  344. package/dist/weappIntrinsicElements/base.d.mts +0 -21
  345. package/dist/weappIntrinsicElements/elements/ad-custom.d.mts +0 -12
  346. package/dist/weappIntrinsicElements/elements/ad.d.mts +0 -15
  347. package/dist/weappIntrinsicElements/elements/audio.d.mts +0 -19
  348. package/dist/weappIntrinsicElements/elements/block.d.mts +0 -7
  349. package/dist/weappIntrinsicElements/elements/button.d.mts +0 -39
  350. package/dist/weappIntrinsicElements/elements/camera.d.mts +0 -17
  351. package/dist/weappIntrinsicElements/elements/canvas.d.mts +0 -17
  352. package/dist/weappIntrinsicElements/elements/checkbox-group.d.mts +0 -12
  353. package/dist/weappIntrinsicElements/elements/checkbox.d.mts +0 -12
  354. package/dist/weappIntrinsicElements/elements/cover-image.d.mts +0 -9
  355. package/dist/weappIntrinsicElements/elements/cover-view.d.mts +0 -9
  356. package/dist/weappIntrinsicElements/elements/editor.d.mts +0 -21
  357. package/dist/weappIntrinsicElements/elements/form.d.mts +0 -15
  358. package/dist/weappIntrinsicElements/elements/functional-page-navigator.d.mts +0 -14
  359. package/dist/weappIntrinsicElements/elements/icon.d.mts +0 -11
  360. package/dist/weappIntrinsicElements/elements/image.d.mts +0 -17
  361. package/dist/weappIntrinsicElements/elements/import.d.mts +0 -9
  362. package/dist/weappIntrinsicElements/elements/include.d.mts +0 -9
  363. package/dist/weappIntrinsicElements/elements/input.d.mts +0 -46
  364. package/dist/weappIntrinsicElements/elements/keyboard-accessory.d.mts +0 -7
  365. package/dist/weappIntrinsicElements/elements/label.d.mts +0 -9
  366. package/dist/weappIntrinsicElements/elements/live-player.d.mts +0 -34
  367. package/dist/weappIntrinsicElements/elements/live-pusher.d.mts +0 -56
  368. package/dist/weappIntrinsicElements/elements/map.d.mts +0 -104
  369. package/dist/weappIntrinsicElements/elements/match-media.d.mts +0 -15
  370. package/dist/weappIntrinsicElements/elements/movable-area.d.mts +0 -25
  371. package/dist/weappIntrinsicElements/elements/movable-view.d.mts +0 -25
  372. package/dist/weappIntrinsicElements/elements/navigation-bar.d.mts +0 -14
  373. package/dist/weappIntrinsicElements/elements/navigator.d.mts +0 -24
  374. package/dist/weappIntrinsicElements/elements/official-account.d.mts +0 -12
  375. package/dist/weappIntrinsicElements/elements/open-data.d.mts +0 -14
  376. package/dist/weappIntrinsicElements/elements/page-container.d.mts +0 -24
  377. package/dist/weappIntrinsicElements/elements/page-meta.d.mts +0 -22
  378. package/dist/weappIntrinsicElements/elements/picker-view-column.d.mts +0 -17
  379. package/dist/weappIntrinsicElements/elements/picker-view.d.mts +0 -17
  380. package/dist/weappIntrinsicElements/elements/picker.d.mts +0 -22
  381. package/dist/weappIntrinsicElements/elements/progress.d.mts +0 -20
  382. package/dist/weappIntrinsicElements/elements/radio-group.d.mts +0 -12
  383. package/dist/weappIntrinsicElements/elements/radio.d.mts +0 -12
  384. package/dist/weappIntrinsicElements/elements/rich-text.d.mts +0 -16
  385. package/dist/weappIntrinsicElements/elements/scroll-view.d.mts +0 -67
  386. package/dist/weappIntrinsicElements/elements/share-element.d.mts +0 -17
  387. package/dist/weappIntrinsicElements/elements/slider.d.mts +0 -22
  388. package/dist/weappIntrinsicElements/elements/slot.d.mts +0 -9
  389. package/dist/weappIntrinsicElements/elements/swiper-item.d.mts +0 -41
  390. package/dist/weappIntrinsicElements/elements/swiper.d.mts +0 -41
  391. package/dist/weappIntrinsicElements/elements/switch.d.mts +0 -13
  392. package/dist/weappIntrinsicElements/elements/template.d.mts +0 -11
  393. package/dist/weappIntrinsicElements/elements/text.d.mts +0 -14
  394. package/dist/weappIntrinsicElements/elements/textarea.d.mts +0 -39
  395. package/dist/weappIntrinsicElements/elements/video.d.mts +0 -70
  396. package/dist/weappIntrinsicElements/elements/view.d.mts +0 -12
  397. package/dist/weappIntrinsicElements/elements/voip-room.d.mts +0 -13
  398. package/dist/weappIntrinsicElements/elements/web-view.d.mts +0 -12
  399. package/dist/weappIntrinsicElements.d.mts +0 -153
  400. /package/dist/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/defineProperty.mjs +0 -0
  401. /package/dist/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/toPrimitive.mjs +0 -0
  402. /package/dist/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/toPropertyKey.mjs +0 -0
  403. /package/dist/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/typeof.mjs +0 -0
@@ -0,0 +1,81 @@
1
+ import { getCurrentMiniProgramPages } from "../platform.mjs";
2
+ import { getCurrentInstance } from "../hooks/base.mjs";
3
+ import { runtimeCapabilityRegistry } from "../capabilities.mjs";
4
+ import { registerPageLayoutBridge as registerPageLayoutBridge$1, registerRuntimeLayoutHosts as registerRuntimeLayoutHosts$1, resolveLayoutBridge as resolveLayoutBridge$1, resolveLayoutHost as resolveLayoutHost$1, unregisterPageLayoutBridge as unregisterPageLayoutBridge$1, unregisterRuntimeLayoutHosts as unregisterRuntimeLayoutHosts$1, useLayoutBridge as useLayoutBridge$1, useLayoutHosts as useLayoutHosts$1, waitForLayoutHost as waitForLayoutHost$1 } from "../layoutBridge.mjs";
5
+ import { getCurrentPageInstance } from "../register/component/lifecycle/platform.mjs";
6
+ import { resolveRuntimePageLayoutName as resolveRuntimePageLayoutName$1, setPageLayout as setPageLayout$1, syncRuntimePageLayoutState as syncRuntimePageLayoutState$1, syncRuntimePageLayoutStateFromRuntime as syncRuntimePageLayoutStateFromRuntime$1, usePageLayout as usePageLayout$1 } from "../pageLayout.mjs";
7
+ import { installLayout } from "./layout.mjs";
8
+
9
+ //#region src/runtime/features/publicLayout.ts
10
+ const registerPageLayoutBridge = (...args) => {
11
+ installLayout();
12
+ return registerPageLayoutBridge$1(...args);
13
+ };
14
+ const unregisterPageLayoutBridge = (...args) => {
15
+ installLayout();
16
+ return unregisterPageLayoutBridge$1(...args);
17
+ };
18
+ const resolveLayoutBridge = (...args) => {
19
+ installLayout();
20
+ return resolveLayoutBridge$1(...args);
21
+ };
22
+ const resolveLayoutHost = (...args) => {
23
+ installLayout();
24
+ return resolveLayoutHost$1(...args);
25
+ };
26
+ const waitForLayoutHost = (...args) => {
27
+ installLayout();
28
+ return waitForLayoutHost$1(...args);
29
+ };
30
+ const useLayoutBridge = (...args) => {
31
+ installLayout();
32
+ return useLayoutBridge$1(...args);
33
+ };
34
+ const registerRuntimeLayoutHosts = (...args) => {
35
+ installLayout();
36
+ return registerRuntimeLayoutHosts$1(...args);
37
+ };
38
+ const unregisterRuntimeLayoutHosts = (...args) => {
39
+ installLayout();
40
+ return unregisterRuntimeLayoutHosts$1(...args);
41
+ };
42
+ const useLayoutHosts = (...args) => {
43
+ installLayout();
44
+ return useLayoutHosts$1(...args);
45
+ };
46
+ const usePageLayout = (...args) => {
47
+ installLayout();
48
+ return usePageLayout$1(...args);
49
+ };
50
+ function setPageLayout(layout, props) {
51
+ var _getCurrentPageInstan;
52
+ installLayout();
53
+ const pages = getCurrentMiniProgramPages();
54
+ const currentInstance = getCurrentInstance();
55
+ const currentTarget = currentInstance && typeof currentInstance.route === "string" && currentInstance.route ? currentInstance : (_getCurrentPageInstan = getCurrentPageInstance()) !== null && _getCurrentPageInstan !== void 0 ? _getCurrentPageInstan : pages[pages.length - 1];
56
+ if (currentTarget) {
57
+ var _runtimeCapabilityReg;
58
+ (_runtimeCapabilityReg = runtimeCapabilityRegistry.layout) === null || _runtimeCapabilityReg === void 0 || _runtimeCapabilityReg.attachPageSetter(currentTarget);
59
+ }
60
+ if (layout === false) {
61
+ setPageLayout$1(false);
62
+ return;
63
+ }
64
+ setPageLayout$1(layout, props);
65
+ }
66
+ const syncRuntimePageLayoutState = (...args) => {
67
+ installLayout();
68
+ return syncRuntimePageLayoutState$1(...args);
69
+ };
70
+ const syncRuntimePageLayoutStateFromRuntime = (...args) => {
71
+ installLayout();
72
+ return syncRuntimePageLayoutStateFromRuntime$1(...args);
73
+ };
74
+ const resolveRuntimePageLayoutName = (...args) => {
75
+ installLayout();
76
+ return resolveRuntimePageLayoutName$1(...args);
77
+ };
78
+
79
+ //#endregion
80
+ export { registerPageLayoutBridge, registerRuntimeLayoutHosts, resolveLayoutBridge, resolveLayoutHost, resolveRuntimePageLayoutName, setPageLayout, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, unregisterPageLayoutBridge, unregisterRuntimeLayoutHosts, useLayoutBridge, useLayoutHosts, usePageLayout, waitForLayoutHost };
81
+ //# sourceMappingURL=publicLayout.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publicLayout.mjs","names":["registerPageLayoutBridgeImplementation","unregisterPageLayoutBridgeImplementation","resolveLayoutBridgeImplementation","resolveLayoutHostImplementation","waitForLayoutHostImplementation","useLayoutBridgeImplementation","registerRuntimeLayoutHostsImplementation","unregisterRuntimeLayoutHostsImplementation","useLayoutHostsImplementation","usePageLayoutImplementation","syncRuntimePageLayoutStateImplementation","syncRuntimePageLayoutStateFromRuntimeImplementation","resolveRuntimePageLayoutNameImplementation"],"sources":["../../../../src/runtime/features/publicLayout.ts"],"sourcesContent":["import type { WevuPageLayoutMap } from '../pageLayout'\nimport type { InternalRuntimeState } from '../types'\nimport { runtimeCapabilityRegistry } from '../capabilities'\nimport { getCurrentInstance } from '../hooks'\nimport {\n registerPageLayoutBridge as registerPageLayoutBridgeImplementation,\n registerRuntimeLayoutHosts as registerRuntimeLayoutHostsImplementation,\n resolveLayoutBridge as resolveLayoutBridgeImplementation,\n resolveLayoutHost as resolveLayoutHostImplementation,\n unregisterPageLayoutBridge as unregisterPageLayoutBridgeImplementation,\n unregisterRuntimeLayoutHosts as unregisterRuntimeLayoutHostsImplementation,\n useLayoutBridge as useLayoutBridgeImplementation,\n useLayoutHosts as useLayoutHostsImplementation,\n waitForLayoutHost as waitForLayoutHostImplementation,\n} from '../layoutBridge'\nimport {\n resolveRuntimePageLayoutName as resolveRuntimePageLayoutNameImplementation,\n setPageLayout as setPageLayoutImplementation,\n syncRuntimePageLayoutStateFromRuntime as syncRuntimePageLayoutStateFromRuntimeImplementation,\n syncRuntimePageLayoutState as syncRuntimePageLayoutStateImplementation,\n usePageLayout as usePageLayoutImplementation,\n} from '../pageLayout'\nimport { getCurrentMiniProgramPages } from '../platform'\nimport { getCurrentPageInstance } from '../register/component/lifecycle/platform'\nimport { installLayout } from './layout'\n\nexport type { LayoutBridgeInstance, LayoutHostBinding } from '../layoutBridge'\nexport type { PageLayoutState, WevuPageLayoutMap } from '../pageLayout'\n\nexport const registerPageLayoutBridge: typeof registerPageLayoutBridgeImplementation = (...args) => {\n installLayout()\n return registerPageLayoutBridgeImplementation(...args)\n}\n\nexport const unregisterPageLayoutBridge: typeof unregisterPageLayoutBridgeImplementation = (...args) => {\n installLayout()\n return unregisterPageLayoutBridgeImplementation(...args)\n}\n\nexport const resolveLayoutBridge: typeof resolveLayoutBridgeImplementation = (...args) => {\n installLayout()\n return resolveLayoutBridgeImplementation(...args)\n}\n\nexport const resolveLayoutHost: typeof resolveLayoutHostImplementation = (...args) => {\n installLayout()\n return resolveLayoutHostImplementation(...args)\n}\n\nexport const waitForLayoutHost: typeof waitForLayoutHostImplementation = (...args) => {\n installLayout()\n return waitForLayoutHostImplementation(...args)\n}\n\nexport const useLayoutBridge: typeof useLayoutBridgeImplementation = (...args) => {\n installLayout()\n return useLayoutBridgeImplementation(...args)\n}\n\nexport const registerRuntimeLayoutHosts: typeof registerRuntimeLayoutHostsImplementation = (...args) => {\n installLayout()\n return registerRuntimeLayoutHostsImplementation(...args)\n}\n\nexport const unregisterRuntimeLayoutHosts: typeof unregisterRuntimeLayoutHostsImplementation = (...args) => {\n installLayout()\n return unregisterRuntimeLayoutHostsImplementation(...args)\n}\n\nexport const useLayoutHosts: typeof useLayoutHostsImplementation = (...args) => {\n installLayout()\n return useLayoutHostsImplementation(...args)\n}\n\nexport const usePageLayout: typeof usePageLayoutImplementation = (...args) => {\n installLayout()\n return usePageLayoutImplementation(...args)\n}\n\ntype PublicPageLayoutName = keyof WevuPageLayoutMap extends never\n ? string\n : Extract<keyof WevuPageLayoutMap, string>\ntype PublicPageLayoutProps<Name extends string> = Name extends keyof WevuPageLayoutMap\n ? WevuPageLayoutMap[Name]\n : object\n\nexport function setPageLayout(layout: false): void\nexport function setPageLayout<Name extends PublicPageLayoutName>(\n layout: Name,\n props?: PublicPageLayoutProps<Name>,\n): void\nexport function setPageLayout(layout: string | false, props?: object): void {\n installLayout()\n const pages = getCurrentMiniProgramPages()\n const currentInstance = getCurrentInstance()\n const currentTarget = currentInstance && typeof currentInstance.route === 'string' && currentInstance.route\n ? currentInstance\n : getCurrentPageInstance() ?? pages[pages.length - 1]\n if (currentTarget) {\n runtimeCapabilityRegistry.layout?.attachPageSetter(currentTarget as InternalRuntimeState)\n }\n if (layout === false) {\n setPageLayoutImplementation(false)\n return\n }\n setPageLayoutImplementation(layout, props)\n}\n\nexport const syncRuntimePageLayoutState: typeof syncRuntimePageLayoutStateImplementation = (...args) => {\n installLayout()\n return syncRuntimePageLayoutStateImplementation(...args)\n}\n\nexport const syncRuntimePageLayoutStateFromRuntime: typeof syncRuntimePageLayoutStateFromRuntimeImplementation = (...args) => {\n installLayout()\n return syncRuntimePageLayoutStateFromRuntimeImplementation(...args)\n}\n\nexport const resolveRuntimePageLayoutName: typeof resolveRuntimePageLayoutNameImplementation = (...args) => {\n installLayout()\n return resolveRuntimePageLayoutNameImplementation(...args)\n}\n"],"mappings":";;;;;;;;;AA6BA,MAAa,4BAA2E,GAAG,SAAS;CAClG,cAAc;CACd,OAAOA,2BAAuC,GAAG,IAAI;AACvD;AAEA,MAAa,8BAA+E,GAAG,SAAS;CACtG,cAAc;CACd,OAAOC,6BAAyC,GAAG,IAAI;AACzD;AAEA,MAAa,uBAAiE,GAAG,SAAS;CACxF,cAAc;CACd,OAAOC,sBAAkC,GAAG,IAAI;AAClD;AAEA,MAAa,qBAA6D,GAAG,SAAS;CACpF,cAAc;CACd,OAAOC,oBAAgC,GAAG,IAAI;AAChD;AAEA,MAAa,qBAA6D,GAAG,SAAS;CACpF,cAAc;CACd,OAAOC,oBAAgC,GAAG,IAAI;AAChD;AAEA,MAAa,mBAAyD,GAAG,SAAS;CAChF,cAAc;CACd,OAAOC,kBAA8B,GAAG,IAAI;AAC9C;AAEA,MAAa,8BAA+E,GAAG,SAAS;CACtG,cAAc;CACd,OAAOC,6BAAyC,GAAG,IAAI;AACzD;AAEA,MAAa,gCAAmF,GAAG,SAAS;CAC1G,cAAc;CACd,OAAOC,+BAA2C,GAAG,IAAI;AAC3D;AAEA,MAAa,kBAAuD,GAAG,SAAS;CAC9E,cAAc;CACd,OAAOC,iBAA6B,GAAG,IAAI;AAC7C;AAEA,MAAa,iBAAqD,GAAG,SAAS;CAC5E,cAAc;CACd,OAAOC,gBAA4B,GAAG,IAAI;AAC5C;AAcA,SAAgB,cAAc,QAAwB,OAAsB;;CAC1E,cAAc;CACd,MAAM,QAAQ,2BAA2B;CACzC,MAAM,kBAAkB,mBAAmB;CAC3C,MAAM,gBAAgB,mBAAmB,OAAO,gBAAgB,UAAU,YAAY,gBAAgB,QAClG,2CACA,uBAAuB,0EAAK,MAAM,MAAM,SAAS;CACrD,IAAI,eAAe;;EACjB,mDAA0B,8EAAQ,iBAAiB,aAAqC;CAC1F;CACA,IAAI,WAAW,OAAO;EACpB,gBAA4B,KAAK;EACjC;CACF;CACA,gBAA4B,QAAQ,KAAK;AAC3C;AAEA,MAAa,8BAA+E,GAAG,SAAS;CACtG,cAAc;CACd,OAAOC,6BAAyC,GAAG,IAAI;AACzD;AAEA,MAAa,yCAAqG,GAAG,SAAS;CAC5H,cAAc;CACd,OAAOC,wCAAoD,GAAG,IAAI;AACpE;AAEA,MAAa,gCAAmF,GAAG,SAAS;CAC1G,cAAc;CACd,OAAOC,+BAA2C,GAAG,IAAI;AAC3D"}
@@ -0,0 +1,23 @@
1
+ import { ComputedDefinitions } from "../types/core.mjs";
2
+ import "../types.mjs";
3
+ import { InlineExpressionMap } from "../register/inline.mjs";
4
+ import { LayoutHostBinding, TemplateRefBinding } from "../capabilities.mjs";
5
+ import { WEVU_BINDING_MANIFEST_KEY, WevuRuntimeBindingManifestV1 } from "@weapp-core/constants";
6
+ //#region src/runtime/features/scopedSlots.d.ts
7
+ export interface CreateWevuScopedSlotComponentOptions {
8
+ computed?: ComputedDefinitions;
9
+ inlineMap?: InlineExpressionMap;
10
+ layoutHosts?: LayoutHostBinding[];
11
+ templateRefs?: TemplateRefBinding[];
12
+ [WEVU_BINDING_MANIFEST_KEY]?: WevuRuntimeBindingManifestV1;
13
+ }
14
+ /**
15
+ * 创建编译器生成的作用域插槽组件。
16
+ */
17
+ export declare function createWevuScopedSlotComponent(overrides?: CreateWevuScopedSlotComponentOptions): void;
18
+ /**
19
+ * 安装作用域插槽的 owner 生命周期与组件创建能力。
20
+ */
21
+ export declare function installScopedSlots(): void;
22
+ //#endregion
23
+ //# sourceMappingURL=scopedSlots.d.mts.map
@@ -0,0 +1,88 @@
1
+ import { getScopedSlotHostGlobalObject } from "../platform.mjs";
2
+ import { RUNTIME_SCOPED_SLOT_STATE_KEY, getScopedSlotMountState, registerRuntimeCapability, requireRuntimeCapability } from "../capabilities.mjs";
3
+ import { runTeardownSteps } from "../teardown.mjs";
4
+ import { callNativeSetData, resolveNativeSetData } from "../register/runtimeInstance/utils.mjs";
5
+ import { createWevuComponent } from "../define.mjs";
6
+ import { allocateOwnerId, attachOwnerSnapshot, getOwnerProxy, mergeOwnerSnapshotProps, removeOwner, resolveOwnerSnapshot, updateOwnerSnapshot } from "../scopedSlots.mjs";
7
+ import { createScopedSlotOptions } from "../define/scopedSlotOptions.mjs";
8
+ import { WEVU_PROPS_KEY, WEVU_RUNTIME_OWNER_ID_KEY, WEVU_SCOPED_SLOT_CREATOR_KEY, WEVU_SLOT_OWNER_ID_KEY } from "@weapp-core/constants";
9
+
10
+ //#region src/runtime/features/scopedSlots.ts
11
+ const scopedSlotHooks = {
12
+ prepareMount(target) {
13
+ var _target$data;
14
+ const existing = getScopedSlotMountState(target);
15
+ if (existing) return existing;
16
+ const initialNativeOwnerId = (_target$data = target.data) === null || _target$data === void 0 ? void 0 : _target$data[WEVU_SLOT_OWNER_ID_KEY];
17
+ const ownerId = typeof initialNativeOwnerId === "string" && initialNativeOwnerId ? initialNativeOwnerId : allocateOwnerId();
18
+ const state = {
19
+ ownerId,
20
+ shouldFlushNativeOwnerId: typeof initialNativeOwnerId === "string" && initialNativeOwnerId !== ownerId
21
+ };
22
+ Object.defineProperty(target, RUNTIME_SCOPED_SLOT_STATE_KEY, {
23
+ value: state,
24
+ configurable: true,
25
+ enumerable: false,
26
+ writable: false
27
+ });
28
+ return state;
29
+ },
30
+ attachMount(target, runtime, state, deferSnapshot) {
31
+ attachOwnerSnapshot(target, runtime, state.ownerId, { deferSnapshot });
32
+ },
33
+ refresh(target, state) {
34
+ var _WEVU_PROPS_KEY;
35
+ const runtime = target.__wevu;
36
+ if (!runtime) return;
37
+ const snapshot = resolveOwnerSnapshot(runtime);
38
+ const propsSource = (_WEVU_PROPS_KEY = target[WEVU_PROPS_KEY]) !== null && _WEVU_PROPS_KEY !== void 0 ? _WEVU_PROPS_KEY : target.properties;
39
+ mergeOwnerSnapshotProps(snapshot, propsSource);
40
+ updateOwnerSnapshot(state.ownerId, snapshot, runtime.proxy, target);
41
+ },
42
+ syncNativeOwnerId(target, state) {
43
+ if (!state.shouldFlushNativeOwnerId) return;
44
+ try {
45
+ if (target.data && typeof target.data === "object") target.data[WEVU_SLOT_OWNER_ID_KEY] = state.ownerId;
46
+ } catch (_unused) {}
47
+ const setData = resolveNativeSetData(target);
48
+ if (setData) callNativeSetData(target, setData, { [WEVU_SLOT_OWNER_ID_KEY]: state.ownerId });
49
+ },
50
+ teardown(target) {
51
+ var _ref, _state$ownerId;
52
+ const state = getScopedSlotMountState(target);
53
+ const scopedTarget = target;
54
+ const ownerId = (_ref = (_state$ownerId = state === null || state === void 0 ? void 0 : state.ownerId) !== null && _state$ownerId !== void 0 ? _state$ownerId : scopedTarget[WEVU_RUNTIME_OWNER_ID_KEY]) !== null && _ref !== void 0 ? _ref : scopedTarget[WEVU_SLOT_OWNER_ID_KEY];
55
+ runTeardownSteps([() => {
56
+ if (typeof ownerId === "string" && ownerId) removeOwner(ownerId);
57
+ }, () => {
58
+ delete scopedTarget[RUNTIME_SCOPED_SLOT_STATE_KEY];
59
+ }]);
60
+ },
61
+ resolveLifecycleProxy(target) {
62
+ var _ref2, _ref3, _scopedTarget$WEVU_RU, _target$data2, _target$properties;
63
+ const scopedTarget = target;
64
+ const ownerId = (_ref2 = (_ref3 = (_scopedTarget$WEVU_RU = scopedTarget[WEVU_RUNTIME_OWNER_ID_KEY]) !== null && _scopedTarget$WEVU_RU !== void 0 ? _scopedTarget$WEVU_RU : scopedTarget[WEVU_SLOT_OWNER_ID_KEY]) !== null && _ref3 !== void 0 ? _ref3 : (_target$data2 = target.data) === null || _target$data2 === void 0 ? void 0 : _target$data2[WEVU_SLOT_OWNER_ID_KEY]) !== null && _ref2 !== void 0 ? _ref2 : (_target$properties = target.properties) === null || _target$properties === void 0 ? void 0 : _target$properties[WEVU_SLOT_OWNER_ID_KEY];
65
+ return typeof ownerId === "string" && ownerId ? getOwnerProxy(ownerId) : void 0;
66
+ },
67
+ allocateOwnerId
68
+ };
69
+ /**
70
+ * 创建编译器生成的作用域插槽组件。
71
+ */
72
+ function createWevuScopedSlotComponent(overrides) {
73
+ requireRuntimeCapability("scopedSlots", "createWevuScopedSlotComponent");
74
+ const componentOptions = createScopedSlotOptions(overrides);
75
+ createWevuComponent(componentOptions);
76
+ }
77
+ /**
78
+ * 安装作用域插槽的 owner 生命周期与组件创建能力。
79
+ */
80
+ function installScopedSlots() {
81
+ registerRuntimeCapability("scopedSlots", scopedSlotHooks);
82
+ const globalObject = getScopedSlotHostGlobalObject();
83
+ if (globalObject && globalObject[WEVU_SCOPED_SLOT_CREATOR_KEY] !== createWevuScopedSlotComponent) globalObject[WEVU_SCOPED_SLOT_CREATOR_KEY] = createWevuScopedSlotComponent;
84
+ }
85
+
86
+ //#endregion
87
+ export { createWevuScopedSlotComponent, installScopedSlots };
88
+ //# sourceMappingURL=scopedSlots.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scopedSlots.mjs","names":[],"sources":["../../../../src/runtime/features/scopedSlots.ts"],"sourcesContent":["import type { WEVU_BINDING_MANIFEST_KEY, WevuRuntimeBindingManifestV1 } from '@weapp-core/constants'\nimport type {\n LayoutHostBinding,\n RuntimeCapabilityRegistry,\n ScopedSlotMountState,\n TemplateRefBinding,\n} from '../capabilities'\nimport type { InlineExpressionMap } from '../register/inline'\nimport type { ComputedDefinitions, InternalRuntimeState } from '../types'\nimport {\n WEVU_PROPS_KEY,\n WEVU_RUNTIME_OWNER_ID_KEY,\n WEVU_SCOPED_SLOT_CREATOR_KEY,\n WEVU_SLOT_OWNER_ID_KEY,\n} from '@weapp-core/constants'\nimport {\n getScopedSlotMountState,\n registerRuntimeCapability,\n requireRuntimeCapability,\n RUNTIME_SCOPED_SLOT_STATE_KEY,\n} from '../capabilities'\nimport { createWevuComponent } from '../define'\nimport { createScopedSlotOptions } from '../define/scopedSlotOptions'\nimport { getScopedSlotHostGlobalObject } from '../platform'\nimport { callNativeSetData, resolveNativeSetData } from '../register/runtimeInstance/utils'\nimport {\n allocateOwnerId,\n attachOwnerSnapshot,\n getOwnerProxy,\n mergeOwnerSnapshotProps,\n removeOwner,\n resolveOwnerSnapshot,\n updateOwnerSnapshot,\n} from '../scopedSlots'\nimport { runTeardownSteps } from '../teardown'\n\nexport interface CreateWevuScopedSlotComponentOptions {\n computed?: ComputedDefinitions\n inlineMap?: InlineExpressionMap\n layoutHosts?: LayoutHostBinding[]\n templateRefs?: TemplateRefBinding[]\n [WEVU_BINDING_MANIFEST_KEY]?: WevuRuntimeBindingManifestV1\n}\n\ntype RuntimeTargetWithScopedSlotState = InternalRuntimeState & {\n [RUNTIME_SCOPED_SLOT_STATE_KEY]?: ScopedSlotMountState\n [WEVU_PROPS_KEY]?: unknown\n [WEVU_RUNTIME_OWNER_ID_KEY]?: unknown\n [WEVU_SLOT_OWNER_ID_KEY]?: unknown\n}\n\nconst scopedSlotHooks: NonNullable<RuntimeCapabilityRegistry['scopedSlots']> = {\n prepareMount(target: InternalRuntimeState) {\n const existing = getScopedSlotMountState(target)\n if (existing) {\n return existing\n }\n const initialNativeOwnerId = target.data?.[WEVU_SLOT_OWNER_ID_KEY]\n const ownerId = typeof initialNativeOwnerId === 'string' && initialNativeOwnerId\n ? initialNativeOwnerId\n : allocateOwnerId()\n const state: ScopedSlotMountState = {\n ownerId,\n shouldFlushNativeOwnerId: typeof initialNativeOwnerId === 'string' && initialNativeOwnerId !== ownerId,\n }\n Object.defineProperty(target, RUNTIME_SCOPED_SLOT_STATE_KEY, {\n value: state,\n configurable: true,\n enumerable: false,\n writable: false,\n })\n return state\n },\n attachMount(target, runtime, state, deferSnapshot) {\n attachOwnerSnapshot(target, runtime, state.ownerId, { deferSnapshot })\n },\n refresh(target: InternalRuntimeState, state: ScopedSlotMountState) {\n const runtime = target.__wevu\n if (!runtime) {\n return\n }\n const snapshot = resolveOwnerSnapshot(runtime)\n const propsSource = (target as RuntimeTargetWithScopedSlotState)[WEVU_PROPS_KEY] ?? target.properties\n mergeOwnerSnapshotProps(snapshot, propsSource)\n updateOwnerSnapshot(state.ownerId, snapshot, runtime.proxy, target)\n },\n syncNativeOwnerId(target: InternalRuntimeState, state: ScopedSlotMountState) {\n if (!state.shouldFlushNativeOwnerId) {\n return\n }\n try {\n if (target.data && typeof target.data === 'object') {\n target.data[WEVU_SLOT_OWNER_ID_KEY] = state.ownerId\n }\n }\n catch {\n // 忽略直接写入失败,后续 setData 仍会尝试同步。\n }\n const setData = resolveNativeSetData(target)\n if (setData) {\n callNativeSetData(target, setData, { [WEVU_SLOT_OWNER_ID_KEY]: state.ownerId })\n }\n },\n teardown(target: InternalRuntimeState) {\n const state = getScopedSlotMountState(target)\n const scopedTarget = target as RuntimeTargetWithScopedSlotState\n const ownerId = state?.ownerId\n ?? scopedTarget[WEVU_RUNTIME_OWNER_ID_KEY]\n ?? scopedTarget[WEVU_SLOT_OWNER_ID_KEY]\n runTeardownSteps([\n () => {\n if (typeof ownerId === 'string' && ownerId) {\n removeOwner(ownerId)\n }\n },\n () => {\n delete scopedTarget[RUNTIME_SCOPED_SLOT_STATE_KEY]\n },\n ])\n },\n resolveLifecycleProxy(target: InternalRuntimeState) {\n const scopedTarget = target as RuntimeTargetWithScopedSlotState\n const ownerId = scopedTarget[WEVU_RUNTIME_OWNER_ID_KEY]\n ?? scopedTarget[WEVU_SLOT_OWNER_ID_KEY]\n ?? target.data?.[WEVU_SLOT_OWNER_ID_KEY]\n ?? target.properties?.[WEVU_SLOT_OWNER_ID_KEY]\n return typeof ownerId === 'string' && ownerId ? getOwnerProxy(ownerId) : undefined\n },\n allocateOwnerId,\n}\n\n/**\n * 创建编译器生成的作用域插槽组件。\n */\nexport function createWevuScopedSlotComponent(\n overrides?: CreateWevuScopedSlotComponentOptions,\n): void {\n requireRuntimeCapability('scopedSlots', 'createWevuScopedSlotComponent')\n const baseOptions = createScopedSlotOptions(overrides)\n // 作用域插槽选项由内部工厂完整构造,动态常量键会丢失静态索引信息。\n const componentOptions = baseOptions as unknown as Parameters<typeof createWevuComponent>[0]\n createWevuComponent(componentOptions)\n}\n/**\n * 安装作用域插槽的 owner 生命周期与组件创建能力。\n */\nexport function installScopedSlots(): void {\n registerRuntimeCapability('scopedSlots', scopedSlotHooks)\n const globalObject = getScopedSlotHostGlobalObject()\n if (globalObject && globalObject[WEVU_SCOPED_SLOT_CREATOR_KEY] !== createWevuScopedSlotComponent) {\n globalObject[WEVU_SCOPED_SLOT_CREATOR_KEY] = createWevuScopedSlotComponent\n }\n}\n"],"mappings":";;;;;;;;;;AAmDA,MAAM,kBAAyE;CAC7E,aAAa,QAA8B;;EACzC,MAAM,WAAW,wBAAwB,MAAM;EAC/C,IAAI,UACF,OAAO;EAET,MAAM,uCAAuB,OAAO,kEAAO;EAC3C,MAAM,UAAU,OAAO,yBAAyB,YAAY,uBACxD,uBACA,gBAAgB;EACpB,MAAM,QAA8B;GAClC;GACA,0BAA0B,OAAO,yBAAyB,YAAY,yBAAyB;EACjG;EACA,OAAO,eAAe,QAAQ,+BAA+B;GAC3D,OAAO;GACP,cAAc;GACd,YAAY;GACZ,UAAU;EACZ,CAAC;EACD,OAAO;CACT;CACA,YAAY,QAAQ,SAAS,OAAO,eAAe;EACjD,oBAAoB,QAAQ,SAAS,MAAM,SAAS,EAAE,cAAc,CAAC;CACvE;CACA,QAAQ,QAA8B,OAA6B;;EACjE,MAAM,UAAU,OAAO;EACvB,IAAI,CAAC,SACH;EAEF,MAAM,WAAW,qBAAqB,OAAO;EAC7C,MAAM,iCAAe,OAA4C,4EAAmB,OAAO;EAC3F,wBAAwB,UAAU,WAAW;EAC7C,oBAAoB,MAAM,SAAS,UAAU,QAAQ,OAAO,MAAM;CACpE;CACA,kBAAkB,QAA8B,OAA6B;EAC3E,IAAI,CAAC,MAAM,0BACT;EAEF,IAAI;GACF,IAAI,OAAO,QAAQ,OAAO,OAAO,SAAS,UACxC,OAAO,KAAK,0BAA0B,MAAM;EAEhD,kBACM,CAEN;EACA,MAAM,UAAU,qBAAqB,MAAM;EAC3C,IAAI,SACF,kBAAkB,QAAQ,SAAS,GAAG,yBAAyB,MAAM,QAAQ,CAAC;CAElF;CACA,SAAS,QAA8B;;EACrC,MAAM,QAAQ,wBAAwB,MAAM;EAC5C,MAAM,eAAe;EACrB,MAAM,kFAAU,MAAO,kEAClB,aAAa,iEACb,aAAa;EAClB,iBAAiB,OACT;GACJ,IAAI,OAAO,YAAY,YAAY,SACjC,YAAY,OAAO;EAEvB,SACM;GACJ,OAAO,aAAa;EACtB,CACF,CAAC;CACH;CACA,sBAAsB,QAA8B;;EAClD,MAAM,eAAe;EACrB,MAAM,qDAAU,aAAa,mGACxB,aAAa,iFACb,OAAO,oEAAO,sFACd,OAAO,oFAAa;EACzB,OAAO,OAAO,YAAY,YAAY,UAAU,cAAc,OAAO,IAAI;CAC3E;CACA;AACF;;;;AAKA,SAAgB,8BACd,WACM;CACN,yBAAyB,eAAe,+BAA+B;CAGvE,MAAM,mBAFc,wBAAwB,SAET;CACnC,oBAAoB,gBAAgB;AACtC;;;;AAIA,SAAgB,qBAA2B;CACzC,0BAA0B,eAAe,eAAe;CACxD,MAAM,eAAe,8BAA8B;CACnD,IAAI,gBAAgB,aAAa,kCAAkC,+BACjE,aAAa,gCAAgC;AAEjD"}
@@ -0,0 +1,7 @@
1
+ //#region src/runtime/features/setDataHighFrequencyWarning.d.ts
2
+ /**
3
+ * 安装可选的 setData 高频告警能力。
4
+ */
5
+ export declare function installSetDataHighFrequencyWarning(): void;
6
+ //#endregion
7
+ //# sourceMappingURL=setDataHighFrequencyWarning.d.mts.map
@@ -0,0 +1,15 @@
1
+ import { registerRuntimeCapability } from "../capabilities.mjs";
2
+ import { createSetDataHighFrequencyWarningMonitor } from "../register/setDataFrequencyWarning.mjs";
3
+
4
+ //#region src/runtime/features/setDataHighFrequencyWarning.ts
5
+ const setDataHighFrequencyWarningHooks = { createMonitor: createSetDataHighFrequencyWarningMonitor };
6
+ /**
7
+ * 安装可选的 setData 高频告警能力。
8
+ */
9
+ function installSetDataHighFrequencyWarning() {
10
+ registerRuntimeCapability("setDataHighFrequencyWarning", setDataHighFrequencyWarningHooks);
11
+ }
12
+
13
+ //#endregion
14
+ export { installSetDataHighFrequencyWarning };
15
+ //# sourceMappingURL=setDataHighFrequencyWarning.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setDataHighFrequencyWarning.mjs","names":[],"sources":["../../../../src/runtime/features/setDataHighFrequencyWarning.ts"],"sourcesContent":["import type { RuntimeCapabilityRegistry } from '../capabilities'\nimport { registerRuntimeCapability } from '../capabilities'\nimport { createSetDataHighFrequencyWarningMonitor } from '../register/setDataFrequencyWarning'\n\nconst setDataHighFrequencyWarningHooks: NonNullable<RuntimeCapabilityRegistry['setDataHighFrequencyWarning']> = {\n createMonitor: createSetDataHighFrequencyWarningMonitor,\n}\n\n/**\n * 安装可选的 setData 高频告警能力。\n */\nexport function installSetDataHighFrequencyWarning(): void {\n registerRuntimeCapability('setDataHighFrequencyWarning', setDataHighFrequencyWarningHooks)\n}\n"],"mappings":";;;;AAIA,MAAM,mCAA0G,EAC9G,eAAe,yCACjB;;;;AAKA,SAAgB,qCAA2C;CACzD,0BAA0B,+BAA+B,gCAAgC;AAC3F"}
@@ -0,0 +1,7 @@
1
+ //#region src/runtime/features/templateRefs.d.ts
2
+ /**
3
+ * 安装模板 ref 能力。
4
+ */
5
+ export declare function installTemplateRefs(): void;
6
+ //#endregion
7
+ //# sourceMappingURL=templateRefs.d.mts.map
@@ -0,0 +1,39 @@
1
+ import { registerRuntimeCapability } from "../capabilities.mjs";
2
+ import { clearTemplateRefs, scheduleTemplateRefUpdate } from "../templateRefs.mjs";
3
+ import { WEVU_TEMPLATE_REFS_KEY } from "@weapp-core/constants";
4
+
5
+ //#region src/runtime/features/templateRefs.ts
6
+ const templateRefHooks = {
7
+ attachBindings(target, bindings) {
8
+ Object.defineProperty(target, WEVU_TEMPLATE_REFS_KEY, {
9
+ value: bindings,
10
+ configurable: true,
11
+ enumerable: false,
12
+ writable: false
13
+ });
14
+ },
15
+ hasBindings(target) {
16
+ const bindings = target[WEVU_TEMPLATE_REFS_KEY];
17
+ return Array.isArray(bindings) && bindings.length > 0;
18
+ },
19
+ schedule: scheduleTemplateRefUpdate,
20
+ scheduleOwner(target) {
21
+ const selectOwnerComponent = target.selectOwnerComponent;
22
+ if (typeof selectOwnerComponent !== "function") return;
23
+ try {
24
+ const owner = selectOwnerComponent.call(target);
25
+ if (owner && owner !== target) scheduleTemplateRefUpdate(owner);
26
+ } catch (_unused) {}
27
+ },
28
+ clear: clearTemplateRefs
29
+ };
30
+ /**
31
+ * 安装模板 ref 能力。
32
+ */
33
+ function installTemplateRefs() {
34
+ registerRuntimeCapability("templateRefs", templateRefHooks);
35
+ }
36
+
37
+ //#endregion
38
+ export { installTemplateRefs };
39
+ //# sourceMappingURL=templateRefs.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateRefs.mjs","names":[],"sources":["../../../../src/runtime/features/templateRefs.ts"],"sourcesContent":["import type { RuntimeCapabilityRegistry, TemplateRefBinding } from '../capabilities'\nimport type { InternalRuntimeState } from '../types'\nimport { WEVU_TEMPLATE_REFS_KEY } from '@weapp-core/constants'\nimport { registerRuntimeCapability } from '../capabilities'\nimport { clearTemplateRefs, scheduleTemplateRefUpdate } from '../templateRefs'\n\nconst templateRefHooks: NonNullable<RuntimeCapabilityRegistry['templateRefs']> = {\n attachBindings(target: InternalRuntimeState, bindings: readonly TemplateRefBinding[]) {\n Object.defineProperty(target, WEVU_TEMPLATE_REFS_KEY, {\n value: bindings,\n configurable: true,\n enumerable: false,\n writable: false,\n })\n },\n hasBindings(target: InternalRuntimeState) {\n const bindings = target[WEVU_TEMPLATE_REFS_KEY]\n return Array.isArray(bindings) && bindings.length > 0\n },\n schedule: scheduleTemplateRefUpdate,\n scheduleOwner(target: InternalRuntimeState) {\n const selectOwnerComponent = target.selectOwnerComponent\n if (typeof selectOwnerComponent !== 'function') {\n return\n }\n try {\n const owner = selectOwnerComponent.call(target) as InternalRuntimeState | null | undefined\n if (owner && owner !== target) {\n scheduleTemplateRefUpdate(owner)\n }\n }\n catch {\n // 宿主不支持 owner 查询时保持当前组件生命周期正常执行。\n }\n },\n clear: clearTemplateRefs,\n}\n\n/**\n * 安装模板 ref 能力。\n */\nexport function installTemplateRefs(): void {\n registerRuntimeCapability('templateRefs', templateRefHooks)\n}\n"],"mappings":";;;;;AAMA,MAAM,mBAA2E;CAC/E,eAAe,QAA8B,UAAyC;EACpF,OAAO,eAAe,QAAQ,wBAAwB;GACpD,OAAO;GACP,cAAc;GACd,YAAY;GACZ,UAAU;EACZ,CAAC;CACH;CACA,YAAY,QAA8B;EACxC,MAAM,WAAW,OAAO;EACxB,OAAO,MAAM,QAAQ,QAAQ,KAAK,SAAS,SAAS;CACtD;CACA,UAAU;CACV,cAAc,QAA8B;EAC1C,MAAM,uBAAuB,OAAO;EACpC,IAAI,OAAO,yBAAyB,YAClC;EAEF,IAAI;GACF,MAAM,QAAQ,qBAAqB,KAAK,MAAM;GAC9C,IAAI,SAAS,UAAU,QACrB,0BAA0B,KAAK;EAEnC,kBACM,CAEN;CACF;CACA,OAAO;AACT;;;;AAKA,SAAgB,sBAA4B;CAC1C,0BAA0B,gBAAgB,gBAAgB;AAC5D"}
@@ -0,0 +1,27 @@
1
+ import { InternalRuntimeState } from "../types/runtime.mjs";
2
+ import "../types.mjs";
3
+ //#region src/runtime/hooks/base.d.ts
4
+ export declare function getCurrentInstance<T extends InternalRuntimeState = InternalRuntimeState>(): T | undefined;
5
+ /**
6
+ * 设置当前运行时实例(框架内部使用)。
7
+ * @internal
8
+ */
9
+ export declare function setCurrentInstance(inst: InternalRuntimeState | undefined): void;
10
+ export declare function getCurrentSetupContext<T = any>(): T | undefined;
11
+ /**
12
+ * 设置当前 setup 上下文(框架内部使用)。
13
+ * @internal
14
+ */
15
+ export declare function setCurrentSetupContext(ctx: any | undefined): void;
16
+ /**
17
+ * 调用批量 hook(框架内部调度入口)。
18
+ * @internal
19
+ */
20
+ export declare function callHookList(target: InternalRuntimeState, name: string, args?: any[]): void;
21
+ /**
22
+ * 调用返回值型 hook(框架内部调度入口)。
23
+ * @internal
24
+ */
25
+ export declare function callHookReturn(target: InternalRuntimeState, name: string, args?: any[]): any;
26
+ //#endregion
27
+ //# sourceMappingURL=base.d.mts.map
@@ -0,0 +1,30 @@
1
+ import { HostMiniProgramAddToFavoritesOption, HostMiniProgramLaunchOptions, HostMiniProgramMemoryWarningResult, HostMiniProgramPageLifetime, HostMiniProgramPageNotFoundOptions, HostMiniProgramPageResizeOption, HostMiniProgramPageScrollOption, HostMiniProgramSaveExitState, HostMiniProgramShareAppMessageOption, HostMiniProgramTabItemTapOption, HostMiniProgramThemeChangeResult, HostMiniProgramUnhandledRejectionResult } from "../types/miniprogramHost.mjs";
2
+ import "../types.mjs";
3
+ //#region src/runtime/hooks/register.d.ts
4
+ export declare function onLaunch(handler: (options: HostMiniProgramLaunchOptions) => void): void;
5
+ export declare function onPageNotFound(handler: (options: HostMiniProgramPageNotFoundOptions) => void): void;
6
+ export declare function onUnhandledRejection(handler: (options: HostMiniProgramUnhandledRejectionResult) => void): void;
7
+ export declare function onThemeChange(handler: (options: HostMiniProgramThemeChangeResult) => void): void;
8
+ export declare function onMemoryWarning(handler: (options: HostMiniProgramMemoryWarningResult) => void): void;
9
+ export declare function onShow(handler: () => void): void;
10
+ export declare function onShow(handler: (options: HostMiniProgramLaunchOptions) => void): void;
11
+ export declare function onLoad(handler: HostMiniProgramPageLifetime['onLoad']): void;
12
+ export declare function onHide(handler: () => void): void;
13
+ export declare function onUnload(handler: () => void): void;
14
+ export declare function onReady(handler: () => void): void;
15
+ export declare function onPullDownRefresh(handler: HostMiniProgramPageLifetime['onPullDownRefresh']): void;
16
+ export declare function onReachBottom(handler: HostMiniProgramPageLifetime['onReachBottom']): void;
17
+ export declare function onPageScroll(handler: (opt: HostMiniProgramPageScrollOption) => void): void;
18
+ export declare function onRouteDone(handler: HostMiniProgramPageLifetime['onRouteDone'] | ((opt?: unknown) => void)): void;
19
+ export declare function onTabItemTap(handler: (opt: HostMiniProgramTabItemTapOption) => void): void;
20
+ export declare function onResize(handler: (opt: HostMiniProgramPageResizeOption) => void): void;
21
+ export declare function onMoved(handler: () => void): void;
22
+ export declare function onAttached(handler: () => void): void;
23
+ export declare function onDetached(handler: () => void): void;
24
+ export declare function onError(handler: (err: any) => void): void;
25
+ export declare function onSaveExitState(handler: () => HostMiniProgramSaveExitState): void;
26
+ export declare function onShareAppMessage(handler: (options: HostMiniProgramShareAppMessageOption) => Record<string, any> | void): void;
27
+ export declare function onShareTimeline(handler: HostMiniProgramPageLifetime['onShareTimeline']): void;
28
+ export declare function onAddToFavorites(handler: (options: HostMiniProgramAddToFavoritesOption) => Record<string, any> | void): void;
29
+ //#endregion
30
+ //# sourceMappingURL=register.d.mts.map
@@ -0,0 +1,52 @@
1
+ import { InternalRuntimeState } from "../types/runtime.mjs";
2
+ import "../types.mjs";
3
+ //#region src/runtime/hooks/vue.d.ts
4
+ /**
5
+ * Vue 3 对齐:组件/页面已挂载,映射小程序 onReady
6
+ */
7
+ export declare function onMounted(handler: () => void): void;
8
+ /**
9
+ * Vue 3 对齐:组件/页面更新后触发。
10
+ * 小程序没有专用 update 生命周期,这里在每次 setData 完成后调用。
11
+ */
12
+ export declare function onUpdated(handler: () => void): void;
13
+ /**
14
+ * Vue 3 对齐:在卸载清理前触发,保持实例上下文和暴露方法可用。
15
+ */
16
+ export declare function onBeforeUnmount(handler: () => void): void;
17
+ /**
18
+ * Vue 3 对齐:组件/页面卸载;映射到页面 onUnload 或组件 detached
19
+ */
20
+ export declare function onUnmounted(handler: () => void): void;
21
+ /**
22
+ * Vue 3 对齐:挂载前;setup 时同步触发以模拟 beforeMount 语义
23
+ */
24
+ export declare function onBeforeMount(handler: () => void): void;
25
+ /**
26
+ * Vue 3 对齐:更新前;在每次 setData 前触发
27
+ */
28
+ export declare function onBeforeUpdate(handler: () => void): void;
29
+ /**
30
+ * Vue 3 对齐:错误捕获;映射到小程序 onError
31
+ */
32
+ export declare function onErrorCaptured(handler: (err: any, instance: any, info: string) => void): void;
33
+ /**
34
+ * Vue 3 对齐:组件激活;映射到小程序 onShow
35
+ */
36
+ export declare function onActivated(handler: () => void): void;
37
+ /**
38
+ * Vue 3 对齐:组件失活;映射到小程序 onHide
39
+ */
40
+ export declare function onDeactivated(handler: () => void): void;
41
+ /**
42
+ * Vue 3 对齐:服务端渲染前置钩子。
43
+ * 小程序无此场景,保留空实现以保持 API 兼容。
44
+ */
45
+ export declare function onServerPrefetch(_handler: () => void): void;
46
+ /**
47
+ * 派发更新阶段钩子(框架内部调度入口)。
48
+ * @internal
49
+ */
50
+ export declare function callUpdateHooks(target: InternalRuntimeState, phase: 'before' | 'after'): void;
51
+ //#endregion
52
+ //# sourceMappingURL=vue.d.mts.map
@@ -1,5 +1,5 @@
1
1
  import { assertInSetup, callHookList, pushHook } from "./base.mjs";
2
- import { WEVU_ON_BEFORE_UPDATE_HOOK, WEVU_ON_UPDATED_HOOK } from "@weapp-core/constants";
2
+ import { WEVU_ON_BEFORE_UNMOUNT_HOOK, WEVU_ON_BEFORE_UPDATE_HOOK, WEVU_ON_UPDATED_HOOK } from "@weapp-core/constants";
3
3
 
4
4
  //#region src/runtime/hooks/vue.ts
5
5
  /**
@@ -16,12 +16,10 @@ function onUpdated(handler) {
16
16
  pushHook(assertInSetup("onUpdated"), WEVU_ON_UPDATED_HOOK, handler);
17
17
  }
18
18
  /**
19
- * Vue 3 对齐:卸载前触发。
20
- * 小程序无 before-unload 生命周期,setup 时同步执行以保持语义。
19
+ * Vue 3 对齐:在卸载清理前触发,保持实例上下文和暴露方法可用。
21
20
  */
22
21
  function onBeforeUnmount(handler) {
23
- assertInSetup("onBeforeUnmount");
24
- handler();
22
+ pushHook(assertInSetup("onBeforeUnmount"), WEVU_ON_BEFORE_UNMOUNT_HOOK, handler);
25
23
  }
26
24
  /**
27
25
  * Vue 3 对齐:组件/页面卸载;映射到页面 onUnload 或组件 detached
@@ -1 +1 @@
1
- {"version":3,"file":"vue.mjs","names":[],"sources":["../../../../src/runtime/hooks/vue.ts"],"sourcesContent":["import type { InternalRuntimeState } from '../types'\nimport {\n WEVU_ON_BEFORE_UPDATE_HOOK,\n WEVU_ON_UPDATED_HOOK,\n} from '@weapp-core/constants'\nimport { assertInSetup, callHookList, pushHook } from './base'\n\n// ============================================================================\n// 与 Vue 3 对齐的生命周期别名\n// 将 Vue 3 的生命周期名称映射到小程序对应的钩子\n// ============================================================================\n\n/**\n * Vue 3 对齐:组件/页面已挂载,映射小程序 onReady\n */\nexport function onMounted(handler: () => void) {\n pushHook(assertInSetup('onMounted'), 'onReady', handler)\n}\n\n/**\n * Vue 3 对齐:组件/页面更新后触发。\n * 小程序没有专用 update 生命周期,这里在每次 setData 完成后调用。\n */\nexport function onUpdated(handler: () => void) {\n pushHook(assertInSetup('onUpdated'), WEVU_ON_UPDATED_HOOK, handler)\n}\n\n/**\n * Vue 3 对齐:卸载前触发。\n * 小程序无 before-unload 生命周期,setup 时同步执行以保持语义。\n */\nexport function onBeforeUnmount(handler: () => void) {\n assertInSetup('onBeforeUnmount')\n // 在 setup 期间立即执行,等价于“已进入挂载流程”\n handler()\n}\n\n/**\n * Vue 3 对齐:组件/页面卸载;映射到页面 onUnload 或组件 detached\n */\nexport function onUnmounted(handler: () => void) {\n pushHook(assertInSetup('onUnmounted'), 'onUnload', handler)\n}\n\n/**\n * Vue 3 对齐:挂载前;setup 时同步触发以模拟 beforeMount 语义\n */\nexport function onBeforeMount(handler: () => void) {\n assertInSetup('onBeforeMount')\n // 在 setup 期间立即执行\n handler()\n}\n\n/**\n * Vue 3 对齐:更新前;在每次 setData 前触发\n */\nexport function onBeforeUpdate(handler: () => void) {\n pushHook(assertInSetup('onBeforeUpdate'), WEVU_ON_BEFORE_UPDATE_HOOK, handler)\n}\n\n/**\n * Vue 3 对齐:错误捕获;映射到小程序 onError\n */\nexport function onErrorCaptured(handler: (err: any, instance: any, info: string) => void) {\n const instance = assertInSetup('onErrorCaptured')\n pushHook(instance, 'onError', (err?: any) => handler(err, instance, ''))\n}\n\n/**\n * Vue 3 对齐:组件激活;映射到小程序 onShow\n */\nexport function onActivated(handler: () => void) {\n pushHook(assertInSetup('onActivated'), 'onShow', handler)\n}\n\n/**\n * Vue 3 对齐:组件失活;映射到小程序 onHide\n */\nexport function onDeactivated(handler: () => void) {\n pushHook(assertInSetup('onDeactivated'), 'onHide', handler)\n}\n\n/**\n * Vue 3 对齐:服务端渲染前置钩子。\n * 小程序无此场景,保留空实现以保持 API 兼容。\n */\nexport function onServerPrefetch(_handler: () => void) {\n // 小程序环境不执行任何逻辑\n assertInSetup('onServerPrefetch')\n}\n\n// 内部更新钩子派发:before/after 阶段统一入口\n/**\n * 派发更新阶段钩子(框架内部调度入口)。\n * @internal\n */\nexport function callUpdateHooks(target: InternalRuntimeState, phase: 'before' | 'after') {\n const hookName = phase === 'before' ? WEVU_ON_BEFORE_UPDATE_HOOK : WEVU_ON_UPDATED_HOOK\n callHookList(target, hookName)\n}\n"],"mappings":";;;;;;;AAeA,SAAgB,UAAU,SAAqB;CAC7C,SAAS,cAAc,WAAW,GAAG,WAAW,OAAO;AACzD;;;;;AAMA,SAAgB,UAAU,SAAqB;CAC7C,SAAS,cAAc,WAAW,GAAG,sBAAsB,OAAO;AACpE;;;;;AAMA,SAAgB,gBAAgB,SAAqB;CACnD,cAAc,iBAAiB;CAE/B,QAAQ;AACV;;;;AAKA,SAAgB,YAAY,SAAqB;CAC/C,SAAS,cAAc,aAAa,GAAG,YAAY,OAAO;AAC5D;;;;AAKA,SAAgB,cAAc,SAAqB;CACjD,cAAc,eAAe;CAE7B,QAAQ;AACV;;;;AAKA,SAAgB,eAAe,SAAqB;CAClD,SAAS,cAAc,gBAAgB,GAAG,4BAA4B,OAAO;AAC/E;;;;AAKA,SAAgB,gBAAgB,SAA0D;CACxF,MAAM,WAAW,cAAc,iBAAiB;CAChD,SAAS,UAAU,YAAY,QAAc,QAAQ,KAAK,UAAU,EAAE,CAAC;AACzE;;;;AAKA,SAAgB,YAAY,SAAqB;CAC/C,SAAS,cAAc,aAAa,GAAG,UAAU,OAAO;AAC1D;;;;AAKA,SAAgB,cAAc,SAAqB;CACjD,SAAS,cAAc,eAAe,GAAG,UAAU,OAAO;AAC5D;;;;;AAMA,SAAgB,iBAAiB,UAAsB;CAErD,cAAc,kBAAkB;AAClC;;;;;AAOA,SAAgB,gBAAgB,QAA8B,OAA2B;CAEvF,aAAa,QADI,UAAU,WAAW,6BAA6B,oBACtC;AAC/B"}
1
+ {"version":3,"file":"vue.mjs","names":[],"sources":["../../../../src/runtime/hooks/vue.ts"],"sourcesContent":["import type { InternalRuntimeState } from '../types'\nimport {\n WEVU_ON_BEFORE_UNMOUNT_HOOK,\n WEVU_ON_BEFORE_UPDATE_HOOK,\n WEVU_ON_UPDATED_HOOK,\n} from '@weapp-core/constants'\nimport { assertInSetup, callHookList, pushHook } from './base'\n\n// ============================================================================\n// 与 Vue 3 对齐的生命周期别名\n// 将 Vue 3 的生命周期名称映射到小程序对应的钩子\n// ============================================================================\n\n/**\n * Vue 3 对齐:组件/页面已挂载,映射小程序 onReady\n */\nexport function onMounted(handler: () => void) {\n pushHook(assertInSetup('onMounted'), 'onReady', handler)\n}\n\n/**\n * Vue 3 对齐:组件/页面更新后触发。\n * 小程序没有专用 update 生命周期,这里在每次 setData 完成后调用。\n */\nexport function onUpdated(handler: () => void) {\n pushHook(assertInSetup('onUpdated'), WEVU_ON_UPDATED_HOOK, handler)\n}\n\n/**\n * Vue 3 对齐:在卸载清理前触发,保持实例上下文和暴露方法可用。\n */\nexport function onBeforeUnmount(handler: () => void) {\n pushHook(assertInSetup('onBeforeUnmount'), WEVU_ON_BEFORE_UNMOUNT_HOOK, handler)\n}\n\n/**\n * Vue 3 对齐:组件/页面卸载;映射到页面 onUnload 或组件 detached\n */\nexport function onUnmounted(handler: () => void) {\n pushHook(assertInSetup('onUnmounted'), 'onUnload', handler)\n}\n\n/**\n * Vue 3 对齐:挂载前;setup 时同步触发以模拟 beforeMount 语义\n */\nexport function onBeforeMount(handler: () => void) {\n assertInSetup('onBeforeMount')\n // 在 setup 期间立即执行\n handler()\n}\n\n/**\n * Vue 3 对齐:更新前;在每次 setData 前触发\n */\nexport function onBeforeUpdate(handler: () => void) {\n pushHook(assertInSetup('onBeforeUpdate'), WEVU_ON_BEFORE_UPDATE_HOOK, handler)\n}\n\n/**\n * Vue 3 对齐:错误捕获;映射到小程序 onError\n */\nexport function onErrorCaptured(handler: (err: any, instance: any, info: string) => void) {\n const instance = assertInSetup('onErrorCaptured')\n pushHook(instance, 'onError', (err?: any) => handler(err, instance, ''))\n}\n\n/**\n * Vue 3 对齐:组件激活;映射到小程序 onShow\n */\nexport function onActivated(handler: () => void) {\n pushHook(assertInSetup('onActivated'), 'onShow', handler)\n}\n\n/**\n * Vue 3 对齐:组件失活;映射到小程序 onHide\n */\nexport function onDeactivated(handler: () => void) {\n pushHook(assertInSetup('onDeactivated'), 'onHide', handler)\n}\n\n/**\n * Vue 3 对齐:服务端渲染前置钩子。\n * 小程序无此场景,保留空实现以保持 API 兼容。\n */\nexport function onServerPrefetch(_handler: () => void) {\n // 小程序环境不执行任何逻辑\n assertInSetup('onServerPrefetch')\n}\n\n// 内部更新钩子派发:before/after 阶段统一入口\n/**\n * 派发更新阶段钩子(框架内部调度入口)。\n * @internal\n */\nexport function callUpdateHooks(target: InternalRuntimeState, phase: 'before' | 'after') {\n const hookName = phase === 'before' ? WEVU_ON_BEFORE_UPDATE_HOOK : WEVU_ON_UPDATED_HOOK\n callHookList(target, hookName)\n}\n"],"mappings":";;;;;;;AAgBA,SAAgB,UAAU,SAAqB;CAC7C,SAAS,cAAc,WAAW,GAAG,WAAW,OAAO;AACzD;;;;;AAMA,SAAgB,UAAU,SAAqB;CAC7C,SAAS,cAAc,WAAW,GAAG,sBAAsB,OAAO;AACpE;;;;AAKA,SAAgB,gBAAgB,SAAqB;CACnD,SAAS,cAAc,iBAAiB,GAAG,6BAA6B,OAAO;AACjF;;;;AAKA,SAAgB,YAAY,SAAqB;CAC/C,SAAS,cAAc,aAAa,GAAG,YAAY,OAAO;AAC5D;;;;AAKA,SAAgB,cAAc,SAAqB;CACjD,cAAc,eAAe;CAE7B,QAAQ;AACV;;;;AAKA,SAAgB,eAAe,SAAqB;CAClD,SAAS,cAAc,gBAAgB,GAAG,4BAA4B,OAAO;AAC/E;;;;AAKA,SAAgB,gBAAgB,SAA0D;CACxF,MAAM,WAAW,cAAc,iBAAiB;CAChD,SAAS,UAAU,YAAY,QAAc,QAAQ,KAAK,UAAU,EAAE,CAAC;AACzE;;;;AAKA,SAAgB,YAAY,SAAqB;CAC/C,SAAS,cAAc,aAAa,GAAG,UAAU,OAAO;AAC1D;;;;AAKA,SAAgB,cAAc,SAAqB;CACjD,SAAS,cAAc,eAAe,GAAG,UAAU,OAAO;AAC5D;;;;;AAMA,SAAgB,iBAAiB,UAAsB;CAErD,cAAc,kBAAkB;AAClC;;;;;AAOA,SAAgB,gBAAgB,QAA8B,OAA2B;CAEvF,aAAa,QADI,UAAU,WAAW,6BAA6B,oBACtC;AAC/B"}
@@ -0,0 +1,4 @@
1
+ import { callHookList, callHookReturn, getCurrentInstance, getCurrentSetupContext, setCurrentInstance, setCurrentSetupContext } from "./hooks/base.mjs";
2
+ import { onAddToFavorites, onAttached, onDetached, onError, onHide, onLaunch, onLoad, onMemoryWarning, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload } from "./hooks/register.mjs";
3
+ import { callUpdateHooks, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onServerPrefetch, onUnmounted, onUpdated } from "./hooks/vue.mjs";
4
+ export { callHookList, callHookReturn, callUpdateHooks, getCurrentInstance, getCurrentSetupContext, onActivated, onAddToFavorites, onAttached, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onDetached, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMemoryWarning, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, setCurrentInstance, setCurrentSetupContext };
@@ -0,0 +1,46 @@
1
+ import { AlipayMiniProgramHostNamespace, AlipayMiniProgramHostSourceContract, DefaultMiniProgramHostNamespace, DefaultMiniProgramHostSourceContract, DouyinMiniProgramHostNamespace, DouyinMiniProgramHostSourceContract, MiniProgramHostNamespace, MiniProgramHostNamespaceBySource, MiniProgramHostSourceName, MiniProgramHostSourceRegistry, MiniProgramPlatformHostNamespaceBySource, MiniProgramPlatformHostSourceName, MiniProgramPlatformHostSourceRegistry, MiniProgramRuntimeHostNamespaceBySource, MiniProgramRuntimeHostSourceName, MiniProgramRuntimeHostSourceRegistry, TtMiniProgramHostNamespace, TtMiniProgramHostSourceContract, WechatMiniProgramHostNamespace, WechatMiniProgramHostSourceContract } from "./types/miniprogramHostSources.mjs";
2
+ import { HostMiniProgramAddToFavoritesOption, HostMiniProgramAppOptions, HostMiniProgramAppTrivialInstance, HostMiniProgramBehaviorIdentifier, HostMiniProgramBoundingClientRectResult, HostMiniProgramComponentAllFullProperty, HostMiniProgramComponentAllProperty, HostMiniProgramComponentBehaviorOptions, HostMiniProgramComponentEmptyArray, HostMiniProgramComponentInstance, HostMiniProgramComponentMethodOption, HostMiniProgramComponentPropertyOption, HostMiniProgramComponentPropertyValue, HostMiniProgramComponentShortProperty, HostMiniProgramComponentTrivialInstance, HostMiniProgramComponentTrivialOption, HostMiniProgramIntersectionObserver, HostMiniProgramIntersectionObserverOptions, HostMiniProgramLaunchOptions, HostMiniProgramMemoryWarningResult, HostMiniProgramNavigateToOption, HostMiniProgramNodesRef, HostMiniProgramNodesRefFields, HostMiniProgramPageLifetime, HostMiniProgramPageNotFoundOptions, HostMiniProgramPageResizeOption, HostMiniProgramPageScrollOption, HostMiniProgramPageTrivialInstance, HostMiniProgramReLaunchOption, HostMiniProgramRedirectToOption, HostMiniProgramRouter, HostMiniProgramSaveExitState, HostMiniProgramScrollOffsetResult, HostMiniProgramSelectorQuery, HostMiniProgramShareAppMessageOption, HostMiniProgramSwitchTabOption, HostMiniProgramTabItemTapOption, HostMiniProgramThemeChangeResult, HostMiniProgramTriggerEventOptions, HostMiniProgramUnhandledRejectionResult } from "./types/miniprogramHost.mjs";
3
+ import { MiniProgramAdapter, MiniProgramAppOptions, MiniProgramBehaviorIdentifier, MiniProgramComponentInstance, MiniProgramComponentOptions, MiniProgramComponentPropertyValue, MiniProgramComponentRawOptions, MiniProgramInstance, MiniProgramPageLifetimes } from "./types/miniprogram.mjs";
4
+ import { ComponentPropsOptions, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InferNativePropType, InferNativeProps, InferPropType, InferProps, NativePropType, NativePropsOptions, NativeTypeHint, NativeTypedProperty, PropConstructor, PropOptions, PropType } from "./types/props/propTypes.mjs";
5
+ import { MiniProgramRouterNavigateToOption, MiniProgramRouterReLaunchOption, MiniProgramRouterRedirectToOption, MiniProgramRouterSwitchTabOption, SetupContextRouter, WevuTypedRouterRouteMap } from "./types/props/router.mjs";
6
+ import { ComponentPublicInstance, ComputedDefinitions, ExtractComputed, ExtractMethods, MethodDefinitions, ModelBinding, ModelBindingOptions, ModelBindingPayload } from "./types/core.mjs";
7
+ import { AppConfig, InternalRuntimeState, InternalRuntimeStateFields, RuntimeApp, RuntimeInstance, WevuPlugin } from "./types/runtime.mjs";
8
+ import { SetupContext, SetupContextIntersectionObserver, SetupContextIntersectionObserverOptions, SetupContextNativeInstance, SetupContextSelectorQuery, SetupFunction } from "./types/props/setup.mjs";
9
+ import { AllowedComponentProps, ComponentCustomProps, ComponentOptionsMixin, DefineComponent, NativeComponent, ObjectDirective, PublicProps, ShallowUnwrapRef, VNode, VNodeProps } from "../vue-types.mjs";
10
+ import { SetDataBindingDiagnostic, SetDataDebugInfo, SetDataSnapshotOptions } from "./types/setData.mjs";
11
+ import { CreateAppOptions, DataOption, DefineAppOptions, DefineComponentOptions, PageFeatures } from "./types/options.mjs";
12
+ import { GlobalComponents, GlobalDirectives, MiniProgramTemplateRefValue, TemplateRefValue, TemplateRefs, WevuGlobalComponents, WevuGlobalDirectives } from "./types.mjs";
13
+ import { useCssModule } from "./css.mjs";
14
+ import { WevuDefaults, resetWevuDefaults } from "./defaults.mjs";
15
+ import { ComponentDefinition, DefineComponentTypePropsOptions, DefineComponentWithTypeProps, SetupContextWithTypeProps, SetupFunctionWithTypeProps, WevuComponentConstructor, WevuDefinedComponent } from "./define.mjs";
16
+ import { DisposableBag, DisposableLike, DisposableMethodName, DisposableObject, useDisposables } from "./disposables.mjs";
17
+ import { ElementIntersectionObserverCallback, UseElementIntersectionObserverOptions, UseElementIntersectionObserverReturn, useElementIntersectionObserver } from "./elementIntersectionObserver.mjs";
18
+ import { PageLayoutState, WevuPageLayoutMap } from "./pageLayout.mjs";
19
+ import { LayoutHostBinding } from "./capabilities.mjs";
20
+ import { LayoutBridgeInstance } from "./layoutBridge.mjs";
21
+ import { registerPageLayoutBridge, registerRuntimeLayoutHosts, resolveLayoutBridge, resolveLayoutHost, resolveRuntimePageLayoutName, setPageLayout, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, unregisterPageLayoutBridge, unregisterRuntimeLayoutHosts, useLayoutBridge, useLayoutHosts, usePageLayout, waitForLayoutHost } from "./features/publicLayout.mjs";
22
+ import { callHookList, callHookReturn, getCurrentInstance, getCurrentSetupContext, setCurrentInstance, setCurrentSetupContext } from "./hooks/base.mjs";
23
+ import { onAddToFavorites, onAttached, onDetached, onError, onHide, onLaunch, onLoad, onMemoryWarning, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload } from "./hooks/register.mjs";
24
+ import { callUpdateHooks, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onServerPrefetch, onUnmounted, onUpdated } from "./hooks/vue.mjs";
25
+ import "./hooks.mjs";
26
+ import { UseIntersectionObserverOptions, UseIntersectionObserverResult, useIntersectionObserver } from "./intersectionObserver.mjs";
27
+ import { isNoSetData, markNoSetData } from "./noSetData.mjs";
28
+ import { NavigationBarMetrics, PageStackSnapshot, UseNavigationBarMetricsOptions, UsePageStackOptions, getCurrentPageStackSnapshot, getNavigationBarMetrics, useNavigationBarMetrics, usePageStack } from "./pageEnvironment.mjs";
29
+ import { UsePageScrollThrottleOptions, UsePageScrollThrottleStopHandle, usePageScrollThrottle } from "./pageScroll.mjs";
30
+ import { setGlobalProvidedValue } from "./provideStore.mjs";
31
+ import { hasInjectionContext, inject, injectGlobal, provide, provideGlobal } from "./provide.mjs";
32
+ import { setRuntimeSetDataVisibility, teardownRuntimeInstance } from "./register/runtimeInstance.mjs";
33
+ import { runSetupFunction } from "./register/setup.mjs";
34
+ import "./register.mjs";
35
+ import { createApp, createWevuComponent, createWevuScopedSlotComponent, defineComponent, mountRuntimeInstance, registerApp, registerComponent, setWevuDefaults } from "./publicRuntime.mjs";
36
+ import { PullDownRefreshHandler, UseAsyncPullDownRefreshOptions, useAsyncPullDownRefresh } from "./pullDownRefresh.mjs";
37
+ import { UseAllBoundingClientRectOptions, UseAllScrollOffsetOptions, UseAllSelectorFieldsOptions, UseBoundingClientRectOptions, UseScrollOffsetOptions, UseSelectorFieldsOptions, UseSelectorQueryOptions, useBoundingClientRect, useScrollOffset, useSelectorFields, useSelectorQuery } from "./selectorQuery.mjs";
38
+ import { normalizeClass, normalizeStyle, resolvePropValue } from "./template.mjs";
39
+ import { UpdatePerformanceListener, UpdatePerformanceListenerResult, UseUpdatePerformanceListenerStopHandle, useUpdatePerformanceListener } from "./updatePerformance.mjs";
40
+ import { defineAppSetup, use } from "./use.mjs";
41
+ import { useAttrs, useNativeInstance, useSlots } from "./vueCompat/context.mjs";
42
+ import { ModelModifiers, UseModelOptions, mergeModels, useBindModel, useChangeModel, useModel } from "./vueCompat/model.mjs";
43
+ import { useNativePageRouter, useNativeRouter } from "./vueCompat/router.mjs";
44
+ import { TemplateRef, useTemplateRef } from "./vueCompat/templateRef.mjs";
45
+ import "./vueCompat.mjs";
46
+ export { type AlipayMiniProgramHostNamespace, type AlipayMiniProgramHostSourceContract, type AllowedComponentProps, type AppConfig, type ComponentCustomProps, type ComponentDefinition, type ComponentOptionsMixin, type ComponentPropsOptions, type ComponentPublicInstance, type ComputedDefinitions, type CreateAppOptions, type DataOption, type DefaultMiniProgramHostNamespace, type DefaultMiniProgramHostSourceContract, type DefineAppOptions, type DefineComponent, type DefineComponentOptions, type DefineComponentTypePropsOptions, type DefineComponentWithTypeProps, DisposableBag, DisposableLike, DisposableMethodName, DisposableObject, type DouyinMiniProgramHostNamespace, type DouyinMiniProgramHostSourceContract, ElementIntersectionObserverCallback, type ExtractComputed, type ExtractDefaultPropTypes, type ExtractMethods, type ExtractPropTypes, type ExtractPublicPropTypes, GlobalComponents, GlobalDirectives, type HostMiniProgramAddToFavoritesOption, type HostMiniProgramAppOptions, type HostMiniProgramAppTrivialInstance, type HostMiniProgramBehaviorIdentifier, type HostMiniProgramBoundingClientRectResult, type HostMiniProgramComponentAllFullProperty, type HostMiniProgramComponentAllProperty, type HostMiniProgramComponentBehaviorOptions, type HostMiniProgramComponentEmptyArray, type HostMiniProgramComponentInstance, type HostMiniProgramComponentMethodOption, type HostMiniProgramComponentPropertyOption, type HostMiniProgramComponentPropertyValue, type HostMiniProgramComponentShortProperty, type HostMiniProgramComponentTrivialInstance, type HostMiniProgramComponentTrivialOption, type HostMiniProgramIntersectionObserver, type HostMiniProgramIntersectionObserverOptions, type HostMiniProgramLaunchOptions, type HostMiniProgramMemoryWarningResult, type HostMiniProgramNavigateToOption, type HostMiniProgramNodesRef, type HostMiniProgramNodesRefFields, type HostMiniProgramPageLifetime, type HostMiniProgramPageNotFoundOptions, type HostMiniProgramPageResizeOption, type HostMiniProgramPageScrollOption, type HostMiniProgramPageTrivialInstance, type HostMiniProgramReLaunchOption, type HostMiniProgramRedirectToOption, type HostMiniProgramRouter, type HostMiniProgramSaveExitState, type HostMiniProgramScrollOffsetResult, type HostMiniProgramSelectorQuery, type HostMiniProgramShareAppMessageOption, type HostMiniProgramSwitchTabOption, type HostMiniProgramTabItemTapOption, type HostMiniProgramThemeChangeResult, type HostMiniProgramTriggerEventOptions, type HostMiniProgramUnhandledRejectionResult, type InferNativePropType, type InferNativeProps, type InferPropType, type InferProps, type InternalRuntimeState, type InternalRuntimeStateFields, type LayoutBridgeInstance, type LayoutHostBinding, type MethodDefinitions, type MiniProgramAdapter, type HostMiniProgramAddToFavoritesOption as MiniProgramAddToFavoritesOption, type MiniProgramAppOptions, type MiniProgramBehaviorIdentifier, type HostMiniProgramBoundingClientRectResult as MiniProgramBoundingClientRectResult, type HostMiniProgramComponentAllFullProperty as MiniProgramComponentAllFullProperty, type HostMiniProgramComponentAllProperty as MiniProgramComponentAllProperty, type HostMiniProgramComponentBehaviorOptions as MiniProgramComponentBehaviorOptions, type HostMiniProgramComponentEmptyArray as MiniProgramComponentEmptyArray, type MiniProgramComponentInstance, type HostMiniProgramComponentMethodOption as MiniProgramComponentMethodOption, type MiniProgramComponentOptions, type HostMiniProgramComponentPropertyOption as MiniProgramComponentPropertyOption, type MiniProgramComponentPropertyValue, type MiniProgramComponentRawOptions, type HostMiniProgramComponentShortProperty as MiniProgramComponentShortProperty, type MiniProgramHostNamespace, type MiniProgramHostNamespaceBySource, type MiniProgramHostSourceName, type MiniProgramHostSourceRegistry, type MiniProgramInstance, type HostMiniProgramIntersectionObserver as MiniProgramIntersectionObserver, type HostMiniProgramIntersectionObserverOptions as MiniProgramIntersectionObserverOptions, type HostMiniProgramLaunchOptions as MiniProgramLaunchOptions, type HostMiniProgramMemoryWarningResult as MiniProgramMemoryWarningResult, type HostMiniProgramNavigateToOption as MiniProgramNavigateToOption, type HostMiniProgramNodesRef as MiniProgramNodesRef, type HostMiniProgramNodesRefFields as MiniProgramNodesRefFields, type HostMiniProgramPageLifetime as MiniProgramPageLifetime, type MiniProgramPageLifetimes, type HostMiniProgramPageNotFoundOptions as MiniProgramPageNotFoundOptions, type HostMiniProgramPageResizeOption as MiniProgramPageResizeOption, type HostMiniProgramPageScrollOption as MiniProgramPageScrollOption, type MiniProgramPlatformHostNamespaceBySource, type MiniProgramPlatformHostSourceName, type MiniProgramPlatformHostSourceRegistry, type HostMiniProgramReLaunchOption as MiniProgramReLaunchOption, type HostMiniProgramRedirectToOption as MiniProgramRedirectToOption, type HostMiniProgramRouter as MiniProgramRouter, type MiniProgramRouterNavigateToOption, type MiniProgramRouterReLaunchOption, type MiniProgramRouterRedirectToOption, type MiniProgramRouterSwitchTabOption, type MiniProgramRuntimeHostNamespaceBySource, type MiniProgramRuntimeHostSourceName, type MiniProgramRuntimeHostSourceRegistry, type HostMiniProgramSaveExitState as MiniProgramSaveExitState, type HostMiniProgramScrollOffsetResult as MiniProgramScrollOffsetResult, type HostMiniProgramSelectorQuery as MiniProgramSelectorQuery, type HostMiniProgramShareAppMessageOption as MiniProgramShareAppMessageOption, type HostMiniProgramSwitchTabOption as MiniProgramSwitchTabOption, type HostMiniProgramTabItemTapOption as MiniProgramTabItemTapOption, MiniProgramTemplateRefValue, type HostMiniProgramThemeChangeResult as MiniProgramThemeChangeResult, type HostMiniProgramUnhandledRejectionResult as MiniProgramUnhandledRejectionResult, type ModelBinding, type ModelBindingOptions, type ModelBindingPayload, type ModelModifiers, type NativeComponent, type NativePropType, type NativePropsOptions, type NativeTypeHint, type NativeTypedProperty, NavigationBarMetrics, type ObjectDirective, type PageFeatures, type PageLayoutState, PageStackSnapshot, type PropConstructor, type PropOptions, type PropType, type PublicProps, PullDownRefreshHandler, type RuntimeApp, type RuntimeInstance, type SetDataBindingDiagnostic, type SetDataDebugInfo, type SetDataSnapshotOptions, type SetupContext, type SetupContextIntersectionObserver, type SetupContextIntersectionObserverOptions, type SetupContextNativeInstance, type SetupContextRouter, type SetupContextSelectorQuery, type SetupContextWithTypeProps, type SetupFunction, type SetupFunctionWithTypeProps, type ShallowUnwrapRef, type TemplateRef, TemplateRefValue, TemplateRefs, type HostMiniProgramTriggerEventOptions as TriggerEventOptions, type TtMiniProgramHostNamespace, type TtMiniProgramHostSourceContract, UpdatePerformanceListener, UpdatePerformanceListenerResult, UseAllBoundingClientRectOptions, UseAllScrollOffsetOptions, UseAllSelectorFieldsOptions, UseAsyncPullDownRefreshOptions, UseBoundingClientRectOptions, UseElementIntersectionObserverOptions, UseElementIntersectionObserverReturn, UseIntersectionObserverOptions, UseIntersectionObserverResult, type UseModelOptions, UseNavigationBarMetricsOptions, UsePageScrollThrottleOptions, UsePageScrollThrottleStopHandle, UsePageStackOptions, UseScrollOffsetOptions, UseSelectorFieldsOptions, UseSelectorQueryOptions, UseUpdatePerformanceListenerStopHandle, type VNode, type VNodeProps, type WechatMiniProgramHostNamespace, type WechatMiniProgramHostSourceContract, type WevuComponentConstructor, type WevuDefaults, type WevuDefinedComponent, WevuGlobalComponents, WevuGlobalDirectives, type WevuPageLayoutMap, type WevuPlugin, type WevuTypedRouterRouteMap, callHookList, callHookReturn, callUpdateHooks, createApp, createWevuComponent, createWevuScopedSlotComponent, defineAppSetup, defineComponent, getCurrentInstance, getCurrentPageStackSnapshot, getCurrentSetupContext, getNavigationBarMetrics, hasInjectionContext, inject, injectGlobal, isNoSetData, markNoSetData, mergeModels, mountRuntimeInstance, normalizeClass, normalizeStyle, onActivated, onAddToFavorites, onAttached, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onDetached, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMemoryWarning, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, provide, provideGlobal, registerApp, registerComponent, registerPageLayoutBridge, registerRuntimeLayoutHosts, resetWevuDefaults, resolveLayoutBridge, resolveLayoutHost, resolvePropValue, resolveRuntimePageLayoutName, runSetupFunction, setCurrentInstance, setCurrentSetupContext, setGlobalProvidedValue, setPageLayout, setRuntimeSetDataVisibility, setWevuDefaults, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, teardownRuntimeInstance, unregisterPageLayoutBridge, unregisterRuntimeLayoutHosts, use, useAsyncPullDownRefresh, useAttrs, useBindModel, useBoundingClientRect, useChangeModel, useCssModule, useDisposables, useElementIntersectionObserver, useIntersectionObserver, useLayoutBridge, useLayoutHosts, useModel, useNativeInstance, useNativePageRouter, useNativeRouter, useNavigationBarMetrics, usePageLayout, usePageScrollThrottle, usePageStack, useScrollOffset, useSelectorFields, useSelectorQuery, useSlots, useTemplateRef, useUpdatePerformanceListener, waitForLayoutHost };