wevu 7.5.0 → 7.7.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 (326) hide show
  1. package/dist/alipay/jsx-runtime.d.mts +0 -2
  2. package/dist/config/defaults.d.mts +42 -0
  3. package/dist/config/pageFeatures.d.mts +49 -0
  4. package/dist/config.d.mts +4 -0
  5. package/dist/config.mjs +1 -0
  6. package/dist/dev/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/defineProperty.mjs +1 -2
  7. package/dist/dev/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPrimitive.mjs +1 -2
  8. package/dist/dev/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPropertyKey.mjs +1 -2
  9. package/dist/dev/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/typeof.mjs +1 -2
  10. package/dist/dev/api/vitest/setup.mjs +1 -2
  11. package/dist/dev/package.mjs +2 -3
  12. package/dist/dev/reactivity/asyncDerivation.mjs +1 -2
  13. package/dist/dev/reactivity/computed.mjs +1 -2
  14. package/dist/dev/reactivity/computed.mjs.map +1 -1
  15. package/dist/dev/reactivity/core.mjs +2 -3
  16. package/dist/dev/reactivity/reactive/mutation.mjs +1 -2
  17. package/dist/dev/reactivity/reactive/patch.mjs +1 -2
  18. package/dist/dev/reactivity/reactive/patchState.mjs +1 -2
  19. package/dist/dev/reactivity/reactive/shallow.mjs +1 -2
  20. package/dist/dev/reactivity/reactive/shared.mjs +1 -2
  21. package/dist/dev/reactivity/reactive/state.mjs +1 -2
  22. package/dist/dev/reactivity/reactive.mjs +1 -2
  23. package/dist/dev/reactivity/readonly.mjs +1 -2
  24. package/dist/dev/reactivity/ref.mjs +2 -3
  25. package/dist/dev/reactivity/ref.mjs.map +1 -1
  26. package/dist/dev/reactivity/shallowRef.mjs +1 -2
  27. package/dist/dev/reactivity/toRefs.mjs +1 -2
  28. package/dist/dev/reactivity/traverse.mjs +1 -2
  29. package/dist/dev/reactivity/watch/helpers.mjs +1 -2
  30. package/dist/dev/reactivity/watch/types.mjs +1 -2
  31. package/dist/dev/reactivity/watch.mjs +1 -2
  32. package/dist/dev/router/auto-routes.mjs +1 -2
  33. package/dist/dev/router/backNavigation.mjs +1 -2
  34. package/dist/dev/router/createRouter.mjs +1 -2
  35. package/dist/dev/router/initialNavigation.mjs +1 -2
  36. package/dist/dev/router/instance.mjs +1 -2
  37. package/dist/dev/router/navigationApi.mjs +1 -2
  38. package/dist/dev/router/navigationCore.mjs +1 -2
  39. package/dist/dev/router/navigationResult.mjs +1 -2
  40. package/dist/dev/router/navigationTarget.mjs +1 -2
  41. package/dist/dev/router/navigationTargetHelpers.mjs +1 -2
  42. package/dist/dev/router/resolve.mjs +1 -2
  43. package/dist/dev/router/routeRegistry.mjs +1 -2
  44. package/dist/dev/router/routeSync.mjs +1 -2
  45. package/dist/dev/router/scrollRestoration/adapters.mjs +1 -2
  46. package/dist/dev/router/scrollRestoration/controller.mjs +1 -2
  47. package/dist/dev/router/scrollRestoration/host.mjs +1 -2
  48. package/dist/dev/router/scrollRestoration/index.mjs +1 -2
  49. package/dist/dev/router/types.mjs +1 -2
  50. package/dist/dev/router/useRoute.mjs +1 -2
  51. package/dist/dev/router/useRouter.mjs +1 -2
  52. package/dist/dev/routerInternal/location.mjs +1 -2
  53. package/dist/dev/routerInternal/matching.mjs +1 -2
  54. package/dist/dev/routerInternal/params.mjs +1 -2
  55. package/dist/dev/routerInternal/path.mjs +1 -2
  56. package/dist/dev/routerInternal/query.mjs +1 -2
  57. package/dist/dev/routerInternal/records.mjs +1 -2
  58. package/dist/dev/routerInternal/recordsWarnings.mjs +1 -2
  59. package/dist/dev/routerInternal/snapshots.mjs +1 -2
  60. package/dist/dev/runtime/app/computed.mjs +1 -2
  61. package/dist/dev/runtime/app/context.mjs +1 -2
  62. package/dist/dev/runtime/app/diagnostics.mjs +1 -2
  63. package/dist/dev/runtime/app/mount.mjs +1 -2
  64. package/dist/dev/runtime/app/pending.mjs +1 -2
  65. package/dist/dev/runtime/app/setData/commitTracker.mjs +1 -2
  66. package/dist/dev/runtime/app/setData/observation.mjs +1 -2
  67. package/dist/dev/runtime/app/setData/patchScheduler.mjs +1 -2
  68. package/dist/dev/runtime/app/setData/payload.mjs +1 -2
  69. package/dist/dev/runtime/app/setData/scheduler.mjs +1 -2
  70. package/dist/dev/runtime/app/setData/snapshot.mjs +1 -2
  71. package/dist/dev/runtime/app/setDataOptions.mjs +1 -2
  72. package/dist/dev/runtime/app.mjs +1 -2
  73. package/dist/dev/runtime/bindModel.mjs +1 -2
  74. package/dist/dev/runtime/bindingManifest.mjs +1 -2
  75. package/dist/dev/runtime/capabilities.mjs +1 -2
  76. package/dist/dev/runtime/css.mjs +1 -2
  77. package/dist/dev/runtime/defaults.mjs +1 -2
  78. package/dist/dev/runtime/define/componentDefinition.mjs +1 -2
  79. package/dist/dev/runtime/define/initialComputed.mjs +1 -2
  80. package/dist/dev/runtime/define/options.mjs +1 -2
  81. package/dist/dev/runtime/define/optionsApi.mjs +1 -2
  82. package/dist/dev/runtime/define/props.mjs +1 -2
  83. package/dist/dev/runtime/define/scopedSlotOptions.mjs +1 -2
  84. package/dist/dev/runtime/define/setupResult.mjs +4 -7
  85. package/dist/dev/runtime/define/setupResult.mjs.map +1 -1
  86. package/dist/dev/runtime/define.mjs +3 -9
  87. package/dist/dev/runtime/define.mjs.map +1 -1
  88. package/dist/dev/runtime/diff.mjs +1 -2
  89. package/dist/dev/runtime/disposables.mjs +1 -2
  90. package/dist/dev/runtime/elementIntersectionObserver.mjs +1 -2
  91. package/dist/dev/runtime/emit.mjs +1 -2
  92. package/dist/dev/runtime/features/inlineEvents.mjs +1 -2
  93. package/dist/dev/runtime/features/jsxIslands.mjs +1 -2
  94. package/dist/dev/runtime/features/layout.mjs +1 -2
  95. package/dist/dev/runtime/features/patchStrategy.mjs +1 -2
  96. package/dist/dev/runtime/features/publicLayout.mjs +1 -2
  97. package/dist/dev/runtime/features/scopedSlots.mjs +1 -2
  98. package/dist/dev/runtime/features/setDataHighFrequencyWarning.mjs +1 -2
  99. package/dist/dev/runtime/features/templateRefs.mjs +1 -2
  100. package/dist/dev/runtime/hooks/base.mjs +1 -2
  101. package/dist/dev/runtime/hooks/pageScroll.mjs +1 -2
  102. package/dist/dev/runtime/hooks/register.mjs +1 -2
  103. package/dist/dev/runtime/hooks/vue.mjs +1 -2
  104. package/dist/dev/runtime/inlineDataset.mjs +1 -2
  105. package/dist/dev/runtime/internal.mjs +1 -2
  106. package/dist/dev/runtime/intersectionObserver.mjs +1 -2
  107. package/dist/dev/runtime/jsxIsland.mjs +1 -2
  108. package/dist/dev/runtime/layoutBridge.mjs +1 -2
  109. package/dist/dev/runtime/layoutComponentMatcher.mjs +1 -2
  110. package/dist/dev/runtime/nativeBridge.mjs +1 -2
  111. package/dist/dev/runtime/navigationLifecycle.mjs +1 -2
  112. package/dist/dev/runtime/noSetData.mjs +1 -2
  113. package/dist/dev/runtime/pageEnvironment.mjs +1 -2
  114. package/dist/dev/runtime/pageLayout.mjs +1 -2
  115. package/dist/dev/runtime/pageLayout.mjs.map +1 -1
  116. package/dist/dev/runtime/pageScroll.mjs +1 -2
  117. package/dist/dev/runtime/platform/current.mjs +1 -2
  118. package/dist/dev/runtime/platform/generic.mjs +1 -2
  119. package/dist/dev/runtime/platform/globals.mjs +1 -2
  120. package/dist/dev/runtime/platform.mjs +1 -2
  121. package/dist/dev/runtime/provide.mjs +1 -2
  122. package/dist/dev/runtime/provideContext.mjs +1 -2
  123. package/dist/dev/runtime/provideStore.mjs +1 -2
  124. package/dist/dev/runtime/publicRuntime.mjs +1 -2
  125. package/dist/dev/runtime/pullDownRefresh.mjs +1 -2
  126. package/dist/dev/runtime/register/app.mjs +1 -2
  127. package/dist/dev/runtime/register/component/alipay.mjs +1 -2
  128. package/dist/dev/runtime/register/component/alipayRegistration.mjs +1 -2
  129. package/dist/dev/runtime/register/component/features.mjs +1 -2
  130. package/dist/dev/runtime/register/component/hmrRegistration.mjs +14 -0
  131. package/dist/dev/runtime/register/component/hmrRegistration.mjs.map +1 -0
  132. package/dist/dev/runtime/register/component/lifecycle/optionalHooks.mjs +1 -2
  133. package/dist/dev/runtime/register/component/lifecycle/platform.mjs +1 -2
  134. package/dist/dev/runtime/register/component/lifecycle.mjs +1 -2
  135. package/dist/dev/runtime/register/component/methods.mjs +1 -2
  136. package/dist/dev/runtime/register/component/options.mjs +1 -2
  137. package/dist/dev/runtime/register/component/props.mjs +5 -6
  138. package/dist/dev/runtime/register/component/props.mjs.map +1 -1
  139. package/dist/dev/runtime/register/component/registerDefinition.mjs +7 -6
  140. package/dist/dev/runtime/register/component/registerDefinition.mjs.map +1 -1
  141. package/dist/dev/runtime/register/component/registerNativeDefinition.mjs +1 -2
  142. package/dist/dev/runtime/register/component.mjs +23 -14
  143. package/dist/dev/runtime/register/component.mjs.map +1 -1
  144. package/dist/dev/runtime/register/inline.mjs +1 -2
  145. package/dist/dev/runtime/register/runtimeInstance/methodBridge.mjs +1 -2
  146. package/dist/dev/runtime/register/runtimeInstance/nativeDeclaration.mjs +1 -2
  147. package/dist/dev/runtime/register/runtimeInstance/provideContext.mjs +1 -2
  148. package/dist/dev/runtime/register/runtimeInstance/setupContext.mjs +1 -2
  149. package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs +3 -27
  150. package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs.map +1 -1
  151. package/dist/dev/runtime/register/runtimeInstance/setupSnapshot.mjs +1 -2
  152. package/dist/dev/runtime/register/runtimeInstance/utils.mjs +1 -2
  153. package/dist/dev/runtime/register/runtimeInstance.mjs +12 -14
  154. package/dist/dev/runtime/register/runtimeInstance.mjs.map +1 -1
  155. package/dist/dev/runtime/register/setDataFrequencyWarning.mjs +1 -2
  156. package/dist/dev/runtime/register/setup.mjs +1 -2
  157. package/dist/dev/runtime/register/snapshot.mjs +1 -2
  158. package/dist/dev/runtime/register/watch.mjs +2 -5
  159. package/dist/dev/runtime/register/watch.mjs.map +1 -1
  160. package/dist/dev/runtime/scopedSlots.mjs +1 -2
  161. package/dist/dev/runtime/selectorQuery.mjs +1 -2
  162. package/dist/dev/runtime/setupTracking.mjs +1 -2
  163. package/dist/dev/runtime/teardown.mjs +1 -2
  164. package/dist/dev/runtime/template.mjs +1 -2
  165. package/dist/dev/runtime/templateRefs/helpers.mjs +1 -2
  166. package/dist/dev/runtime/templateRefs.mjs +1 -2
  167. package/dist/dev/runtime/uniAppHost.mjs +1 -2
  168. package/dist/dev/runtime/updatePerformance.mjs +1 -2
  169. package/dist/dev/runtime/use.mjs +1 -2
  170. package/dist/dev/runtime/vueCompat/context.mjs +1 -2
  171. package/dist/dev/runtime/vueCompat/model.mjs +1 -2
  172. package/dist/dev/runtime/vueCompat/router.mjs +1 -2
  173. package/dist/dev/runtime/vueCompat/templateRef.mjs +1 -2
  174. package/dist/dev/scheduler.mjs +1 -2
  175. package/dist/dev/store/actions.mjs +1 -2
  176. package/dist/dev/store/base.mjs +1 -2
  177. package/dist/dev/store/define/create.mjs +1 -2
  178. package/dist/dev/store/define.mjs +1 -2
  179. package/dist/dev/store/manager.mjs +1 -2
  180. package/dist/dev/store/storeToRefs.mjs +1 -2
  181. package/dist/dev/store/subscriptions.mjs +1 -2
  182. package/dist/dev/store/types.mjs +1 -2
  183. package/dist/dev/store/utils.mjs +1 -2
  184. package/dist/dev/store/view.mjs +1 -2
  185. package/dist/dev/utils.mjs +1 -2
  186. package/dist/dev/version.mjs +1 -2
  187. package/dist/dev/vue-demi.mjs +1 -2
  188. package/dist/fetch.d.mts +0 -2
  189. package/dist/index.d.mts +13 -8
  190. package/dist/internal-reactivity.d.mts +2 -1
  191. package/dist/jsx-runtime.d.mts +1 -2
  192. package/dist/jsxTypes.d.mts +1 -3
  193. package/dist/macros/shared.d.mts +2 -3
  194. package/dist/macros.d.mts +3 -12
  195. package/dist/miniprogram/jsx-runtime.d.mts +0 -2
  196. package/dist/package.mjs +1 -1
  197. package/dist/reactivity/asyncDerivation.d.mts +1 -2
  198. package/dist/reactivity/computed.d.mts +2 -8
  199. package/dist/reactivity/core.d.mts +1 -3
  200. package/dist/reactivity/core.mjs +1 -1
  201. package/dist/reactivity/index.d.mts +2 -1
  202. package/dist/reactivity/reactive/mutation.d.mts +1 -2
  203. package/dist/reactivity/reactive/patch.d.mts +1 -3
  204. package/dist/reactivity/reactive/patchState.mjs +1 -1
  205. package/dist/reactivity/reactive/shallow.d.mts +1 -3
  206. package/dist/reactivity/reactive/shared.d.mts +1 -3
  207. package/dist/reactivity/reactive.d.mts +0 -2
  208. package/dist/reactivity/readonly.d.mts +1 -3
  209. package/dist/reactivity/ref.d.mts +2 -4
  210. package/dist/reactivity/ref.mjs +1 -1
  211. package/dist/reactivity/shallowRef.d.mts +1 -3
  212. package/dist/reactivity/toRefs.d.mts +1 -2
  213. package/dist/reactivity/traverse.d.mts +1 -3
  214. package/dist/reactivity/watch/types.d.mts +1 -2
  215. package/dist/reactivity/watch.d.mts +0 -2
  216. package/dist/router/auto-routes.d.mts +0 -2
  217. package/dist/router/createRouter.d.mts +1 -3
  218. package/dist/router/navigationCore.d.mts +1 -3
  219. package/dist/router/resolve.d.mts +1 -3
  220. package/dist/router/scrollRestoration/adapters.d.mts +1 -3
  221. package/dist/router/scrollRestoration/controller.d.mts +1 -3
  222. package/dist/router/scrollRestoration/index.d.mts +0 -2
  223. package/dist/router/scrollRestoration/index.mjs +1 -1
  224. package/dist/router/scrollRestoration/types.d.mts +1 -3
  225. package/dist/router/types.d.mts +1 -2
  226. package/dist/router/useRoute.d.mts +1 -3
  227. package/dist/router/useRouter.d.mts +1 -3
  228. package/dist/router.d.mts +0 -2
  229. package/dist/routerInternal/query.d.mts +1 -3
  230. package/dist/routerInternal/types.d.mts +1 -3
  231. package/dist/runtime/app/pending.d.mts +1 -3
  232. package/dist/runtime/app/setData/commitTracker.d.mts +1 -3
  233. package/dist/runtime/app/setData/observation.d.mts +1 -2
  234. package/dist/runtime/app/setData/scheduler.d.mts +1 -3
  235. package/dist/runtime/app/setData/scheduler.mjs +1 -1
  236. package/dist/runtime/app.d.mts +2 -4
  237. package/dist/runtime/capabilities.d.mts +2 -4
  238. package/dist/runtime/css.d.mts +1 -3
  239. package/dist/runtime/defaults.d.mts +1 -3
  240. package/dist/runtime/define/props.mjs +1 -1
  241. package/dist/runtime/define/scopedSlotOptions.mjs +1 -1
  242. package/dist/runtime/define/setupResult.mjs +1 -1
  243. package/dist/runtime/define.d.mts +4 -4
  244. package/dist/runtime/define.mjs +1 -1
  245. package/dist/runtime/disposables.d.mts +1 -3
  246. package/dist/runtime/elementIntersectionObserver.d.mts +1 -3
  247. package/dist/runtime/features/inlineEvents.d.mts +1 -3
  248. package/dist/runtime/features/jsxIslands.d.mts +1 -3
  249. package/dist/runtime/features/layout.d.mts +1 -3
  250. package/dist/runtime/features/patchStrategy.d.mts +1 -3
  251. package/dist/runtime/features/publicLayout.d.mts +2 -3
  252. package/dist/runtime/features/scopedSlots.d.mts +2 -4
  253. package/dist/runtime/features/setDataHighFrequencyWarning.d.mts +1 -3
  254. package/dist/runtime/features/templateRefs.d.mts +1 -3
  255. package/dist/runtime/hooks/base.d.mts +1 -3
  256. package/dist/runtime/hooks/register.d.mts +1 -3
  257. package/dist/runtime/hooks/vue.d.mts +1 -3
  258. package/dist/runtime/index.d.mts +7 -4
  259. package/dist/runtime/intersectionObserver.d.mts +1 -3
  260. package/dist/runtime/jsxIsland.d.mts +1 -3
  261. package/dist/runtime/layoutBridge.d.mts +0 -2
  262. package/dist/runtime/noSetData.d.mts +1 -3
  263. package/dist/runtime/pageEnvironment.d.mts +1 -3
  264. package/dist/runtime/pageLayout.d.mts +2 -3
  265. package/dist/runtime/pageScroll.d.mts +1 -3
  266. package/dist/runtime/provide.d.mts +0 -2
  267. package/dist/runtime/provideStore.d.mts +1 -3
  268. package/dist/runtime/publicRuntime.d.mts +1 -3
  269. package/dist/runtime/pullDownRefresh.d.mts +1 -3
  270. package/dist/runtime/register/app.d.mts +2 -4
  271. package/dist/runtime/register/component/hmrRegistration.mjs +1 -0
  272. package/dist/runtime/register/component/props.mjs +1 -1
  273. package/dist/runtime/register/component/registerDefinition.mjs +1 -1
  274. package/dist/runtime/register/component.d.mts +2 -4
  275. package/dist/runtime/register/component.mjs +1 -1
  276. package/dist/runtime/register/inline.d.mts +1 -2
  277. package/dist/runtime/register/runtimeInstance/setupPhase.mjs +1 -1
  278. package/dist/runtime/register/runtimeInstance.d.mts +2 -3
  279. package/dist/runtime/register/runtimeInstance.mjs +1 -1
  280. package/dist/runtime/register/setDataFrequencyWarning.mjs +1 -1
  281. package/dist/runtime/register/setup.d.mts +1 -2
  282. package/dist/runtime/register/watch.d.mts +1 -2
  283. package/dist/runtime/register/watch.mjs +1 -1
  284. package/dist/runtime/selectorQuery.d.mts +1 -3
  285. package/dist/runtime/template.d.mts +1 -3
  286. package/dist/runtime/templateRefTypes.d.mts +2 -6
  287. package/dist/runtime/types/core.d.mts +2 -8
  288. package/dist/runtime/types/miniprogram.d.mts +0 -2
  289. package/dist/runtime/types/miniprogramHost.d.mts +0 -2
  290. package/dist/runtime/types/miniprogramHostSources.d.mts +2 -3
  291. package/dist/runtime/types/options.d.mts +5 -53
  292. package/dist/runtime/types/props/propTypes.d.mts +1 -2
  293. package/dist/runtime/types/props/router.d.mts +1 -2
  294. package/dist/runtime/types/props/setup.d.mts +3 -4
  295. package/dist/runtime/types/runtime.d.mts +3 -4
  296. package/dist/runtime/types/setData.d.mts +1 -3
  297. package/dist/runtime/types.d.mts +5 -5
  298. package/dist/runtime/uniAppHost.d.mts +1 -2
  299. package/dist/runtime/updatePerformance.d.mts +1 -3
  300. package/dist/runtime/use.d.mts +1 -3
  301. package/dist/runtime/vueCompat/context.d.mts +1 -3
  302. package/dist/runtime/vueCompat/model.d.mts +2 -3
  303. package/dist/runtime/vueCompat/router.d.mts +1 -2
  304. package/dist/runtime/vueCompat/templateRef.d.mts +1 -3
  305. package/dist/scheduler.d.mts +1 -3
  306. package/dist/store/define.d.mts +1 -3
  307. package/dist/store/manager.d.mts +1 -3
  308. package/dist/store/storeToRefs.d.mts +1 -2
  309. package/dist/store/types.d.mts +3 -4
  310. package/dist/tt/jsx-runtime.d.mts +0 -2
  311. package/dist/types/definitions.d.mts +5 -0
  312. package/dist/types/pageLayout.d.mts +2 -0
  313. package/dist/types/pageMeta.d.mts +8 -0
  314. package/dist/types/reactivity.d.mts +11 -0
  315. package/dist/types.d.mts +5 -0
  316. package/dist/types.mjs +1 -0
  317. package/dist/version.d.mts +1 -3
  318. package/dist/vue-augment.d.mts +1 -3
  319. package/dist/vue-demi.d.mts +13 -9
  320. package/dist/vue-types.d.mts +3 -6
  321. package/dist/weapp/jsx-runtime.d.mts +0 -2
  322. package/package.json +22 -13
  323. /package/dist/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/defineProperty.mjs +0 -0
  324. /package/dist/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPrimitive.mjs +0 -0
  325. /package/dist/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPropertyKey.mjs +0 -0
  326. /package/dist/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/typeof.mjs +0 -0
