wevu 7.0.4 → 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 (659) 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/types.d.mts +172 -0
  146. package/dist/dev/router/useRoute.d.mts +19 -0
  147. package/dist/dev/router/useRouter.d.mts +8 -0
  148. package/dist/dev/router.d.mts +10 -0
  149. package/dist/dev/routerInternal/query.d.mts +7 -0
  150. package/dist/dev/routerInternal/types.d.mts +9 -0
  151. package/dist/dev/runtime/app/computed.mjs +2 -2
  152. package/dist/dev/runtime/app/computed.mjs.map +1 -1
  153. package/dist/dev/runtime/app/context.mjs +8 -2
  154. package/dist/dev/runtime/app/context.mjs.map +1 -1
  155. package/dist/dev/runtime/app/diagnostics.mjs +12 -0
  156. package/dist/dev/runtime/app/diagnostics.mjs.map +1 -1
  157. package/dist/dev/runtime/app/mount.mjs +31 -28
  158. package/dist/dev/runtime/app/mount.mjs.map +1 -1
  159. package/dist/dev/runtime/app/pending.d.mts +10 -0
  160. package/dist/dev/runtime/app/setData/commitTracker.d.mts +13 -0
  161. package/dist/dev/runtime/app/setData/commitTracker.mjs +265 -0
  162. package/dist/dev/runtime/app/setData/commitTracker.mjs.map +1 -0
  163. package/dist/dev/runtime/app/setData/patchScheduler.mjs +47 -51
  164. package/dist/dev/runtime/app/setData/patchScheduler.mjs.map +1 -1
  165. package/dist/dev/runtime/app/setData/scheduler.d.mts +51 -0
  166. package/dist/dev/runtime/app/setData/scheduler.mjs +98 -111
  167. package/dist/dev/runtime/app/setData/scheduler.mjs.map +1 -1
  168. package/dist/dev/runtime/app/setData/snapshot.mjs +11 -1
  169. package/dist/dev/runtime/app/setData/snapshot.mjs.map +1 -1
  170. package/dist/dev/runtime/app.d.mts +8 -0
  171. package/dist/dev/runtime/app.mjs +18 -6
  172. package/dist/dev/runtime/app.mjs.map +1 -1
  173. package/dist/dev/runtime/bindingManifest.mjs +105 -0
  174. package/dist/dev/runtime/bindingManifest.mjs.map +1 -0
  175. package/dist/dev/runtime/capabilities.d.mts +75 -0
  176. package/dist/dev/runtime/capabilities.mjs +40 -0
  177. package/dist/dev/runtime/capabilities.mjs.map +1 -0
  178. package/dist/dev/runtime/css.d.mts +14 -0
  179. package/dist/dev/runtime/defaults.d.mts +12 -0
  180. package/dist/dev/runtime/define/componentDefinition.mjs +3 -0
  181. package/dist/dev/runtime/define/componentDefinition.mjs.map +1 -1
  182. package/dist/dev/runtime/define/optionsApi.mjs +1 -1
  183. package/dist/dev/runtime/define/props.mjs +30 -60
  184. package/dist/dev/runtime/define/props.mjs.map +1 -1
  185. package/dist/dev/runtime/define/scopedSlotOptions.mjs +37 -21
  186. package/dist/dev/runtime/define/scopedSlotOptions.mjs.map +1 -1
  187. package/dist/dev/runtime/define.d.mts +118 -0
  188. package/dist/dev/runtime/define.mjs +32 -44
  189. package/dist/dev/runtime/define.mjs.map +1 -1
  190. package/dist/dev/runtime/diff.mjs +1 -1
  191. package/dist/dev/runtime/disposables.d.mts +31 -0
  192. package/dist/dev/runtime/elementIntersectionObserver.d.mts +26 -0
  193. package/dist/dev/runtime/features/inlineEvents.d.mts +7 -0
  194. package/dist/dev/runtime/features/inlineEvents.mjs +25 -0
  195. package/dist/dev/runtime/features/inlineEvents.mjs.map +1 -0
  196. package/dist/dev/runtime/features/layout.d.mts +7 -0
  197. package/dist/dev/runtime/features/layout.mjs +44 -0
  198. package/dist/dev/runtime/features/layout.mjs.map +1 -0
  199. package/dist/dev/runtime/features/patchStrategy.d.mts +7 -0
  200. package/dist/dev/runtime/features/patchStrategy.mjs +129 -0
  201. package/dist/dev/runtime/features/patchStrategy.mjs.map +1 -0
  202. package/dist/dev/runtime/features/publicLayout.d.mts +24 -0
  203. package/dist/dev/runtime/features/publicLayout.mjs +81 -0
  204. package/dist/dev/runtime/features/publicLayout.mjs.map +1 -0
  205. package/dist/dev/runtime/features/scopedSlots.d.mts +23 -0
  206. package/dist/dev/runtime/features/scopedSlots.mjs +88 -0
  207. package/dist/dev/runtime/features/scopedSlots.mjs.map +1 -0
  208. package/dist/dev/runtime/features/setDataHighFrequencyWarning.d.mts +7 -0
  209. package/dist/dev/runtime/features/setDataHighFrequencyWarning.mjs +15 -0
  210. package/dist/dev/runtime/features/setDataHighFrequencyWarning.mjs.map +1 -0
  211. package/dist/dev/runtime/features/templateRefs.d.mts +7 -0
  212. package/dist/dev/runtime/features/templateRefs.mjs +39 -0
  213. package/dist/dev/runtime/features/templateRefs.mjs.map +1 -0
  214. package/dist/dev/runtime/hooks/base.d.mts +27 -0
  215. package/dist/dev/runtime/hooks/register.d.mts +30 -0
  216. package/dist/dev/runtime/hooks/vue.d.mts +52 -0
  217. package/dist/dev/runtime/hooks/vue.mjs +3 -5
  218. package/dist/dev/runtime/hooks/vue.mjs.map +1 -1
  219. package/dist/dev/runtime/hooks.d.mts +4 -0
  220. package/dist/dev/runtime/index.d.mts +46 -0
  221. package/dist/dev/runtime/inlineDataset.mjs +75 -0
  222. package/dist/dev/runtime/inlineDataset.mjs.map +1 -0
  223. package/dist/dev/runtime/intersectionObserver.d.mts +14 -0
  224. package/dist/dev/runtime/jsxIsland.d.mts +37 -0
  225. package/dist/dev/runtime/jsxIsland.mjs.map +1 -1
  226. package/dist/dev/runtime/layoutBridge.d.mts +55 -0
  227. package/dist/dev/runtime/layoutBridge.mjs.map +1 -1
  228. package/dist/dev/runtime/noSetData.d.mts +5 -0
  229. package/dist/dev/runtime/pageEnvironment.d.mts +50 -0
  230. package/dist/dev/runtime/pageLayout.d.mts +25 -0
  231. package/dist/dev/runtime/pageLayout.mjs.map +1 -1
  232. package/dist/dev/runtime/pageScroll.d.mts +29 -0
  233. package/dist/dev/runtime/provide.d.mts +60 -0
  234. package/dist/dev/runtime/provideStore.d.mts +7 -0
  235. package/dist/dev/runtime/publicRuntime.d.mts +22 -0
  236. package/dist/dev/runtime/publicRuntime.mjs +91 -0
  237. package/dist/dev/runtime/publicRuntime.mjs.map +1 -0
  238. package/dist/dev/runtime/pullDownRefresh.d.mts +12 -0
  239. package/dist/dev/runtime/register/app.d.mts +14 -0
  240. package/dist/dev/runtime/register/app.mjs +7 -10
  241. package/dist/dev/runtime/register/app.mjs.map +1 -1
  242. package/dist/dev/runtime/register/component/lifecycle.mjs +22 -6
  243. package/dist/dev/runtime/register/component/lifecycle.mjs.map +1 -1
  244. package/dist/dev/runtime/register/component/methods.mjs +7 -10
  245. package/dist/dev/runtime/register/component/methods.mjs.map +1 -1
  246. package/dist/dev/runtime/register/component/options.mjs.map +1 -1
  247. package/dist/dev/runtime/register/component/registerDefinition.mjs +64 -69
  248. package/dist/dev/runtime/register/component/registerDefinition.mjs.map +1 -1
  249. package/dist/dev/runtime/register/component.d.mts +17 -0
  250. package/dist/dev/runtime/register/inline.d.mts +15 -0
  251. package/dist/dev/runtime/register/inline.mjs +4 -64
  252. package/dist/dev/runtime/register/inline.mjs.map +1 -1
  253. package/dist/dev/runtime/register/runtimeInstance/setupContext.mjs +1 -1
  254. package/dist/dev/runtime/register/runtimeInstance/setupContext.mjs.map +1 -1
  255. package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs +0 -4
  256. package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs.map +1 -1
  257. package/dist/dev/runtime/register/runtimeInstance/setupSnapshot.mjs +26 -0
  258. package/dist/dev/runtime/register/runtimeInstance/setupSnapshot.mjs.map +1 -0
  259. package/dist/dev/runtime/register/runtimeInstance/utils.mjs.map +1 -1
  260. package/dist/dev/runtime/register/runtimeInstance.d.mts +26 -0
  261. package/dist/dev/runtime/register/runtimeInstance.mjs +402 -160
  262. package/dist/dev/runtime/register/runtimeInstance.mjs.map +1 -1
  263. package/dist/dev/runtime/register/setDataFrequencyWarning.mjs.map +1 -1
  264. package/dist/dev/runtime/register/setup.d.mts +11 -0
  265. package/dist/dev/runtime/register/snapshot.mjs +6 -10
  266. package/dist/dev/runtime/register/snapshot.mjs.map +1 -1
  267. package/dist/dev/runtime/register/watch.d.mts +12 -0
  268. package/dist/dev/runtime/register.d.mts +5 -0
  269. package/dist/dev/runtime/scopedSlots.mjs +1 -1
  270. package/dist/dev/runtime/scopedSlots.mjs.map +1 -1
  271. package/dist/dev/runtime/selectorQuery.d.mts +54 -0
  272. package/dist/dev/runtime/selectorQuery.mjs +5 -0
  273. package/dist/dev/runtime/selectorQuery.mjs.map +1 -1
  274. package/dist/dev/runtime/teardown.mjs +18 -0
  275. package/dist/dev/runtime/teardown.mjs.map +1 -0
  276. package/dist/dev/runtime/template.d.mts +6 -0
  277. package/dist/dev/runtime/templateRefTypes.d.mts +12 -0
  278. package/dist/dev/runtime/templateRefs/helpers.mjs.map +1 -1
  279. package/dist/dev/runtime/templateRefs.mjs +187 -118
  280. package/dist/dev/runtime/templateRefs.mjs.map +1 -1
  281. package/dist/dev/runtime/types/core.d.mts +35 -0
  282. package/dist/dev/runtime/types/miniprogram.d.mts +84 -0
  283. package/dist/dev/runtime/types/miniprogramHost.d.mts +45 -0
  284. package/dist/dev/runtime/types/miniprogramHostSources.d.mts +112 -0
  285. package/dist/dev/runtime/types/options.d.mts +136 -0
  286. package/dist/dev/runtime/types/props/propTypes.d.mts +79 -0
  287. package/dist/dev/runtime/types/props/router.d.mts +51 -0
  288. package/dist/dev/runtime/types/props/setup.d.mts +96 -0
  289. package/dist/dev/runtime/types/props.d.mts +4 -0
  290. package/dist/dev/runtime/types/runtime.d.mts +59 -0
  291. package/dist/dev/runtime/types/setData.d.mts +237 -0
  292. package/dist/dev/runtime/types.d.mts +29 -0
  293. package/dist/dev/runtime/uniAppHost.d.mts +8 -0
  294. package/dist/dev/runtime/updatePerformance.d.mts +13 -0
  295. package/dist/dev/runtime/use.d.mts +13 -0
  296. package/dist/dev/runtime/vueCompat/context.d.mts +8 -0
  297. package/dist/dev/runtime/vueCompat/model.d.mts +30 -0
  298. package/dist/dev/runtime/vueCompat/router.d.mts +28 -0
  299. package/dist/dev/runtime/vueCompat/templateRef.d.mts +9 -0
  300. package/dist/dev/runtime/vueCompat/templateRef.mjs +2 -0
  301. package/dist/dev/runtime/vueCompat/templateRef.mjs.map +1 -1
  302. package/dist/dev/runtime/vueCompat.d.mts +5 -0
  303. package/dist/dev/scheduler.d.mts +4 -0
  304. package/dist/dev/store/base.mjs +12 -18
  305. package/dist/dev/store/base.mjs.map +1 -1
  306. package/dist/dev/store/define/optionsStyle.mjs +13 -23
  307. package/dist/dev/store/define/optionsStyle.mjs.map +1 -1
  308. package/dist/dev/store/define/setupStyle.mjs +14 -24
  309. package/dist/dev/store/define/setupStyle.mjs.map +1 -1
  310. package/dist/dev/store/define/shared.mjs +44 -1
  311. package/dist/dev/store/define/shared.mjs.map +1 -1
  312. package/dist/dev/store/define.d.mts +28 -0
  313. package/dist/dev/store/define.mjs.map +1 -1
  314. package/dist/dev/store/manager.d.mts +8 -0
  315. package/dist/dev/store/storeToRefs.d.mts +13 -0
  316. package/dist/dev/store/types.d.mts +70 -0
  317. package/dist/dev/store.d.mts +5 -0
  318. package/dist/dev/ttIntrinsicElements/base.d.mts +5 -0
  319. package/dist/dev/ttIntrinsicElements/elements/ad.d.mts +8 -0
  320. package/dist/dev/ttIntrinsicElements/elements/aweme-data.d.mts +15 -0
  321. package/dist/dev/ttIntrinsicElements/elements/aweme-user-card.d.mts +16 -0
  322. package/dist/dev/ttIntrinsicElements/elements/button.d.mts +23 -0
  323. package/dist/dev/ttIntrinsicElements/elements/camera.d.mts +19 -0
  324. package/dist/dev/ttIntrinsicElements/elements/canvas.d.mts +16 -0
  325. package/dist/dev/ttIntrinsicElements/elements/checkbox-group.d.mts +12 -0
  326. package/dist/dev/ttIntrinsicElements/elements/checkbox.d.mts +12 -0
  327. package/dist/dev/ttIntrinsicElements/elements/draw-ad.d.mts +16 -0
  328. package/dist/dev/ttIntrinsicElements/elements/form.d.mts +14 -0
  329. package/dist/dev/ttIntrinsicElements/elements/icon.d.mts +11 -0
  330. package/dist/dev/ttIntrinsicElements/elements/image.d.mts +16 -0
  331. package/dist/dev/ttIntrinsicElements/elements/input.d.mts +32 -0
  332. package/dist/dev/ttIntrinsicElements/elements/label.d.mts +10 -0
  333. package/dist/dev/ttIntrinsicElements/elements/live-player.d.mts +19 -0
  334. package/dist/dev/ttIntrinsicElements/elements/live-preview.d.mts +13 -0
  335. package/dist/dev/ttIntrinsicElements/elements/map.d.mts +36 -0
  336. package/dist/dev/ttIntrinsicElements/elements/mask.d.mts +8 -0
  337. package/dist/dev/ttIntrinsicElements/elements/match-media.d.mts +16 -0
  338. package/dist/dev/ttIntrinsicElements/elements/movable-area.d.mts +10 -0
  339. package/dist/dev/ttIntrinsicElements/elements/movable-view.d.mts +27 -0
  340. package/dist/dev/ttIntrinsicElements/elements/navigator.d.mts +16 -0
  341. package/dist/dev/ttIntrinsicElements/elements/open-data.d.mts +15 -0
  342. package/dist/dev/ttIntrinsicElements/elements/picker-view-column.d.mts +8 -0
  343. package/dist/dev/ttIntrinsicElements/elements/picker-view.d.mts +19 -0
  344. package/dist/dev/ttIntrinsicElements/elements/picker.d.mts +22 -0
  345. package/dist/dev/ttIntrinsicElements/elements/progress.d.mts +16 -0
  346. package/dist/dev/ttIntrinsicElements/elements/radio-group.d.mts +12 -0
  347. package/dist/dev/ttIntrinsicElements/elements/radio.d.mts +12 -0
  348. package/dist/dev/ttIntrinsicElements/elements/rich-text.d.mts +10 -0
  349. package/dist/dev/ttIntrinsicElements/elements/rtc-room.d.mts +13 -0
  350. package/dist/dev/ttIntrinsicElements/elements/scroll-view.d.mts +32 -0
  351. package/dist/dev/ttIntrinsicElements/elements/slider.d.mts +19 -0
  352. package/dist/dev/ttIntrinsicElements/elements/swiper-item.d.mts +10 -0
  353. package/dist/dev/ttIntrinsicElements/elements/swiper.d.mts +27 -0
  354. package/dist/dev/ttIntrinsicElements/elements/switch.d.mts +14 -0
  355. package/dist/dev/ttIntrinsicElements/elements/text.d.mts +12 -0
  356. package/dist/dev/ttIntrinsicElements/elements/textarea.d.mts +34 -0
  357. package/dist/dev/ttIntrinsicElements/elements/video.d.mts +58 -0
  358. package/dist/dev/ttIntrinsicElements/elements/view.d.mts +15 -0
  359. package/dist/dev/ttIntrinsicElements/elements/web-view.d.mts +15 -0
  360. package/dist/dev/ttIntrinsicElements.d.mts +88 -0
  361. package/dist/dev/version.d.mts +4 -0
  362. package/dist/dev/vue-augment.d.mts +8 -0
  363. package/dist/dev/vue-demi.d.mts +87 -0
  364. package/dist/dev/vue-demi.mjs +12 -15
  365. package/dist/dev/vue-demi.mjs.map +1 -1
  366. package/dist/dev/vue-types.d.mts +19 -0
  367. package/dist/dev/weappIntrinsicElements/base.d.mts +5 -0
  368. package/dist/dev/weappIntrinsicElements/elements/ad-custom.d.mts +14 -0
  369. package/dist/dev/weappIntrinsicElements/elements/ad.d.mts +17 -0
  370. package/dist/dev/weappIntrinsicElements/elements/audio.d.mts +21 -0
  371. package/dist/dev/weappIntrinsicElements/elements/block.d.mts +8 -0
  372. package/dist/dev/weappIntrinsicElements/elements/button.d.mts +42 -0
  373. package/dist/dev/weappIntrinsicElements/elements/camera.d.mts +19 -0
  374. package/dist/dev/weappIntrinsicElements/elements/canvas.d.mts +19 -0
  375. package/dist/dev/weappIntrinsicElements/elements/checkbox-group.d.mts +11 -0
  376. package/dist/dev/weappIntrinsicElements/elements/checkbox.d.mts +13 -0
  377. package/dist/dev/weappIntrinsicElements/elements/cover-image.d.mts +14 -0
  378. package/dist/dev/weappIntrinsicElements/elements/cover-view.d.mts +10 -0
  379. package/dist/dev/weappIntrinsicElements/elements/editor.d.mts +23 -0
  380. package/dist/dev/weappIntrinsicElements/elements/form.d.mts +17 -0
  381. package/dist/dev/weappIntrinsicElements/elements/functional-page-navigator.d.mts +16 -0
  382. package/dist/dev/weappIntrinsicElements/elements/icon.d.mts +12 -0
  383. package/dist/dev/weappIntrinsicElements/elements/image.d.mts +19 -0
  384. package/dist/dev/weappIntrinsicElements/elements/import.d.mts +10 -0
  385. package/dist/dev/weappIntrinsicElements/elements/include.d.mts +10 -0
  386. package/dist/dev/weappIntrinsicElements/elements/input.d.mts +47 -0
  387. package/dist/dev/weappIntrinsicElements/elements/keyboard-accessory.d.mts +8 -0
  388. package/dist/dev/weappIntrinsicElements/elements/label.d.mts +10 -0
  389. package/dist/dev/weappIntrinsicElements/elements/live-player.d.mts +36 -0
  390. package/dist/dev/weappIntrinsicElements/elements/live-pusher.d.mts +58 -0
  391. package/dist/dev/weappIntrinsicElements/elements/map.d.mts +106 -0
  392. package/dist/dev/weappIntrinsicElements/elements/match-media.d.mts +16 -0
  393. package/dist/dev/weappIntrinsicElements/elements/movable-area.d.mts +27 -0
  394. package/dist/dev/weappIntrinsicElements/elements/movable-view.d.mts +27 -0
  395. package/dist/dev/weappIntrinsicElements/elements/navigation-bar.d.mts +15 -0
  396. package/dist/dev/weappIntrinsicElements/elements/navigator.d.mts +26 -0
  397. package/dist/dev/weappIntrinsicElements/elements/official-account.d.mts +14 -0
  398. package/dist/dev/weappIntrinsicElements/elements/open-data.d.mts +16 -0
  399. package/dist/dev/weappIntrinsicElements/elements/page-container.d.mts +26 -0
  400. package/dist/dev/weappIntrinsicElements/elements/page-meta.d.mts +24 -0
  401. package/dist/dev/weappIntrinsicElements/elements/picker-view-column.d.mts +19 -0
  402. package/dist/dev/weappIntrinsicElements/elements/picker-view.d.mts +19 -0
  403. package/dist/dev/weappIntrinsicElements/elements/picker.d.mts +24 -0
  404. package/dist/dev/weappIntrinsicElements/elements/progress.d.mts +22 -0
  405. package/dist/dev/weappIntrinsicElements/elements/radio-group.d.mts +11 -0
  406. package/dist/dev/weappIntrinsicElements/elements/radio.d.mts +13 -0
  407. package/dist/dev/weappIntrinsicElements/elements/rich-text.d.mts +17 -0
  408. package/dist/dev/weappIntrinsicElements/elements/scroll-view.d.mts +64 -0
  409. package/dist/dev/weappIntrinsicElements/elements/share-element.d.mts +17 -0
  410. package/dist/dev/weappIntrinsicElements/elements/slider.d.mts +24 -0
  411. package/dist/dev/weappIntrinsicElements/elements/slot.d.mts +10 -0
  412. package/dist/dev/weappIntrinsicElements/elements/swiper-item.d.mts +11 -0
  413. package/dist/dev/weappIntrinsicElements/elements/swiper.d.mts +40 -0
  414. package/dist/dev/weappIntrinsicElements/elements/switch.d.mts +15 -0
  415. package/dist/dev/weappIntrinsicElements/elements/template.d.mts +12 -0
  416. package/dist/dev/weappIntrinsicElements/elements/text.d.mts +15 -0
  417. package/dist/dev/weappIntrinsicElements/elements/textarea.d.mts +41 -0
  418. package/dist/dev/weappIntrinsicElements/elements/video.d.mts +72 -0
  419. package/dist/dev/weappIntrinsicElements/elements/view.d.mts +15 -0
  420. package/dist/dev/weappIntrinsicElements/elements/voip-room.d.mts +15 -0
  421. package/dist/dev/weappIntrinsicElements/elements/web-view.d.mts +14 -0
  422. package/dist/dev/weappIntrinsicElements.d.mts +114 -0
  423. package/dist/dev/web-apis.d.mts +3 -0
  424. package/dist/index.d.mts +13 -14
  425. package/dist/index.mjs +1 -1
  426. package/dist/internal-reactivity.d.mts +2 -1
  427. package/dist/internal-reactivity.mjs +1 -1
  428. package/dist/internal-runtime.d.mts +13 -6
  429. package/dist/internal-runtime.mjs +1 -1
  430. package/dist/jsx-runtime.d.mts +47 -9
  431. package/dist/jsxTypes.d.mts +8 -0
  432. package/dist/miniprogram/jsx-runtime.d.mts +13 -0
  433. package/dist/miniprogram/jsx-runtime.mjs +1 -0
  434. package/dist/miniprogramIntrinsicElements/base.d.mts +4 -0
  435. package/dist/miniprogramIntrinsicElements/elements/button.d.mts +23 -0
  436. package/dist/miniprogramIntrinsicElements/elements/camera.d.mts +18 -0
  437. package/dist/miniprogramIntrinsicElements/elements/canvas.d.mts +16 -0
  438. package/dist/miniprogramIntrinsicElements/elements/checkbox-group.d.mts +12 -0
  439. package/dist/miniprogramIntrinsicElements/elements/checkbox.d.mts +13 -0
  440. package/dist/miniprogramIntrinsicElements/elements/form.d.mts +13 -0
  441. package/dist/miniprogramIntrinsicElements/elements/icon.d.mts +12 -0
  442. package/dist/miniprogramIntrinsicElements/elements/image.d.mts +16 -0
  443. package/dist/miniprogramIntrinsicElements/elements/input.d.mts +29 -0
  444. package/dist/miniprogramIntrinsicElements/elements/label.d.mts +11 -0
  445. package/dist/miniprogramIntrinsicElements/elements/map.d.mts +31 -0
  446. package/dist/miniprogramIntrinsicElements/elements/match-media.d.mts +13 -0
  447. package/dist/miniprogramIntrinsicElements/elements/movable-area.d.mts +9 -0
  448. package/dist/miniprogramIntrinsicElements/elements/movable-view.d.mts +26 -0
  449. package/dist/miniprogramIntrinsicElements/elements/navigator.d.mts +15 -0
  450. package/dist/miniprogramIntrinsicElements/elements/picker-view-column.d.mts +9 -0
  451. package/dist/miniprogramIntrinsicElements/elements/picker-view.d.mts +20 -0
  452. package/dist/miniprogramIntrinsicElements/elements/picker.d.mts +14 -0
  453. package/dist/miniprogramIntrinsicElements/elements/progress.d.mts +12 -0
  454. package/dist/miniprogramIntrinsicElements/elements/radio-group.d.mts +12 -0
  455. package/dist/miniprogramIntrinsicElements/elements/radio.d.mts +13 -0
  456. package/dist/miniprogramIntrinsicElements/elements/rich-text.d.mts +11 -0
  457. package/dist/miniprogramIntrinsicElements/elements/scroll-view.d.mts +22 -0
  458. package/dist/miniprogramIntrinsicElements/elements/slider.d.mts +19 -0
  459. package/dist/miniprogramIntrinsicElements/elements/swiper-item.d.mts +9 -0
  460. package/dist/miniprogramIntrinsicElements/elements/swiper.d.mts +24 -0
  461. package/dist/miniprogramIntrinsicElements/elements/switch.d.mts +14 -0
  462. package/dist/miniprogramIntrinsicElements/elements/text.d.mts +13 -0
  463. package/dist/miniprogramIntrinsicElements/elements/textarea.d.mts +23 -0
  464. package/dist/miniprogramIntrinsicElements/elements/video.d.mts +29 -0
  465. package/dist/miniprogramIntrinsicElements/elements/view.d.mts +16 -0
  466. package/dist/miniprogramIntrinsicElements/elements/web-view.d.mts +15 -0
  467. package/dist/miniprogramIntrinsicElements.d.mts +70 -0
  468. package/dist/package.mjs +1 -1
  469. package/dist/reactivity/asyncDerivation.d.mts +40 -0
  470. package/dist/reactivity/asyncDerivation.mjs +1 -0
  471. package/dist/reactivity/computed.mjs +1 -1
  472. package/dist/reactivity/core.d.mts +1 -0
  473. package/dist/reactivity/core.mjs +1 -1
  474. package/dist/reactivity/index.d.mts +2 -1
  475. package/dist/reactivity/readonly.d.mts +1 -1
  476. package/dist/reactivity/ref.mjs +1 -1
  477. package/dist/runtime/app/computed.mjs +1 -1
  478. package/dist/runtime/app/context.mjs +1 -1
  479. package/dist/runtime/app/diagnostics.mjs +1 -1
  480. package/dist/runtime/app/mount.mjs +1 -1
  481. package/dist/runtime/app/setData/commitTracker.d.mts +12 -0
  482. package/dist/runtime/app/setData/commitTracker.mjs +1 -0
  483. package/dist/runtime/app/setData/patchScheduler.mjs +1 -1
  484. package/dist/runtime/app/setData/scheduler.d.mts +50 -0
  485. package/dist/runtime/app/setData/scheduler.mjs +1 -1
  486. package/dist/runtime/app/setData/snapshot.mjs +1 -1
  487. package/dist/runtime/app.mjs +1 -1
  488. package/dist/runtime/bindingManifest.mjs +1 -0
  489. package/dist/runtime/capabilities.d.mts +74 -0
  490. package/dist/runtime/capabilities.mjs +1 -0
  491. package/dist/runtime/define/componentDefinition.mjs +1 -1
  492. package/dist/runtime/define/optionsApi.mjs +1 -1
  493. package/dist/runtime/define/props.mjs +1 -1
  494. package/dist/runtime/define/scopedSlotOptions.mjs +1 -1
  495. package/dist/runtime/define.d.mts +5 -13
  496. package/dist/runtime/define.mjs +1 -1
  497. package/dist/runtime/diff.mjs +1 -1
  498. package/dist/runtime/features/inlineEvents.d.mts +6 -0
  499. package/dist/runtime/features/inlineEvents.mjs +1 -0
  500. package/dist/runtime/features/layout.d.mts +6 -0
  501. package/dist/runtime/features/layout.mjs +1 -0
  502. package/dist/runtime/features/patchStrategy.d.mts +6 -0
  503. package/dist/runtime/features/patchStrategy.mjs +1 -0
  504. package/dist/runtime/features/publicLayout.d.mts +23 -0
  505. package/dist/runtime/features/publicLayout.mjs +1 -0
  506. package/dist/runtime/features/scopedSlots.d.mts +22 -0
  507. package/dist/runtime/features/scopedSlots.mjs +1 -0
  508. package/dist/runtime/features/setDataHighFrequencyWarning.d.mts +6 -0
  509. package/dist/runtime/features/setDataHighFrequencyWarning.mjs +1 -0
  510. package/dist/runtime/features/templateRefs.d.mts +6 -0
  511. package/dist/runtime/features/templateRefs.mjs +1 -0
  512. package/dist/runtime/hooks/vue.d.mts +1 -2
  513. package/dist/runtime/hooks/vue.mjs +1 -1
  514. package/dist/runtime/index.d.mts +12 -14
  515. package/dist/runtime/inlineDataset.mjs +1 -0
  516. package/dist/runtime/jsxIsland.d.mts +2 -6
  517. package/dist/runtime/layoutBridge.d.mts +5 -9
  518. package/dist/runtime/pageLayout.d.mts +3 -4
  519. package/dist/runtime/publicRuntime.d.mts +21 -0
  520. package/dist/runtime/publicRuntime.mjs +1 -0
  521. package/dist/runtime/register/app.mjs +1 -1
  522. package/dist/runtime/register/component/lifecycle.mjs +1 -1
  523. package/dist/runtime/register/component/methods.mjs +1 -1
  524. package/dist/runtime/register/component/registerDefinition.mjs +1 -1
  525. package/dist/runtime/register/inline.mjs +1 -1
  526. package/dist/runtime/register/runtimeInstance/setupContext.mjs +1 -1
  527. package/dist/runtime/register/runtimeInstance/setupPhase.mjs +1 -1
  528. package/dist/runtime/register/runtimeInstance/setupSnapshot.mjs +1 -0
  529. package/dist/runtime/register/runtimeInstance.mjs +1 -1
  530. package/dist/runtime/register/snapshot.mjs +1 -1
  531. package/dist/runtime/scopedSlots.mjs +1 -1
  532. package/dist/runtime/selectorQuery.mjs +1 -1
  533. package/dist/runtime/teardown.mjs +1 -0
  534. package/dist/runtime/templateRefTypes.d.mts +5 -2
  535. package/dist/runtime/templateRefs.mjs +1 -1
  536. package/dist/runtime/types/miniprogram.d.mts +3 -0
  537. package/dist/runtime/types/options.d.mts +2 -2
  538. package/dist/runtime/types/props.d.mts +1 -1
  539. package/dist/runtime/types/setData.d.mts +18 -1
  540. package/dist/runtime/types.d.mts +3 -3
  541. package/dist/runtime/vueCompat/templateRef.mjs +1 -1
  542. package/dist/store/base.mjs +1 -1
  543. package/dist/store/define/optionsStyle.mjs +1 -1
  544. package/dist/store/define/setupStyle.mjs +1 -1
  545. package/dist/store/define/shared.mjs +1 -1
  546. package/dist/store/define.d.mts +10 -8
  547. package/dist/store/types.d.mts +4 -4
  548. package/dist/tt/jsx-runtime.d.mts +13 -0
  549. package/dist/tt/jsx-runtime.mjs +1 -0
  550. package/dist/ttIntrinsicElements/base.d.mts +4 -0
  551. package/dist/ttIntrinsicElements/elements/ad.d.mts +7 -0
  552. package/dist/ttIntrinsicElements/elements/aweme-data.d.mts +14 -0
  553. package/dist/ttIntrinsicElements/elements/aweme-user-card.d.mts +15 -0
  554. package/dist/ttIntrinsicElements/elements/button.d.mts +22 -0
  555. package/dist/ttIntrinsicElements/elements/camera.d.mts +18 -0
  556. package/dist/ttIntrinsicElements/elements/canvas.d.mts +15 -0
  557. package/dist/ttIntrinsicElements/elements/checkbox-group.d.mts +11 -0
  558. package/dist/ttIntrinsicElements/elements/checkbox.d.mts +11 -0
  559. package/dist/ttIntrinsicElements/elements/draw-ad.d.mts +15 -0
  560. package/dist/ttIntrinsicElements/elements/form.d.mts +13 -0
  561. package/dist/ttIntrinsicElements/elements/icon.d.mts +10 -0
  562. package/dist/ttIntrinsicElements/elements/image.d.mts +15 -0
  563. package/dist/ttIntrinsicElements/elements/input.d.mts +31 -0
  564. package/dist/ttIntrinsicElements/elements/label.d.mts +9 -0
  565. package/dist/ttIntrinsicElements/elements/live-player.d.mts +18 -0
  566. package/dist/ttIntrinsicElements/elements/live-preview.d.mts +12 -0
  567. package/dist/ttIntrinsicElements/elements/map.d.mts +35 -0
  568. package/dist/ttIntrinsicElements/elements/mask.d.mts +7 -0
  569. package/dist/ttIntrinsicElements/elements/match-media.d.mts +15 -0
  570. package/dist/ttIntrinsicElements/elements/movable-area.d.mts +9 -0
  571. package/dist/ttIntrinsicElements/elements/movable-view.d.mts +26 -0
  572. package/dist/ttIntrinsicElements/elements/navigator.d.mts +15 -0
  573. package/dist/ttIntrinsicElements/elements/open-data.d.mts +14 -0
  574. package/dist/ttIntrinsicElements/elements/picker-view-column.d.mts +7 -0
  575. package/dist/ttIntrinsicElements/elements/picker-view.d.mts +18 -0
  576. package/dist/ttIntrinsicElements/elements/picker.d.mts +21 -0
  577. package/dist/ttIntrinsicElements/elements/progress.d.mts +15 -0
  578. package/dist/ttIntrinsicElements/elements/radio-group.d.mts +11 -0
  579. package/dist/ttIntrinsicElements/elements/radio.d.mts +11 -0
  580. package/dist/ttIntrinsicElements/elements/rich-text.d.mts +9 -0
  581. package/dist/ttIntrinsicElements/elements/rtc-room.d.mts +12 -0
  582. package/dist/ttIntrinsicElements/elements/scroll-view.d.mts +31 -0
  583. package/dist/ttIntrinsicElements/elements/slider.d.mts +18 -0
  584. package/dist/ttIntrinsicElements/elements/swiper-item.d.mts +9 -0
  585. package/dist/ttIntrinsicElements/elements/swiper.d.mts +26 -0
  586. package/dist/ttIntrinsicElements/elements/switch.d.mts +13 -0
  587. package/dist/ttIntrinsicElements/elements/text.d.mts +11 -0
  588. package/dist/ttIntrinsicElements/elements/textarea.d.mts +33 -0
  589. package/dist/ttIntrinsicElements/elements/video.d.mts +57 -0
  590. package/dist/ttIntrinsicElements/elements/view.d.mts +14 -0
  591. package/dist/ttIntrinsicElements/elements/web-view.d.mts +14 -0
  592. package/dist/ttIntrinsicElements.d.mts +88 -0
  593. package/dist/vue-demi.d.mts +13 -14
  594. package/dist/vue-demi.mjs +1 -1
  595. package/dist/weapp/jsx-runtime.d.mts +13 -0
  596. package/dist/weapp/jsx-runtime.mjs +1 -0
  597. package/dist/weappIntrinsicElements/base.d.mts +2 -19
  598. package/dist/weappIntrinsicElements/elements/ad-custom.d.mts +5 -4
  599. package/dist/weappIntrinsicElements/elements/ad.d.mts +6 -5
  600. package/dist/weappIntrinsicElements/elements/audio.d.mts +8 -7
  601. package/dist/weappIntrinsicElements/elements/block.d.mts +2 -2
  602. package/dist/weappIntrinsicElements/elements/button.d.mts +17 -15
  603. package/dist/weappIntrinsicElements/elements/camera.d.mts +11 -10
  604. package/dist/weappIntrinsicElements/elements/canvas.d.mts +9 -8
  605. package/dist/weappIntrinsicElements/elements/checkbox-group.d.mts +5 -7
  606. package/dist/weappIntrinsicElements/elements/checkbox.d.mts +2 -2
  607. package/dist/weappIntrinsicElements/elements/cover-image.d.mts +8 -4
  608. package/dist/weappIntrinsicElements/elements/cover-view.d.mts +2 -2
  609. package/dist/weappIntrinsicElements/elements/editor.d.mts +8 -7
  610. package/dist/weappIntrinsicElements/elements/form.d.mts +6 -5
  611. package/dist/weappIntrinsicElements/elements/functional-page-navigator.d.mts +8 -7
  612. package/dist/weappIntrinsicElements/elements/icon.d.mts +2 -2
  613. package/dist/weappIntrinsicElements/elements/image.d.mts +6 -5
  614. package/dist/weappIntrinsicElements/elements/import.d.mts +2 -2
  615. package/dist/weappIntrinsicElements/elements/include.d.mts +2 -2
  616. package/dist/weappIntrinsicElements/elements/input.d.mts +16 -16
  617. package/dist/weappIntrinsicElements/elements/keyboard-accessory.d.mts +2 -2
  618. package/dist/weappIntrinsicElements/elements/label.d.mts +2 -2
  619. package/dist/weappIntrinsicElements/elements/live-player.d.mts +17 -16
  620. package/dist/weappIntrinsicElements/elements/live-pusher.d.mts +18 -17
  621. package/dist/weappIntrinsicElements/elements/map.d.mts +17 -16
  622. package/dist/weappIntrinsicElements/elements/match-media.d.mts +2 -2
  623. package/dist/weappIntrinsicElements/elements/movable-area.d.mts +7 -6
  624. package/dist/weappIntrinsicElements/elements/movable-view.d.mts +7 -6
  625. package/dist/weappIntrinsicElements/elements/navigation-bar.d.mts +2 -2
  626. package/dist/weappIntrinsicElements/elements/navigator.d.mts +9 -8
  627. package/dist/weappIntrinsicElements/elements/official-account.d.mts +5 -4
  628. package/dist/weappIntrinsicElements/elements/open-data.d.mts +4 -3
  629. package/dist/weappIntrinsicElements/elements/page-container.d.mts +10 -9
  630. package/dist/weappIntrinsicElements/elements/page-meta.d.mts +6 -5
  631. package/dist/weappIntrinsicElements/elements/picker-view-column.d.mts +6 -5
  632. package/dist/weappIntrinsicElements/elements/picker-view.d.mts +6 -5
  633. package/dist/weappIntrinsicElements/elements/picker.d.mts +8 -7
  634. package/dist/weappIntrinsicElements/elements/progress.d.mts +4 -3
  635. package/dist/weappIntrinsicElements/elements/radio-group.d.mts +5 -7
  636. package/dist/weappIntrinsicElements/elements/radio.d.mts +2 -2
  637. package/dist/weappIntrinsicElements/elements/rich-text.d.mts +5 -5
  638. package/dist/weappIntrinsicElements/elements/scroll-view.d.mts +19 -23
  639. package/dist/weappIntrinsicElements/elements/share-element.d.mts +4 -5
  640. package/dist/weappIntrinsicElements/elements/slider.d.mts +5 -4
  641. package/dist/weappIntrinsicElements/elements/slot.d.mts +2 -2
  642. package/dist/weappIntrinsicElements/elements/swiper-item.d.mts +5 -36
  643. package/dist/weappIntrinsicElements/elements/swiper.d.mts +10 -12
  644. package/dist/weappIntrinsicElements/elements/switch.d.mts +4 -3
  645. package/dist/weappIntrinsicElements/elements/template.d.mts +2 -2
  646. package/dist/weappIntrinsicElements/elements/text.d.mts +4 -4
  647. package/dist/weappIntrinsicElements/elements/textarea.d.mts +15 -14
  648. package/dist/weappIntrinsicElements/elements/video.d.mts +23 -22
  649. package/dist/weappIntrinsicElements/elements/view.d.mts +4 -2
  650. package/dist/weappIntrinsicElements/elements/voip-room.d.mts +6 -5
  651. package/dist/weappIntrinsicElements/elements/web-view.d.mts +6 -5
  652. package/dist/weappIntrinsicElements.d.mts +111 -150
  653. package/package.json +19 -19
  654. package/dist/dev/jsx-runtime.mjs +0 -1
  655. package/dist/runtime/templateRefs.d.mts +0 -10
  656. /package/dist/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/defineProperty.mjs +0 -0
  657. /package/dist/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/toPrimitive.mjs +0 -0
  658. /package/dist/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/toPropertyKey.mjs +0 -0
  659. /package/dist/_virtual/{_@oxc-project_runtime@0.148.0 → _@oxc-project_runtime@0.149.0}/helpers/esm/typeof.mjs +0 -0
