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
@@ -1 +1 @@
1
- import{toRaw as e}from"../../../reactivity/reactive/shared.mjs";import{getReactiveVersion as t,isReactive as n}from"../../../reactivity/reactive.mjs";import{isRef as r}from"../../../reactivity/ref.mjs";import{hasOwn as i}from"../../../utils.mjs";import{hasTrackableSetupBinding as a}from"../../setupTracking.mjs";import{diffSnapshots as o,toPlain as s}from"../../diff.mjs";import{collectSnapshot as c}from"./snapshot.mjs";import{runPatchUpdate as l}from"./patchScheduler.mjs";function u(u){let{state:d,setupState:f,snapshotOmitKeys:p,computedRefs:m,dirtyComputedKeys:h,includeComputed:g,setDataStrategy:_,computedCompare:v,computedCompareMaxDepth:ee,computedCompareMaxKeys:te,currentAdapter:y,shouldIncludeKey:ne,maxPatchKeys:re,maxPayloadBytes:ie,mergeSiblingThreshold:ae,mergeSiblingMaxInflationRatio:b,mergeSiblingMaxParentBytes:x,mergeSiblingSkipArray:S,elevateTopKeyThreshold:C,toPlainMaxDepth:w,toPlainMaxKeys:T,includeFunctions:E=!1,functionPaths:D,debug:O,debugWhen:oe,debugSampleRate:k,loopWarning:A,targetLabel:j,runTracker:se,isMounted:M,initialSnapshot:N,initialState:P}=u,F=new WeakMap,I=new WeakMap,L={},R=Object.create(null),z=Object.create(null),B=Object.create(null),V={value:_===`patch`},H=new Map,U=new Set,W=[],G=-1/0,ce=new Set(P&&typeof P==`object`?Object.keys(P):[]),K=e=>{if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype},q=(e,t)=>{if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>q(e,t[n]));if(K(e)&&K(t)){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>i(t,n)&&q(e[n],t[n]))}return!1},J=i=>{let o=r(i)?i.value:i;if(typeof o!=`object`||!o)return o;if(!n(o)&&a(o))return{snapshot:s(o,new WeakMap,{cacheEligibility:I,maxDepth:w,maxKeys:T,includeFunctions:E,functionPaths:D})};let c=n(o)?e(o):o;return{raw:c,version:t(c)}},Y=(e,t)=>Object.is(e,t)?!0:!e||!t||typeof e!=`object`||typeof t!=`object`||!i(e,`raw`)||!i(t,`raw`)?e&&t&&typeof e==`object`&&typeof t==`object`&&i(e,`snapshot`)&&i(t,`snapshot`)?q(e.snapshot,t.snapshot):!1:e.raw===t.raw&&e.version===t.version,X=e=>ne(e)&&!(p!=null&&p.has(e));if(N)for(let[e,t]of Object.entries(N))X(e)&&(L[e]=t);let le=()=>{if(!N)return;let t=n(d)?e(d):d,r=f&&typeof f==`object`?n(f)?e(f):f:void 0;for(let e of Object.keys(N))if(X(e)){if(r&&i(r,e)){z[e]=J(r[e]);continue}if(i(t,e)){if(ce.has(e))continue;t[e]=N[e],z[e]=J(t[e])}}},ue=t=>{let a=[],o=f&&typeof f==`object`?n(f)?e(f):f:void 0;for(let n of new Set([...Object.keys(d),...o?Object.keys(o):[]])){if(!X(n))continue;let s=o&&i(o,n)?o[n]:d[n],c=r(s)?s.value:s;c&&typeof c==`object`&&e(c)===t&&a.push(n)}return a},Z=e=>{if(!O)return;let t=e.reason!==`patch`&&e.reason!==`diff`;if((oe!==`fallback`||t)&&!(k<1&&Math.random()>k))try{O(e)}catch(e){}},de=()=>{if(!A)return;let e=Date.now();W.push(e);let t=e-A.sampleWindowMs;for(;W.length&&W[0]<t;)W.shift();W.length<=A.maxFlushes||A.coolDownMs>0&&e-G<A.coolDownMs||(G=e,Z({mode:_,reason:`loopWarning`,pendingPatchKeys:H.size+U.size,payloadKeys:0,computedDirtyKeys:g?h.size:0,flushCount:W.length,windowMs:A.sampleWindowMs,targetLabel:j,message:`${j?`${j} `:``}疑似运行时更新循环:${W.length} 次 setData flush/${A.sampleWindowMs}ms`}))},Q=()=>c({state:d,setupState:f,computedRefs:m,includeComputed:g,shouldIncludeKey:X,plainCache:F,plainCacheEligibility:I,toPlainMaxDepth:w,toPlainMaxKeys:T,includeFunctions:E,functionPaths:D});le();let fe=()=>{let t=n(d)?e(d):d,r=f&&typeof f==`object`?n(f)?e(f):f:void 0,a={...L},o=new WeakMap,c=new Set,l=new Set,u=new Set;for(let e of new Set([...Object.keys(t),...r?Object.keys(r):[]])){if(!X(e))continue;c.add(e);let n=r&&i(r,e)?r:t,l=J(n[e]),d=z[e];d&&l&&typeof d==`object`&&typeof l==`object`&&i(d,`raw`)&&i(l,`raw`)&&Array.isArray(d.raw)&&Array.isArray(l.raw)&&d.raw!==l.raw&&u.add(e),(!Y(d,l)||!i(L,e))&&(a[e]=s(n[e],o,{cache:F,cacheEligibility:I,maxDepth:w,maxKeys:T,includeFunctions:E,functionPaths:D,_path:e})),z[e]=l}for(let e of Object.keys(z))c.has(e)||(delete z[e],(!g||!i(m,e))&&delete a[e]);if(!g){for(let e of Object.keys(B))delete B[e];return{snapshot:a,replacedTopLevelKeys:u}}for(let e of Object.keys(m)){if(!X(e))continue;l.add(e);let t=m[e].value,n=J(t);(!Y(B[e],n)||!i(L,e))&&(a[e]=s(t,o,{cache:F,cacheEligibility:I,maxDepth:w,maxKeys:T,includeFunctions:E,functionPaths:D,_path:e})),B[e]=n}for(let e of Object.keys(B))l.has(e)||(delete B[e],(!i(t,e)||!X(e))&&delete a[e]);return{snapshot:a,replacedTopLevelKeys:u}},$=(e=`diff`)=>{var t;let n=_===`diff`?fe():void 0,r=(t=n==null?void 0:n.snapshot)==null?Q():t,i=n?(()=>{let e={};for(let t of n.replacedTopLevelKeys)e[t]=r[t];return{...o(L,r,{skipKeys:n.replacedTopLevelKeys}),...e}})():o(L,r);if(L=r,V.value=!1,H.clear(),_===`patch`&&g){R=Object.create(null);for(let e of Object.keys(m))X(e)&&(R[e]=r[e]);h.clear()}if(Object.keys(i).length){if(typeof y.setData==`function`){let e=y.setData(i);if(e&&typeof e.then==`function`)return e.catch(()=>{})}Z({mode:`diff`,reason:e,pendingPatchKeys:0,payloadKeys:Object.keys(i).length})}};return{job:e=>{if(M())return de(),se(),_===`patch`&&!V.value?H.size>0||U.size>0||g&&h.size>0?l({state:d,computedRefs:m,dirtyComputedKeys:h,includeComputed:g,computedCompare:v,computedCompareMaxDepth:ee,computedCompareMaxKeys:te,currentAdapter:y,shouldIncludeKey:X,maxPatchKeys:re,maxPayloadBytes:ie,mergeSiblingThreshold:ae,mergeSiblingMaxInflationRatio:b,mergeSiblingMaxParentBytes:x,mergeSiblingSkipArray:S,elevateTopKeyThreshold:C,toPlainMaxDepth:w,toPlainMaxKeys:T,includeFunctions:E,functionPaths:D,plainCache:F,plainCacheEligibility:I,pendingPatches:H,fallbackTopKeys:U,latestSnapshot:L,latestComputedSnapshot:R,needsFullSnapshot:V,emitDebug:Z,runDiffUpdate:$}):$(`diff`):$(V.value?`needsFullSnapshot`:`diff`)},mutationRecorder:(e,t)=>{if(!M())return;if(e.root!==t){let t=ue(e.root);if(t.length)for(let e of t)U.add(e);return}if(!e.path){if(Array.isArray(e.fallbackTopKeys)&&e.fallbackTopKeys.length)for(let t of e.fallbackTopKeys)U.add(t);else V.value=!0;return}let n=e.path.split(`.`,1)[0];X(n)&&H.set(e.path,{kind:e.kind,op:e.op})},snapshot:()=>_===`patch`?Q():{...L},cloneLatestSnapshot:()=>({...L}),getLatestSnapshot:()=>L}}export{u as createSetDataScheduler};
1
+ import{toRaw as e}from"../../../reactivity/reactive/shared.mjs";import{getReactiveVersion as t,isReactive as n}from"../../../reactivity/reactive.mjs";import{isRef as r}from"../../../reactivity/ref.mjs";import{hasOwn as i}from"../../../utils.mjs";import{hasTrackableSetupBinding as a}from"../../setupTracking.mjs";import{resolveBindingDiagnostics as o}from"../../bindingManifest.mjs";import{diffSnapshots as s,toPlain as c}from"../../diff.mjs";import{collectSnapshot as l}from"./snapshot.mjs";import{createSetDataCommitTracker as u}from"./commitTracker.mjs";function d(d){let{state:f,setupState:p,snapshotOmitKeys:m,computedRefs:h,dirtyComputedKeys:g,includeComputed:_,setDataStrategy:v,currentAdapter:y,shouldIncludeKey:b,toPlainMaxDepth:x,toPlainMaxKeys:S,includeFunctions:C=!1,functionPaths:w,debug:T,debugWhen:E,debugSampleRate:D,bindingManifest:O,loopWarning:k,targetLabel:A,runTracker:j,isMounted:M,initialSnapshot:N,initialState:P}=d,F=new WeakMap,I=new WeakMap,L={},R=Object.create(null),z=Object.create(null),B=[],V=-1/0,H=new Set(P&&typeof P==`object`?Object.keys(P):[]),U=e=>{if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype},W=(e,t)=>{if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>W(e,t[n]));if(U(e)&&U(t)){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>i(t,n)&&W(e[n],t[n]))}return!1},G=i=>{let o=r(i)?i.value:i;if(typeof o!=`object`||!o)return o;if(!n(o)&&a(o))return{snapshot:c(o,new WeakMap,{cacheEligibility:I,maxDepth:x,maxKeys:S,includeFunctions:C,functionPaths:w})};let s=n(o)?e(o):o;return{raw:s,version:t(s)}},K=(e,t)=>Object.is(e,t)?!0:!e||!t||typeof e!=`object`||typeof t!=`object`||!i(e,`raw`)||!i(t,`raw`)?e&&t&&typeof e==`object`&&typeof t==`object`&&i(e,`snapshot`)&&i(t,`snapshot`)?W(e.snapshot,t.snapshot):!1:e.raw===t.raw&&e.version===t.version,q=e=>b(e)&&!(m!=null&&m.has(e));if(N)for(let[e,t]of Object.entries(N))q(e)&&(L[e]=t);let J=()=>{if(!N)return;let t=n(f)?e(f):f,r=p&&typeof p==`object`?n(p)?e(p):p:void 0;for(let e of Object.keys(N))if(q(e)){if(r&&i(r,e)){R[e]=G(r[e]);continue}if(i(t,e)){if(H.has(e))continue;t[e]=N[e],R[e]=G(t[e])}}},ee=t=>{let a=[],o=p&&typeof p==`object`?n(p)?e(p):p:void 0;for(let n of new Set([...Object.keys(f),...o?Object.keys(o):[]])){if(!q(n))continue;let s=o&&i(o,n)?o[n]:f[n],c=r(s)?s.value:s;c&&typeof c==`object`&&e(c)===t&&a.push(n)}return a},Y=(e,t)=>{if(!T)return;let n=e.reason!==`patch`&&e.reason!==`diff`;if(E===`fallback`&&!n||e.reason!==`commitFailure`&&D<1&&Math.random()>D)return;let r=e;if(O){let n=typeof t==`function`?t():t==null?[]:t,i=e.reason===`needsFullSnapshot`||e.reason===`maxPatchKeys`||e.reason===`maxPayloadBytes`;r={...e,bindings:o(O,n,i)}}try{T(r)}catch(e){}},X=u({initialSnapshot:L,adapter:y,onFailure:e=>{Y({mode:e.mode,reason:`commitFailure`,pendingPatchKeys:e.pendingPatchKeys,payloadKeys:e.payloadKeys,revision:e.revision,committedRevision:e.committedRevision,targetLabel:A,message:e.error.message});try{var t;(t=y.__wevu_reportSetDataError)==null||t.call(y,e.error)}catch(e){}}}),te=(e=0,t)=>{if(!k)return;let n=Date.now();B.push(n);let r=n-k.sampleWindowMs;for(;B.length&&B[0]<r;)B.shift();B.length<=k.maxFlushes||k.coolDownMs>0&&n-V<k.coolDownMs||(V=n,Y({mode:v,reason:`loopWarning`,pendingPatchKeys:e,payloadKeys:0,computedDirtyKeys:_?g.size:0,flushCount:B.length,windowMs:k.sampleWindowMs,targetLabel:A,message:`${A?`${A} `:``}疑似运行时更新循环:${B.length} 次 setData flush/${k.sampleWindowMs}ms`},t))},Z=()=>l({state:f,setupState:p,computedRefs:h,includeComputed:_,shouldIncludeKey:q,plainCache:F,plainCacheEligibility:I,toPlainMaxDepth:x,toPlainMaxKeys:S,includeFunctions:C,functionPaths:w});J();let ne=()=>{let t=n(f)?e(f):f,r=p&&typeof p==`object`?n(p)?e(p):p:void 0,a=X.state.dispatchedSnapshot,o={...a},s=new WeakMap,l=new Set,u=new Set,d=new Set;for(let e of new Set([...Object.keys(t),...r?Object.keys(r):[]])){if(!q(e))continue;l.add(e);let n=r&&i(r,e)?r:t,u=G(n[e]),f=R[e];f&&u&&typeof f==`object`&&typeof u==`object`&&i(f,`raw`)&&i(u,`raw`)&&Array.isArray(f.raw)&&Array.isArray(u.raw)&&f.raw!==u.raw&&d.add(e),(!K(f,u)||!i(a,e))&&(o[e]=c(n[e],s,{cache:F,cacheEligibility:I,maxDepth:x,maxKeys:S,includeFunctions:C,functionPaths:w,_path:e})),R[e]=u}for(let e of Object.keys(R))l.has(e)||(delete R[e],(!_||!i(h,e))&&delete o[e]);if(!_){for(let e of Object.keys(z))delete z[e];return{snapshot:o,replacedTopLevelKeys:d}}for(let e of Object.keys(h)){if(!q(e))continue;u.add(e);let t=h[e].value,n=G(t);(!K(z[e],n)||!i(a,e))&&(o[e]=c(t,s,{cache:F,cacheEligibility:I,maxDepth:x,maxKeys:S,includeFunctions:C,functionPaths:w,_path:e})),z[e]=n}for(let e of Object.keys(z))u.has(e)||(delete z[e],(!i(t,e)||!q(e))&&delete o[e]);return{snapshot:o,replacedTopLevelKeys:d}},Q=(e=`diff`,t=0,n)=>{var r;let i=v===`diff`?ne():void 0,a=(r=i==null?void 0:i.snapshot)==null?Z():r,o=X.state.dispatchedSnapshot,c=X.state.needsFullSnapshot,l=c?X.createFullPayload(a):i?(()=>{let e={};for(let t of i.replacedTopLevelKeys)e[t]=a[t];return{...s(o,a,{skipKeys:i.replacedTopLevelKeys}),...e}})():s(o,a);n==null||n(a);let u=Object.keys(l).length;if(!u&&!c)return;let d=c?`needsFullSnapshot`:e;Y({mode:`diff`,reason:d,pendingPatchKeys:t,payloadKeys:u},Object.keys(l)),X.dispatch({mode:`diff`,kind:c?`full`:`delta`,reason:d,snapshot:a,payload:l,pendingPatchKeys:t})},$=(e=0,t)=>M()?(te(e,t),j(),!0):!1;return{collect:Z,emitDebug:Y,getLatestSnapshot:()=>X.state.dispatchedSnapshot,dispatchUpdate:X.dispatch,needsFullSnapshot:()=>X.state.needsFullSnapshot,job:e=>{if($())return Q(`diff`)},plainCache:F,plainCacheEligibility:I,prepareJob:$,resolveTopKeysByRoot:ee,runDiffUpdate:Q,shouldIncludeSnapshotKey:q,snapshot:()=>v===`patch`?Z():{...X.state.dispatchedSnapshot},cloneLatestSnapshot:()=>({...X.state.dispatchedSnapshot}),dispose:X.dispose}}export{d as createSetDataScheduler};
@@ -1 +1 @@
1
- import{toRaw as e}from"../../../reactivity/reactive/shared.mjs";import{isReactive as t}from"../../../reactivity/reactive.mjs";import{hasOwn as n}from"../../../utils.mjs";import{toPlain as r}from"../../diff.mjs";function i(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function a(e){return e===void 0?null:e}function o(e){if(Array.isArray(e))return e.map(e=>o(e));if(!i(e))return e;let t={};for(let n of Object.keys(e))t[n]=o(e[n]);return t}function s(e,t){if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}if(!i(e)||!i(t))return!1;let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i of r)if(!n(t,i)||!Object.is(e[i],t[i]))return!1;return!0}function c(e,t,r,a){if(Object.is(e,t))return!0;if(r<=0)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!c(e[n],t[n],r-1,a))return!1;return!0}if(!i(e)||!i(t))return!1;let o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(let i of o)if(--a.keys,a.keys<=0||!n(t,i)||!c(e[i],t[i],r-1,a))return!1;return!0}function l(e,t,r,i,a){var s;let c=(s=a==null?void 0:a.cloneValue)==null||s,l=t.split(`.`).filter(Boolean);if(!l.length)return;let u=e;for(let e=0;e<l.length-1;e++){let t=l[e];(!n(u,t)||u[t]==null||typeof u[t]!=`object`)&&(u[t]={}),u=u[t]}let d=l[l.length-1];if(i===`delete`)try{delete u[d]}catch(e){u[d]=null}else u[d]=c?o(r):r}function u(n){let{state:i,setupState:a,computedRefs:o,includeComputed:s,shouldIncludeKey:c,plainCache:l,plainCacheEligibility:u,toPlainMaxDepth:d,toPlainMaxKeys:f,includeFunctions:p=!1,functionPaths:m=[]}=n,h=new WeakMap,g={},_=Number.isFinite(f)?{keys:f}:void 0,v=t(i)?e(i):i,y=a&&typeof a==`object`?t(a)?e(a):a:void 0,b=Object.keys(v),x=y?Object.keys(y):[],S=s?Object.keys(o):[];for(let e of b)c(e)&&(g[e]=r(v[e],h,{cache:l,cacheEligibility:u,maxDepth:d,includeFunctions:p,functionPaths:m,_budget:_,_path:e}));for(let e of x)c(e)&&(g[e]=r(y[e],h,{cache:l,cacheEligibility:u,maxDepth:d,includeFunctions:p,functionPaths:m,_budget:_,_path:e}));for(let e of S)c(e)&&(g[e]=r(o[e].value,h,{cache:l,cacheEligibility:u,maxDepth:d,includeFunctions:p,functionPaths:m,_budget:_,_path:e}));return g}export{l as applySnapshotUpdate,o as cloneSnapshotValue,u as collectSnapshot,c as isDeepEqualValue,i as isPlainObjectLike,s as isShallowEqualValue,a as normalizeSetDataValue};
1
+ import{toRaw as e}from"../../../reactivity/reactive/shared.mjs";import{isReactive as t}from"../../../reactivity/reactive.mjs";import{hasOwn as n}from"../../../utils.mjs";import{toPlain as r}from"../../diff.mjs";function i(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function a(e){return e===void 0?null:e}function o(e){if(Array.isArray(e))return e.map(e=>o(e));if(!i(e))return e;let t={};for(let n of Object.keys(e))t[n]=o(e[n]);return t}function s(e,t){if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}if(!i(e)||!i(t))return!1;let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i of r)if(!n(t,i)||!Object.is(e[i],t[i]))return!1;return!0}function c(e,t,r,a){if(Object.is(e,t))return!0;if(r<=0)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!c(e[n],t[n],r-1,a))return!1;return!0}if(!i(e)||!i(t))return!1;let o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(let i of o)if(--a.keys,a.keys<=0||!n(t,i)||!c(e[i],t[i],r-1,a))return!1;return!0}function l(e,t,n,r,i){var a;let s=(a=i==null?void 0:i.cloneValue)==null||a,c=i==null?void 0:i.clonedParents,l=t.split(`.`).filter(Boolean);if(!l.length)return;c==null||c.add(e);let u=e;for(let e=0;e<l.length-1;e++){let t=l[e],n=u[t];if(typeof n!=`object`||!n)u[t]={},c==null||c.add(u[t]);else if(c&&!c.has(n)){let e=Array.isArray(n)?n.slice():{...n};u[t]=e,c.add(e)}u=u[t]}let d=l[l.length-1];if(r===`delete`)try{delete u[d]}catch(e){u[d]=null}else u[d]=s?o(n):n}function u(n){let{state:i,setupState:a,computedRefs:o,includeComputed:s,shouldIncludeKey:c,plainCache:l,plainCacheEligibility:u,toPlainMaxDepth:d,toPlainMaxKeys:f,includeFunctions:p=!1,functionPaths:m=[]}=n,h=new WeakMap,g={},_=Number.isFinite(f)?{keys:f}:void 0,v=t(i)?e(i):i,y=a&&typeof a==`object`?t(a)?e(a):a:void 0,b=Object.keys(v),x=y?Object.keys(y):[],S=s?Object.keys(o):[];for(let e of b)c(e)&&(g[e]=r(v[e],h,{cache:l,cacheEligibility:u,maxDepth:d,includeFunctions:p,functionPaths:m,_budget:_,_path:e}));for(let e of x)c(e)&&(g[e]=r(y[e],h,{cache:l,cacheEligibility:u,maxDepth:d,includeFunctions:p,functionPaths:m,_budget:_,_path:e}));for(let e of S)c(e)&&(g[e]=r(o[e].value,h,{cache:l,cacheEligibility:u,maxDepth:d,includeFunctions:p,functionPaths:m,_budget:_,_path:e}));return g}export{l as applySnapshotUpdate,o as cloneSnapshotValue,u as collectSnapshot,c as isDeepEqualValue,i as isPlainObjectLike,s as isShallowEqualValue,a as normalizeSetDataValue};
@@ -1 +1 @@
1
- import{getMiniProgramGlobalObject as e}from"./platform.mjs";import{version as t}from"../version.mjs";import{createRuntimeMount as n}from"./app/mount.mjs";import{setPendingRuntimeAppRegistration as r}from"./app/pending.mjs";import{INTERNAL_DEFAULTS_SCOPE_KEY as i,applyWevuAppDefaults as a}from"./defaults.mjs";import{ensureRuntimeAppProvides as o,setRuntimeAppProvidedValue as s}from"./provideContext.mjs";import{registerApp as c}from"./register/app.mjs";function l(l){let u=l[i],{[i]:d,data:f,computed:p,methods:m,setData:h,watch:g,setup:_,...v}=u===`component`?l:a(l),y=m==null?{}:m,b=p==null?{}:p,x=new Set,S=new Set,C=!1,w={globalProperties:{}},T={mount:n({data:f,resolvedComputed:b,resolvedMethods:y,appConfig:w,setDataOptions:h}),use(e,...t){if(!e||x.has(e))return T;if(x.add(e),typeof e==`function`)e(T,...t);else if(typeof e.install==`function`)e.install(T,...t);else throw TypeError(`插件必须是函数,或包含 install 方法的对象`);return T},provide(e,t){return s(T,e,t,{syncGlobal:u!==`component`}),T},onUnmount(e){if(typeof e!=`function`)throw TypeError(`onUnmount 只接受函数`);return C?(e(),T):(S.add(e),T)},unmount(){if(!C){C=!0;for(let e of S)e();S.clear()}},config:w,version:t};try{o(T),Object.defineProperty(T,"__wevuSetDataOptions",{value:h,configurable:!0,enumerable:!1,writable:!1}),Object.defineProperty(T,"__wevuHasTemplateRuntimeBindings",{value:Object.keys(b).some(e=>e.startsWith(`__wv_bind_`)),configurable:!0,enumerable:!1,writable:!1})}catch(e){T.__wevuSetDataOptions=h,T.__wevuHasTemplateRuntimeBindings=Object.keys(b).some(e=>e.startsWith(`__wv_bind_`))}let E=()=>{let t=e(),n=`__wevuAppRegistered`;t&&t[n]||(t&&(t[n]=!0),c(T,m==null?{}:m,g,_,v))};return u!==`component`&&typeof App==`function`?E():u!==`component`&&r({app:T,register:E}),T}export{l as createApp};
1
+ import{getMiniProgramGlobalObject as e}from"./platform.mjs";import{INTERNAL_DEFAULTS_SCOPE_KEY as t,applyWevuAppDefaults as n}from"./defaults.mjs";import{isSetDataHighFrequencyWarningRequested as r,requireRuntimeCapability as i}from"./capabilities.mjs";import{ensureRuntimeAppProvides as a,setRuntimeAppProvidedValue as o}from"./provideContext.mjs";import{version as s}from"../version.mjs";import{resolveBindingManifest as c}from"./bindingManifest.mjs";import{createRuntimeMount as l}from"./app/mount.mjs";import{setPendingRuntimeAppRegistration as u}from"./app/pending.mjs";import{registerApp as d}from"./register/app.mjs";import{WEVU_BINDING_MANIFEST_KEY as f,WEVU_INLINE_HANDLER as p,WEVU_INLINE_MAP_KEY as m,WEVU_SCOPED_SLOT_OWNER_REQUIRED_KEY as h,WEVU_SLOT_OWNER_ID_KEY as g}from"@weapp-core/constants";function _(_){let v=_[t],{[t]:y,[f]:b,[h]:x,data:S,computed:C,methods:w,setData:T,watch:E,setup:D,...O}=v===`component`?_:n(_),k=c(b),A=w==null?{}:w,j=C==null?{}:C,M=x===!0||Array.isArray(T==null?void 0:T.pick)&&T.pick.includes(g),N=A,P=N[m];Object.prototype.hasOwnProperty.call(N,m)&&P&&typeof P==`object`&&Object.keys(P).length>0&&typeof N[p]!=`function`&&typeof O[p]!=`function`&&i(`inlineEvents`,`createApp(inline event metadata)`),(T==null?void 0:T.strategy)===`patch`&&i(`patchStrategy`,`createApp(setData.strategy="patch")`),r(T==null?void 0:T.highFrequencyWarning)&&i(`setDataHighFrequencyWarning`,`createApp(setData.highFrequencyWarning)`),M&&i(`scopedSlots`,`createApp(scoped-slot bindings)`);let F=new Set,I=new Set,L=!1,R={globalProperties:{}},z={mount:l({data:S,resolvedComputed:j,resolvedMethods:A,appConfig:R,setDataOptions:T,bindingManifest:k}),use(e,...t){if(!e||F.has(e))return z;if(F.add(e),typeof e==`function`)e(z,...t);else if(typeof e.install==`function`)e.install(z,...t);else throw TypeError(`插件必须是函数,或包含 install 方法的对象`);return z},provide(e,t){return o(z,e,t,{syncGlobal:v!==`component`}),z},onUnmount(e){if(typeof e!=`function`)throw TypeError(`onUnmount 只接受函数`);return L?(e(),z):(I.add(e),z)},unmount(){if(!L){L=!0;for(let e of I)e();I.clear()}},config:R,version:s};try{a(z),Object.defineProperty(z,"__wevuSetDataOptions",{value:T,configurable:!0,enumerable:!1,writable:!1}),Object.defineProperty(z,"__wevuHasTemplateRuntimeBindings",{value:M,configurable:!0,enumerable:!1,writable:!1})}catch(e){z.__wevuSetDataOptions=T,z.__wevuHasTemplateRuntimeBindings=M}let B=()=>{let t=e(),n=`__wevuAppRegistered`;t&&t[n]||(t&&(t[n]=!0),d(z,w==null?{}:w,E,D,O))};return v!==`component`&&typeof App==`function`?B():v!==`component`&&u({app:z,register:B}),z}export{_ as createApp};
@@ -0,0 +1 @@
1
+ const e={"exact-path":!0,"snapshot-fallback":!0,"top-level":!0};function t(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)}function n(e){return typeof e==`number`&&Number.isFinite(e)&&Number.isInteger(e)}function r(e){if(!e||typeof e!=`object`)return!1;let t=e;return n(t.offset)&&t.offset>=0&&n(t.line)&&t.line>=1&&n(t.column)&&t.column>=1}function i(e){if(!e||typeof e!=`object`)return!1;let t=e,n=t.start,i=t.end;return r(n)&&r(i)&&i.offset>=n.offset}function a(e){return Object.values(e).every(e=>e===!0)}function o(n){if(!n||typeof n!=`object`)return!1;let r=n;return typeof r.id==`string`&&r.id.length>0&&typeof r.outputPath==`string`&&r.outputPath.length>0&&(r.sourceFile===void 0||typeof r.sourceFile==`string`&&r.sourceFile.length>0)&&(r.updateMode===void 0||typeof r.updateMode==`string`&&e[r.updateMode]===!0)&&(r.sourceRoots===void 0||t(r.sourceRoots))&&(r.sourceLocation===void 0||i(r.sourceLocation))}function s(e){if(!e||typeof e!=`object`)return;let t=e;if(t.version===1&&typeof t.sourceFile==`string`&&Array.isArray(t.bindings)&&t.bindings.every(o)&&(t.features===void 0||t.features&&typeof t.features==`object`&&!Array.isArray(t.features)&&a(t.features)))return t}function c(e,t){var n;return(n=e==null?void 0:e.bindings.some(e=>e.outputPath===t))!=null&&n}function l(e){return e.replace(/\[(?:'([^']+)'|"([^"]+)"|([^\]]+))\]/g,(e,t,n,r)=>{var i;return`.${(i=t==null?n:t)==null?r:i}`}).replace(/^\./,``)}function u(e){var t;return(t=l(e).split(`.`,1)[0])==null?``:t}function d(e,t){let n=l(e),r=l(t);return n===r||n.startsWith(`${r}.`)||r.startsWith(`${n}.`)}function f(e){var t;return(t=e.updateMode)==null?`exact-path`:t}function p(e,t){var n;if(!t)return!1;let r=f(e);if(r===`snapshot-fallback`&&e.outputPath===`*`)return!0;if(r===`exact-path`)return d(e.outputPath,t);let i=u(t);return u(e.outputPath)===i||r===`snapshot-fallback`&&((n=e.sourceRoots)==null?[]:n).some(e=>u(e)===i)}function m(e,t,n=!1){let r=[...t],i=new Set,a=[];for(let t of e.bindings){var o;if(i.has(t.id))continue;let s=f(t);if(!(r.length>0?r.some(e=>p(t,e)):n&&s===`snapshot-fallback`))continue;i.add(t.id);let c={id:t.id,outputPath:t.outputPath,updateMode:s,sourceFile:(o=t.sourceFile)==null?e.sourceFile:o};t.sourceLocation&&(c.sourceLocation=t.sourceLocation),a.push(c)}return a}export{c as hasBindingOutputPath,m as resolveBindingDiagnostics,s as resolveBindingManifest};
@@ -0,0 +1,74 @@
1
+ import { ComputedDefinitions, MethodDefinitions } from "./types/core.mjs";
2
+ import { InternalRuntimeState, RuntimeInstance } from "./types/runtime.mjs";
3
+ import { SetDataSnapshotOptions } from "./types/setData.mjs";
4
+ import "./types.mjs";
5
+ import { SetDataSchedulerOptions } from "./app/setData/scheduler.mjs";
6
+ import { InlineExpressionMap } from "./register/inline.mjs";
7
+ //#region src/runtime/capabilities.d.ts
8
+ export type RuntimeCapabilityName = 'patchStrategy' | 'templateRefs' | 'inlineEvents' | 'setDataHighFrequencyWarning' | 'scopedSlots' | 'layout';
9
+ export interface TemplateRefBinding {
10
+ selector: string;
11
+ inFor: boolean;
12
+ name?: string;
13
+ get?: () => unknown;
14
+ kind?: 'component' | 'element';
15
+ }
16
+ export interface LayoutHostBinding {
17
+ key: string;
18
+ refName?: string;
19
+ selector: string;
20
+ kind?: 'component';
21
+ }
22
+ export interface HighFrequencyWarningMonitorOptions {
23
+ option: SetDataSnapshotOptions['highFrequencyWarning'];
24
+ targetLabel: string;
25
+ isInPageScrollHook?: () => boolean;
26
+ now?: () => number;
27
+ logger?: (message: string) => void;
28
+ }
29
+ export interface SetDataScheduler {
30
+ job: () => void | Promise<void>;
31
+ snapshot: () => Record<string, unknown>;
32
+ cloneLatestSnapshot: () => Record<string, unknown>;
33
+ start?: () => void;
34
+ dispose?: () => void;
35
+ }
36
+ export interface ScopedSlotMountState {
37
+ ownerId: string;
38
+ shouldFlushNativeOwnerId: boolean;
39
+ }
40
+ export interface RuntimeCapabilityRegistry {
41
+ patchStrategy?: {
42
+ createScheduler: (options: SetDataSchedulerOptions) => SetDataScheduler;
43
+ };
44
+ templateRefs?: {
45
+ attachBindings: (target: InternalRuntimeState, bindings: readonly TemplateRefBinding[]) => void;
46
+ hasBindings: (target: InternalRuntimeState) => boolean;
47
+ schedule: (target: InternalRuntimeState, onResolved?: () => void, assignmentTarget?: InternalRuntimeState, onRejected?: (cause: unknown) => void) => void;
48
+ scheduleOwner: (target: InternalRuntimeState) => void;
49
+ clear: (target: InternalRuntimeState, assignmentTarget?: InternalRuntimeState) => void;
50
+ };
51
+ inlineEvents?: {
52
+ handler: (this: InternalRuntimeState, event: unknown) => unknown;
53
+ run: (context: unknown, expression: unknown, event: unknown, map?: InlineExpressionMap) => unknown;
54
+ };
55
+ setDataHighFrequencyWarning?: {
56
+ createMonitor: (options: HighFrequencyWarningMonitorOptions) => (() => void) | undefined;
57
+ };
58
+ scopedSlots?: {
59
+ prepareMount: (target: InternalRuntimeState) => ScopedSlotMountState;
60
+ attachMount: <D extends object, C extends ComputedDefinitions, M extends MethodDefinitions>(target: InternalRuntimeState, runtime: RuntimeInstance<D, C, M>, state: ScopedSlotMountState, deferSnapshot: boolean) => void;
61
+ refresh: (target: InternalRuntimeState, state: ScopedSlotMountState) => void;
62
+ syncNativeOwnerId: (target: InternalRuntimeState, state: ScopedSlotMountState) => void;
63
+ teardown: (target: InternalRuntimeState) => void;
64
+ resolveLifecycleProxy: (target: InternalRuntimeState) => unknown;
65
+ allocateOwnerId: () => string;
66
+ };
67
+ layout?: {
68
+ attachPageSetter: (target: InternalRuntimeState) => void;
69
+ attachHosts: (bindings: readonly LayoutHostBinding[], target: InternalRuntimeState) => void;
70
+ detachHosts: (bindings: readonly LayoutHostBinding[], target: InternalRuntimeState) => void;
71
+ };
72
+ }
73
+ //#endregion
74
+ export type { SetDataSchedulerOptions };
@@ -0,0 +1 @@
1
+ const e=`__wevuScopedSlotMountState`;function t(t){return t[e]}const n={},r=n;function i(e,t){n[e]!==t&&(n[e]=t)}function a(e,t){let r=n[e];if(!r)throw Error(`[wevu] runtime capability "${e}" is required by ${t}; install it before registration`);return r}function o(e){return e===!0?!0:!e||typeof e!=`object`||Array.isArray(e)?!1:e.enabled!==!1}export{e as RUNTIME_SCOPED_SLOT_STATE_KEY,t as getScopedSlotMountState,o as isSetDataHighFrequencyWarningRequested,i as registerRuntimeCapability,a as requireRuntimeCapability,r as runtimeCapabilityRegistry};
@@ -1 +1 @@
1
- import{INTERNAL_DEFAULTS_SCOPE_KEY as e}from"../defaults.mjs";import{registerComponent as t}from"../register/component.mjs";import{createApp as n}from"../app.mjs";function r(r,i=!1){let a=n({data:r.data,computed:r.computed,methods:r.methods,setData:r.setData,[e]:`component`});return{lifecycleDefinition:t(a,r.methods,r.watch,r.setup,r.mpOptions,{registerNative:i}),runtimeApp:a}}export{r as createRuntimeComponentDefinition};
1
+ import{INTERNAL_DEFAULTS_SCOPE_KEY as e}from"../defaults.mjs";import{registerComponent as t}from"../register/component.mjs";import{createApp as n}from"../app.mjs";import{WEVU_BINDING_MANIFEST_KEY as r,WEVU_SCOPED_SLOT_OWNER_REQUIRED_KEY as i}from"@weapp-core/constants";function a(a,o=!1){let s=n({data:a.data,computed:a.computed,methods:a.methods,setData:a.setData,[r]:a.bindingManifest,[i]:a.scopedSlotOwnerRequired,[e]:`component`});return{lifecycleDefinition:t(s,a.methods,a.watch,a.setup,a.mpOptions,{registerNative:o}),runtimeApp:s}}export{a as createRuntimeComponentDefinition};
@@ -1 +1 @@
1
- import{hasOwn as e}from"../../utils.mjs";import{inject as t,provide as n}from"../provide.mjs";const r=Symbol(`wevu-missing-options-api-injection`);function i(t){if(typeof t==`string`||typeof t==`symbol`)return{from:t};if(!t||typeof t!=`object`)return;let n=t;return{from:n.from,hasDefault:e(n,`default`),defaultValue:n.default}}function a(e,t){return typeof e==`function`?e.call(t):e}function o(e,n){let o={};if(Array.isArray(e)){for(let n of e)(typeof n==`string`||typeof n==`symbol`)&&(o[n]=t(n));return o}if(!e||typeof e!=`object`)return o;for(let[s,c]of Object.entries(e)){let e=i(c);if(!e||e.from==null)continue;let l=t(e.from,r);o[s]=l===r&&e.hasDefault?a(e.defaultValue,n):l===r?void 0:l}return o}function s(e,t){let r=typeof e==`function`?e.call(t):e;if(r&&typeof r==`object`)for(let e of Reflect.ownKeys(r))n(e,Reflect.get(r,e))}export{s as applyOptionsApiProvide,o as resolveOptionsApiInjections};
1
+ import{inject as e,provide as t}from"../provide.mjs";import{hasOwn as n}from"../../utils.mjs";const r=Symbol(`wevu-missing-options-api-injection`);function i(e){if(typeof e==`string`||typeof e==`symbol`)return{from:e};if(!e||typeof e!=`object`)return;let t=e;return{from:t.from,hasDefault:n(t,`default`),defaultValue:t.default}}function a(e,t){return typeof e==`function`?e.call(t):e}function o(t,n){let o={};if(Array.isArray(t)){for(let n of t)(typeof n==`string`||typeof n==`symbol`)&&(o[n]=e(n));return o}if(!t||typeof t!=`object`)return o;for(let[s,c]of Object.entries(t)){let t=i(c);if(!t||t.from==null)continue;let l=e(t.from,r);o[s]=l===r&&t.hasDefault?a(t.defaultValue,n):l===r?void 0:l}return o}function s(e,n){let r=typeof e==`function`?e.call(n):e;if(r&&typeof r==`object`)for(let e of Reflect.ownKeys(r))t(e,Reflect.get(r,e))}export{s as applyOptionsApiProvide,o as resolveOptionsApiInjections};
@@ -1 +1 @@
1
- import{hasOwn as e}from"../../utils.mjs";import{WEVU_SLOT_NAMES_PROP as t,WEVU_SLOT_OWNER_ID_PROP as n,WEVU_SLOT_SCOPE_KEY as r}from"@weapp-core/constants";const i=`__wevu_allowNullPropInput`,a=`allowNullPropInput`,o=new Map([[String,String],[Number,Number],[Boolean,Boolean],[Object,Object],[Array,Array],[Function,Function],[`String`,String],[`Number`,Number],[`Boolean`,Boolean],[`Object`,Object],[`Array`,Array],[`Function`,Function],[null,null],[`null`,null],[`Null`,null]]);function s(e){return o.get(e)}function c(e){if(e===void 0)return[];let t=Array.isArray(e)?e:[e],n=[];t.forEach(e=>{let t=s(e);t!==void 0&&(n.includes(t)||n.push(t))});let r=n.filter(e=>e!==null);return r.length>0?r:(n.includes(null),[null])}function l(e,t){let n=c(t);if(n.length!==0&&(e.type=n[0],n.length>1)){let t=[];for(let e of n.slice(1))t.includes(e)||t.push(e);t.length>0&&(e.optionalTypes=t)}}function u(e,t){if(t===void 0||e.type===t)return;let n=Array.isArray(e.optionalTypes)?[...e.optionalTypes]:[];n.includes(t)||(n.push(t),e.optionalTypes=n)}function d(e){if(!Array.isArray(e))return[];let t=[];return e.forEach(e=>{let n=s(e);n==null||t.includes(n)||t.push(n)}),t}function f(t,n){if(t===void 0)return;if(t===null)return{type:null};if(Array.isArray(t)||typeof t==`function`){let r={};return l(r,t),n&&r.type!==null&&u(r,null),e(r,`type`)||(r.type=null),r}if(typeof t!=`object`)return t;let r={...t};if(`type`in r){var i;let e=c(r.type);r.type=(i=e[0])==null?null:i;let t=d(r.optionalTypes);for(let n of e.slice(1))n!==null&&!t.includes(n)&&t.push(n);t.length>0?r.optionalTypes=t:delete r.optionalTypes}return e(r,`type`)||(r.type=null),n&&r.type!==null&&u(r,null),r}function p(e,t){let n={};return Object.entries(e).forEach(([e,r])=>{let i=f(r,t);i!==void 0&&(n[e]=i)}),n}function m(t,n){let r={};return t&&Object.entries(t).forEach(([t,i])=>{if(i!==void 0){if(i===null){r[t]={type:null};return}if(Array.isArray(i)||typeof i==`function`){let a={};l(a,i),n&&a.type!==null&&u(a,null),e(a,`type`)||(a.type=null),r[t]=a;return}if(typeof i==`object`){if(t.endsWith(`Modifiers`)&&Object.keys(i).length===0){r[t]={type:Object,value:{}};return}let a={};if(`type`in i&&i.type!==void 0&&l(a,i.type),Array.isArray(i.optionalTypes)){let e=i.optionalTypes.map(e=>s(e)).filter(e=>e!=null);if(e.length>0){let t=Array.isArray(a.optionalTypes)?a.optionalTypes:[];for(let n of e)n!==a.type&&(t.includes(n)||t.push(n));t.length>0&&(a.optionalTypes=t)}}`observer`in i&&(typeof i.observer==`function`||typeof i.observer==`string`)&&(a.observer=i.observer);let o=`default`in i?i.default:i.value;o!==void 0&&(a.value=typeof o==`function`?o():o),n&&a.type!==null&&u(a,null),e(a,`type`)||(a.type=null),r[t]=a}}}),r}function h(o,s,c){var l;let u=!!((l=o[i])==null?o[a]:l),{[i]:d,[a]:f,...h}=o,g=o.properties,_=g&&typeof g==`object`&&Object.keys(g).length>0?g:void 0,v=c==null?_:c,y=!!(s||v),b=i=>{let a={...i==null?{}:i};return y?(e(a,n)||(a[n]={type:String,value:``}),e(a,r)||(a[r]={type:null,value:null}),e(a,t)||(a[t]={type:null,value:null}),a):a};if(v){let{properties:e,...t}=h,n=v?u?p(v,u):v:void 0,r=m(s,u);return{...t,properties:b({...r,...n})}}return{...h,properties:b(m(s,u))}}export{h as normalizeProps};
1
+ import{hasOwn as e}from"../../utils.mjs";import{WEVU_SLOT_NAMES_PROP as t,WEVU_SLOT_OWNER_ID_PROP as n,WEVU_SLOT_SCOPE_KEY as r}from"@weapp-core/constants";const i=`__wevu_allowNullPropInput`,a=`allowNullPropInput`,o=new Map([[String,String],[Number,Number],[Boolean,Boolean],[Object,Object],[Array,Array],[Function,Function],[`String`,String],[`Number`,Number],[`Boolean`,Boolean],[`Object`,Object],[`Array`,Array],[`Function`,Function],[null,null],[`null`,null],[`Null`,null]]);function s(e){return o.get(e)}function c(e,t=[]){if(Array.isArray(e)){for(let n of e)c(n,t);return t}let n=s(e);return n!==void 0&&!t.includes(n)&&t.push(n),t}function l(e){if(e===void 0)return[];let t=c(e).filter(e=>e!==null);return t.length>0?t:[null]}function u(e,t){let n=l(t);if(n.length!==0&&(e.type=n[0],n.length>1)){let t=[];for(let e of n.slice(1))t.includes(e)||t.push(e);t.length>0&&(e.optionalTypes=t)}}function d(t){e(t,`value`)||(t.type===String?t.value=``:t.type===Number?t.value=0:t.type===Boolean?t.value=!1:t.type===Array&&(t.value=[]))}function f(e,t,n){if(!n||e.type===null)return;let r=t&&typeof t==`object`&&!Array.isArray(t)?t:void 0,i=c(r?[r.type,r.optionalTypes]:t),a=i.includes(null),o=i.filter(e=>e!==null).length>1,s=(r==null?void 0:r.required)!==!0;(a||o||s)&&(a||d(e),e.type=null,delete e.optionalTypes)}function p(t,n){let r={};return t&&Object.entries(t).forEach(([t,i])=>{if(i!==void 0){if(i===null){r[t]={type:null};return}if(Array.isArray(i)||typeof i==`function`){let a={};u(a,i),e(a,`type`)||(a.type=null),f(a,i,n),r[t]=a;return}if(typeof i==`object`){if(t.endsWith(`Modifiers`)&&Object.keys(i).length===0){r[t]={type:Object,value:{}};return}let a={};if(`type`in i&&i.type!==void 0&&u(a,i.type),Array.isArray(i.optionalTypes)){let e=i.optionalTypes.map(e=>s(e)).filter(e=>e!=null);if(e.length>0){let t=Array.isArray(a.optionalTypes)?a.optionalTypes:[];for(let n of e)n!==a.type&&(t.includes(n)||t.push(n));t.length>0&&(a.optionalTypes=t)}}`observer`in i&&(typeof i.observer==`function`||typeof i.observer==`string`)&&(a.observer=i.observer);let o=`default`in i?i.default:i.value;o!==void 0&&(a.value=typeof o==`function`?o():o),e(a,`type`)||(a.type=null),f(a,i,n),r[t]=a}}}),r}function m(o,s,c){var l;let u=!!((l=o[i])==null?o[a]:l),{[i]:d,[a]:f,...m}=o,h=o.properties,g=h&&typeof h==`object`&&Object.keys(h).length>0?h:void 0,_=c==null?g:c,v=!!(s||_),y=i=>{let a={...i==null?{}:i};return v?(e(a,n)||(a[n]={type:String,value:``}),e(a,r)||(a[r]={type:null,value:null}),e(a,t)||(a[t]={type:null,value:null}),a):a};if(_){let{properties:e,...t}=m,n=_,r=p(s,u);return{...t,properties:y({...r,...n})}}return{...m,properties:y(p(s,u))}}export{m as normalizeProps};
@@ -1 +1 @@
1
- import{hasOwn as e}from"../../utils.mjs";import{cloneSnapshotValue as t,isDeepEqualValue as n}from"../app/setData/snapshot.mjs";import{resolveDatasetEventValue as r,runInlineExpression as i}from"../register/inline.mjs";import{getOwnerProxy as a,getOwnerSnapshot as o,getOwnerTarget as s,subscribeOwner as c}from"../scopedSlots.mjs";import{clearTemplateRefs as l,scheduleTemplateRefUpdate as u}from"../templateRefs.mjs";import{WEVU_INLINE_HANDLER as d,WEVU_INLINE_MAP_KEY as f,WEVU_OWNER_HANDLER as p,WEVU_PROPS_DERIVED_KEYS_KEY as m,WEVU_PUBLIC_RUNTIME_KEY as h,WEVU_SLOT_FUNCTION_TOKEN as g,WEVU_SLOT_OWNER_ID_KEY as _,WEVU_SLOT_OWNER_ID_PROP as v,WEVU_SLOT_OWNER_KEY as y,WEVU_SLOT_OWNER_PROXY_KEY as b,WEVU_SLOT_PROPS_DATA_KEY as x,WEVU_SLOT_PROPS_KEY as S,WEVU_SLOT_SCOPE_KEY as C,WEVU_TEMPLATE_REFS_KEY as w}from"@weapp-core/constants";const T=[_,v,b,y,x,S,C],E=/&amp;/g,D=/&quot;/g,O=/&#34;/g,k=/&apos;/g,A=/&#39;/g,j=/&lt;/g,M=/&gt;/g;function N(e){return e.replace(E,`&`).replace(D,`"`).replace(O,`"`).replace(k,`'`).replace(A,`'`).replace(j,`<`).replace(M,`>`)}function P(e){var t,n,i,a;let o=(t=(n=e==null||(i=e.currentTarget)==null?void 0:i.dataset)==null?e==null||(a=e.target)==null?void 0:a.dataset:n)==null?{}:t,s=r(o,`wvArgs`,e),c=[];if(Array.isArray(s))c=s;else if(typeof s==`string`)try{c=JSON.parse(s)}catch(e){try{c=JSON.parse(N(s))}catch(e){c=[]}}return Array.isArray(c)||(c=[]),c.map(t=>t===`$event`?e:t)}function F(e){if(!e||typeof e!=`object`)return{};if(Array.isArray(e)){let t={};for(let n=0;n<e.length;n+=2){let r=e[n];typeof r==`string`&&r&&(t[r]=e[n+1])}return t}return e}function I(e){return Array.isArray(e)&&e[0]===g&&typeof e[1]==`string`}function L(e,t){return(...n)=>{var r;let i=e==null||(r=e.selectOwnerComponent)==null?void 0:r.call(e),a=i==null?void 0:i[d];if(typeof a!=`function`)return;let o={wd:1,wi:t[1]},s=Array.isArray(t[2])?t[2]:[],c=Array.isArray(t[3])?t[3]:[];s.forEach((e,t)=>o[`wvS${t}`]=e),c.forEach((e,t)=>o[`wvI${t}`]=e);let l={type:`wv-slot-function`,detail:n,currentTarget:{dataset:o},target:{dataset:o}};return a.call(i,l)}}function R(e,t){let n={};for(let[r,i]of Object.entries(t))n[r]=I(i)?L(e,i):i;return n}function z(e){var t,n,r,i;return(t=(n=e==null||(r=e.__wevu)==null?void 0:r.proxy)==null?e==null||(i=e[h])==null?void 0:i.proxy:n)==null?e:t}function B(e,t){if(!t||Object.keys(t).length===0)return;let n=z(e),r={};for(let[e,i]of Object.entries(t))try{let t;typeof i==`function`?t=i.call(n):typeof(i==null?void 0:i.get)==`function`&&(t=i.get.call(n)),t!==void 0&&(r[e]=t)}catch(e){}return r}function V(e){var t,n;e==null||(t=e.__wevu)==null||(n=t.__wevu_flushSetupSnapshotSync)==null||n.call(t)}function H(r,i,a){var o;V(r);let s=B(r,i);if(!s||typeof(r==null?void 0:r.setData)!=`function`)return;let c=e(r,`__wvScopedSlotComputedSnapshot`),l=(o=r.__wvScopedSlotComputedSnapshot)==null?{}:o,u={},d={};for(let[r,i]of Object.entries(s))u[r]=t(i),(a!=null&&a.force||!c||!e(l,r)||!n(l[r],i,20,{keys:1e4}))&&(d[r]=i);for(let t of Object.keys(l))e(s,t)||(d[t]=null);r.__wvScopedSlotComputedSnapshot=u,Object.keys(d).length>0&&r.setData(d)}function U(r,i){var a,o,s,c,l;let u=e(i==null?{}:i,C)?i[C]:r==null||(a=r.properties)==null?void 0:a[C],d=e(i==null?{}:i,S)?i[S]:r==null||(o=r.properties)==null?void 0:o[S],f=F(u),p=F(d),m={...f,...p},h=!e(r,`__wvSlotPropsSnapshot`)||!n((s=r.__wvSlotPropsSnapshot)==null?{}:s,m,20,{keys:1e4}),g=h||!r[x]?R(r,m):r[x];h&&(r.__wvSlotPropsSnapshot=t(m)),r[x]=g;let _=r==null||(c=r.__wevu)==null?void 0:c.state,v=!(!_||typeof _!=`object`||e(_,x)&&n((l=_[x])==null?{}:l,m,20,{keys:1e4}));return _&&typeof _==`object`&&(_[x]=g),{merged:g,runtimeSnapshotChanged:v,snapshot:m,snapshotChanged:h}}function W(e,t,n){let{runtimeSnapshotChanged:r,snapshot:i,snapshotChanged:a}=U(e,n);(a||r)&&typeof(e==null?void 0:e.setData)==`function`&&e.setData({[x]:i}),a&&H(e,t)}function G(e,t){var n;let r=!1;e[b]!==t&&(e[b]=t,r=!0);let i=e==null?void 0:e.data;if(i&&typeof i==`object`&&i[b]!==t){try{Object.defineProperty(i,b,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(e){i[b]=t}r=!0}let a=e==null||(n=e.__wevu)==null?void 0:n.state;return a&&typeof a==`object`&&a[b]!==t&&(a[b]=t,r=!0),r}function K(e){if(!e||typeof e!=`object`)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function q(e,n,r,i){if(typeof e==`function`){r[n]=e;return}if(typeof e!=`object`||!e)return e;if(i.has(e))return;if(Array.isArray(e)){i.add(e);let t=e.map((e,t)=>{let a=q(e,`${n}.${t}`,r,i);return a===void 0?null:a});return i.delete(e),t}if(!K(e))return t(e);i.add(e);let a={};for(let[t,o]of Object.entries(e)){let e=q(o,`${n}.${t}`,r,i);e!==void 0&&(a[t]=e)}return i.delete(e),a}function J(e){let t={},n=q(e,y,t,new WeakSet);return{[y]:n,...t}}function Y(r,i,a,o){var s;let c=G(r,a),{snapshotChanged:l}=U(r),u=i||{},d=!e(r,`__wvOwnerSnapshot`)||!n((s=r.__wvOwnerSnapshot)==null?{}:s,u,20,{keys:1e4});if(d){var f;r.__wvOwnerSnapshot=t(u),r[y]=u;let e=r==null||(f=r.__wevu)==null?void 0:f.state;e&&typeof e==`object`&&(e[y]=u)}d&&typeof(r==null?void 0:r.setData)==`function`&&r.setData(J(u)),(d||c||l)&&H(r,o)}function X(e,t,n){if(!t){typeof(e==null?void 0:e.__wvOwnerUnsub)==`function`&&e.__wvOwnerUnsub(),e.__wvOwnerUnsub=void 0,e.__wvOwnerBoundId=``,G(e,void 0);return}let r=(t,r)=>{Y(e,t,r,n)};e.__wvOwnerBoundId!==t&&(typeof e.__wvOwnerUnsub==`function`&&e.__wvOwnerUnsub(),e.__wvOwnerBoundId=t,e.__wvOwnerUnsub=c(t,r));let i=o(t);i&&r(i,a(t))}function Z(e){var t,n,r,i;return(t=(n=e==null||(r=e.properties)==null?void 0:r[v])==null?e==null||(i=e.properties)==null?void 0:i[_]:n)==null?``:t}function Q(e,t){W(e,t);let n=Z(e);n&&X(e,n,t)}function $(){let e={[y]:{},[x]:{}};return Object.defineProperty(e,b,{value:void 0,configurable:!0,enumerable:!1,writable:!0}),e}function ee(e){let t=e==null?void 0:e.computed,n=e==null?void 0:e.templateRefs,a=e=>{let t=Z(e);return t?s(t):void 0},o={options:{virtualHost:!0},setData:{omit:T},[m]:T,properties:{[v]:{type:String,value:``,observer(e){X(this,e||``,t)}},[_]:{type:String,value:``,observer(e){X(this,e||``,t)}},[S]:{type:null,value:null,observer(e){W(this,t,{[S]:e})}},[C]:{type:null,value:null,observer(e){W(this,t,{[C]:e})}}},data:$,lifetimes:{attached(){Q(this,t)},ready(){Q(this,t),H(this,t,{force:!0});let e=a(this);e&&u(this,void 0,e)},detached(){let e=a(this);e&&l(this,e),typeof this.__wvOwnerUnsub==`function`&&this.__wvOwnerUnsub(),this.__wvOwnerUnsub=void 0,this.__wvOwnerBoundId=``,G(this,void 0)}},methods:{[p](e){var t,n,a,o,s;let c=this[b],l=(t=this.__wevu)==null||(t=t.methods)==null?void 0:t[f],u=i(c,void 0,e,l);if(u!==void 0)return u;if(!c)return;let d=(n=(a=e==null||(o=e.currentTarget)==null?void 0:o.dataset)==null?e==null||(s=e.target)==null?void 0:s.dataset:a)==null?{}:n,p=r(d,`wvHandler`,e);if(typeof p!=`string`||!p)return;let m=c==null?void 0:c[p];if(typeof m!=`function`)return;let h=P(e);return m.apply(c,h)}}};return e!=null&&e.computed&&Object.keys(e.computed).length>0&&(o.computed=e.computed),e!=null&&e.inlineMap&&Object.keys(e.inlineMap).length>0&&(o.methods={...o.methods,[f]:e.inlineMap}),n!=null&&n.length&&(o[w]=n),o}export{ee as createScopedSlotOptions};
1
+ import{requireRuntimeCapability as e,runtimeCapabilityRegistry as t}from"../capabilities.mjs";import{runTeardownSteps as n}from"../teardown.mjs";import{hasOwn as r}from"../../utils.mjs";import{cloneSnapshotValue as i,isDeepEqualValue as a}from"../app/setData/snapshot.mjs";import{decodeWxmlEntities as o,resolveDatasetEventValue as s}from"../inlineDataset.mjs";import{getOwnerProxy as c,getOwnerSnapshot as l,getOwnerTarget as u,subscribeOwner as d}from"../scopedSlots.mjs";import{WEVU_BINDING_MANIFEST_KEY as f,WEVU_INLINE_HANDLER as p,WEVU_INLINE_MAP_KEY as m,WEVU_LAYOUT_HOSTS_KEY as h,WEVU_OWNER_HANDLER as g,WEVU_PROPS_DERIVED_KEYS_KEY as _,WEVU_PUBLIC_RUNTIME_KEY as v,WEVU_SCOPED_SLOT_OWNER_REQUIRED_KEY as y,WEVU_SLOT_FUNCTION_TOKEN as b,WEVU_SLOT_OWNER_ID_KEY as x,WEVU_SLOT_OWNER_ID_PROP as S,WEVU_SLOT_OWNER_KEY as C,WEVU_SLOT_OWNER_PROXY_KEY as w,WEVU_SLOT_PROPS_DATA_KEY as T,WEVU_SLOT_PROPS_KEY as E,WEVU_SLOT_SCOPE_KEY as D,WEVU_TEMPLATE_REFS_KEY as O}from"@weapp-core/constants";const k=[x,S,w,C,T,E,D];function A(e){var t,n,r,i;let a=(t=(n=e==null||(r=e.currentTarget)==null?void 0:r.dataset)==null?e==null||(i=e.target)==null?void 0:i.dataset:n)==null?{}:t,c=s(a,`wvArgs`,e),l=[];if(Array.isArray(c))l=c;else if(typeof c==`string`)try{l=JSON.parse(c)}catch(e){try{l=JSON.parse(o(c))}catch(e){l=[]}}return Array.isArray(l)||(l=[]),l.map(t=>t===`$event`?e:t)}function j(e){if(!e||typeof e!=`object`)return{};if(Array.isArray(e)){let t={};for(let n=0;n<e.length;n+=2){let r=e[n];typeof r==`string`&&r&&(t[r]=e[n+1])}return t}return e}function M(e){return Array.isArray(e)&&e[0]===b&&typeof e[1]==`string`}function N(e,t){return(...n)=>{var r;let i=e==null||(r=e.selectOwnerComponent)==null?void 0:r.call(e),a=i==null?void 0:i[p];if(typeof a!=`function`)return;let o={wd:1,wi:t[1]},s=Array.isArray(t[2])?t[2]:[],c=Array.isArray(t[3])?t[3]:[];s.forEach((e,t)=>o[`wvS${t}`]=e),c.forEach((e,t)=>o[`wvI${t}`]=e);let l={type:`wv-slot-function`,detail:n,currentTarget:{dataset:o},target:{dataset:o}};return a.call(i,l)}}function P(e,t){let n={};for(let[r,i]of Object.entries(t))n[r]=M(i)?N(e,i):i;return n}function F(e){var t,n,r,i;return(t=(n=e==null||(r=e.__wevu)==null?void 0:r.proxy)==null?e==null||(i=e[v])==null?void 0:i.proxy:n)==null?e:t}function I(e,t){if(!t||Object.keys(t).length===0)return;let n=F(e),r={};for(let[e,i]of Object.entries(t))try{let t;typeof i==`function`?t=i.call(n):typeof(i==null?void 0:i.get)==`function`&&(t=i.get.call(n)),t!==void 0&&(r[e]=t)}catch(e){}return r}function L(e){var t,n;e==null||(t=e.__wevu)==null||(n=t.__wevu_flushSetupSnapshotSync)==null||n.call(t)}function R(e,t,n){var o;L(e);let s=I(e,t);if(!s||typeof(e==null?void 0:e.setData)!=`function`)return;let c=r(e,`__wvScopedSlotComputedSnapshot`),l=(o=e.__wvScopedSlotComputedSnapshot)==null?{}:o,u={},d={};for(let[e,t]of Object.entries(s))u[e]=i(t),(n!=null&&n.force||!c||!r(l,e)||!a(l[e],t,20,{keys:1e4}))&&(d[e]=t);for(let e of Object.keys(l))r(s,e)||(d[e]=null);e.__wvScopedSlotComputedSnapshot=u,Object.keys(d).length>0&&e.setData(d)}function z(e,t){var n,o,s,c,l;let u=r(t==null?{}:t,D)?t[D]:e==null||(n=e.properties)==null?void 0:n[D],d=r(t==null?{}:t,E)?t[E]:e==null||(o=e.properties)==null?void 0:o[E],f=j(u),p=j(d),m={...f,...p},h=!r(e,`__wvSlotPropsSnapshot`)||!a((s=e.__wvSlotPropsSnapshot)==null?{}:s,m,20,{keys:1e4}),g=h||!e[T]?P(e,m):e[T];h&&(e.__wvSlotPropsSnapshot=i(m)),e[T]=g;let _=e==null||(c=e.__wevu)==null?void 0:c.state,v=!(!_||typeof _!=`object`||r(_,T)&&a((l=_[T])==null?{}:l,m,20,{keys:1e4}));return _&&typeof _==`object`&&(_[T]=g),{merged:g,runtimeSnapshotChanged:v,snapshot:m,snapshotChanged:h}}function B(e,t,n){let{runtimeSnapshotChanged:r,snapshot:i,snapshotChanged:a}=z(e,n);(a||r)&&typeof(e==null?void 0:e.setData)==`function`&&e.setData({[T]:i}),a&&R(e,t)}function V(e,t){var n;let r=!1;e[w]!==t&&(e[w]=t,r=!0);let i=e==null?void 0:e.data;if(i&&typeof i==`object`&&i[w]!==t){try{Object.defineProperty(i,w,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(e){i[w]=t}r=!0}let a=e==null||(n=e.__wevu)==null?void 0:n.state;return a&&typeof a==`object`&&a[w]!==t&&(a[w]=t,r=!0),r}function H(e){if(!e||typeof e!=`object`)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function U(e,t,n,r){if(typeof e==`function`){n[t]=e;return}if(typeof e!=`object`||!e)return e;if(r.has(e))return;if(Array.isArray(e)){r.add(e);let i=e.map((e,i)=>{let a=U(e,`${t}.${i}`,n,r);return a===void 0?null:a});return r.delete(e),i}if(!H(e))return i(e);r.add(e);let a={};for(let[i,o]of Object.entries(e)){let e=U(o,`${t}.${i}`,n,r);e!==void 0&&(a[i]=e)}return r.delete(e),a}function W(e){let t={},n=U(e,C,t,new WeakSet);return{[C]:n,...t}}function G(e,t,n,o){var s;let c=V(e,n),{snapshotChanged:l}=z(e),u=t||{},d=!r(e,`__wvOwnerSnapshot`)||!a((s=e.__wvOwnerSnapshot)==null?{}:s,u,20,{keys:1e4});if(d){var f;e.__wvOwnerSnapshot=i(u),e[C]=u;let t=e==null||(f=e.__wevu)==null?void 0:f.state;t&&typeof t==`object`&&(t[C]=u)}d&&typeof(e==null?void 0:e.setData)==`function`&&e.setData(W(u)),(d||c||l)&&R(e,o)}function K(e,t,n){if(!t){typeof(e==null?void 0:e.__wvOwnerUnsub)==`function`&&e.__wvOwnerUnsub(),e.__wvOwnerUnsub=void 0,e.__wvOwnerBoundId=``,V(e,void 0);return}let r=(t,r)=>{G(e,t,r,n)};e.__wvOwnerBoundId!==t&&(typeof e.__wvOwnerUnsub==`function`&&e.__wvOwnerUnsub(),e.__wvOwnerBoundId=t,e.__wvOwnerUnsub=d(t,r));let i=l(t);i&&r(i,c(t))}function q(e){var t,n,r,i;return(t=(n=e==null||(r=e.properties)==null?void 0:r[S])==null?e==null||(i=e.properties)==null?void 0:i[x]:n)==null?``:t}function J(e,t){B(e,t);let n=q(e);n&&K(e,n,t)}function Y(){let e={[C]:{},[T]:{}};return Object.defineProperty(e,w,{value:void 0,configurable:!0,enumerable:!1,writable:!0}),e}function X(r){let i=r==null?void 0:r.computed,a=r==null?void 0:r.layoutHosts,o=r==null?void 0:r.templateRefs;o!=null&&o.length&&e(`templateRefs`,`createWevuScopedSlotComponent(templateRefs)`);let c=!!(r!=null&&r.inlineMap&&Object.keys(r.inlineMap).length);c&&e(`inlineEvents`,`createWevuScopedSlotComponent(inlineMap)`),a!=null&&a.length&&e(`layout`,`createWevuScopedSlotComponent(layoutHosts)`);let l=e=>{let t=q(e);return t?u(t):void 0},d={[y]:!0,options:{virtualHost:!0},setData:{omit:k},[_]:k,properties:{[S]:{type:String,value:``,observer(e){K(this,e||``,i)}},[x]:{type:String,value:``,observer(e){K(this,e||``,i)}},[E]:{type:null,value:null,observer(e){B(this,i,{[E]:e})}},[D]:{type:null,value:null,observer(e){B(this,i,{[D]:e})}}},data:Y,lifetimes:{attached(){J(this,i)},ready(){J(this,i),R(this,i,{force:!0});let e=l(this);if(e&&o!=null&&o.length){var n;(n=t.templateRefs)==null||n.schedule(this,void 0,e)}},detached(){let e=l(this);n([()=>{if(e&&o!=null&&o.length){var n;(n=t.templateRefs)==null||n.clear(this,e)}},()=>{typeof this.__wvOwnerUnsub==`function`&&this.__wvOwnerUnsub()},()=>{this.__wvOwnerUnsub=void 0,this.__wvOwnerBoundId=``},()=>V(this,void 0)])}},methods:{[g](e){var n,r,i,a,o;let l=this[w],u=(n=this.__wevu)==null||(n=n.methods)==null?void 0:n[m];if(c){var d;let n=(d=t.inlineEvents)==null?void 0:d.run(l,void 0,e,u);if(n!==void 0)return n}if(!l)return;let f=(r=(i=e==null||(a=e.currentTarget)==null?void 0:a.dataset)==null?e==null||(o=e.target)==null?void 0:o.dataset:i)==null?{}:r,p=s(f,`wvHandler`,e);if(typeof p!=`string`||!p)return;let h=l==null?void 0:l[p];if(typeof h!=`function`)return;let g=A(e);return h.apply(l,g)}}};return r!=null&&r.computed&&Object.keys(r.computed).length>0&&(d.computed=r.computed),r!=null&&r.inlineMap&&Object.keys(r.inlineMap).length>0&&(d.methods={...d.methods,[m]:r.inlineMap}),o!=null&&o.length&&(d[O]=o),a!=null&&a.length&&(d[h]=a),r!=null&&r[f]&&(d[f]=r[f]),d}export{X as createScopedSlotOptions};
@@ -7,8 +7,7 @@ import { DefineComponent, ShallowUnwrapRef } from "../vue-types.mjs";
7
7
  import { SetDataSnapshotOptions } from "./types/setData.mjs";
8
8
  import { DefineComponentOptions } from "./types/options.mjs";
9
9
  import "./types.mjs";
10
- import { InlineExpressionMap } from "./register/inline.mjs";
11
- import { TemplateRefBinding } from "./templateRefs.mjs";
10
+ import { WevuRuntimeBindingManifestV1 } from "@weapp-core/constants";
12
11
  //#region src/runtime/define.d.ts
13
12
  /**
14
13
  * defineComponent 返回的组件定义描述,用于手动注册或高级用法。
@@ -24,16 +23,18 @@ export interface ComponentDefinition<D extends object, C extends ComputedDefinit
24
23
  * @internal
25
24
  */
26
25
  __wevu_options: {
26
+ scopedSlotOwnerRequired: boolean;
27
27
  data: () => D;
28
28
  computed: C;
29
29
  methods: M;
30
30
  setData: SetDataSnapshotOptions | undefined;
31
+ bindingManifest?: WevuRuntimeBindingManifestV1;
31
32
  watch: Record<string, any> | undefined;
32
33
  setup: ((props: any, ctx: any) => any) | undefined;
33
34
  mpOptions: MiniProgramComponentRawOptions;
34
35
  };
35
36
  }
36
- type SetupBindings<S> = Exclude<S, void> extends never ? Record<string, never> : Exclude<S, void>;
37
+ type SetupBindings<S> = Exclude<S, void> extends never ? Record<never, never> : Exclude<S, void>;
37
38
  type ResolveProps<P> = P extends ComponentPropsOptions ? InferProps<P> : P;
38
39
  export interface WevuComponentConstructor<Props, RawBindings, D extends object, C extends ComputedDefinitions, M extends MethodDefinitions> {
39
40
  new (): ComponentPublicInstance<D, C, M, Props> & ShallowUnwrapRef<RawBindings>;
@@ -82,7 +83,7 @@ export interface DefineComponentWithTypeProps<TypeProps> {
82
83
  * ```
83
84
  */
84
85
  export declare function defineComponent<TypeProps = any>(options: DefineComponentTypePropsOptions<TypeProps>): DefineComponentWithTypeProps<TypeProps>;
85
- export declare function defineComponent<P extends ComponentPropsOptions = ComponentPropsOptions, D extends object = Record<string, any>, C extends ComputedDefinitions = ComputedDefinitions, M extends MethodDefinitions = MethodDefinitions, S extends Record<string, any> | void = Record<string, any> | void>(options: DefineComponentOptions<P, D, C, M, S>): WevuComponentConstructor<ResolveProps<P>, SetupBindings<S>, D, C, M> & ComponentDefinition<D, C, M>;
86
+ export declare function defineComponent<P extends ComponentPropsOptions = Record<never, never>, D extends object = Record<never, never>, C extends ComputedDefinitions = Record<never, never>, M extends MethodDefinitions = Record<never, never>, S extends Record<string, any> | void = void>(options: DefineComponentOptions<P, D, C, M, S>): WevuComponentConstructor<ResolveProps<P>, SetupBindings<S>, D, C, M> & ComponentDefinition<D, C, M>;
86
87
  /**
87
88
  * 创建不触发宿主全局注册的 Wevu 组件定义。
88
89
  *
@@ -113,13 +114,4 @@ export declare function getWevuComponentLifecycleDefinition(definition: object):
113
114
  export declare function createWevuComponent<P extends ComponentPropsOptions = ComponentPropsOptions, D extends object = Record<string, any>, C extends ComputedDefinitions = ComputedDefinitions, M extends MethodDefinitions = MethodDefinitions>(options: DefineComponentOptions<P, D, C, M> & {
114
115
  properties?: HostMiniProgramComponentPropertyOption;
115
116
  }): void;
116
- /**
117
- * scoped slot 兼容组件入口(编译产物内部使用)。
118
- * @internal
119
- */
120
- export declare function createWevuScopedSlotComponent(overrides?: {
121
- computed?: ComputedDefinitions;
122
- inlineMap?: InlineExpressionMap;
123
- templateRefs?: TemplateRefBinding[];
124
- }): void;
125
117
  //#endregion
@@ -1 +1 @@
1
- import{getScopedSlotHostGlobalObject as e}from"./platform.mjs";import{hasOwn as t}from"../utils.mjs";import{applyWevuComponentDefaults as n}from"./defaults.mjs";import{allocateOwnerId as r}from"./scopedSlots.mjs";import{runSetupFunction as i}from"./register/setup.mjs";import{createRuntimeComponentDefinition as a}from"./define/componentDefinition.mjs";import{resolveNativeInitialData as o}from"./define/initialComputed.mjs";import{resolveVueComponentOptions as s}from"./define/options.mjs";import{applyOptionsApiProvide as c,resolveOptionsApiInjections as l}from"./define/optionsApi.mjs";import{normalizeProps as u}from"./define/props.mjs";import{createScopedSlotOptions as d}from"./define/scopedSlotOptions.mjs";import{applySetupResult as f}from"./define/setupResult.mjs";import{WEVU_CSS_MODULES_KEY as p,WEVU_FUNCTION_PROP_PATHS_KEY as m,WEVU_SCOPED_SLOT_CREATOR_KEY as h,WEVU_SLOT_OWNER_ID_KEY as g,WEVU_SLOT_OWNER_ID_PROP as _,WEVU_SLOT_SCOPE_KEY as v}from"@weapp-core/constants";let y;const b=new WeakMap;function x(){let t=e();if(!t)return;let n=t;y&&n[h]!==y&&(n[h]=y)}function S(e,n){let r={...n==null?{}:n};if(!e||typeof e!=`object`)return r;for(let[n,i]of Object.entries(e))i&&typeof i==`object`&&t(i,`value`)&&(r[n]=i.value);return r}function C(e,t){return!!e.__wevu_isPage&&Array.isArray(t==null?void 0:t.pick)&&t.pick.includes(g)}function w(e){return Array.isArray(e==null?void 0:e.pick)&&e.pick.includes(g)}function T(e){let t=e.properties;return!!(t&&typeof t==`object`&&(_ in t||v in t))}function E(e,t){return(t==null?void 0:t.strategy)!==`patch`||!T(e)?t:{...t,strategy:`diff`}}function D(e,t=!1){let{lifecycleDefinition:n,runtimeApp:r}=a(e,t),i={__wevu_runtime:r,__wevu_options:e};return b.set(i,n),i}function O(e){return k(e,!0)}function k(e,t){t&&x();let{__typeProps:a,data:d,computed:h,methods:_,setData:v,watch:y,setup:b,props:T,inject:O,provide:k,allowFunctionProps:A,[p]:j,...M}=s(n(e)),N=M[m],P=Array.isArray(N)?[...new Set(N.filter(e=>typeof e==`string`&&e.length>0))]:[];delete M[m];let F=E(M,A===!0?{...v==null?{}:v,includeFunctions:!0,functionPaths:P}:A===!1?v:P.length?{...v==null?{}:v,functionPaths:P}:v),I=new Set(P.filter(e=>!e.includes(`.`))),L=u(M,T),R=S(L.properties,_),z=typeof d==`function`?()=>d.call(R):d,B=typeof b==`function`||O!=null||k!=null||j?((e,t)=>{var n,r;j&&typeof j==`object`&&(t.instance[p]=j);let a=(n=(r=t==null?void 0:t.proxy)==null?t==null?void 0:t.instance:r)==null?Object.create(null):n,o=l(O,a);k!=null&&c(k,a);let s=typeof b==`function`?i(b,e,t):void 0,u={...o,...j==null?{}:j,...s==null?{}:s};return t&&Object.keys(u).length&&f(t.runtime,t.instance,u,{includeFunctionsInState:A===!0,functionPropPaths:A===!1?void 0:I}),u}):void 0,V=typeof z==`function`?z():z,H=w(F)?{...V&&typeof V==`object`?V:{},[g]:C(M,F)?(V==null?void 0:V[g])||r():(V==null?void 0:V[g])||``}:V,U=o(H,h,F,_);return D({data:z,computed:h,methods:_,setData:F,watch:y,setup:B,mpOptions:U===void 0?L:{...L,data:U}},t)}function A(e){return k(e,!1)}function j(e){let t=e.__wevu_options;if(!t)throw TypeError(`无法从非 Wevu 组件定义创建独立运行时`);return D(t)}function M(e){return b.get(e)}function N(e){var t;x();let{properties:n,props:r,...i}=e,a={...i,allowNullPropInput:(t=i.allowNullPropInput)==null||t,__wevu_allowNullPropInput:!0};O(u(a,r,n))}function P(e){N(d(e))}y=P,x();export{j as createIsolatedWevuComponentDefinition,N as createWevuComponent,A as createWevuComponentDefinition,P as createWevuScopedSlotComponent,O as defineComponent,M as getWevuComponentLifecycleDefinition};
1
+ import{applyWevuComponentDefaults as e}from"./defaults.mjs";import{requireRuntimeCapability as t}from"./capabilities.mjs";import{hasOwn as n}from"../utils.mjs";import{hasBindingOutputPath as r,resolveBindingManifest as i}from"./bindingManifest.mjs";import{runSetupFunction as a}from"./register/setup.mjs";import{createRuntimeComponentDefinition as o}from"./define/componentDefinition.mjs";import{resolveNativeInitialData as s}from"./define/initialComputed.mjs";import{resolveVueComponentOptions as c}from"./define/options.mjs";import{applyOptionsApiProvide as l,resolveOptionsApiInjections as u}from"./define/optionsApi.mjs";import{normalizeProps as d}from"./define/props.mjs";import{applySetupResult as f}from"./define/setupResult.mjs";import{WEVU_BINDING_MANIFEST_KEY as p,WEVU_CSS_MODULES_KEY as m,WEVU_FUNCTION_PROP_PATHS_KEY as h,WEVU_SCOPED_SLOT_OWNER_REQUIRED_KEY as g,WEVU_SLOT_OWNER_ID_KEY as _,WEVU_SLOT_OWNER_ID_PROP as v,WEVU_SLOT_SCOPE_KEY as y}from"@weapp-core/constants";const b=new WeakMap;function x(e,t){let r={...t==null?{}:t};if(!e||typeof e!=`object`)return r;for(let[t,i]of Object.entries(e))i&&typeof i==`object`&&n(i,`value`)&&(r[t]=i.value);return r}function S(e,t){var n;return Array.isArray(e==null?void 0:e.pick)&&e.pick.includes(_)||(t==null||(n=t.features)==null?void 0:n.scopedSlots)===!0&&r(t,_)}function C(e){return!!e.__wevu_isPage}function w(e){let t=e.properties;return!!(t&&typeof t==`object`&&(v in t||y in t))}function T(e,t){return(t==null?void 0:t.strategy)!==`patch`||!w(e)?t:{...t,strategy:`diff`}}function E(e,t=!1){let{lifecycleDefinition:n,runtimeApp:r}=o(e,t),i={__wevu_runtime:r,__wevu_options:e};return b.set(i,n),i}function D(e){return O(e,!0)}function O(n,r){let{__typeProps:o,[g]:v,data:y,computed:b,methods:w,setData:D,watch:O,setup:k,props:A,inject:j,provide:M,allowFunctionProps:N,[p]:P,[m]:F,...I}=c(e(n)),L=i(P),R=I[h],z=Array.isArray(R)?[...new Set(R.filter(e=>typeof e==`string`&&e.length>0))]:[];delete I[h];let B=T(I,N===!0?{...D==null?{}:D,includeFunctions:!0,functionPaths:z}:N===!1?D:z.length?{...D==null?{}:D,functionPaths:z}:D),V=new Set(z.filter(e=>!e.includes(`.`))),H=d(I,A,I.properties),U=x(H.properties,w),W=typeof y==`function`?()=>y.call(U):y,G=typeof k==`function`||j!=null||M!=null||F?((e,t)=>{var n,r;F&&typeof F==`object`&&(t.instance[m]=F);let i=(n=(r=t==null?void 0:t.proxy)==null?t==null?void 0:t.instance:r)==null?Object.create(null):n,o=u(j,i);M!=null&&l(M,i);let s=typeof k==`function`?a(k,e,t):void 0,c={...o,...F==null?{}:F,...s==null?{}:s};return t&&Object.keys(c).length&&f(t.runtime,t.instance,c,{includeFunctionsInState:N===!0,functionPropPaths:N===!1?void 0:V}),c}):void 0,K=typeof W==`function`?W():W,q=K&&typeof K==`object`?Reflect.get(K,_):void 0,J=S(B,L),Y=J?t(`scopedSlots`,`defineComponent(scoped-slot owner metadata)`):void 0,X=J?{...K&&typeof K==`object`?K:{},[_]:C(I)?q||(Y==null?void 0:Y.allocateOwnerId()):q||``}:K,Z=s(X,b,B,w),Q=Z===void 0?H:{...H,data:Z};return E({scopedSlotOwnerRequired:v===!0,data:W,computed:b,methods:w,setData:B,bindingManifest:L,watch:O,setup:G,mpOptions:Q},r)}function k(e){return O(e,!1)}function A(e){let t=e.__wevu_options;if(!t)throw TypeError(`无法从非 Wevu 组件定义创建独立运行时`);return E(t)}function j(e){return b.get(e)}function M(e){var t;let n=(t=e.allowNullPropInput)==null||t;D({...e,allowNullPropInput:n,__wevu_allowNullPropInput:n})}export{A as createIsolatedWevuComponentDefinition,M as createWevuComponent,k as createWevuComponentDefinition,D as defineComponent,j as getWevuComponentLifecycleDefinition};
@@ -1 +1 @@
1
- import{toRaw as e}from"../reactivity/reactive/shared.mjs";import{getReactiveVersion as t,isReactive as n}from"../reactivity/reactive.mjs";import{unref as r}from"../reactivity/ref.mjs";import{hasOwn as i}from"../utils.mjs";import{hasTrackableSetupBinding as a}from"./setupTracking.mjs";import{isNoSetData as o}from"./noSetData.mjs";function s(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function c(e,t){if(!e||!t)return!1;let n=t;for(;n;){if(e.has(n))return!0;let t=n.lastIndexOf(`.`);if(t<0)return!1;n=n.slice(0,t)}return!1}function l(i,s,u,d,f,p,m,h,g,_){let v=r(i);if(typeof v==`bigint`){let e=Number(v);return Number.isSafeInteger(e)?e:v.toString()}if(typeof v==`symbol`)return v.toString();if(typeof v==`function`)return h||c(g,_)?v:void 0;if(typeof v!=`object`||!v)return v;if(o(v))return;let y=n(v),b=y?e(v):v,x=!!d&&y;if(d&&!x){let e=f==null?void 0:f.get(b);x=e==null?!a(b):e,f==null||f.set(b,x)}let S=x?d:void 0;if(p<=0||m.keys<=0)return b;if(S){let e=t(b),n=S.get(b);if(n&&n.version===e)return n.value}if(u.has(b))return;if(s.has(b))return s.get(b);if(b instanceof Date)return b.getTime();if(b instanceof RegExp)return b.toString();if(b instanceof Map){let e=[];return s.set(b,e),u.add(b),b.forEach((t,n)=>{e.push([l(n,s,u,void 0,void 0,1/0,{keys:1/0},h,void 0,``),l(t,s,u,void 0,void 0,1/0,{keys:1/0},h,void 0,``)])}),u.delete(b),e}if(b instanceof Set){let e=[];return s.set(b,e),u.add(b),b.forEach(t=>{e.push(l(t,s,u,void 0,void 0,1/0,{keys:1/0},h,void 0,``))}),u.delete(b),e}if(typeof ArrayBuffer<`u`){if(b instanceof ArrayBuffer)return b.byteLength;if(ArrayBuffer.isView(b)){let e=b;if(typeof e[Symbol.iterator]==`function`){let t=[...e];return s.set(b,t),t.map(e=>l(e,s,u,void 0,void 0,1/0,{keys:1/0},h,void 0,``))}let t=[...new Uint8Array(e.buffer,e.byteOffset,e.byteLength)];return s.set(b,t),t}}if(b instanceof Error)return{name:b.name,message:b.message};if(Array.isArray(b)){let e=[];s.set(b,e),u.add(b);let n=p-1;for(let t=0;t<b.length;t+=1){let r=_?`${_}.${t}`:String(t),i=l(b[t],s,u,d,f,n,m,h,g,r);e[t]=i===void 0?null:i}return u.delete(b),S&&S.set(b,{version:t(b),value:e}),e}let C={};s.set(b,C),u.add(b);let w=p-1;for(let e of Object.keys(b)){if(--m.keys,m.keys<=0)break;let t=_?`${_}.${e}`:e,n=l(b[e],s,u,d,f,w,m,h,g,t);n!==void 0&&(C[e]=n)}return u.delete(b),S&&S.set(b,{version:t(b),value:C}),C}function u(e,t=new WeakMap,n){var r,i,a;let o=(r=n==null?void 0:n._depth)==null?typeof(n==null?void 0:n.maxDepth)==`number`?Math.max(0,Math.floor(n.maxDepth)):1/0:r,s=(i=n==null?void 0:n._budget)==null?typeof(n==null?void 0:n.maxKeys)==`number`?{keys:Math.max(0,Math.floor(n.maxKeys))}:{keys:1/0}:i,c=Array.isArray(n==null?void 0:n.functionPaths)&&n.functionPaths.length?new Set(n.functionPaths):void 0;return l(e,t,new WeakSet,n==null?void 0:n.cache,n==null?void 0:n.cacheEligibility,o,s,!!(n!=null&&n.includeFunctions),c,(a=n==null?void 0:n._path)==null?``:a)}function d(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function f(e,t,n){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let a of r)if(!i(t,a)||!n(e[a],t[a]))return!1;return!0}function p(e,t){return Object.is(e,t)?!0:Array.isArray(e)&&Array.isArray(t)?d(e,t,p):s(e)&&s(t)?f(e,t,p):!1}function m(e){return e===void 0?null:e}function h(e,t,n,r){if(!p(e,t)){if(s(e)&&s(t)){for(let a of Object.keys(t)){if(!i(e,a)){r[`${n}.${a}`]=m(t[a]);continue}h(e[a],t[a],`${n}.${a}`,r)}for(let a of Object.keys(e))i(t,a)||(r[`${n}.${a}`]=null);return}if(Array.isArray(e)&&Array.isArray(t)){d(e,t,p)||(r[n]=m(t));return}r[n]=m(t)}}function g(e,t,n){let r={},a=n==null?void 0:n.skipKeys;for(let n of Object.keys(t))a!=null&&a.has(n)||h(e[n],t[n],n,r);for(let n of Object.keys(e))a!=null&&a.has(n)||i(t,n)||(r[n]=null);return r}export{g as diffSnapshots,u as toPlain};
1
+ import{toRaw as e}from"../reactivity/reactive/shared.mjs";import{getReactiveVersion as t,isReactive as n}from"../reactivity/reactive.mjs";import{unref as r}from"../reactivity/ref.mjs";import{isNoSetData as i}from"./noSetData.mjs";import{hasOwn as a}from"../utils.mjs";import{hasTrackableSetupBinding as o}from"./setupTracking.mjs";function s(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function c(e,t){if(!e||!t)return!1;let n=t;for(;n;){if(e.has(n))return!0;let t=n.lastIndexOf(`.`);if(t<0)return!1;n=n.slice(0,t)}return!1}function l(a,s,u,d,f,p,m,h,g,_){let v=r(a);if(typeof v==`bigint`){let e=Number(v);return Number.isSafeInteger(e)?e:v.toString()}if(typeof v==`symbol`)return v.toString();if(typeof v==`function`)return h||c(g,_)?v:void 0;if(typeof v!=`object`||!v)return v;if(i(v))return;let y=n(v),b=y?e(v):v,x=!!d&&y;if(d&&!x){let e=f==null?void 0:f.get(b);x=e==null?!o(b):e,f==null||f.set(b,x)}let S=x?d:void 0;if(p<=0||m.keys<=0)return b;if(S){let e=t(b),n=S.get(b);if(n&&n.version===e)return n.value}if(u.has(b))return;if(s.has(b))return s.get(b);if(b instanceof Date)return b.getTime();if(b instanceof RegExp)return b.toString();if(b instanceof Map){let e=[];return s.set(b,e),u.add(b),b.forEach((t,n)=>{e.push([l(n,s,u,void 0,void 0,1/0,{keys:1/0},h,void 0,``),l(t,s,u,void 0,void 0,1/0,{keys:1/0},h,void 0,``)])}),u.delete(b),e}if(b instanceof Set){let e=[];return s.set(b,e),u.add(b),b.forEach(t=>{e.push(l(t,s,u,void 0,void 0,1/0,{keys:1/0},h,void 0,``))}),u.delete(b),e}if(typeof ArrayBuffer<`u`){if(b instanceof ArrayBuffer)return b.byteLength;if(ArrayBuffer.isView(b)){let e=b;if(typeof e[Symbol.iterator]==`function`){let t=[...e];return s.set(b,t),t.map(e=>l(e,s,u,void 0,void 0,1/0,{keys:1/0},h,void 0,``))}let t=[...new Uint8Array(e.buffer,e.byteOffset,e.byteLength)];return s.set(b,t),t}}if(b instanceof Error)return{name:b.name,message:b.message};if(Array.isArray(b)){let e=[];s.set(b,e),u.add(b);let n=p-1;for(let t=0;t<b.length;t+=1){let r=_?`${_}.${t}`:String(t),i=l(b[t],s,u,d,f,n,m,h,g,r);e[t]=i===void 0?null:i}return u.delete(b),S&&S.set(b,{version:t(b),value:e}),e}let C={};s.set(b,C),u.add(b);let w=p-1;for(let e of Object.keys(b)){if(--m.keys,m.keys<=0)break;let t=_?`${_}.${e}`:e,n=l(b[e],s,u,d,f,w,m,h,g,t);n!==void 0&&(C[e]=n)}return u.delete(b),S&&S.set(b,{version:t(b),value:C}),C}function u(e,t=new WeakMap,n){var r,i,a;let o=(r=n==null?void 0:n._depth)==null?typeof(n==null?void 0:n.maxDepth)==`number`?Math.max(0,Math.floor(n.maxDepth)):1/0:r,s=(i=n==null?void 0:n._budget)==null?typeof(n==null?void 0:n.maxKeys)==`number`?{keys:Math.max(0,Math.floor(n.maxKeys))}:{keys:1/0}:i,c=Array.isArray(n==null?void 0:n.functionPaths)&&n.functionPaths.length?new Set(n.functionPaths):void 0;return l(e,t,new WeakSet,n==null?void 0:n.cache,n==null?void 0:n.cacheEligibility,o,s,!!(n!=null&&n.includeFunctions),c,(a=n==null?void 0:n._path)==null?``:a)}function d(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function f(e,t,n){let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let i of r)if(!a(t,i)||!n(e[i],t[i]))return!1;return!0}function p(e,t){return Object.is(e,t)?!0:Array.isArray(e)&&Array.isArray(t)?d(e,t,p):s(e)&&s(t)?f(e,t,p):!1}function m(e){return e===void 0?null:e}function h(e,t,n,r){if(!p(e,t)){if(s(e)&&s(t)){for(let i of Object.keys(t)){if(!a(e,i)){r[`${n}.${i}`]=m(t[i]);continue}h(e[i],t[i],`${n}.${i}`,r)}for(let i of Object.keys(e))a(t,i)||(r[`${n}.${i}`]=null);return}if(Array.isArray(e)&&Array.isArray(t)){d(e,t,p)||(r[n]=m(t));return}r[n]=m(t)}}function g(e,t,n){let r={},i=n==null?void 0:n.skipKeys;for(let n of Object.keys(t))i!=null&&i.has(n)||h(e[n],t[n],n,r);for(let n of Object.keys(e))i!=null&&i.has(n)||a(t,n)||(r[n]=null);return r}export{g as diffSnapshots,u as toPlain};
@@ -0,0 +1,6 @@
1
+ //#region src/runtime/features/inlineEvents.d.ts
2
+ /**
3
+ * 安装模板内联事件能力。
4
+ */
5
+ export declare function installInlineEvents(): void;
6
+ //#endregion
@@ -0,0 +1 @@
1
+ import{registerRuntimeCapability as e}from"../capabilities.mjs";import{runInlineExpression as t}from"../register/inline.mjs";import{WEVU_INLINE_MAP_KEY as n}from"@weapp-core/constants";const r={handler(e){var r,i;let a=this.__wevu,o=(r=a==null?void 0:a.proxy)==null?this:r,s=a==null||(i=a.methods)==null?void 0:i[n];return t(o,void 0,e,s&&typeof s==`object`&&!Array.isArray(s)?s:void 0)},run:t};function i(){e(`inlineEvents`,r)}export{i as installInlineEvents};
@@ -0,0 +1,6 @@
1
+ //#region src/runtime/features/layout.d.ts
2
+ /**
3
+ * 安装 layout 能力,并直接安装其模板 ref 依赖。
4
+ */
5
+ export declare function installLayout(): void;
6
+ //#endregion
@@ -0,0 +1 @@
1
+ import{registerRuntimeCapability as e}from"../capabilities.mjs";import{registerRuntimeLayoutHosts as t,unregisterRuntimeLayoutHosts as n}from"../layoutBridge.mjs";import{resolveRuntimePageLayoutName as r,syncRuntimePageLayoutState as i}from"../pageLayout.mjs";import{runTeardownSteps as a}from"../teardown.mjs";import{installTemplateRefs as o}from"./templateRefs.mjs";import{WEVU_LAYOUT_HOST_BRIDGE_KEY as s,WEVU_PAGE_LAYOUT_NAME_KEY as c,WEVU_PAGE_LAYOUT_PROPS_KEY as l,WEVU_PAGE_LAYOUT_SETTER_KEY as u}from"@weapp-core/constants";const d={attachPageSetter(e){e[u]=(t,n)=>{var a;let o=(a=e.__wevu)==null?void 0:a.state;if(!o||typeof o!=`object`)return;o[c]=r(t);let s=t===!1||n==null?{}:n;o[l]=s,i(e,t,s)}},attachHosts(e,n){if(!e.length||n[s])return;let r=t(e,n);r&&(n[s]=r)},detachHosts(e,t){let r=t[s];e.length&&r&&a([()=>n(e,r),()=>{delete t[s]}])}};function f(){o(),e(`layout`,d)}export{f as installLayout};
@@ -0,0 +1,6 @@
1
+ //#region src/runtime/features/patchStrategy.d.ts
2
+ /**
3
+ * 安装 patch setData 策略。
4
+ */
5
+ export declare function installPatchStrategy(): void;
6
+ //#endregion
@@ -0,0 +1 @@
1
+ import{addMutationRecorder as e,removeMutationRecorder as t}from"../../reactivity/reactive/mutation.mjs";import{toRaw as n}from"../../reactivity/reactive/shared.mjs";import{clearPatchIndices as r,prelinkReactiveTree as i}from"../../reactivity/reactive/patch.mjs";import{registerRuntimeCapability as a}from"../capabilities.mjs";import{createSetDataScheduler as o}from"../app/setData/scheduler.mjs";import{preparePatchUpdate as s}from"../app/setData/patchScheduler.mjs";function c(a){let c=o(a),l=n(a.state),u=new Map,d=new Set,f=Object.create(null),p=!0,m=!1,h=!1,g=e=>{if(a.includeComputed){for(let e of Object.keys(f))delete f[e];for(let t of Object.keys(a.computedRefs))c.shouldIncludeSnapshotKey(t)&&(f[t]=e[t]);a.dirtyComputedKeys.clear()}},_=(e=`diff`)=>{let t=u.size+d.size;u.clear(),d.clear(),p=!1,c.runDiffUpdate(e,t,g)},v=e=>{if(!a.isMounted())return;if(e.root!==l){let t=c.resolveTopKeysByRoot(e.root);for(let e of t)d.add(e);return}if(!e.path){if(Array.isArray(e.fallbackTopKeys)&&e.fallbackTopKeys.length)for(let t of e.fallbackTopKeys)d.add(t);else p=!0;return}let t=e.path.split(`.`,1)[0];c.shouldIncludeSnapshotKey(t)&&u.set(e.path,{kind:e.kind,op:e.op})};return{job(){if(!c.prepareJob(u.size+d.size,()=>[...u.keys(),...d,...a.includeComputed?a.dirtyComputedKeys:[]]))return;if(p||c.needsFullSnapshot())return _(`needsFullSnapshot`);if(!(u.size>0||d.size>0||a.includeComputed&&a.dirtyComputedKeys.size>0))return _(`diff`);let e=s({state:a.state,computedRefs:a.computedRefs,dirtyComputedKeys:a.dirtyComputedKeys,includeComputed:a.includeComputed,computedCompare:a.computedCompare,computedCompareMaxDepth:a.computedCompareMaxDepth,computedCompareMaxKeys:a.computedCompareMaxKeys,shouldIncludeKey:c.shouldIncludeSnapshotKey,maxPatchKeys:a.maxPatchKeys,maxPayloadBytes:a.maxPayloadBytes,mergeSiblingThreshold:a.mergeSiblingThreshold,mergeSiblingMaxInflationRatio:a.mergeSiblingMaxInflationRatio,mergeSiblingMaxParentBytes:a.mergeSiblingMaxParentBytes,mergeSiblingSkipArray:a.mergeSiblingSkipArray,elevateTopKeyThreshold:a.elevateTopKeyThreshold,toPlainMaxDepth:a.toPlainMaxDepth,toPlainMaxKeys:a.toPlainMaxKeys,includeFunctions:a.includeFunctions,functionPaths:a.functionPaths,plainCache:c.plainCache,plainCacheEligibility:c.plainCacheEligibility,pendingPatches:u,fallbackTopKeys:d,dispatchedSnapshot:c.getLatestSnapshot(),dispatchedComputedSnapshot:f});if(e){if(c.emitDebug(e.debug,e.type===`patch`?Object.keys(e.payload):void 0),e.type===`fallback`)return _(e.reason);e.computedUpdates&&Object.assign(f,e.computedUpdates),c.dispatchUpdate({mode:`patch`,kind:`delta`,reason:`patch`,snapshot:e.snapshot,payload:e.payload,pendingPatchKeys:e.debug.pendingPatchKeys})}},snapshot:c.snapshot,cloneLatestSnapshot:c.cloneLatestSnapshot,start(){m||h||(m=!0,i(a.state,{shouldIncludeTopKey:a.shouldIncludeKey,maxDepth:a.prelinkMaxDepth,maxKeys:a.prelinkMaxKeys}),e(v))},dispose(){h||(h=!0,c.dispose(),m&&t(v),r(a.state))}}}const l={createScheduler:c};function u(){a(`patchStrategy`,l)}export{u as installPatchStrategy};
@@ -0,0 +1,23 @@
1
+ import { PageLayoutState, WevuPageLayoutMap, resolveRuntimePageLayoutName as resolveRuntimePageLayoutName$1, syncRuntimePageLayoutState as syncRuntimePageLayoutState$1, syncRuntimePageLayoutStateFromRuntime as syncRuntimePageLayoutStateFromRuntime$1, usePageLayout as usePageLayout$1 } from "../pageLayout.mjs";
2
+ import { LayoutHostBinding } from "../capabilities.mjs";
3
+ import { LayoutBridgeInstance, registerPageLayoutBridge as registerPageLayoutBridge$1, registerRuntimeLayoutHosts as registerRuntimeLayoutHosts$1, resolveLayoutBridge as resolveLayoutBridge$1, resolveLayoutHost as resolveLayoutHost$1, unregisterPageLayoutBridge as unregisterPageLayoutBridge$1, unregisterRuntimeLayoutHosts as unregisterRuntimeLayoutHosts$1, useLayoutBridge as useLayoutBridge$1, useLayoutHosts as useLayoutHosts$1, waitForLayoutHost as waitForLayoutHost$1 } from "../layoutBridge.mjs";
4
+ //#region src/runtime/features/publicLayout.d.ts
5
+ export declare const registerPageLayoutBridge: typeof registerPageLayoutBridge$1;
6
+ export declare const unregisterPageLayoutBridge: typeof unregisterPageLayoutBridge$1;
7
+ export declare const resolveLayoutBridge: typeof resolveLayoutBridge$1;
8
+ export declare const resolveLayoutHost: typeof resolveLayoutHost$1;
9
+ export declare const waitForLayoutHost: typeof waitForLayoutHost$1;
10
+ export declare const useLayoutBridge: typeof useLayoutBridge$1;
11
+ export declare const registerRuntimeLayoutHosts: typeof registerRuntimeLayoutHosts$1;
12
+ export declare const unregisterRuntimeLayoutHosts: typeof unregisterRuntimeLayoutHosts$1;
13
+ export declare const useLayoutHosts: typeof useLayoutHosts$1;
14
+ export declare const usePageLayout: typeof usePageLayout$1;
15
+ type PublicPageLayoutName = keyof WevuPageLayoutMap extends never ? string : Extract<keyof WevuPageLayoutMap, string>;
16
+ type PublicPageLayoutProps<Name extends string> = Name extends keyof WevuPageLayoutMap ? WevuPageLayoutMap[Name] : object;
17
+ export declare function setPageLayout(layout: false): void;
18
+ export declare function setPageLayout<Name extends PublicPageLayoutName>(layout: Name, props?: PublicPageLayoutProps<Name>): void;
19
+ export declare const syncRuntimePageLayoutState: typeof syncRuntimePageLayoutState$1;
20
+ export declare const syncRuntimePageLayoutStateFromRuntime: typeof syncRuntimePageLayoutStateFromRuntime$1;
21
+ export declare const resolveRuntimePageLayoutName: typeof resolveRuntimePageLayoutName$1;
22
+ //#endregion
23
+ export type { LayoutBridgeInstance, LayoutHostBinding, PageLayoutState, WevuPageLayoutMap };
@@ -0,0 +1 @@
1
+ import{getCurrentMiniProgramPages as e}from"../platform.mjs";import{getCurrentInstance as t}from"../hooks/base.mjs";import{runtimeCapabilityRegistry as n}from"../capabilities.mjs";import{registerPageLayoutBridge as r,registerRuntimeLayoutHosts as i,resolveLayoutBridge as a,resolveLayoutHost as o,unregisterPageLayoutBridge as s,unregisterRuntimeLayoutHosts as c,useLayoutBridge as l,useLayoutHosts as u,waitForLayoutHost as d}from"../layoutBridge.mjs";import{getCurrentPageInstance as f}from"../register/component/lifecycle/platform.mjs";import{resolveRuntimePageLayoutName as p,setPageLayout as m,syncRuntimePageLayoutState as h,syncRuntimePageLayoutStateFromRuntime as g,usePageLayout as _}from"../pageLayout.mjs";import{installLayout as v}from"./layout.mjs";const y=(...e)=>(v(),r(...e)),b=(...e)=>(v(),s(...e)),x=(...e)=>(v(),a(...e)),S=(...e)=>(v(),o(...e)),C=(...e)=>(v(),d(...e)),w=(...e)=>(v(),l(...e)),T=(...e)=>(v(),i(...e)),E=(...e)=>(v(),c(...e)),D=(...e)=>(v(),u(...e)),O=(...e)=>(v(),_(...e));function k(r,i){var a;v();let o=e(),s=t(),c=s&&typeof s.route==`string`&&s.route?s:(a=f())==null?o[o.length-1]:a;if(c){var l;(l=n.layout)==null||l.attachPageSetter(c)}if(r===!1){m(!1);return}m(r,i)}const A=(...e)=>(v(),h(...e)),j=(...e)=>(v(),g(...e)),M=(...e)=>(v(),p(...e));export{y as registerPageLayoutBridge,T as registerRuntimeLayoutHosts,x as resolveLayoutBridge,S as resolveLayoutHost,M as resolveRuntimePageLayoutName,k as setPageLayout,A as syncRuntimePageLayoutState,j as syncRuntimePageLayoutStateFromRuntime,b as unregisterPageLayoutBridge,E as unregisterRuntimeLayoutHosts,w as useLayoutBridge,D as useLayoutHosts,O as usePageLayout,C as waitForLayoutHost};
@@ -0,0 +1,22 @@
1
+ import { ComputedDefinitions } from "../types/core.mjs";
2
+ import "../types.mjs";
3
+ import { InlineExpressionMap } from "../register/inline.mjs";
4
+ import { LayoutHostBinding, TemplateRefBinding } from "../capabilities.mjs";
5
+ import { WEVU_BINDING_MANIFEST_KEY, WevuRuntimeBindingManifestV1 } from "@weapp-core/constants";
6
+ //#region src/runtime/features/scopedSlots.d.ts
7
+ export interface CreateWevuScopedSlotComponentOptions {
8
+ computed?: ComputedDefinitions;
9
+ inlineMap?: InlineExpressionMap;
10
+ layoutHosts?: LayoutHostBinding[];
11
+ templateRefs?: TemplateRefBinding[];
12
+ [WEVU_BINDING_MANIFEST_KEY]?: WevuRuntimeBindingManifestV1;
13
+ }
14
+ /**
15
+ * 创建编译器生成的作用域插槽组件。
16
+ */
17
+ export declare function createWevuScopedSlotComponent(overrides?: CreateWevuScopedSlotComponentOptions): void;
18
+ /**
19
+ * 安装作用域插槽的 owner 生命周期与组件创建能力。
20
+ */
21
+ export declare function installScopedSlots(): void;
22
+ //#endregion
@@ -0,0 +1 @@
1
+ import{getScopedSlotHostGlobalObject as e}from"../platform.mjs";import{RUNTIME_SCOPED_SLOT_STATE_KEY as t,getScopedSlotMountState as n,registerRuntimeCapability as r,requireRuntimeCapability as i}from"../capabilities.mjs";import{runTeardownSteps as a}from"../teardown.mjs";import{callNativeSetData as o,resolveNativeSetData as s}from"../register/runtimeInstance/utils.mjs";import{createWevuComponent as c}from"../define.mjs";import{allocateOwnerId as l,attachOwnerSnapshot as u,getOwnerProxy as d,mergeOwnerSnapshotProps as f,removeOwner as p,resolveOwnerSnapshot as m,updateOwnerSnapshot as h}from"../scopedSlots.mjs";import{createScopedSlotOptions as g}from"../define/scopedSlotOptions.mjs";import{WEVU_PROPS_KEY as _,WEVU_RUNTIME_OWNER_ID_KEY as v,WEVU_SCOPED_SLOT_CREATOR_KEY as y,WEVU_SLOT_OWNER_ID_KEY as b}from"@weapp-core/constants";const x={prepareMount(e){var r;let i=n(e);if(i)return i;let a=(r=e.data)==null?void 0:r[b],o=typeof a==`string`&&a?a:l(),s={ownerId:o,shouldFlushNativeOwnerId:typeof a==`string`&&a!==o};return Object.defineProperty(e,t,{value:s,configurable:!0,enumerable:!1,writable:!1}),s},attachMount(e,t,n,r){u(e,t,n.ownerId,{deferSnapshot:r})},refresh(e,t){var n;let r=e.__wevu;if(!r)return;let i=m(r),a=(n=e[_])==null?e.properties:n;f(i,a),h(t.ownerId,i,r.proxy,e)},syncNativeOwnerId(e,t){if(!t.shouldFlushNativeOwnerId)return;try{e.data&&typeof e.data==`object`&&(e.data[b]=t.ownerId)}catch(e){}let n=s(e);n&&o(e,n,{[b]:t.ownerId})},teardown(e){var r,i;let o=n(e),s=e,c=(r=(i=o==null?void 0:o.ownerId)==null?s[v]:i)==null?s[b]:r;a([()=>{typeof c==`string`&&c&&p(c)},()=>{delete s[t]}])},resolveLifecycleProxy(e){var t,n,r,i,a;let o=e,s=(t=(n=(r=o[v])==null?o[b]:r)==null?(i=e.data)==null?void 0:i[b]:n)==null?(a=e.properties)==null?void 0:a[b]:t;return typeof s==`string`&&s?d(s):void 0},allocateOwnerId:l};function S(e){i(`scopedSlots`,`createWevuScopedSlotComponent`);let t=g(e);c(t)}function C(){r(`scopedSlots`,x);let t=e();t&&t[y]!==S&&(t[y]=S)}export{S as createWevuScopedSlotComponent,C as installScopedSlots};
@@ -0,0 +1,6 @@
1
+ //#region src/runtime/features/setDataHighFrequencyWarning.d.ts
2
+ /**
3
+ * 安装可选的 setData 高频告警能力。
4
+ */
5
+ export declare function installSetDataHighFrequencyWarning(): void;
6
+ //#endregion
@@ -0,0 +1 @@
1
+ import{registerRuntimeCapability as e}from"../capabilities.mjs";import{createSetDataHighFrequencyWarningMonitor as t}from"../register/setDataFrequencyWarning.mjs";const n={createMonitor:t};function r(){e(`setDataHighFrequencyWarning`,n)}export{r as installSetDataHighFrequencyWarning};
@@ -0,0 +1,6 @@
1
+ //#region src/runtime/features/templateRefs.d.ts
2
+ /**
3
+ * 安装模板 ref 能力。
4
+ */
5
+ export declare function installTemplateRefs(): void;
6
+ //#endregion
@@ -0,0 +1 @@
1
+ import{registerRuntimeCapability as e}from"../capabilities.mjs";import{clearTemplateRefs as t,scheduleTemplateRefUpdate as n}from"../templateRefs.mjs";import{WEVU_TEMPLATE_REFS_KEY as r}from"@weapp-core/constants";const i={attachBindings(e,t){Object.defineProperty(e,r,{value:t,configurable:!0,enumerable:!1,writable:!1})},hasBindings(e){let t=e[r];return Array.isArray(t)&&t.length>0},schedule:n,scheduleOwner(e){let t=e.selectOwnerComponent;if(typeof t==`function`)try{let r=t.call(e);r&&r!==e&&n(r)}catch(e){}},clear:t};function a(){e(`templateRefs`,i)}export{a as installTemplateRefs};
@@ -11,8 +11,7 @@ export declare function onMounted(handler: () => void): void;
11
11
  */
12
12
  export declare function onUpdated(handler: () => void): void;
13
13
  /**
14
- * Vue 3 对齐:卸载前触发。
15
- * 小程序无 before-unload 生命周期,setup 时同步执行以保持语义。
14
+ * Vue 3 对齐:在卸载清理前触发,保持实例上下文和暴露方法可用。
16
15
  */
17
16
  export declare function onBeforeUnmount(handler: () => void): void;
18
17
  /**
@@ -1 +1 @@
1
- import{assertInSetup as e,callHookList as t,pushHook as n}from"./base.mjs";import{WEVU_ON_BEFORE_UPDATE_HOOK as r,WEVU_ON_UPDATED_HOOK as i}from"@weapp-core/constants";function a(t){n(e(`onMounted`),`onReady`,t)}function o(t){n(e(`onUpdated`),i,t)}function s(t){e(`onBeforeUnmount`),t()}function c(t){n(e(`onUnmounted`),`onUnload`,t)}function l(t){e(`onBeforeMount`),t()}function u(t){n(e(`onBeforeUpdate`),r,t)}function d(t){let r=e(`onErrorCaptured`);n(r,`onError`,e=>t(e,r,``))}function f(t){n(e(`onActivated`),`onShow`,t)}function p(t){n(e(`onDeactivated`),`onHide`,t)}function m(t){e(`onServerPrefetch`)}function h(e,n){t(e,n===`before`?r:i)}export{h as callUpdateHooks,f as onActivated,l as onBeforeMount,s as onBeforeUnmount,u as onBeforeUpdate,p as onDeactivated,d as onErrorCaptured,a as onMounted,m as onServerPrefetch,c as onUnmounted,o as onUpdated};
1
+ import{assertInSetup as e,callHookList as t,pushHook as n}from"./base.mjs";import{WEVU_ON_BEFORE_UNMOUNT_HOOK as r,WEVU_ON_BEFORE_UPDATE_HOOK as i,WEVU_ON_UPDATED_HOOK as a}from"@weapp-core/constants";function o(t){n(e(`onMounted`),`onReady`,t)}function s(t){n(e(`onUpdated`),a,t)}function c(t){n(e(`onBeforeUnmount`),r,t)}function l(t){n(e(`onUnmounted`),`onUnload`,t)}function u(t){e(`onBeforeMount`),t()}function d(t){n(e(`onBeforeUpdate`),i,t)}function f(t){let r=e(`onErrorCaptured`);n(r,`onError`,e=>t(e,r,``))}function p(t){n(e(`onActivated`),`onShow`,t)}function m(t){n(e(`onDeactivated`),`onHide`,t)}function h(t){e(`onServerPrefetch`)}function g(e,n){t(e,n===`before`?i:a)}export{g as callUpdateHooks,p as onActivated,u as onBeforeMount,c as onBeforeUnmount,d as onBeforeUpdate,m as onDeactivated,f as onErrorCaptured,o as onMounted,h as onServerPrefetch,l as onUnmounted,s as onUpdated};