@@ -1,6 +1,5 @@
1
1
  import { AlipayIntrinsicElementBaseAttributes, AlipayIntrinsicElements, AlipayIntrinsicElements as AlipayIntrinsicElements$1 } from "@weapp-core/types/alipay";
2
2
  import { JSX as JSX$1, WevuJsxChild, WevuJsxElement, WevuJsxEventHandler, WevuJsxGlobalComponents, WevuJsxGlobalComponents as WevuJsxGlobalComponents$1, WevuJsxHostAttributes } from "wevu/jsx-runtime";
3
- //#region src/alipay/jsx-runtime.d.ts
4
3
  export declare namespace JSX {
5
4
  type Element = JSX$1.Element;
6
5
  interface ElementClass extends JSX$1.ElementClass {}
@@ -8,5 +7,4 @@ export declare namespace JSX {
8
7
  interface IntrinsicAttributes extends JSX$1.IntrinsicAttributes {}
9
8
  interface IntrinsicElements extends WevuJsxGlobalComponents$1, AlipayIntrinsicElements$1 {}
10
9
  }
11
- //#endregion
12
10
  export type { AlipayIntrinsicElementBaseAttributes, AlipayIntrinsicElements, WevuJsxChild, WevuJsxElement, WevuJsxEventHandler, WevuJsxGlobalComponents, WevuJsxHostAttributes };
@@ -0,0 +1,42 @@
1
+ import { SetDataSnapshotOptions } from "../runtime/types/setData.mjs";
2
+ import { PageFeatures } from "./pageFeatures.mjs";
3
+ /** 编译期默认值允许的 JSON 数据;对象的可选字段可省略。 */
4
+ export type WevuConfigValue = string | number | boolean | null | WevuConfigValue[] | WevuConfigRecord;
5
+ export interface WevuConfigRecord {
6
+ [key: string]: WevuConfigValue | undefined;
7
+ }
8
+ /** 编译配置不会保留回调;运行时 setWevuDefaults 仍接受完整选项。 */
9
+ export type WevuConfigSetDataOptions = Omit<SetDataSnapshotOptions, 'debug'> & {
10
+ debug?: never;
11
+ };
12
+ /** 可写入编译产物的组件静态选项,不包含 RegExp 纯数据匹配器。 */
13
+ export interface WevuConfigComponentOptions {
14
+ multipleSlots?: boolean;
15
+ addGlobalClass?: boolean;
16
+ styleIsolation?: 'isolated' | 'apply-shared' | 'shared' | 'page-isolated' | 'page-apply-shared' | 'page-shared';
17
+ virtualHost?: boolean;
18
+ pureDataPattern?: never;
19
+ }
20
+ export interface WevuConfigAppDefaults {
21
+ data?: WevuConfigRecord;
22
+ globalData?: WevuConfigRecord;
23
+ setData?: WevuConfigSetDataOptions;
24
+ [key: string]: WevuConfigValue | undefined;
25
+ }
26
+ export interface WevuConfigComponentDefaults {
27
+ data?: WevuConfigRecord;
28
+ setData?: WevuConfigSetDataOptions;
29
+ features?: { [Key in keyof PageFeatures]: PageFeatures[Key]; };
30
+ allowNullPropInput?: boolean;
31
+ allowFunctionProps?: boolean | 'auto';
32
+ setupLifecycle?: 'created' | 'attached';
33
+ externalClasses?: string[];
34
+ behaviors?: string[];
35
+ options?: { [Key in keyof WevuConfigComponentOptions]: WevuConfigComponentOptions[Key]; };
36
+ [key: string]: WevuConfigValue | undefined;
37
+ }
38
+ /** 仅供构建配置使用的 JSON 默认值;运行时 WevuDefaults 的 API 保持独立。 */
39
+ export interface WevuConfigDefaults {
40
+ app?: WevuConfigAppDefaults;
41
+ component?: WevuConfigComponentDefaults;
42
+ }
@@ -0,0 +1,49 @@
1
+ export interface PageFeatures {
2
+ /**
3
+ * 启用页面滚动事件(注入 `onPageScroll`)。
4
+ */
5
+ enableOnPageScroll?: boolean;
6
+ /**
7
+ * 启用下拉刷新事件(注入 `onPullDownRefresh`;仍需在页面配置开启 enablePullDownRefresh)。
8
+ */
9
+ enableOnPullDownRefresh?: boolean;
10
+ /**
11
+ * 启用触底事件(注入 `onReachBottom`)。
12
+ */
13
+ enableOnReachBottom?: boolean;
14
+ /**
15
+ * 启用路由动画完成事件(注入 `onRouteDone`)。
16
+ */
17
+ enableOnRouteDone?: boolean;
18
+ /**
19
+ * 启用 onReady 阶段的 routeDone 兜底补发。
20
+ *
21
+ * 默认关闭:保持与微信小程序平台事件更一致的行为。
22
+ * 仅当个别 IDE/基础库未派发 routeDone 且业务确实依赖该时机时再开启。
23
+ */
24
+ enableOnRouteDoneFallback?: boolean;
25
+ /**
26
+ * 启用 Tab 点击事件(注入 `onTabItemTap`)。
27
+ */
28
+ enableOnTabItemTap?: boolean;
29
+ /**
30
+ * 启用窗口尺寸变化事件(注入 `onResize`)。
31
+ */
32
+ enableOnResize?: boolean;
33
+ /**
34
+ * 启用“转发/分享给朋友”(注入 `onShareAppMessage`,使右上角菜单显示“转发”)。
35
+ */
36
+ enableOnShareAppMessage?: boolean;
37
+ /**
38
+ * 启用“分享到朋友圈”(注入 `onShareTimeline`,使右上角菜单显示“分享到朋友圈”)。
39
+ */
40
+ enableOnShareTimeline?: boolean;
41
+ /**
42
+ * 启用“收藏”(注入 `onAddToFavorites`)。
43
+ */
44
+ enableOnAddToFavorites?: boolean;
45
+ /**
46
+ * 启用“退出状态保存”(注入 `onSaveExitState`)。
47
+ */
48
+ enableOnSaveExitState?: boolean;
49
+ }
@@ -0,0 +1,4 @@
1
+ import { PageLayoutMeta, PageMeta } from "./types/pageMeta.mjs";
2
+ import { PageFeatures } from "./config/pageFeatures.mjs";
3
+ import { WevuConfigAppDefaults, WevuConfigComponentDefaults, WevuConfigComponentOptions, WevuConfigDefaults, WevuConfigRecord, WevuConfigSetDataOptions, WevuConfigValue } from "./config/defaults.mjs";
4
+ export type { PageFeatures, PageLayoutMeta, PageMeta, WevuConfigAppDefaults, WevuConfigComponentDefaults, WevuConfigComponentOptions, WevuConfigDefaults, WevuConfigRecord, WevuConfigSetDataOptions, WevuConfigValue };
@@ -0,0 +1 @@
1
+ export{};
@@ -1,6 +1,6 @@
1
1
  import toPropertyKey from "./toPropertyKey.mjs";
2
2
 
3
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
3
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/defineProperty.js
4
4
  function _defineProperty(e, r, t) {
5
5
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
6
6
  value: t,
@@ -10,5 +10,4 @@ function _defineProperty(e, r, t) {
10
10
  }) : e[r] = t, e;
11
11
  }