@@ -0,0 +1,19 @@
1
+ import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
2
+ import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
3
+ //#region src/miniprogramIntrinsicElements/elements/slider.d.ts
4
+ /**
5
+ * @see https://developers.weixin.qq.com/miniprogram/dev/component/slider.html
6
+ * @see https://opendocs.alipay.com/mini/component/slider
7
+ * @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/list/slider
8
+ */
9
+ export type MiniProgramIntrinsicElementSlider = MiniProgramIntrinsicElementBaseAttributes & {
10
+ disabled?: boolean;
11
+ max?: number;
12
+ min?: number;
13
+ onChange?: WevuJsxEventHandler;
14
+ onChanging?: WevuJsxEventHandler;
15
+ 'show-value'?: boolean;
16
+ step?: number;
17
+ value?: number;
18
+ };
19
+ //#endregion
@@ -0,0 +1,9 @@
1
+ import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
2
+ //#region src/miniprogramIntrinsicElements/elements/swiper-item.d.ts
3
+ /**
4
+ * @see https://developers.weixin.qq.com/miniprogram/dev/component/swiper-item.html
5
+ * @see https://opendocs.alipay.com/mini/component/swiper-item
6
+ * @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/view-container/swiper-item
7
+ */
8
+ export type MiniProgramIntrinsicElementSwiperItem = MiniProgramIntrinsicElementBaseAttributes;
9
+ //#endregion
@@ -0,0 +1,24 @@
1
+ import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
2
+ import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
3
+ //#region src/miniprogramIntrinsicElements/elements/swiper.d.ts
4
+ /**
5
+ * @see https://developers.weixin.qq.com/miniprogram/dev/component/swiper.html
6
+ * @see https://opendocs.alipay.com/mini/component/swiper
7
+ * @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/view-container/swiper
8
+ */
9
+ export type MiniProgramIntrinsicElementSwiper = MiniProgramIntrinsicElementBaseAttributes & {
10
+ autoplay?: boolean;
11
+ circular?: boolean;
12
+ current?: number;
13
+ 'display-multiple-items'?: number;
14
+ duration?: number;
15
+ 'easing-function'?: 'default' | 'easeInCubic' | 'easeInOutCubic' | 'easeOutCubic' | 'linear';
16
+ 'indicator-dots'?: boolean;
17
+ interval?: number;
18
+ 'next-margin'?: string;
19
+ onChange?: WevuJsxEventHandler;
20
+ onTransition?: WevuJsxEventHandler;
21
+ 'previous-margin'?: string;
22
+ vertical?: boolean;
23
+ };
24
+ //#endregion
@@ -0,0 +1,14 @@
1
+ import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
2
+ import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
3
+ //#region src/miniprogramIntrinsicElements/elements/switch.d.ts
4
+ /**
5
+ * @see https://developers.weixin.qq.com/miniprogram/dev/component/switch.html
6
+ * @see https://opendocs.alipay.com/mini/component/switch
7
+ * @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/list/switch
8
+ */
9
+ export type MiniProgramIntrinsicElementSwitch = MiniProgramIntrinsicElementBaseAttributes & {
10
+ checked?: boolean;
11
+ disabled?: boolean;
12
+ onChange?: WevuJsxEventHandler;
13
+ };
14
+ //#endregion
@@ -0,0 +1,13 @@
1
+ import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
2
+ //#region src/miniprogramIntrinsicElements/elements/text.d.ts
3
+ /**
4
+ * @see https://developers.weixin.qq.com/miniprogram/dev/component/text.html
5
+ * @see https://opendocs.alipay.com/mini/component/text
6
+ * @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/basic-content/text
7
+ */
8
+ export type MiniProgramIntrinsicElementText = MiniProgramIntrinsicElementBaseAttributes & {
9
+ decode?: boolean;
10
+ selectable?: boolean;
11
+ space?: 'emsp' | 'ensp' | 'nbsp';
12
+ };
13
+ //#endregion
@@ -0,0 +1,23 @@
1
+ import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
2
+ import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
3
+ //#region src/miniprogramIntrinsicElements/elements/textarea.d.ts
4
+ /**
5
+ * @see https://developers.weixin.qq.com/miniprogram/dev/component/textarea.html
6
+ * @see https://opendocs.alipay.com/mini/component/textarea
7
+ * @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/list/textarea
8
+ */
9
+ export type MiniProgramIntrinsicElementTextarea = MiniProgramIntrinsicElementBaseAttributes & {
10
+ 'auto-height'?: boolean;
11
+ disabled?: boolean;
12
+ focus?: boolean;
13
+ maxlength?: number;
14
+ onBlur?: WevuJsxEventHandler;
15
+ onConfirm?: WevuJsxEventHandler;
16
+ onFocus?: WevuJsxEventHandler;
17
+ onInput?: WevuJsxEventHandler;
18
+ placeholder?: string;
19
+ 'placeholder-class'?: string;
20
+ 'placeholder-style'?: string;
21
+ value?: string;
22
+ };
23
+ //#endregion
@@ -0,0 +1,29 @@
1
+ import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
2
+ import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
3
+ //#region src/miniprogramIntrinsicElements/elements/video.d.ts
4
+ /**
5
+ * @see https://developers.weixin.qq.com/miniprogram/dev/component/video.html
6
+ * @see https://opendocs.alipay.com/mini/component/video
7
+ * @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/media-component/video
8
+ */
9
+ export type MiniProgramIntrinsicElementVideo = MiniProgramIntrinsicElementBaseAttributes & {
10
+ autoplay?: boolean;
11
+ controls?: boolean;
12
+ 'enable-progress-gesture'?: boolean;
13
+ 'initial-time'?: number;
14
+ loop?: boolean;
15
+ muted?: boolean;
16
+ 'object-fit'?: 'contain' | 'cover' | 'fill';
17
+ onEnded?: WevuJsxEventHandler;
18
+ onError?: WevuJsxEventHandler;
19
+ onFullScreenChange?: WevuJsxEventHandler;
20
+ onPause?: WevuJsxEventHandler;
21
+ onPlay?: WevuJsxEventHandler;
22
+ onTimeUpdate?: WevuJsxEventHandler;
23
+ poster?: string;
24
+ 'show-fullscreen-btn'?: boolean;
25
+ 'show-mute-btn'?: boolean;
26
+ 'show-play-btn'?: boolean;
27
+ src?: string;
28
+ };
29
+ //#endregion
@@ -0,0 +1,16 @@
1
+ import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
2
+ import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
3
+ //#region src/miniprogramIntrinsicElements/elements/view.d.ts
4
+ /**
5
+ * @see https://developers.weixin.qq.com/miniprogram/dev/component/view.html
6
+ * @see https://opendocs.alipay.com/mini/component/view
7
+ * @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/view-container/view
8
+ */
9
+ export type MiniProgramIntrinsicElementView = MiniProgramIntrinsicElementBaseAttributes & {
10
+ 'hover-class'?: string;
11
+ 'hover-start-time'?: number;
12
+ 'hover-stay-time'?: number;
13
+ 'hover-stop-propagation'?: boolean;
14
+ onTap?: WevuJsxEventHandler;
15
+ };
16
+ //#endregion
@@ -0,0 +1,15 @@
1
+ import { WevuJsxEventHandler } from "../../jsx-runtime.mjs";
2
+ import { MiniProgramIntrinsicElementBaseAttributes } from "../base.mjs";
3
+ //#region src/miniprogramIntrinsicElements/elements/web-view.d.ts
4
+ /**
5
+ * @see https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
6
+ * @see https://opendocs.alipay.com/mini/component/web-view
7
+ * @see https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/open-capacity/web-view
8
+ */
9
+ export type MiniProgramIntrinsicElementWebView = MiniProgramIntrinsicElementBaseAttributes & {
10
+ onError?: WevuJsxEventHandler;
11
+ onLoad?: WevuJsxEventHandler;
12
+ onMessage?: WevuJsxEventHandler;
13
+ src?: string;
14
+ };
15
+ //#endregion
@@ -0,0 +1,70 @@
1
+ import { MiniProgramIntrinsicElementBaseAttributes } from "./miniprogramIntrinsicElements/base.mjs";
2
+ import { MiniProgramIntrinsicElementButton } from "./miniprogramIntrinsicElements/elements/button.mjs";
3
+ import { MiniProgramIntrinsicElementCamera } from "./miniprogramIntrinsicElements/elements/camera.mjs";
4
+ import { MiniProgramIntrinsicElementCanvas } from "./miniprogramIntrinsicElements/elements/canvas.mjs";
5
+ import { MiniProgramIntrinsicElementCheckbox } from "./miniprogramIntrinsicElements/elements/checkbox.mjs";
6
+ import { MiniProgramIntrinsicElementCheckboxGroup } from "./miniprogramIntrinsicElements/elements/checkbox-group.mjs";
7
+ import { MiniProgramIntrinsicElementForm } from "./miniprogramIntrinsicElements/elements/form.mjs";
8
+ import { MiniProgramIntrinsicElementIcon } from "./miniprogramIntrinsicElements/elements/icon.mjs";
9
+ import { MiniProgramIntrinsicElementImage } from "./miniprogramIntrinsicElements/elements/image.mjs";
10
+ import { MiniProgramIntrinsicElementInput } from "./miniprogramIntrinsicElements/elements/input.mjs";
11
+ import { MiniProgramIntrinsicElementLabel } from "./miniprogramIntrinsicElements/elements/label.mjs";
12
+ import { MiniProgramIntrinsicElementMap } from "./miniprogramIntrinsicElements/elements/map.mjs";
13
+ import { MiniProgramIntrinsicElementMatchMedia } from "./miniprogramIntrinsicElements/elements/match-media.mjs";
14
+ import { MiniProgramIntrinsicElementMovableArea } from "./miniprogramIntrinsicElements/elements/movable-area.mjs";
15
+ import { MiniProgramIntrinsicElementMovableView } from "./miniprogramIntrinsicElements/elements/movable-view.mjs";
16
+ import { MiniProgramIntrinsicElementNavigator } from "./miniprogramIntrinsicElements/elements/navigator.mjs";
17
+ import { MiniProgramIntrinsicElementPicker } from "./miniprogramIntrinsicElements/elements/picker.mjs";
18
+ import { MiniProgramIntrinsicElementPickerView } from "./miniprogramIntrinsicElements/elements/picker-view.mjs";
19
+ import { MiniProgramIntrinsicElementPickerViewColumn } from "./miniprogramIntrinsicElements/elements/picker-view-column.mjs";
20
+ import { MiniProgramIntrinsicElementProgress } from "./miniprogramIntrinsicElements/elements/progress.mjs";
21
+ import { MiniProgramIntrinsicElementRadio } from "./miniprogramIntrinsicElements/elements/radio.mjs";
22
+ import { MiniProgramIntrinsicElementRadioGroup } from "./miniprogramIntrinsicElements/elements/radio-group.mjs";
23
+ import { MiniProgramIntrinsicElementRichText } from "./miniprogramIntrinsicElements/elements/rich-text.mjs";
24
+ import { MiniProgramIntrinsicElementScrollView } from "./miniprogramIntrinsicElements/elements/scroll-view.mjs";
25
+ import { MiniProgramIntrinsicElementSlider } from "./miniprogramIntrinsicElements/elements/slider.mjs";
26
+ import { MiniProgramIntrinsicElementSwiper } from "./miniprogramIntrinsicElements/elements/swiper.mjs";
27
+ import { MiniProgramIntrinsicElementSwiperItem } from "./miniprogramIntrinsicElements/elements/swiper-item.mjs";
28
+ import { MiniProgramIntrinsicElementSwitch } from "./miniprogramIntrinsicElements/elements/switch.mjs";
29
+ import { MiniProgramIntrinsicElementText } from "./miniprogramIntrinsicElements/elements/text.mjs";
30
+ import { MiniProgramIntrinsicElementTextarea } from "./miniprogramIntrinsicElements/elements/textarea.mjs";
31
+ import { MiniProgramIntrinsicElementVideo } from "./miniprogramIntrinsicElements/elements/video.mjs";
32
+ import { MiniProgramIntrinsicElementView } from "./miniprogramIntrinsicElements/elements/view.mjs";
33
+ import { MiniProgramIntrinsicElementWebView } from "./miniprogramIntrinsicElements/elements/web-view.mjs";
34
+ //#region src/miniprogramIntrinsicElements.d.ts
35
+ export interface MiniProgramIntrinsicElements {
36
+ button: MiniProgramIntrinsicElementButton;
37
+ camera: MiniProgramIntrinsicElementCamera;
38
+ canvas: MiniProgramIntrinsicElementCanvas;
39
+ checkbox: MiniProgramIntrinsicElementCheckbox;
40
+ 'checkbox-group': MiniProgramIntrinsicElementCheckboxGroup;
41
+ form: MiniProgramIntrinsicElementForm;
42
+ icon: MiniProgramIntrinsicElementIcon;
43
+ image: MiniProgramIntrinsicElementImage;
44
+ input: MiniProgramIntrinsicElementInput;
45
+ label: MiniProgramIntrinsicElementLabel;
46
+ map: MiniProgramIntrinsicElementMap;
47
+ 'match-media': MiniProgramIntrinsicElementMatchMedia;
48
+ 'movable-area': MiniProgramIntrinsicElementMovableArea;
49
+ 'movable-view': MiniProgramIntrinsicElementMovableView;
50
+ navigator: MiniProgramIntrinsicElementNavigator;
51
+ picker: MiniProgramIntrinsicElementPicker;
52
+ 'picker-view': MiniProgramIntrinsicElementPickerView;
53
+ 'picker-view-column': MiniProgramIntrinsicElementPickerViewColumn;
54
+ progress: MiniProgramIntrinsicElementProgress;
55
+ radio: MiniProgramIntrinsicElementRadio;
56
+ 'radio-group': MiniProgramIntrinsicElementRadioGroup;
57
+ 'rich-text': MiniProgramIntrinsicElementRichText;
58
+ 'scroll-view': MiniProgramIntrinsicElementScrollView;
59
+ slider: MiniProgramIntrinsicElementSlider;
60
+ swiper: MiniProgramIntrinsicElementSwiper;
61
+ 'swiper-item': MiniProgramIntrinsicElementSwiperItem;
62
+ switch: MiniProgramIntrinsicElementSwitch;
63
+ text: MiniProgramIntrinsicElementText;
64
+ textarea: MiniProgramIntrinsicElementTextarea;
65
+ video: MiniProgramIntrinsicElementVideo;
66
+ view: MiniProgramIntrinsicElementView;
67
+ 'web-view': MiniProgramIntrinsicElementWebView;
68
+ }
69
+ //#endregion
70
+ export type { MiniProgramIntrinsicElementBaseAttributes };
package/dist/package.mjs CHANGED
@@ -1 +1 @@
1
- var e=`7.0.4`;export{e as version};
1
+ var e=`7.1.0`;export{e as version};
@@ -0,0 +1,40 @@
1
+ //#region src/reactivity/asyncDerivation.d.ts
2
+ /** 异步派生状态的生命周期阶段。 */
3
+ export type AsyncDerivationStatus = 'idle' | 'initial-pending' | 'ready' | 'refreshing' | 'error' | 'disposed';
4
+ /** 传给异步加载函数的当前任务上下文。 */
5
+ export interface AsyncDerivationContext {
6
+ readonly signal: AbortSignal;
7
+ }
8
+ /** `useAsyncDerivation()` 的配置。 */
9
+ export interface UseAsyncDerivationOptions {
10
+ immediate?: boolean;
11
+ }
12
+ type AsyncDerivationIdleState<TStatus extends 'idle' | 'initial-pending' | 'disposed'> = Readonly<{
13
+ status: TStatus;
14
+ value: undefined;
15
+ error: undefined;
16
+ }>;
17
+ type AsyncDerivationReadyState<T, TStatus extends 'ready' | 'refreshing'> = Readonly<{
18
+ status: TStatus;
19
+ value: T;
20
+ error: undefined;
21
+ }>;
22
+ type AsyncDerivationErrorState<T> = Readonly<{
23
+ status: 'error';
24
+ value: T | undefined;
25
+ error: unknown;
26
+ }>;
27
+ /** 模板可观察的只读异步派生状态。 */
28
+ export type AsyncDerivationState<T> = AsyncDerivationIdleState<'idle'> | AsyncDerivationIdleState<'initial-pending'> | AsyncDerivationIdleState<'disposed'> | AsyncDerivationReadyState<T, 'ready'> | AsyncDerivationReadyState<T, 'refreshing'> | AsyncDerivationErrorState<T>;
29
+ type AsyncDerivationControls = Readonly<{
30
+ refresh: () => Promise<void>;
31
+ dispose: () => void;
32
+ }>;
33
+ /** 异步派生状态及其非枚举控制方法。 */
34
+ export type AsyncDerivation<T> = AsyncDerivationState<T> & AsyncDerivationControls;
35
+ /**
36
+ * 创建面向静态 WXML 数据绑定的异步派生状态。
37
+ * 加载错误通过 `status` 与 `error` 暴露,`refresh()` 始终正常完成。
38
+ */
39
+ export declare function useAsyncDerivation<T>(loader: (context: AsyncDerivationContext) => T | PromiseLike<T>, options?: UseAsyncDerivationOptions): AsyncDerivation<T>;
40
+ //#endregion
@@ -0,0 +1 @@
1
+ import{batch as e,onScopeDispose as t,runWithoutTracking as n}from"./core.mjs";import{reactive as r}from"./reactive.mjs";import{readonly as i}from"./readonly.mjs";import{AbortControllerPolyfill as a}from"@wevu/web-apis/abort";const o=Promise.resolve();function s(){let e;return{promise:new Promise(t=>{e=t}),resolve:e}}function c(c,l={}){var u;let d={status:`idle`,value:void 0,error:void 0},f=r(d),p,m,h=0,g=!1,_=!1;function v(e){if(_||e!==h)return;let t=m;m=void 0,t==null||t.resolve()}function y(t,n){if(!(_||t!==h)){p=void 0,g=!0;try{e(()=>{f.status=`ready`,f.value=n,f.error=void 0})}finally{v(t)}}}function b(t,n){if(!(_||t!==h)){p=void 0;try{e(()=>{f.status=`error`,f.error=n,g||(f.value=void 0)})}finally{v(t)}}}function x(){var t;if(_)return o;let r=(t=m)==null?s():t;m=r;let i=++h,l=p,u=new(typeof AbortController==`function`?AbortController:a);p=u;try{l==null||l.abort()}catch(e){}return _||i!==h||(e(()=>{f.status=g?`refreshing`:`initial-pending`,f.error=void 0}),_||i!==h)||n(()=>{new Promise(e=>{e(c({signal:u.signal}))}).then(e=>y(i,e),e=>b(i,e)).catch(e=>{setTimeout(()=>{throw e},0)})}),r.promise}function S(){if(_)return;_=!0,h+=1;let t=p;p=void 0;try{t==null||t.abort()}catch(e){}try{e(()=>{f.status=`disposed`,f.value=void 0,f.error=void 0})}finally{g=!1;let e=m;m=void 0,e==null||e.resolve()}}Object.defineProperties(d,{refresh:{value:x},dispose:{value:S}});let C=i(f);return t(S),((u=l.immediate)==null||u)&&x(),C}export{c as useAsyncDerivation};
@@ -1 +1 @@
1
- import{effect as e,track as t,trigger as n}from"./core.mjs";import{markAsRef as r}from"./ref.mjs";function i(i){let a,o;typeof i==`function`?(a=i,o=()=>{throw Error(`计算属性是只读的`)}):(a=i.get,o=i.set);let s,c=!0,l,u={get value(){return c&&(s=l(),c=!1),t(u,`value`),s},set value(e){o(e)}};return r(u),l=e(a,{lazy:!0,scheduler:()=>{c||(c=!0,n(u,`value`))}}),u}export{i as computed};
1
+ import{createComputedEffect as e,track as t,trigger as n}from"./core.mjs";import{markAsRef as r}from"./ref.mjs";function i(i){let a,o;typeof i==`function`?(a=i,o=()=>{throw Error(`计算属性是只读的`)}):(a=i.get,o=i.set);let s,c=!0,l,u={get value(){return c&&(s=l(),c=!1),t(u,`value`),s},set value(e){o(e)}};return r(u),l=e(a,{lazy:!0,scheduler:()=>{c||(c=!0,n(u,`value`))}}),u}export{i as computed};
@@ -8,6 +8,7 @@ export interface ReactiveEffect<T = any> {
8
8
  active: boolean;
9
9
  _running: boolean;
10
10
  _fn: () => T;
11
+ _computed?: boolean;
11
12
  onStop?: () => void;
12
13
  }
13
14
  export declare function startBatch(): void;
@@ -1 +1 @@
1
- import{queueJob as e}from"../scheduler.mjs";import t from"../_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/defineProperty.mjs";const n=new WeakMap;let r=null;const i=[];let a=0;const o=new Set;function s(){a++}function c(){for(;o.size;){let e=[...o];o.clear();for(let t of e)t()}}function l(){a!==0&&(a--,a===0&&c())}function u(e){s();try{return e()}finally{l()}}function d(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function f(e){var t;e.active&&(e.active=!1,d(e),(t=e.onStop)==null||t.call(e))}let p;var m=class{constructor(e=!1){if(this.detached=e,t(this,`active`,!0),t(this,`effects`,[]),t(this,`cleanups`,[]),t(this,`parent`,void 0),t(this,`scopes`,void 0),!e&&p){var n;this.parent=p,((n=p).scopes||(n.scopes=[])).push(this)}}run(e){if(!this.active)return;let t=p;p=this;try{return e()}finally{p=t}}stop(){var e;if(this.active){this.active=!1;for(let e of this.effects)f(e);this.effects.length=0;for(let e of this.cleanups)e();if(this.cleanups.length=0,this.scopes){for(let e of this.scopes)e.stop();this.scopes.length=0}if((e=this.parent)!=null&&e.scopes){let e=this.parent.scopes.indexOf(this);e>=0&&this.parent.scopes.splice(e,1)}this.parent=void 0}}};function h(e=!1){return new m(e)}function g(){return p}function _(e){p!=null&&p.active&&p.cleanups.push(e)}function v(e){p!=null&&p.active&&p.effects.push(e)}function y(e,t={}){let n=function(){if(!n.active||n._running)return e();d(n);try{return n._running=!0,i.push(n),r=n,e()}finally{var t;i.pop(),r=(t=i[i.length-1])==null?null:t,n._running=!1}};return n.deps=[],n.scheduler=t.scheduler,n.onStop=t.onStop,n.active=!0,n._running=!1,n._fn=e,n}function b(e,t={}){let n=y(e,t);return v(n),t.lazy||n(),n}function x(e,t){if(!r)return;let i=n.get(e);i||(i=new Map,n.set(e,i));let a=i.get(t);a||(a=new Set,i.set(t,a)),a.has(r)||(a.add(r),r.deps.push(a))}function S(e){if(e.scheduler){e.scheduler();return}if(a>0){o.add(e);return}e()}function C(e,t){let i=n.get(e);if(!i)return;let a=i.get(t);if(!a)return;let o=new Set;a.forEach(e=>{e!==r&&o.add(e)}),o.forEach(S)}function w(e){r&&(e.has(r)||(e.add(r),r.deps.push(e)))}function T(e){new Set(e).forEach(S)}export{u as batch,y as createReactiveEffect,b as effect,h as effectScope,l as endBatch,g as getCurrentScope,_ as onScopeDispose,e as queueJob,s as startBatch,f as stop,x as track,w as trackEffects,C as trigger,T as triggerEffects};
1
+ import{queueJob as e}from"../scheduler.mjs";import t from"../_virtual/_@oxc-project_runtime@0.149.0/helpers/esm/defineProperty.mjs";const n=new WeakMap;let r=null;const i=[];let a=!0,o,s=0,c=!1;const l=new Set,u=new Set;function d(e){if(e.active){if(e.scheduler){let t=o;o=e._scope;try{e.scheduler()}finally{o=t}return}e()}}function f(e){if(s>0||c){u.add(e);return}u.delete(e),e()}function p(){s++}function m(e){let t=e.values().next();if(!t.done)return e.delete(t.value),t.value}function h(){let e,t=!1;c=!0;try{for(;l.size;){let n=m(l);if(n)try{d(n)}catch(n){t||(e=n,t=!0)}}}finally{c=!1}for(;u.size;){let n=u.values().next().value;u.delete(n);try{n()}catch(n){t||(e=n,t=!0)}}if(t)throw e}function g(){s!==0&&(s--,s===0&&!c&&h())}function _(e){p();try{return e()}finally{g()}}function v(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function y(e){var t;e.active&&(e.active=!1,v(e),(t=e.onStop)==null||t.call(e))}var b=class{constructor(e=!1){if(this.detached=e,t(this,`active`,!0),t(this,`effects`,[]),t(this,`cleanups`,[]),t(this,`parent`,void 0),t(this,`scopes`,void 0),!e&&o){var n;if(!o.active){this.active=!1;return}this.parent=o,((n=o).scopes||(n.scopes=[])).push(this)}}run(e){if(!this.active)return;let t=o;o=this;try{return e()}finally{o=t}}stop(){if(!this.active)return;this.active=!1;let e=o;o=this;let t,n=!1,r=e=>{n||(t=e,n=!0)};try{let e=this.effects.splice(0);for(let t of e)try{y(t)}catch(e){r(e)}let t=this.cleanups.splice(0);for(let e of t)try{e()}catch(e){r(e)}let n=this.scopes;if(this.scopes=void 0,n){for(let e of n)try{e.stop()}catch(e){r(e)}n.length=0}}finally{var i;if((i=this.parent)!=null&&i.scopes){let e=this.parent.scopes.indexOf(this);e>=0&&this.parent.scopes.splice(e,1)}this.parent=void 0,o=e}if(n)throw t}};function x(e=!1){return new b(e)}function S(){return o}function C(e){o!=null&&o.active&&o.cleanups.push(e)}function w(e){let t=a;a=!1;try{return e()}finally{a=t}}function T(e){if(o){if(o.active){o.effects.push(e);return}y(e)}}function E(e,t={}){let n=function(){if(!n.active||n._running)return e();v(n);let t=o;o=n._scope;let s=a;try{return a=!0,n._running=!0,i.push(n),r=n,e()}finally{var c;i.pop(),r=(c=i[i.length-1])==null?null:c,n._running=!1,o=t,a=s}};return n.deps=[],n.scheduler=t.scheduler,n.onStop=t.onStop,n.active=!0,n._running=!1,n._fn=e,n._scope=o,n}function D(e,t,n){let r=E(e,t);return r._computed=n,T(r),t.lazy||r(),r}function O(e,t={}){return D(e,t,!1)}function k(e,t={}){return D(e,t,!0)}function A(e,t){if(!a||!r)return;let i=n.get(e);i||(i=new Map,n.set(e,i));let o=i.get(t);o||(o=new Set,i.set(t,o)),o.has(r)||(o.add(r),r.deps.push(o))}function j(e){if(!e._running){if(e._computed){d(e);return}if(s>0||c){l.add(e);return}d(e)}}function M(e,t){let i=n.get(e);if(!i)return;let a=i.get(t);if(!a)return;let o=new Set;a.forEach(e=>{e!==r&&o.add(e)}),o.forEach(j)}function N(e){a&&r&&(e.has(r)||(e.add(r),r.deps.push(e)))}function P(e){new Set(e).forEach(j)}export{_ as batch,k as createComputedEffect,E as createReactiveEffect,O as effect,x as effectScope,g as endBatch,S as getCurrentScope,C as onScopeDispose,f as queueBatchCallback,e as queueJob,w as runWithoutTracking,p as startBatch,y as stop,A as track,N as trackEffects,M as trigger,P as triggerEffects};
@@ -1,3 +1,4 @@
1
+ import { AsyncDerivation, AsyncDerivationContext, AsyncDerivationState, AsyncDerivationStatus, UseAsyncDerivationOptions, useAsyncDerivation } from "./asyncDerivation.mjs";
1
2
  import { CustomRefFactory, CustomRefOptions, CustomRefSource, MaybeRef, MaybeRefOrGetter, Ref, ShallowRef, customRef, isRef, ref, toValue, unref } from "./ref.mjs";
2
3
  import { ComputedGetter, ComputedRef, ComputedSetter, WritableComputedOptions, WritableComputedRef, computed } from "./computed.mjs";
3
4
  import { EffectScope, batch, effect, effectScope, endBatch, getCurrentScope, onScopeDispose, startBatch, stop } from "./core.mjs";
@@ -12,4 +13,4 @@ import { ToRefs, toRef, toRefs } from "./toRefs.mjs";
12
13
  import { traverse } from "./traverse.mjs";
13
14
  import { MapSources, MaybeUndefined, MultiWatchSources, OnCleanup, WatchCallback, WatchEffect, WatchEffectOptions, WatchMultiSources, WatchOptions, WatchScheduler, WatchSource, WatchSourceValue, WatchSources, WatchStopHandle, getDeepWatchStrategy, setDeepWatchStrategy } from "./watch/types.mjs";
14
15
  import { watch, watchEffect, watchPostEffect, watchSyncEffect } from "./watch.mjs";
15
- export { type ComputedGetter, type ComputedRef, type ComputedSetter, type CustomRefFactory, type CustomRefOptions, type CustomRefSource, type EffectScope, type MapSources, type MaybeRef, type MaybeRefOrGetter, type MaybeUndefined, type MultiWatchSources, type MutationKind, type MutationOp, type MutationRecord, type OnCleanup, type PrelinkReactiveTreeOptions, type Ref, type ShallowRef, type ToRefs, type WatchCallback, type WatchEffect, type WatchEffectOptions, type WatchMultiSources, type WatchOptions, type WatchScheduler, type WatchSource, type WatchSourceValue, type WatchSources, type WatchStopHandle, type WritableComputedOptions, type WritableComputedRef, addMutationRecorder, batch, computed, customRef, effect, effectScope, endBatch, getCurrentScope, getDeepWatchStrategy, getReactiveVersion, isProxy, isRaw, isReactive, isReadonly, isRef, isShallowReactive, isShallowRef, markRaw, onScopeDispose, prelinkReactiveTree, reactive, readonly, ref, removeMutationRecorder, setDeepWatchStrategy, shallowReactive, shallowReadonly, shallowRef, startBatch, stop, toRaw, toRef, toRefs, toValue, touchReactive, traverse, triggerRef, unref, watch, watchEffect, watchPostEffect, watchSyncEffect };
16
+ export { type AsyncDerivation, type AsyncDerivationContext, type AsyncDerivationState, type AsyncDerivationStatus, type ComputedGetter, type ComputedRef, type ComputedSetter, type CustomRefFactory, type CustomRefOptions, type CustomRefSource, type EffectScope, type MapSources, type MaybeRef, type MaybeRefOrGetter, type MaybeUndefined, type MultiWatchSources, type MutationKind, type MutationOp, type MutationRecord, type OnCleanup, type PrelinkReactiveTreeOptions, type Ref, type ShallowRef, type ToRefs, type UseAsyncDerivationOptions, type WatchCallback, type WatchEffect, type WatchEffectOptions, type WatchMultiSources, type WatchOptions, type WatchScheduler, type WatchSource, type WatchSourceValue, type WatchSources, type WatchStopHandle, type WritableComputedOptions, type WritableComputedRef, addMutationRecorder, batch, computed, customRef, effect, effectScope, endBatch, getCurrentScope, getDeepWatchStrategy, getReactiveVersion, isProxy, isRaw, isReactive, isReadonly, isRef, isShallowReactive, isShallowRef, markRaw, onScopeDispose, prelinkReactiveTree, reactive, readonly, ref, removeMutationRecorder, setDeepWatchStrategy, shallowReactive, shallowReadonly, shallowRef, startBatch, stop, toRaw, toRef, toRefs, toValue, touchReactive, traverse, triggerRef, unref, useAsyncDerivation, watch, watchEffect, watchPostEffect, watchSyncEffect };
@@ -5,7 +5,7 @@ import { Ref } from "./ref.mjs";
5
5
  * 选择浅层而非深层递归,是为了在小程序环境中保持实现和运行时开销最小,
6
6
  * 仅阻止直接属性写入/删除,嵌套对象仍按原样透传。
7
7
  */
8
- export declare function readonly<T extends object>(target: T): T;
8
+ export declare function readonly<T extends object>(target: T): Readonly<T>;
9
9
  export declare function readonly<T>(target: Ref<T>): Readonly<Ref<T>>;
10
10
  /**
11
11
  * 与 Vue 3 的 `shallowReadonly()` 对齐。
@@ -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 +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};
@@ -1 +1 @@
1
- import{nextTick as e}from"../../scheduler.mjs";import{toRaw as t}from"../../reactivity/reactive/shared.mjs";import{isRef as n,ref as r}from"../../reactivity/ref.mjs";import{hasOwn as i}from"../../utils.mjs";import{setComputedValue as a}from"../internal.mjs";import{normalizeEmitEventName as o,normalizeEmitPayload as s}from"../emit.mjs";import{isNativeBridgeMethod as c,markNativeBridgeMethod as l}from"../nativeBridge.mjs";import{createComputedAccessors as u}from"./computed.mjs";import{WEVU_COMPONENT_NAME_KEY as d,WEVU_INLINE_MAP_KEY as f,WEVU_NATIVE_INSTANCE_KEY as p,WEVU_PARENT_INSTANCE_KEY as m,WEVU_PROPS_KEY as h,WEVU_RESOLVE_PUBLIC_INSTANCE_METHOD as g,WEVU_RUNTIME_APP_KEY as _,WEVU_RUNTIME_KEY as v}from"@weapp-core/constants";function y(y){let{state:b,setupState:x,computedDefs:S,methodDefs:C,appConfig:w,includeComputed:T,setDataStrategy:E}=y,D={},{computedRefs:O,computedSetters:k,dirtyComputedKeys:A,createTrackedComputed:j,computedProxy:M}=u({includeComputed:T,setDataStrategy:E}),N=r(0),P=Object.create(null),F=(e,n)=>{let r=t(e),i=r[v],a=i==null?void 0:i.proxy,o=(e,t)=>{let n=e[t];return c(n)},s=t=>!(!t||typeof t!=`object`||t===e||t===n||t===a||o(t,`triggerEvent`)||o(t,`createSelectorQuery`)||o(t,`createIntersectionObserver`)||o(t,`setData`)),l=r[p];if(s(l))return l;let u=i==null?void 0:i.instance;if(s(u))return u},I=e=>{if(i(D,e))return;let t=(...t)=>{let n=F(b,b);if(!n)return;let r=Reflect.get(n,e);if(typeof r==`function`)return r.apply(n,t)};l(t),D[e]=t},L=(e,t)=>{let n=new Set,r=e;for(;r&&!n.has(r);){var a;n.add(r);let e=(a=r[_])==null||(a=a.config)==null?void 0:a.globalProperties;if(e&&i(e,t))return{found:!0,value:e[t]};r=r[m]}let o=typeof globalThis<`u`?globalThis.getApp:void 0;if(typeof o==`function`)try{var s;let e=o(),n=e==null||(s=e[_])==null||(s=s.config)==null?void 0:s.globalProperties;if(n&&i(n,t))return{found:!0,value:n[t]}}catch(e){}return{found:!1,value:void 0}},R=e=>{let t=e&&Reflect.get(e,`selectOwnerComponent`);if(typeof t==`function`)try{var n,r,i,a;let o=t.call(e);if(!o||typeof o!=`object`)return;let s=Reflect.get(o,g);if(typeof s==`function`){let e=s.call(o);if(e)return e}return(n=(r=(i=o[v])==null?void 0:i.proxy)==null?(a=o.__wevu)==null?void 0:a.proxy:r)==null?o:n}catch(e){return}},z=new Proxy(b,{get(n,r,a){if(typeof r==`string`){if(N.value,i(x,r))return Reflect.get(x,r,a);if(r===`props`){let e=n[h];if(e&&typeof e==`object`)return e}if(r===`$props`){let e=n[h];if(e&&typeof e==`object`)return e}let p=n[h];if(p&&typeof p==`object`&&i(p,r))return Reflect.get(p,r);if(r===`data`||r===`$state`)return b;if(r===`$computed`)return M;if(r===`$emit`)return(e,...t)=>{let r=F(n,a),i=r&&Reflect.get(r,`triggerEvent`);if(typeof i!=`function`)return;let{detail:c,options:l}=s(t);return i.call(r,o(e),c,l)};if(r===`$nextTick`)return t=>t?e(()=>t.call(z)):e();if(r===`$set`)return(e,t,n)=>(Reflect.set(e,t,n),n);if(r===`$delete`)return(e,t)=>Reflect.deleteProperty(e,t);if(r===`$slots`){var c;return(c=t(n).$slots)==null?Object.freeze(Object.create(null)):c}if(r===`$refs`){var l;return(l=t(n).$refs)==null?Object.create(null):l}if(r===`$parent`)return R(F(n,a));if(r===`$options`){var u,f;let e=F(n,a);return{name:(u=(f=e==null?void 0:e[d])==null?e==null?void 0:e.name:f)==null?e==null?void 0:e.is:u}}if(i(P,r))return Reflect.get(P,r);if(i(D,r))return D[r];if(O[r])return O[r].value;if(i(w.globalProperties,r))return w.globalProperties[r];let m=L(F(n,a),r);if(m.found)return m.value}if(!Reflect.has(n,r)){let e=F(n,a);if(e&&Reflect.has(e,r)){let t=Reflect.get(e,r);return typeof t==`function`?t.bind(e):t}}let p=Reflect.get(n,r,a);return typeof r==`string`&&i(x,r)?Reflect.get(x,r,a):p},set(e,t,r,o){if(typeof t==`string`&&O[t])return a(k,t,r),!0;if(i(x,t)){let e=Reflect.get(x,t,o);return n(e)&&!n(r)?(e.value=r,!0):Reflect.set(x,t,r,o)}if(i(P,t))return Reflect.set(P,t,r);if(Reflect.has(e,t)){var s;let a=Reflect.get(e,t,o);return n(a)&&!n(r)?(a.value=r,!0):i((s=e[h])==null?{}:s,t)?Reflect.set(x,t,r,o):Reflect.set(e,t,r,o)}return Reflect.set(P,t,r)},has(e,t){if(t===`data`||t===`$emit`||t===`$nextTick`||t===`$set`||t===`$delete`||t===`$slots`||t===`$refs`||t===`$parent`||t===`$options`||typeof t==`string`&&(i(x,t)||O[t]||i(D,t))||i(P,t))return!0;let n=F(e,e);return typeof t==`string`&&L(n,t).found||n&&Reflect.has(n,t)?!0:Reflect.has(e,t)},ownKeys(e){let t=new Set;return Reflect.ownKeys(e).forEach(e=>{t.add(e)}),Reflect.ownKeys(x).forEach(e=>{t.add(e)}),Reflect.ownKeys(P).forEach(e=>t.add(e)),Object.keys(D).forEach(e=>t.add(e)),Object.keys(O).forEach(e=>t.add(e)),[...t]},getOwnPropertyDescriptor(e,t){if(typeof t==`string`&&i(x,t))return Object.getOwnPropertyDescriptor(x,t);if(i(P,t))return Object.getOwnPropertyDescriptor(P,t);if(Reflect.has(e,t))return Object.getOwnPropertyDescriptor(e,t);if(typeof t==`string`){if(t===`data`)return{configurable:!0,enumerable:!1,get(){return b}};if(O[t])return{configurable:!0,enumerable:!0,get(){return O[t].value},set(e){a(k,t,e)}};if(i(D,t))return{configurable:!0,enumerable:!1,value:D[t]}}}});return Object.keys(C).forEach(e=>{let t=C[e];if(typeof t==`function`){D[e]=(...e)=>t.apply(z,e);return}e===f&&t&&typeof t==`object`&&(D[e]=t)}),I(`triggerEvent`),I(`createSelectorQuery`),I(`createIntersectionObserver`),I(`setData`),Object.keys(S).forEach(e=>{let t=S[e];if(typeof t==`function`)O[e]=j(e,()=>t.call(z));else{var n,r;let i=(n=t.get)==null?void 0:n.bind(z);if(!i)throw Error(`计算属性 "${e}" 需要提供 getter`);let a=(r=t.set)==null?void 0:r.bind(z);a?(k[e]=a,O[e]=j(e,i,a)):O[e]=j(e,i)}}),{boundMethods:D,computedRefs:O,computedSetters:k,dirtyComputedKeys:A,computedProxy:M,publicInstance:z,touchSetupMethodsVersion(){N.value+=1}}}export{y as createRuntimeContext};
1
+ import{nextTick as e}from"../../scheduler.mjs";import{toRaw as t}from"../../reactivity/reactive/shared.mjs";import{isRef as n,ref as r}from"../../reactivity/ref.mjs";import{hasOwn as i}from"../../utils.mjs";import{setComputedValue as a}from"../internal.mjs";import{normalizeEmitEventName as o,normalizeEmitPayload as s}from"../emit.mjs";import{isNativeBridgeMethod as c,markNativeBridgeMethod as l}from"../nativeBridge.mjs";import{createComputedAccessors as u}from"./computed.mjs";import{WEVU_COMPONENT_NAME_KEY as d,WEVU_HOST_COMMIT_PROMISE_KEY as f,WEVU_INLINE_MAP_KEY as p,WEVU_NATIVE_INSTANCE_KEY as m,WEVU_PARENT_INSTANCE_KEY as h,WEVU_PROPS_KEY as g,WEVU_RESOLVE_PUBLIC_INSTANCE_METHOD as _,WEVU_RUNTIME_APP_KEY as v,WEVU_RUNTIME_KEY as y}from"@weapp-core/constants";function b(b){let{state:x,setupState:S,computedDefs:C,methodDefs:w,appConfig:T,includeComputed:E,setDataStrategy:D}=b,O={},{computedRefs:k,computedSetters:A,dirtyComputedKeys:j,createTrackedComputed:M,computedProxy:N}=u({includeComputed:E,setDataStrategy:D}),P=r(0),F=Object.create(null),I=(e,n)=>{let r=t(e),i=r[y],a=i==null?void 0:i.proxy,o=(e,t)=>{let n=e[t];return c(n)},s=t=>!(!t||typeof t!=`object`||t===e||t===n||t===a||o(t,`triggerEvent`)||o(t,`createSelectorQuery`)||o(t,`createIntersectionObserver`)||o(t,`setData`)),l=r[m];if(s(l))return l;let u=i==null?void 0:i.instance;if(s(u))return u},L=e=>{if(i(O,e))return;let t=(...t)=>{let n=I(x,x);if(!n)return;let r=Reflect.get(n,e);if(typeof r==`function`)return r.apply(n,t)};l(t),O[e]=t},R=(e,t)=>{let n=new Set,r=e;for(;r&&!n.has(r);){var a;n.add(r);let e=(a=r[v])==null||(a=a.config)==null?void 0:a.globalProperties;if(e&&i(e,t))return{found:!0,value:e[t]};r=r[h]}let o=typeof globalThis<`u`?globalThis.getApp:void 0;if(typeof o==`function`)try{var s;let e=o(),n=e==null||(s=e[v])==null||(s=s.config)==null?void 0:s.globalProperties;if(n&&i(n,t))return{found:!0,value:n[t]}}catch(e){}return{found:!1,value:void 0}},z=e=>{let t=e&&Reflect.get(e,`selectOwnerComponent`);if(typeof t==`function`)try{var n,r,i,a;let o=t.call(e);if(!o||typeof o!=`object`)return;let s=Reflect.get(o,_);if(typeof s==`function`){let e=s.call(o);if(e)return e}return(n=(r=(i=o[y])==null?void 0:i.proxy)==null?(a=o.__wevu)==null?void 0:a.proxy:r)==null?o:n}catch(e){return}},B=new Proxy(x,{get(n,r,a){if(typeof r==`string`){if(P.value,i(S,r))return Reflect.get(S,r,a);if(r===`props`){let e=n[g];if(e&&typeof e==`object`)return e}if(r===`$props`){let e=n[g];if(e&&typeof e==`object`)return e}let m=n[g];if(m&&typeof m==`object`&&i(m,r))return Reflect.get(m,r);if(r===`data`||r===`$state`)return x;if(r===`$computed`)return N;if(r===`$emit`)return(e,...t)=>{let r=I(n,a),i=r&&Reflect.get(r,`triggerEvent`);if(typeof i!=`function`)return;let{detail:c,options:l}=s(t);return i.call(r,o(e),c,l)};if(r===`$nextTick`)return async t=>{await e();let r=I(n,a),i=r&&Reflect.get(r,f);if(i&&(typeof i==`object`||typeof i==`function`)&&`then`in i&&typeof i.then==`function`&&await i,t)return t.call(B)};if(r===`$set`)return(e,t,n)=>(Reflect.set(e,t,n),n);if(r===`$delete`)return(e,t)=>Reflect.deleteProperty(e,t);if(r===`$slots`){var c;return(c=t(n).$slots)==null?Object.freeze(Object.create(null)):c}if(r===`$refs`){var l;return(l=t(n).$refs)==null?Object.create(null):l}if(r===`$parent`)return z(I(n,a));if(r===`$options`){var u,p;let e=I(n,a);return{name:(u=(p=e==null?void 0:e[d])==null?e==null?void 0:e.name:p)==null?e==null?void 0:e.is:u}}if(i(F,r))return Reflect.get(F,r);if(i(O,r))return O[r];if(k[r])return k[r].value;if(i(T.globalProperties,r))return T.globalProperties[r];let h=R(I(n,a),r);if(h.found)return h.value}if(!Reflect.has(n,r)){let e=I(n,a);if(e&&Reflect.has(e,r)){let t=Reflect.get(e,r);return typeof t==`function`?t.bind(e):t}}let m=Reflect.get(n,r,a);return typeof r==`string`&&i(S,r)?Reflect.get(S,r,a):m},set(e,t,r,o){if(typeof t==`string`&&k[t])return a(A,t,r),!0;if(i(S,t)){let e=Reflect.get(S,t,o);return n(e)&&!n(r)?(e.value=r,!0):Reflect.set(S,t,r,o)}if(i(F,t))return Reflect.set(F,t,r);if(Reflect.has(e,t)){var s;let a=Reflect.get(e,t,o);return n(a)&&!n(r)?(a.value=r,!0):i((s=e[g])==null?{}:s,t)?Reflect.set(S,t,r,o):Reflect.set(e,t,r,o)}return Reflect.set(F,t,r)},has(e,t){if(t===`data`||t===`$emit`||t===`$nextTick`||t===`$set`||t===`$delete`||t===`$slots`||t===`$refs`||t===`$parent`||t===`$options`||typeof t==`string`&&(i(S,t)||k[t]||i(O,t))||i(F,t))return!0;let n=I(e,e);return typeof t==`string`&&R(n,t).found||n&&Reflect.has(n,t)?!0:Reflect.has(e,t)},ownKeys(e){let t=new Set;return Reflect.ownKeys(e).forEach(e=>{t.add(e)}),Reflect.ownKeys(S).forEach(e=>{t.add(e)}),Reflect.ownKeys(F).forEach(e=>t.add(e)),Object.keys(O).forEach(e=>t.add(e)),Object.keys(k).forEach(e=>t.add(e)),[...t]},getOwnPropertyDescriptor(e,t){if(typeof t==`string`&&i(S,t))return Object.getOwnPropertyDescriptor(S,t);if(i(F,t))return Object.getOwnPropertyDescriptor(F,t);if(Reflect.has(e,t))return Object.getOwnPropertyDescriptor(e,t);if(typeof t==`string`){if(t===`data`)return{configurable:!0,enumerable:!1,get(){return x}};if(k[t])return{configurable:!0,enumerable:!0,get(){return k[t].value},set(e){a(A,t,e)}};if(i(O,t))return{configurable:!0,enumerable:!1,value:O[t]}}}});return Object.keys(w).forEach(e=>{let t=w[e];if(typeof t==`function`){O[e]=(...e)=>t.apply(B,e);return}e===p&&t&&typeof t==`object`&&(O[e]=t)}),L(`triggerEvent`),L(`createSelectorQuery`),L(`createIntersectionObserver`),L(`setData`),Object.keys(C).forEach(e=>{let t=C[e];if(typeof t==`function`)k[e]=M(e,()=>t.call(B));else{var n,r;let i=(n=t.get)==null?void 0:n.bind(B);if(!i)throw Error(`计算属性 "${e}" 需要提供 getter`);let a=(r=t.set)==null?void 0:r.bind(B);a?(A[e]=a,k[e]=M(e,i,a)):k[e]=M(e,i)}}),{boundMethods:O,computedRefs:k,computedSetters:A,dirtyComputedKeys:j,computedProxy:N,publicInstance:B,touchSetupMethodsVersion(){P.value+=1}}}export{b as createRuntimeContext};
@@ -1 +1 @@
1
- function e(e){return e!==`patch`&&e!==`diff`}function t(t){if(t!==`off`)return n=>{if(t===`fallback`&&!e(n.reason))return;let r=typeof n.bytes==`number`?n.bytes:n.estimatedBytes,i=typeof r==`number`?`${r}B`:`unknown`,a=[`mode=${n.mode}`,`reason=${n.reason}`,`pending=${n.pendingPatchKeys}`,`keys=${n.payloadKeys}`,`bytes=${i}`];typeof n.mergedSiblingParents==`number`&&a.push(`mergedParents=${n.mergedSiblingParents}`),typeof n.computedDirtyKeys==`number`&&a.push(`computedDirty=${n.computedDirtyKeys}`),typeof n.flushCount==`number`&&a.push(`flushes=${n.flushCount}`),typeof n.windowMs==`number`&&a.push(`window=${n.windowMs}ms`),n.targetLabel&&a.push(`target=${n.targetLabel}`);let o=`[wevu:setData] ${a.join(` `)}`;if(e(n.reason)){console.warn(o);return}console.info(o)}}export{t as createDiagnosticsLogger};
1
+ function e(e){return e!==`patch`&&e!==`diff`}function t(t){if(t!==`off`)return n=>{var r;if(t===`fallback`&&!e(n.reason))return;let i=typeof n.bytes==`number`?n.bytes:n.estimatedBytes,a=typeof i==`number`?`${i}B`:`unknown`,o=[`mode=${n.mode}`,`reason=${n.reason}`,`pending=${n.pendingPatchKeys}`,`keys=${n.payloadKeys}`,`bytes=${a}`];if(typeof n.revision==`number`&&o.push(`revision=${n.revision}`),typeof n.committedRevision==`number`&&o.push(`committedRevision=${n.committedRevision}`),typeof n.mergedSiblingParents==`number`&&o.push(`mergedParents=${n.mergedSiblingParents}`),typeof n.computedDirtyKeys==`number`&&o.push(`computedDirty=${n.computedDirtyKeys}`),typeof n.flushCount==`number`&&o.push(`flushes=${n.flushCount}`),typeof n.windowMs==`number`&&o.push(`window=${n.windowMs}ms`),n.targetLabel&&o.push(`target=${n.targetLabel}`),(r=n.bindings)!=null&&r.length){let e=n.bindings.map(e=>{var t;let n=(t=e.sourceLocation)==null?void 0:t.start;return n?`${e.id}@${e.sourceFile}:${n.line}:${n.column}`:`${e.id}@${e.sourceFile}`});o.push(`bindings=${e.join(`,`)}`)}n.message&&o.push(`message=${n.message}`);let s=`[wevu:setData] ${o.join(` `)}`;if(e(n.reason)){console.warn(s);return}console.info(s)}}export{t as createDiagnosticsLogger};
@@ -1 +1 @@
1
- import{queueJob as e}from"../../scheduler.mjs";import{effect as t,stop as n}from"../../reactivity/core.mjs";import{addMutationRecorder as r,removeMutationRecorder as ee}from"../../reactivity/reactive/mutation.mjs";import{toRaw as te}from"../../reactivity/reactive/shared.mjs";import{clearPatchIndices as i,prelinkReactiveTree as a,touchReactive as o}from"../../reactivity/reactive/patch.mjs";import{shallowReactive as ne}from"../../reactivity/reactive/shallow.mjs";import{isReactive as s,reactive as c}from"../../reactivity/reactive.mjs";import{watch as l}from"../../reactivity/watch.mjs";import{hasOwn as u}from"../../utils.mjs";import{createBindModel as re}from"../bindModel.mjs";import{hasTrackableSetupBinding as ie,touchSetupBinding as ae}from"../setupTracking.mjs";import{createRuntimeContext as oe}from"./context.mjs";import{createDiagnosticsLogger as d}from"./diagnostics.mjs";import{createSetDataScheduler as se}from"./setData/scheduler.mjs";import{resolveSetDataOptions as ce}from"./setDataOptions.mjs";import{WEVU_ATTRS_KEY as le,WEVU_PROPS_DERIVED_KEYS_KEY as f,WEVU_PROPS_KEY as p,WEVU_SETUP_STATE_KEY as m}from"@weapp-core/constants";function h(e,t){let n=(()=>{e()});return n.stop=()=>n(),n.pause=()=>{var e;t==null||(e=t.pause)==null||e.call(t)},n.resume=()=>{var e;t==null||(e=t.resume)==null||e.call(t)},n}function g(e){return typeof e==`function`?e():e==null?{}:e}function _(_){let{data:v,resolvedComputed:ue,resolvedMethods:de,appConfig:fe,setDataOptions:pe}=_;return _=>{let y=g(v),b=_==null?void 0:_.__wevu_initialProps;if(y&&typeof y==`object`&&!u(y,p))try{Object.defineProperty(y,p,{value:ne(Object.create(null)),configurable:!0,enumerable:!1,writable:!1})}catch(e){}let x=y&&typeof y==`object`?y[p]:void 0;x&&typeof x==`object`&&b&&typeof b==`object`&&Object.assign(x,b);let S=c(y),C=c(Object.create(null)),w=_==null?void 0:_.__wevu_snapshotOmitKeys,me=!!(_!=null&&_.__wevu_deferInitialSnapshot),T=_==null?void 0:_.__wevu_initialSnapshot,E=_==null?void 0:_.__wevu_initialState,D=new Set(w instanceof Set||Array.isArray(w)?w:[]);if(y&&typeof y==`object`&&!u(y,m))try{Object.defineProperty(y,m,{value:C,configurable:!0,enumerable:!1,writable:!1})}catch(e){}if(y&&typeof y==`object`&&E&&typeof E==`object`)for(let[e,t]of Object.entries(E))D.has(e)||(y[e]=t);let he=ue,ge=de,O=!0,k=[],A=new Set;Object.keys(S).forEach(e=>{let t=S[e];ie(t)&&A.add(e)});let{includeComputed:j,setDataStrategy:M,maxPatchKeys:N,maxPayloadBytes:P,mergeSiblingThreshold:F,mergeSiblingMaxInflationRatio:I,mergeSiblingMaxParentBytes:L,mergeSiblingSkipArray:_e,computedCompare:ve,computedCompareMaxDepth:ye,computedCompareMaxKeys:be,prelinkMaxDepth:xe,prelinkMaxKeys:Se,debug:R,diagnostics:z,loopWarning:B,debugWhen:Ce,debugSampleRate:we,elevateTopKeyThreshold:Te,toPlainMaxDepth:Ee,toPlainMaxKeys:De,includeFunctions:Oe,functionPaths:ke,shouldIncludeKey:V}=ce(pe),H=d(z),U=z===`off`&&B?d(`fallback`):void 0,Ae=R||H||U?e=>{typeof R==`function`&&R(e),H==null||H(e),e.reason===`loopWarning`&&(U==null||U(e))}:void 0,je=z===`always`?`always`:Ce,{boundMethods:Me,computedRefs:W,computedSetters:Ne,dirtyComputedKeys:Pe,computedProxy:Fe,publicInstance:G,touchSetupMethodsVersion:K}=oe({state:S,setupState:C,computedDefs:he,methodDefs:ge,appConfig:fe,includeComputed:j,setDataStrategy:M}),q=_==null?{setData:()=>{}}:_,Ie=q.__wevu_targetLabel,J=te(S),Y,X=se({state:S,setupState:C,snapshotOmitKeys:D,computedRefs:W,dirtyComputedKeys:Pe,includeComputed:j,setDataStrategy:M,computedCompare:ve,computedCompareMaxDepth:ye,computedCompareMaxKeys:be,currentAdapter:q,shouldIncludeKey:V,maxPatchKeys:N,maxPayloadBytes:P,mergeSiblingThreshold:F,mergeSiblingMaxInflationRatio:I,mergeSiblingMaxParentBytes:L,mergeSiblingSkipArray:_e,elevateTopKeyThreshold:Te,toPlainMaxDepth:Ee,toPlainMaxKeys:De,includeFunctions:Oe,functionPaths:ke,debug:Ae,debugWhen:je,debugSampleRate:we,loopWarning:B,targetLabel:Ie,runTracker:()=>Y==null?void 0:Y(),isMounted:()=>O,initialSnapshot:T&&typeof T==`object`?T:void 0,initialState:E&&typeof E==`object`?E:void 0}),Z=()=>X.job(J),Q=e=>X.mutationRecorder(e,J);Y=t(()=>{o(S);let e=S[p];s(e)&&o(e);let t=S[le];s(t)&&o(t),A.forEach(e=>{var t;let n=(t=C[e])==null?S[e]:t;ae(n)})},{lazy:!0,scheduler:()=>e(Z)}),me||Z(),k.push(h(()=>n(Y))),M===`patch`&&(a(S,{shouldIncludeTopKey:V,maxDepth:xe,maxKeys:Se}),r(Q),k.push(h(()=>ee(Q))),k.push(h(()=>i(S))));function Le(e,t,n){let r=l(e,(e,n)=>t(e,n),n);return k.push(r),h(()=>{r();let e=k.indexOf(r);e>=0&&k.splice(e,1)},r)}let $={get state(){return S},get setupState(){return C},get proxy(){return G},get methods(){return Me},get computed(){return Fe},get adapter(){return q},bindModel:re(G,S,W,Ne,C),watch:Le,snapshot:()=>X.snapshot(),unmount:()=>{O&&(O=!1,k.forEach(e=>{try{e()}catch(e){}}),k.length=0)}};try{Object.defineProperty($,"__wevu_touchSetupMethodsVersion",{value:K,configurable:!0,enumerable:!1,writable:!1})}catch(e){$.__wevu_touchSetupMethodsVersion=K}try{Object.defineProperty($,"__wevu_flushSetupSnapshotSync",{value:Z,configurable:!0,enumerable:!1,writable:!1})}catch(e){$.__wevu_flushSetupSnapshotSync=Z}try{Object.defineProperty($,"__wevu_cloneLatestSnapshot",{value:X.cloneLatestSnapshot,configurable:!0,enumerable:!1,writable:!1})}catch(e){$.__wevu_cloneLatestSnapshot=X.cloneLatestSnapshot}try{Object.defineProperty($,"__wevu_trackSetupReactiveKey",{value:e=>{A.add(e)},configurable:!0,enumerable:!1,writable:!1})}catch(e){$.__wevu_trackSetupReactiveKey=e=>{A.add(e)}}try{Object.defineProperty($,f,{value:D,configurable:!0,enumerable:!1,writable:!1})}catch(e){$[f]=D}return $}}export{_ as createRuntimeMount};
1
+ import{queueJob as e}from"../../scheduler.mjs";import{effect as t,stop as n}from"../../reactivity/core.mjs";import{touchReactive as r}from"../../reactivity/reactive/patch.mjs";import{shallowReactive as i}from"../../reactivity/reactive/shallow.mjs";import{isReactive as a,reactive as o}from"../../reactivity/reactive.mjs";import{watch as ee}from"../../reactivity/watch.mjs";import{requireRuntimeCapability as s}from"../capabilities.mjs";import{hasOwn as c}from"../../utils.mjs";import{createBindModel as te}from"../bindModel.mjs";import{hasTrackableSetupBinding as ne,touchSetupBinding as re}from"../setupTracking.mjs";import{createRuntimeContext as ie}from"./context.mjs";import{createDiagnosticsLogger as l}from"./diagnostics.mjs";import{createSetDataScheduler as u}from"./setData/scheduler.mjs";import{resolveSetDataOptions as ae}from"./setDataOptions.mjs";import{WEVU_ATTRS_KEY as oe,WEVU_PROPS_DERIVED_KEYS_KEY as d,WEVU_PROPS_KEY as f,WEVU_SETUP_STATE_KEY as p}from"@weapp-core/constants";function m(e,t){let n=(()=>{e()});return n.stop=()=>n(),n.pause=()=>{var e;t==null||(e=t.pause)==null||e.call(t)},n.resume=()=>{var e;t==null||(e=t.resume)==null||e.call(t)},n}function se(e){return typeof e==`function`?e():e==null?{}:e}function h(h){let{data:ce,resolvedComputed:le,resolvedMethods:ue,appConfig:de,setDataOptions:g,bindingManifest:_}=h;return h=>{var v;(g==null?void 0:g.strategy)===`patch`&&s(`patchStrategy`,`createRuntimeMount(setData.strategy="patch")`);let y=se(ce),b=h==null?void 0:h.__wevu_initialProps;if(y&&typeof y==`object`&&!c(y,f))try{Object.defineProperty(y,f,{value:i(Object.create(null)),configurable:!0,enumerable:!1,writable:!1})}catch(e){}let x=y&&typeof y==`object`?y[f]:void 0;x&&typeof x==`object`&&b&&typeof b==`object`&&Object.assign(x,b);let S=o(y),C=o(Object.create(null)),w=h==null?void 0:h.__wevu_snapshotOmitKeys,fe=!!(h!=null&&h.__wevu_deferInitialSnapshot),T=h==null?void 0:h.__wevu_initialSnapshot,E=h==null?void 0:h.__wevu_initialState,D=new Set(w instanceof Set||Array.isArray(w)?w:[]);if(y&&typeof y==`object`&&!c(y,p))try{Object.defineProperty(y,p,{value:C,configurable:!0,enumerable:!1,writable:!1})}catch(e){}if(y&&typeof y==`object`&&E&&typeof E==`object`)for(let[e,t]of Object.entries(E))D.has(e)||(y[e]=t);let pe=le,me=ue,O=!0,k=[],A=new Set;Object.keys(S).forEach(e=>{let t=S[e];ne(t)&&A.add(e)});let{includeComputed:j,setDataStrategy:M,maxPatchKeys:N,maxPayloadBytes:P,mergeSiblingThreshold:F,mergeSiblingMaxInflationRatio:I,mergeSiblingMaxParentBytes:L,mergeSiblingSkipArray:R,computedCompare:z,computedCompareMaxDepth:he,computedCompareMaxKeys:ge,prelinkMaxDepth:_e,prelinkMaxKeys:ve,debug:B,diagnostics:V,loopWarning:H,debugWhen:ye,debugSampleRate:be,elevateTopKeyThreshold:xe,toPlainMaxDepth:Se,toPlainMaxKeys:Ce,includeFunctions:we,functionPaths:Te,shouldIncludeKey:Ee}=ae(g),U=l(V),W=V===`off`&&H?l(`fallback`):void 0,De=B||U||W?e=>{if(typeof B==`function`)try{B(e)}catch(e){}U==null||U(e),e.reason===`loopWarning`&&(W==null||W(e))}:void 0,Oe=V===`always`?`always`:ye,{boundMethods:ke,computedRefs:G,computedSetters:Ae,dirtyComputedKeys:je,computedProxy:Me,publicInstance:K,touchSetupMethodsVersion:q}=ie({state:S,setupState:C,computedDefs:pe,methodDefs:me,appConfig:de,includeComputed:j,setDataStrategy:M}),J=h==null?{setData:()=>{}}:h,Ne=J.__wevu_targetLabel,Y,X={state:S,setupState:C,snapshotOmitKeys:D,computedRefs:G,dirtyComputedKeys:je,includeComputed:j,setDataStrategy:M,computedCompare:z,computedCompareMaxDepth:he,computedCompareMaxKeys:ge,currentAdapter:J,shouldIncludeKey:Ee,maxPatchKeys:N,maxPayloadBytes:P,mergeSiblingThreshold:F,mergeSiblingMaxInflationRatio:I,mergeSiblingMaxParentBytes:L,mergeSiblingSkipArray:R,elevateTopKeyThreshold:xe,prelinkMaxDepth:_e,prelinkMaxKeys:ve,toPlainMaxDepth:Se,toPlainMaxKeys:Ce,includeFunctions:we,functionPaths:Te,debug:De,debugWhen:Oe,debugSampleRate:be,bindingManifest:_,loopWarning:H,targetLabel:Ne,runTracker:()=>Y==null?void 0:Y(),isMounted:()=>O,initialSnapshot:T&&typeof T==`object`?T:void 0,initialState:E&&typeof E==`object`?E:void 0},Z=M===`patch`?s(`patchStrategy`,`createRuntimeMount(setData.strategy="patch")`).createScheduler(X):u(X),Q=()=>Z.job();Y=t(()=>{r(S);let e=S[f];a(e)&&r(e);let t=S[oe];a(t)&&r(t),A.forEach(e=>{var t;let n=(t=C[e])==null?S[e]:t;re(n)})},{lazy:!0,scheduler:()=>e(Q)}),fe||Q(),k.push(m(()=>n(Y))),(v=Z.start)==null||v.call(Z),Z.dispose&&k.push(m(Z.dispose));function Pe(e,t,n){let r=ee(e,(e,n)=>t(e,n),n);return k.push(r),m(()=>{r();let e=k.indexOf(r);e>=0&&k.splice(e,1)},r)}let $={get state(){return S},get setupState(){return C},get proxy(){return K},get methods(){return ke},get computed(){return Me},get adapter(){return J},bindModel:te(K,S,G,Ae,C),watch:Pe,snapshot:()=>Z.snapshot(),unmount:()=>{var e;if(O){O=!1,(e=Z.dispose)==null||e.call(Z);try{var t;(t=J.__wevu_disposeSetData)==null||t.call(J)}catch(e){}k.forEach(e=>{try{e()}catch(e){}}),k.length=0}}};try{Object.defineProperty($,"__wevu_touchSetupMethodsVersion",{value:q,configurable:!0,enumerable:!1,writable:!1})}catch(e){$.__wevu_touchSetupMethodsVersion=q}try{Object.defineProperty($,"__wevu_flushSetupSnapshotSync",{value:Q,configurable:!0,enumerable:!1,writable:!1})}catch(e){$.__wevu_flushSetupSnapshotSync=Q}try{Object.defineProperty($,"__wevu_cloneDispatchedSnapshot",{value:Z.cloneLatestSnapshot,configurable:!0,enumerable:!1,writable:!1})}catch(e){$.__wevu_cloneDispatchedSnapshot=Z.cloneLatestSnapshot}try{Object.defineProperty($,"__wevu_trackSetupReactiveKey",{value:e=>{A.add(e)},configurable:!0,enumerable:!1,writable:!1})}catch(e){$.__wevu_trackSetupReactiveKey=e=>{A.add(e)}}try{Object.defineProperty($,d,{value:D,configurable:!0,enumerable:!1,writable:!1})}catch(e){$[d]=D}return $}}export{h as createRuntimeMount};
@@ -0,0 +1,12 @@
1
+ import { MiniProgramAdapter } from "../../types/miniprogram.mjs";
2
+ import "../../types.mjs";
3
+ //#region src/runtime/app/setData/commitTracker.d.ts
4
+ export type SetDataPayload = Record<string, unknown>;
5
+ export type SetDataAdapterSettlement = 'committed' | 'failed' | 'abandoned';
6
+ export type SetDataAdapterSettler = (settlement: SetDataAdapterSettlement, cause?: unknown) => void;
7
+ export interface CommitAwareSetDataAdapter extends MiniProgramAdapter {
8
+ __wevu_dispatchSetData?: (payload: SetDataPayload, settle: SetDataAdapterSettler) => void;
9
+ __wevu_reportSetDataError?: (error: Error) => void;
10
+ __wevu_disposeSetData?: () => void;
11
+ }
12
+ //#endregion
@@ -0,0 +1 @@
1
+ import{cloneSnapshotValue as e}from"./snapshot.mjs";const t=Promise.resolve();function n(e){return!(!e||typeof e!=`object`&&typeof e!=`function`||typeof e.then!=`function`)}function r(e){try{return e instanceof Error?e.message:String(e)}catch(e){return`<unprintable cause>`}}function i(e,t,n){let i=r(n),a=Error(`[wevu] setData commit failed (${e===`adapter`?`adapter failure`:`out-of-order completion`}, revision=${t.revision}, mode=${t.mode}, kind=${t.kind}): ${i}`);return a.cause=n,a}function a(e){let t=!1,r=!0,i=!1,a=!1,o=(n,r)=>{t||(t=!0,e.settle(n,r))},s=()=>{if(r){i=!0;return}a||e.completion===`callback`&&o(`committed`)};try{let t=e.invoke(s),c=n(t);if(a=c,r=!1,c){t.then(()=>o(`committed`),e=>o(`failed`,e));return}(e.completion===`return`||i)&&o(`committed`)}catch(e){r=!1,o(`failed`,e)}}function o(n){let r=n.initialSnapshot?e(n.initialSnapshot):{},o=new Set(Object.keys(r)),s=0,c=0,l,u;function d(e){return e.inLedger?(e.commitPromise||(e.commitPromise=new Promise(t=>{e.resolveCommit=t})),e.commitPromise):t}let f={preparedSnapshot:r,dispatchedSnapshot:r,committedSnapshot:r,revision:0,committedRevision:0,failedRevision:void 0,needsFullSnapshot:!1,get commitPromise(){return u?d(u):t},disposed:!1},p=(e,t,r)=>{let a=i(e,t,r);try{n.onFailure({kind:e,revision:t.revision,committedRevision:f.committedRevision,mode:t.mode,cause:r,error:a,payloadKeys:t.payloadKeys,pendingPatchKeys:t.pendingPatchKeys})}catch(e){}},m=e=>{var t;(t=e.resolveCommit)==null||t.call(e),e.resolveCommit=void 0},h=e=>{let t=l;for(;t;){let n=t.next;if(t.inLedger=!1,t.next=void 0,m(t),t===e){l=n,l||(u=void 0);return}t=n}},g=()=>{let e=l;for(;e;){let t=e.next;e.inLedger=!1,e.next=void 0,e.physicalSettled||(e.status=`abandoned`),m(e),e=t}l=void 0,u=void 0,s+=1,c=f.committedRevision},_=()=>{f.needsFullSnapshot=!0},v=(e,t,n)=>{t.status=`failed`,f.failedRevision=t.revision,_(),g(),p(e,t,n)},y=()=>{for(;(l==null?void 0:l.status)===`succeeded`;){let e=l;f.committedSnapshot=e.snapshot,f.committedRevision=e.revision,l=e.next,e.inLedger=!1,e.next=void 0,m(e)}l||(u=void 0)},b=e=>{f.committedSnapshot=e.snapshot,f.committedRevision=e.revision,f.failedRevision=void 0,f.needsFullSnapshot=!1,h(e),y()},x=(e,t,n)=>{if(t===`failed`){p(`adapter`,e,n);return}t===`committed`&&f.committedRevision>e.revision&&(l&&g(),_(),p(`out-of-order`,e,`revision ${e.revision} completed after committed revision ${f.committedRevision}`))},S=(e,t,n)=>{if(!(f.disposed||e.physicalSettled)){if(e.physicalSettled=!0,!e.inLedger||e.epoch!==s){x(e,t,n);return}if(t===`abandoned`){e.status=`abandoned`,_(),g();return}if(t===`failed`){v(`adapter`,e,n);return}if(e.status=`succeeded`,c>e.revision){v(`out-of-order`,e,`revision ${e.revision} completed after revision ${c}`);return}if(c=e.revision,e.kind===`full`){b(e);return}y()}};return{state:f,dispatch:t=>{if(f.disposed)return f.revision;let r=f.revision+1;f.revision=r,f.preparedSnapshot=t.snapshot;let i={revision:r,epoch:s,mode:t.mode,kind:t.kind,snapshot:t.snapshot,payloadKeys:Object.keys(t.payload).length,pendingPatchKeys:t.pendingPatchKeys,status:`dispatched`,physicalSettled:!1,inLedger:!0,next:void 0};u?u.next=i:l=i,u=i,f.dispatchedSnapshot=t.snapshot;for(let e of Object.keys(t.payload))o.add(e.split(`.`,1)[0]);let c=(e,t)=>{S(i,e,t)},d=e(t.payload);if(typeof n.adapter.__wevu_dispatchSetData==`function`)try{n.adapter.__wevu_dispatchSetData(d,c)}catch(e){c(`failed`,e)}else a({invoke:()=>{var e,t;return(e=(t=n.adapter).setData)==null?void 0:e.call(t,d)},completion:`return`,settle:c});return r},createFullPayload:e=>{let t={},n=new Set(Object.keys(e));for(let[n,r]of Object.entries(e))t[n]=r===void 0?null:r;for(let e of o)n.has(e)||(t[e]=null);return t},dispose:()=>{f.disposed||(f.disposed=!0,g())}}}export{o as createSetDataCommitTracker,a as observeSetDataCompletion};
@@ -1 +1 @@
1
- import{toPlain as e}from"../../diff.mjs";import{checkPayloadSize as t,collapsePayload as n,mergeSiblingPayload as r}from"./payload.mjs";import{applySnapshotUpdate as i,cloneSnapshotValue as a,isDeepEqualValue as o,isShallowEqualValue as s,normalizeSetDataValue as c}from"./snapshot.mjs";function l(l){let{state:u,computedRefs:d,dirtyComputedKeys:f,includeComputed:p,computedCompare:m,computedCompareMaxDepth:h,computedCompareMaxKeys:g,currentAdapter:_,shouldIncludeKey:v,maxPatchKeys:y,maxPayloadBytes:b,mergeSiblingThreshold:x,mergeSiblingMaxInflationRatio:S,mergeSiblingMaxParentBytes:C,mergeSiblingSkipArray:w,elevateTopKeyThreshold:T,toPlainMaxDepth:E,toPlainMaxKeys:D,includeFunctions:O=!1,functionPaths:k,plainCache:A,plainCacheEligibility:j,pendingPatches:M,fallbackTopKeys:N,latestSnapshot:P,latestComputedSnapshot:F,needsFullSnapshot:I,emitDebug:L,runDiffUpdate:R}=l;if(M.size>y){I.value=!0;let e=M.size;return M.clear(),f.clear(),L({mode:`diff`,reason:`maxPatchKeys`,pendingPatchKeys:e,payloadKeys:0}),R(`maxPatchKeys`)}let z=new WeakMap,B=new Map,V=Object.create(null),H=[...M.entries()];if(Number.isFinite(T)&&T>0){let e=new Map;for(let[t]of H){var U;let n=t.split(`.`,1)[0];e.set(n,((U=e.get(n))==null?0:U)+1)}for(let[t,n]of e)n>=T&&N.add(t)}let W=H.filter(([e])=>{for(let t of N)if(e===t||e.startsWith(`${t}.`))return!1;return!0}),G=new Map(W);M.clear();let K=e=>{let t=e.split(`.`).filter(Boolean),n=u;for(let e of t){if(n==null)return n;n=n[e]}return n},q=t=>{if(B.has(t))return B.get(t);let n=c(e(K(t),z,{cache:A,cacheEligibility:j,maxDepth:E,maxKeys:D,includeFunctions:O,functionPaths:k,_path:t}));return B.set(t,n),n};if(N.size){for(let e of N)v(e)&&(V[e]=q(e),G.set(e,{kind:`property`,op:`set`}));N.clear()}for(let[e,t]of W){if((t.kind===`array`?`set`:t.op)===`delete`){V[e]=null;continue}V[e]=q(e)}let J=0;if(p&&f.size){let t=Object.create(null),n=[...f];f.clear(),J=n.length;for(let r of n){if(!v(r))continue;let n=e(d[r].value,z,{cache:A,cacheEligibility:j,maxDepth:E,maxKeys:D,includeFunctions:O,functionPaths:k,_path:r}),i=F[r];(m===`deep`?o(i,n,h,{keys:g}):m===`shallow`?s(i,n):Object.is(i,n))||(t[r]=c(n),F[r]=a(n))}Object.assign(V,t)}let Y=n(V),X=0;if(x){let e=r({input:Y,entryMap:G,getPlainByPath:q,mergeSiblingThreshold:x,mergeSiblingSkipArray:w,mergeSiblingMaxParentBytes:C,mergeSiblingMaxInflationRatio:S});X=e.merged,Y=n(e.out)}let Z=t(Y,b),Q=Z.fallback;if(L({mode:Q?`diff`:`patch`,reason:Q?`maxPayloadBytes`:`patch`,pendingPatchKeys:W.length,payloadKeys:Object.keys(Y).length,mergedSiblingParents:X||void 0,computedDirtyKeys:J||void 0,estimatedBytes:Z.estimatedBytes,bytes:Z.bytes}),Q)return I.value=!0,M.clear(),f.clear(),R(`maxPayloadBytes`);if(Object.keys(Y).length){for(let[e,t]of Object.entries(Y)){let n=G.get(e);n?i(P,e,t,n.kind===`array`?`set`:n.op,{cloneValue:!1}):i(P,e,t,`set`,{cloneValue:!1})}if(typeof _.setData==`function`){let e=_.setData(Y);if(e&&typeof e.then==`function`)return e.catch(()=>{})}L({mode:`patch`,reason:`patch`,pendingPatchKeys:W.length,payloadKeys:Object.keys(Y).length})}}export{l as runPatchUpdate};
1
+ import{toPlain as e}from"../../diff.mjs";import{applySnapshotUpdate as t,cloneSnapshotValue as n,isDeepEqualValue as r,isShallowEqualValue as i,normalizeSetDataValue as a}from"./snapshot.mjs";import{checkPayloadSize as o,collapsePayload as s,mergeSiblingPayload as c}from"./payload.mjs";function l(l){let{state:u,computedRefs:d,dirtyComputedKeys:f,includeComputed:p,computedCompare:m,computedCompareMaxDepth:h,computedCompareMaxKeys:g,shouldIncludeKey:_,maxPatchKeys:v,maxPayloadBytes:y,mergeSiblingThreshold:b,mergeSiblingMaxInflationRatio:x,mergeSiblingMaxParentBytes:S,mergeSiblingSkipArray:C,elevateTopKeyThreshold:w,toPlainMaxDepth:T,toPlainMaxKeys:E,includeFunctions:D=!1,functionPaths:O,plainCache:k,plainCacheEligibility:A,pendingPatches:j,fallbackTopKeys:M,dispatchedSnapshot:N,dispatchedComputedSnapshot:P}=l;if(j.size>v){let e=j.size;return j.clear(),f.clear(),{type:`fallback`,reason:`maxPatchKeys`,debug:{mode:`diff`,reason:`maxPatchKeys`,pendingPatchKeys:e,payloadKeys:0}}}let F=new WeakMap,I=new Map,L=Object.create(null),R=[...j.entries()];if(Number.isFinite(w)&&w>0){let e=new Map;for(let[t]of R){var z;let n=t.split(`.`,1)[0];e.set(n,((z=e.get(n))==null?0:z)+1)}for(let[t,n]of e)n>=w&&M.add(t)}let B=R.filter(([e])=>{for(let t of M)if(e===t||e.startsWith(`${t}.`))return!1;return!0}),V=new Map(B);j.clear();let H=e=>{let t=e.split(`.`).filter(Boolean),n=u;for(let e of t){if(typeof n!=`object`||!n)return n;n=Reflect.get(n,e)}return n},U=t=>{if(I.has(t))return I.get(t);let n=a(e(H(t),F,{cache:k,cacheEligibility:A,maxDepth:T,maxKeys:E,includeFunctions:D,functionPaths:O,_path:t}));return I.set(t,n),n};if(M.size){for(let e of M)_(e)&&(L[e]=U(e),V.set(e,{kind:`property`,op:`set`}));M.clear()}for(let[e,t]of B)L[e]=(t.kind===`array`?`set`:t.op)===`delete`?null:U(e);let W=0,G=Object.create(null);if(p&&f.size){let t=[...f];f.clear(),W=t.length;for(let o of t){if(!_(o))continue;let t=e(d[o].value,F,{cache:k,cacheEligibility:A,maxDepth:T,maxKeys:E,includeFunctions:D,functionPaths:O,_path:o}),s=P[o];(m===`deep`?r(s,t,h,{keys:g}):m===`shallow`?i(s,t):Object.is(s,t))||(L[o]=a(t),G[o]=n(t))}}let K=s(L),q=0;if(b){let e=c({input:K,entryMap:V,getPlainByPath:U,mergeSiblingThreshold:b,mergeSiblingSkipArray:C,mergeSiblingMaxParentBytes:S,mergeSiblingMaxInflationRatio:x});q=e.merged,K=s(e.out)}let J=o(K,y),Y=Object.keys(K).length,X={mode:J.fallback?`diff`:`patch`,reason:J.fallback?`maxPayloadBytes`:`patch`,pendingPatchKeys:B.length,payloadKeys:Y,mergedSiblingParents:q||void 0,computedDirtyKeys:W||void 0,estimatedBytes:J.estimatedBytes,bytes:J.bytes};if(J.fallback)return{type:`fallback`,reason:`maxPayloadBytes`,debug:X};if(!Y)return;let Z={...N},Q=new WeakSet;for(let[e,n]of Object.entries(K)){var $;let r=V.get(e);t(Z,e,n,(r==null?void 0:r.kind)===`array`||($=r==null?void 0:r.op)==null?`set`:$,{cloneValue:!1,clonedParents:Q})}return{type:`patch`,payload:K,snapshot:Z,computedUpdates:Object.keys(G).length?G:void 0,debug:X}}export{l as preparePatchUpdate};
@@ -0,0 +1,50 @@
1
+ import { SetDataDebugInfo } from "../../types/setData.mjs";
2
+ import "../../types.mjs";
3
+ import { CommitAwareSetDataAdapter } from "./commitTracker.mjs";
4
+ import "../../capabilities.mjs";
5
+ import { WevuRuntimeBindingManifestV1 } from "@weapp-core/constants";
6
+ //#region src/runtime/app/setData/scheduler.d.ts
7
+ export interface SetDataSchedulerOptions {
8
+ state: Record<string, any>;
9
+ setupState?: Record<string, any>;
10
+ snapshotOmitKeys?: Set<string>;
11
+ computedRefs: Record<string, {
12
+ value: any;
13
+ }>;
14
+ dirtyComputedKeys: Set<string>;
15
+ includeComputed: boolean;
16
+ setDataStrategy: 'diff' | 'patch';
17
+ computedCompare: 'reference' | 'shallow' | 'deep';
18
+ computedCompareMaxDepth: number;
19
+ computedCompareMaxKeys: number;
20
+ currentAdapter: CommitAwareSetDataAdapter;
21
+ shouldIncludeKey: (key: string) => boolean;
22
+ maxPatchKeys: number;
23
+ maxPayloadBytes: number;
24
+ mergeSiblingThreshold: number;
25
+ mergeSiblingMaxInflationRatio: number;
26
+ mergeSiblingMaxParentBytes: number;
27
+ mergeSiblingSkipArray: boolean;
28
+ elevateTopKeyThreshold: number;
29
+ prelinkMaxDepth?: number;
30
+ prelinkMaxKeys?: number;
31
+ toPlainMaxDepth: number;
32
+ toPlainMaxKeys: number;
33
+ includeFunctions?: boolean;
34
+ functionPaths: string[];
35
+ debug: ((info: SetDataDebugInfo) => void) | undefined;
36
+ debugWhen: 'fallback' | 'always';
37
+ debugSampleRate: number;
38
+ bindingManifest?: WevuRuntimeBindingManifestV1;
39
+ loopWarning: false | {
40
+ sampleWindowMs: number;
41
+ maxFlushes: number;
42
+ coolDownMs: number;
43
+ };
44
+ targetLabel?: string;
45
+ runTracker: () => void;
46
+ isMounted: () => boolean;
47
+ initialSnapshot?: Record<string, any>;
48
+ initialState?: Record<string, any>;
49
+ }
50
+ //#endregion