12
12
 
13
- //#endregion
14
13
  export { _defineProperty as default };
@@ -1,6 +1,6 @@
1
1
  import _typeof from "./typeof.mjs";
2
2
 
3
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
3
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/toPrimitive.js
4
4
  function toPrimitive(t, r) {
5
5
  if ("object" != _typeof(t) || !t) return t;
6
6
  var e = t[Symbol.toPrimitive];
@@ -12,5 +12,4 @@ function toPrimitive(t, r) {
12
12
  return ("string" === r ? String : Number)(t);
13
13
  }
14
14
 
15
- //#endregion
16
15
  export { toPrimitive as default };
@@ -1,11 +1,10 @@
1
1
  import _typeof from "./typeof.mjs";
2
2
  import toPrimitive from "./toPrimitive.mjs";
3
3
 
4
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
4
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/toPropertyKey.js
5
5
  function toPropertyKey(t) {
6
6
  var i = toPrimitive(t, "string");
7
7
  return "symbol" == _typeof(i) ? i : i + "";
8
8
  }
9
9
 
10
- //#endregion
11
10
  export { toPropertyKey as default };
@@ -1,4 +1,4 @@
1
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
1
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/typeof.js
2
2
  function _typeof(o) {
3
3
  "@babel/helpers - typeof";
4
4
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -8,5 +8,4 @@ function _typeof(o) {
8
8
  }, _typeof(o);
9
9
  }
10
10
 
11
- //#endregion
12
11
  export { _typeof as default };
@@ -1,12 +1,11 @@
1
1
  import { setupApiMock } from "@wevu/api/vitest";
2
2
 
3
- //#region src/apiVitestSetup.ts
3
+ // src/apiVitestSetup.ts
4
4
  setupApiMock([
5
5
  "@weapp-core/api",
6
6
  "@wevu/api",
7
7
  "wevu/api"
8
8
  ]);
9
9
 
10
- //#endregion
11
10
  export { };
12
11
  //# sourceMappingURL=setup.mjs.map
@@ -1,6 +1,5 @@
1
- //#region package.json
2
- var version = "7.5.0";
1
+ // package.json
2
+ var version = "7.7.0";
3
3
 
4
- //#endregion
5
4
  export { version };
6
5
  //# sourceMappingURL=package.mjs.map
@@ -3,7 +3,7 @@ import { reactive } from "./reactive.mjs";
3
3
  import { readonly } from "./readonly.mjs";
4
4
  import { AbortControllerPolyfill } from "@wevu/web-apis/abort";
5
5
 
6
- //#region src/reactivity/asyncDerivation.ts
6
+ // src/reactivity/asyncDerivation.ts
7
7
  const RESOLVED_PROMISE = Promise.resolve();
8
8
  function createAsyncDerivationCycle() {
9
9
  let resolve;
@@ -123,6 +123,5 @@ function useAsyncDerivation(loader, options = {}) {
123
123
  return result;
124
124
  }
125
125
 
126
- //#endregion
127
126
  export { useAsyncDerivation };
128
127
  //# sourceMappingURL=asyncDerivation.mjs.map
@@ -2,7 +2,7 @@ import { createComputedEffect, track, trigger } from "./core.mjs";
2
2
  import { markRaw } from "./reactive.mjs";
3
3
  import { markAsRef } from "./ref.mjs";
4
4
 
5
- //#region src/reactivity/computed.ts
5
+ // src/reactivity/computed.ts
6
6
  const computedRefs = /* @__PURE__ */ new WeakSet();
7
7
  /** 识别计算来源,供 Store 将派生值与可持久化 state 分离。 */
8
8
  function isComputedRef(value) {
@@ -53,6 +53,5 @@ function computed(getterOrOptions) {
53
53
  return onlyGetter ? obj : obj;
54
54
  }
55
55
 
56
- //#endregion
57
56
  export { computed, isComputedRef };
58
57
  //# sourceMappingURL=computed.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"computed.mjs","names":[],"sources":["../../../src/reactivity/computed.ts"],"sourcesContent":["import type { ReactiveEffect } from './core'\nimport type { Ref } from './ref'\nimport { createComputedEffect, track, trigger } from './core'\nimport { markRaw } from './reactive'\nimport { ReactiveFlags } from './reactive/shared'\nimport { markAsRef } from './ref'\n\nexport type ComputedGetter<T> = () => T\nexport type ComputedSetter<T> = (value: T) => void\n\ndeclare const computedBrand: unique symbol\ndeclare const writableComputedBrand: unique symbol\n\nconst computedRefs = new WeakSet<object>()\n\n/** 识别计算来源,供 Store 将派生值与可持久化 state 分离。 */\nexport function isComputedRef(value: unknown): value is ComputedRef | WritableComputedRef<any> {\n return typeof value === 'object' && value !== null && computedRefs.has(value)\n}\n\ninterface BaseComputedRef<T, S = T> extends Ref<T, S> {\n [key: symbol]: any\n}\n\nexport interface ComputedRef<T = any> extends BaseComputedRef<T> {\n readonly [computedBrand]: true\n readonly value: T\n}\n\nexport interface WritableComputedRef<T, S = T> extends BaseComputedRef<T, S> {\n readonly [writableComputedBrand]: true\n value: T\n}\n\nexport interface WritableComputedOptions<T> {\n get: ComputedGetter<T>\n set: ComputedSetter<T>\n}\n\nexport function computed<T>(getter: ComputedGetter<T>): ComputedRef<T>\nexport function computed<T>(options: WritableComputedOptions<T>): WritableComputedRef<T>\nexport function computed<T>(\n getterOrOptions: ComputedGetter<T> | WritableComputedOptions<T>,\n): ComputedRef<T> | WritableComputedRef<T> {\n let getter: ComputedGetter<T>\n let setter: ComputedSetter<T>\n const onlyGetter = typeof getterOrOptions === 'function'\n if (onlyGetter) {\n getter = getterOrOptions as ComputedGetter<T>\n setter = () => {\n throw new Error('计算属性是只读的')\n }\n }\n else {\n getter = (getterOrOptions as WritableComputedOptions<T>).get\n setter = (getterOrOptions as WritableComputedOptions<T>).set\n }\n let value: T\n let dirty = true\n let runner: ReactiveEffect<T>\n const obj: any = {\n get value() {\n if (dirty) {\n value = runner()\n dirty = false\n }\n track(obj, 'value')\n return value\n },\n set value(newValue: T) {\n setter(newValue)\n },\n }\n markAsRef(obj)\n markRaw(obj)\n computedRefs.add(obj)\n Object.defineProperty(obj, ReactiveFlags.IS_READONLY, { value: onlyGetter })\n runner = createComputedEffect(getter, {\n lazy: true,\n scheduler: () => {\n if (!dirty) {\n dirty = true\n trigger(obj, 'value')\n }\n },\n })\n return (onlyGetter ? obj as ComputedRef<T> : obj as WritableComputedRef<T>)\n}\n"],"mappings":";;;;;AAaA,MAAM,+BAAe,IAAI,QAAgB;;AAGzC,SAAgB,cAAc,OAAiE;CAC7F,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,aAAa,IAAI,KAAK;AAC9E;AAuBA,SAAgB,SACd,iBACyC;CACzC,IAAI;CACJ,IAAI;CACJ,MAAM,aAAa,OAAO,oBAAoB;CAC9C,IAAI,YAAY;EACd,SAAS;EACT,eAAe;GACb,MAAM,IAAI,MAAM,UAAU;EAC5B;CACF,OACK;EACH,SAAU,gBAA+C;EACzD,SAAU,gBAA+C;CAC3D;CACA,IAAI;CACJ,IAAI,QAAQ;CACZ,IAAI;CACJ,MAAM,MAAW;EACf,IAAI,QAAQ;GACV,IAAI,OAAO;IACT,QAAQ,OAAO;IACf,QAAQ;GACV;GACA,MAAM,KAAK,OAAO;GAClB,OAAO;EACT;EACA,IAAI,MAAM,UAAa;GACrB,OAAO,QAAQ;EACjB;CACF;CACA,UAAU,GAAG;CACb,QAAQ,GAAG;CACX,aAAa,IAAI,GAAG;CACpB,OAAO,eAAe,uBAAgC,EAAE,OAAO,WAAW,CAAC;CAC3E,SAAS,qBAAqB,QAAQ;EACpC,MAAM;EACN,iBAAiB;GACf,IAAI,CAAC,OAAO;IACV,QAAQ;IACR,QAAQ,KAAK,OAAO;GACtB;EACF;CACF,CAAC;CACD,OAAQ,aAAa,MAAwB;AAC/C"}
1
+ {"version":3,"file":"computed.mjs","names":[],"sources":["../../../src/reactivity/computed.ts"],"sourcesContent":["import type { ComputedGetter, ComputedSetter, WritableComputedOptions } from '../types/reactivity'\nimport type { ReactiveEffect } from './core'\nimport type { Ref } from './ref'\nimport { createComputedEffect, track, trigger } from './core'\nimport { markRaw } from './reactive'\nimport { ReactiveFlags } from './reactive/shared'\nimport { markAsRef } from './ref'\n\nexport type { ComputedGetter, ComputedSetter, WritableComputedOptions } from '../types/reactivity'\n\ndeclare const computedBrand: unique symbol\ndeclare const writableComputedBrand: unique symbol\n\nconst computedRefs = new WeakSet<object>()\n\n/** 识别计算来源,供 Store 将派生值与可持久化 state 分离。 */\nexport function isComputedRef(value: unknown): value is ComputedRef | WritableComputedRef<any> {\n return typeof value === 'object' && value !== null && computedRefs.has(value)\n}\n\ninterface BaseComputedRef<T, S = T> extends Ref<T, S> {\n [key: symbol]: any\n}\n\nexport interface ComputedRef<T = any> extends BaseComputedRef<T> {\n readonly [computedBrand]: true\n readonly value: T\n}\n\nexport interface WritableComputedRef<T, S = T> extends BaseComputedRef<T, S> {\n readonly [writableComputedBrand]: true\n value: T\n}\n\nexport function computed<T>(getter: ComputedGetter<T>): ComputedRef<T>\nexport function computed<T>(options: WritableComputedOptions<T>): WritableComputedRef<T>\nexport function computed<T>(\n getterOrOptions: ComputedGetter<T> | WritableComputedOptions<T>,\n): ComputedRef<T> | WritableComputedRef<T> {\n let getter: ComputedGetter<T>\n let setter: ComputedSetter<T>\n const onlyGetter = typeof getterOrOptions === 'function'\n if (onlyGetter) {\n getter = getterOrOptions as ComputedGetter<T>\n setter = () => {\n throw new Error('计算属性是只读的')\n }\n }\n else {\n getter = (getterOrOptions as WritableComputedOptions<T>).get\n setter = (getterOrOptions as WritableComputedOptions<T>).set\n }\n let value: T\n let dirty = true\n let runner: ReactiveEffect<T>\n const obj: any = {\n get value() {\n if (dirty) {\n value = runner()\n dirty = false\n }\n track(obj, 'value')\n return value\n },\n set value(newValue: T) {\n setter(newValue)\n },\n }\n markAsRef(obj)\n markRaw(obj)\n computedRefs.add(obj)\n Object.defineProperty(obj, ReactiveFlags.IS_READONLY, { value: onlyGetter })\n runner = createComputedEffect(getter, {\n lazy: true,\n scheduler: () => {\n if (!dirty) {\n dirty = true\n trigger(obj, 'value')\n }\n },\n })\n return (onlyGetter ? obj as ComputedRef<T> : obj as WritableComputedRef<T>)\n}\n"],"mappings":";;;;;AAaA,MAAM,+BAAe,IAAI,QAAgB;;AAGzC,SAAgB,cAAc,OAAiE;CAC7F,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,aAAa,IAAI,KAAK;AAC9E;AAkBA,SAAgB,SACd,iBACyC;CACzC,IAAI;CACJ,IAAI;CACJ,MAAM,aAAa,OAAO,oBAAoB;CAC9C,IAAI,YAAY;EACd,SAAS;EACT,eAAe;GACb,MAAM,IAAI,MAAM,UAAU;EAC5B;CACF,OACK;EACH,SAAU,gBAA+C;EACzD,SAAU,gBAA+C;CAC3D;CACA,IAAI;CACJ,IAAI,QAAQ;CACZ,IAAI;CACJ,MAAM,MAAW;EACf,IAAI,QAAQ;GACV,IAAI,OAAO;IACT,QAAQ,OAAO;IACf,QAAQ;GACV;GACA,MAAM,KAAK,OAAO;GAClB,OAAO;EACT;EACA,IAAI,MAAM,UAAa;GACrB,OAAO,QAAQ;EACjB;CACF;CACA,UAAU,GAAG;CACb,QAAQ,GAAG;CACX,aAAa,IAAI,GAAG;CACpB,OAAO,eAAe,uBAAgC,EAAE,OAAO,WAAW,CAAC;CAC3E,SAAS,qBAAqB,QAAQ;EACpC,MAAM;EACN,iBAAiB;GACf,IAAI,CAAC,OAAO;IACV,QAAQ;IACR,QAAQ,KAAK,OAAO;GACtB;EACF;CACF,CAAC;CACD,OAAQ,aAAa,MAAwB;AAC/C"}
@@ -1,7 +1,7 @@
1
1
  import { queueJob } from "../scheduler.mjs";
2
- import _defineProperty from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/defineProperty.mjs";
2
+ import _defineProperty from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/defineProperty.mjs";
3
3
 
4
- //#region src/reactivity/core.ts
4
+ // src/reactivity/core.ts
5
5
  const targetMap = /* @__PURE__ */ new WeakMap();
6
6
  let activeEffect = null;
7
7
  const effectStack = [];
@@ -300,6 +300,5 @@ function triggerEffects(dep) {
300
300
  new Set(dep).forEach(scheduleEffect);
301
301
  }
302
302
 
303
- //#endregion
304
303
  export { batch, createComputedEffect, createReactiveEffect, effect, effectScope, endBatch, getCurrentScope, onScopeDispose, queueBatchCallback, queueJob, runWithoutTracking, startBatch, stop, track, trackEffects, trigger, triggerEffects };
305
304
  //# sourceMappingURL=core.mjs.map
@@ -1,4 +1,4 @@
1
- //#region src/reactivity/reactive/mutation.ts
1
+ // src/reactivity/reactive/mutation.ts
2
2
  const mutationRecorders = /* @__PURE__ */ new Set();
3
3
  function addMutationRecorder(recorder) {
4
4
  mutationRecorders.add(recorder);
@@ -7,6 +7,5 @@ function removeMutationRecorder(recorder) {
7
7
  mutationRecorders.delete(recorder);
8
8
  }
9
9
 
10
- //#endregion
11
10
  export { addMutationRecorder, mutationRecorders, removeMutationRecorder };
12
11
  //# sourceMappingURL=mutation.mjs.map
@@ -2,7 +2,7 @@ import { track } from "../core.mjs";
2
2
  import { adoptReactiveRoot, indexPatchNode, rawMultiParentSet, rawParentMap, rawParentsMap, rawPathMap, rawRootMap, rawVersionMap, recordParentLink, rootPatchNodesMap } from "./patchState.mjs";
3
3
  import { VERSION_KEY, isObject, toRaw } from "./shared.mjs";
4
4
 
5
- //#region src/reactivity/reactive/patch.ts
5
+ // src/reactivity/reactive/patch.ts
6
6
  /**
7
7
  * 预链接响应式树结构,供运行时差量路径追踪使用。
8
8
  * @internal
@@ -82,6 +82,5 @@ function touchReactive(target) {
82
82
  track(raw, VERSION_KEY);
83
83
  }
84
84
 
85
- //#endregion
86
85
  export { clearPatchIndices, prelinkReactiveTree, touchReactive };
87
86
  //# sourceMappingURL=patch.mjs.map
@@ -1,6 +1,6 @@
1
1
  import { mutationRecorders } from "./mutation.mjs";
2
2
 
3
- //#region src/reactivity/reactive/patchState.ts
3
+ // src/reactivity/reactive/patchState.ts
4
4
  const rawRootMap = /* @__PURE__ */ new WeakMap();
5
5
  const rawVersionMap = /* @__PURE__ */ new WeakMap();
6
6
  const rawParentMap = /* @__PURE__ */ new WeakMap();
@@ -129,6 +129,5 @@ function resolvePathToTarget(root, target) {
129
129
  }
130
130
  }
131
131
 
132
- //#endregion
133
132
  export { adoptReactiveRoot, bumpAncestorVersions, bumpRawVersion, getRawVersion, indexPatchNode, rawMultiParentSet, rawParentMap, rawParentsMap, rawPathMap, rawRootMap, rawVersionMap, recordParentLink, removeParentLink, resolvePathToTarget, rootPatchNodesMap };
134
133
  //# sourceMappingURL=patchState.mjs.map
@@ -3,7 +3,7 @@ import { bumpRawVersion, rawVersionMap } from "./patchState.mjs";
3
3
  import { VERSION_KEY, getTargetType, hasOwn, isObject, toRaw } from "./shared.mjs";
4
4
  import { rawMap, shallowReactiveMap } from "./state.mjs";
5
5
 
6
- //#region src/reactivity/reactive/shallow.ts
6
+ // src/reactivity/reactive/shallow.ts
7
7
  const shallowHandlers = {
8
8
  get(target, key, receiver) {
9
9
  if (key === "__r_isReactive") return true;
@@ -72,6 +72,5 @@ function isShallowReactive(value) {
72
72
  return shallowReactiveMap.has(raw);
73
73
  }
74
74
 
75
- //#endregion
76
75
  export { isShallowReactive, shallowReactive };
77
76
  //# sourceMappingURL=shallow.mjs.map
@@ -1,4 +1,4 @@
1
- //#region src/reactivity/reactive/shared.ts
1
+ // src/reactivity/reactive/shared.ts
2
2
  function isObject(value) {
3
3
  return typeof value === "object" && value !== null;
4
4
  }
@@ -34,6 +34,5 @@ function toRaw(observed) {
34
34
  return observed?.["__r_raw"] ?? observed;
35
35
  }
36
36
 
37
- //#endregion
38
37
  export { VERSION_KEY, getTargetType, hasOwn, isArrayIndexKey, isObject, toRaw, toRawType };
39
38
  //# sourceMappingURL=shared.mjs.map
@@ -1,8 +1,7 @@
1
- //#region src/reactivity/reactive/state.ts
1
+ // src/reactivity/reactive/state.ts
2
2
  const reactiveMap = /* @__PURE__ */ new WeakMap();
3
3
  const rawMap = /* @__PURE__ */ new WeakMap();
4
4
  const shallowReactiveMap = /* @__PURE__ */ new WeakMap();
5
5
 
6
- //#endregion
7
6
  export { rawMap, reactiveMap, shallowReactiveMap };
8
7
  //# sourceMappingURL=state.mjs.map
@@ -6,7 +6,7 @@ import { rawMap, reactiveMap } from "./reactive/state.mjs";
6
6
  import { clearPatchIndices, prelinkReactiveTree, touchReactive } from "./reactive/patch.mjs";
7
7
  import { isShallowReactive, shallowReactive } from "./reactive/shallow.mjs";
8
8
 
9
- //#region src/reactivity/reactive.ts
9
+ // src/reactivity/reactive.ts
10
10
  /**
11
11
  * 读取响应式版本号(框架内部调试能力)。
12
12
  * @internal
@@ -210,6 +210,5 @@ function isRaw(value) {
210
210
  return isObject(value) && "__r_skip" in value;
211
211
  }
212
212
 
213
- //#endregion
214
213
  export { addMutationRecorder, clearPatchIndices, convertToReactive, getReactiveVersion, isObject, isRaw, isReactive, isShallowReactive, markRaw, prelinkReactiveTree, reactive, removeMutationRecorder, shallowReactive, toRaw, touchReactive };
215
214
  //# sourceMappingURL=reactive.mjs.map
@@ -2,7 +2,7 @@ import { getTargetType, isObject } from "./reactive/shared.mjs";
2
2
  import { isReactive } from "./reactive.mjs";
3
3
  import { isRef, markAsRef } from "./ref.mjs";
4
4
 
5
- //#region src/reactivity/readonly.ts
5
+ // src/reactivity/readonly.ts
6
6
  function createReadonlyWrapper(target) {
7
7
  if (isRef(target)) {
8
8
  const source = target;
@@ -64,6 +64,5 @@ function isProxy(value) {
64
64
  return isReactive(value) || isReadonly(value);
65
65
  }
66
66
 
67
- //#endregion
68
67
  export { isProxy, isReadonly, readonly, shallowReadonly };
69
68
  //# sourceMappingURL=readonly.mjs.map
@@ -1,8 +1,8 @@
1
- import _defineProperty from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/defineProperty.mjs";
1
+ import _defineProperty from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/defineProperty.mjs";
2
2
  import { trackEffects, triggerEffects } from "./core.mjs";
3
3
  import { convertToReactive, markRaw } from "./reactive.mjs";
4
4
 
5
- //#region src/reactivity/ref.ts
5
+ // src/reactivity/ref.ts
6
6
  const RefFlag = "__v_isRef";
7
7
  function markAsRef(target) {
8
8
  try {
@@ -92,6 +92,5 @@ function customRef(factory, defaultValue) {
92
92
  return markRaw(new CustomRefImpl(factory, defaultValue));
93
93
  }
94
94
 
95
- //#endregion
96
95
  export { RefFlag, customRef, isRef, markAsRef, ref, toValue, unref };
97
96
  //# sourceMappingURL=ref.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ref.mjs","names":[],"sources":["../../../src/reactivity/ref.ts"],"sourcesContent":["import type { Ref as VueRef, ShallowRef as VueShallowRef } from '../vue-types'\nimport type { ComputedRef, WritableComputedRef } from './computed'\nimport type { Dep } from './core'\nimport { trackEffects, triggerEffects } from './core'\nimport { convertToReactive, markRaw } from './reactive'\n\n// 类型对齐 @vue/reactivity.Ref:\n// - 用于 Volar 模板自动解包(UnwrapRef 依赖 RefSymbol 品牌标记)。\n// - 运行时仍使用 wevu 自己的 ref 实现,不依赖 Vue。\nexport type Ref<T = any, S = T> = VueRef<T, S>\nexport type ShallowRef<T = any> = VueShallowRef<T>\nexport type MaybeRef<T = any> = T | Ref<T> | ShallowRef<T> | WritableComputedRef<T>\nexport type MaybeRefOrGetter<T = any> = MaybeRef<T> | ComputedRef<T> | (() => T)\n\nexport const RefFlag = '__v_isRef' as const\n\nexport function markAsRef<T extends object>(target: T): T {\n try {\n Object.defineProperty(target, RefFlag, {\n value: true,\n configurable: true,\n })\n }\n catch {\n ;(target as any)[RefFlag] = true\n }\n return target\n}\n\nexport function isRef(value: unknown): value is Ref<any> {\n return Boolean(value && typeof value === 'object' && (value as any)[RefFlag] === true)\n}\n\nclass RefImpl<T> {\n private _value: T\n private _rawValue: T\n public dep: Dep | undefined\n constructor(value: T) {\n markAsRef(this)\n this._rawValue = value\n this._value = convertToReactive(value)\n }\n\n get value(): T {\n if (!this.dep) {\n this.dep = new Set()\n }\n trackEffects(this.dep)\n return this._value\n }\n\n set value(newValue: T) {\n if (!Object.is(newValue, this._rawValue)) {\n this._rawValue = newValue\n this._value = convertToReactive(newValue)\n if (this.dep) {\n triggerEffects(this.dep)\n }\n }\n }\n}\n\nexport function ref<T = any>(): Ref<T | undefined>\nexport function ref<T>(value: T): Ref<T>\nexport function ref<T>(value?: T): Ref<T | undefined> {\n if (isRef(value)) {\n return value\n }\n return markRaw(new RefImpl(value as T | undefined)) as any\n}\n\nexport function unref<T>(value: MaybeRef<T> | ComputedRef<T>): T {\n return isRef(value) ? value.value : value\n}\n\nexport function toValue<T>(source: MaybeRefOrGetter<T>): T {\n return typeof source === 'function' ? (source as () => T)() : unref(source)\n}\n\n/**\n * 自定义 ref 工厂:用于创建可显式控制 track/trigger 的自定义 ref\n */\nexport type CustomRefFactory<T> = (\n track: () => void,\n trigger: () => void,\n) => {\n get: () => T\n set: (value: T) => void\n}\n\nexport interface CustomRefOptions<T> {\n get: () => T\n set: (value: T) => void\n}\n\nexport type CustomRefSource<T> = CustomRefFactory<T> | CustomRefOptions<T>\n\nclass CustomRefImpl<T> {\n private _getValue: () => T\n private _setValue: (value: T) => void\n public dep: Dep | undefined\n\n constructor(factory: CustomRefSource<T>, defaultValue?: T) {\n markAsRef(this)\n const fallbackValue = defaultValue\n const track = () => {\n if (!this.dep) {\n this.dep = new Set()\n }\n trackEffects(this.dep)\n }\n const trigger = () => {\n if (this.dep) {\n triggerEffects(this.dep)\n }\n }\n\n const withFallback = (value: T) => (value === undefined && fallbackValue !== undefined ? fallbackValue as T : value)\n\n if (typeof factory === 'function') {\n const handlers = factory(track, trigger)\n this._getValue = () => withFallback(handlers.get())\n this._setValue = value => handlers.set(value)\n return\n }\n\n const handlers = factory\n this._getValue = () => {\n track()\n return withFallback(handlers.get())\n }\n this._setValue = (value: T) => {\n handlers.set(value)\n trigger()\n }\n }\n\n get value(): T {\n return this._getValue()\n }\n\n set value(newValue: T) {\n this._setValue(newValue)\n }\n}\n\nexport function customRef<T>(factory: CustomRefSource<T>, defaultValue?: T): Ref<T> {\n return markRaw(new CustomRefImpl(factory, defaultValue)) as any\n}\n"],"mappings":";;;;;AAcA,MAAa,UAAU;AAEvB,SAAgB,UAA4B,QAAc;CACxD,IAAI;EACF,OAAO,eAAe,QAAQ,SAAS;GACrC,OAAO;GACP,cAAc;EAChB,CAAC;CACH,QACM;EACH,AAAC,OAAe,WAAW;CAC9B;CACA,OAAO;AACT;AAEA,SAAgB,MAAM,OAAmC;CACvD,OAAO,QAAQ,SAAS,OAAO,UAAU,YAAa,uBAA2B,IAAI;AACvF;AAEA,IAAM,UAAN,MAAiB;CAIf,YAAY,OAAU;wBAHd;wBACA;wBACD;EAEL,UAAU,IAAI;EACd,KAAK,YAAY;EACjB,KAAK,SAAS,kBAAkB,KAAK;CACvC;CAEA,IAAI,QAAW;EACb,IAAI,CAAC,KAAK,KACR,KAAK,sBAAM,IAAI,IAAI;EAErB,aAAa,KAAK,GAAG;EACrB,OAAO,KAAK;CACd;CAEA,IAAI,MAAM,UAAa;EACrB,IAAI,CAAC,OAAO,GAAG,UAAU,KAAK,SAAS,GAAG;GACxC,KAAK,YAAY;GACjB,KAAK,SAAS,kBAAkB,QAAQ;GACxC,IAAI,KAAK,KACP,eAAe,KAAK,GAAG;EAE3B;CACF;AACF;AAIA,SAAgB,IAAO,OAA+B;CACpD,IAAI,MAAM,KAAK,GACb,OAAO;CAET,OAAO,QAAQ,IAAI,QAAQ,KAAsB,CAAC;AACpD;AAEA,SAAgB,MAAS,OAAwC;CAC/D,OAAO,MAAM,KAAK,IAAI,MAAM,QAAQ;AACtC;AAEA,SAAgB,QAAW,QAAgC;CACzD,OAAO,OAAO,WAAW,aAAc,OAAmB,IAAI,MAAM,MAAM;AAC5E;AAoBA,IAAM,gBAAN,MAAuB;CAKrB,YAAY,SAA6B,cAAkB;wBAJnD;wBACA;wBACD;EAGL,UAAU,IAAI;EACd,MAAM,gBAAgB;EACtB,MAAM,cAAc;GAClB,IAAI,CAAC,KAAK,KACR,KAAK,sBAAM,IAAI,IAAI;GAErB,aAAa,KAAK,GAAG;EACvB;EACA,MAAM,gBAAgB;GACpB,IAAI,KAAK,KACP,eAAe,KAAK,GAAG;EAE3B;EAEA,MAAM,gBAAgB,UAAc,UAAU,UAAa,kBAAkB,SAAY,gBAAqB;EAE9G,IAAI,OAAO,YAAY,YAAY;GACjC,MAAM,WAAW,QAAQ,OAAO,OAAO;GACvC,KAAK,kBAAkB,aAAa,SAAS,IAAI,CAAC;GAClD,KAAK,aAAY,UAAS,SAAS,IAAI,KAAK;GAC5C;EACF;EAEA,MAAM,WAAW;EACjB,KAAK,kBAAkB;GACrB,MAAM;GACN,OAAO,aAAa,SAAS,IAAI,CAAC;EACpC;EACA,KAAK,aAAa,UAAa;GAC7B,SAAS,IAAI,KAAK;GAClB,QAAQ;EACV;CACF;CAEA,IAAI,QAAW;EACb,OAAO,KAAK,UAAU;CACxB;CAEA,IAAI,MAAM,UAAa;EACrB,KAAK,UAAU,QAAQ;CACzB;AACF;AAEA,SAAgB,UAAa,SAA6B,cAA0B;CAClF,OAAO,QAAQ,IAAI,cAAc,SAAS,YAAY,CAAC;AACzD"}
1
+ {"version":3,"file":"ref.mjs","names":[],"sources":["../../../src/reactivity/ref.ts"],"sourcesContent":["import type { Ref as VueRef, ShallowRef as VueShallowRef } from '../types/reactivity'\nimport type { ComputedRef, WritableComputedRef } from './computed'\nimport type { Dep } from './core'\nimport { trackEffects, triggerEffects } from './core'\nimport { convertToReactive, markRaw } from './reactive'\n\n// 类型对齐 @vue/reactivity.Ref:\n// - 用于 Volar 模板自动解包(UnwrapRef 依赖 RefSymbol 品牌标记)。\n// - 运行时仍使用 wevu 自己的 ref 实现,不依赖 Vue。\nexport type Ref<T = any, S = T> = VueRef<T, S>\nexport type ShallowRef<T = any> = VueShallowRef<T>\nexport type MaybeRef<T = any> = T | Ref<T> | ShallowRef<T> | WritableComputedRef<T>\nexport type MaybeRefOrGetter<T = any> = MaybeRef<T> | ComputedRef<T> | (() => T)\n\nexport const RefFlag = '__v_isRef' as const\n\nexport function markAsRef<T extends object>(target: T): T {\n try {\n Object.defineProperty(target, RefFlag, {\n value: true,\n configurable: true,\n })\n }\n catch {\n ;(target as any)[RefFlag] = true\n }\n return target\n}\n\nexport function isRef(value: unknown): value is Ref<any> {\n return Boolean(value && typeof value === 'object' && (value as any)[RefFlag] === true)\n}\n\nclass RefImpl<T> {\n private _value: T\n private _rawValue: T\n public dep: Dep | undefined\n constructor(value: T) {\n markAsRef(this)\n this._rawValue = value\n this._value = convertToReactive(value)\n }\n\n get value(): T {\n if (!this.dep) {\n this.dep = new Set()\n }\n trackEffects(this.dep)\n return this._value\n }\n\n set value(newValue: T) {\n if (!Object.is(newValue, this._rawValue)) {\n this._rawValue = newValue\n this._value = convertToReactive(newValue)\n if (this.dep) {\n triggerEffects(this.dep)\n }\n }\n }\n}\n\nexport function ref<T = any>(): Ref<T | undefined>\nexport function ref<T>(value: T): Ref<T>\nexport function ref<T>(value?: T): Ref<T | undefined> {\n if (isRef(value)) {\n return value\n }\n return markRaw(new RefImpl(value as T | undefined)) as any\n}\n\nexport function unref<T>(value: MaybeRef<T> | ComputedRef<T>): T {\n return isRef(value) ? value.value : value\n}\n\nexport function toValue<T>(source: MaybeRefOrGetter<T>): T {\n return typeof source === 'function' ? (source as () => T)() : unref(source)\n}\n\n/**\n * 自定义 ref 工厂:用于创建可显式控制 track/trigger 的自定义 ref\n */\nexport type CustomRefFactory<T> = (\n track: () => void,\n trigger: () => void,\n) => {\n get: () => T\n set: (value: T) => void\n}\n\nexport interface CustomRefOptions<T> {\n get: () => T\n set: (value: T) => void\n}\n\nexport type CustomRefSource<T> = CustomRefFactory<T> | CustomRefOptions<T>\n\nclass CustomRefImpl<T> {\n private _getValue: () => T\n private _setValue: (value: T) => void\n public dep: Dep | undefined\n\n constructor(factory: CustomRefSource<T>, defaultValue?: T) {\n markAsRef(this)\n const fallbackValue = defaultValue\n const track = () => {\n if (!this.dep) {\n this.dep = new Set()\n }\n trackEffects(this.dep)\n }\n const trigger = () => {\n if (this.dep) {\n triggerEffects(this.dep)\n }\n }\n\n const withFallback = (value: T) => (value === undefined && fallbackValue !== undefined ? fallbackValue as T : value)\n\n if (typeof factory === 'function') {\n const handlers = factory(track, trigger)\n this._getValue = () => withFallback(handlers.get())\n this._setValue = value => handlers.set(value)\n return\n }\n\n const handlers = factory\n this._getValue = () => {\n track()\n return withFallback(handlers.get())\n }\n this._setValue = (value: T) => {\n handlers.set(value)\n trigger()\n }\n }\n\n get value(): T {\n return this._getValue()\n }\n\n set value(newValue: T) {\n this._setValue(newValue)\n }\n}\n\nexport function customRef<T>(factory: CustomRefSource<T>, defaultValue?: T): Ref<T> {\n return markRaw(new CustomRefImpl(factory, defaultValue)) as any\n}\n"],"mappings":";;;;;AAcA,MAAa,UAAU;AAEvB,SAAgB,UAA4B,QAAc;CACxD,IAAI;EACF,OAAO,eAAe,QAAQ,SAAS;GACrC,OAAO;GACP,cAAc;EAChB,CAAC;CACH,QACM;EACH,AAAC,OAAe,WAAW;CAC9B;CACA,OAAO;AACT;AAEA,SAAgB,MAAM,OAAmC;CACvD,OAAO,QAAQ,SAAS,OAAO,UAAU,YAAa,uBAA2B,IAAI;AACvF;AAEA,IAAM,UAAN,MAAiB;CAIf,YAAY,OAAU;wBAHd;wBACA;wBACD;EAEL,UAAU,IAAI;EACd,KAAK,YAAY;EACjB,KAAK,SAAS,kBAAkB,KAAK;CACvC;CAEA,IAAI,QAAW;EACb,IAAI,CAAC,KAAK,KACR,KAAK,sBAAM,IAAI,IAAI;EAErB,aAAa,KAAK,GAAG;EACrB,OAAO,KAAK;CACd;CAEA,IAAI,MAAM,UAAa;EACrB,IAAI,CAAC,OAAO,GAAG,UAAU,KAAK,SAAS,GAAG;GACxC,KAAK,YAAY;GACjB,KAAK,SAAS,kBAAkB,QAAQ;GACxC,IAAI,KAAK,KACP,eAAe,KAAK,GAAG;EAE3B;CACF;AACF;AAIA,SAAgB,IAAO,OAA+B;CACpD,IAAI,MAAM,KAAK,GACb,OAAO;CAET,OAAO,QAAQ,IAAI,QAAQ,KAAsB,CAAC;AACpD;AAEA,SAAgB,MAAS,OAAwC;CAC/D,OAAO,MAAM,KAAK,IAAI,MAAM,QAAQ;AACtC;AAEA,SAAgB,QAAW,QAAgC;CACzD,OAAO,OAAO,WAAW,aAAc,OAAmB,IAAI,MAAM,MAAM;AAC5E;AAoBA,IAAM,gBAAN,MAAuB;CAKrB,YAAY,SAA6B,cAAkB;wBAJnD;wBACA;wBACD;EAGL,UAAU,IAAI;EACd,MAAM,gBAAgB;EACtB,MAAM,cAAc;GAClB,IAAI,CAAC,KAAK,KACR,KAAK,sBAAM,IAAI,IAAI;GAErB,aAAa,KAAK,GAAG;EACvB;EACA,MAAM,gBAAgB;GACpB,IAAI,KAAK,KACP,eAAe,KAAK,GAAG;EAE3B;EAEA,MAAM,gBAAgB,UAAc,UAAU,UAAa,kBAAkB,SAAY,gBAAqB;EAE9G,IAAI,OAAO,YAAY,YAAY;GACjC,MAAM,WAAW,QAAQ,OAAO,OAAO;GACvC,KAAK,kBAAkB,aAAa,SAAS,IAAI,CAAC;GAClD,KAAK,aAAY,UAAS,SAAS,IAAI,KAAK;GAC5C;EACF;EAEA,MAAM,WAAW;EACjB,KAAK,kBAAkB;GACrB,MAAM;GACN,OAAO,aAAa,SAAS,IAAI,CAAC;EACpC;EACA,KAAK,aAAa,UAAa;GAC7B,SAAS,IAAI,KAAK;GAClB,QAAQ;EACV;CACF;CAEA,IAAI,QAAW;EACb,OAAO,KAAK,UAAU;CACxB;CAEA,IAAI,MAAM,UAAa;EACrB,KAAK,UAAU,QAAQ;CACzB;AACF;AAEA,SAAgB,UAAa,SAA6B,cAA0B;CAClF,OAAO,QAAQ,IAAI,cAAc,SAAS,YAAY,CAAC;AACzD"}
@@ -1,7 +1,7 @@
1
1
  import { triggerEffects } from "./core.mjs";
2
2
  import { customRef, isRef } from "./ref.mjs";
3
3
 
4
- //#region src/reactivity/shallowRef.ts
4
+ // src/reactivity/shallowRef.ts
5
5
  const ShallowRefFlag = "__v_isShallow";
6
6
  function markAsShallowRef(target) {
7
7
  try {
@@ -66,6 +66,5 @@ function triggerRef(ref) {
66
66
  }
67
67
  }
68
68
 
69
- //#endregion
70
69
  export { isShallowRef, shallowRef, triggerRef };
71
70
  //# sourceMappingURL=shallowRef.mjs.map
@@ -1,7 +1,7 @@
1
1
  import { isReactive } from "./reactive.mjs";
2
2
  import { customRef, isRef } from "./ref.mjs";
3
3
 
4
- //#region src/reactivity/toRefs.ts
4
+ // src/reactivity/toRefs.ts
5
5
  function toRef(object, key, defaultValue) {
6
6
  const value = object[key];
7
7
  if (isRef(value)) return value;
@@ -38,6 +38,5 @@ function toRefs(object) {
38
38
  return result;
39
39
  }
40
40
 
41
- //#endregion
42
41
  export { toRef, toRefs };
43
42
  //# sourceMappingURL=toRefs.mjs.map
@@ -2,7 +2,7 @@ import { isObject, toRaw } from "./reactive/shared.mjs";
2
2
  import { isReactive } from "./reactive.mjs";
3
3
  import { isRef } from "./ref.mjs";
4
4
 
5
- //#region src/reactivity/traverse.ts
5
+ // src/reactivity/traverse.ts
6
6
  /**
7
7
  * 深度遍历工具(框架内部依赖收集使用)。
8
8
  * @internal
@@ -35,6 +35,5 @@ function traverse(value, depth = Infinity, seen = /* @__PURE__ */ new Map()) {
35
35
  return value;
36
36
  }
37
37
 
38
- //#endregion
39
38
  export { traverse };
40
39
  //# sourceMappingURL=traverse.mjs.map
@@ -6,7 +6,7 @@ import { isShallowRef } from "../shallowRef.mjs";
6
6
  import { traverse } from "../traverse.mjs";
7
7
  import { getDeepWatchStrategy } from "./types.mjs";
8
8
 
9
- //#region src/reactivity/watch/helpers.ts
9
+ // src/reactivity/watch/helpers.ts
10
10
  function resolveWatchSource(item) {
11
11
  if (typeof item === "function") return item();
12
12
  if (isRef(item)) return item.value;
@@ -73,6 +73,5 @@ function dispatchScheduledJob(job, flush, isFirstRun, scheduler) {
73
73
  else queueJob(job);
74
74
  }
75
75
 
76
- //#endregion
77
76
  export { applyDeepWatchGetter, createWatchGetter, dispatchScheduledJob };
78
77
  //# sourceMappingURL=helpers.mjs.map
@@ -1,4 +1,4 @@
1
- //#region src/reactivity/watch/types.ts
1
+ // src/reactivity/watch/types.ts
2
2
  let __deepWatchStrategy = "version";
3
3
  /**
4
4
  * 设置深度 watch 内部策略(测试/框架内部使用)。
@@ -15,6 +15,5 @@ function getDeepWatchStrategy() {
15
15
  return __deepWatchStrategy;
16
16
  }
17
17
 
18
- //#endregion
19
18
  export { getDeepWatchStrategy, setDeepWatchStrategy };
20
19
  //# sourceMappingURL=types.mjs.map
@@ -3,7 +3,7 @@ import { getCurrentInstance, setCurrentInstance } from "../runtime/hooks/base.mj
3
3
  import { getDeepWatchStrategy, setDeepWatchStrategy } from "./watch/types.mjs";
4
4
  import { applyDeepWatchGetter, createWatchGetter, dispatchScheduledJob } from "./watch/helpers.mjs";
5
5
 
6
- //#region src/reactivity/watch.ts
6
+ // src/reactivity/watch.ts
7
7
  function watch(source, cb, options = {}) {
8
8
  const ownerInstance = getCurrentInstance();
9
9
  const watchGetterContext = createWatchGetter(source);
@@ -160,6 +160,5 @@ function watchSyncEffect(effectFn, options = {}) {
160
160
  });
161
161
  }
162
162
 
163
- //#endregion
164
163
  export { getDeepWatchStrategy, setDeepWatchStrategy, watch, watchEffect, watchPostEffect, watchSyncEffect };
165
164
  //# sourceMappingURL=watch.mjs.map
@@ -1,11 +1,10 @@
1
1
  import { WEVU_AUTO_ROUTES_MODULE_ID } from "@weapp-core/constants";
2
2
 
3
- //#region src/router/auto-routes.ts
3
+ // src/router/auto-routes.ts
4
4
  function unavailableOutsideVite() {
5
5
  throw new Error(`${WEVU_AUTO_ROUTES_MODULE_ID} is generated by weapp-vite and is unavailable outside a weapp-vite build.`);
6
6
  }
7
7
  const routes = unavailableOutsideVite();
8
8
 
9
- //#endregion
10
9
  export { routes };
11
10
  //# sourceMappingURL=auto-routes.mjs.map
@@ -4,7 +4,7 @@ import { NavigationFailureType } from "./types.mjs";
4
4
  import { createNavigationFailure, runNavigationGuards } from "./navigationCore.mjs";
5
5
  import { createNavigationRunResult } from "./navigationResult.mjs";
6
6
 
7
- //#region src/router/backNavigation.ts
7
+ // src/router/backNavigation.ts
8
8
  function resolveBackNavigationTarget(delta, from, resolveWithCodec) {
9
9
  const pages = getCurrentMiniProgramPages();
10
10
  const targetPage = pages[pages.length - 1 - delta];
@@ -27,6 +27,5 @@ async function runBackNavigationGuards(options) {
27
27
  return createNavigationRunResult("back", from, target);
28
28
  }
29
29
 
30
- //#endregion
31
30
  export { resolveBackNavigationTarget, runBackNavigationGuards };
32
31
  //# sourceMappingURL=backNavigation.mjs.map
@@ -21,7 +21,7 @@ import { resolveRouteLocation } from "./resolve.mjs";
21
21
  import { createRouteRegistry } from "./routeRegistry.mjs";
22
22
  import { createRouteStateController, useNativeRouter } from "./useRoute.mjs";
23
23
 
24
- //#region src/router/createRouter.ts
24
+ // src/router/createRouter.ts
25
25
  /**
26
26
  * @description 创建高阶路由导航器(对齐 Vue Router 的 createRouter 心智)
27
27
  */
@@ -247,6 +247,5 @@ function createRouter(optionsInput = {}) {
247
247
  return router;
248
248
  }
249
249
 
250
- //#endregion
251
250
  export { createRouter };
252
251
  //# sourceMappingURL=createRouter.mjs.map
@@ -3,7 +3,7 @@ import { getActiveRouter } from "./instance.mjs";
3
3
  import { WEVU_INITIAL_NAVIGATION_TIMEOUT_MARKER } from "@weapp-core/constants";
4
4
  import { queueMicrotaskPolyfill } from "@wevu/web-apis";
5
5
 
6
- //#region src/router/initialNavigation.ts
6
+ // src/router/initialNavigation.ts
7
7
  const DEFAULT_INITIAL_NAVIGATION_TIMEOUT = 1e4;
8
8
  const initialNavigationRunners = /* @__PURE__ */ new WeakMap();
9
9
  const initialNavigationControllers = /* @__PURE__ */ new WeakMap();
@@ -144,6 +144,5 @@ function registerInitialNavigationRunner(router, runner, timeoutMs = DEFAULT_INI
144
144
  });
145
145
  }
146
146
 
147
- //#endregion
148
147
  export { DEFAULT_INITIAL_NAVIGATION_TIMEOUT, cancelInitialNavigation, ensureInitialNavigation, getInitialNavigationPromise, getInitialNavigationTimeout, registerInitialNavigationRunner };
149
148
  //# sourceMappingURL=initialNavigation.mjs.map
@@ -1,6 +1,6 @@
1
1
  import { injectGlobal, provideGlobal } from "../runtime/provide.mjs";
2
2
 
3
- //#region src/router/instance.ts
3
+ // src/router/instance.ts
4
4
  const ROUTER_INSTANCE_KEY = Symbol("wevu.router.instance");
5
5
  let activeRouter;
6
6
  function setActiveRouter(router) {
@@ -11,6 +11,5 @@ function getActiveRouter() {
11
11
  return activeRouter ?? injectGlobal(ROUTER_INSTANCE_KEY, void 0);
12
12
  }
13
13
 
14
- //#endregion
15
14
  export { getActiveRouter, setActiveRouter };
16
15
  //# sourceMappingURL=instance.mjs.map
@@ -6,7 +6,7 @@ import { resolveBackNavigationTarget, runBackNavigationGuards } from "./backNavi
6
6
  import { createForwardNotSupportedFailure } from "./navigationTargetHelpers.mjs";
7
7
  import { navigateWithTarget } from "./navigationTarget.mjs";
8
8
 
9
- //#region src/router/navigationApi.ts
9
+ // src/router/navigationApi.ts
10
10
  function createNavigationApi(options) {
11
11
  const { nativeRouter, route, routeResolveCodec, namedRouteLookup, beforeEachGuards, beforeResolveGuards, maxRedirects, tabBarPathSet, resolveWithCodec, settleNavigationResult } = options;
12
12
  async function push(to) {
@@ -89,6 +89,5 @@ function createNavigationApi(options) {
89
89
  };
90
90
  }
91
91
 
92
- //#endregion
93
92
  export { createNavigationApi };
94
93
  //# sourceMappingURL=navigationApi.mjs.map